deciduous 0.14.0

Decision graph tooling for AI-assisted development. Track every goal, decision, and outcome. Survive context loss. Query your reasoning.
Documentation
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <!-- Primary Meta Tags -->
    <meta name="title" content="Deciduous - Live Decision Graph Demo" />
    <meta name="description" content="Explore the live decision graph that documented the creation of Deciduous. Browse 520+ nodes across 6 views: DAG, Chains, Timeline, Graph, Roadmap, and Story." />
    <title>Deciduous - Live Decision Graph Demo</title>

    <!-- Open Graph / Facebook -->
    <meta property="og:type" content="website" />
    <meta property="og:url" content="https://notactuallytreyanastasio.github.io/deciduous/demo/" />
    <meta property="og:title" content="Deciduous - Live Decision Graph Demo" />
    <meta property="og:description" content="Explore the live decision graph that documented the creation of Deciduous. Browse 520+ nodes across 6 views: DAG, Chains, Timeline, Graph, Roadmap, and Story." />
    <meta property="og:image" content="https://notactuallytreyanastasio.github.io/deciduous/demo/demo-og.png" />
    <meta property="og:image:width" content="1200" />
    <meta property="og:image:height" content="630" />

    <!-- Twitter -->
    <meta property="twitter:card" content="summary_large_image" />
    <meta property="twitter:url" content="https://notactuallytreyanastasio.github.io/deciduous/demo/" />
    <meta property="twitter:title" content="Deciduous - Live Decision Graph Demo" />
    <meta property="twitter:description" content="Browse 520+ decisions that built Deciduous. See goals, decisions, actions, and outcomes connected in an interactive graph." />
    <meta property="twitter:image" content="https://notactuallytreyanastasio.github.io/deciduous/demo/demo-og.png" />
    <script type="module" crossorigin>(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();var ql=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rd={exports:{}},Io={},id={exports:{}},ne={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Hi=Symbol.for("react.element"),Yg=Symbol.for("react.portal"),Xg=Symbol.for("react.fragment"),Gg=Symbol.for("react.strict_mode"),Kg=Symbol.for("react.profiler"),Zg=Symbol.for("react.provider"),Jg=Symbol.for("react.context"),ey=Symbol.for("react.forward_ref"),ty=Symbol.for("react.suspense"),ny=Symbol.for("react.memo"),ry=Symbol.for("react.lazy"),Lc=Symbol.iterator;function iy(e){return e===null||typeof e!="object"?null:(e=Lc&&e[Lc]||e["@@iterator"],typeof e=="function"?e:null)}var ld={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},od=Object.assign,ud={};function Dr(e,t,n){this.props=e,this.context=t,this.refs=ud,this.updater=n||ld}Dr.prototype.isReactComponent={};Dr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Dr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function sd(){}sd.prototype=Dr.prototype;function aa(e,t,n){this.props=e,this.context=t,this.refs=ud,this.updater=n||ld}var ca=aa.prototype=new sd;ca.constructor=aa;od(ca,Dr.prototype);ca.isPureReactComponent=!0;var Mc=Array.isArray,ad=Object.prototype.hasOwnProperty,fa={current:null},cd={key:!0,ref:!0,__self:!0,__source:!0};function fd(e,t,n){var r,i={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)ad.call(t,r)&&!cd.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var s=Array(u),a=0;a<u;a++)s[a]=arguments[a+2];i.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:Hi,type:e,key:l,ref:o,props:i,_owner:fa.current}}function ly(e,t){return{$$typeof:Hi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function pa(e){return typeof e=="object"&&e!==null&&e.$$typeof===Hi}function oy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ac=/\/+/g;function nu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?oy(""+e.key):t.toString(36)}function bl(e,t,n,r,i){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(l){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Hi:case Yg:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+nu(o,0):r,Mc(i)?(n="",e!=null&&(n=e.replace(Ac,"$&/")+"/"),bl(i,t,n,"",function(a){return a})):i!=null&&(pa(i)&&(i=ly(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Ac,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Mc(e))for(var u=0;u<e.length;u++){l=e[u];var s=r+nu(l,u);o+=bl(l,t,n,s,i)}else if(s=iy(e),typeof s=="function")for(e=s.call(e),u=0;!(l=e.next()).done;)l=l.value,s=r+nu(l,u++),o+=bl(l,t,n,s,i);else if(l==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function tl(e,t,n){if(e==null)return e;var r=[],i=0;return bl(e,r,"","",function(l){return t.call(n,l,i++)}),r}function uy(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ve={current:null},Tl={transition:null},sy={ReactCurrentDispatcher:Ve,ReactCurrentBatchConfig:Tl,ReactCurrentOwner:fa};function pd(){throw Error("act(...) is not supported in production builds of React.")}ne.Children={map:tl,forEach:function(e,t,n){tl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return tl(e,function(){t++}),t},toArray:function(e){return tl(e,function(t){return t})||[]},only:function(e){if(!pa(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ne.Component=Dr;ne.Fragment=Xg;ne.Profiler=Kg;ne.PureComponent=aa;ne.StrictMode=Gg;ne.Suspense=ty;ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sy;ne.act=pd;ne.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=od({},e.props),i=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=fa.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)ad.call(t,s)&&!cd.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&u!==void 0?u[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){u=Array(s);for(var a=0;a<s;a++)u[a]=arguments[a+2];r.children=u}return{$$typeof:Hi,type:e.type,key:i,ref:l,props:r,_owner:o}};ne.createContext=function(e){return e={$$typeof:Jg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Zg,_context:e},e.Consumer=e};ne.createElement=fd;ne.createFactory=function(e){var t=fd.bind(null,e);return t.type=e,t};ne.createRef=function(){return{current:null}};ne.forwardRef=function(e){return{$$typeof:ey,render:e}};ne.isValidElement=pa;ne.lazy=function(e){return{$$typeof:ry,_payload:{_status:-1,_result:e},_init:uy}};ne.memo=function(e,t){return{$$typeof:ny,type:e,compare:t===void 0?null:t}};ne.startTransition=function(e){var t=Tl.transition;Tl.transition={};try{e()}finally{Tl.transition=t}};ne.unstable_act=pd;ne.useCallback=function(e,t){return Ve.current.useCallback(e,t)};ne.useContext=function(e){return Ve.current.useContext(e)};ne.useDebugValue=function(){};ne.useDeferredValue=function(e){return Ve.current.useDeferredValue(e)};ne.useEffect=function(e,t){return Ve.current.useEffect(e,t)};ne.useId=function(){return Ve.current.useId()};ne.useImperativeHandle=function(e,t,n){return Ve.current.useImperativeHandle(e,t,n)};ne.useInsertionEffect=function(e,t){return Ve.current.useInsertionEffect(e,t)};ne.useLayoutEffect=function(e,t){return Ve.current.useLayoutEffect(e,t)};ne.useMemo=function(e,t){return Ve.current.useMemo(e,t)};ne.useReducer=function(e,t,n){return Ve.current.useReducer(e,t,n)};ne.useRef=function(e){return Ve.current.useRef(e)};ne.useState=function(e){return Ve.current.useState(e)};ne.useSyncExternalStore=function(e,t,n){return Ve.current.useSyncExternalStore(e,t,n)};ne.useTransition=function(){return Ve.current.useTransition()};ne.version="18.3.1";id.exports=ne;var q=id.exports;const ay=sa(q);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var cy=q,fy=Symbol.for("react.element"),py=Symbol.for("react.fragment"),dy=Object.prototype.hasOwnProperty,hy=cy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,my={key:!0,ref:!0,__self:!0,__source:!0};function dd(e,t,n){var r,i={},l=null,o=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)dy.call(t,r)&&!my.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:fy,type:e,key:l,ref:o,props:i,_owner:hy.current}}Io.Fragment=py;Io.jsx=dd;Io.jsxs=dd;rd.exports=Io;var v=rd.exports,qu={},hd={exports:{}},st={},md={exports:{}},gd={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(L,N){var x=L.length;L.push(N);e:for(;0<x;){var U=x-1>>>1,W=L[U];if(0<i(W,N))L[U]=N,L[x]=W,x=U;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var N=L[0],x=L.pop();if(x!==N){L[0]=x;e:for(var U=0,W=L.length,k=W>>>1;U<k;){var J=2*(U+1)-1,de=L[J],ee=J+1,he=L[ee];if(0>i(de,x))ee<W&&0>i(he,de)?(L[U]=he,L[ee]=x,U=ee):(L[U]=de,L[J]=x,U=J);else if(ee<W&&0>i(he,x))L[U]=he,L[ee]=x,U=ee;else break e}}return N}function i(L,N){var x=L.sortIndex-N.sortIndex;return x!==0?x:L.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var s=[],a=[],f=1,c=null,p=3,d=!1,m=!1,w=!1,E=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(L){for(var N=n(a);N!==null;){if(N.callback===null)r(a);else if(N.startTime<=L)r(a),N.sortIndex=N.expirationTime,t(s,N);else break;N=n(a)}}function _(L){if(w=!1,y(L),!m)if(n(s)!==null)m=!0,P(I);else{var N=n(a);N!==null&&R(_,N.startTime-L)}}function I(L,N){m=!1,w&&(w=!1,h(F),F=-1),d=!0;var x=p;try{for(y(N),c=n(s);c!==null&&(!(c.expirationTime>N)||L&&!$());){var U=c.callback;if(typeof U=="function"){c.callback=null,p=c.priorityLevel;var W=U(c.expirationTime<=N);N=e.unstable_now(),typeof W=="function"?c.callback=W:c===n(s)&&r(s),y(N)}else r(s);c=n(s)}if(c!==null)var k=!0;else{var J=n(a);J!==null&&R(_,J.startTime-N),k=!1}return k}finally{c=null,p=x,d=!1}}var C=!1,A=null,F=-1,Q=5,b=-1;function $(){return!(e.unstable_now()-b<Q)}function H(){if(A!==null){var L=e.unstable_now();b=L;var N=!0;try{N=A(!0,L)}finally{N?Z():(C=!1,A=null)}}else C=!1}var Z;if(typeof g=="function")Z=function(){g(H)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,T=z.port2;z.port1.onmessage=H,Z=function(){T.postMessage(null)}}else Z=function(){E(H,0)};function P(L){A=L,C||(C=!0,Z())}function R(L,N){F=E(function(){L(e.unstable_now())},N)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){m||d||(m=!0,P(I))},e.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"):Q=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(L){switch(p){case 1:case 2:case 3:var N=3;break;default:N=p}var x=p;p=N;try{return L()}finally{p=x}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,N){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var x=p;p=L;try{return N()}finally{p=x}},e.unstable_scheduleCallback=function(L,N,x){var U=e.unstable_now();switch(typeof x=="object"&&x!==null?(x=x.delay,x=typeof x=="number"&&0<x?U+x:U):x=U,L){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=x+W,L={id:f++,callback:N,priorityLevel:L,startTime:x,expirationTime:W,sortIndex:-1},x>U?(L.sortIndex=x,t(a,L),n(s)===null&&L===n(a)&&(w?(h(F),F=-1):w=!0,R(_,x-U))):(L.sortIndex=W,t(s,L),m||d||(m=!0,P(I))),L},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(L){var N=p;return function(){var x=p;p=N;try{return L.apply(this,arguments)}finally{p=x}}}})(gd);md.exports=gd;var gy=md.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var yy=q,ot=gy;function D(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var yd=new Set,vi={};function Gn(e,t){br(e,t),br(e+"Capture",t)}function br(e,t){for(vi[e]=t,e=0;e<t.length;e++)yd.add(t[e])}var Zt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yu=Object.prototype.hasOwnProperty,xy=/^[: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]*$/,Nc={},Rc={};function vy(e){return Yu.call(Rc,e)?!0:Yu.call(Nc,e)?!1:xy.test(e)?Rc[e]=!0:(Nc[e]=!0,!1)}function wy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ky(e,t,n,r){if(t===null||typeof t>"u"||wy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function We(e,t,n,r,i,l,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var Ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ne[e]=new We(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ne[t]=new We(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ne[e]=new We(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ne[e]=new We(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ne[e]=new We(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ne[e]=new We(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ne[e]=new We(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ne[e]=new We(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ne[e]=new We(e,5,!1,e.toLowerCase(),null,!1,!1)});var da=/[\-:]([a-z])/g;function ha(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(da,ha);Ne[t]=new We(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(da,ha);Ne[t]=new We(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(da,ha);Ne[t]=new We(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ne[e]=new We(e,1,!1,e.toLowerCase(),null,!1,!1)});Ne.xlinkHref=new We("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ne[e]=new We(e,1,!1,e.toLowerCase(),null,!0,!0)});function ma(e,t,n,r){var i=Ne.hasOwnProperty(t)?Ne[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ky(t,n,i,r)&&(n=null),r||i===null?vy(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var rn=yy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,nl=Symbol.for("react.element"),or=Symbol.for("react.portal"),ur=Symbol.for("react.fragment"),ga=Symbol.for("react.strict_mode"),Xu=Symbol.for("react.profiler"),xd=Symbol.for("react.provider"),vd=Symbol.for("react.context"),ya=Symbol.for("react.forward_ref"),Gu=Symbol.for("react.suspense"),Ku=Symbol.for("react.suspense_list"),xa=Symbol.for("react.memo"),an=Symbol.for("react.lazy"),wd=Symbol.for("react.offscreen"),Dc=Symbol.iterator;function Ur(e){return e===null||typeof e!="object"?null:(e=Dc&&e[Dc]||e["@@iterator"],typeof e=="function"?e:null)}var ke=Object.assign,ru;function ti(e){if(ru===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ru=t&&t[1]||""}return`
`+ru+e}var iu=!1;function lu(e,t){if(!e||iu)return"";iu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var i=a.stack.split(`
`),l=r.stack.split(`
`),o=i.length-1,u=l.length-1;1<=o&&0<=u&&i[o]!==l[u];)u--;for(;1<=o&&0<=u;o--,u--)if(i[o]!==l[u]){if(o!==1||u!==1)do if(o--,u--,0>u||i[o]!==l[u]){var s=`
`+i[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=u);break}}}finally{iu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ti(e):""}function Sy(e){switch(e.tag){case 5:return ti(e.type);case 16:return ti("Lazy");case 13:return ti("Suspense");case 19:return ti("SuspenseList");case 0:case 2:case 15:return e=lu(e.type,!1),e;case 11:return e=lu(e.type.render,!1),e;case 1:return e=lu(e.type,!0),e;default:return""}}function Zu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ur:return"Fragment";case or:return"Portal";case Xu:return"Profiler";case ga:return"StrictMode";case Gu:return"Suspense";case Ku:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case vd:return(e.displayName||"Context")+".Consumer";case xd:return(e._context.displayName||"Context")+".Provider";case ya:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xa:return t=e.displayName||null,t!==null?t:Zu(e.type)||"Memo";case an:t=e._payload,e=e._init;try{return Zu(e(t))}catch{}}return null}function _y(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Zu(t);case 8:return t===ga?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Cn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cy(e){var t=kd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function rl(e){e._valueTracker||(e._valueTracker=Cy(e))}function Sd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=kd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Yl(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}}function Ju(e,t){var n=t.checked;return ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function jc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Cn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function _d(e,t){t=t.checked,t!=null&&ma(e,"checked",t,!1)}function es(e,t){_d(e,t);var n=Cn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ts(e,t.type,n):t.hasOwnProperty("defaultValue")&&ts(e,t.type,Cn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Fc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ts(e,t,n){(t!=="number"||Yl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ni=Array.isArray;function xr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Cn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ns(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(D(91));return ke({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Oc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(D(92));if(ni(n)){if(1<n.length)throw Error(D(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Cn(n)}}function Cd(e,t){var n=Cn(t.value),r=Cn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Bc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ed(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function rs(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ed(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var il,bd=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(il=il||document.createElement("div"),il.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=il.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ui={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ey=["Webkit","ms","Moz","O"];Object.keys(ui).forEach(function(e){Ey.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ui[t]=ui[e]})});function Td(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ui.hasOwnProperty(e)&&ui[e]?(""+t).trim():t+"px"}function zd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Td(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var by=ke({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function is(e,t){if(t){if(by[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function ls(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 os=null;function va(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var us=null,vr=null,wr=null;function $c(e){if(e=Wi(e)){if(typeof us!="function")throw Error(D(280));var t=e.stateNode;t&&(t=No(t),us(e.stateNode,e.type,t))}}function Id(e){vr?wr?wr.push(e):wr=[e]:vr=e}function Pd(){if(vr){var e=vr,t=wr;if(wr=vr=null,$c(e),t)for(e=0;e<t.length;e++)$c(t[e])}}function Ld(e,t){return e(t)}function Md(){}var ou=!1;function Ad(e,t,n){if(ou)return e(t,n);ou=!0;try{return Ld(e,t,n)}finally{ou=!1,(vr!==null||wr!==null)&&(Md(),Pd())}}function ki(e,t){var n=e.stateNode;if(n===null)return null;var r=No(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(D(231,t,typeof n));return n}var ss=!1;if(Zt)try{var Vr={};Object.defineProperty(Vr,"passive",{get:function(){ss=!0}}),window.addEventListener("test",Vr,Vr),window.removeEventListener("test",Vr,Vr)}catch{ss=!1}function Ty(e,t,n,r,i,l,o,u,s){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(f){this.onError(f)}}var si=!1,Xl=null,Gl=!1,as=null,zy={onError:function(e){si=!0,Xl=e}};function Iy(e,t,n,r,i,l,o,u,s){si=!1,Xl=null,Ty.apply(zy,arguments)}function Py(e,t,n,r,i,l,o,u,s){if(Iy.apply(this,arguments),si){if(si){var a=Xl;si=!1,Xl=null}else throw Error(D(198));Gl||(Gl=!0,as=a)}}function Kn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Nd(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 Hc(e){if(Kn(e)!==e)throw Error(D(188))}function Ly(e){var t=e.alternate;if(!t){if(t=Kn(e),t===null)throw Error(D(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var l=i.alternate;if(l===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return Hc(i),e;if(l===r)return Hc(i),t;l=l.sibling}throw Error(D(188))}if(n.return!==r.return)n=i,r=l;else{for(var o=!1,u=i.child;u;){if(u===n){o=!0,n=i,r=l;break}if(u===r){o=!0,r=i,n=l;break}u=u.sibling}if(!o){for(u=l.child;u;){if(u===n){o=!0,n=l,r=i;break}if(u===r){o=!0,r=l,n=i;break}u=u.sibling}if(!o)throw Error(D(189))}}if(n.alternate!==r)throw Error(D(190))}if(n.tag!==3)throw Error(D(188));return n.stateNode.current===n?e:t}function Rd(e){return e=Ly(e),e!==null?Dd(e):null}function Dd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Dd(e);if(t!==null)return t;e=e.sibling}return null}var jd=ot.unstable_scheduleCallback,Uc=ot.unstable_cancelCallback,My=ot.unstable_shouldYield,Ay=ot.unstable_requestPaint,Ce=ot.unstable_now,Ny=ot.unstable_getCurrentPriorityLevel,wa=ot.unstable_ImmediatePriority,Fd=ot.unstable_UserBlockingPriority,Kl=ot.unstable_NormalPriority,Ry=ot.unstable_LowPriority,Od=ot.unstable_IdlePriority,Po=null,Rt=null;function Dy(e){if(Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(Po,e,void 0,(e.current.flags&128)===128)}catch{}}var Ct=Math.clz32?Math.clz32:Oy,jy=Math.log,Fy=Math.LN2;function Oy(e){return e>>>=0,e===0?32:31-(jy(e)/Fy|0)|0}var ll=64,ol=4194304;function ri(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Zl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var u=o&~i;u!==0?r=ri(u):(l&=o,l!==0&&(r=ri(l)))}else o=n&~i,o!==0?r=ri(o):l!==0&&(r=ri(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ct(t),i=1<<n,r|=e[n],t&=~i;return r}function By(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $y(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-Ct(l),u=1<<o,s=i[o];s===-1?(!(u&n)||u&r)&&(i[o]=By(u,t)):s<=t&&(e.expiredLanes|=u),l&=~u}}function cs(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Bd(){var e=ll;return ll<<=1,!(ll&4194240)&&(ll=64),e}function uu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ui(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ct(t),e[t]=n}function Hy(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Ct(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function ka(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ct(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ue=0;function $d(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Hd,Sa,Ud,Vd,Wd,fs=!1,ul=[],gn=null,yn=null,xn=null,Si=new Map,_i=new Map,pn=[],Uy="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 submit".split(" ");function Vc(e,t){switch(e){case"focusin":case"focusout":gn=null;break;case"dragenter":case"dragleave":yn=null;break;case"mouseover":case"mouseout":xn=null;break;case"pointerover":case"pointerout":Si.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_i.delete(t.pointerId)}}function Wr(e,t,n,r,i,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[i]},t!==null&&(t=Wi(t),t!==null&&Sa(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Vy(e,t,n,r,i){switch(t){case"focusin":return gn=Wr(gn,e,t,n,r,i),!0;case"dragenter":return yn=Wr(yn,e,t,n,r,i),!0;case"mouseover":return xn=Wr(xn,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return Si.set(l,Wr(Si.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,_i.set(l,Wr(_i.get(l)||null,e,t,n,r,i)),!0}return!1}function Qd(e){var t=Dn(e.target);if(t!==null){var n=Kn(t);if(n!==null){if(t=n.tag,t===13){if(t=Nd(n),t!==null){e.blockedOn=t,Wd(e.priority,function(){Ud(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function zl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ps(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);os=r,n.target.dispatchEvent(r),os=null}else return t=Wi(n),t!==null&&Sa(t),e.blockedOn=n,!1;t.shift()}return!0}function Wc(e,t,n){zl(e)&&n.delete(t)}function Wy(){fs=!1,gn!==null&&zl(gn)&&(gn=null),yn!==null&&zl(yn)&&(yn=null),xn!==null&&zl(xn)&&(xn=null),Si.forEach(Wc),_i.forEach(Wc)}function Qr(e,t){e.blockedOn===t&&(e.blockedOn=null,fs||(fs=!0,ot.unstable_scheduleCallback(ot.unstable_NormalPriority,Wy)))}function Ci(e){function t(i){return Qr(i,e)}if(0<ul.length){Qr(ul[0],e);for(var n=1;n<ul.length;n++){var r=ul[n];r.blockedOn===e&&(r.blockedOn=null)}}for(gn!==null&&Qr(gn,e),yn!==null&&Qr(yn,e),xn!==null&&Qr(xn,e),Si.forEach(t),_i.forEach(t),n=0;n<pn.length;n++)r=pn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<pn.length&&(n=pn[0],n.blockedOn===null);)Qd(n),n.blockedOn===null&&pn.shift()}var kr=rn.ReactCurrentBatchConfig,Jl=!0;function Qy(e,t,n,r){var i=ue,l=kr.transition;kr.transition=null;try{ue=1,_a(e,t,n,r)}finally{ue=i,kr.transition=l}}function qy(e,t,n,r){var i=ue,l=kr.transition;kr.transition=null;try{ue=4,_a(e,t,n,r)}finally{ue=i,kr.transition=l}}function _a(e,t,n,r){if(Jl){var i=ps(e,t,n,r);if(i===null)yu(e,t,r,eo,n),Vc(e,r);else if(Vy(i,e,t,n,r))r.stopPropagation();else if(Vc(e,r),t&4&&-1<Uy.indexOf(e)){for(;i!==null;){var l=Wi(i);if(l!==null&&Hd(l),l=ps(e,t,n,r),l===null&&yu(e,t,r,eo,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else yu(e,t,r,null,n)}}var eo=null;function ps(e,t,n,r){if(eo=null,e=va(r),e=Dn(e),e!==null)if(t=Kn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Nd(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return eo=e,null}function qd(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ny()){case wa:return 1;case Fd:return 4;case Kl:case Ry:return 16;case Od:return 536870912;default:return 16}default:return 16}}var hn=null,Ca=null,Il=null;function Yd(){if(Il)return Il;var e,t=Ca,n=t.length,r,i="value"in hn?hn.value:hn.textContent,l=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[l-r];r++);return Il=i.slice(e,1<r?1-r:void 0)}function Pl(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 sl(){return!0}function Qc(){return!1}function at(e){function t(n,r,i,l,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=l,this.target=o,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(l):l[u]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?sl:Qc,this.isPropagationStopped=Qc,this}return ke(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=sl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=sl)},persist:function(){},isPersistent:sl}),t}var jr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ea=at(jr),Vi=ke({},jr,{view:0,detail:0}),Yy=at(Vi),su,au,qr,Lo=ke({},Vi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ba,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!==qr&&(qr&&e.type==="mousemove"?(su=e.screenX-qr.screenX,au=e.screenY-qr.screenY):au=su=0,qr=e),su)},movementY:function(e){return"movementY"in e?e.movementY:au}}),qc=at(Lo),Xy=ke({},Lo,{dataTransfer:0}),Gy=at(Xy),Ky=ke({},Vi,{relatedTarget:0}),cu=at(Ky),Zy=ke({},jr,{animationName:0,elapsedTime:0,pseudoElement:0}),Jy=at(Zy),ex=ke({},jr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),tx=at(ex),nx=ke({},jr,{data:0}),Yc=at(nx),rx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ix={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"},lx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ox(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lx[e])?!!t[e]:!1}function ba(){return ox}var ux=ke({},Vi,{key:function(e){if(e.key){var t=rx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ix[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ba,charCode:function(e){return e.type==="keypress"?Pl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),sx=at(ux),ax=ke({},Lo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xc=at(ax),cx=ke({},Vi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ba}),fx=at(cx),px=ke({},jr,{propertyName:0,elapsedTime:0,pseudoElement:0}),dx=at(px),hx=ke({},Lo,{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}),mx=at(hx),gx=[9,13,27,32],Ta=Zt&&"CompositionEvent"in window,ai=null;Zt&&"documentMode"in document&&(ai=document.documentMode);var yx=Zt&&"TextEvent"in window&&!ai,Xd=Zt&&(!Ta||ai&&8<ai&&11>=ai),Gc=" ",Kc=!1;function Gd(e,t){switch(e){case"keyup":return gx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sr=!1;function xx(e,t){switch(e){case"compositionend":return Kd(t);case"keypress":return t.which!==32?null:(Kc=!0,Gc);case"textInput":return e=t.data,e===Gc&&Kc?null:e;default:return null}}function vx(e,t){if(sr)return e==="compositionend"||!Ta&&Gd(e,t)?(e=Yd(),Il=Ca=hn=null,sr=!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 Xd&&t.locale!=="ko"?null:t.data;default:return null}}var wx={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 Zc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!wx[e.type]:t==="textarea"}function Zd(e,t,n,r){Id(r),t=to(t,"onChange"),0<t.length&&(n=new Ea("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ci=null,Ei=null;function kx(e){ah(e,0)}function Mo(e){var t=fr(e);if(Sd(t))return e}function Sx(e,t){if(e==="change")return t}var Jd=!1;if(Zt){var fu;if(Zt){var pu="oninput"in document;if(!pu){var Jc=document.createElement("div");Jc.setAttribute("oninput","return;"),pu=typeof Jc.oninput=="function"}fu=pu}else fu=!1;Jd=fu&&(!document.documentMode||9<document.documentMode)}function ef(){ci&&(ci.detachEvent("onpropertychange",eh),Ei=ci=null)}function eh(e){if(e.propertyName==="value"&&Mo(Ei)){var t=[];Zd(t,Ei,e,va(e)),Ad(kx,t)}}function _x(e,t,n){e==="focusin"?(ef(),ci=t,Ei=n,ci.attachEvent("onpropertychange",eh)):e==="focusout"&&ef()}function Cx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Mo(Ei)}function Ex(e,t){if(e==="click")return Mo(t)}function bx(e,t){if(e==="input"||e==="change")return Mo(t)}function Tx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:Tx;function bi(e,t){if(Tt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Yu.call(t,i)||!Tt(e[i],t[i]))return!1}return!0}function tf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nf(e,t){var n=tf(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=tf(n)}}function th(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?th(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function nh(){for(var e=window,t=Yl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Yl(e.document)}return t}function za(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")}function zx(e){var t=nh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&th(n.ownerDocument.documentElement,n)){if(r!==null&&za(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=nf(n,l);var o=nf(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ix=Zt&&"documentMode"in document&&11>=document.documentMode,ar=null,ds=null,fi=null,hs=!1;function rf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hs||ar==null||ar!==Yl(r)||(r=ar,"selectionStart"in r&&za(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),fi&&bi(fi,r)||(fi=r,r=to(ds,"onSelect"),0<r.length&&(t=new Ea("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ar)))}function al(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var cr={animationend:al("Animation","AnimationEnd"),animationiteration:al("Animation","AnimationIteration"),animationstart:al("Animation","AnimationStart"),transitionend:al("Transition","TransitionEnd")},du={},rh={};Zt&&(rh=document.createElement("div").style,"AnimationEvent"in window||(delete cr.animationend.animation,delete cr.animationiteration.animation,delete cr.animationstart.animation),"TransitionEvent"in window||delete cr.transitionend.transition);function Ao(e){if(du[e])return du[e];if(!cr[e])return e;var t=cr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in rh)return du[e]=t[n];return e}var ih=Ao("animationend"),lh=Ao("animationiteration"),oh=Ao("animationstart"),uh=Ao("transitionend"),sh=new Map,lf="abort auxClick 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(" ");function bn(e,t){sh.set(e,t),Gn(t,[e])}for(var hu=0;hu<lf.length;hu++){var mu=lf[hu],Px=mu.toLowerCase(),Lx=mu[0].toUpperCase()+mu.slice(1);bn(Px,"on"+Lx)}bn(ih,"onAnimationEnd");bn(lh,"onAnimationIteration");bn(oh,"onAnimationStart");bn("dblclick","onDoubleClick");bn("focusin","onFocus");bn("focusout","onBlur");bn(uh,"onTransitionEnd");br("onMouseEnter",["mouseout","mouseover"]);br("onMouseLeave",["mouseout","mouseover"]);br("onPointerEnter",["pointerout","pointerover"]);br("onPointerLeave",["pointerout","pointerover"]);Gn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Gn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Gn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Gn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Gn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Gn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ii="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(" "),Mx=new Set("cancel close invalid load scroll toggle".split(" ").concat(ii));function of(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Py(r,t,void 0,e),e.currentTarget=null}function ah(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var u=r[o],s=u.instance,a=u.currentTarget;if(u=u.listener,s!==l&&i.isPropagationStopped())break e;of(i,u,a),l=s}else for(o=0;o<r.length;o++){if(u=r[o],s=u.instance,a=u.currentTarget,u=u.listener,s!==l&&i.isPropagationStopped())break e;of(i,u,a),l=s}}}if(Gl)throw e=as,Gl=!1,as=null,e}function me(e,t){var n=t[vs];n===void 0&&(n=t[vs]=new Set);var r=e+"__bubble";n.has(r)||(ch(t,e,2,!1),n.add(r))}function gu(e,t,n){var r=0;t&&(r|=4),ch(n,e,r,t)}var cl="_reactListening"+Math.random().toString(36).slice(2);function Ti(e){if(!e[cl]){e[cl]=!0,yd.forEach(function(n){n!=="selectionchange"&&(Mx.has(n)||gu(n,!1,e),gu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[cl]||(t[cl]=!0,gu("selectionchange",!1,t))}}function ch(e,t,n,r){switch(qd(t)){case 1:var i=Qy;break;case 4:i=qy;break;default:i=_a}n=i.bind(null,t,n,e),i=void 0,!ss||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function yu(e,t,n,r,i){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var u=r.stateNode.containerInfo;if(u===i||u.nodeType===8&&u.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var s=o.tag;if((s===3||s===4)&&(s=o.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;o=o.return}for(;u!==null;){if(o=Dn(u),o===null)return;if(s=o.tag,s===5||s===6){r=l=o;continue e}u=u.parentNode}}r=r.return}Ad(function(){var a=l,f=va(n),c=[];e:{var p=sh.get(e);if(p!==void 0){var d=Ea,m=e;switch(e){case"keypress":if(Pl(n)===0)break e;case"keydown":case"keyup":d=sx;break;case"focusin":m="focus",d=cu;break;case"focusout":m="blur",d=cu;break;case"beforeblur":case"afterblur":d=cu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=qc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=Gy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=fx;break;case ih:case lh:case oh:d=Jy;break;case uh:d=dx;break;case"scroll":d=Yy;break;case"wheel":d=mx;break;case"copy":case"cut":case"paste":d=tx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=Xc}var w=(t&4)!==0,E=!w&&e==="scroll",h=w?p!==null?p+"Capture":null:p;w=[];for(var g=a,y;g!==null;){y=g;var _=y.stateNode;if(y.tag===5&&_!==null&&(y=_,h!==null&&(_=ki(g,h),_!=null&&w.push(zi(g,_,y)))),E)break;g=g.return}0<w.length&&(p=new d(p,m,null,n,f),c.push({event:p,listeners:w}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",p&&n!==os&&(m=n.relatedTarget||n.fromElement)&&(Dn(m)||m[Jt]))break e;if((d||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,d?(m=n.relatedTarget||n.toElement,d=a,m=m?Dn(m):null,m!==null&&(E=Kn(m),m!==E||m.tag!==5&&m.tag!==6)&&(m=null)):(d=null,m=a),d!==m)){if(w=qc,_="onMouseLeave",h="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(w=Xc,_="onPointerLeave",h="onPointerEnter",g="pointer"),E=d==null?p:fr(d),y=m==null?p:fr(m),p=new w(_,g+"leave",d,n,f),p.target=E,p.relatedTarget=y,_=null,Dn(f)===a&&(w=new w(h,g+"enter",m,n,f),w.target=y,w.relatedTarget=E,_=w),E=_,d&&m)t:{for(w=d,h=m,g=0,y=w;y;y=rr(y))g++;for(y=0,_=h;_;_=rr(_))y++;for(;0<g-y;)w=rr(w),g--;for(;0<y-g;)h=rr(h),y--;for(;g--;){if(w===h||h!==null&&w===h.alternate)break t;w=rr(w),h=rr(h)}w=null}else w=null;d!==null&&uf(c,p,d,w,!1),m!==null&&E!==null&&uf(c,E,m,w,!0)}}e:{if(p=a?fr(a):window,d=p.nodeName&&p.nodeName.toLowerCase(),d==="select"||d==="input"&&p.type==="file")var I=Sx;else if(Zc(p))if(Jd)I=bx;else{I=Cx;var C=_x}else(d=p.nodeName)&&d.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(I=Ex);if(I&&(I=I(e,a))){Zd(c,I,n,f);break e}C&&C(e,p,a),e==="focusout"&&(C=p._wrapperState)&&C.controlled&&p.type==="number"&&ts(p,"number",p.value)}switch(C=a?fr(a):window,e){case"focusin":(Zc(C)||C.contentEditable==="true")&&(ar=C,ds=a,fi=null);break;case"focusout":fi=ds=ar=null;break;case"mousedown":hs=!0;break;case"contextmenu":case"mouseup":case"dragend":hs=!1,rf(c,n,f);break;case"selectionchange":if(Ix)break;case"keydown":case"keyup":rf(c,n,f)}var A;if(Ta)e:{switch(e){case"compositionstart":var F="onCompositionStart";break e;case"compositionend":F="onCompositionEnd";break e;case"compositionupdate":F="onCompositionUpdate";break e}F=void 0}else sr?Gd(e,n)&&(F="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(F="onCompositionStart");F&&(Xd&&n.locale!=="ko"&&(sr||F!=="onCompositionStart"?F==="onCompositionEnd"&&sr&&(A=Yd()):(hn=f,Ca="value"in hn?hn.value:hn.textContent,sr=!0)),C=to(a,F),0<C.length&&(F=new Yc(F,e,null,n,f),c.push({event:F,listeners:C}),A?F.data=A:(A=Kd(n),A!==null&&(F.data=A)))),(A=yx?xx(e,n):vx(e,n))&&(a=to(a,"onBeforeInput"),0<a.length&&(f=new Yc("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:a}),f.data=A))}ah(c,t)})}function zi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function to(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=ki(e,n),l!=null&&r.unshift(zi(e,l,i)),l=ki(e,t),l!=null&&r.push(zi(e,l,i))),e=e.return}return r}function rr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function uf(e,t,n,r,i){for(var l=t._reactName,o=[];n!==null&&n!==r;){var u=n,s=u.alternate,a=u.stateNode;if(s!==null&&s===r)break;u.tag===5&&a!==null&&(u=a,i?(s=ki(n,l),s!=null&&o.unshift(zi(n,s,u))):i||(s=ki(n,l),s!=null&&o.push(zi(n,s,u)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Ax=/\r\n?/g,Nx=/\u0000|\uFFFD/g;function sf(e){return(typeof e=="string"?e:""+e).replace(Ax,`
`).replace(Nx,"")}function fl(e,t,n){if(t=sf(t),sf(e)!==t&&n)throw Error(D(425))}function no(){}var ms=null,gs=null;function ys(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var xs=typeof setTimeout=="function"?setTimeout:void 0,Rx=typeof clearTimeout=="function"?clearTimeout:void 0,af=typeof Promise=="function"?Promise:void 0,Dx=typeof queueMicrotask=="function"?queueMicrotask:typeof af<"u"?function(e){return af.resolve(null).then(e).catch(jx)}:xs;function jx(e){setTimeout(function(){throw e})}function xu(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Ci(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ci(t)}function vn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function cf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Fr=Math.random().toString(36).slice(2),At="__reactFiber$"+Fr,Ii="__reactProps$"+Fr,Jt="__reactContainer$"+Fr,vs="__reactEvents$"+Fr,Fx="__reactListeners$"+Fr,Ox="__reactHandles$"+Fr;function Dn(e){var t=e[At];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Jt]||n[At]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=cf(e);e!==null;){if(n=e[At])return n;e=cf(e)}return t}e=n,n=e.parentNode}return null}function Wi(e){return e=e[At]||e[Jt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function fr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(D(33))}function No(e){return e[Ii]||null}var ws=[],pr=-1;function Tn(e){return{current:e}}function ge(e){0>pr||(e.current=ws[pr],ws[pr]=null,pr--)}function pe(e,t){pr++,ws[pr]=e.current,e.current=t}var En={},Oe=Tn(En),Ge=Tn(!1),Un=En;function Tr(e,t){var n=e.type.contextTypes;if(!n)return En;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ke(e){return e=e.childContextTypes,e!=null}function ro(){ge(Ge),ge(Oe)}function ff(e,t,n){if(Oe.current!==En)throw Error(D(168));pe(Oe,t),pe(Ge,n)}function fh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(D(108,_y(e)||"Unknown",i));return ke({},n,r)}function io(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||En,Un=Oe.current,pe(Oe,e),pe(Ge,Ge.current),!0}function pf(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=fh(e,t,Un),r.__reactInternalMemoizedMergedChildContext=e,ge(Ge),ge(Oe),pe(Oe,e)):ge(Ge),pe(Ge,n)}var qt=null,Ro=!1,vu=!1;function ph(e){qt===null?qt=[e]:qt.push(e)}function Bx(e){Ro=!0,ph(e)}function zn(){if(!vu&&qt!==null){vu=!0;var e=0,t=ue;try{var n=qt;for(ue=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}qt=null,Ro=!1}catch(i){throw qt!==null&&(qt=qt.slice(e+1)),jd(wa,zn),i}finally{ue=t,vu=!1}}return null}var dr=[],hr=0,lo=null,oo=0,ct=[],ft=0,Vn=null,Yt=1,Xt="";function An(e,t){dr[hr++]=oo,dr[hr++]=lo,lo=e,oo=t}function dh(e,t,n){ct[ft++]=Yt,ct[ft++]=Xt,ct[ft++]=Vn,Vn=e;var r=Yt;e=Xt;var i=32-Ct(r)-1;r&=~(1<<i),n+=1;var l=32-Ct(t)+i;if(30<l){var o=i-i%5;l=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Yt=1<<32-Ct(t)+i|n<<i|r,Xt=l+e}else Yt=1<<l|n<<i|r,Xt=e}function Ia(e){e.return!==null&&(An(e,1),dh(e,1,0))}function Pa(e){for(;e===lo;)lo=dr[--hr],dr[hr]=null,oo=dr[--hr],dr[hr]=null;for(;e===Vn;)Vn=ct[--ft],ct[ft]=null,Xt=ct[--ft],ct[ft]=null,Yt=ct[--ft],ct[ft]=null}var it=null,rt=null,xe=!1,St=null;function hh(e,t){var n=dt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function df(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,it=e,rt=vn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,it=e,rt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Vn!==null?{id:Yt,overflow:Xt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=dt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,it=e,rt=null,!0):!1;default:return!1}}function ks(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ss(e){if(xe){var t=rt;if(t){var n=t;if(!df(e,t)){if(ks(e))throw Error(D(418));t=vn(n.nextSibling);var r=it;t&&df(e,t)?hh(r,n):(e.flags=e.flags&-4097|2,xe=!1,it=e)}}else{if(ks(e))throw Error(D(418));e.flags=e.flags&-4097|2,xe=!1,it=e}}}function hf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;it=e}function pl(e){if(e!==it)return!1;if(!xe)return hf(e),xe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ys(e.type,e.memoizedProps)),t&&(t=rt)){if(ks(e))throw mh(),Error(D(418));for(;t;)hh(e,t),t=vn(t.nextSibling)}if(hf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){rt=vn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}rt=null}}else rt=it?vn(e.stateNode.nextSibling):null;return!0}function mh(){for(var e=rt;e;)e=vn(e.nextSibling)}function zr(){rt=it=null,xe=!1}function La(e){St===null?St=[e]:St.push(e)}var $x=rn.ReactCurrentBatchConfig;function Yr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(D(309));var r=n.stateNode}if(!r)throw Error(D(147,e));var i=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(o){var u=i.refs;o===null?delete u[l]:u[l]=o},t._stringRef=l,t)}if(typeof e!="string")throw Error(D(284));if(!n._owner)throw Error(D(290,e))}return e}function dl(e,t){throw e=Object.prototype.toString.call(t),Error(D(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function mf(e){var t=e._init;return t(e._payload)}function gh(e){function t(h,g){if(e){var y=h.deletions;y===null?(h.deletions=[g],h.flags|=16):y.push(g)}}function n(h,g){if(!e)return null;for(;g!==null;)t(h,g),g=g.sibling;return null}function r(h,g){for(h=new Map;g!==null;)g.key!==null?h.set(g.key,g):h.set(g.index,g),g=g.sibling;return h}function i(h,g){return h=_n(h,g),h.index=0,h.sibling=null,h}function l(h,g,y){return h.index=y,e?(y=h.alternate,y!==null?(y=y.index,y<g?(h.flags|=2,g):y):(h.flags|=2,g)):(h.flags|=1048576,g)}function o(h){return e&&h.alternate===null&&(h.flags|=2),h}function u(h,g,y,_){return g===null||g.tag!==6?(g=bu(y,h.mode,_),g.return=h,g):(g=i(g,y),g.return=h,g)}function s(h,g,y,_){var I=y.type;return I===ur?f(h,g,y.props.children,_,y.key):g!==null&&(g.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===an&&mf(I)===g.type)?(_=i(g,y.props),_.ref=Yr(h,g,y),_.return=h,_):(_=jl(y.type,y.key,y.props,null,h.mode,_),_.ref=Yr(h,g,y),_.return=h,_)}function a(h,g,y,_){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=Tu(y,h.mode,_),g.return=h,g):(g=i(g,y.children||[]),g.return=h,g)}function f(h,g,y,_,I){return g===null||g.tag!==7?(g=$n(y,h.mode,_,I),g.return=h,g):(g=i(g,y),g.return=h,g)}function c(h,g,y){if(typeof g=="string"&&g!==""||typeof g=="number")return g=bu(""+g,h.mode,y),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case nl:return y=jl(g.type,g.key,g.props,null,h.mode,y),y.ref=Yr(h,null,g),y.return=h,y;case or:return g=Tu(g,h.mode,y),g.return=h,g;case an:var _=g._init;return c(h,_(g._payload),y)}if(ni(g)||Ur(g))return g=$n(g,h.mode,y,null),g.return=h,g;dl(h,g)}return null}function p(h,g,y,_){var I=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return I!==null?null:u(h,g,""+y,_);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case nl:return y.key===I?s(h,g,y,_):null;case or:return y.key===I?a(h,g,y,_):null;case an:return I=y._init,p(h,g,I(y._payload),_)}if(ni(y)||Ur(y))return I!==null?null:f(h,g,y,_,null);dl(h,y)}return null}function d(h,g,y,_,I){if(typeof _=="string"&&_!==""||typeof _=="number")return h=h.get(y)||null,u(g,h,""+_,I);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case nl:return h=h.get(_.key===null?y:_.key)||null,s(g,h,_,I);case or:return h=h.get(_.key===null?y:_.key)||null,a(g,h,_,I);case an:var C=_._init;return d(h,g,y,C(_._payload),I)}if(ni(_)||Ur(_))return h=h.get(y)||null,f(g,h,_,I,null);dl(g,_)}return null}function m(h,g,y,_){for(var I=null,C=null,A=g,F=g=0,Q=null;A!==null&&F<y.length;F++){A.index>F?(Q=A,A=null):Q=A.sibling;var b=p(h,A,y[F],_);if(b===null){A===null&&(A=Q);break}e&&A&&b.alternate===null&&t(h,A),g=l(b,g,F),C===null?I=b:C.sibling=b,C=b,A=Q}if(F===y.length)return n(h,A),xe&&An(h,F),I;if(A===null){for(;F<y.length;F++)A=c(h,y[F],_),A!==null&&(g=l(A,g,F),C===null?I=A:C.sibling=A,C=A);return xe&&An(h,F),I}for(A=r(h,A);F<y.length;F++)Q=d(A,h,F,y[F],_),Q!==null&&(e&&Q.alternate!==null&&A.delete(Q.key===null?F:Q.key),g=l(Q,g,F),C===null?I=Q:C.sibling=Q,C=Q);return e&&A.forEach(function($){return t(h,$)}),xe&&An(h,F),I}function w(h,g,y,_){var I=Ur(y);if(typeof I!="function")throw Error(D(150));if(y=I.call(y),y==null)throw Error(D(151));for(var C=I=null,A=g,F=g=0,Q=null,b=y.next();A!==null&&!b.done;F++,b=y.next()){A.index>F?(Q=A,A=null):Q=A.sibling;var $=p(h,A,b.value,_);if($===null){A===null&&(A=Q);break}e&&A&&$.alternate===null&&t(h,A),g=l($,g,F),C===null?I=$:C.sibling=$,C=$,A=Q}if(b.done)return n(h,A),xe&&An(h,F),I;if(A===null){for(;!b.done;F++,b=y.next())b=c(h,b.value,_),b!==null&&(g=l(b,g,F),C===null?I=b:C.sibling=b,C=b);return xe&&An(h,F),I}for(A=r(h,A);!b.done;F++,b=y.next())b=d(A,h,F,b.value,_),b!==null&&(e&&b.alternate!==null&&A.delete(b.key===null?F:b.key),g=l(b,g,F),C===null?I=b:C.sibling=b,C=b);return e&&A.forEach(function(H){return t(h,H)}),xe&&An(h,F),I}function E(h,g,y,_){if(typeof y=="object"&&y!==null&&y.type===ur&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case nl:e:{for(var I=y.key,C=g;C!==null;){if(C.key===I){if(I=y.type,I===ur){if(C.tag===7){n(h,C.sibling),g=i(C,y.props.children),g.return=h,h=g;break e}}else if(C.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===an&&mf(I)===C.type){n(h,C.sibling),g=i(C,y.props),g.ref=Yr(h,C,y),g.return=h,h=g;break e}n(h,C);break}else t(h,C);C=C.sibling}y.type===ur?(g=$n(y.props.children,h.mode,_,y.key),g.return=h,h=g):(_=jl(y.type,y.key,y.props,null,h.mode,_),_.ref=Yr(h,g,y),_.return=h,h=_)}return o(h);case or:e:{for(C=y.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){n(h,g.sibling),g=i(g,y.children||[]),g.return=h,h=g;break e}else{n(h,g);break}else t(h,g);g=g.sibling}g=Tu(y,h.mode,_),g.return=h,h=g}return o(h);case an:return C=y._init,E(h,g,C(y._payload),_)}if(ni(y))return m(h,g,y,_);if(Ur(y))return w(h,g,y,_);dl(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(n(h,g.sibling),g=i(g,y),g.return=h,h=g):(n(h,g),g=bu(y,h.mode,_),g.return=h,h=g),o(h)):n(h,g)}return E}var Ir=gh(!0),yh=gh(!1),uo=Tn(null),so=null,mr=null,Ma=null;function Aa(){Ma=mr=so=null}function Na(e){var t=uo.current;ge(uo),e._currentValue=t}function _s(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Sr(e,t){so=e,Ma=mr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ye=!0),e.firstContext=null)}function gt(e){var t=e._currentValue;if(Ma!==e)if(e={context:e,memoizedValue:t,next:null},mr===null){if(so===null)throw Error(D(308));mr=e,so.dependencies={lanes:0,firstContext:e}}else mr=mr.next=e;return t}var jn=null;function Ra(e){jn===null?jn=[e]:jn.push(e)}function xh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ra(t)):(n.next=i.next,i.next=n),t.interleaved=n,en(e,r)}function en(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var cn=!1;function Da(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function vh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Kt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function wn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,oe&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,en(e,n)}return i=r.interleaved,i===null?(t.next=t,Ra(r)):(t.next=i.next,i.next=t),r.interleaved=t,en(e,n)}function Ll(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ka(e,n)}}function gf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ao(e,t,n,r){var i=e.updateQueue;cn=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,u=i.shared.pending;if(u!==null){i.shared.pending=null;var s=u,a=s.next;s.next=null,o===null?l=a:o.next=a,o=s;var f=e.alternate;f!==null&&(f=f.updateQueue,u=f.lastBaseUpdate,u!==o&&(u===null?f.firstBaseUpdate=a:u.next=a,f.lastBaseUpdate=s))}if(l!==null){var c=i.baseState;o=0,f=a=s=null,u=l;do{var p=u.lane,d=u.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:d,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var m=e,w=u;switch(p=t,d=n,w.tag){case 1:if(m=w.payload,typeof m=="function"){c=m.call(d,c,p);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=w.payload,p=typeof m=="function"?m.call(d,c,p):m,p==null)break e;c=ke({},c,p);break e;case 2:cn=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[u]:p.push(u))}else d={eventTime:d,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},f===null?(a=f=d,s=c):f=f.next=d,o|=p;if(u=u.next,u===null){if(u=i.shared.pending,u===null)break;p=u,u=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(f===null&&(s=c),i.baseState=s,i.firstBaseUpdate=a,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);Qn|=o,e.lanes=o,e.memoizedState=c}}function yf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(D(191,i));i.call(r)}}}var Qi={},Dt=Tn(Qi),Pi=Tn(Qi),Li=Tn(Qi);function Fn(e){if(e===Qi)throw Error(D(174));return e}function ja(e,t){switch(pe(Li,t),pe(Pi,e),pe(Dt,Qi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:rs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=rs(t,e)}ge(Dt),pe(Dt,t)}function Pr(){ge(Dt),ge(Pi),ge(Li)}function wh(e){Fn(Li.current);var t=Fn(Dt.current),n=rs(t,e.type);t!==n&&(pe(Pi,e),pe(Dt,n))}function Fa(e){Pi.current===e&&(ge(Dt),ge(Pi))}var ve=Tn(0);function co(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 wu=[];function Oa(){for(var e=0;e<wu.length;e++)wu[e]._workInProgressVersionPrimary=null;wu.length=0}var Ml=rn.ReactCurrentDispatcher,ku=rn.ReactCurrentBatchConfig,Wn=0,we=null,Te=null,Pe=null,fo=!1,pi=!1,Mi=0,Hx=0;function Re(){throw Error(D(321))}function Ba(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Tt(e[n],t[n]))return!1;return!0}function $a(e,t,n,r,i,l){if(Wn=l,we=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ml.current=e===null||e.memoizedState===null?Qx:qx,e=n(r,i),pi){l=0;do{if(pi=!1,Mi=0,25<=l)throw Error(D(301));l+=1,Pe=Te=null,t.updateQueue=null,Ml.current=Yx,e=n(r,i)}while(pi)}if(Ml.current=po,t=Te!==null&&Te.next!==null,Wn=0,Pe=Te=we=null,fo=!1,t)throw Error(D(300));return e}function Ha(){var e=Mi!==0;return Mi=0,e}function Lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?we.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function yt(){if(Te===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=Pe===null?we.memoizedState:Pe.next;if(t!==null)Pe=t,Te=e;else{if(e===null)throw Error(D(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},Pe===null?we.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function Ai(e,t){return typeof t=="function"?t(e):t}function Su(e){var t=yt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=Te,i=r.baseQueue,l=n.pending;if(l!==null){if(i!==null){var o=i.next;i.next=l.next,l.next=o}r.baseQueue=i=l,n.pending=null}if(i!==null){l=i.next,r=r.baseState;var u=o=null,s=null,a=l;do{var f=a.lane;if((Wn&f)===f)s!==null&&(s=s.next={lane:0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null}),r=a.hasEagerState?a.eagerState:e(r,a.action);else{var c={lane:f,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};s===null?(u=s=c,o=r):s=s.next=c,we.lanes|=f,Qn|=f}a=a.next}while(a!==null&&a!==l);s===null?o=r:s.next=u,Tt(r,t.memoizedState)||(Ye=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do l=i.lane,we.lanes|=l,Qn|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _u(e){var t=yt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,l=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do l=e(l,o.action),o=o.next;while(o!==i);Tt(l,t.memoizedState)||(Ye=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function kh(){}function Sh(e,t){var n=we,r=yt(),i=t(),l=!Tt(r.memoizedState,i);if(l&&(r.memoizedState=i,Ye=!0),r=r.queue,Ua(Eh.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||Pe!==null&&Pe.memoizedState.tag&1){if(n.flags|=2048,Ni(9,Ch.bind(null,n,r,i,t),void 0,null),Le===null)throw Error(D(349));Wn&30||_h(n,t,i)}return i}function _h(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ch(e,t,n,r){t.value=n,t.getSnapshot=r,bh(t)&&Th(e)}function Eh(e,t,n){return n(function(){bh(t)&&Th(e)})}function bh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tt(e,n)}catch{return!0}}function Th(e){var t=en(e,1);t!==null&&Et(t,e,1,-1)}function xf(e){var t=Lt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ai,lastRenderedState:e},t.queue=e,e=e.dispatch=Wx.bind(null,we,e),[t.memoizedState,e]}function Ni(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function zh(){return yt().memoizedState}function Al(e,t,n,r){var i=Lt();we.flags|=e,i.memoizedState=Ni(1|t,n,void 0,r===void 0?null:r)}function Do(e,t,n,r){var i=yt();r=r===void 0?null:r;var l=void 0;if(Te!==null){var o=Te.memoizedState;if(l=o.destroy,r!==null&&Ba(r,o.deps)){i.memoizedState=Ni(t,n,l,r);return}}we.flags|=e,i.memoizedState=Ni(1|t,n,l,r)}function vf(e,t){return Al(8390656,8,e,t)}function Ua(e,t){return Do(2048,8,e,t)}function Ih(e,t){return Do(4,2,e,t)}function Ph(e,t){return Do(4,4,e,t)}function Lh(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Mh(e,t,n){return n=n!=null?n.concat([e]):null,Do(4,4,Lh.bind(null,t,e),n)}function Va(){}function Ah(e,t){var n=yt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ba(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Nh(e,t){var n=yt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ba(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Rh(e,t,n){return Wn&21?(Tt(n,t)||(n=Bd(),we.lanes|=n,Qn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ye=!0),e.memoizedState=n)}function Ux(e,t){var n=ue;ue=n!==0&&4>n?n:4,e(!0);var r=ku.transition;ku.transition={};try{e(!1),t()}finally{ue=n,ku.transition=r}}function Dh(){return yt().memoizedState}function Vx(e,t,n){var r=Sn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},jh(e))Fh(t,n);else if(n=xh(e,t,n,r),n!==null){var i=Ue();Et(n,e,r,i),Oh(n,t,r)}}function Wx(e,t,n){var r=Sn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(jh(e))Fh(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,u=l(o,n);if(i.hasEagerState=!0,i.eagerState=u,Tt(u,o)){var s=t.interleaved;s===null?(i.next=i,Ra(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=xh(e,t,i,r),n!==null&&(i=Ue(),Et(n,e,r,i),Oh(n,t,r))}}function jh(e){var t=e.alternate;return e===we||t!==null&&t===we}function Fh(e,t){pi=fo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Oh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ka(e,n)}}var po={readContext:gt,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useInsertionEffect:Re,useLayoutEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useMutableSource:Re,useSyncExternalStore:Re,useId:Re,unstable_isNewReconciler:!1},Qx={readContext:gt,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:vf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Al(4194308,4,Lh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Al(4194308,4,e,t)},useInsertionEffect:function(e,t){return Al(4,2,e,t)},useMemo:function(e,t){var n=Lt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Lt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Vx.bind(null,we,e),[r.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:xf,useDebugValue:Va,useDeferredValue:function(e){return Lt().memoizedState=e},useTransition:function(){var e=xf(!1),t=e[0];return e=Ux.bind(null,e[1]),Lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=we,i=Lt();if(xe){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),Le===null)throw Error(D(349));Wn&30||_h(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,vf(Eh.bind(null,r,l,e),[e]),r.flags|=2048,Ni(9,Ch.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Lt(),t=Le.identifierPrefix;if(xe){var n=Xt,r=Yt;n=(r&~(1<<32-Ct(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Mi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Hx++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},qx={readContext:gt,useCallback:Ah,useContext:gt,useEffect:Ua,useImperativeHandle:Mh,useInsertionEffect:Ih,useLayoutEffect:Ph,useMemo:Nh,useReducer:Su,useRef:zh,useState:function(){return Su(Ai)},useDebugValue:Va,useDeferredValue:function(e){var t=yt();return Rh(t,Te.memoizedState,e)},useTransition:function(){var e=Su(Ai)[0],t=yt().memoizedState;return[e,t]},useMutableSource:kh,useSyncExternalStore:Sh,useId:Dh,unstable_isNewReconciler:!1},Yx={readContext:gt,useCallback:Ah,useContext:gt,useEffect:Ua,useImperativeHandle:Mh,useInsertionEffect:Ih,useLayoutEffect:Ph,useMemo:Nh,useReducer:_u,useRef:zh,useState:function(){return _u(Ai)},useDebugValue:Va,useDeferredValue:function(e){var t=yt();return Te===null?t.memoizedState=e:Rh(t,Te.memoizedState,e)},useTransition:function(){var e=_u(Ai)[0],t=yt().memoizedState;return[e,t]},useMutableSource:kh,useSyncExternalStore:Sh,useId:Dh,unstable_isNewReconciler:!1};function wt(e,t){if(e&&e.defaultProps){t=ke({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Cs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ke({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var jo={isMounted:function(e){return(e=e._reactInternals)?Kn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ue(),i=Sn(e),l=Kt(r,i);l.payload=t,n!=null&&(l.callback=n),t=wn(e,l,i),t!==null&&(Et(t,e,i,r),Ll(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ue(),i=Sn(e),l=Kt(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=wn(e,l,i),t!==null&&(Et(t,e,i,r),Ll(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ue(),r=Sn(e),i=Kt(n,r);i.tag=2,t!=null&&(i.callback=t),t=wn(e,i,r),t!==null&&(Et(t,e,r,n),Ll(t,e,r))}};function wf(e,t,n,r,i,l,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,o):t.prototype&&t.prototype.isPureReactComponent?!bi(n,r)||!bi(i,l):!0}function Bh(e,t,n){var r=!1,i=En,l=t.contextType;return typeof l=="object"&&l!==null?l=gt(l):(i=Ke(t)?Un:Oe.current,r=t.contextTypes,l=(r=r!=null)?Tr(e,i):En),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=jo,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function kf(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&jo.enqueueReplaceState(t,t.state,null)}function Es(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Da(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=gt(l):(l=Ke(t)?Un:Oe.current,i.context=Tr(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Cs(e,t,l,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&jo.enqueueReplaceState(i,i.state,null),ao(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Lr(e,t){try{var n="",r=t;do n+=Sy(r),r=r.return;while(r);var i=n}catch(l){i=`
Error generating stack: `+l.message+`
`+l.stack}return{value:e,source:t,stack:i,digest:null}}function Cu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Xx=typeof WeakMap=="function"?WeakMap:Map;function $h(e,t,n){n=Kt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){mo||(mo=!0,Ds=r),bs(e,t)},n}function Hh(e,t,n){n=Kt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){bs(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){bs(e,t),typeof r!="function"&&(kn===null?kn=new Set([this]):kn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Sf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Xx;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=a0.bind(null,e,t,n),t.then(e,e))}function _f(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Cf(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Kt(-1,1),t.tag=2,wn(n,t,1))),n.lanes|=1),e)}var Gx=rn.ReactCurrentOwner,Ye=!1;function $e(e,t,n,r){t.child=e===null?yh(t,null,n,r):Ir(t,e.child,n,r)}function Ef(e,t,n,r,i){n=n.render;var l=t.ref;return Sr(t,i),r=$a(e,t,n,r,l,i),n=Ha(),e!==null&&!Ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,tn(e,t,i)):(xe&&n&&Ia(t),t.flags|=1,$e(e,t,r,i),t.child)}function bf(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!Za(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Uh(e,t,l,r,i)):(e=jl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&i)){var o=l.memoizedProps;if(n=n.compare,n=n!==null?n:bi,n(o,r)&&e.ref===t.ref)return tn(e,t,i)}return t.flags|=1,e=_n(l,r),e.ref=t.ref,e.return=t,t.child=e}function Uh(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(bi(l,r)&&e.ref===t.ref)if(Ye=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(Ye=!0);else return t.lanes=e.lanes,tn(e,t,i)}return Ts(e,t,n,r,i)}function Vh(e,t,n){var r=t.pendingProps,i=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},pe(yr,nt),nt|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,pe(yr,nt),nt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,pe(yr,nt),nt|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,pe(yr,nt),nt|=r;return $e(e,t,i,n),t.child}function Wh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ts(e,t,n,r,i){var l=Ke(n)?Un:Oe.current;return l=Tr(t,l),Sr(t,i),n=$a(e,t,n,r,l,i),r=Ha(),e!==null&&!Ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,tn(e,t,i)):(xe&&r&&Ia(t),t.flags|=1,$e(e,t,n,i),t.child)}function Tf(e,t,n,r,i){if(Ke(n)){var l=!0;io(t)}else l=!1;if(Sr(t,i),t.stateNode===null)Nl(e,t),Bh(t,n,r),Es(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,u=t.memoizedProps;o.props=u;var s=o.context,a=n.contextType;typeof a=="object"&&a!==null?a=gt(a):(a=Ke(n)?Un:Oe.current,a=Tr(t,a));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==r||s!==a)&&kf(t,o,r,a),cn=!1;var p=t.memoizedState;o.state=p,ao(t,r,o,i),s=t.memoizedState,u!==r||p!==s||Ge.current||cn?(typeof f=="function"&&(Cs(t,n,f,r),s=t.memoizedState),(u=cn||wf(t,n,u,r,p,s,a))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=a,r=u):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,vh(e,t),u=t.memoizedProps,a=t.type===t.elementType?u:wt(t.type,u),o.props=a,c=t.pendingProps,p=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=gt(s):(s=Ke(n)?Un:Oe.current,s=Tr(t,s));var d=n.getDerivedStateFromProps;(f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==c||p!==s)&&kf(t,o,r,s),cn=!1,p=t.memoizedState,o.state=p,ao(t,r,o,i);var m=t.memoizedState;u!==c||p!==m||Ge.current||cn?(typeof d=="function"&&(Cs(t,n,d,r),m=t.memoizedState),(a=cn||wf(t,n,a,r,p,m,s)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,m,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,m,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=s,r=a):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return zs(e,t,n,r,l,i)}function zs(e,t,n,r,i,l){Wh(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&pf(t,n,!1),tn(e,t,l);r=t.stateNode,Gx.current=t;var u=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ir(t,e.child,null,l),t.child=Ir(t,null,u,l)):$e(e,t,u,l),t.memoizedState=r.state,i&&pf(t,n,!0),t.child}function Qh(e){var t=e.stateNode;t.pendingContext?ff(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ff(e,t.context,!1),ja(e,t.containerInfo)}function zf(e,t,n,r,i){return zr(),La(i),t.flags|=256,$e(e,t,n,r),t.child}var Is={dehydrated:null,treeContext:null,retryLane:0};function Ps(e){return{baseLanes:e,cachePool:null,transitions:null}}function qh(e,t,n){var r=t.pendingProps,i=ve.current,l=!1,o=(t.flags&128)!==0,u;if((u=o)||(u=e!==null&&e.memoizedState===null?!1:(i&2)!==0),u?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),pe(ve,i&1),e===null)return Ss(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,l?(r=t.mode,l=t.child,o={mode:"hidden",children:o},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=o):l=Bo(o,r,0,null),e=$n(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ps(n),t.memoizedState=Is,e):Wa(t,o));if(i=e.memoizedState,i!==null&&(u=i.dehydrated,u!==null))return Kx(e,t,o,r,u,i,n);if(l){l=r.fallback,o=t.mode,i=e.child,u=i.sibling;var s={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=_n(i,s),r.subtreeFlags=i.subtreeFlags&14680064),u!==null?l=_n(u,l):(l=$n(l,o,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,o=e.child.memoizedState,o=o===null?Ps(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=Is,r}return l=e.child,e=l.sibling,r=_n(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Wa(e,t){return t=Bo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function hl(e,t,n,r){return r!==null&&La(r),Ir(t,e.child,null,n),e=Wa(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Kx(e,t,n,r,i,l,o){if(n)return t.flags&256?(t.flags&=-257,r=Cu(Error(D(422))),hl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=Bo({mode:"visible",children:r.children},i,0,null),l=$n(l,i,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&Ir(t,e.child,null,o),t.child.memoizedState=Ps(o),t.memoizedState=Is,l);if(!(t.mode&1))return hl(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var u=r.dgst;return r=u,l=Error(D(419)),r=Cu(l,r,void 0),hl(e,t,o,r)}if(u=(o&e.childLanes)!==0,Ye||u){if(r=Le,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==l.retryLane&&(l.retryLane=i,en(e,i),Et(r,e,i,-1))}return Ka(),r=Cu(Error(D(421))),hl(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=c0.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,rt=vn(i.nextSibling),it=t,xe=!0,St=null,e!==null&&(ct[ft++]=Yt,ct[ft++]=Xt,ct[ft++]=Vn,Yt=e.id,Xt=e.overflow,Vn=t),t=Wa(t,r.children),t.flags|=4096,t)}function If(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),_s(e.return,t,n)}function Eu(e,t,n,r,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=i)}function Yh(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if($e(e,t,r.children,n),r=ve.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&If(e,n,t);else if(e.tag===19)If(e,n,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}r&=1}if(pe(ve,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&co(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Eu(t,!1,i,n,l);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&co(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Eu(t,!0,n,null,l);break;case"together":Eu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Nl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Qn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=_n(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=_n(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Zx(e,t,n){switch(t.tag){case 3:Qh(t),zr();break;case 5:wh(t);break;case 1:Ke(t.type)&&io(t);break;case 4:ja(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;pe(uo,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(pe(ve,ve.current&1),t.flags|=128,null):n&t.child.childLanes?qh(e,t,n):(pe(ve,ve.current&1),e=tn(e,t,n),e!==null?e.sibling:null);pe(ve,ve.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Yh(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),pe(ve,ve.current),r)break;return null;case 22:case 23:return t.lanes=0,Vh(e,t,n)}return tn(e,t,n)}var Xh,Ls,Gh,Kh;Xh=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ls=function(){};Gh=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Fn(Dt.current);var l=null;switch(n){case"input":i=Ju(e,i),r=Ju(e,r),l=[];break;case"select":i=ke({},i,{value:void 0}),r=ke({},r,{value:void 0}),l=[];break;case"textarea":i=ns(e,i),r=ns(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=no)}is(n,r);var o;n=null;for(a in i)if(!r.hasOwnProperty(a)&&i.hasOwnProperty(a)&&i[a]!=null)if(a==="style"){var u=i[a];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(vi.hasOwnProperty(a)?l||(l=[]):(l=l||[]).push(a,null));for(a in r){var s=r[a];if(u=i!=null?i[a]:void 0,r.hasOwnProperty(a)&&s!==u&&(s!=null||u!=null))if(a==="style")if(u){for(o in u)!u.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in s)s.hasOwnProperty(o)&&u[o]!==s[o]&&(n||(n={}),n[o]=s[o])}else n||(l||(l=[]),l.push(a,n)),n=s;else a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(l=l||[]).push(a,s)):a==="children"?typeof s!="string"&&typeof s!="number"||(l=l||[]).push(a,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(vi.hasOwnProperty(a)?(s!=null&&a==="onScroll"&&me("scroll",e),l||u===s||(l=[])):(l=l||[]).push(a,s))}n&&(l=l||[]).push("style",n);var a=l;(t.updateQueue=a)&&(t.flags|=4)}};Kh=function(e,t,n,r){n!==r&&(t.flags|=4)};function Xr(e,t){if(!xe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function De(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Jx(e,t,n){var r=t.pendingProps;switch(Pa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return De(t),null;case 1:return Ke(t.type)&&ro(),De(t),null;case 3:return r=t.stateNode,Pr(),ge(Ge),ge(Oe),Oa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(pl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,St!==null&&(Os(St),St=null))),Ls(e,t),De(t),null;case 5:Fa(t);var i=Fn(Li.current);if(n=t.type,e!==null&&t.stateNode!=null)Gh(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(D(166));return De(t),null}if(e=Fn(Dt.current),pl(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[At]=t,r[Ii]=l,e=(t.mode&1)!==0,n){case"dialog":me("cancel",r),me("close",r);break;case"iframe":case"object":case"embed":me("load",r);break;case"video":case"audio":for(i=0;i<ii.length;i++)me(ii[i],r);break;case"source":me("error",r);break;case"img":case"image":case"link":me("error",r),me("load",r);break;case"details":me("toggle",r);break;case"input":jc(r,l),me("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},me("invalid",r);break;case"textarea":Oc(r,l),me("invalid",r)}is(n,l),i=null;for(var o in l)if(l.hasOwnProperty(o)){var u=l[o];o==="children"?typeof u=="string"?r.textContent!==u&&(l.suppressHydrationWarning!==!0&&fl(r.textContent,u,e),i=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(l.suppressHydrationWarning!==!0&&fl(r.textContent,u,e),i=["children",""+u]):vi.hasOwnProperty(o)&&u!=null&&o==="onScroll"&&me("scroll",r)}switch(n){case"input":rl(r),Fc(r,l,!0);break;case"textarea":rl(r),Bc(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=no)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ed(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[At]=t,e[Ii]=r,Xh(e,t,!1,!1),t.stateNode=e;e:{switch(o=ls(n,r),n){case"dialog":me("cancel",e),me("close",e),i=r;break;case"iframe":case"object":case"embed":me("load",e),i=r;break;case"video":case"audio":for(i=0;i<ii.length;i++)me(ii[i],e);i=r;break;case"source":me("error",e),i=r;break;case"img":case"image":case"link":me("error",e),me("load",e),i=r;break;case"details":me("toggle",e),i=r;break;case"input":jc(e,r),i=Ju(e,r),me("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ke({},r,{value:void 0}),me("invalid",e);break;case"textarea":Oc(e,r),i=ns(e,r),me("invalid",e);break;default:i=r}is(n,i),u=i;for(l in u)if(u.hasOwnProperty(l)){var s=u[l];l==="style"?zd(e,s):l==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&bd(e,s)):l==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&wi(e,s):typeof s=="number"&&wi(e,""+s):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(vi.hasOwnProperty(l)?s!=null&&l==="onScroll"&&me("scroll",e):s!=null&&ma(e,l,s,o))}switch(n){case"input":rl(e),Fc(e,r,!1);break;case"textarea":rl(e),Bc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Cn(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?xr(e,!!r.multiple,l,!1):r.defaultValue!=null&&xr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=no)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return De(t),null;case 6:if(e&&t.stateNode!=null)Kh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(D(166));if(n=Fn(Li.current),Fn(Dt.current),pl(t)){if(r=t.stateNode,n=t.memoizedProps,r[At]=t,(l=r.nodeValue!==n)&&(e=it,e!==null))switch(e.tag){case 3:fl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&fl(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[At]=t,t.stateNode=r}return De(t),null;case 13:if(ge(ve),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(xe&&rt!==null&&t.mode&1&&!(t.flags&128))mh(),zr(),t.flags|=98560,l=!1;else if(l=pl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(D(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(D(317));l[At]=t}else zr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;De(t),l=!1}else St!==null&&(Os(St),St=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ve.current&1?ze===0&&(ze=3):Ka())),t.updateQueue!==null&&(t.flags|=4),De(t),null);case 4:return Pr(),Ls(e,t),e===null&&Ti(t.stateNode.containerInfo),De(t),null;case 10:return Na(t.type._context),De(t),null;case 17:return Ke(t.type)&&ro(),De(t),null;case 19:if(ge(ve),l=t.memoizedState,l===null)return De(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)Xr(l,!1);else{if(ze!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=co(e),o!==null){for(t.flags|=128,Xr(l,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,o=l.alternate,o===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,l.type=o.type,e=o.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return pe(ve,ve.current&1|2),t.child}e=e.sibling}l.tail!==null&&Ce()>Mr&&(t.flags|=128,r=!0,Xr(l,!1),t.lanes=4194304)}else{if(!r)if(e=co(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Xr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!xe)return De(t),null}else 2*Ce()-l.renderingStartTime>Mr&&n!==1073741824&&(t.flags|=128,r=!0,Xr(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Ce(),t.sibling=null,n=ve.current,pe(ve,r?n&1|2:n&1),t):(De(t),null);case 22:case 23:return Ga(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?nt&1073741824&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function e0(e,t){switch(Pa(t),t.tag){case 1:return Ke(t.type)&&ro(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pr(),ge(Ge),ge(Oe),Oa(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Fa(t),null;case 13:if(ge(ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));zr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge(ve),null;case 4:return Pr(),null;case 10:return Na(t.type._context),null;case 22:case 23:return Ga(),null;case 24:return null;default:return null}}var ml=!1,je=!1,t0=typeof WeakSet=="function"?WeakSet:Set,V=null;function gr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Se(e,t,r)}else n.current=null}function Ms(e,t,n){try{n()}catch(r){Se(e,t,r)}}var Pf=!1;function n0(e,t){if(ms=Jl,e=nh(),za(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,u=-1,s=-1,a=0,f=0,c=e,p=null;t:for(;;){for(var d;c!==n||i!==0&&c.nodeType!==3||(u=o+i),c!==l||r!==0&&c.nodeType!==3||(s=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(d=c.firstChild)!==null;)p=c,c=d;for(;;){if(c===e)break t;if(p===n&&++a===i&&(u=o),p===l&&++f===r&&(s=o),(d=c.nextSibling)!==null)break;c=p,p=c.parentNode}c=d}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(gs={focusedElem:e,selectionRange:n},Jl=!1,V=t;V!==null;)if(t=V,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,V=e;else for(;V!==null;){t=V;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var w=m.memoizedProps,E=m.memoizedState,h=t.stateNode,g=h.getSnapshotBeforeUpdate(t.elementType===t.type?w:wt(t.type,w),E);h.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(_){Se(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return m=Pf,Pf=!1,m}function di(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&Ms(t,n,l)}i=i.next}while(i!==r)}}function Fo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function As(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Zh(e){var t=e.alternate;t!==null&&(e.alternate=null,Zh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[At],delete t[Ii],delete t[vs],delete t[Fx],delete t[Ox])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Jh(e){return e.tag===5||e.tag===3||e.tag===4}function Lf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Jh(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.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 Ns(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=no));else if(r!==4&&(e=e.child,e!==null))for(Ns(e,t,n),e=e.sibling;e!==null;)Ns(e,t,n),e=e.sibling}function Rs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Rs(e,t,n),e=e.sibling;e!==null;)Rs(e,t,n),e=e.sibling}var Me=null,kt=!1;function un(e,t,n){for(n=n.child;n!==null;)em(e,t,n),n=n.sibling}function em(e,t,n){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Po,n)}catch{}switch(n.tag){case 5:je||gr(n,t);case 6:var r=Me,i=kt;Me=null,un(e,t,n),Me=r,kt=i,Me!==null&&(kt?(e=Me,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Me.removeChild(n.stateNode));break;case 18:Me!==null&&(kt?(e=Me,n=n.stateNode,e.nodeType===8?xu(e.parentNode,n):e.nodeType===1&&xu(e,n),Ci(e)):xu(Me,n.stateNode));break;case 4:r=Me,i=kt,Me=n.stateNode.containerInfo,kt=!0,un(e,t,n),Me=r,kt=i;break;case 0:case 11:case 14:case 15:if(!je&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&Ms(n,t,o),i=i.next}while(i!==r)}un(e,t,n);break;case 1:if(!je&&(gr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Se(n,t,u)}un(e,t,n);break;case 21:un(e,t,n);break;case 22:n.mode&1?(je=(r=je)||n.memoizedState!==null,un(e,t,n),je=r):un(e,t,n);break;default:un(e,t,n)}}function Mf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new t0),t.forEach(function(r){var i=f0.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function vt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var l=e,o=t,u=o;e:for(;u!==null;){switch(u.tag){case 5:Me=u.stateNode,kt=!1;break e;case 3:Me=u.stateNode.containerInfo,kt=!0;break e;case 4:Me=u.stateNode.containerInfo,kt=!0;break e}u=u.return}if(Me===null)throw Error(D(160));em(l,o,i),Me=null,kt=!1;var s=i.alternate;s!==null&&(s.return=null),i.return=null}catch(a){Se(i,t,a)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)tm(t,e),t=t.sibling}function tm(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vt(t,e),It(e),r&4){try{di(3,e,e.return),Fo(3,e)}catch(w){Se(e,e.return,w)}try{di(5,e,e.return)}catch(w){Se(e,e.return,w)}}break;case 1:vt(t,e),It(e),r&512&&n!==null&&gr(n,n.return);break;case 5:if(vt(t,e),It(e),r&512&&n!==null&&gr(n,n.return),e.flags&32){var i=e.stateNode;try{wi(i,"")}catch(w){Se(e,e.return,w)}}if(r&4&&(i=e.stateNode,i!=null)){var l=e.memoizedProps,o=n!==null?n.memoizedProps:l,u=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{u==="input"&&l.type==="radio"&&l.name!=null&&_d(i,l),ls(u,o);var a=ls(u,l);for(o=0;o<s.length;o+=2){var f=s[o],c=s[o+1];f==="style"?zd(i,c):f==="dangerouslySetInnerHTML"?bd(i,c):f==="children"?wi(i,c):ma(i,f,c,a)}switch(u){case"input":es(i,l);break;case"textarea":Cd(i,l);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var d=l.value;d!=null?xr(i,!!l.multiple,d,!1):p!==!!l.multiple&&(l.defaultValue!=null?xr(i,!!l.multiple,l.defaultValue,!0):xr(i,!!l.multiple,l.multiple?[]:"",!1))}i[Ii]=l}catch(w){Se(e,e.return,w)}}break;case 6:if(vt(t,e),It(e),r&4){if(e.stateNode===null)throw Error(D(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(w){Se(e,e.return,w)}}break;case 3:if(vt(t,e),It(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ci(t.containerInfo)}catch(w){Se(e,e.return,w)}break;case 4:vt(t,e),It(e);break;case 13:vt(t,e),It(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(Ya=Ce())),r&4&&Mf(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(je=(a=je)||f,vt(t,e),je=a):vt(t,e),It(e),r&8192){if(a=e.memoizedState!==null,(e.stateNode.isHidden=a)&&!f&&e.mode&1)for(V=e,f=e.child;f!==null;){for(c=V=f;V!==null;){switch(p=V,d=p.child,p.tag){case 0:case 11:case 14:case 15:di(4,p,p.return);break;case 1:gr(p,p.return);var m=p.stateNode;if(typeof m.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(w){Se(r,n,w)}}break;case 5:gr(p,p.return);break;case 22:if(p.memoizedState!==null){Nf(c);continue}}d!==null?(d.return=p,V=d):Nf(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{i=c.stateNode,a?(l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(u=c.stateNode,s=c.memoizedProps.style,o=s!=null&&s.hasOwnProperty("display")?s.display:null,u.style.display=Td("display",o))}catch(w){Se(e,e.return,w)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=a?"":c.memoizedProps}catch(w){Se(e,e.return,w)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:vt(t,e),It(e),r&4&&Mf(e);break;case 21:break;default:vt(t,e),It(e)}}function It(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Jh(n)){var r=n;break e}n=n.return}throw Error(D(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(wi(i,""),r.flags&=-33);var l=Lf(e);Rs(e,l,i);break;case 3:case 4:var o=r.stateNode.containerInfo,u=Lf(e);Ns(e,u,o);break;default:throw Error(D(161))}}catch(s){Se(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function r0(e,t,n){V=e,nm(e)}function nm(e,t,n){for(var r=(e.mode&1)!==0;V!==null;){var i=V,l=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||ml;if(!o){var u=i.alternate,s=u!==null&&u.memoizedState!==null||je;u=ml;var a=je;if(ml=o,(je=s)&&!a)for(V=i;V!==null;)o=V,s=o.child,o.tag===22&&o.memoizedState!==null?Rf(i):s!==null?(s.return=o,V=s):Rf(i);for(;l!==null;)V=l,nm(l),l=l.sibling;V=i,ml=u,je=a}Af(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,V=l):Af(e)}}function Af(e){for(;V!==null;){var t=V;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:je||Fo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!je)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:wt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&yf(t,l,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}yf(t,o,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var a=t.alternate;if(a!==null){var f=a.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&Ci(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}je||t.flags&512&&As(t)}catch(p){Se(t,t.return,p)}}if(t===e){V=null;break}if(n=t.sibling,n!==null){n.return=t.return,V=n;break}V=t.return}}function Nf(e){for(;V!==null;){var t=V;if(t===e){V=null;break}var n=t.sibling;if(n!==null){n.return=t.return,V=n;break}V=t.return}}function Rf(e){for(;V!==null;){var t=V;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Fo(4,t)}catch(s){Se(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(s){Se(t,i,s)}}var l=t.return;try{As(t)}catch(s){Se(t,l,s)}break;case 5:var o=t.return;try{As(t)}catch(s){Se(t,o,s)}}}catch(s){Se(t,t.return,s)}if(t===e){V=null;break}var u=t.sibling;if(u!==null){u.return=t.return,V=u;break}V=t.return}}var i0=Math.ceil,ho=rn.ReactCurrentDispatcher,Qa=rn.ReactCurrentOwner,ht=rn.ReactCurrentBatchConfig,oe=0,Le=null,be=null,Ae=0,nt=0,yr=Tn(0),ze=0,Ri=null,Qn=0,Oo=0,qa=0,hi=null,qe=null,Ya=0,Mr=1/0,Qt=null,mo=!1,Ds=null,kn=null,gl=!1,mn=null,go=0,mi=0,js=null,Rl=-1,Dl=0;function Ue(){return oe&6?Ce():Rl!==-1?Rl:Rl=Ce()}function Sn(e){return e.mode&1?oe&2&&Ae!==0?Ae&-Ae:$x.transition!==null?(Dl===0&&(Dl=Bd()),Dl):(e=ue,e!==0||(e=window.event,e=e===void 0?16:qd(e.type)),e):1}function Et(e,t,n,r){if(50<mi)throw mi=0,js=null,Error(D(185));Ui(e,n,r),(!(oe&2)||e!==Le)&&(e===Le&&(!(oe&2)&&(Oo|=n),ze===4&&dn(e,Ae)),Ze(e,r),n===1&&oe===0&&!(t.mode&1)&&(Mr=Ce()+500,Ro&&zn()))}function Ze(e,t){var n=e.callbackNode;$y(e,t);var r=Zl(e,e===Le?Ae:0);if(r===0)n!==null&&Uc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Uc(n),t===1)e.tag===0?Bx(Df.bind(null,e)):ph(Df.bind(null,e)),Dx(function(){!(oe&6)&&zn()}),n=null;else{switch($d(r)){case 1:n=wa;break;case 4:n=Fd;break;case 16:n=Kl;break;case 536870912:n=Od;break;default:n=Kl}n=cm(n,rm.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rm(e,t){if(Rl=-1,Dl=0,oe&6)throw Error(D(327));var n=e.callbackNode;if(_r()&&e.callbackNode!==n)return null;var r=Zl(e,e===Le?Ae:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=yo(e,r);else{t=r;var i=oe;oe|=2;var l=lm();(Le!==e||Ae!==t)&&(Qt=null,Mr=Ce()+500,Bn(e,t));do try{u0();break}catch(u){im(e,u)}while(!0);Aa(),ho.current=l,oe=i,be!==null?t=0:(Le=null,Ae=0,t=ze)}if(t!==0){if(t===2&&(i=cs(e),i!==0&&(r=i,t=Fs(e,i))),t===1)throw n=Ri,Bn(e,0),dn(e,r),Ze(e,Ce()),n;if(t===6)dn(e,r);else{if(i=e.current.alternate,!(r&30)&&!l0(i)&&(t=yo(e,r),t===2&&(l=cs(e),l!==0&&(r=l,t=Fs(e,l))),t===1))throw n=Ri,Bn(e,0),dn(e,r),Ze(e,Ce()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(D(345));case 2:Nn(e,qe,Qt);break;case 3:if(dn(e,r),(r&130023424)===r&&(t=Ya+500-Ce(),10<t)){if(Zl(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ue(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=xs(Nn.bind(null,e,qe,Qt),t);break}Nn(e,qe,Qt);break;case 4:if(dn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Ct(r);l=1<<o,o=t[o],o>i&&(i=o),r&=~l}if(r=i,r=Ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*i0(r/1960))-r,10<r){e.timeoutHandle=xs(Nn.bind(null,e,qe,Qt),r);break}Nn(e,qe,Qt);break;case 5:Nn(e,qe,Qt);break;default:throw Error(D(329))}}}return Ze(e,Ce()),e.callbackNode===n?rm.bind(null,e):null}function Fs(e,t){var n=hi;return e.current.memoizedState.isDehydrated&&(Bn(e,t).flags|=256),e=yo(e,t),e!==2&&(t=qe,qe=n,t!==null&&Os(t)),e}function Os(e){qe===null?qe=e:qe.push.apply(qe,e)}function l0(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],l=i.getSnapshot;i=i.value;try{if(!Tt(l(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 dn(e,t){for(t&=~qa,t&=~Oo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ct(t),r=1<<n;e[n]=-1,t&=~r}}function Df(e){if(oe&6)throw Error(D(327));_r();var t=Zl(e,0);if(!(t&1))return Ze(e,Ce()),null;var n=yo(e,t);if(e.tag!==0&&n===2){var r=cs(e);r!==0&&(t=r,n=Fs(e,r))}if(n===1)throw n=Ri,Bn(e,0),dn(e,t),Ze(e,Ce()),n;if(n===6)throw Error(D(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Nn(e,qe,Qt),Ze(e,Ce()),null}function Xa(e,t){var n=oe;oe|=1;try{return e(t)}finally{oe=n,oe===0&&(Mr=Ce()+500,Ro&&zn())}}function qn(e){mn!==null&&mn.tag===0&&!(oe&6)&&_r();var t=oe;oe|=1;var n=ht.transition,r=ue;try{if(ht.transition=null,ue=1,e)return e()}finally{ue=r,ht.transition=n,oe=t,!(oe&6)&&zn()}}function Ga(){nt=yr.current,ge(yr)}function Bn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Rx(n)),be!==null)for(n=be.return;n!==null;){var r=n;switch(Pa(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ro();break;case 3:Pr(),ge(Ge),ge(Oe),Oa();break;case 5:Fa(r);break;case 4:Pr();break;case 13:ge(ve);break;case 19:ge(ve);break;case 10:Na(r.type._context);break;case 22:case 23:Ga()}n=n.return}if(Le=e,be=e=_n(e.current,null),Ae=nt=t,ze=0,Ri=null,qa=Oo=Qn=0,qe=hi=null,jn!==null){for(t=0;t<jn.length;t++)if(n=jn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,l=n.pending;if(l!==null){var o=l.next;l.next=i,r.next=o}n.pending=r}jn=null}return e}function im(e,t){do{var n=be;try{if(Aa(),Ml.current=po,fo){for(var r=we.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}fo=!1}if(Wn=0,Pe=Te=we=null,pi=!1,Mi=0,Qa.current=null,n===null||n.return===null){ze=1,Ri=t,be=null;break}e:{var l=e,o=n.return,u=n,s=t;if(t=Ae,u.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var a=s,f=u,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var d=_f(o);if(d!==null){d.flags&=-257,Cf(d,o,u,l,t),d.mode&1&&Sf(l,a,t),t=d,s=a;var m=t.updateQueue;if(m===null){var w=new Set;w.add(s),t.updateQueue=w}else m.add(s);break e}else{if(!(t&1)){Sf(l,a,t),Ka();break e}s=Error(D(426))}}else if(xe&&u.mode&1){var E=_f(o);if(E!==null){!(E.flags&65536)&&(E.flags|=256),Cf(E,o,u,l,t),La(Lr(s,u));break e}}l=s=Lr(s,u),ze!==4&&(ze=2),hi===null?hi=[l]:hi.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var h=$h(l,s,t);gf(l,h);break e;case 1:u=s;var g=l.type,y=l.stateNode;if(!(l.flags&128)&&(typeof g.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(kn===null||!kn.has(y)))){l.flags|=65536,t&=-t,l.lanes|=t;var _=Hh(l,u,t);gf(l,_);break e}}l=l.return}while(l!==null)}um(n)}catch(I){t=I,be===n&&n!==null&&(be=n=n.return);continue}break}while(!0)}function lm(){var e=ho.current;return ho.current=po,e===null?po:e}function Ka(){(ze===0||ze===3||ze===2)&&(ze=4),Le===null||!(Qn&268435455)&&!(Oo&268435455)||dn(Le,Ae)}function yo(e,t){var n=oe;oe|=2;var r=lm();(Le!==e||Ae!==t)&&(Qt=null,Bn(e,t));do try{o0();break}catch(i){im(e,i)}while(!0);if(Aa(),oe=n,ho.current=r,be!==null)throw Error(D(261));return Le=null,Ae=0,ze}function o0(){for(;be!==null;)om(be)}function u0(){for(;be!==null&&!My();)om(be)}function om(e){var t=am(e.alternate,e,nt);e.memoizedProps=e.pendingProps,t===null?um(e):be=t,Qa.current=null}function um(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=e0(n,t),n!==null){n.flags&=32767,be=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ze=6,be=null;return}}else if(n=Jx(n,t,nt),n!==null){be=n;return}if(t=t.sibling,t!==null){be=t;return}be=t=e}while(t!==null);ze===0&&(ze=5)}function Nn(e,t,n){var r=ue,i=ht.transition;try{ht.transition=null,ue=1,s0(e,t,n,r)}finally{ht.transition=i,ue=r}return null}function s0(e,t,n,r){do _r();while(mn!==null);if(oe&6)throw Error(D(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(D(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(Hy(e,l),e===Le&&(be=Le=null,Ae=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||gl||(gl=!0,cm(Kl,function(){return _r(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=ht.transition,ht.transition=null;var o=ue;ue=1;var u=oe;oe|=4,Qa.current=null,n0(e,n),tm(n,e),zx(gs),Jl=!!ms,gs=ms=null,e.current=n,r0(n),Ay(),oe=u,ue=o,ht.transition=l}else e.current=n;if(gl&&(gl=!1,mn=e,go=i),l=e.pendingLanes,l===0&&(kn=null),Dy(n.stateNode),Ze(e,Ce()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(mo)throw mo=!1,e=Ds,Ds=null,e;return go&1&&e.tag!==0&&_r(),l=e.pendingLanes,l&1?e===js?mi++:(mi=0,js=e):mi=0,zn(),null}function _r(){if(mn!==null){var e=$d(go),t=ht.transition,n=ue;try{if(ht.transition=null,ue=16>e?16:e,mn===null)var r=!1;else{if(e=mn,mn=null,go=0,oe&6)throw Error(D(331));var i=oe;for(oe|=4,V=e.current;V!==null;){var l=V,o=l.child;if(V.flags&16){var u=l.deletions;if(u!==null){for(var s=0;s<u.length;s++){var a=u[s];for(V=a;V!==null;){var f=V;switch(f.tag){case 0:case 11:case 15:di(8,f,l)}var c=f.child;if(c!==null)c.return=f,V=c;else for(;V!==null;){f=V;var p=f.sibling,d=f.return;if(Zh(f),f===a){V=null;break}if(p!==null){p.return=d,V=p;break}V=d}}}var m=l.alternate;if(m!==null){var w=m.child;if(w!==null){m.child=null;do{var E=w.sibling;w.sibling=null,w=E}while(w!==null)}}V=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,V=o;else e:for(;V!==null;){if(l=V,l.flags&2048)switch(l.tag){case 0:case 11:case 15:di(9,l,l.return)}var h=l.sibling;if(h!==null){h.return=l.return,V=h;break e}V=l.return}}var g=e.current;for(V=g;V!==null;){o=V;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,V=y;else e:for(o=g;V!==null;){if(u=V,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:Fo(9,u)}}catch(I){Se(u,u.return,I)}if(u===o){V=null;break e}var _=u.sibling;if(_!==null){_.return=u.return,V=_;break e}V=u.return}}if(oe=i,zn(),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(Po,e)}catch{}r=!0}return r}finally{ue=n,ht.transition=t}}return!1}function jf(e,t,n){t=Lr(n,t),t=$h(e,t,1),e=wn(e,t,1),t=Ue(),e!==null&&(Ui(e,1,t),Ze(e,t))}function Se(e,t,n){if(e.tag===3)jf(e,e,n);else for(;t!==null;){if(t.tag===3){jf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(kn===null||!kn.has(r))){e=Lr(n,e),e=Hh(t,e,1),t=wn(t,e,1),e=Ue(),t!==null&&(Ui(t,1,e),Ze(t,e));break}}t=t.return}}function a0(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ue(),e.pingedLanes|=e.suspendedLanes&n,Le===e&&(Ae&n)===n&&(ze===4||ze===3&&(Ae&130023424)===Ae&&500>Ce()-Ya?Bn(e,0):qa|=n),Ze(e,t)}function sm(e,t){t===0&&(e.mode&1?(t=ol,ol<<=1,!(ol&130023424)&&(ol=4194304)):t=1);var n=Ue();e=en(e,t),e!==null&&(Ui(e,t,n),Ze(e,n))}function c0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sm(e,n)}function f0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(D(314))}r!==null&&r.delete(t),sm(e,n)}var am;am=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ge.current)Ye=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ye=!1,Zx(e,t,n);Ye=!!(e.flags&131072)}else Ye=!1,xe&&t.flags&1048576&&dh(t,oo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Nl(e,t),e=t.pendingProps;var i=Tr(t,Oe.current);Sr(t,n),i=$a(null,t,r,e,i,n);var l=Ha();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ke(r)?(l=!0,io(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Da(t),i.updater=jo,t.stateNode=i,i._reactInternals=t,Es(t,r,e,n),t=zs(null,t,r,!0,l,n)):(t.tag=0,xe&&l&&Ia(t),$e(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Nl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=d0(r),e=wt(r,e),i){case 0:t=Ts(null,t,r,e,n);break e;case 1:t=Tf(null,t,r,e,n);break e;case 11:t=Ef(null,t,r,e,n);break e;case 14:t=bf(null,t,r,wt(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wt(r,i),Ts(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wt(r,i),Tf(e,t,r,i,n);case 3:e:{if(Qh(t),e===null)throw Error(D(387));r=t.pendingProps,l=t.memoizedState,i=l.element,vh(e,t),ao(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=Lr(Error(D(423)),t),t=zf(e,t,r,n,i);break e}else if(r!==i){i=Lr(Error(D(424)),t),t=zf(e,t,r,n,i);break e}else for(rt=vn(t.stateNode.containerInfo.firstChild),it=t,xe=!0,St=null,n=yh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zr(),r===i){t=tn(e,t,n);break e}$e(e,t,r,n)}t=t.child}return t;case 5:return wh(t),e===null&&Ss(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,ys(r,i)?o=null:l!==null&&ys(r,l)&&(t.flags|=32),Wh(e,t),$e(e,t,o,n),t.child;case 6:return e===null&&Ss(t),null;case 13:return qh(e,t,n);case 4:return ja(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ir(t,null,r,n):$e(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wt(r,i),Ef(e,t,r,i,n);case 7:return $e(e,t,t.pendingProps,n),t.child;case 8:return $e(e,t,t.pendingProps.children,n),t.child;case 12:return $e(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value,pe(uo,r._currentValue),r._currentValue=o,l!==null)if(Tt(l.value,o)){if(l.children===i.children&&!Ge.current){t=tn(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){o=l.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(l.tag===1){s=Kt(-1,n&-n),s.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var f=a.pending;f===null?s.next=s:(s.next=f.next,f.next=s),a.pending=s}}l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),_s(l.return,n,t),u.lanes|=n;break}s=s.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(D(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),_s(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}$e(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Sr(t,n),i=gt(i),r=r(i),t.flags|=1,$e(e,t,r,n),t.child;case 14:return r=t.type,i=wt(r,t.pendingProps),i=wt(r.type,i),bf(e,t,r,i,n);case 15:return Uh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wt(r,i),Nl(e,t),t.tag=1,Ke(r)?(e=!0,io(t)):e=!1,Sr(t,n),Bh(t,r,i),Es(t,r,i,n),zs(null,t,r,!0,e,n);case 19:return Yh(e,t,n);case 22:return Vh(e,t,n)}throw Error(D(156,t.tag))};function cm(e,t){return jd(e,t)}function p0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dt(e,t,n,r){return new p0(e,t,n,r)}function Za(e){return e=e.prototype,!(!e||!e.isReactComponent)}function d0(e){if(typeof e=="function")return Za(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ya)return 11;if(e===xa)return 14}return 2}function _n(e,t){var n=e.alternate;return n===null?(n=dt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function jl(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")Za(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ur:return $n(n.children,i,l,t);case ga:o=8,i|=8;break;case Xu:return e=dt(12,n,t,i|2),e.elementType=Xu,e.lanes=l,e;case Gu:return e=dt(13,n,t,i),e.elementType=Gu,e.lanes=l,e;case Ku:return e=dt(19,n,t,i),e.elementType=Ku,e.lanes=l,e;case wd:return Bo(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xd:o=10;break e;case vd:o=9;break e;case ya:o=11;break e;case xa:o=14;break e;case an:o=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=dt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function $n(e,t,n,r){return e=dt(7,e,r,t),e.lanes=n,e}function Bo(e,t,n,r){return e=dt(22,e,r,t),e.elementType=wd,e.lanes=n,e.stateNode={isHidden:!1},e}function bu(e,t,n){return e=dt(6,e,null,t),e.lanes=n,e}function Tu(e,t,n){return t=dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function h0(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=uu(0),this.expirationTimes=uu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uu(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ja(e,t,n,r,i,l,o,u,s){return e=new h0(e,t,n,u,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=dt(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Da(l),e}function m0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:or,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function fm(e){if(!e)return En;e=e._reactInternals;e:{if(Kn(e)!==e||e.tag!==1)throw Error(D(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ke(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(D(171))}if(e.tag===1){var n=e.type;if(Ke(n))return fh(e,n,t)}return t}function pm(e,t,n,r,i,l,o,u,s){return e=Ja(n,r,!0,e,i,l,o,u,s),e.context=fm(null),n=e.current,r=Ue(),i=Sn(n),l=Kt(r,i),l.callback=t??null,wn(n,l,i),e.current.lanes=i,Ui(e,i,r),Ze(e,r),e}function $o(e,t,n,r){var i=t.current,l=Ue(),o=Sn(i);return n=fm(n),t.context===null?t.context=n:t.pendingContext=n,t=Kt(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=wn(i,t,o),e!==null&&(Et(e,i,o,l),Ll(e,i,o)),o}function xo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ff(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ec(e,t){Ff(e,t),(e=e.alternate)&&Ff(e,t)}function g0(){return null}var dm=typeof reportError=="function"?reportError:function(e){console.error(e)};function tc(e){this._internalRoot=e}Ho.prototype.render=tc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(D(409));$o(e,t,null,null)};Ho.prototype.unmount=tc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qn(function(){$o(null,e,null,null)}),t[Jt]=null}};function Ho(e){this._internalRoot=e}Ho.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vd();e={blockedOn:null,target:e,priority:t};for(var n=0;n<pn.length&&t!==0&&t<pn[n].priority;n++);pn.splice(n,0,e),n===0&&Qd(e)}};function nc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Uo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Of(){}function y0(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var a=xo(o);l.call(a)}}var o=pm(t,r,e,0,null,!1,!1,"",Of);return e._reactRootContainer=o,e[Jt]=o.current,Ti(e.nodeType===8?e.parentNode:e),qn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var u=r;r=function(){var a=xo(s);u.call(a)}}var s=Ja(e,0,!1,null,null,!1,!1,"",Of);return e._reactRootContainer=s,e[Jt]=s.current,Ti(e.nodeType===8?e.parentNode:e),qn(function(){$o(t,s,n,r)}),s}function Vo(e,t,n,r,i){var l=n._reactRootContainer;if(l){var o=l;if(typeof i=="function"){var u=i;i=function(){var s=xo(o);u.call(s)}}$o(t,o,e,i)}else o=y0(n,t,e,i,r);return xo(o)}Hd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ri(t.pendingLanes);n!==0&&(ka(t,n|1),Ze(t,Ce()),!(oe&6)&&(Mr=Ce()+500,zn()))}break;case 13:qn(function(){var r=en(e,1);if(r!==null){var i=Ue();Et(r,e,1,i)}}),ec(e,1)}};Sa=function(e){if(e.tag===13){var t=en(e,134217728);if(t!==null){var n=Ue();Et(t,e,134217728,n)}ec(e,134217728)}};Ud=function(e){if(e.tag===13){var t=Sn(e),n=en(e,t);if(n!==null){var r=Ue();Et(n,e,t,r)}ec(e,t)}};Vd=function(){return ue};Wd=function(e,t){var n=ue;try{return ue=e,t()}finally{ue=n}};us=function(e,t,n){switch(t){case"input":if(es(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=No(r);if(!i)throw Error(D(90));Sd(r),es(r,i)}}}break;case"textarea":Cd(e,n);break;case"select":t=n.value,t!=null&&xr(e,!!n.multiple,t,!1)}};Ld=Xa;Md=qn;var x0={usingClientEntryPoint:!1,Events:[Wi,fr,No,Id,Pd,Xa]},Gr={findFiberByHostInstance:Dn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},v0={bundleType:Gr.bundleType,version:Gr.version,rendererPackageName:Gr.rendererPackageName,rendererConfig:Gr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:rn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Rd(e),e===null?null:e.stateNode},findFiberByHostInstance:Gr.findFiberByHostInstance||g0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yl.isDisabled&&yl.supportsFiber)try{Po=yl.inject(v0),Rt=yl}catch{}}st.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x0;st.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!nc(t))throw Error(D(200));return m0(e,t,null,n)};st.createRoot=function(e,t){if(!nc(e))throw Error(D(299));var n=!1,r="",i=dm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Ja(e,1,!1,null,null,n,!1,r,i),e[Jt]=t.current,Ti(e.nodeType===8?e.parentNode:e),new tc(t)};st.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(D(188)):(e=Object.keys(e).join(","),Error(D(268,e)));return e=Rd(t),e=e===null?null:e.stateNode,e};st.flushSync=function(e){return qn(e)};st.hydrate=function(e,t,n){if(!Uo(t))throw Error(D(200));return Vo(null,e,t,!0,n)};st.hydrateRoot=function(e,t,n){if(!nc(e))throw Error(D(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",o=dm;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=pm(t,null,e,1,n??null,i,!1,l,o),e[Jt]=t.current,Ti(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Ho(t)};st.render=function(e,t,n){if(!Uo(t))throw Error(D(200));return Vo(null,e,t,!1,n)};st.unmountComponentAtNode=function(e){if(!Uo(e))throw Error(D(40));return e._reactRootContainer?(qn(function(){Vo(null,null,e,!1,function(){e._reactRootContainer=null,e[Jt]=null})}),!0):!1};st.unstable_batchedUpdates=Xa;st.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Uo(n))throw Error(D(200));if(e==null||e._reactInternals===void 0)throw Error(D(38));return Vo(e,t,n,!1,r)};st.version="18.3.1-next-f1338f8080-20240426";function hm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(hm)}catch(e){console.error(e)}}hm(),hd.exports=st;var w0=hd.exports,Bf=w0;qu.createRoot=Bf.createRoot,qu.hydrateRoot=Bf.hydrateRoot;var k0={value:()=>{}};function rc(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Fl(n)}function Fl(e){this._=e}function S0(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Fl.prototype=rc.prototype={constructor:Fl,on:function(e,t){var n=this._,r=S0(e+"",n),i,l=-1,o=r.length;if(arguments.length<2){for(;++l<o;)if((i=(e=r[l]).type)&&(i=_0(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++l<o;)if(i=(e=r[l]).type)n[i]=$f(n[i],e.name,t);else if(t==null)for(i in n)n[i]=$f(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Fl(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,l;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(l=this._[e],r=0,i=l.length;r<i;++r)l[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,l=r.length;i<l;++i)r[i].value.apply(t,n)}};function _0(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function $f(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=k0,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Bs="http://www.w3.org/1999/xhtml";const Hf={svg:"http://www.w3.org/2000/svg",xhtml:Bs,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Wo(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Hf.hasOwnProperty(t)?{space:Hf[t],local:e}:e}function C0(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Bs&&t.documentElement.namespaceURI===Bs?t.createElement(e):t.createElementNS(n,e)}}function E0(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function mm(e){var t=Wo(e);return(t.local?E0:C0)(t)}function b0(){}function ic(e){return e==null?b0:function(){return this.querySelector(e)}}function T0(e){typeof e!="function"&&(e=ic(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var l=t[i],o=l.length,u=r[i]=new Array(o),s,a,f=0;f<o;++f)(s=l[f])&&(a=e.call(s,s.__data__,f,l))&&("__data__"in s&&(a.__data__=s.__data__),u[f]=a);return new ut(r,this._parents)}function z0(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function I0(){return[]}function gm(e){return e==null?I0:function(){return this.querySelectorAll(e)}}function P0(e){return function(){return z0(e.apply(this,arguments))}}function L0(e){typeof e=="function"?e=P0(e):e=gm(e);for(var t=this._groups,n=t.length,r=[],i=[],l=0;l<n;++l)for(var o=t[l],u=o.length,s,a=0;a<u;++a)(s=o[a])&&(r.push(e.call(s,s.__data__,a,o)),i.push(s));return new ut(r,i)}function ym(e){return function(){return this.matches(e)}}function xm(e){return function(t){return t.matches(e)}}var M0=Array.prototype.find;function A0(e){return function(){return M0.call(this.children,e)}}function N0(){return this.firstElementChild}function R0(e){return this.select(e==null?N0:A0(typeof e=="function"?e:xm(e)))}var D0=Array.prototype.filter;function j0(){return Array.from(this.children)}function F0(e){return function(){return D0.call(this.children,e)}}function O0(e){return this.selectAll(e==null?j0:F0(typeof e=="function"?e:xm(e)))}function B0(e){typeof e!="function"&&(e=ym(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var l=t[i],o=l.length,u=r[i]=[],s,a=0;a<o;++a)(s=l[a])&&e.call(s,s.__data__,a,l)&&u.push(s);return new ut(r,this._parents)}function vm(e){return new Array(e.length)}function $0(){return new ut(this._enter||this._groups.map(vm),this._parents)}function vo(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}vo.prototype={constructor:vo,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function H0(e){return function(){return e}}function U0(e,t,n,r,i,l){for(var o=0,u,s=t.length,a=l.length;o<a;++o)(u=t[o])?(u.__data__=l[o],r[o]=u):n[o]=new vo(e,l[o]);for(;o<s;++o)(u=t[o])&&(i[o]=u)}function V0(e,t,n,r,i,l,o){var u,s,a=new Map,f=t.length,c=l.length,p=new Array(f),d;for(u=0;u<f;++u)(s=t[u])&&(p[u]=d=o.call(s,s.__data__,u,t)+"",a.has(d)?i[u]=s:a.set(d,s));for(u=0;u<c;++u)d=o.call(e,l[u],u,l)+"",(s=a.get(d))?(r[u]=s,s.__data__=l[u],a.delete(d)):n[u]=new vo(e,l[u]);for(u=0;u<f;++u)(s=t[u])&&a.get(p[u])===s&&(i[u]=s)}function W0(e){return e.__data__}function Q0(e,t){if(!arguments.length)return Array.from(this,W0);var n=t?V0:U0,r=this._parents,i=this._groups;typeof e!="function"&&(e=H0(e));for(var l=i.length,o=new Array(l),u=new Array(l),s=new Array(l),a=0;a<l;++a){var f=r[a],c=i[a],p=c.length,d=q0(e.call(f,f&&f.__data__,a,r)),m=d.length,w=u[a]=new Array(m),E=o[a]=new Array(m),h=s[a]=new Array(p);n(f,c,w,E,h,d,t);for(var g=0,y=0,_,I;g<m;++g)if(_=w[g]){for(g>=y&&(y=g+1);!(I=E[y])&&++y<m;);_._next=I||null}}return o=new ut(o,r),o._enter=u,o._exit=s,o}function q0(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Y0(){return new ut(this._exit||this._groups.map(vm),this._parents)}function X0(e,t,n){var r=this.enter(),i=this,l=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?l.remove():n(l),r&&i?r.merge(i).order():i}function G0(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,l=r.length,o=Math.min(i,l),u=new Array(i),s=0;s<o;++s)for(var a=n[s],f=r[s],c=a.length,p=u[s]=new Array(c),d,m=0;m<c;++m)(d=a[m]||f[m])&&(p[m]=d);for(;s<i;++s)u[s]=n[s];return new ut(u,this._parents)}function K0(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,l=r[i],o;--i>=0;)(o=r[i])&&(l&&o.compareDocumentPosition(l)^4&&l.parentNode.insertBefore(o,l),l=o);return this}function Z0(e){e||(e=J0);function t(c,p){return c&&p?e(c.__data__,p.__data__):!c-!p}for(var n=this._groups,r=n.length,i=new Array(r),l=0;l<r;++l){for(var o=n[l],u=o.length,s=i[l]=new Array(u),a,f=0;f<u;++f)(a=o[f])&&(s[f]=a);s.sort(t)}return new ut(i,this._parents).order()}function J0(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function e1(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function t1(){return Array.from(this)}function n1(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,l=r.length;i<l;++i){var o=r[i];if(o)return o}return null}function r1(){let e=0;for(const t of this)++e;return e}function i1(){return!this.node()}function l1(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],l=0,o=i.length,u;l<o;++l)(u=i[l])&&e.call(u,u.__data__,l,i);return this}function o1(e){return function(){this.removeAttribute(e)}}function u1(e){return function(){this.removeAttributeNS(e.space,e.local)}}function s1(e,t){return function(){this.setAttribute(e,t)}}function a1(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function c1(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function f1(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function p1(e,t){var n=Wo(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?u1:o1:typeof t=="function"?n.local?f1:c1:n.local?a1:s1)(n,t))}function wm(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function d1(e){return function(){this.style.removeProperty(e)}}function h1(e,t,n){return function(){this.style.setProperty(e,t,n)}}function m1(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function g1(e,t,n){return arguments.length>1?this.each((t==null?d1:typeof t=="function"?m1:h1)(e,t,n??"")):Ar(this.node(),e)}function Ar(e,t){return e.style.getPropertyValue(t)||wm(e).getComputedStyle(e,null).getPropertyValue(t)}function y1(e){return function(){delete this[e]}}function x1(e,t){return function(){this[e]=t}}function v1(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function w1(e,t){return arguments.length>1?this.each((t==null?y1:typeof t=="function"?v1:x1)(e,t)):this.node()[e]}function km(e){return e.trim().split(/^|\s+/)}function lc(e){return e.classList||new Sm(e)}function Sm(e){this._node=e,this._names=km(e.getAttribute("class")||"")}Sm.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function _m(e,t){for(var n=lc(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Cm(e,t){for(var n=lc(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function k1(e){return function(){_m(this,e)}}function S1(e){return function(){Cm(this,e)}}function _1(e,t){return function(){(t.apply(this,arguments)?_m:Cm)(this,e)}}function C1(e,t){var n=km(e+"");if(arguments.length<2){for(var r=lc(this.node()),i=-1,l=n.length;++i<l;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?_1:t?k1:S1)(n,t))}function E1(){this.textContent=""}function b1(e){return function(){this.textContent=e}}function T1(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function z1(e){return arguments.length?this.each(e==null?E1:(typeof e=="function"?T1:b1)(e)):this.node().textContent}function I1(){this.innerHTML=""}function P1(e){return function(){this.innerHTML=e}}function L1(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function M1(e){return arguments.length?this.each(e==null?I1:(typeof e=="function"?L1:P1)(e)):this.node().innerHTML}function A1(){this.nextSibling&&this.parentNode.appendChild(this)}function N1(){return this.each(A1)}function R1(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function D1(){return this.each(R1)}function j1(e){var t=typeof e=="function"?e:mm(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function F1(){return null}function O1(e,t){var n=typeof e=="function"?e:mm(e),r=t==null?F1:typeof t=="function"?t:ic(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function B1(){var e=this.parentNode;e&&e.removeChild(this)}function $1(){return this.each(B1)}function H1(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function U1(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function V1(e){return this.select(e?U1:H1)}function W1(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Q1(e){return function(t){e.call(this,t,this.__data__)}}function q1(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function Y1(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,l;n<i;++n)l=t[n],(!e.type||l.type===e.type)&&l.name===e.name?this.removeEventListener(l.type,l.listener,l.options):t[++r]=l;++r?t.length=r:delete this.__on}}}function X1(e,t,n){return function(){var r=this.__on,i,l=Q1(t);if(r){for(var o=0,u=r.length;o<u;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=l,i.options=n),i.value=t;return}}this.addEventListener(e.type,l,n),i={type:e.type,name:e.name,value:t,listener:l,options:n},r?r.push(i):this.__on=[i]}}function G1(e,t,n){var r=q1(e+""),i,l=r.length,o;if(arguments.length<2){var u=this.node().__on;if(u){for(var s=0,a=u.length,f;s<a;++s)for(i=0,f=u[s];i<l;++i)if((o=r[i]).type===f.type&&o.name===f.name)return f.value}return}for(u=t?X1:Y1,i=0;i<l;++i)this.each(u(r[i],t,n));return this}function Em(e,t,n){var r=wm(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function K1(e,t){return function(){return Em(this,e,t)}}function Z1(e,t){return function(){return Em(this,e,t.apply(this,arguments))}}function J1(e,t){return this.each((typeof t=="function"?Z1:K1)(e,t))}function*ev(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,l=r.length,o;i<l;++i)(o=r[i])&&(yield o)}var bm=[null];function ut(e,t){this._groups=e,this._parents=t}function qi(){return new ut([[document.documentElement]],bm)}function tv(){return this}ut.prototype=qi.prototype={constructor:ut,select:T0,selectAll:L0,selectChild:R0,selectChildren:O0,filter:B0,data:Q0,enter:$0,exit:Y0,join:X0,merge:G0,selection:tv,order:K0,sort:Z0,call:e1,nodes:t1,node:n1,size:r1,empty:i1,each:l1,attr:p1,style:g1,property:w1,classed:C1,text:z1,html:M1,raise:N1,lower:D1,append:j1,insert:O1,remove:$1,clone:V1,datum:W1,on:G1,dispatch:J1,[Symbol.iterator]:ev};function Nt(e){return typeof e=="string"?new ut([[document.querySelector(e)]],[document.documentElement]):new ut([[e]],bm)}function nv(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Ln(e,t){if(e=nv(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const $s={capture:!0,passive:!1};function Hs(e){e.preventDefault(),e.stopImmediatePropagation()}function rv(e){var t=e.document.documentElement,n=Nt(e).on("dragstart.drag",Hs,$s);"onselectstart"in t?n.on("selectstart.drag",Hs,$s):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function iv(e,t){var n=e.document.documentElement,r=Nt(e).on("dragstart.drag",null);t&&(r.on("click.drag",Hs,$s),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function oc(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Tm(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Yi(){}var Di=.7,wo=1/Di,Cr="\\s*([+-]?\\d+)\\s*",ji="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",jt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",lv=/^#([0-9a-f]{3,8})$/,ov=new RegExp(`^rgb\\(${Cr},${Cr},${Cr}\\)$`),uv=new RegExp(`^rgb\\(${jt},${jt},${jt}\\)$`),sv=new RegExp(`^rgba\\(${Cr},${Cr},${Cr},${ji}\\)$`),av=new RegExp(`^rgba\\(${jt},${jt},${jt},${ji}\\)$`),cv=new RegExp(`^hsl\\(${ji},${jt},${jt}\\)$`),fv=new RegExp(`^hsla\\(${ji},${jt},${jt},${ji}\\)$`),Uf={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};oc(Yi,Fi,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Vf,formatHex:Vf,formatHex8:pv,formatHsl:dv,formatRgb:Wf,toString:Wf});function Vf(){return this.rgb().formatHex()}function pv(){return this.rgb().formatHex8()}function dv(){return zm(this).formatHsl()}function Wf(){return this.rgb().formatRgb()}function Fi(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=lv.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Qf(t):n===3?new Xe(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?xl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?xl(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=ov.exec(e))?new Xe(t[1],t[2],t[3],1):(t=uv.exec(e))?new Xe(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=sv.exec(e))?xl(t[1],t[2],t[3],t[4]):(t=av.exec(e))?xl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=cv.exec(e))?Xf(t[1],t[2]/100,t[3]/100,1):(t=fv.exec(e))?Xf(t[1],t[2]/100,t[3]/100,t[4]):Uf.hasOwnProperty(e)?Qf(Uf[e]):e==="transparent"?new Xe(NaN,NaN,NaN,0):null}function Qf(e){return new Xe(e>>16&255,e>>8&255,e&255,1)}function xl(e,t,n,r){return r<=0&&(e=t=n=NaN),new Xe(e,t,n,r)}function hv(e){return e instanceof Yi||(e=Fi(e)),e?(e=e.rgb(),new Xe(e.r,e.g,e.b,e.opacity)):new Xe}function Us(e,t,n,r){return arguments.length===1?hv(e):new Xe(e,t,n,r??1)}function Xe(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}oc(Xe,Us,Tm(Yi,{brighter(e){return e=e==null?wo:Math.pow(wo,e),new Xe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Di:Math.pow(Di,e),new Xe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xe(Hn(this.r),Hn(this.g),Hn(this.b),ko(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:qf,formatHex:qf,formatHex8:mv,formatRgb:Yf,toString:Yf}));function qf(){return`#${On(this.r)}${On(this.g)}${On(this.b)}`}function mv(){return`#${On(this.r)}${On(this.g)}${On(this.b)}${On((isNaN(this.opacity)?1:this.opacity)*255)}`}function Yf(){const e=ko(this.opacity);return`${e===1?"rgb(":"rgba("}${Hn(this.r)}, ${Hn(this.g)}, ${Hn(this.b)}${e===1?")":`, ${e})`}`}function ko(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Hn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function On(e){return e=Hn(e),(e<16?"0":"")+e.toString(16)}function Xf(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _t(e,t,n,r)}function zm(e){if(e instanceof _t)return new _t(e.h,e.s,e.l,e.opacity);if(e instanceof Yi||(e=Fi(e)),!e)return new _t;if(e instanceof _t)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),l=Math.max(t,n,r),o=NaN,u=l-i,s=(l+i)/2;return u?(t===l?o=(n-r)/u+(n<r)*6:n===l?o=(r-t)/u+2:o=(t-n)/u+4,u/=s<.5?l+i:2-l-i,o*=60):u=s>0&&s<1?0:o,new _t(o,u,s,e.opacity)}function gv(e,t,n,r){return arguments.length===1?zm(e):new _t(e,t,n,r??1)}function _t(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}oc(_t,gv,Tm(Yi,{brighter(e){return e=e==null?wo:Math.pow(wo,e),new _t(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Di:Math.pow(Di,e),new _t(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Xe(zu(e>=240?e-240:e+120,i,r),zu(e,i,r),zu(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new _t(Gf(this.h),vl(this.s),vl(this.l),ko(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ko(this.opacity);return`${e===1?"hsl(":"hsla("}${Gf(this.h)}, ${vl(this.s)*100}%, ${vl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Gf(e){return e=(e||0)%360,e<0?e+360:e}function vl(e){return Math.max(0,Math.min(1,e||0))}function zu(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Im=e=>()=>e;function yv(e,t){return function(n){return e+n*t}}function xv(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function vv(e){return(e=+e)==1?Pm:function(t,n){return n-t?xv(t,n,e):Im(isNaN(t)?n:t)}}function Pm(e,t){var n=t-e;return n?yv(e,n):Im(isNaN(e)?t:e)}const Kf=function e(t){var n=vv(t);function r(i,l){var o=n((i=Us(i)).r,(l=Us(l)).r),u=n(i.g,l.g),s=n(i.b,l.b),a=Pm(i.opacity,l.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=s(f),i.opacity=a(f),i+""}}return r.gamma=e,r}(1);function fn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Vs=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Iu=new RegExp(Vs.source,"g");function wv(e){return function(){return e}}function kv(e){return function(t){return e(t)+""}}function Sv(e,t){var n=Vs.lastIndex=Iu.lastIndex=0,r,i,l,o=-1,u=[],s=[];for(e=e+"",t=t+"";(r=Vs.exec(e))&&(i=Iu.exec(t));)(l=i.index)>n&&(l=t.slice(n,l),u[o]?u[o]+=l:u[++o]=l),(r=r[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:fn(r,i)})),n=Iu.lastIndex;return n<t.length&&(l=t.slice(n),u[o]?u[o]+=l:u[++o]=l),u.length<2?s[0]?kv(s[0].x):wv(t):(t=s.length,function(a){for(var f=0,c;f<t;++f)u[(c=s[f]).i]=c.x(a);return u.join("")})}var Zf=180/Math.PI,Ws={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Lm(e,t,n,r,i,l){var o,u,s;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(s=e*n+t*r)&&(n-=e*s,r-=t*s),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,s/=u),e*r<t*n&&(e=-e,t=-t,s=-s,o=-o),{translateX:i,translateY:l,rotate:Math.atan2(t,e)*Zf,skewX:Math.atan(s)*Zf,scaleX:o,scaleY:u}}var wl;function _v(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Ws:Lm(t.a,t.b,t.c,t.d,t.e,t.f)}function Cv(e){return e==null||(wl||(wl=document.createElementNS("http://www.w3.org/2000/svg","g")),wl.setAttribute("transform",e),!(e=wl.transform.baseVal.consolidate()))?Ws:(e=e.matrix,Lm(e.a,e.b,e.c,e.d,e.e,e.f))}function Mm(e,t,n,r){function i(a){return a.length?a.pop()+" ":""}function l(a,f,c,p,d,m){if(a!==c||f!==p){var w=d.push("translate(",null,t,null,n);m.push({i:w-4,x:fn(a,c)},{i:w-2,x:fn(f,p)})}else(c||p)&&d.push("translate("+c+t+p+n)}function o(a,f,c,p){a!==f?(a-f>180?f+=360:f-a>180&&(a+=360),p.push({i:c.push(i(c)+"rotate(",null,r)-2,x:fn(a,f)})):f&&c.push(i(c)+"rotate("+f+r)}function u(a,f,c,p){a!==f?p.push({i:c.push(i(c)+"skewX(",null,r)-2,x:fn(a,f)}):f&&c.push(i(c)+"skewX("+f+r)}function s(a,f,c,p,d,m){if(a!==c||f!==p){var w=d.push(i(d)+"scale(",null,",",null,")");m.push({i:w-4,x:fn(a,c)},{i:w-2,x:fn(f,p)})}else(c!==1||p!==1)&&d.push(i(d)+"scale("+c+","+p+")")}return function(a,f){var c=[],p=[];return a=e(a),f=e(f),l(a.translateX,a.translateY,f.translateX,f.translateY,c,p),o(a.rotate,f.rotate,c,p),u(a.skewX,f.skewX,c,p),s(a.scaleX,a.scaleY,f.scaleX,f.scaleY,c,p),a=f=null,function(d){for(var m=-1,w=p.length,E;++m<w;)c[(E=p[m]).i]=E.x(d);return c.join("")}}}var Ev=Mm(_v,"px, ","px)","deg)"),bv=Mm(Cv,", ",")",")"),Tv=1e-12;function Jf(e){return((e=Math.exp(e))+1/e)/2}function zv(e){return((e=Math.exp(e))-1/e)/2}function Iv(e){return((e=Math.exp(2*e))-1)/(e+1)}const Pv=function e(t,n,r){function i(l,o){var u=l[0],s=l[1],a=l[2],f=o[0],c=o[1],p=o[2],d=f-u,m=c-s,w=d*d+m*m,E,h;if(w<Tv)h=Math.log(p/a)/t,E=function(A){return[u+A*d,s+A*m,a*Math.exp(t*A*h)]};else{var g=Math.sqrt(w),y=(p*p-a*a+r*w)/(2*a*n*g),_=(p*p-a*a-r*w)/(2*p*n*g),I=Math.log(Math.sqrt(y*y+1)-y),C=Math.log(Math.sqrt(_*_+1)-_);h=(C-I)/t,E=function(A){var F=A*h,Q=Jf(I),b=a/(n*g)*(Q*Iv(t*F+I)-zv(I));return[u+b*d,s+b*m,a*Q/Jf(t*F+I)]}}return E.duration=h*1e3*t/Math.SQRT2,E}return i.rho=function(l){var o=Math.max(.001,+l),u=o*o,s=u*u;return e(o,u,s)},i}(Math.SQRT2,2,4);var Nr=0,li=0,Kr=0,Am=1e3,So,oi,_o=0,Yn=0,Qo=0,Oi=typeof performance=="object"&&performance.now?performance:Date,Nm=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function uc(){return Yn||(Nm(Lv),Yn=Oi.now()+Qo)}function Lv(){Yn=0}function Co(){this._call=this._time=this._next=null}Co.prototype=Rm.prototype={constructor:Co,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?uc():+n)+(t==null?0:+t),!this._next&&oi!==this&&(oi?oi._next=this:So=this,oi=this),this._call=e,this._time=n,Qs()},stop:function(){this._call&&(this._call=null,this._time=1/0,Qs())}};function Rm(e,t,n){var r=new Co;return r.restart(e,t,n),r}function Mv(){uc(),++Nr;for(var e=So,t;e;)(t=Yn-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Nr}function ep(){Yn=(_o=Oi.now())+Qo,Nr=li=0;try{Mv()}finally{Nr=0,Nv(),Yn=0}}function Av(){var e=Oi.now(),t=e-_o;t>Am&&(Qo-=t,_o=e)}function Nv(){for(var e,t=So,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:So=n);oi=e,Qs(r)}function Qs(e){if(!Nr){li&&(li=clearTimeout(li));var t=e-Yn;t>24?(e<1/0&&(li=setTimeout(ep,e-Oi.now()-Qo)),Kr&&(Kr=clearInterval(Kr))):(Kr||(_o=Oi.now(),Kr=setInterval(Av,Am)),Nr=1,Nm(ep))}}function tp(e,t,n){var r=new Co;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var Rv=rc("start","end","cancel","interrupt"),Dv=[],Dm=0,np=1,qs=2,Ol=3,rp=4,Ys=5,Bl=6;function qo(e,t,n,r,i,l){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;jv(e,n,{name:t,index:r,group:i,on:Rv,tween:Dv,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:Dm})}function sc(e,t){var n=zt(e,t);if(n.state>Dm)throw new Error("too late; already scheduled");return n}function Ft(e,t){var n=zt(e,t);if(n.state>Ol)throw new Error("too late; already running");return n}function zt(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function jv(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Rm(l,0,n.time);function l(a){n.state=np,n.timer.restart(o,n.delay,n.time),n.delay<=a&&o(a-n.delay)}function o(a){var f,c,p,d;if(n.state!==np)return s();for(f in r)if(d=r[f],d.name===n.name){if(d.state===Ol)return tp(o);d.state===rp?(d.state=Bl,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete r[f]):+f<t&&(d.state=Bl,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete r[f])}if(tp(function(){n.state===Ol&&(n.state=rp,n.timer.restart(u,n.delay,n.time),u(a))}),n.state=qs,n.on.call("start",e,e.__data__,n.index,n.group),n.state===qs){for(n.state=Ol,i=new Array(p=n.tween.length),f=0,c=-1;f<p;++f)(d=n.tween[f].value.call(e,e.__data__,n.index,n.group))&&(i[++c]=d);i.length=c+1}}function u(a){for(var f=a<n.duration?n.ease.call(null,a/n.duration):(n.timer.restart(s),n.state=Ys,1),c=-1,p=i.length;++c<p;)i[c].call(e,f);n.state===Ys&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){n.state=Bl,n.timer.stop(),delete r[t];for(var a in r)return;delete e.__transition}}function $l(e,t){var n=e.__transition,r,i,l=!0,o;if(n){t=t==null?null:t+"";for(o in n){if((r=n[o]).name!==t){l=!1;continue}i=r.state>qs&&r.state<Ys,r.state=Bl,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[o]}l&&delete e.__transition}}function Fv(e){return this.each(function(){$l(this,e)})}function Ov(e,t){var n,r;return function(){var i=Ft(this,e),l=i.tween;if(l!==n){r=n=l;for(var o=0,u=r.length;o<u;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Bv(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var l=Ft(this,e),o=l.tween;if(o!==r){i=(r=o).slice();for(var u={name:t,value:n},s=0,a=i.length;s<a;++s)if(i[s].name===t){i[s]=u;break}s===a&&i.push(u)}l.tween=i}}function $v(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=zt(this.node(),n).tween,i=0,l=r.length,o;i<l;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Ov:Bv)(n,e,t))}function ac(e,t,n){var r=e._id;return e.each(function(){var i=Ft(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return zt(i,r).value[t]}}function jm(e,t){var n;return(typeof t=="number"?fn:t instanceof Fi?Kf:(n=Fi(t))?(t=n,Kf):Sv)(e,t)}function Hv(e){return function(){this.removeAttribute(e)}}function Uv(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Vv(e,t,n){var r,i=n+"",l;return function(){var o=this.getAttribute(e);return o===i?null:o===r?l:l=t(r=o,n)}}function Wv(e,t,n){var r,i=n+"",l;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?l:l=t(r=o,n)}}function Qv(e,t,n){var r,i,l;return function(){var o,u=n(this),s;return u==null?void this.removeAttribute(e):(o=this.getAttribute(e),s=u+"",o===s?null:o===r&&s===i?l:(i=s,l=t(r=o,u)))}}function qv(e,t,n){var r,i,l;return function(){var o,u=n(this),s;return u==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),s=u+"",o===s?null:o===r&&s===i?l:(i=s,l=t(r=o,u)))}}function Yv(e,t){var n=Wo(e),r=n==="transform"?bv:jm;return this.attrTween(e,typeof t=="function"?(n.local?qv:Qv)(n,r,ac(this,"attr."+e,t)):t==null?(n.local?Uv:Hv)(n):(n.local?Wv:Vv)(n,r,t))}function Xv(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Gv(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Kv(e,t){var n,r;function i(){var l=t.apply(this,arguments);return l!==r&&(n=(r=l)&&Gv(e,l)),n}return i._value=t,i}function Zv(e,t){var n,r;function i(){var l=t.apply(this,arguments);return l!==r&&(n=(r=l)&&Xv(e,l)),n}return i._value=t,i}function Jv(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=Wo(e);return this.tween(n,(r.local?Kv:Zv)(r,t))}function ew(e,t){return function(){sc(this,e).delay=+t.apply(this,arguments)}}function tw(e,t){return t=+t,function(){sc(this,e).delay=t}}function nw(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ew:tw)(t,e)):zt(this.node(),t).delay}function rw(e,t){return function(){Ft(this,e).duration=+t.apply(this,arguments)}}function iw(e,t){return t=+t,function(){Ft(this,e).duration=t}}function lw(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?rw:iw)(t,e)):zt(this.node(),t).duration}function ow(e,t){if(typeof t!="function")throw new Error;return function(){Ft(this,e).ease=t}}function uw(e){var t=this._id;return arguments.length?this.each(ow(t,e)):zt(this.node(),t).ease}function sw(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Ft(this,e).ease=n}}function aw(e){if(typeof e!="function")throw new Error;return this.each(sw(this._id,e))}function cw(e){typeof e!="function"&&(e=ym(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var l=t[i],o=l.length,u=r[i]=[],s,a=0;a<o;++a)(s=l[a])&&e.call(s,s.__data__,a,l)&&u.push(s);return new nn(r,this._parents,this._name,this._id)}function fw(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,l=Math.min(r,i),o=new Array(r),u=0;u<l;++u)for(var s=t[u],a=n[u],f=s.length,c=o[u]=new Array(f),p,d=0;d<f;++d)(p=s[d]||a[d])&&(c[d]=p);for(;u<r;++u)o[u]=t[u];return new nn(o,this._parents,this._name,this._id)}function pw(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function dw(e,t,n){var r,i,l=pw(t)?sc:Ft;return function(){var o=l(this,e),u=o.on;u!==r&&(i=(r=u).copy()).on(t,n),o.on=i}}function hw(e,t){var n=this._id;return arguments.length<2?zt(this.node(),n).on.on(e):this.each(dw(n,e,t))}function mw(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function gw(){return this.on("end.remove",mw(this._id))}function yw(e){var t=this._name,n=this._id;typeof e!="function"&&(e=ic(e));for(var r=this._groups,i=r.length,l=new Array(i),o=0;o<i;++o)for(var u=r[o],s=u.length,a=l[o]=new Array(s),f,c,p=0;p<s;++p)(f=u[p])&&(c=e.call(f,f.__data__,p,u))&&("__data__"in f&&(c.__data__=f.__data__),a[p]=c,qo(a[p],t,n,p,a,zt(f,n)));return new nn(l,this._parents,t,n)}function xw(e){var t=this._name,n=this._id;typeof e!="function"&&(e=gm(e));for(var r=this._groups,i=r.length,l=[],o=[],u=0;u<i;++u)for(var s=r[u],a=s.length,f,c=0;c<a;++c)if(f=s[c]){for(var p=e.call(f,f.__data__,c,s),d,m=zt(f,n),w=0,E=p.length;w<E;++w)(d=p[w])&&qo(d,t,n,w,p,m);l.push(p),o.push(f)}return new nn(l,o,t,n)}var vw=qi.prototype.constructor;function ww(){return new vw(this._groups,this._parents)}function kw(e,t){var n,r,i;return function(){var l=Ar(this,e),o=(this.style.removeProperty(e),Ar(this,e));return l===o?null:l===n&&o===r?i:i=t(n=l,r=o)}}function Fm(e){return function(){this.style.removeProperty(e)}}function Sw(e,t,n){var r,i=n+"",l;return function(){var o=Ar(this,e);return o===i?null:o===r?l:l=t(r=o,n)}}function _w(e,t,n){var r,i,l;return function(){var o=Ar(this,e),u=n(this),s=u+"";return u==null&&(s=u=(this.style.removeProperty(e),Ar(this,e))),o===s?null:o===r&&s===i?l:(i=s,l=t(r=o,u))}}function Cw(e,t){var n,r,i,l="style."+t,o="end."+l,u;return function(){var s=Ft(this,e),a=s.on,f=s.value[l]==null?u||(u=Fm(t)):void 0;(a!==n||i!==f)&&(r=(n=a).copy()).on(o,i=f),s.on=r}}function Ew(e,t,n){var r=(e+="")=="transform"?Ev:jm;return t==null?this.styleTween(e,kw(e,r)).on("end.style."+e,Fm(e)):typeof t=="function"?this.styleTween(e,_w(e,r,ac(this,"style."+e,t))).each(Cw(this._id,e)):this.styleTween(e,Sw(e,r,t),n).on("end.style."+e,null)}function bw(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Tw(e,t,n){var r,i;function l(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&bw(e,o,n)),r}return l._value=t,l}function zw(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,Tw(e,t,n??""))}function Iw(e){return function(){this.textContent=e}}function Pw(e){return function(){var t=e(this);this.textContent=t??""}}function Lw(e){return this.tween("text",typeof e=="function"?Pw(ac(this,"text",e)):Iw(e==null?"":e+""))}function Mw(e){return function(t){this.textContent=e.call(this,t)}}function Aw(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&Mw(i)),t}return r._value=e,r}function Nw(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Aw(e))}function Rw(){for(var e=this._name,t=this._id,n=Om(),r=this._groups,i=r.length,l=0;l<i;++l)for(var o=r[l],u=o.length,s,a=0;a<u;++a)if(s=o[a]){var f=zt(s,t);qo(s,e,n,a,o,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new nn(r,this._parents,e,n)}function Dw(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(l,o){var u={value:o},s={value:function(){--i===0&&l()}};n.each(function(){var a=Ft(this,r),f=a.on;f!==e&&(t=(e=f).copy(),t._.cancel.push(u),t._.interrupt.push(u),t._.end.push(s)),a.on=t}),i===0&&l()})}var jw=0;function nn(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Om(){return++jw}var Wt=qi.prototype;nn.prototype={constructor:nn,select:yw,selectAll:xw,selectChild:Wt.selectChild,selectChildren:Wt.selectChildren,filter:cw,merge:fw,selection:ww,transition:Rw,call:Wt.call,nodes:Wt.nodes,node:Wt.node,size:Wt.size,empty:Wt.empty,each:Wt.each,on:hw,attr:Yv,attrTween:Jv,style:Ew,styleTween:zw,text:Lw,textTween:Nw,remove:gw,tween:$v,delay:nw,duration:lw,ease:uw,easeVarying:aw,end:Dw,[Symbol.iterator]:Wt[Symbol.iterator]};function Fw(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Ow={time:null,delay:0,duration:250,ease:Fw};function Bw(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function $w(e){var t,n;e instanceof nn?(t=e._id,e=e._name):(t=Om(),(n=Ow).time=uc(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,l=0;l<i;++l)for(var o=r[l],u=o.length,s,a=0;a<u;++a)(s=o[a])&&qo(s,e,t,a,o,n||Bw(s,t));return new nn(r,this._parents,e,t)}qi.prototype.interrupt=Fv;qi.prototype.transition=$w;const kl=e=>()=>e;function Hw(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Gt(e,t,n){this.k=e,this.x=t,this.y=n}Gt.prototype={constructor:Gt,scale:function(e){return e===1?this:new Gt(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Gt(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var cc=new Gt(1,0,0);Gt.prototype;function Pu(e){e.stopImmediatePropagation()}function Zr(e){e.preventDefault(),e.stopImmediatePropagation()}function Uw(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Vw(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function ip(){return this.__zoom||cc}function Ww(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Qw(){return navigator.maxTouchPoints||"ontouchstart"in this}function qw(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],l=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>l?(l+o)/2:Math.min(0,l)||Math.max(0,o))}function Yw(){var e=Uw,t=Vw,n=qw,r=Ww,i=Qw,l=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],u=250,s=Pv,a=rc("start","zoom","end"),f,c,p,d=500,m=150,w=0,E=10;function h(z){z.property("__zoom",ip).on("wheel.zoom",F,{passive:!1}).on("mousedown.zoom",Q).on("dblclick.zoom",b).filter(i).on("touchstart.zoom",$).on("touchmove.zoom",H).on("touchend.zoom touchcancel.zoom",Z).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}h.transform=function(z,T,P,R){var L=z.selection?z.selection():z;L.property("__zoom",ip),z!==L?I(z,T,P,R):L.interrupt().each(function(){C(this,arguments).event(R).start().zoom(null,typeof T=="function"?T.apply(this,arguments):T).end()})},h.scaleBy=function(z,T,P,R){h.scaleTo(z,function(){var L=this.__zoom.k,N=typeof T=="function"?T.apply(this,arguments):T;return L*N},P,R)},h.scaleTo=function(z,T,P,R){h.transform(z,function(){var L=t.apply(this,arguments),N=this.__zoom,x=P==null?_(L):typeof P=="function"?P.apply(this,arguments):P,U=N.invert(x),W=typeof T=="function"?T.apply(this,arguments):T;return n(y(g(N,W),x,U),L,o)},P,R)},h.translateBy=function(z,T,P,R){h.transform(z,function(){return n(this.__zoom.translate(typeof T=="function"?T.apply(this,arguments):T,typeof P=="function"?P.apply(this,arguments):P),t.apply(this,arguments),o)},null,R)},h.translateTo=function(z,T,P,R,L){h.transform(z,function(){var N=t.apply(this,arguments),x=this.__zoom,U=R==null?_(N):typeof R=="function"?R.apply(this,arguments):R;return n(cc.translate(U[0],U[1]).scale(x.k).translate(typeof T=="function"?-T.apply(this,arguments):-T,typeof P=="function"?-P.apply(this,arguments):-P),N,o)},R,L)};function g(z,T){return T=Math.max(l[0],Math.min(l[1],T)),T===z.k?z:new Gt(T,z.x,z.y)}function y(z,T,P){var R=T[0]-P[0]*z.k,L=T[1]-P[1]*z.k;return R===z.x&&L===z.y?z:new Gt(z.k,R,L)}function _(z){return[(+z[0][0]+ +z[1][0])/2,(+z[0][1]+ +z[1][1])/2]}function I(z,T,P,R){z.on("start.zoom",function(){C(this,arguments).event(R).start()}).on("interrupt.zoom end.zoom",function(){C(this,arguments).event(R).end()}).tween("zoom",function(){var L=this,N=arguments,x=C(L,N).event(R),U=t.apply(L,N),W=P==null?_(U):typeof P=="function"?P.apply(L,N):P,k=Math.max(U[1][0]-U[0][0],U[1][1]-U[0][1]),J=L.__zoom,de=typeof T=="function"?T.apply(L,N):T,ee=s(J.invert(W).concat(k/J.k),de.invert(W).concat(k/de.k));return function(he){if(he===1)he=de;else{var ye=ee(he),se=k/ye[2];he=new Gt(se,W[0]-ye[0]*se,W[1]-ye[1]*se)}x.zoom(null,he)}})}function C(z,T,P){return!P&&z.__zooming||new A(z,T)}function A(z,T){this.that=z,this.args=T,this.active=0,this.sourceEvent=null,this.extent=t.apply(z,T),this.taps=0}A.prototype={event:function(z){return z&&(this.sourceEvent=z),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(z,T){return this.mouse&&z!=="mouse"&&(this.mouse[1]=T.invert(this.mouse[0])),this.touch0&&z!=="touch"&&(this.touch0[1]=T.invert(this.touch0[0])),this.touch1&&z!=="touch"&&(this.touch1[1]=T.invert(this.touch1[0])),this.that.__zoom=T,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(z){var T=Nt(this.that).datum();a.call(z,this.that,new Hw(z,{sourceEvent:this.sourceEvent,target:h,transform:this.that.__zoom,dispatch:a}),T)}};function F(z,...T){if(!e.apply(this,arguments))return;var P=C(this,T).event(z),R=this.__zoom,L=Math.max(l[0],Math.min(l[1],R.k*Math.pow(2,r.apply(this,arguments)))),N=Ln(z);if(P.wheel)(P.mouse[0][0]!==N[0]||P.mouse[0][1]!==N[1])&&(P.mouse[1]=R.invert(P.mouse[0]=N)),clearTimeout(P.wheel);else{if(R.k===L)return;P.mouse=[N,R.invert(N)],$l(this),P.start()}Zr(z),P.wheel=setTimeout(x,m),P.zoom("mouse",n(y(g(R,L),P.mouse[0],P.mouse[1]),P.extent,o));function x(){P.wheel=null,P.end()}}function Q(z,...T){if(p||!e.apply(this,arguments))return;var P=z.currentTarget,R=C(this,T,!0).event(z),L=Nt(z.view).on("mousemove.zoom",W,!0).on("mouseup.zoom",k,!0),N=Ln(z,P),x=z.clientX,U=z.clientY;rv(z.view),Pu(z),R.mouse=[N,this.__zoom.invert(N)],$l(this),R.start();function W(J){if(Zr(J),!R.moved){var de=J.clientX-x,ee=J.clientY-U;R.moved=de*de+ee*ee>w}R.event(J).zoom("mouse",n(y(R.that.__zoom,R.mouse[0]=Ln(J,P),R.mouse[1]),R.extent,o))}function k(J){L.on("mousemove.zoom mouseup.zoom",null),iv(J.view,R.moved),Zr(J),R.event(J).end()}}function b(z,...T){if(e.apply(this,arguments)){var P=this.__zoom,R=Ln(z.changedTouches?z.changedTouches[0]:z,this),L=P.invert(R),N=P.k*(z.shiftKey?.5:2),x=n(y(g(P,N),R,L),t.apply(this,T),o);Zr(z),u>0?Nt(this).transition().duration(u).call(I,x,R,z):Nt(this).call(h.transform,x,R,z)}}function $(z,...T){if(e.apply(this,arguments)){var P=z.touches,R=P.length,L=C(this,T,z.changedTouches.length===R).event(z),N,x,U,W;for(Pu(z),x=0;x<R;++x)U=P[x],W=Ln(U,this),W=[W,this.__zoom.invert(W),U.identifier],L.touch0?!L.touch1&&L.touch0[2]!==W[2]&&(L.touch1=W,L.taps=0):(L.touch0=W,N=!0,L.taps=1+!!f);f&&(f=clearTimeout(f)),N&&(L.taps<2&&(c=W[0],f=setTimeout(function(){f=null},d)),$l(this),L.start())}}function H(z,...T){if(this.__zooming){var P=C(this,T).event(z),R=z.changedTouches,L=R.length,N,x,U,W;for(Zr(z),N=0;N<L;++N)x=R[N],U=Ln(x,this),P.touch0&&P.touch0[2]===x.identifier?P.touch0[0]=U:P.touch1&&P.touch1[2]===x.identifier&&(P.touch1[0]=U);if(x=P.that.__zoom,P.touch1){var k=P.touch0[0],J=P.touch0[1],de=P.touch1[0],ee=P.touch1[1],he=(he=de[0]-k[0])*he+(he=de[1]-k[1])*he,ye=(ye=ee[0]-J[0])*ye+(ye=ee[1]-J[1])*ye;x=g(x,Math.sqrt(he/ye)),U=[(k[0]+de[0])/2,(k[1]+de[1])/2],W=[(J[0]+ee[0])/2,(J[1]+ee[1])/2]}else if(P.touch0)U=P.touch0[0],W=P.touch0[1];else return;P.zoom("touch",n(y(x,U,W),P.extent,o))}}function Z(z,...T){if(this.__zooming){var P=C(this,T).event(z),R=z.changedTouches,L=R.length,N,x;for(Pu(z),p&&clearTimeout(p),p=setTimeout(function(){p=null},d),N=0;N<L;++N)x=R[N],P.touch0&&P.touch0[2]===x.identifier?delete P.touch0:P.touch1&&P.touch1[2]===x.identifier&&delete P.touch1;if(P.touch1&&!P.touch0&&(P.touch0=P.touch1,delete P.touch1),P.touch0)P.touch0[1]=this.__zoom.invert(P.touch0[0]);else if(P.end(),P.taps===2&&(x=Ln(x,this),Math.hypot(c[0]-x[0],c[1]-x[1])<E)){var U=Nt(this).on("dblclick.zoom");U&&U.apply(this,arguments)}}}return h.wheelDelta=function(z){return arguments.length?(r=typeof z=="function"?z:kl(+z),h):r},h.filter=function(z){return arguments.length?(e=typeof z=="function"?z:kl(!!z),h):e},h.touchable=function(z){return arguments.length?(i=typeof z=="function"?z:kl(!!z),h):i},h.extent=function(z){return arguments.length?(t=typeof z=="function"?z:kl([[+z[0][0],+z[0][1]],[+z[1][0],+z[1][1]]]),h):t},h.scaleExtent=function(z){return arguments.length?(l[0]=+z[0],l[1]=+z[1],h):[l[0],l[1]]},h.translateExtent=function(z){return arguments.length?(o[0][0]=+z[0][0],o[1][0]=+z[1][0],o[0][1]=+z[0][1],o[1][1]=+z[1][1],h):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},h.constrain=function(z){return arguments.length?(n=z,h):n},h.duration=function(z){return arguments.length?(u=+z,h):u},h.interpolate=function(z){return arguments.length?(s=z,h):s},h.on=function(){var z=a.on.apply(a,arguments);return z===a?h:z},h.clickDistance=function(z){return arguments.length?(w=(z=+z)*z,h):Math.sqrt(w)},h.tapDistance=function(z){return arguments.length?(E=+z,h):E},h}function Xw(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Gw=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Kw=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Zw={};function lp(e,t){return(Zw.jsx?Kw:Gw).test(e)}const Jw=/[ \t\n\f\r]/g;function ek(e){return typeof e=="object"?e.type==="text"?op(e.value):!1:op(e)}function op(e){return e.replace(Jw,"")===""}class Xi{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Xi.prototype.normal={};Xi.prototype.property={};Xi.prototype.space=void 0;function Bm(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Xi(n,r,t)}function Xs(e){return e.toLowerCase()}class Je{constructor(t,n){this.attribute=n,this.property=t}}Je.prototype.attribute="";Je.prototype.booleanish=!1;Je.prototype.boolean=!1;Je.prototype.commaOrSpaceSeparated=!1;Je.prototype.commaSeparated=!1;Je.prototype.defined=!1;Je.prototype.mustUseProperty=!1;Je.prototype.number=!1;Je.prototype.overloadedBoolean=!1;Je.prototype.property="";Je.prototype.spaceSeparated=!1;Je.prototype.space=void 0;let tk=0;const K=Zn(),Ee=Zn(),Gs=Zn(),j=Zn(),fe=Zn(),Er=Zn(),tt=Zn();function Zn(){return 2**++tk}const Ks=Object.freeze(Object.defineProperty({__proto__:null,boolean:K,booleanish:Ee,commaOrSpaceSeparated:tt,commaSeparated:Er,number:j,overloadedBoolean:Gs,spaceSeparated:fe},Symbol.toStringTag,{value:"Module"})),Lu=Object.keys(Ks);class fc extends Je{constructor(t,n,r,i){let l=-1;if(super(t,n),up(this,"space",i),typeof r=="number")for(;++l<Lu.length;){const o=Lu[l];up(this,Lu[l],(r&Ks[o])===Ks[o])}}}fc.prototype.defined=!0;function up(e,t,n){n&&(e[t]=n)}function Or(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const l=new fc(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[Xs(r)]=r,n[Xs(l.attribute)]=r}return new Xi(t,n,e.space)}const $m=Or({properties:{ariaActiveDescendant:null,ariaAtomic:Ee,ariaAutoComplete:null,ariaBusy:Ee,ariaChecked:Ee,ariaColCount:j,ariaColIndex:j,ariaColSpan:j,ariaControls:fe,ariaCurrent:null,ariaDescribedBy:fe,ariaDetails:null,ariaDisabled:Ee,ariaDropEffect:fe,ariaErrorMessage:null,ariaExpanded:Ee,ariaFlowTo:fe,ariaGrabbed:Ee,ariaHasPopup:null,ariaHidden:Ee,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:fe,ariaLevel:j,ariaLive:null,ariaModal:Ee,ariaMultiLine:Ee,ariaMultiSelectable:Ee,ariaOrientation:null,ariaOwns:fe,ariaPlaceholder:null,ariaPosInSet:j,ariaPressed:Ee,ariaReadOnly:Ee,ariaRelevant:null,ariaRequired:Ee,ariaRoleDescription:fe,ariaRowCount:j,ariaRowIndex:j,ariaRowSpan:j,ariaSelected:Ee,ariaSetSize:j,ariaSort:null,ariaValueMax:j,ariaValueMin:j,ariaValueNow:j,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Hm(e,t){return t in e?e[t]:t}function Um(e,t){return Hm(e,t.toLowerCase())}const nk=Or({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Er,acceptCharset:fe,accessKey:fe,action:null,allow:null,allowFullScreen:K,allowPaymentRequest:K,allowUserMedia:K,alt:null,as:null,async:K,autoCapitalize:null,autoComplete:fe,autoFocus:K,autoPlay:K,blocking:fe,capture:null,charSet:null,checked:K,cite:null,className:fe,cols:j,colSpan:null,content:null,contentEditable:Ee,controls:K,controlsList:fe,coords:j|Er,crossOrigin:null,data:null,dateTime:null,decoding:null,default:K,defer:K,dir:null,dirName:null,disabled:K,download:Gs,draggable:Ee,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:K,formTarget:null,headers:fe,height:j,hidden:Gs,high:j,href:null,hrefLang:null,htmlFor:fe,httpEquiv:fe,id:null,imageSizes:null,imageSrcSet:null,inert:K,inputMode:null,integrity:null,is:null,isMap:K,itemId:null,itemProp:fe,itemRef:fe,itemScope:K,itemType:fe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:K,low:j,manifest:null,max:null,maxLength:j,media:null,method:null,min:null,minLength:j,multiple:K,muted:K,name:null,nonce:null,noModule:K,noValidate:K,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:K,optimum:j,pattern:null,ping:fe,placeholder:null,playsInline:K,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:K,referrerPolicy:null,rel:fe,required:K,reversed:K,rows:j,rowSpan:j,sandbox:fe,scope:null,scoped:K,seamless:K,selected:K,shadowRootClonable:K,shadowRootDelegatesFocus:K,shadowRootMode:null,shape:null,size:j,sizes:null,slot:null,span:j,spellCheck:Ee,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:K,useMap:null,value:Ee,width:j,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:fe,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:K,declare:K,event:null,face:null,frame:null,frameBorder:null,hSpace:j,leftMargin:j,link:null,longDesc:null,lowSrc:null,marginHeight:j,marginWidth:j,noResize:K,noHref:K,noShade:K,noWrap:K,object:null,profile:null,prompt:null,rev:null,rightMargin:j,rules:null,scheme:null,scrolling:Ee,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:K,disableRemotePlayback:K,prefix:null,property:null,results:j,security:null,unselectable:null},space:"html",transform:Um}),rk=Or({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:tt,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:fe,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:K,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:Er,g2:Er,glyphName:Er,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:tt,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:fe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:j,pointsAtY:j,pointsAtZ:j,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tt,rev:tt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tt,requiredFeatures:tt,requiredFonts:tt,requiredFormats:tt,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:tt,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:tt,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:tt,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:Hm}),Vm=Or({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Wm=Or({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Um}),Qm=Or({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ik={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"},lk=/[A-Z]/g,sp=/-[a-z]/g,ok=/^data[-\w.:]+$/i;function uk(e,t){const n=Xs(t);let r=t,i=Je;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ok.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(sp,ak);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!sp.test(l)){let o=l.replace(lk,sk);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=fc}return new i(r,t)}function sk(e){return"-"+e.toLowerCase()}function ak(e){return e.charAt(1).toUpperCase()}const ck=Bm([$m,nk,Vm,Wm,Qm],"html"),pc=Bm([$m,rk,Vm,Wm,Qm],"svg");function fk(e){return e.join(" ").trim()}var dc={},ap=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,pk=/\n/g,dk=/^\s*/,hk=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,mk=/^:\s*/,gk=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,yk=/^[;\s]*/,xk=/^\s+|\s+$/g,vk=`
`,cp="/",fp="*",Rn="",wk="comment",kk="declaration";function Sk(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var w=m.match(pk);w&&(n+=w.length);var E=m.lastIndexOf(vk);r=~E?m.length-E:r+m.length}function l(){var m={line:n,column:r};return function(w){return w.position=new o(m),a(),w}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function u(m){var w=new Error(t.source+":"+n+":"+r+": "+m);if(w.reason=m,w.filename=t.source,w.line=n,w.column=r,w.source=e,!t.silent)throw w}function s(m){var w=m.exec(e);if(w){var E=w[0];return i(E),e=e.slice(E.length),w}}function a(){s(dk)}function f(m){var w;for(m=m||[];w=c();)w!==!1&&m.push(w);return m}function c(){var m=l();if(!(cp!=e.charAt(0)||fp!=e.charAt(1))){for(var w=2;Rn!=e.charAt(w)&&(fp!=e.charAt(w)||cp!=e.charAt(w+1));)++w;if(w+=2,Rn===e.charAt(w-1))return u("End of comment missing");var E=e.slice(2,w-2);return r+=2,i(E),e=e.slice(w),r+=2,m({type:wk,comment:E})}}function p(){var m=l(),w=s(hk);if(w){if(c(),!s(mk))return u("property missing ':'");var E=s(gk),h=m({type:kk,property:pp(w[0].replace(ap,Rn)),value:E?pp(E[0].replace(ap,Rn)):Rn});return s(yk),h}}function d(){var m=[];f(m);for(var w;w=p();)w!==!1&&(m.push(w),f(m));return m}return a(),d()}function pp(e){return e?e.replace(xk,Rn):Rn}var _k=Sk,Ck=ql&&ql.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(dc,"__esModule",{value:!0});dc.default=bk;const Ek=Ck(_k);function bk(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,Ek.default)(e),i=typeof t=="function";return r.forEach(l=>{if(l.type!=="declaration")return;const{property:o,value:u}=l;i?t(o,u,l):u&&(n=n||{},n[o]=u)}),n}var Yo={};Object.defineProperty(Yo,"__esModule",{value:!0});Yo.camelCase=void 0;var Tk=/^--[a-zA-Z0-9_-]+$/,zk=/-([a-z])/g,Ik=/^[^-]+$/,Pk=/^-(webkit|moz|ms|o|khtml)-/,Lk=/^-(ms)-/,Mk=function(e){return!e||Ik.test(e)||Tk.test(e)},Ak=function(e,t){return t.toUpperCase()},dp=function(e,t){return"".concat(t,"-")},Nk=function(e,t){return t===void 0&&(t={}),Mk(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Lk,dp):e=e.replace(Pk,dp),e.replace(zk,Ak))};Yo.camelCase=Nk;var Rk=ql&&ql.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Dk=Rk(dc),jk=Yo;function Zs(e,t){var n={};return!e||typeof e!="string"||(0,Dk.default)(e,function(r,i){r&&i&&(n[(0,jk.camelCase)(r,t)]=i)}),n}Zs.default=Zs;var Fk=Zs;const Ok=sa(Fk),qm=Ym("end"),hc=Ym("start");function Ym(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Bk(e){const t=hc(e),n=qm(e);if(t&&n)return{start:t,end:n}}function gi(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?hp(e.position):"start"in e||"end"in e?hp(e):"line"in e||"column"in e?Js(e):""}function Js(e){return mp(e&&e.line)+":"+mp(e&&e.column)}function hp(e){return Js(e&&e.start)+"-"+Js(e&&e.end)}function mp(e){return e&&typeof e=="number"?e:1}class Be extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",l={},o=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?i=t:!l.cause&&t&&(o=!0,i=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?l.ruleId=r:(l.source=r.slice(0,s),l.ruleId=r.slice(s+1))}if(!l.place&&l.ancestors&&l.ancestors){const s=l.ancestors[l.ancestors.length-1];s&&(l.place=s.position)}const u=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=gi(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Be.prototype.file="";Be.prototype.name="";Be.prototype.reason="";Be.prototype.message="";Be.prototype.stack="";Be.prototype.column=void 0;Be.prototype.line=void 0;Be.prototype.ancestors=void 0;Be.prototype.cause=void 0;Be.prototype.fatal=void 0;Be.prototype.place=void 0;Be.prototype.ruleId=void 0;Be.prototype.source=void 0;const mc={}.hasOwnProperty,$k=new Map,Hk=/[A-Z]/g,Uk=new Set(["table","tbody","thead","tfoot","tr"]),Vk=new Set(["td","th"]),Xm="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Wk(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Jk(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Zk(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?pc:ck,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=Gm(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function Gm(e,t,n){if(t.type==="element")return Qk(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return qk(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Xk(e,t,n);if(t.type==="mdxjsEsm")return Yk(e,t);if(t.type==="root")return Gk(e,t,n);if(t.type==="text")return Kk(e,t)}function Qk(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=pc,e.schema=i),e.ancestors.push(t);const l=Zm(e,t.tagName,!1),o=eS(e,t);let u=yc(e,t);return Uk.has(t.tagName)&&(u=u.filter(function(s){return typeof s=="string"?!ek(s):!0})),Km(e,o,l,t),gc(o,u),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function qk(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Bi(e,t.position)}function Yk(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Bi(e,t.position)}function Xk(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=pc,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:Zm(e,t.name,!0),o=tS(e,t),u=yc(e,t);return Km(e,o,l,t),gc(o,u),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function Gk(e,t,n){const r={};return gc(r,yc(e,t)),e.create(t,e.Fragment,r,n)}function Kk(e,t){return t.value}function Km(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function gc(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Zk(e,t,n){return r;function r(i,l,o,u){const a=Array.isArray(o.children)?n:t;return u?a(l,o,u):a(l,o)}}function Jk(e,t){return n;function n(r,i,l,o){const u=Array.isArray(l.children),s=hc(r);return t(i,l,o,u,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function eS(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&mc.call(t.properties,i)){const l=nS(e,i,t.properties[i]);if(l){const[o,u]=l;e.tableCellAlignToStyle&&o==="align"&&typeof u=="string"&&Vk.has(t.tagName)?r=u:n[o]=u}}if(r){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function tS(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const u=o.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else Bi(e,t.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,l=e.evaluater.evaluateExpression(u.expression)}else Bi(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function yc(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:$k;for(;++r<t.children.length;){const l=t.children[r];let o;if(e.passKeys){const s=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(s){const a=i.get(s)||0;o=s+"-"+a,i.set(s,a+1)}}const u=Gm(e,l,o);u!==void 0&&n.push(u)}return n}function nS(e,t,n){const r=uk(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Xw(n):fk(n)),r.property==="style"){let i=typeof n=="object"?n:rS(e,String(n));return e.stylePropertyNameCase==="css"&&(i=iS(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?ik[r.property]||r.property:r.attribute,n]}}function rS(e,t){try{return Ok(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Be("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Xm+"#cannot-parse-style-attribute",i}}function Zm(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let l=-1,o;for(;++l<i.length;){const u=lp(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:u,computed:!!(l&&u.type==="Literal"),optional:!1}:u}r=o}else r=lp(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return mc.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Bi(e)}function Bi(e,t){const n=new Be("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Xm+"#cannot-handle-mdx-estrees-without-createevaluater",n}function iS(e){const t={};let n;for(n in e)mc.call(e,n)&&(t[lS(n)]=e[n]);return t}function lS(e){let t=e.replace(Hk,oS);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function oS(e){return"-"+e.toLowerCase()}const Mu={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"]},uS={};function xc(e,t){const n=uS,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Jm(e,r,i)}function Jm(e,t,n){if(sS(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return gp(e.children,t,n)}return Array.isArray(e)?gp(e,t,n):""}function gp(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Jm(e[i],t,n);return r.join("")}function sS(e){return!!(e&&typeof e=="object")}const yp=document.createElement("i");function vc(e){const t="&"+e+";";yp.innerHTML=t;const n=yp.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function lt(e,t,n,r){const i=e.length;let l=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);l<r.length;)o=r.slice(l,l+1e4),o.unshift(t,0),e.splice(...o),l+=1e4,t+=1e4}function pt(e,t){return e.length>0?(lt(e,e.length,0,t),e):t}const xp={}.hasOwnProperty;function eg(e){const t={};let n=-1;for(;++n<e.length;)aS(t,e[n]);return t}function aS(e,t){let n;for(n in t){const i=(xp.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let o;if(l)for(o in l){xp.call(i,o)||(i[o]=[]);const u=l[o];cS(i[o],Array.isArray(u)?u:u?[u]:[])}}}function cS(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);lt(e,0,0,r)}function tg(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"๏ฟฝ":String.fromCodePoint(n)}function bt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const He=In(/[A-Za-z]/),Fe=In(/[\dA-Za-z]/),fS=In(/[#-'*+\--9=?A-Z^-~]/);function Eo(e){return e!==null&&(e<32||e===127)}const ea=In(/\d/),pS=In(/[\dA-Fa-f]/),dS=In(/[!-/:-@[-`{-~]/);function Y(e){return e!==null&&e<-2}function ce(e){return e!==null&&(e<0||e===32)}function te(e){return e===-2||e===-1||e===32}const Xo=In(new RegExp("\\p{P}|\\p{S}","u")),Xn=In(/\s/);function In(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Br(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let o="";if(l===37&&Fe(e.charCodeAt(n+1))&&Fe(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const u=e.charCodeAt(n+1);l<56320&&u>56319&&u<57344?(o=String.fromCharCode(l,u),i=1):o="๏ฟฝ"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function le(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(s){return te(s)?(e.enter(n),u(s)):t(s)}function u(s){return te(s)&&l++<i?(e.consume(s),u):(e.exit(n),t(s))}}const hS={tokenize:mS};function mS(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),le(e,t,"linePrefix")}function i(u){return e.enter("paragraph"),l(u)}function l(u){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,o(u)}function o(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return Y(u)?(e.consume(u),e.exit("chunkText"),l):(e.consume(u),o)}}const gS={tokenize:yS},vp={tokenize:xS};function yS(e){const t=this,n=[];let r=0,i,l,o;return u;function u(y){if(r<n.length){const _=n[r];return t.containerState=_[1],e.attempt(_[0].continuation,s,a)(y)}return a(y)}function s(y){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&g();const _=t.events.length;let I=_,C;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){C=t.events[I][1].end;break}h(r);let A=_;for(;A<t.events.length;)t.events[A][1].end={...C},A++;return lt(t.events,I+1,0,t.events.slice(_)),t.events.length=A,a(y)}return u(y)}function a(y){if(r===n.length){if(!i)return p(y);if(i.currentConstruct&&i.currentConstruct.concrete)return m(y);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(vp,f,c)(y)}function f(y){return i&&g(),h(r),p(y)}function c(y){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(y)}function p(y){return t.containerState={},e.attempt(vp,d,m)(y)}function d(y){return r++,n.push([t.currentConstruct,t.containerState]),p(y)}function m(y){if(y===null){i&&g(),h(0),e.consume(y);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),w(y)}function w(y){if(y===null){E(e.exit("chunkFlow"),!0),h(0),e.consume(y);return}return Y(y)?(e.consume(y),E(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(y),w)}function E(y,_){const I=t.sliceStream(y);if(_&&I.push(null),y.previous=l,l&&(l.next=y),l=y,i.defineSkip(y.start),i.write(I),t.parser.lazy[y.start.line]){let C=i.events.length;for(;C--;)if(i.events[C][1].start.offset<o&&(!i.events[C][1].end||i.events[C][1].end.offset>o))return;const A=t.events.length;let F=A,Q,b;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){if(Q){b=t.events[F][1].end;break}Q=!0}for(h(r),C=A;C<t.events.length;)t.events[C][1].end={...b},C++;lt(t.events,F+1,0,t.events.slice(A)),t.events.length=C}}function h(y){let _=n.length;for(;_-- >y;){const I=n[_];t.containerState=I[1],I[0].exit.call(t,e)}n.length=y}function g(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function xS(e,t,n){return le(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Rr(e){if(e===null||ce(e)||Xn(e))return 1;if(Xo(e))return 2}function Go(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}const ta={name:"attention",resolveAll:vS,tokenize:wS};function vS(e,t){let n=-1,r,i,l,o,u,s,a,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[n][1].start};wp(c,-s),wp(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},u={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},l={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:s>1?"strong":"emphasis",start:{...o.start},end:{...u.end}},e[r][1].end={...o.start},e[n][1].start={...u.end},a=[],e[r][1].end.offset-e[r][1].start.offset&&(a=pt(a,[["enter",e[r][1],t],["exit",e[r][1],t]])),a=pt(a,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),a=pt(a,Go(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),a=pt(a,[["exit",l,t],["enter",u,t],["exit",u,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,a=pt(a,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,lt(e,r-1,n-r+3,a),n=r+a.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function wS(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Rr(r);let l;return o;function o(s){return l=s,e.enter("attentionSequence"),u(s)}function u(s){if(s===l)return e.consume(s),u;const a=e.exit("attentionSequence"),f=Rr(s),c=!f||f===2&&i||n.includes(s),p=!i||i===2&&f||n.includes(r);return a._open=!!(l===42?c:c&&(i||!p)),a._close=!!(l===42?p:p&&(f||!c)),t(s)}}function wp(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const kS={name:"autolink",tokenize:SS};function SS(e,t,n){let r=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(d){return He(d)?(e.consume(d),o):d===64?n(d):a(d)}function o(d){return d===43||d===45||d===46||Fe(d)?(r=1,u(d)):a(d)}function u(d){return d===58?(e.consume(d),r=0,s):(d===43||d===45||d===46||Fe(d))&&r++<32?(e.consume(d),u):(r=0,a(d))}function s(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||Eo(d)?n(d):(e.consume(d),s)}function a(d){return d===64?(e.consume(d),f):fS(d)?(e.consume(d),a):n(d)}function f(d){return Fe(d)?c(d):n(d)}function c(d){return d===46?(e.consume(d),r=0,f):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):p(d)}function p(d){if((d===45||Fe(d))&&r++<63){const m=d===45?p:c;return e.consume(d),m}return n(d)}}const Gi={partial:!0,tokenize:_S};function _S(e,t,n){return r;function r(l){return te(l)?le(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||Y(l)?t(l):n(l)}}const ng={continuation:{tokenize:ES},exit:bS,name:"blockQuote",tokenize:CS};function CS(e,t,n){const r=this;return i;function i(o){if(o===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return n(o)}function l(o){return te(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function ES(e,t,n){const r=this;return i;function i(o){return te(o)?le(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(ng,t,n)(o)}}function bS(e){e.exit("blockQuote")}const rg={name:"characterEscape",tokenize:TS};function TS(e,t,n){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return dS(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const ig={name:"characterReference",tokenize:zS};function zS(e,t,n){const r=this;let i=0,l,o;return u;function u(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),l=31,o=Fe,f(c))}function a(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=pS,f):(e.enter("characterReferenceValue"),l=7,o=ea,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return o===Fe&&!vc(r.sliceSerialize(p))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(c)&&i++<l?(e.consume(c),f):n(c)}}const kp={partial:!0,tokenize:PS},Sp={concrete:!0,name:"codeFenced",tokenize:IS};function IS(e,t,n){const r=this,i={partial:!0,tokenize:I};let l=0,o=0,u;return s;function s(C){return a(C)}function a(C){const A=r.events[r.events.length-1];return l=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,u=C,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(C)}function f(C){return C===u?(o++,e.consume(C),f):o<3?n(C):(e.exit("codeFencedFenceSequence"),te(C)?le(e,c,"whitespace")(C):c(C))}function c(C){return C===null||Y(C)?(e.exit("codeFencedFence"),r.interrupt?t(C):e.check(kp,w,_)(C)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(C))}function p(C){return C===null||Y(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(C)):te(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),le(e,d,"whitespace")(C)):C===96&&C===u?n(C):(e.consume(C),p)}function d(C){return C===null||Y(C)?c(C):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(C))}function m(C){return C===null||Y(C)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(C)):C===96&&C===u?n(C):(e.consume(C),m)}function w(C){return e.attempt(i,_,E)(C)}function E(C){return e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),h}function h(C){return l>0&&te(C)?le(e,g,"linePrefix",l+1)(C):g(C)}function g(C){return C===null||Y(C)?e.check(kp,w,_)(C):(e.enter("codeFlowValue"),y(C))}function y(C){return C===null||Y(C)?(e.exit("codeFlowValue"),g(C)):(e.consume(C),y)}function _(C){return e.exit("codeFenced"),t(C)}function I(C,A,F){let Q=0;return b;function b(T){return C.enter("lineEnding"),C.consume(T),C.exit("lineEnding"),$}function $(T){return C.enter("codeFencedFence"),te(T)?le(C,H,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):H(T)}function H(T){return T===u?(C.enter("codeFencedFenceSequence"),Z(T)):F(T)}function Z(T){return T===u?(Q++,C.consume(T),Z):Q>=o?(C.exit("codeFencedFenceSequence"),te(T)?le(C,z,"whitespace")(T):z(T)):F(T)}function z(T){return T===null||Y(T)?(C.exit("codeFencedFence"),A(T)):F(T)}}}function PS(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Au={name:"codeIndented",tokenize:MS},LS={partial:!0,tokenize:AS};function MS(e,t,n){const r=this;return i;function i(a){return e.enter("codeIndented"),le(e,l,"linePrefix",5)(a)}function l(a){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(a):n(a)}function o(a){return a===null?s(a):Y(a)?e.attempt(LS,o,s)(a):(e.enter("codeFlowValue"),u(a))}function u(a){return a===null||Y(a)?(e.exit("codeFlowValue"),o(a)):(e.consume(a),u)}function s(a){return e.exit("codeIndented"),t(a)}}function AS(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Y(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):le(e,l,"linePrefix",5)(o)}function l(o){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(o):Y(o)?i(o):n(o)}}const NS={name:"codeText",previous:DS,resolve:RS,tokenize:jS};function RS(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function DS(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function jS(e,t,n){let r=0,i,l;return o;function o(c){return e.enter("codeText"),e.enter("codeTextSequence"),u(c)}function u(c){return c===96?(e.consume(c),r++,u):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(l=e.enter("codeTextSequence"),i=0,f(c)):Y(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),a(c))}function a(c){return c===null||c===32||c===96||Y(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),a)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(l.type="codeTextData",a(c))}}class FS{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Jr(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Jr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Jr(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Jr(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Jr(this.left,n.reverse())}}}function Jr(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function lg(e){const t={};let n=-1,r,i,l,o,u,s,a;const f=new FS(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,OS(f,n)),n=t[n],a=!0);else if(r[1]._container){for(l=n,i=void 0;l--;)if(o=f.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},u=f.slice(i,n),u.unshift(r),f.splice(i,n-i+1,u))}}return lt(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!a}function OS(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const l=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const u=o.events,s=[],a={};let f,c,p=-1,d=n,m=0,w=0;const E=[w];for(;d;){for(;e.get(++i)[1]!==d;);l.push(i),d._tokenizer||(f=r.sliceStream(d),d.next||f.push(null),c&&o.defineSkip(d.start),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=d,d=d.next}for(d=n;++p<u.length;)u[p][0]==="exit"&&u[p-1][0]==="enter"&&u[p][1].type===u[p-1][1].type&&u[p][1].start.line!==u[p][1].end.line&&(w=p+1,E.push(w),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(o.events=[],d?(d._tokenizer=void 0,d.previous=void 0):E.pop(),p=E.length;p--;){const h=u.slice(E[p],E[p+1]),g=l.pop();s.push([g,g+h.length-1]),e.splice(g,2,h)}for(s.reverse(),p=-1;++p<s.length;)a[m+s[p][0]]=m+s[p][1],m+=s[p][1]-s[p][0]-1;return a}const BS={resolve:HS,tokenize:US},$S={partial:!0,tokenize:VS};function HS(e){return lg(e),e}function US(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?l(u):Y(u)?e.check($S,o,l)(u):(e.consume(u),i)}function l(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function o(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function VS(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),le(e,l,"linePrefix")}function l(o){if(o===null||Y(o))return n(o);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function og(e,t,n,r,i,l,o,u,s){const a=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(h){return h===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(h),e.exit(l),p):h===null||h===32||h===41||Eo(h)?n(h):(e.enter(r),e.enter(o),e.enter(u),e.enter("chunkString",{contentType:"string"}),w(h))}function p(h){return h===62?(e.enter(l),e.consume(h),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===62?(e.exit("chunkString"),e.exit(u),p(h)):h===null||h===60||Y(h)?n(h):(e.consume(h),h===92?m:d)}function m(h){return h===60||h===62||h===92?(e.consume(h),d):d(h)}function w(h){return!f&&(h===null||h===41||ce(h))?(e.exit("chunkString"),e.exit(u),e.exit(o),e.exit(r),t(h)):f<a&&h===40?(e.consume(h),f++,w):h===41?(e.consume(h),f--,w):h===null||h===32||h===40||Eo(h)?n(h):(e.consume(h),h===92?E:w)}function E(h){return h===40||h===41||h===92?(e.consume(h),w):w(h)}}function ug(e,t,n,r,i,l){const o=this;let u=0,s;return a;function a(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(l),f}function f(d){return u>999||d===null||d===91||d===93&&!s||d===94&&!u&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):d===93?(e.exit(l),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):Y(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===null||d===91||d===93||Y(d)||u++>999?(e.exit("chunkString"),f(d)):(e.consume(d),s||(s=!te(d)),d===92?p:c)}function p(d){return d===91||d===92||d===93?(e.consume(d),u++,c):c(d)}}function sg(e,t,n,r,i,l){let o;return u;function u(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,s):n(p)}function s(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(l),a(p))}function a(p){return p===o?(e.exit(l),s(o)):p===null?n(p):Y(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),le(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===o||p===null||Y(p)?(e.exit("chunkString"),a(p)):(e.consume(p),p===92?c:f)}function c(p){return p===o||p===92?(e.consume(p),f):f(p)}}function yi(e,t){let n;return r;function r(i){return Y(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):te(i)?le(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const WS={name:"definition",tokenize:qS},QS={partial:!0,tokenize:YS};function qS(e,t,n){const r=this;let i;return l;function l(d){return e.enter("definition"),o(d)}function o(d){return ug.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function u(d){return i=bt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),s):n(d)}function s(d){return ce(d)?yi(e,a)(d):a(d)}function a(d){return og(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function f(d){return e.attempt(QS,c,c)(d)}function c(d){return te(d)?le(e,p,"whitespace")(d):p(d)}function p(d){return d===null||Y(d)?(e.exit("definition"),r.parser.defined.push(i),t(d)):n(d)}}function YS(e,t,n){return r;function r(u){return ce(u)?yi(e,i)(u):n(u)}function i(u){return sg(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function l(u){return te(u)?le(e,o,"whitespace")(u):o(u)}function o(u){return u===null||Y(u)?t(u):n(u)}}const XS={name:"hardBreakEscape",tokenize:GS};function GS(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return Y(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const KS={name:"headingAtx",resolve:ZS,tokenize:JS};function ZS(e,t){let n=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},lt(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function JS(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),l(f)}function l(f){return e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&r++<6?(e.consume(f),o):f===null||ce(f)?(e.exit("atxHeadingSequence"),u(f)):n(f)}function u(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||Y(f)?(e.exit("atxHeading"),t(f)):te(f)?le(e,u,"whitespace")(f):(e.enter("atxHeadingText"),a(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),u(f))}function a(f){return f===null||f===35||ce(f)?(e.exit("atxHeadingText"),u(f)):(e.consume(f),a)}}const e_=["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"],_p=["pre","script","style","textarea"],t_={concrete:!0,name:"htmlFlow",resolveTo:i_,tokenize:l_},n_={partial:!0,tokenize:u_},r_={partial:!0,tokenize:o_};function i_(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function l_(e,t,n){const r=this;let i,l,o,u,s;return a;function a(k){return f(k)}function f(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),c}function c(k){return k===33?(e.consume(k),p):k===47?(e.consume(k),l=!0,w):k===63?(e.consume(k),i=3,r.interrupt?t:x):He(k)?(e.consume(k),o=String.fromCharCode(k),E):n(k)}function p(k){return k===45?(e.consume(k),i=2,d):k===91?(e.consume(k),i=5,u=0,m):He(k)?(e.consume(k),i=4,r.interrupt?t:x):n(k)}function d(k){return k===45?(e.consume(k),r.interrupt?t:x):n(k)}function m(k){const J="CDATA[";return k===J.charCodeAt(u++)?(e.consume(k),u===J.length?r.interrupt?t:H:m):n(k)}function w(k){return He(k)?(e.consume(k),o=String.fromCharCode(k),E):n(k)}function E(k){if(k===null||k===47||k===62||ce(k)){const J=k===47,de=o.toLowerCase();return!J&&!l&&_p.includes(de)?(i=1,r.interrupt?t(k):H(k)):e_.includes(o.toLowerCase())?(i=6,J?(e.consume(k),h):r.interrupt?t(k):H(k)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(k):l?g(k):y(k))}return k===45||Fe(k)?(e.consume(k),o+=String.fromCharCode(k),E):n(k)}function h(k){return k===62?(e.consume(k),r.interrupt?t:H):n(k)}function g(k){return te(k)?(e.consume(k),g):b(k)}function y(k){return k===47?(e.consume(k),b):k===58||k===95||He(k)?(e.consume(k),_):te(k)?(e.consume(k),y):b(k)}function _(k){return k===45||k===46||k===58||k===95||Fe(k)?(e.consume(k),_):I(k)}function I(k){return k===61?(e.consume(k),C):te(k)?(e.consume(k),I):y(k)}function C(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),s=k,A):te(k)?(e.consume(k),C):F(k)}function A(k){return k===s?(e.consume(k),s=null,Q):k===null||Y(k)?n(k):(e.consume(k),A)}function F(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||ce(k)?I(k):(e.consume(k),F)}function Q(k){return k===47||k===62||te(k)?y(k):n(k)}function b(k){return k===62?(e.consume(k),$):n(k)}function $(k){return k===null||Y(k)?H(k):te(k)?(e.consume(k),$):n(k)}function H(k){return k===45&&i===2?(e.consume(k),P):k===60&&i===1?(e.consume(k),R):k===62&&i===4?(e.consume(k),U):k===63&&i===3?(e.consume(k),x):k===93&&i===5?(e.consume(k),N):Y(k)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(n_,W,Z)(k)):k===null||Y(k)?(e.exit("htmlFlowData"),Z(k)):(e.consume(k),H)}function Z(k){return e.check(r_,z,W)(k)}function z(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),T}function T(k){return k===null||Y(k)?Z(k):(e.enter("htmlFlowData"),H(k))}function P(k){return k===45?(e.consume(k),x):H(k)}function R(k){return k===47?(e.consume(k),o="",L):H(k)}function L(k){if(k===62){const J=o.toLowerCase();return _p.includes(J)?(e.consume(k),U):H(k)}return He(k)&&o.length<8?(e.consume(k),o+=String.fromCharCode(k),L):H(k)}function N(k){return k===93?(e.consume(k),x):H(k)}function x(k){return k===62?(e.consume(k),U):k===45&&i===2?(e.consume(k),x):H(k)}function U(k){return k===null||Y(k)?(e.exit("htmlFlowData"),W(k)):(e.consume(k),U)}function W(k){return e.exit("htmlFlow"),t(k)}}function o_(e,t,n){const r=this;return i;function i(o){return Y(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):n(o)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function u_(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Gi,t,n)}}const s_={name:"htmlText",tokenize:a_};function a_(e,t,n){const r=this;let i,l,o;return u;function u(x){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(x),s}function s(x){return x===33?(e.consume(x),a):x===47?(e.consume(x),I):x===63?(e.consume(x),y):He(x)?(e.consume(x),F):n(x)}function a(x){return x===45?(e.consume(x),f):x===91?(e.consume(x),l=0,m):He(x)?(e.consume(x),g):n(x)}function f(x){return x===45?(e.consume(x),d):n(x)}function c(x){return x===null?n(x):x===45?(e.consume(x),p):Y(x)?(o=c,R(x)):(e.consume(x),c)}function p(x){return x===45?(e.consume(x),d):c(x)}function d(x){return x===62?P(x):x===45?p(x):c(x)}function m(x){const U="CDATA[";return x===U.charCodeAt(l++)?(e.consume(x),l===U.length?w:m):n(x)}function w(x){return x===null?n(x):x===93?(e.consume(x),E):Y(x)?(o=w,R(x)):(e.consume(x),w)}function E(x){return x===93?(e.consume(x),h):w(x)}function h(x){return x===62?P(x):x===93?(e.consume(x),h):w(x)}function g(x){return x===null||x===62?P(x):Y(x)?(o=g,R(x)):(e.consume(x),g)}function y(x){return x===null?n(x):x===63?(e.consume(x),_):Y(x)?(o=y,R(x)):(e.consume(x),y)}function _(x){return x===62?P(x):y(x)}function I(x){return He(x)?(e.consume(x),C):n(x)}function C(x){return x===45||Fe(x)?(e.consume(x),C):A(x)}function A(x){return Y(x)?(o=A,R(x)):te(x)?(e.consume(x),A):P(x)}function F(x){return x===45||Fe(x)?(e.consume(x),F):x===47||x===62||ce(x)?Q(x):n(x)}function Q(x){return x===47?(e.consume(x),P):x===58||x===95||He(x)?(e.consume(x),b):Y(x)?(o=Q,R(x)):te(x)?(e.consume(x),Q):P(x)}function b(x){return x===45||x===46||x===58||x===95||Fe(x)?(e.consume(x),b):$(x)}function $(x){return x===61?(e.consume(x),H):Y(x)?(o=$,R(x)):te(x)?(e.consume(x),$):Q(x)}function H(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(e.consume(x),i=x,Z):Y(x)?(o=H,R(x)):te(x)?(e.consume(x),H):(e.consume(x),z)}function Z(x){return x===i?(e.consume(x),i=void 0,T):x===null?n(x):Y(x)?(o=Z,R(x)):(e.consume(x),Z)}function z(x){return x===null||x===34||x===39||x===60||x===61||x===96?n(x):x===47||x===62||ce(x)?Q(x):(e.consume(x),z)}function T(x){return x===47||x===62||ce(x)?Q(x):n(x)}function P(x){return x===62?(e.consume(x),e.exit("htmlTextData"),e.exit("htmlText"),t):n(x)}function R(x){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),L}function L(x){return te(x)?le(e,N,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):N(x)}function N(x){return e.enter("htmlTextData"),o(x)}}const wc={name:"labelEnd",resolveAll:d_,resolveTo:h_,tokenize:m_},c_={tokenize:g_},f_={tokenize:y_},p_={tokenize:x_};function d_(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&lt(e,0,e.length,n),e}function h_(e,t){let n=e.length,r=0,i,l,o,u;for(;n--;)if(i=e[n][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},a={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},f={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return u=[["enter",s,t],["enter",a,t]],u=pt(u,e.slice(l+1,l+r+3)),u=pt(u,[["enter",f,t]]),u=pt(u,Go(t.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),t)),u=pt(u,[["exit",f,t],e[o-2],e[o-1],["exit",a,t]]),u=pt(u,e.slice(o+1)),u=pt(u,[["exit",s,t]]),lt(e,l,e.length,u),e}function m_(e,t,n){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return u;function u(p){return l?l._inactive?c(p):(o=r.parser.defined.includes(bt(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):n(p)}function s(p){return p===40?e.attempt(c_,f,o?f:c)(p):p===91?e.attempt(f_,f,o?a:c)(p):o?f(p):c(p)}function a(p){return e.attempt(p_,f,c)(p)}function f(p){return t(p)}function c(p){return l._balanced=!0,n(p)}}function g_(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return ce(c)?yi(e,l)(c):l(c)}function l(c){return c===41?f(c):og(e,o,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return ce(c)?yi(e,s)(c):f(c)}function u(c){return n(c)}function s(c){return c===34||c===39||c===40?sg(e,a,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function a(c){return ce(c)?yi(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function y_(e,t,n){const r=this;return i;function i(u){return ug.call(r,e,l,o,"reference","referenceMarker","referenceString")(u)}function l(u){return r.parser.defined.includes(bt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function o(u){return n(u)}}function x_(e,t,n){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const v_={name:"labelStartImage",resolveAll:wc.resolveAll,tokenize:w_};function w_(e,t,n){const r=this;return i;function i(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),l}function l(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),o):n(u)}function o(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const k_={name:"labelStartLink",resolveAll:wc.resolveAll,tokenize:S_};function S_(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Nu={name:"lineEnding",tokenize:__};function __(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),le(e,t,"linePrefix")}}const Hl={name:"thematicBreak",tokenize:C_};function C_(e,t,n){let r=0,i;return l;function l(a){return e.enter("thematicBreak"),o(a)}function o(a){return i=a,u(a)}function u(a){return a===i?(e.enter("thematicBreakSequence"),s(a)):r>=3&&(a===null||Y(a))?(e.exit("thematicBreak"),t(a)):n(a)}function s(a){return a===i?(e.consume(a),r++,s):(e.exit("thematicBreakSequence"),te(a)?le(e,u,"whitespace")(a):u(a))}}const Qe={continuation:{tokenize:z_},exit:P_,name:"list",tokenize:T_},E_={partial:!0,tokenize:L_},b_={partial:!0,tokenize:I_};function T_(e,t,n){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return u;function u(d){const m=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:ea(d)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Hl,n,a)(d):a(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(d)}return n(d)}function s(d){return ea(d)&&++o<10?(e.consume(d),s):(!r.interrupt||o<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),a(d)):n(d)}function a(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(Gi,r.interrupt?n:f,e.attempt(E_,p,c))}function f(d){return r.containerState.initialBlankLine=!0,l++,p(d)}function c(d){return te(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),p):n(d)}function p(d){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function z_(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Gi,i,l);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,le(e,t,"listItemIndent",r.containerState.size+1)(u)}function l(u){return r.containerState.furtherBlankLines||!te(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(b_,t,o)(u))}function o(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,le(e,e.attempt(Qe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function I_(e,t,n){const r=this;return le(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(l):n(l)}}function P_(e){e.exit(this.containerState.type)}function L_(e,t,n){const r=this;return le(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!te(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const Cp={name:"setextUnderline",resolveTo:M_,tokenize:A_};function M_(e,t){let n=e.length,r,i,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function A_(e,t,n){const r=this;let i;return l;function l(a){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=a,o(a)):n(a)}function o(a){return e.enter("setextHeadingLineSequence"),u(a)}function u(a){return a===i?(e.consume(a),u):(e.exit("setextHeadingLineSequence"),te(a)?le(e,s,"lineSuffix")(a):s(a))}function s(a){return a===null||Y(a)?(e.exit("setextHeadingLine"),t(a)):n(a)}}const N_={tokenize:R_};function R_(e){const t=this,n=e.attempt(Gi,r,e.attempt(this.parser.constructs.flowInitial,i,le(e,e.attempt(this.parser.constructs.flow,i,e.attempt(BS,i)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const D_={resolveAll:cg()},j_=ag("string"),F_=ag("text");function ag(e){return{resolveAll:cg(e==="text"?O_:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],l=n.attempt(i,o,u);return o;function o(f){return a(f)?l(f):u(f)}function u(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),s}function s(f){return a(f)?(n.exit("data"),l(f)):(n.consume(f),s)}function a(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const d=c[p];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function cg(e){return t;function t(n,r){let i=-1,l;for(;++i<=n.length;)l===void 0?n[i]&&n[i][1].type==="data"&&(l=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==l+2&&(n[l][1].end=n[i-1][1].end,n.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(n,r):n}}function O_(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let l=i.length,o=-1,u=0,s;for(;l--;){const a=i[l];if(typeof a=="string"){for(o=a.length;a.charCodeAt(o-1)===32;)u++,o--;if(o)break;o=-1}else if(a===-2)s=!0,u++;else if(a!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){const a={type:n===e.length||s||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...a.start},r.start.offset===r.end.offset?Object.assign(r,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}const B_={42:Qe,43:Qe,45:Qe,48:Qe,49:Qe,50:Qe,51:Qe,52:Qe,53:Qe,54:Qe,55:Qe,56:Qe,57:Qe,62:ng},$_={91:WS},H_={[-2]:Au,[-1]:Au,32:Au},U_={35:KS,42:Hl,45:[Cp,Hl],60:t_,61:Cp,95:Hl,96:Sp,126:Sp},V_={38:ig,92:rg},W_={[-5]:Nu,[-4]:Nu,[-3]:Nu,33:v_,38:ig,42:ta,60:[kS,s_],91:k_,92:[XS,rg],93:wc,95:ta,96:NS},Q_={null:[ta,D_]},q_={null:[42,95]},Y_={null:[]},X_=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:q_,contentInitial:$_,disable:Y_,document:B_,flow:U_,flowInitial:H_,insideSpan:Q_,string:V_,text:W_},Symbol.toStringTag,{value:"Module"}));function G_(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},l=[];let o=[],u=[];const s={attempt:A(I),check:A(C),consume:g,enter:y,exit:_,interrupt:A(C,{interrupt:!0})},a={code:null,containerState:{},defineSkip:w,events:[],now:m,parser:e,previous:null,sliceSerialize:p,sliceStream:d,write:c};let f=t.tokenize.call(a,s);return t.resolveAll&&l.push(t),a;function c($){return o=pt(o,$),E(),o[o.length-1]!==null?[]:(F(t,0),a.events=Go(l,a.events,a),a.events)}function p($,H){return Z_(d($),H)}function d($){return K_(o,$)}function m(){const{_bufferIndex:$,_index:H,line:Z,column:z,offset:T}=r;return{_bufferIndex:$,_index:H,line:Z,column:z,offset:T}}function w($){i[$.line]=$.column,b()}function E(){let $;for(;r._index<o.length;){const H=o[r._index];if(typeof H=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<H.length;)h(H.charCodeAt(r._bufferIndex));else h(H)}}function h($){f=f($)}function g($){Y($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,b()):$!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),a.previous=$}function y($,H){const Z=H||{};return Z.type=$,Z.start=m(),a.events.push(["enter",Z,a]),u.push(Z),Z}function _($){const H=u.pop();return H.end=m(),a.events.push(["exit",H,a]),H}function I($,H){F($,H.from)}function C($,H){H.restore()}function A($,H){return Z;function Z(z,T,P){let R,L,N,x;return Array.isArray(z)?W(z):"tokenize"in z?W([z]):U(z);function U(ee){return he;function he(ye){const se=ye!==null&&ee[ye],Bt=ye!==null&&ee.null,er=[...Array.isArray(se)?se:se?[se]:[],...Array.isArray(Bt)?Bt:Bt?[Bt]:[]];return W(er)(ye)}}function W(ee){return R=ee,L=0,ee.length===0?P:k(ee[L])}function k(ee){return he;function he(ye){return x=Q(),N=ee,ee.partial||(a.currentConstruct=ee),ee.name&&a.parser.constructs.disable.null.includes(ee.name)?de():ee.tokenize.call(H?Object.assign(Object.create(a),H):a,s,J,de)(ye)}}function J(ee){return $(N,x),T}function de(ee){return x.restore(),++L<R.length?k(R[L]):P}}}function F($,H){$.resolveAll&&!l.includes($)&&l.push($),$.resolve&&lt(a.events,H,a.events.length-H,$.resolve(a.events.slice(H),a)),$.resolveTo&&(a.events=$.resolveTo(a.events,a))}function Q(){const $=m(),H=a.previous,Z=a.currentConstruct,z=a.events.length,T=Array.from(u);return{from:z,restore:P};function P(){r=$,a.previous=H,a.currentConstruct=Z,a.events.length=z,u=T,b()}}function b(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function K_(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,l=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,l)];else{if(o=e.slice(n,i),r>-1){const u=o[0];typeof u=="string"?o[0]=u.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function Z_(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const l=e[n];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
`;break}case-3:{o=`\r
`;break}case-2:{o=t?" ":"	";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function J_(e){const r={constructs:eg([X_,...(e||{}).extensions||[]]),content:i(hS),defined:[],document:i(gS),flow:i(N_),lazy:{},string:i(j_),text:i(F_)};return r;function i(l){return o;function o(u){return G_(r,l,u)}}}function eC(e){for(;!lg(e););return e}const Ep=/[\0\t\n\r]/g;function tC(){let e=1,t="",n=!0,r;return i;function i(l,o,u){const s=[];let a,f,c,p,d;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),c=0,t="",n&&(l.charCodeAt(0)===65279&&c++,n=void 0);c<l.length;){if(Ep.lastIndex=c,a=Ep.exec(l),p=a&&a.index!==void 0?a.index:l.length,d=l.charCodeAt(p),!a){t=l.slice(c);break}if(d===10&&c===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<p&&(s.push(l.slice(c,p)),e+=p-c),d){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return u&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const nC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function rC(e){return e.replace(nC,iC)}function iC(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),l=i===120||i===88;return tg(n.slice(l?2:1),l?16:10)}return vc(n)||e}const fg={}.hasOwnProperty;function lC(e,t,n){return typeof t!="string"&&(n=t,t=void 0),oC(n)(eC(J_(n).document().write(tC()(e,t,!0))))}function oC(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Ji),autolinkProtocol:Q,autolinkEmail:Q,atxHeading:l(Ie),blockQuote:l(Bt),characterEscape:Q,characterReference:Q,codeFenced:l(er),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(er,o),codeText:l(eu,o),codeTextData:Q,data:Q,codeFlowValue:Q,definition:l(Zi),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l($t),hardBreakEscape:l(Ht),hardBreakTrailing:l(Ht),htmlFlow:l(tr,o),htmlFlowData:Q,htmlText:l(tr,o),htmlTextData:Q,image:l(tu),label:o,link:l(Ji),listItem:l(B),listItemValue:p,listOrdered:l(el,c),listUnordered:l(el),paragraph:l(ie),reference:k,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(Ie),strong:l(G),thematicBreak:l(on)},exit:{atxHeading:s(),atxHeadingSequence:I,autolink:s(),autolinkEmail:se,autolinkProtocol:ye,blockQuote:s(),characterEscapeValue:b,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:ee,characterReference:he,codeFenced:s(E),codeFencedFence:w,codeFencedFenceInfo:d,codeFencedFenceMeta:m,codeFlowValue:b,codeIndented:s(h),codeText:s(T),codeTextData:b,data:b,definition:s(),definitionDestinationString:_,definitionLabelString:g,definitionTitleString:y,emphasis:s(),hardBreakEscape:s(H),hardBreakTrailing:s(H),htmlFlow:s(Z),htmlFlowData:b,htmlText:s(z),htmlTextData:b,image:s(R),label:N,labelText:L,lineEnding:$,link:s(P),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:J,resourceDestinationString:x,resourceTitleString:U,resource:W,setextHeading:s(F),setextHeadingLineSequence:A,setextHeadingText:C,strong:s(),thematicBreak:s()}};pg(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(M){let O={type:"root",children:[]};const X={stack:[O],tokenStack:[],config:t,enter:u,exit:a,buffer:o,resume:f,data:n},re=[];let ae=-1;for(;++ae<M.length;)if(M[ae][1].type==="listOrdered"||M[ae][1].type==="listUnordered")if(M[ae][0]==="enter")re.push(ae);else{const xt=re.pop();ae=i(M,xt,ae)}for(ae=-1;++ae<M.length;){const xt=t[M[ae][0]];fg.call(xt,M[ae][1].type)&&xt[M[ae][1].type].call(Object.assign({sliceSerialize:M[ae][2].sliceSerialize},X),M[ae][1])}if(X.tokenStack.length>0){const xt=X.tokenStack[X.tokenStack.length-1];(xt[1]||bp).call(X,void 0,xt[0])}for(O.position={start:sn(M.length>0?M[0][1].start:{line:1,column:1,offset:0}),end:sn(M.length>0?M[M.length-2][1].end:{line:1,column:1,offset:0})},ae=-1;++ae<t.transforms.length;)O=t.transforms[ae](O)||O;return O}function i(M,O,X){let re=O-1,ae=-1,xt=!1,Pn,Ut,$r,Hr;for(;++re<=X;){const et=M[re];switch(et[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{et[0]==="enter"?ae++:ae--,Hr=void 0;break}case"lineEndingBlank":{et[0]==="enter"&&(Pn&&!Hr&&!ae&&!$r&&($r=re),Hr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Hr=void 0}if(!ae&&et[0]==="enter"&&et[1].type==="listItemPrefix"||ae===-1&&et[0]==="exit"&&(et[1].type==="listUnordered"||et[1].type==="listOrdered")){if(Pn){let nr=re;for(Ut=void 0;nr--;){const Vt=M[nr];if(Vt[1].type==="lineEnding"||Vt[1].type==="lineEndingBlank"){if(Vt[0]==="exit")continue;Ut&&(M[Ut][1].type="lineEndingBlank",xt=!0),Vt[1].type="lineEnding",Ut=nr}else if(!(Vt[1].type==="linePrefix"||Vt[1].type==="blockQuotePrefix"||Vt[1].type==="blockQuotePrefixWhitespace"||Vt[1].type==="blockQuoteMarker"||Vt[1].type==="listItemIndent"))break}$r&&(!Ut||$r<Ut)&&(Pn._spread=!0),Pn.end=Object.assign({},Ut?M[Ut][1].start:et[1].end),M.splice(Ut||re,0,["exit",Pn,et[2]]),re++,X++}if(et[1].type==="listItemPrefix"){const nr={type:"listItem",_spread:!1,start:Object.assign({},et[1].start),end:void 0};Pn=nr,M.splice(re,0,["enter",nr,et[2]]),re++,X++,$r=void 0,Hr=!0}}}return M[O][1]._spread=xt,X}function l(M,O){return X;function X(re){u.call(this,M(re),re),O&&O.call(this,re)}}function o(){this.stack.push({type:"fragment",children:[]})}function u(M,O,X){this.stack[this.stack.length-1].children.push(M),this.stack.push(M),this.tokenStack.push([O,X||void 0]),M.position={start:sn(O.start),end:void 0}}function s(M){return O;function O(X){M&&M.call(this,X),a.call(this,X)}}function a(M,O){const X=this.stack.pop(),re=this.tokenStack.pop();if(re)re[0].type!==M.type&&(O?O.call(this,M,re[0]):(re[1]||bp).call(this,M,re[0]));else throw new Error("Cannot close `"+M.type+"` ("+gi({start:M.start,end:M.end})+"): itโ€™s not open");X.position.end=sn(M.end)}function f(){return xc(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(M){if(this.data.expectingFirstListItemValue){const O=this.stack[this.stack.length-2];O.start=Number.parseInt(this.sliceSerialize(M),10),this.data.expectingFirstListItemValue=void 0}}function d(){const M=this.resume(),O=this.stack[this.stack.length-1];O.lang=M}function m(){const M=this.resume(),O=this.stack[this.stack.length-1];O.meta=M}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const M=this.resume(),O=this.stack[this.stack.length-1];O.value=M.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function h(){const M=this.resume(),O=this.stack[this.stack.length-1];O.value=M.replace(/(\r?\n|\r)$/g,"")}function g(M){const O=this.resume(),X=this.stack[this.stack.length-1];X.label=O,X.identifier=bt(this.sliceSerialize(M)).toLowerCase()}function y(){const M=this.resume(),O=this.stack[this.stack.length-1];O.title=M}function _(){const M=this.resume(),O=this.stack[this.stack.length-1];O.url=M}function I(M){const O=this.stack[this.stack.length-1];if(!O.depth){const X=this.sliceSerialize(M).length;O.depth=X}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function A(M){const O=this.stack[this.stack.length-1];O.depth=this.sliceSerialize(M).codePointAt(0)===61?1:2}function F(){this.data.setextHeadingSlurpLineEnding=void 0}function Q(M){const X=this.stack[this.stack.length-1].children;let re=X[X.length-1];(!re||re.type!=="text")&&(re=_e(),re.position={start:sn(M.start),end:void 0},X.push(re)),this.stack.push(re)}function b(M){const O=this.stack.pop();O.value+=this.sliceSerialize(M),O.position.end=sn(M.end)}function $(M){const O=this.stack[this.stack.length-1];if(this.data.atHardBreak){const X=O.children[O.children.length-1];X.position.end=sn(M.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(O.type)&&(Q.call(this,M),b.call(this,M))}function H(){this.data.atHardBreak=!0}function Z(){const M=this.resume(),O=this.stack[this.stack.length-1];O.value=M}function z(){const M=this.resume(),O=this.stack[this.stack.length-1];O.value=M}function T(){const M=this.resume(),O=this.stack[this.stack.length-1];O.value=M}function P(){const M=this.stack[this.stack.length-1];if(this.data.inReference){const O=this.data.referenceType||"shortcut";M.type+="Reference",M.referenceType=O,delete M.url,delete M.title}else delete M.identifier,delete M.label;this.data.referenceType=void 0}function R(){const M=this.stack[this.stack.length-1];if(this.data.inReference){const O=this.data.referenceType||"shortcut";M.type+="Reference",M.referenceType=O,delete M.url,delete M.title}else delete M.identifier,delete M.label;this.data.referenceType=void 0}function L(M){const O=this.sliceSerialize(M),X=this.stack[this.stack.length-2];X.label=rC(O),X.identifier=bt(O).toLowerCase()}function N(){const M=this.stack[this.stack.length-1],O=this.resume(),X=this.stack[this.stack.length-1];if(this.data.inReference=!0,X.type==="link"){const re=M.children;X.children=re}else X.alt=O}function x(){const M=this.resume(),O=this.stack[this.stack.length-1];O.url=M}function U(){const M=this.resume(),O=this.stack[this.stack.length-1];O.title=M}function W(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function J(M){const O=this.resume(),X=this.stack[this.stack.length-1];X.label=O,X.identifier=bt(this.sliceSerialize(M)).toLowerCase(),this.data.referenceType="full"}function de(M){this.data.characterReferenceType=M.type}function ee(M){const O=this.sliceSerialize(M),X=this.data.characterReferenceType;let re;X?(re=tg(O,X==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):re=vc(O);const ae=this.stack[this.stack.length-1];ae.value+=re}function he(M){const O=this.stack.pop();O.position.end=sn(M.end)}function ye(M){b.call(this,M);const O=this.stack[this.stack.length-1];O.url=this.sliceSerialize(M)}function se(M){b.call(this,M);const O=this.stack[this.stack.length-1];O.url="mailto:"+this.sliceSerialize(M)}function Bt(){return{type:"blockquote",children:[]}}function er(){return{type:"code",lang:null,meta:null,value:""}}function eu(){return{type:"inlineCode",value:""}}function Zi(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function $t(){return{type:"emphasis",children:[]}}function Ie(){return{type:"heading",depth:0,children:[]}}function Ht(){return{type:"break"}}function tr(){return{type:"html",value:""}}function tu(){return{type:"image",title:null,url:"",alt:null}}function Ji(){return{type:"link",title:null,url:"",children:[]}}function el(M){return{type:"list",ordered:M.type==="listOrdered",start:null,spread:M._spread,children:[]}}function B(M){return{type:"listItem",spread:M._spread,checked:null,children:[]}}function ie(){return{type:"paragraph",children:[]}}function G(){return{type:"strong",children:[]}}function _e(){return{type:"text",value:""}}function on(){return{type:"thematicBreak"}}}function sn(e){return{line:e.line,column:e.column,offset:e.offset}}function pg(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?pg(e,r):uC(e,r)}}function uC(e,t){let n;for(n in t)if(fg.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function bp(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+gi({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+gi({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+gi({start:t.start,end:t.end})+") is still open")}function sC(e){const t=this;t.parser=n;function n(r){return lC(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function aC(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function cC(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function fC(e,t){const n=t.value?t.value+`
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function pC(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dC(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function hC(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Br(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,u+=1,e.footnoteCounts.set(r,u);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const a={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,a),e.applyData(t,a)}function mC(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function gC(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function dg(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function yC(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return dg(e,t);const i={src:Br(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)}function xC(e,t){const n={src:Br(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function vC(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function wC(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return dg(e,t);const i={href:Br(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function kC(e,t){const n={href:Br(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function SC(e,t,n){const r=e.all(t),i=n?_C(n):hg(t),l={},o=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const f=r[u];(i||u!==0||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:`
`}),f.type==="element"&&f.tagName==="p"&&!i?o.push(...f.children):o.push(f)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
`});const a={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,a),e.applyData(t,a)}function _C(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=hg(n[r])}return t}function hg(e){const t=e.spread;return t??e.children.length>1}function CC(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)}function EC(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function bC(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function TC(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function zC(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=hc(t.children[1]),s=qm(t.children[t.children.length-1]);u&&s&&(o.position={start:u,end:s}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function IC(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,u=o?o.length:t.children.length;let s=-1;const a=[];for(;++s<u;){const c=t.children[s],p={},d=o?o[s]:void 0;d&&(p.align=d);let m={type:"element",tagName:l,properties:p,children:[]};c&&(m.children=e.all(c),e.patch(c,m),m=e.applyData(c,m)),a.push(m)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(a,!0)};return e.patch(t,f),e.applyData(t,f)}function PC(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Tp=9,zp=32;function LC(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const l=[];for(;r;)l.push(Ip(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(Ip(t.slice(i),i>0,!1)),l.join("")}function Ip(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===Tp||l===zp;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===Tp||l===zp;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function MC(e,t){const n={type:"text",value:LC(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function AC(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const NC={blockquote:aC,break:cC,code:fC,delete:pC,emphasis:dC,footnoteReference:hC,heading:mC,html:gC,imageReference:yC,image:xC,inlineCode:vC,linkReference:wC,link:kC,listItem:SC,list:CC,paragraph:EC,root:bC,strong:TC,table:zC,tableCell:PC,tableRow:IC,text:MC,thematicBreak:AC,toml:Sl,yaml:Sl,definition:Sl,footnoteDefinition:Sl};function Sl(){}const mg=-1,Ko=0,xi=1,bo=2,kc=3,Sc=4,_c=5,Cc=6,gg=7,yg=8,Pp=typeof self=="object"?self:globalThis,RC=(e,t)=>{const n=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=t[i];switch(l){case Ko:case mg:return n(o,i);case xi:{const u=n([],i);for(const s of o)u.push(r(s));return u}case bo:{const u=n({},i);for(const[s,a]of o)u[r(s)]=r(a);return u}case kc:return n(new Date(o),i);case Sc:{const{source:u,flags:s}=o;return n(new RegExp(u,s),i)}case _c:{const u=n(new Map,i);for(const[s,a]of o)u.set(r(s),r(a));return u}case Cc:{const u=n(new Set,i);for(const s of o)u.add(r(s));return u}case gg:{const{name:u,message:s}=o;return n(new Pp[u](s),i)}case yg:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:u}=new Uint8Array(o);return n(new DataView(u),o)}}return n(new Pp[l](o),i)};return r},Lp=e=>RC(new Map,e)(0),ir="",{toString:DC}={},{keys:jC}=Object,ei=e=>{const t=typeof e;if(t!=="object"||!e)return[Ko,t];const n=DC.call(e).slice(8,-1);switch(n){case"Array":return[xi,ir];case"Object":return[bo,ir];case"Date":return[kc,ir];case"RegExp":return[Sc,ir];case"Map":return[_c,ir];case"Set":return[Cc,ir];case"DataView":return[xi,n]}return n.includes("Array")?[xi,n]:n.includes("Error")?[gg,n]:[bo,n]},_l=([e,t])=>e===Ko&&(t==="function"||t==="symbol"),FC=(e,t,n,r)=>{const i=(o,u)=>{const s=r.push(o)-1;return n.set(u,s),s},l=o=>{if(n.has(o))return n.get(o);let[u,s]=ei(o);switch(u){case Ko:{let f=o;switch(s){case"bigint":u=yg,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);f=null;break;case"undefined":return i([mg],o)}return i([u,f],o)}case xi:{if(s){let p=o;return s==="DataView"?p=new Uint8Array(o.buffer):s==="ArrayBuffer"&&(p=new Uint8Array(o)),i([s,[...p]],o)}const f=[],c=i([u,f],o);for(const p of o)f.push(l(p));return c}case bo:{if(s)switch(s){case"BigInt":return i([s,o.toString()],o);case"Boolean":case"Number":case"String":return i([s,o.valueOf()],o)}if(t&&"toJSON"in o)return l(o.toJSON());const f=[],c=i([u,f],o);for(const p of jC(o))(e||!_l(ei(o[p])))&&f.push([l(p),l(o[p])]);return c}case kc:return i([u,o.toISOString()],o);case Sc:{const{source:f,flags:c}=o;return i([u,{source:f,flags:c}],o)}case _c:{const f=[],c=i([u,f],o);for(const[p,d]of o)(e||!(_l(ei(p))||_l(ei(d))))&&f.push([l(p),l(d)]);return c}case Cc:{const f=[],c=i([u,f],o);for(const p of o)(e||!_l(ei(p)))&&f.push(l(p));return c}}const{message:a}=o;return i([u,{name:s,message:a}],o)};return l},Mp=(e,{json:t,lossy:n}={})=>{const r=[];return FC(!(t||n),!!t,new Map,r)(e),r},To=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Lp(Mp(e,t)):structuredClone(e):(e,t)=>Lp(Mp(e,t));function OC(e,t){const n=[{type:"text",value:"โ†ฉ"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function BC(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function $C(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||OC,r=e.options.footnoteBackLabel||BC,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let s=-1;for(;++s<e.footnoteOrder.length;){const a=e.footnoteById.get(e.footnoteOrder[s]);if(!a)continue;const f=e.all(a),c=String(a.identifier).toUpperCase(),p=Br(c.toLowerCase());let d=0;const m=[],w=e.footnoteCounts.get(c);for(;w!==void 0&&++d<=w;){m.length>0&&m.push({type:"text",value:" "});let g=typeof n=="string"?n:n(s,d);typeof g=="string"&&(g={type:"text",value:g}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,d),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const E=f[f.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const g=E.children[E.children.length-1];g&&g.type==="text"?g.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...m)}else f.push(...m);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(f,!0)};e.patch(a,h),u.push(h)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...To(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
`}]}}const Zo=function(e){if(e==null)return WC;if(typeof e=="function")return Jo(e);if(typeof e=="object")return Array.isArray(e)?HC(e):UC(e);if(typeof e=="string")return VC(e);throw new Error("Expected function, string, or object as test")};function HC(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Zo(e[n]);return Jo(r);function r(...i){let l=-1;for(;++l<t.length;)if(t[l].apply(this,i))return!0;return!1}}function UC(e){const t=e;return Jo(n);function n(r){const i=r;let l;for(l in e)if(i[l]!==t[l])return!1;return!0}}function VC(e){return Jo(t);function t(n){return n&&n.type===e}}function Jo(e){return t;function t(n,r,i){return!!(QC(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function WC(){return!0}function QC(e){return e!==null&&typeof e=="object"&&"type"in e}const xg=[],qC=!0,na=!1,YC="skip";function vg(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const l=Zo(i),o=r?-1:1;u(e,void 0,[])();function u(s,a,f){const c=s&&typeof s=="object"?s:{};if(typeof c.type=="string"){const d=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(s.type+(d?"<"+d+">":""))+")"})}return p;function p(){let d=xg,m,w,E;if((!t||l(s,a,f[f.length-1]||void 0))&&(d=XC(n(s,f)),d[0]===na))return d;if("children"in s&&s.children){const h=s;if(h.children&&d[0]!==YC)for(w=(r?h.children.length:-1)+o,E=f.concat(h);w>-1&&w<h.children.length;){const g=h.children[w];if(m=u(g,w,E)(),m[0]===na)return m;w=typeof m[1]=="number"?m[1]:w+o}}return d}}}function XC(e){return Array.isArray(e)?e:typeof e=="number"?[qC,e]:e==null?xg:[e]}function Ec(e,t,n,r){let i,l,o;typeof t=="function"&&typeof n!="function"?(l=void 0,o=t,i=n):(l=t,o=n,i=r),vg(e,l,u,i);function u(s,a){const f=a[a.length-1],c=f?f.children.indexOf(s):void 0;return o(s,c,f)}}const ra={}.hasOwnProperty,GC={};function KC(e,t){const n=t||GC,r=new Map,i=new Map,l=new Map,o={...NC,...n.handlers},u={all:a,applyData:JC,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:s,options:n,patch:ZC,wrap:t2};return Ec(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),u;function s(f,c){const p=f.type,d=u.handlers[p];if(ra.call(u.handlers,p)&&d)return d(u,f,c);if(u.options.passThrough&&u.options.passThrough.includes(p)){if("children"in f){const{children:w,...E}=f,h=To(E);return h.children=u.all(f),h}return To(f)}return(u.options.unknownHandler||e2)(u,f,c)}function a(f){const c=[];if("children"in f){const p=f.children;let d=-1;for(;++d<p.length;){const m=u.one(p[d],f);if(m){if(d&&p[d-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=Ap(m.value)),!Array.isArray(m)&&m.type==="element")){const w=m.children[0];w&&w.type==="text"&&(w.value=Ap(w.value))}Array.isArray(m)?c.push(...m):c.push(m)}}}return c}}function ZC(e,t){e.position&&(t.position=Bk(e))}function JC(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&l&&Object.assign(n.properties,To(l)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function e2(e,t){const n=t.data||{},r="value"in t&&!(ra.call(n,"hProperties")||ra.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function t2(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
`});++r<e.length;)r&&n.push({type:"text",value:`
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
`}),n}function Ap(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Np(e,t){const n=KC(e,t),r=n.one(e,void 0),i=$C(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
`},i),l}function n2(e,t){return e&&"run"in e?async function(n,r){const i=Np(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Np(n,{file:r,...e||t})}}function Rp(e){if(e)throw e}var Ul=Object.prototype.hasOwnProperty,wg=Object.prototype.toString,Dp=Object.defineProperty,jp=Object.getOwnPropertyDescriptor,Fp=function(t){return typeof Array.isArray=="function"?Array.isArray(t):wg.call(t)==="[object Array]"},Op=function(t){if(!t||wg.call(t)!=="[object Object]")return!1;var n=Ul.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Ul.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Ul.call(t,i)},Bp=function(t,n){Dp&&n.name==="__proto__"?Dp(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},$p=function(t,n){if(n==="__proto__")if(Ul.call(t,n)){if(jp)return jp(t,n).value}else return;return t[n]},r2=function e(){var t,n,r,i,l,o,u=arguments[0],s=1,a=arguments.length,f=!1;for(typeof u=="boolean"&&(f=u,u=arguments[1]||{},s=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});s<a;++s)if(t=arguments[s],t!=null)for(n in t)r=$p(u,n),i=$p(t,n),u!==i&&(f&&i&&(Op(i)||(l=Fp(i)))?(l?(l=!1,o=r&&Fp(r)?r:[]):o=r&&Op(r)?r:{},Bp(u,{name:n,newValue:e(f,o,i)})):typeof i<"u"&&Bp(u,{name:n,newValue:i}));return u};const Ru=sa(r2);function ia(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function i2(){const e=[],t={run:n,use:r};return t;function n(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);u(null,...i);function u(s,...a){const f=e[++l];let c=-1;if(s){o(s);return}for(;++c<i.length;)(a[c]===null||a[c]===void 0)&&(a[c]=i[c]);i=a,f?l2(f,u)(...a):o(null,...a)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function l2(e,t){let n;return r;function r(...o){const u=e.length>o.length;let s;u&&o.push(i);try{s=e.apply(this,o)}catch(a){const f=a;if(u&&n)throw f;return i(f)}u||(s&&s.then&&typeof s.then=="function"?s.then(l,i):s instanceof Error?i(s):l(s))}function i(o,...u){n||(n=!0,t(o,...u))}function l(o){i(null,o)}}const Mt={basename:o2,dirname:u2,extname:s2,join:a2,sep:"/"};function o2(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ki(e);let n=0,r=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else o<0&&(l=!0,o=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(r=i):(u=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function u2(e){if(Ki(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function s2(e){Ki(e);let t=e.length,n=-1,r=0,i=-1,l=0,o;for(;t--;){const u=e.codePointAt(t);if(u===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),u===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function a2(...e){let t=-1,n;for(;++t<e.length;)Ki(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":c2(n)}function c2(e){Ki(e);const t=e.codePointAt(0)===47;let n=f2(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function f2(e,t){let n="",r=0,i=-1,l=0,o=-1,u,s;for(;++o<=e.length;){if(o<e.length)u=e.codePointAt(o);else{if(u===47)break;u=47}if(u===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),i=o,l=0;continue}}else if(n.length>0){n="",r=0,i=o,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,l=0}else u===46&&l>-1?l++:l=-1}return n}function Ki(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const p2={cwd:d2};function d2(){return"/"}function la(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function h2(e){if(typeof e=="string")e=new URL(e);else if(!la(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return m2(e)}function m2(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Du=["history","path","basename","stem","extname","dirname"];class kg{constructor(t){let n;t?la(t)?n={path:t}:typeof t=="string"||g2(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":p2.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Du.length;){const l=Du[r];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let i;for(i in n)Du.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Mt.basename(this.path):void 0}set basename(t){Fu(t,"basename"),ju(t,"basename"),this.path=Mt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Mt.dirname(this.path):void 0}set dirname(t){Hp(this.basename,"dirname"),this.path=Mt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Mt.extname(this.path):void 0}set extname(t){if(ju(t,"extname"),Hp(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Mt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){la(t)&&(t=h2(t)),Fu(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Mt.basename(this.path,this.extname):void 0}set stem(t){Fu(t,"stem"),ju(t,"stem"),this.path=Mt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Be(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ju(e,t){if(e&&e.includes(Mt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Mt.sep+"`")}function Fu(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Hp(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function g2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const y2=function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},x2={}.hasOwnProperty;class bc extends y2{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=i2()}copy(){const t=new bc;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Ru(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?($u("data",this.frozen),this.namespace[t]=n,this):x2.call(this.namespace,t)&&this.namespace[t]||void 0:t?($u("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Cl(t),r=this.parser||this.Parser;return Ou("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ou("process",this.parser||this.Parser),Bu("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(l,o){const u=Cl(t),s=r.parse(u);r.run(s,u,function(f,c,p){if(f||!c||!p)return a(f);const d=c,m=r.stringify(d,p);k2(m)?p.value=m:p.result=m,a(f,p)});function a(f,c){f||!c?o(f):l?l(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),Ou("processSync",this.parser||this.Parser),Bu("processSync",this.compiler||this.Compiler),this.process(t,i),Vp("processSync","process",n),r;function i(l,o){n=!0,Rp(l),r=o}}run(t,n,r){Up(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?l(void 0,r):new Promise(l);function l(o,u){const s=Cl(n);i.run(t,s,a);function a(f,c,p){const d=c||t;f?u(f):o?o(d):r(void 0,d,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,l),Vp("runSync","run",r),i;function l(o,u){Rp(o),i=u,r=!0}}stringify(t,n){this.freeze();const r=Cl(n),i=this.compiler||this.Compiler;return Bu("stringify",i),Up(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if($u("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(a){if(typeof a=="function")s(a,[]);else if(typeof a=="object")if(Array.isArray(a)){const[f,...c]=a;s(f,c)}else o(a);else throw new TypeError("Expected usable value, not `"+a+"`")}function o(a){if(!("plugins"in a)&&!("settings"in a))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");u(a.plugins),a.settings&&(i.settings=Ru(!0,i.settings,a.settings))}function u(a){let f=-1;if(a!=null)if(Array.isArray(a))for(;++f<a.length;){const c=a[f];l(c)}else throw new TypeError("Expected a list of plugins, not `"+a+"`")}function s(a,f){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===a){p=c;break}if(p===-1)r.push([a,...f]);else if(f.length>0){let[d,...m]=f;const w=r[p][1];ia(w)&&ia(d)&&(d=Ru(!0,w,d)),r[p]=[a,d,...m]}}}}const v2=new bc().freeze();function Ou(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Bu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function $u(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Up(e){if(!ia(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Vp(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Cl(e){return w2(e)?e:new kg(e)}function w2(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function k2(e){return typeof e=="string"||S2(e)}function S2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const _2="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Wp=[],Qp={allowDangerousHtml:!0},C2=/^(https?|ircs?|mailto|xmpp)$/i,E2=[{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:"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 b2(e){const t=T2(e),n=z2(e);return I2(t.runSync(t.parse(n),n),e)}function T2(e){const t=e.rehypePlugins||Wp,n=e.remarkPlugins||Wp,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Qp}:Qp;return v2().use(sC).use(n).use(n2,r).use(t)}function z2(e){const t=e.children||"",n=new kg;return typeof t=="string"&&(n.value=t),n}function I2(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,o=t.skipHtml,u=t.unwrapDisallowed,s=t.urlTransform||P2;for(const f of E2)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+_2+f.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),Ec(e,a),Wk(e,{Fragment:v.Fragment,components:i,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function a(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return o?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let d;for(d in Mu)if(Object.hasOwn(Mu,d)&&Object.hasOwn(f.properties,d)){const m=f.properties[d],w=Mu[d];(w===null||w.includes(f.tagName))&&(f.properties[d]=s(String(m||""),d,f))}}if(f.type==="element"){let d=n?!n.includes(f.tagName):l?l.includes(f.tagName):!1;if(!d&&r&&typeof c=="number"&&(d=!r(f,c,p)),d&&p&&typeof c=="number")return u&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function P2(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||C2.test(e.slice(0,t))?e:""}function qp(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function L2(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function M2(e,t,n){const i=Zo((n||{}).ignore||[]),l=A2(t);let o=-1;for(;++o<l.length;)vg(e,"text",u);function u(a,f){let c=-1,p;for(;++c<f.length;){const d=f[c],m=p?p.children:void 0;if(i(d,m?m.indexOf(d):void 0,p))return;p=d}if(p)return s(a,f)}function s(a,f){const c=f[f.length-1],p=l[o][0],d=l[o][1];let m=0;const E=c.children.indexOf(a);let h=!1,g=[];p.lastIndex=0;let y=p.exec(a.value);for(;y;){const _=y.index,I={index:y.index,input:y.input,stack:[...f,a]};let C=d(...y,I);if(typeof C=="string"&&(C=C.length>0?{type:"text",value:C}:void 0),C===!1?p.lastIndex=_+1:(m!==_&&g.push({type:"text",value:a.value.slice(m,_)}),Array.isArray(C)?g.push(...C):C&&g.push(C),m=_+y[0].length,h=!0),!p.global)break;y=p.exec(a.value)}return h?(m<a.value.length&&g.push({type:"text",value:a.value.slice(m)}),c.children.splice(E,1,...g)):g=[a],E+g.length}}function A2(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([N2(i[0]),R2(i[1])])}return t}function N2(e){return typeof e=="string"?new RegExp(L2(e),"g"):e}function R2(e){return typeof e=="function"?e:function(){return e}}const Hu="phrasing",Uu=["autolink","link","image","label"];function D2(){return{transforms:[U2],enter:{literalAutolink:F2,literalAutolinkEmail:Vu,literalAutolinkHttp:Vu,literalAutolinkWww:Vu},exit:{literalAutolink:H2,literalAutolinkEmail:$2,literalAutolinkHttp:O2,literalAutolinkWww:B2}}}function j2(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Hu,notInConstruct:Uu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Hu,notInConstruct:Uu},{character:":",before:"[ps]",after:"\\/",inConstruct:Hu,notInConstruct:Uu}]}}function F2(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Vu(e){this.config.enter.autolinkProtocol.call(this,e)}function O2(e){this.config.exit.autolinkProtocol.call(this,e)}function B2(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function $2(e){this.config.exit.autolinkEmail.call(this,e)}function H2(e){this.exit(e)}function U2(e){M2(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,V2],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),W2]],{ignore:["link","linkReference"]})}function V2(e,t,n,r,i){let l="";if(!Sg(i)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!Q2(n)))return!1;const o=q2(n+r);if(!o[0])return!1;const u={type:"link",title:null,url:l+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[u,{type:"text",value:o[1]}]:u}function W2(e,t,n,r){return!Sg(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Q2(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function q2(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=qp(e,"(");let l=qp(e,")");for(;r!==-1&&i>l;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),l++;return[e,n]}function Sg(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Xn(n)||Xo(n))&&(!t||n!==47)}_g.peek=nE;function Y2(){this.buffer()}function X2(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function G2(){this.buffer()}function K2(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Z2(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=bt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function J2(e){this.exit(e)}function eE(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=bt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function tE(e){this.exit(e)}function nE(){return"["}function _g(e,t,n,r){const i=n.createTracker(r);let l=i.move("[^");const o=n.enter("footnoteReference"),u=n.enter("reference");return l+=i.move(n.safe(n.associationId(e),{after:"]",before:l})),u(),o(),l+=i.move("]"),l}function rE(){return{enter:{gfmFootnoteCallString:Y2,gfmFootnoteCall:X2,gfmFootnoteDefinitionLabelString:G2,gfmFootnoteDefinition:K2},exit:{gfmFootnoteCallString:Z2,gfmFootnoteCall:J2,gfmFootnoteDefinitionLabelString:eE,gfmFootnoteDefinition:tE}}}function iE(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:_g},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,l,o){const u=l.createTracker(o);let s=u.move("[^");const a=l.enter("footnoteDefinition"),f=l.enter("label");return s+=u.move(l.safe(l.associationId(r),{before:s,after:"]"})),f(),s+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),s+=u.move((t?`
`:" ")+l.indentLines(l.containerFlow(r,u.current()),t?Cg:lE))),a(),s}}function lE(e,t,n){return t===0?e:Cg(e,t,n)}function Cg(e,t,n){return(n?"":"    ")+e}const oE=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Eg.peek=fE;function uE(){return{canContainEols:["delete"],enter:{strikethrough:aE},exit:{strikethrough:cE}}}function sE(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:oE}],handlers:{delete:Eg}}}function aE(e){this.enter({type:"delete",children:[]},e)}function cE(e){this.exit(e)}function Eg(e,t,n,r){const i=n.createTracker(r),l=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}function fE(){return"~"}function pE(e){return e.length}function dE(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||pE,l=[],o=[],u=[],s=[];let a=0,f=-1;for(;++f<e.length;){const w=[],E=[];let h=-1;for(e[f].length>a&&(a=e[f].length);++h<e[f].length;){const g=hE(e[f][h]);if(n.alignDelimiters!==!1){const y=i(g);E[h]=y,(s[h]===void 0||y>s[h])&&(s[h]=y)}w.push(g)}o[f]=w,u[f]=E}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<a;)l[c]=Yp(r[c]);else{const w=Yp(r);for(;++c<a;)l[c]=w}c=-1;const p=[],d=[];for(;++c<a;){const w=l[c];let E="",h="";w===99?(E=":",h=":"):w===108?E=":":w===114&&(h=":");let g=n.alignDelimiters===!1?1:Math.max(1,s[c]-E.length-h.length);const y=E+"-".repeat(g)+h;n.alignDelimiters!==!1&&(g=E.length+g+h.length,g>s[c]&&(s[c]=g),d[c]=g),p[c]=y}o.splice(1,0,p),u.splice(1,0,d),f=-1;const m=[];for(;++f<o.length;){const w=o[f],E=u[f];c=-1;const h=[];for(;++c<a;){const g=w[c]||"";let y="",_="";if(n.alignDelimiters!==!1){const I=s[c]-(E[c]||0),C=l[c];C===114?y=" ".repeat(I):C===99?I%2?(y=" ".repeat(I/2+.5),_=" ".repeat(I/2-.5)):(y=" ".repeat(I/2),_=y):_=" ".repeat(I)}n.delimiterStart!==!1&&!c&&h.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&g==="")&&(n.delimiterStart!==!1||c)&&h.push(" "),n.alignDelimiters!==!1&&h.push(y),h.push(g),n.alignDelimiters!==!1&&h.push(_),n.padding!==!1&&h.push(" "),(n.delimiterEnd!==!1||c!==a-1)&&h.push("|")}m.push(n.delimiterEnd===!1?h.join("").replace(/ +$/,""):h.join(""))}return m.join(`
`)}function hE(e){return e==null?"":String(e)}function Yp(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function mE(e,t,n,r){const i=n.enter("blockquote"),l=n.createTracker(r);l.move("> "),l.shift(2);const o=n.indentLines(n.containerFlow(e,l.current()),gE);return i(),o}function gE(e,t,n){return">"+(n?"":" ")+e}function yE(e,t){return Xp(e,t.inConstruct,!0)&&!Xp(e,t.notInConstruct,!1)}function Xp(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Gp(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
`&&yE(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
`}function xE(e,t){const n=String(e);let r=n.indexOf(t),i=r,l=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++l>o&&(o=l):l=1,i=r+t.length,r=n.indexOf(t,i);return o}function vE(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function wE(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function kE(e,t,n,r){const i=wE(n),l=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(vE(e,n)){const c=n.enter("codeIndented"),p=n.indentLines(l,SE);return c(),p}const u=n.createTracker(r),s=i.repeat(Math.max(xE(l,i)+1,3)),a=n.enter("codeFenced");let f=u.move(s);if(e.lang){const c=n.enter(`codeFencedLang${o}`);f+=u.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...u.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${o}`);f+=u.move(" "),f+=u.move(n.safe(e.meta,{before:f,after:`
`,encode:["`"],...u.current()})),c()}return f+=u.move(`
`),l&&(f+=u.move(l+`
`)),f+=u.move(s),a(),f}function SE(e,t,n){return(n?"":"    ")+e}function Tc(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function _E(e,t,n,r){const i=Tc(n),l=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let u=n.enter("label");const s=n.createTracker(r);let a=s.move("[");return a+=s.move(n.safe(n.associationId(e),{before:a,after:"]",...s.current()})),a+=s.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),a+=s.move("<"),a+=s.move(n.safe(e.url,{before:a,after:">",...s.current()})),a+=s.move(">")):(u=n.enter("destinationRaw"),a+=s.move(n.safe(e.url,{before:a,after:e.title?" ":`
`,...s.current()}))),u(),e.title&&(u=n.enter(`title${l}`),a+=s.move(" "+i),a+=s.move(n.safe(e.title,{before:a,after:i,...s.current()})),a+=s.move(i),u()),o(),a}function CE(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function $i(e){return"&#x"+e.toString(16).toUpperCase()+";"}function zo(e,t,n){const r=Rr(e),i=Rr(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}bg.peek=EE;function bg(e,t,n,r){const i=CE(n),l=n.enter("emphasis"),o=n.createTracker(r),u=o.move(i);let s=o.move(n.containerPhrasing(e,{after:i,before:u,...o.current()}));const a=s.charCodeAt(0),f=zo(r.before.charCodeAt(r.before.length-1),a,i);f.inside&&(s=$i(a)+s.slice(1));const c=s.charCodeAt(s.length-1),p=zo(r.after.charCodeAt(0),c,i);p.inside&&(s=s.slice(0,-1)+$i(c));const d=o.move(i);return l(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},u+s+d}function EE(e,t,n){return n.options.emphasis||"*"}function bE(e,t){let n=!1;return Ec(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,na}),!!((!e.depth||e.depth<3)&&xc(e)&&(t.options.setext||n))}function TE(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(r);if(bE(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),p=n.containerPhrasing(e,{...l.current(),before:`
`,after:`
`});return c(),f(),p+`
`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
`))+1))}const o="#".repeat(i),u=n.enter("headingAtx"),s=n.enter("phrasing");l.move(o+" ");let a=n.containerPhrasing(e,{before:"# ",after:`
`,...l.current()});return/^[\t ]/.test(a)&&(a=$i(a.charCodeAt(0))+a.slice(1)),a=a?o+" "+a:o,n.options.closeAtx&&(a+=" "+o),s(),u(),a}Tg.peek=zE;function Tg(e){return e.value||""}function zE(){return"<"}zg.peek=IE;function zg(e,t,n,r){const i=Tc(n),l=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let u=n.enter("label");const s=n.createTracker(r);let a=s.move("![");return a+=s.move(n.safe(e.alt,{before:a,after:"]",...s.current()})),a+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),a+=s.move("<"),a+=s.move(n.safe(e.url,{before:a,after:">",...s.current()})),a+=s.move(">")):(u=n.enter("destinationRaw"),a+=s.move(n.safe(e.url,{before:a,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=n.enter(`title${l}`),a+=s.move(" "+i),a+=s.move(n.safe(e.title,{before:a,after:i,...s.current()})),a+=s.move(i),u()),a+=s.move(")"),o(),a}function IE(){return"!"}Ig.peek=PE;function Ig(e,t,n,r){const i=e.referenceType,l=n.enter("imageReference");let o=n.enter("label");const u=n.createTracker(r);let s=u.move("![");const a=n.safe(e.alt,{before:s,after:"]",...u.current()});s+=u.move(a+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...u.current()});return o(),n.stack=f,l(),i==="full"||!a||a!==c?s+=u.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=u.move("]"),s}function PE(){return"!"}Pg.peek=LE;function Pg(e,t,n){let r=e.value||"",i="`",l=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){const o=n.unsafe[l],u=n.compilePattern(o);let s;if(o.atBreak)for(;s=u.exec(r);){let a=s.index;r.charCodeAt(a)===10&&r.charCodeAt(a-1)===13&&a--,r=r.slice(0,a)+" "+r.slice(s.index+1)}}return i+r+i}function LE(){return"`"}function Lg(e,t){const n=xc(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Mg.peek=ME;function Mg(e,t,n,r){const i=Tc(n),l=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let u,s;if(Lg(e,n)){const f=n.stack;n.stack=[],u=n.enter("autolink");let c=o.move("<");return c+=o.move(n.containerPhrasing(e,{before:c,after:">",...o.current()})),c+=o.move(">"),u(),n.stack=f,c}u=n.enter("link"),s=n.enter("label");let a=o.move("[");return a+=o.move(n.containerPhrasing(e,{before:a,after:"](",...o.current()})),a+=o.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),a+=o.move("<"),a+=o.move(n.safe(e.url,{before:a,after:">",...o.current()})),a+=o.move(">")):(s=n.enter("destinationRaw"),a+=o.move(n.safe(e.url,{before:a,after:e.title?" ":")",...o.current()}))),s(),e.title&&(s=n.enter(`title${l}`),a+=o.move(" "+i),a+=o.move(n.safe(e.title,{before:a,after:i,...o.current()})),a+=o.move(i),s()),a+=o.move(")"),u(),a}function ME(e,t,n){return Lg(e,n)?"<":"["}Ag.peek=AE;function Ag(e,t,n,r){const i=e.referenceType,l=n.enter("linkReference");let o=n.enter("label");const u=n.createTracker(r);let s=u.move("[");const a=n.containerPhrasing(e,{before:s,after:"]",...u.current()});s+=u.move(a+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...u.current()});return o(),n.stack=f,l(),i==="full"||!a||a!==c?s+=u.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=u.move("]"),s}function AE(){return"["}function zc(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function NE(e){const t=zc(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function RE(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Ng(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function DE(e,t,n,r){const i=n.enter("list"),l=n.bulletCurrent;let o=e.ordered?RE(n):zc(n);const u=e.ordered?o==="."?")":".":NE(n);let s=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(s=!0),Ng(n)===o&&f){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(o=u),n.bulletCurrent=o;const a=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=l,i(),a}function jE(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function FE(e,t,n,r){const i=jE(n);let l=n.bulletCurrent||zc(n);t&&t.type==="list"&&t.ordered&&(l=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let o=l.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const u=n.createTracker(r);u.move(l+" ".repeat(o-l.length)),u.shift(o);const s=n.enter("listItem"),a=n.indentLines(n.containerFlow(e,u.current()),f);return s(),a;function f(c,p,d){return p?(d?"":" ".repeat(o))+c:(d?l:l+" ".repeat(o-l.length))+c}}function OE(e,t,n,r){const i=n.enter("paragraph"),l=n.enter("phrasing"),o=n.containerPhrasing(e,r);return l(),i(),o}const BE=Zo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function $E(e,t,n,r){return(e.children.some(function(o){return BE(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function HE(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Rg.peek=UE;function Rg(e,t,n,r){const i=HE(n),l=n.enter("strong"),o=n.createTracker(r),u=o.move(i+i);let s=o.move(n.containerPhrasing(e,{after:i,before:u,...o.current()}));const a=s.charCodeAt(0),f=zo(r.before.charCodeAt(r.before.length-1),a,i);f.inside&&(s=$i(a)+s.slice(1));const c=s.charCodeAt(s.length-1),p=zo(r.after.charCodeAt(0),c,i);p.inside&&(s=s.slice(0,-1)+$i(c));const d=o.move(i+i);return l(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},u+s+d}function UE(e,t,n){return n.options.strong||"*"}function VE(e,t,n,r){return n.safe(e.value,r)}function WE(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function QE(e,t,n){const r=(Ng(n)+(n.options.ruleSpaces?" ":"")).repeat(WE(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Dg={blockquote:mE,break:Gp,code:kE,definition:_E,emphasis:bg,hardBreak:Gp,heading:TE,html:Tg,image:zg,imageReference:Ig,inlineCode:Pg,link:Mg,linkReference:Ag,list:DE,listItem:FE,paragraph:OE,root:$E,strong:Rg,text:VE,thematicBreak:QE};function qE(){return{enter:{table:YE,tableData:Kp,tableHeader:Kp,tableRow:GE},exit:{codeText:KE,table:XE,tableData:Wu,tableHeader:Wu,tableRow:Wu}}}function YE(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function XE(e){this.exit(e),this.data.inTable=void 0}function GE(e){this.enter({type:"tableRow",children:[]},e)}function Wu(e){this.exit(e)}function Kp(e){this.enter({type:"tableCell",children:[]},e)}function KE(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ZE));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function ZE(e,t){return t==="|"?t:e}function JE(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:s,tableRow:u}};function o(d,m,w,E){return a(f(d,w,E),d.align)}function u(d,m,w,E){const h=c(d,w,E),g=a([h]);return g.slice(0,g.indexOf(`
`))}function s(d,m,w,E){const h=w.enter("tableCell"),g=w.enter("phrasing"),y=w.containerPhrasing(d,{...E,before:l,after:l});return g(),h(),y}function a(d,m){return dE(d,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function f(d,m,w){const E=d.children;let h=-1;const g=[],y=m.enter("table");for(;++h<E.length;)g[h]=c(E[h],m,w);return y(),g}function c(d,m,w){const E=d.children;let h=-1;const g=[],y=m.enter("tableRow");for(;++h<E.length;)g[h]=s(E[h],d,m,w);return y(),g}function p(d,m,w){let E=Dg.inlineCode(d,m,w);return w.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function eb(){return{exit:{taskListCheckValueChecked:Zp,taskListCheckValueUnchecked:Zp,paragraph:nb}}}function tb(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:rb}}}function Zp(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function nb(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let l=-1,o;for(;++l<i.length;){const u=i[l];if(u.type==="paragraph"){o=u;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function rb(e,t,n,r){const i=e.children[0],l=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",u=n.createTracker(r);l&&u.move(o);let s=Dg.listItem(e,t,n,{...r,...u.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,a)),s;function a(f){return f+o}}function ib(){return[D2(),rE(),uE(),qE(),eb()]}function lb(e){return{extensions:[j2(),iE(e),sE(),JE(e),tb()]}}const ob={tokenize:pb,partial:!0},jg={tokenize:db,partial:!0},Fg={tokenize:hb,partial:!0},Og={tokenize:mb,partial:!0},ub={tokenize:gb,partial:!0},Bg={name:"wwwAutolink",tokenize:cb,previous:Hg},$g={name:"protocolAutolink",tokenize:fb,previous:Ug},ln={name:"emailAutolink",tokenize:ab,previous:Vg},Ot={};function sb(){return{text:Ot}}let Mn=48;for(;Mn<123;)Ot[Mn]=ln,Mn++,Mn===58?Mn=65:Mn===91&&(Mn=97);Ot[43]=ln;Ot[45]=ln;Ot[46]=ln;Ot[95]=ln;Ot[72]=[ln,$g];Ot[104]=[ln,$g];Ot[87]=[ln,Bg];Ot[119]=[ln,Bg];function ab(e,t,n){const r=this;let i,l;return o;function o(c){return!oa(c)||!Vg.call(r,r.previous)||Ic(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(c))}function u(c){return oa(c)?(e.consume(c),u):c===64?(e.consume(c),s):n(c)}function s(c){return c===46?e.check(ub,f,a)(c):c===45||c===95||Fe(c)?(l=!0,e.consume(c),s):f(c)}function a(c){return e.consume(c),i=!0,s}function f(c){return l&&i&&He(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function cb(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!Hg.call(r,r.previous)||Ic(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ob,e.attempt(jg,e.attempt(Fg,l),n),n)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function fb(e,t,n){const r=this;let i="",l=!1;return o;function o(c){return(c===72||c===104)&&Ug.call(r,r.previous)&&!Ic(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),u):n(c)}function u(c){if(He(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),u;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),s}return n(c)}function s(c){return c===47?(e.consume(c),l?a:(l=!0,s)):n(c)}function a(c){return c===null||Eo(c)||ce(c)||Xn(c)||Xo(c)?n(c):e.attempt(jg,e.attempt(Fg,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function pb(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),l):n(o)}function l(o){return o===null?n(o):t(o)}}function db(e,t,n){let r,i,l;return o;function o(a){return a===46||a===95?e.check(Og,s,u)(a):a===null||ce(a)||Xn(a)||a!==45&&Xo(a)?s(a):(l=!0,e.consume(a),o)}function u(a){return a===95?r=!0:(i=r,r=void 0),e.consume(a),o}function s(a){return i||r||!l?n(a):t(a)}}function hb(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?l(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Og,t,l)(o):o===null||ce(o)||Xn(o)?t(o):(e.consume(o),i)}function l(o){return o===41&&r++,e.consume(o),i}}function mb(e,t,n){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),l):u===93?(e.consume(u),i):u===60||u===null||ce(u)||Xn(u)?t(u):n(u)}function i(u){return u===null||u===40||u===91||ce(u)||Xn(u)?t(u):r(u)}function l(u){return He(u)?o(u):n(u)}function o(u){return u===59?(e.consume(u),r):He(u)?(e.consume(u),o):n(u)}}function gb(e,t,n){return r;function r(l){return e.consume(l),i}function i(l){return Fe(l)?n(l):t(l)}}function Hg(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ce(e)}function Ug(e){return!He(e)}function Vg(e){return!(e===47||oa(e))}function oa(e){return e===43||e===45||e===46||e===95||Fe(e)}function Ic(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const yb={tokenize:Eb,partial:!0};function xb(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Sb,continuation:{tokenize:_b},exit:Cb}},text:{91:{name:"gfmFootnoteCall",tokenize:kb},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:vb,resolveTo:wb}}}}function vb(e,t,n){const r=this;let i=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){o=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return u;function u(s){if(!o||!o._balanced)return n(s);const a=bt(r.sliceSerialize({start:o.end,end:r.now()}));return a.codePointAt(0)!==94||!l.includes(a.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function wb(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function kb(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,o;return u;function u(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",a)}function a(c){if(l>999||c===93&&!o||c===null||c===91||ce(c))return n(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(bt(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return ce(c)||(o=!0),l++,e.consume(c),c===92?f:a}function f(c){return c===91||c===92||c===93?(e.consume(c),l++,a):a(c)}}function Sb(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,u;return s;function s(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),a}function a(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(m)}function f(m){if(o>999||m===93&&!u||m===null||m===91||ce(m))return n(m);if(m===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return l=bt(r.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return ce(m)||(u=!0),o++,e.consume(m),m===92?c:f}function c(m){return m===91||m===92||m===93?(e.consume(m),o++,f):f(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(l)||i.push(l),le(e,d,"gfmFootnoteDefinitionWhitespace")):n(m)}function d(m){return t(m)}}function _b(e,t,n){return e.check(Gi,t,e.attempt(yb,t,n))}function Cb(e){e.exit("gfmFootnoteDefinition")}function Eb(e,t,n){const r=this;return le(e,i,"gfmFootnoteDefinitionIndent",5);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(l):n(l)}}function bb(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,u){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let a=s;for(;a--;)if(o[a][0]==="exit"&&o[a][1].type==="strikethroughSequenceTemporary"&&o[a][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[a][1].end.offset-o[a][1].start.offset){o[s][1].type="strikethroughSequence",o[a][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},o[a][1].start),end:Object.assign({},o[s][1].end)},c={type:"strikethroughText",start:Object.assign({},o[a][1].end),end:Object.assign({},o[s][1].start)},p=[["enter",f,u],["enter",o[a][1],u],["exit",o[a][1],u],["enter",c,u]],d=u.parser.constructs.insideSpan.null;d&&lt(p,p.length,0,Go(d,o.slice(a+1,s),u)),lt(p,p.length,0,[["exit",c,u],["enter",o[s][1],u],["exit",o[s][1],u],["exit",f,u]]),lt(o,a-1,s-a+3,p),s=a+p.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type="data");return o}function l(o,u,s){const a=this.previous,f=this.events;let c=0;return p;function p(m){return a===126&&f[f.length-1][1].type!=="characterEscape"?s(m):(o.enter("strikethroughSequenceTemporary"),d(m))}function d(m){const w=Rr(a);if(m===126)return c>1?s(m):(o.consume(m),c++,d);if(c<2&&!n)return s(m);const E=o.exit("strikethroughSequenceTemporary"),h=Rr(m);return E._open=!h||h===2&&!!w,E._close=!w||w===2&&!!h,u(m)}}}class Tb{constructor(){this.map=[]}add(t,n,r){zb(this,t,n,r)}consume(t){if(this.map.sort(function(l,o){return l[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const l of i)t.push(l);i=r.pop()}this.map.length=0}}function zb(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Ib(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Pb(){return{flow:{null:{name:"table",tokenize:Lb,resolveAll:Mb}}}}function Lb(e,t,n){const r=this;let i=0,l=0,o;return u;function u(b){let $=r.events.length-1;for(;$>-1;){const z=r.events[$][1].type;if(z==="lineEnding"||z==="linePrefix")$--;else break}const H=$>-1?r.events[$][1].type:null,Z=H==="tableHead"||H==="tableRow"?C:s;return Z===C&&r.parser.lazy[r.now().line]?n(b):Z(b)}function s(b){return e.enter("tableHead"),e.enter("tableRow"),a(b)}function a(b){return b===124||(o=!0,l+=1),f(b)}function f(b){return b===null?n(b):Y(b)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),d):n(b):te(b)?le(e,f,"whitespace")(b):(l+=1,o&&(o=!1,i+=1),b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),c(b)))}function c(b){return b===null||b===124||ce(b)?(e.exit("data"),f(b)):(e.consume(b),b===92?p:c)}function p(b){return b===92||b===124?(e.consume(b),c):c(b)}function d(b){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(b):(e.enter("tableDelimiterRow"),o=!1,te(b)?le(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):m(b))}function m(b){return b===45||b===58?E(b):b===124?(o=!0,e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),w):I(b)}function w(b){return te(b)?le(e,E,"whitespace")(b):E(b)}function E(b){return b===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),h):b===45?(l+=1,h(b)):b===null||Y(b)?_(b):I(b)}function h(b){return b===45?(e.enter("tableDelimiterFiller"),g(b)):I(b)}function g(b){return b===45?(e.consume(b),g):b===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(b))}function y(b){return te(b)?le(e,_,"whitespace")(b):_(b)}function _(b){return b===124?m(b):b===null||Y(b)?!o||i!==l?I(b):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(b)):I(b)}function I(b){return n(b)}function C(b){return e.enter("tableRow"),A(b)}function A(b){return b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),A):b===null||Y(b)?(e.exit("tableRow"),t(b)):te(b)?le(e,A,"whitespace")(b):(e.enter("data"),F(b))}function F(b){return b===null||b===124||ce(b)?(e.exit("data"),A(b)):(e.consume(b),b===92?Q:F)}function Q(b){return b===92||b===124?(e.consume(b),F):F(b)}}function Mb(e,t){let n=-1,r=!0,i=0,l=[0,0,0,0],o=[0,0,0,0],u=!1,s=0,a,f,c;const p=new Tb;for(;++n<e.length;){const d=e[n],m=d[1];d[0]==="enter"?m.type==="tableHead"?(u=!1,s!==0&&(Jp(p,t,s,a,f),f=void 0,s=0),a={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(n,0,[["enter",a,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,c=void 0,l=[0,0,0,0],o=[0,n+1,0,0],u&&(u=!1,f={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(n,0,[["enter",f,t]])),i=m.type==="tableDelimiterRow"?2:f?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(l[1]!==0&&(o[0]=o[1],c=El(p,t,l,i,void 0,c),l=[0,0,0,0]),o[2]=n)):m.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(o[0]=o[1],c=El(p,t,l,i,void 0,c)),l=o,o=[l[1],n,0,0])):m.type==="tableHead"?(u=!0,s=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(s=n,l[1]!==0?(o[0]=o[1],c=El(p,t,l,i,n,c)):o[1]!==0&&(c=El(p,t,o,i,n,c)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(o[3]=n)}for(s!==0&&Jp(p,t,s,a,f),p.consume(t.events),n=-1;++n<t.events.length;){const d=t.events[n];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=Ib(t.events,n))}return e}function El(e,t,n,r,i,l){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(l.end=Object.assign({},lr(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const s=lr(t.events,n[1]);if(l={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const a=lr(t.events,n[2]),f=lr(t.events,n[3]),c={type:u,start:Object.assign({},a),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const p=t.events[n[2]],d=t.events[n[3]];if(p[1].end=Object.assign({},d[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,w=n[3]-n[2]-1;e.add(m,w,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(l.end=Object.assign({},lr(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function Jp(e,t,n,r,i){const l=[],o=lr(t.events,n);i&&(i.end=Object.assign({},o),l.push(["exit",i,t])),r.end=Object.assign({},o),l.push(["exit",r,t]),e.add(n+1,0,l)}function lr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Ab={name:"tasklistCheck",tokenize:Rb};function Nb(){return{text:{91:Ab}}}function Rb(e,t,n){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),l)}function l(s){return ce(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):n(s)}function o(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(s)}function u(s){return Y(s)?t(s):te(s)?e.check({tokenize:Db},t,n)(s):n(s)}}function Db(e,t,n){return le(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function jb(e){return eg([sb(),xb(),bb(e),Pb(),Nb()])}const Fb={};function Ob(e){const t=this,n=e||Fb,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(jb(n)),l.push(ib()),o.push(lb(n))}function Jn(e){if(!e)return null;try{return JSON.parse(e)}catch{return null}}function Pc(e){const t=Jn(e.metadata_json);return(t==null?void 0:t.confidence)??null}function Vl(e){const t=Jn(e.metadata_json);return(t==null?void 0:t.commit)??null}function Wl(e){const t=Jn(e.metadata_json);return(t==null?void 0:t.branch)??null}function Bb(e){const t=Jn(e.metadata_json);return(t==null?void 0:t.prompt)??null}function $b(e){const t=Jn(e.metadata_json);return(t==null?void 0:t.files)??null}function Hb(e,t){if(!t.themes||!t.node_themes)return[];const n=t.node_themes.filter(r=>r.node_id===e).map(r=>r.theme_id);return t.themes.filter(r=>n.includes(r.id))}function Ub(e,t,n){var i;const r=(i=n.node_themes)==null?void 0:i.find(l=>l.node_id===e&&l.theme_id===t);return(r==null?void 0:r.source)||"manual"}function Vb(e,t){return t.documents?t.documents.filter(n=>n.node_id===e&&!n.detached_at):[]}function Wb(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function Wg(e,t){return t.filter(n=>n.to_node_id===e)}function Qg(e,t){return t.filter(n=>n.from_node_id===e)}const S={bg:"#1a1625",bgLight:"#252036",bgHover:"#2d2747",bgSelected:"#3d3560",border:"#3d3560",text:"#e0dce8",textMuted:"#8b85a0",textDim:"#6b6580",goal:"#f59e0b",decision:"#8b5cf6",action:"#3b82f6",outcome:"#10b981",observation:"#06b6d4",option:"#ec4899",revisit:"#ef4444",active:"#10b981",completed:"#6b7280",pending:"#8b5cf6",confHigh:"#10b981",confMed:"#f59e0b",confLow:"#ef4444"},mt={goal:"GOAL",decision:"DCSN",action:"ACTN",outcome:"OUTC",observation:"OBSV",option:"OPTN",revisit:"RVST"},Qb=10;function qb(e){const t=new Map,n=new Map;for(const r of e)t.has(r.from_node_id)||t.set(r.from_node_id,[]),t.get(r.from_node_id).push({to:r.to_node_id,edge:r}),n.has(r.to_node_id)||n.set(r.to_node_id,[]),n.get(r.to_node_id).push({from:r.from_node_id,edge:r});return{outgoing:t,incoming:n}}function Ql(e,t,n,r,i=0){if(r.has(e))return null;const l=n.get(e);if(!l)return null;r.add(e);const o=[],u=t.get(e)||[];for(const{to:s}of u){const a=Ql(s,t,n,r,i+1);a&&o.push(a)}return o.sort((s,a)=>new Date(s.node.created_at).getTime()-new Date(a.node.created_at).getTime()),{node:l,children:o,depth:i}}function ua(e){const t=[e.node];for(const n of e.children)t.push(...ua(n));return t}function Yb(e,t){const n=new Set,r=[e];for(;r.length>0;){const i=r.shift();if(n.has(i))continue;n.add(i);const l=t.get(i)||[];for(const{to:o}of l)n.has(o)||r.push(o)}return n.size}function ed(e,t){const{nodes:n,edges:r}=e,{outgoing:i}=qb(r),l=new Map(n.map(c=>[c.id,c]));if(t==="branches"){const c=new Map;for(const p of n){const d=Wl(p)||"unknown";c.has(d)||c.set(d,[]),c.get(d).push(p)}return Array.from(c.entries()).map(([p,d])=>{const m=d.sort((_,I)=>new Date(_.created_at).getTime()-new Date(I.created_at).getTime()),w=m[0],E=new Set(d.map(_=>_.id)),h=r.filter(_=>E.has(_.from_node_id)&&E.has(_.to_node_id)),g=new Set,y=Ql(w.id,i,l,g,0)||{node:w,children:[],depth:0};return{id:`branch-${p}`,name:p,root:w,nodes:d,edges:h,tree:y,nodeCount:d.length,dateRange:{start:new Date(m[0].created_at),end:new Date(m[m.length-1].created_at)},branches:[p]}}).sort((p,d)=>d.dateRange.end.getTime()-p.dateRange.end.getTime())}if(t==="hubs"){const c=n.filter(m=>(i.get(m.id)||[]).length>=3);c.sort((m,w)=>{const E=(i.get(m.id)||[]).length;return(i.get(w.id)||[]).length-E});const p=new Set,d=[];for(const m of c){if(p.has(m.id))continue;const w=Ql(m.id,i,l,p,0);if(!w)continue;const E=ua(w);if(E.length<3)continue;const h=new Set(E.map(I=>I.id)),g=r.filter(I=>h.has(I.from_node_id)&&h.has(I.to_node_id)),y=E.sort((I,C)=>new Date(I.created_at).getTime()-new Date(C.created_at).getTime()),_=new Set;E.forEach(I=>{const C=Wl(I);C&&_.add(C)}),d.push({id:`hub-${m.id}`,name:m.title,root:m,nodes:E,edges:g,tree:w,nodeCount:E.length,dateRange:{start:new Date(y[0].created_at),end:new Date(y[y.length-1].created_at)},branches:Array.from(_)})}return d.sort((m,w)=>w.dateRange.end.getTime()-m.dateRange.end.getTime())}const o=n.filter(c=>c.node_type==="goal"),u=new Map;for(const c of o)u.set(c.id,Yb(c.id,i));o.sort((c,p)=>new Date(p.created_at).getTime()-new Date(c.created_at).getTime());const s=t==="significant"?o.filter(c=>(u.get(c.id)||0)>=Qb):o,a=new Set,f=[];for(const c of s){if(a.has(c.id))continue;const p=Ql(c.id,i,l,a,0);if(!p)continue;const d=ua(p),m=new Set(d.map(g=>g.id)),w=r.filter(g=>m.has(g.from_node_id)&&m.has(g.to_node_id)),E=d.sort((g,y)=>new Date(g.created_at).getTime()-new Date(y.created_at).getTime()),h=new Set;d.forEach(g=>{const y=Wl(g);y&&h.add(y)}),f.push({id:`narrative-${c.id}`,name:c.title,root:c,nodes:d,edges:w,tree:p,nodeCount:d.length,dateRange:{start:new Date(E[0].created_at),end:new Date(E[E.length-1].created_at)},branches:Array.from(h)})}return f.sort((c,p)=>p.dateRange.end.getTime()-c.dateRange.end.getTime())}async function Xb(){const e=["/api/graph","./graph-data.json","/graph-data.json"];for(const t of e)try{const n=await fetch(t);if(n.ok){const r=await n.json();if(r.ok&&r.data)return r.data;if(r.nodes)return r}}catch{continue}return null}function Pt({text:e,label:t}){const[n,r]=q.useState(!1),i=q.useCallback(async l=>{l.stopPropagation(),await navigator.clipboard.writeText(e),r(!0),setTimeout(()=>r(!1),1500)},[e]);return v.jsx("button",{onClick:i,title:`Copy ${t||"to clipboard"}`,style:{background:"none",border:"none",cursor:"pointer",padding:"2px 4px",fontSize:"12px",color:n?S.confHigh:S.textMuted,opacity:n?1:.7},children:n?"โœ“":"๐Ÿ“‹"})}function Qu({type:e,value:t,repo:n}){const r=n||"notactuallytreyanastasio/deciduous";let i="",l="";return e==="commit"?(i=`https://github.com/${r}/commit/${t}`,l=t.slice(0,7)):e==="pr"?(i=`https://github.com/${r}/pull/${t}`,l=`#${t}`):e==="issue"&&(i=`https://github.com/${r}/issues/${t}`,l=`#${t}`),v.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px"},children:[v.jsxs("a",{href:i,target:"_blank",rel:"noopener noreferrer",style:{color:S.action,textDecoration:"none"},onClick:o=>o.stopPropagation(),children:[l," โ†—"]}),v.jsx(Pt,{text:t,label:e})]})}function qg({treeNode:e,isSelected:t,expandedNodes:n,onSelect:r,onToggle:i,edges:l}){const{node:o,children:u,depth:s}=e,a=u.length>0,f=n.has(o.id),c=Pc(o),p=S[o.node_type]||S.text,d=c!==null?c>=70?S.confHigh:c>=40?S.confMed:S.confLow:S.textDim,m=Wg(o.id,l),w=Qg(o.id,l);return v.jsxs(v.Fragment,{children:[v.jsxs("div",{onClick:()=>r(o.id),style:{display:"grid",gridTemplateColumns:"24px 60px 50px 50px 1fr",gap:"8px",padding:"6px 12px",paddingLeft:`${12+s*20}px`,cursor:"pointer",backgroundColor:t?S.bgSelected:"transparent",borderLeft:t?`3px solid ${p}`:"3px solid transparent",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSize:"13px",transition:"background-color 0.1s"},onMouseEnter:E=>{t||(E.currentTarget.style.backgroundColor=S.bgHover)},onMouseLeave:E=>{t||(E.currentTarget.style.backgroundColor="transparent")},children:[v.jsx("span",{onClick:E=>{E.stopPropagation(),a&&i(o.id)},style:{color:S.textDim,cursor:a?"pointer":"default",userSelect:"none"},children:a?f?"โ–ผ":"โ–ถ":"ยท"}),v.jsx("span",{style:{color:p,fontWeight:600},children:mt[o.node_type]}),v.jsx("span",{style:{color:d},children:c!==null?`${c}%`:"--"}),v.jsxs("span",{style:{color:S.textMuted},children:["#",o.id]}),v.jsxs("span",{style:{color:S.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[v.jsxs("span",{style:{color:S.textDim,marginRight:"4px",fontSize:"11px"},children:[m.length>0&&`โ†${m.length}`,w.length>0&&`โ†’${w.length}`]}),o.title]})]}),f&&u.map(E=>v.jsx(qg,{treeNode:E,isSelected:t,expandedNodes:n,onSelect:r,onToggle:i,edges:l},E.node.id))]})}function Gb({narrative:e,onClick:t}){const n=S[e.root.node_type]||S.text;return v.jsxs("div",{onClick:t,style:{padding:"16px",margin:"8px 12px",backgroundColor:S.bgLight,borderRadius:"8px",cursor:"pointer",borderLeft:`4px solid ${n}`,transition:"background-color 0.1s"},onMouseEnter:r=>r.currentTarget.style.backgroundColor=S.bgHover,onMouseLeave:r=>r.currentTarget.style.backgroundColor=S.bgLight,children:[v.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"8px"},children:[v.jsx("span",{style:{color:n,fontWeight:600,fontSize:"11px"},children:mt[e.root.node_type]}),v.jsxs("span",{style:{color:S.textMuted,fontSize:"12px"},children:["#",e.root.id]})]}),v.jsx("h3",{style:{color:S.text,margin:0,fontSize:"15px",fontWeight:500,marginBottom:"8px"},children:e.name}),v.jsxs("div",{style:{display:"flex",gap:"16px",fontSize:"12px",color:S.textMuted},children:[v.jsxs("span",{children:[e.nodeCount," nodes"]}),v.jsx("span",{children:e.branches.join(", ")}),v.jsx("span",{children:e.dateRange.start.toLocaleDateString()})]})]})}function Kb({node:e,narrative:t,edges:n,nodes:r,graphData:i,onSelectNode:l}){var h,g;if(!e&&!t)return v.jsx("div",{style:{padding:"20px",color:S.textMuted,fontStyle:"italic"},children:"Select a narrative or node to view details"});if(t&&!e)return v.jsxs("div",{style:{padding:"20px",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSize:"13px",overflow:"auto",height:"100%"},children:[v.jsx("div",{style:{color:S[t.root.node_type],fontSize:"11px",fontWeight:600,letterSpacing:"1px",marginBottom:"4px"},children:"NARRATIVE"}),v.jsx("h2",{style:{color:S.text,margin:0,fontSize:"18px",marginBottom:"16px"},children:t.name}),v.jsx("div",{style:{padding:"12px",backgroundColor:S.bgLight,borderRadius:"6px",marginBottom:"16px"},children:v.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"8px"},children:[v.jsxs("div",{children:[v.jsx("div",{style:{color:S.textMuted,fontSize:"11px"},children:"Nodes"}),v.jsx("div",{style:{color:S.text,fontSize:"18px"},children:t.nodeCount})]}),v.jsxs("div",{children:[v.jsx("div",{style:{color:S.textMuted,fontSize:"11px"},children:"Branches"}),v.jsx("div",{style:{color:S.decision},children:t.branches.join(", ")||"none"})]}),v.jsxs("div",{children:[v.jsx("div",{style:{color:S.textMuted,fontSize:"11px"},children:"Started"}),v.jsx("div",{style:{color:S.text},children:t.dateRange.start.toLocaleString()})]}),v.jsxs("div",{children:[v.jsx("div",{style:{color:S.textMuted,fontSize:"11px"},children:"Last Activity"}),v.jsx("div",{style:{color:S.text},children:t.dateRange.end.toLocaleString()})]})]})}),v.jsxs("div",{style:{marginBottom:"16px"},children:[v.jsx("div",{style:{color:S.textMuted,fontSize:"11px",marginBottom:"8px"},children:"COMPOSITION"}),v.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:["goal","decision","action","outcome","observation","option","revisit"].map(y=>{const _=t.nodes.filter(I=>I.node_type===y).length;return _===0?null:v.jsxs("span",{style:{padding:"4px 8px",backgroundColor:S.bg,borderRadius:"4px",fontSize:"12px"},children:[v.jsx("span",{style:{color:S[y]},children:mt[y]}),v.jsx("span",{style:{color:S.textMuted,marginLeft:"4px"},children:_})]},y)})})]})]});if(!e)return null;const o=Jn(e.metadata_json),u=Pc(e),s=Wl(e),a=Vl(e),f=Bb(e),c=$b(e),p=Wg(e.id,n),d=Qg(e.id,n),m=S[e.node_type]||S.text,w=y=>r.find(_=>_.id===y),E=((g=(h=i==null?void 0:i.config)==null?void 0:h.github)==null?void 0:g.commit_repo)||"notactuallytreyanastasio/deciduous";return v.jsxs("div",{style:{padding:"20px",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",fontSize:"13px",overflow:"auto",height:"100%"},children:[v.jsxs("div",{style:{marginBottom:"20px"},children:[v.jsx("div",{style:{color:m,fontSize:"11px",fontWeight:600,letterSpacing:"1px",marginBottom:"4px"},children:e.node_type.toUpperCase()}),v.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[v.jsx("h2",{style:{color:S.text,margin:0,fontSize:"18px",fontWeight:500},children:e.title}),v.jsx(Pt,{text:e.title,label:"title"})]}),e.node_type==="observation"&&e.description&&v.jsxs("div",{style:{marginTop:"8px",padding:"10px 12px",backgroundColor:S.bgLight,borderLeft:`3px solid ${S.observation}`,borderRadius:"4px",color:S.text,fontSize:"14px",lineHeight:1.5,whiteSpace:"pre-wrap"},children:[e.description,v.jsx(Pt,{text:e.description,label:"description"})]})]}),v.jsxs("div",{style:{display:"grid",gridTemplateColumns:"auto 1fr",gap:"8px 16px",marginBottom:"20px",padding:"12px",backgroundColor:S.bgLight,borderRadius:"6px"},children:[v.jsx("span",{style:{color:S.textMuted},children:"ID"}),v.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[v.jsxs("span",{style:{color:S.text},children:["#",e.id]}),v.jsx(Pt,{text:String(e.id),label:"ID"})]}),v.jsx("span",{style:{color:S.textMuted},children:"Change ID"}),v.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[v.jsx("span",{style:{color:S.textDim,fontSize:"11px"},children:e.change_id.slice(0,8)}),v.jsx(Pt,{text:e.change_id,label:"change ID"})]}),v.jsx("span",{style:{color:S.textMuted},children:"Status"}),v.jsx("span",{style:{color:S[e.status]||S.text},children:e.status}),u!==null&&v.jsxs(v.Fragment,{children:[v.jsx("span",{style:{color:S.textMuted},children:"Confidence"}),v.jsxs("span",{style:{color:u>=70?S.confHigh:u>=40?S.confMed:S.confLow},children:[u,"%"]})]}),s&&v.jsxs(v.Fragment,{children:[v.jsx("span",{style:{color:S.textMuted},children:"Branch"}),v.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[v.jsx("span",{style:{color:S.decision},children:s}),v.jsx(Pt,{text:s,label:"branch"})]})]}),a&&v.jsxs(v.Fragment,{children:[v.jsx("span",{style:{color:S.textMuted},children:"Commit"}),v.jsx(Qu,{type:"commit",value:a,repo:E})]}),(o==null?void 0:o.github_pr)&&v.jsxs(v.Fragment,{children:[v.jsx("span",{style:{color:S.textMuted},children:"PR"}),v.jsx(Qu,{type:"pr",value:String(o.github_pr),repo:E})]}),(o==null?void 0:o.github_issue)&&v.jsxs(v.Fragment,{children:[v.jsx("span",{style:{color:S.textMuted},children:"Issue"}),v.jsx(Qu,{type:"issue",value:String(o.github_issue),repo:E})]}),v.jsx("span",{style:{color:S.textMuted},children:"Created"}),v.jsx("span",{style:{color:S.text},children:new Date(e.created_at).toLocaleString()}),v.jsx("span",{style:{color:S.textMuted},children:"Updated"}),v.jsx("span",{style:{color:S.text},children:new Date(e.updated_at).toLocaleString()})]}),c&&c.length>0&&v.jsxs("div",{style:{marginBottom:"20px"},children:[v.jsx("div",{style:{color:S.textMuted,fontSize:"11px",marginBottom:"8px",letterSpacing:"0.5px"},children:"FILES"}),v.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:c.map((y,_)=>v.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",padding:"4px 8px",backgroundColor:S.bgLight,borderRadius:"4px"},children:[v.jsx("span",{style:{color:S.text,fontSize:"12px"},children:y}),v.jsx(Pt,{text:y,label:"file path"})]},_))})]}),i&&(()=>{const y=Hb(e.id,i);return y.length===0?null:v.jsxs("div",{style:{marginBottom:"20px"},children:[v.jsx("div",{style:{color:S.textMuted,fontSize:"11px",marginBottom:"8px",letterSpacing:"0.5px"},children:"THEMES"}),v.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"6px"},children:y.map(_=>{const I=Ub(e.id,_.id,i);return v.jsxs("span",{title:_.description||_.name,style:{padding:"3px 10px",borderRadius:"12px",fontSize:"12px",fontWeight:500,backgroundColor:`${_.color}22`,color:_.color,border:I==="suggested"?`1px dashed ${_.color}`:`1px solid ${_.color}55`},children:[_.name,I==="suggested"&&v.jsx("span",{style:{fontSize:"10px",marginLeft:"4px",opacity:.7},children:"?"})]},_.id)})})]})})(),i&&(()=>{const y=Vb(e.id,i);return y.length===0?null:v.jsxs("div",{style:{marginBottom:"20px"},children:[v.jsxs("div",{style:{color:S.textMuted,fontSize:"11px",marginBottom:"8px",letterSpacing:"0.5px"},children:["DOCUMENTS (",y.length,")"]}),v.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:y.map(_=>v.jsxs("div",{style:{padding:"8px 12px",backgroundColor:S.bgLight,borderRadius:"6px",borderLeft:`3px solid ${S.observation}`},children:[v.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[v.jsx("span",{style:{color:S.text,fontSize:"13px",fontWeight:500},children:_.original_filename}),v.jsx("span",{style:{color:S.textDim,fontSize:"11px"},children:Wb(_.file_size)}),v.jsx("span",{style:{color:S.textDim,fontSize:"11px",marginLeft:"auto"},children:_.mime_type})]}),_.description&&v.jsxs("div",{style:{color:S.textMuted,fontSize:"12px",marginTop:"4px",lineHeight:1.4},children:[_.description,_.description_source==="ai"&&v.jsx("span",{style:{fontSize:"10px",marginLeft:"4px",opacity:.6},children:"(AI)"})]})]},_.id))})]})})(),e.description&&e.node_type!=="observation"&&v.jsxs("div",{style:{marginBottom:"20px"},children:[v.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",color:S.textMuted,fontSize:"11px",marginBottom:"8px",letterSpacing:"0.5px"},children:["DESCRIPTION",v.jsx(Pt,{text:e.description,label:"description"})]}),v.jsx("div",{style:{color:S.text,whiteSpace:"pre-wrap",lineHeight:1.5},children:e.description})]}),f&&v.jsxs("div",{style:{marginBottom:"20px"},children:[v.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",color:S.textMuted,fontSize:"11px",marginBottom:"8px",letterSpacing:"0.5px"},children:["USER PROMPT",v.jsx(Pt,{text:f,label:"prompt"})]}),v.jsx("div",{style:{color:S.text,whiteSpace:"pre-wrap",lineHeight:1.5,padding:"12px",backgroundColor:S.bgLight,borderRadius:"6px",borderLeft:`3px solid ${S.goal}`,maxHeight:"300px",overflow:"auto"},children:f})]}),(p.length>0||d.length>0)&&v.jsxs("div",{style:{marginBottom:"20px"},children:[v.jsx("div",{style:{color:S.textMuted,fontSize:"11px",marginBottom:"8px",letterSpacing:"0.5px"},children:"CONNECTIONS"}),p.length>0&&v.jsxs("div",{style:{marginBottom:"12px"},children:[v.jsxs("div",{style:{color:S.textDim,fontSize:"11px",marginBottom:"4px"},children:["Incoming (",p.length,")"]}),p.map(y=>{const _=w(y.from_node_id);return _?v.jsxs("div",{onClick:()=>l(y.from_node_id),style:{padding:"6px 8px",cursor:"pointer",borderRadius:"4px",marginBottom:"4px",backgroundColor:S.bgLight},children:[v.jsx("span",{style:{color:S[_.node_type]},children:mt[_.node_type]}),v.jsxs("span",{style:{color:S.textMuted,margin:"0 8px"},children:["#",_.id]}),v.jsx("span",{style:{color:S.text},children:_.title}),y.rationale&&v.jsxs("div",{style:{color:S.textDim,fontSize:"11px",marginTop:"2px"},children:['"',y.rationale,'"']})]},y.id):null})]}),d.length>0&&v.jsxs("div",{children:[v.jsxs("div",{style:{color:S.textDim,fontSize:"11px",marginBottom:"4px"},children:["Outgoing (",d.length,")"]}),d.map(y=>{const _=w(y.to_node_id);return _?v.jsxs("div",{onClick:()=>l(y.to_node_id),style:{padding:"6px 8px",cursor:"pointer",borderRadius:"4px",marginBottom:"4px",backgroundColor:S.bgLight},children:[v.jsx("span",{style:{color:S[_.node_type]},children:mt[_.node_type]}),v.jsxs("span",{style:{color:S.textMuted,margin:"0 8px"},children:["#",_.id]}),v.jsx("span",{style:{color:S.text},children:_.title}),y.rationale&&v.jsxs("div",{style:{color:S.textDim,fontSize:"11px",marginTop:"2px"},children:['"',y.rationale,'"']})]},y.id):null})]})]}),o&&Object.keys(o).length>0&&v.jsxs("div",{style:{marginBottom:"20px"},children:[v.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",color:S.textMuted,fontSize:"11px",marginBottom:"8px",letterSpacing:"0.5px"},children:["RAW METADATA",v.jsx(Pt,{text:JSON.stringify(o,null,2),label:"metadata JSON"})]}),v.jsx("pre",{style:{color:S.textDim,fontSize:"11px",padding:"8px",backgroundColor:S.bgLight,borderRadius:"4px",overflow:"auto",maxHeight:"150px"},children:JSON.stringify(o,null,2)})]})]})}const Zb={leads_to:"",requires:"5,5",chosen:"2,2",rejected:"8,4,2,4",blocks:"10,5",enables:"3,3"};function td({narrative:e,selectedNodeId:t,onSelectNode:n}){const r=q.useRef(null),i=q.useRef(null);return q.useEffect(()=>{if(!r.current||!i.current||e.nodes.length===0)return;const l=Nt(r.current),o=i.current,u=o.clientWidth,s=o.clientHeight;l.selectAll("*").remove();const a=l.append("g"),f=Yw().scaleExtent([.1,4]).on("zoom",T=>{a.attr("transform",T.transform)});l.call(f);const c=new Map,p=new Map,d=new Set(e.nodes.map(T=>T.id));for(const T of e.edges)!d.has(T.from_node_id)||!d.has(T.to_node_id)||(c.has(T.from_node_id)||c.set(T.from_node_id,[]),c.get(T.from_node_id).push(T.to_node_id),p.has(T.to_node_id)||p.set(T.to_node_id,[]),p.get(T.to_node_id).push(T.from_node_id));const m=e.nodes.filter(T=>!p.has(T.id)||p.get(T.id).length===0),w=new Map,E=m.map(T=>({id:T.id,depth:0}));for(;E.length>0;){const{id:T,depth:P}=E.shift();if(w.has(T))continue;w.set(T,P);const R=c.get(T)||[];for(const L of R)w.has(L)||E.push({id:L,depth:P+1})}for(const T of e.nodes)w.has(T.id)||w.set(T.id,0);const h=new Map;for(const T of e.nodes){const P=w.get(T.id)||0;h.has(P)||h.set(P,[]),h.get(P).push(T)}const g=140,y=36,_=60,I=50,C=[],A=new Map,F=Math.max(...Array.from(w.values()));for(let T=0;T<=F;T++){const P=h.get(T)||[],L=-(P.length*y+(P.length-1)*I)/2;P.forEach((N,x)=>{const U=T*(g+_),W=L+x*(y+I);C.push({id:N.id,node:N,x:U,y:W,depth:T}),A.set(N.id,{x:U,y:W})})}const Q=l.append("defs");Q.append("marker").attr("id","flow-arrowhead").attr("viewBox","0 -5 10 10").attr("refX",8).attr("refY",0).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M0,-4L8,0L0,4").attr("fill",S.textDim);const b=Q.append("filter").attr("id","gold-glow").attr("x","-50%").attr("y","-50%").attr("width","200%").attr("height","200%");b.append("feGaussianBlur").attr("stdDeviation","4").attr("result","coloredBlur"),b.append("feFlood").attr("flood-color","#fbbf24").attr("flood-opacity","0.8").attr("result","glowColor"),b.append("feComposite").attr("in","glowColor").attr("in2","coloredBlur").attr("operator","in").attr("result","softGlow");const $=b.append("feMerge");$.append("feMergeNode").attr("in","softGlow"),$.append("feMergeNode").attr("in","softGlow"),$.append("feMergeNode").attr("in","SourceGraphic");const H=Q.append("linearGradient").attr("id","gold-shimmer").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","100%");H.append("stop").attr("offset","0%").attr("stop-color","#fbbf24").attr("stop-opacity","0.3"),H.append("stop").attr("offset","50%").attr("stop-color","#fcd34d").attr("stop-opacity","0.6"),H.append("stop").attr("offset","100%").attr("stop-color","#fbbf24").attr("stop-opacity","0.3"),H.append("animate").attr("attributeName","x1").attr("values","-100%;100%").attr("dur","2s").attr("repeatCount","indefinite"),H.append("animate").attr("attributeName","x2").attr("values","0%;200%").attr("dur","2s").attr("repeatCount","indefinite");const Z=a.append("g");for(const T of e.edges){const P=A.get(T.from_node_id),R=A.get(T.to_node_id);if(!P||!R)continue;const L=P.x+g,N=P.y+y/2,x=R.x,U=R.y+y/2,W=(L+x)/2,k=`M ${L} ${N} C ${W} ${N}, ${W} ${U}, ${x} ${U}`;Z.append("path").attr("d",k).attr("fill","none").attr("stroke",S.textDim).attr("stroke-width",1.5).attr("stroke-dasharray",Zb[T.edge_type]||"").attr("marker-end","url(#flow-arrowhead)")}const z=a.append("g");for(const T of C){const P=S[T.node.node_type]||S.text,R=z.append("g").attr("transform",`translate(${T.x}, ${T.y})`).attr("cursor","pointer").attr("data-node-id",T.id).attr("data-type-color",P).on("click",x=>{x.stopPropagation(),n(T.id)}),L=T.id===t;L&&R.append("rect").attr("width",g+8).attr("height",y+8).attr("x",-4).attr("y",-4).attr("rx",10).attr("ry",10).attr("fill","url(#gold-shimmer)").attr("filter","url(#gold-glow)"),R.append("rect").attr("width",g).attr("height",y).attr("rx",6).attr("ry",6).attr("fill",S.bgLight).attr("stroke",L?"#fbbf24":S.border).attr("stroke-width",L?3:1),R.append("rect").attr("width",4).attr("height",y).attr("rx",2).attr("fill",P),R.append("text").attr("x",10).attr("y",12).attr("font-size","9px").attr("font-weight","600").attr("fill",P).text(mt[T.node.node_type]),R.append("text").attr("x",g-8).attr("y",12).attr("font-size","9px").attr("fill",S.textMuted).attr("text-anchor","end").text(`#${T.id}`);const N=T.node.title.length>18?T.node.title.slice(0,16)+"...":T.node.title;R.append("text").attr("x",10).attr("y",28).attr("font-size","11px").attr("fill",S.text).text(N),R.append("title").text(`${mt[T.node.node_type]} #${T.id}: ${T.node.title}`)}setTimeout(()=>{var P;const T=(P=a.node())==null?void 0:P.getBBox();if(T&&T.width>0&&T.height>0){let R=T.x+T.width/2,L=T.y+T.height/2,N=Math.min((u-80)/T.width,(s-80)/T.height,1.5);if(t){const W=C.find(k=>k.id===t);W&&(R=W.x+g/2,L=W.y+y/2,N=1.2)}const x=u/2-R*N,U=s/2-L*N;l.transition().duration(400).call(f.transform,cc.translate(x,U).scale(N))}},100)},[e,n,t]),q.useEffect(()=>{if(!r.current)return;Nt(r.current).selectAll("g[data-node-id]").each(function(){const o=Nt(this),s=parseInt(this.getAttribute("data-node-id")||"0")===t;o.selectAll(".shimmer-rect").remove(),s&&o.insert("rect",":first-child").attr("class","shimmer-rect").attr("width",148).attr("height",44).attr("x",-4).attr("y",-4).attr("rx",10).attr("ry",10).attr("fill","url(#gold-shimmer)").attr("filter","url(#gold-glow)"),o.selectAll("rect").filter(function(){return this.getAttribute("width")==="140"}).attr("stroke",s?"#fbbf24":S.border).attr("stroke-width",s?3:1)})},[t]),v.jsxs("div",{ref:i,style:{width:"100%",height:"100%",backgroundColor:S.bg,position:"relative"},children:[v.jsx("svg",{ref:r,style:{width:"100%",height:"100%"}}),v.jsx("div",{style:{position:"absolute",bottom:"8px",left:"8px",fontSize:"10px",color:S.textMuted,backgroundColor:S.bgLight,padding:"6px 10px",borderRadius:"4px",display:"flex",flexWrap:"wrap",gap:"8px",maxWidth:"60%"},children:["goal","decision","action","outcome","observation","option","revisit"].map(l=>v.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[v.jsx("span",{style:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:S[l]}}),v.jsx("span",{children:mt[l]})]},l))}),v.jsxs("div",{style:{position:"absolute",bottom:"8px",right:"8px",fontSize:"10px",color:S.textMuted,backgroundColor:S.bgLight,padding:"6px 10px",borderRadius:"4px",display:"flex",flexDirection:"column",gap:"4px"},children:[v.jsx("span",{style:{fontWeight:600,marginBottom:"2px"},children:"Edges"}),[{type:"leads_to",label:"leads to",dash:""},{type:"requires",label:"requires",dash:"5,5"},{type:"chosen",label:"chosen",dash:"2,2"},{type:"rejected",label:"rejected",dash:"8,4,2,4"},{type:"blocks",label:"blocks",dash:"10,5"},{type:"enables",label:"enables",dash:"3,3"}].map(({type:l,label:o,dash:u})=>v.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[v.jsx("svg",{width:"24",height:"8",children:v.jsx("line",{x1:"0",y1:"4",x2:"24",y2:"4",stroke:S.textMuted,strokeWidth:"2",strokeDasharray:u})}),v.jsx("span",{children:o})]},l))]})]})}function nd({direction:e,onResize:t}){const[n,r]=q.useState(!1),i=q.useRef(0),l=q.useCallback(o=>{o.preventDefault(),r(!0),i.current=e==="horizontal"?o.clientX:o.clientY;const u=a=>{const f=e==="horizontal"?a.clientX:a.clientY,c=f-i.current;i.current=f,t(c)},s=()=>{r(!1),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",s),document.body.style.cursor="",document.body.style.userSelect=""};document.addEventListener("mousemove",u),document.addEventListener("mouseup",s),document.body.style.cursor=e==="horizontal"?"col-resize":"row-resize",document.body.style.userSelect="none"},[e,t]);return v.jsx("div",{onMouseDown:l,style:{backgroundColor:n?S.decision:S.border,cursor:e==="horizontal"?"col-resize":"row-resize",flexShrink:0,...e==="horizontal"?{width:"4px",height:"100%"}:{height:"4px",width:"100%"},transition:n?"none":"background-color 0.2s"},onMouseEnter:o=>{n||(o.currentTarget.style.backgroundColor=S.decision)},onMouseLeave:o=>{n||(o.currentTarget.style.backgroundColor=S.border)}})}function Jb({results:e,selectedNodeId:t,onSelectNode:n}){return v.jsxs("div",{style:{flex:1,overflow:"auto"},children:[v.jsxs("div",{style:{padding:"8px 12px",borderBottom:`1px solid ${S.border}`,color:S.textMuted,fontSize:"11px",fontWeight:600},children:[e.length," RESULTS (newest first)"]}),e.map(r=>{const i=S[r.node_type]||S.text,l=Pc(r),o=r.id===t,u=new Date(r.created_at);return v.jsxs("div",{onClick:()=>n(r.id),style:{padding:"12px 16px",cursor:"pointer",backgroundColor:o?S.bgSelected:"transparent",borderLeft:o?`3px solid ${i}`:"3px solid transparent",borderBottom:`1px solid ${S.border}`},onMouseEnter:s=>{o||(s.currentTarget.style.backgroundColor=S.bgHover)},onMouseLeave:s=>{o||(s.currentTarget.style.backgroundColor="transparent")},children:[v.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"4px"},children:[v.jsx("span",{style:{color:i,fontWeight:600,fontSize:"11px"},children:mt[r.node_type]}),l!==null&&v.jsxs("span",{style:{color:l>=70?S.confHigh:l>=40?S.confMed:S.confLow,fontSize:"11px"},children:[l,"%"]}),v.jsxs("span",{style:{color:S.textMuted,fontSize:"11px"},children:["#",r.id]}),v.jsxs("span",{style:{color:S.textDim,fontSize:"11px",marginLeft:"auto"},children:[u.toLocaleDateString()," ",u.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]})]}),v.jsx("div",{style:{color:S.text,fontSize:"13px"},children:r.title}),r.description&&v.jsxs("div",{style:{color:S.textMuted,fontSize:"12px",marginTop:"4px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[r.description.slice(0,100),r.description.length>100?"...":""]})]},r.id)})]})}function eT({mode:e,onModeChange:t,focusedNarrative:n,onBack:r,narrativeCount:i,nodeCount:l,searchQuery:o,onSearchChange:u,searchResultCount:s,searchTypes:a,onToggleSearchType:f,qaOpen:c,onToggleQA:p,themes:d,activeThemeFilter:m,onThemeFilterChange:w}){return v.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"16px",padding:"16px 20px",borderBottom:`1px solid ${S.border}`,backgroundColor:S.bgLight},children:[n&&v.jsx("button",{onClick:r,style:{background:"none",border:`1px solid ${S.border}`,borderRadius:"4px",padding:"4px 12px",color:S.text,cursor:"pointer",fontSize:"12px"},children:"โ† Back"}),v.jsx("div",{style:{fontWeight:600,color:S.text,fontSize:"14px"},children:n?n.name:"deciduous"}),v.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"10px"},children:[v.jsxs("div",{style:{position:"relative"},children:[v.jsx("input",{type:"text",placeholder:"Search nodes...",value:o,onChange:E=>u(E.target.value),style:{width:"100%",padding:"20px 24px",paddingLeft:"56px",backgroundColor:S.bg,color:S.text,border:`1px solid ${S.border}`,borderRadius:"8px",fontSize:"24px",outline:"none"}}),v.jsx("span",{style:{position:"absolute",left:"18px",top:"50%",transform:"translateY(-50%)",color:S.textMuted,fontSize:"28px"},children:"๐Ÿ”"}),o&&v.jsxs("span",{style:{position:"absolute",right:"20px",top:"50%",transform:"translateY(-50%)",color:S.textMuted,fontSize:"16px"},children:[s," results"]})]}),v.jsx("div",{style:{paddingBottom:"8px"},children:v.jsx("button",{onClick:p,style:{padding:"10px 28px",backgroundColor:c?"#db2777":"#ec4899",color:"#fff",border:"none",borderRadius:"8px",fontSize:"15px",fontWeight:700,cursor:"pointer",transition:"all 0.15s",boxShadow:c?"0 0 16px rgba(236, 72, 153, 0.5)":"0 2px 10px rgba(236, 72, 153, 0.3)",letterSpacing:"0.5px"},children:c?"Close Q&A":"Ask AI"})}),v.jsx("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap"},children:["goal","decision","action","outcome","observation","option","revisit"].map(E=>{const h=a.has(E),g=S[E];return v.jsx("button",{onClick:()=>f(E),style:{padding:"6px 12px",backgroundColor:h?g:"transparent",color:h?"#fff":g,border:`2px solid ${g}`,borderRadius:"6px",fontSize:"12px",fontWeight:600,cursor:"pointer",transition:"all 0.1s",opacity:h?1:.7},children:mt[E]},E)})}),d.length>0&&v.jsxs("div",{style:{display:"flex",gap:"6px",flexWrap:"wrap",alignItems:"center"},children:[v.jsx("span",{style:{color:S.textDim,fontSize:"11px",marginRight:"4px"},children:"Themes:"}),d.map(E=>{const h=m===E.name;return v.jsx("button",{onClick:()=>w(h?null:E.name),title:E.description||E.name,style:{padding:"4px 10px",backgroundColor:h?E.color:"transparent",color:h?"#fff":E.color,border:`1px solid ${E.color}`,borderRadius:"12px",fontSize:"11px",fontWeight:500,cursor:"pointer",transition:"all 0.1s",opacity:h?1:.7},children:E.name},E.id)})]})]}),!n&&!o&&v.jsxs("select",{value:e,onChange:E=>t(E.target.value),style:{padding:"4px 8px",backgroundColor:S.bg,color:S.text,border:`1px solid ${S.border}`,borderRadius:"4px",fontSize:"12px"},children:[v.jsx("option",{value:"significant",children:"Major Narratives (10+ nodes)"}),v.jsx("option",{value:"goals",children:"All Goals"}),v.jsx("option",{value:"branches",children:"By Git Branch"}),v.jsx("option",{value:"hubs",children:"By Key Decisions (3+ edges)"})]}),v.jsx("div",{style:{marginLeft:"auto",color:S.textMuted,fontSize:"12px"},children:n?`${n.nodeCount} nodes`:`${i} narratives ยท ${l} nodes`})]})}function tT({messages:e,isLoading:t,error:n,input:r,onInputChange:i,onSubmit:l,onClose:o,messagesRef:u}){return v.jsxs("div",{style:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"min(1200px, 92vw)",height:"min(90vh, 1100px)",display:"flex",flexDirection:"column",backgroundColor:S.bgLight,border:`1px solid ${S.border}`,borderRadius:"16px",boxShadow:"0 16px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(236, 72, 153, 0.15)",zIndex:1e3,overflow:"hidden"},children:[v.jsx("div",{onClick:o,style:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.4)",zIndex:-1}}),v.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 24px",borderBottom:`1px solid ${S.border}`,backgroundColor:S.bgLight,flexShrink:0},children:[v.jsx("span",{style:{fontWeight:700,fontSize:"16px",color:"#ec4899",letterSpacing:"0.5px"},children:"Ask AI"}),v.jsx("button",{onClick:o,style:{background:"none",border:"none",color:S.textMuted,cursor:"pointer",fontSize:"22px",padding:"4px 8px",borderRadius:"6px",lineHeight:1},children:"ร—"})]}),v.jsxs("div",{ref:u,style:{flex:1,overflowY:"auto",padding:"24px 32px",display:"flex",flexDirection:"column",gap:"16px"},children:[e.length===0&&!t&&v.jsxs("div",{style:{color:S.textDim,fontSize:"15px",textAlign:"center",padding:"80px 40px",lineHeight:"1.8"},children:["Ask questions about your decision graph.",v.jsx("br",{}),v.jsx("span",{style:{fontSize:"13px",color:S.textDim},children:"Powered by Claude โ€” queries your graph data for in-depth answers."})]}),e.map(s=>v.jsx("div",{style:{display:"flex",justifyContent:s.role==="user"?"flex-end":"flex-start"},children:v.jsxs("div",{style:{maxWidth:s.role==="user"?"75%":"100%",padding:s.role==="user"?"10px 18px":"20px 28px",borderRadius:s.role==="user"?"14px 14px 4px 14px":"14px 14px 14px 4px",backgroundColor:s.role==="user"?"#ec4899":S.bg,color:s.role==="user"?"#fff":S.text,fontSize:"14px",lineHeight:"1.7",wordBreak:"break-word",position:"relative"},children:[s.role==="assistant"&&v.jsxs("button",{onClick:async a=>{a.stopPropagation(),await navigator.clipboard.writeText(s.content);const f=a.currentTarget,c=f.innerHTML;f.innerHTML='<span style="font-size:18px">โœ“</span> Copied!',setTimeout(()=>{f.innerHTML=c},1500)},title:"Copy as Markdown",style:{position:"absolute",top:"8px",right:"8px",zIndex:1,display:"flex",alignItems:"center",gap:"4px",background:"none",border:`1px solid ${S.border}`,borderRadius:"6px",cursor:"pointer",padding:"4px 8px",fontSize:"12px",color:S.textMuted,opacity:.8},onMouseEnter:a=>{a.currentTarget.style.opacity="1"},onMouseLeave:a=>{a.currentTarget.style.opacity="0.8"},children:[v.jsx("span",{style:{fontSize:"18px"},children:"๐Ÿ“‹"})," Copy as Markdown"]}),s.role==="assistant"?v.jsx(b2,{remarkPlugins:[Ob],components:{p:({children:a})=>v.jsx("p",{style:{margin:"0 0 12px 0",lineHeight:"1.7"},children:a}),pre:({children:a})=>v.jsx("pre",{style:{backgroundColor:S.bgLight,padding:"14px 16px",borderRadius:"8px",overflow:"auto",fontSize:"13px",margin:"12px 0",border:`1px solid ${S.border}`,lineHeight:"1.5"},children:a}),code:({children:a,className:f})=>(f==null?void 0:f.includes("language-"))?v.jsx("code",{children:a}):v.jsx("code",{style:{backgroundColor:S.bgLight,padding:"2px 6px",borderRadius:"3px",fontSize:"13px",border:`1px solid ${S.border}`},children:a}),ul:({children:a})=>v.jsx("ul",{style:{margin:"4px 0 12px 0",paddingLeft:"22px"},children:a}),ol:({children:a})=>v.jsx("ol",{style:{margin:"4px 0 12px 0",paddingLeft:"22px"},children:a}),li:({children:a})=>v.jsx("li",{style:{marginBottom:"4px",lineHeight:"1.6"},children:a}),h1:({children:a})=>v.jsx("h1",{style:{fontSize:"20px",margin:"20px 0 10px 0",color:S.text,fontWeight:700},children:a}),h2:({children:a})=>v.jsx("h2",{style:{fontSize:"18px",margin:"16px 0 8px 0",color:S.text,fontWeight:700},children:a}),h3:({children:a})=>v.jsx("h3",{style:{fontSize:"16px",margin:"14px 0 6px 0",color:S.text,fontWeight:600},children:a}),a:({href:a,children:f})=>v.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",style:{color:S.action},children:f}),blockquote:({children:a})=>v.jsx("blockquote",{style:{borderLeft:`3px solid ${S.decision}`,margin:"12px 0",paddingLeft:"16px",color:S.textMuted},children:a}),table:({children:a})=>v.jsx("table",{style:{borderCollapse:"collapse",width:"100%",margin:"12px 0",fontSize:"13px"},children:a}),th:({children:a})=>v.jsx("th",{style:{border:`1px solid ${S.border}`,padding:"8px 12px",textAlign:"left",backgroundColor:S.bgLight,fontWeight:600},children:a}),td:({children:a})=>v.jsx("td",{style:{border:`1px solid ${S.border}`,padding:"6px 8px"},children:a})},children:s.content}):s.content]})},s.id)),t&&v.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"12px 16px",backgroundColor:S.bg,borderRadius:"12px 12px 12px 4px",fontSize:"13px",color:S.textMuted},children:[v.jsx("span",{style:{animation:"pulse 1.5s ease-in-out infinite"},children:"Thinking..."}),v.jsx("style",{children:"@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }"})]}),n&&v.jsx("div",{style:{padding:"10px 14px",backgroundColor:"rgba(239, 68, 68, 0.1)",border:`1px solid ${S.revisit}`,borderRadius:"8px",color:S.revisit,fontSize:"12px"},children:n})]}),v.jsxs("div",{style:{display:"flex",gap:"10px",padding:"16px 24px",borderTop:`1px solid ${S.border}`,backgroundColor:S.bgLight,flexShrink:0},children:[v.jsx("input",{type:"text",placeholder:"Ask about your decision graph...",value:r,onChange:s=>i(s.target.value),onKeyDown:s=>{s.key==="Enter"&&!s.shiftKey&&(s.preventDefault(),l())},disabled:t,style:{flex:1,padding:"12px 16px",backgroundColor:S.bg,color:S.text,border:`1px solid ${S.border}`,borderRadius:"8px",fontSize:"14px",outline:"none",opacity:t?.6:1}}),v.jsx("button",{onClick:l,disabled:t||!r.trim(),style:{padding:"12px 24px",backgroundColor:t||!r.trim()?"#9ca3af":"#ec4899",color:"#fff",border:"none",borderRadius:"8px",fontSize:"14px",fontWeight:600,cursor:t||!r.trim()?"default":"pointer",transition:"background-color 0.15s"},children:"Send"})]})]})}function nT(){const[e,t]=q.useState(null),[n,r]=q.useState(!0),[i,l]=q.useState(null),[o,u]=q.useState("goals"),[s,a]=q.useState(null),[f,c]=q.useState(null),[p,d]=q.useState(new Set),[m,w]=q.useState(""),[E,h]=q.useState(new Set(["goal","decision","action","outcome","observation","option","revisit"])),[g,y]=q.useState(null),[_,I]=q.useState(Math.max(500,Math.floor(window.innerWidth*.4))),[C,A]=q.useState(Math.max(400,Math.floor(window.innerHeight*.55))),[F,Q]=q.useState(!1),[b,$]=q.useState(!1),[H,Z]=q.useState(!1),[z,T]=q.useState([]),[P,R]=q.useState(!1),[L,N]=q.useState(null),[x,U]=q.useState(""),W=q.useRef(null);q.useEffect(()=>{W.current&&(W.current.scrollTop=W.current.scrollHeight)},[z,P]);const k=q.useCallback(B=>{I(ie=>Math.max(300,Math.min(ie+B,window.innerWidth-400)))},[]),J=q.useCallback(B=>{A(ie=>Math.max(150,Math.min(ie+B,window.innerHeight-300)))},[]),de=q.useCallback(B=>{h(ie=>{const G=new Set(ie);return G.has(B)?G.delete(B):G.add(B),G})},[]),ee=q.useCallback(()=>{Z(B=>!B)},[]),he=q.useCallback(()=>{Q(B=>!B)},[]);q.useEffect(()=>{if(!F)return;const B=ie=>{ie.key==="Escape"&&Q(!1)};return window.addEventListener("keydown",B),()=>window.removeEventListener("keydown",B)},[F]),q.useEffect(()=>{Xb().then(B=>{B?t(B):l("No graph data found. Run `deciduous sync` to export.")}).catch(B=>l(B.message)).finally(()=>r(!1))},[]);const ye=q.useMemo(()=>e?ed(e,o):[],[e,o]),se=ye.find(B=>B.id===s)||null,Bt=(e==null?void 0:e.nodes.find(B=>B.id===f))||null,er=q.useMemo(()=>(e==null?void 0:e.themes)||[],[e]),eu=q.useCallback(async()=>{if(!x.trim()||P)return;const B=x.trim(),ie=Date.now().toString();T(G=>[...G,{id:ie,role:"user",content:B}]),U(""),R(!0),N(null);try{const G={};f&&(G.selected_node_id=f),se&&(G.visible_node_ids=se.nodes.map(M=>M.id),G.narrative={name:se.name,root_id:se.root.id,node_ids:se.nodes.map(M=>M.id),pivots:[],github_links:[]});const on=await(await fetch("/api/ask",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({question:B,context:Object.keys(G).length>0?G:void 0})})).json();on.ok&&on.data?T(M=>[...M,{id:Date.now().toString(),role:"assistant",content:on.data.answer}]):N(on.error||"Failed to get a response")}catch(G){N(G instanceof Error?G.message:"Network error โ€” is `deciduous serve` running?")}finally{R(!1)}},[x,P,f,se]),Zi=q.useMemo(()=>e?ed(e,"goals"):[],[e]),$t=q.useMemo(()=>{if(!f)return[];const B=ye.filter(ie=>ie.nodes.some(G=>G.id===f));return B.length>0?B:Zi.filter(ie=>ie.nodes.some(G=>G.id===f))},[f,ye,Zi]),Ie=q.useMemo(()=>se||(m&&f&&$t.length>0?$t[0]:null),[se,m,f,$t]),Ht=q.useMemo(()=>{if(!Ie)return null;if(!b)return Ie;const B=Ie.nodes.filter(_e=>Vl(_e));if(B.length===0)return Ie;const ie=new Set(B.map(_e=>_e.id)),G=Ie.edges.filter(_e=>ie.has(_e.from_node_id)&&ie.has(_e.to_node_id));return{...Ie,nodes:B,edges:G,nodeCount:B.length}},[Ie,b]),tr=q.useMemo(()=>{if(!m||!e)return[];const B=m.toLowerCase();let ie=null;if(g&&e.themes&&e.node_themes){const G=e.themes.find(_e=>_e.name===g);G&&(ie=new Set(e.node_themes.filter(_e=>_e.theme_id===G.id).map(_e=>_e.node_id)))}return e.nodes.filter(G=>{if(!E.has(G.node_type)||ie&&!ie.has(G.id))return!1;const _e=G.title.toLowerCase(),on=(G.description||"").toLowerCase(),M=Jn(G.metadata_json),O=((M==null?void 0:M.prompt)||"").toLowerCase(),X=((M==null?void 0:M.branch)||"").toLowerCase();return _e.includes(B)||on.includes(B)||O.includes(B)||X.includes(B)}).sort((G,_e)=>new Date(_e.created_at).getTime()-new Date(G.created_at).getTime())},[m,e,E,g]);q.useEffect(()=>{if(se){const B=new Set(se.nodes.map(ie=>ie.id));d(B)}},[se]);const tu=q.useCallback(B=>{d(ie=>{const G=new Set(ie);return G.has(B)?G.delete(B):G.add(B),G})},[]),Ji=q.useCallback(B=>{a(B),c(null)},[]),el=q.useCallback(()=>{a(null),c(null)},[]);return n?v.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100vh",backgroundColor:S.bg,color:S.text},children:"Loading..."}):i?v.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100vh",backgroundColor:S.bg,color:S.textMuted,flexDirection:"column",gap:"8px"},children:[v.jsx("div",{style:{color:S.revisit},children:"Error"}),v.jsx("div",{children:i})]}):v.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100vh",backgroundColor:S.bg,color:S.text},children:[v.jsx(eT,{mode:o,onModeChange:u,focusedNarrative:se,onBack:el,narrativeCount:ye.length,nodeCount:(e==null?void 0:e.nodes.length)||0,searchQuery:m,onSearchChange:w,searchResultCount:tr.length,searchTypes:E,onToggleSearchType:de,qaOpen:H,onToggleQA:ee,themes:er,activeThemeFilter:g,onThemeFilterChange:y}),H&&v.jsx(tT,{messages:z,isLoading:P,error:L,input:x,onInputChange:U,onSubmit:eu,onClose:ee,messagesRef:W}),F&&Ht&&v.jsxs("div",{style:{position:"fixed",inset:0,zIndex:900,backgroundColor:S.bg,display:"flex",flexDirection:"column"},children:[v.jsxs("div",{style:{position:"absolute",top:0,left:0,right:0,zIndex:910,display:"flex",alignItems:"center",gap:"12px",padding:"12px 16px",background:`linear-gradient(to bottom, ${S.bg}ee, ${S.bg}00)`},children:[v.jsx("button",{onClick:ee,style:{padding:"8px 20px",backgroundColor:H?"#db2777":"#ec4899",color:"#fff",border:"none",borderRadius:"8px",fontSize:"14px",fontWeight:700,cursor:"pointer",boxShadow:H?"0 0 16px rgba(236, 72, 153, 0.5)":"0 2px 10px rgba(236, 72, 153, 0.3)",flexShrink:0},children:H?"Close Q&A":"Ask AI"}),v.jsxs("div",{style:{flex:1,position:"relative",maxWidth:"600px"},children:[v.jsx("input",{type:"text",placeholder:"Search nodes...",value:m,onChange:B=>w(B.target.value),style:{width:"100%",padding:"8px 14px",paddingLeft:"36px",backgroundColor:`${S.bgLight}cc`,color:S.text,border:`1px solid ${S.border}`,borderRadius:"8px",fontSize:"14px",outline:"none",backdropFilter:"blur(8px)"}}),v.jsx("span",{style:{position:"absolute",left:"12px",top:"50%",transform:"translateY(-50%)",color:S.textMuted,fontSize:"14px"},children:"๐Ÿ”"}),m&&v.jsxs("span",{style:{position:"absolute",right:"12px",top:"50%",transform:"translateY(-50%)",color:S.textMuted,fontSize:"12px"},children:[tr.length," results"]})]}),v.jsxs("div",{style:{color:S.textMuted,fontSize:"12px",flexShrink:0},children:[Ht.name.slice(0,40),Ht.name.length>40?"...":""," ยท ",Ht.nodeCount," nodes"]}),v.jsx("button",{onClick:he,title:"Exit fullscreen (Esc)",style:{background:"none",border:`1px solid ${S.border}`,color:S.textMuted,cursor:"pointer",padding:"6px 12px",borderRadius:"6px",fontSize:"13px",flexShrink:0},children:"โœ• Exit"})]}),v.jsxs("div",{style:{display:"flex",flex:1,paddingTop:"52px"},children:[v.jsxs("div",{style:{width:"280px",flexShrink:0,borderRight:`1px solid ${S.border}`,display:"flex",flexDirection:"column",overflow:"hidden"},children:[v.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 12px",borderBottom:`1px solid ${S.border}`,fontSize:"12px",color:S.textMuted,cursor:"pointer",userSelect:"none"},children:[v.jsx("input",{type:"checkbox",checked:b,onChange:B=>$(B.target.checked),style:{accentColor:"#ec4899"}}),"Commits only (",Ie?Ie.nodes.filter(B=>Vl(B)).length:0,")"]}),v.jsx("div",{style:{flex:1,overflowY:"auto"},children:Ht.nodes.slice().sort((B,ie)=>new Date(ie.created_at).getTime()-new Date(B.created_at).getTime()).map(B=>{const ie=Vl(B),G=S[B.node_type]||S.text,_e=f===B.id;return v.jsxs("div",{onClick:()=>c(B.id),style:{padding:"8px 12px",borderBottom:`1px solid ${S.border}22`,cursor:"pointer",backgroundColor:_e?S.bgSelected:"transparent",borderLeft:`3px solid ${G}`},children:[v.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[v.jsx("span",{style:{color:G,fontSize:"9px",fontWeight:700,fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace"},children:mt[B.node_type]}),v.jsx("span",{style:{color:S.text,fontSize:"12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},children:B.title})]}),ie&&v.jsx("div",{style:{fontSize:"10px",color:S.textDim,fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",marginTop:"2px"},children:ie.slice(0,8)})]},B.id)})})]}),v.jsx("div",{style:{flex:1,height:"100%"},children:v.jsx(td,{narrative:Ht,selectedNodeId:f,onSelectNode:c})})]})]}),v.jsxs("div",{style:{display:"flex",flex:1,overflow:"hidden"},children:[v.jsx("div",{style:{width:`${_}px`,display:"flex",flexDirection:"column",overflow:"auto",flexShrink:0},children:m?v.jsx(Jb,{results:tr,selectedNodeId:f,onSelectNode:c}):se?v.jsxs("div",{style:{flex:1,overflow:"auto"},children:[v.jsxs("div",{style:{display:"grid",gridTemplateColumns:"24px 60px 50px 50px 1fr",gap:"8px",padding:"8px 12px",borderBottom:`1px solid ${S.border}`,color:S.textMuted,fontSize:"11px",fontWeight:600,letterSpacing:"0.5px",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace"},children:[v.jsx("span",{}),v.jsx("span",{children:"TYPE"}),v.jsx("span",{children:"CONF"}),v.jsx("span",{children:"ID"}),v.jsx("span",{children:"TITLE"})]}),v.jsx(qg,{treeNode:se.tree,isSelected:f===se.tree.node.id,expandedNodes:p,onSelect:c,onToggle:tu,edges:(e==null?void 0:e.edges)||[]})]}):v.jsx("div",{style:{flex:1,overflow:"auto"},children:ye.map(B=>v.jsx(Gb,{narrative:B,onClick:()=>Ji(B.id)},B.id))})}),v.jsx(nd,{direction:"horizontal",onResize:k}),v.jsxs("div",{style:{flex:1,overflow:"hidden",minWidth:"300px",display:"flex",flexDirection:"column"},children:[v.jsxs("div",{style:{height:Ie?`${C}px`:"100%",overflow:"auto",flexShrink:0},children:[v.jsx(Kb,{node:Bt,narrative:se,edges:(e==null?void 0:e.edges)||[],nodes:(e==null?void 0:e.nodes)||[],graphData:e,onSelectNode:c}),m&&Bt&&$t.length>0&&v.jsxs("div",{style:{padding:"12px 20px",borderTop:`1px solid ${S.border}`},children:[v.jsxs("div",{style:{color:S.textMuted,fontSize:"11px",fontWeight:600,letterSpacing:"0.5px",marginBottom:"8px"},children:["PART OF ",$t.length," NARRATIVE",$t.length>1?"S":""]}),v.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:$t.map(B=>{const ie=S[B.root.node_type]||S.text;return v.jsx("div",{onClick:()=>{w(""),a(B.id)},style:{padding:"8px 12px",backgroundColor:S.bgLight,borderRadius:"6px",borderLeft:`3px solid ${ie}`,cursor:"pointer"},children:v.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[v.jsx("span",{style:{color:ie,fontSize:"10px",fontWeight:600},children:mt[B.root.node_type]}),v.jsx("span",{style:{color:S.text,fontSize:"13px"},children:B.name}),v.jsxs("span",{style:{color:S.textMuted,fontSize:"11px",marginLeft:"auto"},children:[B.nodeCount," nodes โ†’"]})]})},B.id)})})]})]}),Ie&&v.jsx(nd,{direction:"vertical",onResize:J}),Ie&&v.jsxs("div",{style:{flex:1,minHeight:"100px",position:"relative"},children:[v.jsxs("div",{style:{position:"absolute",top:"8px",left:"8px",fontSize:"11px",color:S.textMuted,fontWeight:600,letterSpacing:"0.5px",zIndex:10,display:"flex",alignItems:"center",gap:"8px"},children:["GRAPH VIEW ",m&&`(${Ie.name.slice(0,30)}${Ie.name.length>30?"...":""})`,v.jsx("button",{onClick:he,title:"Fullscreen graph",style:{background:"none",border:`1px solid ${S.border}`,color:S.textMuted,cursor:"pointer",padding:"2px 6px",borderRadius:"4px",fontSize:"13px",lineHeight:1},children:"โ›ถ"})]}),v.jsx(td,{narrative:Ie,selectedNodeId:f,onSelectNode:c})]})]})]})]})}qu.createRoot(document.getElementById("root")).render(v.jsx(ay.StrictMode,{children:v.jsx(nT,{})}));</script>
    <style rel="stylesheet" crossorigin>*{margin:0;padding:0;box-sizing:border-box}html,body,#root{height:100%;width:100%}body{background-color:#1a1625;color:#e0dce8;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#252036}::-webkit-scrollbar-thumb{background:#3d3560;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#4d4580}::selection{background:#3d3560;color:#e0dce8}input:focus,select:focus,button:focus{outline:2px solid #8b5cf6;outline-offset:1px}a{color:#8b5cf6;text-decoration:none}a:hover{text-decoration:underline}</style>
  </head>
  <body>
    <div id="root"></div>
  </body>
</html>