var XR=Object.defineProperty;var ZR=(e,t,n)=>t in e?XR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Lp=(e,t,n)=>ZR(e,typeof t!="symbol"?t+"":t,n);function WR(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(r,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();function Tr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bp={exports:{}},ju={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var lO;function QR(){if(lO)return ju;lO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,o){var u=null;if(o!==void 0&&(u=""+o),a.key!==void 0&&(u=""+a.key),"key"in a){o={};for(var c in a)c!=="key"&&(o[c]=a[c])}else o=a;return a=o.ref,{$$typeof:e,type:r,key:u,ref:a!==void 0?a:null,props:o}}return ju.Fragment=t,ju.jsx=n,ju.jsxs=n,ju}var oO;function JR(){return oO||(oO=1,Bp.exports=QR()),Bp.exports}var _=JR(),Up={exports:{}},Ce={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var uO;function eI(){if(uO)return Ce;uO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),y=Symbol.iterator;function g(R){return R===null||typeof R!="object"?null:(R=y&&R[y]||R["@@iterator"],typeof R=="function"?R:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,S={};function O(R,V,z){this.props=R,this.context=V,this.refs=S,this.updater=z||x}O.prototype.isReactComponent={},O.prototype.setState=function(R,V){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,V,"setState")},O.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function C(){}C.prototype=O.prototype;function T(R,V,z){this.props=R,this.context=V,this.refs=S,this.updater=z||x}var D=T.prototype=new C;D.constructor=T,w(D,O.prototype),D.isPureReactComponent=!0;var P=Array.isArray;function k(){}var j={H:null,A:null,T:null,S:null},U=Object.prototype.hasOwnProperty;function $(R,V,z){var se=z.ref;return{$$typeof:e,type:R,key:V,ref:se!==void 0?se:null,props:z}}function I(R,V){return $(R.type,V,R.props)}function Z(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function q(R){var V={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(z){return V[z]})}var oe=/\/+/g;function ne(R,V){return typeof R=="object"&&R!==null&&R.key!=null?q(""+R.key):V.toString(36)}function Q(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(k,k):(R.status="pending",R.then(function(V){R.status==="pending"&&(R.status="fulfilled",R.value=V)},function(V){R.status==="pending"&&(R.status="rejected",R.reason=V)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function L(R,V,z,se,ye){var ve=typeof R;(ve==="undefined"||ve==="boolean")&&(R=null);var Se=!1;if(R===null)Se=!0;else switch(ve){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(R.$$typeof){case e:case t:Se=!0;break;case m:return Se=R._init,L(Se(R._payload),V,z,se,ye)}}if(Se)return ye=ye(R),Se=se===""?"."+ne(R,0):se,P(ye)?(z="",Se!=null&&(z=Se.replace(oe,"$&/")+"/"),L(ye,V,z,"",function(he){return he})):ye!=null&&(Z(ye)&&(ye=I(ye,z+(ye.key==null||R&&R.key===ye.key?"":(""+ye.key).replace(oe,"$&/")+"/")+Se)),V.push(ye)),1;Se=0;var ge=se===""?".":se+":";if(P(R))for(var Y=0;Y<R.length;Y++)se=R[Y],ve=ge+ne(se,Y),Se+=L(se,V,z,ve,ye);else if(Y=g(R),typeof Y=="function")for(R=Y.call(R),Y=0;!(se=R.next()).done;)se=se.value,ve=ge+ne(se,Y++),Se+=L(se,V,z,ve,ye);else if(ve==="object"){if(typeof R.then=="function")return L(Q(R),V,z,se,ye);throw V=String(R),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return Se}function K(R,V,z){if(R==null)return R;var se=[],ye=0;return L(R,se,"","",function(ve){return V.call(z,ve,ye++)}),se}function J(R){if(R._status===-1){var V=R._result;V=V(),V.then(function(z){(R._status===0||R._status===-1)&&(R._status=1,R._result=z)},function(z){(R._status===0||R._status===-1)&&(R._status=2,R._result=z)}),R._status===-1&&(R._status=0,R._result=V)}if(R._status===1)return R._result.default;throw R._result}var re=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},N={map:K,forEach:function(R,V,z){K(R,function(){V.apply(this,arguments)},z)},count:function(R){var V=0;return K(R,function(){V++}),V},toArray:function(R){return K(R,function(V){return V})||[]},only:function(R){if(!Z(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return Ce.Activity=p,Ce.Children=N,Ce.Component=O,Ce.Fragment=n,Ce.Profiler=a,Ce.PureComponent=T,Ce.StrictMode=r,Ce.Suspense=f,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(R){return j.H.useMemoCache(R)}},Ce.cache=function(R){return function(){return R.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(R,V,z){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var se=w({},R.props),ye=R.key;if(V!=null)for(ve in V.key!==void 0&&(ye=""+V.key),V)!U.call(V,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&V.ref===void 0||(se[ve]=V[ve]);var ve=arguments.length-2;if(ve===1)se.children=z;else if(1<ve){for(var Se=Array(ve),ge=0;ge<ve;ge++)Se[ge]=arguments[ge+2];se.children=Se}return $(R.type,ye,se)},Ce.createContext=function(R){return R={$$typeof:u,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:o,_context:R},R},Ce.createElement=function(R,V,z){var se,ye={},ve=null;if(V!=null)for(se in V.key!==void 0&&(ve=""+V.key),V)U.call(V,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(ye[se]=V[se]);var Se=arguments.length-2;if(Se===1)ye.children=z;else if(1<Se){for(var ge=Array(Se),Y=0;Y<Se;Y++)ge[Y]=arguments[Y+2];ye.children=ge}if(R&&R.defaultProps)for(se in Se=R.defaultProps,Se)ye[se]===void 0&&(ye[se]=Se[se]);return $(R,ve,ye)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(R){return{$$typeof:c,render:R}},Ce.isValidElement=Z,Ce.lazy=function(R){return{$$typeof:m,_payload:{_status:-1,_result:R},_init:J}},Ce.memo=function(R,V){return{$$typeof:d,type:R,compare:V===void 0?null:V}},Ce.startTransition=function(R){var V=j.T,z={};j.T=z;try{var se=R(),ye=j.S;ye!==null&&ye(z,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(k,re)}catch(ve){re(ve)}finally{V!==null&&z.types!==null&&(V.types=z.types),j.T=V}},Ce.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},Ce.use=function(R){return j.H.use(R)},Ce.useActionState=function(R,V,z){return j.H.useActionState(R,V,z)},Ce.useCallback=function(R,V){return j.H.useCallback(R,V)},Ce.useContext=function(R){return j.H.useContext(R)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(R,V){return j.H.useDeferredValue(R,V)},Ce.useEffect=function(R,V){return j.H.useEffect(R,V)},Ce.useEffectEvent=function(R){return j.H.useEffectEvent(R)},Ce.useId=function(){return j.H.useId()},Ce.useImperativeHandle=function(R,V,z){return j.H.useImperativeHandle(R,V,z)},Ce.useInsertionEffect=function(R,V){return j.H.useInsertionEffect(R,V)},Ce.useLayoutEffect=function(R,V){return j.H.useLayoutEffect(R,V)},Ce.useMemo=function(R,V){return j.H.useMemo(R,V)},Ce.useOptimistic=function(R,V){return j.H.useOptimistic(R,V)},Ce.useReducer=function(R,V,z){return j.H.useReducer(R,V,z)},Ce.useRef=function(R){return j.H.useRef(R)},Ce.useState=function(R){return j.H.useState(R)},Ce.useSyncExternalStore=function(R,V,z){return j.H.useSyncExternalStore(R,V,z)},Ce.useTransition=function(){return j.H.useTransition()},Ce.version="19.2.4",Ce}var sO;function Eo(){return sO||(sO=1,Up.exports=eI()),Up.exports}var E=Eo();const Lr=Tr(E),tI=WR({__proto__:null,default:Lr},[E]);var qp={exports:{}},Mu={},Hp={exports:{}},$p={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var cO;function nI(){return cO||(cO=1,(function(e){function t(L,K){var J=L.length;L.push(K);e:for(;0<J;){var re=J-1>>>1,N=L[re];if(0<a(N,K))L[re]=K,L[J]=N,J=re;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var K=L[0],J=L.pop();if(J!==K){L[0]=J;e:for(var re=0,N=L.length,R=N>>>1;re<R;){var V=2*(re+1)-1,z=L[V],se=V+1,ye=L[se];if(0>a(z,J))se<N&&0>a(ye,z)?(L[re]=ye,L[se]=J,re=se):(L[re]=z,L[V]=J,re=V);else if(se<N&&0>a(ye,J))L[re]=ye,L[se]=J,re=se;else break e}}return K}function a(L,K){var J=L.sortIndex-K.sortIndex;return J!==0?J:L.id-K.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var u=Date,c=u.now();e.unstable_now=function(){return u.now()-c}}var f=[],d=[],m=1,p=null,y=3,g=!1,x=!1,w=!1,S=!1,O=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function D(L){for(var K=n(d);K!==null;){if(K.callback===null)r(d);else if(K.startTime<=L)r(d),K.sortIndex=K.expirationTime,t(f,K);else break;K=n(d)}}function P(L){if(w=!1,D(L),!x)if(n(f)!==null)x=!0,k||(k=!0,q());else{var K=n(d);K!==null&&Q(P,K.startTime-L)}}var k=!1,j=-1,U=5,$=-1;function I(){return S?!0:!(e.unstable_now()-$<U)}function Z(){if(S=!1,k){var L=e.unstable_now();$=L;var K=!0;try{e:{x=!1,w&&(w=!1,C(j),j=-1),g=!0;var J=y;try{t:{for(D(L),p=n(f);p!==null&&!(p.expirationTime>L&&I());){var re=p.callback;if(typeof re=="function"){p.callback=null,y=p.priorityLevel;var N=re(p.expirationTime<=L);if(L=e.unstable_now(),typeof N=="function"){p.callback=N,D(L),K=!0;break t}p===n(f)&&r(f),D(L)}else r(f);p=n(f)}if(p!==null)K=!0;else{var R=n(d);R!==null&&Q(P,R.startTime-L),K=!1}}break e}finally{p=null,y=J,g=!1}K=void 0}}finally{K?q():k=!1}}}var q;if(typeof T=="function")q=function(){T(Z)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,ne=oe.port2;oe.port1.onmessage=Z,q=function(){ne.postMessage(null)}}else q=function(){O(Z,0)};function Q(L,K){j=O(function(){L(e.unstable_now())},K)}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_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"):U=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(L){switch(y){case 1:case 2:case 3:var K=3;break;default:K=y}var J=y;y=K;try{return L()}finally{y=J}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(L,K){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var J=y;y=L;try{return K()}finally{y=J}},e.unstable_scheduleCallback=function(L,K,J){var re=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?re+J:re):J=re,L){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=J+N,L={id:m++,callback:K,priorityLevel:L,startTime:J,expirationTime:N,sortIndex:-1},J>re?(L.sortIndex=J,t(d,L),n(f)===null&&L===n(d)&&(w?(C(j),j=-1):w=!0,Q(P,J-re))):(L.sortIndex=N,t(f,L),x||g||(x=!0,k||(k=!0,q()))),L},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(L){var K=y;return function(){var J=y;y=K;try{return L.apply(this,arguments)}finally{y=J}}}})($p)),$p}var fO;function rI(){return fO||(fO=1,Hp.exports=nI()),Hp.exports}var Fp={exports:{}},nn={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var dO;function iI(){if(dO)return nn;dO=1;var e=Eo();function t(f){var d="https://react.dev/errors/"+f;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function o(f,d,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:p==null?null:""+p,children:f,containerInfo:d,implementation:m}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,d){if(f==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return nn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,nn.createPortal=function(f,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return o(f,d,null,m)},nn.flushSync=function(f){var d=u.T,m=r.p;try{if(u.T=null,r.p=2,f)return f()}finally{u.T=d,r.p=m,r.d.f()}},nn.preconnect=function(f,d){typeof f=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(f,d))},nn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},nn.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var m=d.as,p=c(m,d.crossOrigin),y=typeof d.integrity=="string"?d.integrity:void 0,g=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?r.d.S(f,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:p,integrity:y,fetchPriority:g}):m==="script"&&r.d.X(f,{crossOrigin:p,integrity:y,fetchPriority:g,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},nn.preinitModule=function(f,d){if(typeof f=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=c(d.as,d.crossOrigin);r.d.M(f,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(f)},nn.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,p=c(m,d.crossOrigin);r.d.L(f,m,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},nn.preloadModule=function(f,d){if(typeof f=="string")if(d){var m=c(d.as,d.crossOrigin);r.d.m(f,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(f)},nn.requestFormReset=function(f){r.d.r(f)},nn.unstable_batchedUpdates=function(f,d){return f(d)},nn.useFormState=function(f,d,m){return u.H.useFormState(f,d,m)},nn.useFormStatus=function(){return u.H.useHostTransitionStatus()},nn.version="19.2.4",nn}var hO;function pC(){if(hO)return Fp.exports;hO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Fp.exports=iI(),Fp.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var mO;function aI(){if(mO)return Mu;mO=1;var e=rI(),t=Eo(),n=pC();function r(i){var l="https://react.dev/errors/"+i;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)l+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+i+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function o(i){var l=i,s=i;if(i.alternate)for(;l.return;)l=l.return;else{i=l;do l=i,(l.flags&4098)!==0&&(s=l.return),i=l.return;while(i)}return l.tag===3?s:null}function u(i){if(i.tag===13){var l=i.memoizedState;if(l===null&&(i=i.alternate,i!==null&&(l=i.memoizedState)),l!==null)return l.dehydrated}return null}function c(i){if(i.tag===31){var l=i.memoizedState;if(l===null&&(i=i.alternate,i!==null&&(l=i.memoizedState)),l!==null)return l.dehydrated}return null}function f(i){if(o(i)!==i)throw Error(r(188))}function d(i){var l=i.alternate;if(!l){if(l=o(i),l===null)throw Error(r(188));return l!==i?null:i}for(var s=i,h=l;;){var v=s.return;if(v===null)break;var b=v.alternate;if(b===null){if(h=v.return,h!==null){s=h;continue}break}if(v.child===b.child){for(b=v.child;b;){if(b===s)return f(v),i;if(b===h)return f(v),l;b=b.sibling}throw Error(r(188))}if(s.return!==h.return)s=v,h=b;else{for(var A=!1,M=v.child;M;){if(M===s){A=!0,s=v,h=b;break}if(M===h){A=!0,h=v,s=b;break}M=M.sibling}if(!A){for(M=b.child;M;){if(M===s){A=!0,s=b,h=v;break}if(M===h){A=!0,h=b,s=v;break}M=M.sibling}if(!A)throw Error(r(189))}}if(s.alternate!==h)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?i:l}function m(i){var l=i.tag;if(l===5||l===26||l===27||l===6)return i;for(i=i.child;i!==null;){if(l=m(i),l!==null)return l;i=i.sibling}return null}var p=Object.assign,y=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),T=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),Z=Symbol.iterator;function q(i){return i===null||typeof i!="object"?null:(i=Z&&i[Z]||i["@@iterator"],typeof i=="function"?i:null)}var oe=Symbol.for("react.client.reference");function ne(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===oe?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case w:return"Fragment";case O:return"Profiler";case S:return"StrictMode";case P:return"Suspense";case k:return"SuspenseList";case $:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case x:return"Portal";case T:return i.displayName||"Context";case C:return(i._context.displayName||"Context")+".Consumer";case D:var l=i.render;return i=i.displayName,i||(i=l.displayName||l.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case j:return l=i.displayName||null,l!==null?l:ne(i.type)||"Memo";case U:l=i._payload,i=i._init;try{return ne(i(l))}catch{}}return null}var Q=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},re=[],N=-1;function R(i){return{current:i}}function V(i){0>N||(i.current=re[N],re[N]=null,N--)}function z(i,l){N++,re[N]=i.current,i.current=l}var se=R(null),ye=R(null),ve=R(null),Se=R(null);function ge(i,l){switch(z(ve,l),z(ye,i),z(se,null),l.nodeType){case 9:case 11:i=(i=l.documentElement)&&(i=i.namespaceURI)?TS(i):0;break;default:if(i=l.tagName,l=l.namespaceURI)l=TS(l),i=jS(l,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}V(se),z(se,i)}function Y(){V(se),V(ye),V(ve)}function he(i){i.memoizedState!==null&&z(Se,i);var l=se.current,s=jS(l,i.type);l!==s&&(z(ye,i),z(se,s))}function be(i){ye.current===i&&(V(se),V(ye)),Se.current===i&&(V(Se),ku._currentValue=J)}var ce,jt;function Ie(i){if(ce===void 0)try{throw Error()}catch(s){var l=s.stack.trim().match(/\n( *(at )?)/);ce=l&&l[1]||"",jt=-1<s.stack.indexOf(`
    at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ce+i+jt}var St=!1;function Ot(i,l){if(!i||St)return"";St=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(l){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(te){var W=te}Reflect.construct(i,[],ue)}else{try{ue.call()}catch(te){W=te}i.call(ue.prototype)}}else{try{throw Error()}catch(te){W=te}(ue=i())&&typeof ue.catch=="function"&&ue.catch(function(){})}}catch(te){if(te&&W&&typeof te.stack=="string")return[te.stack,W.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=h.DetermineComponentFrameRoot(),A=b[0],M=b[1];if(A&&M){var B=A.split(`
`),X=M.split(`
`);for(v=h=0;h<B.length&&!B[h].includes("DetermineComponentFrameRoot");)h++;for(;v<X.length&&!X[v].includes("DetermineComponentFrameRoot");)v++;if(h===B.length||v===X.length)for(h=B.length-1,v=X.length-1;1<=h&&0<=v&&B[h]!==X[v];)v--;for(;1<=h&&0<=v;h--,v--)if(B[h]!==X[v]){if(h!==1||v!==1)do if(h--,v--,0>v||B[h]!==X[v]){var ie=`
`+B[h].replace(" at new "," at ");return i.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",i.displayName)),ie}while(1<=h&&0<=v);break}}}finally{St=!1,Error.prepareStackTrace=s}return(s=i?i.displayName||i.name:"")?Ie(s):""}function Gn(i,l){switch(i.tag){case 26:case 27:case 5:return Ie(i.type);case 16:return Ie("Lazy");case 13:return i.child!==l&&l!==null?Ie("Suspense Fallback"):Ie("Suspense");case 19:return Ie("SuspenseList");case 0:case 15:return Ot(i.type,!1);case 11:return Ot(i.type.render,!1);case 1:return Ot(i.type,!0);case 31:return Ie("Activity");default:return""}}function ba(i){try{var l="",s=null;do l+=Gn(i,s),s=i,i=i.return;while(i);return l}catch(h){return`
Error generating stack: `+h.message+`
`+h.stack}}var cl=Object.prototype.hasOwnProperty,fl=e.unstable_scheduleCallback,Lo=e.unstable_cancelCallback,Oh=e.unstable_shouldYield,Eh=e.unstable_requestPaint,un=e.unstable_now,Ah=e.unstable_getCurrentPriorityLevel,ae=e.unstable_ImmediatePriority,de=e.unstable_UserBlockingPriority,_e=e.unstable_NormalPriority,De=e.unstable_LowPriority,Ke=e.unstable_IdlePriority,zn=e.log,Gr=e.unstable_setDisableYieldValue,sn=null,Mt=null;function yn(i){if(typeof zn=="function"&&Gr(i),Mt&&typeof Mt.setStrictMode=="function")try{Mt.setStrictMode(sn,i)}catch{}}var tt=Math.clz32?Math.clz32:PN,Ii=Math.log,yr=Math.LN2;function PN(i){return i>>>=0,i===0?32:31-(Ii(i)/yr|0)|0}var Ls=256,Bs=262144,Us=4194304;function xa(i){var l=i&42;if(l!==0)return l;switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function qs(i,l,s){var h=i.pendingLanes;if(h===0)return 0;var v=0,b=i.suspendedLanes,A=i.pingedLanes;i=i.warmLanes;var M=h&134217727;return M!==0?(h=M&~b,h!==0?v=xa(h):(A&=M,A!==0?v=xa(A):s||(s=M&~i,s!==0&&(v=xa(s))))):(M=h&~b,M!==0?v=xa(M):A!==0?v=xa(A):s||(s=h&~i,s!==0&&(v=xa(s)))),v===0?0:l!==0&&l!==v&&(l&b)===0&&(b=v&-v,s=l&-l,b>=s||b===32&&(s&4194048)!==0)?l:v}function Bo(i,l){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&l)===0}function RN(i,l){switch(i){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function cx(){var i=Us;return Us<<=1,(Us&62914560)===0&&(Us=4194304),i}function kh(i){for(var l=[],s=0;31>s;s++)l.push(i);return l}function Uo(i,l){i.pendingLanes|=l,l!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function IN(i,l,s,h,v,b){var A=i.pendingLanes;i.pendingLanes=s,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=s,i.entangledLanes&=s,i.errorRecoveryDisabledLanes&=s,i.shellSuspendCounter=0;var M=i.entanglements,B=i.expirationTimes,X=i.hiddenUpdates;for(s=A&~s;0<s;){var ie=31-tt(s),ue=1<<ie;M[ie]=0,B[ie]=-1;var W=X[ie];if(W!==null)for(X[ie]=null,ie=0;ie<W.length;ie++){var te=W[ie];te!==null&&(te.lane&=-536870913)}s&=~ue}h!==0&&fx(i,h,0),b!==0&&v===0&&i.tag!==0&&(i.suspendedLanes|=b&~(A&~l))}function fx(i,l,s){i.pendingLanes|=l,i.suspendedLanes&=~l;var h=31-tt(l);i.entangledLanes|=l,i.entanglements[h]=i.entanglements[h]|1073741824|s&261930}function dx(i,l){var s=i.entangledLanes|=l;for(i=i.entanglements;s;){var h=31-tt(s),v=1<<h;v&l|i[h]&l&&(i[h]|=l),s&=~v}}function hx(i,l){var s=l&-l;return s=(s&42)!==0?1:_h(s),(s&(i.suspendedLanes|l))!==0?0:s}function _h(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function Ch(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function mx(){var i=K.p;return i!==0?i:(i=window.event,i===void 0?32:JS(i.type))}function px(i,l){var s=K.p;try{return K.p=i,l()}finally{K.p=s}}var Li=Math.random().toString(36).slice(2),Yt="__reactFiber$"+Li,gn="__reactProps$"+Li,dl="__reactContainer$"+Li,Th="__reactEvents$"+Li,LN="__reactListeners$"+Li,BN="__reactHandles$"+Li,vx="__reactResources$"+Li,qo="__reactMarker$"+Li;function jh(i){delete i[Yt],delete i[gn],delete i[Th],delete i[LN],delete i[BN]}function hl(i){var l=i[Yt];if(l)return l;for(var s=i.parentNode;s;){if(l=s[dl]||s[Yt]){if(s=l.alternate,l.child!==null||s!==null&&s.child!==null)for(i=IS(i);i!==null;){if(s=i[Yt])return s;i=IS(i)}return l}i=s,s=i.parentNode}return null}function ml(i){if(i=i[Yt]||i[dl]){var l=i.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return i}return null}function Ho(i){var l=i.tag;if(l===5||l===26||l===27||l===6)return i.stateNode;throw Error(r(33))}function pl(i){var l=i[vx];return l||(l=i[vx]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Rt(i){i[qo]=!0}var yx=new Set,gx={};function wa(i,l){vl(i,l),vl(i+"Capture",l)}function vl(i,l){for(gx[i]=l,i=0;i<l.length;i++)yx.add(l[i])}var UN=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),bx={},xx={};function qN(i){return cl.call(xx,i)?!0:cl.call(bx,i)?!1:UN.test(i)?xx[i]=!0:(bx[i]=!0,!1)}function Hs(i,l,s){if(qN(l))if(s===null)i.removeAttribute(l);else{switch(typeof s){case"undefined":case"function":case"symbol":i.removeAttribute(l);return;case"boolean":var h=l.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(l);return}}i.setAttribute(l,""+s)}}function $s(i,l,s){if(s===null)i.removeAttribute(l);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(l);return}i.setAttribute(l,""+s)}}function Xr(i,l,s,h){if(h===null)i.removeAttribute(s);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(s);return}i.setAttributeNS(l,s,""+h)}}function Xn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function wx(i){var l=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function HN(i,l,s){var h=Object.getOwnPropertyDescriptor(i.constructor.prototype,l);if(!i.hasOwnProperty(l)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var v=h.get,b=h.set;return Object.defineProperty(i,l,{configurable:!0,get:function(){return v.call(this)},set:function(A){s=""+A,b.call(this,A)}}),Object.defineProperty(i,l,{enumerable:h.enumerable}),{getValue:function(){return s},setValue:function(A){s=""+A},stopTracking:function(){i._valueTracker=null,delete i[l]}}}}function Mh(i){if(!i._valueTracker){var l=wx(i)?"checked":"value";i._valueTracker=HN(i,l,""+i[l])}}function Sx(i){if(!i)return!1;var l=i._valueTracker;if(!l)return!0;var s=l.getValue(),h="";return i&&(h=wx(i)?i.checked?"true":"false":i.value),i=h,i!==s?(l.setValue(i),!0):!1}function Fs(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var $N=/[\n"\\]/g;function Zn(i){return i.replace($N,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function zh(i,l,s,h,v,b,A,M){i.name="",A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?i.type=A:i.removeAttribute("type"),l!=null?A==="number"?(l===0&&i.value===""||i.value!=l)&&(i.value=""+Xn(l)):i.value!==""+Xn(l)&&(i.value=""+Xn(l)):A!=="submit"&&A!=="reset"||i.removeAttribute("value"),l!=null?Dh(i,A,Xn(l)):s!=null?Dh(i,A,Xn(s)):h!=null&&i.removeAttribute("value"),v==null&&b!=null&&(i.defaultChecked=!!b),v!=null&&(i.checked=v&&typeof v!="function"&&typeof v!="symbol"),M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?i.name=""+Xn(M):i.removeAttribute("name")}function Ox(i,l,s,h,v,b,A,M){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(i.type=b),l!=null||s!=null){if(!(b!=="submit"&&b!=="reset"||l!=null)){Mh(i);return}s=s!=null?""+Xn(s):"",l=l!=null?""+Xn(l):s,M||l===i.value||(i.value=l),i.defaultValue=l}h=h??v,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=M?i.checked:!!h,i.defaultChecked=!!h,A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(i.name=A),Mh(i)}function Dh(i,l,s){l==="number"&&Fs(i.ownerDocument)===i||i.defaultValue===""+s||(i.defaultValue=""+s)}function yl(i,l,s,h){if(i=i.options,l){l={};for(var v=0;v<s.length;v++)l["$"+s[v]]=!0;for(s=0;s<i.length;s++)v=l.hasOwnProperty("$"+i[s].value),i[s].selected!==v&&(i[s].selected=v),v&&h&&(i[s].defaultSelected=!0)}else{for(s=""+Xn(s),l=null,v=0;v<i.length;v++){if(i[v].value===s){i[v].selected=!0,h&&(i[v].defaultSelected=!0);return}l!==null||i[v].disabled||(l=i[v])}l!==null&&(l.selected=!0)}}function Ex(i,l,s){if(l!=null&&(l=""+Xn(l),l!==i.value&&(i.value=l),s==null)){i.defaultValue!==l&&(i.defaultValue=l);return}i.defaultValue=s!=null?""+Xn(s):""}function Ax(i,l,s,h){if(l==null){if(h!=null){if(s!=null)throw Error(r(92));if(Q(h)){if(1<h.length)throw Error(r(93));h=h[0]}s=h}s==null&&(s=""),l=s}s=Xn(l),i.defaultValue=s,h=i.textContent,h===s&&h!==""&&h!==null&&(i.value=h),Mh(i)}function gl(i,l){if(l){var s=i.firstChild;if(s&&s===i.lastChild&&s.nodeType===3){s.nodeValue=l;return}}i.textContent=l}var FN=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function kx(i,l,s){var h=l.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?h?i.setProperty(l,""):l==="float"?i.cssFloat="":i[l]="":h?i.setProperty(l,s):typeof s!="number"||s===0||FN.has(l)?l==="float"?i.cssFloat=s:i[l]=(""+s).trim():i[l]=s+"px"}function _x(i,l,s){if(l!=null&&typeof l!="object")throw Error(r(62));if(i=i.style,s!=null){for(var h in s)!s.hasOwnProperty(h)||l!=null&&l.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var v in l)h=l[v],l.hasOwnProperty(v)&&s[v]!==h&&kx(i,v,h)}else for(var b in l)l.hasOwnProperty(b)&&kx(i,b,l[b])}function Nh(i){if(i.indexOf("-")===-1)return!1;switch(i){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 VN=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),YN=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Vs(i){return YN.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function Zr(){}var Ph=null;function Rh(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var bl=null,xl=null;function Cx(i){var l=ml(i);if(l&&(i=l.stateNode)){var s=i[gn]||null;e:switch(i=l.stateNode,l.type){case"input":if(zh(i,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),l=s.name,s.type==="radio"&&l!=null){for(s=i;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Zn(""+l)+'"][type="radio"]'),l=0;l<s.length;l++){var h=s[l];if(h!==i&&h.form===i.form){var v=h[gn]||null;if(!v)throw Error(r(90));zh(h,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(l=0;l<s.length;l++)h=s[l],h.form===i.form&&Sx(h)}break e;case"textarea":Ex(i,s.value,s.defaultValue);break e;case"select":l=s.value,l!=null&&yl(i,!!s.multiple,l,!1)}}}var Ih=!1;function Tx(i,l,s){if(Ih)return i(l,s);Ih=!0;try{var h=i(l);return h}finally{if(Ih=!1,(bl!==null||xl!==null)&&(zc(),bl&&(l=bl,i=xl,xl=bl=null,Cx(l),i)))for(l=0;l<i.length;l++)Cx(i[l])}}function $o(i,l){var s=i.stateNode;if(s===null)return null;var h=s[gn]||null;if(h===null)return null;s=h[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(s&&typeof s!="function")throw Error(r(231,l,typeof s));return s}var Wr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lh=!1;if(Wr)try{var Fo={};Object.defineProperty(Fo,"passive",{get:function(){Lh=!0}}),window.addEventListener("test",Fo,Fo),window.removeEventListener("test",Fo,Fo)}catch{Lh=!1}var Bi=null,Bh=null,Ys=null;function jx(){if(Ys)return Ys;var i,l=Bh,s=l.length,h,v="value"in Bi?Bi.value:Bi.textContent,b=v.length;for(i=0;i<s&&l[i]===v[i];i++);var A=s-i;for(h=1;h<=A&&l[s-h]===v[b-h];h++);return Ys=v.slice(i,1<h?1-h:void 0)}function Ks(i){var l=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&l===13&&(i=13)):i=l,i===10&&(i=13),32<=i||i===13?i:0}function Gs(){return!0}function Mx(){return!1}function bn(i){function l(s,h,v,b,A){this._reactName=s,this._targetInst=v,this.type=h,this.nativeEvent=b,this.target=A,this.currentTarget=null;for(var M in i)i.hasOwnProperty(M)&&(s=i[M],this[M]=s?s(b):b[M]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?Gs:Mx,this.isPropagationStopped=Mx,this}return p(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Gs)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Gs)},persist:function(){},isPersistent:Gs}),l}var Sa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xs=bn(Sa),Vo=p({},Sa,{view:0,detail:0}),KN=bn(Vo),Uh,qh,Yo,Zs=p({},Vo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$h,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Yo&&(Yo&&i.type==="mousemove"?(Uh=i.screenX-Yo.screenX,qh=i.screenY-Yo.screenY):qh=Uh=0,Yo=i),Uh)},movementY:function(i){return"movementY"in i?i.movementY:qh}}),zx=bn(Zs),GN=p({},Zs,{dataTransfer:0}),XN=bn(GN),ZN=p({},Vo,{relatedTarget:0}),Hh=bn(ZN),WN=p({},Sa,{animationName:0,elapsedTime:0,pseudoElement:0}),QN=bn(WN),JN=p({},Sa,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),eP=bn(JN),tP=p({},Sa,{data:0}),Dx=bn(tP),nP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rP={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"},iP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function aP(i){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(i):(i=iP[i])?!!l[i]:!1}function $h(){return aP}var lP=p({},Vo,{key:function(i){if(i.key){var l=nP[i.key]||i.key;if(l!=="Unidentified")return l}return i.type==="keypress"?(i=Ks(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?rP[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$h,charCode:function(i){return i.type==="keypress"?Ks(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Ks(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),oP=bn(lP),uP=p({},Zs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nx=bn(uP),sP=p({},Vo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$h}),cP=bn(sP),fP=p({},Sa,{propertyName:0,elapsedTime:0,pseudoElement:0}),dP=bn(fP),hP=p({},Zs,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),mP=bn(hP),pP=p({},Sa,{newState:0,oldState:0}),vP=bn(pP),yP=[9,13,27,32],Fh=Wr&&"CompositionEvent"in window,Ko=null;Wr&&"documentMode"in document&&(Ko=document.documentMode);var gP=Wr&&"TextEvent"in window&&!Ko,Px=Wr&&(!Fh||Ko&&8<Ko&&11>=Ko),Rx=" ",Ix=!1;function Lx(i,l){switch(i){case"keyup":return yP.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bx(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var wl=!1;function bP(i,l){switch(i){case"compositionend":return Bx(l);case"keypress":return l.which!==32?null:(Ix=!0,Rx);case"textInput":return i=l.data,i===Rx&&Ix?null:i;default:return null}}function xP(i,l){if(wl)return i==="compositionend"||!Fh&&Lx(i,l)?(i=jx(),Ys=Bh=Bi=null,wl=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Px&&l.locale!=="ko"?null:l.data;default:return null}}var wP={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 Ux(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l==="input"?!!wP[i.type]:l==="textarea"}function qx(i,l,s,h){bl?xl?xl.push(h):xl=[h]:bl=h,l=Bc(l,"onChange"),0<l.length&&(s=new Xs("onChange","change",null,s,h),i.push({event:s,listeners:l}))}var Go=null,Xo=null;function SP(i){OS(i,0)}function Ws(i){var l=Ho(i);if(Sx(l))return i}function Hx(i,l){if(i==="change")return l}var $x=!1;if(Wr){var Vh;if(Wr){var Yh="oninput"in document;if(!Yh){var Fx=document.createElement("div");Fx.setAttribute("oninput","return;"),Yh=typeof Fx.oninput=="function"}Vh=Yh}else Vh=!1;$x=Vh&&(!document.documentMode||9<document.documentMode)}function Vx(){Go&&(Go.detachEvent("onpropertychange",Yx),Xo=Go=null)}function Yx(i){if(i.propertyName==="value"&&Ws(Xo)){var l=[];qx(l,Xo,i,Rh(i)),Tx(SP,l)}}function OP(i,l,s){i==="focusin"?(Vx(),Go=l,Xo=s,Go.attachEvent("onpropertychange",Yx)):i==="focusout"&&Vx()}function EP(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Ws(Xo)}function AP(i,l){if(i==="click")return Ws(l)}function kP(i,l){if(i==="input"||i==="change")return Ws(l)}function _P(i,l){return i===l&&(i!==0||1/i===1/l)||i!==i&&l!==l}var Dn=typeof Object.is=="function"?Object.is:_P;function Zo(i,l){if(Dn(i,l))return!0;if(typeof i!="object"||i===null||typeof l!="object"||l===null)return!1;var s=Object.keys(i),h=Object.keys(l);if(s.length!==h.length)return!1;for(h=0;h<s.length;h++){var v=s[h];if(!cl.call(l,v)||!Dn(i[v],l[v]))return!1}return!0}function Kx(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Gx(i,l){var s=Kx(i);i=0;for(var h;s;){if(s.nodeType===3){if(h=i+s.textContent.length,i<=l&&h>=l)return{node:s,offset:l-i};i=h}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Kx(s)}}function Xx(i,l){return i&&l?i===l?!0:i&&i.nodeType===3?!1:l&&l.nodeType===3?Xx(i,l.parentNode):"contains"in i?i.contains(l):i.compareDocumentPosition?!!(i.compareDocumentPosition(l)&16):!1:!1}function Zx(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var l=Fs(i.document);l instanceof i.HTMLIFrameElement;){try{var s=typeof l.contentWindow.location.href=="string"}catch{s=!1}if(s)i=l.contentWindow;else break;l=Fs(i.document)}return l}function Kh(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l&&(l==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||l==="textarea"||i.contentEditable==="true")}var CP=Wr&&"documentMode"in document&&11>=document.documentMode,Sl=null,Gh=null,Wo=null,Xh=!1;function Wx(i,l,s){var h=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Xh||Sl==null||Sl!==Fs(h)||(h=Sl,"selectionStart"in h&&Kh(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Wo&&Zo(Wo,h)||(Wo=h,h=Bc(Gh,"onSelect"),0<h.length&&(l=new Xs("onSelect","select",null,l,s),i.push({event:l,listeners:h}),l.target=Sl)))}function Oa(i,l){var s={};return s[i.toLowerCase()]=l.toLowerCase(),s["Webkit"+i]="webkit"+l,s["Moz"+i]="moz"+l,s}var Ol={animationend:Oa("Animation","AnimationEnd"),animationiteration:Oa("Animation","AnimationIteration"),animationstart:Oa("Animation","AnimationStart"),transitionrun:Oa("Transition","TransitionRun"),transitionstart:Oa("Transition","TransitionStart"),transitioncancel:Oa("Transition","TransitionCancel"),transitionend:Oa("Transition","TransitionEnd")},Zh={},Qx={};Wr&&(Qx=document.createElement("div").style,"AnimationEvent"in window||(delete Ol.animationend.animation,delete Ol.animationiteration.animation,delete Ol.animationstart.animation),"TransitionEvent"in window||delete Ol.transitionend.transition);function Ea(i){if(Zh[i])return Zh[i];if(!Ol[i])return i;var l=Ol[i],s;for(s in l)if(l.hasOwnProperty(s)&&s in Qx)return Zh[i]=l[s];return i}var Jx=Ea("animationend"),e1=Ea("animationiteration"),t1=Ea("animationstart"),TP=Ea("transitionrun"),jP=Ea("transitionstart"),MP=Ea("transitioncancel"),n1=Ea("transitionend"),r1=new Map,Wh="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Wh.push("scrollEnd");function gr(i,l){r1.set(i,l),wa(l,[i])}var Qs=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},Wn=[],El=0,Qh=0;function Js(){for(var i=El,l=Qh=El=0;l<i;){var s=Wn[l];Wn[l++]=null;var h=Wn[l];Wn[l++]=null;var v=Wn[l];Wn[l++]=null;var b=Wn[l];if(Wn[l++]=null,h!==null&&v!==null){var A=h.pending;A===null?v.next=v:(v.next=A.next,A.next=v),h.pending=v}b!==0&&i1(s,v,b)}}function ec(i,l,s,h){Wn[El++]=i,Wn[El++]=l,Wn[El++]=s,Wn[El++]=h,Qh|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function Jh(i,l,s,h){return ec(i,l,s,h),tc(i)}function Aa(i,l){return ec(i,null,null,l),tc(i)}function i1(i,l,s){i.lanes|=s;var h=i.alternate;h!==null&&(h.lanes|=s);for(var v=!1,b=i.return;b!==null;)b.childLanes|=s,h=b.alternate,h!==null&&(h.childLanes|=s),b.tag===22&&(i=b.stateNode,i===null||i._visibility&1||(v=!0)),i=b,b=b.return;return i.tag===3?(b=i.stateNode,v&&l!==null&&(v=31-tt(s),i=b.hiddenUpdates,h=i[v],h===null?i[v]=[l]:h.push(l),l.lane=s|536870912),b):null}function tc(i){if(50<bu)throw bu=0,up=null,Error(r(185));for(var l=i.return;l!==null;)i=l,l=i.return;return i.tag===3?i.stateNode:null}var Al={};function zP(i,l,s,h){this.tag=i,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nn(i,l,s,h){return new zP(i,l,s,h)}function em(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Qr(i,l){var s=i.alternate;return s===null?(s=Nn(i.tag,l,i.key,i.mode),s.elementType=i.elementType,s.type=i.type,s.stateNode=i.stateNode,s.alternate=i,i.alternate=s):(s.pendingProps=l,s.type=i.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=i.flags&65011712,s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,l=i.dependencies,s.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},s.sibling=i.sibling,s.index=i.index,s.ref=i.ref,s.refCleanup=i.refCleanup,s}function a1(i,l){i.flags&=65011714;var s=i.alternate;return s===null?(i.childLanes=0,i.lanes=l,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,l=s.dependencies,i.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),i}function nc(i,l,s,h,v,b){var A=0;if(h=i,typeof i=="function")em(i)&&(A=1);else if(typeof i=="string")A=IR(i,s,se.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case $:return i=Nn(31,s,l,v),i.elementType=$,i.lanes=b,i;case w:return ka(s.children,v,b,l);case S:A=8,v|=24;break;case O:return i=Nn(12,s,l,v|2),i.elementType=O,i.lanes=b,i;case P:return i=Nn(13,s,l,v),i.elementType=P,i.lanes=b,i;case k:return i=Nn(19,s,l,v),i.elementType=k,i.lanes=b,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case T:A=10;break e;case C:A=9;break e;case D:A=11;break e;case j:A=14;break e;case U:A=16,h=null;break e}A=29,s=Error(r(130,i===null?"null":typeof i,"")),h=null}return l=Nn(A,s,l,v),l.elementType=i,l.type=h,l.lanes=b,l}function ka(i,l,s,h){return i=Nn(7,i,h,l),i.lanes=s,i}function tm(i,l,s){return i=Nn(6,i,null,l),i.lanes=s,i}function l1(i){var l=Nn(18,null,null,0);return l.stateNode=i,l}function nm(i,l,s){return l=Nn(4,i.children!==null?i.children:[],i.key,l),l.lanes=s,l.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},l}var o1=new WeakMap;function Qn(i,l){if(typeof i=="object"&&i!==null){var s=o1.get(i);return s!==void 0?s:(l={value:i,source:l,stack:ba(l)},o1.set(i,l),l)}return{value:i,source:l,stack:ba(l)}}var kl=[],_l=0,rc=null,Qo=0,Jn=[],er=0,Ui=null,Mr=1,zr="";function Jr(i,l){kl[_l++]=Qo,kl[_l++]=rc,rc=i,Qo=l}function u1(i,l,s){Jn[er++]=Mr,Jn[er++]=zr,Jn[er++]=Ui,Ui=i;var h=Mr;i=zr;var v=32-tt(h)-1;h&=~(1<<v),s+=1;var b=32-tt(l)+v;if(30<b){var A=v-v%5;b=(h&(1<<A)-1).toString(32),h>>=A,v-=A,Mr=1<<32-tt(l)+v|s<<v|h,zr=b+i}else Mr=1<<b|s<<v|h,zr=i}function rm(i){i.return!==null&&(Jr(i,1),u1(i,1,0))}function im(i){for(;i===rc;)rc=kl[--_l],kl[_l]=null,Qo=kl[--_l],kl[_l]=null;for(;i===Ui;)Ui=Jn[--er],Jn[er]=null,zr=Jn[--er],Jn[er]=null,Mr=Jn[--er],Jn[er]=null}function s1(i,l){Jn[er++]=Mr,Jn[er++]=zr,Jn[er++]=Ui,Mr=l.id,zr=l.overflow,Ui=i}var Kt=null,ut=null,Ue=!1,qi=null,tr=!1,am=Error(r(519));function Hi(i){var l=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Jo(Qn(l,i)),am}function c1(i){var l=i.stateNode,s=i.type,h=i.memoizedProps;switch(l[Yt]=i,l[gn]=h,s){case"dialog":Pe("cancel",l),Pe("close",l);break;case"iframe":case"object":case"embed":Pe("load",l);break;case"video":case"audio":for(s=0;s<wu.length;s++)Pe(wu[s],l);break;case"source":Pe("error",l);break;case"img":case"image":case"link":Pe("error",l),Pe("load",l);break;case"details":Pe("toggle",l);break;case"input":Pe("invalid",l),Ox(l,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0);break;case"select":Pe("invalid",l);break;case"textarea":Pe("invalid",l),Ax(l,h.value,h.defaultValue,h.children)}s=h.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||l.textContent===""+s||h.suppressHydrationWarning===!0||_S(l.textContent,s)?(h.popover!=null&&(Pe("beforetoggle",l),Pe("toggle",l)),h.onScroll!=null&&Pe("scroll",l),h.onScrollEnd!=null&&Pe("scrollend",l),h.onClick!=null&&(l.onclick=Zr),l=!0):l=!1,l||Hi(i,!0)}function f1(i){for(Kt=i.return;Kt;)switch(Kt.tag){case 5:case 31:case 13:tr=!1;return;case 27:case 3:tr=!0;return;default:Kt=Kt.return}}function Cl(i){if(i!==Kt)return!1;if(!Ue)return f1(i),Ue=!0,!1;var l=i.tag,s;if((s=l!==3&&l!==27)&&((s=l===5)&&(s=i.type,s=!(s!=="form"&&s!=="button")||Op(i.type,i.memoizedProps)),s=!s),s&&ut&&Hi(i),f1(i),l===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));ut=RS(i)}else if(l===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));ut=RS(i)}else l===27?(l=ut,na(i.type)?(i=Cp,Cp=null,ut=i):ut=l):ut=Kt?rr(i.stateNode.nextSibling):null;return!0}function _a(){ut=Kt=null,Ue=!1}function lm(){var i=qi;return i!==null&&(On===null?On=i:On.push.apply(On,i),qi=null),i}function Jo(i){qi===null?qi=[i]:qi.push(i)}var om=R(null),Ca=null,ei=null;function $i(i,l,s){z(om,l._currentValue),l._currentValue=s}function ti(i){i._currentValue=om.current,V(om)}function um(i,l,s){for(;i!==null;){var h=i.alternate;if((i.childLanes&l)!==l?(i.childLanes|=l,h!==null&&(h.childLanes|=l)):h!==null&&(h.childLanes&l)!==l&&(h.childLanes|=l),i===s)break;i=i.return}}function sm(i,l,s,h){var v=i.child;for(v!==null&&(v.return=i);v!==null;){var b=v.dependencies;if(b!==null){var A=v.child;b=b.firstContext;e:for(;b!==null;){var M=b;b=v;for(var B=0;B<l.length;B++)if(M.context===l[B]){b.lanes|=s,M=b.alternate,M!==null&&(M.lanes|=s),um(b.return,s,i),h||(A=null);break e}b=M.next}}else if(v.tag===18){if(A=v.return,A===null)throw Error(r(341));A.lanes|=s,b=A.alternate,b!==null&&(b.lanes|=s),um(A,s,i),A=null}else A=v.child;if(A!==null)A.return=v;else for(A=v;A!==null;){if(A===i){A=null;break}if(v=A.sibling,v!==null){v.return=A.return,A=v;break}A=A.return}v=A}}function Tl(i,l,s,h){i=null;for(var v=l,b=!1;v!==null;){if(!b){if((v.flags&524288)!==0)b=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var A=v.alternate;if(A===null)throw Error(r(387));if(A=A.memoizedProps,A!==null){var M=v.type;Dn(v.pendingProps.value,A.value)||(i!==null?i.push(M):i=[M])}}else if(v===Se.current){if(A=v.alternate,A===null)throw Error(r(387));A.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(i!==null?i.push(ku):i=[ku])}v=v.return}i!==null&&sm(l,i,s,h),l.flags|=262144}function ic(i){for(i=i.firstContext;i!==null;){if(!Dn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Ta(i){Ca=i,ei=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function Gt(i){return d1(Ca,i)}function ac(i,l){return Ca===null&&Ta(i),d1(i,l)}function d1(i,l){var s=l._currentValue;if(l={context:l,memoizedValue:s,next:null},ei===null){if(i===null)throw Error(r(308));ei=l,i.dependencies={lanes:0,firstContext:l},i.flags|=524288}else ei=ei.next=l;return s}var DP=typeof AbortController<"u"?AbortController:function(){var i=[],l=this.signal={aborted:!1,addEventListener:function(s,h){i.push(h)}};this.abort=function(){l.aborted=!0,i.forEach(function(s){return s()})}},NP=e.unstable_scheduleCallback,PP=e.unstable_NormalPriority,Et={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cm(){return{controller:new DP,data:new Map,refCount:0}}function eu(i){i.refCount--,i.refCount===0&&NP(PP,function(){i.controller.abort()})}var tu=null,fm=0,jl=0,Ml=null;function RP(i,l){if(tu===null){var s=tu=[];fm=0,jl=mp(),Ml={status:"pending",value:void 0,then:function(h){s.push(h)}}}return fm++,l.then(h1,h1),l}function h1(){if(--fm===0&&tu!==null){Ml!==null&&(Ml.status="fulfilled");var i=tu;tu=null,jl=0,Ml=null;for(var l=0;l<i.length;l++)(0,i[l])()}}function IP(i,l){var s=[],h={status:"pending",value:null,reason:null,then:function(v){s.push(v)}};return i.then(function(){h.status="fulfilled",h.value=l;for(var v=0;v<s.length;v++)(0,s[v])(l)},function(v){for(h.status="rejected",h.reason=v,v=0;v<s.length;v++)(0,s[v])(void 0)}),h}var m1=L.S;L.S=function(i,l){Ww=un(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&RP(i,l),m1!==null&&m1(i,l)};var ja=R(null);function dm(){var i=ja.current;return i!==null?i:nt.pooledCache}function lc(i,l){l===null?z(ja,ja.current):z(ja,l.pool)}function p1(){var i=dm();return i===null?null:{parent:Et._currentValue,pool:i}}var zl=Error(r(460)),hm=Error(r(474)),oc=Error(r(542)),uc={then:function(){}};function v1(i){return i=i.status,i==="fulfilled"||i==="rejected"}function y1(i,l,s){switch(s=i[s],s===void 0?i.push(l):s!==l&&(l.then(Zr,Zr),l=s),l.status){case"fulfilled":return l.value;case"rejected":throw i=l.reason,b1(i),i;default:if(typeof l.status=="string")l.then(Zr,Zr);else{if(i=nt,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=l,i.status="pending",i.then(function(h){if(l.status==="pending"){var v=l;v.status="fulfilled",v.value=h}},function(h){if(l.status==="pending"){var v=l;v.status="rejected",v.reason=h}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw i=l.reason,b1(i),i}throw za=l,zl}}function Ma(i){try{var l=i._init;return l(i._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(za=s,zl):s}}var za=null;function g1(){if(za===null)throw Error(r(459));var i=za;return za=null,i}function b1(i){if(i===zl||i===oc)throw Error(r(483))}var Dl=null,nu=0;function sc(i){var l=nu;return nu+=1,Dl===null&&(Dl=[]),y1(Dl,i,l)}function ru(i,l){l=l.props.ref,i.ref=l!==void 0?l:null}function cc(i,l){throw l.$$typeof===y?Error(r(525)):(i=Object.prototype.toString.call(l),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":i)))}function x1(i){function l(F,H){if(i){var G=F.deletions;G===null?(F.deletions=[H],F.flags|=16):G.push(H)}}function s(F,H){if(!i)return null;for(;H!==null;)l(F,H),H=H.sibling;return null}function h(F){for(var H=new Map;F!==null;)F.key!==null?H.set(F.key,F):H.set(F.index,F),F=F.sibling;return H}function v(F,H){return F=Qr(F,H),F.index=0,F.sibling=null,F}function b(F,H,G){return F.index=G,i?(G=F.alternate,G!==null?(G=G.index,G<H?(F.flags|=67108866,H):G):(F.flags|=67108866,H)):(F.flags|=1048576,H)}function A(F){return i&&F.alternate===null&&(F.flags|=67108866),F}function M(F,H,G,le){return H===null||H.tag!==6?(H=tm(G,F.mode,le),H.return=F,H):(H=v(H,G),H.return=F,H)}function B(F,H,G,le){var Oe=G.type;return Oe===w?ie(F,H,G.props.children,le,G.key):H!==null&&(H.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===U&&Ma(Oe)===H.type)?(H=v(H,G.props),ru(H,G),H.return=F,H):(H=nc(G.type,G.key,G.props,null,F.mode,le),ru(H,G),H.return=F,H)}function X(F,H,G,le){return H===null||H.tag!==4||H.stateNode.containerInfo!==G.containerInfo||H.stateNode.implementation!==G.implementation?(H=nm(G,F.mode,le),H.return=F,H):(H=v(H,G.children||[]),H.return=F,H)}function ie(F,H,G,le,Oe){return H===null||H.tag!==7?(H=ka(G,F.mode,le,Oe),H.return=F,H):(H=v(H,G),H.return=F,H)}function ue(F,H,G){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return H=tm(""+H,F.mode,G),H.return=F,H;if(typeof H=="object"&&H!==null){switch(H.$$typeof){case g:return G=nc(H.type,H.key,H.props,null,F.mode,G),ru(G,H),G.return=F,G;case x:return H=nm(H,F.mode,G),H.return=F,H;case U:return H=Ma(H),ue(F,H,G)}if(Q(H)||q(H))return H=ka(H,F.mode,G,null),H.return=F,H;if(typeof H.then=="function")return ue(F,sc(H),G);if(H.$$typeof===T)return ue(F,ac(F,H),G);cc(F,H)}return null}function W(F,H,G,le){var Oe=H!==null?H.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return Oe!==null?null:M(F,H,""+G,le);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case g:return G.key===Oe?B(F,H,G,le):null;case x:return G.key===Oe?X(F,H,G,le):null;case U:return G=Ma(G),W(F,H,G,le)}if(Q(G)||q(G))return Oe!==null?null:ie(F,H,G,le,null);if(typeof G.then=="function")return W(F,H,sc(G),le);if(G.$$typeof===T)return W(F,H,ac(F,G),le);cc(F,G)}return null}function te(F,H,G,le,Oe){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return F=F.get(G)||null,M(H,F,""+le,Oe);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case g:return F=F.get(le.key===null?G:le.key)||null,B(H,F,le,Oe);case x:return F=F.get(le.key===null?G:le.key)||null,X(H,F,le,Oe);case U:return le=Ma(le),te(F,H,G,le,Oe)}if(Q(le)||q(le))return F=F.get(G)||null,ie(H,F,le,Oe,null);if(typeof le.then=="function")return te(F,H,G,sc(le),Oe);if(le.$$typeof===T)return te(F,H,G,ac(H,le),Oe);cc(H,le)}return null}function pe(F,H,G,le){for(var Oe=null,$e=null,xe=H,Me=H=0,Be=null;xe!==null&&Me<G.length;Me++){xe.index>Me?(Be=xe,xe=null):Be=xe.sibling;var Fe=W(F,xe,G[Me],le);if(Fe===null){xe===null&&(xe=Be);break}i&&xe&&Fe.alternate===null&&l(F,xe),H=b(Fe,H,Me),$e===null?Oe=Fe:$e.sibling=Fe,$e=Fe,xe=Be}if(Me===G.length)return s(F,xe),Ue&&Jr(F,Me),Oe;if(xe===null){for(;Me<G.length;Me++)xe=ue(F,G[Me],le),xe!==null&&(H=b(xe,H,Me),$e===null?Oe=xe:$e.sibling=xe,$e=xe);return Ue&&Jr(F,Me),Oe}for(xe=h(xe);Me<G.length;Me++)Be=te(xe,F,Me,G[Me],le),Be!==null&&(i&&Be.alternate!==null&&xe.delete(Be.key===null?Me:Be.key),H=b(Be,H,Me),$e===null?Oe=Be:$e.sibling=Be,$e=Be);return i&&xe.forEach(function(oa){return l(F,oa)}),Ue&&Jr(F,Me),Oe}function ke(F,H,G,le){if(G==null)throw Error(r(151));for(var Oe=null,$e=null,xe=H,Me=H=0,Be=null,Fe=G.next();xe!==null&&!Fe.done;Me++,Fe=G.next()){xe.index>Me?(Be=xe,xe=null):Be=xe.sibling;var oa=W(F,xe,Fe.value,le);if(oa===null){xe===null&&(xe=Be);break}i&&xe&&oa.alternate===null&&l(F,xe),H=b(oa,H,Me),$e===null?Oe=oa:$e.sibling=oa,$e=oa,xe=Be}if(Fe.done)return s(F,xe),Ue&&Jr(F,Me),Oe;if(xe===null){for(;!Fe.done;Me++,Fe=G.next())Fe=ue(F,Fe.value,le),Fe!==null&&(H=b(Fe,H,Me),$e===null?Oe=Fe:$e.sibling=Fe,$e=Fe);return Ue&&Jr(F,Me),Oe}for(xe=h(xe);!Fe.done;Me++,Fe=G.next())Fe=te(xe,F,Me,Fe.value,le),Fe!==null&&(i&&Fe.alternate!==null&&xe.delete(Fe.key===null?Me:Fe.key),H=b(Fe,H,Me),$e===null?Oe=Fe:$e.sibling=Fe,$e=Fe);return i&&xe.forEach(function(GR){return l(F,GR)}),Ue&&Jr(F,Me),Oe}function Je(F,H,G,le){if(typeof G=="object"&&G!==null&&G.type===w&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case g:e:{for(var Oe=G.key;H!==null;){if(H.key===Oe){if(Oe=G.type,Oe===w){if(H.tag===7){s(F,H.sibling),le=v(H,G.props.children),le.return=F,F=le;break e}}else if(H.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===U&&Ma(Oe)===H.type){s(F,H.sibling),le=v(H,G.props),ru(le,G),le.return=F,F=le;break e}s(F,H);break}else l(F,H);H=H.sibling}G.type===w?(le=ka(G.props.children,F.mode,le,G.key),le.return=F,F=le):(le=nc(G.type,G.key,G.props,null,F.mode,le),ru(le,G),le.return=F,F=le)}return A(F);case x:e:{for(Oe=G.key;H!==null;){if(H.key===Oe)if(H.tag===4&&H.stateNode.containerInfo===G.containerInfo&&H.stateNode.implementation===G.implementation){s(F,H.sibling),le=v(H,G.children||[]),le.return=F,F=le;break e}else{s(F,H);break}else l(F,H);H=H.sibling}le=nm(G,F.mode,le),le.return=F,F=le}return A(F);case U:return G=Ma(G),Je(F,H,G,le)}if(Q(G))return pe(F,H,G,le);if(q(G)){if(Oe=q(G),typeof Oe!="function")throw Error(r(150));return G=Oe.call(G),ke(F,H,G,le)}if(typeof G.then=="function")return Je(F,H,sc(G),le);if(G.$$typeof===T)return Je(F,H,ac(F,G),le);cc(F,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,H!==null&&H.tag===6?(s(F,H.sibling),le=v(H,G),le.return=F,F=le):(s(F,H),le=tm(G,F.mode,le),le.return=F,F=le),A(F)):s(F,H)}return function(F,H,G,le){try{nu=0;var Oe=Je(F,H,G,le);return Dl=null,Oe}catch(xe){if(xe===zl||xe===oc)throw xe;var $e=Nn(29,xe,null,F.mode);return $e.lanes=le,$e.return=F,$e}finally{}}}var Da=x1(!0),w1=x1(!1),Fi=!1;function mm(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pm(i,l){i=i.updateQueue,l.updateQueue===i&&(l.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Vi(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Yi(i,l,s){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(Ye&2)!==0){var v=h.pending;return v===null?l.next=l:(l.next=v.next,v.next=l),h.pending=l,l=tc(i),i1(i,null,s),l}return ec(i,h,l,s),tc(i)}function iu(i,l,s){if(l=l.updateQueue,l!==null&&(l=l.shared,(s&4194048)!==0)){var h=l.lanes;h&=i.pendingLanes,s|=h,l.lanes=s,dx(i,s)}}function vm(i,l){var s=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,s===h)){var v=null,b=null;if(s=s.firstBaseUpdate,s!==null){do{var A={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};b===null?v=b=A:b=b.next=A,s=s.next}while(s!==null);b===null?v=b=l:b=b.next=l}else v=b=l;s={baseState:h.baseState,firstBaseUpdate:v,lastBaseUpdate:b,shared:h.shared,callbacks:h.callbacks},i.updateQueue=s;return}i=s.lastBaseUpdate,i===null?s.firstBaseUpdate=l:i.next=l,s.lastBaseUpdate=l}var ym=!1;function au(){if(ym){var i=Ml;if(i!==null)throw i}}function lu(i,l,s,h){ym=!1;var v=i.updateQueue;Fi=!1;var b=v.firstBaseUpdate,A=v.lastBaseUpdate,M=v.shared.pending;if(M!==null){v.shared.pending=null;var B=M,X=B.next;B.next=null,A===null?b=X:A.next=X,A=B;var ie=i.alternate;ie!==null&&(ie=ie.updateQueue,M=ie.lastBaseUpdate,M!==A&&(M===null?ie.firstBaseUpdate=X:M.next=X,ie.lastBaseUpdate=B))}if(b!==null){var ue=v.baseState;A=0,ie=X=B=null,M=b;do{var W=M.lane&-536870913,te=W!==M.lane;if(te?(Le&W)===W:(h&W)===W){W!==0&&W===jl&&(ym=!0),ie!==null&&(ie=ie.next={lane:0,tag:M.tag,payload:M.payload,callback:null,next:null});e:{var pe=i,ke=M;W=l;var Je=s;switch(ke.tag){case 1:if(pe=ke.payload,typeof pe=="function"){ue=pe.call(Je,ue,W);break e}ue=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=ke.payload,W=typeof pe=="function"?pe.call(Je,ue,W):pe,W==null)break e;ue=p({},ue,W);break e;case 2:Fi=!0}}W=M.callback,W!==null&&(i.flags|=64,te&&(i.flags|=8192),te=v.callbacks,te===null?v.callbacks=[W]:te.push(W))}else te={lane:W,tag:M.tag,payload:M.payload,callback:M.callback,next:null},ie===null?(X=ie=te,B=ue):ie=ie.next=te,A|=W;if(M=M.next,M===null){if(M=v.shared.pending,M===null)break;te=M,M=te.next,te.next=null,v.lastBaseUpdate=te,v.shared.pending=null}}while(!0);ie===null&&(B=ue),v.baseState=B,v.firstBaseUpdate=X,v.lastBaseUpdate=ie,b===null&&(v.shared.lanes=0),Wi|=A,i.lanes=A,i.memoizedState=ue}}function S1(i,l){if(typeof i!="function")throw Error(r(191,i));i.call(l)}function O1(i,l){var s=i.callbacks;if(s!==null)for(i.callbacks=null,i=0;i<s.length;i++)S1(s[i],l)}var Nl=R(null),fc=R(0);function E1(i,l){i=ci,z(fc,i),z(Nl,l),ci=i|l.baseLanes}function gm(){z(fc,ci),z(Nl,Nl.current)}function bm(){ci=fc.current,V(Nl),V(fc)}var Pn=R(null),nr=null;function Ki(i){var l=i.alternate;z(bt,bt.current&1),z(Pn,i),nr===null&&(l===null||Nl.current!==null||l.memoizedState!==null)&&(nr=i)}function xm(i){z(bt,bt.current),z(Pn,i),nr===null&&(nr=i)}function A1(i){i.tag===22?(z(bt,bt.current),z(Pn,i),nr===null&&(nr=i)):Gi()}function Gi(){z(bt,bt.current),z(Pn,Pn.current)}function Rn(i){V(Pn),nr===i&&(nr=null),V(bt)}var bt=R(0);function dc(i){for(var l=i;l!==null;){if(l.tag===13){var s=l.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||kp(s)||_p(s)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var ni=0,je=null,We=null,At=null,hc=!1,Pl=!1,Na=!1,mc=0,ou=0,Rl=null,LP=0;function pt(){throw Error(r(321))}function wm(i,l){if(l===null)return!1;for(var s=0;s<l.length&&s<i.length;s++)if(!Dn(i[s],l[s]))return!1;return!0}function Sm(i,l,s,h,v,b){return ni=b,je=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,L.H=i===null||i.memoizedState===null?uw:Im,Na=!1,b=s(h,v),Na=!1,Pl&&(b=_1(l,s,h,v)),k1(i),b}function k1(i){L.H=cu;var l=We!==null&&We.next!==null;if(ni=0,At=We=je=null,hc=!1,ou=0,Rl=null,l)throw Error(r(300));i===null||kt||(i=i.dependencies,i!==null&&ic(i)&&(kt=!0))}function _1(i,l,s,h){je=i;var v=0;do{if(Pl&&(Rl=null),ou=0,Pl=!1,25<=v)throw Error(r(301));if(v+=1,At=We=null,i.updateQueue!=null){var b=i.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}L.H=sw,b=l(s,h)}while(Pl);return b}function BP(){var i=L.H,l=i.useState()[0];return l=typeof l.then=="function"?uu(l):l,i=i.useState()[0],(We!==null?We.memoizedState:null)!==i&&(je.flags|=1024),l}function Om(){var i=mc!==0;return mc=0,i}function Em(i,l,s){l.updateQueue=i.updateQueue,l.flags&=-2053,i.lanes&=~s}function Am(i){if(hc){for(i=i.memoizedState;i!==null;){var l=i.queue;l!==null&&(l.pending=null),i=i.next}hc=!1}ni=0,At=We=je=null,Pl=!1,ou=mc=0,Rl=null}function cn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return At===null?je.memoizedState=At=i:At=At.next=i,At}function xt(){if(We===null){var i=je.alternate;i=i!==null?i.memoizedState:null}else i=We.next;var l=At===null?je.memoizedState:At.next;if(l!==null)At=l,We=i;else{if(i===null)throw je.alternate===null?Error(r(467)):Error(r(310));We=i,i={memoizedState:We.memoizedState,baseState:We.baseState,baseQueue:We.baseQueue,queue:We.queue,next:null},At===null?je.memoizedState=At=i:At=At.next=i}return At}function pc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function uu(i){var l=ou;return ou+=1,Rl===null&&(Rl=[]),i=y1(Rl,i,l),l=je,(At===null?l.memoizedState:At.next)===null&&(l=l.alternate,L.H=l===null||l.memoizedState===null?uw:Im),i}function vc(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return uu(i);if(i.$$typeof===T)return Gt(i)}throw Error(r(438,String(i)))}function km(i){var l=null,s=je.updateQueue;if(s!==null&&(l=s.memoCache),l==null){var h=je.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(l={data:h.data.map(function(v){return v.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),s===null&&(s=pc(),je.updateQueue=s),s.memoCache=l,s=l.data[l.index],s===void 0)for(s=l.data[l.index]=Array(i),h=0;h<i;h++)s[h]=I;return l.index++,s}function ri(i,l){return typeof l=="function"?l(i):l}function yc(i){var l=xt();return _m(l,We,i)}function _m(i,l,s){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=s;var v=i.baseQueue,b=h.pending;if(b!==null){if(v!==null){var A=v.next;v.next=b.next,b.next=A}l.baseQueue=v=b,h.pending=null}if(b=i.baseState,v===null)i.memoizedState=b;else{l=v.next;var M=A=null,B=null,X=l,ie=!1;do{var ue=X.lane&-536870913;if(ue!==X.lane?(Le&ue)===ue:(ni&ue)===ue){var W=X.revertLane;if(W===0)B!==null&&(B=B.next={lane:0,revertLane:0,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),ue===jl&&(ie=!0);else if((ni&W)===W){X=X.next,W===jl&&(ie=!0);continue}else ue={lane:0,revertLane:X.revertLane,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},B===null?(M=B=ue,A=b):B=B.next=ue,je.lanes|=W,Wi|=W;ue=X.action,Na&&s(b,ue),b=X.hasEagerState?X.eagerState:s(b,ue)}else W={lane:ue,revertLane:X.revertLane,gesture:X.gesture,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},B===null?(M=B=W,A=b):B=B.next=W,je.lanes|=ue,Wi|=ue;X=X.next}while(X!==null&&X!==l);if(B===null?A=b:B.next=M,!Dn(b,i.memoizedState)&&(kt=!0,ie&&(s=Ml,s!==null)))throw s;i.memoizedState=b,i.baseState=A,i.baseQueue=B,h.lastRenderedState=b}return v===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function Cm(i){var l=xt(),s=l.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=i;var h=s.dispatch,v=s.pending,b=l.memoizedState;if(v!==null){s.pending=null;var A=v=v.next;do b=i(b,A.action),A=A.next;while(A!==v);Dn(b,l.memoizedState)||(kt=!0),l.memoizedState=b,l.baseQueue===null&&(l.baseState=b),s.lastRenderedState=b}return[b,h]}function C1(i,l,s){var h=je,v=xt(),b=Ue;if(b){if(s===void 0)throw Error(r(407));s=s()}else s=l();var A=!Dn((We||v).memoizedState,s);if(A&&(v.memoizedState=s,kt=!0),v=v.queue,Mm(M1.bind(null,h,v,i),[i]),v.getSnapshot!==l||A||At!==null&&At.memoizedState.tag&1){if(h.flags|=2048,Il(9,{destroy:void 0},j1.bind(null,h,v,s,l),null),nt===null)throw Error(r(349));b||(ni&127)!==0||T1(h,l,s)}return s}function T1(i,l,s){i.flags|=16384,i={getSnapshot:l,value:s},l=je.updateQueue,l===null?(l=pc(),je.updateQueue=l,l.stores=[i]):(s=l.stores,s===null?l.stores=[i]:s.push(i))}function j1(i,l,s,h){l.value=s,l.getSnapshot=h,z1(l)&&D1(i)}function M1(i,l,s){return s(function(){z1(l)&&D1(i)})}function z1(i){var l=i.getSnapshot;i=i.value;try{var s=l();return!Dn(i,s)}catch{return!0}}function D1(i){var l=Aa(i,2);l!==null&&En(l,i,2)}function Tm(i){var l=cn();if(typeof i=="function"){var s=i;if(i=s(),Na){yn(!0);try{s()}finally{yn(!1)}}}return l.memoizedState=l.baseState=i,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ri,lastRenderedState:i},l}function N1(i,l,s,h){return i.baseState=s,_m(i,We,typeof h=="function"?h:ri)}function UP(i,l,s,h,v){if(xc(i))throw Error(r(485));if(i=l.action,i!==null){var b={payload:v,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(A){b.listeners.push(A)}};L.T!==null?s(!0):b.isTransition=!1,h(b),s=l.pending,s===null?(b.next=l.pending=b,P1(l,b)):(b.next=s.next,l.pending=s.next=b)}}function P1(i,l){var s=l.action,h=l.payload,v=i.state;if(l.isTransition){var b=L.T,A={};L.T=A;try{var M=s(v,h),B=L.S;B!==null&&B(A,M),R1(i,l,M)}catch(X){jm(i,l,X)}finally{b!==null&&A.types!==null&&(b.types=A.types),L.T=b}}else try{b=s(v,h),R1(i,l,b)}catch(X){jm(i,l,X)}}function R1(i,l,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(h){I1(i,l,h)},function(h){return jm(i,l,h)}):I1(i,l,s)}function I1(i,l,s){l.status="fulfilled",l.value=s,L1(l),i.state=s,l=i.pending,l!==null&&(s=l.next,s===l?i.pending=null:(s=s.next,l.next=s,P1(i,s)))}function jm(i,l,s){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do l.status="rejected",l.reason=s,L1(l),l=l.next;while(l!==h)}i.action=null}function L1(i){i=i.listeners;for(var l=0;l<i.length;l++)(0,i[l])()}function B1(i,l){return l}function U1(i,l){if(Ue){var s=nt.formState;if(s!==null){e:{var h=je;if(Ue){if(ut){t:{for(var v=ut,b=tr;v.nodeType!==8;){if(!b){v=null;break t}if(v=rr(v.nextSibling),v===null){v=null;break t}}b=v.data,v=b==="F!"||b==="F"?v:null}if(v){ut=rr(v.nextSibling),h=v.data==="F!";break e}}Hi(h)}h=!1}h&&(l=s[0])}}return s=cn(),s.memoizedState=s.baseState=l,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:B1,lastRenderedState:l},s.queue=h,s=aw.bind(null,je,h),h.dispatch=s,h=Tm(!1),b=Rm.bind(null,je,!1,h.queue),h=cn(),v={state:l,dispatch:null,action:i,pending:null},h.queue=v,s=UP.bind(null,je,v,b,s),v.dispatch=s,h.memoizedState=i,[l,s,!1]}function q1(i){var l=xt();return H1(l,We,i)}function H1(i,l,s){if(l=_m(i,l,B1)[0],i=yc(ri)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var h=uu(l)}catch(A){throw A===zl?oc:A}else h=l;l=xt();var v=l.queue,b=v.dispatch;return s!==l.memoizedState&&(je.flags|=2048,Il(9,{destroy:void 0},qP.bind(null,v,s),null)),[h,b,i]}function qP(i,l){i.action=l}function $1(i){var l=xt(),s=We;if(s!==null)return H1(l,s,i);xt(),l=l.memoizedState,s=xt();var h=s.queue.dispatch;return s.memoizedState=i,[l,h,!1]}function Il(i,l,s,h){return i={tag:i,create:s,deps:h,inst:l,next:null},l=je.updateQueue,l===null&&(l=pc(),je.updateQueue=l),s=l.lastEffect,s===null?l.lastEffect=i.next=i:(h=s.next,s.next=i,i.next=h,l.lastEffect=i),i}function F1(){return xt().memoizedState}function gc(i,l,s,h){var v=cn();je.flags|=i,v.memoizedState=Il(1|l,{destroy:void 0},s,h===void 0?null:h)}function bc(i,l,s,h){var v=xt();h=h===void 0?null:h;var b=v.memoizedState.inst;We!==null&&h!==null&&wm(h,We.memoizedState.deps)?v.memoizedState=Il(l,b,s,h):(je.flags|=i,v.memoizedState=Il(1|l,b,s,h))}function V1(i,l){gc(8390656,8,i,l)}function Mm(i,l){bc(2048,8,i,l)}function HP(i){je.flags|=4;var l=je.updateQueue;if(l===null)l=pc(),je.updateQueue=l,l.events=[i];else{var s=l.events;s===null?l.events=[i]:s.push(i)}}function Y1(i){var l=xt().memoizedState;return HP({ref:l,nextImpl:i}),function(){if((Ye&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}function K1(i,l){return bc(4,2,i,l)}function G1(i,l){return bc(4,4,i,l)}function X1(i,l){if(typeof l=="function"){i=i();var s=l(i);return function(){typeof s=="function"?s():l(null)}}if(l!=null)return i=i(),l.current=i,function(){l.current=null}}function Z1(i,l,s){s=s!=null?s.concat([i]):null,bc(4,4,X1.bind(null,l,i),s)}function zm(){}function W1(i,l){var s=xt();l=l===void 0?null:l;var h=s.memoizedState;return l!==null&&wm(l,h[1])?h[0]:(s.memoizedState=[i,l],i)}function Q1(i,l){var s=xt();l=l===void 0?null:l;var h=s.memoizedState;if(l!==null&&wm(l,h[1]))return h[0];if(h=i(),Na){yn(!0);try{i()}finally{yn(!1)}}return s.memoizedState=[h,l],h}function Dm(i,l,s){return s===void 0||(ni&1073741824)!==0&&(Le&261930)===0?i.memoizedState=l:(i.memoizedState=s,i=Jw(),je.lanes|=i,Wi|=i,s)}function J1(i,l,s,h){return Dn(s,l)?s:Nl.current!==null?(i=Dm(i,s,h),Dn(i,l)||(kt=!0),i):(ni&42)===0||(ni&1073741824)!==0&&(Le&261930)===0?(kt=!0,i.memoizedState=s):(i=Jw(),je.lanes|=i,Wi|=i,l)}function ew(i,l,s,h,v){var b=K.p;K.p=b!==0&&8>b?b:8;var A=L.T,M={};L.T=M,Rm(i,!1,l,s);try{var B=v(),X=L.S;if(X!==null&&X(M,B),B!==null&&typeof B=="object"&&typeof B.then=="function"){var ie=IP(B,h);su(i,l,ie,Bn(i))}else su(i,l,h,Bn(i))}catch(ue){su(i,l,{then:function(){},status:"rejected",reason:ue},Bn())}finally{K.p=b,A!==null&&M.types!==null&&(A.types=M.types),L.T=A}}function $P(){}function Nm(i,l,s,h){if(i.tag!==5)throw Error(r(476));var v=tw(i).queue;ew(i,v,l,J,s===null?$P:function(){return nw(i),s(h)})}function tw(i){var l=i.memoizedState;if(l!==null)return l;l={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ri,lastRenderedState:J},next:null};var s={};return l.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ri,lastRenderedState:s},next:null},i.memoizedState=l,i=i.alternate,i!==null&&(i.memoizedState=l),l}function nw(i){var l=tw(i);l.next===null&&(l=i.alternate.memoizedState),su(i,l.next.queue,{},Bn())}function Pm(){return Gt(ku)}function rw(){return xt().memoizedState}function iw(){return xt().memoizedState}function FP(i){for(var l=i.return;l!==null;){switch(l.tag){case 24:case 3:var s=Bn();i=Vi(s);var h=Yi(l,i,s);h!==null&&(En(h,l,s),iu(h,l,s)),l={cache:cm()},i.payload=l;return}l=l.return}}function VP(i,l,s){var h=Bn();s={lane:h,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},xc(i)?lw(l,s):(s=Jh(i,l,s,h),s!==null&&(En(s,i,h),ow(s,l,h)))}function aw(i,l,s){var h=Bn();su(i,l,s,h)}function su(i,l,s,h){var v={lane:h,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(xc(i))lw(l,v);else{var b=i.alternate;if(i.lanes===0&&(b===null||b.lanes===0)&&(b=l.lastRenderedReducer,b!==null))try{var A=l.lastRenderedState,M=b(A,s);if(v.hasEagerState=!0,v.eagerState=M,Dn(M,A))return ec(i,l,v,0),nt===null&&Js(),!1}catch{}finally{}if(s=Jh(i,l,v,h),s!==null)return En(s,i,h),ow(s,l,h),!0}return!1}function Rm(i,l,s,h){if(h={lane:2,revertLane:mp(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},xc(i)){if(l)throw Error(r(479))}else l=Jh(i,s,h,2),l!==null&&En(l,i,2)}function xc(i){var l=i.alternate;return i===je||l!==null&&l===je}function lw(i,l){Pl=hc=!0;var s=i.pending;s===null?l.next=l:(l.next=s.next,s.next=l),i.pending=l}function ow(i,l,s){if((s&4194048)!==0){var h=l.lanes;h&=i.pendingLanes,s|=h,l.lanes=s,dx(i,s)}}var cu={readContext:Gt,use:vc,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useLayoutEffect:pt,useInsertionEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useSyncExternalStore:pt,useId:pt,useHostTransitionStatus:pt,useFormState:pt,useActionState:pt,useOptimistic:pt,useMemoCache:pt,useCacheRefresh:pt};cu.useEffectEvent=pt;var uw={readContext:Gt,use:vc,useCallback:function(i,l){return cn().memoizedState=[i,l===void 0?null:l],i},useContext:Gt,useEffect:V1,useImperativeHandle:function(i,l,s){s=s!=null?s.concat([i]):null,gc(4194308,4,X1.bind(null,l,i),s)},useLayoutEffect:function(i,l){return gc(4194308,4,i,l)},useInsertionEffect:function(i,l){gc(4,2,i,l)},useMemo:function(i,l){var s=cn();l=l===void 0?null:l;var h=i();if(Na){yn(!0);try{i()}finally{yn(!1)}}return s.memoizedState=[h,l],h},useReducer:function(i,l,s){var h=cn();if(s!==void 0){var v=s(l);if(Na){yn(!0);try{s(l)}finally{yn(!1)}}}else v=l;return h.memoizedState=h.baseState=v,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:v},h.queue=i,i=i.dispatch=VP.bind(null,je,i),[h.memoizedState,i]},useRef:function(i){var l=cn();return i={current:i},l.memoizedState=i},useState:function(i){i=Tm(i);var l=i.queue,s=aw.bind(null,je,l);return l.dispatch=s,[i.memoizedState,s]},useDebugValue:zm,useDeferredValue:function(i,l){var s=cn();return Dm(s,i,l)},useTransition:function(){var i=Tm(!1);return i=ew.bind(null,je,i.queue,!0,!1),cn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,l,s){var h=je,v=cn();if(Ue){if(s===void 0)throw Error(r(407));s=s()}else{if(s=l(),nt===null)throw Error(r(349));(Le&127)!==0||T1(h,l,s)}v.memoizedState=s;var b={value:s,getSnapshot:l};return v.queue=b,V1(M1.bind(null,h,b,i),[i]),h.flags|=2048,Il(9,{destroy:void 0},j1.bind(null,h,b,s,l),null),s},useId:function(){var i=cn(),l=nt.identifierPrefix;if(Ue){var s=zr,h=Mr;s=(h&~(1<<32-tt(h)-1)).toString(32)+s,l="_"+l+"R_"+s,s=mc++,0<s&&(l+="H"+s.toString(32)),l+="_"}else s=LP++,l="_"+l+"r_"+s.toString(32)+"_";return i.memoizedState=l},useHostTransitionStatus:Pm,useFormState:U1,useActionState:U1,useOptimistic:function(i){var l=cn();l.memoizedState=l.baseState=i;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=s,l=Rm.bind(null,je,!0,s),s.dispatch=l,[i,l]},useMemoCache:km,useCacheRefresh:function(){return cn().memoizedState=FP.bind(null,je)},useEffectEvent:function(i){var l=cn(),s={impl:i};return l.memoizedState=s,function(){if((Ye&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}},Im={readContext:Gt,use:vc,useCallback:W1,useContext:Gt,useEffect:Mm,useImperativeHandle:Z1,useInsertionEffect:K1,useLayoutEffect:G1,useMemo:Q1,useReducer:yc,useRef:F1,useState:function(){return yc(ri)},useDebugValue:zm,useDeferredValue:function(i,l){var s=xt();return J1(s,We.memoizedState,i,l)},useTransition:function(){var i=yc(ri)[0],l=xt().memoizedState;return[typeof i=="boolean"?i:uu(i),l]},useSyncExternalStore:C1,useId:rw,useHostTransitionStatus:Pm,useFormState:q1,useActionState:q1,useOptimistic:function(i,l){var s=xt();return N1(s,We,i,l)},useMemoCache:km,useCacheRefresh:iw};Im.useEffectEvent=Y1;var sw={readContext:Gt,use:vc,useCallback:W1,useContext:Gt,useEffect:Mm,useImperativeHandle:Z1,useInsertionEffect:K1,useLayoutEffect:G1,useMemo:Q1,useReducer:Cm,useRef:F1,useState:function(){return Cm(ri)},useDebugValue:zm,useDeferredValue:function(i,l){var s=xt();return We===null?Dm(s,i,l):J1(s,We.memoizedState,i,l)},useTransition:function(){var i=Cm(ri)[0],l=xt().memoizedState;return[typeof i=="boolean"?i:uu(i),l]},useSyncExternalStore:C1,useId:rw,useHostTransitionStatus:Pm,useFormState:$1,useActionState:$1,useOptimistic:function(i,l){var s=xt();return We!==null?N1(s,We,i,l):(s.baseState=i,[i,s.queue.dispatch])},useMemoCache:km,useCacheRefresh:iw};sw.useEffectEvent=Y1;function Lm(i,l,s,h){l=i.memoizedState,s=s(h,l),s=s==null?l:p({},l,s),i.memoizedState=s,i.lanes===0&&(i.updateQueue.baseState=s)}var Bm={enqueueSetState:function(i,l,s){i=i._reactInternals;var h=Bn(),v=Vi(h);v.payload=l,s!=null&&(v.callback=s),l=Yi(i,v,h),l!==null&&(En(l,i,h),iu(l,i,h))},enqueueReplaceState:function(i,l,s){i=i._reactInternals;var h=Bn(),v=Vi(h);v.tag=1,v.payload=l,s!=null&&(v.callback=s),l=Yi(i,v,h),l!==null&&(En(l,i,h),iu(l,i,h))},enqueueForceUpdate:function(i,l){i=i._reactInternals;var s=Bn(),h=Vi(s);h.tag=2,l!=null&&(h.callback=l),l=Yi(i,h,s),l!==null&&(En(l,i,s),iu(l,i,s))}};function cw(i,l,s,h,v,b,A){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,b,A):l.prototype&&l.prototype.isPureReactComponent?!Zo(s,h)||!Zo(v,b):!0}function fw(i,l,s,h){i=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(s,h),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(s,h),l.state!==i&&Bm.enqueueReplaceState(l,l.state,null)}function Pa(i,l){var s=l;if("ref"in l){s={};for(var h in l)h!=="ref"&&(s[h]=l[h])}if(i=i.defaultProps){s===l&&(s=p({},s));for(var v in i)s[v]===void 0&&(s[v]=i[v])}return s}function dw(i){Qs(i)}function hw(i){console.error(i)}function mw(i){Qs(i)}function wc(i,l){try{var s=i.onUncaughtError;s(l.value,{componentStack:l.stack})}catch(h){setTimeout(function(){throw h})}}function pw(i,l,s){try{var h=i.onCaughtError;h(s.value,{componentStack:s.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function Um(i,l,s){return s=Vi(s),s.tag=3,s.payload={element:null},s.callback=function(){wc(i,l)},s}function vw(i){return i=Vi(i),i.tag=3,i}function yw(i,l,s,h){var v=s.type.getDerivedStateFromError;if(typeof v=="function"){var b=h.value;i.payload=function(){return v(b)},i.callback=function(){pw(l,s,h)}}var A=s.stateNode;A!==null&&typeof A.componentDidCatch=="function"&&(i.callback=function(){pw(l,s,h),typeof v!="function"&&(Qi===null?Qi=new Set([this]):Qi.add(this));var M=h.stack;this.componentDidCatch(h.value,{componentStack:M!==null?M:""})})}function YP(i,l,s,h,v){if(s.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(l=s.alternate,l!==null&&Tl(l,s,v,!0),s=Pn.current,s!==null){switch(s.tag){case 31:case 13:return nr===null?Dc():s.alternate===null&&vt===0&&(vt=3),s.flags&=-257,s.flags|=65536,s.lanes=v,h===uc?s.flags|=16384:(l=s.updateQueue,l===null?s.updateQueue=new Set([h]):l.add(h),fp(i,h,v)),!1;case 22:return s.flags|=65536,h===uc?s.flags|=16384:(l=s.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([h])},s.updateQueue=l):(s=l.retryQueue,s===null?l.retryQueue=new Set([h]):s.add(h)),fp(i,h,v)),!1}throw Error(r(435,s.tag))}return fp(i,h,v),Dc(),!1}if(Ue)return l=Pn.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=v,h!==am&&(i=Error(r(422),{cause:h}),Jo(Qn(i,s)))):(h!==am&&(l=Error(r(423),{cause:h}),Jo(Qn(l,s))),i=i.current.alternate,i.flags|=65536,v&=-v,i.lanes|=v,h=Qn(h,s),v=Um(i.stateNode,h,v),vm(i,v),vt!==4&&(vt=2)),!1;var b=Error(r(520),{cause:h});if(b=Qn(b,s),gu===null?gu=[b]:gu.push(b),vt!==4&&(vt=2),l===null)return!0;h=Qn(h,s),s=l;do{switch(s.tag){case 3:return s.flags|=65536,i=v&-v,s.lanes|=i,i=Um(s.stateNode,h,i),vm(s,i),!1;case 1:if(l=s.type,b=s.stateNode,(s.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Qi===null||!Qi.has(b))))return s.flags|=65536,v&=-v,s.lanes|=v,v=vw(v),yw(v,i,s,h),vm(s,v),!1}s=s.return}while(s!==null);return!1}var qm=Error(r(461)),kt=!1;function Xt(i,l,s,h){l.child=i===null?w1(l,null,s,h):Da(l,i.child,s,h)}function gw(i,l,s,h,v){s=s.render;var b=l.ref;if("ref"in h){var A={};for(var M in h)M!=="ref"&&(A[M]=h[M])}else A=h;return Ta(l),h=Sm(i,l,s,A,b,v),M=Om(),i!==null&&!kt?(Em(i,l,v),ii(i,l,v)):(Ue&&M&&rm(l),l.flags|=1,Xt(i,l,h,v),l.child)}function bw(i,l,s,h,v){if(i===null){var b=s.type;return typeof b=="function"&&!em(b)&&b.defaultProps===void 0&&s.compare===null?(l.tag=15,l.type=b,xw(i,l,b,h,v)):(i=nc(s.type,null,h,l,l.mode,v),i.ref=l.ref,i.return=l,l.child=i)}if(b=i.child,!Xm(i,v)){var A=b.memoizedProps;if(s=s.compare,s=s!==null?s:Zo,s(A,h)&&i.ref===l.ref)return ii(i,l,v)}return l.flags|=1,i=Qr(b,h),i.ref=l.ref,i.return=l,l.child=i}function xw(i,l,s,h,v){if(i!==null){var b=i.memoizedProps;if(Zo(b,h)&&i.ref===l.ref)if(kt=!1,l.pendingProps=h=b,Xm(i,v))(i.flags&131072)!==0&&(kt=!0);else return l.lanes=i.lanes,ii(i,l,v)}return Hm(i,l,s,h,v)}function ww(i,l,s,h){var v=h.children,b=i!==null?i.memoizedState:null;if(i===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.mode==="hidden"){if((l.flags&128)!==0){if(b=b!==null?b.baseLanes|s:s,i!==null){for(h=l.child=i.child,v=0;h!==null;)v=v|h.lanes|h.childLanes,h=h.sibling;h=v&~b}else h=0,l.child=null;return Sw(i,l,b,s,h)}if((s&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},i!==null&&lc(l,b!==null?b.cachePool:null),b!==null?E1(l,b):gm(),A1(l);else return h=l.lanes=536870912,Sw(i,l,b!==null?b.baseLanes|s:s,s,h)}else b!==null?(lc(l,b.cachePool),E1(l,b),Gi(),l.memoizedState=null):(i!==null&&lc(l,null),gm(),Gi());return Xt(i,l,v,s),l.child}function fu(i,l){return i!==null&&i.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function Sw(i,l,s,h,v){var b=dm();return b=b===null?null:{parent:Et._currentValue,pool:b},l.memoizedState={baseLanes:s,cachePool:b},i!==null&&lc(l,null),gm(),A1(l),i!==null&&Tl(i,l,h,!0),l.childLanes=v,null}function Sc(i,l){return l=Ec({mode:l.mode,children:l.children},i.mode),l.ref=i.ref,i.child=l,l.return=i,l}function Ow(i,l,s){return Da(l,i.child,null,s),i=Sc(l,l.pendingProps),i.flags|=2,Rn(l),l.memoizedState=null,i}function KP(i,l,s){var h=l.pendingProps,v=(l.flags&128)!==0;if(l.flags&=-129,i===null){if(Ue){if(h.mode==="hidden")return i=Sc(l,h),l.lanes=536870912,fu(null,i);if(xm(l),(i=ut)?(i=PS(i,tr),i=i!==null&&i.data==="&"?i:null,i!==null&&(l.memoizedState={dehydrated:i,treeContext:Ui!==null?{id:Mr,overflow:zr}:null,retryLane:536870912,hydrationErrors:null},s=l1(i),s.return=l,l.child=s,Kt=l,ut=null)):i=null,i===null)throw Hi(l);return l.lanes=536870912,null}return Sc(l,h)}var b=i.memoizedState;if(b!==null){var A=b.dehydrated;if(xm(l),v)if(l.flags&256)l.flags&=-257,l=Ow(i,l,s);else if(l.memoizedState!==null)l.child=i.child,l.flags|=128,l=null;else throw Error(r(558));else if(kt||Tl(i,l,s,!1),v=(s&i.childLanes)!==0,kt||v){if(h=nt,h!==null&&(A=hx(h,s),A!==0&&A!==b.retryLane))throw b.retryLane=A,Aa(i,A),En(h,i,A),qm;Dc(),l=Ow(i,l,s)}else i=b.treeContext,ut=rr(A.nextSibling),Kt=l,Ue=!0,qi=null,tr=!1,i!==null&&s1(l,i),l=Sc(l,h),l.flags|=4096;return l}return i=Qr(i.child,{mode:h.mode,children:h.children}),i.ref=l.ref,l.child=i,i.return=l,i}function Oc(i,l){var s=l.ref;if(s===null)i!==null&&i.ref!==null&&(l.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(r(284));(i===null||i.ref!==s)&&(l.flags|=4194816)}}function Hm(i,l,s,h,v){return Ta(l),s=Sm(i,l,s,h,void 0,v),h=Om(),i!==null&&!kt?(Em(i,l,v),ii(i,l,v)):(Ue&&h&&rm(l),l.flags|=1,Xt(i,l,s,v),l.child)}function Ew(i,l,s,h,v,b){return Ta(l),l.updateQueue=null,s=_1(l,h,s,v),k1(i),h=Om(),i!==null&&!kt?(Em(i,l,b),ii(i,l,b)):(Ue&&h&&rm(l),l.flags|=1,Xt(i,l,s,b),l.child)}function Aw(i,l,s,h,v){if(Ta(l),l.stateNode===null){var b=Al,A=s.contextType;typeof A=="object"&&A!==null&&(b=Gt(A)),b=new s(h,b),l.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Bm,l.stateNode=b,b._reactInternals=l,b=l.stateNode,b.props=h,b.state=l.memoizedState,b.refs={},mm(l),A=s.contextType,b.context=typeof A=="object"&&A!==null?Gt(A):Al,b.state=l.memoizedState,A=s.getDerivedStateFromProps,typeof A=="function"&&(Lm(l,s,A,h),b.state=l.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(A=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),A!==b.state&&Bm.enqueueReplaceState(b,b.state,null),lu(l,h,b,v),au(),b.state=l.memoizedState),typeof b.componentDidMount=="function"&&(l.flags|=4194308),h=!0}else if(i===null){b=l.stateNode;var M=l.memoizedProps,B=Pa(s,M);b.props=B;var X=b.context,ie=s.contextType;A=Al,typeof ie=="object"&&ie!==null&&(A=Gt(ie));var ue=s.getDerivedStateFromProps;ie=typeof ue=="function"||typeof b.getSnapshotBeforeUpdate=="function",M=l.pendingProps!==M,ie||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(M||X!==A)&&fw(l,b,h,A),Fi=!1;var W=l.memoizedState;b.state=W,lu(l,h,b,v),au(),X=l.memoizedState,M||W!==X||Fi?(typeof ue=="function"&&(Lm(l,s,ue,h),X=l.memoizedState),(B=Fi||cw(l,s,B,h,W,X,A))?(ie||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(l.flags|=4194308)):(typeof b.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=h,l.memoizedState=X),b.props=h,b.state=X,b.context=A,h=B):(typeof b.componentDidMount=="function"&&(l.flags|=4194308),h=!1)}else{b=l.stateNode,pm(i,l),A=l.memoizedProps,ie=Pa(s,A),b.props=ie,ue=l.pendingProps,W=b.context,X=s.contextType,B=Al,typeof X=="object"&&X!==null&&(B=Gt(X)),M=s.getDerivedStateFromProps,(X=typeof M=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(A!==ue||W!==B)&&fw(l,b,h,B),Fi=!1,W=l.memoizedState,b.state=W,lu(l,h,b,v),au();var te=l.memoizedState;A!==ue||W!==te||Fi||i!==null&&i.dependencies!==null&&ic(i.dependencies)?(typeof M=="function"&&(Lm(l,s,M,h),te=l.memoizedState),(ie=Fi||cw(l,s,ie,h,W,te,B)||i!==null&&i.dependencies!==null&&ic(i.dependencies))?(X||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(h,te,B),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(h,te,B)),typeof b.componentDidUpdate=="function"&&(l.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof b.componentDidUpdate!="function"||A===i.memoizedProps&&W===i.memoizedState||(l.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||A===i.memoizedProps&&W===i.memoizedState||(l.flags|=1024),l.memoizedProps=h,l.memoizedState=te),b.props=h,b.state=te,b.context=B,h=ie):(typeof b.componentDidUpdate!="function"||A===i.memoizedProps&&W===i.memoizedState||(l.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||A===i.memoizedProps&&W===i.memoizedState||(l.flags|=1024),h=!1)}return b=h,Oc(i,l),h=(l.flags&128)!==0,b||h?(b=l.stateNode,s=h&&typeof s.getDerivedStateFromError!="function"?null:b.render(),l.flags|=1,i!==null&&h?(l.child=Da(l,i.child,null,v),l.child=Da(l,null,s,v)):Xt(i,l,s,v),l.memoizedState=b.state,i=l.child):i=ii(i,l,v),i}function kw(i,l,s,h){return _a(),l.flags|=256,Xt(i,l,s,h),l.child}var $m={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Fm(i){return{baseLanes:i,cachePool:p1()}}function Vm(i,l,s){return i=i!==null?i.childLanes&~s:0,l&&(i|=Ln),i}function _w(i,l,s){var h=l.pendingProps,v=!1,b=(l.flags&128)!==0,A;if((A=b)||(A=i!==null&&i.memoizedState===null?!1:(bt.current&2)!==0),A&&(v=!0,l.flags&=-129),A=(l.flags&32)!==0,l.flags&=-33,i===null){if(Ue){if(v?Ki(l):Gi(),(i=ut)?(i=PS(i,tr),i=i!==null&&i.data!=="&"?i:null,i!==null&&(l.memoizedState={dehydrated:i,treeContext:Ui!==null?{id:Mr,overflow:zr}:null,retryLane:536870912,hydrationErrors:null},s=l1(i),s.return=l,l.child=s,Kt=l,ut=null)):i=null,i===null)throw Hi(l);return _p(i)?l.lanes=32:l.lanes=536870912,null}var M=h.children;return h=h.fallback,v?(Gi(),v=l.mode,M=Ec({mode:"hidden",children:M},v),h=ka(h,v,s,null),M.return=l,h.return=l,M.sibling=h,l.child=M,h=l.child,h.memoizedState=Fm(s),h.childLanes=Vm(i,A,s),l.memoizedState=$m,fu(null,h)):(Ki(l),Ym(l,M))}var B=i.memoizedState;if(B!==null&&(M=B.dehydrated,M!==null)){if(b)l.flags&256?(Ki(l),l.flags&=-257,l=Km(i,l,s)):l.memoizedState!==null?(Gi(),l.child=i.child,l.flags|=128,l=null):(Gi(),M=h.fallback,v=l.mode,h=Ec({mode:"visible",children:h.children},v),M=ka(M,v,s,null),M.flags|=2,h.return=l,M.return=l,h.sibling=M,l.child=h,Da(l,i.child,null,s),h=l.child,h.memoizedState=Fm(s),h.childLanes=Vm(i,A,s),l.memoizedState=$m,l=fu(null,h));else if(Ki(l),_p(M)){if(A=M.nextSibling&&M.nextSibling.dataset,A)var X=A.dgst;A=X,h=Error(r(419)),h.stack="",h.digest=A,Jo({value:h,source:null,stack:null}),l=Km(i,l,s)}else if(kt||Tl(i,l,s,!1),A=(s&i.childLanes)!==0,kt||A){if(A=nt,A!==null&&(h=hx(A,s),h!==0&&h!==B.retryLane))throw B.retryLane=h,Aa(i,h),En(A,i,h),qm;kp(M)||Dc(),l=Km(i,l,s)}else kp(M)?(l.flags|=192,l.child=i.child,l=null):(i=B.treeContext,ut=rr(M.nextSibling),Kt=l,Ue=!0,qi=null,tr=!1,i!==null&&s1(l,i),l=Ym(l,h.children),l.flags|=4096);return l}return v?(Gi(),M=h.fallback,v=l.mode,B=i.child,X=B.sibling,h=Qr(B,{mode:"hidden",children:h.children}),h.subtreeFlags=B.subtreeFlags&65011712,X!==null?M=Qr(X,M):(M=ka(M,v,s,null),M.flags|=2),M.return=l,h.return=l,h.sibling=M,l.child=h,fu(null,h),h=l.child,M=i.child.memoizedState,M===null?M=Fm(s):(v=M.cachePool,v!==null?(B=Et._currentValue,v=v.parent!==B?{parent:B,pool:B}:v):v=p1(),M={baseLanes:M.baseLanes|s,cachePool:v}),h.memoizedState=M,h.childLanes=Vm(i,A,s),l.memoizedState=$m,fu(i.child,h)):(Ki(l),s=i.child,i=s.sibling,s=Qr(s,{mode:"visible",children:h.children}),s.return=l,s.sibling=null,i!==null&&(A=l.deletions,A===null?(l.deletions=[i],l.flags|=16):A.push(i)),l.child=s,l.memoizedState=null,s)}function Ym(i,l){return l=Ec({mode:"visible",children:l},i.mode),l.return=i,i.child=l}function Ec(i,l){return i=Nn(22,i,null,l),i.lanes=0,i}function Km(i,l,s){return Da(l,i.child,null,s),i=Ym(l,l.pendingProps.children),i.flags|=2,l.memoizedState=null,i}function Cw(i,l,s){i.lanes|=l;var h=i.alternate;h!==null&&(h.lanes|=l),um(i.return,l,s)}function Gm(i,l,s,h,v,b){var A=i.memoizedState;A===null?i.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:h,tail:s,tailMode:v,treeForkCount:b}:(A.isBackwards=l,A.rendering=null,A.renderingStartTime=0,A.last=h,A.tail=s,A.tailMode=v,A.treeForkCount=b)}function Tw(i,l,s){var h=l.pendingProps,v=h.revealOrder,b=h.tail;h=h.children;var A=bt.current,M=(A&2)!==0;if(M?(A=A&1|2,l.flags|=128):A&=1,z(bt,A),Xt(i,l,h,s),h=Ue?Qo:0,!M&&i!==null&&(i.flags&128)!==0)e:for(i=l.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&Cw(i,s,l);else if(i.tag===19)Cw(i,s,l);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===l)break e;for(;i.sibling===null;){if(i.return===null||i.return===l)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(v){case"forwards":for(s=l.child,v=null;s!==null;)i=s.alternate,i!==null&&dc(i)===null&&(v=s),s=s.sibling;s=v,s===null?(v=l.child,l.child=null):(v=s.sibling,s.sibling=null),Gm(l,!1,v,s,b,h);break;case"backwards":case"unstable_legacy-backwards":for(s=null,v=l.child,l.child=null;v!==null;){if(i=v.alternate,i!==null&&dc(i)===null){l.child=v;break}i=v.sibling,v.sibling=s,s=v,v=i}Gm(l,!0,s,null,b,h);break;case"together":Gm(l,!1,null,null,void 0,h);break;default:l.memoizedState=null}return l.child}function ii(i,l,s){if(i!==null&&(l.dependencies=i.dependencies),Wi|=l.lanes,(s&l.childLanes)===0)if(i!==null){if(Tl(i,l,s,!1),(s&l.childLanes)===0)return null}else return null;if(i!==null&&l.child!==i.child)throw Error(r(153));if(l.child!==null){for(i=l.child,s=Qr(i,i.pendingProps),l.child=s,s.return=l;i.sibling!==null;)i=i.sibling,s=s.sibling=Qr(i,i.pendingProps),s.return=l;s.sibling=null}return l.child}function Xm(i,l){return(i.lanes&l)!==0?!0:(i=i.dependencies,!!(i!==null&&ic(i)))}function GP(i,l,s){switch(l.tag){case 3:ge(l,l.stateNode.containerInfo),$i(l,Et,i.memoizedState.cache),_a();break;case 27:case 5:he(l);break;case 4:ge(l,l.stateNode.containerInfo);break;case 10:$i(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,xm(l),null;break;case 13:var h=l.memoizedState;if(h!==null)return h.dehydrated!==null?(Ki(l),l.flags|=128,null):(s&l.child.childLanes)!==0?_w(i,l,s):(Ki(l),i=ii(i,l,s),i!==null?i.sibling:null);Ki(l);break;case 19:var v=(i.flags&128)!==0;if(h=(s&l.childLanes)!==0,h||(Tl(i,l,s,!1),h=(s&l.childLanes)!==0),v){if(h)return Tw(i,l,s);l.flags|=128}if(v=l.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),z(bt,bt.current),h)break;return null;case 22:return l.lanes=0,ww(i,l,s,l.pendingProps);case 24:$i(l,Et,i.memoizedState.cache)}return ii(i,l,s)}function jw(i,l,s){if(i!==null)if(i.memoizedProps!==l.pendingProps)kt=!0;else{if(!Xm(i,s)&&(l.flags&128)===0)return kt=!1,GP(i,l,s);kt=(i.flags&131072)!==0}else kt=!1,Ue&&(l.flags&1048576)!==0&&u1(l,Qo,l.index);switch(l.lanes=0,l.tag){case 16:e:{var h=l.pendingProps;if(i=Ma(l.elementType),l.type=i,typeof i=="function")em(i)?(h=Pa(i,h),l.tag=1,l=Aw(null,l,i,h,s)):(l.tag=0,l=Hm(null,l,i,h,s));else{if(i!=null){var v=i.$$typeof;if(v===D){l.tag=11,l=gw(null,l,i,h,s);break e}else if(v===j){l.tag=14,l=bw(null,l,i,h,s);break e}}throw l=ne(i)||i,Error(r(306,l,""))}}return l;case 0:return Hm(i,l,l.type,l.pendingProps,s);case 1:return h=l.type,v=Pa(h,l.pendingProps),Aw(i,l,h,v,s);case 3:e:{if(ge(l,l.stateNode.containerInfo),i===null)throw Error(r(387));h=l.pendingProps;var b=l.memoizedState;v=b.element,pm(i,l),lu(l,h,null,s);var A=l.memoizedState;if(h=A.cache,$i(l,Et,h),h!==b.cache&&sm(l,[Et],s,!0),au(),h=A.element,b.isDehydrated)if(b={element:h,isDehydrated:!1,cache:A.cache},l.updateQueue.baseState=b,l.memoizedState=b,l.flags&256){l=kw(i,l,h,s);break e}else if(h!==v){v=Qn(Error(r(424)),l),Jo(v),l=kw(i,l,h,s);break e}else{switch(i=l.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(ut=rr(i.firstChild),Kt=l,Ue=!0,qi=null,tr=!0,s=w1(l,null,h,s),l.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(_a(),h===v){l=ii(i,l,s);break e}Xt(i,l,h,s)}l=l.child}return l;case 26:return Oc(i,l),i===null?(s=qS(l.type,null,l.pendingProps,null))?l.memoizedState=s:Ue||(s=l.type,i=l.pendingProps,h=Uc(ve.current).createElement(s),h[Yt]=l,h[gn]=i,Zt(h,s,i),Rt(h),l.stateNode=h):l.memoizedState=qS(l.type,i.memoizedProps,l.pendingProps,i.memoizedState),null;case 27:return he(l),i===null&&Ue&&(h=l.stateNode=LS(l.type,l.pendingProps,ve.current),Kt=l,tr=!0,v=ut,na(l.type)?(Cp=v,ut=rr(h.firstChild)):ut=v),Xt(i,l,l.pendingProps.children,s),Oc(i,l),i===null&&(l.flags|=4194304),l.child;case 5:return i===null&&Ue&&((v=h=ut)&&(h=ER(h,l.type,l.pendingProps,tr),h!==null?(l.stateNode=h,Kt=l,ut=rr(h.firstChild),tr=!1,v=!0):v=!1),v||Hi(l)),he(l),v=l.type,b=l.pendingProps,A=i!==null?i.memoizedProps:null,h=b.children,Op(v,b)?h=null:A!==null&&Op(v,A)&&(l.flags|=32),l.memoizedState!==null&&(v=Sm(i,l,BP,null,null,s),ku._currentValue=v),Oc(i,l),Xt(i,l,h,s),l.child;case 6:return i===null&&Ue&&((i=s=ut)&&(s=AR(s,l.pendingProps,tr),s!==null?(l.stateNode=s,Kt=l,ut=null,i=!0):i=!1),i||Hi(l)),null;case 13:return _w(i,l,s);case 4:return ge(l,l.stateNode.containerInfo),h=l.pendingProps,i===null?l.child=Da(l,null,h,s):Xt(i,l,h,s),l.child;case 11:return gw(i,l,l.type,l.pendingProps,s);case 7:return Xt(i,l,l.pendingProps,s),l.child;case 8:return Xt(i,l,l.pendingProps.children,s),l.child;case 12:return Xt(i,l,l.pendingProps.children,s),l.child;case 10:return h=l.pendingProps,$i(l,l.type,h.value),Xt(i,l,h.children,s),l.child;case 9:return v=l.type._context,h=l.pendingProps.children,Ta(l),v=Gt(v),h=h(v),l.flags|=1,Xt(i,l,h,s),l.child;case 14:return bw(i,l,l.type,l.pendingProps,s);case 15:return xw(i,l,l.type,l.pendingProps,s);case 19:return Tw(i,l,s);case 31:return KP(i,l,s);case 22:return ww(i,l,s,l.pendingProps);case 24:return Ta(l),h=Gt(Et),i===null?(v=dm(),v===null&&(v=nt,b=cm(),v.pooledCache=b,b.refCount++,b!==null&&(v.pooledCacheLanes|=s),v=b),l.memoizedState={parent:h,cache:v},mm(l),$i(l,Et,v)):((i.lanes&s)!==0&&(pm(i,l),lu(l,null,null,s),au()),v=i.memoizedState,b=l.memoizedState,v.parent!==h?(v={parent:h,cache:h},l.memoizedState=v,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=v),$i(l,Et,h)):(h=b.cache,$i(l,Et,h),h!==v.cache&&sm(l,[Et],s,!0))),Xt(i,l,l.pendingProps.children,s),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function ai(i){i.flags|=4}function Zm(i,l,s,h,v){if((l=(i.mode&32)!==0)&&(l=!1),l){if(i.flags|=16777216,(v&335544128)===v)if(i.stateNode.complete)i.flags|=8192;else if(rS())i.flags|=8192;else throw za=uc,hm}else i.flags&=-16777217}function Mw(i,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!YS(l))if(rS())i.flags|=8192;else throw za=uc,hm}function Ac(i,l){l!==null&&(i.flags|=4),i.flags&16384&&(l=i.tag!==22?cx():536870912,i.lanes|=l,ql|=l)}function du(i,l){if(!Ue)switch(i.tailMode){case"hidden":l=i.tail;for(var s=null;l!==null;)l.alternate!==null&&(s=l),l=l.sibling;s===null?i.tail=null:s.sibling=null;break;case"collapsed":s=i.tail;for(var h=null;s!==null;)s.alternate!==null&&(h=s),s=s.sibling;h===null?l||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function st(i){var l=i.alternate!==null&&i.alternate.child===i.child,s=0,h=0;if(l)for(var v=i.child;v!==null;)s|=v.lanes|v.childLanes,h|=v.subtreeFlags&65011712,h|=v.flags&65011712,v.return=i,v=v.sibling;else for(v=i.child;v!==null;)s|=v.lanes|v.childLanes,h|=v.subtreeFlags,h|=v.flags,v.return=i,v=v.sibling;return i.subtreeFlags|=h,i.childLanes=s,l}function XP(i,l,s){var h=l.pendingProps;switch(im(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return st(l),null;case 1:return st(l),null;case 3:return s=l.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),l.memoizedState.cache!==h&&(l.flags|=2048),ti(Et),Y(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(i===null||i.child===null)&&(Cl(l)?ai(l):i===null||i.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,lm())),st(l),null;case 26:var v=l.type,b=l.memoizedState;return i===null?(ai(l),b!==null?(st(l),Mw(l,b)):(st(l),Zm(l,v,null,h,s))):b?b!==i.memoizedState?(ai(l),st(l),Mw(l,b)):(st(l),l.flags&=-16777217):(i=i.memoizedProps,i!==h&&ai(l),st(l),Zm(l,v,i,h,s)),null;case 27:if(be(l),s=ve.current,v=l.type,i!==null&&l.stateNode!=null)i.memoizedProps!==h&&ai(l);else{if(!h){if(l.stateNode===null)throw Error(r(166));return st(l),null}i=se.current,Cl(l)?c1(l):(i=LS(v,h,s),l.stateNode=i,ai(l))}return st(l),null;case 5:if(be(l),v=l.type,i!==null&&l.stateNode!=null)i.memoizedProps!==h&&ai(l);else{if(!h){if(l.stateNode===null)throw Error(r(166));return st(l),null}if(b=se.current,Cl(l))c1(l);else{var A=Uc(ve.current);switch(b){case 1:b=A.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:b=A.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":b=A.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":b=A.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":b=A.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof h.is=="string"?A.createElement("select",{is:h.is}):A.createElement("select"),h.multiple?b.multiple=!0:h.size&&(b.size=h.size);break;default:b=typeof h.is=="string"?A.createElement(v,{is:h.is}):A.createElement(v)}}b[Yt]=l,b[gn]=h;e:for(A=l.child;A!==null;){if(A.tag===5||A.tag===6)b.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===l)break e;for(;A.sibling===null;){if(A.return===null||A.return===l)break e;A=A.return}A.sibling.return=A.return,A=A.sibling}l.stateNode=b;e:switch(Zt(b,v,h),v){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&ai(l)}}return st(l),Zm(l,l.type,i===null?null:i.memoizedProps,l.pendingProps,s),null;case 6:if(i&&l.stateNode!=null)i.memoizedProps!==h&&ai(l);else{if(typeof h!="string"&&l.stateNode===null)throw Error(r(166));if(i=ve.current,Cl(l)){if(i=l.stateNode,s=l.memoizedProps,h=null,v=Kt,v!==null)switch(v.tag){case 27:case 5:h=v.memoizedProps}i[Yt]=l,i=!!(i.nodeValue===s||h!==null&&h.suppressHydrationWarning===!0||_S(i.nodeValue,s)),i||Hi(l,!0)}else i=Uc(i).createTextNode(h),i[Yt]=l,l.stateNode=i}return st(l),null;case 31:if(s=l.memoizedState,i===null||i.memoizedState!==null){if(h=Cl(l),s!==null){if(i===null){if(!h)throw Error(r(318));if(i=l.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(557));i[Yt]=l}else _a(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;st(l),i=!1}else s=lm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=s),i=!0;if(!i)return l.flags&256?(Rn(l),l):(Rn(l),null);if((l.flags&128)!==0)throw Error(r(558))}return st(l),null;case 13:if(h=l.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(v=Cl(l),h!==null&&h.dehydrated!==null){if(i===null){if(!v)throw Error(r(318));if(v=l.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[Yt]=l}else _a(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;st(l),v=!1}else v=lm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=v),v=!0;if(!v)return l.flags&256?(Rn(l),l):(Rn(l),null)}return Rn(l),(l.flags&128)!==0?(l.lanes=s,l):(s=h!==null,i=i!==null&&i.memoizedState!==null,s&&(h=l.child,v=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(v=h.alternate.memoizedState.cachePool.pool),b=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(b=h.memoizedState.cachePool.pool),b!==v&&(h.flags|=2048)),s!==i&&s&&(l.child.flags|=8192),Ac(l,l.updateQueue),st(l),null);case 4:return Y(),i===null&&gp(l.stateNode.containerInfo),st(l),null;case 10:return ti(l.type),st(l),null;case 19:if(V(bt),h=l.memoizedState,h===null)return st(l),null;if(v=(l.flags&128)!==0,b=h.rendering,b===null)if(v)du(h,!1);else{if(vt!==0||i!==null&&(i.flags&128)!==0)for(i=l.child;i!==null;){if(b=dc(i),b!==null){for(l.flags|=128,du(h,!1),i=b.updateQueue,l.updateQueue=i,Ac(l,i),l.subtreeFlags=0,i=s,s=l.child;s!==null;)a1(s,i),s=s.sibling;return z(bt,bt.current&1|2),Ue&&Jr(l,h.treeForkCount),l.child}i=i.sibling}h.tail!==null&&un()>jc&&(l.flags|=128,v=!0,du(h,!1),l.lanes=4194304)}else{if(!v)if(i=dc(b),i!==null){if(l.flags|=128,v=!0,i=i.updateQueue,l.updateQueue=i,Ac(l,i),du(h,!0),h.tail===null&&h.tailMode==="hidden"&&!b.alternate&&!Ue)return st(l),null}else 2*un()-h.renderingStartTime>jc&&s!==536870912&&(l.flags|=128,v=!0,du(h,!1),l.lanes=4194304);h.isBackwards?(b.sibling=l.child,l.child=b):(i=h.last,i!==null?i.sibling=b:l.child=b,h.last=b)}return h.tail!==null?(i=h.tail,h.rendering=i,h.tail=i.sibling,h.renderingStartTime=un(),i.sibling=null,s=bt.current,z(bt,v?s&1|2:s&1),Ue&&Jr(l,h.treeForkCount),i):(st(l),null);case 22:case 23:return Rn(l),bm(),h=l.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(l.flags|=8192):h&&(l.flags|=8192),h?(s&536870912)!==0&&(l.flags&128)===0&&(st(l),l.subtreeFlags&6&&(l.flags|=8192)):st(l),s=l.updateQueue,s!==null&&Ac(l,s.retryQueue),s=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(s=i.memoizedState.cachePool.pool),h=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==s&&(l.flags|=2048),i!==null&&V(ja),null;case 24:return s=null,i!==null&&(s=i.memoizedState.cache),l.memoizedState.cache!==s&&(l.flags|=2048),ti(Et),st(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function ZP(i,l){switch(im(l),l.tag){case 1:return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 3:return ti(Et),Y(),i=l.flags,(i&65536)!==0&&(i&128)===0?(l.flags=i&-65537|128,l):null;case 26:case 27:case 5:return be(l),null;case 31:if(l.memoizedState!==null){if(Rn(l),l.alternate===null)throw Error(r(340));_a()}return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 13:if(Rn(l),i=l.memoizedState,i!==null&&i.dehydrated!==null){if(l.alternate===null)throw Error(r(340));_a()}return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 19:return V(bt),null;case 4:return Y(),null;case 10:return ti(l.type),null;case 22:case 23:return Rn(l),bm(),i!==null&&V(ja),i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 24:return ti(Et),null;case 25:return null;default:return null}}function zw(i,l){switch(im(l),l.tag){case 3:ti(Et),Y();break;case 26:case 27:case 5:be(l);break;case 4:Y();break;case 31:l.memoizedState!==null&&Rn(l);break;case 13:Rn(l);break;case 19:V(bt);break;case 10:ti(l.type);break;case 22:case 23:Rn(l),bm(),i!==null&&V(ja);break;case 24:ti(Et)}}function hu(i,l){try{var s=l.updateQueue,h=s!==null?s.lastEffect:null;if(h!==null){var v=h.next;s=v;do{if((s.tag&i)===i){h=void 0;var b=s.create,A=s.inst;h=b(),A.destroy=h}s=s.next}while(s!==v)}}catch(M){Xe(l,l.return,M)}}function Xi(i,l,s){try{var h=l.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var b=v.next;h=b;do{if((h.tag&i)===i){var A=h.inst,M=A.destroy;if(M!==void 0){A.destroy=void 0,v=l;var B=s,X=M;try{X()}catch(ie){Xe(v,B,ie)}}}h=h.next}while(h!==b)}}catch(ie){Xe(l,l.return,ie)}}function Dw(i){var l=i.updateQueue;if(l!==null){var s=i.stateNode;try{O1(l,s)}catch(h){Xe(i,i.return,h)}}}function Nw(i,l,s){s.props=Pa(i.type,i.memoizedProps),s.state=i.memoizedState;try{s.componentWillUnmount()}catch(h){Xe(i,l,h)}}function mu(i,l){try{var s=i.ref;if(s!==null){switch(i.tag){case 26:case 27:case 5:var h=i.stateNode;break;case 30:h=i.stateNode;break;default:h=i.stateNode}typeof s=="function"?i.refCleanup=s(h):s.current=h}}catch(v){Xe(i,l,v)}}function Dr(i,l){var s=i.ref,h=i.refCleanup;if(s!==null)if(typeof h=="function")try{h()}catch(v){Xe(i,l,v)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(v){Xe(i,l,v)}else s.current=null}function Pw(i){var l=i.type,s=i.memoizedProps,h=i.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":s.autoFocus&&h.focus();break e;case"img":s.src?h.src=s.src:s.srcSet&&(h.srcset=s.srcSet)}}catch(v){Xe(i,i.return,v)}}function Wm(i,l,s){try{var h=i.stateNode;gR(h,i.type,s,l),h[gn]=l}catch(v){Xe(i,i.return,v)}}function Rw(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&na(i.type)||i.tag===4}function Qm(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||Rw(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&na(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Jm(i,l,s){var h=i.tag;if(h===5||h===6)i=i.stateNode,l?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(i,l):(l=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,l.appendChild(i),s=s._reactRootContainer,s!=null||l.onclick!==null||(l.onclick=Zr));else if(h!==4&&(h===27&&na(i.type)&&(s=i.stateNode,l=null),i=i.child,i!==null))for(Jm(i,l,s),i=i.sibling;i!==null;)Jm(i,l,s),i=i.sibling}function kc(i,l,s){var h=i.tag;if(h===5||h===6)i=i.stateNode,l?s.insertBefore(i,l):s.appendChild(i);else if(h!==4&&(h===27&&na(i.type)&&(s=i.stateNode),i=i.child,i!==null))for(kc(i,l,s),i=i.sibling;i!==null;)kc(i,l,s),i=i.sibling}function Iw(i){var l=i.stateNode,s=i.memoizedProps;try{for(var h=i.type,v=l.attributes;v.length;)l.removeAttributeNode(v[0]);Zt(l,h,s),l[Yt]=i,l[gn]=s}catch(b){Xe(i,i.return,b)}}var li=!1,_t=!1,ep=!1,Lw=typeof WeakSet=="function"?WeakSet:Set,It=null;function WP(i,l){if(i=i.containerInfo,wp=Kc,i=Zx(i),Kh(i)){if("selectionStart"in i)var s={start:i.selectionStart,end:i.selectionEnd};else e:{s=(s=i.ownerDocument)&&s.defaultView||window;var h=s.getSelection&&s.getSelection();if(h&&h.rangeCount!==0){s=h.anchorNode;var v=h.anchorOffset,b=h.focusNode;h=h.focusOffset;try{s.nodeType,b.nodeType}catch{s=null;break e}var A=0,M=-1,B=-1,X=0,ie=0,ue=i,W=null;t:for(;;){for(var te;ue!==s||v!==0&&ue.nodeType!==3||(M=A+v),ue!==b||h!==0&&ue.nodeType!==3||(B=A+h),ue.nodeType===3&&(A+=ue.nodeValue.length),(te=ue.firstChild)!==null;)W=ue,ue=te;for(;;){if(ue===i)break t;if(W===s&&++X===v&&(M=A),W===b&&++ie===h&&(B=A),(te=ue.nextSibling)!==null)break;ue=W,W=ue.parentNode}ue=te}s=M===-1||B===-1?null:{start:M,end:B}}else s=null}s=s||{start:0,end:0}}else s=null;for(Sp={focusedElem:i,selectionRange:s},Kc=!1,It=l;It!==null;)if(l=It,i=l.child,(l.subtreeFlags&1028)!==0&&i!==null)i.return=l,It=i;else for(;It!==null;){switch(l=It,b=l.alternate,i=l.flags,l.tag){case 0:if((i&4)!==0&&(i=l.updateQueue,i=i!==null?i.events:null,i!==null))for(s=0;s<i.length;s++)v=i[s],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&b!==null){i=void 0,s=l,v=b.memoizedProps,b=b.memoizedState,h=s.stateNode;try{var pe=Pa(s.type,v);i=h.getSnapshotBeforeUpdate(pe,b),h.__reactInternalSnapshotBeforeUpdate=i}catch(ke){Xe(s,s.return,ke)}}break;case 3:if((i&1024)!==0){if(i=l.stateNode.containerInfo,s=i.nodeType,s===9)Ap(i);else if(s===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Ap(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=l.sibling,i!==null){i.return=l.return,It=i;break}It=l.return}}function Bw(i,l,s){var h=s.flags;switch(s.tag){case 0:case 11:case 15:ui(i,s),h&4&&hu(5,s);break;case 1:if(ui(i,s),h&4)if(i=s.stateNode,l===null)try{i.componentDidMount()}catch(A){Xe(s,s.return,A)}else{var v=Pa(s.type,l.memoizedProps);l=l.memoizedState;try{i.componentDidUpdate(v,l,i.__reactInternalSnapshotBeforeUpdate)}catch(A){Xe(s,s.return,A)}}h&64&&Dw(s),h&512&&mu(s,s.return);break;case 3:if(ui(i,s),h&64&&(i=s.updateQueue,i!==null)){if(l=null,s.child!==null)switch(s.child.tag){case 27:case 5:l=s.child.stateNode;break;case 1:l=s.child.stateNode}try{O1(i,l)}catch(A){Xe(s,s.return,A)}}break;case 27:l===null&&h&4&&Iw(s);case 26:case 5:ui(i,s),l===null&&h&4&&Pw(s),h&512&&mu(s,s.return);break;case 12:ui(i,s);break;case 31:ui(i,s),h&4&&Hw(i,s);break;case 13:ui(i,s),h&4&&$w(i,s),h&64&&(i=s.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(s=lR.bind(null,s),kR(i,s))));break;case 22:if(h=s.memoizedState!==null||li,!h){l=l!==null&&l.memoizedState!==null||_t,v=li;var b=_t;li=h,(_t=l)&&!b?si(i,s,(s.subtreeFlags&8772)!==0):ui(i,s),li=v,_t=b}break;case 30:break;default:ui(i,s)}}function Uw(i){var l=i.alternate;l!==null&&(i.alternate=null,Uw(l)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(l=i.stateNode,l!==null&&jh(l)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var dt=null,xn=!1;function oi(i,l,s){for(s=s.child;s!==null;)qw(i,l,s),s=s.sibling}function qw(i,l,s){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(sn,s)}catch{}switch(s.tag){case 26:_t||Dr(s,l),oi(i,l,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:_t||Dr(s,l);var h=dt,v=xn;na(s.type)&&(dt=s.stateNode,xn=!1),oi(i,l,s),Ou(s.stateNode),dt=h,xn=v;break;case 5:_t||Dr(s,l);case 6:if(h=dt,v=xn,dt=null,oi(i,l,s),dt=h,xn=v,dt!==null)if(xn)try{(dt.nodeType===9?dt.body:dt.nodeName==="HTML"?dt.ownerDocument.body:dt).removeChild(s.stateNode)}catch(b){Xe(s,l,b)}else try{dt.removeChild(s.stateNode)}catch(b){Xe(s,l,b)}break;case 18:dt!==null&&(xn?(i=dt,DS(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,s.stateNode),Xl(i)):DS(dt,s.stateNode));break;case 4:h=dt,v=xn,dt=s.stateNode.containerInfo,xn=!0,oi(i,l,s),dt=h,xn=v;break;case 0:case 11:case 14:case 15:Xi(2,s,l),_t||Xi(4,s,l),oi(i,l,s);break;case 1:_t||(Dr(s,l),h=s.stateNode,typeof h.componentWillUnmount=="function"&&Nw(s,l,h)),oi(i,l,s);break;case 21:oi(i,l,s);break;case 22:_t=(h=_t)||s.memoizedState!==null,oi(i,l,s),_t=h;break;default:oi(i,l,s)}}function Hw(i,l){if(l.memoizedState===null&&(i=l.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{Xl(i)}catch(s){Xe(l,l.return,s)}}}function $w(i,l){if(l.memoizedState===null&&(i=l.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Xl(i)}catch(s){Xe(l,l.return,s)}}function QP(i){switch(i.tag){case 31:case 13:case 19:var l=i.stateNode;return l===null&&(l=i.stateNode=new Lw),l;case 22:return i=i.stateNode,l=i._retryCache,l===null&&(l=i._retryCache=new Lw),l;default:throw Error(r(435,i.tag))}}function _c(i,l){var s=QP(i);l.forEach(function(h){if(!s.has(h)){s.add(h);var v=oR.bind(null,i,h);h.then(v,v)}})}function wn(i,l){var s=l.deletions;if(s!==null)for(var h=0;h<s.length;h++){var v=s[h],b=i,A=l,M=A;e:for(;M!==null;){switch(M.tag){case 27:if(na(M.type)){dt=M.stateNode,xn=!1;break e}break;case 5:dt=M.stateNode,xn=!1;break e;case 3:case 4:dt=M.stateNode.containerInfo,xn=!0;break e}M=M.return}if(dt===null)throw Error(r(160));qw(b,A,v),dt=null,xn=!1,b=v.alternate,b!==null&&(b.return=null),v.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)Fw(l,i),l=l.sibling}var br=null;function Fw(i,l){var s=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:wn(l,i),Sn(i),h&4&&(Xi(3,i,i.return),hu(3,i),Xi(5,i,i.return));break;case 1:wn(l,i),Sn(i),h&512&&(_t||s===null||Dr(s,s.return)),h&64&&li&&(i=i.updateQueue,i!==null&&(h=i.callbacks,h!==null&&(s=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=s===null?h:s.concat(h))));break;case 26:var v=br;if(wn(l,i),Sn(i),h&512&&(_t||s===null||Dr(s,s.return)),h&4){var b=s!==null?s.memoizedState:null;if(h=i.memoizedState,s===null)if(h===null)if(i.stateNode===null){e:{h=i.type,s=i.memoizedProps,v=v.ownerDocument||v;t:switch(h){case"title":b=v.getElementsByTagName("title")[0],(!b||b[qo]||b[Yt]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=v.createElement(h),v.head.insertBefore(b,v.querySelector("head > title"))),Zt(b,h,s),b[Yt]=i,Rt(b),h=b;break e;case"link":var A=FS("link","href",v).get(h+(s.href||""));if(A){for(var M=0;M<A.length;M++)if(b=A[M],b.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&b.getAttribute("rel")===(s.rel==null?null:s.rel)&&b.getAttribute("title")===(s.title==null?null:s.title)&&b.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){A.splice(M,1);break t}}b=v.createElement(h),Zt(b,h,s),v.head.appendChild(b);break;case"meta":if(A=FS("meta","content",v).get(h+(s.content||""))){for(M=0;M<A.length;M++)if(b=A[M],b.getAttribute("content")===(s.content==null?null:""+s.content)&&b.getAttribute("name")===(s.name==null?null:s.name)&&b.getAttribute("property")===(s.property==null?null:s.property)&&b.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&b.getAttribute("charset")===(s.charSet==null?null:s.charSet)){A.splice(M,1);break t}}b=v.createElement(h),Zt(b,h,s),v.head.appendChild(b);break;default:throw Error(r(468,h))}b[Yt]=i,Rt(b),h=b}i.stateNode=h}else VS(v,i.type,i.stateNode);else i.stateNode=$S(v,h,i.memoizedProps);else b!==h?(b===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):b.count--,h===null?VS(v,i.type,i.stateNode):$S(v,h,i.memoizedProps)):h===null&&i.stateNode!==null&&Wm(i,i.memoizedProps,s.memoizedProps)}break;case 27:wn(l,i),Sn(i),h&512&&(_t||s===null||Dr(s,s.return)),s!==null&&h&4&&Wm(i,i.memoizedProps,s.memoizedProps);break;case 5:if(wn(l,i),Sn(i),h&512&&(_t||s===null||Dr(s,s.return)),i.flags&32){v=i.stateNode;try{gl(v,"")}catch(pe){Xe(i,i.return,pe)}}h&4&&i.stateNode!=null&&(v=i.memoizedProps,Wm(i,v,s!==null?s.memoizedProps:v)),h&1024&&(ep=!0);break;case 6:if(wn(l,i),Sn(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,s=i.stateNode;try{s.nodeValue=h}catch(pe){Xe(i,i.return,pe)}}break;case 3:if($c=null,v=br,br=qc(l.containerInfo),wn(l,i),br=v,Sn(i),h&4&&s!==null&&s.memoizedState.isDehydrated)try{Xl(l.containerInfo)}catch(pe){Xe(i,i.return,pe)}ep&&(ep=!1,Vw(i));break;case 4:h=br,br=qc(i.stateNode.containerInfo),wn(l,i),Sn(i),br=h;break;case 12:wn(l,i),Sn(i);break;case 31:wn(l,i),Sn(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,_c(i,h)));break;case 13:wn(l,i),Sn(i),i.child.flags&8192&&i.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Tc=un()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,_c(i,h)));break;case 22:v=i.memoizedState!==null;var B=s!==null&&s.memoizedState!==null,X=li,ie=_t;if(li=X||v,_t=ie||B,wn(l,i),_t=ie,li=X,Sn(i),h&8192)e:for(l=i.stateNode,l._visibility=v?l._visibility&-2:l._visibility|1,v&&(s===null||B||li||_t||Ra(i)),s=null,l=i;;){if(l.tag===5||l.tag===26){if(s===null){B=s=l;try{if(b=B.stateNode,v)A=b.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none";else{M=B.stateNode;var ue=B.memoizedProps.style,W=ue!=null&&ue.hasOwnProperty("display")?ue.display:null;M.style.display=W==null||typeof W=="boolean"?"":(""+W).trim()}}catch(pe){Xe(B,B.return,pe)}}}else if(l.tag===6){if(s===null){B=l;try{B.stateNode.nodeValue=v?"":B.memoizedProps}catch(pe){Xe(B,B.return,pe)}}}else if(l.tag===18){if(s===null){B=l;try{var te=B.stateNode;v?NS(te,!0):NS(B.stateNode,!1)}catch(pe){Xe(B,B.return,pe)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===i)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break e;for(;l.sibling===null;){if(l.return===null||l.return===i)break e;s===l&&(s=null),l=l.return}s===l&&(s=null),l.sibling.return=l.return,l=l.sibling}h&4&&(h=i.updateQueue,h!==null&&(s=h.retryQueue,s!==null&&(h.retryQueue=null,_c(i,s))));break;case 19:wn(l,i),Sn(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,_c(i,h)));break;case 30:break;case 21:break;default:wn(l,i),Sn(i)}}function Sn(i){var l=i.flags;if(l&2){try{for(var s,h=i.return;h!==null;){if(Rw(h)){s=h;break}h=h.return}if(s==null)throw Error(r(160));switch(s.tag){case 27:var v=s.stateNode,b=Qm(i);kc(i,b,v);break;case 5:var A=s.stateNode;s.flags&32&&(gl(A,""),s.flags&=-33);var M=Qm(i);kc(i,M,A);break;case 3:case 4:var B=s.stateNode.containerInfo,X=Qm(i);Jm(i,X,B);break;default:throw Error(r(161))}}catch(ie){Xe(i,i.return,ie)}i.flags&=-3}l&4096&&(i.flags&=-4097)}function Vw(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var l=i;Vw(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),i=i.sibling}}function ui(i,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)Bw(i,l.alternate,l),l=l.sibling}function Ra(i){for(i=i.child;i!==null;){var l=i;switch(l.tag){case 0:case 11:case 14:case 15:Xi(4,l,l.return),Ra(l);break;case 1:Dr(l,l.return);var s=l.stateNode;typeof s.componentWillUnmount=="function"&&Nw(l,l.return,s),Ra(l);break;case 27:Ou(l.stateNode);case 26:case 5:Dr(l,l.return),Ra(l);break;case 22:l.memoizedState===null&&Ra(l);break;case 30:Ra(l);break;default:Ra(l)}i=i.sibling}}function si(i,l,s){for(s=s&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var h=l.alternate,v=i,b=l,A=b.flags;switch(b.tag){case 0:case 11:case 15:si(v,b,s),hu(4,b);break;case 1:if(si(v,b,s),h=b,v=h.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(X){Xe(h,h.return,X)}if(h=b,v=h.updateQueue,v!==null){var M=h.stateNode;try{var B=v.shared.hiddenCallbacks;if(B!==null)for(v.shared.hiddenCallbacks=null,v=0;v<B.length;v++)S1(B[v],M)}catch(X){Xe(h,h.return,X)}}s&&A&64&&Dw(b),mu(b,b.return);break;case 27:Iw(b);case 26:case 5:si(v,b,s),s&&h===null&&A&4&&Pw(b),mu(b,b.return);break;case 12:si(v,b,s);break;case 31:si(v,b,s),s&&A&4&&Hw(v,b);break;case 13:si(v,b,s),s&&A&4&&$w(v,b);break;case 22:b.memoizedState===null&&si(v,b,s),mu(b,b.return);break;case 30:break;default:si(v,b,s)}l=l.sibling}}function tp(i,l){var s=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(s=i.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==s&&(i!=null&&i.refCount++,s!=null&&eu(s))}function np(i,l){i=null,l.alternate!==null&&(i=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==i&&(l.refCount++,i!=null&&eu(i))}function xr(i,l,s,h){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)Yw(i,l,s,h),l=l.sibling}function Yw(i,l,s,h){var v=l.flags;switch(l.tag){case 0:case 11:case 15:xr(i,l,s,h),v&2048&&hu(9,l);break;case 1:xr(i,l,s,h);break;case 3:xr(i,l,s,h),v&2048&&(i=null,l.alternate!==null&&(i=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==i&&(l.refCount++,i!=null&&eu(i)));break;case 12:if(v&2048){xr(i,l,s,h),i=l.stateNode;try{var b=l.memoizedProps,A=b.id,M=b.onPostCommit;typeof M=="function"&&M(A,l.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(B){Xe(l,l.return,B)}}else xr(i,l,s,h);break;case 31:xr(i,l,s,h);break;case 13:xr(i,l,s,h);break;case 23:break;case 22:b=l.stateNode,A=l.alternate,l.memoizedState!==null?b._visibility&2?xr(i,l,s,h):pu(i,l):b._visibility&2?xr(i,l,s,h):(b._visibility|=2,Ll(i,l,s,h,(l.subtreeFlags&10256)!==0||!1)),v&2048&&tp(A,l);break;case 24:xr(i,l,s,h),v&2048&&np(l.alternate,l);break;default:xr(i,l,s,h)}}function Ll(i,l,s,h,v){for(v=v&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var b=i,A=l,M=s,B=h,X=A.flags;switch(A.tag){case 0:case 11:case 15:Ll(b,A,M,B,v),hu(8,A);break;case 23:break;case 22:var ie=A.stateNode;A.memoizedState!==null?ie._visibility&2?Ll(b,A,M,B,v):pu(b,A):(ie._visibility|=2,Ll(b,A,M,B,v)),v&&X&2048&&tp(A.alternate,A);break;case 24:Ll(b,A,M,B,v),v&&X&2048&&np(A.alternate,A);break;default:Ll(b,A,M,B,v)}l=l.sibling}}function pu(i,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var s=i,h=l,v=h.flags;switch(h.tag){case 22:pu(s,h),v&2048&&tp(h.alternate,h);break;case 24:pu(s,h),v&2048&&np(h.alternate,h);break;default:pu(s,h)}l=l.sibling}}var vu=8192;function Bl(i,l,s){if(i.subtreeFlags&vu)for(i=i.child;i!==null;)Kw(i,l,s),i=i.sibling}function Kw(i,l,s){switch(i.tag){case 26:Bl(i,l,s),i.flags&vu&&i.memoizedState!==null&&LR(s,br,i.memoizedState,i.memoizedProps);break;case 5:Bl(i,l,s);break;case 3:case 4:var h=br;br=qc(i.stateNode.containerInfo),Bl(i,l,s),br=h;break;case 22:i.memoizedState===null&&(h=i.alternate,h!==null&&h.memoizedState!==null?(h=vu,vu=16777216,Bl(i,l,s),vu=h):Bl(i,l,s));break;default:Bl(i,l,s)}}function Gw(i){var l=i.alternate;if(l!==null&&(i=l.child,i!==null)){l.child=null;do l=i.sibling,i.sibling=null,i=l;while(i!==null)}}function yu(i){var l=i.deletions;if((i.flags&16)!==0){if(l!==null)for(var s=0;s<l.length;s++){var h=l[s];It=h,Zw(h,i)}Gw(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Xw(i),i=i.sibling}function Xw(i){switch(i.tag){case 0:case 11:case 15:yu(i),i.flags&2048&&Xi(9,i,i.return);break;case 3:yu(i);break;case 12:yu(i);break;case 22:var l=i.stateNode;i.memoizedState!==null&&l._visibility&2&&(i.return===null||i.return.tag!==13)?(l._visibility&=-3,Cc(i)):yu(i);break;default:yu(i)}}function Cc(i){var l=i.deletions;if((i.flags&16)!==0){if(l!==null)for(var s=0;s<l.length;s++){var h=l[s];It=h,Zw(h,i)}Gw(i)}for(i=i.child;i!==null;){switch(l=i,l.tag){case 0:case 11:case 15:Xi(8,l,l.return),Cc(l);break;case 22:s=l.stateNode,s._visibility&2&&(s._visibility&=-3,Cc(l));break;default:Cc(l)}i=i.sibling}}function Zw(i,l){for(;It!==null;){var s=It;switch(s.tag){case 0:case 11:case 15:Xi(8,s,l);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var h=s.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:eu(s.memoizedState.cache)}if(h=s.child,h!==null)h.return=s,It=h;else e:for(s=i;It!==null;){h=It;var v=h.sibling,b=h.return;if(Uw(h),h===s){It=null;break e}if(v!==null){v.return=b,It=v;break e}It=b}}}var JP={getCacheForType:function(i){var l=Gt(Et),s=l.data.get(i);return s===void 0&&(s=i(),l.data.set(i,s)),s},cacheSignal:function(){return Gt(Et).controller.signal}},eR=typeof WeakMap=="function"?WeakMap:Map,Ye=0,nt=null,Ne=null,Le=0,Ge=0,In=null,Zi=!1,Ul=!1,rp=!1,ci=0,vt=0,Wi=0,Ia=0,ip=0,Ln=0,ql=0,gu=null,On=null,ap=!1,Tc=0,Ww=0,jc=1/0,Mc=null,Qi=null,zt=0,Ji=null,Hl=null,fi=0,lp=0,op=null,Qw=null,bu=0,up=null;function Bn(){return(Ye&2)!==0&&Le!==0?Le&-Le:L.T!==null?mp():mx()}function Jw(){if(Ln===0)if((Le&536870912)===0||Ue){var i=Bs;Bs<<=1,(Bs&3932160)===0&&(Bs=262144),Ln=i}else Ln=536870912;return i=Pn.current,i!==null&&(i.flags|=32),Ln}function En(i,l,s){(i===nt&&(Ge===2||Ge===9)||i.cancelPendingCommit!==null)&&($l(i,0),ea(i,Le,Ln,!1)),Uo(i,s),((Ye&2)===0||i!==nt)&&(i===nt&&((Ye&2)===0&&(Ia|=s),vt===4&&ea(i,Le,Ln,!1)),Nr(i))}function eS(i,l,s){if((Ye&6)!==0)throw Error(r(327));var h=!s&&(l&127)===0&&(l&i.expiredLanes)===0||Bo(i,l),v=h?rR(i,l):cp(i,l,!0),b=h;do{if(v===0){Ul&&!h&&ea(i,l,0,!1);break}else{if(s=i.current.alternate,b&&!tR(s)){v=cp(i,l,!1),b=!1;continue}if(v===2){if(b=l,i.errorRecoveryDisabledLanes&b)var A=0;else A=i.pendingLanes&-536870913,A=A!==0?A:A&536870912?536870912:0;if(A!==0){l=A;e:{var M=i;v=gu;var B=M.current.memoizedState.isDehydrated;if(B&&($l(M,A).flags|=256),A=cp(M,A,!1),A!==2){if(rp&&!B){M.errorRecoveryDisabledLanes|=b,Ia|=b,v=4;break e}b=On,On=v,b!==null&&(On===null?On=b:On.push.apply(On,b))}v=A}if(b=!1,v!==2)continue}}if(v===1){$l(i,0),ea(i,l,0,!0);break}e:{switch(h=i,b=v,b){case 0:case 1:throw Error(r(345));case 4:if((l&4194048)!==l)break;case 6:ea(h,l,Ln,!Zi);break e;case 2:On=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(v=Tc+300-un(),10<v)){if(ea(h,l,Ln,!Zi),qs(h,0,!0)!==0)break e;fi=l,h.timeoutHandle=MS(tS.bind(null,h,s,On,Mc,ap,l,Ln,Ia,ql,Zi,b,"Throttled",-0,0),v);break e}tS(h,s,On,Mc,ap,l,Ln,Ia,ql,Zi,b,null,-0,0)}}break}while(!0);Nr(i)}function tS(i,l,s,h,v,b,A,M,B,X,ie,ue,W,te){if(i.timeoutHandle=-1,ue=l.subtreeFlags,ue&8192||(ue&16785408)===16785408){ue={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zr},Kw(l,b,ue);var pe=(b&62914560)===b?Tc-un():(b&4194048)===b?Ww-un():0;if(pe=BR(ue,pe),pe!==null){fi=b,i.cancelPendingCommit=pe(sS.bind(null,i,l,b,s,h,v,A,M,B,ie,ue,null,W,te)),ea(i,b,A,!X);return}}sS(i,l,b,s,h,v,A,M,B)}function tR(i){for(var l=i;;){var s=l.tag;if((s===0||s===11||s===15)&&l.flags&16384&&(s=l.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var h=0;h<s.length;h++){var v=s[h],b=v.getSnapshot;v=v.value;try{if(!Dn(b(),v))return!1}catch{return!1}}if(s=l.child,l.subtreeFlags&16384&&s!==null)s.return=l,l=s;else{if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function ea(i,l,s,h){l&=~ip,l&=~Ia,i.suspendedLanes|=l,i.pingedLanes&=~l,h&&(i.warmLanes|=l),h=i.expirationTimes;for(var v=l;0<v;){var b=31-tt(v),A=1<<b;h[b]=-1,v&=~A}s!==0&&fx(i,s,l)}function zc(){return(Ye&6)===0?(xu(0),!1):!0}function sp(){if(Ne!==null){if(Ge===0)var i=Ne.return;else i=Ne,ei=Ca=null,Am(i),Dl=null,nu=0,i=Ne;for(;i!==null;)zw(i.alternate,i),i=i.return;Ne=null}}function $l(i,l){var s=i.timeoutHandle;s!==-1&&(i.timeoutHandle=-1,wR(s)),s=i.cancelPendingCommit,s!==null&&(i.cancelPendingCommit=null,s()),fi=0,sp(),nt=i,Ne=s=Qr(i.current,null),Le=l,Ge=0,In=null,Zi=!1,Ul=Bo(i,l),rp=!1,ql=Ln=ip=Ia=Wi=vt=0,On=gu=null,ap=!1,(l&8)!==0&&(l|=l&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=l;0<h;){var v=31-tt(h),b=1<<v;l|=i[v],h&=~b}return ci=l,Js(),s}function nS(i,l){je=null,L.H=cu,l===zl||l===oc?(l=g1(),Ge=3):l===hm?(l=g1(),Ge=4):Ge=l===qm?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,In=l,Ne===null&&(vt=1,wc(i,Qn(l,i.current)))}function rS(){var i=Pn.current;return i===null?!0:(Le&4194048)===Le?nr===null:(Le&62914560)===Le||(Le&536870912)!==0?i===nr:!1}function iS(){var i=L.H;return L.H=cu,i===null?cu:i}function aS(){var i=L.A;return L.A=JP,i}function Dc(){vt=4,Zi||(Le&4194048)!==Le&&Pn.current!==null||(Ul=!0),(Wi&134217727)===0&&(Ia&134217727)===0||nt===null||ea(nt,Le,Ln,!1)}function cp(i,l,s){var h=Ye;Ye|=2;var v=iS(),b=aS();(nt!==i||Le!==l)&&(Mc=null,$l(i,l)),l=!1;var A=vt;e:do try{if(Ge!==0&&Ne!==null){var M=Ne,B=In;switch(Ge){case 8:sp(),A=6;break e;case 3:case 2:case 9:case 6:Pn.current===null&&(l=!0);var X=Ge;if(Ge=0,In=null,Fl(i,M,B,X),s&&Ul){A=0;break e}break;default:X=Ge,Ge=0,In=null,Fl(i,M,B,X)}}nR(),A=vt;break}catch(ie){nS(i,ie)}while(!0);return l&&i.shellSuspendCounter++,ei=Ca=null,Ye=h,L.H=v,L.A=b,Ne===null&&(nt=null,Le=0,Js()),A}function nR(){for(;Ne!==null;)lS(Ne)}function rR(i,l){var s=Ye;Ye|=2;var h=iS(),v=aS();nt!==i||Le!==l?(Mc=null,jc=un()+500,$l(i,l)):Ul=Bo(i,l);e:do try{if(Ge!==0&&Ne!==null){l=Ne;var b=In;t:switch(Ge){case 1:Ge=0,In=null,Fl(i,l,b,1);break;case 2:case 9:if(v1(b)){Ge=0,In=null,oS(l);break}l=function(){Ge!==2&&Ge!==9||nt!==i||(Ge=7),Nr(i)},b.then(l,l);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:v1(b)?(Ge=0,In=null,oS(l)):(Ge=0,In=null,Fl(i,l,b,7));break;case 5:var A=null;switch(Ne.tag){case 26:A=Ne.memoizedState;case 5:case 27:var M=Ne;if(A?YS(A):M.stateNode.complete){Ge=0,In=null;var B=M.sibling;if(B!==null)Ne=B;else{var X=M.return;X!==null?(Ne=X,Nc(X)):Ne=null}break t}}Ge=0,In=null,Fl(i,l,b,5);break;case 6:Ge=0,In=null,Fl(i,l,b,6);break;case 8:sp(),vt=6;break e;default:throw Error(r(462))}}iR();break}catch(ie){nS(i,ie)}while(!0);return ei=Ca=null,L.H=h,L.A=v,Ye=s,Ne!==null?0:(nt=null,Le=0,Js(),vt)}function iR(){for(;Ne!==null&&!Oh();)lS(Ne)}function lS(i){var l=jw(i.alternate,i,ci);i.memoizedProps=i.pendingProps,l===null?Nc(i):Ne=l}function oS(i){var l=i,s=l.alternate;switch(l.tag){case 15:case 0:l=Ew(s,l,l.pendingProps,l.type,void 0,Le);break;case 11:l=Ew(s,l,l.pendingProps,l.type.render,l.ref,Le);break;case 5:Am(l);default:zw(s,l),l=Ne=a1(l,ci),l=jw(s,l,ci)}i.memoizedProps=i.pendingProps,l===null?Nc(i):Ne=l}function Fl(i,l,s,h){ei=Ca=null,Am(l),Dl=null,nu=0;var v=l.return;try{if(YP(i,v,l,s,Le)){vt=1,wc(i,Qn(s,i.current)),Ne=null;return}}catch(b){if(v!==null)throw Ne=v,b;vt=1,wc(i,Qn(s,i.current)),Ne=null;return}l.flags&32768?(Ue||h===1?i=!0:Ul||(Le&536870912)!==0?i=!1:(Zi=i=!0,(h===2||h===9||h===3||h===6)&&(h=Pn.current,h!==null&&h.tag===13&&(h.flags|=16384))),uS(l,i)):Nc(l)}function Nc(i){var l=i;do{if((l.flags&32768)!==0){uS(l,Zi);return}i=l.return;var s=XP(l.alternate,l,ci);if(s!==null){Ne=s;return}if(l=l.sibling,l!==null){Ne=l;return}Ne=l=i}while(l!==null);vt===0&&(vt=5)}function uS(i,l){do{var s=ZP(i.alternate,i);if(s!==null){s.flags&=32767,Ne=s;return}if(s=i.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!l&&(i=i.sibling,i!==null)){Ne=i;return}Ne=i=s}while(i!==null);vt=6,Ne=null}function sS(i,l,s,h,v,b,A,M,B){i.cancelPendingCommit=null;do Pc();while(zt!==0);if((Ye&6)!==0)throw Error(r(327));if(l!==null){if(l===i.current)throw Error(r(177));if(b=l.lanes|l.childLanes,b|=Qh,IN(i,s,b,A,M,B),i===nt&&(Ne=nt=null,Le=0),Hl=l,Ji=i,fi=s,lp=b,op=v,Qw=h,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,uR(_e,function(){return mS(),null})):(i.callbackNode=null,i.callbackPriority=0),h=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||h){h=L.T,L.T=null,v=K.p,K.p=2,A=Ye,Ye|=4;try{WP(i,l,s)}finally{Ye=A,K.p=v,L.T=h}}zt=1,cS(),fS(),dS()}}function cS(){if(zt===1){zt=0;var i=Ji,l=Hl,s=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||s){s=L.T,L.T=null;var h=K.p;K.p=2;var v=Ye;Ye|=4;try{Fw(l,i);var b=Sp,A=Zx(i.containerInfo),M=b.focusedElem,B=b.selectionRange;if(A!==M&&M&&M.ownerDocument&&Xx(M.ownerDocument.documentElement,M)){if(B!==null&&Kh(M)){var X=B.start,ie=B.end;if(ie===void 0&&(ie=X),"selectionStart"in M)M.selectionStart=X,M.selectionEnd=Math.min(ie,M.value.length);else{var ue=M.ownerDocument||document,W=ue&&ue.defaultView||window;if(W.getSelection){var te=W.getSelection(),pe=M.textContent.length,ke=Math.min(B.start,pe),Je=B.end===void 0?ke:Math.min(B.end,pe);!te.extend&&ke>Je&&(A=Je,Je=ke,ke=A);var F=Gx(M,ke),H=Gx(M,Je);if(F&&H&&(te.rangeCount!==1||te.anchorNode!==F.node||te.anchorOffset!==F.offset||te.focusNode!==H.node||te.focusOffset!==H.offset)){var G=ue.createRange();G.setStart(F.node,F.offset),te.removeAllRanges(),ke>Je?(te.addRange(G),te.extend(H.node,H.offset)):(G.setEnd(H.node,H.offset),te.addRange(G))}}}}for(ue=[],te=M;te=te.parentNode;)te.nodeType===1&&ue.push({element:te,left:te.scrollLeft,top:te.scrollTop});for(typeof M.focus=="function"&&M.focus(),M=0;M<ue.length;M++){var le=ue[M];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}Kc=!!wp,Sp=wp=null}finally{Ye=v,K.p=h,L.T=s}}i.current=l,zt=2}}function fS(){if(zt===2){zt=0;var i=Ji,l=Hl,s=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||s){s=L.T,L.T=null;var h=K.p;K.p=2;var v=Ye;Ye|=4;try{Bw(i,l.alternate,l)}finally{Ye=v,K.p=h,L.T=s}}zt=3}}function dS(){if(zt===4||zt===3){zt=0,Eh();var i=Ji,l=Hl,s=fi,h=Qw;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?zt=5:(zt=0,Hl=Ji=null,hS(i,i.pendingLanes));var v=i.pendingLanes;if(v===0&&(Qi=null),Ch(s),l=l.stateNode,Mt&&typeof Mt.onCommitFiberRoot=="function")try{Mt.onCommitFiberRoot(sn,l,void 0,(l.current.flags&128)===128)}catch{}if(h!==null){l=L.T,v=K.p,K.p=2,L.T=null;try{for(var b=i.onRecoverableError,A=0;A<h.length;A++){var M=h[A];b(M.value,{componentStack:M.stack})}}finally{L.T=l,K.p=v}}(fi&3)!==0&&Pc(),Nr(i),v=i.pendingLanes,(s&261930)!==0&&(v&42)!==0?i===up?bu++:(bu=0,up=i):bu=0,xu(0)}}function hS(i,l){(i.pooledCacheLanes&=l)===0&&(l=i.pooledCache,l!=null&&(i.pooledCache=null,eu(l)))}function Pc(){return cS(),fS(),dS(),mS()}function mS(){if(zt!==5)return!1;var i=Ji,l=lp;lp=0;var s=Ch(fi),h=L.T,v=K.p;try{K.p=32>s?32:s,L.T=null,s=op,op=null;var b=Ji,A=fi;if(zt=0,Hl=Ji=null,fi=0,(Ye&6)!==0)throw Error(r(331));var M=Ye;if(Ye|=4,Xw(b.current),Yw(b,b.current,A,s),Ye=M,xu(0,!1),Mt&&typeof Mt.onPostCommitFiberRoot=="function")try{Mt.onPostCommitFiberRoot(sn,b)}catch{}return!0}finally{K.p=v,L.T=h,hS(i,l)}}function pS(i,l,s){l=Qn(s,l),l=Um(i.stateNode,l,2),i=Yi(i,l,2),i!==null&&(Uo(i,2),Nr(i))}function Xe(i,l,s){if(i.tag===3)pS(i,i,s);else for(;l!==null;){if(l.tag===3){pS(l,i,s);break}else if(l.tag===1){var h=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Qi===null||!Qi.has(h))){i=Qn(s,i),s=vw(2),h=Yi(l,s,2),h!==null&&(yw(s,h,l,i),Uo(h,2),Nr(h));break}}l=l.return}}function fp(i,l,s){var h=i.pingCache;if(h===null){h=i.pingCache=new eR;var v=new Set;h.set(l,v)}else v=h.get(l),v===void 0&&(v=new Set,h.set(l,v));v.has(s)||(rp=!0,v.add(s),i=aR.bind(null,i,l,s),l.then(i,i))}function aR(i,l,s){var h=i.pingCache;h!==null&&h.delete(l),i.pingedLanes|=i.suspendedLanes&s,i.warmLanes&=~s,nt===i&&(Le&s)===s&&(vt===4||vt===3&&(Le&62914560)===Le&&300>un()-Tc?(Ye&2)===0&&$l(i,0):ip|=s,ql===Le&&(ql=0)),Nr(i)}function vS(i,l){l===0&&(l=cx()),i=Aa(i,l),i!==null&&(Uo(i,l),Nr(i))}function lR(i){var l=i.memoizedState,s=0;l!==null&&(s=l.retryLane),vS(i,s)}function oR(i,l){var s=0;switch(i.tag){case 31:case 13:var h=i.stateNode,v=i.memoizedState;v!==null&&(s=v.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(l),vS(i,s)}function uR(i,l){return fl(i,l)}var Rc=null,Vl=null,dp=!1,Ic=!1,hp=!1,ta=0;function Nr(i){i!==Vl&&i.next===null&&(Vl===null?Rc=Vl=i:Vl=Vl.next=i),Ic=!0,dp||(dp=!0,cR())}function xu(i,l){if(!hp&&Ic){hp=!0;do for(var s=!1,h=Rc;h!==null;){if(i!==0){var v=h.pendingLanes;if(v===0)var b=0;else{var A=h.suspendedLanes,M=h.pingedLanes;b=(1<<31-tt(42|i)+1)-1,b&=v&~(A&~M),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(s=!0,xS(h,b))}else b=Le,b=qs(h,h===nt?b:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(b&3)===0||Bo(h,b)||(s=!0,xS(h,b));h=h.next}while(s);hp=!1}}function sR(){yS()}function yS(){Ic=dp=!1;var i=0;ta!==0&&xR()&&(i=ta);for(var l=un(),s=null,h=Rc;h!==null;){var v=h.next,b=gS(h,l);b===0?(h.next=null,s===null?Rc=v:s.next=v,v===null&&(Vl=s)):(s=h,(i!==0||(b&3)!==0)&&(Ic=!0)),h=v}zt!==0&&zt!==5||xu(i),ta!==0&&(ta=0)}function gS(i,l){for(var s=i.suspendedLanes,h=i.pingedLanes,v=i.expirationTimes,b=i.pendingLanes&-62914561;0<b;){var A=31-tt(b),M=1<<A,B=v[A];B===-1?((M&s)===0||(M&h)!==0)&&(v[A]=RN(M,l)):B<=l&&(i.expiredLanes|=M),b&=~M}if(l=nt,s=Le,s=qs(i,i===l?s:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h=i.callbackNode,s===0||i===l&&(Ge===2||Ge===9)||i.cancelPendingCommit!==null)return h!==null&&h!==null&&Lo(h),i.callbackNode=null,i.callbackPriority=0;if((s&3)===0||Bo(i,s)){if(l=s&-s,l===i.callbackPriority)return l;switch(h!==null&&Lo(h),Ch(s)){case 2:case 8:s=de;break;case 32:s=_e;break;case 268435456:s=Ke;break;default:s=_e}return h=bS.bind(null,i),s=fl(s,h),i.callbackPriority=l,i.callbackNode=s,l}return h!==null&&h!==null&&Lo(h),i.callbackPriority=2,i.callbackNode=null,2}function bS(i,l){if(zt!==0&&zt!==5)return i.callbackNode=null,i.callbackPriority=0,null;var s=i.callbackNode;if(Pc()&&i.callbackNode!==s)return null;var h=Le;return h=qs(i,i===nt?h:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h===0?null:(eS(i,h,l),gS(i,un()),i.callbackNode!=null&&i.callbackNode===s?bS.bind(null,i):null)}function xS(i,l){if(Pc())return null;eS(i,l,!0)}function cR(){SR(function(){(Ye&6)!==0?fl(ae,sR):yS()})}function mp(){if(ta===0){var i=jl;i===0&&(i=Ls,Ls<<=1,(Ls&261888)===0&&(Ls=256)),ta=i}return ta}function wS(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Vs(""+i)}function SS(i,l){var s=l.ownerDocument.createElement("input");return s.name=l.name,s.value=l.value,i.id&&s.setAttribute("form",i.id),l.parentNode.insertBefore(s,l),i=new FormData(i),s.parentNode.removeChild(s),i}function fR(i,l,s,h,v){if(l==="submit"&&s&&s.stateNode===v){var b=wS((v[gn]||null).action),A=h.submitter;A&&(l=(l=A[gn]||null)?wS(l.formAction):A.getAttribute("formAction"),l!==null&&(b=l,A=null));var M=new Xs("action","action",null,h,v);i.push({event:M,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(ta!==0){var B=A?SS(v,A):new FormData(v);Nm(s,{pending:!0,data:B,method:v.method,action:b},null,B)}}else typeof b=="function"&&(M.preventDefault(),B=A?SS(v,A):new FormData(v),Nm(s,{pending:!0,data:B,method:v.method,action:b},b,B))},currentTarget:v}]})}}for(var pp=0;pp<Wh.length;pp++){var vp=Wh[pp],dR=vp.toLowerCase(),hR=vp[0].toUpperCase()+vp.slice(1);gr(dR,"on"+hR)}gr(Jx,"onAnimationEnd"),gr(e1,"onAnimationIteration"),gr(t1,"onAnimationStart"),gr("dblclick","onDoubleClick"),gr("focusin","onFocus"),gr("focusout","onBlur"),gr(TP,"onTransitionRun"),gr(jP,"onTransitionStart"),gr(MP,"onTransitionCancel"),gr(n1,"onTransitionEnd"),vl("onMouseEnter",["mouseout","mouseover"]),vl("onMouseLeave",["mouseout","mouseover"]),vl("onPointerEnter",["pointerout","pointerover"]),vl("onPointerLeave",["pointerout","pointerover"]),wa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wa("onBeforeInput",["compositionend","keypress","textInput","paste"]),wa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wu="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(" "),mR=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wu));function OS(i,l){l=(l&4)!==0;for(var s=0;s<i.length;s++){var h=i[s],v=h.event;h=h.listeners;e:{var b=void 0;if(l)for(var A=h.length-1;0<=A;A--){var M=h[A],B=M.instance,X=M.currentTarget;if(M=M.listener,B!==b&&v.isPropagationStopped())break e;b=M,v.currentTarget=X;try{b(v)}catch(ie){Qs(ie)}v.currentTarget=null,b=B}else for(A=0;A<h.length;A++){if(M=h[A],B=M.instance,X=M.currentTarget,M=M.listener,B!==b&&v.isPropagationStopped())break e;b=M,v.currentTarget=X;try{b(v)}catch(ie){Qs(ie)}v.currentTarget=null,b=B}}}}function Pe(i,l){var s=l[Th];s===void 0&&(s=l[Th]=new Set);var h=i+"__bubble";s.has(h)||(ES(l,i,2,!1),s.add(h))}function yp(i,l,s){var h=0;l&&(h|=4),ES(s,i,h,l)}var Lc="_reactListening"+Math.random().toString(36).slice(2);function gp(i){if(!i[Lc]){i[Lc]=!0,yx.forEach(function(s){s!=="selectionchange"&&(mR.has(s)||yp(s,!1,i),yp(s,!0,i))});var l=i.nodeType===9?i:i.ownerDocument;l===null||l[Lc]||(l[Lc]=!0,yp("selectionchange",!1,l))}}function ES(i,l,s,h){switch(JS(l)){case 2:var v=HR;break;case 8:v=$R;break;default:v=Dp}s=v.bind(null,l,s,i),v=void 0,!Lh||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(v=!0),h?v!==void 0?i.addEventListener(l,s,{capture:!0,passive:v}):i.addEventListener(l,s,!0):v!==void 0?i.addEventListener(l,s,{passive:v}):i.addEventListener(l,s,!1)}function bp(i,l,s,h,v){var b=h;if((l&1)===0&&(l&2)===0&&h!==null)e:for(;;){if(h===null)return;var A=h.tag;if(A===3||A===4){var M=h.stateNode.containerInfo;if(M===v)break;if(A===4)for(A=h.return;A!==null;){var B=A.tag;if((B===3||B===4)&&A.stateNode.containerInfo===v)return;A=A.return}for(;M!==null;){if(A=hl(M),A===null)return;if(B=A.tag,B===5||B===6||B===26||B===27){h=b=A;continue e}M=M.parentNode}}h=h.return}Tx(function(){var X=b,ie=Rh(s),ue=[];e:{var W=r1.get(i);if(W!==void 0){var te=Xs,pe=i;switch(i){case"keypress":if(Ks(s)===0)break e;case"keydown":case"keyup":te=oP;break;case"focusin":pe="focus",te=Hh;break;case"focusout":pe="blur",te=Hh;break;case"beforeblur":case"afterblur":te=Hh;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":te=zx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":te=XN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":te=cP;break;case Jx:case e1:case t1:te=QN;break;case n1:te=dP;break;case"scroll":case"scrollend":te=KN;break;case"wheel":te=mP;break;case"copy":case"cut":case"paste":te=eP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":te=Nx;break;case"toggle":case"beforetoggle":te=vP}var ke=(l&4)!==0,Je=!ke&&(i==="scroll"||i==="scrollend"),F=ke?W!==null?W+"Capture":null:W;ke=[];for(var H=X,G;H!==null;){var le=H;if(G=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||G===null||F===null||(le=$o(H,F),le!=null&&ke.push(Su(H,le,G))),Je)break;H=H.return}0<ke.length&&(W=new te(W,pe,null,s,ie),ue.push({event:W,listeners:ke}))}}if((l&7)===0){e:{if(W=i==="mouseover"||i==="pointerover",te=i==="mouseout"||i==="pointerout",W&&s!==Ph&&(pe=s.relatedTarget||s.fromElement)&&(hl(pe)||pe[dl]))break e;if((te||W)&&(W=ie.window===ie?ie:(W=ie.ownerDocument)?W.defaultView||W.parentWindow:window,te?(pe=s.relatedTarget||s.toElement,te=X,pe=pe?hl(pe):null,pe!==null&&(Je=o(pe),ke=pe.tag,pe!==Je||ke!==5&&ke!==27&&ke!==6)&&(pe=null)):(te=null,pe=X),te!==pe)){if(ke=zx,le="onMouseLeave",F="onMouseEnter",H="mouse",(i==="pointerout"||i==="pointerover")&&(ke=Nx,le="onPointerLeave",F="onPointerEnter",H="pointer"),Je=te==null?W:Ho(te),G=pe==null?W:Ho(pe),W=new ke(le,H+"leave",te,s,ie),W.target=Je,W.relatedTarget=G,le=null,hl(ie)===X&&(ke=new ke(F,H+"enter",pe,s,ie),ke.target=G,ke.relatedTarget=Je,le=ke),Je=le,te&&pe)t:{for(ke=pR,F=te,H=pe,G=0,le=F;le;le=ke(le))G++;le=0;for(var Oe=H;Oe;Oe=ke(Oe))le++;for(;0<G-le;)F=ke(F),G--;for(;0<le-G;)H=ke(H),le--;for(;G--;){if(F===H||H!==null&&F===H.alternate){ke=F;break t}F=ke(F),H=ke(H)}ke=null}else ke=null;te!==null&&AS(ue,W,te,ke,!1),pe!==null&&Je!==null&&AS(ue,Je,pe,ke,!0)}}e:{if(W=X?Ho(X):window,te=W.nodeName&&W.nodeName.toLowerCase(),te==="select"||te==="input"&&W.type==="file")var $e=Hx;else if(Ux(W))if($x)$e=kP;else{$e=EP;var xe=OP}else te=W.nodeName,!te||te.toLowerCase()!=="input"||W.type!=="checkbox"&&W.type!=="radio"?X&&Nh(X.elementType)&&($e=Hx):$e=AP;if($e&&($e=$e(i,X))){qx(ue,$e,s,ie);break e}xe&&xe(i,W,X),i==="focusout"&&X&&W.type==="number"&&X.memoizedProps.value!=null&&Dh(W,"number",W.value)}switch(xe=X?Ho(X):window,i){case"focusin":(Ux(xe)||xe.contentEditable==="true")&&(Sl=xe,Gh=X,Wo=null);break;case"focusout":Wo=Gh=Sl=null;break;case"mousedown":Xh=!0;break;case"contextmenu":case"mouseup":case"dragend":Xh=!1,Wx(ue,s,ie);break;case"selectionchange":if(CP)break;case"keydown":case"keyup":Wx(ue,s,ie)}var Me;if(Fh)e:{switch(i){case"compositionstart":var Be="onCompositionStart";break e;case"compositionend":Be="onCompositionEnd";break e;case"compositionupdate":Be="onCompositionUpdate";break e}Be=void 0}else wl?Lx(i,s)&&(Be="onCompositionEnd"):i==="keydown"&&s.keyCode===229&&(Be="onCompositionStart");Be&&(Px&&s.locale!=="ko"&&(wl||Be!=="onCompositionStart"?Be==="onCompositionEnd"&&wl&&(Me=jx()):(Bi=ie,Bh="value"in Bi?Bi.value:Bi.textContent,wl=!0)),xe=Bc(X,Be),0<xe.length&&(Be=new Dx(Be,i,null,s,ie),ue.push({event:Be,listeners:xe}),Me?Be.data=Me:(Me=Bx(s),Me!==null&&(Be.data=Me)))),(Me=gP?bP(i,s):xP(i,s))&&(Be=Bc(X,"onBeforeInput"),0<Be.length&&(xe=new Dx("onBeforeInput","beforeinput",null,s,ie),ue.push({event:xe,listeners:Be}),xe.data=Me)),fR(ue,i,X,s,ie)}OS(ue,l)})}function Su(i,l,s){return{instance:i,listener:l,currentTarget:s}}function Bc(i,l){for(var s=l+"Capture",h=[];i!==null;){var v=i,b=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||b===null||(v=$o(i,s),v!=null&&h.unshift(Su(i,v,b)),v=$o(i,l),v!=null&&h.push(Su(i,v,b))),i.tag===3)return h;i=i.return}return[]}function pR(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function AS(i,l,s,h,v){for(var b=l._reactName,A=[];s!==null&&s!==h;){var M=s,B=M.alternate,X=M.stateNode;if(M=M.tag,B!==null&&B===h)break;M!==5&&M!==26&&M!==27||X===null||(B=X,v?(X=$o(s,b),X!=null&&A.unshift(Su(s,X,B))):v||(X=$o(s,b),X!=null&&A.push(Su(s,X,B)))),s=s.return}A.length!==0&&i.push({event:l,listeners:A})}var vR=/\r\n?/g,yR=/\u0000|\uFFFD/g;function kS(i){return(typeof i=="string"?i:""+i).replace(vR,`
`).replace(yR,"")}function _S(i,l){return l=kS(l),kS(i)===l}function Qe(i,l,s,h,v,b){switch(s){case"children":typeof h=="string"?l==="body"||l==="textarea"&&h===""||gl(i,h):(typeof h=="number"||typeof h=="bigint")&&l!=="body"&&gl(i,""+h);break;case"className":$s(i,"class",h);break;case"tabIndex":$s(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":$s(i,s,h);break;case"style":_x(i,h,b);break;case"data":if(l!=="object"){$s(i,"data",h);break}case"src":case"href":if(h===""&&(l!=="a"||s!=="href")){i.removeAttribute(s);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(s);break}h=Vs(""+h),i.setAttribute(s,h);break;case"action":case"formAction":if(typeof h=="function"){i.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof b=="function"&&(s==="formAction"?(l!=="input"&&Qe(i,l,"name",v.name,v,null),Qe(i,l,"formEncType",v.formEncType,v,null),Qe(i,l,"formMethod",v.formMethod,v,null),Qe(i,l,"formTarget",v.formTarget,v,null)):(Qe(i,l,"encType",v.encType,v,null),Qe(i,l,"method",v.method,v,null),Qe(i,l,"target",v.target,v,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(s);break}h=Vs(""+h),i.setAttribute(s,h);break;case"onClick":h!=null&&(i.onclick=Zr);break;case"onScroll":h!=null&&Pe("scroll",i);break;case"onScrollEnd":h!=null&&Pe("scrollend",i);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(s=h.__html,s!=null){if(v.children!=null)throw Error(r(60));i.innerHTML=s}}break;case"multiple":i.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":i.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){i.removeAttribute("xlink:href");break}s=Vs(""+h),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(s,""+h):i.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(s,""):i.removeAttribute(s);break;case"capture":case"download":h===!0?i.setAttribute(s,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(s,h):i.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?i.setAttribute(s,h):i.removeAttribute(s);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?i.removeAttribute(s):i.setAttribute(s,h);break;case"popover":Pe("beforetoggle",i),Pe("toggle",i),Hs(i,"popover",h);break;case"xlinkActuate":Xr(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":Xr(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":Xr(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":Xr(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":Xr(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":Xr(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":Xr(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":Xr(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":Xr(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":Hs(i,"is",h);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=VN.get(s)||s,Hs(i,s,h))}}function xp(i,l,s,h,v,b){switch(s){case"style":_x(i,h,b);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(s=h.__html,s!=null){if(v.children!=null)throw Error(r(60));i.innerHTML=s}}break;case"children":typeof h=="string"?gl(i,h):(typeof h=="number"||typeof h=="bigint")&&gl(i,""+h);break;case"onScroll":h!=null&&Pe("scroll",i);break;case"onScrollEnd":h!=null&&Pe("scrollend",i);break;case"onClick":h!=null&&(i.onclick=Zr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!gx.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(v=s.endsWith("Capture"),l=s.slice(2,v?s.length-7:void 0),b=i[gn]||null,b=b!=null?b[s]:null,typeof b=="function"&&i.removeEventListener(l,b,v),typeof h=="function")){typeof b!="function"&&b!==null&&(s in i?i[s]=null:i.hasAttribute(s)&&i.removeAttribute(s)),i.addEventListener(l,h,v);break e}s in i?i[s]=h:h===!0?i.setAttribute(s,""):Hs(i,s,h)}}}function Zt(i,l,s){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pe("error",i),Pe("load",i);var h=!1,v=!1,b;for(b in s)if(s.hasOwnProperty(b)){var A=s[b];if(A!=null)switch(b){case"src":h=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Qe(i,l,b,A,s,null)}}v&&Qe(i,l,"srcSet",s.srcSet,s,null),h&&Qe(i,l,"src",s.src,s,null);return;case"input":Pe("invalid",i);var M=b=A=v=null,B=null,X=null;for(h in s)if(s.hasOwnProperty(h)){var ie=s[h];if(ie!=null)switch(h){case"name":v=ie;break;case"type":A=ie;break;case"checked":B=ie;break;case"defaultChecked":X=ie;break;case"value":b=ie;break;case"defaultValue":M=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(r(137,l));break;default:Qe(i,l,h,ie,s,null)}}Ox(i,b,M,B,X,A,v,!1);return;case"select":Pe("invalid",i),h=A=b=null;for(v in s)if(s.hasOwnProperty(v)&&(M=s[v],M!=null))switch(v){case"value":b=M;break;case"defaultValue":A=M;break;case"multiple":h=M;default:Qe(i,l,v,M,s,null)}l=b,s=A,i.multiple=!!h,l!=null?yl(i,!!h,l,!1):s!=null&&yl(i,!!h,s,!0);return;case"textarea":Pe("invalid",i),b=v=h=null;for(A in s)if(s.hasOwnProperty(A)&&(M=s[A],M!=null))switch(A){case"value":h=M;break;case"defaultValue":v=M;break;case"children":b=M;break;case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(91));break;default:Qe(i,l,A,M,s,null)}Ax(i,h,v,b);return;case"option":for(B in s)if(s.hasOwnProperty(B)&&(h=s[B],h!=null))switch(B){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:Qe(i,l,B,h,s,null)}return;case"dialog":Pe("beforetoggle",i),Pe("toggle",i),Pe("cancel",i),Pe("close",i);break;case"iframe":case"object":Pe("load",i);break;case"video":case"audio":for(h=0;h<wu.length;h++)Pe(wu[h],i);break;case"image":Pe("error",i),Pe("load",i);break;case"details":Pe("toggle",i);break;case"embed":case"source":case"link":Pe("error",i),Pe("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(X in s)if(s.hasOwnProperty(X)&&(h=s[X],h!=null))switch(X){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Qe(i,l,X,h,s,null)}return;default:if(Nh(l)){for(ie in s)s.hasOwnProperty(ie)&&(h=s[ie],h!==void 0&&xp(i,l,ie,h,s,void 0));return}}for(M in s)s.hasOwnProperty(M)&&(h=s[M],h!=null&&Qe(i,l,M,h,s,null))}function gR(i,l,s,h){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,b=null,A=null,M=null,B=null,X=null,ie=null;for(te in s){var ue=s[te];if(s.hasOwnProperty(te)&&ue!=null)switch(te){case"checked":break;case"value":break;case"defaultValue":B=ue;default:h.hasOwnProperty(te)||Qe(i,l,te,null,h,ue)}}for(var W in h){var te=h[W];if(ue=s[W],h.hasOwnProperty(W)&&(te!=null||ue!=null))switch(W){case"type":b=te;break;case"name":v=te;break;case"checked":X=te;break;case"defaultChecked":ie=te;break;case"value":A=te;break;case"defaultValue":M=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(r(137,l));break;default:te!==ue&&Qe(i,l,W,te,h,ue)}}zh(i,A,M,B,X,ie,b,v);return;case"select":te=A=M=W=null;for(b in s)if(B=s[b],s.hasOwnProperty(b)&&B!=null)switch(b){case"value":break;case"multiple":te=B;default:h.hasOwnProperty(b)||Qe(i,l,b,null,h,B)}for(v in h)if(b=h[v],B=s[v],h.hasOwnProperty(v)&&(b!=null||B!=null))switch(v){case"value":W=b;break;case"defaultValue":M=b;break;case"multiple":A=b;default:b!==B&&Qe(i,l,v,b,h,B)}l=M,s=A,h=te,W!=null?yl(i,!!s,W,!1):!!h!=!!s&&(l!=null?yl(i,!!s,l,!0):yl(i,!!s,s?[]:"",!1));return;case"textarea":te=W=null;for(M in s)if(v=s[M],s.hasOwnProperty(M)&&v!=null&&!h.hasOwnProperty(M))switch(M){case"value":break;case"children":break;default:Qe(i,l,M,null,h,v)}for(A in h)if(v=h[A],b=s[A],h.hasOwnProperty(A)&&(v!=null||b!=null))switch(A){case"value":W=v;break;case"defaultValue":te=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==b&&Qe(i,l,A,v,h,b)}Ex(i,W,te);return;case"option":for(var pe in s)if(W=s[pe],s.hasOwnProperty(pe)&&W!=null&&!h.hasOwnProperty(pe))switch(pe){case"selected":i.selected=!1;break;default:Qe(i,l,pe,null,h,W)}for(B in h)if(W=h[B],te=s[B],h.hasOwnProperty(B)&&W!==te&&(W!=null||te!=null))switch(B){case"selected":i.selected=W&&typeof W!="function"&&typeof W!="symbol";break;default:Qe(i,l,B,W,h,te)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ke in s)W=s[ke],s.hasOwnProperty(ke)&&W!=null&&!h.hasOwnProperty(ke)&&Qe(i,l,ke,null,h,W);for(X in h)if(W=h[X],te=s[X],h.hasOwnProperty(X)&&W!==te&&(W!=null||te!=null))switch(X){case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(r(137,l));break;default:Qe(i,l,X,W,h,te)}return;default:if(Nh(l)){for(var Je in s)W=s[Je],s.hasOwnProperty(Je)&&W!==void 0&&!h.hasOwnProperty(Je)&&xp(i,l,Je,void 0,h,W);for(ie in h)W=h[ie],te=s[ie],!h.hasOwnProperty(ie)||W===te||W===void 0&&te===void 0||xp(i,l,ie,W,h,te);return}}for(var F in s)W=s[F],s.hasOwnProperty(F)&&W!=null&&!h.hasOwnProperty(F)&&Qe(i,l,F,null,h,W);for(ue in h)W=h[ue],te=s[ue],!h.hasOwnProperty(ue)||W===te||W==null&&te==null||Qe(i,l,ue,W,h,te)}function CS(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function bR(){if(typeof performance.getEntriesByType=="function"){for(var i=0,l=0,s=performance.getEntriesByType("resource"),h=0;h<s.length;h++){var v=s[h],b=v.transferSize,A=v.initiatorType,M=v.duration;if(b&&M&&CS(A)){for(A=0,M=v.responseEnd,h+=1;h<s.length;h++){var B=s[h],X=B.startTime;if(X>M)break;var ie=B.transferSize,ue=B.initiatorType;ie&&CS(ue)&&(B=B.responseEnd,A+=ie*(B<M?1:(M-X)/(B-X)))}if(--h,l+=8*(b+A)/(v.duration/1e3),i++,10<i)break}}if(0<i)return l/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var wp=null,Sp=null;function Uc(i){return i.nodeType===9?i:i.ownerDocument}function TS(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function jS(i,l){if(i===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&l==="foreignObject"?0:i}function Op(i,l){return i==="textarea"||i==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Ep=null;function xR(){var i=window.event;return i&&i.type==="popstate"?i===Ep?!1:(Ep=i,!0):(Ep=null,!1)}var MS=typeof setTimeout=="function"?setTimeout:void 0,wR=typeof clearTimeout=="function"?clearTimeout:void 0,zS=typeof Promise=="function"?Promise:void 0,SR=typeof queueMicrotask=="function"?queueMicrotask:typeof zS<"u"?function(i){return zS.resolve(null).then(i).catch(OR)}:MS;function OR(i){setTimeout(function(){throw i})}function na(i){return i==="head"}function DS(i,l){var s=l,h=0;do{var v=s.nextSibling;if(i.removeChild(s),v&&v.nodeType===8)if(s=v.data,s==="/$"||s==="/&"){if(h===0){i.removeChild(v),Xl(l);return}h--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")h++;else if(s==="html")Ou(i.ownerDocument.documentElement);else if(s==="head"){s=i.ownerDocument.head,Ou(s);for(var b=s.firstChild;b;){var A=b.nextSibling,M=b.nodeName;b[qo]||M==="SCRIPT"||M==="STYLE"||M==="LINK"&&b.rel.toLowerCase()==="stylesheet"||s.removeChild(b),b=A}}else s==="body"&&Ou(i.ownerDocument.body);s=v}while(s);Xl(l)}function NS(i,l){var s=i;i=0;do{var h=s.nextSibling;if(s.nodeType===1?l?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(l?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),h&&h.nodeType===8)if(s=h.data,s==="/$"){if(i===0)break;i--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||i++;s=h}while(s)}function Ap(i){var l=i.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var s=l;switch(l=l.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Ap(s),jh(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}i.removeChild(s)}}function ER(i,l,s,h){for(;i.nodeType===1;){var v=s;if(i.nodeName.toLowerCase()!==l.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[qo])switch(l){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(b=i.getAttribute("rel"),b==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(b!==v.rel||i.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||i.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||i.getAttribute("title")!==(v.title==null?null:v.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(b=i.getAttribute("src"),(b!==(v.src==null?null:v.src)||i.getAttribute("type")!==(v.type==null?null:v.type)||i.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&b&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(l==="input"&&i.type==="hidden"){var b=v.name==null?null:""+v.name;if(v.type==="hidden"&&i.getAttribute("name")===b)return i}else return i;if(i=rr(i.nextSibling),i===null)break}return null}function AR(i,l,s){if(l==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!s||(i=rr(i.nextSibling),i===null))return null;return i}function PS(i,l){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!l||(i=rr(i.nextSibling),i===null))return null;return i}function kp(i){return i.data==="$?"||i.data==="$~"}function _p(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function kR(i,l){var s=i.ownerDocument;if(i.data==="$~")i._reactRetry=l;else if(i.data!=="$?"||s.readyState!=="loading")l();else{var h=function(){l(),s.removeEventListener("DOMContentLoaded",h)};s.addEventListener("DOMContentLoaded",h),i._reactRetry=h}}function rr(i){for(;i!=null;i=i.nextSibling){var l=i.nodeType;if(l===1||l===3)break;if(l===8){if(l=i.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return i}var Cp=null;function RS(i){i=i.nextSibling;for(var l=0;i;){if(i.nodeType===8){var s=i.data;if(s==="/$"||s==="/&"){if(l===0)return rr(i.nextSibling);l--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||l++}i=i.nextSibling}return null}function IS(i){i=i.previousSibling;for(var l=0;i;){if(i.nodeType===8){var s=i.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(l===0)return i;l--}else s!=="/$"&&s!=="/&"||l++}i=i.previousSibling}return null}function LS(i,l,s){switch(l=Uc(s),i){case"html":if(i=l.documentElement,!i)throw Error(r(452));return i;case"head":if(i=l.head,!i)throw Error(r(453));return i;case"body":if(i=l.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function Ou(i){for(var l=i.attributes;l.length;)i.removeAttributeNode(l[0]);jh(i)}var ir=new Map,BS=new Set;function qc(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var di=K.d;K.d={f:_R,r:CR,D:TR,C:jR,L:MR,m:zR,X:NR,S:DR,M:PR};function _R(){var i=di.f(),l=zc();return i||l}function CR(i){var l=ml(i);l!==null&&l.tag===5&&l.type==="form"?nw(l):di.r(i)}var Yl=typeof document>"u"?null:document;function US(i,l,s){var h=Yl;if(h&&typeof l=="string"&&l){var v=Zn(l);v='link[rel="'+i+'"][href="'+v+'"]',typeof s=="string"&&(v+='[crossorigin="'+s+'"]'),BS.has(v)||(BS.add(v),i={rel:i,crossOrigin:s,href:l},h.querySelector(v)===null&&(l=h.createElement("link"),Zt(l,"link",i),Rt(l),h.head.appendChild(l)))}}function TR(i){di.D(i),US("dns-prefetch",i,null)}function jR(i,l){di.C(i,l),US("preconnect",i,l)}function MR(i,l,s){di.L(i,l,s);var h=Yl;if(h&&i&&l){var v='link[rel="preload"][as="'+Zn(l)+'"]';l==="image"&&s&&s.imageSrcSet?(v+='[imagesrcset="'+Zn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(v+='[imagesizes="'+Zn(s.imageSizes)+'"]')):v+='[href="'+Zn(i)+'"]';var b=v;switch(l){case"style":b=Kl(i);break;case"script":b=Gl(i)}ir.has(b)||(i=p({rel:"preload",href:l==="image"&&s&&s.imageSrcSet?void 0:i,as:l},s),ir.set(b,i),h.querySelector(v)!==null||l==="style"&&h.querySelector(Eu(b))||l==="script"&&h.querySelector(Au(b))||(l=h.createElement("link"),Zt(l,"link",i),Rt(l),h.head.appendChild(l)))}}function zR(i,l){di.m(i,l);var s=Yl;if(s&&i){var h=l&&typeof l.as=="string"?l.as:"script",v='link[rel="modulepreload"][as="'+Zn(h)+'"][href="'+Zn(i)+'"]',b=v;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=Gl(i)}if(!ir.has(b)&&(i=p({rel:"modulepreload",href:i},l),ir.set(b,i),s.querySelector(v)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Au(b)))return}h=s.createElement("link"),Zt(h,"link",i),Rt(h),s.head.appendChild(h)}}}function DR(i,l,s){di.S(i,l,s);var h=Yl;if(h&&i){var v=pl(h).hoistableStyles,b=Kl(i);l=l||"default";var A=v.get(b);if(!A){var M={loading:0,preload:null};if(A=h.querySelector(Eu(b)))M.loading=5;else{i=p({rel:"stylesheet",href:i,"data-precedence":l},s),(s=ir.get(b))&&Tp(i,s);var B=A=h.createElement("link");Rt(B),Zt(B,"link",i),B._p=new Promise(function(X,ie){B.onload=X,B.onerror=ie}),B.addEventListener("load",function(){M.loading|=1}),B.addEventListener("error",function(){M.loading|=2}),M.loading|=4,Hc(A,l,h)}A={type:"stylesheet",instance:A,count:1,state:M},v.set(b,A)}}}function NR(i,l){di.X(i,l);var s=Yl;if(s&&i){var h=pl(s).hoistableScripts,v=Gl(i),b=h.get(v);b||(b=s.querySelector(Au(v)),b||(i=p({src:i,async:!0},l),(l=ir.get(v))&&jp(i,l),b=s.createElement("script"),Rt(b),Zt(b,"link",i),s.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(v,b))}}function PR(i,l){di.M(i,l);var s=Yl;if(s&&i){var h=pl(s).hoistableScripts,v=Gl(i),b=h.get(v);b||(b=s.querySelector(Au(v)),b||(i=p({src:i,async:!0,type:"module"},l),(l=ir.get(v))&&jp(i,l),b=s.createElement("script"),Rt(b),Zt(b,"link",i),s.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(v,b))}}function qS(i,l,s,h){var v=(v=ve.current)?qc(v):null;if(!v)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(l=Kl(s.href),s=pl(v).hoistableStyles,h=s.get(l),h||(h={type:"style",instance:null,count:0,state:null},s.set(l,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){i=Kl(s.href);var b=pl(v).hoistableStyles,A=b.get(i);if(A||(v=v.ownerDocument||v,A={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(i,A),(b=v.querySelector(Eu(i)))&&!b._p&&(A.instance=b,A.state.loading=5),ir.has(i)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},ir.set(i,s),b||RR(v,i,s,A.state))),l&&h===null)throw Error(r(528,""));return A}if(l&&h!==null)throw Error(r(529,""));return null;case"script":return l=s.async,s=s.src,typeof s=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Gl(s),s=pl(v).hoistableScripts,h=s.get(l),h||(h={type:"script",instance:null,count:0,state:null},s.set(l,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function Kl(i){return'href="'+Zn(i)+'"'}function Eu(i){return'link[rel="stylesheet"]['+i+"]"}function HS(i){return p({},i,{"data-precedence":i.precedence,precedence:null})}function RR(i,l,s,h){i.querySelector('link[rel="preload"][as="style"]['+l+"]")?h.loading=1:(l=i.createElement("link"),h.preload=l,l.addEventListener("load",function(){return h.loading|=1}),l.addEventListener("error",function(){return h.loading|=2}),Zt(l,"link",s),Rt(l),i.head.appendChild(l))}function Gl(i){return'[src="'+Zn(i)+'"]'}function Au(i){return"script[async]"+i}function $S(i,l,s){if(l.count++,l.instance===null)switch(l.type){case"style":var h=i.querySelector('style[data-href~="'+Zn(s.href)+'"]');if(h)return l.instance=h,Rt(h),h;var v=p({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),Rt(h),Zt(h,"style",v),Hc(h,s.precedence,i),l.instance=h;case"stylesheet":v=Kl(s.href);var b=i.querySelector(Eu(v));if(b)return l.state.loading|=4,l.instance=b,Rt(b),b;h=HS(s),(v=ir.get(v))&&Tp(h,v),b=(i.ownerDocument||i).createElement("link"),Rt(b);var A=b;return A._p=new Promise(function(M,B){A.onload=M,A.onerror=B}),Zt(b,"link",h),l.state.loading|=4,Hc(b,s.precedence,i),l.instance=b;case"script":return b=Gl(s.src),(v=i.querySelector(Au(b)))?(l.instance=v,Rt(v),v):(h=s,(v=ir.get(b))&&(h=p({},s),jp(h,v)),i=i.ownerDocument||i,v=i.createElement("script"),Rt(v),Zt(v,"link",h),i.head.appendChild(v),l.instance=v);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(h=l.instance,l.state.loading|=4,Hc(h,s.precedence,i));return l.instance}function Hc(i,l,s){for(var h=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=h.length?h[h.length-1]:null,b=v,A=0;A<h.length;A++){var M=h[A];if(M.dataset.precedence===l)b=M;else if(b!==v)break}b?b.parentNode.insertBefore(i,b.nextSibling):(l=s.nodeType===9?s.head:s,l.insertBefore(i,l.firstChild))}function Tp(i,l){i.crossOrigin==null&&(i.crossOrigin=l.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=l.referrerPolicy),i.title==null&&(i.title=l.title)}function jp(i,l){i.crossOrigin==null&&(i.crossOrigin=l.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=l.referrerPolicy),i.integrity==null&&(i.integrity=l.integrity)}var $c=null;function FS(i,l,s){if($c===null){var h=new Map,v=$c=new Map;v.set(s,h)}else v=$c,h=v.get(s),h||(h=new Map,v.set(s,h));if(h.has(i))return h;for(h.set(i,null),s=s.getElementsByTagName(i),v=0;v<s.length;v++){var b=s[v];if(!(b[qo]||b[Yt]||i==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var A=b.getAttribute(l)||"";A=i+A;var M=h.get(A);M?M.push(b):h.set(A,[b])}}return h}function VS(i,l,s){i=i.ownerDocument||i,i.head.insertBefore(s,l==="title"?i.querySelector("head > title"):null)}function IR(i,l,s){if(s===1||l.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return i=l.disabled,typeof l.precedence=="string"&&i==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function YS(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function LR(i,l,s,h){if(s.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var v=Kl(h.href),b=l.querySelector(Eu(v));if(b){l=b._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(i.count++,i=Fc.bind(i),l.then(i,i)),s.state.loading|=4,s.instance=b,Rt(b);return}b=l.ownerDocument||l,h=HS(h),(v=ir.get(v))&&Tp(h,v),b=b.createElement("link"),Rt(b);var A=b;A._p=new Promise(function(M,B){A.onload=M,A.onerror=B}),Zt(b,"link",h),s.instance=b}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(s,l),(l=s.state.preload)&&(s.state.loading&3)===0&&(i.count++,s=Fc.bind(i),l.addEventListener("load",s),l.addEventListener("error",s))}}var Mp=0;function BR(i,l){return i.stylesheets&&i.count===0&&Yc(i,i.stylesheets),0<i.count||0<i.imgCount?function(s){var h=setTimeout(function(){if(i.stylesheets&&Yc(i,i.stylesheets),i.unsuspend){var b=i.unsuspend;i.unsuspend=null,b()}},6e4+l);0<i.imgBytes&&Mp===0&&(Mp=62500*bR());var v=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&Yc(i,i.stylesheets),i.unsuspend)){var b=i.unsuspend;i.unsuspend=null,b()}},(i.imgBytes>Mp?50:800)+l);return i.unsuspend=s,function(){i.unsuspend=null,clearTimeout(h),clearTimeout(v)}}:null}function Fc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Yc(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Vc=null;function Yc(i,l){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Vc=new Map,l.forEach(UR,i),Vc=null,Fc.call(i))}function UR(i,l){if(!(l.state.loading&4)){var s=Vc.get(i);if(s)var h=s.get(null);else{s=new Map,Vc.set(i,s);for(var v=i.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<v.length;b++){var A=v[b];(A.nodeName==="LINK"||A.getAttribute("media")!=="not all")&&(s.set(A.dataset.precedence,A),h=A)}h&&s.set(null,h)}v=l.instance,A=v.getAttribute("data-precedence"),b=s.get(A)||h,b===h&&s.set(null,v),s.set(A,v),this.count++,h=Fc.bind(this),v.addEventListener("load",h),v.addEventListener("error",h),b?b.parentNode.insertBefore(v,b.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(v,i.firstChild)),l.state.loading|=4}}var ku={$$typeof:T,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function qR(i,l,s,h,v,b,A,M,B){this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=kh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kh(0),this.hiddenUpdates=kh(null),this.identifierPrefix=h,this.onUncaughtError=v,this.onCaughtError=b,this.onRecoverableError=A,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=B,this.incompleteTransitions=new Map}function KS(i,l,s,h,v,b,A,M,B,X,ie,ue){return i=new qR(i,l,s,A,B,X,ie,ue,M),l=1,b===!0&&(l|=24),b=Nn(3,null,null,l),i.current=b,b.stateNode=i,l=cm(),l.refCount++,i.pooledCache=l,l.refCount++,b.memoizedState={element:h,isDehydrated:s,cache:l},mm(b),i}function GS(i){return i?(i=Al,i):Al}function XS(i,l,s,h,v,b){v=GS(v),h.context===null?h.context=v:h.pendingContext=v,h=Vi(l),h.payload={element:s},b=b===void 0?null:b,b!==null&&(h.callback=b),s=Yi(i,h,l),s!==null&&(En(s,i,l),iu(s,i,l))}function ZS(i,l){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var s=i.retryLane;i.retryLane=s!==0&&s<l?s:l}}function zp(i,l){ZS(i,l),(i=i.alternate)&&ZS(i,l)}function WS(i){if(i.tag===13||i.tag===31){var l=Aa(i,67108864);l!==null&&En(l,i,67108864),zp(i,67108864)}}function QS(i){if(i.tag===13||i.tag===31){var l=Bn();l=_h(l);var s=Aa(i,l);s!==null&&En(s,i,l),zp(i,l)}}var Kc=!0;function HR(i,l,s,h){var v=L.T;L.T=null;var b=K.p;try{K.p=2,Dp(i,l,s,h)}finally{K.p=b,L.T=v}}function $R(i,l,s,h){var v=L.T;L.T=null;var b=K.p;try{K.p=8,Dp(i,l,s,h)}finally{K.p=b,L.T=v}}function Dp(i,l,s,h){if(Kc){var v=Np(h);if(v===null)bp(i,l,h,Gc,s),eO(i,h);else if(VR(v,i,l,s,h))h.stopPropagation();else if(eO(i,h),l&4&&-1<FR.indexOf(i)){for(;v!==null;){var b=ml(v);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var A=xa(b.pendingLanes);if(A!==0){var M=b;for(M.pendingLanes|=2,M.entangledLanes|=2;A;){var B=1<<31-tt(A);M.entanglements[1]|=B,A&=~B}Nr(b),(Ye&6)===0&&(jc=un()+500,xu(0))}}break;case 31:case 13:M=Aa(b,2),M!==null&&En(M,b,2),zc(),zp(b,2)}if(b=Np(h),b===null&&bp(i,l,h,Gc,s),b===v)break;v=b}v!==null&&h.stopPropagation()}else bp(i,l,h,null,s)}}function Np(i){return i=Rh(i),Pp(i)}var Gc=null;function Pp(i){if(Gc=null,i=hl(i),i!==null){var l=o(i);if(l===null)i=null;else{var s=l.tag;if(s===13){if(i=u(l),i!==null)return i;i=null}else if(s===31){if(i=c(l),i!==null)return i;i=null}else if(s===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;i=null}else l!==i&&(i=null)}}return Gc=i,null}function JS(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ah()){case ae:return 2;case de:return 8;case _e:case De:return 32;case Ke:return 268435456;default:return 32}default:return 32}}var Rp=!1,ra=null,ia=null,aa=null,_u=new Map,Cu=new Map,la=[],FR="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function eO(i,l){switch(i){case"focusin":case"focusout":ra=null;break;case"dragenter":case"dragleave":ia=null;break;case"mouseover":case"mouseout":aa=null;break;case"pointerover":case"pointerout":_u.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cu.delete(l.pointerId)}}function Tu(i,l,s,h,v,b){return i===null||i.nativeEvent!==b?(i={blockedOn:l,domEventName:s,eventSystemFlags:h,nativeEvent:b,targetContainers:[v]},l!==null&&(l=ml(l),l!==null&&WS(l)),i):(i.eventSystemFlags|=h,l=i.targetContainers,v!==null&&l.indexOf(v)===-1&&l.push(v),i)}function VR(i,l,s,h,v){switch(l){case"focusin":return ra=Tu(ra,i,l,s,h,v),!0;case"dragenter":return ia=Tu(ia,i,l,s,h,v),!0;case"mouseover":return aa=Tu(aa,i,l,s,h,v),!0;case"pointerover":var b=v.pointerId;return _u.set(b,Tu(_u.get(b)||null,i,l,s,h,v)),!0;case"gotpointercapture":return b=v.pointerId,Cu.set(b,Tu(Cu.get(b)||null,i,l,s,h,v)),!0}return!1}function tO(i){var l=hl(i.target);if(l!==null){var s=o(l);if(s!==null){if(l=s.tag,l===13){if(l=u(s),l!==null){i.blockedOn=l,px(i.priority,function(){QS(s)});return}}else if(l===31){if(l=c(s),l!==null){i.blockedOn=l,px(i.priority,function(){QS(s)});return}}else if(l===3&&s.stateNode.current.memoizedState.isDehydrated){i.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Xc(i){if(i.blockedOn!==null)return!1;for(var l=i.targetContainers;0<l.length;){var s=Np(i.nativeEvent);if(s===null){s=i.nativeEvent;var h=new s.constructor(s.type,s);Ph=h,s.target.dispatchEvent(h),Ph=null}else return l=ml(s),l!==null&&WS(l),i.blockedOn=s,!1;l.shift()}return!0}function nO(i,l,s){Xc(i)&&s.delete(l)}function YR(){Rp=!1,ra!==null&&Xc(ra)&&(ra=null),ia!==null&&Xc(ia)&&(ia=null),aa!==null&&Xc(aa)&&(aa=null),_u.forEach(nO),Cu.forEach(nO)}function Zc(i,l){i.blockedOn===l&&(i.blockedOn=null,Rp||(Rp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,YR)))}var Wc=null;function rO(i){Wc!==i&&(Wc=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Wc===i&&(Wc=null);for(var l=0;l<i.length;l+=3){var s=i[l],h=i[l+1],v=i[l+2];if(typeof h!="function"){if(Pp(h||s)===null)continue;break}var b=ml(s);b!==null&&(i.splice(l,3),l-=3,Nm(b,{pending:!0,data:v,method:s.method,action:h},h,v))}}))}function Xl(i){function l(B){return Zc(B,i)}ra!==null&&Zc(ra,i),ia!==null&&Zc(ia,i),aa!==null&&Zc(aa,i),_u.forEach(l),Cu.forEach(l);for(var s=0;s<la.length;s++){var h=la[s];h.blockedOn===i&&(h.blockedOn=null)}for(;0<la.length&&(s=la[0],s.blockedOn===null);)tO(s),s.blockedOn===null&&la.shift();if(s=(i.ownerDocument||i).$$reactFormReplay,s!=null)for(h=0;h<s.length;h+=3){var v=s[h],b=s[h+1],A=v[gn]||null;if(typeof b=="function")A||rO(s);else if(A){var M=null;if(b&&b.hasAttribute("formAction")){if(v=b,A=b[gn]||null)M=A.formAction;else if(Pp(v)!==null)continue}else M=A.action;typeof M=="function"?s[h+1]=M:(s.splice(h,3),h-=3),rO(s)}}}function iO(){function i(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(A){return v=A})},focusReset:"manual",scroll:"manual"})}function l(){v!==null&&(v(),v=null),h||setTimeout(s,20)}function s(){if(!h&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var h=!1,v=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(s,100),function(){h=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),v!==null&&(v(),v=null)}}}function Ip(i){this._internalRoot=i}Qc.prototype.render=Ip.prototype.render=function(i){var l=this._internalRoot;if(l===null)throw Error(r(409));var s=l.current,h=Bn();XS(s,h,i,l,null,null)},Qc.prototype.unmount=Ip.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var l=i.containerInfo;XS(i.current,2,null,i,null,null),zc(),l[dl]=null}};function Qc(i){this._internalRoot=i}Qc.prototype.unstable_scheduleHydration=function(i){if(i){var l=mx();i={blockedOn:null,target:i,priority:l};for(var s=0;s<la.length&&l!==0&&l<la[s].priority;s++);la.splice(s,0,i),s===0&&tO(i)}};var aO=t.version;if(aO!=="19.2.4")throw Error(r(527,aO,"19.2.4"));K.findDOMNode=function(i){var l=i._reactInternals;if(l===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=d(l),i=i!==null?m(i):null,i=i===null?null:i.stateNode,i};var KR={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Jc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jc.isDisabled&&Jc.supportsFiber)try{sn=Jc.inject(KR),Mt=Jc}catch{}}return Mu.createRoot=function(i,l){if(!a(i))throw Error(r(299));var s=!1,h="",v=dw,b=hw,A=mw;return l!=null&&(l.unstable_strictMode===!0&&(s=!0),l.identifierPrefix!==void 0&&(h=l.identifierPrefix),l.onUncaughtError!==void 0&&(v=l.onUncaughtError),l.onCaughtError!==void 0&&(b=l.onCaughtError),l.onRecoverableError!==void 0&&(A=l.onRecoverableError)),l=KS(i,1,!1,null,null,s,h,null,v,b,A,iO),i[dl]=l.current,gp(i),new Ip(l)},Mu.hydrateRoot=function(i,l,s){if(!a(i))throw Error(r(299));var h=!1,v="",b=dw,A=hw,M=mw,B=null;return s!=null&&(s.unstable_strictMode===!0&&(h=!0),s.identifierPrefix!==void 0&&(v=s.identifierPrefix),s.onUncaughtError!==void 0&&(b=s.onUncaughtError),s.onCaughtError!==void 0&&(A=s.onCaughtError),s.onRecoverableError!==void 0&&(M=s.onRecoverableError),s.formState!==void 0&&(B=s.formState)),l=KS(i,1,!0,l,s??null,h,v,B,b,A,M,iO),l.context=GS(null),s=l.current,h=Bn(),h=_h(h),v=Vi(h),v.callback=null,Yi(s,v,h),s=h,l.current.lanes=s,Uo(l,s),Nr(l),i[dl]=l.current,gp(i),new Qc(l)},Mu.version="19.2.4",Mu}var pO;function lI(){if(pO)return qp.exports;pO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),qp.exports=aI(),qp.exports}var oI=lI();const s0="cowork-dash-session";function uI(){try{const e=localStorage.getItem(s0);return e?JSON.parse(e):null}catch{return null}}function sI(e){try{localStorage.setItem(s0,JSON.stringify(e))}catch{}}let Xy=0;function Zl(){return`msg-${++Xy}`}function cI(){var K;const t=E.useRef(uI()).current,[n,r]=E.useState((t==null?void 0:t.messages)??[]),[a,o]=E.useState(!1),[u,c]=E.useState(null),[f,d]=E.useState((t==null?void 0:t.todos)??[]),[m,p]=E.useState("connecting"),[y,g]=E.useState((t==null?void 0:t.tokenUsage)??{input:0,output:0,total:0}),[x,w]=E.useState((t==null?void 0:t.usageHistory)??[]),S=E.useRef((t==null?void 0:t.turnCounter)??0),[O,C]=E.useState([]),T=E.useRef((t==null?void 0:t.sessionId)??null),[D,P]=E.useState(0),k=E.useRef(null),j=E.useRef(""),U=E.useRef(null);if((K=t==null?void 0:t.messages)!=null&&K.length){const J=t.messages.reduce((re,N)=>{const R=parseInt(N.id.replace("msg-",""),10);return isNaN(R)?re:Math.max(re,R)},0);J>Xy&&(Xy=J)}const $=E.useRef(null),I=E.useRef(!1);I.current=a,E.useEffect(()=>{if(!a)return $.current&&clearTimeout($.current),$.current=setTimeout(()=>{sI({sessionId:T.current,messages:n,todos:f,tokenUsage:y,usageHistory:x,turnCounter:S.current})},500),()=>{$.current&&clearTimeout($.current)}},[n,f,y,x,a]);const Z=E.useCallback(()=>{const J=j.current;J&&(j.current="",r(re=>{const N=re[re.length-1];if(N&&N.role==="assistant"&&N.isStreaming&&N.toolCalls.length===0){const V=[...re];return V[V.length-1]={...N,content:N.content+J},V}const R=Date.now();return[...re,{id:Zl(),role:"assistant",content:J,toolCalls:[],isStreaming:!0,timestamp:R,startedAt:R}]}))},[]),q=E.useCallback(J=>{switch(J.type){case"session_init":T.current=J.session_id;break;case"tool_start":j.current&&Z(),r(re=>{const N=re[re.length-1],R={id:J.id,name:J.name,args:J.args,status:"running"};if(N&&N.role==="assistant"){const z=[...re];return z[z.length-1]={...N,toolCalls:[...N.toolCalls,R]},z}const V=Date.now();return[...re,{id:Zl(),role:"assistant",content:"",toolCalls:[R],isStreaming:!0,timestamp:V,startedAt:V}]});break;case"tool_end":r(re=>{const N=[...re];for(let R=N.length-1;R>=0;R--){const V=N[R],z=V.toolCalls.findIndex(se=>se.id===J.id);if(z>=0){const se=[...V.toolCalls];se[z]={...se[z],status:J.status,result:J.result,errorMessage:J.error_message,durationMs:J.duration_ms},N[R]={...V,toolCalls:se};break}}return N});break;case"extraction":{if(r(re=>{const N=[...re];for(let R=N.length-1;R>=0;R--){const V=N[R],z=V.toolCalls.findIndex(se=>se.name===J.tool_name&&se.status==="running");if(z>=0){const se=[...V.toolCalls];return se[z]={...se[z],extraction:{extracted_type:J.extracted_type,data:J.data}},N[R]={...V,toolCalls:se},N}}return re}),J.extracted_type==="todos"){const re=J.data,R=(Array.isArray(re)?re:re&&typeof re=="object"&&"todos"in re?re.todos??[]:[]).map(V=>{if(V&&typeof V=="object"){const z=V;return{content:z.content??z.task??"",status:z.status??(z.done===!0?"completed":(z.done===!1,"pending"))}}return{content:String(V),status:"pending"}});d(R)}break}case"interrupt":o(!1),c(J);break;case"complete":{o(!1);const re=Date.now();r(N=>{if(N.length===0)return N;let R=!1;const V=N.map(z=>z.isStreaming?(R=!0,{...z,isStreaming:!1,durationMs:z.startedAt?re-z.startedAt:void 0}):z);return R?V:N});break}case"error":o(!1),r(re=>[...re,{id:Zl(),role:"assistant",content:`Error: ${J.error}`,toolCalls:[],timestamp:Date.now()}]);break;case"usage":g(re=>({input:re.input+J.input_tokens,output:re.output+J.output_tokens,total:re.total+J.total_tokens})),w(re=>{if(re.length===0)return re;const N=[...re],R=N[N.length-1];return N[N.length-1]={...R,input:R.input+J.input_tokens,output:R.output+J.output_tokens,total:R.total+J.total_tokens},N});break;case"cancelled":{o(!1);const re=Date.now();r(N=>[...N.map(V=>V.isStreaming?{...V,isStreaming:!1,durationMs:V.startedAt?re-V.startedAt:void 0}:V),{id:Zl(),role:"system",content:"Task terminated",toolCalls:[],timestamp:Date.now()}]);break}case"file_changed":C(re=>[...re,{event:J.event,path:J.path}]);break;case"user_message":r(re=>[...re,{id:Zl(),role:"user",content:J.content,toolCalls:[],timestamp:Date.now()}]),S.current+=1,w(re=>[...re,{turn:S.current,input:0,output:0,total:0}]),o(!0);break}},[Z]);E.useEffect(()=>{let re=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws/chat`;T.current&&(re+=`?session_id=${encodeURIComponent(T.current)}`);const N=new WebSocket(re);return N.onopen=()=>p("connected"),N.onclose=()=>p("disconnected"),N.onerror=()=>p("error"),N.onmessage=R=>{const V=JSON.parse(R.data);V.type==="content"?(j.current+=V.content,U.current||(U.current=requestAnimationFrame(()=>{Z(),U.current=null}))):(j.current&&Z(),q(V))},k.current=N,()=>{U.current&&cancelAnimationFrame(U.current),N.close()}},[q,Z,D]);const oe=E.useCallback((J,re)=>{if(!k.current||k.current.readyState!==WebSocket.OPEN)return;r(R=>[...R,{id:Zl(),role:"user",content:J,toolCalls:[],timestamp:Date.now()}]),S.current+=1;const N=S.current;w(R=>[...R,{turn:N,input:0,output:0,total:0}]),k.current.send(JSON.stringify({type:"message",content:J,cwd:re==null?void 0:re.cwd})),o(!0)},[]),ne=E.useCallback(J=>{!k.current||k.current.readyState!==WebSocket.OPEN||(k.current.send(JSON.stringify({type:"interrupt_response",decisions:J})),c(null),o(!0))},[]),Q=E.useCallback(()=>{!k.current||k.current.readyState!==WebSocket.OPEN||(j.current&&Z(),k.current.send(JSON.stringify({type:"cancel"})))},[Z]),L=E.useCallback(()=>{const J=T.current;J&&fetch(`/api/session/${encodeURIComponent(J)}`,{method:"DELETE"}).catch(()=>{}),k.current&&(k.current.close(),k.current=null),localStorage.removeItem(s0),T.current=null,r([]),d([]),g({input:0,output:0,total:0}),w([]),S.current=0,o(!1),c(null),C([]),j.current="",P(re=>re+1)},[]);return{messages:n,isStreaming:a,interrupt:u,todos:f,tokenUsage:y,usageHistory:x,connectionStatus:m,fileChanges:O,sendMessage:oe,respondToInterrupt:ne,cancelStream:Q,resetSession:L}}function fI(e){const[t,n]=E.useState({entries:[],loading:!0,error:null}),[r,a]=E.useState(null),[o,u]=E.useState(new Set(["/"])),[c,f]=E.useState("/"),d=E.useCallback(async(O="/",C=1)=>{try{const T=await fetch(`/api/files/tree?path=${encodeURIComponent(O)}&depth=${C}`);if(!T.ok)throw new Error(`HTTP ${T.status}`);return(await T.json()).entries}catch(T){return console.error("Failed to fetch file tree:",T),[]}},[]),m=E.useCallback(async()=>{n(C=>({...C,loading:!0}));const O=await d(c,1);n({entries:O,loading:!1,error:null})},[d,c]);E.useEffect(()=>{m()},[m]),E.useEffect(()=>{e.length>0&&m()},[e,m]);const p=E.useCallback(async O=>{u(T=>{const D=new Set(T);return D.has(O)?D.delete(O):D.add(O),D}),n(T=>{const D=P=>P.map(k=>k.path===O&&k.is_dir&&!k.children?{...k,children:[]}:k.children?{...k,children:D(k.children)}:k);return{...T,entries:D(T.entries)}});const C=await d(O,1);n(T=>{const D=P=>P.map(k=>k.path===O?{...k,children:C}:k.children?{...k,children:D(k.children)}:k);return{...T,entries:D(T.entries)}})},[d]),y=E.useCallback(async O=>{try{const C=await fetch(`/api/files/preview?path=${encodeURIComponent(O)}`);if(!C.ok)throw new Error(`HTTP ${C.status}`);const T=await C.json();a(T)}catch(C){console.error("Failed to preview file:",C)}},[]),g=E.useCallback(O=>{f(O),u(new Set([O])),a(null)},[]),x=E.useCallback(async O=>{const C=new FormData;C.append("file",O);try{const T=await fetch(`/api/files/upload?path=${encodeURIComponent(c)}`,{method:"POST",body:C});if(!T.ok)throw new Error(`HTTP ${T.status}`);m()}catch(T){console.error("Failed to upload file:",T)}},[c,m]),w=E.useCallback(async O=>{const C=c==="/"?`/${O}`:`${c}/${O}`;try{const T=await fetch("/api/files/mkdir",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:C})});if(!T.ok)throw new Error(`HTTP ${T.status}`);m()}catch(T){console.error("Failed to create folder:",T)}},[c,m]),S=E.useCallback(async O=>{try{const C=await fetch("/api/files/delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:O})});if(!C.ok)throw new Error(`HTTP ${C.status}`);m()}catch(C){console.error("Failed to delete:",C)}},[m]);return{tree:t,selectedFile:r,expandedDirs:o,workspacePath:c,toggleDir:p,openFile:y,enterDir:g,uploadFile:x,createFolder:w,deletePath:S,setSelectedFile:a,refresh:m}}function dI(e){const[t,n]=E.useState([]),[r,a]=E.useState(!1),o=E.useCallback(async()=>{a(!0);try{const d=await fetch("/api/canvas/items");if(!d.ok)throw new Error(`HTTP ${d.status}`);const m=await d.json();n(m)}catch(d){console.error("Failed to fetch canvas items:",d)}finally{a(!1)}},[]);E.useEffect(()=>{o()},[o]),E.useEffect(()=>{e.some(d=>d.path.startsWith("/.canvas/"))&&o()},[e,o]);const u=E.useCallback(async d=>{try{await fetch(`/api/canvas/items/${d}`,{method:"DELETE"}),n(m=>m.filter(p=>p.id!==d))}catch(m){console.error("Failed to delete canvas item:",m)}},[]),c=E.useCallback(async()=>{try{await fetch("/api/canvas/items",{method:"DELETE"}),n([])}catch(d){console.error("Failed to clear canvas:",d)}},[]),f=E.useCallback(async()=>{try{const d=await fetch("/api/canvas/export");if(!d.ok)throw new Error(`HTTP ${d.status}`);return(await d.json()).content}catch(d){return console.error("Failed to export canvas:",d),""}},[]);return{items:t,loading:r,fetchItems:o,deleteItem:u,clearAll:c,exportMarkdown:f}}function uo(){return uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uo.apply(null,arguments)}var ef=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ys(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vO,yO={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/var Vp,gO,bO,hI=(vO||(vO=1,Vp=yO,(function(){var e={}.hasOwnProperty;function t(){for(var a="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(a=r(a,n(u)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return t.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var u in a)e.call(a,u)&&a[u]&&(o=r(o,u));return o}function r(a,o){return o?a?a+" "+o:a+o:a}Vp.exports?(t.default=t,Vp.exports=t):window.classNames=t})()),yO.exports),Zy=ys(hI),xO,wO,mI=(bO||(bO=1,gO=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,a,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(a=r;a--!==0;)if(!e(t[a],n[a]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(a of t.entries())if(!n.has(a[0]))return!1;for(a of t.entries())if(!e(a[1],n.get(a[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(a of t.entries())if(!n.has(a[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(a=r;a--!==0;)if(t[a]!==n[a])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[a]))return!1;for(a=r;a--!==0;){var u=o[a];if(!e(t[u],n[u]))return!1}return!0}return t!=t&&n!=n}),gO),pI=ys(mI),SO,OO,wr=ys((function(){if(wO)return xO;wO=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,r=/^0o[0-7]+$/i,a=parseInt,o=Object.prototype.toString;function u(f){var d=typeof f;return!!f&&(d=="object"||d=="function")}function c(f){if(typeof f=="number")return f;if((function(p){return typeof p=="symbol"||(function(y){return!!y&&typeof y=="object"})(p)&&o.call(p)=="[object Symbol]"})(f))return NaN;if(u(f)){var d=typeof f.valueOf=="function"?f.valueOf():f;f=u(d)?d+"":d}if(typeof f!="string")return f===0?f:+f;f=f.replace(e,"");var m=n.test(f);return m||r.test(f)?a(f.slice(2),m?2:8):t.test(f)?NaN:+f}return xO=function(f,d,m){return m===void 0&&(m=d,d=void 0),m!==void 0&&(m=(m=c(m))==m?m:0),d!==void 0&&(d=(d=c(d))==d?d:0),(function(p,y,g){return p==p&&(g!==void 0&&(p=p<=g?p:g),y!==void 0&&(p=p>=y?p:y)),p})(c(f),d,m)}})()),vI=ys((function(){if(OO)return SO;OO=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,r=/^0o[0-7]+$/i,a=parseInt,o=typeof ef=="object"&&ef&&ef.Object===Object&&ef,u=typeof self=="object"&&self&&self.Object===Object&&self,c=o||u||Function("return this")(),f=Object.prototype.toString,d=Math.max,m=Math.min,p=function(){return c.Date.now()};function y(x){var w=typeof x;return!!x&&(w=="object"||w=="function")}function g(x){if(typeof x=="number")return x;if((function(O){return typeof O=="symbol"||(function(C){return!!C&&typeof C=="object"})(O)&&f.call(O)=="[object Symbol]"})(x))return NaN;if(y(x)){var w=typeof x.valueOf=="function"?x.valueOf():x;x=y(w)?w+"":w}if(typeof x!="string")return x===0?x:+x;x=x.replace(e,"");var S=n.test(x);return S||r.test(x)?a(x.slice(2),S?2:8):t.test(x)?NaN:+x}return SO=function(x,w,S){var O,C,T,D,P,k,j=0,U=!1,$=!1,I=!0;if(typeof x!="function")throw new TypeError("Expected a function");function Z(L){var K=O,J=C;return O=C=void 0,j=L,D=x.apply(J,K)}function q(L){var K=L-k;return k===void 0||K>=w||K<0||$&&L-j>=T}function oe(){var L=p();if(q(L))return ne(L);P=setTimeout(oe,(function(K){var J=w-(K-k);return $?m(J,T-(K-j)):J})(L))}function ne(L){return P=void 0,I&&O?Z(L):(O=C=void 0,D)}function Q(){var L=p(),K=q(L);if(O=arguments,C=this,k=L,K){if(P===void 0)return(function(J){return j=J,P=setTimeout(oe,w),U?Z(J):D})(k);if($)return P=setTimeout(oe,w),Z(k)}return P===void 0&&(P=setTimeout(oe,w)),D}return w=g(w)||0,y(S)&&(U=!!S.leading,T=($="maxWait"in S)?d(g(S.maxWait)||0,w):T,I="trailing"in S?!!S.trailing:I),Q.cancel=function(){P!==void 0&&clearTimeout(P),j=0,O=k=C=P=void 0},Q.flush=function(){return P===void 0?D:ne(p())},Q}})()),EO={width:void 0,height:void 0};function yI(e){const{ref:t,box:n="content-box"}=e,[{width:r,height:a},o]=E.useState(EO),u=(function(){const d=E.useRef(!1);return E.useEffect(()=>(d.current=!0,()=>{d.current=!1}),[]),E.useCallback(()=>d.current,[])})(),c=E.useRef(uo({},EO)),f=E.useRef(void 0);return f.current=e.onResize,E.useEffect(()=>{if(!t.current||typeof window>"u"||!("ResizeObserver"in window))return;const d=new ResizeObserver(([m])=>{const p=n==="border-box"?"borderBoxSize":n==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",y=AO(m,p,"inlineSize"),g=AO(m,p,"blockSize");if(c.current.width!==y||c.current.height!==g){const x={width:y,height:g};c.current.width=y,c.current.height=g,f.current?f.current(x):u()&&o(x)}});return d.observe(t.current,{box:n}),()=>{d.disconnect()}},[n,t,u]),{width:r,height:a}}function AO(e,t,n){return e[t]?Array.isArray(e[t])?e[t][0][n]:e[t][n]:t==="contentBoxSize"?e.contentRect[n==="inlineSize"?"width":"height"]:void 0}var gI="allotment-module_splitView__L-yRc",bI="allotment-module_sashContainer__fzwJF",xI="allotment-module_splitViewContainer__rQnVa",vC="allotment-module_splitViewView__MGZ6O",wI="allotment-module_vertical__WSwwa",SI="allotment-module_horizontal__7doS8",OI="allotment-module_separatorBorder__x-rDS";let zu,yC=!1,gC=!1;typeof navigator=="object"&&(zu=navigator.userAgent,gC=zu.indexOf("Macintosh")>=0,yC=(zu.indexOf("Macintosh")>=0||zu.indexOf("iPad")>=0||zu.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0);const bC=yC,EI=gC,kO=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?E.useLayoutEffect:E.useEffect;class AI{constructor(){this._size=void 0}getSize(){return this._size}setSize(t){this._size=t}}function tf(e,t){const n=e.length,r=n-t.length;return r>=0&&e.slice(r,n)===t}var _O,CO={exports:{}},kI=(_O||(_O=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function a(f,d,m){this.fn=f,this.context=d,this.once=m||!1}function o(f,d,m,p,y){if(typeof m!="function")throw new TypeError("The listener must be a function");var g=new a(m,p||f,y),x=n?n+d:d;return f._events[x]?f._events[x].fn?f._events[x]=[f._events[x],g]:f._events[x].push(g):(f._events[x]=g,f._eventsCount++),f}function u(f,d){--f._eventsCount===0?f._events=new r:delete f._events[d]}function c(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),c.prototype.eventNames=function(){var f,d,m=[];if(this._eventsCount===0)return m;for(d in f=this._events)t.call(f,d)&&m.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?m.concat(Object.getOwnPropertySymbols(f)):m},c.prototype.listeners=function(f){var d=n?n+f:f,m=this._events[d];if(!m)return[];if(m.fn)return[m.fn];for(var p=0,y=m.length,g=new Array(y);p<y;p++)g[p]=m[p].fn;return g},c.prototype.listenerCount=function(f){var d=n?n+f:f,m=this._events[d];return m?m.fn?1:m.length:0},c.prototype.emit=function(f,d,m,p,y,g){var x=n?n+f:f;if(!this._events[x])return!1;var w,S,O=this._events[x],C=arguments.length;if(O.fn){switch(O.once&&this.removeListener(f,O.fn,void 0,!0),C){case 1:return O.fn.call(O.context),!0;case 2:return O.fn.call(O.context,d),!0;case 3:return O.fn.call(O.context,d,m),!0;case 4:return O.fn.call(O.context,d,m,p),!0;case 5:return O.fn.call(O.context,d,m,p,y),!0;case 6:return O.fn.call(O.context,d,m,p,y,g),!0}for(S=1,w=new Array(C-1);S<C;S++)w[S-1]=arguments[S];O.fn.apply(O.context,w)}else{var T,D=O.length;for(S=0;S<D;S++)switch(O[S].once&&this.removeListener(f,O[S].fn,void 0,!0),C){case 1:O[S].fn.call(O[S].context);break;case 2:O[S].fn.call(O[S].context,d);break;case 3:O[S].fn.call(O[S].context,d,m);break;case 4:O[S].fn.call(O[S].context,d,m,p);break;default:if(!w)for(T=1,w=new Array(C-1);T<C;T++)w[T-1]=arguments[T];O[S].fn.apply(O[S].context,w)}}return!0},c.prototype.on=function(f,d,m){return o(this,f,d,m,!1)},c.prototype.once=function(f,d,m){return o(this,f,d,m,!0)},c.prototype.removeListener=function(f,d,m,p){var y=n?n+f:f;if(!this._events[y])return this;if(!d)return u(this,y),this;var g=this._events[y];if(g.fn)g.fn!==d||p&&!g.once||m&&g.context!==m||u(this,y);else{for(var x=0,w=[],S=g.length;x<S;x++)(g[x].fn!==d||p&&!g[x].once||m&&g[x].context!==m)&&w.push(g[x]);w.length?this._events[y]=w.length===1?w[0]:w:u(this,y)}return this},c.prototype.removeAllListeners=function(f){var d;return f?(d=n?n+f:f,this._events[d]&&u(this,d)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c})(CO)),CO.exports),c0=ys(kI);function TO(e,t){const n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))}function Yp(e,t){const n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))}function ar(e,t,n=1){const r=Math.max(0,Math.ceil((t-e)/n)),a=new Array(r);let o=-1;for(;++o<r;)a[o]=e+o*n;return a}var _I="sash-module_sash__K-9lB",CI="sash-module_disabled__Hm-wx",TI="sash-module_mac__Jf6OJ",jO="sash-module_vertical__pB-rs",jI="sash-module_minimum__-UKxp",MI="sash-module_maximum__TCWxD",MO="sash-module_horizontal__kFbiw",Kp="sash-module_hover__80W6I",Gp="sash-module_active__bJspD";let cr=(function(e){return e.Vertical="VERTICAL",e.Horizontal="HORIZONTAL",e})({}),qn=(function(e){return e.Disabled="DISABLED",e.Minimum="MINIMUM",e.Maximum="MAXIMUM",e.Enabled="ENABLED",e})({}),xC=bC?20:8;const wC=new c0;class zO extends c0{get state(){return this._state}set state(t){this._state!==t&&(this.el.classList.toggle(CI,t===qn.Disabled),this.el.classList.toggle("sash-disabled",t===qn.Disabled),this.el.classList.toggle(jI,t===qn.Minimum),this.el.classList.toggle("sash-minimum",t===qn.Minimum),this.el.classList.toggle(MI,t===qn.Maximum),this.el.classList.toggle("sash-maximum",t===qn.Maximum),this._state=t,this.emit("enablementChange",t))}constructor(t,n,r){var a;super(),this.el=void 0,this.layoutProvider=void 0,this.orientation=void 0,this.size=void 0,this.hoverDelay=300,this.hoverDelayer=vI(o=>o.classList.add("sash-hover",Kp),this.hoverDelay),this._state=qn.Enabled,this.onPointerStart=o=>{const u=o.pageX,c=o.pageY,f={startX:u,currentX:u,startY:c,currentY:c};this.el.classList.add("sash-active",Gp),this.emit("start",f),this.el.setPointerCapture(o.pointerId);const d=p=>{p.preventDefault();const y={startX:u,currentX:p.pageX,startY:c,currentY:p.pageY};this.emit("change",y)},m=p=>{p.preventDefault(),this.el.classList.remove("sash-active",Gp),this.hoverDelayer.cancel(),this.emit("end"),this.el.releasePointerCapture(p.pointerId),window.removeEventListener("pointermove",d),window.removeEventListener("pointerup",m)};window.addEventListener("pointermove",d),window.addEventListener("pointerup",m)},this.onPointerDoublePress=()=>{this.emit("reset")},this.onMouseEnter=()=>{this.el.classList.contains(Gp)?(this.hoverDelayer.cancel(),this.el.classList.add("sash-hover",Kp)):this.hoverDelayer(this.el)},this.onMouseLeave=()=>{this.hoverDelayer.cancel(),this.el.classList.remove("sash-hover",Kp)},this.el=document.createElement("div"),this.el.classList.add("sash",_I),this.el.dataset.testid="sash",t.append(this.el),EI&&this.el.classList.add("sash-mac",TI),this.el.addEventListener("pointerdown",this.onPointerStart),this.el.addEventListener("dblclick",this.onPointerDoublePress),this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("mouseleave",this.onMouseLeave),typeof r.size=="number"?(this.size=r.size,r.orientation===cr.Vertical?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=xC,wC.on("onDidChangeGlobalSize",o=>{this.size=o,this.layout()})),this.layoutProvider=n,this.orientation=(a=r.orientation)!=null?a:cr.Vertical,this.orientation===cr.Horizontal?(this.el.classList.add("sash-horizontal",MO),this.el.classList.remove("sash-vertical",jO)):(this.el.classList.remove("sash-horizontal",MO),this.el.classList.add("sash-vertical",jO)),this.layout()}layout(){if(this.orientation===cr.Vertical){const t=this.layoutProvider;this.el.style.left=t.getVerticalSashLeft(this)-this.size/2+"px",t.getVerticalSashTop&&(this.el.style.top=t.getVerticalSashTop(this)+"px"),t.getVerticalSashHeight&&(this.el.style.height=t.getVerticalSashHeight(this)+"px")}else{const t=this.layoutProvider;this.el.style.top=t.getHorizontalSashTop(this)-this.size/2+"px",t.getHorizontalSashLeft&&(this.el.style.left=t.getHorizontalSashLeft(this)+"px"),t.getHorizontalSashWidth&&(this.el.style.width=t.getHorizontalSashWidth(this)+"px")}}dispose(){this.el.removeEventListener("pointerdown",this.onPointerStart),this.el.removeEventListener("dblclick",this.onPointerDoublePress),this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("mouseleave",()=>this.onMouseLeave),this.el.remove()}}let zf;var Xp;(Xp=zf||(zf={})).Distribute={type:"distribute"},Xp.Split=function(e){return{type:"split",index:e}},Xp.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}};let sr=(function(e){return e.Normal="NORMAL",e.Low="LOW",e.High="HIGH",e})({});class SC{constructor(t,n,r){this.container=void 0,this.view=void 0,this._size=void 0,this._cachedVisibleSize=void 0,this.container=t,this.view=n,this.container.classList.add("split-view-view",vC),this.container.dataset.testid="split-view-view",typeof r=="number"?(this._size=r,this._cachedVisibleSize=void 0,t.classList.add("split-view-view-visible")):(this._size=0,this._cachedVisibleSize=r.cachedVisibleSize)}set size(t){this._size=t}get size(){return this._size}get priority(){return this.view.priority}get snap(){return!!this.view.snap}get cachedVisibleSize(){return this._cachedVisibleSize}get visible(){return this._cachedVisibleSize===void 0}setVisible(t,n){t!==this.visible&&(t?(this.size=wr(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof n=="number"?n:this.size,this.size=0),this.container.classList.toggle("split-view-view-visible",t),this.view.setVisible&&this.view.setVisible(t))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}set enabled(t){this.container.style.pointerEvents=t?"":"none"}layout(t){this.layoutContainer(t),this.view.layout(this.size,t)}}class zI extends SC{layoutContainer(t){this.container.style.left=`${t}px`,this.container.style.width=`${this.size}px`}}class DI extends SC{layoutContainer(t){this.container.style.top=`${t}px`,this.container.style.height=`${this.size}px`}}class NI extends c0{get startSnappingEnabled(){return this._startSnappingEnabled}set startSnappingEnabled(t){this._startSnappingEnabled!==t&&(this._startSnappingEnabled=t,this.updateSashEnablement())}get endSnappingEnabled(){return this._endSnappingEnabled}set endSnappingEnabled(t){this._endSnappingEnabled!==t&&(this._endSnappingEnabled=t,this.updateSashEnablement())}constructor(t,n={},r,a,o){var u,c;if(super(),this.onDidChange=void 0,this.onDidDragStart=void 0,this.onDidDragEnd=void 0,this.orientation=void 0,this.sashContainer=void 0,this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.sashDragState=void 0,this.proportionalLayout=void 0,this.getSashOrthogonalSize=void 0,this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onSashEnd=f=>{this.emit("sashchange",f),this.saveProportions();for(const d of this.viewItems)d.enabled=!0},this.orientation=(u=n.orientation)!=null?u:cr.Vertical,this.proportionalLayout=(c=n.proportionalLayout)!=null?c:!0,this.getSashOrthogonalSize=n.getSashOrthogonalSize,r&&(this.onDidChange=r),a&&(this.onDidDragStart=a),o&&(this.onDidDragEnd=o),this.sashContainer=document.createElement("div"),this.sashContainer.classList.add("sash-container",bI),t.prepend(this.sashContainer),n.descriptor){this.size=n.descriptor.size;for(const[f,d]of n.descriptor.views.entries()){const m=d.size,p=d.container,y=d.view;this.addView(p,y,m,f,!0)}this.contentSize=this.viewItems.reduce((f,d)=>f+d.size,0),this.saveProportions()}}addView(t,n,r,a=this.viewItems.length,o){let u;u=typeof r=="number"?r:r.type==="split"?this.getViewSize(r.index)/2:r.type==="invisible"?{cachedVisibleSize:r.cachedVisibleSize}:n.minimumSize;const c=this.orientation===cr.Vertical?new DI(t,n,u):new zI(t,n,u);if(this.viewItems.splice(a,0,c),this.viewItems.length>1){const f=this.orientation===cr.Vertical?new zO(this.sashContainer,{getHorizontalSashTop:p=>this.getSashPosition(p),getHorizontalSashWidth:this.getSashOrthogonalSize},{orientation:cr.Horizontal}):new zO(this.sashContainer,{getVerticalSashLeft:p=>this.getSashPosition(p),getVerticalSashHeight:this.getSashOrthogonalSize},{orientation:cr.Vertical}),d=this.orientation===cr.Vertical?p=>({sash:f,start:p.startY,current:p.currentY}):p=>({sash:f,start:p.startX,current:p.currentX});f.on("start",p=>{var y;this.emit("sashDragStart"),this.onSashStart(d(p));const g=this.viewItems.map(x=>x.size);(y=this.onDidDragStart)==null||y.call(this,g)}),f.on("change",p=>this.onSashChange(d(p))),f.on("end",()=>{var p;this.emit("sashDragEnd"),this.onSashEnd(this.sashItems.findIndex(g=>g.sash===f));const y=this.viewItems.map(g=>g.size);(p=this.onDidDragEnd)==null||p.call(this,y)}),f.on("reset",()=>{const p=this.sashItems.findIndex(S=>S.sash===f),y=ar(p,-1,-1),g=ar(p+1,this.viewItems.length),x=this.findFirstSnapIndex(y),w=this.findFirstSnapIndex(g);(typeof x!="number"||this.viewItems[x].visible)&&(typeof w!="number"||this.viewItems[w].visible)&&this.emit("sashreset",p)});const m={sash:f};this.sashItems.splice(a-1,0,m)}o||this.relayout(),o||typeof r=="number"||r.type!=="distribute"||this.distributeViewSizes()}removeView(t,n){if(t<0||t>=this.viewItems.length)throw new Error("Index out of bounds");const r=this.viewItems.splice(t,1)[0].view;if(this.viewItems.length>=1){const a=Math.max(t-1,0);this.sashItems.splice(a,1)[0].sash.dispose()}return this.relayout(),n&&n.type==="distribute"&&this.distributeViewSizes(),r}moveView(t,n,r){const a=this.getViewCachedVisibleSize(n),o=a===void 0?this.getViewSize(n):zf.Invisible(a),u=this.removeView(n);this.addView(t,u,o,r)}getViewCachedVisibleSize(t){if(t<0||t>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[t].cachedVisibleSize}layout(t=this.size){const n=Math.max(this.size,this.contentSize);if(this.size=t,this.proportions)for(let r=0;r<this.viewItems.length;r++){const a=this.viewItems[r];a.size=wr(Math.round(this.proportions[r]*t),a.minimumSize,a.maximumSize)}else{const r=ar(0,this.viewItems.length),a=r.filter(u=>this.viewItems[u].priority===sr.Low),o=r.filter(u=>this.viewItems[u].priority===sr.High);this.resize(this.viewItems.length-1,t-n,void 0,a,o)}this.distributeEmptySpace(),this.layoutViews()}resizeView(t,n){if(t<0||t>=this.viewItems.length)return;const r=ar(0,this.viewItems.length).filter(c=>c!==t),a=[...r.filter(c=>this.viewItems[c].priority===sr.Low),t],o=r.filter(c=>this.viewItems[c].priority===sr.High),u=this.viewItems[t];n=Math.round(n),n=wr(n,u.minimumSize,Math.min(u.maximumSize,this.size)),u.size=n,this.relayout(a,o)}resizeViews(t){for(let n=0;n<t.length;n++){const r=this.viewItems[n];let a=t[n];a=Math.round(a),a=wr(a,r.minimumSize,Math.min(r.maximumSize,this.size)),r.size=a}this.contentSize=this.viewItems.reduce((n,r)=>n+r.size,0),this.saveProportions(),this.layout(this.size)}getViewSize(t){return t<0||t>=this.viewItems.length?-1:this.viewItems[t].size}isViewVisible(t){if(t<0||t>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[t].visible}setViewVisible(t,n){if(t<0||t>=this.viewItems.length)throw new Error("Index out of bounds");this.viewItems[t].setVisible(n),this.distributeEmptySpace(t),this.layoutViews(),this.saveProportions()}distributeViewSizes(){const t=[];let n=0;for(const c of this.viewItems)c.maximumSize-c.minimumSize>0&&(t.push(c),n+=c.size);const r=Math.floor(n/t.length);for(const c of t)c.size=wr(r,c.minimumSize,c.maximumSize);const a=ar(0,this.viewItems.length),o=a.filter(c=>this.viewItems[c].priority===sr.Low),u=a.filter(c=>this.viewItems[c].priority===sr.High);this.relayout(o,u)}dispose(){this.sashItems.forEach(t=>t.sash.dispose()),this.sashItems=[],this.sashContainer.remove()}relayout(t,n){const r=this.viewItems.reduce((a,o)=>a+o.size,0);this.resize(this.viewItems.length-1,this.size-r,void 0,t,n),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}onSashStart({sash:t,start:n}){const r=this.sashItems.findIndex(a=>a.sash===t);(a=>{const o=this.viewItems.map(C=>C.size);let u,c,f=Number.NEGATIVE_INFINITY,d=Number.POSITIVE_INFINITY;const m=ar(r,-1,-1),p=ar(r+1,this.viewItems.length),y=m.reduce((C,T)=>C+(this.viewItems[T].minimumSize-o[T]),0),g=m.reduce((C,T)=>C+(this.viewItems[T].viewMaximumSize-o[T]),0),x=p.length===0?Number.POSITIVE_INFINITY:p.reduce((C,T)=>C+(o[T]-this.viewItems[T].minimumSize),0),w=p.length===0?Number.NEGATIVE_INFINITY:p.reduce((C,T)=>C+(o[T]-this.viewItems[T].viewMaximumSize),0);f=Math.max(y,w),d=Math.min(x,g);const S=this.findFirstSnapIndex(m),O=this.findFirstSnapIndex(p);if(typeof S=="number"){const C=this.viewItems[S],T=Math.floor(C.viewMinimumSize/2);u={index:S,limitDelta:C.visible?f-T:f+T,size:C.size}}if(typeof O=="number"){const C=this.viewItems[O],T=Math.floor(C.viewMinimumSize/2);c={index:O,limitDelta:C.visible?d+T:d-T,size:C.size}}this.sashDragState={start:a,current:a,index:r,sizes:o,minDelta:f,maxDelta:d,snapBefore:u,snapAfter:c}})(n)}onSashChange({current:t}){const{index:n,start:r,sizes:a,minDelta:o,maxDelta:u,snapBefore:c,snapAfter:f}=this.sashDragState;this.sashDragState.current=t;const d=t-r;this.resize(n,d,a,void 0,void 0,o,u,c,f),this.distributeEmptySpace(),this.layoutViews()}getSashPosition(t){let n=0;for(let r=0;r<this.sashItems.length;r++)if(n+=this.viewItems[r].size,this.sashItems[r].sash===t)return n;return 0}resize(t,n,r=this.viewItems.map(m=>m.size),a,o,u=Number.NEGATIVE_INFINITY,c=Number.POSITIVE_INFINITY,f,d){if(t<0||t>=this.viewItems.length)return 0;const m=ar(t,-1,-1),p=ar(t+1,this.viewItems.length);if(o)for(const j of o)TO(m,j),TO(p,j);if(a)for(const j of a)Yp(m,j),Yp(p,j);const y=m.map(j=>this.viewItems[j]),g=m.map(j=>r[j]),x=p.map(j=>this.viewItems[j]),w=p.map(j=>r[j]),S=m.reduce((j,U)=>j+(this.viewItems[U].minimumSize-r[U]),0),O=m.reduce((j,U)=>j+(this.viewItems[U].maximumSize-r[U]),0),C=p.length===0?Number.POSITIVE_INFINITY:p.reduce((j,U)=>j+(r[U]-this.viewItems[U].minimumSize),0),T=p.length===0?Number.NEGATIVE_INFINITY:p.reduce((j,U)=>j+(r[U]-this.viewItems[U].maximumSize),0),D=Math.max(S,T,u),P=Math.min(C,O,c);let k=!1;if(f){const j=this.viewItems[f.index],U=n>=f.limitDelta;k=U!==j.visible,j.setVisible(U,f.size)}if(!k&&d){const j=this.viewItems[d.index],U=n<d.limitDelta;k=U!==j.visible,j.setVisible(U,d.size)}if(k)return this.resize(t,n,r,a,o,u,c);for(let j=0,U=n=wr(n,D,P);j<y.length;j++){const $=y[j],I=wr(g[j]+U,$.minimumSize,$.maximumSize);U-=I-g[j],$.size=I}for(let j=0,U=n;j<x.length;j++){const $=x[j],I=wr(w[j]-U,$.minimumSize,$.maximumSize);U+=I-w[j],$.size=I}return n}distributeEmptySpace(t){const n=this.viewItems.reduce((d,m)=>d+m.size,0);let r=this.size-n;const a=ar(0,this.viewItems.length),o=[],u=a.filter(d=>this.viewItems[d].priority===sr.Low),c=a.filter(d=>this.viewItems[d].priority===sr.Normal),f=a.filter(d=>this.viewItems[d].priority===sr.High);o.push(...f,...c,...u),typeof t=="number"&&Yp(o,t);for(let d=0;r!==0&&d<o.length;d++){const m=this.viewItems[o[d]],p=wr(m.size+r,m.minimumSize,m.maximumSize);r-=p-m.size,m.size=p}}layoutViews(){var t;this.contentSize=this.viewItems.reduce((r,a)=>r+a.size,0);let n=0;for(const r of this.viewItems)r.layout(n),n+=r.size;(t=this.onDidChange)!=null&&t.call(this,this.viewItems.map(r=>r.size)),this.sashItems.forEach(r=>r.sash.layout()),this.updateSashEnablement()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(t=>t.size/this.contentSize))}updateSashEnablement(){let t=!1;const n=this.viewItems.map(f=>t=f.size-f.minimumSize>0||t);t=!1;const r=this.viewItems.map(f=>t=f.maximumSize-f.size>0||t),a=[...this.viewItems].reverse();t=!1;const o=a.map(f=>t=f.size-f.minimumSize>0||t).reverse();t=!1;const u=a.map(f=>t=f.maximumSize-f.size>0||t).reverse();let c=0;for(let f=0;f<this.sashItems.length;f++){const{sash:d}=this.sashItems[f];c+=this.viewItems[f].size;const m=!(n[f]&&u[f+1]),p=!(r[f]&&o[f+1]);if(m&&p){const y=ar(f,-1,-1),g=ar(f+1,this.viewItems.length),x=this.findFirstSnapIndex(y),w=this.findFirstSnapIndex(g),S=typeof x=="number"&&!this.viewItems[x].visible,O=typeof w=="number"&&!this.viewItems[w].visible;S&&o[f]&&(c>0||this.startSnappingEnabled)?d.state=qn.Minimum:O&&n[f]&&(c<this.contentSize||this.endSnappingEnabled)?d.state=qn.Maximum:d.state=qn.Disabled}else d.state=m&&!p?qn.Minimum:!m&&p?qn.Maximum:qn.Enabled}}findFirstSnapIndex(t){for(const n of t){const r=this.viewItems[n];if(r.visible&&r.snap)return n}for(const n of t){const r=this.viewItems[n];if(r.visible&&r.maximumSize-r.minimumSize>0)return;if(!r.visible&&r.snap)return n}}}class Wl{constructor(t){this.size=void 0,this.size=t}getPreferredSize(){return this.size}}class DO{constructor(t,n){this.proportion=void 0,this.layoutService=void 0,this.proportion=t,this.layoutService=n}getPreferredSize(){return this.proportion*this.layoutService.getSize()}}class nf{getPreferredSize(){}}class NO{get preferredSize(){return this.layoutStrategy.getPreferredSize()}set preferredSize(t){if(typeof t=="number")this.layoutStrategy=new Wl(t);else if(typeof t=="string"){const n=t.trim();if(tf(n,"%")){const r=Number(n.slice(0,-1))/100;this.layoutStrategy=new DO(r,this.layoutService)}else if(tf(n,"px")){const r=Number(n.slice(0,-2))/100;this.layoutStrategy=new Wl(r)}else if(typeof Number.parseFloat(n)=="number"){const r=Number.parseFloat(n);this.layoutStrategy=new Wl(r)}else this.layoutStrategy=new nf}else this.layoutStrategy=new nf}constructor(t,n){var r;if(this.minimumSize=0,this.maximumSize=Number.POSITIVE_INFINITY,this.element=void 0,this.priority=void 0,this.snap=void 0,this.layoutService=void 0,this.layoutStrategy=void 0,this.layoutService=t,this.element=n.element,this.minimumSize=typeof n.minimumSize=="number"?n.minimumSize:30,this.maximumSize=typeof n.maximumSize=="number"?n.maximumSize:Number.POSITIVE_INFINITY,typeof n.preferredSize=="number")this.layoutStrategy=new Wl(n.preferredSize);else if(typeof n.preferredSize=="string"){const a=n.preferredSize.trim();if(tf(a,"%")){const o=Number(a.slice(0,-1))/100;this.layoutStrategy=new DO(o,this.layoutService)}else if(tf(a,"px")){const o=Number(a.slice(0,-2));this.layoutStrategy=new Wl(o)}else if(typeof Number.parseFloat(a)=="number"){const o=Number.parseFloat(a);this.layoutStrategy=new Wl(o)}else this.layoutStrategy=new nf}else this.layoutStrategy=new nf;this.priority=(r=n.priority)!=null?r:sr.Normal,this.snap=typeof n.snap=="boolean"&&n.snap}layout(t){}}function PO(e){return e.minSize!==void 0||e.maxSize!==void 0||e.preferredSize!==void 0||e.priority!==void 0||e.visible!==void 0}const f0=E.forwardRef(({className:e,children:t},n)=>Lr.createElement("div",{ref:n,className:Zy("split-view-view",vC,e)},t));f0.displayName="Allotment.Pane";const OC=E.forwardRef(({children:e,className:t,id:n,maxSize:r=1/0,minSize:a=30,proportionalLayout:o=!0,separator:u=!0,sizes:c,defaultSizes:f=c,snap:d=!1,vertical:m=!1,onChange:p,onReset:y,onVisibleChange:g,onDragStart:x,onDragEnd:w},S)=>{const O=E.useRef(null),C=E.useRef([]),T=E.useRef(new Map),D=E.useRef(null),P=E.useRef(new Map),k=E.useRef(new AI),j=E.useRef([]),[U,$]=E.useState(!1),I=E.useMemo(()=>Lr.Children.toArray(e).filter(Lr.isValidElement),[e]),Z=E.useCallback(q=>{var oe,ne;const Q=(oe=j.current)==null?void 0:oe[q];return typeof(Q==null?void 0:Q.preferredSize)=="number"&&((ne=D.current)!=null&&ne.resizeView(q,Math.round(Q.preferredSize)),!0)},[]);return E.useImperativeHandle(S,()=>({reset:()=>{if(y)y();else{var q;(q=D.current)==null||q.distributeViewSizes();for(let oe=0;oe<j.current.length;oe++)Z(oe)}},resize:q=>{var oe;(oe=D.current)==null||oe.resizeViews(q)}})),kO(()=>{let q=!0;f&&P.current.size!==f.length&&(q=!1,console.warn(`Expected ${f.length} children based on defaultSizes but found ${P.current.size}`)),q&&f&&(C.current=I.map(Q=>Q.key));const oe=uo({orientation:m?cr.Vertical:cr.Horizontal,proportionalLayout:o},q&&f&&{descriptor:{size:f.reduce((Q,L)=>Q+L,0),views:f.map((Q,L)=>{var K,J,re,N;const R=T.current.get(C.current[L]),V=new NO(k.current,uo({element:document.createElement("div"),minimumSize:(K=R==null?void 0:R.minSize)!=null?K:a,maximumSize:(J=R==null?void 0:R.maxSize)!=null?J:r,priority:(re=R==null?void 0:R.priority)!=null?re:sr.Normal},(R==null?void 0:R.preferredSize)&&{preferredSize:R==null?void 0:R.preferredSize},{snap:(N=R==null?void 0:R.snap)!=null?N:d}));return j.current.push(V),{container:[...P.current.values()][L],size:Q,view:V}})}});D.current=new NI(O.current,oe,p,x,w),D.current.on("sashDragStart",()=>{var Q;(Q=O.current)==null||Q.classList.add("split-view-sash-dragging")}),D.current.on("sashDragEnd",()=>{var Q;(Q=O.current)==null||Q.classList.remove("split-view-sash-dragging")}),D.current.on("sashchange",Q=>{if(g&&D.current){const L=I.map(K=>K.key);for(let K=0;K<L.length;K++){const J=T.current.get(L[K]);(J==null?void 0:J.visible)!==void 0&&J.visible!==D.current.isViewVisible(K)&&g(K,D.current.isViewVisible(K))}}}),D.current.on("sashreset",Q=>{if(y)y();else{var L;if(Z(Q)||Z(Q+1))return;(L=D.current)==null||L.distributeViewSizes()}});const ne=D.current;return()=>{ne.dispose()}},[]),kO(()=>{if(U){const z=I.map(ge=>ge.key),se=[...C.current],ye=z.filter(ge=>!C.current.includes(ge)),ve=z.filter(ge=>C.current.includes(ge)),Se=C.current.map(ge=>!z.includes(ge));for(let ge=Se.length-1;ge>=0;ge--){var q;Se[ge]&&((q=D.current)!=null&&q.removeView(ge),se.splice(ge,1),j.current.splice(ge,1))}for(const ge of ye){var oe,ne,Q,L,K;const Y=T.current.get(ge),he=new NO(k.current,uo({element:document.createElement("div"),minimumSize:(oe=Y==null?void 0:Y.minSize)!=null?oe:a,maximumSize:(ne=Y==null?void 0:Y.maxSize)!=null?ne:r,priority:(Q=Y==null?void 0:Y.priority)!=null?Q:sr.Normal},(Y==null?void 0:Y.preferredSize)&&{preferredSize:Y==null?void 0:Y.preferredSize},{snap:(L=Y==null?void 0:Y.snap)!=null?L:d}));(K=D.current)!=null&&K.addView(P.current.get(ge),he,zf.Distribute,z.findIndex(be=>be===ge)),se.splice(z.findIndex(be=>be===ge),0,ge),j.current.splice(z.findIndex(be=>be===ge),0,he)}for(;!pI(z,se);)for(const[ge,Y]of z.entries()){const he=se.findIndex(be=>be===Y);if(he!==ge){var J;(J=D.current)==null||J.moveView(P.current.get(Y),he,ge);const be=se[he];se.splice(he,1),se.splice(ge,0,be);break}}for(const ge of ye){var re;const Y=z.findIndex(be=>be===ge),he=j.current[Y].preferredSize;he!==void 0&&((re=D.current)==null||re.resizeView(Y,he))}for(const ge of[...ye,...ve]){var N,R;const Y=T.current.get(ge),he=z.findIndex(be=>be===ge);Y&&PO(Y)&&Y.visible!==void 0&&((N=D.current)==null?void 0:N.isViewVisible(he))!==Y.visible&&((R=D.current)==null||R.setViewVisible(he,Y.visible))}for(const ge of ve){const Y=T.current.get(ge),he=z.findIndex(be=>be===ge);if(Y&&PO(Y)){var V;Y.preferredSize!==void 0&&j.current[he].preferredSize!==Y.preferredSize&&(j.current[he].preferredSize=Y.preferredSize);let be=!1;Y.minSize!==void 0&&j.current[he].minimumSize!==Y.minSize&&(j.current[he].minimumSize=Y.minSize,be=!0),Y.maxSize!==void 0&&j.current[he].maximumSize!==Y.maxSize&&(j.current[he].maximumSize=Y.maxSize,be=!0),be&&((V=D.current)==null||V.layout())}}(ye.length>0||Se.length>0)&&(C.current=z)}},[I,U,r,a,d]),E.useEffect(()=>{D.current&&(D.current.onDidChange=p)},[p]),E.useEffect(()=>{D.current&&(D.current.onDidDragStart=x)},[x]),E.useEffect(()=>{D.current&&(D.current.onDidDragEnd=w)},[w]),yI({ref:O,onResize:({width:q,height:oe})=>{var ne;q&&oe&&((ne=D.current)!=null&&ne.layout(m?oe:q),k.current.setSize(m?oe:q),$(!0))}}),E.useEffect(()=>{bC&&PI(20)},[]),Lr.createElement("div",{ref:O,className:Zy("split-view",m?"split-view-vertical":"split-view-horizontal",{"split-view-separator-border":u},gI,m?wI:SI,{[OI]:u},t),id:n},Lr.createElement("div",{className:Zy("split-view-container",xI)},Lr.Children.toArray(e).map(q=>{if(!Lr.isValidElement(q))return null;const oe=q.key;return q.type.displayName==="Allotment.Pane"?(T.current.set(oe,q.props),Lr.cloneElement(q,{key:oe,ref:ne=>{const Q=q.ref;Q&&(Q.current=ne),ne?P.current.set(oe,ne):P.current.delete(oe)}})):Lr.createElement(f0,{key:oe,ref:ne=>{ne?P.current.set(oe,ne):P.current.delete(oe)}},q)})))});function PI(e){const t=wr(e,4,20),n=wr(e,1,8);document.documentElement.style.setProperty("--sash-size",t+"px"),document.documentElement.style.setProperty("--sash-hover-size",n+"px"),(function(r){xC=r,wC.emit("onDidChangeGlobalSize",r)})(t)}OC.displayName="Allotment";var Zp=Object.assign(OC,{Pane:f0});/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const RI=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),EC=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var II={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const LI=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:u,...c},f)=>E.createElement("svg",{ref:f,...II,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:EC("lucide",a),...c},[...u.map(([d,m])=>E.createElement(d,m)),...Array.isArray(o)?o:[o]]));/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Te=(e,t)=>{const n=E.forwardRef(({className:r,...a},o)=>E.createElement(LI,{ref:o,iconNode:t,className:EC(`lucide-${RI(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const BI=Te("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const UI=Te("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qI=Te("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const AC=Te("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kC=Te("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const d0=Te("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const HI=Te("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wy=Te("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $I=Te("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _C=Te("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const FI=Te("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const VI=Te("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $a=Te("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const YI=Te("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const KI=Te("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const GI=Te("FolderPlus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const XI=Te("FolderTree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qy=Te("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ZI=Te("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const WI=Te("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const QI=Te("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const JI=Te("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const e3=Te("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const CC=Te("ListTodo",[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jd=Te("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const t3=Te("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const n3=Te("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const r3=Te("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const i3=Te("PanelRightClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const a3=Te("PanelRightOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const l3=Te("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const o3=Te("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const u3=Te("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wp=Te("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const TC=Te("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const s3=Te("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const c3=Te("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yu=Te("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jC=Te("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const MC=Te("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const f3=Te("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const d3=Te("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const h0=Te("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const h3=Te("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function m3(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const p3=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,v3=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,y3={};function RO(e,t){return(y3.jsx?v3:p3).test(e)}const g3=/[ \t\n\f\r]/g;function b3(e){return typeof e=="object"?e.type==="text"?IO(e.value):!1:IO(e)}function IO(e){return e.replace(g3,"")===""}class gs{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}gs.prototype.normal={};gs.prototype.property={};gs.prototype.space=void 0;function zC(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new gs(n,r,t)}function Jy(e){return e.toLowerCase()}class Tn{constructor(t,n){this.attribute=n,this.property=t}}Tn.prototype.attribute="";Tn.prototype.booleanish=!1;Tn.prototype.boolean=!1;Tn.prototype.commaOrSpaceSeparated=!1;Tn.prototype.commaSeparated=!1;Tn.prototype.defined=!1;Tn.prototype.mustUseProperty=!1;Tn.prototype.number=!1;Tn.prototype.overloadedBoolean=!1;Tn.prototype.property="";Tn.prototype.spaceSeparated=!1;Tn.prototype.space=void 0;let x3=0;const ze=al(),Ct=al(),eg=al(),fe=al(),lt=al(),so=al(),Un=al();function al(){return 2**++x3}const tg=Object.freeze(Object.defineProperty({__proto__:null,boolean:ze,booleanish:Ct,commaOrSpaceSeparated:Un,commaSeparated:so,number:fe,overloadedBoolean:eg,spaceSeparated:lt},Symbol.toStringTag,{value:"Module"})),Qp=Object.keys(tg);class m0 extends Tn{constructor(t,n,r,a){let o=-1;if(super(t,n),LO(this,"space",a),typeof r=="number")for(;++o<Qp.length;){const u=Qp[o];LO(this,Qp[o],(r&tg[u])===tg[u])}}}m0.prototype.defined=!0;function LO(e,t,n){n&&(e[t]=n)}function Ao(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new m0(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Jy(r)]=r,n[Jy(o.attribute)]=r}return new gs(t,n,e.space)}const DC=Ao({properties:{ariaActiveDescendant:null,ariaAtomic:Ct,ariaAutoComplete:null,ariaBusy:Ct,ariaChecked:Ct,ariaColCount:fe,ariaColIndex:fe,ariaColSpan:fe,ariaControls:lt,ariaCurrent:null,ariaDescribedBy:lt,ariaDetails:null,ariaDisabled:Ct,ariaDropEffect:lt,ariaErrorMessage:null,ariaExpanded:Ct,ariaFlowTo:lt,ariaGrabbed:Ct,ariaHasPopup:null,ariaHidden:Ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:lt,ariaLevel:fe,ariaLive:null,ariaModal:Ct,ariaMultiLine:Ct,ariaMultiSelectable:Ct,ariaOrientation:null,ariaOwns:lt,ariaPlaceholder:null,ariaPosInSet:fe,ariaPressed:Ct,ariaReadOnly:Ct,ariaRelevant:null,ariaRequired:Ct,ariaRoleDescription:lt,ariaRowCount:fe,ariaRowIndex:fe,ariaRowSpan:fe,ariaSelected:Ct,ariaSetSize:fe,ariaSort:null,ariaValueMax:fe,ariaValueMin:fe,ariaValueNow:fe,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function NC(e,t){return t in e?e[t]:t}function PC(e,t){return NC(e,t.toLowerCase())}const w3=Ao({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:so,acceptCharset:lt,accessKey:lt,action:null,allow:null,allowFullScreen:ze,allowPaymentRequest:ze,allowUserMedia:ze,alt:null,as:null,async:ze,autoCapitalize:null,autoComplete:lt,autoFocus:ze,autoPlay:ze,blocking:lt,capture:null,charSet:null,checked:ze,cite:null,className:lt,cols:fe,colSpan:null,content:null,contentEditable:Ct,controls:ze,controlsList:lt,coords:fe|so,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ze,defer:ze,dir:null,dirName:null,disabled:ze,download:eg,draggable:Ct,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ze,formTarget:null,headers:lt,height:fe,hidden:eg,high:fe,href:null,hrefLang:null,htmlFor:lt,httpEquiv:lt,id:null,imageSizes:null,imageSrcSet:null,inert:ze,inputMode:null,integrity:null,is:null,isMap:ze,itemId:null,itemProp:lt,itemRef:lt,itemScope:ze,itemType:lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ze,low:fe,manifest:null,max:null,maxLength:fe,media:null,method:null,min:null,minLength:fe,multiple:ze,muted:ze,name:null,nonce:null,noModule:ze,noValidate:ze,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:ze,optimum:fe,pattern:null,ping:lt,placeholder:null,playsInline:ze,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ze,referrerPolicy:null,rel:lt,required:ze,reversed:ze,rows:fe,rowSpan:fe,sandbox:lt,scope:null,scoped:ze,seamless:ze,selected:ze,shadowRootClonable:ze,shadowRootDelegatesFocus:ze,shadowRootMode:null,shape:null,size:fe,sizes:null,slot:null,span:fe,spellCheck:Ct,src:null,srcDoc:null,srcLang:null,srcSet:null,start:fe,step:null,style:null,tabIndex:fe,target:null,title:null,translate:null,type:null,typeMustMatch:ze,useMap:null,value:Ct,width:fe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:lt,axis:null,background:null,bgColor:null,border:fe,borderColor:null,bottomMargin:fe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ze,declare:ze,event:null,face:null,frame:null,frameBorder:null,hSpace:fe,leftMargin:fe,link:null,longDesc:null,lowSrc:null,marginHeight:fe,marginWidth:fe,noResize:ze,noHref:ze,noShade:ze,noWrap:ze,object:null,profile:null,prompt:null,rev:null,rightMargin:fe,rules:null,scheme:null,scrolling:Ct,standby:null,summary:null,text:null,topMargin:fe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:fe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ze,disableRemotePlayback:ze,prefix:null,property:null,results:fe,security:null,unselectable:null},space:"html",transform:PC}),S3=Ao({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:Un,accentHeight:fe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:fe,amplitude:fe,arabicForm:null,ascent:fe,attributeName:null,attributeType:null,azimuth:fe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:fe,by:null,calcMode:null,capHeight:fe,className:lt,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:fe,diffuseConstant:fe,direction:null,display:null,dur:null,divisor:fe,dominantBaseline:null,download:ze,dx:null,dy:null,edgeMode:null,editable:null,elevation:fe,enableBackground:null,end:null,event:null,exponent:fe,externalResourcesRequired:null,fill:null,fillOpacity:fe,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:so,g2:so,glyphName:so,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:fe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:fe,horizOriginX:fe,horizOriginY:fe,id:null,ideographic:fe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:fe,k:fe,k1:fe,k2:fe,k3:fe,k4:fe,kernelMatrix:Un,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:fe,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:fe,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:fe,overlineThickness:fe,paintOrder:null,panose1:null,path:null,pathLength:fe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:lt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:fe,pointsAtY:fe,pointsAtZ:fe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Un,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Un,rev:Un,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Un,requiredFeatures:Un,requiredFonts:Un,requiredFormats:Un,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:fe,specularExponent:fe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:fe,strikethroughThickness:fe,string:null,stroke:null,strokeDashArray:Un,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:fe,strokeOpacity:fe,strokeWidth:null,style:null,surfaceScale:fe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Un,tabIndex:fe,tableValues:null,target:null,targetX:fe,targetY:fe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Un,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:fe,underlineThickness:fe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:fe,values:null,vAlphabetic:fe,vMathematical:fe,vectorEffect:null,vHanging:fe,vIdeographic:fe,version:null,vertAdvY:fe,vertOriginX:fe,vertOriginY:fe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:fe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:NC}),RC=Ao({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()}}),IC=Ao({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:PC}),LC=Ao({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),O3={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"},E3=/[A-Z]/g,BO=/-[a-z]/g,A3=/^data[-\w.:]+$/i;function k3(e,t){const n=Jy(t);let r=t,a=Tn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&A3.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(BO,C3);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!BO.test(o)){let u=o.replace(E3,_3);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}a=m0}return new a(r,t)}function _3(e){return"-"+e.toLowerCase()}function C3(e){return e.charAt(1).toUpperCase()}const T3=zC([DC,w3,RC,IC,LC],"html"),p0=zC([DC,S3,RC,IC,LC],"svg");function j3(e){return e.join(" ").trim()}var Ql={},Jp,UO;function M3(){if(UO)return Jp;UO=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g,f=`
`,d="/",m="*",p="",y="comment",g="declaration";function x(S,O){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];O=O||{};var C=1,T=1;function D(ne){var Q=ne.match(t);Q&&(C+=Q.length);var L=ne.lastIndexOf(f);T=~L?ne.length-L:T+ne.length}function P(){var ne={line:C,column:T};return function(Q){return Q.position=new k(ne),$(),Q}}function k(ne){this.start=ne,this.end={line:C,column:T},this.source=O.source}k.prototype.content=S;function j(ne){var Q=new Error(O.source+":"+C+":"+T+": "+ne);if(Q.reason=ne,Q.filename=O.source,Q.line=C,Q.column=T,Q.source=S,!O.silent)throw Q}function U(ne){var Q=ne.exec(S);if(Q){var L=Q[0];return D(L),S=S.slice(L.length),Q}}function $(){U(n)}function I(ne){var Q;for(ne=ne||[];Q=Z();)Q!==!1&&ne.push(Q);return ne}function Z(){var ne=P();if(!(d!=S.charAt(0)||m!=S.charAt(1))){for(var Q=2;p!=S.charAt(Q)&&(m!=S.charAt(Q)||d!=S.charAt(Q+1));)++Q;if(Q+=2,p===S.charAt(Q-1))return j("End of comment missing");var L=S.slice(2,Q-2);return T+=2,D(L),S=S.slice(Q),T+=2,ne({type:y,comment:L})}}function q(){var ne=P(),Q=U(r);if(Q){if(Z(),!U(a))return j("property missing ':'");var L=U(o),K=ne({type:g,property:w(Q[0].replace(e,p)),value:L?w(L[0].replace(e,p)):p});return U(u),K}}function oe(){var ne=[];I(ne);for(var Q;Q=q();)Q!==!1&&(ne.push(Q),I(ne));return ne}return $(),oe()}function w(S){return S?S.replace(c,p):p}return Jp=x,Jp}var qO;function z3(){if(qO)return Ql;qO=1;var e=Ql&&Ql.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ql,"__esModule",{value:!0}),Ql.default=n;const t=e(M3());function n(r,a){let o=null;if(!r||typeof r!="string")return o;const u=(0,t.default)(r),c=typeof a=="function";return u.forEach(f=>{if(f.type!=="declaration")return;const{property:d,value:m}=f;c?a(d,m,f):m&&(o=o||{},o[d]=m)}),o}return Ql}var Du={},HO;function D3(){if(HO)return Du;HO=1,Object.defineProperty(Du,"__esModule",{value:!0}),Du.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(d){return!d||n.test(d)||e.test(d)},u=function(d,m){return m.toUpperCase()},c=function(d,m){return"".concat(m,"-")},f=function(d,m){return m===void 0&&(m={}),o(d)?d:(d=d.toLowerCase(),m.reactCompat?d=d.replace(a,c):d=d.replace(r,c),d.replace(t,u))};return Du.camelCase=f,Du}var Nu,$O;function N3(){if($O)return Nu;$O=1;var e=Nu&&Nu.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(z3()),n=D3();function r(a,o){var u={};return!a||typeof a!="string"||(0,t.default)(a,function(c,f){c&&f&&(u[(0,n.camelCase)(c,o)]=f)}),u}return r.default=r,Nu=r,Nu}var P3=N3();const R3=Tr(P3),BC=UC("end"),v0=UC("start");function UC(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 I3(e){const t=v0(e),n=BC(e);if(t&&n)return{start:t,end:n}}function Zu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?FO(e.position):"start"in e||"end"in e?FO(e):"line"in e||"column"in e?ng(e):""}function ng(e){return VO(e&&e.line)+":"+VO(e&&e.column)}function FO(e){return ng(e&&e.start)+"-"+ng(e&&e.end)}function VO(e){return e&&typeof e=="number"?e:1}class on extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",o={},u=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?a=t:!o.cause&&t&&(u=!0,a=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const f=r.indexOf(":");f===-1?o.ruleId=r:(o.source=r.slice(0,f),o.ruleId=r.slice(f+1))}if(!o.place&&o.ancestors&&o.ancestors){const f=o.ancestors[o.ancestors.length-1];f&&(o.place=f.position)}const c=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=c?c.line:void 0,this.name=Zu(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=u&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}on.prototype.file="";on.prototype.name="";on.prototype.reason="";on.prototype.message="";on.prototype.stack="";on.prototype.column=void 0;on.prototype.line=void 0;on.prototype.ancestors=void 0;on.prototype.cause=void 0;on.prototype.fatal=void 0;on.prototype.place=void 0;on.prototype.ruleId=void 0;on.prototype.source=void 0;const y0={}.hasOwnProperty,L3=new Map,B3=/[A-Z]/g,U3=new Set(["table","tbody","thead","tfoot","tr"]),q3=new Set(["td","th"]),qC="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function H3(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=Z3(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=X3(n,t.jsx,t.jsxs)}const a={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"?p0:T3,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=HC(a,e,void 0);return o&&typeof o!="string"?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}function HC(e,t,n){if(t.type==="element")return $3(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return F3(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Y3(e,t,n);if(t.type==="mdxjsEsm")return V3(e,t);if(t.type==="root")return K3(e,t,n);if(t.type==="text")return G3(e,t)}function $3(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=p0,e.schema=a),e.ancestors.push(t);const o=FC(e,t.tagName,!1),u=W3(e,t);let c=b0(e,t);return U3.has(t.tagName)&&(c=c.filter(function(f){return typeof f=="string"?!b3(f):!0})),$C(e,u,o,t),g0(u,c),e.ancestors.pop(),e.schema=r,e.create(t,o,u,n)}function F3(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)}es(e,t.position)}function V3(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);es(e,t.position)}function Y3(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=p0,e.schema=a),e.ancestors.push(t);const o=t.name===null?e.Fragment:FC(e,t.name,!0),u=Q3(e,t),c=b0(e,t);return $C(e,u,o,t),g0(u,c),e.ancestors.pop(),e.schema=r,e.create(t,o,u,n)}function K3(e,t,n){const r={};return g0(r,b0(e,t)),e.create(t,e.Fragment,r,n)}function G3(e,t){return t.value}function $C(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function g0(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function X3(e,t,n){return r;function r(a,o,u,c){const d=Array.isArray(u.children)?n:t;return c?d(o,u,c):d(o,u)}}function Z3(e,t){return n;function n(r,a,o,u){const c=Array.isArray(o.children),f=v0(r);return t(a,o,u,c,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function W3(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&y0.call(t.properties,a)){const o=J3(e,a,t.properties[a]);if(o){const[u,c]=o;e.tableCellAlignToStyle&&u==="align"&&typeof c=="string"&&q3.has(t.tagName)?r=c:n[u]=c}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Q3(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const u=o.expression;u.type;const c=u.properties[0];c.type,Object.assign(n,e.evaluater.evaluateExpression(c.argument))}else es(e,t.position);else{const a=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const c=r.value.data.estree.body[0];c.type,o=e.evaluater.evaluateExpression(c.expression)}else es(e,t.position);else o=r.value===null?!0:r.value;n[a]=o}return n}function b0(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:L3;for(;++r<t.children.length;){const o=t.children[r];let u;if(e.passKeys){const f=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(f){const d=a.get(f)||0;u=f+"-"+d,a.set(f,d+1)}}const c=HC(e,o,u);c!==void 0&&n.push(c)}return n}function J3(e,t,n){const r=k3(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?m3(n):j3(n)),r.property==="style"){let a=typeof n=="object"?n:e4(e,String(n));return e.stylePropertyNameCase==="css"&&(a=t4(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?O3[r.property]||r.property:r.attribute,n]}}function e4(e,t){try{return R3(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new on("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=qC+"#cannot-parse-style-attribute",a}}function FC(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let o=-1,u;for(;++o<a.length;){const c=RO(a[o])?{type:"Identifier",name:a[o]}:{type:"Literal",value:a[o]};u=u?{type:"MemberExpression",object:u,property:c,computed:!!(o&&c.type==="Literal"),optional:!1}:c}r=u}else r=RO(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return y0.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);es(e)}function es(e,t){const n=new on("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=qC+"#cannot-handle-mdx-estrees-without-createevaluater",n}function t4(e){const t={};let n;for(n in e)y0.call(e,n)&&(t[n4(n)]=e[n]);return t}function n4(e){let t=e.replace(B3,r4);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function r4(e){return"-"+e.toLowerCase()}const ev={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"]},i4={};function x0(e,t){const n=i4,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return VC(e,r,a)}function VC(e,t,n){if(a4(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 YO(e.children,t,n)}return Array.isArray(e)?YO(e,t,n):""}function YO(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=VC(e[a],t,n);return r.join("")}function a4(e){return!!(e&&typeof e=="object")}const KO=document.createElement("i");function w0(e){const t="&"+e+";";KO.innerHTML=t;const n=KO.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Fn(e,t,n,r){const a=e.length;let o=0,u;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)u=Array.from(r),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);o<r.length;)u=r.slice(o,o+1e4),u.unshift(t,0),e.splice(...u),o+=1e4,t+=1e4}function fr(e,t){return e.length>0?(Fn(e,e.length,0,t),e):t}const GO={}.hasOwnProperty;function YC(e){const t={};let n=-1;for(;++n<e.length;)l4(t,e[n]);return t}function l4(e,t){let n;for(n in t){const a=(GO.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let u;if(o)for(u in o){GO.call(a,u)||(a[u]=[]);const c=o[u];o4(a[u],Array.isArray(c)?c:c?[c]:[])}}}function o4(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Fn(e,0,0,r)}function KC(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 Ar(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const dn=pa(/[A-Za-z]/),ln=pa(/[\dA-Za-z]/),u4=pa(/[#-'*+\--9=?A-Z^-~]/);function Df(e){return e!==null&&(e<32||e===127)}const rg=pa(/\d/),s4=pa(/[\dA-Fa-f]/),c4=pa(/[!-/:-@[-`{-~]/);function Ae(e){return e!==null&&e<-2}function it(e){return e!==null&&(e<0||e===32)}function Re(e){return e===-2||e===-1||e===32}const Md=pa(new RegExp("\\p{P}|\\p{S}","u")),Wa=pa(/\s/);function pa(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ko(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const o=e.charCodeAt(n);let u="";if(o===37&&ln(e.charCodeAt(n+1))&&ln(e.charCodeAt(n+2)))a=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(u=String.fromCharCode(o));else if(o>55295&&o<57344){const c=e.charCodeAt(n+1);o<56320&&c>56319&&c<57344?(u=String.fromCharCode(o,c),a=1):u="�"}else u=String.fromCharCode(o);u&&(t.push(e.slice(r,n),encodeURIComponent(u)),r=n+a+1,u=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function He(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let o=0;return u;function u(f){return Re(f)?(e.enter(n),c(f)):t(f)}function c(f){return Re(f)&&o++<a?(e.consume(f),c):(e.exit(n),t(f))}}const f4={tokenize:d4};function d4(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),He(e,t,"linePrefix")}function a(c){return e.enter("paragraph"),o(c)}function o(c){const f=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=f),n=f,u(c)}function u(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Ae(c)?(e.consume(c),e.exit("chunkText"),o):(e.consume(c),u)}}const h4={tokenize:m4},XO={tokenize:p4};function m4(e){const t=this,n=[];let r=0,a,o,u;return c;function c(T){if(r<n.length){const D=n[r];return t.containerState=D[1],e.attempt(D[0].continuation,f,d)(T)}return d(T)}function f(T){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&C();const D=t.events.length;let P=D,k;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){k=t.events[P][1].end;break}O(r);let j=D;for(;j<t.events.length;)t.events[j][1].end={...k},j++;return Fn(t.events,P+1,0,t.events.slice(D)),t.events.length=j,d(T)}return c(T)}function d(T){if(r===n.length){if(!a)return y(T);if(a.currentConstruct&&a.currentConstruct.concrete)return x(T);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(XO,m,p)(T)}function m(T){return a&&C(),O(r),y(T)}function p(T){return t.parser.lazy[t.now().line]=r!==n.length,u=t.now().offset,x(T)}function y(T){return t.containerState={},e.attempt(XO,g,x)(T)}function g(T){return r++,n.push([t.currentConstruct,t.containerState]),y(T)}function x(T){if(T===null){a&&C(),O(0),e.consume(T);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:o}),w(T)}function w(T){if(T===null){S(e.exit("chunkFlow"),!0),O(0),e.consume(T);return}return Ae(T)?(e.consume(T),S(e.exit("chunkFlow")),r=0,t.interrupt=void 0,c):(e.consume(T),w)}function S(T,D){const P=t.sliceStream(T);if(D&&P.push(null),T.previous=o,o&&(o.next=T),o=T,a.defineSkip(T.start),a.write(P),t.parser.lazy[T.start.line]){let k=a.events.length;for(;k--;)if(a.events[k][1].start.offset<u&&(!a.events[k][1].end||a.events[k][1].end.offset>u))return;const j=t.events.length;let U=j,$,I;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){if($){I=t.events[U][1].end;break}$=!0}for(O(r),k=j;k<t.events.length;)t.events[k][1].end={...I},k++;Fn(t.events,U+1,0,t.events.slice(j)),t.events.length=k}}function O(T){let D=n.length;for(;D-- >T;){const P=n[D];t.containerState=P[1],P[0].exit.call(t,e)}n.length=T}function C(){a.write([null]),o=void 0,a=void 0,t.containerState._closeFlow=void 0}}function p4(e,t,n){return He(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ho(e){if(e===null||it(e)||Wa(e))return 1;if(Md(e))return 2}function zd(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const o=e[a].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const ig={name:"attention",resolveAll:v4,tokenize:y4};function v4(e,t){let n=-1,r,a,o,u,c,f,d,m;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;f=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 p={...e[r][1].end},y={...e[n][1].start};ZO(p,-f),ZO(y,f),u={type:f>1?"strongSequence":"emphasisSequence",start:p,end:{...e[r][1].end}},c={type:f>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:y},o={type:f>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:f>1?"strong":"emphasis",start:{...u.start},end:{...c.end}},e[r][1].end={...u.start},e[n][1].start={...c.end},d=[],e[r][1].end.offset-e[r][1].start.offset&&(d=fr(d,[["enter",e[r][1],t],["exit",e[r][1],t]])),d=fr(d,[["enter",a,t],["enter",u,t],["exit",u,t],["enter",o,t]]),d=fr(d,zd(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),d=fr(d,[["exit",o,t],["enter",c,t],["exit",c,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(m=2,d=fr(d,[["enter",e[n][1],t],["exit",e[n][1],t]])):m=0,Fn(e,r-1,n-r+3,d),n=r+d.length-m-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function y4(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=ho(r);let o;return u;function u(f){return o=f,e.enter("attentionSequence"),c(f)}function c(f){if(f===o)return e.consume(f),c;const d=e.exit("attentionSequence"),m=ho(f),p=!m||m===2&&a||n.includes(f),y=!a||a===2&&m||n.includes(r);return d._open=!!(o===42?p:p&&(a||!y)),d._close=!!(o===42?y:y&&(m||!p)),t(f)}}function ZO(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const g4={name:"autolink",tokenize:b4};function b4(e,t,n){let r=0;return a;function a(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(g){return dn(g)?(e.consume(g),u):g===64?n(g):d(g)}function u(g){return g===43||g===45||g===46||ln(g)?(r=1,c(g)):d(g)}function c(g){return g===58?(e.consume(g),r=0,f):(g===43||g===45||g===46||ln(g))&&r++<32?(e.consume(g),c):(r=0,d(g))}function f(g){return g===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):g===null||g===32||g===60||Df(g)?n(g):(e.consume(g),f)}function d(g){return g===64?(e.consume(g),m):u4(g)?(e.consume(g),d):n(g)}function m(g){return ln(g)?p(g):n(g)}function p(g){return g===46?(e.consume(g),r=0,m):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):y(g)}function y(g){if((g===45||ln(g))&&r++<63){const x=g===45?y:p;return e.consume(g),x}return n(g)}}const bs={partial:!0,tokenize:x4};function x4(e,t,n){return r;function r(o){return Re(o)?He(e,a,"linePrefix")(o):a(o)}function a(o){return o===null||Ae(o)?t(o):n(o)}}const GC={continuation:{tokenize:S4},exit:O4,name:"blockQuote",tokenize:w4};function w4(e,t,n){const r=this;return a;function a(u){if(u===62){const c=r.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),o}return n(u)}function o(u){return Re(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function S4(e,t,n){const r=this;return a;function a(u){return Re(u)?He(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):o(u)}function o(u){return e.attempt(GC,t,n)(u)}}function O4(e){e.exit("blockQuote")}const XC={name:"characterEscape",tokenize:E4};function E4(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),a}function a(o){return c4(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const ZC={name:"characterReference",tokenize:A4};function A4(e,t,n){const r=this;let a=0,o,u;return c;function c(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),f}function f(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),o=31,u=ln,m(p))}function d(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,u=s4,m):(e.enter("characterReferenceValue"),o=7,u=rg,m(p))}function m(p){if(p===59&&a){const y=e.exit("characterReferenceValue");return u===ln&&!w0(r.sliceSerialize(y))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(p)&&a++<o?(e.consume(p),m):n(p)}}const WO={partial:!0,tokenize:_4},QO={concrete:!0,name:"codeFenced",tokenize:k4};function k4(e,t,n){const r=this,a={partial:!0,tokenize:P};let o=0,u=0,c;return f;function f(k){return d(k)}function d(k){const j=r.events[r.events.length-1];return o=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,c=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(k)}function m(k){return k===c?(u++,e.consume(k),m):u<3?n(k):(e.exit("codeFencedFenceSequence"),Re(k)?He(e,p,"whitespace")(k):p(k))}function p(k){return k===null||Ae(k)?(e.exit("codeFencedFence"),r.interrupt?t(k):e.check(WO,w,D)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),y(k))}function y(k){return k===null||Ae(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(k)):Re(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),He(e,g,"whitespace")(k)):k===96&&k===c?n(k):(e.consume(k),y)}function g(k){return k===null||Ae(k)?p(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(k))}function x(k){return k===null||Ae(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(k)):k===96&&k===c?n(k):(e.consume(k),x)}function w(k){return e.attempt(a,D,S)(k)}function S(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),O}function O(k){return o>0&&Re(k)?He(e,C,"linePrefix",o+1)(k):C(k)}function C(k){return k===null||Ae(k)?e.check(WO,w,D)(k):(e.enter("codeFlowValue"),T(k))}function T(k){return k===null||Ae(k)?(e.exit("codeFlowValue"),C(k)):(e.consume(k),T)}function D(k){return e.exit("codeFenced"),t(k)}function P(k,j,U){let $=0;return I;function I(Q){return k.enter("lineEnding"),k.consume(Q),k.exit("lineEnding"),Z}function Z(Q){return k.enter("codeFencedFence"),Re(Q)?He(k,q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):q(Q)}function q(Q){return Q===c?(k.enter("codeFencedFenceSequence"),oe(Q)):U(Q)}function oe(Q){return Q===c?($++,k.consume(Q),oe):$>=u?(k.exit("codeFencedFenceSequence"),Re(Q)?He(k,ne,"whitespace")(Q):ne(Q)):U(Q)}function ne(Q){return Q===null||Ae(Q)?(k.exit("codeFencedFence"),j(Q)):U(Q)}}}function _4(e,t,n){const r=this;return a;function a(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o)}function o(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}const tv={name:"codeIndented",tokenize:T4},C4={partial:!0,tokenize:j4};function T4(e,t,n){const r=this;return a;function a(d){return e.enter("codeIndented"),He(e,o,"linePrefix",5)(d)}function o(d){const m=r.events[r.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?u(d):n(d)}function u(d){return d===null?f(d):Ae(d)?e.attempt(C4,u,f)(d):(e.enter("codeFlowValue"),c(d))}function c(d){return d===null||Ae(d)?(e.exit("codeFlowValue"),u(d)):(e.consume(d),c)}function f(d){return e.exit("codeIndented"),t(d)}}function j4(e,t,n){const r=this;return a;function a(u){return r.parser.lazy[r.now().line]?n(u):Ae(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):He(e,o,"linePrefix",5)(u)}function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(u):Ae(u)?a(u):n(u)}}const M4={name:"codeText",previous:D4,resolve:z4,tokenize:N4};function z4(e){let t=e.length-4,n=3,r,a;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;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function D4(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function N4(e,t,n){let r=0,a,o;return u;function u(p){return e.enter("codeText"),e.enter("codeTextSequence"),c(p)}function c(p){return p===96?(e.consume(p),r++,c):(e.exit("codeTextSequence"),f(p))}function f(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),f):p===96?(o=e.enter("codeTextSequence"),a=0,m(p)):Ae(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("codeTextData"),d(p))}function d(p){return p===null||p===32||p===96||Ae(p)?(e.exit("codeTextData"),f(p)):(e.consume(p),d)}function m(p){return p===96?(e.consume(p),a++,m):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(o.type="codeTextData",d(p))}}class P4{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 a=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&Pu(this.left,r),o.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),Pu(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Pu(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);Pu(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Pu(this.left,n.reverse())}}}function Pu(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 WC(e){const t={};let n=-1,r,a,o,u,c,f,d;const m=new P4(e);for(;++n<m.length;){for(;n in t;)n=t[n];if(r=m.get(n),n&&r[1].type==="chunkFlow"&&m.get(n-1)[1].type==="listItemPrefix"&&(f=r[1]._tokenizer.events,o=0,o<f.length&&f[o][1].type==="lineEndingBlank"&&(o+=2),o<f.length&&f[o][1].type==="content"))for(;++o<f.length&&f[o][1].type!=="content";)f[o][1].type==="chunkText"&&(f[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,R4(m,n)),n=t[n],d=!0);else if(r[1]._container){for(o=n,a=void 0;o--;)if(u=m.get(o),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(a&&(m.get(a)[1].type="lineEndingBlank"),u[1].type="lineEnding",a=o);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;a&&(r[1].end={...m.get(a)[1].start},c=m.slice(a,n),c.unshift(r),m.splice(a,n-a+1,c))}}return Fn(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!d}function R4(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const o=[];let u=n._tokenizer;u||(u=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const c=u.events,f=[],d={};let m,p,y=-1,g=n,x=0,w=0;const S=[w];for(;g;){for(;e.get(++a)[1]!==g;);o.push(a),g._tokenizer||(m=r.sliceStream(g),g.next||m.push(null),p&&u.defineSkip(g.start),g._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(m),g._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),p=g,g=g.next}for(g=n;++y<c.length;)c[y][0]==="exit"&&c[y-1][0]==="enter"&&c[y][1].type===c[y-1][1].type&&c[y][1].start.line!==c[y][1].end.line&&(w=y+1,S.push(w),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(u.events=[],g?(g._tokenizer=void 0,g.previous=void 0):S.pop(),y=S.length;y--;){const O=c.slice(S[y],S[y+1]),C=o.pop();f.push([C,C+O.length-1]),e.splice(C,2,O)}for(f.reverse(),y=-1;++y<f.length;)d[x+f[y][0]]=x+f[y][1],x+=f[y][1]-f[y][0]-1;return d}const I4={resolve:B4,tokenize:U4},L4={partial:!0,tokenize:q4};function B4(e){return WC(e),e}function U4(e,t){let n;return r;function r(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(c)}function a(c){return c===null?o(c):Ae(c)?e.check(L4,u,o)(c):(e.consume(c),a)}function o(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function u(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function q4(e,t,n){const r=this;return a;function a(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),He(e,o,"linePrefix")}function o(u){if(u===null||Ae(u))return n(u);const c=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(u):e.interrupt(r.parser.constructs.flow,n,t)(u)}}function QC(e,t,n,r,a,o,u,c,f){const d=f||Number.POSITIVE_INFINITY;let m=0;return p;function p(O){return O===60?(e.enter(r),e.enter(a),e.enter(o),e.consume(O),e.exit(o),y):O===null||O===32||O===41||Df(O)?n(O):(e.enter(r),e.enter(u),e.enter(c),e.enter("chunkString",{contentType:"string"}),w(O))}function y(O){return O===62?(e.enter(o),e.consume(O),e.exit(o),e.exit(a),e.exit(r),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),g(O))}function g(O){return O===62?(e.exit("chunkString"),e.exit(c),y(O)):O===null||O===60||Ae(O)?n(O):(e.consume(O),O===92?x:g)}function x(O){return O===60||O===62||O===92?(e.consume(O),g):g(O)}function w(O){return!m&&(O===null||O===41||it(O))?(e.exit("chunkString"),e.exit(c),e.exit(u),e.exit(r),t(O)):m<d&&O===40?(e.consume(O),m++,w):O===41?(e.consume(O),m--,w):O===null||O===32||O===40||Df(O)?n(O):(e.consume(O),O===92?S:w)}function S(O){return O===40||O===41||O===92?(e.consume(O),w):w(O)}}function JC(e,t,n,r,a,o){const u=this;let c=0,f;return d;function d(g){return e.enter(r),e.enter(a),e.consume(g),e.exit(a),e.enter(o),m}function m(g){return c>999||g===null||g===91||g===93&&!f||g===94&&!c&&"_hiddenFootnoteSupport"in u.parser.constructs?n(g):g===93?(e.exit(o),e.enter(a),e.consume(g),e.exit(a),e.exit(r),t):Ae(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===null||g===91||g===93||Ae(g)||c++>999?(e.exit("chunkString"),m(g)):(e.consume(g),f||(f=!Re(g)),g===92?y:p)}function y(g){return g===91||g===92||g===93?(e.consume(g),c++,p):p(g)}}function eT(e,t,n,r,a,o){let u;return c;function c(y){return y===34||y===39||y===40?(e.enter(r),e.enter(a),e.consume(y),e.exit(a),u=y===40?41:y,f):n(y)}function f(y){return y===u?(e.enter(a),e.consume(y),e.exit(a),e.exit(r),t):(e.enter(o),d(y))}function d(y){return y===u?(e.exit(o),f(u)):y===null?n(y):Ae(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),He(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===u||y===null||Ae(y)?(e.exit("chunkString"),d(y)):(e.consume(y),y===92?p:m)}function p(y){return y===u||y===92?(e.consume(y),m):m(y)}}function Wu(e,t){let n;return r;function r(a){return Ae(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):Re(a)?He(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const H4={name:"definition",tokenize:F4},$4={partial:!0,tokenize:V4};function F4(e,t,n){const r=this;let a;return o;function o(g){return e.enter("definition"),u(g)}function u(g){return JC.call(r,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function c(g){return a=Ar(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),f):n(g)}function f(g){return it(g)?Wu(e,d)(g):d(g)}function d(g){return QC(e,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function m(g){return e.attempt($4,p,p)(g)}function p(g){return Re(g)?He(e,y,"whitespace")(g):y(g)}function y(g){return g===null||Ae(g)?(e.exit("definition"),r.parser.defined.push(a),t(g)):n(g)}}function V4(e,t,n){return r;function r(c){return it(c)?Wu(e,a)(c):n(c)}function a(c){return eT(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function o(c){return Re(c)?He(e,u,"whitespace")(c):u(c)}function u(c){return c===null||Ae(c)?t(c):n(c)}}const Y4={name:"hardBreakEscape",tokenize:K4};function K4(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),a}function a(o){return Ae(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const G4={name:"headingAtx",resolve:X4,tokenize:Z4};function X4(e,t){let n=e.length-2,r=3,a,o;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&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Fn(e,r,n-r+1,[["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t]])),e}function Z4(e,t,n){let r=0;return a;function a(m){return e.enter("atxHeading"),o(m)}function o(m){return e.enter("atxHeadingSequence"),u(m)}function u(m){return m===35&&r++<6?(e.consume(m),u):m===null||it(m)?(e.exit("atxHeadingSequence"),c(m)):n(m)}function c(m){return m===35?(e.enter("atxHeadingSequence"),f(m)):m===null||Ae(m)?(e.exit("atxHeading"),t(m)):Re(m)?He(e,c,"whitespace")(m):(e.enter("atxHeadingText"),d(m))}function f(m){return m===35?(e.consume(m),f):(e.exit("atxHeadingSequence"),c(m))}function d(m){return m===null||m===35||it(m)?(e.exit("atxHeadingText"),c(m)):(e.consume(m),d)}}const W4=["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"],JO=["pre","script","style","textarea"],Q4={concrete:!0,name:"htmlFlow",resolveTo:tL,tokenize:nL},J4={partial:!0,tokenize:iL},eL={partial:!0,tokenize:rL};function tL(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 nL(e,t,n){const r=this;let a,o,u,c,f;return d;function d(z){return m(z)}function m(z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(z),p}function p(z){return z===33?(e.consume(z),y):z===47?(e.consume(z),o=!0,w):z===63?(e.consume(z),a=3,r.interrupt?t:N):dn(z)?(e.consume(z),u=String.fromCharCode(z),S):n(z)}function y(z){return z===45?(e.consume(z),a=2,g):z===91?(e.consume(z),a=5,c=0,x):dn(z)?(e.consume(z),a=4,r.interrupt?t:N):n(z)}function g(z){return z===45?(e.consume(z),r.interrupt?t:N):n(z)}function x(z){const se="CDATA[";return z===se.charCodeAt(c++)?(e.consume(z),c===se.length?r.interrupt?t:q:x):n(z)}function w(z){return dn(z)?(e.consume(z),u=String.fromCharCode(z),S):n(z)}function S(z){if(z===null||z===47||z===62||it(z)){const se=z===47,ye=u.toLowerCase();return!se&&!o&&JO.includes(ye)?(a=1,r.interrupt?t(z):q(z)):W4.includes(u.toLowerCase())?(a=6,se?(e.consume(z),O):r.interrupt?t(z):q(z)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(z):o?C(z):T(z))}return z===45||ln(z)?(e.consume(z),u+=String.fromCharCode(z),S):n(z)}function O(z){return z===62?(e.consume(z),r.interrupt?t:q):n(z)}function C(z){return Re(z)?(e.consume(z),C):I(z)}function T(z){return z===47?(e.consume(z),I):z===58||z===95||dn(z)?(e.consume(z),D):Re(z)?(e.consume(z),T):I(z)}function D(z){return z===45||z===46||z===58||z===95||ln(z)?(e.consume(z),D):P(z)}function P(z){return z===61?(e.consume(z),k):Re(z)?(e.consume(z),P):T(z)}function k(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(e.consume(z),f=z,j):Re(z)?(e.consume(z),k):U(z)}function j(z){return z===f?(e.consume(z),f=null,$):z===null||Ae(z)?n(z):(e.consume(z),j)}function U(z){return z===null||z===34||z===39||z===47||z===60||z===61||z===62||z===96||it(z)?P(z):(e.consume(z),U)}function $(z){return z===47||z===62||Re(z)?T(z):n(z)}function I(z){return z===62?(e.consume(z),Z):n(z)}function Z(z){return z===null||Ae(z)?q(z):Re(z)?(e.consume(z),Z):n(z)}function q(z){return z===45&&a===2?(e.consume(z),L):z===60&&a===1?(e.consume(z),K):z===62&&a===4?(e.consume(z),R):z===63&&a===3?(e.consume(z),N):z===93&&a===5?(e.consume(z),re):Ae(z)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(J4,V,oe)(z)):z===null||Ae(z)?(e.exit("htmlFlowData"),oe(z)):(e.consume(z),q)}function oe(z){return e.check(eL,ne,V)(z)}function ne(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),Q}function Q(z){return z===null||Ae(z)?oe(z):(e.enter("htmlFlowData"),q(z))}function L(z){return z===45?(e.consume(z),N):q(z)}function K(z){return z===47?(e.consume(z),u="",J):q(z)}function J(z){if(z===62){const se=u.toLowerCase();return JO.includes(se)?(e.consume(z),R):q(z)}return dn(z)&&u.length<8?(e.consume(z),u+=String.fromCharCode(z),J):q(z)}function re(z){return z===93?(e.consume(z),N):q(z)}function N(z){return z===62?(e.consume(z),R):z===45&&a===2?(e.consume(z),N):q(z)}function R(z){return z===null||Ae(z)?(e.exit("htmlFlowData"),V(z)):(e.consume(z),R)}function V(z){return e.exit("htmlFlow"),t(z)}}function rL(e,t,n){const r=this;return a;function a(u){return Ae(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):n(u)}function o(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}function iL(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(bs,t,n)}}const aL={name:"htmlText",tokenize:lL};function lL(e,t,n){const r=this;let a,o,u;return c;function c(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),f}function f(N){return N===33?(e.consume(N),d):N===47?(e.consume(N),P):N===63?(e.consume(N),T):dn(N)?(e.consume(N),U):n(N)}function d(N){return N===45?(e.consume(N),m):N===91?(e.consume(N),o=0,x):dn(N)?(e.consume(N),C):n(N)}function m(N){return N===45?(e.consume(N),g):n(N)}function p(N){return N===null?n(N):N===45?(e.consume(N),y):Ae(N)?(u=p,K(N)):(e.consume(N),p)}function y(N){return N===45?(e.consume(N),g):p(N)}function g(N){return N===62?L(N):N===45?y(N):p(N)}function x(N){const R="CDATA[";return N===R.charCodeAt(o++)?(e.consume(N),o===R.length?w:x):n(N)}function w(N){return N===null?n(N):N===93?(e.consume(N),S):Ae(N)?(u=w,K(N)):(e.consume(N),w)}function S(N){return N===93?(e.consume(N),O):w(N)}function O(N){return N===62?L(N):N===93?(e.consume(N),O):w(N)}function C(N){return N===null||N===62?L(N):Ae(N)?(u=C,K(N)):(e.consume(N),C)}function T(N){return N===null?n(N):N===63?(e.consume(N),D):Ae(N)?(u=T,K(N)):(e.consume(N),T)}function D(N){return N===62?L(N):T(N)}function P(N){return dn(N)?(e.consume(N),k):n(N)}function k(N){return N===45||ln(N)?(e.consume(N),k):j(N)}function j(N){return Ae(N)?(u=j,K(N)):Re(N)?(e.consume(N),j):L(N)}function U(N){return N===45||ln(N)?(e.consume(N),U):N===47||N===62||it(N)?$(N):n(N)}function $(N){return N===47?(e.consume(N),L):N===58||N===95||dn(N)?(e.consume(N),I):Ae(N)?(u=$,K(N)):Re(N)?(e.consume(N),$):L(N)}function I(N){return N===45||N===46||N===58||N===95||ln(N)?(e.consume(N),I):Z(N)}function Z(N){return N===61?(e.consume(N),q):Ae(N)?(u=Z,K(N)):Re(N)?(e.consume(N),Z):$(N)}function q(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),a=N,oe):Ae(N)?(u=q,K(N)):Re(N)?(e.consume(N),q):(e.consume(N),ne)}function oe(N){return N===a?(e.consume(N),a=void 0,Q):N===null?n(N):Ae(N)?(u=oe,K(N)):(e.consume(N),oe)}function ne(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||it(N)?$(N):(e.consume(N),ne)}function Q(N){return N===47||N===62||it(N)?$(N):n(N)}function L(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function K(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),J}function J(N){return Re(N)?He(e,re,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):re(N)}function re(N){return e.enter("htmlTextData"),u(N)}}const S0={name:"labelEnd",resolveAll:cL,resolveTo:fL,tokenize:dL},oL={tokenize:hL},uL={tokenize:mL},sL={tokenize:pL};function cL(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 a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&Fn(e,0,e.length,n),e}function fL(e,t){let n=e.length,r=0,a,o,u,c;for(;n--;)if(a=e[n][1],o){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(o=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(u=n);const f={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[o][1].start},end:{...e[u][1].end}},m={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[u-2][1].start}};return c=[["enter",f,t],["enter",d,t]],c=fr(c,e.slice(o+1,o+r+3)),c=fr(c,[["enter",m,t]]),c=fr(c,zd(t.parser.constructs.insideSpan.null,e.slice(o+r+4,u-3),t)),c=fr(c,[["exit",m,t],e[u-2],e[u-1],["exit",d,t]]),c=fr(c,e.slice(u+1)),c=fr(c,[["exit",f,t]]),Fn(e,o,e.length,c),e}function dL(e,t,n){const r=this;let a=r.events.length,o,u;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){o=r.events[a][1];break}return c;function c(y){return o?o._inactive?p(y):(u=r.parser.defined.includes(Ar(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(y),e.exit("labelMarker"),e.exit("labelEnd"),f):n(y)}function f(y){return y===40?e.attempt(oL,m,u?m:p)(y):y===91?e.attempt(uL,m,u?d:p)(y):u?m(y):p(y)}function d(y){return e.attempt(sL,m,p)(y)}function m(y){return t(y)}function p(y){return o._balanced=!0,n(y)}}function hL(e,t,n){return r;function r(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),a}function a(p){return it(p)?Wu(e,o)(p):o(p)}function o(p){return p===41?m(p):QC(e,u,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function u(p){return it(p)?Wu(e,f)(p):m(p)}function c(p){return n(p)}function f(p){return p===34||p===39||p===40?eT(e,d,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):m(p)}function d(p){return it(p)?Wu(e,m)(p):m(p)}function m(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function mL(e,t,n){const r=this;return a;function a(c){return JC.call(r,e,o,u,"reference","referenceMarker","referenceString")(c)}function o(c){return r.parser.defined.includes(Ar(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function u(c){return n(c)}}function pL(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),a}function a(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const vL={name:"labelStartImage",resolveAll:S0.resolveAll,tokenize:yL};function yL(e,t,n){const r=this;return a;function a(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),o}function o(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),u):n(c)}function u(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(c):t(c)}}const gL={name:"labelStartLink",resolveAll:S0.resolveAll,tokenize:bL};function bL(e,t,n){const r=this;return a;function a(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),o}function o(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const nv={name:"lineEnding",tokenize:xL};function xL(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),He(e,t,"linePrefix")}}const Af={name:"thematicBreak",tokenize:wL};function wL(e,t,n){let r=0,a;return o;function o(d){return e.enter("thematicBreak"),u(d)}function u(d){return a=d,c(d)}function c(d){return d===a?(e.enter("thematicBreakSequence"),f(d)):r>=3&&(d===null||Ae(d))?(e.exit("thematicBreak"),t(d)):n(d)}function f(d){return d===a?(e.consume(d),r++,f):(e.exit("thematicBreakSequence"),Re(d)?He(e,c,"whitespace")(d):c(d))}}const An={continuation:{tokenize:AL},exit:_L,name:"list",tokenize:EL},SL={partial:!0,tokenize:CL},OL={partial:!0,tokenize:kL};function EL(e,t,n){const r=this,a=r.events[r.events.length-1];let o=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,u=0;return c;function c(g){const x=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:rg(g)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(Af,n,d)(g):d(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(g)}return n(g)}function f(g){return rg(g)&&++u<10?(e.consume(g),f):(!r.interrupt||u<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),d(g)):n(g)}function d(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(bs,r.interrupt?n:m,e.attempt(SL,y,p))}function m(g){return r.containerState.initialBlankLine=!0,o++,y(g)}function p(g){return Re(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),y):n(g)}function y(g){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function AL(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(bs,a,o);function a(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,He(e,t,"listItemIndent",r.containerState.size+1)(c)}function o(c){return r.containerState.furtherBlankLines||!Re(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,u(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(OL,t,u)(c))}function u(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,He(e,e.attempt(An,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function kL(e,t,n){const r=this;return He(e,a,"listItemIndent",r.containerState.size+1);function a(o){const u=r.events[r.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===r.containerState.size?t(o):n(o)}}function _L(e){e.exit(this.containerState.type)}function CL(e,t,n){const r=this;return He(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(o){const u=r.events[r.events.length-1];return!Re(o)&&u&&u[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const eE={name:"setextUnderline",resolveTo:TL,tokenize:jL};function TL(e,t){let n=e.length,r,a,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const u={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",o?(e.splice(a,0,["enter",u,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=u,e.push(["exit",u,t]),e}function jL(e,t,n){const r=this;let a;return o;function o(d){let m=r.events.length,p;for(;m--;)if(r.events[m][1].type!=="lineEnding"&&r.events[m][1].type!=="linePrefix"&&r.events[m][1].type!=="content"){p=r.events[m][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),a=d,u(d)):n(d)}function u(d){return e.enter("setextHeadingLineSequence"),c(d)}function c(d){return d===a?(e.consume(d),c):(e.exit("setextHeadingLineSequence"),Re(d)?He(e,f,"lineSuffix")(d):f(d))}function f(d){return d===null||Ae(d)?(e.exit("setextHeadingLine"),t(d)):n(d)}}const ML={tokenize:zL};function zL(e){const t=this,n=e.attempt(bs,r,e.attempt(this.parser.constructs.flowInitial,a,He(e,e.attempt(this.parser.constructs.flow,a,e.attempt(I4,a)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const DL={resolveAll:nT()},NL=tT("string"),PL=tT("text");function tT(e){return{resolveAll:nT(e==="text"?RL:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],o=n.attempt(a,u,c);return u;function u(m){return d(m)?o(m):c(m)}function c(m){if(m===null){n.consume(m);return}return n.enter("data"),n.consume(m),f}function f(m){return d(m)?(n.exit("data"),o(m)):(n.consume(m),f)}function d(m){if(m===null)return!0;const p=a[m];let y=-1;if(p)for(;++y<p.length;){const g=p[y];if(!g.previous||g.previous.call(r,r.previous))return!0}return!1}}}function nT(e){return t;function t(n,r){let a=-1,o;for(;++a<=n.length;)o===void 0?n[a]&&n[a][1].type==="data"&&(o=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==o+2&&(n[o][1].end=n[a-1][1].end,n.splice(o+2,a-o-2),a=o+2),o=void 0);return e?e(n,r):n}}function RL(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],a=t.sliceStream(r);let o=a.length,u=-1,c=0,f;for(;o--;){const d=a[o];if(typeof d=="string"){for(u=d.length;d.charCodeAt(u-1)===32;)c++,u--;if(u)break;u=-1}else if(d===-2)f=!0,c++;else if(d!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const d={type:n===e.length||f||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?u:r.start._bufferIndex+u,_index:r.start._index+o,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...d.start},r.start.offset===r.end.offset?Object.assign(r,d):(e.splice(n,0,["enter",d,t],["exit",d,t]),n+=2)}n++}return e}const IL={42:An,43:An,45:An,48:An,49:An,50:An,51:An,52:An,53:An,54:An,55:An,56:An,57:An,62:GC},LL={91:H4},BL={[-2]:tv,[-1]:tv,32:tv},UL={35:G4,42:Af,45:[eE,Af],60:Q4,61:eE,95:Af,96:QO,126:QO},qL={38:ZC,92:XC},HL={[-5]:nv,[-4]:nv,[-3]:nv,33:vL,38:ZC,42:ig,60:[g4,aL],91:gL,92:[Y4,XC],93:S0,95:ig,96:M4},$L={null:[ig,DL]},FL={null:[42,95]},VL={null:[]},YL=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:FL,contentInitial:LL,disable:VL,document:IL,flow:UL,flowInitial:BL,insideSpan:$L,string:qL,text:HL},Symbol.toStringTag,{value:"Module"}));function KL(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 a={},o=[];let u=[],c=[];const f={attempt:j(P),check:j(k),consume:C,enter:T,exit:D,interrupt:j(k,{interrupt:!0})},d={code:null,containerState:{},defineSkip:w,events:[],now:x,parser:e,previous:null,sliceSerialize:y,sliceStream:g,write:p};let m=t.tokenize.call(d,f);return t.resolveAll&&o.push(t),d;function p(Z){return u=fr(u,Z),S(),u[u.length-1]!==null?[]:(U(t,0),d.events=zd(o,d.events,d),d.events)}function y(Z,q){return XL(g(Z),q)}function g(Z){return GL(u,Z)}function x(){const{_bufferIndex:Z,_index:q,line:oe,column:ne,offset:Q}=r;return{_bufferIndex:Z,_index:q,line:oe,column:ne,offset:Q}}function w(Z){a[Z.line]=Z.column,I()}function S(){let Z;for(;r._index<u.length;){const q=u[r._index];if(typeof q=="string")for(Z=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===Z&&r._bufferIndex<q.length;)O(q.charCodeAt(r._bufferIndex));else O(q)}}function O(Z){m=m(Z)}function C(Z){Ae(Z)?(r.line++,r.column=1,r.offset+=Z===-3?2:1,I()):Z!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===u[r._index].length&&(r._bufferIndex=-1,r._index++)),d.previous=Z}function T(Z,q){const oe=q||{};return oe.type=Z,oe.start=x(),d.events.push(["enter",oe,d]),c.push(oe),oe}function D(Z){const q=c.pop();return q.end=x(),d.events.push(["exit",q,d]),q}function P(Z,q){U(Z,q.from)}function k(Z,q){q.restore()}function j(Z,q){return oe;function oe(ne,Q,L){let K,J,re,N;return Array.isArray(ne)?V(ne):"tokenize"in ne?V([ne]):R(ne);function R(ve){return Se;function Se(ge){const Y=ge!==null&&ve[ge],he=ge!==null&&ve.null,be=[...Array.isArray(Y)?Y:Y?[Y]:[],...Array.isArray(he)?he:he?[he]:[]];return V(be)(ge)}}function V(ve){return K=ve,J=0,ve.length===0?L:z(ve[J])}function z(ve){return Se;function Se(ge){return N=$(),re=ve,ve.partial||(d.currentConstruct=ve),ve.name&&d.parser.constructs.disable.null.includes(ve.name)?ye():ve.tokenize.call(q?Object.assign(Object.create(d),q):d,f,se,ye)(ge)}}function se(ve){return Z(re,N),Q}function ye(ve){return N.restore(),++J<K.length?z(K[J]):L}}}function U(Z,q){Z.resolveAll&&!o.includes(Z)&&o.push(Z),Z.resolve&&Fn(d.events,q,d.events.length-q,Z.resolve(d.events.slice(q),d)),Z.resolveTo&&(d.events=Z.resolveTo(d.events,d))}function $(){const Z=x(),q=d.previous,oe=d.currentConstruct,ne=d.events.length,Q=Array.from(c);return{from:ne,restore:L};function L(){r=Z,d.previous=q,d.currentConstruct=oe,d.events.length=ne,c=Q,I()}}function I(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function GL(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;let u;if(n===a)u=[e[n].slice(r,o)];else{if(u=e.slice(n,a),r>-1){const c=u[0];typeof c=="string"?u[0]=c.slice(r):u.shift()}o>0&&u.push(e[a].slice(0,o))}return u}function XL(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const o=e[n];let u;if(typeof o=="string")u=o;else switch(o){case-5:{u="\r";break}case-4:{u=`
`;break}case-3:{u=`\r
`;break}case-2:{u=t?" ":"	";break}case-1:{if(!t&&a)continue;u=" ";break}default:u=String.fromCharCode(o)}a=o===-2,r.push(u)}return r.join("")}function ZL(e){const r={constructs:YC([YL,...(e||{}).extensions||[]]),content:a(f4),defined:[],document:a(h4),flow:a(ML),lazy:{},string:a(NL),text:a(PL)};return r;function a(o){return u;function u(c){return KL(r,o,c)}}}function WL(e){for(;!WC(e););return e}const tE=/[\0\t\n\r]/g;function QL(){let e=1,t="",n=!0,r;return a;function a(o,u,c){const f=[];let d,m,p,y,g;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(u||void 0).decode(o)),p=0,t="",n&&(o.charCodeAt(0)===65279&&p++,n=void 0);p<o.length;){if(tE.lastIndex=p,d=tE.exec(o),y=d&&d.index!==void 0?d.index:o.length,g=o.charCodeAt(y),!d){t=o.slice(p);break}if(g===10&&p===y&&r)f.push(-3),r=void 0;else switch(r&&(f.push(-5),r=void 0),p<y&&(f.push(o.slice(p,y)),e+=y-p),g){case 0:{f.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,f.push(-2);e++<m;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:r=!0,e=1}p=y+1}return c&&(r&&f.push(-5),t&&f.push(t),f.push(null)),f}}const JL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function e5(e){return e.replace(JL,t5)}function t5(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),o=a===120||a===88;return KC(n.slice(o?2:1),o?16:10)}return w0(n)||e}const rT={}.hasOwnProperty;function n5(e,t,n){return typeof t!="string"&&(n=t,t=void 0),r5(n)(WL(ZL(n).document().write(QL()(e,t,!0))))}function r5(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(cl),autolinkProtocol:$,autolinkEmail:$,atxHeading:o(St),blockQuote:o(he),characterEscape:$,characterReference:$,codeFenced:o(be),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:o(be,u),codeText:o(ce,u),codeTextData:$,data:$,codeFlowValue:$,definition:o(jt),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:o(Ie),hardBreakEscape:o(Ot),hardBreakTrailing:o(Ot),htmlFlow:o(Gn,u),htmlFlowData:$,htmlText:o(Gn,u),htmlTextData:$,image:o(ba),label:u,link:o(cl),listItem:o(Lo),listItemValue:y,listOrdered:o(fl,p),listUnordered:o(fl),paragraph:o(Oh),reference:z,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:o(St),strong:o(Eh),thematicBreak:o(Ah)},exit:{atxHeading:f(),atxHeadingSequence:P,autolink:f(),autolinkEmail:Y,autolinkProtocol:ge,blockQuote:f(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:ye,characterReferenceMarkerNumeric:ye,characterReferenceValue:ve,characterReference:Se,codeFenced:f(S),codeFencedFence:w,codeFencedFenceInfo:g,codeFencedFenceMeta:x,codeFlowValue:I,codeIndented:f(O),codeText:f(Q),codeTextData:I,data:I,definition:f(),definitionDestinationString:D,definitionLabelString:C,definitionTitleString:T,emphasis:f(),hardBreakEscape:f(q),hardBreakTrailing:f(q),htmlFlow:f(oe),htmlFlowData:I,htmlText:f(ne),htmlTextData:I,image:f(K),label:re,labelText:J,lineEnding:Z,link:f(L),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:se,resourceDestinationString:N,resourceTitleString:R,resource:V,setextHeading:f(U),setextHeadingLineSequence:j,setextHeadingText:k,strong:f(),thematicBreak:f()}};iT(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ae){let de={type:"root",children:[]};const _e={stack:[de],tokenStack:[],config:t,enter:c,exit:d,buffer:u,resume:m,data:n},De=[];let Ke=-1;for(;++Ke<ae.length;)if(ae[Ke][1].type==="listOrdered"||ae[Ke][1].type==="listUnordered")if(ae[Ke][0]==="enter")De.push(Ke);else{const zn=De.pop();Ke=a(ae,zn,Ke)}for(Ke=-1;++Ke<ae.length;){const zn=t[ae[Ke][0]];rT.call(zn,ae[Ke][1].type)&&zn[ae[Ke][1].type].call(Object.assign({sliceSerialize:ae[Ke][2].sliceSerialize},_e),ae[Ke][1])}if(_e.tokenStack.length>0){const zn=_e.tokenStack[_e.tokenStack.length-1];(zn[1]||nE).call(_e,void 0,zn[0])}for(de.position={start:ua(ae.length>0?ae[0][1].start:{line:1,column:1,offset:0}),end:ua(ae.length>0?ae[ae.length-2][1].end:{line:1,column:1,offset:0})},Ke=-1;++Ke<t.transforms.length;)de=t.transforms[Ke](de)||de;return de}function a(ae,de,_e){let De=de-1,Ke=-1,zn=!1,Gr,sn,Mt,yn;for(;++De<=_e;){const tt=ae[De];switch(tt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{tt[0]==="enter"?Ke++:Ke--,yn=void 0;break}case"lineEndingBlank":{tt[0]==="enter"&&(Gr&&!yn&&!Ke&&!Mt&&(Mt=De),yn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:yn=void 0}if(!Ke&&tt[0]==="enter"&&tt[1].type==="listItemPrefix"||Ke===-1&&tt[0]==="exit"&&(tt[1].type==="listUnordered"||tt[1].type==="listOrdered")){if(Gr){let Ii=De;for(sn=void 0;Ii--;){const yr=ae[Ii];if(yr[1].type==="lineEnding"||yr[1].type==="lineEndingBlank"){if(yr[0]==="exit")continue;sn&&(ae[sn][1].type="lineEndingBlank",zn=!0),yr[1].type="lineEnding",sn=Ii}else if(!(yr[1].type==="linePrefix"||yr[1].type==="blockQuotePrefix"||yr[1].type==="blockQuotePrefixWhitespace"||yr[1].type==="blockQuoteMarker"||yr[1].type==="listItemIndent"))break}Mt&&(!sn||Mt<sn)&&(Gr._spread=!0),Gr.end=Object.assign({},sn?ae[sn][1].start:tt[1].end),ae.splice(sn||De,0,["exit",Gr,tt[2]]),De++,_e++}if(tt[1].type==="listItemPrefix"){const Ii={type:"listItem",_spread:!1,start:Object.assign({},tt[1].start),end:void 0};Gr=Ii,ae.splice(De,0,["enter",Ii,tt[2]]),De++,_e++,Mt=void 0,yn=!0}}}return ae[de][1]._spread=zn,_e}function o(ae,de){return _e;function _e(De){c.call(this,ae(De),De),de&&de.call(this,De)}}function u(){this.stack.push({type:"fragment",children:[]})}function c(ae,de,_e){this.stack[this.stack.length-1].children.push(ae),this.stack.push(ae),this.tokenStack.push([de,_e||void 0]),ae.position={start:ua(de.start),end:void 0}}function f(ae){return de;function de(_e){ae&&ae.call(this,_e),d.call(this,_e)}}function d(ae,de){const _e=this.stack.pop(),De=this.tokenStack.pop();if(De)De[0].type!==ae.type&&(de?de.call(this,ae,De[0]):(De[1]||nE).call(this,ae,De[0]));else throw new Error("Cannot close `"+ae.type+"` ("+Zu({start:ae.start,end:ae.end})+"): it’s not open");_e.position.end=ua(ae.end)}function m(){return x0(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function y(ae){if(this.data.expectingFirstListItemValue){const de=this.stack[this.stack.length-2];de.start=Number.parseInt(this.sliceSerialize(ae),10),this.data.expectingFirstListItemValue=void 0}}function g(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.lang=ae}function x(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.meta=ae}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.value=ae.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function O(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.value=ae.replace(/(\r?\n|\r)$/g,"")}function C(ae){const de=this.resume(),_e=this.stack[this.stack.length-1];_e.label=de,_e.identifier=Ar(this.sliceSerialize(ae)).toLowerCase()}function T(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.title=ae}function D(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.url=ae}function P(ae){const de=this.stack[this.stack.length-1];if(!de.depth){const _e=this.sliceSerialize(ae).length;de.depth=_e}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function j(ae){const de=this.stack[this.stack.length-1];de.depth=this.sliceSerialize(ae).codePointAt(0)===61?1:2}function U(){this.data.setextHeadingSlurpLineEnding=void 0}function $(ae){const _e=this.stack[this.stack.length-1].children;let De=_e[_e.length-1];(!De||De.type!=="text")&&(De=un(),De.position={start:ua(ae.start),end:void 0},_e.push(De)),this.stack.push(De)}function I(ae){const de=this.stack.pop();de.value+=this.sliceSerialize(ae),de.position.end=ua(ae.end)}function Z(ae){const de=this.stack[this.stack.length-1];if(this.data.atHardBreak){const _e=de.children[de.children.length-1];_e.position.end=ua(ae.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(de.type)&&($.call(this,ae),I.call(this,ae))}function q(){this.data.atHardBreak=!0}function oe(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.value=ae}function ne(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.value=ae}function Q(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.value=ae}function L(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=de,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function K(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=de,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function J(ae){const de=this.sliceSerialize(ae),_e=this.stack[this.stack.length-2];_e.label=e5(de),_e.identifier=Ar(de).toLowerCase()}function re(){const ae=this.stack[this.stack.length-1],de=this.resume(),_e=this.stack[this.stack.length-1];if(this.data.inReference=!0,_e.type==="link"){const De=ae.children;_e.children=De}else _e.alt=de}function N(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.url=ae}function R(){const ae=this.resume(),de=this.stack[this.stack.length-1];de.title=ae}function V(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function se(ae){const de=this.resume(),_e=this.stack[this.stack.length-1];_e.label=de,_e.identifier=Ar(this.sliceSerialize(ae)).toLowerCase(),this.data.referenceType="full"}function ye(ae){this.data.characterReferenceType=ae.type}function ve(ae){const de=this.sliceSerialize(ae),_e=this.data.characterReferenceType;let De;_e?(De=KC(de,_e==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):De=w0(de);const Ke=this.stack[this.stack.length-1];Ke.value+=De}function Se(ae){const de=this.stack.pop();de.position.end=ua(ae.end)}function ge(ae){I.call(this,ae);const de=this.stack[this.stack.length-1];de.url=this.sliceSerialize(ae)}function Y(ae){I.call(this,ae);const de=this.stack[this.stack.length-1];de.url="mailto:"+this.sliceSerialize(ae)}function he(){return{type:"blockquote",children:[]}}function be(){return{type:"code",lang:null,meta:null,value:""}}function ce(){return{type:"inlineCode",value:""}}function jt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ie(){return{type:"emphasis",children:[]}}function St(){return{type:"heading",depth:0,children:[]}}function Ot(){return{type:"break"}}function Gn(){return{type:"html",value:""}}function ba(){return{type:"image",title:null,url:"",alt:null}}function cl(){return{type:"link",title:null,url:"",children:[]}}function fl(ae){return{type:"list",ordered:ae.type==="listOrdered",start:null,spread:ae._spread,children:[]}}function Lo(ae){return{type:"listItem",spread:ae._spread,checked:null,children:[]}}function Oh(){return{type:"paragraph",children:[]}}function Eh(){return{type:"strong",children:[]}}function un(){return{type:"text",value:""}}function Ah(){return{type:"thematicBreak"}}}function ua(e){return{line:e.line,column:e.column,offset:e.offset}}function iT(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?iT(e,r):i5(e,r)}}function i5(e,t){let n;for(n in t)if(rT.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 nE(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Zu({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Zu({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Zu({start:t.start,end:t.end})+") is still open")}function a5(e){const t=this;t.parser=n;function n(r){return n5(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function l5(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 o5(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function u5(e,t){const n=t.value?t.value+`
`:"",r={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(r.className=["language-"+a[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function s5(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function c5(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function f5(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=ko(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let u,c=e.footnoteCounts.get(r);c===void 0?(c=0,e.footnoteOrder.push(r),u=e.footnoteOrder.length):u=o+1,c+=1,e.footnoteCounts.set(r,c);const f={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,f);const d={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,d),e.applyData(t,d)}function d5(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 h5(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function aT(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 a=e.all(t),o=a[0];o&&o.type==="text"?o.value="["+o.value:a.unshift({type:"text",value:"["});const u=a[a.length-1];return u&&u.type==="text"?u.value+=r:a.push({type:"text",value:r}),a}function m5(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return aT(e,t);const a={src:ko(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const o={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,o),e.applyData(t,o)}function p5(e,t){const n={src:ko(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 v5(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 y5(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return aT(e,t);const a={href:ko(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const o={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function g5(e,t){const n={href:ko(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 b5(e,t,n){const r=e.all(t),a=n?x5(n):lT(t),o={},u=[];if(typeof t.checked=="boolean"){const m=r[0];let p;m&&m.type==="element"&&m.tagName==="p"?p=m:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let c=-1;for(;++c<r.length;){const m=r[c];(a||c!==0||m.type!=="element"||m.tagName!=="p")&&u.push({type:"text",value:`
`}),m.type==="element"&&m.tagName==="p"&&!a?u.push(...m.children):u.push(m)}const f=r[r.length-1];f&&(a||f.type!=="element"||f.tagName!=="p")&&u.push({type:"text",value:`
`});const d={type:"element",tagName:"li",properties:o,children:u};return e.patch(t,d),e.applyData(t,d)}function x5(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=lT(n[r])}return t}function lT(e){const t=e.spread;return t??e.children.length>1}function w5(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const u=r[a];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function S5(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function O5(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function E5(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function A5(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],u),a.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=v0(t.children[1]),f=BC(t.children[t.children.length-1]);c&&f&&(u.position={start:c,end:f}),a.push(u)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)}function k5(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,c=u?u.length:t.children.length;let f=-1;const d=[];for(;++f<c;){const p=t.children[f],y={},g=u?u[f]:void 0;g&&(y.align=g);let x={type:"element",tagName:o,properties:y,children:[]};p&&(x.children=e.all(p),e.patch(p,x),x=e.applyData(p,x)),d.push(x)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(t,m),e.applyData(t,m)}function _5(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const rE=9,iE=32;function C5(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const o=[];for(;r;)o.push(aE(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return o.push(aE(t.slice(a),a>0,!1)),o.join("")}function aE(e,t,n){let r=0,a=e.length;if(t){let o=e.codePointAt(r);for(;o===rE||o===iE;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(a-1);for(;o===rE||o===iE;)a--,o=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function T5(e,t){const n={type:"text",value:C5(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function j5(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const M5={blockquote:l5,break:o5,code:u5,delete:s5,emphasis:c5,footnoteReference:f5,heading:d5,html:h5,imageReference:m5,image:p5,inlineCode:v5,linkReference:y5,link:g5,listItem:b5,list:w5,paragraph:S5,root:O5,strong:E5,table:A5,tableCell:_5,tableRow:k5,text:T5,thematicBreak:j5,toml:rf,yaml:rf,definition:rf,footnoteDefinition:rf};function rf(){}const oT=-1,Dd=0,Qu=1,Nf=2,O0=3,E0=4,A0=5,k0=6,uT=7,sT=8,lE=typeof self=="object"?self:globalThis,z5=(e,t)=>{const n=(a,o)=>(e.set(o,a),a),r=a=>{if(e.has(a))return e.get(a);const[o,u]=t[a];switch(o){case Dd:case oT:return n(u,a);case Qu:{const c=n([],a);for(const f of u)c.push(r(f));return c}case Nf:{const c=n({},a);for(const[f,d]of u)c[r(f)]=r(d);return c}case O0:return n(new Date(u),a);case E0:{const{source:c,flags:f}=u;return n(new RegExp(c,f),a)}case A0:{const c=n(new Map,a);for(const[f,d]of u)c.set(r(f),r(d));return c}case k0:{const c=n(new Set,a);for(const f of u)c.add(r(f));return c}case uT:{const{name:c,message:f}=u;return n(new lE[c](f),a)}case sT:return n(BigInt(u),a);case"BigInt":return n(Object(BigInt(u)),a);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:c}=new Uint8Array(u);return n(new DataView(c),u)}}return n(new lE[o](u),a)};return r},oE=e=>z5(new Map,e)(0),Jl="",{toString:D5}={},{keys:N5}=Object,Ru=e=>{const t=typeof e;if(t!=="object"||!e)return[Dd,t];const n=D5.call(e).slice(8,-1);switch(n){case"Array":return[Qu,Jl];case"Object":return[Nf,Jl];case"Date":return[O0,Jl];case"RegExp":return[E0,Jl];case"Map":return[A0,Jl];case"Set":return[k0,Jl];case"DataView":return[Qu,n]}return n.includes("Array")?[Qu,n]:n.includes("Error")?[uT,n]:[Nf,n]},af=([e,t])=>e===Dd&&(t==="function"||t==="symbol"),P5=(e,t,n,r)=>{const a=(u,c)=>{const f=r.push(u)-1;return n.set(c,f),f},o=u=>{if(n.has(u))return n.get(u);let[c,f]=Ru(u);switch(c){case Dd:{let m=u;switch(f){case"bigint":c=sT,m=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);m=null;break;case"undefined":return a([oT],u)}return a([c,m],u)}case Qu:{if(f){let y=u;return f==="DataView"?y=new Uint8Array(u.buffer):f==="ArrayBuffer"&&(y=new Uint8Array(u)),a([f,[...y]],u)}const m=[],p=a([c,m],u);for(const y of u)m.push(o(y));return p}case Nf:{if(f)switch(f){case"BigInt":return a([f,u.toString()],u);case"Boolean":case"Number":case"String":return a([f,u.valueOf()],u)}if(t&&"toJSON"in u)return o(u.toJSON());const m=[],p=a([c,m],u);for(const y of N5(u))(e||!af(Ru(u[y])))&&m.push([o(y),o(u[y])]);return p}case O0:return a([c,u.toISOString()],u);case E0:{const{source:m,flags:p}=u;return a([c,{source:m,flags:p}],u)}case A0:{const m=[],p=a([c,m],u);for(const[y,g]of u)(e||!(af(Ru(y))||af(Ru(g))))&&m.push([o(y),o(g)]);return p}case k0:{const m=[],p=a([c,m],u);for(const y of u)(e||!af(Ru(y)))&&m.push(o(y));return p}}const{message:d}=u;return a([c,{name:f,message:d}],u)};return o},uE=(e,{json:t,lossy:n}={})=>{const r=[];return P5(!(t||n),!!t,new Map,r)(e),r},Pf=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?oE(uE(e,t)):structuredClone(e):(e,t)=>oE(uE(e,t));function R5(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 I5(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function L5(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||R5,r=e.options.footnoteBackLabel||I5,a=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let f=-1;for(;++f<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[f]);if(!d)continue;const m=e.all(d),p=String(d.identifier).toUpperCase(),y=ko(p.toLowerCase());let g=0;const x=[],w=e.footnoteCounts.get(p);for(;w!==void 0&&++g<=w;){x.length>0&&x.push({type:"text",value:" "});let C=typeof n=="string"?n:n(f,g);typeof C=="string"&&(C={type:"text",value:C}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+y+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(f,g),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const S=m[m.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const C=S.children[S.children.length-1];C&&C.type==="text"?C.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...x)}else m.push(...x);const O={type:"element",tagName:"li",properties:{id:t+"fn-"+y},children:e.wrap(m,!0)};e.patch(d,O),c.push(O)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Pf(u),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
`}]}}const Nd=(function(e){if(e==null)return H5;if(typeof e=="function")return Pd(e);if(typeof e=="object")return Array.isArray(e)?B5(e):U5(e);if(typeof e=="string")return q5(e);throw new Error("Expected function, string, or object as test")});function B5(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Nd(e[n]);return Pd(r);function r(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function U5(e){const t=e;return Pd(n);function n(r){const a=r;let o;for(o in e)if(a[o]!==t[o])return!1;return!0}}function q5(e){return Pd(t);function t(n){return n&&n.type===e}}function Pd(e){return t;function t(n,r,a){return!!($5(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function H5(){return!0}function $5(e){return e!==null&&typeof e=="object"&&"type"in e}const cT=[],F5=!0,ag=!1,V5="skip";function fT(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const o=Nd(a),u=r?-1:1;c(e,void 0,[])();function c(f,d,m){const p=f&&typeof f=="object"?f:{};if(typeof p.type=="string"){const g=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(y,"name",{value:"node ("+(f.type+(g?"<"+g+">":""))+")"})}return y;function y(){let g=cT,x,w,S;if((!t||o(f,d,m[m.length-1]||void 0))&&(g=Y5(n(f,m)),g[0]===ag))return g;if("children"in f&&f.children){const O=f;if(O.children&&g[0]!==V5)for(w=(r?O.children.length:-1)+u,S=m.concat(O);w>-1&&w<O.children.length;){const C=O.children[w];if(x=c(C,w,S)(),x[0]===ag)return x;w=typeof x[1]=="number"?x[1]:w+u}}return g}}}function Y5(e){return Array.isArray(e)?e:typeof e=="number"?[F5,e]:e==null?cT:[e]}function _0(e,t,n,r){let a,o,u;typeof t=="function"&&typeof n!="function"?(o=void 0,u=t,a=n):(o=t,u=n,a=r),fT(e,o,c,a);function c(f,d){const m=d[d.length-1],p=m?m.children.indexOf(f):void 0;return u(f,p,m)}}const lg={}.hasOwnProperty,K5={};function G5(e,t){const n=t||K5,r=new Map,a=new Map,o=new Map,u={...M5,...n.handlers},c={all:d,applyData:Z5,definitionById:r,footnoteById:a,footnoteCounts:o,footnoteOrder:[],handlers:u,one:f,options:n,patch:X5,wrap:Q5};return _0(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const p=m.type==="definition"?r:a,y=String(m.identifier).toUpperCase();p.has(y)||p.set(y,m)}}),c;function f(m,p){const y=m.type,g=c.handlers[y];if(lg.call(c.handlers,y)&&g)return g(c,m,p);if(c.options.passThrough&&c.options.passThrough.includes(y)){if("children"in m){const{children:w,...S}=m,O=Pf(S);return O.children=c.all(m),O}return Pf(m)}return(c.options.unknownHandler||W5)(c,m,p)}function d(m){const p=[];if("children"in m){const y=m.children;let g=-1;for(;++g<y.length;){const x=c.one(y[g],m);if(x){if(g&&y[g-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=sE(x.value)),!Array.isArray(x)&&x.type==="element")){const w=x.children[0];w&&w.type==="text"&&(w.value=sE(w.value))}Array.isArray(x)?p.push(...x):p.push(x)}}}return p}}function X5(e,t){e.position&&(t.position=I3(e))}function Z5(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const u="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:u}}n.type==="element"&&o&&Object.assign(n.properties,Pf(o)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function W5(e,t){const n=t.data||{},r="value"in t&&!(lg.call(n,"hProperties")||lg.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 Q5(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 sE(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function cE(e,t){const n=G5(e,t),r=n.one(e,void 0),a=L5(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&o.children.push({type:"text",value:`
`},a),o}function J5(e,t){return e&&"run"in e?async function(n,r){const a=cE(n,{file:r,...t});await e.run(a,r)}:function(n,r){return cE(n,{file:r,...e||t})}}function fE(e){if(e)throw e}var rv,dE;function e6(){if(dE)return rv;dE=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(d){return typeof Array.isArray=="function"?Array.isArray(d):t.call(d)==="[object Array]"},o=function(d){if(!d||t.call(d)!=="[object Object]")return!1;var m=e.call(d,"constructor"),p=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!m&&!p)return!1;var y;for(y in d);return typeof y>"u"||e.call(d,y)},u=function(d,m){n&&m.name==="__proto__"?n(d,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):d[m.name]=m.newValue},c=function(d,m){if(m==="__proto__")if(e.call(d,m)){if(r)return r(d,m).value}else return;return d[m]};return rv=function f(){var d,m,p,y,g,x,w=arguments[0],S=1,O=arguments.length,C=!1;for(typeof w=="boolean"&&(C=w,w=arguments[1]||{},S=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});S<O;++S)if(d=arguments[S],d!=null)for(m in d)p=c(w,m),y=c(d,m),w!==y&&(C&&y&&(o(y)||(g=a(y)))?(g?(g=!1,x=p&&a(p)?p:[]):x=p&&o(p)?p:{},u(w,{name:m,newValue:f(C,x,y)})):typeof y<"u"&&u(w,{name:m,newValue:y}));return w},rv}var t6=e6();const iv=Tr(t6);function og(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 n6(){const e=[],t={run:n,use:r};return t;function n(...a){let o=-1;const u=a.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);c(null,...a);function c(f,...d){const m=e[++o];let p=-1;if(f){u(f);return}for(;++p<a.length;)(d[p]===null||d[p]===void 0)&&(d[p]=a[p]);a=d,m?r6(m,c)(...d):u(null,...d)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function r6(e,t){let n;return r;function r(...u){const c=e.length>u.length;let f;c&&u.push(a);try{f=e.apply(this,u)}catch(d){const m=d;if(c&&n)throw m;return a(m)}c||(f&&f.then&&typeof f.then=="function"?f.then(o,a):f instanceof Error?a(f):o(f))}function a(u,...c){n||(n=!0,t(u,...c))}function o(u){a(null,u)}}const Br={basename:i6,dirname:a6,extname:l6,join:o6,sep:"/"};function i6(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');xs(e);let n=0,r=-1,a=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(o){n=a+1;break}}else r<0&&(o=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let u=-1,c=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(o){n=a+1;break}}else u<0&&(o=!0,u=a+1),c>-1&&(e.codePointAt(a)===t.codePointAt(c--)?c<0&&(r=a):(c=-1,r=u));return n===r?r=u:r<0&&(r=e.length),e.slice(n,r)}function a6(e){if(xs(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 l6(e){xs(e);let t=e.length,n=-1,r=0,a=-1,o=0,u;for(;t--;){const c=e.codePointAt(t);if(c===47){if(u){r=t+1;break}continue}n<0&&(u=!0,n=t+1),c===46?a<0?a=t:o!==1&&(o=1):a>-1&&(o=-1)}return a<0||n<0||o===0||o===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function o6(...e){let t=-1,n;for(;++t<e.length;)xs(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":u6(n)}function u6(e){xs(e);const t=e.codePointAt(0)===47;let n=s6(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function s6(e,t){let n="",r=0,a=-1,o=0,u=-1,c,f;for(;++u<=e.length;){if(u<e.length)c=e.codePointAt(u);else{if(c===47)break;c=47}if(c===47){if(!(a===u-1||o===1))if(a!==u-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(f=n.lastIndexOf("/"),f!==n.length-1){f<0?(n="",r=0):(n=n.slice(0,f),r=n.length-1-n.lastIndexOf("/")),a=u,o=0;continue}}else if(n.length>0){n="",r=0,a=u,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,u):n=e.slice(a+1,u),r=u-a-1;a=u,o=0}else c===46&&o>-1?o++:o=-1}return n}function xs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const c6={cwd:f6};function f6(){return"/"}function ug(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function d6(e){if(typeof e=="string")e=new URL(e);else if(!ug(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 h6(e)}function h6(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 a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const av=["history","path","basename","stem","extname","dirname"];class dT{constructor(t){let n;t?ug(t)?n={path:t}:typeof t=="string"||m6(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":c6.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<av.length;){const o=av[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let a;for(a in n)av.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?Br.basename(this.path):void 0}set basename(t){ov(t,"basename"),lv(t,"basename"),this.path=Br.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Br.dirname(this.path):void 0}set dirname(t){hE(this.basename,"dirname"),this.path=Br.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Br.extname(this.path):void 0}set extname(t){if(lv(t,"extname"),hE(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=Br.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ug(t)&&(t=d6(t)),ov(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Br.basename(this.path,this.extname):void 0}set stem(t){ov(t,"stem"),lv(t,"stem"),this.path=Br.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new on(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function lv(e,t){if(e&&e.includes(Br.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Br.sep+"`")}function ov(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function hE(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function m6(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const p6=(function(e){const r=this.constructor.prototype,a=r[e],o=function(){return a.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),v6={}.hasOwnProperty;class C0 extends p6{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=n6()}copy(){const t=new C0;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(iv(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(cv("data",this.frozen),this.namespace[t]=n,this):v6.call(this.namespace,t)&&this.namespace[t]||void 0:t?(cv("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 a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=lf(t),r=this.parser||this.Parser;return uv("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),uv("process",this.parser||this.Parser),sv("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(o,u){const c=lf(t),f=r.parse(c);r.run(f,c,function(m,p,y){if(m||!p||!y)return d(m);const g=p,x=r.stringify(g,y);b6(x)?y.value=x:y.result=x,d(m,y)});function d(m,p){m||!p?u(m):o?o(p):n(void 0,p)}}}processSync(t){let n=!1,r;return this.freeze(),uv("processSync",this.parser||this.Parser),sv("processSync",this.compiler||this.Compiler),this.process(t,a),pE("processSync","process",n),r;function a(o,u){n=!0,fE(o),r=u}}run(t,n,r){mE(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(u,c){const f=lf(n);a.run(t,f,d);function d(m,p,y){const g=p||t;m?c(m):u?u(g):r(void 0,g,y)}}}runSync(t,n){let r=!1,a;return this.run(t,n,o),pE("runSync","run",r),a;function o(u,c){fE(u),a=c,r=!0}}stringify(t,n){this.freeze();const r=lf(n),a=this.compiler||this.Compiler;return sv("stringify",a),mE(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(cv("use",this.frozen),t!=null)if(typeof t=="function")f(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(d){if(typeof d=="function")f(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[m,...p]=d;f(m,p)}else u(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function u(d){if(!("plugins"in d)&&!("settings"in d))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");c(d.plugins),d.settings&&(a.settings=iv(!0,a.settings,d.settings))}function c(d){let m=-1;if(d!=null)if(Array.isArray(d))for(;++m<d.length;){const p=d[m];o(p)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function f(d,m){let p=-1,y=-1;for(;++p<r.length;)if(r[p][0]===d){y=p;break}if(y===-1)r.push([d,...m]);else if(m.length>0){let[g,...x]=m;const w=r[y][1];og(w)&&og(g)&&(g=iv(!0,w,g)),r[y]=[d,g,...x]}}}}const y6=new C0().freeze();function uv(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function sv(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function cv(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 mE(e){if(!og(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function pE(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function lf(e){return g6(e)?e:new dT(e)}function g6(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function b6(e){return typeof e=="string"||x6(e)}function x6(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const w6="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",vE=[],yE={allowDangerousHtml:!0},S6=/^(https?|ircs?|mailto|xmpp)$/i,O6=[{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 T0(e){const t=E6(e),n=A6(e);return k6(t.runSync(t.parse(n),n),e)}function E6(e){const t=e.rehypePlugins||vE,n=e.remarkPlugins||vE,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...yE}:yE;return y6().use(a5).use(n).use(J5,r).use(t)}function A6(e){const t=e.children||"",n=new dT;return typeof t=="string"&&(n.value=t),n}function k6(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,o=t.disallowedElements,u=t.skipHtml,c=t.unwrapDisallowed,f=t.urlTransform||_6;for(const m of O6)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+w6+m.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),_0(e,d),H3(e,{Fragment:_.Fragment,components:a,ignoreInvalidStyle:!0,jsx:_.jsx,jsxs:_.jsxs,passKeys:!0,passNode:!0});function d(m,p,y){if(m.type==="raw"&&y&&typeof p=="number")return u?y.children.splice(p,1):y.children[p]={type:"text",value:m.value},p;if(m.type==="element"){let g;for(g in ev)if(Object.hasOwn(ev,g)&&Object.hasOwn(m.properties,g)){const x=m.properties[g],w=ev[g];(w===null||w.includes(m.tagName))&&(m.properties[g]=f(String(x||""),g,m))}}if(m.type==="element"){let g=n?!n.includes(m.tagName):o?o.includes(m.tagName):!1;if(!g&&r&&typeof p=="number"&&(g=!r(m,p,y)),g&&y&&typeof p=="number")return c&&m.children?y.children.splice(p,1,...m.children):y.children.splice(p,1),p}}}function _6(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||S6.test(e.slice(0,t))?e:""}function gE(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function C6(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function T6(e,t,n){const a=Nd((n||{}).ignore||[]),o=j6(t);let u=-1;for(;++u<o.length;)fT(e,"text",c);function c(d,m){let p=-1,y;for(;++p<m.length;){const g=m[p],x=y?y.children:void 0;if(a(g,x?x.indexOf(g):void 0,y))return;y=g}if(y)return f(d,m)}function f(d,m){const p=m[m.length-1],y=o[u][0],g=o[u][1];let x=0;const S=p.children.indexOf(d);let O=!1,C=[];y.lastIndex=0;let T=y.exec(d.value);for(;T;){const D=T.index,P={index:T.index,input:T.input,stack:[...m,d]};let k=g(...T,P);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?y.lastIndex=D+1:(x!==D&&C.push({type:"text",value:d.value.slice(x,D)}),Array.isArray(k)?C.push(...k):k&&C.push(k),x=D+T[0].length,O=!0),!y.global)break;T=y.exec(d.value)}return O?(x<d.value.length&&C.push({type:"text",value:d.value.slice(x)}),p.children.splice(S,1,...C)):C=[d],S+C.length}}function j6(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 a=n[r];t.push([M6(a[0]),z6(a[1])])}return t}function M6(e){return typeof e=="string"?new RegExp(C6(e),"g"):e}function z6(e){return typeof e=="function"?e:function(){return e}}const fv="phrasing",dv=["autolink","link","image","label"];function D6(){return{transforms:[U6],enter:{literalAutolink:P6,literalAutolinkEmail:hv,literalAutolinkHttp:hv,literalAutolinkWww:hv},exit:{literalAutolink:B6,literalAutolinkEmail:L6,literalAutolinkHttp:R6,literalAutolinkWww:I6}}}function N6(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:fv,notInConstruct:dv},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:fv,notInConstruct:dv},{character:":",before:"[ps]",after:"\\/",inConstruct:fv,notInConstruct:dv}]}}function P6(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function hv(e){this.config.enter.autolinkProtocol.call(this,e)}function R6(e){this.config.exit.autolinkProtocol.call(this,e)}function I6(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 L6(e){this.config.exit.autolinkEmail.call(this,e)}function B6(e){this.exit(e)}function U6(e){T6(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,q6],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),H6]],{ignore:["link","linkReference"]})}function q6(e,t,n,r,a){let o="";if(!hT(a)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!$6(n)))return!1;const u=F6(n+r);if(!u[0])return!1;const c={type:"link",title:null,url:o+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[c,{type:"text",value:u[1]}]:c}function H6(e,t,n,r){return!hT(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function $6(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 F6(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 a=gE(e,"(");let o=gE(e,")");for(;r!==-1&&a>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function hT(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Wa(n)||Md(n))&&(!t||n!==47)}mT.peek=J6;function V6(){this.buffer()}function Y6(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function K6(){this.buffer()}function G6(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function X6(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ar(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Z6(e){this.exit(e)}function W6(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ar(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Q6(e){this.exit(e)}function J6(){return"["}function mT(e,t,n,r){const a=n.createTracker(r);let o=a.move("[^");const u=n.enter("footnoteReference"),c=n.enter("reference");return o+=a.move(n.safe(n.associationId(e),{after:"]",before:o})),c(),u(),o+=a.move("]"),o}function eB(){return{enter:{gfmFootnoteCallString:V6,gfmFootnoteCall:Y6,gfmFootnoteDefinitionLabelString:K6,gfmFootnoteDefinition:G6},exit:{gfmFootnoteCallString:X6,gfmFootnoteCall:Z6,gfmFootnoteDefinitionLabelString:W6,gfmFootnoteDefinition:Q6}}}function tB(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:mT},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,o,u){const c=o.createTracker(u);let f=c.move("[^");const d=o.enter("footnoteDefinition"),m=o.enter("label");return f+=c.move(o.safe(o.associationId(r),{before:f,after:"]"})),m(),f+=c.move("]:"),r.children&&r.children.length>0&&(c.shift(4),f+=c.move((t?`
`:" ")+o.indentLines(o.containerFlow(r,c.current()),t?pT:nB))),d(),f}}function nB(e,t,n){return t===0?e:pT(e,t,n)}function pT(e,t,n){return(n?"":"    ")+e}const rB=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];vT.peek=uB;function iB(){return{canContainEols:["delete"],enter:{strikethrough:lB},exit:{strikethrough:oB}}}function aB(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:rB}],handlers:{delete:vT}}}function lB(e){this.enter({type:"delete",children:[]},e)}function oB(e){this.exit(e)}function vT(e,t,n,r){const a=n.createTracker(r),o=n.enter("strikethrough");let u=a.move("~~");return u+=n.containerPhrasing(e,{...a.current(),before:u,after:"~"}),u+=a.move("~~"),o(),u}function uB(){return"~"}function sB(e){return e.length}function cB(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||sB,o=[],u=[],c=[],f=[];let d=0,m=-1;for(;++m<e.length;){const w=[],S=[];let O=-1;for(e[m].length>d&&(d=e[m].length);++O<e[m].length;){const C=fB(e[m][O]);if(n.alignDelimiters!==!1){const T=a(C);S[O]=T,(f[O]===void 0||T>f[O])&&(f[O]=T)}w.push(C)}u[m]=w,c[m]=S}let p=-1;if(typeof r=="object"&&"length"in r)for(;++p<d;)o[p]=bE(r[p]);else{const w=bE(r);for(;++p<d;)o[p]=w}p=-1;const y=[],g=[];for(;++p<d;){const w=o[p];let S="",O="";w===99?(S=":",O=":"):w===108?S=":":w===114&&(O=":");let C=n.alignDelimiters===!1?1:Math.max(1,f[p]-S.length-O.length);const T=S+"-".repeat(C)+O;n.alignDelimiters!==!1&&(C=S.length+C+O.length,C>f[p]&&(f[p]=C),g[p]=C),y[p]=T}u.splice(1,0,y),c.splice(1,0,g),m=-1;const x=[];for(;++m<u.length;){const w=u[m],S=c[m];p=-1;const O=[];for(;++p<d;){const C=w[p]||"";let T="",D="";if(n.alignDelimiters!==!1){const P=f[p]-(S[p]||0),k=o[p];k===114?T=" ".repeat(P):k===99?P%2?(T=" ".repeat(P/2+.5),D=" ".repeat(P/2-.5)):(T=" ".repeat(P/2),D=T):D=" ".repeat(P)}n.delimiterStart!==!1&&!p&&O.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&C==="")&&(n.delimiterStart!==!1||p)&&O.push(" "),n.alignDelimiters!==!1&&O.push(T),O.push(C),n.alignDelimiters!==!1&&O.push(D),n.padding!==!1&&O.push(" "),(n.delimiterEnd!==!1||p!==d-1)&&O.push("|")}x.push(n.delimiterEnd===!1?O.join("").replace(/ +$/,""):O.join(""))}return x.join(`
`)}function fB(e){return e==null?"":String(e)}function bE(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 dB(e,t,n,r){const a=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const u=n.indentLines(n.containerFlow(e,o.current()),hB);return a(),u}function hB(e,t,n){return">"+(n?"":" ")+e}function mB(e,t){return xE(e,t.inConstruct,!0)&&!xE(e,t.notInConstruct,!1)}function xE(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 wE(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
`&&mB(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
`}function pB(e,t){const n=String(e);let r=n.indexOf(t),a=r,o=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++o>u&&(u=o):o=1,a=r+t.length,r=n.indexOf(t,a);return u}function vB(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 yB(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 gB(e,t,n,r){const a=yB(n),o=e.value||"",u=a==="`"?"GraveAccent":"Tilde";if(vB(e,n)){const p=n.enter("codeIndented"),y=n.indentLines(o,bB);return p(),y}const c=n.createTracker(r),f=a.repeat(Math.max(pB(o,a)+1,3)),d=n.enter("codeFenced");let m=c.move(f);if(e.lang){const p=n.enter(`codeFencedLang${u}`);m+=c.move(n.safe(e.lang,{before:m,after:" ",encode:["`"],...c.current()})),p()}if(e.lang&&e.meta){const p=n.enter(`codeFencedMeta${u}`);m+=c.move(" "),m+=c.move(n.safe(e.meta,{before:m,after:`
`,encode:["`"],...c.current()})),p()}return m+=c.move(`
`),o&&(m+=c.move(o+`
`)),m+=c.move(f),d(),m}function bB(e,t,n){return(n?"":"    ")+e}function j0(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 xB(e,t,n,r){const a=j0(n),o=a==='"'?"Quote":"Apostrophe",u=n.enter("definition");let c=n.enter("label");const f=n.createTracker(r);let d=f.move("[");return d+=f.move(n.safe(n.associationId(e),{before:d,after:"]",...f.current()})),d+=f.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),d+=f.move("<"),d+=f.move(n.safe(e.url,{before:d,after:">",...f.current()})),d+=f.move(">")):(c=n.enter("destinationRaw"),d+=f.move(n.safe(e.url,{before:d,after:e.title?" ":`
`,...f.current()}))),c(),e.title&&(c=n.enter(`title${o}`),d+=f.move(" "+a),d+=f.move(n.safe(e.title,{before:d,after:a,...f.current()})),d+=f.move(a),c()),u(),d}function wB(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 ts(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Rf(e,t,n){const r=ho(e),a=ho(t);return r===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}yT.peek=SB;function yT(e,t,n,r){const a=wB(n),o=n.enter("emphasis"),u=n.createTracker(r),c=u.move(a);let f=u.move(n.containerPhrasing(e,{after:a,before:c,...u.current()}));const d=f.charCodeAt(0),m=Rf(r.before.charCodeAt(r.before.length-1),d,a);m.inside&&(f=ts(d)+f.slice(1));const p=f.charCodeAt(f.length-1),y=Rf(r.after.charCodeAt(0),p,a);y.inside&&(f=f.slice(0,-1)+ts(p));const g=u.move(a);return o(),n.attentionEncodeSurroundingInfo={after:y.outside,before:m.outside},c+f+g}function SB(e,t,n){return n.options.emphasis||"*"}function OB(e,t){let n=!1;return _0(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,ag}),!!((!e.depth||e.depth<3)&&x0(e)&&(t.options.setext||n))}function EB(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(OB(e,n)){const m=n.enter("headingSetext"),p=n.enter("phrasing"),y=n.containerPhrasing(e,{...o.current(),before:`
`,after:`
`});return p(),m(),y+`
`+(a===1?"=":"-").repeat(y.length-(Math.max(y.lastIndexOf("\r"),y.lastIndexOf(`
`))+1))}const u="#".repeat(a),c=n.enter("headingAtx"),f=n.enter("phrasing");o.move(u+" ");let d=n.containerPhrasing(e,{before:"# ",after:`
`,...o.current()});return/^[\t ]/.test(d)&&(d=ts(d.charCodeAt(0))+d.slice(1)),d=d?u+" "+d:u,n.options.closeAtx&&(d+=" "+u),f(),c(),d}gT.peek=AB;function gT(e){return e.value||""}function AB(){return"<"}bT.peek=kB;function bT(e,t,n,r){const a=j0(n),o=a==='"'?"Quote":"Apostrophe",u=n.enter("image");let c=n.enter("label");const f=n.createTracker(r);let d=f.move("![");return d+=f.move(n.safe(e.alt,{before:d,after:"]",...f.current()})),d+=f.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),d+=f.move("<"),d+=f.move(n.safe(e.url,{before:d,after:">",...f.current()})),d+=f.move(">")):(c=n.enter("destinationRaw"),d+=f.move(n.safe(e.url,{before:d,after:e.title?" ":")",...f.current()}))),c(),e.title&&(c=n.enter(`title${o}`),d+=f.move(" "+a),d+=f.move(n.safe(e.title,{before:d,after:a,...f.current()})),d+=f.move(a),c()),d+=f.move(")"),u(),d}function kB(){return"!"}xT.peek=_B;function xT(e,t,n,r){const a=e.referenceType,o=n.enter("imageReference");let u=n.enter("label");const c=n.createTracker(r);let f=c.move("![");const d=n.safe(e.alt,{before:f,after:"]",...c.current()});f+=c.move(d+"]["),u();const m=n.stack;n.stack=[],u=n.enter("reference");const p=n.safe(n.associationId(e),{before:f,after:"]",...c.current()});return u(),n.stack=m,o(),a==="full"||!d||d!==p?f+=c.move(p+"]"):a==="shortcut"?f=f.slice(0,-1):f+=c.move("]"),f}function _B(){return"!"}wT.peek=CB;function wT(e,t,n){let r=e.value||"",a="`",o=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const u=n.unsafe[o],c=n.compilePattern(u);let f;if(u.atBreak)for(;f=c.exec(r);){let d=f.index;r.charCodeAt(d)===10&&r.charCodeAt(d-1)===13&&d--,r=r.slice(0,d)+" "+r.slice(f.index+1)}}return a+r+a}function CB(){return"`"}function ST(e,t){const n=x0(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))}OT.peek=TB;function OT(e,t,n,r){const a=j0(n),o=a==='"'?"Quote":"Apostrophe",u=n.createTracker(r);let c,f;if(ST(e,n)){const m=n.stack;n.stack=[],c=n.enter("autolink");let p=u.move("<");return p+=u.move(n.containerPhrasing(e,{before:p,after:">",...u.current()})),p+=u.move(">"),c(),n.stack=m,p}c=n.enter("link"),f=n.enter("label");let d=u.move("[");return d+=u.move(n.containerPhrasing(e,{before:d,after:"](",...u.current()})),d+=u.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),d+=u.move("<"),d+=u.move(n.safe(e.url,{before:d,after:">",...u.current()})),d+=u.move(">")):(f=n.enter("destinationRaw"),d+=u.move(n.safe(e.url,{before:d,after:e.title?" ":")",...u.current()}))),f(),e.title&&(f=n.enter(`title${o}`),d+=u.move(" "+a),d+=u.move(n.safe(e.title,{before:d,after:a,...u.current()})),d+=u.move(a),f()),d+=u.move(")"),c(),d}function TB(e,t,n){return ST(e,n)?"<":"["}ET.peek=jB;function ET(e,t,n,r){const a=e.referenceType,o=n.enter("linkReference");let u=n.enter("label");const c=n.createTracker(r);let f=c.move("[");const d=n.containerPhrasing(e,{before:f,after:"]",...c.current()});f+=c.move(d+"]["),u();const m=n.stack;n.stack=[],u=n.enter("reference");const p=n.safe(n.associationId(e),{before:f,after:"]",...c.current()});return u(),n.stack=m,o(),a==="full"||!d||d!==p?f+=c.move(p+"]"):a==="shortcut"?f=f.slice(0,-1):f+=c.move("]"),f}function jB(){return"["}function M0(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 MB(e){const t=M0(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 zB(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 AT(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 DB(e,t,n,r){const a=n.enter("list"),o=n.bulletCurrent;let u=e.ordered?zB(n):M0(n);const c=e.ordered?u==="."?")":".":MB(n);let f=t&&n.bulletLastUsed?u===n.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&m&&(!m.children||!m.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&&(f=!0),AT(n)===u&&m){let p=-1;for(;++p<e.children.length;){const y=e.children[p];if(y&&y.type==="listItem"&&y.children&&y.children[0]&&y.children[0].type==="thematicBreak"){f=!0;break}}}}f&&(u=c),n.bulletCurrent=u;const d=n.containerFlow(e,r);return n.bulletLastUsed=u,n.bulletCurrent=o,a(),d}function NB(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 PB(e,t,n,r){const a=NB(n);let o=n.bulletCurrent||M0(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let u=o.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);const c=n.createTracker(r);c.move(o+" ".repeat(u-o.length)),c.shift(u);const f=n.enter("listItem"),d=n.indentLines(n.containerFlow(e,c.current()),m);return f(),d;function m(p,y,g){return y?(g?"":" ".repeat(u))+p:(g?o:o+" ".repeat(u-o.length))+p}}function RB(e,t,n,r){const a=n.enter("paragraph"),o=n.enter("phrasing"),u=n.containerPhrasing(e,r);return o(),a(),u}const IB=Nd(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function LB(e,t,n,r){return(e.children.some(function(u){return IB(u)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function BB(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}kT.peek=UB;function kT(e,t,n,r){const a=BB(n),o=n.enter("strong"),u=n.createTracker(r),c=u.move(a+a);let f=u.move(n.containerPhrasing(e,{after:a,before:c,...u.current()}));const d=f.charCodeAt(0),m=Rf(r.before.charCodeAt(r.before.length-1),d,a);m.inside&&(f=ts(d)+f.slice(1));const p=f.charCodeAt(f.length-1),y=Rf(r.after.charCodeAt(0),p,a);y.inside&&(f=f.slice(0,-1)+ts(p));const g=u.move(a+a);return o(),n.attentionEncodeSurroundingInfo={after:y.outside,before:m.outside},c+f+g}function UB(e,t,n){return n.options.strong||"*"}function qB(e,t,n,r){return n.safe(e.value,r)}function HB(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 $B(e,t,n){const r=(AT(n)+(n.options.ruleSpaces?" ":"")).repeat(HB(n));return n.options.ruleSpaces?r.slice(0,-1):r}const _T={blockquote:dB,break:wE,code:gB,definition:xB,emphasis:yT,hardBreak:wE,heading:EB,html:gT,image:bT,imageReference:xT,inlineCode:wT,link:OT,linkReference:ET,list:DB,listItem:PB,paragraph:RB,root:LB,strong:kT,text:qB,thematicBreak:$B};function FB(){return{enter:{table:VB,tableData:SE,tableHeader:SE,tableRow:KB},exit:{codeText:GB,table:YB,tableData:mv,tableHeader:mv,tableRow:mv}}}function VB(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 YB(e){this.exit(e),this.data.inTable=void 0}function KB(e){this.enter({type:"tableRow",children:[]},e)}function mv(e){this.exit(e)}function SE(e){this.enter({type:"tableCell",children:[]},e)}function GB(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,XB));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function XB(e,t){return t==="|"?t:e}function ZB(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,o=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:y,table:u,tableCell:f,tableRow:c}};function u(g,x,w,S){return d(m(g,w,S),g.align)}function c(g,x,w,S){const O=p(g,w,S),C=d([O]);return C.slice(0,C.indexOf(`
`))}function f(g,x,w,S){const O=w.enter("tableCell"),C=w.enter("phrasing"),T=w.containerPhrasing(g,{...S,before:o,after:o});return C(),O(),T}function d(g,x){return cB(g,{align:x,alignDelimiters:r,padding:n,stringLength:a})}function m(g,x,w){const S=g.children;let O=-1;const C=[],T=x.enter("table");for(;++O<S.length;)C[O]=p(S[O],x,w);return T(),C}function p(g,x,w){const S=g.children;let O=-1;const C=[],T=x.enter("tableRow");for(;++O<S.length;)C[O]=f(S[O],g,x,w);return T(),C}function y(g,x,w){let S=_T.inlineCode(g,x,w);return w.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function WB(){return{exit:{taskListCheckValueChecked:OE,taskListCheckValueUnchecked:OE,paragraph:JB}}}function QB(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:e8}}}function OE(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function JB(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 a=t.children;let o=-1,u;for(;++o<a.length;){const c=a[o];if(c.type==="paragraph"){u=c;break}}u===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 e8(e,t,n,r){const a=e.children[0],o=typeof e.checked=="boolean"&&a&&a.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",c=n.createTracker(r);o&&c.move(u);let f=_T.listItem(e,t,n,{...r,...c.current()});return o&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),f;function d(m){return m+u}}function t8(){return[D6(),eB(),iB(),FB(),WB()]}function n8(e){return{extensions:[N6(),tB(e),aB(),ZB(e),QB()]}}const r8={tokenize:s8,partial:!0},CT={tokenize:c8,partial:!0},TT={tokenize:f8,partial:!0},jT={tokenize:d8,partial:!0},i8={tokenize:h8,partial:!0},MT={name:"wwwAutolink",tokenize:o8,previous:DT},zT={name:"protocolAutolink",tokenize:u8,previous:NT},Ci={name:"emailAutolink",tokenize:l8,previous:PT},Kr={};function a8(){return{text:Kr}}let La=48;for(;La<123;)Kr[La]=Ci,La++,La===58?La=65:La===91&&(La=97);Kr[43]=Ci;Kr[45]=Ci;Kr[46]=Ci;Kr[95]=Ci;Kr[72]=[Ci,zT];Kr[104]=[Ci,zT];Kr[87]=[Ci,MT];Kr[119]=[Ci,MT];function l8(e,t,n){const r=this;let a,o;return u;function u(p){return!sg(p)||!PT.call(r,r.previous)||z0(r.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(p))}function c(p){return sg(p)?(e.consume(p),c):p===64?(e.consume(p),f):n(p)}function f(p){return p===46?e.check(i8,m,d)(p):p===45||p===95||ln(p)?(o=!0,e.consume(p),f):m(p)}function d(p){return e.consume(p),a=!0,f}function m(p){return o&&a&&dn(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):n(p)}}function o8(e,t,n){const r=this;return a;function a(u){return u!==87&&u!==119||!DT.call(r,r.previous)||z0(r.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(r8,e.attempt(CT,e.attempt(TT,o),n),n)(u))}function o(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function u8(e,t,n){const r=this;let a="",o=!1;return u;function u(p){return(p===72||p===104)&&NT.call(r,r.previous)&&!z0(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(p),e.consume(p),c):n(p)}function c(p){if(dn(p)&&a.length<5)return a+=String.fromCodePoint(p),e.consume(p),c;if(p===58){const y=a.toLowerCase();if(y==="http"||y==="https")return e.consume(p),f}return n(p)}function f(p){return p===47?(e.consume(p),o?d:(o=!0,f)):n(p)}function d(p){return p===null||Df(p)||it(p)||Wa(p)||Md(p)?n(p):e.attempt(CT,e.attempt(TT,m),n)(p)}function m(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function s8(e,t,n){let r=0;return a;function a(u){return(u===87||u===119)&&r<3?(r++,e.consume(u),a):u===46&&r===3?(e.consume(u),o):n(u)}function o(u){return u===null?n(u):t(u)}}function c8(e,t,n){let r,a,o;return u;function u(d){return d===46||d===95?e.check(jT,f,c)(d):d===null||it(d)||Wa(d)||d!==45&&Md(d)?f(d):(o=!0,e.consume(d),u)}function c(d){return d===95?r=!0:(a=r,r=void 0),e.consume(d),u}function f(d){return a||r||!o?n(d):t(d)}}function f8(e,t){let n=0,r=0;return a;function a(u){return u===40?(n++,e.consume(u),a):u===41&&r<n?o(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(jT,t,o)(u):u===null||it(u)||Wa(u)?t(u):(e.consume(u),a)}function o(u){return u===41&&r++,e.consume(u),a}}function d8(e,t,n){return r;function r(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),r):c===38?(e.consume(c),o):c===93?(e.consume(c),a):c===60||c===null||it(c)||Wa(c)?t(c):n(c)}function a(c){return c===null||c===40||c===91||it(c)||Wa(c)?t(c):r(c)}function o(c){return dn(c)?u(c):n(c)}function u(c){return c===59?(e.consume(c),r):dn(c)?(e.consume(c),u):n(c)}}function h8(e,t,n){return r;function r(o){return e.consume(o),a}function a(o){return ln(o)?n(o):t(o)}}function DT(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||it(e)}function NT(e){return!dn(e)}function PT(e){return!(e===47||sg(e))}function sg(e){return e===43||e===45||e===46||e===95||ln(e)}function z0(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 m8={tokenize:S8,partial:!0};function p8(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:b8,continuation:{tokenize:x8},exit:w8}},text:{91:{name:"gfmFootnoteCall",tokenize:g8},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:v8,resolveTo:y8}}}}function v8(e,t,n){const r=this;let a=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u;for(;a--;){const f=r.events[a][1];if(f.type==="labelImage"){u=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return c;function c(f){if(!u||!u._balanced)return n(f);const d=Ar(r.sliceSerialize({start:u.end,end:r.now()}));return d.codePointAt(0)!==94||!o.includes(d.slice(1))?n(f):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),t(f))}}function y8(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)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},c=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",u,t],["exit",u,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...c),e}function g8(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,u;return c;function c(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),f}function f(p){return p!==94?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(p){if(o>999||p===93&&!u||p===null||p===91||it(p))return n(p);if(p===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return a.includes(Ar(r.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(p)}return it(p)||(u=!0),o++,e.consume(p),p===92?m:d}function m(p){return p===91||p===92||p===93?(e.consume(p),o++,d):d(p)}}function b8(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,u=0,c;return f;function f(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):n(x)}function m(x){if(u>999||x===93&&!c||x===null||x===91||it(x))return n(x);if(x===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return o=Ar(r.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return it(x)||(c=!0),u++,e.consume(x),x===92?p:m}function p(x){return x===91||x===92||x===93?(e.consume(x),u++,m):m(x)}function y(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),a.includes(o)||a.push(o),He(e,g,"gfmFootnoteDefinitionWhitespace")):n(x)}function g(x){return t(x)}}function x8(e,t,n){return e.check(bs,t,e.attempt(m8,t,n))}function w8(e){e.exit("gfmFootnoteDefinition")}function S8(e,t,n){const r=this;return He(e,a,"gfmFootnoteDefinitionIndent",5);function a(o){const u=r.events[r.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(o):n(o)}}function O8(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(u,c){let f=-1;for(;++f<u.length;)if(u[f][0]==="enter"&&u[f][1].type==="strikethroughSequenceTemporary"&&u[f][1]._close){let d=f;for(;d--;)if(u[d][0]==="exit"&&u[d][1].type==="strikethroughSequenceTemporary"&&u[d][1]._open&&u[f][1].end.offset-u[f][1].start.offset===u[d][1].end.offset-u[d][1].start.offset){u[f][1].type="strikethroughSequence",u[d][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},u[d][1].start),end:Object.assign({},u[f][1].end)},p={type:"strikethroughText",start:Object.assign({},u[d][1].end),end:Object.assign({},u[f][1].start)},y=[["enter",m,c],["enter",u[d][1],c],["exit",u[d][1],c],["enter",p,c]],g=c.parser.constructs.insideSpan.null;g&&Fn(y,y.length,0,zd(g,u.slice(d+1,f),c)),Fn(y,y.length,0,[["exit",p,c],["enter",u[f][1],c],["exit",u[f][1],c],["exit",m,c]]),Fn(u,d-1,f-d+3,y),f=d+y.length-2;break}}for(f=-1;++f<u.length;)u[f][1].type==="strikethroughSequenceTemporary"&&(u[f][1].type="data");return u}function o(u,c,f){const d=this.previous,m=this.events;let p=0;return y;function y(x){return d===126&&m[m.length-1][1].type!=="characterEscape"?f(x):(u.enter("strikethroughSequenceTemporary"),g(x))}function g(x){const w=ho(d);if(x===126)return p>1?f(x):(u.consume(x),p++,g);if(p<2&&!n)return f(x);const S=u.exit("strikethroughSequenceTemporary"),O=ho(x);return S._open=!O||O===2&&!!w,S._close=!w||w===2&&!!O,c(x)}}}class E8{constructor(){this.map=[]}add(t,n,r){A8(this,t,n,r)}consume(t){if(this.map.sort(function(o,u){return o[0]-u[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 a=r.pop();for(;a;){for(const o of a)t.push(o);a=r.pop()}this.map.length=0}}function A8(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function k8(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function _8(){return{flow:{null:{name:"table",tokenize:C8,resolveAll:T8}}}}function C8(e,t,n){const r=this;let a=0,o=0,u;return c;function c(I){let Z=r.events.length-1;for(;Z>-1;){const ne=r.events[Z][1].type;if(ne==="lineEnding"||ne==="linePrefix")Z--;else break}const q=Z>-1?r.events[Z][1].type:null,oe=q==="tableHead"||q==="tableRow"?k:f;return oe===k&&r.parser.lazy[r.now().line]?n(I):oe(I)}function f(I){return e.enter("tableHead"),e.enter("tableRow"),d(I)}function d(I){return I===124||(u=!0,o+=1),m(I)}function m(I){return I===null?n(I):Ae(I)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),g):n(I):Re(I)?He(e,m,"whitespace")(I):(o+=1,u&&(u=!1,a+=1),I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),u=!0,m):(e.enter("data"),p(I)))}function p(I){return I===null||I===124||it(I)?(e.exit("data"),m(I)):(e.consume(I),I===92?y:p)}function y(I){return I===92||I===124?(e.consume(I),p):p(I)}function g(I){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(I):(e.enter("tableDelimiterRow"),u=!1,Re(I)?He(e,x,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):x(I))}function x(I){return I===45||I===58?S(I):I===124?(u=!0,e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),w):P(I)}function w(I){return Re(I)?He(e,S,"whitespace")(I):S(I)}function S(I){return I===58?(o+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),O):I===45?(o+=1,O(I)):I===null||Ae(I)?D(I):P(I)}function O(I){return I===45?(e.enter("tableDelimiterFiller"),C(I)):P(I)}function C(I){return I===45?(e.consume(I),C):I===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),T):(e.exit("tableDelimiterFiller"),T(I))}function T(I){return Re(I)?He(e,D,"whitespace")(I):D(I)}function D(I){return I===124?x(I):I===null||Ae(I)?!u||a!==o?P(I):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(I)):P(I)}function P(I){return n(I)}function k(I){return e.enter("tableRow"),j(I)}function j(I){return I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),j):I===null||Ae(I)?(e.exit("tableRow"),t(I)):Re(I)?He(e,j,"whitespace")(I):(e.enter("data"),U(I))}function U(I){return I===null||I===124||it(I)?(e.exit("data"),j(I)):(e.consume(I),I===92?$:U)}function $(I){return I===92||I===124?(e.consume(I),U):U(I)}}function T8(e,t){let n=-1,r=!0,a=0,o=[0,0,0,0],u=[0,0,0,0],c=!1,f=0,d,m,p;const y=new E8;for(;++n<e.length;){const g=e[n],x=g[1];g[0]==="enter"?x.type==="tableHead"?(c=!1,f!==0&&(EE(y,t,f,d,m),m=void 0,f=0),d={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},y.add(n,0,[["enter",d,t]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(r=!0,p=void 0,o=[0,0,0,0],u=[0,n+1,0,0],c&&(c=!1,m={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},y.add(n,0,[["enter",m,t]])),a=x.type==="tableDelimiterRow"?2:m?3:1):a&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(r=!1,u[2]===0&&(o[1]!==0&&(u[0]=u[1],p=of(y,t,o,a,void 0,p),o=[0,0,0,0]),u[2]=n)):x.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(u[0]=u[1],p=of(y,t,o,a,void 0,p)),o=u,u=[o[1],n,0,0])):x.type==="tableHead"?(c=!0,f=n):x.type==="tableRow"||x.type==="tableDelimiterRow"?(f=n,o[1]!==0?(u[0]=u[1],p=of(y,t,o,a,n,p)):u[1]!==0&&(p=of(y,t,u,a,n,p)),a=0):a&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(u[3]=n)}for(f!==0&&EE(y,t,f,d,m),y.consume(t.events),n=-1;++n<t.events.length;){const g=t.events[n];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=k8(t.events,n))}return e}function of(e,t,n,r,a,o){const u=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(o.end=Object.assign({},io(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const f=io(t.events,n[1]);if(o={type:u,start:Object.assign({},f),end:Object.assign({},f)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const d=io(t.events,n[2]),m=io(t.events,n[3]),p={type:c,start:Object.assign({},d),end:Object.assign({},m)};if(e.add(n[2],0,[["enter",p,t]]),r!==2){const y=t.events[n[2]],g=t.events[n[3]];if(y[1].end=Object.assign({},g[1].end),y[1].type="chunkText",y[1].contentType="text",n[3]>n[2]+1){const x=n[2]+1,w=n[3]-n[2]-1;e.add(x,w,[])}}e.add(n[3]+1,0,[["exit",p,t]])}return a!==void 0&&(o.end=Object.assign({},io(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function EE(e,t,n,r,a){const o=[],u=io(t.events,n);a&&(a.end=Object.assign({},u),o.push(["exit",a,t])),r.end=Object.assign({},u),o.push(["exit",r,t]),e.add(n+1,0,o)}function io(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const j8={name:"tasklistCheck",tokenize:z8};function M8(){return{text:{91:j8}}}function z8(e,t,n){const r=this;return a;function a(f){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(f):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),o)}function o(f){return it(f)?(e.enter("taskListCheckValueUnchecked"),e.consume(f),e.exit("taskListCheckValueUnchecked"),u):f===88||f===120?(e.enter("taskListCheckValueChecked"),e.consume(f),e.exit("taskListCheckValueChecked"),u):n(f)}function u(f){return f===93?(e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(f)}function c(f){return Ae(f)?t(f):Re(f)?e.check({tokenize:D8},t,n)(f):n(f)}}function D8(e,t,n){return He(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function N8(e){return YC([a8(),p8(),O8(e),_8(),M8()])}const P8={};function D0(e){const t=this,n=e||P8,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),u=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(N8(n)),o.push(t8()),u.push(n8(n))}const R8={execute:Yu,execute_cell:Yu,execute_all_cells:Yu,bash:Yu,write_file:$a,edit_file:$a,read_file:$a,create_cell:$a,modify_cell:$a,ls:Wp,glob:Wp,grep:Wp,write_todos:CC,think_tool:UI,task:ZI,display_inline:QI};function I8(e){return(Array.isArray(e)?e:[]).map(n=>{if(n&&typeof n=="object"){const r=n;return{content:r.content??r.task??"",status:r.status??(r.done===!0?"completed":"pending")}}return{content:String(n),status:"pending"}})}function AE(e){const t=Object.keys(e);if(t.length===0)return null;const n=e[t[0]];if(n==null)return null;const r=typeof n=="string"?n:JSON.stringify(n);return r.length>100?r.slice(0,100)+"…":r}function L8({toolCall:e}){const[t,n]=E.useState(!1),r=R8[e.name]||d3,a=e.extraction,o=e.status==="running"?_.jsx(jd,{size:12,className:"animate-spin text-[var(--color-text-muted)]"}):e.status==="success"?_.jsx(d0,{size:12,className:"text-[var(--color-success)]"}):_.jsx(HI,{size:12,className:"text-[var(--color-error)]"}),u=e.durationMs!=null?e.durationMs<1e3?`${Math.round(e.durationMs)}ms`:`${(e.durationMs/1e3).toFixed(1)}s`:null;return _.jsxs("div",{className:"rounded border border-[var(--color-border)] bg-[var(--color-surface-2)] overflow-hidden",children:[_.jsxs("button",{onClick:()=>n(!t),className:"flex items-center gap-2 w-full px-3 py-1.5 text-left text-xs hover:bg-[var(--color-surface-3)] transition-colors",children:[_.jsx(kC,{size:12,className:`text-[var(--color-text-muted)] transition-transform ${t?"rotate-90":""}`}),_.jsx(r,{size:12,className:"text-[var(--color-text-muted)]"}),_.jsx("span",{className:"font-medium text-[var(--color-text-secondary)]",children:e.name}),AE(e.args)&&_.jsxs("code",{className:"text-[11px] text-[var(--color-text-muted)] truncate max-w-[300px]",children:["(",AE(e.args),")"]}),_.jsx("span",{className:"flex-1"}),u&&_.jsx("span",{className:"text-[11px] tabular-nums text-[var(--color-text-muted)]",children:u}),o]}),(a==null?void 0:a.extracted_type)==="reflection"&&_.jsx("div",{className:"border-t border-[var(--color-border)] px-3 py-2",children:_.jsx("p",{className:"text-xs italic text-[var(--color-text-secondary)] leading-relaxed",children:String(a.data)})}),(a==null?void 0:a.extracted_type)==="todos"&&_.jsx("div",{className:"border-t border-[var(--color-border)] px-3 py-2",children:_.jsx(V8,{todos:I8(a.data)})}),(a==null?void 0:a.extracted_type)==="display_inline"&&_.jsx("div",{className:"border-t border-[var(--color-border)]",children:_.jsx(B8,{data:a.data})}),t&&_.jsxs("div",{className:"border-t border-[var(--color-border)] px-3 py-2 space-y-2",children:[Object.keys(e.args).length>0&&_.jsxs("div",{children:[_.jsx("div",{className:"text-[11px] font-medium uppercase tracking-wide text-[var(--color-text-muted)] mb-1",children:"Arguments"}),_.jsx("pre",{className:"bg-[var(--color-surface-3)] rounded p-2 text-xs overflow-x-auto whitespace-pre-wrap break-all text-[var(--color-text)]",children:JSON.stringify(e.args,null,2)})]}),e.result!=null&&_.jsxs("div",{children:[_.jsx("div",{className:"text-[11px] font-medium uppercase tracking-wide text-[var(--color-text-muted)] mb-1",children:"Result"}),_.jsx("pre",{className:`rounded p-2 text-xs overflow-auto max-h-[400px] whitespace-pre-wrap break-all ${e.name==="execute"||e.name==="bash"||e.name==="execute_cell"?"bg-[#111827] text-emerald-400":"bg-[var(--color-surface-3)] text-[var(--color-text)]"}`,children:typeof e.result=="string"?e.result:JSON.stringify(e.result,null,2)})]}),e.errorMessage&&_.jsxs("div",{children:[_.jsx("div",{className:"text-[11px] font-medium uppercase tracking-wide text-[var(--color-error)] mb-1",children:"Error"}),_.jsx("pre",{className:"bg-red-50 dark:bg-red-950/30 text-[var(--color-error)] rounded p-2 text-xs overflow-x-auto whitespace-pre-wrap",children:e.errorMessage})]})]})]})}function B8({data:e}){try{return _.jsx(U8,{data:e})}catch(t){return _.jsxs("div",{className:"px-3 py-2 flex items-start gap-2 text-xs text-[var(--color-error)]",children:[_.jsx(MC,{size:12,className:"flex-shrink-0 mt-0.5"}),_.jsxs("span",{children:["Display error: ",String(t)]})]})}}function U8({data:e}){const t=e==null?void 0:e.display_type,n=e==null?void 0:e.title,r=e==null?void 0:e.data,a=e==null?void 0:e.status,o=e==null?void 0:e.error;return a==="error"?_.jsxs("div",{className:"px-3 py-2 space-y-1",children:[n&&_.jsx("div",{className:"text-[11px] font-medium text-[var(--color-text-muted)]",children:n}),_.jsxs("div",{className:"flex items-start gap-2 text-xs text-[var(--color-error)]",children:[_.jsx(MC,{size:12,className:"flex-shrink-0 mt-0.5"}),_.jsx("span",{children:o||String(r)})]})]}):_.jsxs("div",{className:"px-3 py-2 space-y-1.5",children:[n&&_.jsx("div",{className:"text-[11px] font-medium text-[var(--color-text-muted)]",children:n}),t==="image"&&_.jsx("img",{src:typeof r=="string"&&r.startsWith("data:")?r:`data:image/png;base64,${r}`,alt:n||"Inline display",className:"max-w-full rounded"}),t==="html"&&_.jsx($8,{html:String(r),title:n}),t==="plotly"&&r!=null&&_.jsx(F8,{data:r,title:n}),(t==="dataframe"||t==="csv")&&!!r&&typeof r=="object"&&"columns"in r&&_.jsx(q8,{content:r}),t==="pdf"&&typeof r=="string"&&_.jsx("iframe",{src:`data:application/pdf;base64,${r}`,title:n||"PDF preview",className:"w-full h-[500px] rounded border border-[var(--color-border)]"}),t==="json"&&_.jsx("pre",{className:"bg-[var(--color-surface-3)] rounded p-2 text-xs overflow-x-auto whitespace-pre-wrap break-all text-[var(--color-text)]",children:typeof r=="string"?r:JSON.stringify(r,null,2)}),t==="text"&&_.jsx("pre",{className:"text-xs whitespace-pre-wrap text-[var(--color-text)] leading-relaxed",children:String(r)}),t&&!["image","html","plotly","dataframe","csv","pdf","json","text"].includes(t)&&_.jsx("pre",{className:"bg-[var(--color-surface-3)] rounded p-2 text-xs overflow-x-auto whitespace-pre-wrap break-all text-[var(--color-text)]",children:typeof r=="string"?r:JSON.stringify(r,null,2)})]})}function q8({content:e}){const t=e.columns,n=e.records,r=e.data;if(!t||!Array.isArray(t))return null;const a=n?n.map(o=>t.map(u=>o[u])):Array.isArray(r)?r:[];return _.jsx("div",{className:"overflow-x-auto max-h-[300px] overflow-y-auto",children:_.jsxs("table",{className:"w-full text-xs border-collapse",children:[_.jsx("thead",{children:_.jsx("tr",{children:t.map(o=>_.jsx("th",{className:"border border-[var(--color-border)] bg-[var(--color-surface-3)] px-2 py-1 text-left font-medium text-[var(--color-text-secondary)]",children:o},o))})}),_.jsx("tbody",{children:a.map((o,u)=>_.jsx("tr",{children:o.map((c,f)=>_.jsx("td",{className:"border border-[var(--color-border)] px-2 py-1 text-[var(--color-text)]",children:String(c??"")},f))},u))})]})})}const H8=`<script>
function _sendHeight(){
  var h=document.documentElement.scrollHeight;
  window.parent.postMessage({type:'iframe-resize',height:h},'*');
}
window.addEventListener('load',function(){_sendHeight();setTimeout(_sendHeight,200);setTimeout(_sendHeight,1000);});
new MutationObserver(_sendHeight).observe(document.body,{childList:true,subtree:true});
<\/script>`;function $8({html:e,title:t}){const n=E.useRef(null),[r,a]=E.useState(200);E.useEffect(()=>{const u=n.current;if(!u)return;const c=f=>{var d;if(f.source===u.contentWindow&&((d=f.data)==null?void 0:d.type)==="iframe-resize"){const m=Math.max(60,Math.min(f.data.height,600));a(m)}};return window.addEventListener("message",c),()=>window.removeEventListener("message",c)},[e]);const o=`<!DOCTYPE html>
<html><head><meta charset="utf-8"><style>
  body { margin: 0; padding: 8px; font-family: system-ui, sans-serif; font-size: 13px; }
  img, table, svg { max-width: 100%; }
</style></head><body>${e}${H8}</body></html>`;return _.jsx("iframe",{ref:n,srcDoc:o,title:t||"HTML preview",sandbox:"allow-scripts allow-same-origin",className:"w-full rounded border-0",style:{height:`${r}px`}})}function F8({data:e,title:t}){const n=E.useRef(null),[r,a]=E.useState(400);E.useEffect(()=>{const c=n.current;if(!c)return;const f=d=>{var m;if(d.source===c.contentWindow&&((m=d.data)==null?void 0:m.type)==="iframe-resize"){const p=Math.max(200,Math.min(d.data.height,600));a(p)}};return window.addEventListener("message",f),()=>window.removeEventListener("message",f)},[e]);const u=`<!DOCTYPE html>
<html><head><meta charset="utf-8">
<script src="https://cdn.plot.ly/plotly-2.35.2.min.js"><\/script>
<style>body{margin:0;padding:0;}</style>
</head><body>
<div id="chart" style="width:100%;"></div>
<script>
var spec=${JSON.stringify(e)};
var d=spec.data||[];
var l=Object.assign({margin:{t:30,r:20,b:40,l:50},autosize:true},spec.layout||{});
Plotly.newPlot('chart',d,l,{responsive:true,displayModeBar:false}).then(function(){
  var h=document.getElementById('chart').offsetHeight;
  window.parent.postMessage({type:'iframe-resize',height:h},'*');
});
<\/script></body></html>`;return _.jsx("iframe",{ref:n,srcDoc:u,title:t||"Plotly chart",sandbox:"allow-scripts allow-same-origin",className:"w-full rounded border-0",style:{height:`${r}px`}})}function V8({todos:e}){const t=e.filter(r=>r.status==="completed").length,n=e.length;return _.jsxs("div",{className:"space-y-1",children:[_.jsxs("div",{className:"text-[11px] text-[var(--color-text-muted)]",children:[t,"/",n," completed"]}),e.map((r,a)=>_.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[r.status==="completed"?_.jsx(d0,{size:11,className:"text-[var(--color-success)] flex-shrink-0"}):r.status==="in_progress"?_.jsx(Wy,{size:11,className:"text-[var(--color-primary)] fill-[var(--color-primary)] flex-shrink-0"}):_.jsx(Wy,{size:11,className:"text-[var(--color-text-muted)] flex-shrink-0"}),_.jsx("span",{className:r.status==="completed"?"text-[var(--color-text-muted)] line-through":"text-[var(--color-text-secondary)]",children:r.content})]},a))]})}function Y8(e){return e?new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):""}function K8(e){if(e<1e3)return`${Math.round(e)}ms`;if(e<6e4)return`${(e/1e3).toFixed(1)}s`;const t=Math.floor(e/6e4),n=Math.round(e%6e4/1e3);return`${t}m ${n}s`}function G8(e,t){const[n,r]=E.useState(null);return E.useEffect(()=>{if(!e||!t){r(null);return}const a=()=>r(Date.now()-e);a();const o=setInterval(a,1e3);return()=>clearInterval(o)},[e,t]),n}function X8({message:e,agentName:t="Agent",showLabel:n=!0}){const r=e.role==="user",a=e.role==="system",o=e.role==="assistant",u=r?"You":t,c=G8(e.startedAt,e.isStreaming),f=e.durationMs??c;return a?_.jsx("div",{className:"py-1",children:_.jsx("p",{className:"text-xs italic text-[var(--color-text-muted)]",children:e.content})}):_.jsxs("div",{className:`group border-l-2 pl-3 ${r?"border-[var(--color-text-muted)]":"border-[var(--color-primary)]"}`,children:[n&&_.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[_.jsx("span",{className:`text-[11px] font-semibold tracking-wider uppercase ${r?"text-[var(--color-text-secondary)]":"text-[var(--color-primary)]"}`,children:u}),e.timestamp&&_.jsx("span",{className:"text-[10px] text-[var(--color-text-muted)] tabular-nums opacity-0 group-hover:opacity-100 transition-opacity",children:Y8(e.timestamp)}),o&&f!=null&&_.jsx("span",{className:"text-[10px] text-[var(--color-text-muted)] tabular-nums",children:K8(f)})]}),e.content&&_.jsx("div",{className:"text-sm text-[var(--color-text)] leading-relaxed",children:r?_.jsx("p",{className:"whitespace-pre-wrap",children:e.content}):_.jsx("div",{className:"markdown-content",children:_.jsx(T0,{remarkPlugins:[D0],children:e.content})})}),e.toolCalls.length>0&&_.jsx("div",{className:`space-y-1.5 ${e.content?"mt-2":""}`,children:e.toolCalls.map(d=>_.jsx(L8,{toolCall:d},d.id))})]})}const Z8="Please capture this conversation as a detailed workflow markdown file in the ./workflows/ directory. Include: a title, description of the goal, step-by-step instructions that could be followed to reproduce this workflow, any configuration or parameters needed, and expected outputs.",W8="Please read and follow the workflow defined in ./workflows/{filename}. Execute each step as described in the workflow file.",Q8="Please create a new workflow markdown file in the ./workflows/ directory. Include: a title, description of the goal, step-by-step instructions to execute the workflow, any configuration or parameters needed, and expected outputs.";function J8(e,t,n){return[{name:"save-workflow",label:"/save-workflow",description:"Save this conversation as a reusable workflow",secondStep:"none",expandMessage:r=>r?`${e}

Additional instructions: ${r}`:e},{name:"create-workflow",label:"/create-workflow",description:"Create a new workflow — type a description after selecting",secondStep:"text",expandMessage:r=>r?`${n}

Workflow topic: ${r}`:n},{name:"run-workflow",label:"/run-workflow",description:"Execute a saved workflow from ./workflows/",secondStep:"file-picker",expandMessage:r=>{const a=r==null?void 0:r.match(/^(\S+\.md)\s*(.*)$/);if(a){const o=t.replace("{filename}",a[1]);return a[2]?`${o}

Additional instructions: ${a[2]}`:o}return t.replace("{filename}",r??"")}}]}function e9(e={}){const t=E.useMemo(()=>J8(e.saveWorkflowPrompt||Z8,e.runWorkflowPrompt||W8,e.createWorkflowPrompt||Q8),[e.saveWorkflowPrompt,e.runWorkflowPrompt,e.createWorkflowPrompt]),[n,r]=E.useState(!1),[a,o]=E.useState(!1),[u,c]=E.useState([]),[f,d]=E.useState([]),[m,p]=E.useState(!1),[y,g]=E.useState(0),x=E.useRef({files:[],fetchedAt:0}),w=E.useCallback(async()=>{const P=Date.now();if(P-x.current.fetchedAt<3e4&&x.current.files.length>0)return x.current.files;p(!0);try{const k=await fetch("/api/files/tree?path=/workflows&depth=1");if(!k.ok)return[];const $=((await k.json()).entries??[]).filter(I=>!I.is_dir&&I.name.endsWith(".md")).map(I=>I.name);return x.current={files:$,fetchedAt:P},$}catch{return[]}finally{p(!1)}},[]),S=E.useCallback(P=>{if(P.startsWith("/")&&!P.includes(" ")&&P.length<30){const j=P.toLowerCase(),U=t.filter($=>$.label.startsWith(j));c(U),r(U.length>0),o(!1),g(0);return}const k=t.find(j=>j.secondStep==="file-picker"&&(P.startsWith(`/${j.name} `)||P===`/${j.name}`));if(k){r(!1),o(!0);const j=P.replace(new RegExp(`^\\/${k.name}\\s*`),"").toLowerCase();w().then(U=>{const $=j?U.filter(I=>I.toLowerCase().includes(j)):U;d($),g(0)});return}r(!1),o(!1),g(0)},[t,w]),O=E.useCallback(P=>{if(!n&&!a)return!1;const j=(n?u:f).length;switch(P.key){case"ArrowDown":return P.preventDefault(),g(U=>(U+1)%Math.max(j,1)),!0;case"ArrowUp":return P.preventDefault(),g(U=>(U-1+Math.max(j,1))%Math.max(j,1)),!0;case"Escape":return P.preventDefault(),r(!1),o(!1),!0;case"Tab":case"Enter":return j>0?(P.preventDefault(),!0):!1;default:return!1}},[n,a,u,f]),C=E.useCallback(P=>{if(n){const k=u[P];return k?k.secondStep==="none"?{expanded:k.expandMessage(),newInput:null}:k.secondStep==="text"?(r(!1),o(!1),{expanded:null,newInput:`/${k.name} `}):(r(!1),o(!0),g(0),w().then(j=>{d(j)}),{expanded:null,newInput:`/${k.name} `}):{expanded:null,newInput:null}}if(a){const k=f[P];return k?{expanded:t.find(U=>U.name==="run-workflow").expandMessage(k),newInput:null}:{expanded:null,newInput:null}}return{expanded:null,newInput:null}},[t,n,a,u,f,w]),T=E.useCallback(P=>{var j;const k=P.trim();for(const U of t){const $=U.secondStep!=="none"?new RegExp(`^\\/${U.name}\\s+(.+)$`):new RegExp(`^\\/${U.name}(?:\\s+(.+))?$`),I=k.match($);if(I)return U.expandMessage((j=I[1])==null?void 0:j.trim())}return null},[t]),D=E.useCallback(()=>{r(!1),o(!1),c([]),d([]),g(0)},[]);return{showCommandMenu:n,showWorkflowPicker:a,filteredCommands:u,filteredWorkflowFiles:f,isLoadingWorkflows:m,selectedIndex:y,setSelectedIndex:g,handleInputChange:S,handleKeyDown:O,handleSelect:C,tryExecute:T,reset:D}}function t9({showCommandMenu:e,filteredCommands:t,showWorkflowPicker:n,filteredWorkflowFiles:r,isLoadingWorkflows:a,selectedIndex:o,onSelect:u,onHover:c}){const f=E.useRef(null);return E.useEffect(()=>{var d;(d=f.current)==null||d.scrollIntoView({block:"nearest"})},[o]),!e&&!n?null:_.jsx("div",{className:"absolute bottom-full left-0 right-0 mb-2 z-10",children:_.jsxs("div",{className:"bg-[var(--color-surface-2)] border border-[var(--color-border)] rounded-lg shadow-lg overflow-hidden max-h-[200px] overflow-y-auto",children:[e&&_.jsx("div",{className:"py-1",children:t.map((d,m)=>_.jsxs("button",{ref:m===o?f:void 0,onClick:()=>u(m),onMouseEnter:()=>c(m),className:`w-full text-left px-3 py-2 flex items-start gap-2.5 transition-colors ${m===o?"bg-[var(--color-surface-3)]":"hover:bg-[var(--color-surface-3)]"}`,children:[_.jsx(Yu,{size:14,className:"text-[var(--color-text-muted)] mt-0.5 flex-shrink-0"}),_.jsxs("div",{children:[_.jsx("div",{className:"text-sm font-medium text-[var(--color-text)]",children:d.label}),_.jsx("div",{className:"text-xs text-[var(--color-text-muted)]",children:d.description})]})]},d.name))}),n&&_.jsxs("div",{className:"py-1",children:[_.jsx("div",{className:"px-3 py-1.5 text-[10px] font-semibold uppercase tracking-wider text-[var(--color-text-muted)]",children:"Workflows"}),a?_.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 text-xs text-[var(--color-text-muted)]",children:[_.jsx(jd,{size:12,className:"animate-spin"}),"Loading workflows..."]}):r.length===0?_.jsx("div",{className:"px-3 py-2 text-xs text-[var(--color-text-muted)] italic",children:"No workflows found. Use /save-workflow to create one."}):r.map((d,m)=>_.jsxs("button",{ref:m===o?f:void 0,onClick:()=>u(m),onMouseEnter:()=>c(m),className:`w-full text-left px-3 py-1.5 flex items-center gap-2 transition-colors ${m===o?"bg-[var(--color-surface-3)]":"hover:bg-[var(--color-surface-3)]"}`,children:[_.jsx($a,{size:14,className:"text-[var(--color-text-secondary)] flex-shrink-0"}),_.jsx("span",{className:"text-sm text-[var(--color-text)] truncate",children:d})]},d))]})]})})}function n9({messages:e,isStreaming:t,welcomeMessage:n,agentName:r,iconUrl:a,saveWorkflowPrompt:o,runWorkflowPrompt:u,createWorkflowPrompt:c,onSend:f,onCancel:d}){const[m,p]=E.useState(""),y=E.useRef(null),g=E.useRef(null),x=E.useRef(!0),w=e9({saveWorkflowPrompt:o,runWorkflowPrompt:u,createWorkflowPrompt:c}),S=E.useCallback(()=>{const k=y.current;k&&(x.current=k.scrollHeight-k.scrollTop-k.clientHeight<80)},[]);E.useEffect(()=>{x.current&&y.current&&(y.current.scrollTop=y.current.scrollHeight)},[e]);const O=k=>{x.current=!0,f(k),p(""),w.reset(),g.current&&(g.current.style.height="auto")},C=()=>{const k=m.trim();if(!k||t)return;const j=w.tryExecute(k);O(j??k)},T=k=>{var $;const{expanded:j,newInput:U}=w.handleSelect(k);j?O(j):U!==null&&(p(U),($=g.current)==null||$.focus())},D=k=>{if(w.handleKeyDown(k)){(k.key==="Enter"||k.key==="Tab")&&T(w.selectedIndex);return}k.key==="Enter"&&!k.shiftKey&&(k.preventDefault(),C())},P=k=>{const j=k.target.value;p(j),w.handleInputChange(j);const U=k.target;U.style.height="auto",U.style.height=Math.min(U.scrollHeight,200)+"px"};return _.jsxs("div",{className:"flex flex-col h-full bg-[var(--color-surface)]",children:[_.jsx("div",{ref:y,onScroll:S,className:"flex-1 overflow-y-auto",children:_.jsxs("div",{className:"max-w-4xl mx-auto px-5 py-6 space-y-5",children:[e.length===0&&_.jsxs("div",{className:"flex flex-col items-center justify-center py-16 gap-5",children:[a?_.jsx("img",{src:a,alt:"",className:"w-12 h-12 rounded-xl object-cover shadow-sm"}):_.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-[var(--color-primary)] to-[var(--color-primary-dark)] flex items-center justify-center shadow-sm",children:_.jsx(TC,{size:22,className:"text-white"})}),n?_.jsx("div",{className:"text-sm text-[var(--color-text-secondary)] markdown-content text-center max-w-md",children:_.jsx(T0,{remarkPlugins:[D0],children:n})}):_.jsxs("div",{className:"text-center",children:[_.jsx("p",{className:"text-sm font-medium text-[var(--color-text)]",children:"What can I help you with?"}),_.jsx("p",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:"Ask a question to get started"})]})]}),e.map((k,j)=>_.jsx(X8,{message:k,agentName:r,showLabel:j===0||e[j-1].role!==k.role},k.id)),t&&e.length>0&&_.jsxs("div",{className:"flex items-center gap-2 text-xs text-[var(--color-text-muted)]",children:[_.jsxs("span",{className:"flex gap-1",children:[_.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-primary)] animate-bounce",style:{animationDelay:"0ms"}}),_.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-primary)] animate-bounce",style:{animationDelay:"150ms"}}),_.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--color-primary)] animate-bounce",style:{animationDelay:"300ms"}})]}),r," is working..."]})]})}),_.jsx("div",{"data-print-hide":!0,className:"border-t border-[var(--color-border)]",children:_.jsxs("div",{className:"max-w-4xl mx-auto px-5 py-3 relative",children:[_.jsx(t9,{showCommandMenu:w.showCommandMenu,filteredCommands:w.filteredCommands,showWorkflowPicker:w.showWorkflowPicker,filteredWorkflowFiles:w.filteredWorkflowFiles,isLoadingWorkflows:w.isLoadingWorkflows,selectedIndex:w.selectedIndex,onSelect:T,onHover:w.setSelectedIndex}),_.jsxs("div",{className:"flex items-end gap-2 rounded-lg border border-[var(--color-border)] bg-[var(--color-surface-2)] px-3 py-2 focus-within:border-[var(--color-text-muted)] transition-colors",children:[_.jsx("textarea",{ref:g,value:m,onChange:P,onKeyDown:D,placeholder:"Send a message...",rows:1,className:"flex-1 resize-none bg-transparent text-sm text-[var(--color-text)] placeholder:text-[var(--color-text-muted)] focus:outline-none leading-relaxed"}),t?_.jsx("button",{onClick:d,className:"flex-shrink-0 w-7 h-7 flex items-center justify-center rounded-md bg-[var(--color-text)] text-[var(--color-surface)] hover:opacity-80 transition-opacity",title:"Stop",children:_.jsx(s3,{size:12,fill:"currentColor"})}):_.jsx("button",{onClick:C,disabled:!m.trim(),className:"flex-shrink-0 w-7 h-7 flex items-center justify-center rounded-md bg-[var(--color-text)] text-[var(--color-surface)] disabled:opacity-20 disabled:cursor-not-allowed hover:opacity-80 transition-opacity",title:"Send",children:_.jsx(BI,{size:14,strokeWidth:2.5})})]}),_.jsx("div",{className:"text-center mt-1.5",children:_.jsxs("span",{className:"text-[10px] text-[var(--color-text-muted)]",children:[_.jsx("kbd",{className:"px-1 py-0.5 rounded bg-[var(--color-surface-3)] text-[9px] font-mono",children:"Enter"})," to send, ",_.jsx("kbd",{className:"px-1 py-0.5 rounded bg-[var(--color-surface-3)] text-[9px] font-mono",children:"Shift+Enter"})," for new line, ",_.jsx("kbd",{className:"px-1 py-0.5 rounded bg-[var(--color-surface-3)] text-[9px] font-mono",children:"/"})," for commands"]})})]})})]})}const r9=new Set([".py",".js",".jsx",".ts",".tsx",".json",".yaml",".yml",".toml",".rs",".go",".java",".c",".cpp",".h",".hpp",".rb",".php",".sql",".sh",".bash",".r",".css",".html",".xml"]);function i9(e){var n;const t="."+((n=e.split(".").pop())==null?void 0:n.toLowerCase());return r9.has(t)?VI:[".md",".txt",".csv",".log"].some(r=>e.endsWith(r))?$a:YI}function a9(e){return e==null?"":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function RT({entry:e,expandedDirs:t,depth:n,onToggleDir:r,onOpenFile:a,onEnterDir:o,onContextMenu:u}){const c=t.has(e.path);if(e.is_dir){const d=c?KI:Qy;return _.jsxs("div",{children:[_.jsxs("button",{onClick:()=>r(e.path),onDoubleClick:()=>o(e.path),onContextMenu:m=>u(m,e.path,e.name),className:"flex items-center gap-1.5 w-full px-2 py-1 text-sm hover:bg-[var(--color-surface-3)] rounded transition-colors",style:{paddingLeft:`${n*16+8}px`},children:[c?_.jsx(AC,{size:14,className:"text-[var(--color-text-muted)] flex-shrink-0"}):_.jsx(kC,{size:14,className:"text-[var(--color-text-muted)] flex-shrink-0"}),_.jsx(d,{size:14,className:"text-[var(--color-warning)] flex-shrink-0"}),_.jsx("span",{className:"truncate text-[var(--color-text)]",children:e.name})]}),c&&e.children&&_.jsx("div",{children:e.children.map(m=>_.jsx(RT,{entry:m,expandedDirs:t,depth:n+1,onToggleDir:r,onOpenFile:a,onEnterDir:o,onContextMenu:u},m.path))})]})}const f=i9(e.name);return _.jsxs("button",{onClick:()=>a(e.path),onContextMenu:d=>u(d,e.path,e.name),className:"flex items-center gap-1.5 w-full px-2 py-1 text-sm hover:bg-[var(--color-surface-3)] rounded transition-colors",style:{paddingLeft:`${n*16+22}px`},children:[_.jsx(f,{size:14,className:"text-[var(--color-text-secondary)] flex-shrink-0"}),_.jsx("span",{className:"truncate text-[var(--color-text)]",children:e.name}),e.size!=null&&_.jsx("span",{className:"ml-auto text-xs text-[var(--color-text-muted)] flex-shrink-0",children:a9(e.size)})]})}function l9({entries:e,expandedDirs:t,loading:n,workspacePath:r,onToggleDir:a,onOpenFile:o,onEnterDir:u,onUpload:c,onCreateFolder:f,onDelete:d}){const[m,p]=E.useState(!1),[y,g]=E.useState(""),[x,w]=E.useState(null),S=E.useRef(null),O=E.useRef(null);E.useEffect(()=>{if(!x)return;const j=$=>{O.current&&!O.current.contains($.target)&&w(null)},U=$=>{$.key==="Escape"&&w(null)};return document.addEventListener("mousedown",j),document.addEventListener("keydown",U),()=>{document.removeEventListener("mousedown",j),document.removeEventListener("keydown",U)}},[x]);const C=(j,U,$)=>{j.preventDefault(),w({x:j.clientX,y:j.clientY,path:U,name:$})},T=()=>{x&&(window.confirm(`Delete "${x.name}"?`)&&d(x.path),w(null))},D=()=>{const j=y.trim();j&&(f(j),g(""),p(!1))},P=j=>{const U=j.target.files;if(U){for(let $=0;$<U.length;$++)c(U[$]);j.target.value=""}},k=[];if(r!=="/"){const j=r.replace(/^\//,"").split("/");let U="";for(const $ of j)U+="/"+$,k.push({label:$,path:U})}return _.jsxs("div",{className:"flex flex-col h-full",children:[_.jsxs("div",{className:"flex items-center gap-1 px-2 py-1.5 border-b border-[var(--color-border)]",children:[_.jsxs("div",{className:"flex items-center gap-0.5 flex-1 min-w-0 text-xs text-[var(--color-text-secondary)]",children:[_.jsx("button",{onClick:()=>u("/"),className:"p-0.5 rounded hover:bg-[var(--color-surface-3)] transition-colors flex-shrink-0",title:"Workspace root",children:_.jsx(WI,{size:13})}),k.map(j=>_.jsxs("span",{className:"flex items-center gap-0.5 min-w-0",children:[_.jsx("span",{className:"text-[var(--color-text-muted)]",children:"/"}),_.jsx("button",{onClick:()=>u(j.path),className:"truncate hover:underline",children:j.label})]},j.path))]}),_.jsx("button",{onClick:()=>p(j=>!j),className:"p-1 rounded hover:bg-[var(--color-surface-3)] transition-colors flex-shrink-0",title:"New folder",children:_.jsx(GI,{size:14,className:"text-[var(--color-text-secondary)]"})}),_.jsx("button",{onClick:()=>{var j;return(j=S.current)==null?void 0:j.click()},className:"p-1 rounded hover:bg-[var(--color-surface-3)] transition-colors flex-shrink-0",title:"Upload file",children:_.jsx(f3,{size:14,className:"text-[var(--color-text-secondary)]"})}),_.jsx("input",{ref:S,type:"file",multiple:!0,onChange:P,className:"hidden"})]}),m&&_.jsxs("div",{className:"flex items-center gap-1 px-2 py-1.5 border-b border-[var(--color-border)]",children:[_.jsx("input",{autoFocus:!0,value:y,onChange:j=>g(j.target.value),onKeyDown:j=>{j.key==="Enter"&&D(),j.key==="Escape"&&p(!1)},placeholder:"Folder name...",className:"flex-1 text-xs bg-transparent text-[var(--color-text)] placeholder:text-[var(--color-text-muted)] focus:outline-none border border-[var(--color-border)] rounded px-2 py-1"}),_.jsx("button",{onClick:D,className:"text-xs text-[var(--color-primary)] hover:underline px-1",children:"Create"})]}),_.jsx("div",{className:"flex-1 overflow-y-auto py-1",children:n&&e.length===0?_.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-2",children:[_.jsx(Qy,{size:20,className:"text-[var(--color-text-muted)] animate-pulse"}),_.jsx("span",{className:"text-sm text-[var(--color-text-muted)]",children:"Loading files..."})]}):e.length===0?_.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-3 px-6",children:[_.jsx("div",{className:"w-10 h-10 rounded-lg bg-[var(--color-surface-3)] flex items-center justify-center",children:_.jsx(Qy,{size:20,className:"text-[var(--color-text-muted)]"})}),_.jsxs("div",{className:"text-center",children:[_.jsx("p",{className:"text-sm font-medium text-[var(--color-text-secondary)]",children:"Workspace is empty"}),_.jsx("p",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:"Upload files or create folders to get started"})]})]}):e.map(j=>_.jsx(RT,{entry:j,expandedDirs:t,depth:0,onToggleDir:a,onOpenFile:o,onEnterDir:u,onContextMenu:C},j.path))}),x&&_.jsx("div",{ref:O,className:"fixed z-50 bg-[var(--color-surface-2)] border border-[var(--color-border)] rounded-md shadow-lg py-1 min-w-[140px]",style:{left:x.x,top:x.y},children:_.jsxs("button",{onClick:T,className:"flex items-center gap-2 w-full px-3 py-1.5 text-xs text-[var(--color-error)] hover:bg-[var(--color-surface-3)] transition-colors",children:[_.jsx(jC,{size:13}),"Delete"]})})]})}function o9(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function u9({file:e,onClose:t}){const[n,r]=E.useState(!1),a=e.preview_type!=="text"&&e.preview_type!=="binary",o=!!e.data;return _.jsxs("div",{className:"flex flex-col h-full bg-[var(--color-surface)]",children:[_.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-[var(--color-border)] bg-[var(--color-surface-2)]",children:[_.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[_.jsx("span",{className:"text-sm font-medium text-[var(--color-text)] truncate",children:e.name}),_.jsx("span",{className:"text-xs text-[var(--color-text-muted)] flex-shrink-0",children:o9(e.size)})]}),_.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",children:[a&&o&&_.jsx("button",{onClick:()=>r(u=>!u),className:"p-1 rounded hover:bg-[var(--color-surface-3)] transition-colors",title:n?"Preview":"View raw",children:n?_.jsx(FI,{size:14,className:"text-[var(--color-text-secondary)]"}):_.jsx($I,{size:14,className:"text-[var(--color-text-secondary)]"})}),_.jsx("a",{href:`/api/files/download?path=${encodeURIComponent(e.path)}`,download:e.name,className:"p-1 rounded hover:bg-[var(--color-surface-3)] transition-colors",title:"Download",children:_.jsx(_C,{size:14,className:"text-[var(--color-text-secondary)]"})}),_.jsx("button",{onClick:t,className:"p-1 rounded hover:bg-[var(--color-surface-3)] transition-colors",children:_.jsx(h0,{size:14,className:"text-[var(--color-text-secondary)]"})})]})]}),_.jsx("div",{className:"flex-1 overflow-auto",children:n&&o?_.jsx(IT,{content:e.data}):_.jsx(s9,{file:e})})]})}function s9({file:e}){switch(e.preview_type){case"text":return _.jsx(IT,{content:e.data||""});case"image":return _.jsx("div",{className:"flex items-center justify-center p-6",children:_.jsx("img",{src:`data:${e.mime||"image/png"};base64,${e.data}`,alt:e.name,className:"max-w-full max-h-[80vh] rounded shadow-sm"})});case"html":return _.jsx("iframe",{srcDoc:e.data||"",title:e.name,className:"w-full h-full border-0",sandbox:"allow-scripts"});case"csv":return _.jsx(c9,{headers:e.headers,rows:e.rows});case"pdf":return e.data?_.jsx("iframe",{src:`data:application/pdf;base64,${e.data}`,title:e.name,className:"w-full h-full border-0"}):_.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-4 text-[var(--color-text-secondary)]",children:[_.jsx("p",{className:"text-sm",children:"PDF preview is not available."}),_.jsxs("a",{href:`/api/files/download?path=${encodeURIComponent(e.path)}`,download:e.name,className:"text-sm text-[var(--color-primary)] hover:underline",children:["Download ",e.name]})]});case"binary":return _.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-4 text-[var(--color-text-secondary)]",children:[_.jsx("p",{className:"text-sm",children:"Binary file — cannot display."}),_.jsxs("a",{href:`/api/files/download?path=${encodeURIComponent(e.path)}`,download:e.name,className:"text-sm text-[var(--color-primary)] hover:underline",children:["Download ",e.name]})]})}}function IT({content:e}){const t=e.split(`
`);return _.jsx("pre",{className:"text-sm font-mono leading-relaxed",children:_.jsx("table",{className:"w-full border-collapse",children:_.jsx("tbody",{children:t.map((n,r)=>_.jsxs("tr",{className:"hover:bg-[var(--color-surface-2)]",children:[_.jsx("td",{className:"text-right pr-3 pl-3 py-0 select-none text-[var(--color-text-muted)] text-xs w-[1%] whitespace-nowrap",children:r+1}),_.jsx("td",{className:"pr-4 py-0 whitespace-pre text-[var(--color-text)]",children:n||" "})]},r))})})})}function c9({headers:e,rows:t}){return!(e!=null&&e.length)||!(t!=null&&t.length)?_.jsx("div",{className:"p-4 text-sm text-[var(--color-text-muted)]",children:"Empty or invalid CSV file."}):_.jsxs("div",{className:"overflow-auto p-3",children:[_.jsxs("table",{className:"w-full border-collapse text-sm",children:[_.jsx("thead",{children:_.jsx("tr",{children:e.map(n=>_.jsx("th",{className:"px-3 py-1.5 text-left text-xs font-semibold bg-[var(--color-surface-3)] border border-[var(--color-border)] whitespace-nowrap",children:n},n))})}),_.jsx("tbody",{children:t.map((n,r)=>_.jsx("tr",{children:e.map(a=>_.jsx("td",{className:"px-3 py-1 border border-[var(--color-border)] text-[var(--color-text)] whitespace-nowrap",children:n[a]??""},a))},r))})]}),t.length>=50&&_.jsx("p",{className:"mt-2 text-xs text-[var(--color-text-muted)]",children:"Showing first 50 rows. Download to see all data."})]})}const f9="modulepreload",d9=function(e){return"/"+e},kE={},h9=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let u=function(d){return Promise.all(d.map(m=>Promise.resolve(m).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));a=u(n.map(d=>{if(d=d9(d),d in kE)return;kE[d]=!0;const m=d.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${p}`))return;const y=document.createElement("link");if(y.rel=m?"stylesheet":f9,m||(y.as="script"),y.crossOrigin="",y.href=d,f&&y.setAttribute("nonce",f),document.head.appendChild(y),m)return new Promise((g,x)=>{y.addEventListener("load",g),y.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${d}`)))})}))}function o(u){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=u,window.dispatchEvent(c),!c.defaultPrevented)throw u}return a.then(u=>{for(const c of u||[])c.status==="rejected"&&o(c.reason);return t().catch(o)})};function m9({item:e,onDelete:t}){const[n,r]=E.useState(!1);return _.jsxs("div",{className:"border border-[var(--color-border)] rounded-lg overflow-hidden bg-[var(--color-surface)]",children:[_.jsxs("div",{className:"flex items-center justify-between px-3 py-2 bg-[var(--color-surface-2)] border-b border-[var(--color-border)] cursor-pointer select-none",onClick:()=>r(a=>!a),children:[_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx(AC,{size:14,className:`text-[var(--color-text-muted)] transition-transform duration-150 ${n?"-rotate-90":""}`}),_.jsx("span",{className:"text-xs font-medium uppercase text-[var(--color-text-muted)]",children:e.type}),_.jsx("span",{className:"text-sm font-medium text-[var(--color-text)]",children:e.title})]}),_.jsx("button",{onClick:a=>{a.stopPropagation(),t(e.id)},className:"p-1 rounded hover:bg-[var(--color-surface-3)] transition-colors",children:_.jsx(h0,{size:14,className:"text-[var(--color-text-secondary)]"})})]}),!n&&_.jsx("div",{className:"p-3",children:_.jsx(p9,{item:e})})]})}function p9({item:e}){switch(e.type){case"markdown":return _.jsx("div",{className:"markdown-content text-sm",children:_.jsx(T0,{remarkPlugins:[D0],children:typeof e.data=="string"?e.data:JSON.stringify(e.data)})});case"dataframe":return _.jsx(x9,{data:e.data});case"mermaid":return _.jsx(w9,{code:String(e.data)});case"image":case"matplotlib":return _.jsx(b9,{item:e});case"html":return _.jsx(y9,{html:typeof e.data=="string"?e.data:"",title:e.title});case"plotly":return _.jsx(g9,{data:e.data,title:e.title});default:return _.jsx("pre",{className:"text-xs bg-[var(--color-surface-3)] rounded p-3 overflow-x-auto",children:typeof e.data=="string"?e.data:JSON.stringify(e.data,null,2)})}}const v9=`<script>
function _sendHeight(){
  var h=document.documentElement.scrollHeight;
  window.parent.postMessage({type:'iframe-resize',height:h},'*');
}
window.addEventListener('load',function(){_sendHeight();setTimeout(_sendHeight,200);setTimeout(_sendHeight,1000);});
new MutationObserver(_sendHeight).observe(document.body,{childList:true,subtree:true});
<\/script>`;function y9({html:e,title:t}){const n=E.useRef(null),[r,a]=E.useState(200);E.useEffect(()=>{const u=n.current;if(!u)return;const c=f=>{var d;if(f.source===u.contentWindow&&((d=f.data)==null?void 0:d.type)==="iframe-resize"){const m=Math.max(60,Math.min(f.data.height,600));a(m)}};return window.addEventListener("message",c),()=>window.removeEventListener("message",c)},[e]);const o=`<!DOCTYPE html>
<html><head><meta charset="utf-8"><style>
  body { margin: 0; padding: 8px; font-family: system-ui, sans-serif; font-size: 13px; }
  img, table, svg { max-width: 100%; }
</style></head><body>${e}${v9}</body></html>`;return _.jsx("iframe",{ref:n,srcDoc:o,title:t||"HTML preview",sandbox:"allow-scripts allow-same-origin",className:"w-full rounded border-0",style:{height:`${r}px`}})}function g9({data:e,title:t}){const n=E.useRef(null),[r,a]=E.useState(400);E.useEffect(()=>{const c=n.current;if(!c)return;const f=d=>{var m;if(d.source===c.contentWindow&&((m=d.data)==null?void 0:m.type)==="iframe-resize"){const p=Math.max(200,Math.min(d.data.height,600));a(p)}};return window.addEventListener("message",f),()=>window.removeEventListener("message",f)},[e]);const u=`<!DOCTYPE html>
<html><head><meta charset="utf-8">
<script src="https://cdn.plot.ly/plotly-2.35.2.min.js"><\/script>
<style>body{margin:0;padding:0;}</style>
</head><body>
<div id="chart" style="width:100%;"></div>
<script>
var spec=${JSON.stringify(e)};
var d=spec.data||[];
var l=Object.assign({margin:{t:30,r:20,b:40,l:50},autosize:true},spec.layout||{});
Plotly.newPlot('chart',d,l,{responsive:true,displayModeBar:false}).then(function(){
  var h=document.getElementById('chart').offsetHeight;
  window.parent.postMessage({type:'iframe-resize',height:h},'*');
});
<\/script></body></html>`;return _.jsx("iframe",{ref:n,srcDoc:u,title:t||"Plotly chart",sandbox:"allow-scripts allow-same-origin",className:"w-full rounded border-0",style:{height:`${r}px`}})}function b9({item:e}){const t=typeof e.data=="string"?e.data:"",n=t.startsWith("data:")?t:t.length>100&&!t.includes("/")?`data:image/png;base64,${t}`:e.file?`/api/canvas/assets/${e.file}`:t;return _.jsx("img",{src:n,alt:e.title,className:"max-w-full rounded"})}function x9({data:e}){if(!Array.isArray(e)||e.length===0)return _.jsx("pre",{className:"text-xs",children:JSON.stringify(e,null,2)});const t=Object.keys(e[0]);return _.jsx("div",{className:"overflow-x-auto",children:_.jsxs("table",{className:"w-full border-collapse text-sm",children:[_.jsx("thead",{children:_.jsx("tr",{children:t.map(n=>_.jsx("th",{className:"px-3 py-1.5 text-left text-xs font-semibold bg-[var(--color-surface-3)] border border-[var(--color-border)]",children:n},n))})}),_.jsx("tbody",{children:e.map((n,r)=>_.jsx("tr",{children:t.map(a=>_.jsx("td",{className:"px-3 py-1 border border-[var(--color-border)] text-[var(--color-text)]",children:String(n[a]??"")},a))},r))})]})})}function w9({code:e}){const t=E.useRef(null);return E.useEffect(()=>{let n=!1;return(async()=>{try{const r=(await h9(async()=>{const{default:o}=await import("./mermaid.core-C-wfNO-8.js").then(u=>u.b6);return{default:o}},[])).default;if(r.initialize({startOnLoad:!1,theme:"default"}),n||!t.current)return;const{svg:a}=await r.render(`mermaid-${Date.now()}`,e);!n&&t.current&&(t.current.innerHTML=a)}catch(r){console.error("Mermaid render error:",r),t.current&&(t.current.textContent=e)}})(),()=>{n=!0}},[e]),_.jsx("div",{ref:t,className:"overflow-x-auto"})}function S9({items:e,onDelete:t,onClearAll:n,onExport:r}){const a=async()=>{const o=await r();if(!o)return;const u=new Blob([o],{type:"text/markdown"}),c=URL.createObjectURL(u),f=document.createElement("a");f.href=c,f.download="canvas.md",f.click(),URL.revokeObjectURL(c)};return e.length===0?_.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-3 px-6",children:[_.jsx("div",{className:"w-10 h-10 rounded-lg bg-[var(--color-surface-3)] flex items-center justify-center",children:_.jsx(JI,{size:20,className:"text-[var(--color-text-muted)]"})}),_.jsxs("div",{className:"text-center",children:[_.jsx("p",{className:"text-sm font-medium text-[var(--color-text-secondary)]",children:"No canvas items"}),_.jsx("p",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:"Charts, tables, and visualizations will be collected here"})]})]}):_.jsxs("div",{className:"flex flex-col h-full",children:[_.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-[var(--color-border)]",children:[_.jsxs("span",{className:"text-xs font-medium text-[var(--color-text-secondary)]",children:[e.length," item",e.length!==1?"s":""]}),_.jsxs("div",{className:"flex items-center gap-1",children:[_.jsx("button",{onClick:a,className:"p-1 rounded hover:bg-[var(--color-surface-3)] transition-colors",title:"Export as Markdown",children:_.jsx(_C,{size:14,className:"text-[var(--color-text-secondary)]"})}),_.jsx("button",{onClick:n,className:"p-1 rounded hover:bg-[var(--color-surface-3)] transition-colors",title:"Clear all",children:_.jsx(jC,{size:14,className:"text-[var(--color-text-secondary)]"})})]})]}),_.jsx("div",{className:"flex-1 overflow-y-auto p-3 space-y-3",children:e.map(o=>_.jsx(m9,{item:o,onDelete:t},o.id))})]})}function O9({todos:e}){if(e.length===0)return _.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-3 px-6",children:[_.jsx("div",{className:"w-10 h-10 rounded-lg bg-[var(--color-surface-3)] flex items-center justify-center",children:_.jsx(e3,{size:20,className:"text-[var(--color-text-muted)]"})}),_.jsxs("div",{className:"text-center",children:[_.jsx("p",{className:"text-sm font-medium text-[var(--color-text-secondary)]",children:"No tasks yet"}),_.jsx("p",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:"Tasks will appear here as the agent works"})]})]});const t=e.filter(a=>a.status==="completed").length,n=e.length,r=n>0?Math.round(t/n*100):0;return _.jsxs("div",{className:"flex flex-col h-full",children:[_.jsxs("div",{className:"px-4 py-2.5 border-b border-[var(--color-border)]",children:[_.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[_.jsx("span",{className:"text-[11px] font-medium uppercase tracking-wide text-[var(--color-text-muted)]",children:"Progress"}),_.jsxs("span",{className:"text-[11px] tabular-nums text-[var(--color-text-muted)]",children:[t,"/",n," (",r,"%)"]})]}),_.jsx("div",{className:"h-1 rounded-full bg-[var(--color-surface-3)]",children:_.jsx("div",{className:"h-full rounded-full bg-[var(--color-primary)] transition-all duration-300",style:{width:`${r}%`}})})]}),_.jsx("div",{className:"flex-1 overflow-y-auto px-4 py-2 space-y-1",children:e.map((a,o)=>_.jsxs("div",{className:"flex items-start gap-2.5 py-1",children:[a.status==="completed"?_.jsx(d0,{size:14,className:"text-[var(--color-success)] flex-shrink-0 mt-0.5"}):a.status==="in_progress"?_.jsx(jd,{size:14,className:"text-[var(--color-primary)] animate-spin flex-shrink-0 mt-0.5"}):_.jsx(Wy,{size:14,className:"text-[var(--color-text-muted)] flex-shrink-0 mt-0.5"}),_.jsx("span",{className:`text-sm leading-snug ${a.status==="completed"?"text-[var(--color-text-muted)] line-through":a.status==="in_progress"?"text-[var(--color-text)]":"text-[var(--color-text-secondary)]"}`,children:a.content})]},o))})]})}function E9({interrupt:e,onRespond:t}){const[n,r]=E.useState(null),[a,o]=E.useState(""),u=new Set(e.allowed_decisions),c=e.action_requests.length>0,f=()=>{t(c?e.action_requests.map(()=>({type:"approve"})):[{type:"approve"}])},d=()=>{t(c?e.action_requests.map(()=>({type:"reject"})):[{type:"reject"}])},m=p=>{try{const y=JSON.parse(a),g=e.action_requests[p],x=e.action_requests.map((w,S)=>S===p?{type:"edit",edited_action:{name:g.tool,args:y}}:{type:"approve"});t(x)}catch{}};return _.jsx("div",{className:"fixed inset-0 bg-black/40 flex items-center justify-center z-50 p-4 backdrop-blur-sm",children:_.jsxs("div",{className:"bg-[var(--color-surface)] rounded-lg shadow-xl border border-[var(--color-border)] max-w-lg w-full max-h-[80vh] overflow-y-auto",children:[_.jsxs("div",{className:"px-5 py-4 border-b border-[var(--color-border)]",children:[_.jsx("h3",{className:"text-sm font-semibold text-[var(--color-text)]",children:"Action Requires Approval"}),_.jsx("p",{className:"text-xs text-[var(--color-text-muted)] mt-0.5",children:c?`The agent wants to perform the following action${e.action_requests.length>1?"s":""}`:"The agent needs your approval to continue"})]}),_.jsx("div",{className:"px-5 py-4 space-y-3",children:c?e.action_requests.map((p,y)=>_.jsxs("div",{className:"border border-[var(--color-border)] rounded p-3",children:[_.jsx("div",{className:"mb-2",children:_.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide text-[var(--color-text-secondary)]",children:p.tool})}),p.description&&_.jsx("p",{className:"text-xs text-[var(--color-text-secondary)] mb-2 leading-relaxed whitespace-pre-wrap",children:p.description}),_.jsx("pre",{className:"bg-[var(--color-surface-3)] rounded p-2 text-xs overflow-x-auto whitespace-pre-wrap break-all text-[var(--color-text)]",children:JSON.stringify(p.args,null,2)}),n===y&&_.jsxs("div",{className:"mt-2",children:[_.jsx("textarea",{value:a,onChange:g=>o(g.target.value),className:"w-full h-24 p-2 text-xs font-mono bg-[var(--color-surface-3)] border border-[var(--color-border)] rounded resize-none focus:outline-none focus:border-[var(--color-text-muted)] text-[var(--color-text)]",placeholder:"Edit args JSON..."}),_.jsxs("div",{className:"flex gap-2 mt-1",children:[_.jsx("button",{onClick:()=>m(y),className:"px-3 py-1 text-xs font-medium bg-[var(--color-text)] text-[var(--color-surface)] rounded hover:opacity-80 transition-opacity",children:"Submit"}),_.jsx("button",{onClick:()=>r(null),className:"px-3 py-1 text-xs text-[var(--color-text-secondary)] hover:text-[var(--color-text)] transition-colors",children:"Cancel"})]})]})]},y)):_.jsxs("div",{className:"space-y-2",children:[_.jsx("p",{className:"text-xs text-[var(--color-text-muted)] italic",children:"The agent needs your approval to continue."}),_.jsx("pre",{className:"bg-[var(--color-surface-3)] rounded p-2 text-xs overflow-x-auto whitespace-pre-wrap break-all text-[var(--color-text-muted)]",children:JSON.stringify(e,null,2)})]})}),_.jsxs("div",{className:"px-5 py-3 border-t border-[var(--color-border)] flex justify-end gap-2",children:[u.has("edit")&&c&&_.jsxs("button",{onClick:()=>{var p;r(0),o(JSON.stringify(((p=e.action_requests[0])==null?void 0:p.args)??{},null,2))},className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium text-[var(--color-text-secondary)] hover:text-[var(--color-text)] border border-[var(--color-border)] rounded hover:bg-[var(--color-surface-3)] transition-colors",children:[_.jsx(l3,{size:12}),"Edit"]}),u.has("reject")&&_.jsxs("button",{onClick:d,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium text-[var(--color-error)] border border-[var(--color-error)]/30 rounded hover:bg-[var(--color-error)] hover:text-white transition-colors",children:[_.jsx(h0,{size:12}),"Reject"]}),u.has("approve")&&_.jsxs("button",{onClick:f,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-[var(--color-text)] text-[var(--color-surface)] rounded hover:opacity-80 transition-opacity",children:[_.jsx(qI,{size:12}),"Approve"]})]})]})})}function A9({initialTheme:e="auto"}){const[t,n]=E.useState(e),r=E.useCallback(u=>{const c=u==="dark"||u==="auto"&&window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle("dark",c)},[]);E.useEffect(()=>{if(r(t),t==="auto"){const u=window.matchMedia("(prefers-color-scheme: dark)"),c=()=>r("auto");return u.addEventListener("change",c),()=>u.removeEventListener("change",c)}},[t,r]);const a=()=>{n(u=>u==="light"?"dark":u==="dark"?"auto":"light")},o=t==="light"?c3:t==="dark"?n3:t3;return _.jsx("button",{onClick:a,className:"p-1.5 rounded-md hover:bg-[var(--color-surface-3)] transition-colors",title:`Theme: ${t}`,children:_.jsx(o,{size:16,className:"text-[var(--color-text-secondary)]"})})}function LT(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=LT(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ft(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=LT(e))&&(r&&(r+=" "),r+=t);return r}var k9=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function N0(e){if(typeof e!="string")return!1;var t=k9;return t.includes(e)}var _9=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],C9=new Set(_9);function BT(e){return typeof e!="string"?!1:C9.has(e)}function UT(e){return typeof e=="string"&&e.startsWith("data-")}function bi(e){if(typeof e!="object"||e===null)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(BT(n)||UT(n))&&(t[n]=e[n]);return t}function P0(e){if(e==null)return null;if(E.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return bi(t)}return typeof e=="object"&&!Array.isArray(e)?bi(e):null}function hr(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(BT(n)||UT(n)||N0(n))&&(t[n]=e[n]);return t}var T9=["children","width","height","viewBox","className","style","title","desc"];function cg(){return cg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cg.apply(null,arguments)}function j9(e,t){if(e==null)return{};var n,r,a=M9(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function M9(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var qT=E.forwardRef((e,t)=>{var{children:n,width:r,height:a,viewBox:o,className:u,style:c,title:f,desc:d}=e,m=j9(e,T9),p=o||{width:r,height:a,x:0,y:0},y=ft("recharts-surface",u);return E.createElement("svg",cg({},hr(m),{className:y,width:r,height:a,style:c,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height),ref:t}),E.createElement("title",null,f),E.createElement("desc",null,d),n)}),z9=["children","className"];function fg(){return fg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fg.apply(null,arguments)}function D9(e,t){if(e==null)return{};var n,r,a=N9(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function N9(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var xi=E.forwardRef((e,t)=>{var{children:n,className:r}=e,a=D9(e,z9),o=ft("recharts-layer",r);return E.createElement("g",fg({className:o},hr(a),{ref:t}),n)}),HT=pC(),P9=E.createContext(null);function ot(e){return function(){return e}}const bne=Math.abs,xne=Math.atan2,$T=Math.cos,wne=Math.max,Sne=Math.min,If=Math.sin,jr=Math.sqrt,One=1e-12,mo=Math.PI,_E=mo/2,Rd=2*mo;function Ene(e){return e>1?0:e<-1?mo:Math.acos(e)}function Ane(e){return e>=1?_E:e<=-1?-_E:Math.asin(e)}const dg=Math.PI,hg=2*dg,Ua=1e-6,R9=hg-Ua;function FT(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function I9(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return FT;const n=10**t;return function(r){this._+=r[0];for(let a=1,o=r.length;a<o;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class L9{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?FT:I9(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,o,u){this._append`C${+t},${+n},${+r},${+a},${this._x1=+o},${this._y1=+u}`}arcTo(t,n,r,a,o){if(t=+t,n=+n,r=+r,a=+a,o=+o,o<0)throw new Error(`negative radius: ${o}`);let u=this._x1,c=this._y1,f=r-t,d=a-n,m=u-t,p=c-n,y=m*m+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(y>Ua)if(!(Math.abs(p*f-d*m)>Ua)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let g=r-u,x=a-c,w=f*f+d*d,S=g*g+x*x,O=Math.sqrt(w),C=Math.sqrt(y),T=o*Math.tan((dg-Math.acos((w+y-S)/(2*O*C)))/2),D=T/C,P=T/O;Math.abs(D-1)>Ua&&this._append`L${t+D*m},${n+D*p}`,this._append`A${o},${o},0,0,${+(p*g>m*x)},${this._x1=t+P*f},${this._y1=n+P*d}`}}arc(t,n,r,a,o,u){if(t=+t,n=+n,r=+r,u=!!u,r<0)throw new Error(`negative radius: ${r}`);let c=r*Math.cos(a),f=r*Math.sin(a),d=t+c,m=n+f,p=1^u,y=u?a-o:o-a;this._x1===null?this._append`M${d},${m}`:(Math.abs(this._x1-d)>Ua||Math.abs(this._y1-m)>Ua)&&this._append`L${d},${m}`,r&&(y<0&&(y=y%hg+hg),y>R9?this._append`A${r},${r},0,1,${p},${t-c},${n-f}A${r},${r},0,1,${p},${this._x1=d},${this._y1=m}`:y>Ua&&this._append`A${r},${r},0,${+(y>=dg)},${p},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function R0(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new L9(t)}function I0(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function VT(e){this._context=e}VT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Id(e){return new VT(e)}function YT(e){return e[0]}function KT(e){return e[1]}function GT(e,t){var n=ot(!0),r=null,a=Id,o=null,u=R0(c);e=typeof e=="function"?e:e===void 0?YT:ot(e),t=typeof t=="function"?t:t===void 0?KT:ot(t);function c(f){var d,m=(f=I0(f)).length,p,y=!1,g;for(r==null&&(o=a(g=u())),d=0;d<=m;++d)!(d<m&&n(p=f[d],d,f))===y&&((y=!y)?o.lineStart():o.lineEnd()),y&&o.point(+e(p,d,f),+t(p,d,f));if(g)return o=null,g+""||null}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:ot(+f),c):e},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:ot(+f),c):t},c.defined=function(f){return arguments.length?(n=typeof f=="function"?f:ot(!!f),c):n},c.curve=function(f){return arguments.length?(a=f,r!=null&&(o=a(r)),c):a},c.context=function(f){return arguments.length?(f==null?r=o=null:o=a(r=f),c):r},c}function uf(e,t,n){var r=null,a=ot(!0),o=null,u=Id,c=null,f=R0(d);e=typeof e=="function"?e:e===void 0?YT:ot(+e),t=typeof t=="function"?t:ot(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?KT:ot(+n);function d(p){var y,g,x,w=(p=I0(p)).length,S,O=!1,C,T=new Array(w),D=new Array(w);for(o==null&&(c=u(C=f())),y=0;y<=w;++y){if(!(y<w&&a(S=p[y],y,p))===O)if(O=!O)g=y,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),x=y-1;x>=g;--x)c.point(T[x],D[x]);c.lineEnd(),c.areaEnd()}O&&(T[y]=+e(S,y,p),D[y]=+t(S,y,p),c.point(r?+r(S,y,p):T[y],n?+n(S,y,p):D[y]))}if(C)return c=null,C+""||null}function m(){return GT().defined(a).curve(u).context(o)}return d.x=function(p){return arguments.length?(e=typeof p=="function"?p:ot(+p),r=null,d):e},d.x0=function(p){return arguments.length?(e=typeof p=="function"?p:ot(+p),d):e},d.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:ot(+p),d):r},d.y=function(p){return arguments.length?(t=typeof p=="function"?p:ot(+p),n=null,d):t},d.y0=function(p){return arguments.length?(t=typeof p=="function"?p:ot(+p),d):t},d.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:ot(+p),d):n},d.lineX0=d.lineY0=function(){return m().x(e).y(t)},d.lineY1=function(){return m().x(e).y(n)},d.lineX1=function(){return m().x(r).y(t)},d.defined=function(p){return arguments.length?(a=typeof p=="function"?p:ot(!!p),d):a},d.curve=function(p){return arguments.length?(u=p,o!=null&&(c=u(o)),d):u},d.context=function(p){return arguments.length?(p==null?o=c=null:c=u(o=p),d):o},d}class XT{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function B9(e){return new XT(e,!0)}function U9(e){return new XT(e,!1)}const L0={draw(e,t){const n=jr(t/mo);e.moveTo(n,0),e.arc(0,0,n,0,Rd)}},q9={draw(e,t){const n=jr(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},ZT=jr(1/3),H9=ZT*2,$9={draw(e,t){const n=jr(t/H9),r=n*ZT;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},F9={draw(e,t){const n=jr(t),r=-n/2;e.rect(r,r,n,n)}},V9=.8908130915292852,WT=If(mo/10)/If(7*mo/10),Y9=If(Rd/10)*WT,K9=-$T(Rd/10)*WT,G9={draw(e,t){const n=jr(t*V9),r=Y9*n,a=K9*n;e.moveTo(0,-n),e.lineTo(r,a);for(let o=1;o<5;++o){const u=Rd*o/5,c=$T(u),f=If(u);e.lineTo(f*n,-c*n),e.lineTo(c*r-f*a,f*r+c*a)}e.closePath()}},pv=jr(3),X9={draw(e,t){const n=-jr(t/(pv*3));e.moveTo(0,n*2),e.lineTo(-pv*n,-n),e.lineTo(pv*n,-n),e.closePath()}},lr=-.5,or=jr(3)/2,mg=1/jr(12),Z9=(mg/2+1)*3,W9={draw(e,t){const n=jr(t/Z9),r=n/2,a=n*mg,o=r,u=n*mg+n,c=-o,f=u;e.moveTo(r,a),e.lineTo(o,u),e.lineTo(c,f),e.lineTo(lr*r-or*a,or*r+lr*a),e.lineTo(lr*o-or*u,or*o+lr*u),e.lineTo(lr*c-or*f,or*c+lr*f),e.lineTo(lr*r+or*a,lr*a-or*r),e.lineTo(lr*o+or*u,lr*u-or*o),e.lineTo(lr*c+or*f,lr*f-or*c),e.closePath()}};function Q9(e,t){let n=null,r=R0(a);e=typeof e=="function"?e:ot(e||L0),t=typeof t=="function"?t:ot(t===void 0?64:+t);function a(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return a.type=function(o){return arguments.length?(e=typeof o=="function"?o:ot(o),a):e},a.size=function(o){return arguments.length?(t=typeof o=="function"?o:ot(+o),a):t},a.context=function(o){return arguments.length?(n=o??null,a):n},a}function Lf(){}function Bf(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function QT(e){this._context=e}QT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Bf(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Bf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function J9(e){return new QT(e)}function JT(e){this._context=e}JT.prototype={areaStart:Lf,areaEnd:Lf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Bf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function eU(e){return new JT(e)}function ej(e){this._context=e}ej.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Bf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function tU(e){return new ej(e)}function tj(e){this._context=e}tj.prototype={areaStart:Lf,areaEnd:Lf,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function nU(e){return new tj(e)}function CE(e){return e<0?-1:1}function TE(e,t,n){var r=e._x1-e._x0,a=t-e._x1,o=(e._y1-e._y0)/(r||a<0&&-0),u=(n-e._y1)/(a||r<0&&-0),c=(o*a+u*r)/(r+a);return(CE(o)+CE(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(c))||0}function jE(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function vv(e,t,n){var r=e._x0,a=e._y0,o=e._x1,u=e._y1,c=(o-r)/3;e._context.bezierCurveTo(r+c,a+c*t,o-c,u-c*n,o,u)}function Uf(e){this._context=e}Uf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:vv(this,this._t0,jE(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,vv(this,jE(this,n=TE(this,e,t)),n);break;default:vv(this,this._t0,n=TE(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function nj(e){this._context=new rj(e)}(nj.prototype=Object.create(Uf.prototype)).point=function(e,t){Uf.prototype.point.call(this,t,e)};function rj(e){this._context=e}rj.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,o){this._context.bezierCurveTo(t,e,r,n,o,a)}};function rU(e){return new Uf(e)}function iU(e){return new nj(e)}function ij(e){this._context=e}ij.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=ME(e),a=ME(t),o=0,u=1;u<n;++o,++u)this._context.bezierCurveTo(r[0][o],a[0][o],r[1][o],a[1][o],e[u],t[u]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function ME(e){var t,n=e.length-1,r,a=new Array(n),o=new Array(n),u=new Array(n);for(a[0]=0,o[0]=2,u[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,o[t]=4,u[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,o[n-1]=7,u[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/o[t-1],o[t]-=r,u[t]-=r*u[t-1];for(a[n-1]=u[n-1]/o[n-1],t=n-2;t>=0;--t)a[t]=(u[t]-a[t+1])/o[t];for(o[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-a[t+1];return[a,o]}function aU(e){return new ij(e)}function Ld(e,t){this._context=e,this._t=t}Ld.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function lU(e){return new Ld(e,.5)}function oU(e){return new Ld(e,0)}function uU(e){return new Ld(e,1)}function Qa(e,t){if((u=e.length)>1)for(var n=1,r,a,o=e[t[0]],u,c=o.length;n<u;++n)for(a=o,o=e[t[n]],r=0;r<c;++r)o[r][1]+=o[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function pg(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function sU(e,t){return e[t]}function cU(e){const t=[];return t.key=e,t}function fU(){var e=ot([]),t=pg,n=Qa,r=sU;function a(o){var u=Array.from(e.apply(this,arguments),cU),c,f=u.length,d=-1,m;for(const p of o)for(c=0,++d;c<f;++c)(u[c][d]=[0,+r(p,u[c].key,d,o)]).data=p;for(c=0,m=I0(t(u));c<f;++c)u[m[c]].index=c;return n(u,m),u}return a.keys=function(o){return arguments.length?(e=typeof o=="function"?o:ot(Array.from(o)),a):e},a.value=function(o){return arguments.length?(r=typeof o=="function"?o:ot(+o),a):r},a.order=function(o){return arguments.length?(t=o==null?pg:typeof o=="function"?o:ot(Array.from(o)),a):t},a.offset=function(o){return arguments.length?(n=o??Qa,a):n},a}function dU(e,t){if((r=e.length)>0){for(var n,r,a=0,o=e[0].length,u;a<o;++a){for(u=n=0;n<r;++n)u+=e[n][a][1]||0;if(u)for(n=0;n<r;++n)e[n][a][1]/=u}Qa(e,t)}}function hU(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,o=r.length;n<o;++n){for(var u=0,c=0;u<a;++u)c+=e[u][n][1]||0;r[n][1]+=r[n][0]=-c/2}Qa(e,t)}}function mU(e,t){if(!(!((u=e.length)>0)||!((o=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,o,u;r<o;++r){for(var c=0,f=0,d=0;c<u;++c){for(var m=e[t[c]],p=m[r][1]||0,y=m[r-1][1]||0,g=(p-y)/2,x=0;x<c;++x){var w=e[t[x]],S=w[r][1]||0,O=w[r-1][1]||0;g+=S-O}f+=p,d+=g*p}a[r-1][1]+=a[r-1][0]=n,f&&(n-=d/f)}a[r-1][1]+=a[r-1][0]=n,Qa(e,t)}}var yv={},gv={},zE;function pU(){return zE||(zE=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(gv)),gv}var bv={},DE;function aj(){return DE||(DE=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(bv)),bv}var xv={},NE;function B0(){return NE||(NE=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var r;return typeof n=="string"||typeof n=="symbol"?n:Object.is((r=n==null?void 0:n.valueOf)==null?void 0:r.call(n),-0)?"-0":String(n)}e.toKey=t})(xv)),xv}var wv={},Sv={},PE;function vU(){return PE||(PE=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(n==null)return"";if(typeof n=="string")return n;if(Array.isArray(n))return n.map(t).join(",");const r=String(n);return r==="0"&&Object.is(Number(n),-0)?"-0":r}e.toString=t})(Sv)),Sv}var RE;function U0(){return RE||(RE=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vU(),n=B0();function r(a){if(Array.isArray(a))return a.map(n.toKey);if(typeof a=="symbol")return[a];a=t.toString(a);const o=[],u=a.length;if(u===0)return o;let c=0,f="",d="",m=!1;for(a.charCodeAt(0)===46&&(o.push(""),c++);c<u;){const p=a[c];d?p==="\\"&&c+1<u?(c++,f+=a[c]):p===d?d="":f+=p:m?p==='"'||p==="'"?d=p:p==="]"?(m=!1,o.push(f),f=""):f+=p:p==="["?(m=!0,f&&(o.push(f),f="")):p==="."?f&&(o.push(f),f=""):f+=p,c++}return f&&o.push(f),o}e.toPath=r})(wv)),wv}var IE;function q0(){return IE||(IE=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=pU(),n=aj(),r=B0(),a=U0();function o(c,f,d){if(c==null)return d;switch(typeof f){case"string":{if(t.isUnsafeProperty(f))return d;const m=c[f];return m===void 0?n.isDeepKey(f)?o(c,a.toPath(f),d):d:m}case"number":case"symbol":{typeof f=="number"&&(f=r.toKey(f));const m=c[f];return m===void 0?d:m}default:{if(Array.isArray(f))return u(c,f,d);if(Object.is(f==null?void 0:f.valueOf(),-0)?f="-0":f=String(f),t.isUnsafeProperty(f))return d;const m=c[f];return m===void 0?d:m}}}function u(c,f,d){if(f.length===0)return d;let m=c;for(let p=0;p<f.length;p++){if(m==null||t.isUnsafeProperty(f[p]))return d;m=m[f[p]]}return m===void 0?d:m}e.get=o})(yv)),yv}var Ov,LE;function yU(){return LE||(LE=1,Ov=q0().get),Ov}var gU=yU();const po=Tr(gU);var bU=4;function da(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bU,n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function gt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.reduce((a,o,u)=>{var c=n[u-1];return typeof c=="string"?a+c+o:c!==void 0?a+da(c)+o:a+o},"")}var kn=e=>e===0?0:e>0?1:-1,$r=e=>typeof e=="number"&&e!=+e,Ja=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,we=e=>(typeof e=="number"||e instanceof Number)&&!$r(e),Fr=e=>we(e)||typeof e=="string",xU=0,ns=e=>{var t=++xU;return"".concat(e||"").concat(t)},_r=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!we(t)&&typeof t!="string")return r;var o;if(Ja(t)){if(n==null)return r;var u=t.indexOf("%");o=n*parseFloat(t.slice(0,u))/100}else o=+t;return $r(o)&&(o=r),a&&n!=null&&o>n&&(o=n),o},lj=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function Jt(e,t,n){return we(e)&&we(t)?da(e+n*(t-e)):t}function wU(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):po(r,t))===n)}var qt=e=>e===null||typeof e>"u",ws=e=>qt(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function _n(e){return e!=null}function _o(){}var SU=["type","size","sizeType"];function vg(){return vg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vg.apply(null,arguments)}function BE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function UE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BE(Object(n),!0).forEach(function(r){OU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OU(e,t,n){return(t=EU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EU(e){var t=AU(e,"string");return typeof t=="symbol"?t:t+""}function AU(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kU(e,t){if(e==null)return{};var n,r,a=_U(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function _U(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var oj={symbolCircle:L0,symbolCross:q9,symbolDiamond:$9,symbolSquare:F9,symbolStar:G9,symbolTriangle:X9,symbolWye:W9},CU=Math.PI/180,TU=e=>{var t="symbol".concat(ws(e));return oj[t]||L0},jU=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*CU;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},MU=(e,t)=>{oj["symbol".concat(ws(e))]=t},uj=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,a=kU(e,SU),o=UE(UE({},a),{},{type:t,size:n,sizeType:r}),u="circle";typeof t=="string"&&(u=t);var c=()=>{var y=TU(u),g=Q9().type(y).size(jU(n,r,u)),x=g();if(x!==null)return x},{className:f,cx:d,cy:m}=o,p=hr(o);return we(d)&&we(m)&&we(n)?E.createElement("path",vg({},p,{className:ft("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(m,")"),d:c()})):null};uj.registerSymbol=MU;var sj=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,zU=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(E.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(a=>{N0(a)&&(r[a]=(o=>n[a](n,o)))}),r},DU=(e,t,n)=>r=>(e(t,n,r),null),H0=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(a=>{var o=e[a];N0(a)&&typeof o=="function"&&(r||(r={}),r[a]=DU(o,t,n))}),r};function qE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function NU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qE(Object(n),!0).forEach(function(r){PU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PU(e,t,n){return(t=RU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RU(e){var t=IU(e,"string");return typeof t=="symbol"?t:t+""}function IU(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kn(e,t){var n=NU({},e),r=t,a=Object.keys(t),o=a.reduce((u,c)=>(u[c]===void 0&&r[c]!==void 0&&(u[c]=r[c]),u),n);return o}var Ev={},Av={},HE;function LU(){return HE||(HE=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const a=new Map;for(let o=0;o<n.length;o++){const u=n[o],c=r(u,o,n);a.has(c)||a.set(c,u)}return Array.from(a.values())}e.uniqBy=t})(Av)),Av}var kv={},$E;function BU(){return $E||($E=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return function(...a){return n.apply(this,a.slice(0,r))}}e.ary=t})(kv)),kv}var _v={},FE;function cj(){return FE||(FE=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(_v)),_v}var Cv={},Tv={},jv={},VE;function UU(){return VE||(VE=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(jv)),jv}var YE;function $0(){return YE||(YE=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=UU();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n})(Tv)),Tv}var Mv={},KE;function qU(){return KE||(KE=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(Mv)),Mv}var GE;function HU(){return GE||(GE=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$0(),n=qU();function r(a){return n.isObjectLike(a)&&t.isArrayLike(a)}e.isArrayLikeObject=r})(Cv)),Cv}var zv={},Dv={},XE;function $U(){return XE||(XE=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=q0();function n(r){return function(a){return t.get(a,r)}}e.property=n})(Dv)),Dv}var Nv={},Pv={},Rv={},Iv={},ZE;function fj(){return ZE||(ZE=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t})(Iv)),Iv}var Lv={},WE;function dj(){return WE||(WE=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t})(Lv)),Lv}var Bv={},QE;function hj(){return QE||(QE=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.isEqualsSameValueZero=t})(Bv)),Bv}var JE;function FU(){return JE||(JE=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fj(),n=dj(),r=hj();function a(m,p,y){return typeof y!="function"?a(m,p,()=>{}):o(m,p,function g(x,w,S,O,C,T){const D=y(x,w,S,O,C,T);return D!==void 0?!!D:o(x,w,g,T)},new Map)}function o(m,p,y,g){if(p===m)return!0;switch(typeof p){case"object":return u(m,p,y,g);case"function":return Object.keys(p).length>0?o(m,{...p},y,g):r.isEqualsSameValueZero(m,p);default:return t.isObject(m)?typeof p=="string"?p==="":!0:r.isEqualsSameValueZero(m,p)}}function u(m,p,y,g){if(p==null)return!0;if(Array.isArray(p))return f(m,p,y,g);if(p instanceof Map)return c(m,p,y,g);if(p instanceof Set)return d(m,p,y,g);const x=Object.keys(p);if(m==null||n.isPrimitive(m))return x.length===0;if(x.length===0)return!0;if(g!=null&&g.has(p))return g.get(p)===m;g==null||g.set(p,m);try{for(let w=0;w<x.length;w++){const S=x[w];if(!n.isPrimitive(m)&&!(S in m)||p[S]===void 0&&m[S]!==void 0||p[S]===null&&m[S]!==null||!y(m[S],p[S],S,m,p,g))return!1}return!0}finally{g==null||g.delete(p)}}function c(m,p,y,g){if(p.size===0)return!0;if(!(m instanceof Map))return!1;for(const[x,w]of p.entries()){const S=m.get(x);if(y(S,w,x,m,p,g)===!1)return!1}return!0}function f(m,p,y,g){if(p.length===0)return!0;if(!Array.isArray(m))return!1;const x=new Set;for(let w=0;w<p.length;w++){const S=p[w];let O=!1;for(let C=0;C<m.length;C++){if(x.has(C))continue;const T=m[C];let D=!1;if(y(T,S,w,m,p,g)&&(D=!0),D){x.add(C),O=!0;break}}if(!O)return!1}return!0}function d(m,p,y,g){return p.size===0?!0:m instanceof Set?f([...m],[...p],y,g):!1}e.isMatchWith=a,e.isSetMatch=d})(Rv)),Rv}var eA;function mj(){return eA||(eA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=FU();function n(r,a){return t.isMatchWith(r,a,()=>{})}e.isMatch=n})(Pv)),Pv}var Uv={},qv={},Hv={},tA;function VU(){return tA||(tA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t})(Hv)),Hv}var $v={},nA;function F0(){return nA||(nA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t})($v)),$v}var Fv={},rA;function pj(){return rA||(rA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",a="[object Boolean]",o="[object Arguments]",u="[object Symbol]",c="[object Date]",f="[object Map]",d="[object Set]",m="[object Array]",p="[object Function]",y="[object ArrayBuffer]",g="[object Object]",x="[object Error]",w="[object DataView]",S="[object Uint8Array]",O="[object Uint8ClampedArray]",C="[object Uint16Array]",T="[object Uint32Array]",D="[object BigUint64Array]",P="[object Int8Array]",k="[object Int16Array]",j="[object Int32Array]",U="[object BigInt64Array]",$="[object Float32Array]",I="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=y,e.arrayTag=m,e.bigInt64ArrayTag=U,e.bigUint64ArrayTag=D,e.booleanTag=a,e.dataViewTag=w,e.dateTag=c,e.errorTag=x,e.float32ArrayTag=$,e.float64ArrayTag=I,e.functionTag=p,e.int16ArrayTag=k,e.int32ArrayTag=j,e.int8ArrayTag=P,e.mapTag=f,e.numberTag=r,e.objectTag=g,e.regexpTag=t,e.setTag=d,e.stringTag=n,e.symbolTag=u,e.uint16ArrayTag=C,e.uint32ArrayTag=T,e.uint8ArrayTag=S,e.uint8ClampedArrayTag=O})(Fv)),Fv}var Vv={},iA;function YU(){return iA||(iA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(Vv)),Vv}var aA;function vj(){return aA||(aA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=VU(),n=F0(),r=pj(),a=dj(),o=YU();function u(m,p){return c(m,void 0,m,new Map,p)}function c(m,p,y,g=new Map,x=void 0){const w=x==null?void 0:x(m,p,y,g);if(w!==void 0)return w;if(a.isPrimitive(m))return m;if(g.has(m))return g.get(m);if(Array.isArray(m)){const S=new Array(m.length);g.set(m,S);for(let O=0;O<m.length;O++)S[O]=c(m[O],O,y,g,x);return Object.hasOwn(m,"index")&&(S.index=m.index),Object.hasOwn(m,"input")&&(S.input=m.input),S}if(m instanceof Date)return new Date(m.getTime());if(m instanceof RegExp){const S=new RegExp(m.source,m.flags);return S.lastIndex=m.lastIndex,S}if(m instanceof Map){const S=new Map;g.set(m,S);for(const[O,C]of m)S.set(O,c(C,O,y,g,x));return S}if(m instanceof Set){const S=new Set;g.set(m,S);for(const O of m)S.add(c(O,void 0,y,g,x));return S}if(typeof Buffer<"u"&&Buffer.isBuffer(m))return m.subarray();if(o.isTypedArray(m)){const S=new(Object.getPrototypeOf(m)).constructor(m.length);g.set(m,S);for(let O=0;O<m.length;O++)S[O]=c(m[O],O,y,g,x);return S}if(m instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&m instanceof SharedArrayBuffer)return m.slice(0);if(m instanceof DataView){const S=new DataView(m.buffer.slice(0),m.byteOffset,m.byteLength);return g.set(m,S),f(S,m,y,g,x),S}if(typeof File<"u"&&m instanceof File){const S=new File([m],m.name,{type:m.type});return g.set(m,S),f(S,m,y,g,x),S}if(typeof Blob<"u"&&m instanceof Blob){const S=new Blob([m],{type:m.type});return g.set(m,S),f(S,m,y,g,x),S}if(m instanceof Error){const S=new m.constructor;return g.set(m,S),S.message=m.message,S.name=m.name,S.stack=m.stack,S.cause=m.cause,f(S,m,y,g,x),S}if(m instanceof Boolean){const S=new Boolean(m.valueOf());return g.set(m,S),f(S,m,y,g,x),S}if(m instanceof Number){const S=new Number(m.valueOf());return g.set(m,S),f(S,m,y,g,x),S}if(m instanceof String){const S=new String(m.valueOf());return g.set(m,S),f(S,m,y,g,x),S}if(typeof m=="object"&&d(m)){const S=Object.create(Object.getPrototypeOf(m));return g.set(m,S),f(S,m,y,g,x),S}return m}function f(m,p,y=m,g,x){const w=[...Object.keys(p),...t.getSymbols(p)];for(let S=0;S<w.length;S++){const O=w[S],C=Object.getOwnPropertyDescriptor(m,O);(C==null||C.writable)&&(m[O]=c(p[O],O,y,g,x))}}function d(m){switch(n.getTag(m)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=u,e.cloneDeepWithImpl=c,e.copyProperties=f})(qv)),qv}var lA;function KU(){return lA||(lA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vj();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n})(Uv)),Uv}var oA;function GU(){return oA||(oA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mj(),n=KU();function r(a){return a=n.cloneDeep(a),o=>t.isMatch(o,a)}e.matches=r})(Nv)),Nv}var Yv={},Kv={},Gv={},uA;function XU(){return uA||(uA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vj(),n=F0(),r=pj();function a(o,u){return t.cloneDeepWith(o,(c,f,d,m)=>{const p=u==null?void 0:u(c,f,d,m);if(p!==void 0)return p;if(typeof o=="object"){if(n.getTag(o)===r.objectTag&&typeof o.constructor!="function"){const y={};return m.set(o,y),t.copyProperties(y,o,d,m),y}switch(Object.prototype.toString.call(o)){case r.numberTag:case r.stringTag:case r.booleanTag:{const y=new o.constructor(o==null?void 0:o.valueOf());return t.copyProperties(y,o),y}case r.argumentsTag:{const y={};return t.copyProperties(y,o),y.length=o.length,y[Symbol.iterator]=o[Symbol.iterator],y}default:return}}})}e.cloneDeepWith=a})(Gv)),Gv}var sA;function ZU(){return sA||(sA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=XU();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n})(Kv)),Kv}var Xv={},Zv={},cA;function yj(){return cA||(cA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,a=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<a;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n})(Zv)),Zv}var Wv={},fA;function WU(){return fA||(fA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=F0();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n})(Wv)),Wv}var dA;function QU(){return dA||(dA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=aj(),n=yj(),r=WU(),a=U0();function o(u,c){let f;if(Array.isArray(c)?f=c:typeof c=="string"&&t.isDeepKey(c)&&(u==null?void 0:u[c])==null?f=a.toPath(c):f=[c],f.length===0)return!1;let d=u;for(let m=0;m<f.length;m++){const p=f[m];if((d==null||!Object.hasOwn(d,p))&&!((Array.isArray(d)||r.isArguments(d))&&n.isIndex(p)&&p<d.length))return!1;d=d[p]}return!0}e.has=o})(Xv)),Xv}var hA;function JU(){return hA||(hA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mj(),n=B0(),r=ZU(),a=q0(),o=QU();function u(c,f){switch(typeof c){case"object":{Object.is(c==null?void 0:c.valueOf(),-0)&&(c="-0");break}case"number":{c=n.toKey(c);break}}return f=r.cloneDeep(f),function(d){const m=a.get(d,c);return m===void 0?o.has(d,c):f===void 0?m===void 0:t.isMatch(m,f)}}e.matchesProperty=u})(Yv)),Yv}var mA;function eq(){return mA||(mA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cj(),n=$U(),r=GU(),a=JU();function o(u){if(u==null)return t.identity;switch(typeof u){case"function":return u;case"object":return Array.isArray(u)&&u.length===2?a.matchesProperty(u[0],u[1]):r.matches(u);case"string":case"symbol":case"number":return n.property(u)}}e.iteratee=o})(zv)),zv}var pA;function tq(){return pA||(pA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=LU(),n=BU(),r=cj(),a=HU(),o=eq();function u(c,f=r.identity){return a.isArrayLikeObject(c)?t.uniqBy(Array.from(c),n.ary(o.iteratee(f),1)):[]}e.uniqBy=u})(Ev)),Ev}var Qv,vA;function nq(){return vA||(vA=1,Qv=tq().uniqBy),Qv}var rq=nq();const yA=Tr(rq);function iq(e,t,n){return t===!0?yA(e,n):typeof t=="function"?yA(e,t):e}var Jv={exports:{}},ey={},ty={exports:{}},ny={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var gA;function aq(){if(gA)return ny;gA=1;var e=Eo();function t(p,y){return p===y&&(p!==0||1/p===1/y)||p!==p&&y!==y}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,o=e.useLayoutEffect,u=e.useDebugValue;function c(p,y){var g=y(),x=r({inst:{value:g,getSnapshot:y}}),w=x[0].inst,S=x[1];return o(function(){w.value=g,w.getSnapshot=y,f(w)&&S({inst:w})},[p,g,y]),a(function(){return f(w)&&S({inst:w}),p(function(){f(w)&&S({inst:w})})},[p]),u(g),g}function f(p){var y=p.getSnapshot;p=p.value;try{var g=y();return!n(p,g)}catch{return!0}}function d(p,y){return y()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:c;return ny.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,ny}var bA;function lq(){return bA||(bA=1,ty.exports=aq()),ty.exports}/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var xA;function oq(){if(xA)return ey;xA=1;var e=Eo(),t=lq();function n(d,m){return d===m&&(d!==0||1/d===1/m)||d!==d&&m!==m}var r=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,o=e.useRef,u=e.useEffect,c=e.useMemo,f=e.useDebugValue;return ey.useSyncExternalStoreWithSelector=function(d,m,p,y,g){var x=o(null);if(x.current===null){var w={hasValue:!1,value:null};x.current=w}else w=x.current;x=c(function(){function O(k){if(!C){if(C=!0,T=k,k=y(k),g!==void 0&&w.hasValue){var j=w.value;if(g(j,k))return D=j}return D=k}if(j=D,r(T,k))return j;var U=y(k);return g!==void 0&&g(j,U)?(T=k,j):(T=k,D=U)}var C=!1,T,D,P=p===void 0?null:p;return[function(){return O(m())},P===null?void 0:function(){return O(P())}]},[m,p,y,g]);var S=a(d,x[0],x[1]);return u(function(){w.hasValue=!0,w.value=S},[S]),f(S),S},ey}var wA;function uq(){return wA||(wA=1,Jv.exports=oq()),Jv.exports}var sq=uq(),V0=E.createContext(null),cq=e=>e,wt=()=>{var e=E.useContext(V0);return e?e.store.dispatch:cq},kf=()=>{},fq=()=>kf,dq=(e,t)=>e===t;function Ee(e){var t=E.useContext(V0),n=E.useMemo(()=>t?r=>{if(r!=null)return e(r)}:kf,[t,e]);return sq.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:fq,t?t.store.getState:kf,t?t.store.getState:kf,n,dq)}function hq(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function mq(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function pq(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var SA=e=>Array.isArray(e)?e:[e];function vq(e){const t=Array.isArray(e[0])?e[0]:e;return pq(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function yq(e,t){const n=[],{length:r}=e;for(let a=0;a<r;a++)n.push(e[a].apply(null,t));return n}var gq=class{constructor(e){this.value=e}deref(){return this.value}},bq=typeof WeakRef<"u"?WeakRef:gq,xq=0,OA=1;function sf(){return{s:xq,v:void 0,o:null,p:null}}function gj(e,t={}){let n=sf();const{resultEqualityCheck:r}=t;let a,o=0;function u(){var p;let c=n;const{length:f}=arguments;for(let y=0,g=f;y<g;y++){const x=arguments[y];if(typeof x=="function"||typeof x=="object"&&x!==null){let w=c.o;w===null&&(c.o=w=new WeakMap);const S=w.get(x);S===void 0?(c=sf(),w.set(x,c)):c=S}else{let w=c.p;w===null&&(c.p=w=new Map);const S=w.get(x);S===void 0?(c=sf(),w.set(x,c)):c=S}}const d=c;let m;if(c.s===OA)m=c.v;else if(m=e.apply(null,arguments),o++,r){const y=((p=a==null?void 0:a.deref)==null?void 0:p.call(a))??a;y!=null&&r(y,m)&&(m=y,o!==0&&o--),a=typeof m=="object"&&m!==null||typeof m=="function"?new bq(m):m}return d.s=OA,d.v=m,m}return u.clearCache=()=>{n=sf(),u.resetResultsCount()},u.resultsCount=()=>o,u.resetResultsCount=()=>{o=0},u}function wq(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...a)=>{let o=0,u=0,c,f={},d=a.pop();typeof d=="object"&&(f=d,d=a.pop()),hq(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const m={...n,...f},{memoize:p,memoizeOptions:y=[],argsMemoize:g=gj,argsMemoizeOptions:x=[]}=m,w=SA(y),S=SA(x),O=vq(a),C=p(function(){return o++,d.apply(null,arguments)},...w),T=g(function(){u++;const P=yq(O,arguments);return c=C.apply(null,P),c},...S);return Object.assign(T,{resultFunc:d,memoizedResultFunc:C,dependencies:O,dependencyRecomputations:()=>u,resetDependencyRecomputations:()=>{u=0},lastResult:()=>c,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:p,argsMemoize:g})};return Object.assign(r,{withTypes:()=>r}),r}var ee=wq(gj),Sq=Object.assign((e,t=ee)=>{mq(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((u,c,f)=>(u[n[f]]=c,u),{}))},{withTypes:()=>Sq}),ry={},iy={},ay={},EA;function Oq(){return EA||(EA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}const n=(r,a,o)=>{if(r!==a){const u=t(r),c=t(a);if(u===c&&u===0){if(r<a)return o==="desc"?1:-1;if(r>a)return o==="desc"?-1:1}return o==="desc"?c-u:u-c}return 0};e.compareValues=n})(ay)),ay}var ly={},oy={},AA;function bj(){return AA||(AA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t})(oy)),oy}var kA;function Eq(){return kA||(kA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bj(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function a(o,u){return Array.isArray(o)?!1:typeof o=="number"||typeof o=="boolean"||o==null||t.isSymbol(o)?!0:typeof o=="string"&&(r.test(o)||!n.test(o))||u!=null&&Object.hasOwn(u,o)}e.isKey=a})(ly)),ly}var _A;function Aq(){return _A||(_A=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Oq(),n=Eq(),r=U0();function a(o,u,c,f){if(o==null)return[];c=f?void 0:c,Array.isArray(o)||(o=Object.values(o)),Array.isArray(u)||(u=u==null?[null]:[u]),u.length===0&&(u=[null]),Array.isArray(c)||(c=c==null?[]:[c]),c=c.map(g=>String(g));const d=(g,x)=>{let w=g;for(let S=0;S<x.length&&w!=null;++S)w=w[x[S]];return w},m=(g,x)=>x==null||g==null?x:typeof g=="object"&&"key"in g?Object.hasOwn(x,g.key)?x[g.key]:d(x,g.path):typeof g=="function"?g(x):Array.isArray(g)?d(x,g):typeof x=="object"?x[g]:x,p=u.map(g=>(Array.isArray(g)&&g.length===1&&(g=g[0]),g==null||typeof g=="function"||Array.isArray(g)||n.isKey(g)?g:{key:g,path:r.toPath(g)}));return o.map(g=>({original:g,criteria:p.map(x=>m(x,g))})).slice().sort((g,x)=>{for(let w=0;w<p.length;w++){const S=t.compareValues(g.criteria[w],x.criteria[w],c[w]);if(S!==0)return S}return 0}).map(g=>g.original)}e.orderBy=a})(iy)),iy}var uy={},CA;function kq(){return CA||(CA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const a=[],o=Math.floor(r),u=(c,f)=>{for(let d=0;d<c.length;d++){const m=c[d];Array.isArray(m)&&f<o?u(m,f+1):a.push(m)}};return u(n,0),a}e.flatten=t})(uy)),uy}var sy={},TA;function xj(){return TA||(TA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yj(),n=$0(),r=fj(),a=hj();function o(u,c,f){return r.isObject(f)&&(typeof c=="number"&&n.isArrayLike(f)&&t.isIndex(c)&&c<f.length||typeof c=="string"&&c in f)?a.isEqualsSameValueZero(f[c],u):!1}e.isIterateeCall=o})(sy)),sy}var jA;function _q(){return jA||(jA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Aq(),n=kq(),r=xj();function a(o,...u){const c=u.length;return c>1&&r.isIterateeCall(o,u[0],u[1])?u=[]:c>2&&r.isIterateeCall(u[0],u[1],u[2])&&(u=[u[0]]),t.orderBy(o,n.flatten(u),["asc"])}e.sortBy=a})(ry)),ry}var cy,MA;function Cq(){return MA||(MA=1,cy=_q().sortBy),cy}var Tq=Cq();const Bd=Tr(Tq);var wj=e=>e.legend.settings,jq=e=>e.legend.size,Mq=e=>e.legend.payload;ee([Mq,wj],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?Bd(r,n):r});var cf=1;function zq(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=E.useState({height:0,left:0,top:0,width:0}),r=E.useCallback(a=>{if(a!=null){var o=a.getBoundingClientRect(),u={height:o.height,left:o.left,top:o.top,width:o.width};(Math.abs(u.height-t.height)>cf||Math.abs(u.left-t.left)>cf||Math.abs(u.top-t.top)>cf||Math.abs(u.width-t.width)>cf)&&n({height:u.height,left:u.left,top:u.top,width:u.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,r]}function Wt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Dq=typeof Symbol=="function"&&Symbol.observable||"@@observable",zA=Dq,fy=()=>Math.random().toString(36).substring(7).split("").join("."),Nq={INIT:`@@redux/INIT${fy()}`,REPLACE:`@@redux/REPLACE${fy()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${fy()}`},qf=Nq;function Y0(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Sj(e,t,n){if(typeof e!="function")throw new Error(Wt(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Wt(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Wt(1));return n(Sj)(e,t)}let r=e,a=t,o=new Map,u=o,c=0,f=!1;function d(){u===o&&(u=new Map,o.forEach((S,O)=>{u.set(O,S)}))}function m(){if(f)throw new Error(Wt(3));return a}function p(S){if(typeof S!="function")throw new Error(Wt(4));if(f)throw new Error(Wt(5));let O=!0;d();const C=c++;return u.set(C,S),function(){if(O){if(f)throw new Error(Wt(6));O=!1,d(),u.delete(C),o=null}}}function y(S){if(!Y0(S))throw new Error(Wt(7));if(typeof S.type>"u")throw new Error(Wt(8));if(typeof S.type!="string")throw new Error(Wt(17));if(f)throw new Error(Wt(9));try{f=!0,a=r(a,S)}finally{f=!1}return(o=u).forEach(C=>{C()}),S}function g(S){if(typeof S!="function")throw new Error(Wt(10));r=S,y({type:qf.REPLACE})}function x(){const S=p;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(Wt(11));function C(){const D=O;D.next&&D.next(m())}return C(),{unsubscribe:S(C)}},[zA](){return this}}}return y({type:qf.INIT}),{dispatch:y,subscribe:p,getState:m,replaceReducer:g,[zA]:x}}function Pq(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:qf.INIT})>"u")throw new Error(Wt(12));if(typeof n(void 0,{type:qf.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Wt(13))})}function Oj(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const u=t[o];typeof e[u]=="function"&&(n[u]=e[u])}const r=Object.keys(n);let a;try{Pq(n)}catch(o){a=o}return function(u={},c){if(a)throw a;let f=!1;const d={};for(let m=0;m<r.length;m++){const p=r[m],y=n[p],g=u[p],x=y(g,c);if(typeof x>"u")throw c&&c.type,new Error(Wt(14));d[p]=x,f=f||x!==g}return f=f||r.length!==Object.keys(u).length,f?d:u}}function Hf(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Rq(...e){return t=>(n,r)=>{const a=t(n,r);let o=()=>{throw new Error(Wt(15))};const u={getState:a.getState,dispatch:(f,...d)=>o(f,...d)},c=e.map(f=>f(u));return o=Hf(...c)(a.dispatch),{...a,dispatch:o}}}function Ej(e){return Y0(e)&&"type"in e&&typeof e.type=="string"}var Aj=Symbol.for("immer-nothing"),DA=Symbol.for("immer-draftable"),pn=Symbol.for("immer-state");function Sr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var $n=Object,vo=$n.getPrototypeOf,$f="constructor",Ud="prototype",yg="configurable",Ff="enumerable",_f="writable",rs="value",wi=e=>!!e&&!!e[pn];function Cr(e){var t;return e?kj(e)||Hd(e)||!!e[DA]||!!((t=e[$f])!=null&&t[DA])||$d(e)||Fd(e):!1}var Iq=$n[Ud][$f].toString(),NA=new WeakMap;function kj(e){if(!e||!K0(e))return!1;const t=vo(e);if(t===null||t===$n[Ud])return!0;const n=$n.hasOwnProperty.call(t,$f)&&t[$f];if(n===Object)return!0;if(!ao(n))return!1;let r=NA.get(n);return r===void 0&&(r=Function.toString.call(n),NA.set(n,r)),r===Iq}function qd(e,t,n=!0){Ss(e)===0?(n?Reflect.ownKeys(e):$n.keys(e)).forEach(a=>{t(a,e[a],e)}):e.forEach((r,a)=>t(a,r,e))}function Ss(e){const t=e[pn];return t?t.type_:Hd(e)?1:$d(e)?2:Fd(e)?3:0}var PA=(e,t,n=Ss(e))=>n===2?e.has(t):$n[Ud].hasOwnProperty.call(e,t),gg=(e,t,n=Ss(e))=>n===2?e.get(t):e[t],Vf=(e,t,n,r=Ss(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Lq(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Hd=Array.isArray,$d=e=>e instanceof Map,Fd=e=>e instanceof Set,K0=e=>typeof e=="object",ao=e=>typeof e=="function",dy=e=>typeof e=="boolean";function Bq(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var hi=e=>e.copy_||e.base_,G0=e=>e.modified_?e.copy_:e.base_;function bg(e,t){if($d(e))return new Map(e);if(Fd(e))return new Set(e);if(Hd(e))return Array[Ud].slice.call(e);const n=kj(e);if(t===!0||t==="class_only"&&!n){const r=$n.getOwnPropertyDescriptors(e);delete r[pn];let a=Reflect.ownKeys(r);for(let o=0;o<a.length;o++){const u=a[o],c=r[u];c[_f]===!1&&(c[_f]=!0,c[yg]=!0),(c.get||c.set)&&(r[u]={[yg]:!0,[_f]:!0,[Ff]:c[Ff],[rs]:e[u]})}return $n.create(vo(e),r)}else{const r=vo(e);if(r!==null&&n)return{...e};const a=$n.create(r);return $n.assign(a,e)}}function X0(e,t=!1){return Vd(e)||wi(e)||!Cr(e)||(Ss(e)>1&&$n.defineProperties(e,{set:ff,add:ff,clear:ff,delete:ff}),$n.freeze(e),t&&qd(e,(n,r)=>{X0(r,!0)},!1)),e}function Uq(){Sr(2)}var ff={[rs]:Uq};function Vd(e){return e===null||!K0(e)?!0:$n.isFrozen(e)}var Yf="MapSet",xg="Patches",RA="ArrayMethods",_j={};function el(e){const t=_j[e];return t||Sr(0,e),t}var IA=e=>!!_j[e],is,Cj=()=>is,qq=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:IA(Yf)?el(Yf):void 0,arrayMethodsPlugin_:IA(RA)?el(RA):void 0});function LA(e,t){t&&(e.patchPlugin_=el(xg),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function wg(e){Sg(e),e.drafts_.forEach(Hq),e.drafts_=null}function Sg(e){e===is&&(is=e.parent_)}var BA=e=>is=qq(is,e);function Hq(e){const t=e[pn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function UA(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[pn].modified_&&(wg(t),Sr(4)),Cr(e)&&(e=qA(t,e));const{patchPlugin_:a}=t;a&&a.generateReplacementPatches_(n[pn].base_,e,t)}else e=qA(t,n);return $q(t,e,!0),wg(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Aj?e:void 0}function qA(e,t){if(Vd(t))return t;const n=t[pn];if(!n)return Kf(t,e.handledSet_,e);if(!Yd(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);Mj(n,e)}return n.copy_}function $q(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&X0(t,n)}function Tj(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Yd=(e,t)=>e.scope_===t,Fq=[];function jj(e,t,n,r){const a=hi(e),o=e.type_;if(r!==void 0&&gg(a,r,o)===t){Vf(a,r,n,o);return}if(!e.draftLocations_){const c=e.draftLocations_=new Map;qd(a,(f,d)=>{if(wi(d)){const m=c.get(d)||[];m.push(f),c.set(d,m)}})}const u=e.draftLocations_.get(t)??Fq;for(const c of u)Vf(a,c,n,o)}function Vq(e,t,n){e.callbacks_.push(function(a){var c;const o=t;if(!o||!Yd(o,a))return;(c=a.mapSetPlugin_)==null||c.fixSetContents(o);const u=G0(o);jj(e,o.draft_??o,u,n),Mj(o,a)})}function Mj(e,t){var r;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((r=e.assigned_)==null?void 0:r.size)??0)>0)){const{patchPlugin_:a}=t;if(a){const o=a.getPath(e);o&&a.generatePatches_(e,o,t)}Tj(e)}}function Yq(e,t,n){const{scope_:r}=e;if(wi(n)){const a=n[pn];Yd(a,r)&&a.callbacks_.push(function(){Cf(e);const u=G0(a);jj(e,n,u,t)})}else Cr(n)&&e.callbacks_.push(function(){const o=hi(e);e.type_===3?o.has(n)&&Kf(n,r.handledSet_,r):gg(o,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Kf(gg(e.copy_,t,e.type_),r.handledSet_,r)})}function Kf(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||wi(e)||t.has(e)||!Cr(e)||Vd(e)||(t.add(e),qd(e,(r,a)=>{if(wi(a)){const o=a[pn];if(Yd(o,n)){const u=G0(o);Vf(e,r,u,e.type_),Tj(o)}}else Cr(a)&&Kf(a,t,n)})),e}function Kq(e,t){const n=Hd(e),r={type_:n?1:0,scope_:t?t.scope_:Cj(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let a=r,o=Gf;n&&(a=[r],o=as);const{revoke:u,proxy:c}=Proxy.revocable(a,o);return r.draft_=c,r.revoke_=u,[c,r]}var Gf={get(e,t){if(t===pn)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n!=null&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const a=hi(e);if(!PA(a,t,e.type_))return Gq(e,a,t);const o=a[t];if(e.finalized_||!Cr(o)||r&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&Bq(t))return o;if(o===hy(e.base_,t)){Cf(e);const u=e.type_===1?+t:t,c=Eg(e.scope_,o,e,u);return e.copy_[u]=c}return o},has(e,t){return t in hi(e)},ownKeys(e){return Reflect.ownKeys(hi(e))},set(e,t,n){const r=zj(hi(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const a=hy(hi(e),t),o=a==null?void 0:a[pn];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Lq(n,a)&&(n!==void 0||PA(e.base_,t,e.type_)))return!0;Cf(e),Og(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),Yq(e,t,n)),!0},deleteProperty(e,t){return Cf(e),hy(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Og(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=hi(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[_f]:!0,[yg]:e.type_!==1||t!=="length",[Ff]:r[Ff],[rs]:n[t]}},defineProperty(){Sr(11)},getPrototypeOf(e){return vo(e.base_)},setPrototypeOf(){Sr(12)}},as={};for(let e in Gf){let t=Gf[e];as[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}as.deleteProperty=function(e,t){return as.set.call(this,e,t,void 0)};as.set=function(e,t,n){return Gf.set.call(this,e[0],t,n,e[0])};function hy(e,t){const n=e[pn];return(n?hi(n):e)[t]}function Gq(e,t,n){var a;const r=zj(t,n);return r?rs in r?r[rs]:(a=r.get)==null?void 0:a.call(e.draft_):void 0}function zj(e,t){if(!(t in e))return;let n=vo(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=vo(n)}}function Og(e){e.modified_||(e.modified_=!0,e.parent_&&Og(e.parent_))}function Cf(e){e.copy_||(e.assigned_=new Map,e.copy_=bg(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Xq=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(n,r,a)=>{if(ao(n)&&!ao(r)){const u=r;r=n;const c=this;return function(d=u,...m){return c.produce(d,p=>r.call(this,p,...m))}}ao(r)||Sr(6),a!==void 0&&!ao(a)&&Sr(7);let o;if(Cr(n)){const u=BA(this),c=Eg(u,n,void 0);let f=!0;try{o=r(c),f=!1}finally{f?wg(u):Sg(u)}return LA(u,a),UA(o,u)}else if(!n||!K0(n)){if(o=r(n),o===void 0&&(o=n),o===Aj&&(o=void 0),this.autoFreeze_&&X0(o,!0),a){const u=[],c=[];el(xg).generateReplacementPatches_(n,o,{patches_:u,inversePatches_:c}),a(u,c)}return o}else Sr(1,n)},this.produceWithPatches=(n,r)=>{if(ao(n))return(c,...f)=>this.produceWithPatches(c,d=>n(d,...f));let a,o;return[this.produce(n,r,(c,f)=>{a=c,o=f}),a,o]},dy(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),dy(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),dy(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Cr(t)||Sr(8),wi(t)&&(t=kr(t));const n=BA(this),r=Eg(n,t,void 0);return r[pn].isManual_=!0,Sg(n),r}finishDraft(t,n){const r=t&&t[pn];(!r||!r.isManual_)&&Sr(9);const{scope_:a}=r;return LA(a,n),UA(void 0,a)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,n){let r;for(r=n.length-1;r>=0;r--){const o=n[r];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}r>-1&&(n=n.slice(r+1));const a=el(xg).applyPatches_;return wi(t)?a(t,n):this.produce(t,o=>a(o,n))}};function Eg(e,t,n,r){const[a,o]=$d(t)?el(Yf).proxyMap_(t,n):Fd(t)?el(Yf).proxySet_(t,n):Kq(t,n);return((n==null?void 0:n.scope_)??Cj()).drafts_.push(a),o.callbacks_=(n==null?void 0:n.callbacks_)??[],o.key_=r,n&&r!==void 0?Vq(n,o,r):o.callbacks_.push(function(f){var m;(m=f.mapSetPlugin_)==null||m.fixSetContents(o);const{patchPlugin_:d}=f;o.modified_&&d&&d.generatePatches_(o,[],f)}),a}function kr(e){return wi(e)||Sr(10,e),Dj(e)}function Dj(e){if(!Cr(e)||Vd(e))return e;const t=e[pn];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=bg(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=bg(e,!0);return qd(n,(a,o)=>{Vf(n,a,Dj(o))},r),t&&(t.finalized_=!1),n}var Zq=new Xq,Nj=Zq.produce;function Pj(e){return({dispatch:n,getState:r})=>a=>o=>typeof o=="function"?o(n,r,e):a(o)}var Wq=Pj(),Qq=Pj,Jq=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Hf:Hf.apply(null,arguments)};function mr(e,t){function n(...r){if(t){let a=t(...r);if(!a)throw new Error(Vn(0));return{type:e,payload:a.payload,..."meta"in a&&{meta:a.meta},..."error"in a&&{error:a.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Ej(r)&&r.type===e,n}var Rj=class Ku extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ku.prototype)}static get[Symbol.species](){return Ku}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ku(...t[0].concat(this)):new Ku(...t.concat(this))}};function HA(e){return Cr(e)?Nj(e,()=>{}):e}function df(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function eH(e){return typeof e=="boolean"}var tH=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:a=!0,actionCreatorCheck:o=!0}=t??{};let u=new Rj;return n&&(eH(n)?u.push(Wq):u.push(Qq(n.extraArgument))),u},Ij="RTK_autoBatch",ht=()=>e=>({payload:e,meta:{[Ij]:!0}}),$A=e=>t=>{setTimeout(t,e)},Lj=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let a=!0,o=!1,u=!1;const c=new Set,f=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:$A(10):e.type==="callback"?e.queueNotification:$A(e.timeout),d=()=>{u=!1,o&&(o=!1,c.forEach(m=>m()))};return Object.assign({},r,{subscribe(m){const p=()=>a&&m(),y=r.subscribe(p);return c.add(m),()=>{y(),c.delete(m)}},dispatch(m){var p;try{return a=!((p=m==null?void 0:m.meta)!=null&&p[Ij]),o=!a,o&&(u||(u=!0,f(d))),r.dispatch(m)}finally{a=!0}}})},nH=e=>function(n){const{autoBatch:r=!0}=n??{};let a=new Rj(e);return r&&a.push(Lj(typeof r=="object"?r:void 0)),a};function rH(e){const t=tH(),{reducer:n=void 0,middleware:r,devTools:a=!0,preloadedState:o=void 0,enhancers:u=void 0}=e||{};let c;if(typeof n=="function")c=n;else if(Y0(n))c=Oj(n);else throw new Error(Vn(1));let f;typeof r=="function"?f=r(t):f=t();let d=Hf;a&&(d=Jq({trace:!1,...typeof a=="object"&&a}));const m=Rq(...f),p=nH(m);let y=typeof u=="function"?u(p):p();const g=d(...y);return Sj(c,o,g)}function Bj(e){const t={},n=[];let r;const a={addCase(o,u){const c=typeof o=="string"?o:o.type;if(!c)throw new Error(Vn(28));if(c in t)throw new Error(Vn(29));return t[c]=u,a},addAsyncThunk(o,u){return u.pending&&(t[o.pending.type]=u.pending),u.rejected&&(t[o.rejected.type]=u.rejected),u.fulfilled&&(t[o.fulfilled.type]=u.fulfilled),u.settled&&n.push({matcher:o.settled,reducer:u.settled}),a},addMatcher(o,u){return n.push({matcher:o,reducer:u}),a},addDefaultCase(o){return r=o,a}};return e(a),[t,n,r]}function iH(e){return typeof e=="function"}function aH(e,t){let[n,r,a]=Bj(t),o;if(iH(e))o=()=>HA(e());else{const c=HA(e);o=()=>c}function u(c=o(),f){let d=[n[f.type],...r.filter(({matcher:m})=>m(f)).map(({reducer:m})=>m)];return d.filter(m=>!!m).length===0&&(d=[a]),d.reduce((m,p)=>{if(p)if(wi(m)){const g=p(m,f);return g===void 0?m:g}else{if(Cr(m))return Nj(m,y=>p(y,f));{const y=p(m,f);if(y===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}}return m},c)}return u.getInitialState=o,u}var lH="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",oH=(e=21)=>{let t="",n=e;for(;n--;)t+=lH[Math.random()*64|0];return t},uH=Symbol.for("rtk-slice-createasyncthunk");function sH(e,t){return`${e}/${t}`}function cH({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[uH];return function(a){const{name:o,reducerPath:u=o}=a;if(!o)throw new Error(Vn(11));const c=(typeof a.reducers=="function"?a.reducers(dH()):a.reducers)||{},f=Object.keys(c),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},m={addCase(D,P){const k=typeof D=="string"?D:D.type;if(!k)throw new Error(Vn(12));if(k in d.sliceCaseReducersByType)throw new Error(Vn(13));return d.sliceCaseReducersByType[k]=P,m},addMatcher(D,P){return d.sliceMatchers.push({matcher:D,reducer:P}),m},exposeAction(D,P){return d.actionCreators[D]=P,m},exposeCaseReducer(D,P){return d.sliceCaseReducersByName[D]=P,m}};f.forEach(D=>{const P=c[D],k={reducerName:D,type:sH(o,D),createNotation:typeof a.reducers=="function"};mH(P)?vH(k,P,m,t):hH(k,P,m)});function p(){const[D={},P=[],k=void 0]=typeof a.extraReducers=="function"?Bj(a.extraReducers):[a.extraReducers],j={...D,...d.sliceCaseReducersByType};return aH(a.initialState,U=>{for(let $ in j)U.addCase($,j[$]);for(let $ of d.sliceMatchers)U.addMatcher($.matcher,$.reducer);for(let $ of P)U.addMatcher($.matcher,$.reducer);k&&U.addDefaultCase(k)})}const y=D=>D,g=new Map,x=new WeakMap;let w;function S(D,P){return w||(w=p()),w(D,P)}function O(){return w||(w=p()),w.getInitialState()}function C(D,P=!1){function k(U){let $=U[D];return typeof $>"u"&&P&&($=df(x,k,O)),$}function j(U=y){const $=df(g,P,()=>new WeakMap);return df($,U,()=>{const I={};for(const[Z,q]of Object.entries(a.selectors??{}))I[Z]=fH(q,U,()=>df(x,U,O),P);return I})}return{reducerPath:D,getSelectors:j,get selectors(){return j(k)},selectSlice:k}}const T={name:o,reducer:S,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:O,...C(u),injectInto(D,{reducerPath:P,...k}={}){const j=P??u;return D.inject({reducerPath:j,reducer:S},k),{...T,...C(j,!0)}}};return T}}function fH(e,t,n,r){function a(o,...u){let c=t(o);return typeof c>"u"&&r&&(c=n()),e(c,...u)}return a.unwrapped=e,a}var jn=cH();function dH(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function hH({type:e,reducerName:t,createNotation:n},r,a){let o,u;if("reducer"in r){if(n&&!pH(r))throw new Error(Vn(17));o=r.reducer,u=r.prepare}else o=r;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,u?mr(e,u):mr(e))}function mH(e){return e._reducerDefinitionType==="asyncThunk"}function pH(e){return e._reducerDefinitionType==="reducerWithPrepare"}function vH({type:e,reducerName:t},n,r,a){if(!a)throw new Error(Vn(18));const{payloadCreator:o,fulfilled:u,pending:c,rejected:f,settled:d,options:m}=n,p=a(e,o,m);r.exposeAction(t,p),u&&r.addCase(p.fulfilled,u),c&&r.addCase(p.pending,c),f&&r.addCase(p.rejected,f),d&&r.addMatcher(p.settled,d),r.exposeCaseReducer(t,{fulfilled:u||hf,pending:c||hf,rejected:f||hf,settled:d||hf})}function hf(){}var yH="task",Uj="listener",qj="completed",Z0="cancelled",gH=`task-${Z0}`,bH=`task-${qj}`,Ag=`${Uj}-${Z0}`,xH=`${Uj}-${qj}`,Kd=class{constructor(e){Lp(this,"name","TaskAbortError");Lp(this,"message");this.code=e,this.message=`${yH} ${Z0} (reason: ${e})`}},W0=(e,t)=>{if(typeof e!="function")throw new TypeError(Vn(32))},Xf=()=>{},Hj=(e,t=Xf)=>(e.catch(t),e),$j=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Ga=e=>{if(e.aborted)throw new Kd(e.reason)};function Fj(e,t){let n=Xf;return new Promise((r,a)=>{const o=()=>a(new Kd(e.reason));if(e.aborted){o();return}n=$j(e,o),t.finally(()=>n()).then(r,a)}).finally(()=>{n=Xf})}var wH=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof Kd?"cancelled":"rejected",error:n}}finally{t==null||t()}},Zf=e=>t=>Hj(Fj(e,t).then(n=>(Ga(e),n))),Vj=e=>{const t=Zf(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:co}=Object,FA={},Gd="listenerMiddleware",SH=(e,t)=>{const n=r=>$j(e,()=>r.abort(e.reason));return(r,a)=>{W0(r);const o=new AbortController;n(o);const u=wH(async()=>{Ga(e),Ga(o.signal);const c=await r({pause:Zf(o.signal),delay:Vj(o.signal),signal:o.signal});return Ga(o.signal),c},()=>o.abort(bH));return a!=null&&a.autoJoin&&t.push(u.catch(Xf)),{result:Zf(e)(u),cancel(){o.abort(gH)}}}},OH=(e,t)=>{const n=async(r,a)=>{Ga(t);let o=()=>{};const c=[new Promise((f,d)=>{let m=e({predicate:r,effect:(p,y)=>{y.unsubscribe(),f([p,y.getState(),y.getOriginalState()])}});o=()=>{m(),d()}})];a!=null&&c.push(new Promise(f=>setTimeout(f,a,null)));try{const f=await Fj(t,Promise.race(c));return Ga(t),f}finally{o()}};return(r,a)=>Hj(n(r,a))},Yj=e=>{let{type:t,actionCreator:n,matcher:r,predicate:a,effect:o}=e;if(t)a=mr(t).match;else if(n)t=n.type,a=n.match;else if(r)a=r;else if(!a)throw new Error(Vn(21));return W0(o),{predicate:a,type:t,effect:o}},Kj=co(e=>{const{type:t,predicate:n,effect:r}=Yj(e);return{id:oH(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Vn(22))}}},{withTypes:()=>Kj}),VA=(e,t)=>{const{type:n,effect:r,predicate:a}=Yj(t);return Array.from(e.values()).find(o=>(typeof n=="string"?o.type===n:o.predicate===a)&&o.effect===r)},kg=e=>{e.pending.forEach(t=>{t.abort(Ag)})},EH=(e,t)=>()=>{for(const n of t.keys())kg(n);e.clear()},YA=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},Gj=co(mr(`${Gd}/add`),{withTypes:()=>Gj}),AH=mr(`${Gd}/removeAll`),Xj=co(mr(`${Gd}/remove`),{withTypes:()=>Xj}),kH=(...e)=>{console.error(`${Gd}/error`,...e)},Os=(e={})=>{const t=new Map,n=new Map,r=g=>{const x=n.get(g)??0;n.set(g,x+1)},a=g=>{const x=n.get(g)??1;x===1?n.delete(g):n.set(g,x-1)},{extra:o,onError:u=kH}=e;W0(u);const c=g=>(g.unsubscribe=()=>t.delete(g.id),t.set(g.id,g),x=>{g.unsubscribe(),x!=null&&x.cancelActive&&kg(g)}),f=g=>{const x=VA(t,g)??Kj(g);return c(x)};co(f,{withTypes:()=>f});const d=g=>{const x=VA(t,g);return x&&(x.unsubscribe(),g.cancelActive&&kg(x)),!!x};co(d,{withTypes:()=>d});const m=async(g,x,w,S)=>{const O=new AbortController,C=OH(f,O.signal),T=[];try{g.pending.add(O),r(g),await Promise.resolve(g.effect(x,co({},w,{getOriginalState:S,condition:(D,P)=>C(D,P).then(Boolean),take:C,delay:Vj(O.signal),pause:Zf(O.signal),extra:o,signal:O.signal,fork:SH(O.signal,T),unsubscribe:g.unsubscribe,subscribe:()=>{t.set(g.id,g)},cancelActiveListeners:()=>{g.pending.forEach((D,P,k)=>{D!==O&&(D.abort(Ag),k.delete(D))})},cancel:()=>{O.abort(Ag),g.pending.delete(O)},throwIfCancelled:()=>{Ga(O.signal)}})))}catch(D){D instanceof Kd||YA(u,D,{raisedBy:"effect"})}finally{await Promise.all(T),O.abort(xH),a(g),g.pending.delete(O)}},p=EH(t,n);return{middleware:g=>x=>w=>{if(!Ej(w))return x(w);if(Gj.match(w))return f(w.payload);if(AH.match(w)){p();return}if(Xj.match(w))return d(w.payload);let S=g.getState();const O=()=>{if(S===FA)throw new Error(Vn(23));return S};let C;try{if(C=x(w),t.size>0){const T=g.getState(),D=Array.from(t.values());for(const P of D){let k=!1;try{k=P.predicate(w,T,S)}catch(j){k=!1,YA(u,j,{raisedBy:"predicate"})}k&&m(P,w,g,O)}}}finally{S=FA}return C},startListening:f,stopListening:d,clearListeners:p}};function Vn(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var _H={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Zj=jn({name:"chartLayout",initialState:_H,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var n,r,a,o;e.margin.top=(n=t.payload.top)!==null&&n!==void 0?n:0,e.margin.right=(r=t.payload.right)!==null&&r!==void 0?r:0,e.margin.bottom=(a=t.payload.bottom)!==null&&a!==void 0?a:0,e.margin.left=(o=t.payload.left)!==null&&o!==void 0?o:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:CH,setLayout:TH,setChartSize:jH,setScale:MH}=Zj.actions,zH=Zj.reducer;function Wj(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function qe(e){return Number.isFinite(e)}function Vr(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function KA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function lo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KA(Object(n),!0).forEach(function(r){DH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DH(e,t,n){return(t=NH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NH(e){var t=PH(e,"string");return typeof t=="symbol"?t:t+""}function PH(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tn(e,t,n){return qt(e)||qt(t)?n:Fr(t)?po(e,t,n):typeof t=="function"?t(e):n}var RH=(e,t,n)=>{if(t&&n){var{width:r,height:a}=n,{align:o,verticalAlign:u,layout:c}=t;if((c==="vertical"||c==="horizontal"&&u==="middle")&&o!=="center"&&we(e[o]))return lo(lo({},e),{},{[o]:e[o]+(r||0)});if((c==="horizontal"||c==="vertical"&&o==="center")&&u!=="middle"&&we(e[u]))return lo(lo({},e),{},{[u]:e[u]+(a||0)})}return e},va=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",Qj=(e,t,n,r)=>{if(r)return e.map(c=>c.coordinate);var a,o,u=e.map(c=>(c.coordinate===t&&(a=!0),c.coordinate===n&&(o=!0),c.coordinate));return a||u.push(t),o||u.push(n),u},Jj=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:a,range:o,scale:u,realScaleType:c,isCategorical:f,categoricalDomain:d,tickCount:m,ticks:p,niceTicks:y,axisType:g}=e;if(!u)return null;var x=c==="scaleBand"&&u.bandwidth?u.bandwidth()/2:2,w=a==="category"&&u.bandwidth?u.bandwidth()/x:0;if(w=g==="angleAxis"&&o&&o.length>=2?kn(o[0]-o[1])*2*w:w,p||y){var S=(p||y||[]).map((O,C)=>{var T=r?r.indexOf(O):O,D=u.map(T);return qe(D)?{coordinate:D+w,value:O,offset:w,index:C}:null}).filter(_n);return S}return f&&d?d.map((O,C)=>{var T=u.map(O);return qe(T)?{coordinate:T+w,value:O,index:C,offset:w}:null}).filter(_n):u.ticks&&m!=null?u.ticks(m).map((O,C)=>{var T=u.map(O);return qe(T)?{coordinate:T+w,value:O,index:C,offset:w}:null}).filter(_n):u.domain().map((O,C)=>{var T=u.map(O);return qe(T)?{coordinate:T+w,value:r?r[O]:O,index:C,offset:w}:null}).filter(_n)},IH=(e,t)=>{if(!t||t.length!==2||!we(t[0])||!we(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),a=[e[0],e[1]];return(!we(e[0])||e[0]<n)&&(a[0]=n),(!we(e[1])||e[1]>r)&&(a[1]=r),a[0]>r&&(a[0]=r),a[1]<n&&(a[1]=n),a},LH=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var a=0;a<r;++a)for(var o=0,u=0,c=0;c<n;++c){var f=e[c],d=f==null?void 0:f[a];if(d!=null){var m=d[1],p=d[0],y=$r(m)?p:m;y>=0?(d[0]=o,o+=y,d[1]=o):(d[0]=u,u+=y,d[1]=u)}}}},BH=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var a=0;a<r;++a)for(var o=0,u=0;u<n;++u){var c=e[u],f=c==null?void 0:c[a];if(f!=null){var d=$r(f[1])?f[0]:f[1];d>=0?(f[0]=o,o+=d,f[1]=o):(f[0]=0,f[1]=0)}}}},UH={sign:LH,expand:dU,none:Qa,silhouette:hU,wiggle:mU,positive:BH},qH=(e,t,n)=>{var r,a=(r=UH[n])!==null&&r!==void 0?r:Qa,o=fU().keys(t).value((c,f)=>Number(tn(c,f,0))).order(pg).offset(a),u=o(e);return u.forEach((c,f)=>{c.forEach((d,m)=>{var p=tn(e[m],t[f],0);Array.isArray(p)&&p.length===2&&we(p[0])&&we(p[1])&&(d[0]=p[0],d[1]=p[1])})}),u};function HH(e){return e==null?void 0:String(e)}var GA=e=>{var{axis:t,ticks:n,offset:r,bandSize:a,entry:o,index:u}=e;if(t.type==="category")return n[u]?n[u].coordinate+r:null;var c=tn(o,t.dataKey,t.scale.domain()[u]);if(qt(c))return null;var f=t.scale.map(c);return we(f)?f-a/2+r:null},$H=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return r<=0&&a>=0?0:a<0?a:r}return n[0]},FH=e=>{var t=e.flat(2).filter(we);return[Math.min(...t),Math.max(...t)]},VH=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],YH=(e,t,n)=>{if(e!=null)return VH(Object.keys(e).reduce((r,a)=>{var o=e[a];if(!o)return r;var{stackedData:u}=o,c=u.reduce((f,d)=>{var m=Wj(d,t,n),p=FH(m);return!qe(p[0])||!qe(p[1])?f:[Math.min(f[0],p[0]),Math.max(f[1],p[1])]},[1/0,-1/0]);return[Math.min(c[0],r[0]),Math.max(c[1],r[1])]},[1/0,-1/0]))},XA=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ZA=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Wf=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var a=Bd(t,m=>m.coordinate),o=1/0,u=1,c=a.length;u<c;u++){var f=a[u],d=a[u-1];o=Math.min(((f==null?void 0:f.coordinate)||0)-((d==null?void 0:d.coordinate)||0),o)}return o===1/0?0:o}return n?void 0:0};function WA(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:a,name:o}=e;return lo(lo({},t),{},{dataKey:n,payload:r,value:a,name:o})}function eM(e,t){if(e)return String(e);if(typeof t=="string")return t}var KH=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},GH=(e,t)=>t==="centric"?e.angle:e.radius,Ti=e=>e.layout.width,ji=e=>e.layout.height,XH=e=>e.layout.scale,tM=e=>e.layout.margin,Xd=ee(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Zd=ee(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),ZH="data-recharts-item-index",WH="data-recharts-item-id",Es=60;function QA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function mf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QA(Object(n),!0).forEach(function(r){QH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QH(e,t,n){return(t=JH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JH(e){var t=e7(e,"string");return typeof t=="symbol"?t:t+""}function e7(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var t7=e=>e.brush.height;function n7(e){var t=Zd(e);return t.reduce((n,r)=>{if(r.orientation==="left"&&!r.mirror&&!r.hide){var a=typeof r.width=="number"?r.width:Es;return n+a}return n},0)}function r7(e){var t=Zd(e);return t.reduce((n,r)=>{if(r.orientation==="right"&&!r.mirror&&!r.hide){var a=typeof r.width=="number"?r.width:Es;return n+a}return n},0)}function i7(e){var t=Xd(e);return t.reduce((n,r)=>r.orientation==="top"&&!r.mirror&&!r.hide?n+r.height:n,0)}function a7(e){var t=Xd(e);return t.reduce((n,r)=>r.orientation==="bottom"&&!r.mirror&&!r.hide?n+r.height:n,0)}var Ht=ee([Ti,ji,tM,t7,n7,r7,i7,a7,wj,jq],(e,t,n,r,a,o,u,c,f,d)=>{var m={left:(n.left||0)+a,right:(n.right||0)+o},p={top:(n.top||0)+u,bottom:(n.bottom||0)+c},y=mf(mf({},p),m),g=y.bottom;y.bottom+=r,y=RH(y,f,d);var x=e-y.left-y.right,w=t-y.top-y.bottom;return mf(mf({brushBottom:g},y),{},{width:Math.max(x,0),height:Math.max(w,0)})}),l7=ee(Ht,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Q0=ee(Ti,ji,(e,t)=>({x:0,y:0,width:e,height:t})),o7=E.createContext(null),Mn=()=>E.useContext(o7)!=null,Wd=e=>e.brush,Qd=ee([Wd,Ht,tM],(e,t,n)=>({height:e.height,x:we(e.x)?e.x:t.left,y:we(e.y)?e.y:t.top+t.height+t.brushBottom-((n==null?void 0:n.bottom)||0),width:we(e.width)?e.width:t.width})),my={},py={},vy={},JA;function u7(){return JA||(JA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r,{signal:a,edges:o}={}){let u,c=null;const f=o!=null&&o.includes("leading"),d=o==null||o.includes("trailing"),m=()=>{c!==null&&(n.apply(u,c),u=void 0,c=null)},p=()=>{d&&m(),w()};let y=null;const g=()=>{y!=null&&clearTimeout(y),y=setTimeout(()=>{y=null,p()},r)},x=()=>{y!==null&&(clearTimeout(y),y=null)},w=()=>{x(),u=void 0,c=null},S=()=>{m()},O=function(...C){if(a!=null&&a.aborted)return;u=this,c=C;const T=y==null;g(),f&&T&&m()};return O.schedule=g,O.cancel=w,O.flush=S,a==null||a.addEventListener("abort",w,{once:!0}),O}e.debounce=t})(vy)),vy}var e2;function s7(){return e2||(e2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=u7();function n(r,a=0,o={}){typeof o!="object"&&(o={});const{leading:u=!1,trailing:c=!0,maxWait:f}=o,d=Array(2);u&&(d[0]="leading"),c&&(d[1]="trailing");let m,p=null;const y=t.debounce(function(...w){m=r.apply(this,w),p=null},a,{edges:d}),g=function(...w){return f!=null&&(p===null&&(p=Date.now()),Date.now()-p>=f)?(m=r.apply(this,w),p=Date.now(),y.cancel(),y.schedule(),m):(y.apply(this,w),m)},x=()=>(y.flush(),m);return g.cancel=y.cancel,g.flush=x,g}e.debounce=n})(py)),py}var t2;function c7(){return t2||(t2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=s7();function n(r,a=0,o={}){const{leading:u=!0,trailing:c=!0}=o;return t.debounce(r,a,{leading:u,maxWait:a,trailing:c})}e.throttle=n})(my)),my}var yy,n2;function f7(){return n2||(n2=1,yy=c7().throttle),yy}var d7=f7();const h7=Tr(d7);var Qf=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),o=2;o<r;o++)a[o-2]=arguments[o];if(typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=0;console.warn(n.replace(/%s/g,()=>a[u++]))}},Ur={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},nM=(e,t,n)=>{var{width:r=Ur.width,height:a=Ur.height,aspect:o,maxHeight:u}=n,c=Ja(r)?e:Number(r),f=Ja(a)?t:Number(a);return o&&o>0&&(c?f=c/o:f&&(c=f*o),u&&f!=null&&f>u&&(f=u)),{calculatedWidth:c,calculatedHeight:f}},m7={width:0,height:0,overflow:"visible"},p7={width:0,overflowX:"visible"},v7={height:0,overflowY:"visible"},y7={},g7=e=>{var{width:t,height:n}=e,r=Ja(t),a=Ja(n);return r&&a?m7:r?p7:a?v7:y7};function b7(e){var{width:t,height:n,aspect:r}=e,a=t,o=n;return a===void 0&&o===void 0?(a=Ur.width,o=Ur.height):a===void 0?a=r&&r>0?void 0:Ur.width:o===void 0&&(o=r&&r>0?void 0:Ur.height),{width:a,height:o}}function _g(){return _g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_g.apply(null,arguments)}function r2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function i2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r2(Object(n),!0).forEach(function(r){x7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function x7(e,t,n){return(t=w7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w7(e){var t=S7(e,"string");return typeof t=="symbol"?t:t+""}function S7(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rM=E.createContext(Ur.initialDimension);function O7(e){return Vr(e.width)&&Vr(e.height)}function iM(e){var{children:t,width:n,height:r}=e,a=E.useMemo(()=>({width:n,height:r}),[n,r]);return O7(a)?E.createElement(rM.Provider,{value:a},t):null}var J0=()=>E.useContext(rM),E7=E.forwardRef((e,t)=>{var{aspect:n,initialDimension:r=Ur.initialDimension,width:a,height:o,minWidth:u=Ur.minWidth,minHeight:c,maxHeight:f,children:d,debounce:m=Ur.debounce,id:p,className:y,onResize:g,style:x={}}=e,w=E.useRef(null),S=E.useRef();S.current=g,E.useImperativeHandle(t,()=>w.current);var[O,C]=E.useState({containerWidth:r.width,containerHeight:r.height}),T=E.useCallback((U,$)=>{C(I=>{var Z=Math.round(U),q=Math.round($);return I.containerWidth===Z&&I.containerHeight===q?I:{containerWidth:Z,containerHeight:q}})},[]);E.useEffect(()=>{if(w.current==null||typeof ResizeObserver>"u")return _o;var U=q=>{var oe,ne=q[0];if(ne!=null){var{width:Q,height:L}=ne.contentRect;T(Q,L),(oe=S.current)===null||oe===void 0||oe.call(S,Q,L)}};m>0&&(U=h7(U,m,{trailing:!0,leading:!1}));var $=new ResizeObserver(U),{width:I,height:Z}=w.current.getBoundingClientRect();return T(I,Z),$.observe(w.current),()=>{$.disconnect()}},[T,m]);var{containerWidth:D,containerHeight:P}=O;Qf(!n||n>0,"The aspect(%s) must be greater than zero.",n);var{calculatedWidth:k,calculatedHeight:j}=nM(D,P,{width:a,height:o,aspect:n,maxHeight:f});return Qf(k!=null&&k>0||j!=null&&j>0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,k,j,a,o,u,c,n),E.createElement("div",{id:p?"".concat(p):void 0,className:ft("recharts-responsive-container",y),style:i2(i2({},x),{},{width:a,height:o,minWidth:u,minHeight:c,maxHeight:f}),ref:w},E.createElement("div",{style:g7({width:a,height:o})},E.createElement(iM,{width:k,height:j},d)))}),A7=E.forwardRef((e,t)=>{var n=J0();if(Vr(n.width)&&Vr(n.height))return e.children;var{width:r,height:a}=b7({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:o,calculatedHeight:u}=nM(void 0,void 0,{width:r,height:a,aspect:e.aspect,maxHeight:e.maxHeight});return we(o)&&we(u)?E.createElement(iM,{width:o,height:u},e.children):E.createElement(E7,_g({},e,{width:r,height:a,ref:t}))});function eb(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Jd=()=>{var e,t=Mn(),n=Ee(l7),r=Ee(Qd),a=(e=Ee(Wd))===null||e===void 0?void 0:e.padding;return!t||!r||!a?n:{width:r.width-a.left-a.right,height:r.height-a.top-a.bottom,x:a.left,y:a.top}},k7={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},aM=()=>{var e;return(e=Ee(Ht))!==null&&e!==void 0?e:k7},lM=()=>Ee(Ti),oM=()=>Ee(ji),at=e=>e.layout.layoutType,Co=()=>Ee(at),uM=()=>{var e=Co();if(e==="horizontal"||e==="vertical")return e},sM=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},_7=()=>{var e=Co();return e!==void 0},As=e=>{var t=wt(),n=Mn(),{width:r,height:a}=e,o=J0(),u=r,c=a;return o&&(u=o.width>0?o.width:r,c=o.height>0?o.height:a),E.useEffect(()=>{!n&&Vr(u)&&Vr(c)&&t(jH({width:u,height:c}))},[t,n,u,c]),null},cM=Symbol.for("immer-nothing"),a2=Symbol.for("immer-draftable"),Yn=Symbol.for("immer-state");function Or(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ls=Object.getPrototypeOf;function yo(e){return!!e&&!!e[Yn]}function tl(e){var t;return e?fM(e)||Array.isArray(e)||!!e[a2]||!!((t=e.constructor)!=null&&t[a2])||ks(e)||th(e):!1}var C7=Object.prototype.constructor.toString(),l2=new WeakMap;function fM(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let r=l2.get(n);return r===void 0&&(r=Function.toString.call(n),l2.set(n,r)),r===C7}function Jf(e,t,n=!0){eh(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(a=>{t(a,e[a],e)}):e.forEach((r,a)=>t(a,r,e))}function eh(e){const t=e[Yn];return t?t.type_:Array.isArray(e)?1:ks(e)?2:th(e)?3:0}function Cg(e,t){return eh(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function dM(e,t,n){const r=eh(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function T7(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function ks(e){return e instanceof Map}function th(e){return e instanceof Set}function qa(e){return e.copy_||e.base_}function Tg(e,t){if(ks(e))return new Map(e);if(th(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=fM(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Yn];let a=Reflect.ownKeys(r);for(let o=0;o<a.length;o++){const u=a[o],c=r[u];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(r[u]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[u]})}return Object.create(ls(e),r)}else{const r=ls(e);if(r!==null&&n)return{...e};const a=Object.create(r);return Object.assign(a,e)}}function tb(e,t=!1){return nh(e)||yo(e)||!tl(e)||(eh(e)>1&&Object.defineProperties(e,{set:pf,add:pf,clear:pf,delete:pf}),Object.freeze(e),t&&Object.values(e).forEach(n=>tb(n,!0))),e}function j7(){Or(2)}var pf={value:j7};function nh(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var M7={};function nl(e){const t=M7[e];return t||Or(0,e),t}var os;function hM(){return os}function z7(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function o2(e,t){t&&(nl("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function jg(e){Mg(e),e.drafts_.forEach(D7),e.drafts_=null}function Mg(e){e===os&&(os=e.parent_)}function u2(e){return os=z7(os,e)}function D7(e){const t=e[Yn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function s2(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Yn].modified_&&(jg(t),Or(4)),tl(e)&&(e=ed(t,e),t.parent_||td(t,e)),t.patches_&&nl("Patches").generateReplacementPatches_(n[Yn].base_,e,t.patches_,t.inversePatches_)):e=ed(t,n,[]),jg(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==cM?e:void 0}function ed(e,t,n){if(nh(t))return t;const r=e.immer_.shouldUseStrictIteration(),a=t[Yn];if(!a)return Jf(t,(o,u)=>c2(e,a,t,o,u,n),r),t;if(a.scope_!==e)return t;if(!a.modified_)return td(e,a.base_,!0),a.base_;if(!a.finalized_){a.finalized_=!0,a.scope_.unfinalizedDrafts_--;const o=a.copy_;let u=o,c=!1;a.type_===3&&(u=new Set(o),o.clear(),c=!0),Jf(u,(f,d)=>c2(e,a,o,f,d,n,c),r),td(e,o,!1),n&&e.patches_&&nl("Patches").generatePatches_(a,n,e.patches_,e.inversePatches_)}return a.copy_}function c2(e,t,n,r,a,o,u){if(a==null||typeof a!="object"&&!u)return;const c=nh(a);if(!(c&&!u)){if(yo(a)){const f=o&&t&&t.type_!==3&&!Cg(t.assigned_,r)?o.concat(r):void 0,d=ed(e,a,f);if(dM(n,r,d),yo(d))e.canAutoFreeze_=!1;else return}else u&&n.add(a);if(tl(a)&&!c){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===a&&c)return;ed(e,a),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(ks(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&td(e,a)}}}function td(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&tb(t,n)}function N7(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:hM(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=r,o=nb;n&&(a=[r],o=us);const{revoke:u,proxy:c}=Proxy.revocable(a,o);return r.draft_=c,r.revoke_=u,c}var nb={get(e,t){if(t===Yn)return e;const n=qa(e);if(!Cg(n,t))return P7(e,n,t);const r=n[t];return e.finalized_||!tl(r)?r:r===gy(e.base_,t)?(by(e),e.copy_[t]=Dg(r,e)):r},has(e,t){return t in qa(e)},ownKeys(e){return Reflect.ownKeys(qa(e))},set(e,t,n){const r=mM(qa(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const a=gy(qa(e),t),o=a==null?void 0:a[Yn];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(T7(n,a)&&(n!==void 0||Cg(e.base_,t)))return!0;by(e),zg(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return gy(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,by(e),zg(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=qa(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Or(11)},getPrototypeOf(e){return ls(e.base_)},setPrototypeOf(){Or(12)}},us={};Jf(nb,(e,t)=>{us[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});us.deleteProperty=function(e,t){return us.set.call(this,e,t,void 0)};us.set=function(e,t,n){return nb.set.call(this,e[0],t,n,e[0])};function gy(e,t){const n=e[Yn];return(n?qa(n):e)[t]}function P7(e,t,n){var a;const r=mM(t,n);return r?"value"in r?r.value:(a=r.get)==null?void 0:a.call(e.draft_):void 0}function mM(e,t){if(!(t in e))return;let n=ls(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=ls(n)}}function zg(e){e.modified_||(e.modified_=!0,e.parent_&&zg(e.parent_))}function by(e){e.copy_||(e.copy_=Tg(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var R7=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const u=this;return function(f=o,...d){return u.produce(f,m=>n.call(this,m,...d))}}typeof n!="function"&&Or(6),r!==void 0&&typeof r!="function"&&Or(7);let a;if(tl(t)){const o=u2(this),u=Dg(t,void 0);let c=!0;try{a=n(u),c=!1}finally{c?jg(o):Mg(o)}return o2(o,r),s2(a,o)}else if(!t||typeof t!="object"){if(a=n(t),a===void 0&&(a=t),a===cM&&(a=void 0),this.autoFreeze_&&tb(a,!0),r){const o=[],u=[];nl("Patches").generateReplacementPatches_(t,a,o,u),r(o,u)}return a}else Or(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(u,...c)=>this.produceWithPatches(u,f=>t(f,...c));let r,a;return[this.produce(t,n,(u,c)=>{r=u,a=c}),r,a]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){tl(e)||Or(8),yo(e)&&(e=I7(e));const t=u2(this),n=Dg(e,void 0);return n[Yn].isManual_=!0,Mg(t),n}finishDraft(e,t){const n=e&&e[Yn];(!n||!n.isManual_)&&Or(9);const{scope_:r}=n;return o2(r,t),s2(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const a=t[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>-1&&(t=t.slice(n+1));const r=nl("Patches").applyPatches_;return yo(e)?r(e,t):this.produce(e,a=>r(a,t))}};function Dg(e,t){const n=ks(e)?nl("MapSet").proxyMap_(e,t):th(e)?nl("MapSet").proxySet_(e,t):N7(e,t);return(t?t.scope_:hM()).drafts_.push(n),n}function I7(e){return yo(e)||Or(10,e),pM(e)}function pM(e){if(!tl(e)||nh(e))return e;const t=e[Yn];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Tg(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Tg(e,!0);return Jf(n,(a,o)=>{dM(n,a,pM(o))},r),t&&(t.finalized_=!1),n}var L7=new R7;L7.produce;var B7={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},vM=jn({name:"legend",initialState:B7,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:ht()},replaceLegendPayload:{reducer(e,t){var{prev:n,next:r}=t.payload,a=kr(e).payload.indexOf(n);a>-1&&(e.payload[a]=r)},prepare:ht()},removeLegendPayload:{reducer(e,t){var n=kr(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)},prepare:ht()}}}),{setLegendSize:_ne,setLegendSettings:Cne,addLegendPayload:U7,replaceLegendPayload:q7,removeLegendPayload:H7}=vM.actions,$7=vM.reducer;function Ng(){return Ng=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ng.apply(null,arguments)}function f2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Iu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f2(Object(n),!0).forEach(function(r){F7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function F7(e,t,n){return(t=V7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V7(e){var t=Y7(e,"string");return typeof t=="symbol"?t:t+""}function Y7(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function K7(e){return Array.isArray(e)&&Fr(e[0])&&Fr(e[1])?e.join(" ~ "):e}var eo={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1},G7=e=>{var{separator:t=eo.separator,contentStyle:n,itemStyle:r,labelStyle:a=eo.labelStyle,payload:o,formatter:u,itemSorter:c,wrapperClassName:f,labelClassName:d,label:m,labelFormatter:p,accessibilityLayer:y=eo.accessibilityLayer}=e,g=()=>{if(o&&o.length){var P={padding:0,margin:0},k=(c?Bd(o,c):o).map((j,U)=>{if(j.type==="none")return null;var $=j.formatter||u||K7,{value:I,name:Z}=j,q=I,oe=Z;if($){var ne=$(I,Z,j,U,o);if(Array.isArray(ne))[q,oe]=ne;else if(ne!=null)q=ne;else return null}var Q=Iu(Iu({},eo.itemStyle),{},{color:j.color||eo.itemStyle.color},r);return E.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(U),style:Q},Fr(oe)?E.createElement("span",{className:"recharts-tooltip-item-name"},oe):null,Fr(oe)?E.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,E.createElement("span",{className:"recharts-tooltip-item-value"},q),E.createElement("span",{className:"recharts-tooltip-item-unit"},j.unit||""))});return E.createElement("ul",{className:"recharts-tooltip-item-list",style:P},k)}return null},x=Iu(Iu({},eo.contentStyle),n),w=Iu({margin:0},a),S=!qt(m),O=S?m:"",C=ft("recharts-default-tooltip",f),T=ft("recharts-tooltip-label",d);S&&p&&o!==void 0&&o!==null&&(O=p(m,o));var D=y?{role:"status","aria-live":"assertive"}:{};return E.createElement("div",Ng({className:C,style:x},D),E.createElement("p",{className:T,style:w},E.isValidElement(O)?O:"".concat(O)),g())},Lu="recharts-tooltip-wrapper",X7={visibility:"hidden"};function Z7(e){var{coordinate:t,translateX:n,translateY:r}=e;return ft(Lu,{["".concat(Lu,"-right")]:we(n)&&t&&we(t.x)&&n>=t.x,["".concat(Lu,"-left")]:we(n)&&t&&we(t.x)&&n<t.x,["".concat(Lu,"-bottom")]:we(r)&&t&&we(t.y)&&r>=t.y,["".concat(Lu,"-top")]:we(r)&&t&&we(t.y)&&r<t.y})}function d2(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offset:a,position:o,reverseDirection:u,tooltipDimension:c,viewBox:f,viewBoxDimension:d}=e;if(o&&we(o[r]))return o[r];var m=n[r]-c-(a>0?a:0),p=n[r]+a;if(t[r])return u[r]?m:p;var y=f[r];if(y==null)return 0;if(u[r]){var g=m,x=y;return g<x?Math.max(p,y):Math.max(m,y)}if(d==null)return 0;var w=p+c,S=y+d;return w>S?Math.max(m,y):Math.max(p,y)}function W7(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function Q7(e){var{allowEscapeViewBox:t,coordinate:n,offsetTop:r,offsetLeft:a,position:o,reverseDirection:u,tooltipBox:c,useTranslate3d:f,viewBox:d}=e,m,p,y;return c.height>0&&c.width>0&&n?(p=d2({allowEscapeViewBox:t,coordinate:n,key:"x",offset:a,position:o,reverseDirection:u,tooltipDimension:c.width,viewBox:d,viewBoxDimension:d.width}),y=d2({allowEscapeViewBox:t,coordinate:n,key:"y",offset:r,position:o,reverseDirection:u,tooltipDimension:c.height,viewBox:d,viewBoxDimension:d.height}),m=W7({translateX:p,translateY:y,useTranslate3d:f})):m=X7,{cssProperties:m,cssClasses:Z7({translateX:p,translateY:y,coordinate:n})}}function h2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function vf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h2(Object(n),!0).forEach(function(r){Pg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pg(e,t,n){return(t=J7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J7(e){var t=e$(e,"string");return typeof t=="symbol"?t:t+""}function e$(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class t$ extends E.PureComponent{constructor(){super(...arguments),Pg(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Pg(this,"handleKeyDown",t=>{if(t.key==="Escape"){var n,r,a,o;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(n=(r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==null&&n!==void 0?n:0,y:(a=(o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==null&&a!==void 0?a:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,n;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((n=this.props.coordinate)===null||n===void 0?void 0:n.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:n,animationDuration:r,animationEasing:a,children:o,coordinate:u,hasPayload:c,isAnimationActive:f,offset:d,position:m,reverseDirection:p,useTranslate3d:y,viewBox:g,wrapperStyle:x,lastBoundingBox:w,innerRef:S,hasPortalFromProps:O}=this.props,C=typeof d=="number"?d:d.x,T=typeof d=="number"?d:d.y,{cssClasses:D,cssProperties:P}=Q7({allowEscapeViewBox:n,coordinate:u,offsetLeft:C,offsetTop:T,position:m,reverseDirection:p,tooltipBox:{height:w.height,width:w.width},useTranslate3d:y,viewBox:g}),k=O?{}:vf(vf({transition:f&&t?"transform ".concat(r,"ms ").concat(a):void 0},P),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&c?"visible":"hidden",position:"absolute",top:0,left:0}),j=vf(vf({},k),{},{visibility:!this.state.dismissed&&t&&c?"visible":"hidden"},x);return E.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:D,style:j,ref:S},o)}}var yM=()=>{var e;return(e=Ee(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function Rg(){return Rg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rg.apply(null,arguments)}function m2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function p2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m2(Object(n),!0).forEach(function(r){n$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function n$(e,t,n){return(t=r$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r$(e){var t=i$(e,"string");return typeof t=="symbol"?t:t+""}function i$(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var v2={curveBasisClosed:eU,curveBasisOpen:tU,curveBasis:J9,curveBumpX:B9,curveBumpY:U9,curveLinearClosed:nU,curveLinear:Id,curveMonotoneX:rU,curveMonotoneY:iU,curveNatural:aU,curveStep:lU,curveStepAfter:uU,curveStepBefore:oU},nd=e=>qe(e.x)&&qe(e.y),y2=e=>e.base!=null&&nd(e.base)&&nd(e),Bu=e=>e.x,Uu=e=>e.y,a$=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(ws(e));if((n==="curveMonotone"||n==="curveBump")&&t){var r=v2["".concat(n).concat(t==="vertical"?"Y":"X")];if(r)return r}return v2[n]||Id},g2={connectNulls:!1,type:"linear"},l$=e=>{var{type:t=g2.type,points:n=[],baseLine:r,layout:a,connectNulls:o=g2.connectNulls}=e,u=a$(t,a),c=o?n.filter(nd):n;if(Array.isArray(r)){var f,d=n.map((x,w)=>p2(p2({},x),{},{base:r[w]}));a==="vertical"?f=uf().y(Uu).x1(Bu).x0(x=>x.base.x):f=uf().x(Bu).y1(Uu).y0(x=>x.base.y);var m=f.defined(y2).curve(u),p=o?d.filter(y2):d;return m(p)}var y;a==="vertical"&&we(r)?y=uf().y(Uu).x1(Bu).x0(r):we(r)?y=uf().x(Bu).y1(Uu).y0(r):y=GT().x(Bu).y(Uu);var g=y.defined(nd).curve(u);return g(c)},gM=e=>{var{className:t,points:n,path:r,pathRef:a}=e,o=Co();if((!n||!n.length)&&!r)return null;var u={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||o,connectNulls:e.connectNulls},c=n&&n.length?l$(u):r;return E.createElement("path",Rg({},bi(e),zU(e),{className:ft("recharts-curve",t),d:c===null?void 0:c,ref:a}))},o$=["x","y","top","left","width","height","className"];function Ig(){return Ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ig.apply(null,arguments)}function b2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function u$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b2(Object(n),!0).forEach(function(r){s$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function s$(e,t,n){return(t=c$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c$(e){var t=f$(e,"string");return typeof t=="symbol"?t:t+""}function f$(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d$(e,t){if(e==null)return{};var n,r,a=h$(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function h$(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var m$=(e,t,n,r,a,o)=>"M".concat(e,",").concat(a,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n),p$=e=>{var{x:t=0,y:n=0,top:r=0,left:a=0,width:o=0,height:u=0,className:c}=e,f=d$(e,o$),d=u$({x:t,y:n,top:r,left:a,width:o,height:u},f);return!we(t)||!we(n)||!we(o)||!we(u)||!we(r)||!we(a)?null:E.createElement("path",Ig({},hr(d),{className:ft("recharts-cross",c),d:m$(t,n,o,u,r,a)}))};function v$(e,t,n,r){var a=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-a,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function x2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function w2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x2(Object(n),!0).forEach(function(r){y$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function y$(e,t,n){return(t=g$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g$(e){var t=b$(e,"string");return typeof t=="symbol"?t:t+""}function b$(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var x$=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),bM=(e,t,n)=>e.map(r=>"".concat(x$(r)," ").concat(t,"ms ").concat(n)).join(","),w$=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(a=>r.includes(a))),ss=(e,t)=>Object.keys(t).reduce((n,r)=>w2(w2({},n),{},{[r]:e(r,t[r])}),{});function S2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S2(Object(n),!0).forEach(function(r){S$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function S$(e,t,n){return(t=O$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O$(e){var t=E$(e,"string");return typeof t=="symbol"?t:t+""}function E$(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rd=(e,t,n)=>e+(t-e)*n,Lg=e=>{var{from:t,to:n}=e;return t!==n},xM=(e,t,n)=>{var r=ss((a,o)=>{if(Lg(o)){var[u,c]=e(o.from,o.to,o.velocity);return Dt(Dt({},o),{},{from:u,velocity:c})}return o},t);return n<1?ss((a,o)=>Lg(o)&&r[a]!=null?Dt(Dt({},o),{},{velocity:rd(o.velocity,r[a].velocity,n),from:rd(o.from,r[a].from,n)}):o,t):xM(e,r,n-1)};function A$(e,t,n,r,a,o){var u,c=r.reduce((y,g)=>Dt(Dt({},y),{},{[g]:{from:e[g],velocity:0,to:t[g]}}),{}),f=()=>ss((y,g)=>g.from,c),d=()=>!Object.values(c).filter(Lg).length,m=null,p=y=>{u||(u=y);var g=y-u,x=g/n.dt;c=xM(n,c,x),a(Dt(Dt(Dt({},e),t),f())),u=y,d()||(m=o.setTimeout(p))};return()=>(m=o.setTimeout(p),()=>{var y;(y=m)===null||y===void 0||y()})}function k$(e,t,n,r,a,o,u){var c=null,f=a.reduce((p,y)=>{var g=e[y],x=t[y];return g==null||x==null?p:Dt(Dt({},p),{},{[y]:[g,x]})},{}),d,m=p=>{d||(d=p);var y=(p-d)/r,g=ss((w,S)=>rd(...S,n(y)),f);if(o(Dt(Dt(Dt({},e),t),g)),y<1)c=u.setTimeout(m);else{var x=ss((w,S)=>rd(...S,n(1)),f);o(Dt(Dt(Dt({},e),t),x))}};return()=>(c=u.setTimeout(m),()=>{var p;(p=c)===null||p===void 0||p()})}const _$=(e,t,n,r,a,o)=>{var u=w$(e,t);return n==null?()=>(a(Dt(Dt({},e),t)),()=>{}):n.isStepper===!0?A$(e,t,n,u,a,o):k$(e,t,n,r,u,a,o)};var id=1e-4,wM=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],SM=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),O2=(e,t)=>n=>{var r=wM(e,t);return SM(r,n)},C$=(e,t)=>n=>{var r=wM(e,t),a=[...r.map((o,u)=>o*u).slice(1),0];return SM(a,n)},T$=e=>{var t,n=e.split("(");if(n.length!==2||n[0]!=="cubic-bezier")return null;var r=(t=n[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(r==null||r.length!==4)return null;var a=r.map(o=>parseFloat(o));return[a[0],a[1],a[2],a[3]]},j$=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n.length===1)switch(n[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var a=T$(n[0]);if(a)return a}}return n.length===4?n:[0,0,1,1]},M$=(e,t,n,r)=>{var a=O2(e,n),o=O2(t,r),u=C$(e,n),c=d=>d>1?1:d<0?0:d,f=d=>{for(var m=d>1?1:d,p=m,y=0;y<8;++y){var g=a(p)-m,x=u(p);if(Math.abs(g-m)<id||x<id)return o(p);p=c(p-g/x)}return o(p)};return f.isStepper=!1,f},E2=function(){return M$(...j$(...arguments))},z$=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:n=100,damping:r=8,dt:a=17}=t,o=(u,c,f)=>{var d=-(u-c)*n,m=f*r,p=f+(d-m)*a/1e3,y=f*a/1e3+u;return Math.abs(y-c)<id&&Math.abs(p)<id?[c,0]:[y,p]};return o.isStepper=!0,o.dt=a,o},D$=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return E2(e);case"spring":return z$();default:if(e.split("(")[0]==="cubic-bezier")return E2(e)}return typeof e=="function"?e:null};function N$(e){var t,n=()=>null,r=!1,a=null,o=u=>{if(!r){if(Array.isArray(u)){if(!u.length)return;var c=u,[f,...d]=c;if(typeof f=="number"){a=e.setTimeout(o.bind(null,d),f);return}o(f),a=e.setTimeout(o.bind(null,d));return}typeof u=="string"&&(t=u,n(t)),typeof u=="object"&&(t=u,n(t)),typeof u=="function"&&u()}};return{stop:()=>{r=!0},start:u=>{r=!1,a&&(a(),a=null),o(u)},subscribe:u=>(n=u,()=>{n=()=>null}),getTimeoutController:()=>e}}class P${setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),a=null,o=u=>{u-r>=n?t(u):typeof requestAnimationFrame=="function"&&(a=requestAnimationFrame(o))};return a=requestAnimationFrame(o),()=>{a!=null&&cancelAnimationFrame(a)}}}function R$(){return N$(new P$)}var I$=E.createContext(R$);function L$(e,t){var n=E.useContext(I$);return E.useMemo(()=>t??n(e),[e,t,n])}var B$=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),rh={isSsr:B$()},U$={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},A2={t:0},xy={t:1};function rb(e){var t=Kn(e,U$),{isActive:n,canBegin:r,duration:a,easing:o,begin:u,onAnimationEnd:c,onAnimationStart:f,children:d}=t,m=n==="auto"?!rh.isSsr:n,p=L$(t.animationId,t.animationManager),[y,g]=E.useState(m?A2:xy),x=E.useRef(null);return E.useEffect(()=>{m||g(xy)},[m]),E.useEffect(()=>{if(!m||!r)return _o;var w=_$(A2,xy,D$(o),a,g,p.getTimeoutController()),S=()=>{x.current=w()};return p.start([f,u,S,a,c]),()=>{p.stop(),x.current&&x.current(),c()}},[m,r,a,o,u,f,c,p]),d(y.t)}function ib(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=E.useRef(ns(t)),r=E.useRef(e);return r.current!==e&&(n.current=ns(t),r.current=e),n.current}var q$=["radius"],H$=["radius"],k2,_2,C2,T2,j2,M2,z2,D2,N2,P2;function R2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function I2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R2(Object(n),!0).forEach(function(r){$$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $$(e,t,n){return(t=F$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F$(e){var t=V$(e,"string");return typeof t=="symbol"?t:t+""}function V$(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ad(){return ad=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ad.apply(null,arguments)}function L2(e,t){if(e==null)return{};var n,r,a=Y$(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Y$(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Pr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var B2=(e,t,n,r,a)=>{var o=da(n),u=da(r),c=Math.min(Math.abs(o)/2,Math.abs(u)/2),f=u>=0?1:-1,d=o>=0?1:-1,m=u>=0&&o>=0||u<0&&o<0?1:0,p;if(c>0&&Array.isArray(a)){for(var y=[0,0,0,0],g=0,x=4;g<x;g++){var w,S=(w=a[g])!==null&&w!==void 0?w:0;y[g]=S>c?c:S}p=gt(k2||(k2=Pr(["M",",",""])),e,t+f*y[0]),y[0]>0&&(p+=gt(_2||(_2=Pr(["A ",",",",0,0,",",",",",""])),y[0],y[0],m,e+d*y[0],t)),p+=gt(C2||(C2=Pr(["L ",",",""])),e+n-d*y[1],t),y[1]>0&&(p+=gt(T2||(T2=Pr(["A ",",",",0,0,",`,
        `,",",""])),y[1],y[1],m,e+n,t+f*y[1])),p+=gt(j2||(j2=Pr(["L ",",",""])),e+n,t+r-f*y[2]),y[2]>0&&(p+=gt(M2||(M2=Pr(["A ",",",",0,0,",`,
        `,",",""])),y[2],y[2],m,e+n-d*y[2],t+r)),p+=gt(z2||(z2=Pr(["L ",",",""])),e+d*y[3],t+r),y[3]>0&&(p+=gt(D2||(D2=Pr(["A ",",",",0,0,",`,
        `,",",""])),y[3],y[3],m,e,t+r-f*y[3])),p+="Z"}else if(c>0&&a===+a&&a>0){var O=Math.min(c,a);p=gt(N2||(N2=Pr(["M ",",",`
            A `,",",",0,0,",",",",",`
            L `,",",`
            A `,",",",0,0,",",",",",`
            L `,",",`
            A `,",",",0,0,",",",",",`
            L `,",",`
            A `,",",",0,0,",",",","," Z"])),e,t+f*O,O,O,m,e+d*O,t,e+n-d*O,t,O,O,m,e+n,t+f*O,e+n,t+r-f*O,O,O,m,e+n-d*O,t+r,e+d*O,t+r,O,O,m,e,t+r-f*O)}else p=gt(P2||(P2=Pr(["M ",","," h "," v "," h "," Z"])),e,t,n,r,-n);return p},U2={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},OM=e=>{var t=Kn(e,U2),n=E.useRef(null),[r,a]=E.useState(-1);E.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var K=n.current.getTotalLength();K&&a(K)}catch{}},[]);var{x:o,y:u,width:c,height:f,radius:d,className:m}=t,{animationEasing:p,animationDuration:y,animationBegin:g,isAnimationActive:x,isUpdateAnimationActive:w}=t,S=E.useRef(c),O=E.useRef(f),C=E.useRef(o),T=E.useRef(u),D=E.useMemo(()=>({x:o,y:u,width:c,height:f,radius:d}),[o,u,c,f,d]),P=ib(D,"rectangle-");if(o!==+o||u!==+u||c!==+c||f!==+f||c===0||f===0)return null;var k=ft("recharts-rectangle",m);if(!w){var j=hr(t),{radius:U}=j,$=L2(j,q$);return E.createElement("path",ad({},$,{x:da(o),y:da(u),width:da(c),height:da(f),radius:typeof d=="number"?d:void 0,className:k,d:B2(o,u,c,f,d)}))}var I=S.current,Z=O.current,q=C.current,oe=T.current,ne="0px ".concat(r===-1?1:r,"px"),Q="".concat(r,"px 0px"),L=bM(["strokeDasharray"],y,typeof p=="string"?p:U2.animationEasing);return E.createElement(rb,{animationId:P,key:P,canBegin:r>0,duration:y,easing:p,isActive:w,begin:g},K=>{var J=Jt(I,c,K),re=Jt(Z,f,K),N=Jt(q,o,K),R=Jt(oe,u,K);n.current&&(S.current=J,O.current=re,C.current=N,T.current=R);var V;x?K>0?V={transition:L,strokeDasharray:Q}:V={strokeDasharray:ne}:V={strokeDasharray:Q};var z=hr(t),{radius:se}=z,ye=L2(z,H$);return E.createElement("path",ad({},ye,{radius:typeof d=="number"?d:void 0,className:k,d:B2(N,R,J,re,d),ref:n,style:I2(I2({},V),t.style)}))})};function q2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function H2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q2(Object(n),!0).forEach(function(r){K$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function K$(e,t,n){return(t=G$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G$(e){var t=X$(e,"string");return typeof t=="symbol"?t:t+""}function X$(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ld=Math.PI/180,Z$=e=>e*180/Math.PI,en=(e,t,n,r)=>({x:e+Math.cos(-ld*r)*n,y:t+Math.sin(-ld*r)*n}),W$=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},Q$=(e,t)=>{var{x:n,y:r}=e,{x:a,y:o}=t;return Math.sqrt((n-a)**2+(r-o)**2)},J$=(e,t)=>{var{x:n,y:r}=e,{cx:a,cy:o}=t,u=Q$({x:n,y:r},{x:a,y:o});if(u<=0)return{radius:u,angle:0};var c=(n-a)/u,f=Math.acos(c);return r>o&&(f=2*Math.PI-f),{radius:u,angle:Z$(f),angleInRadian:f}},eF=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),a=Math.floor(n/360),o=Math.min(r,a);return{startAngle:t-o*360,endAngle:n-o*360}},tF=(e,t)=>{var{startAngle:n,endAngle:r}=t,a=Math.floor(n/360),o=Math.floor(r/360),u=Math.min(a,o);return e+u*360},nF=(e,t)=>{var{chartX:n,chartY:r}=e,{radius:a,angle:o}=J$({x:n,y:r},t),{innerRadius:u,outerRadius:c}=t;if(a<u||a>c||a===0)return null;var{startAngle:f,endAngle:d}=eF(t),m=o,p;if(f<=d){for(;m>d;)m-=360;for(;m<f;)m+=360;p=m>=f&&m<=d}else{for(;m>f;)m-=360;for(;m<d;)m+=360;p=m>=d&&m<=f}return p?H2(H2({},t),{},{radius:a,angle:tF(m,t)}):null};function EM(e){var{cx:t,cy:n,radius:r,startAngle:a,endAngle:o}=e,u=en(t,n,r,a),c=en(t,n,r,o);return{points:[u,c],cx:t,cy:n,radius:r,startAngle:a,endAngle:o}}var $2,F2,V2,Y2,K2,G2,X2;function Bg(){return Bg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bg.apply(null,arguments)}function Fa(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var rF=(e,t)=>{var n=kn(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},yf=e=>{var{cx:t,cy:n,radius:r,angle:a,sign:o,isExternal:u,cornerRadius:c,cornerIsExternal:f}=e,d=c*(u?1:-1)+r,m=Math.asin(c/d)/ld,p=f?a:a+o*m,y=en(t,n,d,p),g=en(t,n,r,p),x=f?a-o*m:a,w=en(t,n,d*Math.cos(m*ld),x);return{center:y,circleTangency:g,lineTangency:w,theta:m}},AM=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:a,startAngle:o,endAngle:u}=e,c=rF(o,u),f=o+c,d=en(t,n,a,o),m=en(t,n,a,f),p=gt($2||($2=Fa(["M ",",",`
    A `,",",`,0,
    `,",",`,
    `,",",`
  `])),d.x,d.y,a,a,+(Math.abs(c)>180),+(o>f),m.x,m.y);if(r>0){var y=en(t,n,r,o),g=en(t,n,r,f);p+=gt(F2||(F2=Fa(["L ",",",`
            A `,",",`,0,
            `,",",`,
            `,","," Z"])),g.x,g.y,r,r,+(Math.abs(c)>180),+(o<=f),y.x,y.y)}else p+=gt(V2||(V2=Fa(["L ",","," Z"])),t,n);return p},iF=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:a,cornerRadius:o,forceCornerRadius:u,cornerIsExternal:c,startAngle:f,endAngle:d}=e,m=kn(d-f),{circleTangency:p,lineTangency:y,theta:g}=yf({cx:t,cy:n,radius:a,angle:f,sign:m,cornerRadius:o,cornerIsExternal:c}),{circleTangency:x,lineTangency:w,theta:S}=yf({cx:t,cy:n,radius:a,angle:d,sign:-m,cornerRadius:o,cornerIsExternal:c}),O=c?Math.abs(f-d):Math.abs(f-d)-g-S;if(O<0)return u?gt(Y2||(Y2=Fa(["M ",",",`
        a`,",",",0,0,1,",`,0
        a`,",",",0,0,1,",`,0
      `])),y.x,y.y,o,o,o*2,o,o,-o*2):AM({cx:t,cy:n,innerRadius:r,outerRadius:a,startAngle:f,endAngle:d});var C=gt(K2||(K2=Fa(["M ",",",`
    A`,",",",0,0,",",",",",`
    A`,",",",0,",",",",",",",`
    A`,",",",0,0,",",",",",`
  `])),y.x,y.y,o,o,+(m<0),p.x,p.y,a,a,+(O>180),+(m<0),x.x,x.y,o,o,+(m<0),w.x,w.y);if(r>0){var{circleTangency:T,lineTangency:D,theta:P}=yf({cx:t,cy:n,radius:r,angle:f,sign:m,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),{circleTangency:k,lineTangency:j,theta:U}=yf({cx:t,cy:n,radius:r,angle:d,sign:-m,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),$=c?Math.abs(f-d):Math.abs(f-d)-P-U;if($<0&&o===0)return"".concat(C,"L").concat(t,",").concat(n,"Z");C+=gt(G2||(G2=Fa(["L",",",`
      A`,",",",0,0,",",",",",`
      A`,",",",0,",",",",",",",`
      A`,",",",0,0,",",",",","Z"])),j.x,j.y,o,o,+(m<0),k.x,k.y,r,r,+($>180),+(m>0),T.x,T.y,o,o,+(m<0),D.x,D.y)}else C+=gt(X2||(X2=Fa(["L",",","Z"])),t,n);return C},aF={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},kM=e=>{var t=Kn(e,aF),{cx:n,cy:r,innerRadius:a,outerRadius:o,cornerRadius:u,forceCornerRadius:c,cornerIsExternal:f,startAngle:d,endAngle:m,className:p}=t;if(o<a||d===m)return null;var y=ft("recharts-sector",p),g=o-a,x=_r(u,g,0,!0),w;return x>0&&Math.abs(d-m)<360?w=iF({cx:n,cy:r,innerRadius:a,outerRadius:o,cornerRadius:Math.min(x,g/2),forceCornerRadius:c,cornerIsExternal:f,startAngle:d,endAngle:m}):w=AM({cx:n,cy:r,innerRadius:a,outerRadius:o,startAngle:d,endAngle:m}),E.createElement("path",Bg({},hr(t),{className:y,d:w}))};function lF(e,t,n){if(e==="horizontal")return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e==="vertical")return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(sj(t)){if(e==="centric"){var{cx:r,cy:a,innerRadius:o,outerRadius:u,angle:c}=t,f=en(r,a,o,c),d=en(r,a,u,c);return[{x:f.x,y:f.y},{x:d.x,y:d.y}]}return EM(t)}}var wy={},Sy={},Oy={},Z2;function oF(){return Z2||(Z2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bj();function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n})(Oy)),Oy}var W2;function uF(){return W2||(W2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oF();function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n})(Sy)),Sy}var Q2;function sF(){return Q2||(Q2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xj(),n=uF();function r(a,o,u){u&&typeof u!="number"&&t.isIterateeCall(a,o,u)&&(o=u=void 0),a=n.toFinite(a),o===void 0?(o=a,a=0):o=n.toFinite(o),u=u===void 0?a<o?1:-1:n.toFinite(u);const c=Math.max(Math.ceil((o-a)/(u||1)),0),f=new Array(c);for(let d=0;d<c;d++)f[d]=a,a+=u;return f}e.range=r})(wy)),wy}var Ey,J2;function cF(){return J2||(J2=1,Ey=sF().range),Ey}var fF=cF();const _M=Tr(fF);function ha(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function dF(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function ab(e){let t,n,r;e.length!==2?(t=ha,n=(c,f)=>ha(e(c),f),r=(c,f)=>e(c)-f):(t=e===ha||e===dF?e:hF,n=e,r=e);function a(c,f,d=0,m=c.length){if(d<m){if(t(f,f)!==0)return m;do{const p=d+m>>>1;n(c[p],f)<0?d=p+1:m=p}while(d<m)}return d}function o(c,f,d=0,m=c.length){if(d<m){if(t(f,f)!==0)return m;do{const p=d+m>>>1;n(c[p],f)<=0?d=p+1:m=p}while(d<m)}return d}function u(c,f,d=0,m=c.length){const p=a(c,f,d,m-1);return p>d&&r(c[p-1],f)>-r(c[p],f)?p-1:p}return{left:a,center:u,right:o}}function hF(){return 0}function CM(e){return e===null?NaN:+e}function*mF(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const pF=ab(ha),_s=pF.right;ab(CM).center;class ek extends Map{constructor(t,n=gF){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(tk(this,t))}has(t){return super.has(tk(this,t))}set(t,n){return super.set(vF(this,t),n)}delete(t){return super.delete(yF(this,t))}}function tk({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function vF({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function yF({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function gF(e){return e!==null&&typeof e=="object"?e.valueOf():e}function bF(e=ha){if(e===ha)return TM;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function TM(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const xF=Math.sqrt(50),wF=Math.sqrt(10),SF=Math.sqrt(2);function od(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),o=r/Math.pow(10,a),u=o>=xF?10:o>=wF?5:o>=SF?2:1;let c,f,d;return a<0?(d=Math.pow(10,-a)/u,c=Math.round(e*d),f=Math.round(t*d),c/d<e&&++c,f/d>t&&--f,d=-d):(d=Math.pow(10,a)*u,c=Math.round(e/d),f=Math.round(t/d),c*d<e&&++c,f*d>t&&--f),f<c&&.5<=n&&n<2?od(e,t,n*2):[c,f,d]}function Ug(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,o,u]=r?od(t,e,n):od(e,t,n);if(!(o>=a))return[];const c=o-a+1,f=new Array(c);if(r)if(u<0)for(let d=0;d<c;++d)f[d]=(o-d)/-u;else for(let d=0;d<c;++d)f[d]=(o-d)*u;else if(u<0)for(let d=0;d<c;++d)f[d]=(a+d)/-u;else for(let d=0;d<c;++d)f[d]=(a+d)*u;return f}function qg(e,t,n){return t=+t,e=+e,n=+n,od(e,t,n)[2]}function Hg(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?qg(t,e,n):qg(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function nk(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n<a||n===void 0&&a>=a)&&(n=a)}return n}function rk(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function jM(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?TM:bF(a);r>n;){if(r-n>600){const f=r-n+1,d=t-n+1,m=Math.log(f),p=.5*Math.exp(2*m/3),y=.5*Math.sqrt(m*p*(f-p)/f)*(d-f/2<0?-1:1),g=Math.max(n,Math.floor(t-d*p/f+y)),x=Math.min(r,Math.floor(t+(f-d)*p/f+y));jM(e,t,g,x,a)}const o=e[t];let u=n,c=r;for(qu(e,n,t),a(e[r],o)>0&&qu(e,n,r);u<c;){for(qu(e,u,c),++u,--c;a(e[u],o)<0;)++u;for(;a(e[c],o)>0;)--c}a(e[n],o)===0?qu(e,n,c):(++c,qu(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function qu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function OF(e,t,n){if(e=Float64Array.from(mF(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return rk(e);if(t>=1)return nk(e);var r,a=(r-1)*t,o=Math.floor(a),u=nk(jM(e,o).subarray(0,o+1)),c=rk(e.subarray(o+1));return u+(c-u)*(a-o)}}function EF(e,t,n=CM){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,o=Math.floor(a),u=+n(e[o],o,e),c=+n(e[o+1],o+1,e);return u+(c-u)*(a-o)}}function AF(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(a);++r<a;)o[r]=e+r*n;return o}function vr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Mi(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const $g=Symbol("implicit");function lb(){var e=new ek,t=[],n=[],r=$g;function a(o){let u=e.get(o);if(u===void 0){if(r!==$g)return r;e.set(o,u=t.push(o)-1)}return n[u%n.length]}return a.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new ek;for(const u of o)e.has(u)||e.set(u,t.push(u)-1);return a},a.range=function(o){return arguments.length?(n=Array.from(o),a):n.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.copy=function(){return lb(t,n).unknown(r)},vr.apply(a,arguments),a}function ob(){var e=lb().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,o,u,c=!1,f=0,d=0,m=.5;delete e.unknown;function p(){var y=t().length,g=a<r,x=g?a:r,w=g?r:a;o=(w-x)/Math.max(1,y-f+d*2),c&&(o=Math.floor(o)),x+=(w-x-o*(y-f))*m,u=o*(1-f),c&&(x=Math.round(x),u=Math.round(u));var S=AF(y).map(function(O){return x+o*O});return n(g?S.reverse():S)}return e.domain=function(y){return arguments.length?(t(y),p()):t()},e.range=function(y){return arguments.length?([r,a]=y,r=+r,a=+a,p()):[r,a]},e.rangeRound=function(y){return[r,a]=y,r=+r,a=+a,c=!0,p()},e.bandwidth=function(){return u},e.step=function(){return o},e.round=function(y){return arguments.length?(c=!!y,p()):c},e.padding=function(y){return arguments.length?(f=Math.min(1,d=+y),p()):f},e.paddingInner=function(y){return arguments.length?(f=Math.min(1,y),p()):f},e.paddingOuter=function(y){return arguments.length?(d=+y,p()):d},e.align=function(y){return arguments.length?(m=Math.max(0,Math.min(1,y)),p()):m},e.copy=function(){return ob(t(),[r,a]).round(c).paddingInner(f).paddingOuter(d).align(m)},vr.apply(p(),arguments)}function MM(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return MM(t())},e}function kF(){return MM(ob.apply(null,arguments).paddingInner(1))}function ub(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function zM(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Cs(){}var cs=.7,ud=1/cs,fo="\\s*([+-]?\\d+)\\s*",fs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Hr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_F=/^#([0-9a-f]{3,8})$/,CF=new RegExp(`^rgb\\(${fo},${fo},${fo}\\)$`),TF=new RegExp(`^rgb\\(${Hr},${Hr},${Hr}\\)$`),jF=new RegExp(`^rgba\\(${fo},${fo},${fo},${fs}\\)$`),MF=new RegExp(`^rgba\\(${Hr},${Hr},${Hr},${fs}\\)$`),zF=new RegExp(`^hsl\\(${fs},${Hr},${Hr}\\)$`),DF=new RegExp(`^hsla\\(${fs},${Hr},${Hr},${fs}\\)$`),ik={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};ub(Cs,ds,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ak,formatHex:ak,formatHex8:NF,formatHsl:PF,formatRgb:lk,toString:lk});function ak(){return this.rgb().formatHex()}function NF(){return this.rgb().formatHex8()}function PF(){return DM(this).formatHsl()}function lk(){return this.rgb().formatRgb()}function ds(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=_F.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ok(t):n===3?new Cn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?gf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?gf(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=CF.exec(e))?new Cn(t[1],t[2],t[3],1):(t=TF.exec(e))?new Cn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=jF.exec(e))?gf(t[1],t[2],t[3],t[4]):(t=MF.exec(e))?gf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=zF.exec(e))?ck(t[1],t[2]/100,t[3]/100,1):(t=DF.exec(e))?ck(t[1],t[2]/100,t[3]/100,t[4]):ik.hasOwnProperty(e)?ok(ik[e]):e==="transparent"?new Cn(NaN,NaN,NaN,0):null}function ok(e){return new Cn(e>>16&255,e>>8&255,e&255,1)}function gf(e,t,n,r){return r<=0&&(e=t=n=NaN),new Cn(e,t,n,r)}function RF(e){return e instanceof Cs||(e=ds(e)),e?(e=e.rgb(),new Cn(e.r,e.g,e.b,e.opacity)):new Cn}function Fg(e,t,n,r){return arguments.length===1?RF(e):new Cn(e,t,n,r??1)}function Cn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}ub(Cn,Fg,zM(Cs,{brighter(e){return e=e==null?ud:Math.pow(ud,e),new Cn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?cs:Math.pow(cs,e),new Cn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Cn(Xa(this.r),Xa(this.g),Xa(this.b),sd(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:uk,formatHex:uk,formatHex8:IF,formatRgb:sk,toString:sk}));function uk(){return`#${Va(this.r)}${Va(this.g)}${Va(this.b)}`}function IF(){return`#${Va(this.r)}${Va(this.g)}${Va(this.b)}${Va((isNaN(this.opacity)?1:this.opacity)*255)}`}function sk(){const e=sd(this.opacity);return`${e===1?"rgb(":"rgba("}${Xa(this.r)}, ${Xa(this.g)}, ${Xa(this.b)}${e===1?")":`, ${e})`}`}function sd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Xa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Va(e){return e=Xa(e),(e<16?"0":"")+e.toString(16)}function ck(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Er(e,t,n,r)}function DM(e){if(e instanceof Er)return new Er(e.h,e.s,e.l,e.opacity);if(e instanceof Cs||(e=ds(e)),!e)return new Er;if(e instanceof Er)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),o=Math.max(t,n,r),u=NaN,c=o-a,f=(o+a)/2;return c?(t===o?u=(n-r)/c+(n<r)*6:n===o?u=(r-t)/c+2:u=(t-n)/c+4,c/=f<.5?o+a:2-o-a,u*=60):c=f>0&&f<1?0:u,new Er(u,c,f,e.opacity)}function LF(e,t,n,r){return arguments.length===1?DM(e):new Er(e,t,n,r??1)}function Er(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}ub(Er,LF,zM(Cs,{brighter(e){return e=e==null?ud:Math.pow(ud,e),new Er(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?cs:Math.pow(cs,e),new Er(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,a=2*n-r;return new Cn(Ay(e>=240?e-240:e+120,a,r),Ay(e,a,r),Ay(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Er(fk(this.h),bf(this.s),bf(this.l),sd(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=sd(this.opacity);return`${e===1?"hsl(":"hsla("}${fk(this.h)}, ${bf(this.s)*100}%, ${bf(this.l)*100}%${e===1?")":`, ${e})`}`}}));function fk(e){return e=(e||0)%360,e<0?e+360:e}function bf(e){return Math.max(0,Math.min(1,e||0))}function Ay(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 ih=e=>()=>e;function NM(e,t){return function(n){return e+n*t}}function BF(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 Tne(e,t){var n=t-e;return n?NM(e,n>180||n<-180?n-360*Math.round(n/360):n):ih(isNaN(e)?t:e)}function UF(e){return(e=+e)==1?PM:function(t,n){return n-t?BF(t,n,e):ih(isNaN(t)?n:t)}}function PM(e,t){var n=t-e;return n?NM(e,n):ih(isNaN(e)?t:e)}const dk=(function e(t){var n=UF(t);function r(a,o){var u=n((a=Fg(a)).r,(o=Fg(o)).r),c=n(a.g,o.g),f=n(a.b,o.b),d=PM(a.opacity,o.opacity);return function(m){return a.r=u(m),a.g=c(m),a.b=f(m),a.opacity=d(m),a+""}}return r.gamma=e,r})(1);function qF(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(o){for(a=0;a<n;++a)r[a]=e[a]*(1-o)+t[a]*o;return r}}function HF(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function $F(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),o=new Array(n),u;for(u=0;u<r;++u)a[u]=To(e[u],t[u]);for(;u<n;++u)o[u]=t[u];return function(c){for(u=0;u<r;++u)o[u]=a[u](c);return o}}function FF(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function cd(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function VF(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=To(e[a],t[a]):r[a]=t[a];return function(o){for(a in n)r[a]=n[a](o);return r}}var Vg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ky=new RegExp(Vg.source,"g");function YF(e){return function(){return e}}function KF(e){return function(t){return e(t)+""}}function GF(e,t){var n=Vg.lastIndex=ky.lastIndex=0,r,a,o,u=-1,c=[],f=[];for(e=e+"",t=t+"";(r=Vg.exec(e))&&(a=ky.exec(t));)(o=a.index)>n&&(o=t.slice(n,o),c[u]?c[u]+=o:c[++u]=o),(r=r[0])===(a=a[0])?c[u]?c[u]+=a:c[++u]=a:(c[++u]=null,f.push({i:u,x:cd(r,a)})),n=ky.lastIndex;return n<t.length&&(o=t.slice(n),c[u]?c[u]+=o:c[++u]=o),c.length<2?f[0]?KF(f[0].x):YF(t):(t=f.length,function(d){for(var m=0,p;m<t;++m)c[(p=f[m]).i]=p.x(d);return c.join("")})}function To(e,t){var n=typeof t,r;return t==null||n==="boolean"?ih(t):(n==="number"?cd:n==="string"?(r=ds(t))?(t=r,dk):GF:t instanceof ds?dk:t instanceof Date?FF:HF(t)?qF:Array.isArray(t)?$F:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?VF:cd)(e,t)}function sb(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function XF(e,t){t===void 0&&(t=e,e=To);for(var n=0,r=t.length-1,a=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(a,a=t[++n]);return function(u){var c=Math.max(0,Math.min(r-1,Math.floor(u*=r)));return o[c](u-c)}}function ZF(e){return function(){return e}}function fd(e){return+e}var hk=[0,1];function hn(e){return e}function Yg(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:ZF(isNaN(t)?NaN:.5)}function WF(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function QF(e,t,n){var r=e[0],a=e[1],o=t[0],u=t[1];return a<r?(r=Yg(a,r),o=n(u,o)):(r=Yg(r,a),o=n(o,u)),function(c){return o(r(c))}}function JF(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),o=new Array(r),u=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++u<r;)a[u]=Yg(e[u],e[u+1]),o[u]=n(t[u],t[u+1]);return function(c){var f=_s(e,c,1,r)-1;return o[f](a[f](c))}}function Ts(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ah(){var e=hk,t=hk,n=To,r,a,o,u=hn,c,f,d;function m(){var y=Math.min(e.length,t.length);return u!==hn&&(u=WF(e[0],e[y-1])),c=y>2?JF:QF,f=d=null,p}function p(y){return y==null||isNaN(y=+y)?o:(f||(f=c(e.map(r),t,n)))(r(u(y)))}return p.invert=function(y){return u(a((d||(d=c(t,e.map(r),cd)))(y)))},p.domain=function(y){return arguments.length?(e=Array.from(y,fd),m()):e.slice()},p.range=function(y){return arguments.length?(t=Array.from(y),m()):t.slice()},p.rangeRound=function(y){return t=Array.from(y),n=sb,m()},p.clamp=function(y){return arguments.length?(u=y?!0:hn,m()):u!==hn},p.interpolate=function(y){return arguments.length?(n=y,m()):n},p.unknown=function(y){return arguments.length?(o=y,p):o},function(y,g){return r=y,a=g,m()}}function cb(){return ah()(hn,hn)}function eV(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function dd(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function go(e){return e=dd(Math.abs(e)),e?e[1]:NaN}function tV(e,t){return function(n,r){for(var a=n.length,o=[],u=0,c=e[0],f=0;a>0&&c>0&&(f+c+1>r&&(c=Math.max(1,r-f)),o.push(n.substring(a-=c,a+c)),!((f+=c+1)>r));)c=e[u=(u+1)%e.length];return o.reverse().join(t)}}function nV(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var rV=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function hs(e){if(!(t=rV.exec(e)))throw new Error("invalid format: "+e);var t;return new fb({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}hs.prototype=fb.prototype;function fb(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}fb.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function iV(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var hd;function aV(e,t){var n=dd(e,t);if(!n)return hd=void 0,e.toPrecision(t);var r=n[0],a=n[1],o=a-(hd=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+dd(e,Math.max(0,t+o-1))[0]}function mk(e,t){var n=dd(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const pk={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:eV,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>mk(e*100,t),r:mk,s:aV,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function vk(e){return e}var yk=Array.prototype.map,gk=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function lV(e){var t=e.grouping===void 0||e.thousands===void 0?vk:tV(yk.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?vk:nV(yk.call(e.numerals,String)),u=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function d(p,y){p=hs(p);var g=p.fill,x=p.align,w=p.sign,S=p.symbol,O=p.zero,C=p.width,T=p.comma,D=p.precision,P=p.trim,k=p.type;k==="n"?(T=!0,k="g"):pk[k]||(D===void 0&&(D=12),P=!0,k="g"),(O||g==="0"&&x==="=")&&(O=!0,g="0",x="=");var j=(y&&y.prefix!==void 0?y.prefix:"")+(S==="$"?n:S==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():""),U=(S==="$"?r:/[%p]/.test(k)?u:"")+(y&&y.suffix!==void 0?y.suffix:""),$=pk[k],I=/[defgprs%]/.test(k);D=D===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,D)):Math.max(0,Math.min(20,D));function Z(q){var oe=j,ne=U,Q,L,K;if(k==="c")ne=$(q)+ne,q="";else{q=+q;var J=q<0||1/q<0;if(q=isNaN(q)?f:$(Math.abs(q),D),P&&(q=iV(q)),J&&+q==0&&w!=="+"&&(J=!1),oe=(J?w==="("?w:c:w==="-"||w==="("?"":w)+oe,ne=(k==="s"&&!isNaN(q)&&hd!==void 0?gk[8+hd/3]:"")+ne+(J&&w==="("?")":""),I){for(Q=-1,L=q.length;++Q<L;)if(K=q.charCodeAt(Q),48>K||K>57){ne=(K===46?a+q.slice(Q+1):q.slice(Q))+ne,q=q.slice(0,Q);break}}}T&&!O&&(q=t(q,1/0));var re=oe.length+q.length+ne.length,N=re<C?new Array(C-re+1).join(g):"";switch(T&&O&&(q=t(N+q,N.length?C-ne.length:1/0),N=""),x){case"<":q=oe+q+ne+N;break;case"=":q=oe+N+q+ne;break;case"^":q=N.slice(0,re=N.length>>1)+oe+q+ne+N.slice(re);break;default:q=N+oe+q+ne;break}return o(q)}return Z.toString=function(){return p+""},Z}function m(p,y){var g=Math.max(-8,Math.min(8,Math.floor(go(y)/3)))*3,x=Math.pow(10,-g),w=d((p=hs(p),p.type="f",p),{suffix:gk[8+g/3]});return function(S){return w(x*S)}}return{format:d,formatPrefix:m}}var xf,db,RM;oV({thousands:",",grouping:[3],currency:["$",""]});function oV(e){return xf=lV(e),db=xf.format,RM=xf.formatPrefix,xf}function uV(e){return Math.max(0,-go(Math.abs(e)))}function sV(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(go(t)/3)))*3-go(Math.abs(e)))}function cV(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,go(t)-go(e))+1}function IM(e,t,n,r){var a=Hg(e,t,n),o;switch(r=hs(r??",f"),r.type){case"s":{var u=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=sV(a,u))&&(r.precision=o),RM(r,u)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=cV(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=uV(a))&&(r.precision=o-(r.type==="%")*2);break}}return db(r)}function ya(e){var t=e.domain;return e.ticks=function(n){var r=t();return Ug(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return IM(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,o=r.length-1,u=r[a],c=r[o],f,d,m=10;for(c<u&&(d=u,u=c,c=d,d=a,a=o,o=d);m-- >0;){if(d=qg(u,c,n),d===f)return r[a]=u,r[o]=c,t(r);if(d>0)u=Math.floor(u/d)*d,c=Math.ceil(c/d)*d;else if(d<0)u=Math.ceil(u*d)/d,c=Math.floor(c*d)/d;else break;f=d}return e},e}function LM(){var e=cb();return e.copy=function(){return Ts(e,LM())},vr.apply(e,arguments),ya(e)}function BM(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,fd),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return BM(e).unknown(t)},e=arguments.length?Array.from(e,fd):[0,1],ya(n)}function UM(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],o=e[r],u;return o<a&&(u=n,n=r,r=u,u=a,a=o,o=u),e[n]=t.floor(a),e[r]=t.ceil(o),e}function bk(e){return Math.log(e)}function xk(e){return Math.exp(e)}function fV(e){return-Math.log(-e)}function dV(e){return-Math.exp(-e)}function hV(e){return isFinite(e)?+("1e"+e):e<0?0:e}function mV(e){return e===10?hV:e===Math.E?Math.exp:t=>Math.pow(e,t)}function pV(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function wk(e){return(t,n)=>-e(-t,n)}function hb(e){const t=e(bk,xk),n=t.domain;let r=10,a,o;function u(){return a=pV(r),o=mV(r),n()[0]<0?(a=wk(a),o=wk(o),e(fV,dV)):e(bk,xk),t}return t.base=function(c){return arguments.length?(r=+c,u()):r},t.domain=function(c){return arguments.length?(n(c),u()):n()},t.ticks=c=>{const f=n();let d=f[0],m=f[f.length-1];const p=m<d;p&&([d,m]=[m,d]);let y=a(d),g=a(m),x,w;const S=c==null?10:+c;let O=[];if(!(r%1)&&g-y<S){if(y=Math.floor(y),g=Math.ceil(g),d>0){for(;y<=g;++y)for(x=1;x<r;++x)if(w=y<0?x/o(-y):x*o(y),!(w<d)){if(w>m)break;O.push(w)}}else for(;y<=g;++y)for(x=r-1;x>=1;--x)if(w=y>0?x/o(-y):x*o(y),!(w<d)){if(w>m)break;O.push(w)}O.length*2<S&&(O=Ug(d,m,S))}else O=Ug(y,g,Math.min(g-y,S)).map(o);return p?O.reverse():O},t.tickFormat=(c,f)=>{if(c==null&&(c=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=hs(f)).precision==null&&(f.trim=!0),f=db(f)),c===1/0)return f;const d=Math.max(1,r*c/t.ticks().length);return m=>{let p=m/o(Math.round(a(m)));return p*r<r-.5&&(p*=r),p<=d?f(m):""}},t.nice=()=>n(UM(n(),{floor:c=>o(Math.floor(a(c))),ceil:c=>o(Math.ceil(a(c)))})),t}function qM(){const e=hb(ah()).domain([1,10]);return e.copy=()=>Ts(e,qM()).base(e.base()),vr.apply(e,arguments),e}function Sk(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Ok(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function mb(e){var t=1,n=e(Sk(t),Ok(t));return n.constant=function(r){return arguments.length?e(Sk(t=+r),Ok(t)):t},ya(n)}function HM(){var e=mb(ah());return e.copy=function(){return Ts(e,HM()).constant(e.constant())},vr.apply(e,arguments)}function Ek(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function vV(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function yV(e){return e<0?-e*e:e*e}function pb(e){var t=e(hn,hn),n=1;function r(){return n===1?e(hn,hn):n===.5?e(vV,yV):e(Ek(n),Ek(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},ya(t)}function vb(){var e=pb(ah());return e.copy=function(){return Ts(e,vb()).exponent(e.exponent())},vr.apply(e,arguments),e}function gV(){return vb.apply(null,arguments).exponent(.5)}function Ak(e){return Math.sign(e)*e*e}function bV(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function $M(){var e=cb(),t=[0,1],n=!1,r;function a(o){var u=bV(e(o));return isNaN(u)?r:n?Math.round(u):u}return a.invert=function(o){return e.invert(Ak(o))},a.domain=function(o){return arguments.length?(e.domain(o),a):e.domain()},a.range=function(o){return arguments.length?(e.range((t=Array.from(o,fd)).map(Ak)),a):t.slice()},a.rangeRound=function(o){return a.range(o).round(!0)},a.round=function(o){return arguments.length?(n=!!o,a):n},a.clamp=function(o){return arguments.length?(e.clamp(o),a):e.clamp()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.copy=function(){return $M(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},vr.apply(a,arguments),ya(a)}function FM(){var e=[],t=[],n=[],r;function a(){var u=0,c=Math.max(1,t.length);for(n=new Array(c-1);++u<c;)n[u-1]=EF(e,u/c);return o}function o(u){return u==null||isNaN(u=+u)?r:t[_s(n,u)]}return o.invertExtent=function(u){var c=t.indexOf(u);return c<0?[NaN,NaN]:[c>0?n[c-1]:e[0],c<n.length?n[c]:e[e.length-1]]},o.domain=function(u){if(!arguments.length)return e.slice();e=[];for(let c of u)c!=null&&!isNaN(c=+c)&&e.push(c);return e.sort(ha),a()},o.range=function(u){return arguments.length?(t=Array.from(u),a()):t.slice()},o.unknown=function(u){return arguments.length?(r=u,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return FM().domain(e).range(t).unknown(r)},vr.apply(o,arguments)}function VM(){var e=0,t=1,n=1,r=[.5],a=[0,1],o;function u(f){return f!=null&&f<=f?a[_s(r,f,0,n)]:o}function c(){var f=-1;for(r=new Array(n);++f<n;)r[f]=((f+1)*t-(f-n)*e)/(n+1);return u}return u.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,c()):[e,t]},u.range=function(f){return arguments.length?(n=(a=Array.from(f)).length-1,c()):a.slice()},u.invertExtent=function(f){var d=a.indexOf(f);return d<0?[NaN,NaN]:d<1?[e,r[0]]:d>=n?[r[n-1],t]:[r[d-1],r[d]]},u.unknown=function(f){return arguments.length&&(o=f),u},u.thresholds=function(){return r.slice()},u.copy=function(){return VM().domain([e,t]).range(a).unknown(o)},vr.apply(ya(u),arguments)}function YM(){var e=[.5],t=[0,1],n,r=1;function a(o){return o!=null&&o<=o?t[_s(e,o,0,r)]:n}return a.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(o){var u=t.indexOf(o);return[e[u-1],e[u]]},a.unknown=function(o){return arguments.length?(n=o,a):n},a.copy=function(){return YM().domain(e).range(t).unknown(n)},vr.apply(a,arguments)}const _y=new Date,Cy=new Date;function Nt(e,t,n,r){function a(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return a.floor=o=>(e(o=new Date(+o)),o),a.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),a.round=o=>{const u=a(o),c=a.ceil(o);return o-u<c-o?u:c},a.offset=(o,u)=>(t(o=new Date(+o),u==null?1:Math.floor(u)),o),a.range=(o,u,c)=>{const f=[];if(o=a.ceil(o),c=c==null?1:Math.floor(c),!(o<u)||!(c>0))return f;let d;do f.push(d=new Date(+o)),t(o,c),e(o);while(d<o&&o<u);return f},a.filter=o=>Nt(u=>{if(u>=u)for(;e(u),!o(u);)u.setTime(u-1)},(u,c)=>{if(u>=u)if(c<0)for(;++c<=0;)for(;t(u,-1),!o(u););else for(;--c>=0;)for(;t(u,1),!o(u););}),n&&(a.count=(o,u)=>(_y.setTime(+o),Cy.setTime(+u),e(_y),e(Cy),Math.floor(n(_y,Cy))),a.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?a.filter(r?u=>r(u)%o===0:u=>a.count(0,u)%o===0):a)),a}const md=Nt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);md.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Nt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):md);md.range;const pi=1e3,dr=pi*60,vi=dr*60,Si=vi*24,yb=Si*7,kk=Si*30,Ty=Si*365,Ya=Nt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*pi)},(e,t)=>(t-e)/pi,e=>e.getUTCSeconds());Ya.range;const gb=Nt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*pi)},(e,t)=>{e.setTime(+e+t*dr)},(e,t)=>(t-e)/dr,e=>e.getMinutes());gb.range;const bb=Nt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*dr)},(e,t)=>(t-e)/dr,e=>e.getUTCMinutes());bb.range;const xb=Nt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*pi-e.getMinutes()*dr)},(e,t)=>{e.setTime(+e+t*vi)},(e,t)=>(t-e)/vi,e=>e.getHours());xb.range;const wb=Nt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*vi)},(e,t)=>(t-e)/vi,e=>e.getUTCHours());wb.range;const js=Nt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*dr)/Si,e=>e.getDate()-1);js.range;const lh=Nt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Si,e=>e.getUTCDate()-1);lh.range;const KM=Nt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Si,e=>Math.floor(e/Si));KM.range;function ll(e){return Nt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*dr)/yb)}const oh=ll(0),pd=ll(1),xV=ll(2),wV=ll(3),bo=ll(4),SV=ll(5),OV=ll(6);oh.range;pd.range;xV.range;wV.range;bo.range;SV.range;OV.range;function ol(e){return Nt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/yb)}const uh=ol(0),vd=ol(1),EV=ol(2),AV=ol(3),xo=ol(4),kV=ol(5),_V=ol(6);uh.range;vd.range;EV.range;AV.range;xo.range;kV.range;_V.range;const Sb=Nt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Sb.range;const Ob=Nt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Ob.range;const Oi=Nt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Oi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Nt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Oi.range;const Ei=Nt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Ei.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Nt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Ei.range;function GM(e,t,n,r,a,o){const u=[[Ya,1,pi],[Ya,5,5*pi],[Ya,15,15*pi],[Ya,30,30*pi],[o,1,dr],[o,5,5*dr],[o,15,15*dr],[o,30,30*dr],[a,1,vi],[a,3,3*vi],[a,6,6*vi],[a,12,12*vi],[r,1,Si],[r,2,2*Si],[n,1,yb],[t,1,kk],[t,3,3*kk],[e,1,Ty]];function c(d,m,p){const y=m<d;y&&([d,m]=[m,d]);const g=p&&typeof p.range=="function"?p:f(d,m,p),x=g?g.range(d,+m+1):[];return y?x.reverse():x}function f(d,m,p){const y=Math.abs(m-d)/p,g=ab(([,,S])=>S).right(u,y);if(g===u.length)return e.every(Hg(d/Ty,m/Ty,p));if(g===0)return md.every(Math.max(Hg(d,m,p),1));const[x,w]=u[y/u[g-1][2]<u[g][2]/y?g-1:g];return x.every(w)}return[c,f]}const[CV,TV]=GM(Ei,Ob,uh,KM,wb,bb),[jV,MV]=GM(Oi,Sb,oh,js,xb,gb);function jy(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function My(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Hu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function zV(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,o=e.days,u=e.shortDays,c=e.months,f=e.shortMonths,d=$u(a),m=Fu(a),p=$u(o),y=Fu(o),g=$u(u),x=Fu(u),w=$u(c),S=Fu(c),O=$u(f),C=Fu(f),T={a:K,A:J,b:re,B:N,c:null,d:zk,e:zk,f:tY,g:fY,G:hY,H:QV,I:JV,j:eY,L:XM,m:nY,M:rY,p:R,q:V,Q:Pk,s:Rk,S:iY,u:aY,U:lY,V:oY,w:uY,W:sY,x:null,X:null,y:cY,Y:dY,Z:mY,"%":Nk},D={a:z,A:se,b:ye,B:ve,c:null,d:Dk,e:Dk,f:gY,g:CY,G:jY,H:pY,I:vY,j:yY,L:WM,m:bY,M:xY,p:Se,q:ge,Q:Pk,s:Rk,S:wY,u:SY,U:OY,V:EY,w:AY,W:kY,x:null,X:null,y:_Y,Y:TY,Z:MY,"%":Nk},P={a:I,A:Z,b:q,B:oe,c:ne,d:jk,e:jk,f:GV,g:Tk,G:Ck,H:Mk,I:Mk,j:FV,L:KV,m:$V,M:VV,p:$,q:HV,Q:ZV,s:WV,S:YV,u:IV,U:LV,V:BV,w:RV,W:UV,x:Q,X:L,y:Tk,Y:Ck,Z:qV,"%":XV};T.x=k(n,T),T.X=k(r,T),T.c=k(t,T),D.x=k(n,D),D.X=k(r,D),D.c=k(t,D);function k(Y,he){return function(be){var ce=[],jt=-1,Ie=0,St=Y.length,Ot,Gn,ba;for(be instanceof Date||(be=new Date(+be));++jt<St;)Y.charCodeAt(jt)===37&&(ce.push(Y.slice(Ie,jt)),(Gn=_k[Ot=Y.charAt(++jt)])!=null?Ot=Y.charAt(++jt):Gn=Ot==="e"?" ":"0",(ba=he[Ot])&&(Ot=ba(be,Gn)),ce.push(Ot),Ie=jt+1);return ce.push(Y.slice(Ie,jt)),ce.join("")}}function j(Y,he){return function(be){var ce=Hu(1900,void 0,1),jt=U(ce,Y,be+="",0),Ie,St;if(jt!=be.length)return null;if("Q"in ce)return new Date(ce.Q);if("s"in ce)return new Date(ce.s*1e3+("L"in ce?ce.L:0));if(he&&!("Z"in ce)&&(ce.Z=0),"p"in ce&&(ce.H=ce.H%12+ce.p*12),ce.m===void 0&&(ce.m="q"in ce?ce.q:0),"V"in ce){if(ce.V<1||ce.V>53)return null;"w"in ce||(ce.w=1),"Z"in ce?(Ie=My(Hu(ce.y,0,1)),St=Ie.getUTCDay(),Ie=St>4||St===0?vd.ceil(Ie):vd(Ie),Ie=lh.offset(Ie,(ce.V-1)*7),ce.y=Ie.getUTCFullYear(),ce.m=Ie.getUTCMonth(),ce.d=Ie.getUTCDate()+(ce.w+6)%7):(Ie=jy(Hu(ce.y,0,1)),St=Ie.getDay(),Ie=St>4||St===0?pd.ceil(Ie):pd(Ie),Ie=js.offset(Ie,(ce.V-1)*7),ce.y=Ie.getFullYear(),ce.m=Ie.getMonth(),ce.d=Ie.getDate()+(ce.w+6)%7)}else("W"in ce||"U"in ce)&&("w"in ce||(ce.w="u"in ce?ce.u%7:"W"in ce?1:0),St="Z"in ce?My(Hu(ce.y,0,1)).getUTCDay():jy(Hu(ce.y,0,1)).getDay(),ce.m=0,ce.d="W"in ce?(ce.w+6)%7+ce.W*7-(St+5)%7:ce.w+ce.U*7-(St+6)%7);return"Z"in ce?(ce.H+=ce.Z/100|0,ce.M+=ce.Z%100,My(ce)):jy(ce)}}function U(Y,he,be,ce){for(var jt=0,Ie=he.length,St=be.length,Ot,Gn;jt<Ie;){if(ce>=St)return-1;if(Ot=he.charCodeAt(jt++),Ot===37){if(Ot=he.charAt(jt++),Gn=P[Ot in _k?he.charAt(jt++):Ot],!Gn||(ce=Gn(Y,be,ce))<0)return-1}else if(Ot!=be.charCodeAt(ce++))return-1}return ce}function $(Y,he,be){var ce=d.exec(he.slice(be));return ce?(Y.p=m.get(ce[0].toLowerCase()),be+ce[0].length):-1}function I(Y,he,be){var ce=g.exec(he.slice(be));return ce?(Y.w=x.get(ce[0].toLowerCase()),be+ce[0].length):-1}function Z(Y,he,be){var ce=p.exec(he.slice(be));return ce?(Y.w=y.get(ce[0].toLowerCase()),be+ce[0].length):-1}function q(Y,he,be){var ce=O.exec(he.slice(be));return ce?(Y.m=C.get(ce[0].toLowerCase()),be+ce[0].length):-1}function oe(Y,he,be){var ce=w.exec(he.slice(be));return ce?(Y.m=S.get(ce[0].toLowerCase()),be+ce[0].length):-1}function ne(Y,he,be){return U(Y,t,he,be)}function Q(Y,he,be){return U(Y,n,he,be)}function L(Y,he,be){return U(Y,r,he,be)}function K(Y){return u[Y.getDay()]}function J(Y){return o[Y.getDay()]}function re(Y){return f[Y.getMonth()]}function N(Y){return c[Y.getMonth()]}function R(Y){return a[+(Y.getHours()>=12)]}function V(Y){return 1+~~(Y.getMonth()/3)}function z(Y){return u[Y.getUTCDay()]}function se(Y){return o[Y.getUTCDay()]}function ye(Y){return f[Y.getUTCMonth()]}function ve(Y){return c[Y.getUTCMonth()]}function Se(Y){return a[+(Y.getUTCHours()>=12)]}function ge(Y){return 1+~~(Y.getUTCMonth()/3)}return{format:function(Y){var he=k(Y+="",T);return he.toString=function(){return Y},he},parse:function(Y){var he=j(Y+="",!1);return he.toString=function(){return Y},he},utcFormat:function(Y){var he=k(Y+="",D);return he.toString=function(){return Y},he},utcParse:function(Y){var he=j(Y+="",!0);return he.toString=function(){return Y},he}}}var _k={"-":"",_:" ",0:"0"},$t=/^\s*\d+/,DV=/^%/,NV=/[\\^$*+?|[\]().{}]/g;function Ve(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",o=a.length;return r+(o<n?new Array(n-o+1).join(t)+a:a)}function PV(e){return e.replace(NV,"\\$&")}function $u(e){return new RegExp("^(?:"+e.map(PV).join("|")+")","i")}function Fu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function RV(e,t,n){var r=$t.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function IV(e,t,n){var r=$t.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function LV(e,t,n){var r=$t.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function BV(e,t,n){var r=$t.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function UV(e,t,n){var r=$t.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Ck(e,t,n){var r=$t.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Tk(e,t,n){var r=$t.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function qV(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function HV(e,t,n){var r=$t.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function $V(e,t,n){var r=$t.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function jk(e,t,n){var r=$t.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function FV(e,t,n){var r=$t.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Mk(e,t,n){var r=$t.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function VV(e,t,n){var r=$t.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function YV(e,t,n){var r=$t.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function KV(e,t,n){var r=$t.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function GV(e,t,n){var r=$t.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function XV(e,t,n){var r=DV.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ZV(e,t,n){var r=$t.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function WV(e,t,n){var r=$t.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function zk(e,t){return Ve(e.getDate(),t,2)}function QV(e,t){return Ve(e.getHours(),t,2)}function JV(e,t){return Ve(e.getHours()%12||12,t,2)}function eY(e,t){return Ve(1+js.count(Oi(e),e),t,3)}function XM(e,t){return Ve(e.getMilliseconds(),t,3)}function tY(e,t){return XM(e,t)+"000"}function nY(e,t){return Ve(e.getMonth()+1,t,2)}function rY(e,t){return Ve(e.getMinutes(),t,2)}function iY(e,t){return Ve(e.getSeconds(),t,2)}function aY(e){var t=e.getDay();return t===0?7:t}function lY(e,t){return Ve(oh.count(Oi(e)-1,e),t,2)}function ZM(e){var t=e.getDay();return t>=4||t===0?bo(e):bo.ceil(e)}function oY(e,t){return e=ZM(e),Ve(bo.count(Oi(e),e)+(Oi(e).getDay()===4),t,2)}function uY(e){return e.getDay()}function sY(e,t){return Ve(pd.count(Oi(e)-1,e),t,2)}function cY(e,t){return Ve(e.getFullYear()%100,t,2)}function fY(e,t){return e=ZM(e),Ve(e.getFullYear()%100,t,2)}function dY(e,t){return Ve(e.getFullYear()%1e4,t,4)}function hY(e,t){var n=e.getDay();return e=n>=4||n===0?bo(e):bo.ceil(e),Ve(e.getFullYear()%1e4,t,4)}function mY(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ve(t/60|0,"0",2)+Ve(t%60,"0",2)}function Dk(e,t){return Ve(e.getUTCDate(),t,2)}function pY(e,t){return Ve(e.getUTCHours(),t,2)}function vY(e,t){return Ve(e.getUTCHours()%12||12,t,2)}function yY(e,t){return Ve(1+lh.count(Ei(e),e),t,3)}function WM(e,t){return Ve(e.getUTCMilliseconds(),t,3)}function gY(e,t){return WM(e,t)+"000"}function bY(e,t){return Ve(e.getUTCMonth()+1,t,2)}function xY(e,t){return Ve(e.getUTCMinutes(),t,2)}function wY(e,t){return Ve(e.getUTCSeconds(),t,2)}function SY(e){var t=e.getUTCDay();return t===0?7:t}function OY(e,t){return Ve(uh.count(Ei(e)-1,e),t,2)}function QM(e){var t=e.getUTCDay();return t>=4||t===0?xo(e):xo.ceil(e)}function EY(e,t){return e=QM(e),Ve(xo.count(Ei(e),e)+(Ei(e).getUTCDay()===4),t,2)}function AY(e){return e.getUTCDay()}function kY(e,t){return Ve(vd.count(Ei(e)-1,e),t,2)}function _Y(e,t){return Ve(e.getUTCFullYear()%100,t,2)}function CY(e,t){return e=QM(e),Ve(e.getUTCFullYear()%100,t,2)}function TY(e,t){return Ve(e.getUTCFullYear()%1e4,t,4)}function jY(e,t){var n=e.getUTCDay();return e=n>=4||n===0?xo(e):xo.ceil(e),Ve(e.getUTCFullYear()%1e4,t,4)}function MY(){return"+0000"}function Nk(){return"%"}function Pk(e){return+e}function Rk(e){return Math.floor(+e/1e3)}var to,JM,ez;zY({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function zY(e){return to=zV(e),JM=to.format,to.parse,ez=to.utcFormat,to.utcParse,to}function DY(e){return new Date(e)}function NY(e){return e instanceof Date?+e:+new Date(+e)}function Eb(e,t,n,r,a,o,u,c,f,d){var m=cb(),p=m.invert,y=m.domain,g=d(".%L"),x=d(":%S"),w=d("%I:%M"),S=d("%I %p"),O=d("%a %d"),C=d("%b %d"),T=d("%B"),D=d("%Y");function P(k){return(f(k)<k?g:c(k)<k?x:u(k)<k?w:o(k)<k?S:r(k)<k?a(k)<k?O:C:n(k)<k?T:D)(k)}return m.invert=function(k){return new Date(p(k))},m.domain=function(k){return arguments.length?y(Array.from(k,NY)):y().map(DY)},m.ticks=function(k){var j=y();return e(j[0],j[j.length-1],k??10)},m.tickFormat=function(k,j){return j==null?P:d(j)},m.nice=function(k){var j=y();return(!k||typeof k.range!="function")&&(k=t(j[0],j[j.length-1],k??10)),k?y(UM(j,k)):m},m.copy=function(){return Ts(m,Eb(e,t,n,r,a,o,u,c,f,d))},m}function PY(){return vr.apply(Eb(jV,MV,Oi,Sb,oh,js,xb,gb,Ya,JM).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function RY(){return vr.apply(Eb(CV,TV,Ei,Ob,uh,lh,wb,bb,Ya,ez).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function sh(){var e=0,t=1,n,r,a,o,u=hn,c=!1,f;function d(p){return p==null||isNaN(p=+p)?f:u(a===0?.5:(p=(o(p)-n)*a,c?Math.max(0,Math.min(1,p)):p))}d.domain=function(p){return arguments.length?([e,t]=p,n=o(e=+e),r=o(t=+t),a=n===r?0:1/(r-n),d):[e,t]},d.clamp=function(p){return arguments.length?(c=!!p,d):c},d.interpolator=function(p){return arguments.length?(u=p,d):u};function m(p){return function(y){var g,x;return arguments.length?([g,x]=y,u=p(g,x),d):[u(0),u(1)]}}return d.range=m(To),d.rangeRound=m(sb),d.unknown=function(p){return arguments.length?(f=p,d):f},function(p){return o=p,n=p(e),r=p(t),a=n===r?0:1/(r-n),d}}function ga(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function tz(){var e=ya(sh()(hn));return e.copy=function(){return ga(e,tz())},Mi.apply(e,arguments)}function nz(){var e=hb(sh()).domain([1,10]);return e.copy=function(){return ga(e,nz()).base(e.base())},Mi.apply(e,arguments)}function rz(){var e=mb(sh());return e.copy=function(){return ga(e,rz()).constant(e.constant())},Mi.apply(e,arguments)}function Ab(){var e=pb(sh());return e.copy=function(){return ga(e,Ab()).exponent(e.exponent())},Mi.apply(e,arguments)}function IY(){return Ab.apply(null,arguments).exponent(.5)}function iz(){var e=[],t=hn;function n(r){if(r!=null&&!isNaN(r=+r))return t((_s(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let a of r)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(ha),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,a)=>t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,o)=>OF(e,o/r))},n.copy=function(){return iz(t).domain(e)},Mi.apply(n,arguments)}function ch(){var e=0,t=.5,n=1,r=1,a,o,u,c,f,d=hn,m,p=!1,y;function g(w){return isNaN(w=+w)?y:(w=.5+((w=+m(w))-o)*(r*w<r*o?c:f),d(p?Math.max(0,Math.min(1,w)):w))}g.domain=function(w){return arguments.length?([e,t,n]=w,a=m(e=+e),o=m(t=+t),u=m(n=+n),c=a===o?0:.5/(o-a),f=o===u?0:.5/(u-o),r=o<a?-1:1,g):[e,t,n]},g.clamp=function(w){return arguments.length?(p=!!w,g):p},g.interpolator=function(w){return arguments.length?(d=w,g):d};function x(w){return function(S){var O,C,T;return arguments.length?([O,C,T]=S,d=XF(w,[O,C,T]),g):[d(0),d(.5),d(1)]}}return g.range=x(To),g.rangeRound=x(sb),g.unknown=function(w){return arguments.length?(y=w,g):y},function(w){return m=w,a=w(e),o=w(t),u=w(n),c=a===o?0:.5/(o-a),f=o===u?0:.5/(u-o),r=o<a?-1:1,g}}function az(){var e=ya(ch()(hn));return e.copy=function(){return ga(e,az())},Mi.apply(e,arguments)}function lz(){var e=hb(ch()).domain([.1,1,10]);return e.copy=function(){return ga(e,lz()).base(e.base())},Mi.apply(e,arguments)}function oz(){var e=mb(ch());return e.copy=function(){return ga(e,oz()).constant(e.constant())},Mi.apply(e,arguments)}function kb(){var e=pb(ch());return e.copy=function(){return ga(e,kb()).exponent(e.exponent())},Mi.apply(e,arguments)}function LY(){return kb.apply(null,arguments).exponent(.5)}const Gu=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:ob,scaleDiverging:az,scaleDivergingLog:lz,scaleDivergingPow:kb,scaleDivergingSqrt:LY,scaleDivergingSymlog:oz,scaleIdentity:BM,scaleImplicit:$g,scaleLinear:LM,scaleLog:qM,scaleOrdinal:lb,scalePoint:kF,scalePow:vb,scaleQuantile:FM,scaleQuantize:VM,scaleRadial:$M,scaleSequential:tz,scaleSequentialLog:nz,scaleSequentialPow:Ab,scaleSequentialQuantile:iz,scaleSequentialSqrt:IY,scaleSequentialSymlog:rz,scaleSqrt:gV,scaleSymlog:HM,scaleThreshold:YM,scaleTime:PY,scaleUtc:RY,tickFormat:IM},Symbol.toStringTag,{value:"Module"}));var zi=e=>e.chartData,uz=ee([zi],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),sz=(e,t,n,r)=>r?uz(e):zi(e),BY=(e,t,n)=>n?uz(e):zi(e);function Ai(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(qe(t)&&qe(n))return!0}return!1}function Ik(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function cz(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[n,r]=e,a,o;if(qe(n))a=n;else if(typeof n=="function")return;if(qe(r))o=r;else if(typeof r=="function")return;var u=[a,o];if(Ai(u))return u}}function UY(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(Ai(r))return Ik(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[a,o]=e,u,c;if(a==="auto")t!=null&&(u=Math.min(...t));else if(we(a))u=a;else if(typeof a=="function")try{t!=null&&(u=a(t==null?void 0:t[0]))}catch{}else if(typeof a=="string"&&XA.test(a)){var f=XA.exec(a);if(f==null||f[1]==null||t==null)u=void 0;else{var d=+f[1];u=t[0]-d}}else u=t==null?void 0:t[0];if(o==="auto")t!=null&&(c=Math.max(...t));else if(we(o))c=o;else if(typeof o=="function")try{t!=null&&(c=o(t==null?void 0:t[1]))}catch{}else if(typeof o=="string"&&ZA.test(o)){var m=ZA.exec(o);if(m==null||m[1]==null||t==null)c=void 0;else{var p=+m[1];c=t[1]+p}}else c=t==null?void 0:t[1];var y=[u,c];if(Ai(y))return t==null?y:Ik(y,t,n)}}}var jo=1e9,qY={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Cb,mt=!0,pr="[DecimalError] ",Za=pr+"Invalid argument: ",_b=pr+"Exponent out of range: ",Mo=Math.floor,Ha=Math.pow,HY=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Hn,Ut=1e7,ct=7,fz=9007199254740991,yd=Mo(fz/ct),me={};me.absoluteValue=me.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};me.comparedTo=me.cmp=function(e){var t,n,r,a,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,a=e.d.length,t=0,n=r<a?r:a;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===a?0:r>a^o.s<0?1:-1};me.decimalPlaces=me.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*ct;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};me.dividedBy=me.div=function(e){return yi(this,new this.constructor(e))};me.dividedToIntegerBy=me.idiv=function(e){var t=this,n=t.constructor;return rt(yi(t,new n(e),0,1),n.precision)};me.equals=me.eq=function(e){return!this.cmp(e)};me.exponent=function(){return Tt(this)};me.greaterThan=me.gt=function(e){return this.cmp(e)>0};me.greaterThanOrEqualTo=me.gte=function(e){return this.cmp(e)>=0};me.isInteger=me.isint=function(){return this.e>this.d.length-2};me.isNegative=me.isneg=function(){return this.s<0};me.isPositive=me.ispos=function(){return this.s>0};me.isZero=function(){return this.s===0};me.lessThan=me.lt=function(e){return this.cmp(e)<0};me.lessThanOrEqualTo=me.lte=function(e){return this.cmp(e)<1};me.logarithm=me.log=function(e){var t,n=this,r=n.constructor,a=r.precision,o=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Hn))throw Error(pr+"NaN");if(n.s<1)throw Error(pr+(n.s?"NaN":"-Infinity"));return n.eq(Hn)?new r(0):(mt=!1,t=yi(ms(n,o),ms(e,o),o),mt=!0,rt(t,a))};me.minus=me.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?mz(t,e):dz(t,(e.s=-e.s,e))};me.modulo=me.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(pr+"NaN");return n.s?(mt=!1,t=yi(n,e,0,1).times(e),mt=!0,n.minus(t)):rt(new r(n),a)};me.naturalExponential=me.exp=function(){return hz(this)};me.naturalLogarithm=me.ln=function(){return ms(this)};me.negated=me.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};me.plus=me.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?dz(t,e):mz(t,(e.s=-e.s,e))};me.precision=me.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Za+e);if(t=Tt(a)+1,r=a.d.length-1,n=r*ct+1,r=a.d[r],r){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};me.squareRoot=me.sqrt=function(){var e,t,n,r,a,o,u,c=this,f=c.constructor;if(c.s<1){if(!c.s)return new f(0);throw Error(pr+"NaN")}for(e=Tt(c),mt=!1,a=Math.sqrt(+c),a==0||a==1/0?(t=qr(c.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Mo((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new f(t)):r=new f(a.toString()),n=f.precision,a=u=n+3;;)if(o=r,r=o.plus(yi(c,o,u+2)).times(.5),qr(o.d).slice(0,u)===(t=qr(r.d)).slice(0,u)){if(t=t.slice(u-3,u+1),a==u&&t=="4999"){if(rt(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if(t!="9999")break;u+=4}return mt=!0,rt(r,n)};me.times=me.mul=function(e){var t,n,r,a,o,u,c,f,d,m=this,p=m.constructor,y=m.d,g=(e=new p(e)).d;if(!m.s||!e.s)return new p(0);for(e.s*=m.s,n=m.e+e.e,f=y.length,d=g.length,f<d&&(o=y,y=g,g=o,u=f,f=d,d=u),o=[],u=f+d,r=u;r--;)o.push(0);for(r=d;--r>=0;){for(t=0,a=f+r;a>r;)c=o[a]+g[r]*y[a-r-1]+t,o[a--]=c%Ut|0,t=c/Ut|0;o[a]=(o[a]+t)%Ut|0}for(;!o[--u];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,mt?rt(e,p.precision):e};me.toDecimalPlaces=me.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Yr(e,0,jo),t===void 0?t=r.rounding:Yr(t,0,8),rt(n,e+Tt(n)+1,t))};me.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=rl(r,!0):(Yr(e,0,jo),t===void 0?t=a.rounding:Yr(t,0,8),r=rt(new a(r),e+1,t),n=rl(r,!0,e+1)),n};me.toFixed=function(e,t){var n,r,a=this,o=a.constructor;return e===void 0?rl(a):(Yr(e,0,jo),t===void 0?t=o.rounding:Yr(t,0,8),r=rt(new o(a),e+Tt(a)+1,t),n=rl(r.abs(),!1,e+Tt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};me.toInteger=me.toint=function(){var e=this,t=e.constructor;return rt(new t(e),Tt(e)+1,t.rounding)};me.toNumber=function(){return+this};me.toPower=me.pow=function(e){var t,n,r,a,o,u,c=this,f=c.constructor,d=12,m=+(e=new f(e));if(!e.s)return new f(Hn);if(c=new f(c),!c.s){if(e.s<1)throw Error(pr+"Infinity");return c}if(c.eq(Hn))return c;if(r=f.precision,e.eq(Hn))return rt(c,r);if(t=e.e,n=e.d.length-1,u=t>=n,o=c.s,u){if((n=m<0?-m:m)<=fz){for(a=new f(Hn),t=Math.ceil(r/ct+4),mt=!1;n%2&&(a=a.times(c),Bk(a.d,t)),n=Mo(n/2),n!==0;)c=c.times(c),Bk(c.d,t);return mt=!0,e.s<0?new f(Hn).div(a):rt(a,r)}}else if(o<0)throw Error(pr+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,c.s=1,mt=!1,a=e.times(ms(c,r+d)),mt=!0,a=hz(a),a.s=o,a};me.toPrecision=function(e,t){var n,r,a=this,o=a.constructor;return e===void 0?(n=Tt(a),r=rl(a,n<=o.toExpNeg||n>=o.toExpPos)):(Yr(e,1,jo),t===void 0?t=o.rounding:Yr(t,0,8),a=rt(new o(a),e,t),n=Tt(a),r=rl(a,e<=n||n<=o.toExpNeg,e)),r};me.toSignificantDigits=me.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Yr(e,1,jo),t===void 0?t=r.rounding:Yr(t,0,8)),rt(new r(n),e,t)};me.toString=me.valueOf=me.val=me.toJSON=me[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Tt(e),n=e.constructor;return rl(e,t<=n.toExpNeg||t>=n.toExpPos)};function dz(e,t){var n,r,a,o,u,c,f,d,m=e.constructor,p=m.precision;if(!e.s||!t.s)return t.s||(t=new m(e)),mt?rt(t,p):t;if(f=e.d,d=t.d,u=e.e,a=t.e,f=f.slice(),o=u-a,o){for(o<0?(r=f,o=-o,c=d.length):(r=d,a=u,c=f.length),u=Math.ceil(p/ct),c=u>c?u+1:c+1,o>c&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(c=f.length,o=d.length,c-o<0&&(o=c,r=d,d=f,f=r),n=0;o;)n=(f[--o]=f[o]+d[o]+n)/Ut|0,f[o]%=Ut;for(n&&(f.unshift(n),++a),c=f.length;f[--c]==0;)f.pop();return t.d=f,t.e=a,mt?rt(t,p):t}function Yr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Za+e)}function qr(e){var t,n,r,a=e.length-1,o="",u=e[0];if(a>0){for(o+=u,t=1;t<a;t++)r=e[t]+"",n=ct-r.length,n&&(o+=sa(n)),o+=r;u=e[t],r=u+"",n=ct-r.length,n&&(o+=sa(n))}else if(u===0)return"0";for(;u%10===0;)u/=10;return o+u}var yi=(function(){function e(r,a){var o,u=0,c=r.length;for(r=r.slice();c--;)o=r[c]*a+u,r[c]=o%Ut|0,u=o/Ut|0;return u&&r.unshift(u),r}function t(r,a,o,u){var c,f;if(o!=u)f=o>u?1:-1;else for(c=f=0;c<o;c++)if(r[c]!=a[c]){f=r[c]>a[c]?1:-1;break}return f}function n(r,a,o){for(var u=0;o--;)r[o]-=u,u=r[o]<a[o]?1:0,r[o]=u*Ut+r[o]-a[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,o,u){var c,f,d,m,p,y,g,x,w,S,O,C,T,D,P,k,j,U,$=r.constructor,I=r.s==a.s?1:-1,Z=r.d,q=a.d;if(!r.s)return new $(r);if(!a.s)throw Error(pr+"Division by zero");for(f=r.e-a.e,j=q.length,P=Z.length,g=new $(I),x=g.d=[],d=0;q[d]==(Z[d]||0);)++d;if(q[d]>(Z[d]||0)&&--f,o==null?C=o=$.precision:u?C=o+(Tt(r)-Tt(a))+1:C=o,C<0)return new $(0);if(C=C/ct+2|0,d=0,j==1)for(m=0,q=q[0],C++;(d<P||m)&&C--;d++)T=m*Ut+(Z[d]||0),x[d]=T/q|0,m=T%q|0;else{for(m=Ut/(q[0]+1)|0,m>1&&(q=e(q,m),Z=e(Z,m),j=q.length,P=Z.length),D=j,w=Z.slice(0,j),S=w.length;S<j;)w[S++]=0;U=q.slice(),U.unshift(0),k=q[0],q[1]>=Ut/2&&++k;do m=0,c=t(q,w,j,S),c<0?(O=w[0],j!=S&&(O=O*Ut+(w[1]||0)),m=O/k|0,m>1?(m>=Ut&&(m=Ut-1),p=e(q,m),y=p.length,S=w.length,c=t(p,w,y,S),c==1&&(m--,n(p,j<y?U:q,y))):(m==0&&(c=m=1),p=q.slice()),y=p.length,y<S&&p.unshift(0),n(w,p,S),c==-1&&(S=w.length,c=t(q,w,j,S),c<1&&(m++,n(w,j<S?U:q,S))),S=w.length):c===0&&(m++,w=[0]),x[d++]=m,c&&w[0]?w[S++]=Z[D]||0:(w=[Z[D]],S=1);while((D++<P||w[0]!==void 0)&&C--)}return x[0]||x.shift(),g.e=f,rt(g,u?o+Tt(g)+1:o)}})();function hz(e,t){var n,r,a,o,u,c,f=0,d=0,m=e.constructor,p=m.precision;if(Tt(e)>16)throw Error(_b+Tt(e));if(!e.s)return new m(Hn);for(mt=!1,c=p,u=new m(.03125);e.abs().gte(.1);)e=e.times(u),d+=5;for(r=Math.log(Ha(2,d))/Math.LN10*2+5|0,c+=r,n=a=o=new m(Hn),m.precision=c;;){if(a=rt(a.times(e),c),n=n.times(++f),u=o.plus(yi(a,n,c)),qr(u.d).slice(0,c)===qr(o.d).slice(0,c)){for(;d--;)o=rt(o.times(o),c);return m.precision=p,t==null?(mt=!0,rt(o,p)):o}o=u}}function Tt(e){for(var t=e.e*ct,n=e.d[0];n>=10;n/=10)t++;return t}function zy(e,t,n){if(t>e.LN10.sd())throw mt=!0,n&&(e.precision=n),Error(pr+"LN10 precision limit exceeded");return rt(new e(e.LN10),t)}function sa(e){for(var t="";e--;)t+="0";return t}function ms(e,t){var n,r,a,o,u,c,f,d,m,p=1,y=10,g=e,x=g.d,w=g.constructor,S=w.precision;if(g.s<1)throw Error(pr+(g.s?"NaN":"-Infinity"));if(g.eq(Hn))return new w(0);if(t==null?(mt=!1,d=S):d=t,g.eq(10))return t==null&&(mt=!0),zy(w,d);if(d+=y,w.precision=d,n=qr(x),r=n.charAt(0),o=Tt(g),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)g=g.times(e),n=qr(g.d),r=n.charAt(0),p++;o=Tt(g),r>1?(g=new w("0."+n),o++):g=new w(r+"."+n.slice(1))}else return f=zy(w,d+2,S).times(o+""),g=ms(new w(r+"."+n.slice(1)),d-y).plus(f),w.precision=S,t==null?(mt=!0,rt(g,S)):g;for(c=u=g=yi(g.minus(Hn),g.plus(Hn),d),m=rt(g.times(g),d),a=3;;){if(u=rt(u.times(m),d),f=c.plus(yi(u,new w(a),d)),qr(f.d).slice(0,d)===qr(c.d).slice(0,d))return c=c.times(2),o!==0&&(c=c.plus(zy(w,d+2,S).times(o+""))),c=yi(c,new w(p),d),w.precision=S,t==null?(mt=!0,rt(c,S)):c;c=f,a+=2}}function Lk(e,t){var n,r,a;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=Mo(n/ct),e.d=[],r=(n+1)%ct,n<0&&(r+=ct),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=ct;r<a;)e.d.push(+t.slice(r,r+=ct));t=t.slice(r),r=ct-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),mt&&(e.e>yd||e.e<-yd))throw Error(_b+n)}else e.s=0,e.e=0,e.d=[0];return e}function rt(e,t,n){var r,a,o,u,c,f,d,m,p=e.d;for(u=1,o=p[0];o>=10;o/=10)u++;if(r=t-u,r<0)r+=ct,a=t,d=p[m=0];else{if(m=Math.ceil((r+1)/ct),o=p.length,m>=o)return e;for(d=o=p[m],u=1;o>=10;o/=10)u++;r%=ct,a=r-ct+u}if(n!==void 0&&(o=Ha(10,u-a-1),c=d/o%10|0,f=t<0||p[m+1]!==void 0||d%o,f=n<4?(c||f)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||f||n==6&&(r>0?a>0?d/Ha(10,u-a):0:p[m-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return f?(o=Tt(e),p.length=1,t=t-o-1,p[0]=Ha(10,(ct-t%ct)%ct),e.e=Mo(-t/ct)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=m,o=1,m--):(p.length=m+1,o=Ha(10,ct-r),p[m]=a>0?(d/Ha(10,u-a)%Ha(10,a)|0)*o:0),f)for(;;)if(m==0){(p[0]+=o)==Ut&&(p[0]=1,++e.e);break}else{if(p[m]+=o,p[m]!=Ut)break;p[m--]=0,o=1}for(r=p.length;p[--r]===0;)p.pop();if(mt&&(e.e>yd||e.e<-yd))throw Error(_b+Tt(e));return e}function mz(e,t){var n,r,a,o,u,c,f,d,m,p,y=e.constructor,g=y.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new y(e),mt?rt(t,g):t;if(f=e.d,p=t.d,r=t.e,d=e.e,f=f.slice(),u=d-r,u){for(m=u<0,m?(n=f,u=-u,c=p.length):(n=p,r=d,c=f.length),a=Math.max(Math.ceil(g/ct),c)+2,u>a&&(u=a,n.length=1),n.reverse(),a=u;a--;)n.push(0);n.reverse()}else{for(a=f.length,c=p.length,m=a<c,m&&(c=a),a=0;a<c;a++)if(f[a]!=p[a]){m=f[a]<p[a];break}u=0}for(m&&(n=f,f=p,p=n,t.s=-t.s),c=f.length,a=p.length-c;a>0;--a)f[c++]=0;for(a=p.length;a>u;){if(f[--a]<p[a]){for(o=a;o&&f[--o]===0;)f[o]=Ut-1;--f[o],f[a]+=Ut}f[a]-=p[a]}for(;f[--c]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,mt?rt(t,g):t):new y(0)}function rl(e,t,n){var r,a=Tt(e),o=qr(e.d),u=o.length;return t?(n&&(r=n-u)>0?o=o.charAt(0)+"."+o.slice(1)+sa(r):u>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(a<0?"e":"e+")+a):a<0?(o="0."+sa(-a-1)+o,n&&(r=n-u)>0&&(o+=sa(r))):a>=u?(o+=sa(a+1-u),n&&(r=n-a-1)>0&&(o=o+"."+sa(r))):((r=a+1)<u&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-u)>0&&(a+1===u&&(o+="."),o+=sa(r))),e.s<0?"-"+o:o}function Bk(e,t){if(e.length>t)return e.length=t,!0}function pz(e){var t,n,r;function a(o){var u=this;if(!(u instanceof a))return new a(o);if(u.constructor=a,o instanceof a){u.s=o.s,u.e=o.e,u.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Za+o);if(o>0)u.s=1;else if(o<0)o=-o,u.s=-1;else{u.s=0,u.e=0,u.d=[0];return}if(o===~~o&&o<1e7){u.e=0,u.d=[o];return}return Lk(u,o.toString())}else if(typeof o!="string")throw Error(Za+o);if(o.charCodeAt(0)===45?(o=o.slice(1),u.s=-1):u.s=1,HY.test(o))Lk(u,o);else throw Error(Za+o)}if(a.prototype=me,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=pz,a.config=a.set=$Y,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return a.config(e),a}function $Y(e){if(!e||typeof e!="object")throw Error(pr+"Object expected");var t,n,r,a=["precision",1,jo,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((r=e[n=a[t]])!==void 0)if(Mo(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(Za+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Za+n+": "+r);return this}var Cb=pz(qY);Hn=new Cb(1);const Ze=Cb;function vz(e){var t;return e===0?t=1:t=Math.floor(new Ze(e).abs().log(10).toNumber())+1,t}function yz(e,t,n){for(var r=new Ze(e),a=0,o=[];r.lt(t)&&a<1e5;)o.push(r.toNumber()),r=r.add(n),a++;return o}var gz=e=>{var[t,n]=e,[r,a]=[t,n];return t>n&&([r,a]=[n,t]),[r,a]},bz=(e,t,n)=>{if(e.lte(0))return new Ze(0);var r=vz(e.toNumber()),a=new Ze(10).pow(r),o=e.div(a),u=r!==1?.05:.1,c=new Ze(Math.ceil(o.div(u).toNumber())).add(n).mul(u),f=c.mul(a);return t?new Ze(f.toNumber()):new Ze(Math.ceil(f.toNumber()))},FY=(e,t,n)=>{var r=new Ze(1),a=new Ze(e);if(!a.isint()&&n){var o=Math.abs(e);o<1?(r=new Ze(10).pow(vz(e)-1),a=new Ze(Math.floor(a.div(r).toNumber())).mul(r)):o>1&&(a=new Ze(Math.floor(e)))}else e===0?a=new Ze(Math.floor((t-1)/2)):n||(a=new Ze(Math.floor(e)));for(var u=Math.floor((t-1)/2),c=[],f=0;f<t;f++)c.push(a.add(new Ze(f-u).mul(r)).toNumber());return c},xz=function(t,n,r,a){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new Ze(0),tickMin:new Ze(0),tickMax:new Ze(0)};var u=bz(new Ze(n).sub(t).div(r-1),a,o),c;t<=0&&n>=0?c=new Ze(0):(c=new Ze(t).add(n).div(2),c=c.sub(new Ze(c).mod(u)));var f=Math.ceil(c.sub(t).div(u).toNumber()),d=Math.ceil(new Ze(n).sub(c).div(u).toNumber()),m=f+d+1;return m>r?xz(t,n,r,a,o+1):(m<r&&(d=n>0?d+(r-m):d,f=n>0?f:f+(r-m)),{step:u,tickMin:c.sub(new Ze(f).mul(u)),tickMax:c.add(new Ze(d).mul(u))})},VY=function(t){var[n,r]=t,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,u=Math.max(a,2),[c,f]=gz([n,r]);if(c===-1/0||f===1/0){var d=f===1/0?[c,...Array(a-1).fill(1/0)]:[...Array(a-1).fill(-1/0),f];return n>r?d.reverse():d}if(c===f)return FY(c,a,o);var{step:m,tickMin:p,tickMax:y}=xz(c,f,u,o,0),g=yz(p,y.add(new Ze(.1).mul(m)),m);return n>r?g.reverse():g},YY=function(t,n){var[r,a]=t,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[u,c]=gz([r,a]);if(u===-1/0||c===1/0)return[r,a];if(u===c)return[u];var f=Math.max(n,2),d=bz(new Ze(c).sub(u).div(f-1),o,0),m=[...yz(new Ze(u),new Ze(c),d),c];return o===!1&&(m=m.map(p=>Math.round(p))),r>a?m.reverse():m},wz=e=>e.rootProps.maxBarSize,KY=e=>e.rootProps.barGap,Sz=e=>e.rootProps.barCategoryGap,GY=e=>e.rootProps.barSize,fh=e=>e.rootProps.stackOffset,Oz=e=>e.rootProps.reverseStackOrder,Tb=e=>e.options.chartName,jb=e=>e.rootProps.syncId,Ez=e=>e.rootProps.syncMethod,Mb=e=>e.options.eventEmitter,mn={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},Ba={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},Rr={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},dh=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function hh(e,t,n){if(n!=="auto")return n;if(e!=null)return va(e,t)?"category":"number"}function Uk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function gd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uk(Object(n),!0).forEach(function(r){XY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XY(e,t,n){return(t=ZY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZY(e){var t=WY(e,"string");return typeof t=="symbol"?t:t+""}function WY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qk={allowDataOverflow:Ba.allowDataOverflow,allowDecimals:Ba.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Ba.angleAxisId,includeHidden:!1,name:void 0,reversed:Ba.reversed,scale:Ba.scale,tick:Ba.tick,tickCount:void 0,ticks:void 0,type:Ba.type,unit:void 0},Hk={allowDataOverflow:Rr.allowDataOverflow,allowDecimals:Rr.allowDecimals,allowDuplicatedCategory:Rr.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Rr.radiusAxisId,includeHidden:Rr.includeHidden,name:void 0,reversed:Rr.reversed,scale:Rr.scale,tick:Rr.tick,tickCount:Rr.tickCount,ticks:void 0,type:Rr.type,unit:void 0},QY=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},zb=ee([QY,sM],(e,t)=>{var n;if(e!=null)return e;var r=(n=hh(t,"angleAxis",qk.type))!==null&&n!==void 0?n:"category";return gd(gd({},qk),{},{type:r})}),JY=(e,t)=>e.polarAxis.radiusAxis[t],Db=ee([JY,sM],(e,t)=>{var n;if(e!=null)return e;var r=(n=hh(t,"radiusAxis",Hk.type))!==null&&n!==void 0?n:"category";return gd(gd({},Hk),{},{type:r})}),mh=e=>e.polarOptions,Nb=ee([Ti,ji,Ht],W$),Az=ee([mh,Nb],(e,t)=>{if(e!=null)return _r(e.innerRadius,t,0)}),kz=ee([mh,Nb],(e,t)=>{if(e!=null)return _r(e.outerRadius,t,t*.8)}),eK=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},_z=ee([mh],eK);ee([zb,_z],dh);var Cz=ee([Nb,Az,kz],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});ee([Db,Cz],dh);var Tz=ee([at,mh,Az,kz,Ti,ji],(e,t,n,r,a,o)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var{cx:u,cy:c,startAngle:f,endAngle:d}=t;return{cx:_r(u,a,a/2),cy:_r(c,o,o/2),innerRadius:n,outerRadius:r,startAngle:f,endAngle:d,clockWise:!1}}}),Ft=(e,t)=>t,ph=(e,t,n)=>n;function Pb(e){return e==null?void 0:e.id}function jz(e,t,n){var{chartData:r=[]}=t,{allowDuplicatedCategory:a,dataKey:o}=n,u=new Map;return e.forEach(c=>{var f,d=(f=c.data)!==null&&f!==void 0?f:r;if(!(d==null||d.length===0)){var m=Pb(c);d.forEach((p,y)=>{var g=o==null||a?y:String(tn(p,o,null)),x=tn(p,c.dataKey,0),w;u.has(g)?w=u.get(g):w={},Object.assign(w,{[m]:x}),u.set(g,w)})}}),Array.from(u.values())}function vh(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var yh=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function gh(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function tK(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}var Vt=e=>{var t=at(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},zo=e=>e.tooltip.settings.axisId;function nK(e){if(e in Gu)return Gu[e]();var t="scale".concat(ws(e));if(t in Gu)return Gu[t]()}function $k(e){var t=e.ticks,n=e.bandwidth,r=e.range(),a=[Math.min(...r),Math.max(...r)];return{domain:()=>e.domain(),range:(function(o){function u(){return o.apply(this,arguments)}return u.toString=function(){return o.toString()},u})(()=>a),rangeMin:()=>a[0],rangeMax:()=>a[1],isInRange(o){var u=a[0],c=a[1];return u<=c?o>=u&&o<=c:o>=c&&o<=u},bandwidth:n?()=>n.call(e):void 0,ticks:t?o=>t.call(e,o):void 0,map:(o,u)=>{var c=e(o);if(c!=null){if(e.bandwidth&&u!==null&&u!==void 0&&u.position){var f=e.bandwidth();switch(u.position){case"middle":c+=f/2;break;case"end":c+=f;break}}return c}}}}function Fk(e,t,n){if(typeof e=="function")return $k(e.copy().domain(t).range(n));if(e!=null){var r=nK(e);if(r!=null)return r.domain(t).range(n),$k(r)}}var rK=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!Ai(t)){for(var n,r,a=0;a<t.length;a++){var o=t[a];qe(o)&&((n===void 0||o<n)&&(n=o),(r===void 0||o>r)&&(r=o))}return n!==void 0&&r!==void 0?[n,r]:void 0}return t}default:return t}};function Vk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function bd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vk(Object(n),!0).forEach(function(r){iK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iK(e,t,n){return(t=aK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aK(e){var t=lK(e,"string");return typeof t=="symbol"?t:t+""}function lK(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kg=[0,"auto"],Lt={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},Mz=(e,t)=>e.cartesianAxis.xAxis[t],Di=(e,t)=>{var n=Mz(e,t);return n??Lt},Bt={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Kg,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:Es},zz=(e,t)=>e.cartesianAxis.yAxis[t],Ni=(e,t)=>{var n=zz(e,t);return n??Bt},oK={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},Rb=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??oK},vn=(e,t,n)=>{switch(t){case"xAxis":return Di(e,n);case"yAxis":return Ni(e,n);case"zAxis":return Rb(e,n);case"angleAxis":return zb(e,n);case"radiusAxis":return Db(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},uK=(e,t,n)=>{switch(t){case"xAxis":return Di(e,n);case"yAxis":return Ni(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Ms=(e,t,n)=>{switch(t){case"xAxis":return Di(e,n);case"yAxis":return Ni(e,n);case"angleAxis":return zb(e,n);case"radiusAxis":return Db(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Dz=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function Nz(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var Ib=e=>e.graphicalItems.cartesianItems,sK=ee([Ft,ph],Nz),Pz=(e,t,n)=>e.filter(n).filter(r=>(t==null?void 0:t.includeHidden)===!0?!0:!r.hide),zs=ee([Ib,vn,sK],Pz,{memoizeOptions:{resultEqualityCheck:gh}}),Rz=ee([zs],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(vh)),Iz=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),cK=ee([zs],Iz),Lz=e=>e.map(t=>t.data).filter(Boolean).flat(1),fK=ee([zs],Lz,{memoizeOptions:{resultEqualityCheck:gh}}),Bz=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:a}=t;return e.length>0?e:n.slice(r,a+1)},Lb=ee([fK,sz],Bz),Uz=(e,t,n)=>(t==null?void 0:t.dataKey)!=null?e.map(r=>({value:tn(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(a=>({value:tn(a,r)}))):e.map(r=>({value:r})),bh=ee([Lb,vn,zs],Uz);function qz(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Tf(e){if(Fr(e)||e instanceof Date){var t=Number(e);if(qe(t))return t}}function Yk(e){if(Array.isArray(e)){var t=[Tf(e[0]),Tf(e[1])];return Ai(t)?t:void 0}var n=Tf(e);if(n!=null)return[n,n]}function ki(e){return e.map(Tf).filter(_n)}function dK(e,t,n){return!n||typeof t!="number"||$r(t)?[]:n.length?ki(n.flatMap(r=>{var a=tn(e,r.dataKey),o,u;if(Array.isArray(a)?[o,u]=a:o=u=a,!(!qe(o)||!qe(u)))return[t-o,t+u]})):[]}var Pt=e=>{var t=Vt(e),n=zo(e);return Ms(e,t,n)},Ds=ee([Pt],e=>e==null?void 0:e.dataKey),hK=ee([Rz,sz,Pt],jz),Hz=(e,t,n,r)=>{var a={},o=t.reduce((u,c)=>{if(c.stackId==null)return u;var f=u[c.stackId];return f==null&&(f=[]),f.push(c),u[c.stackId]=f,u},a);return Object.fromEntries(Object.entries(o).map(u=>{var[c,f]=u,d=r?[...f].reverse():f,m=d.map(Pb);return[c,{stackedData:qH(e,m,n),graphicalItems:d}]}))},Gg=ee([hK,Rz,fh,Oz],Hz),$z=(e,t,n,r)=>{var{dataStartIndex:a,dataEndIndex:o}=t;if(r==null&&n!=="zAxis"){var u=YH(e,a,o);if(!(u!=null&&u[0]===0&&u[1]===0))return u}},mK=ee([vn],e=>e.allowDataOverflow),Bb=e=>{var t;if(e==null||!("domain"in e))return Kg;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var n=ki(e.ticks);return[Math.min(...n),Math.max(...n)]}if(e.type==="category")return e.ticks.map(String)}return(t=e==null?void 0:e.domain)!==null&&t!==void 0?t:Kg},Fz=ee([vn],Bb),Vz=ee([Fz,mK],cz),pK=ee([Gg,zi,Ft,Vz],$z,{memoizeOptions:{resultEqualityCheck:yh}}),Ub=e=>e.errorBars,vK=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>qz(n,r)),xd=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n.filter(Boolean);if(a.length!==0){var o=a.flat(),u=Math.min(...o),c=Math.max(...o);return[u,c]}},Yz=(e,t,n,r,a)=>{var o,u;if(n.length>0&&e.forEach(c=>{n.forEach(f=>{var d,m,p=(d=r[f.id])===null||d===void 0?void 0:d.filter(O=>qz(a,O)),y=tn(c,(m=t.dataKey)!==null&&m!==void 0?m:f.dataKey),g=dK(c,y,p);if(g.length>=2){var x=Math.min(...g),w=Math.max(...g);(o==null||x<o)&&(o=x),(u==null||w>u)&&(u=w)}var S=Yk(y);S!=null&&(o=o==null?S[0]:Math.min(o,S[0]),u=u==null?S[1]:Math.max(u,S[1]))})}),(t==null?void 0:t.dataKey)!=null&&e.forEach(c=>{var f=Yk(tn(c,t.dataKey));f!=null&&(o=o==null?f[0]:Math.min(o,f[0]),u=u==null?f[1]:Math.max(u,f[1]))}),qe(o)&&qe(u))return[o,u]},yK=ee([Lb,vn,cK,Ub,Ft],Yz,{memoizeOptions:{resultEqualityCheck:yh}});function gK(e){var{value:t}=e;if(Fr(t)||t instanceof Date)return t}var bK=(e,t,n)=>{var r=e.map(gK).filter(a=>a!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&lj(r))?_M(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},Kz=e=>e.referenceElements.dots,Do=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),xK=ee([Kz,Ft,ph],Do),Gz=e=>e.referenceElements.areas,wK=ee([Gz,Ft,ph],Do),Xz=e=>e.referenceElements.lines,SK=ee([Xz,Ft,ph],Do),Zz=(e,t)=>{if(e!=null){var n=ki(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},OK=ee(xK,Ft,Zz),Wz=(e,t)=>{if(e!=null){var n=ki(e.flatMap(r=>[t==="xAxis"?r.x1:r.y1,t==="xAxis"?r.x2:r.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},EK=ee([wK,Ft],Wz);function AK(e){var t;if(e.x!=null)return ki([e.x]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.x);return n==null||n.length===0?[]:ki(n)}function kK(e){var t;if(e.y!=null)return ki([e.y]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.y);return n==null||n.length===0?[]:ki(n)}var Qz=(e,t)=>{if(e!=null){var n=e.flatMap(r=>t==="xAxis"?AK(r):kK(r));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},_K=ee([SK,Ft],Qz),CK=ee(OK,_K,EK,(e,t,n)=>xd(e,n,t)),Jz=(e,t,n,r,a,o,u,c)=>{if(n!=null)return n;var f=u==="vertical"&&c==="xAxis"||u==="horizontal"&&c==="yAxis",d=f?xd(r,o,a):xd(o,a);return UY(t,d,e.allowDataOverflow)},TK=ee([vn,Fz,Vz,pK,yK,CK,at,Ft],Jz,{memoizeOptions:{resultEqualityCheck:yh}}),jK=[0,1],eD=(e,t,n,r,a,o,u)=>{if(!((e==null||n==null||n.length===0)&&u===void 0)){var{dataKey:c,type:f}=e,d=va(t,o);if(d&&c==null){var m;return _M(0,(m=n==null?void 0:n.length)!==null&&m!==void 0?m:0)}return f==="category"?bK(r,e,d):a==="expand"?jK:u}},qb=ee([vn,at,Lb,bh,fh,Ft,TK],eD);function MK(e){return e in Gu}var tD=(e,t,n)=>{if(e!=null){var{scale:r,type:a}=e;if(r==="auto")return a==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!t)?"point":a==="category"?"band":"linear";if(typeof r=="string"){var o="scale".concat(ws(r));return MK(o)?o:"point"}}},No=ee([vn,Dz,Tb],tD);function Hb(e,t,n,r){if(!(n==null||r==null))return typeof e.scale=="function"?Fk(e.scale,n,r):Fk(t,n,r)}var nD=(e,t,n)=>{var r=Bb(t);if(!(n!=="auto"&&n!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(r)&&(r[0]==="auto"||r[1]==="auto")&&Ai(e))return VY(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Ai(e))return YY(e,t.tickCount,t.allowDecimals)}},$b=ee([qb,Ms,No],nD),rD=(e,t,n,r)=>{if(r!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&Ai(t)&&Array.isArray(n)&&n.length>0){var a,o,u=t[0],c=(a=n[0])!==null&&a!==void 0?a:0,f=t[1],d=(o=n[n.length-1])!==null&&o!==void 0?o:0;return[Math.min(u,c),Math.max(f,d)]}return t},zK=ee([vn,qb,$b,Ft],rD),DK=ee(bh,vn,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(ki(e.map(p=>p.value))).sort((p,y)=>p-y),a=r[0],o=r[r.length-1];if(a==null||o==null)return 1/0;var u=o-a;if(u===0)return 1/0;for(var c=0;c<r.length-1;c++){var f=r[c],d=r[c+1];if(!(f==null||d==null)){var m=d-f;n=Math.min(n,m)}}return n/u}}),iD=ee(DK,at,Sz,Ht,(e,t,n,r,a)=>a,(e,t,n,r,a)=>{if(!qe(e))return 0;var o=t==="vertical"?r.height:r.width;if(a==="gap")return e*o/2;if(a==="no-gap"){var u=_r(n,e*o),c=e*o/2;return c-u-(c-u)/o*u}return 0}),NK=(e,t,n)=>{var r=Di(e,t);return r==null||typeof r.padding!="string"?0:iD(e,"xAxis",t,n,r.padding)},PK=(e,t,n)=>{var r=Ni(e,t);return r==null||typeof r.padding!="string"?0:iD(e,"yAxis",t,n,r.padding)},RK=ee(Di,NK,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var{padding:a}=e;return typeof a=="string"?{left:t,right:t}:{left:((n=a.left)!==null&&n!==void 0?n:0)+t,right:((r=a.right)!==null&&r!==void 0?r:0)+t}}),IK=ee(Ni,PK,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var{padding:a}=e;return typeof a=="string"?{top:t,bottom:t}:{top:((n=a.top)!==null&&n!==void 0?n:0)+t,bottom:((r=a.bottom)!==null&&r!==void 0?r:0)+t}}),LK=ee([Ht,RK,Qd,Wd,(e,t,n)=>n],(e,t,n,r,a)=>{var{padding:o}=r;return a?[o.left,n.width-o.right]:[e.left+t.left,e.left+e.width-t.right]}),BK=ee([Ht,at,IK,Qd,Wd,(e,t,n)=>n],(e,t,n,r,a,o)=>{var{padding:u}=a;return o?[r.height-u.bottom,u.top]:t==="horizontal"?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),Ns=(e,t,n,r)=>{var a;switch(t){case"xAxis":return LK(e,n,r);case"yAxis":return BK(e,n,r);case"zAxis":return(a=Rb(e,n))===null||a===void 0?void 0:a.range;case"angleAxis":return _z(e);case"radiusAxis":return Cz(e,n);default:return}},aD=ee([vn,Ns],dh),UK=ee([No,zK],rK),xh=ee([vn,No,UK,aD],Hb);ee([zs,Ub,Ft],vK);function lD(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var wh=(e,t)=>t,Sh=(e,t,n)=>n,qK=ee(Xd,wh,Sh,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(lD)),HK=ee(Zd,wh,Sh,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(lD)),oD=(e,t)=>({width:e.width,height:t.height}),$K=(e,t)=>{var n=typeof t.width=="number"?t.width:Es;return{width:n,height:e.height}},uD=ee(Ht,Di,oD),FK=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},VK=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},YK=ee(ji,Ht,qK,wh,Sh,(e,t,n,r,a)=>{var o={},u;return n.forEach(c=>{var f=oD(t,c);u==null&&(u=FK(t,r,e));var d=r==="top"&&!a||r==="bottom"&&a;o[c.id]=u-Number(d)*f.height,u+=(d?-1:1)*f.height}),o}),KK=ee(Ti,Ht,HK,wh,Sh,(e,t,n,r,a)=>{var o={},u;return n.forEach(c=>{var f=$K(t,c);u==null&&(u=VK(t,r,e));var d=r==="left"&&!a||r==="right"&&a;o[c.id]=u-Number(d)*f.width,u+=(d?-1:1)*f.width}),o}),GK=(e,t)=>{var n=Di(e,t);if(n!=null)return YK(e,n.orientation,n.mirror)},XK=ee([Ht,Di,GK,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var a=n==null?void 0:n[r];return a==null?{x:e.left,y:0}:{x:e.left,y:a}}}),ZK=(e,t)=>{var n=Ni(e,t);if(n!=null)return KK(e,n.orientation,n.mirror)},WK=ee([Ht,Ni,ZK,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var a=n==null?void 0:n[r];return a==null?{x:0,y:e.top}:{x:a,y:e.top}}}),sD=ee(Ht,Ni,(e,t)=>{var n=typeof t.width=="number"?t.width:Es;return{width:n,height:e.height}}),Kk=(e,t,n)=>{switch(t){case"xAxis":return uD(e,n).width;case"yAxis":return sD(e,n).height;default:return}},cD=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:a,type:o,dataKey:u}=n,c=va(e,r),f=t.map(d=>d.value);if(u&&c&&o==="category"&&a&&lj(f))return f}},Fb=ee([at,bh,vn,Ft],cD),fD=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:a,scale:o}=n,u=va(e,r);if(u&&(a==="number"||o!=="auto"))return t.map(c=>c.value)}},Vb=ee([at,bh,Ms,Ft],fD),Gk=ee([at,uK,No,xh,Fb,Vb,Ns,$b,Ft],(e,t,n,r,a,o,u,c,f)=>{if(t!=null){var d=va(e,f);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:f,categoricalDomain:o,duplicateDomain:a,isCategorical:d,niceTicks:c,range:u,realScaleType:n,scale:r}}}),QK=(e,t,n,r,a,o,u,c,f)=>{if(!(t==null||r==null)){var d=va(e,f),{type:m,ticks:p,tickCount:y}=t,g=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,x=m==="category"&&r.bandwidth?r.bandwidth()/g:0;x=f==="angleAxis"&&o!=null&&o.length>=2?kn(o[0]-o[1])*2*x:x;var w=p||a;return w?w.map((S,O)=>{var C=u?u.indexOf(S):S,T=r.map(C);return qe(T)?{index:O,coordinate:T+x,value:S,offset:x}:null}).filter(_n):d&&c?c.map((S,O)=>{var C=r.map(S);return qe(C)?{coordinate:C+x,value:S,index:O,offset:x}:null}).filter(_n):r.ticks?r.ticks(y).map((S,O)=>{var C=r.map(S);return qe(C)?{coordinate:C+x,value:S,index:O,offset:x}:null}).filter(_n):r.domain().map((S,O)=>{var C=r.map(S);return qe(C)?{coordinate:C+x,value:u?u[S]:S,index:O,offset:x}:null}).filter(_n)}},dD=ee([at,Ms,No,xh,$b,Ns,Fb,Vb,Ft],QK),JK=(e,t,n,r,a,o,u)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var c=va(e,u),{tickCount:f}=t,d=0;return d=u==="angleAxis"&&(r==null?void 0:r.length)>=2?kn(r[0]-r[1])*2*d:d,c&&o?o.map((m,p)=>{var y=n.map(m);return qe(y)?{coordinate:y+d,value:m,index:p,offset:d}:null}).filter(_n):n.ticks?n.ticks(f).map((m,p)=>{var y=n.map(m);return qe(y)?{coordinate:y+d,value:m,index:p,offset:d}:null}).filter(_n):n.domain().map((m,p)=>{var y=n.map(m);return qe(y)?{coordinate:y+d,value:a?a[m]:m,index:p,offset:d}:null}).filter(_n)}},wo=ee([at,Ms,xh,Ns,Fb,Vb,Ft],JK),So=ee(vn,xh,(e,t)=>{if(!(e==null||t==null))return bd(bd({},e),{},{scale:t})}),eG=ee([vn,No,qb,aD],Hb);ee((e,t,n)=>Rb(e,n),eG,(e,t)=>{if(!(e==null||t==null))return bd(bd({},e),{},{scale:t})});var tG=ee([at,Xd,Zd],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),hD=e=>e.options.defaultTooltipEventType,mD=e=>e.options.validateTooltipEventTypes;function pD(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function Yb(e,t){var n=hD(e),r=mD(e);return pD(t,n,r)}function nG(e){return Ee(t=>Yb(t,e))}var vD=(e,t)=>{var n,r=Number(t);if(!($r(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},rG=e=>e.tooltip.settings,fa={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},iG={itemInteraction:{click:fa,hover:fa},axisInteraction:{click:fa,hover:fa},keyboardInteraction:fa,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},yD=jn({name:"tooltip",initialState:iG,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:ht()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:n,next:r}=t.payload,a=kr(e).tooltipItemPayloads.indexOf(n);a>-1&&(e.tooltipItemPayloads[a]=r)},prepare:ht()},removeTooltipEntrySettings:{reducer(e,t){var n=kr(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:ht()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:aG,replaceTooltipEntrySettings:lG,removeTooltipEntrySettings:oG,setTooltipSettingsState:uG,setActiveMouseOverItemIndex:gD,mouseLeaveItem:sG,mouseLeaveChart:bD,setActiveClickItemIndex:cG,setMouseOverAxisIndex:xD,setMouseClickAxisIndex:fG,setSyncInteraction:Xg,setKeyboardInteraction:Zg}=yD.actions,dG=yD.reducer;function Xk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function wf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xk(Object(n),!0).forEach(function(r){hG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hG(e,t,n){return(t=mG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mG(e){var t=pG(e,"string");return typeof t=="symbol"?t:t+""}function pG(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vG(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function yG(e){return e.index!=null}var wD=(e,t,n,r)=>{if(t==null)return fa;var a=vG(e,t,n);if(a==null)return fa;if(a.active)return a;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var o=e.settings.active===!0;if(yG(a)){if(o)return wf(wf({},a),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return wf(wf({},fa),{},{coordinate:a.coordinate})};function gG(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}function bG(e,t){var n=gG(e),r=t[0],a=t[1];if(n===void 0)return!1;var o=Math.min(r,a),u=Math.max(r,a);return n>=o&&n<=u}function xG(e,t,n){if(n==null||t==null)return!0;var r=tn(e,t);return r==null||!Ai(n)?!0:bG(r,n)}var Kb=(e,t,n,r)=>{var a=e==null?void 0:e.index;if(a==null)return null;var o=Number(a);if(!qe(o))return a;var u=0,c=1/0;t.length>0&&(c=t.length-1);var f=Math.max(u,Math.min(o,c)),d=t[f];return d==null||xG(d,n,r)?String(f):null},SD=(e,t,n,r,a,o,u)=>{if(o!=null){var c=u[0],f=c==null?void 0:c.getPosition(o);if(f!=null)return f;var d=a==null?void 0:a[Number(o)];if(d)switch(n){case"horizontal":return{x:d.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:d.coordinate}}}},OD=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var a;if(n==="hover"?a=e.itemInteraction.hover.graphicalItemId:a=e.itemInteraction.click.graphicalItemId,a==null&&r!=null){var o=e.tooltipItemPayloads[0];return o!=null?[o]:[]}return e.tooltipItemPayloads.filter(u=>{var c;return((c=u.settings)===null||c===void 0?void 0:c.graphicalItemId)===a})},ED=e=>e.options.tooltipPayloadSearcher,Po=e=>e.tooltip;function Zk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Wk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zk(Object(n),!0).forEach(function(r){wG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wG(e,t,n){return(t=SG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SG(e){var t=OG(e,"string");return typeof t=="symbol"?t:t+""}function OG(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EG(e,t){return e??t}var AD=(e,t,n,r,a,o,u)=>{if(!(t==null||o==null)){var{chartData:c,computedData:f,dataStartIndex:d,dataEndIndex:m}=n,p=[];return e.reduce((y,g)=>{var x,{dataDefinedOnItem:w,settings:S}=g,O=EG(w,c),C=Array.isArray(O)?Wj(O,d,m):O,T=(x=S==null?void 0:S.dataKey)!==null&&x!==void 0?x:r,D=S==null?void 0:S.nameKey,P;if(r&&Array.isArray(C)&&!Array.isArray(C[0])&&u==="axis"?P=wU(C,r,a):P=o(C,t,f,D),Array.isArray(P))P.forEach(j=>{var U=Wk(Wk({},S),{},{name:j.name,unit:j.unit,color:void 0,fill:void 0});y.push(WA({tooltipEntrySettings:U,dataKey:j.dataKey,payload:j.payload,value:tn(j.payload,j.dataKey),name:j.name}))});else{var k;y.push(WA({tooltipEntrySettings:S,dataKey:T,payload:P,value:tn(P,T),name:(k=tn(P,D))!==null&&k!==void 0?k:S==null?void 0:S.name}))}return y},p)}},Gb=ee([Pt,Dz,Tb],tD),AG=ee([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),kG=ee([Vt,zo],Nz),Ro=ee([AG,Pt,kG],Pz,{memoizeOptions:{resultEqualityCheck:gh}}),_G=ee([Ro],e=>e.filter(vh)),CG=ee([Ro],Lz,{memoizeOptions:{resultEqualityCheck:gh}}),Io=ee([CG,zi],Bz),TG=ee([_G,zi,Pt],jz),Xb=ee([Io,Pt,Ro],Uz),kD=ee([Pt],Bb),jG=ee([Pt],e=>e.allowDataOverflow),_D=ee([kD,jG],cz),MG=ee([Ro],e=>e.filter(vh)),zG=ee([TG,MG,fh,Oz],Hz),DG=ee([zG,zi,Vt,_D],$z),NG=ee([Ro],Iz),PG=ee([Io,Pt,NG,Ub,Vt],Yz,{memoizeOptions:{resultEqualityCheck:yh}}),RG=ee([Kz,Vt,zo],Do),IG=ee([RG,Vt],Zz),LG=ee([Gz,Vt,zo],Do),BG=ee([LG,Vt],Wz),UG=ee([Xz,Vt,zo],Do),qG=ee([UG,Vt],Qz),HG=ee([IG,qG,BG],xd),$G=ee([Pt,kD,_D,DG,PG,HG,at,Vt],Jz),Ps=ee([Pt,at,Io,Xb,fh,Vt,$G],eD),FG=ee([Ps,Pt,Gb],nD),VG=ee([Pt,Ps,FG,Vt],rD),CD=e=>{var t=Vt(e),n=zo(e),r=!1;return Ns(e,t,n,r)},TD=ee([Pt,CD],dh),jD=ee([Pt,Gb,VG,TD],Hb),YG=ee([at,Xb,Pt,Vt],cD),KG=ee([at,Xb,Pt,Vt],fD),GG=(e,t,n,r,a,o,u,c)=>{if(t){var{type:f}=t,d=va(e,c);if(r){var m=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,p=f==="category"&&r.bandwidth?r.bandwidth()/m:0;return p=c==="angleAxis"&&a!=null&&(a==null?void 0:a.length)>=2?kn(a[0]-a[1])*2*p:p,d&&u?u.map((y,g)=>{var x=r.map(y);return qe(x)?{coordinate:x+p,value:y,index:g,offset:p}:null}).filter(_n):r.domain().map((y,g)=>{var x=r.map(y);return qe(x)?{coordinate:x+p,value:o?o[y]:y,index:g,offset:p}:null}).filter(_n)}}},Pi=ee([at,Pt,Gb,jD,CD,YG,KG,Vt],GG),Zb=ee([hD,mD,rG],(e,t,n)=>pD(n.shared,e,t)),MD=e=>e.tooltip.settings.trigger,Wb=e=>e.tooltip.settings.defaultIndex,Rs=ee([Po,Zb,MD,Wb],wD),Oo=ee([Rs,Io,Ds,Ps],Kb),zD=ee([Pi,Oo],vD),DD=ee([Rs],e=>{if(e)return e.dataKey});ee([Rs],e=>{if(e)return e.graphicalItemId});var ND=ee([Po,Zb,MD,Wb],OD),XG=ee([Ti,ji,at,Ht,Pi,Wb,ND],SD),ZG=ee([Rs,XG],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),WG=ee([Rs],e=>{var t;return(t=e==null?void 0:e.active)!==null&&t!==void 0?t:!1}),QG=ee([ND,Oo,zi,Ds,zD,ED,Zb],AD);ee([QG],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function Qk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Jk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qk(Object(n),!0).forEach(function(r){JG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JG(e,t,n){return(t=eX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eX(e){var t=tX(e,"string");return typeof t=="symbol"?t:t+""}function tX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nX=()=>Ee(Pt),rX=()=>{var e=nX(),t=Ee(Pi),n=Ee(jD);return Wf(!e||!n?void 0:Jk(Jk({},e),{},{scale:n}),t)};function e_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function no(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e_(Object(n),!0).forEach(function(r){iX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iX(e,t,n){return(t=aX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aX(e){var t=lX(e,"string");return typeof t=="symbol"?t:t+""}function lX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oX=(e,t,n,r)=>{var a=t.find(o=>o&&o.index===n);if(a){if(e==="horizontal")return{x:a.coordinate,y:r.chartY};if(e==="vertical")return{x:r.chartX,y:a.coordinate}}return{x:0,y:0}},uX=(e,t,n,r)=>{var a=t.find(d=>d&&d.index===n);if(a){if(e==="centric"){var o=a.coordinate,{radius:u}=r;return no(no(no({},r),en(r.cx,r.cy,u,o)),{},{angle:o,radius:u})}var c=a.coordinate,{angle:f}=r;return no(no(no({},r),en(r.cx,r.cy,c,f)),{},{angle:f,radius:c})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function sX(e,t){var{chartX:n,chartY:r}=e;return n>=t.left&&n<=t.left+t.width&&r>=t.top&&r<=t.top+t.height}var PD=(e,t,n,r,a)=>{var o,u=(o=t==null?void 0:t.length)!==null&&o!==void 0?o:0;if(u<=1||e==null)return 0;if(r==="angleAxis"&&a!=null&&Math.abs(Math.abs(a[1]-a[0])-360)<=1e-6)for(var c=0;c<u;c++){var f,d,m,p,y,g=c>0?(f=n[c-1])===null||f===void 0?void 0:f.coordinate:(d=n[u-1])===null||d===void 0?void 0:d.coordinate,x=(m=n[c])===null||m===void 0?void 0:m.coordinate,w=c>=u-1?(p=n[0])===null||p===void 0?void 0:p.coordinate:(y=n[c+1])===null||y===void 0?void 0:y.coordinate,S=void 0;if(!(g==null||x==null||w==null))if(kn(x-g)!==kn(w-x)){var O=[];if(kn(w-x)===kn(a[1]-a[0])){S=w;var C=x+a[1]-a[0];O[0]=Math.min(C,(C+g)/2),O[1]=Math.max(C,(C+g)/2)}else{S=g;var T=w+a[1]-a[0];O[0]=Math.min(x,(T+x)/2),O[1]=Math.max(x,(T+x)/2)}var D=[Math.min(x,(S+x)/2),Math.max(x,(S+x)/2)];if(e>D[0]&&e<=D[1]||e>=O[0]&&e<=O[1]){var P;return(P=n[c])===null||P===void 0?void 0:P.index}}else{var k=Math.min(g,w),j=Math.max(g,w);if(e>(k+x)/2&&e<=(j+x)/2){var U;return(U=n[c])===null||U===void 0?void 0:U.index}}}else if(t)for(var $=0;$<u;$++){var I=t[$];if(I!=null){var Z=t[$+1],q=t[$-1];if($===0&&Z!=null&&e<=(I.coordinate+Z.coordinate)/2||$===u-1&&q!=null&&e>(I.coordinate+q.coordinate)/2||$>0&&$<u-1&&q!=null&&Z!=null&&e>(I.coordinate+q.coordinate)/2&&e<=(I.coordinate+Z.coordinate)/2)return I.index}}return-1},cX=()=>Ee(Tb),Qb=(e,t)=>t,RD=(e,t,n)=>n,Jb=(e,t,n,r)=>r,fX=ee(Pi,e=>Bd(e,t=>t.coordinate)),ex=ee([Po,Qb,RD,Jb],wD),tx=ee([ex,Io,Ds,Ps],Kb),dX=(e,t,n)=>{if(t!=null){var r=Po(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},ID=ee([Po,Qb,RD,Jb],OD),wd=ee([Ti,ji,at,Ht,Pi,Jb,ID],SD),hX=ee([ex,wd],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),LD=ee([Pi,tx],vD),mX=ee([ID,tx,zi,Ds,LD,ED,Qb],AD),pX=ee([ex,tx],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),vX=(e,t,n,r,a,o,u)=>{if(!(!e||!n||!r||!a)&&sX(e,u)){var c=KH(e,t),f=PD(c,o,a,n,r),d=oX(t,a,f,e);return{activeIndex:String(f),activeCoordinate:d}}},yX=(e,t,n,r,a,o,u)=>{if(!(!e||!r||!a||!o||!n)){var c=nF(e,n);if(c){var f=GH(c,t),d=PD(f,u,o,r,a),m=uX(t,o,d,c);return{activeIndex:String(d),activeCoordinate:m}}}},gX=(e,t,n,r,a,o,u,c)=>{if(!(!e||!t||!r||!a||!o))return t==="horizontal"||t==="vertical"?vX(e,t,r,a,o,u,c):yX(e,t,n,r,a,o,u)},bX=ee(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(t!=null){var r=e[t];if(r!=null)return n?r.panoramaElement:r.element}}),xX=ee(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(r=>parseInt(r,10)).concat(Object.values(mn)),n=Array.from(new Set(t));return n.sort((r,a)=>r-a)},{memoizeOptions:{resultEqualityCheck:tK}});function t_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function n_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t_(Object(n),!0).forEach(function(r){wX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wX(e,t,n){return(t=SX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SX(e){var t=OX(e,"string");return typeof t=="symbol"?t:t+""}function OX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var EX={},AX={zIndexMap:Object.values(mn).reduce((e,t)=>n_(n_({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),EX)},kX=new Set(Object.values(mn));function _X(e){return kX.has(e)}var BD=jn({name:"zIndex",initialState:AX,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:ht()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(e.zIndexMap[n].consumers-=1,e.zIndexMap[n].consumers<=0&&!_X(n)&&delete e.zIndexMap[n])},prepare:ht()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n,element:r,isPanorama:a}=t.payload;e.zIndexMap[n]?a?e.zIndexMap[n].panoramaElement=r:e.zIndexMap[n].element=r:e.zIndexMap[n]={consumers:0,element:a?void 0:r,panoramaElement:a?r:void 0}},prepare:ht()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:ht()}}}),{registerZIndexPortal:CX,unregisterZIndexPortal:TX,registerZIndexPortalElement:jX,unregisterZIndexPortalElement:MX}=BD.actions,zX=BD.reducer;function Ri(e){var{zIndex:t,children:n}=e,r=_7(),a=r&&t!==void 0&&t!==0,o=Mn(),u=wt();E.useLayoutEffect(()=>a?(u(CX({zIndex:t})),()=>{u(TX({zIndex:t}))}):_o,[u,t,a]);var c=Ee(f=>bX(f,t,o));return a?c?HT.createPortal(n,c):null:n}function Wg(){return Wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wg.apply(null,arguments)}function r_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Sf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r_(Object(n),!0).forEach(function(r){DX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DX(e,t,n){return(t=NX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NX(e){var t=PX(e,"string");return typeof t=="symbol"?t:t+""}function PX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RX(e){var{cursor:t,cursorComp:n,cursorProps:r}=e;return E.isValidElement(t)?E.cloneElement(t,r):E.createElement(n,r)}function IX(e){var t,{coordinate:n,payload:r,index:a,offset:o,tooltipAxisBandSize:u,layout:c,cursor:f,tooltipEventType:d,chartName:m}=e,p=n,y=r,g=a;if(!f||!p||m!=="ScatterChart"&&d!=="axis")return null;var x,w,S;if(m==="ScatterChart")x=p,w=p$,S=mn.cursorLine;else if(m==="BarChart")x=v$(c,p,o,u),w=OM,S=mn.cursorRectangle;else if(c==="radial"&&sj(p)){var{cx:O,cy:C,radius:T,startAngle:D,endAngle:P}=EM(p);x={cx:O,cy:C,startAngle:D,endAngle:P,innerRadius:T,outerRadius:T},w=kM,S=mn.cursorLine}else x={points:lF(c,p,o)},w=gM,S=mn.cursorLine;var k=typeof f=="object"&&"className"in f?f.className:void 0,j=Sf(Sf(Sf(Sf({stroke:"#ccc",pointerEvents:"none"},o),x),P0(f)),{},{payload:y,payloadIndex:g,className:ft("recharts-tooltip-cursor",k)});return E.createElement(Ri,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:S},E.createElement(RX,{cursor:f,cursorComp:w,cursorProps:j}))}function LX(e){var t=rX(),n=aM(),r=Co(),a=cX();return t==null||n==null||r==null||a==null?null:E.createElement(IX,Wg({},e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:a}))}var UD=E.createContext(null),BX=()=>E.useContext(UD),Dy={exports:{}},i_;function UX(){return i_||(i_=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function a(f,d,m){this.fn=f,this.context=d,this.once=m||!1}function o(f,d,m,p,y){if(typeof m!="function")throw new TypeError("The listener must be a function");var g=new a(m,p||f,y),x=n?n+d:d;return f._events[x]?f._events[x].fn?f._events[x]=[f._events[x],g]:f._events[x].push(g):(f._events[x]=g,f._eventsCount++),f}function u(f,d){--f._eventsCount===0?f._events=new r:delete f._events[d]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var d=[],m,p;if(this._eventsCount===0)return d;for(p in m=this._events)t.call(m,p)&&d.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(m)):d},c.prototype.listeners=function(d){var m=n?n+d:d,p=this._events[m];if(!p)return[];if(p.fn)return[p.fn];for(var y=0,g=p.length,x=new Array(g);y<g;y++)x[y]=p[y].fn;return x},c.prototype.listenerCount=function(d){var m=n?n+d:d,p=this._events[m];return p?p.fn?1:p.length:0},c.prototype.emit=function(d,m,p,y,g,x){var w=n?n+d:d;if(!this._events[w])return!1;var S=this._events[w],O=arguments.length,C,T;if(S.fn){switch(S.once&&this.removeListener(d,S.fn,void 0,!0),O){case 1:return S.fn.call(S.context),!0;case 2:return S.fn.call(S.context,m),!0;case 3:return S.fn.call(S.context,m,p),!0;case 4:return S.fn.call(S.context,m,p,y),!0;case 5:return S.fn.call(S.context,m,p,y,g),!0;case 6:return S.fn.call(S.context,m,p,y,g,x),!0}for(T=1,C=new Array(O-1);T<O;T++)C[T-1]=arguments[T];S.fn.apply(S.context,C)}else{var D=S.length,P;for(T=0;T<D;T++)switch(S[T].once&&this.removeListener(d,S[T].fn,void 0,!0),O){case 1:S[T].fn.call(S[T].context);break;case 2:S[T].fn.call(S[T].context,m);break;case 3:S[T].fn.call(S[T].context,m,p);break;case 4:S[T].fn.call(S[T].context,m,p,y);break;default:if(!C)for(P=1,C=new Array(O-1);P<O;P++)C[P-1]=arguments[P];S[T].fn.apply(S[T].context,C)}}return!0},c.prototype.on=function(d,m,p){return o(this,d,m,p,!1)},c.prototype.once=function(d,m,p){return o(this,d,m,p,!0)},c.prototype.removeListener=function(d,m,p,y){var g=n?n+d:d;if(!this._events[g])return this;if(!m)return u(this,g),this;var x=this._events[g];if(x.fn)x.fn===m&&(!y||x.once)&&(!p||x.context===p)&&u(this,g);else{for(var w=0,S=[],O=x.length;w<O;w++)(x[w].fn!==m||y&&!x[w].once||p&&x[w].context!==p)&&S.push(x[w]);S.length?this._events[g]=S.length===1?S[0]:S:u(this,g)}return this},c.prototype.removeAllListeners=function(d){var m;return d?(m=n?n+d:d,this._events[m]&&u(this,m)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c})(Dy)),Dy.exports}var qX=UX();const HX=Tr(qX);var ps=new HX,Qg="recharts.syncEvent.tooltip",a_="recharts.syncEvent.brush",$X=(e,t)=>{if(t&&Array.isArray(e)){var n=Number.parseInt(t,10);if(!$r(n))return e[n]}},FX={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},qD=jn({name:"options",initialState:FX,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),VX=qD.reducer,{createEventEmitter:YX}=qD.actions;function KX(e){return e.tooltip.syncInteraction}var GX={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},HD=jn({name:"chartData",initialState:GX,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:r}=t.payload;n!=null&&(e.dataStartIndex=n),r!=null&&(e.dataEndIndex=r)}}}),{setChartData:l_,setDataStartEndIndexes:XX,setComputedData:jne}=HD.actions,ZX=HD.reducer,WX=["x","y"];function o_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ro(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o_(Object(n),!0).forEach(function(r){QX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QX(e,t,n){return(t=JX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JX(e){var t=eZ(e,"string");return typeof t=="symbol"?t:t+""}function eZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tZ(e,t){if(e==null)return{};var n,r,a=nZ(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function nZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function rZ(){var e=Ee(jb),t=Ee(Mb),n=wt(),r=Ee(Ez),a=Ee(Pi),o=Co(),u=Jd(),c=Ee(f=>f.rootProps.className);E.useEffect(()=>{if(e==null)return _o;var f=(d,m,p)=>{if(t!==p&&e===d){if(r==="index"){var y;if(u&&m!==null&&m!==void 0&&(y=m.payload)!==null&&y!==void 0&&y.coordinate&&m.payload.sourceViewBox){var g=m.payload.coordinate,{x,y:w}=g,S=tZ(g,WX),{x:O,y:C,width:T,height:D}=m.payload.sourceViewBox,P=ro(ro({},S),{},{x:u.x+(T?(x-O)/T:0)*u.width,y:u.y+(D?(w-C)/D:0)*u.height});n(ro(ro({},m),{},{payload:ro(ro({},m.payload),{},{coordinate:P})}))}else n(m);return}if(a!=null){var k;if(typeof r=="function"){var j={activeTooltipIndex:m.payload.index==null?void 0:Number(m.payload.index),isTooltipActive:m.payload.active,activeIndex:m.payload.index==null?void 0:Number(m.payload.index),activeLabel:m.payload.label,activeDataKey:m.payload.dataKey,activeCoordinate:m.payload.coordinate},U=r(a,j);k=a[U]}else r==="value"&&(k=a.find(L=>String(L.value)===m.payload.label));var{coordinate:$}=m.payload;if(k==null||m.payload.active===!1||$==null||u==null){n(Xg({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:I,y:Z}=$,q=Math.min(I,u.x+u.width),oe=Math.min(Z,u.y+u.height),ne={x:o==="horizontal"?k.coordinate:q,y:o==="horizontal"?oe:k.coordinate},Q=Xg({active:m.payload.active,coordinate:ne,dataKey:m.payload.dataKey,index:String(k.index),label:m.payload.label,sourceViewBox:m.payload.sourceViewBox,graphicalItemId:m.payload.graphicalItemId});n(Q)}}};return ps.on(Qg,f),()=>{ps.off(Qg,f)}},[c,n,t,e,r,a,o,u])}function iZ(){var e=Ee(jb),t=Ee(Mb),n=wt();E.useEffect(()=>{if(e==null)return _o;var r=(a,o,u)=>{t!==u&&e===a&&n(XX(o))};return ps.on(a_,r),()=>{ps.off(a_,r)}},[n,t,e])}function aZ(){var e=wt();E.useEffect(()=>{e(YX())},[e]),rZ(),iZ()}function lZ(e,t,n,r,a,o){var u=Ee(g=>dX(g,e,t)),c=Ee(Mb),f=Ee(jb),d=Ee(Ez),m=Ee(KX),p=m==null?void 0:m.active,y=Jd();E.useEffect(()=>{if(!p&&f!=null&&c!=null){var g=Xg({active:o,coordinate:n,dataKey:u,index:a,label:typeof r=="number"?String(r):r,sourceViewBox:y,graphicalItemId:void 0});ps.emit(Qg,f,g,c)}},[p,n,u,a,r,c,f,d,o,y])}function u_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function s_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u_(Object(n),!0).forEach(function(r){oZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oZ(e,t,n){return(t=uZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uZ(e){var t=sZ(e,"string");return typeof t=="symbol"?t:t+""}function sZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cZ(e){return e.dataKey}function fZ(e,t){return E.isValidElement(e)?E.cloneElement(e,t):typeof e=="function"?E.createElement(e,t):E.createElement(G7,t)}var c_=[],dZ={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function hZ(e){var t,n,r=Kn(e,dZ),{active:a,allowEscapeViewBox:o,animationDuration:u,animationEasing:c,content:f,filterNull:d,isAnimationActive:m,offset:p,payloadUniqBy:y,position:g,reverseDirection:x,useTranslate3d:w,wrapperStyle:S,cursor:O,shared:C,trigger:T,defaultIndex:D,portal:P,axisId:k}=r,j=wt(),U=typeof D=="number"?String(D):D;E.useEffect(()=>{j(uG({shared:C,trigger:T,axisId:k,active:a,defaultIndex:U}))},[j,C,T,k,a,U]);var $=Jd(),I=yM(),Z=nG(C),{activeIndex:q,isActive:oe}=(t=Ee(Se=>pX(Se,Z,T,U)))!==null&&t!==void 0?t:{},ne=Ee(Se=>mX(Se,Z,T,U)),Q=Ee(Se=>LD(Se,Z,T,U)),L=Ee(Se=>hX(Se,Z,T,U)),K=ne,J=BX(),re=(n=a??oe)!==null&&n!==void 0?n:!1,[N,R]=zq([K,re]),V=Z==="axis"?Q:void 0;lZ(Z,T,L,V,q,re);var z=P??J;if(z==null||$==null||Z==null)return null;var se=K??c_;re||(se=c_),d&&se.length&&(se=iq(se.filter(Se=>Se.value!=null&&(Se.hide!==!0||r.includeHidden)),y,cZ));var ye=se.length>0,ve=E.createElement(t$,{allowEscapeViewBox:o,animationDuration:u,animationEasing:c,isAnimationActive:m,active:re,coordinate:L,hasPayload:ye,offset:p,position:g,reverseDirection:x,useTranslate3d:w,viewBox:$,wrapperStyle:S,lastBoundingBox:N,innerRef:R,hasPortalFromProps:!!P},fZ(f,s_(s_({},r),{},{payload:se,label:V,active:re,activeIndex:q,coordinate:L,accessibilityLayer:I})));return E.createElement(E.Fragment,null,HT.createPortal(ve,z),re&&E.createElement(LX,{cursor:O,tooltipEventType:Z,coordinate:L,payload:se,index:q}))}var $D=e=>null;$D.displayName="Cell";function mZ(e,t,n){return(t=pZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pZ(e){var t=vZ(e,"string");return typeof t=="symbol"?t:t+""}function vZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class yZ{constructor(t){mZ(this,"cache",new Map),this.maxSize=t}get(t){var n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;r!=null&&this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}size(){return this.cache.size}}function f_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function gZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f_(Object(n),!0).forEach(function(r){bZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bZ(e,t,n){return(t=xZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xZ(e){var t=wZ(e,"string");return typeof t=="symbol"?t:t+""}function wZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SZ={cacheSize:2e3,enableCache:!0},FD=gZ({},SZ),d_=new yZ(FD.cacheSize),OZ={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},h_="recharts_measurement_span";function EZ(e,t){var n=t.fontSize||"",r=t.fontFamily||"",a=t.fontWeight||"",o=t.fontStyle||"",u=t.letterSpacing||"",c=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(r,"|").concat(a,"|").concat(o,"|").concat(u,"|").concat(c)}var m_=(e,t)=>{try{var n=document.getElementById(h_);n||(n=document.createElement("span"),n.setAttribute("id",h_),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,OZ,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},Ju=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||rh.isSsr)return{width:0,height:0};if(!FD.enableCache)return m_(t,n);var r=EZ(t,n),a=d_.get(r);if(a)return a;var o=m_(t,n);return d_.set(r,o),o},VD;function AZ(e,t,n){return(t=kZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kZ(e){var t=_Z(e,"string");return typeof t=="symbol"?t:t+""}function _Z(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var p_=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,v_=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,CZ=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,TZ=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,jZ={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},MZ=["cm","mm","pt","pc","in","Q","px"];function zZ(e){return MZ.includes(e)}var oo="NaN";function DZ(e,t){return e*jZ[t]}class Qt{static parse(t){var n,[,r,a]=(n=TZ.exec(t))!==null&&n!==void 0?n:[];return r==null?Qt.NaN:new Qt(parseFloat(r),a??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,$r(t)&&(this.unit=""),n!==""&&!CZ.test(n)&&(this.num=NaN,this.unit=""),zZ(n)&&(this.num=DZ(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new Qt(NaN,""):new Qt(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new Qt(NaN,""):new Qt(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Qt(NaN,""):new Qt(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Qt(NaN,""):new Qt(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return $r(this.num)}}VD=Qt;AZ(Qt,"NaN",new VD(NaN,""));function YD(e){if(e==null||e.includes(oo))return oo;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,a,o]=(n=p_.exec(t))!==null&&n!==void 0?n:[],u=Qt.parse(r??""),c=Qt.parse(o??""),f=a==="*"?u.multiply(c):u.divide(c);if(f.isNaN())return oo;t=t.replace(p_,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,[,m,p,y]=(d=v_.exec(t))!==null&&d!==void 0?d:[],g=Qt.parse(m??""),x=Qt.parse(y??""),w=p==="+"?g.add(x):g.subtract(x);if(w.isNaN())return oo;t=t.replace(v_,w.toString())}return t}var y_=/\(([^()]*)\)/;function NZ(e){for(var t=e,n;(n=y_.exec(t))!=null;){var[,r]=n;t=t.replace(y_,YD(r))}return t}function PZ(e){var t=e.replace(/\s+/g,"");return t=NZ(t),t=YD(t),t}function RZ(e){try{return PZ(e)}catch{return oo}}function Ny(e){var t=RZ(e.slice(5,-1));return t===oo?"":t}var IZ=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],LZ=["dx","dy","angle","className","breakAll"];function Jg(){return Jg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jg.apply(null,arguments)}function g_(e,t){if(e==null)return{};var n,r,a=BZ(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function BZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var KD=/[ \f\n\r\t\v\u2028\u2029]+/,GD=e=>{var{children:t,breakAll:n,style:r}=e;try{var a=[];qt(t)||(n?a=t.toString().split(""):a=t.toString().split(KD));var o=a.map(c=>({word:c,width:Ju(c,r).width})),u=n?0:Ju(" ",r).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}};function UZ(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var XD=(e,t,n,r)=>e.reduce((a,o)=>{var{word:u,width:c}=o,f=a[a.length-1];if(f&&c!=null&&(t==null||r||f.width+c+n<Number(t)))f.words.push(u),f.width+=c+n;else{var d={words:[u],width:c};a.push(d)}return a},[]),ZD=e=>e.reduce((t,n)=>t.width>n.width?t:n),qZ="…",b_=(e,t,n,r,a,o,u,c)=>{var f=e.slice(0,t),d=GD({breakAll:n,style:r,children:f+qZ});if(!d)return[!1,[]];var m=XD(d.wordsWithComputedWidth,o,u,c),p=m.length>a||ZD(m).width>Number(o);return[p,m]},HZ=(e,t,n,r,a)=>{var{maxLines:o,children:u,style:c,breakAll:f}=e,d=we(o),m=String(u),p=XD(t,r,n,a);if(!d||a)return p;var y=p.length>o||ZD(p).width>Number(r);if(!y)return p;for(var g=0,x=m.length-1,w=0,S;g<=x&&w<=m.length-1;){var O=Math.floor((g+x)/2),C=O-1,[T,D]=b_(m,C,f,c,o,r,n,a),[P]=b_(m,O,f,c,o,r,n,a);if(!T&&!P&&(g=O+1),T&&P&&(x=O-1),!T&&P){S=D;break}w++}return S||p},x_=e=>{var t=qt(e)?[]:e.toString().split(KD);return[{words:t,width:void 0}]},$Z=e=>{var{width:t,scaleToFit:n,children:r,style:a,breakAll:o,maxLines:u}=e;if((t||n)&&!rh.isSsr){var c,f,d=GD({breakAll:o,children:r,style:a});if(d){var{wordsWithComputedWidth:m,spaceWidth:p}=d;c=m,f=p}else return x_(r);return HZ({breakAll:o,children:r,maxLines:u,style:a},c,f,t,!!n)}return x_(r)},WD="#808080",FZ={angle:0,breakAll:!1,capHeight:"0.71em",fill:WD,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},nx=E.forwardRef((e,t)=>{var n=Kn(e,FZ),{x:r,y:a,lineHeight:o,capHeight:u,fill:c,scaleToFit:f,textAnchor:d,verticalAnchor:m}=n,p=g_(n,IZ),y=E.useMemo(()=>$Z({breakAll:p.breakAll,children:p.children,maxLines:p.maxLines,scaleToFit:f,style:p.style,width:p.width}),[p.breakAll,p.children,p.maxLines,f,p.style,p.width]),{dx:g,dy:x,angle:w,className:S,breakAll:O}=p,C=g_(p,LZ);if(!Fr(r)||!Fr(a)||y.length===0)return null;var T=Number(r)+(we(g)?g:0),D=Number(a)+(we(x)?x:0);if(!qe(T)||!qe(D))return null;var P;switch(m){case"start":P=Ny("calc(".concat(u,")"));break;case"middle":P=Ny("calc(".concat((y.length-1)/2," * -").concat(o," + (").concat(u," / 2))"));break;default:P=Ny("calc(".concat(y.length-1," * -").concat(o,")"));break}var k=[],j=y[0];if(f&&j!=null){var U=j.width,{width:$}=p;k.push("scale(".concat(we($)&&we(U)?$/U:1,")"))}return w&&k.push("rotate(".concat(w,", ").concat(T,", ").concat(D,")")),k.length&&(C.transform=k.join(" ")),E.createElement("text",Jg({},hr(C),{ref:t,x:T,y:D,className:ft("recharts-text",S),textAnchor:d,fill:c.includes("url")?WD:c}),y.map((I,Z)=>{var q=I.words.join(O?"":" ");return E.createElement("tspan",{x:T,dy:Z===0?P:o,key:"".concat(q,"-").concat(Z)},q)}))});nx.displayName="Text";function w_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ir(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w_(Object(n),!0).forEach(function(r){VZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VZ(e,t,n){return(t=YZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YZ(e){var t=KZ(e,"string");return typeof t=="symbol"?t:t+""}function KZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var GZ=e=>{var{viewBox:t,position:n,offset:r=0,parentViewBox:a}=e,{x:o,y:u,height:c,upperWidth:f,lowerWidth:d}=eb(t),m=o,p=o+(f-d)/2,y=(m+p)/2,g=(f+d)/2,x=m+f/2,w=c>=0?1:-1,S=w*r,O=w>0?"end":"start",C=w>0?"start":"end",T=f>=0?1:-1,D=T*r,P=T>0?"end":"start",k=T>0?"start":"end",j=a;if(n==="top"){var U={x:m+f/2,y:u-S,horizontalAnchor:"middle",verticalAnchor:O};return j&&(U.height=Math.max(u-j.y,0),U.width=f),U}if(n==="bottom"){var $={x:p+d/2,y:u+c+S,horizontalAnchor:"middle",verticalAnchor:C};return j&&($.height=Math.max(j.y+j.height-(u+c),0),$.width=d),$}if(n==="left"){var I={x:y-D,y:u+c/2,horizontalAnchor:P,verticalAnchor:"middle"};return j&&(I.width=Math.max(I.x-j.x,0),I.height=c),I}if(n==="right"){var Z={x:y+g+D,y:u+c/2,horizontalAnchor:k,verticalAnchor:"middle"};return j&&(Z.width=Math.max(j.x+j.width-Z.x,0),Z.height=c),Z}var q=j?{width:g,height:c}:{};return n==="insideLeft"?Ir({x:y+D,y:u+c/2,horizontalAnchor:k,verticalAnchor:"middle"},q):n==="insideRight"?Ir({x:y+g-D,y:u+c/2,horizontalAnchor:P,verticalAnchor:"middle"},q):n==="insideTop"?Ir({x:m+f/2,y:u+S,horizontalAnchor:"middle",verticalAnchor:C},q):n==="insideBottom"?Ir({x:p+d/2,y:u+c-S,horizontalAnchor:"middle",verticalAnchor:O},q):n==="insideTopLeft"?Ir({x:m+D,y:u+S,horizontalAnchor:k,verticalAnchor:C},q):n==="insideTopRight"?Ir({x:m+f-D,y:u+S,horizontalAnchor:P,verticalAnchor:C},q):n==="insideBottomLeft"?Ir({x:p+D,y:u+c-S,horizontalAnchor:k,verticalAnchor:O},q):n==="insideBottomRight"?Ir({x:p+d-D,y:u+c-S,horizontalAnchor:P,verticalAnchor:O},q):n&&typeof n=="object"&&(we(n.x)||Ja(n.x))&&(we(n.y)||Ja(n.y))?Ir({x:o+_r(n.x,g),y:u+_r(n.y,c),horizontalAnchor:"end",verticalAnchor:"end"},q):Ir({x,y:u+c/2,horizontalAnchor:"middle",verticalAnchor:"middle"},q)},XZ=["labelRef"],ZZ=["content"];function S_(e,t){if(e==null)return{};var n,r,a=WZ(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function WZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function O_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Xu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O_(Object(n),!0).forEach(function(r){QZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QZ(e,t,n){return(t=JZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JZ(e){var t=eW(e,"string");return typeof t=="symbol"?t:t+""}function eW(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mi(){return mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mi.apply(null,arguments)}var QD=E.createContext(null),tW=e=>{var{x:t,y:n,upperWidth:r,lowerWidth:a,width:o,height:u,children:c}=e,f=E.useMemo(()=>({x:t,y:n,upperWidth:r,lowerWidth:a,width:o,height:u}),[t,n,r,a,o,u]);return E.createElement(QD.Provider,{value:f},c)},JD=()=>{var e=E.useContext(QD),t=Jd();return e||(t?eb(t):void 0)},nW=E.createContext(null),rW=()=>{var e=E.useContext(nW),t=Ee(Tz);return e||t},iW=e=>{var{value:t,formatter:n}=e,r=qt(e.children)?t:e.children;return typeof n=="function"?n(r):r},rx=e=>e!=null&&typeof e=="function",aW=(e,t)=>{var n=kn(t-e),r=Math.min(Math.abs(t-e),360);return n*r},lW=(e,t,n,r,a)=>{var{offset:o,className:u}=e,{cx:c,cy:f,innerRadius:d,outerRadius:m,startAngle:p,endAngle:y,clockWise:g}=a,x=(d+m)/2,w=aW(p,y),S=w>=0?1:-1,O,C;switch(t){case"insideStart":O=p+S*o,C=g;break;case"insideEnd":O=y-S*o,C=!g;break;case"end":O=y+S*o,C=g;break;default:throw new Error("Unsupported position ".concat(t))}C=w<=0?C:!C;var T=en(c,f,x,O),D=en(c,f,x,O+(C?1:-1)*359),P="M".concat(T.x,",").concat(T.y,`
    A`).concat(x,",").concat(x,",0,1,").concat(C?0:1,`,
    `).concat(D.x,",").concat(D.y),k=qt(e.id)?ns("recharts-radial-line-"):e.id;return E.createElement("text",mi({},r,{dominantBaseline:"central",className:ft("recharts-radial-bar-label",u)}),E.createElement("defs",null,E.createElement("path",{id:k,d:P})),E.createElement("textPath",{xlinkHref:"#".concat(k)},n))},oW=(e,t,n)=>{var{cx:r,cy:a,innerRadius:o,outerRadius:u,startAngle:c,endAngle:f}=e,d=(c+f)/2;if(n==="outside"){var{x:m,y:p}=en(r,a,u+t,d);return{x:m,y:p,textAnchor:m>=r?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:r,y:a,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:r,y:a,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:r,y:a,textAnchor:"middle",verticalAnchor:"end"};var y=(o+u)/2,{x:g,y:x}=en(r,a,y,d);return{x:g,y:x,textAnchor:"middle",verticalAnchor:"middle"}},jf=e=>e!=null&&"cx"in e&&we(e.cx),uW={angle:0,offset:5,zIndex:mn.label,position:"middle",textBreakAll:!1};function sW(e){if(!jf(e))return e;var{cx:t,cy:n,outerRadius:r}=e,a=r*2;return{x:t-r,y:n-r,width:a,upperWidth:a,lowerWidth:a,height:a}}function ca(e){var t=Kn(e,uW),{viewBox:n,parentViewBox:r,position:a,value:o,children:u,content:c,className:f="",textBreakAll:d,labelRef:m}=t,p=rW(),y=JD(),g=a==="center"?y:p??y,x,w,S;n==null?x=g:jf(n)?x=n:x=eb(n);var O=sW(x);if(!x||qt(o)&&qt(u)&&!E.isValidElement(c)&&typeof c!="function")return null;var C=Xu(Xu({},t),{},{viewBox:x});if(E.isValidElement(c)){var{labelRef:T}=C,D=S_(C,XZ);return E.cloneElement(c,D)}if(typeof c=="function"){var{content:P}=C,k=S_(C,ZZ);if(w=E.createElement(c,k),E.isValidElement(w))return w}else w=iW(t);var j=hr(t);if(jf(x)){if(a==="insideStart"||a==="insideEnd"||a==="end")return lW(t,a,w,j,x);S=oW(x,t.offset,t.position)}else{if(!O)return null;var U=GZ({viewBox:O,position:a,offset:t.offset,parentViewBox:jf(r)?void 0:r});S=Xu(Xu({x:U.x,y:U.y,textAnchor:U.horizontalAnchor,verticalAnchor:U.verticalAnchor},U.width!==void 0?{width:U.width}:{}),U.height!==void 0?{height:U.height}:{})}return E.createElement(Ri,{zIndex:t.zIndex},E.createElement(nx,mi({ref:m,className:ft("recharts-label",f)},j,S,{textAnchor:UZ(j.textAnchor)?j.textAnchor:S.textAnchor,breakAll:d}),w))}ca.displayName="Label";var cW=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?E.createElement(ca,mi({key:"label-implicit"},r)):Fr(e)?E.createElement(ca,mi({key:"label-implicit",value:e},r)):E.isValidElement(e)?e.type===ca?E.cloneElement(e,Xu({key:"label-implicit"},r)):E.createElement(ca,mi({key:"label-implicit",content:e},r)):rx(e)?E.createElement(ca,mi({key:"label-implicit",content:e},r)):e&&typeof e=="object"?E.createElement(ca,mi({},e,{key:"label-implicit"},r)):null};function fW(e){var{label:t,labelRef:n}=e,r=JD();return cW(t,r,n)||null}var Py={},Ry={},E_;function dW(){return E_||(E_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n[n.length-1]}e.last=t})(Ry)),Ry}var Iy={},A_;function hW(){return A_||(A_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Array.isArray(n)?n:Array.from(n)}e.toArray=t})(Iy)),Iy}var k_;function mW(){return k_||(k_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dW(),n=hW(),r=$0();function a(o){if(r.isArrayLike(o))return t.last(n.toArray(o))}e.last=a})(Py)),Py}var Ly,__;function pW(){return __||(__=1,Ly=mW().last),Ly}var vW=pW();const yW=Tr(vW);var gW=["valueAccessor"],bW=["dataKey","clockWise","id","textBreakAll","zIndex"];function Sd(){return Sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sd.apply(null,arguments)}function C_(e,t){if(e==null)return{};var n,r,a=xW(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function xW(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var wW=e=>Array.isArray(e.value)?yW(e.value):e.value,eN=E.createContext(void 0),SW=eN.Provider,tN=E.createContext(void 0);tN.Provider;function OW(){return E.useContext(eN)}function EW(){return E.useContext(tN)}function Mf(e){var{valueAccessor:t=wW}=e,n=C_(e,gW),{dataKey:r,clockWise:a,id:o,textBreakAll:u,zIndex:c}=n,f=C_(n,bW),d=OW(),m=EW(),p=d||m;return!p||!p.length?null:E.createElement(Ri,{zIndex:c??mn.label},E.createElement(xi,{className:"recharts-label-list"},p.map((y,g)=>{var x,w=qt(r)?t(y,g):tn(y.payload,r),S=qt(o)?{}:{id:"".concat(o,"-").concat(g)};return E.createElement(ca,Sd({key:"label-".concat(g)},hr(y),f,S,{fill:(x=n.fill)!==null&&x!==void 0?x:y.fill,parentViewBox:y.parentViewBox,value:w,textBreakAll:u,viewBox:y.viewBox,index:g,zIndex:0}))})))}Mf.displayName="LabelList";function AW(e){var{label:t}=e;return t?t===!0?E.createElement(Mf,{key:"labelList-implicit"}):E.isValidElement(t)||rx(t)?E.createElement(Mf,{key:"labelList-implicit",content:t}):typeof t=="object"?E.createElement(Mf,Sd({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}var kW={radiusAxis:{},angleAxis:{}},nN=jn({name:"polarAxis",initialState:kW,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:Mne,removeRadiusAxis:zne,addAngleAxis:Dne,removeAngleAxis:Nne}=nN.actions,_W=nN.reducer;function CW(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var By={exports:{}},et={};/**
 * @license React
 * react-is.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var T_;function TW(){if(T_)return et;T_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function x(w){if(typeof w=="object"&&w!==null){var S=w.$$typeof;switch(S){case e:switch(w=w.type,w){case n:case a:case r:case f:case d:case y:return w;default:switch(w=w&&w.$$typeof,w){case u:case c:case p:case m:return w;case o:return w;default:return S}}case t:return S}}}return et.ContextConsumer=o,et.ContextProvider=u,et.Element=e,et.ForwardRef=c,et.Fragment=n,et.Lazy=p,et.Memo=m,et.Portal=t,et.Profiler=a,et.StrictMode=r,et.Suspense=f,et.SuspenseList=d,et.isContextConsumer=function(w){return x(w)===o},et.isContextProvider=function(w){return x(w)===u},et.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},et.isForwardRef=function(w){return x(w)===c},et.isFragment=function(w){return x(w)===n},et.isLazy=function(w){return x(w)===p},et.isMemo=function(w){return x(w)===m},et.isPortal=function(w){return x(w)===t},et.isProfiler=function(w){return x(w)===a},et.isStrictMode=function(w){return x(w)===r},et.isSuspense=function(w){return x(w)===f},et.isSuspenseList=function(w){return x(w)===d},et.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===a||w===r||w===f||w===d||typeof w=="object"&&w!==null&&(w.$$typeof===p||w.$$typeof===m||w.$$typeof===u||w.$$typeof===o||w.$$typeof===c||w.$$typeof===g||w.getModuleId!==void 0)},et.typeOf=x,et}var j_;function jW(){return j_||(j_=1,By.exports=TW()),By.exports}var MW=jW(),M_=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",z_=null,Uy=null,rN=e=>{if(e===z_&&Array.isArray(Uy))return Uy;var t=[];return E.Children.forEach(e,n=>{qt(n)||(MW.isFragment(n)?t=t.concat(rN(n.props.children)):t.push(n))}),Uy=t,z_=e,t};function zW(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(a=>M_(a)):r=[M_(t)],rN(e).forEach(a=>{var o=po(a,"type.displayName")||po(a,"type.name");o&&r.indexOf(o)!==-1&&n.push(a)}),n}var qy={},D_;function DW(){return D_||(D_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var a;if(typeof n!="object"||n==null)return!1;if(Object.getPrototypeOf(n)===null)return!0;if(Object.prototype.toString.call(n)!=="[object Object]"){const o=n[Symbol.toStringTag];return o==null||!((a=Object.getOwnPropertyDescriptor(n,Symbol.toStringTag))!=null&&a.writable)?!1:n.toString()===`[object ${o}]`}let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r}e.isPlainObject=t})(qy)),qy}var Hy,N_;function NW(){return N_||(N_=1,Hy=DW().isPlainObject),Hy}var PW=NW();const RW=Tr(PW);var P_,R_,I_,L_,B_;function U_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function q_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U_(Object(n),!0).forEach(function(r){IW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IW(e,t,n){return(t=LW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LW(e){var t=BW(e,"string");return typeof t=="symbol"?t:t+""}function BW(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Od(){return Od=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Od.apply(null,arguments)}function Vu(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var H_=(e,t,n,r,a)=>{var o=n-r,u;return u=gt(P_||(P_=Vu(["M ",",",""])),e,t),u+=gt(R_||(R_=Vu(["L ",",",""])),e+n,t),u+=gt(I_||(I_=Vu(["L ",",",""])),e+n-o/2,t+a),u+=gt(L_||(L_=Vu(["L ",",",""])),e+n-o/2-r,t+a),u+=gt(B_||(B_=Vu(["L ",","," Z"])),e,t),u},UW={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},qW=e=>{var t=Kn(e,UW),{x:n,y:r,upperWidth:a,lowerWidth:o,height:u,className:c}=t,{animationEasing:f,animationDuration:d,animationBegin:m,isUpdateAnimationActive:p}=t,y=E.useRef(null),[g,x]=E.useState(-1),w=E.useRef(a),S=E.useRef(o),O=E.useRef(u),C=E.useRef(n),T=E.useRef(r),D=ib(e,"trapezoid-");if(E.useEffect(()=>{if(y.current&&y.current.getTotalLength)try{var ne=y.current.getTotalLength();ne&&x(ne)}catch{}},[]),n!==+n||r!==+r||a!==+a||o!==+o||u!==+u||a===0&&o===0||u===0)return null;var P=ft("recharts-trapezoid",c);if(!p)return E.createElement("g",null,E.createElement("path",Od({},hr(t),{className:P,d:H_(n,r,a,o,u)})));var k=w.current,j=S.current,U=O.current,$=C.current,I=T.current,Z="0px ".concat(g===-1?1:g,"px"),q="".concat(g,"px 0px"),oe=bM(["strokeDasharray"],d,f);return E.createElement(rb,{animationId:D,key:D,canBegin:g>0,duration:d,easing:f,isActive:p,begin:m},ne=>{var Q=Jt(k,a,ne),L=Jt(j,o,ne),K=Jt(U,u,ne),J=Jt($,n,ne),re=Jt(I,r,ne);y.current&&(w.current=Q,S.current=L,O.current=K,C.current=J,T.current=re);var N=ne>0?{transition:oe,strokeDasharray:q}:{strokeDasharray:Z};return E.createElement("path",Od({},hr(t),{className:P,d:H_(J,re,Q,L,K),ref:y,style:q_(q_({},N),t.style)}))})},HW=["option","shapeType","activeClassName"];function $W(e,t){if(e==null)return{};var n,r,a=FW(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function FW(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function $_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ed(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$_(Object(n),!0).forEach(function(r){VW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VW(e,t,n){return(t=YW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YW(e){var t=KW(e,"string");return typeof t=="symbol"?t:t+""}function KW(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GW(e,t){return Ed(Ed({},t),e)}function XW(e,t){return e==="symbols"}function F_(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return E.createElement(OM,n);case"trapezoid":return E.createElement(qW,n);case"sector":return E.createElement(kM,n);case"symbols":if(XW(t))return E.createElement(uj,n);break;case"curve":return E.createElement(gM,n);default:return null}}function ZW(e){return E.isValidElement(e)?e.props:e}function WW(e){var{option:t,shapeType:n,activeClassName:r="recharts-active-shape"}=e,a=$W(e,HW),o;if(E.isValidElement(t))o=E.cloneElement(t,Ed(Ed({},a),ZW(t)));else if(typeof t=="function")o=t(a,a.index);else if(RW(t)&&typeof t!="boolean"){var u=GW(t,a);o=E.createElement(F_,{shapeType:n,elementProps:u})}else{var c=a;o=E.createElement(F_,{shapeType:n,elementProps:c})}return a.isActive?E.createElement(xi,{className:r},o):o}var iN=(e,t,n)=>{var r=wt();return(a,o)=>u=>{e==null||e(a,o,u),r(gD({activeIndex:String(o),activeDataKey:t,activeCoordinate:a.tooltipPosition,activeGraphicalItemId:n}))}},aN=e=>{var t=wt();return(n,r)=>a=>{e==null||e(n,r,a),t(sG())}},lN=(e,t,n)=>{var r=wt();return(a,o)=>u=>{e==null||e(a,o,u),r(cG({activeIndex:String(o),activeDataKey:t,activeCoordinate:a.tooltipPosition,activeGraphicalItemId:n}))}};function QW(e){var{tooltipEntrySettings:t}=e,n=wt(),r=Mn(),a=E.useRef(null);return E.useLayoutEffect(()=>{r||(a.current===null?n(aG(t)):a.current!==t&&n(lG({prev:a.current,next:t})),a.current=t)},[t,n,r]),E.useLayoutEffect(()=>()=>{a.current&&(n(oG(a.current)),a.current=null)},[n]),null}function JW(e){var{legendPayload:t}=e,n=wt(),r=Mn(),a=E.useRef(null);return E.useLayoutEffect(()=>{r||(a.current===null?n(U7(t)):a.current!==t&&n(q7({prev:a.current,next:t})),a.current=t)},[n,r,t]),E.useLayoutEffect(()=>()=>{a.current&&(n(H7(a.current)),a.current=null)},[n]),null}var $y,eQ=()=>{var[e]=E.useState(()=>ns("uid-"));return e},tQ=($y=tI.useId)!==null&&$y!==void 0?$y:eQ;function nQ(e,t){var n=tQ();return t||(e?"".concat(e,"-").concat(n):n)}var rQ=E.createContext(void 0),iQ=e=>{var{id:t,type:n,children:r}=e,a=nQ("recharts-".concat(n),t);return E.createElement(rQ.Provider,{value:a},r(a))},aQ={cartesianItems:[],polarItems:[]},oN=jn({name:"graphicalItems",initialState:aQ,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:ht()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,a=kr(e).cartesianItems.indexOf(n);a>-1&&(e.cartesianItems[a]=r)},prepare:ht()},removeCartesianGraphicalItem:{reducer(e,t){var n=kr(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},prepare:ht()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:ht()},removePolarGraphicalItem:{reducer(e,t){var n=kr(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)},prepare:ht()}}}),{addCartesianGraphicalItem:lQ,replaceCartesianGraphicalItem:oQ,removeCartesianGraphicalItem:uQ,addPolarGraphicalItem:Pne,removePolarGraphicalItem:Rne}=oN.actions,sQ=oN.reducer,cQ=e=>{var t=wt(),n=E.useRef(null);return E.useLayoutEffect(()=>{n.current===null?t(lQ(e)):n.current!==e&&t(oQ({prev:n.current,next:e})),n.current=e},[t,e]),E.useLayoutEffect(()=>()=>{n.current&&(t(uQ(n.current)),n.current=null)},[t]),null},fQ=E.memo(cQ);function V_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Y_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V_(Object(n),!0).forEach(function(r){dQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dQ(e,t,n){return(t=hQ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hQ(e){var t=mQ(e,"string");return typeof t=="symbol"?t:t+""}function mQ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uN=0,pQ={xAxis:{},yAxis:{},zAxis:{}},sN=jn({name:"cartesianAxis",initialState:pQ,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:ht()},replaceXAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.xAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.xAxis[n.id],e.xAxis[r.id]=r)},prepare:ht()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:ht()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:ht()},replaceYAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.yAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.yAxis[n.id],e.yAxis[r.id]=r)},prepare:ht()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:ht()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:ht()},replaceZAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.zAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.zAxis[n.id],e.zAxis[r.id]=r)},prepare:ht()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:ht()},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload,a=e.yAxis[n];if(a){var o,u=a.widthHistory||[];if(u.length===3&&u[0]===u[2]&&r===u[1]&&r!==a.width&&Math.abs(r-((o=u[0])!==null&&o!==void 0?o:0))<=1)return;var c=[...u,r].slice(-3);e.yAxis[n]=Y_(Y_({},a),{},{width:r,widthHistory:c})}}}}),{addXAxis:vQ,replaceXAxis:yQ,removeXAxis:gQ,addYAxis:bQ,replaceYAxis:xQ,removeYAxis:wQ,addZAxis:Ine,replaceZAxis:Lne,removeZAxis:Bne,updateYAxisWidth:SQ}=sN.actions,OQ=sN.reducer,EQ=ee([Ht],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),AQ=ee([EQ,Ti,ji],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),cN=()=>Ee(AQ),K_=(e,t,n)=>{var r=n??e;if(!qt(r))return _r(r,t,0)},kQ=(e,t,n)=>{var r={},a=e.filter(vh),o=e.filter(d=>d.stackId==null),u=a.reduce((d,m)=>{var p=d[m.stackId];return p==null&&(p=[]),p.push(m),d[m.stackId]=p,d},r),c=Object.entries(u).map(d=>{var m,[p,y]=d,g=y.map(w=>w.dataKey),x=K_(t,n,(m=y[0])===null||m===void 0?void 0:m.barSize);return{stackId:p,dataKeys:g,barSize:x}}),f=o.map(d=>{var m=[d.dataKey].filter(y=>y!=null),p=K_(t,n,d.barSize);return{stackId:void 0,dataKeys:m,barSize:p}});return[...c,...f]};function G_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Of(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G_(Object(n),!0).forEach(function(r){_Q(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _Q(e,t,n){return(t=CQ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CQ(e){var t=TQ(e,"string");return typeof t=="symbol"?t:t+""}function TQ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jQ(e,t,n,r,a){var o,u=r.length;if(!(u<1)){var c=_r(e,n,0,!0),f,d=[];if(qe((o=r[0])===null||o===void 0?void 0:o.barSize)){var m=!1,p=n/u,y=r.reduce((C,T)=>C+(T.barSize||0),0);y+=(u-1)*c,y>=n&&(y-=(u-1)*c,c=0),y>=n&&p>0&&(m=!0,p*=.9,y=u*p);var g=(n-y)/2>>0,x={offset:g-c,size:0};f=r.reduce((C,T)=>{var D,P={stackId:T.stackId,dataKeys:T.dataKeys,position:{offset:x.offset+x.size+c,size:m?p:(D=T.barSize)!==null&&D!==void 0?D:0}},k=[...C,P];return x=P.position,k},d)}else{var w=_r(t,n,0,!0);n-2*w-(u-1)*c<=0&&(c=0);var S=(n-2*w-(u-1)*c)/u;S>1&&(S>>=0);var O=qe(a)?Math.min(S,a):S;f=r.reduce((C,T,D)=>[...C,{stackId:T.stackId,dataKeys:T.dataKeys,position:{offset:w+(S+c)*D+(S-O)/2,size:O}}],d)}return f}}var MQ=(e,t,n,r,a,o,u)=>{var c=qt(u)?t:u,f=jQ(n,r,a!==o?a:o,e,c);return a!==o&&f!=null&&(f=f.map(d=>Of(Of({},d),{},{position:Of(Of({},d.position),{},{offset:d.position.offset-a/2})}))),f},zQ=(e,t)=>{var n=Pb(t);if(!(!e||n==null||t==null)){var{stackId:r}=t;if(r!=null){var a=e[r];if(a){var{stackedData:o}=a;if(o)return o.find(u=>u.key===n)}}}},DQ=(e,t)=>{if(!(e==null||t==null)){var n=e.find(r=>r.stackId===t.stackId&&t.dataKey!=null&&r.dataKeys.includes(t.dataKey));if(n!=null)return n.position}};function NQ(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&qe(e.zIndex)?e.zIndex:t}var PQ=e=>{var{chartData:t}=e,n=wt(),r=Mn();return E.useEffect(()=>r?()=>{}:(n(l_(t)),()=>{n(l_(void 0))}),[t,n,r]),null},X_={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},fN=jn({name:"brush",initialState:X_,reducers:{setBrushSettings(e,t){return t.payload==null?X_:t.payload}}}),{setBrushSettings:Une}=fN.actions,RQ=fN.reducer;function IQ(e){return(e%180+180)%180}var LQ=function(t){var{width:n,height:r}=t,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=IQ(a),u=o*Math.PI/180,c=Math.atan(r/n),f=u>c&&u<Math.PI-c?r/Math.sin(u):n/Math.cos(u);return Math.abs(f)},BQ={dots:[],areas:[],lines:[]},dN=jn({name:"referenceElements",initialState:BQ,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=kr(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=kr(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=kr(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:qne,removeDot:Hne,addArea:$ne,removeArea:Fne,addLine:Vne,removeLine:Yne}=dN.actions,UQ=dN.reducer,qQ=E.createContext(void 0),HQ=e=>{var{children:t}=e,[n]=E.useState("".concat(ns("recharts"),"-clip")),r=cN();if(r==null)return null;var{x:a,y:o,width:u,height:c}=r;return E.createElement(qQ.Provider,{value:n},E.createElement("defs",null,E.createElement("clipPath",{id:n},E.createElement("rect",{x:a,y:o,height:c,width:u}))),t)};function hN(e,t){if(t<1)return[];if(t===1)return e;for(var n=[],r=0;r<e.length;r+=t){var a=e[r];a!==void 0&&n.push(a)}return n}function $Q(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return LQ(r,n)}function FQ(e,t,n){var r=n==="width",{x:a,y:o,width:u,height:c}=e;return t===1?{start:r?a:o,end:r?a+u:o+c}:{start:r?a+u:o+c,end:r?a:o}}function vs(e,t,n,r,a){if(e*t<e*r||e*t>e*a)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-a)<=0}function VQ(e,t){return hN(e,t+1)}function YQ(e,t,n,r,a){for(var o=(r||[]).slice(),{start:u,end:c}=t,f=0,d=1,m=u,p=function(){var x=r==null?void 0:r[f];if(x===void 0)return{v:hN(r,d)};var w=f,S,O=()=>(S===void 0&&(S=n(x,w)),S),C=x.coordinate,T=f===0||vs(e,C,O,m,c);T||(f=0,m=u,d+=1),T&&(m=C+e*(O()/2+a),f+=d)},y;d<=o.length;)if(y=p(),y)return y.v;return[]}function KQ(e,t,n,r,a){var o=(r||[]).slice(),u=o.length;if(u===0)return[];for(var{start:c,end:f}=t,d=1;d<=u;d++){for(var m=(u-1)%d,p=c,y=!0,g=function(){var D=r[w];if(D==null)return 0;var P=w,k,j=()=>(k===void 0&&(k=n(D,P)),k),U=D.coordinate,$=w===m||vs(e,U,j,p,f);if(!$)return y=!1,1;$&&(p=U+e*(j()/2+a))},x,w=m;w<u&&(x=g(),!(x!==0&&x===1));w+=d);if(y){for(var S=[],O=m;O<u;O+=d){var C=r[O];C!=null&&S.push(C)}return S}}return[]}function Z_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z_(Object(n),!0).forEach(function(r){GQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function GQ(e,t,n){return(t=XQ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XQ(e){var t=ZQ(e,"string");return typeof t=="symbol"?t:t+""}function ZQ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WQ(e,t,n,r,a){for(var o=(r||[]).slice(),u=o.length,{start:c}=t,{end:f}=t,d=function(y){var g=o[y];if(g==null)return 1;var x=g,w,S=()=>(w===void 0&&(w=n(g,y)),w);if(y===u-1){var O=e*(x.coordinate+e*S()/2-f);o[y]=x=rn(rn({},x),{},{tickCoord:O>0?x.coordinate-O*e:x.coordinate})}else o[y]=x=rn(rn({},x),{},{tickCoord:x.coordinate});if(x.tickCoord!=null){var C=vs(e,x.tickCoord,S,c,f);C&&(f=x.tickCoord-e*(S()/2+a),o[y]=rn(rn({},x),{},{isShow:!0}))}},m=u-1;m>=0;m--)d(m);return o}function QQ(e,t,n,r,a,o){var u=(r||[]).slice(),c=u.length,{start:f,end:d}=t;if(o){var m=r[c-1];if(m!=null){var p=n(m,c-1),y=e*(m.coordinate+e*p/2-d);if(u[c-1]=m=rn(rn({},m),{},{tickCoord:y>0?m.coordinate-y*e:m.coordinate}),m.tickCoord!=null){var g=vs(e,m.tickCoord,()=>p,f,d);g&&(d=m.tickCoord-e*(p/2+a),u[c-1]=rn(rn({},m),{},{isShow:!0}))}}}for(var x=o?c-1:c,w=function(C){var T=u[C];if(T==null)return 1;var D=T,P,k=()=>(P===void 0&&(P=n(T,C)),P);if(C===0){var j=e*(D.coordinate-e*k()/2-f);u[C]=D=rn(rn({},D),{},{tickCoord:j<0?D.coordinate-j*e:D.coordinate})}else u[C]=D=rn(rn({},D),{},{tickCoord:D.coordinate});if(D.tickCoord!=null){var U=vs(e,D.tickCoord,k,f,d);U&&(f=D.tickCoord+e*(k()/2+a),u[C]=rn(rn({},D),{},{isShow:!0}))}},S=0;S<x;S++)w(S);return u}function ix(e,t,n){var{tick:r,ticks:a,viewBox:o,minTickGap:u,orientation:c,interval:f,tickFormatter:d,unit:m,angle:p}=e;if(!a||!a.length||!r)return[];if(we(f)||rh.isSsr){var y;return(y=VQ(a,we(f)?f:0))!==null&&y!==void 0?y:[]}var g=[],x=c==="top"||c==="bottom"?"width":"height",w=m&&x==="width"?Ju(m,{fontSize:t,letterSpacing:n}):{width:0,height:0},S=(P,k)=>{var j=typeof d=="function"?d(P.value,k):P.value;return x==="width"?$Q(Ju(j,{fontSize:t,letterSpacing:n}),w,p):Ju(j,{fontSize:t,letterSpacing:n})[x]},O=a[0],C=a[1],T=a.length>=2&&O!=null&&C!=null?kn(C.coordinate-O.coordinate):1,D=FQ(o,T,x);return f==="equidistantPreserveStart"?YQ(T,D,S,a,u):f==="equidistantPreserveEnd"?KQ(T,D,S,a,u):(f==="preserveStart"||f==="preserveStartEnd"?g=QQ(T,D,S,a,u,f==="preserveStartEnd"):g=WQ(T,D,S,a,u),g.filter(P=>P.isShow))}var JQ=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:a=0,tickMargin:o=0}=e,u=0;if(t){Array.from(t).forEach(m=>{if(m){var p=m.getBoundingClientRect();p.width>u&&(u=p.width)}});var c=n?n.getBoundingClientRect().width:0,f=a+o,d=u+f+c+(n?r:0);return Math.round(d)}return 0},eJ=["axisLine","width","height","className","hide","ticks","axisType"];function tJ(e,t){if(e==null)return{};var n,r,a=nJ(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function nJ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function il(){return il=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},il.apply(null,arguments)}function W_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W_(Object(n),!0).forEach(function(r){rJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rJ(e,t,n){return(t=iJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iJ(e){var t=aJ(e,"string");return typeof t=="symbol"?t:t+""}function aJ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gi={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:mn.axis};function lJ(e){var{x:t,y:n,width:r,height:a,orientation:o,mirror:u,axisLine:c,otherSvgProps:f}=e;if(!c)return null;var d=yt(yt(yt({},f),bi(c)),{},{fill:"none"});if(o==="top"||o==="bottom"){var m=+(o==="top"&&!u||o==="bottom"&&u);d=yt(yt({},d),{},{x1:t,y1:n+m*a,x2:t+r,y2:n+m*a})}else{var p=+(o==="left"&&!u||o==="right"&&u);d=yt(yt({},d),{},{x1:t+p*r,y1:n,x2:t+p*r,y2:n+a})}return E.createElement("line",il({},d,{className:ft("recharts-cartesian-axis-line",po(c,"className"))}))}function oJ(e,t,n,r,a,o,u,c,f){var d,m,p,y,g,x,w=c?-1:1,S=e.tickSize||u,O=we(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case"top":d=m=e.coordinate,y=n+ +!c*a,p=y-w*S,x=p-w*f,g=O;break;case"left":p=y=e.coordinate,m=t+ +!c*r,d=m-w*S,g=d-w*f,x=O;break;case"right":p=y=e.coordinate,m=t+ +c*r,d=m+w*S,g=d+w*f,x=O;break;default:d=m=e.coordinate,y=n+ +c*a,p=y+w*S,x=p+w*f,g=O;break}return{line:{x1:d,y1:p,x2:m,y2:y},tick:{x:g,y:x}}}function uJ(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function sJ(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function cJ(e){var{option:t,tickProps:n,value:r}=e,a,o=ft(n.className,"recharts-cartesian-axis-tick-value");if(E.isValidElement(t))a=E.cloneElement(t,yt(yt({},n),{},{className:o}));else if(typeof t=="function")a=t(yt(yt({},n),{},{className:o}));else{var u="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(u=ft(u,CW(t))),a=E.createElement(nx,il({},n,{className:u}),r)}return a}var fJ=E.forwardRef((e,t)=>{var{ticks:n=[],tick:r,tickLine:a,stroke:o,tickFormatter:u,unit:c,padding:f,tickTextProps:d,orientation:m,mirror:p,x:y,y:g,width:x,height:w,tickSize:S,tickMargin:O,fontSize:C,letterSpacing:T,getTicksConfig:D,events:P,axisType:k}=e,j=ix(yt(yt({},D),{},{ticks:n}),C,T),U=uJ(m,p),$=sJ(m,p),I=bi(D),Z=P0(r),q={};typeof a=="object"&&(q=a);var oe=yt(yt({},I),{},{fill:"none"},q),ne=j.map(K=>yt({entry:K},oJ(K,y,g,x,w,m,S,p,O))),Q=ne.map(K=>{var{entry:J,line:re}=K;return E.createElement(xi,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(J.value,"-").concat(J.coordinate,"-").concat(J.tickCoord)},a&&E.createElement("line",il({},oe,re,{className:ft("recharts-cartesian-axis-tick-line",po(a,"className"))})))}),L=ne.map((K,J)=>{var re,N,{entry:R,tick:V}=K,z=yt(yt(yt(yt({verticalAnchor:$},I),{},{textAnchor:U,stroke:"none",fill:o},V),{},{index:J,payload:R,visibleTicksCount:j.length,tickFormatter:u,padding:f},d),{},{angle:(re=(N=d==null?void 0:d.angle)!==null&&N!==void 0?N:I.angle)!==null&&re!==void 0?re:0}),se=yt(yt({},z),Z);return E.createElement(xi,il({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(R.value,"-").concat(R.coordinate,"-").concat(R.tickCoord)},H0(P,R,J)),r&&E.createElement(cJ,{option:r,tickProps:se,value:"".concat(typeof u=="function"?u(R.value,J):R.value).concat(c||"")}))});return E.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(k,"-ticks")},L.length>0&&E.createElement(Ri,{zIndex:mn.label},E.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(k,"-tick-labels"),ref:t},L)),Q.length>0&&E.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(k,"-tick-lines")},Q))}),dJ=E.forwardRef((e,t)=>{var{axisLine:n,width:r,height:a,className:o,hide:u,ticks:c,axisType:f}=e,d=tJ(e,eJ),[m,p]=E.useState(""),[y,g]=E.useState(""),x=E.useRef(null);E.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var S;return JQ({ticks:x.current,label:(S=e.labelRef)===null||S===void 0?void 0:S.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var w=E.useCallback(S=>{if(S){var O=S.getElementsByClassName("recharts-cartesian-axis-tick-value");x.current=O;var C=O[0];if(C){var T=window.getComputedStyle(C),D=T.fontSize,P=T.letterSpacing;(D!==m||P!==y)&&(p(D),g(P))}}},[m,y]);return u||r!=null&&r<=0||a!=null&&a<=0?null:E.createElement(Ri,{zIndex:e.zIndex},E.createElement(xi,{className:ft("recharts-cartesian-axis",o)},E.createElement(lJ,{x:e.x,y:e.y,width:r,height:a,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:bi(e)}),E.createElement(fJ,{ref:w,axisType:f,events:d,fontSize:m,getTicksConfig:e,height:e.height,letterSpacing:y,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:c,unit:e.unit,width:e.width,x:e.x,y:e.y}),E.createElement(tW,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},E.createElement(fW,{label:e.label,labelRef:e.labelRef}),e.children)))}),ax=E.forwardRef((e,t)=>{var n=Kn(e,gi);return E.createElement(dJ,il({},n,{ref:t}))});ax.displayName="CartesianAxis";var hJ=["x1","y1","x2","y2","key"],mJ=["offset"],pJ=["xAxisId","yAxisId"],vJ=["xAxisId","yAxisId"];function Q_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q_(Object(n),!0).forEach(function(r){yJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yJ(e,t,n){return(t=gJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gJ(e){var t=bJ(e,"string");return typeof t=="symbol"?t:t+""}function bJ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ka(){return Ka=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ka.apply(null,arguments)}function Ad(e,t){if(e==null)return{};var n,r,a=xJ(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function xJ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var wJ=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:n,x:r,y:a,width:o,height:u,ry:c}=e;return E.createElement("rect",{x:r,y:a,ry:c,width:o,height:u,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function mN(e){var{option:t,lineItemProps:n}=e,r;if(E.isValidElement(t))r=E.cloneElement(t,n);else if(typeof t=="function")r=t(n);else{var a,{x1:o,y1:u,x2:c,y2:f,key:d}=n,m=Ad(n,hJ),p=(a=bi(m))!==null&&a!==void 0?a:{},{offset:y}=p,g=Ad(p,mJ);r=E.createElement("line",Ka({},g,{x1:o,y1:u,x2:c,y2:f,fill:"none",key:d}))}return r}function SJ(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:a}=e;if(!r||!a||!a.length)return null;var{xAxisId:o,yAxisId:u}=e,c=Ad(e,pJ),f=a.map((d,m)=>{var p=an(an({},c),{},{x1:t,y1:d,x2:t+n,y2:d,key:"line-".concat(m),index:m});return E.createElement(mN,{key:"line-".concat(m),option:r,lineItemProps:p})});return E.createElement("g",{className:"recharts-cartesian-grid-horizontal"},f)}function OJ(e){var{y:t,height:n,vertical:r=!0,verticalPoints:a}=e;if(!r||!a||!a.length)return null;var{xAxisId:o,yAxisId:u}=e,c=Ad(e,vJ),f=a.map((d,m)=>{var p=an(an({},c),{},{x1:d,y1:t,x2:d,y2:t+n,key:"line-".concat(m),index:m});return E.createElement(mN,{option:r,lineItemProps:p,key:"line-".concat(m)})});return E.createElement("g",{className:"recharts-cartesian-grid-vertical"},f)}function EJ(e){var{horizontalFill:t,fillOpacity:n,x:r,y:a,width:o,height:u,horizontalPoints:c,horizontal:f=!0}=e;if(!f||!t||!t.length||c==null)return null;var d=c.map(p=>Math.round(p+a-a)).sort((p,y)=>p-y);a!==d[0]&&d.unshift(0);var m=d.map((p,y)=>{var g=d[y+1],x=g==null,w=x?a+u-p:g-p;if(w<=0)return null;var S=y%t.length;return E.createElement("rect",{key:"react-".concat(y),y:p,x:r,height:w,width:o,stroke:"none",fill:t[S],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return E.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}function AJ(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:a,y:o,width:u,height:c,verticalPoints:f}=e;if(!t||!n||!n.length)return null;var d=f.map(p=>Math.round(p+a-a)).sort((p,y)=>p-y);a!==d[0]&&d.unshift(0);var m=d.map((p,y)=>{var g=d[y+1],x=g==null,w=x?a+u-p:g-p;if(w<=0)return null;var S=y%n.length;return E.createElement("rect",{key:"react-".concat(y),x:p,y:o,width:w,height:c,stroke:"none",fill:n[S],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return E.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}var kJ=(e,t)=>{var{xAxis:n,width:r,height:a,offset:o}=e;return Qj(ix(an(an(an({},gi),n),{},{ticks:Jj(n),viewBox:{x:0,y:0,width:r,height:a}})),o.left,o.left+o.width,t)},_J=(e,t)=>{var{yAxis:n,width:r,height:a,offset:o}=e;return Qj(ix(an(an(an({},gi),n),{},{ticks:Jj(n),viewBox:{x:0,y:0,width:r,height:a}})),o.top,o.top+o.height,t)},CJ={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:mn.grid};function pN(e){var t=lM(),n=oM(),r=aM(),a=an(an({},Kn(e,CJ)),{},{x:we(e.x)?e.x:r.left,y:we(e.y)?e.y:r.top,width:we(e.width)?e.width:r.width,height:we(e.height)?e.height:r.height}),{xAxisId:o,yAxisId:u,x:c,y:f,width:d,height:m,syncWithTicks:p,horizontalValues:y,verticalValues:g}=a,x=Mn(),w=Ee($=>Gk($,"xAxis",o,x)),S=Ee($=>Gk($,"yAxis",u,x));if(!Vr(d)||!Vr(m)||!we(c)||!we(f))return null;var O=a.verticalCoordinatesGenerator||kJ,C=a.horizontalCoordinatesGenerator||_J,{horizontalPoints:T,verticalPoints:D}=a;if((!T||!T.length)&&typeof C=="function"){var P=y&&y.length,k=C({yAxis:S?an(an({},S),{},{ticks:P?y:S.ticks}):void 0,width:t??d,height:n??m,offset:r},P?!0:p);Qf(Array.isArray(k),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof k,"]")),Array.isArray(k)&&(T=k)}if((!D||!D.length)&&typeof O=="function"){var j=g&&g.length,U=O({xAxis:w?an(an({},w),{},{ticks:j?g:w.ticks}):void 0,width:t??d,height:n??m,offset:r},j?!0:p);Qf(Array.isArray(U),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof U,"]")),Array.isArray(U)&&(D=U)}return E.createElement(Ri,{zIndex:a.zIndex},E.createElement("g",{className:"recharts-cartesian-grid"},E.createElement(wJ,{fill:a.fill,fillOpacity:a.fillOpacity,x:a.x,y:a.y,width:a.width,height:a.height,ry:a.ry}),E.createElement(EJ,Ka({},a,{horizontalPoints:T})),E.createElement(AJ,Ka({},a,{verticalPoints:D})),E.createElement(SJ,Ka({},a,{offset:r,horizontalPoints:T,xAxis:w,yAxis:S})),E.createElement(OJ,Ka({},a,{offset:r,verticalPoints:D,xAxis:w,yAxis:S}))))}pN.displayName="CartesianGrid";var TJ={},vN=jn({name:"errorBars",initialState:TJ,reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]||(e[n]=[]),e[n].push(r)},replaceErrorBar:(e,t)=>{var{itemId:n,prev:r,next:a}=t.payload;e[n]&&(e[n]=e[n].map(o=>o.dataKey===r.dataKey&&o.direction===r.direction?a:o))},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(a=>a.dataKey!==r.dataKey||a.direction!==r.direction))}}}),{addErrorBar:Kne,replaceErrorBar:Gne,removeErrorBar:Xne}=vN.actions,jJ=vN.reducer,MJ=["children"];function zJ(e,t){if(e==null)return{};var n,r,a=DJ(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function DJ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var NJ={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},PJ=E.createContext(NJ);function RJ(e){var{children:t}=e,n=zJ(e,MJ);return E.createElement(PJ.Provider,{value:n},t)}function yN(e,t){var n,r,a=Ee(d=>Di(d,e)),o=Ee(d=>Ni(d,t)),u=(n=a==null?void 0:a.allowDataOverflow)!==null&&n!==void 0?n:Lt.allowDataOverflow,c=(r=o==null?void 0:o.allowDataOverflow)!==null&&r!==void 0?r:Bt.allowDataOverflow,f=u||c;return{needClip:f,needClipX:u,needClipY:c}}function IJ(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,a=cN(),{needClipX:o,needClipY:u,needClip:c}=yN(t,n);if(!c||!a)return null;var{x:f,y:d,width:m,height:p}=a;return E.createElement("clipPath",{id:"clipPath-".concat(r)},E.createElement("rect",{x:o?f:f-m/2,y:u?d:d-p/2,width:o?m:m*2,height:u?p:p*2}))}var Fy={exports:{}},Vy={};/**
 * @license React
 * use-sync-external-store-with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var J_;function LJ(){if(J_)return Vy;J_=1;var e=Eo();function t(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,a=e.useRef,o=e.useEffect,u=e.useMemo,c=e.useDebugValue;return Vy.useSyncExternalStoreWithSelector=function(f,d,m,p,y){var g=a(null);if(g.current===null){var x={hasValue:!1,value:null};g.current=x}else x=g.current;g=u(function(){function S(P){if(!O){if(O=!0,C=P,P=p(P),y!==void 0&&x.hasValue){var k=x.value;if(y(k,P))return T=k}return T=P}if(k=T,n(C,P))return k;var j=p(P);return y!==void 0&&y(k,j)?(C=P,k):(C=P,T=j)}var O=!1,C,T,D=m===void 0?null:m;return[function(){return S(d())},D===null?void 0:function(){return S(D())}]},[d,m,p,y]);var w=r(f,g[0],g[1]);return o(function(){x.hasValue=!0,x.value=w},[w]),c(w),w},Vy}var eC;function BJ(){return eC||(eC=1,Fy.exports=LJ()),Fy.exports}BJ();function UJ(e){e()}function qJ(){let e=null,t=null;return{clear(){e=null,t=null},notify(){UJ(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const a=t={callback:n,next:null,prev:t};return a.prev?a.prev.next=a:e=a,function(){!r||e===null||(r=!1,a.next?a.next.prev=a.prev:t=a.prev,a.prev?a.prev.next=a.next:e=a.next)}}}}var tC={notify(){},get:()=>[]};function HJ(e,t){let n,r=tC,a=0,o=!1;function u(w){m();const S=r.subscribe(w);let O=!1;return()=>{O||(O=!0,S(),p())}}function c(){r.notify()}function f(){x.onStateChange&&x.onStateChange()}function d(){return o}function m(){a++,n||(n=e.subscribe(f),r=qJ())}function p(){a--,n&&a===0&&(n(),n=void 0,r.clear(),r=tC)}function y(){o||(o=!0,m())}function g(){o&&(o=!1,p())}const x={addNestedSub:u,notifyNestedSubs:c,handleChangeWrapper:f,isSubscribed:d,trySubscribe:y,tryUnsubscribe:g,getListeners:()=>r};return x}var $J=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",FJ=$J(),VJ=()=>typeof navigator<"u"&&navigator.product==="ReactNative",YJ=VJ(),KJ=()=>FJ||YJ?E.useLayoutEffect:E.useEffect,GJ=KJ();function nC(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function XJ(e,t){if(nC(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let a=0;a<n.length;a++)if(!Object.prototype.hasOwnProperty.call(t,n[a])||!nC(e[n[a]],t[n[a]]))return!1;return!0}var Yy=Symbol.for("react-redux-context"),Ky=typeof globalThis<"u"?globalThis:{};function ZJ(){if(!E.createContext)return{};const e=Ky[Yy]??(Ky[Yy]=new Map);let t=e.get(E.createContext);return t||(t=E.createContext(null),e.set(E.createContext,t)),t}var WJ=ZJ();function QJ(e){const{children:t,context:n,serverState:r,store:a}=e,o=E.useMemo(()=>{const f=HJ(a);return{store:a,subscription:f,getServerState:r?()=>r:void 0}},[a,r]),u=E.useMemo(()=>a.getState(),[a]);GJ(()=>{const{subscription:f}=o;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),u!==a.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[o,u]);const c=n||WJ;return E.createElement(c.Provider,{value:o},t)}var JJ=QJ,eee=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function tee(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function lx(e,t){var n=new Set([...Object.keys(e),...Object.keys(t)]);for(var r of n)if(eee.has(r)){if(e[r]==null&&t[r]==null)continue;if(!XJ(e[r],t[r]))return!1}else if(!tee(e[r],t[r]))return!1;return!0}function ul(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(a=>a.id===t))===null||r===void 0?void 0:r.xAxisId)!==null&&n!==void 0?n:uN}function sl(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(a=>a.id===t))===null||r===void 0?void 0:r.yAxisId)!==null&&n!==void 0?n:uN}var nee="Invariant failed";function ree(e,t){throw new Error(nee)}function e0(){return e0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e0.apply(null,arguments)}function kd(e){return E.createElement(WW,e0({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var iee=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(r,a)=>{if(we(t))return t;var o=we(r)||qt(r);return o?t(r,a):(o||ree(),n)}},aee=(e,t,n)=>n,lee=(e,t)=>t,Is=ee([Ib,lee],(e,t)=>e.filter(n=>n.type==="bar").find(n=>n.id===t)),oee=ee([Is],e=>e==null?void 0:e.maxBarSize),uee=(e,t,n,r)=>r,see=ee([at,Ib,ul,sl,aee],(e,t,n,r,a)=>t.filter(o=>e==="horizontal"?o.xAxisId===n:o.yAxisId===r).filter(o=>o.isPanorama===a).filter(o=>o.hide===!1).filter(o=>o.type==="bar")),cee=(e,t,n)=>{var r=at(e),a=ul(e,t),o=sl(e,t);if(!(a==null||o==null))return r==="horizontal"?Gg(e,"yAxis",o,n):Gg(e,"xAxis",a,n)},fee=(e,t)=>{var n=at(e),r=ul(e,t),a=sl(e,t);if(!(r==null||a==null))return n==="horizontal"?Kk(e,"xAxis",r):Kk(e,"yAxis",a)},dee=ee([see,GY,fee],kQ),hee=(e,t,n)=>{var r,a,o=Is(e,t);if(o==null)return 0;var u=ul(e,t),c=sl(e,t);if(u==null||c==null)return 0;var f=at(e),d=wz(e),{maxBarSize:m}=o,p=qt(m)?d:m,y,g;return f==="horizontal"?(y=So(e,"xAxis",u,n),g=wo(e,"xAxis",u,n)):(y=So(e,"yAxis",c,n),g=wo(e,"yAxis",c,n)),(r=(a=Wf(y,g,!0))!==null&&a!==void 0?a:p)!==null&&r!==void 0?r:0},gN=(e,t,n)=>{var r=at(e),a=ul(e,t),o=sl(e,t);if(!(a==null||o==null)){var u,c;return r==="horizontal"?(u=So(e,"xAxis",a,n),c=wo(e,"xAxis",a,n)):(u=So(e,"yAxis",o,n),c=wo(e,"yAxis",o,n)),Wf(u,c)}},mee=ee([dee,wz,KY,Sz,hee,gN,oee],MQ),pee=(e,t,n)=>{var r=ul(e,t);if(r!=null)return So(e,"xAxis",r,n)},vee=(e,t,n)=>{var r=sl(e,t);if(r!=null)return So(e,"yAxis",r,n)},yee=(e,t,n)=>{var r=ul(e,t);if(r!=null)return wo(e,"xAxis",r,n)},gee=(e,t,n)=>{var r=sl(e,t);if(r!=null)return wo(e,"yAxis",r,n)},bee=ee([mee,Is],DQ),xee=ee([cee,Is],zQ),wee=ee([Ht,Q0,pee,vee,yee,gee,bee,at,BY,gN,xee,Is,uee],(e,t,n,r,a,o,u,c,f,d,m,p,y)=>{var{chartData:g,dataStartIndex:x,dataEndIndex:w}=f;if(!(p==null||u==null||t==null||c!=="horizontal"&&c!=="vertical"||n==null||r==null||a==null||o==null||d==null)){var{data:S}=p,O;if(S!=null&&S.length>0?O=S:O=g==null?void 0:g.slice(x,w+1),O!=null)return Xee({layout:c,barSettings:p,pos:u,parentViewBox:t,bandSize:d,xAxis:n,yAxis:r,xAxisTicks:a,yAxisTicks:o,stackedData:m,displayedData:O,offset:e,cells:y,dataStartIndex:x})}}),See=["index"];function t0(){return t0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t0.apply(null,arguments)}function Oee(e,t){if(e==null)return{};var n,r,a=Eee(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Eee(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var bN=E.createContext(void 0),Aee=e=>{var t=E.useContext(bN);if(t!=null)return t.stackId;if(e!=null)return HH(e)},kee=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),_ee=e=>{var t=E.useContext(bN);if(t!=null){var{stackId:n}=t;return"url(#".concat(kee(n,e),")")}},xN=e=>{var{index:t}=e,n=Oee(e,See),r=_ee(t);return E.createElement(xi,t0({className:"recharts-bar-stack-layer",clipPath:r},n))},Cee=["onMouseEnter","onMouseLeave","onClick"],Tee=["value","background","tooltipPosition"],jee=["id"],Mee=["onMouseEnter","onClick","onMouseLeave"];function _i(){return _i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_i.apply(null,arguments)}function rC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function fn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rC(Object(n),!0).forEach(function(r){zee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zee(e,t,n){return(t=Dee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dee(e){var t=Nee(e,"string");return typeof t=="symbol"?t:t+""}function Nee(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _d(e,t){if(e==null)return{};var n,r,a=Pee(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Pee(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Ree=e=>{var{dataKey:t,name:n,fill:r,legendType:a,hide:o}=e;return[{inactive:o,dataKey:t,type:a,color:r,value:eM(n,t),payload:e}]},Iee=E.memo(e=>{var{dataKey:t,stroke:n,strokeWidth:r,fill:a,name:o,hide:u,unit:c,tooltipType:f,id:d}=e,m={dataDefinedOnItem:void 0,getPosition:_o,settings:{stroke:n,strokeWidth:r,fill:a,dataKey:t,nameKey:void 0,name:eM(o,t),hide:u,type:f,color:a,unit:c,graphicalItemId:d}};return E.createElement(QW,{tooltipEntrySettings:m})});function Lee(e){var t=Ee(Oo),{data:n,dataKey:r,background:a,allOtherBarProps:o}=e,{onMouseEnter:u,onMouseLeave:c,onClick:f}=o,d=_d(o,Cee),m=iN(u,r,o.id),p=aN(c),y=lN(f,r,o.id);if(!a||n==null)return null;var g=P0(a);return E.createElement(Ri,{zIndex:NQ(a,mn.barBackground)},n.map((x,w)=>{var{value:S,background:O,tooltipPosition:C}=x,T=_d(x,Tee);if(!O)return null;var D=m(x,w),P=p(x,w),k=y(x,w),j=fn(fn(fn(fn(fn({option:a,isActive:String(w)===t},T),{},{fill:"#eee"},O),g),H0(d,x,w)),{},{onMouseEnter:D,onMouseLeave:P,onClick:k,dataKey:r,index:w,className:"recharts-bar-background-rectangle"});return E.createElement(kd,_i({key:"background-bar-".concat(w)},j))}))}function Bee(e){var{showLabels:t,children:n,rects:r}=e,a=r==null?void 0:r.map(o=>{var u={x:o.x,y:o.y,width:o.width,lowerWidth:o.width,upperWidth:o.width,height:o.height};return fn(fn({},u),{},{value:o.value,payload:o.payload,parentViewBox:o.parentViewBox,viewBox:u,fill:o.fill})});return E.createElement(SW,{value:t?a:void 0},n)}function Uee(e){var{shape:t,activeBar:n,baseProps:r,entry:a,index:o,dataKey:u}=e,c=Ee(Oo),f=Ee(DD),d=n&&String(o)===c&&(f==null||u===f),m=d?n:t;return d?E.createElement(Ri,{zIndex:mn.activeBar},E.createElement(xN,{index:o},E.createElement(kd,_i({},r,{name:String(r.name)},a,{isActive:d,option:m,index:o,dataKey:u})))):E.createElement(kd,_i({},r,{name:String(r.name)},a,{isActive:d,option:m,index:o,dataKey:u}))}function qee(e){var{shape:t,baseProps:n,entry:r,index:a,dataKey:o}=e;return E.createElement(kd,_i({},n,{name:String(n.name)},r,{isActive:!1,option:t,index:a,dataKey:o}))}function Hee(e){var t,{data:n,props:r}=e,a=(t=bi(r))!==null&&t!==void 0?t:{},{id:o}=a,u=_d(a,jee),{shape:c,dataKey:f,activeBar:d}=r,{onMouseEnter:m,onClick:p,onMouseLeave:y}=r,g=_d(r,Mee),x=iN(m,f,o),w=aN(y),S=lN(p,f,o);return n?E.createElement(E.Fragment,null,n.map((O,C)=>E.createElement(xN,_i({index:C,key:"rectangle-".concat(O==null?void 0:O.x,"-").concat(O==null?void 0:O.y,"-").concat(O==null?void 0:O.value,"-").concat(C),className:"recharts-bar-rectangle"},H0(g,O,C),{onMouseEnter:x(O,C),onMouseLeave:w(O,C),onClick:S(O,C)}),d?E.createElement(Uee,{shape:c,activeBar:d,baseProps:u,entry:O,index:C,dataKey:f}):E.createElement(qee,{shape:c,baseProps:u,entry:O,index:C,dataKey:f})))):null}function $ee(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:a,isAnimationActive:o,animationBegin:u,animationDuration:c,animationEasing:f,onAnimationEnd:d,onAnimationStart:m}=t,p=n.current,y=ib(t,"recharts-bar-"),[g,x]=E.useState(!1),w=!g,S=E.useCallback(()=>{typeof d=="function"&&d(),x(!1)},[d]),O=E.useCallback(()=>{typeof m=="function"&&m(),x(!0)},[m]);return E.createElement(Bee,{showLabels:w,rects:r},E.createElement(rb,{animationId:y,begin:u,duration:c,isActive:o,easing:f,onAnimationEnd:S,onAnimationStart:O,key:y},C=>{var T=C===1?r:r==null?void 0:r.map((D,P)=>{var k=p&&p[P];if(k)return fn(fn({},D),{},{x:Jt(k.x,D.x,C),y:Jt(k.y,D.y,C),width:Jt(k.width,D.width,C),height:Jt(k.height,D.height,C)});if(a==="horizontal"){var j=Jt(0,D.height,C),U=Jt(D.stackedBarStart,D.y,C);return fn(fn({},D),{},{y:U,height:j})}var $=Jt(0,D.width,C),I=Jt(D.stackedBarStart,D.x,C);return fn(fn({},D),{},{width:$,x:I})});return C>0&&(n.current=T??null),T==null?null:E.createElement(xi,null,E.createElement(Hee,{props:t,data:T}))}),E.createElement(AW,{label:t.label}),t.children)}function Fee(e){var t=E.useRef(null);return E.createElement($ee,{previousRectanglesRef:t,props:e})}var wN=0,Vee=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:tn(e,t)}};class Yee extends E.PureComponent{render(){var{hide:t,data:n,dataKey:r,className:a,xAxisId:o,yAxisId:u,needClip:c,background:f,id:d}=this.props;if(t||n==null)return null;var m=ft("recharts-bar",a),p=d;return E.createElement(xi,{className:m,id:d},c&&E.createElement("defs",null,E.createElement(IJ,{clipPathId:p,xAxisId:o,yAxisId:u})),E.createElement(xi,{className:"recharts-bar-rectangles",clipPath:c?"url(#clipPath-".concat(p,")"):void 0},E.createElement(Lee,{data:n,dataKey:r,background:f,allOtherBarProps:this.props}),E.createElement(Fee,this.props)))}}var Kee={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:wN,xAxisId:0,yAxisId:0,zIndex:mn.bar};function Gee(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:a,minPointSize:o,activeBar:u,animationBegin:c,animationDuration:f,animationEasing:d,isAnimationActive:m}=e,{needClip:p}=yN(t,n),y=Co(),g=Mn(),x=zW(e.children,$D),w=Ee(C=>wee(C,e.id,g,x));if(y!=="vertical"&&y!=="horizontal")return null;var S,O=w==null?void 0:w[0];return O==null||O.height==null||O.width==null?S=0:S=y==="vertical"?O.height/2:O.width/2,E.createElement(RJ,{xAxisId:t,yAxisId:n,data:w,dataPointFormatter:Vee,errorBarOffset:S},E.createElement(Yee,_i({},e,{layout:y,needClip:p,data:w,xAxisId:t,yAxisId:n,hide:r,legendType:a,minPointSize:o,activeBar:u,animationBegin:c,animationDuration:f,animationEasing:d,isAnimationActive:m})))}function Xee(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r},pos:a,bandSize:o,xAxis:u,yAxis:c,xAxisTicks:f,yAxisTicks:d,stackedData:m,displayedData:p,offset:y,cells:g,parentViewBox:x,dataStartIndex:w}=e,S=t==="horizontal"?c:u,O=m?S.scale.domain():null,C=$H({numericAxis:S}),T=S.scale.map(C);return p.map((D,P)=>{var k,j,U,$,I,Z;if(m){var q=m[P+w];if(q==null)return null;k=IH(q,O)}else k=tn(D,n),Array.isArray(k)||(k=[C,k]);var oe=iee(r,wN)(k[1],P);if(t==="horizontal"){var ne,Q=c.scale.map(k[0]),L=c.scale.map(k[1]);if(Q==null||L==null)return null;j=GA({axis:u,ticks:f,bandSize:o,offset:a.offset,entry:D,index:P}),U=(ne=L??Q)!==null&&ne!==void 0?ne:void 0,$=a.size;var K=Q-L;if(I=$r(K)?0:K,Z={x:j,y:y.top,width:$,height:y.height},Math.abs(oe)>0&&Math.abs(I)<Math.abs(oe)){var J=kn(I||oe)*(Math.abs(oe)-Math.abs(I));U-=J,I+=J}}else{var re=u.scale.map(k[0]),N=u.scale.map(k[1]);if(re==null||N==null)return null;if(j=re,U=GA({axis:c,ticks:d,bandSize:o,offset:a.offset,entry:D,index:P}),$=N-re,I=a.size,Z={x:y.left,y:U,width:y.width,height:I},Math.abs(oe)>0&&Math.abs($)<Math.abs(oe)){var R=kn($||oe)*(Math.abs(oe)-Math.abs($));$+=R}}if(j==null||U==null||$==null||I==null)return null;var V=fn(fn({},D),{},{stackedBarStart:T,x:j,y:U,width:$,height:I,value:m?k:k[1],payload:D,background:Z,tooltipPosition:{x:j+$/2,y:U+I/2},parentViewBox:x},g&&g[P]&&g[P].props);return V}).filter(Boolean)}function Zee(e){var t=Kn(e,Kee),n=Aee(t.stackId),r=Mn();return E.createElement(iQ,{id:t.id,type:"bar"},a=>E.createElement(E.Fragment,null,E.createElement(JW,{legendPayload:Ree(t)}),E.createElement(Iee,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:a}),E.createElement(fQ,{type:"bar",id:a,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:n,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r}),E.createElement(Ri,{zIndex:t.zIndex},E.createElement(Gee,_i({},t,{id:a})))))}var n0=E.memo(Zee,lx);n0.displayName="Bar";var Wee=["domain","range"],Qee=["domain","range"];function iC(e,t){if(e==null)return{};var n,r,a=Jee(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Jee(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function aC(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function SN(e,t){if(e===t)return!0;var{domain:n,range:r}=e,a=iC(e,Wee),{domain:o,range:u}=t,c=iC(t,Qee);return!aC(n,o)||!aC(r,u)?!1:lx(a,c)}var ete=["type"],tte=["dangerouslySetInnerHTML","ticks","scale"],nte=["id","scale"];function r0(){return r0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r0.apply(null,arguments)}function lC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function oC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lC(Object(n),!0).forEach(function(r){rte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rte(e,t,n){return(t=ite(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ite(e){var t=ate(e,"string");return typeof t=="symbol"?t:t+""}function ate(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function i0(e,t){if(e==null)return{};var n,r,a=lte(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function lte(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ote(e){var t=wt(),n=E.useRef(null),r=uM(),{type:a}=e,o=i0(e,ete),u=hh(r,"xAxis",a),c=E.useMemo(()=>{if(u!=null)return oC(oC({},o),{},{type:u})},[o,u]);return E.useLayoutEffect(()=>{c!=null&&(n.current===null?t(vQ(c)):n.current!==c&&t(yQ({prev:n.current,next:c})),n.current=c)},[c,t]),E.useLayoutEffect(()=>()=>{n.current&&(t(gQ(n.current)),n.current=null)},[t]),null}var ute=e=>{var{xAxisId:t,className:n}=e,r=Ee(Q0),a=Mn(),o="xAxis",u=Ee(O=>dD(O,o,t,a)),c=Ee(O=>uD(O,t)),f=Ee(O=>XK(O,t)),d=Ee(O=>Mz(O,t));if(c==null||f==null||d==null)return null;var{dangerouslySetInnerHTML:m,ticks:p,scale:y}=e,g=i0(e,tte),{id:x,scale:w}=d,S=i0(d,nte);return E.createElement(ax,r0({},g,S,{x:f.x,y:f.y,width:c.width,height:c.height,className:ft("recharts-".concat(o," ").concat(o),n),viewBox:r,ticks:u,axisType:o}))},ste={allowDataOverflow:Lt.allowDataOverflow,allowDecimals:Lt.allowDecimals,allowDuplicatedCategory:Lt.allowDuplicatedCategory,angle:Lt.angle,axisLine:gi.axisLine,height:Lt.height,hide:!1,includeHidden:Lt.includeHidden,interval:Lt.interval,label:!1,minTickGap:Lt.minTickGap,mirror:Lt.mirror,orientation:Lt.orientation,padding:Lt.padding,reversed:Lt.reversed,scale:Lt.scale,tick:Lt.tick,tickCount:Lt.tickCount,tickLine:gi.tickLine,tickSize:gi.tickSize,type:Lt.type,xAxisId:0},cte=e=>{var t=Kn(e,ste);return E.createElement(E.Fragment,null,E.createElement(ote,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit}),E.createElement(ute,t))},ON=E.memo(cte,SN);ON.displayName="XAxis";var fte=["type"],dte=["dangerouslySetInnerHTML","ticks","scale"],hte=["id","scale"];function a0(){return a0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a0.apply(null,arguments)}function uC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function sC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uC(Object(n),!0).forEach(function(r){mte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mte(e,t,n){return(t=pte(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pte(e){var t=vte(e,"string");return typeof t=="symbol"?t:t+""}function vte(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function l0(e,t){if(e==null)return{};var n,r,a=yte(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function yte(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function gte(e){var t=wt(),n=E.useRef(null),r=uM(),{type:a}=e,o=l0(e,fte),u=hh(r,"yAxis",a),c=E.useMemo(()=>{if(u!=null)return sC(sC({},o),{},{type:u})},[u,o]);return E.useLayoutEffect(()=>{c!=null&&(n.current===null?t(bQ(c)):n.current!==c&&t(xQ({prev:n.current,next:c})),n.current=c)},[c,t]),E.useLayoutEffect(()=>()=>{n.current&&(t(wQ(n.current)),n.current=null)},[t]),null}function bte(e){var{yAxisId:t,className:n,width:r,label:a}=e,o=E.useRef(null),u=E.useRef(null),c=Ee(Q0),f=Mn(),d=wt(),m="yAxis",p=Ee(k=>sD(k,t)),y=Ee(k=>WK(k,t)),g=Ee(k=>dD(k,m,t,f)),x=Ee(k=>zz(k,t));if(E.useLayoutEffect(()=>{if(!(r!=="auto"||!p||rx(a)||E.isValidElement(a)||x==null)){var k=o.current;if(k){var j=k.getCalculatedWidth();Math.round(p.width)!==Math.round(j)&&d(SQ({id:t,width:j}))}}},[g,p,d,a,t,r,x]),p==null||y==null||x==null)return null;var{dangerouslySetInnerHTML:w,ticks:S,scale:O}=e,C=l0(e,dte),{id:T,scale:D}=x,P=l0(x,hte);return E.createElement(ax,a0({},C,P,{ref:o,labelRef:u,x:y.x,y:y.y,tickTextProps:r==="auto"?{width:void 0}:{width:r},width:p.width,height:p.height,className:ft("recharts-".concat(m," ").concat(m),n),viewBox:c,ticks:g,axisType:m}))}var xte={allowDataOverflow:Bt.allowDataOverflow,allowDecimals:Bt.allowDecimals,allowDuplicatedCategory:Bt.allowDuplicatedCategory,angle:Bt.angle,axisLine:gi.axisLine,hide:!1,includeHidden:Bt.includeHidden,interval:Bt.interval,label:!1,minTickGap:Bt.minTickGap,mirror:Bt.mirror,orientation:Bt.orientation,padding:Bt.padding,reversed:Bt.reversed,scale:Bt.scale,tick:Bt.tick,tickCount:Bt.tickCount,tickLine:gi.tickLine,tickSize:gi.tickSize,type:Bt.type,width:Bt.width,yAxisId:0},wte=e=>{var t=Kn(e,xte);return E.createElement(E.Fragment,null,E.createElement(gte,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter}),E.createElement(bte,t))},EN=E.memo(wte,SN);EN.displayName="YAxis";var Ste=(e,t)=>t,ox=ee([Ste,at,Tz,Vt,TD,Pi,fX,Ht],gX),ux=e=>{var t=e.currentTarget.getBoundingClientRect(),n=t.width/e.currentTarget.offsetWidth,r=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/n),chartY:Math.round((e.clientY-t.top)/r)}},AN=mr("mouseClick"),kN=Os();kN.startListening({actionCreator:AN,effect:(e,t)=>{var n=e.payload,r=ox(t.getState(),ux(n));(r==null?void 0:r.activeIndex)!=null&&t.dispatch(fG({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var o0=mr("mouseMove"),_N=Os(),Ef=null;_N.startListening({actionCreator:o0,effect:(e,t)=>{var n=e.payload;Ef!==null&&cancelAnimationFrame(Ef);var r=ux(n);Ef=requestAnimationFrame(()=>{var a=t.getState(),o=Yb(a,a.tooltip.settings.shared);if(o==="axis"){var u=ox(a,r);(u==null?void 0:u.activeIndex)!=null?t.dispatch(xD({activeIndex:u.activeIndex,activeDataKey:void 0,activeCoordinate:u.activeCoordinate})):t.dispatch(bD())}Ef=null})}});function Ote(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>>":t}var cC={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},CN=jn({name:"rootProps",initialState:cC,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:cC.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),Ete=CN.reducer,{updateOptions:Ate}=CN.actions,kte=null,_te={updatePolarOptions:(e,t)=>t.payload},TN=jn({name:"polarOptions",initialState:kte,reducers:_te}),{updatePolarOptions:Zne}=TN.actions,Cte=TN.reducer,jN=mr("keyDown"),MN=mr("focus"),sx=Os();sx.startListening({actionCreator:jN,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:a}=n.tooltip,o=e.payload;if(!(o!=="ArrowRight"&&o!=="ArrowLeft"&&o!=="Enter")){var u=Kb(a,Io(n),Ds(n),Ps(n)),c=u==null?-1:Number(u);if(!(!Number.isFinite(c)||c<0)){var f=Pi(n);if(o==="Enter"){var d=wd(n,"axis","hover",String(a.index));t.dispatch(Zg({active:!a.active,activeIndex:a.index,activeCoordinate:d}));return}var m=tG(n),p=m==="left-to-right"?1:-1,y=o==="ArrowRight"?1:-1,g=c+y*p;if(!(f==null||g>=f.length||g<0)){var x=wd(n,"axis","hover",String(g));t.dispatch(Zg({active:!0,activeIndex:g.toString(),activeCoordinate:x}))}}}}}});sx.startListening({actionCreator:MN,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:a}=n.tooltip;if(!a.active&&a.index==null){var o="0",u=wd(n,"axis","hover",String(o));t.dispatch(Zg({active:!0,activeIndex:o,activeCoordinate:u}))}}}});var ur=mr("externalEvent"),zN=Os(),Gy=new Map;zN.startListening({actionCreator:ur,effect:(e,t)=>{var{handler:n,reactEvent:r}=e.payload;if(n!=null){r.persist();var a=r.type,o=Gy.get(a);o!==void 0&&cancelAnimationFrame(o);var u=requestAnimationFrame(()=>{try{var c=t.getState(),f={activeCoordinate:ZG(c),activeDataKey:DD(c),activeIndex:Oo(c),activeLabel:zD(c),activeTooltipIndex:Oo(c),isTooltipActive:WG(c)};n(f,r)}finally{Gy.delete(a)}});Gy.set(a,u)}}});var Tte=ee([Po],e=>e.tooltipItemPayloads),jte=ee([Tte,(e,t)=>t,(e,t,n)=>n],(e,t,n)=>{if(t!=null){var r=e.find(o=>o.settings.graphicalItemId===n);if(r!=null){var{getPosition:a}=r;if(a!=null)return a(t)}}}),DN=mr("touchMove"),NN=Os();NN.startListening({actionCreator:DN,effect:(e,t)=>{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){var r=t.getState(),a=Yb(r,r.tooltip.settings.shared);if(a==="axis"){var o=n.touches[0];if(o==null)return;var u=ox(r,ux({clientX:o.clientX,clientY:o.clientY,currentTarget:n.currentTarget}));(u==null?void 0:u.activeIndex)!=null&&t.dispatch(xD({activeIndex:u.activeIndex,activeDataKey:void 0,activeCoordinate:u.activeCoordinate}))}else if(a==="item"){var c,f=n.touches[0];if(document.elementFromPoint==null||f==null)return;var d=document.elementFromPoint(f.clientX,f.clientY);if(!d||!d.getAttribute)return;var m=d.getAttribute(ZH),p=(c=d.getAttribute(WH))!==null&&c!==void 0?c:void 0,y=Ro(r).find(w=>w.id===p);if(m==null||y==null||p==null)return;var{dataKey:g}=y,x=jte(r,m,p);t.dispatch(gD({activeDataKey:g,activeIndex:m,activeCoordinate:x,activeGraphicalItemId:p}))}}}});var Mte=Oj({brush:RQ,cartesianAxis:OQ,chartData:ZX,errorBars:jJ,graphicalItems:sQ,layout:zH,legend:$7,options:VX,polarAxis:_W,polarOptions:Cte,referenceElements:UQ,rootProps:Ete,tooltip:dG,zIndex:zX}),zte=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return rH({reducer:Mte,preloadedState:t,middleware:r=>{var a;return r({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((a="es6")!==null&&a!==void 0?a:"")}).concat([kN.middleware,_N.middleware,sx.middleware,zN.middleware,NN.middleware])},enhancers:r=>{var a=r;return typeof r=="function"&&(a=r()),a.concat(Lj({type:"raf"}))},devTools:{serialize:{replacer:Ote},name:"recharts-".concat(n)}})};function Dte(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,a=Mn(),o=E.useRef(null);if(a)return n;o.current==null&&(o.current=zte(t,r));var u=V0;return E.createElement(JJ,{context:u,store:o.current},n)}function Nte(e){var{layout:t,margin:n}=e,r=wt(),a=Mn();return E.useEffect(()=>{a||(r(TH(t)),r(CH(n)))},[r,a,t,n]),null}var Pte=E.memo(Nte,lx);function Rte(e){var t=wt();return E.useEffect(()=>{t(Ate(e))},[t,e]),null}function fC(e){var{zIndex:t,isPanorama:n}=e,r=E.useRef(null),a=wt();return E.useLayoutEffect(()=>(r.current&&a(jX({zIndex:t,element:r.current,isPanorama:n})),()=>{a(MX({zIndex:t,isPanorama:n}))}),[a,t,n]),E.createElement("g",{tabIndex:-1,ref:r})}function dC(e){var{children:t,isPanorama:n}=e,r=Ee(xX);if(!r||r.length===0)return t;var a=r.filter(u=>u<0),o=r.filter(u=>u>0);return E.createElement(E.Fragment,null,a.map(u=>E.createElement(fC,{key:u,zIndex:u,isPanorama:n})),t,o.map(u=>E.createElement(fC,{key:u,zIndex:u,isPanorama:n})))}var Ite=["children"];function Lte(e,t){if(e==null)return{};var n,r,a=Bte(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Bte(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Cd(){return Cd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cd.apply(null,arguments)}var Ute={width:"100%",height:"100%",display:"block"},qte=E.forwardRef((e,t)=>{var n=lM(),r=oM(),a=yM();if(!Vr(n)||!Vr(r))return null;var{children:o,otherAttributes:u,title:c,desc:f}=e,d,m;return u!=null&&(typeof u.tabIndex=="number"?d=u.tabIndex:d=a?0:void 0,typeof u.role=="string"?m=u.role:m=a?"application":void 0),E.createElement(qT,Cd({},u,{title:c,desc:f,role:m,tabIndex:d,width:n,height:r,style:Ute,ref:t}),o)}),Hte=e=>{var{children:t}=e,n=Ee(Qd);if(!n)return null;var{width:r,height:a,y:o,x:u}=n;return E.createElement(qT,{width:r,height:a,x:u,y:o},t)},hC=E.forwardRef((e,t)=>{var{children:n}=e,r=Lte(e,Ite),a=Mn();return a?E.createElement(Hte,null,E.createElement(dC,{isPanorama:!0},n)):E.createElement(qte,Cd({ref:t},r),E.createElement(dC,{isPanorama:!1},n))});function $te(){var e=wt(),[t,n]=E.useState(null),r=Ee(XH);return E.useEffect(()=>{if(t!=null){var a=t.getBoundingClientRect(),o=a.width/t.offsetWidth;qe(o)&&o!==r&&e(MH(o))}},[t,e,r]),n}function mC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Fte(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mC(Object(n),!0).forEach(function(r){Vte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vte(e,t,n){return(t=Yte(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yte(e){var t=Kte(e,"string");return typeof t=="symbol"?t:t+""}function Kte(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ma(){return ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ma.apply(null,arguments)}var Gte=()=>(aZ(),null);function Td(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var Xte=E.forwardRef((e,t)=>{var n,r,a=E.useRef(null),[o,u]=E.useState({containerWidth:Td((n=e.style)===null||n===void 0?void 0:n.width),containerHeight:Td((r=e.style)===null||r===void 0?void 0:r.height)}),c=E.useCallback((d,m)=>{u(p=>{var y=Math.round(d),g=Math.round(m);return p.containerWidth===y&&p.containerHeight===g?p:{containerWidth:y,containerHeight:g}})},[]),f=E.useCallback(d=>{if(typeof t=="function"&&t(d),d!=null&&typeof ResizeObserver<"u"){var{width:m,height:p}=d.getBoundingClientRect();c(m,p);var y=x=>{var w=x[0];if(w!=null){var{width:S,height:O}=w.contentRect;c(S,O)}},g=new ResizeObserver(y);g.observe(d),a.current=g}},[t,c]);return E.useEffect(()=>()=>{var d=a.current;d!=null&&d.disconnect()},[c]),E.createElement(E.Fragment,null,E.createElement(As,{width:o.containerWidth,height:o.containerHeight}),E.createElement("div",ma({ref:f},e)))}),Zte=E.forwardRef((e,t)=>{var{width:n,height:r}=e,[a,o]=E.useState({containerWidth:Td(n),containerHeight:Td(r)}),u=E.useCallback((f,d)=>{o(m=>{var p=Math.round(f),y=Math.round(d);return m.containerWidth===p&&m.containerHeight===y?m:{containerWidth:p,containerHeight:y}})},[]),c=E.useCallback(f=>{if(typeof t=="function"&&t(f),f!=null){var{width:d,height:m}=f.getBoundingClientRect();u(d,m)}},[t,u]);return E.createElement(E.Fragment,null,E.createElement(As,{width:a.containerWidth,height:a.containerHeight}),E.createElement("div",ma({ref:c},e)))}),Wte=E.forwardRef((e,t)=>{var{width:n,height:r}=e;return E.createElement(E.Fragment,null,E.createElement(As,{width:n,height:r}),E.createElement("div",ma({ref:t},e)))}),Qte=E.forwardRef((e,t)=>{var{width:n,height:r}=e;return typeof n=="string"||typeof r=="string"?E.createElement(Zte,ma({},e,{ref:t})):typeof n=="number"&&typeof r=="number"?E.createElement(Wte,ma({},e,{width:n,height:r,ref:t})):E.createElement(E.Fragment,null,E.createElement(As,{width:n,height:r}),E.createElement("div",ma({ref:t},e)))});function Jte(e){return e?Xte:Qte}var ene=E.forwardRef((e,t)=>{var{children:n,className:r,height:a,onClick:o,onContextMenu:u,onDoubleClick:c,onMouseDown:f,onMouseEnter:d,onMouseLeave:m,onMouseMove:p,onMouseUp:y,onTouchEnd:g,onTouchMove:x,onTouchStart:w,style:S,width:O,responsive:C,dispatchTouchEvents:T=!0}=e,D=E.useRef(null),P=wt(),[k,j]=E.useState(null),[U,$]=E.useState(null),I=$te(),Z=J0(),q=(Z==null?void 0:Z.width)>0?Z.width:O,oe=(Z==null?void 0:Z.height)>0?Z.height:a,ne=E.useCallback(Y=>{I(Y),typeof t=="function"&&t(Y),j(Y),$(Y),Y!=null&&(D.current=Y)},[I,t,j,$]),Q=E.useCallback(Y=>{P(AN(Y)),P(ur({handler:o,reactEvent:Y}))},[P,o]),L=E.useCallback(Y=>{P(o0(Y)),P(ur({handler:d,reactEvent:Y}))},[P,d]),K=E.useCallback(Y=>{P(bD()),P(ur({handler:m,reactEvent:Y}))},[P,m]),J=E.useCallback(Y=>{P(o0(Y)),P(ur({handler:p,reactEvent:Y}))},[P,p]),re=E.useCallback(()=>{P(MN())},[P]),N=E.useCallback(Y=>{P(jN(Y.key))},[P]),R=E.useCallback(Y=>{P(ur({handler:u,reactEvent:Y}))},[P,u]),V=E.useCallback(Y=>{P(ur({handler:c,reactEvent:Y}))},[P,c]),z=E.useCallback(Y=>{P(ur({handler:f,reactEvent:Y}))},[P,f]),se=E.useCallback(Y=>{P(ur({handler:y,reactEvent:Y}))},[P,y]),ye=E.useCallback(Y=>{P(ur({handler:w,reactEvent:Y}))},[P,w]),ve=E.useCallback(Y=>{T&&P(DN(Y)),P(ur({handler:x,reactEvent:Y}))},[P,T,x]),Se=E.useCallback(Y=>{P(ur({handler:g,reactEvent:Y}))},[P,g]),ge=Jte(C);return E.createElement(UD.Provider,{value:k},E.createElement(P9.Provider,{value:U},E.createElement(ge,{width:q??(S==null?void 0:S.width),height:oe??(S==null?void 0:S.height),className:ft("recharts-wrapper",r),style:Fte({position:"relative",cursor:"default",width:q,height:oe},S),onClick:Q,onContextMenu:R,onDoubleClick:V,onFocus:re,onKeyDown:N,onMouseDown:z,onMouseEnter:L,onMouseLeave:K,onMouseMove:J,onMouseUp:se,onTouchEnd:Se,onTouchMove:ve,onTouchStart:ye,ref:ne},E.createElement(Gte,null),n)))}),tne=["width","height","responsive","children","className","style","compact","title","desc"];function nne(e,t){if(e==null)return{};var n,r,a=rne(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function rne(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ine=E.forwardRef((e,t)=>{var{width:n,height:r,responsive:a,children:o,className:u,style:c,compact:f,title:d,desc:m}=e,p=nne(e,tne),y=bi(p);return f?E.createElement(E.Fragment,null,E.createElement(As,{width:n,height:r}),E.createElement(hC,{otherAttributes:y,title:d,desc:m},o)):E.createElement(ene,{className:u,style:c,width:n,height:r,responsive:a??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},E.createElement(hC,{otherAttributes:y,title:d,desc:m,ref:t},E.createElement(HQ,null,o)))});function u0(){return u0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u0.apply(null,arguments)}var ane={top:5,right:5,bottom:5,left:5},lne={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:ane,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},one=E.forwardRef(function(t,n){var r,a=Kn(t.categoricalChartProps,lne),{chartName:o,defaultTooltipEventType:u,validateTooltipEventTypes:c,tooltipPayloadSearcher:f,categoricalChartProps:d}=t,m={chartName:o,defaultTooltipEventType:u,validateTooltipEventTypes:c,tooltipPayloadSearcher:f,eventEmitter:void 0};return E.createElement(Dte,{preloadedState:{options:m},reduxStoreName:(r=d.id)!==null&&r!==void 0?r:o},E.createElement(PQ,{chartData:d.data}),E.createElement(Pte,{layout:a.layout,margin:a.margin}),E.createElement(Rte,{baseValue:a.baseValue,accessibilityLayer:a.accessibilityLayer,barCategoryGap:a.barCategoryGap,maxBarSize:a.maxBarSize,stackOffset:a.stackOffset,barGap:a.barGap,barSize:a.barSize,syncId:a.syncId,syncMethod:a.syncMethod,className:a.className,reverseStackOrder:a.reverseStackOrder}),E.createElement(ine,u0({},a,{ref:n})))}),une=["axis","item"],sne=E.forwardRef((e,t)=>E.createElement(one,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:une,tooltipPayloadSearcher:$X,categoricalChartProps:e,ref:t}));function cne(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function fne({active:e,payload:t}){if(!e||!(t!=null&&t.length))return null;const n=t[0].payload;return _.jsxs("div",{className:"px-3 py-2 rounded shadow-lg border text-xs",style:{backgroundColor:"var(--color-surface-2)",borderColor:"var(--color-border)",color:"var(--color-text)"},children:[_.jsxs("p",{className:"font-medium mb-1",children:["Turn ",n.turn]}),_.jsxs("p",{style:{color:"#3b82f6"},children:["Input: ",n.input.toLocaleString()]}),_.jsxs("p",{style:{color:"#14b8a6"},children:["Output: ",n.output.toLocaleString()]}),_.jsxs("p",{className:"mt-1 font-medium",style:{color:"var(--color-text)"},children:["Total: ",n.total.toLocaleString()]})]})}function dne({data:e,tokenUsage:t}){return e.length===0?_.jsx("div",{className:"flex items-center justify-center h-[200px] text-xs text-[var(--color-text-muted)]",children:"No usage data yet"}):_.jsxs("div",{children:[_.jsx(A7,{width:"100%",height:200,children:_.jsxs(sne,{data:e,margin:{top:8,right:8,left:-8,bottom:0},children:[_.jsx(pN,{strokeDasharray:"3 3",stroke:"var(--color-border)",opacity:.3}),_.jsx(ON,{dataKey:"turn",stroke:"var(--color-text-muted)",tick:{fill:"var(--color-text-muted)",fontSize:11},tickLine:!1}),_.jsx(EN,{stroke:"var(--color-text-muted)",tick:{fill:"var(--color-text-muted)",fontSize:11},tickFormatter:cne,tickLine:!1,width:42}),_.jsx(hZ,{content:_.jsx(fne,{}),cursor:{fill:"var(--color-surface)",opacity:.5}}),_.jsx(n0,{dataKey:"input",stackId:"tokens",fill:"#3b82f6",radius:[0,0,2,2],name:"Input"}),_.jsx(n0,{dataKey:"output",stackId:"tokens",fill:"#14b8a6",radius:[2,2,0,0],name:"Output"})]})}),_.jsxs("div",{className:"grid grid-cols-3 gap-3 mt-3 pt-3 border-t border-[var(--color-border)] text-xs",children:[_.jsxs("div",{children:[_.jsx("div",{className:"text-[var(--color-text-muted)] mb-0.5",children:"Input"}),_.jsx("div",{className:"font-medium text-[var(--color-text)]",children:t.input.toLocaleString()})]}),_.jsxs("div",{children:[_.jsx("div",{className:"text-[var(--color-text-muted)] mb-0.5",children:"Output"}),_.jsx("div",{className:"font-medium text-[var(--color-text)]",children:t.output.toLocaleString()})]}),_.jsxs("div",{children:[_.jsx("div",{className:"text-[var(--color-text-muted)] mb-0.5",children:"Total"}),_.jsx("div",{className:"font-medium text-[var(--color-text)]",children:t.total.toLocaleString()})]})]}),_.jsxs("div",{className:"flex items-center gap-3 mt-2 text-[10px] text-[var(--color-text-muted)]",children:[_.jsxs("span",{className:"flex items-center gap-1",children:[_.jsx("span",{className:"w-2 h-2 rounded-sm",style:{backgroundColor:"#3b82f6"}}),"Input"]}),_.jsxs("span",{className:"flex items-center gap-1",children:[_.jsx("span",{className:"w-2 h-2 rounded-sm",style:{backgroundColor:"#14b8a6"}}),"Output"]})]})]})}function hne(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function mne({connectionStatus:e,isStreaming:t,tokenUsage:n,usageHistory:r,onNewSession:a}){const[o,u]=E.useState(!1),c=E.useRef(null);return E.useEffect(()=>{if(!o)return;const f=m=>{c.current&&!c.current.contains(m.target)&&u(!1)},d=m=>{m.key==="Escape"&&u(!1)};return document.addEventListener("mousedown",f),document.addEventListener("keydown",d),()=>{document.removeEventListener("mousedown",f),document.removeEventListener("keydown",d)}},[o]),_.jsxs("div",{className:"flex items-center gap-2.5 text-[11px]",children:[_.jsxs("button",{onClick:()=>{window.confirm("Start a new session? This will clear all messages and cannot be undone.")&&a()},disabled:t,className:"flex items-center gap-1 text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] transition-colors disabled:opacity-40 disabled:cursor-not-allowed cursor-pointer",title:"New session",children:[_.jsx(u3,{size:10}),"New"]}),_.jsxs("button",{onClick:()=>window.print(),className:"flex items-center gap-1 text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] transition-colors cursor-pointer",title:"Print conversation",children:[_.jsx(o3,{size:10}),"Print"]}),t&&_.jsxs("span",{className:"flex items-center gap-1 text-[var(--color-text-secondary)]",children:[_.jsx(jd,{size:10,className:"animate-spin"}),"Working"]}),n.total>0&&_.jsxs("div",{className:"relative",ref:c,children:[_.jsxs("button",{onClick:()=>u(f=>!f),className:"flex items-center gap-1 text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] transition-colors cursor-pointer",title:"View token usage breakdown",children:[_.jsx(h3,{size:10}),hne(n.total)," tokens"]}),o&&_.jsxs("div",{className:"absolute right-0 top-full mt-2 w-[340px] p-4 rounded-lg shadow-lg border border-[var(--color-border)] bg-[var(--color-surface-2)] z-50",children:[_.jsx("div",{className:"text-xs font-medium text-[var(--color-text)] mb-3",children:"Token Usage by Turn"}),_.jsx(dne,{data:r,tokenUsage:n})]})]}),_.jsxs("span",{className:"flex items-center gap-1.5",children:[_.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${e==="connected"?"bg-[var(--color-success)]":e==="error"?"bg-[var(--color-error)]":"bg-[var(--color-text-muted)]"}`}),_.jsx("span",{className:"text-[var(--color-text-muted)]",children:e==="connected"?"Connected":e==="connecting"?"Connecting":e==="error"?"Error":"Disconnected"})]})]})}function pne(e){const[t,n]=E.useState("tasks"),[r,a]=E.useState(!0);return _.jsxs("div",{className:"h-full flex flex-col bg-[var(--color-surface)]",children:[_.jsxs("header",{"data-print-hide":!0,className:"flex items-center justify-between px-5 h-11 border-b border-[var(--color-border)] bg-[var(--color-surface)]",children:[_.jsxs("div",{className:"flex items-center gap-2.5",children:[e.config.icon_url?_.jsx("img",{src:e.config.icon_url,alt:"",className:"w-6 h-6 rounded-md object-cover"}):_.jsx("div",{className:"w-6 h-6 rounded-md bg-gradient-to-br from-[var(--color-primary)] to-[var(--color-primary-dark)] flex items-center justify-center",children:_.jsx(TC,{size:13,className:"text-white"})}),_.jsx("h1",{className:"text-sm font-semibold tracking-tight text-[var(--color-text)]",children:e.config.title}),e.config.subtitle&&_.jsx("span",{className:"text-[11px] text-[var(--color-text-muted)] hidden sm:inline border-l border-[var(--color-border)] pl-2.5",children:e.config.subtitle})]}),_.jsxs("div",{className:"flex items-center gap-2",children:[_.jsx(mne,{connectionStatus:e.connectionStatus,isStreaming:e.isStreaming,tokenUsage:e.tokenUsage,usageHistory:e.usageHistory,onNewSession:e.onNewSession}),_.jsx("div",{className:"w-px h-4 bg-[var(--color-border)]"}),_.jsx(A9,{initialTheme:e.config.theme}),_.jsx("button",{onClick:()=>a(o=>!o),className:"p-1 rounded hover:bg-[var(--color-surface-3)] transition-colors",title:r?"Hide sidebar":"Show sidebar",children:r?_.jsx(i3,{size:15,className:"text-[var(--color-text-secondary)]"}):_.jsx(a3,{size:15,className:"text-[var(--color-text-secondary)]"})})]})]}),_.jsx("div",{className:"flex-1 overflow-hidden",children:_.jsxs(Zp,{defaultSizes:[60,40],children:[_.jsx(Zp.Pane,{minSize:300,children:_.jsx(n9,{messages:e.messages,isStreaming:e.isStreaming,welcomeMessage:e.config.welcome_message,agentName:e.config.agent_name,iconUrl:e.config.icon_url,saveWorkflowPrompt:e.config.save_workflow_prompt,runWorkflowPrompt:e.config.run_workflow_prompt,createWorkflowPrompt:e.config.create_workflow_prompt,onSend:e.onSend,onCancel:e.onCancel})}),_.jsx(Zp.Pane,{minSize:250,visible:r,children:_.jsxs("div",{"data-print-hide":!0,className:"flex flex-col h-full bg-[var(--color-surface)]",children:[_.jsxs("div",{className:"flex items-center h-10 border-b border-[var(--color-border)]",children:[_.jsxs("button",{onClick:()=>n("tasks"),className:`flex items-center gap-1.5 px-4 h-full text-xs font-medium tracking-wide uppercase transition-colors border-b-2 ${t==="tasks"?"border-[var(--color-text)] text-[var(--color-text)]":"border-transparent text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)]"}`,children:[_.jsx(CC,{size:13}),"Tasks",e.todos.length>0&&_.jsx("span",{className:"ml-1 min-w-[16px] h-4 px-1 rounded-full bg-[var(--color-surface-3)] text-[10px] tabular-nums text-[var(--color-text-muted)] inline-flex items-center justify-center",children:e.todos.length})]}),_.jsxs("button",{onClick:()=>n("canvas"),className:`flex items-center gap-1.5 px-4 h-full text-xs font-medium tracking-wide uppercase transition-colors border-b-2 ${t==="canvas"?"border-[var(--color-text)] text-[var(--color-text)]":"border-transparent text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)]"}`,children:[_.jsx(r3,{size:13}),"Canvas",e.canvasItems.length>0&&_.jsx("span",{className:"ml-1 min-w-[16px] h-4 px-1 rounded-full bg-[var(--color-surface-3)] text-[10px] tabular-nums text-[var(--color-text-muted)] inline-flex items-center justify-center",children:e.canvasItems.length})]}),_.jsxs("button",{onClick:()=>n("files"),className:`flex items-center gap-1.5 px-4 h-full text-xs font-medium tracking-wide uppercase transition-colors border-b-2 ${t==="files"?"border-[var(--color-text)] text-[var(--color-text)]":"border-transparent text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)]"}`,children:[_.jsx(XI,{size:13}),"Files"]})]}),_.jsxs("div",{className:"flex-1 overflow-hidden",children:[t==="tasks"&&_.jsx(O9,{todos:e.todos}),t==="canvas"&&_.jsx(S9,{items:e.canvasItems,onDelete:e.onDeleteCanvasItem,onClearAll:e.onClearCanvas,onExport:e.onExportCanvas}),t==="files"&&(e.selectedFile?_.jsx(u9,{file:e.selectedFile,onClose:e.onCloseFile}):_.jsx(l9,{entries:e.fileEntries,expandedDirs:e.expandedDirs,loading:e.fileLoading,workspacePath:e.workspacePath,onToggleDir:e.onToggleDir,onOpenFile:e.onOpenFile,onEnterDir:e.onEnterDir,onUpload:e.onUpload,onCreateFolder:e.onCreateFolder,onDelete:e.onDeletePath}))]})]})})]})}),e.interrupt&&_.jsx(E9,{interrupt:e.interrupt,onRespond:e.onRespondInterrupt})]})}const vne={title:"Cowork Dash",subtitle:"AI-Powered Workspace",welcome_message:"",theme:"auto",workspace_name:"",agent_name:"Agent",icon_url:"",save_workflow_prompt:"",run_workflow_prompt:"",create_workflow_prompt:""};function yne(){const[e,t]=E.useState(vne),[n,r]=E.useState(!1);E.useEffect(()=>(fetch("/api/config").then(L=>L.json()).then(L=>{t(L),r(!0)}).catch(()=>{r(!0)}),fetch("/api/custom-css").then(L=>{if(L.ok)return L.text()}).then(L=>{if(!L)return;const K=document.createElement("style");K.id="custom-theme",K.textContent=L,document.head.appendChild(K)}).catch(()=>{}),()=>{const L=document.getElementById("custom-theme");L&&L.remove()}),[]);const{messages:a,isStreaming:o,interrupt:u,todos:c,tokenUsage:f,usageHistory:d,connectionStatus:m,fileChanges:p,sendMessage:y,respondToInterrupt:g,cancelStream:x,resetSession:w}=cI(),{tree:S,selectedFile:O,expandedDirs:C,workspacePath:T,toggleDir:D,openFile:P,enterDir:k,uploadFile:j,createFolder:U,deletePath:$,setSelectedFile:I}=fI(p),{items:Z,deleteItem:q,clearAll:oe,exportMarkdown:ne}=dI(p),Q=E.useCallback(L=>y(L,{cwd:T}),[y,T]);return E.useEffect(()=>{document.title=e.title},[e.title]),n?_.jsx(pne,{config:e,messages:a,todos:c,isStreaming:o,interrupt:u,connectionStatus:m,tokenUsage:f,usageHistory:d,onSend:Q,onCancel:x,onRespondInterrupt:g,fileEntries:S.entries,fileLoading:S.loading,expandedDirs:C,selectedFile:O,workspacePath:T,onToggleDir:D,onOpenFile:P,onCloseFile:()=>I(null),onEnterDir:k,onUpload:j,onCreateFolder:U,onDeletePath:$,canvasItems:Z,onDeleteCanvasItem:q,onClearCanvas:oe,onExportCanvas:ne,onNewSession:w}):_.jsx("div",{className:"h-full flex items-center justify-center bg-[var(--color-surface)]",children:_.jsx("div",{className:"text-[var(--color-text-muted)]",children:"Loading..."})})}oI.createRoot(document.getElementById("root")).render(_.jsx(E.StrictMode,{children:_.jsx(yne,{})}));export{GF as $,Tne as A,PY as B,Cs as C,rk as D,nk as E,JM as F,Sb as G,oh as H,OV as I,SV as J,bo as K,wV as L,xV as M,pd as N,js as O,xb as P,gb as Q,Cn as R,Ya as S,md as T,db as U,QT as V,Lf as W,cd as X,ds as Y,dk as Z,h9 as _,GT as a,oU as a0,uU as a1,lU as a2,aU as a3,iU as a4,rU as a5,nU as a6,Id as a7,U9 as a8,B9 as a9,tU as aa,eU as ab,ob as b,J9 as c,$T as d,ot as e,One as f,jr as g,_E as h,bne as i,xne as j,wne as k,LM as l,Sne as m,Ane as n,Ene as o,mo as p,I0 as q,lb as r,If as s,Rd as t,Tr as u,RF as v,R0 as w,ub as x,zM as y,PM as z};
