Relay firehose browser tools: https://compare.hose.cam
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

ship the latency histograms

phil 2f8e4a40 452d8f91

+233 -124
-123
docs/assets/index-GCbXm-Bp.js
··· 1 - var GT=Object.defineProperty;var qT=(t,n,i)=>n in t?GT(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i;var Ln=(t,n,i)=>qT(t,typeof n!="symbol"?n+"":n,i);function IT(t,n){for(var i=0;i<n.length;i++){const a=n[i];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in t)){const u=Object.getOwnPropertyDescriptor(a,o);u&&Object.defineProperty(t,o,u.get?u:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function i(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(o){if(o.ep)return;o.ep=!0;const u=i(o);fetch(o.href,u)}})();function jb(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Jd={exports:{}},ho={};/** 2 - * @license React 3 - * react-jsx-runtime.production.js 4 - * 5 - * Copyright (c) Meta Platforms, Inc. and affiliates. 6 - * 7 - * This source code is licensed under the MIT license found in the 8 - * LICENSE file in the root directory of this source tree. 9 - */var d1;function VT(){if(d1)return ho;d1=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function i(a,o,u){var c=null;if(u!==void 0&&(c=""+u),o.key!==void 0&&(c=""+o.key),"key"in o){u={};for(var f in o)f!=="key"&&(u[f]=o[f])}else u=o;return o=u.ref,{$$typeof:t,type:a,key:c,ref:o!==void 0?o:null,props:u}}return ho.Fragment=n,ho.jsx=i,ho.jsxs=i,ho}var h1;function XT(){return h1||(h1=1,Jd.exports=VT()),Jd.exports}var H=XT(),th={exports:{}},mo={},eh={exports:{}},nh={};/** 10 - * @license React 11 - * scheduler.production.js 12 - * 13 - * Copyright (c) Meta Platforms, Inc. and affiliates. 14 - * 15 - * This source code is licensed under the MIT license found in the 16 - * LICENSE file in the root directory of this source tree. 17 - */var m1;function PT(){return m1||(m1=1,function(t){function n(j,P){var nt=j.length;j.push(P);t:for(;0<nt;){var st=nt-1>>>1,N=j[st];if(0<o(N,P))j[st]=P,j[nt]=N,nt=st;else break t}}function i(j){return j.length===0?null:j[0]}function a(j){if(j.length===0)return null;var P=j[0],nt=j.pop();if(nt!==P){j[0]=nt;t:for(var st=0,N=j.length,F=N>>>1;st<F;){var at=2*(st+1)-1,lt=j[at],ct=at+1,yt=j[ct];if(0>o(lt,nt))ct<N&&0>o(yt,lt)?(j[st]=yt,j[ct]=nt,st=ct):(j[st]=lt,j[at]=nt,st=at);else if(ct<N&&0>o(yt,nt))j[st]=yt,j[ct]=nt,st=ct;else break t}}return P}function o(j,P){var nt=j.sortIndex-P.sortIndex;return nt!==0?nt:j.id-P.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();t.unstable_now=function(){return c.now()-f}}var m=[],h=[],p=1,y=null,v=3,b=!1,x=!1,S=!1,C=!1,E=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function k(j){for(var P=i(h);P!==null;){if(P.callback===null)a(h);else if(P.startTime<=j)a(h),P.sortIndex=P.expirationTime,n(m,P);else break;P=i(h)}}function M(j){if(S=!1,k(j),!x)if(i(m)!==null)x=!0,R||(R=!0,X());else{var P=i(h);P!==null&&ot(M,P.startTime-j)}}var R=!1,D=-1,L=5,$=-1;function T(){return C?!0:!(t.unstable_now()-$<L)}function z(){if(C=!1,R){var j=t.unstable_now();$=j;var P=!0;try{t:{x=!1,S&&(S=!1,_(D),D=-1),b=!0;var nt=v;try{e:{for(k(j),y=i(m);y!==null&&!(y.expirationTime>j&&T());){var st=y.callback;if(typeof st=="function"){y.callback=null,v=y.priorityLevel;var N=st(y.expirationTime<=j);if(j=t.unstable_now(),typeof N=="function"){y.callback=N,k(j),P=!0;break e}y===i(m)&&a(m),k(j)}else a(m);y=i(m)}if(y!==null)P=!0;else{var F=i(h);F!==null&&ot(M,F.startTime-j),P=!1}}break t}finally{y=null,v=nt,b=!1}P=void 0}}finally{P?X():R=!1}}}var X;if(typeof O=="function")X=function(){O(z)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,it=K.port2;K.port1.onmessage=z,X=function(){it.postMessage(null)}}else X=function(){E(z,0)};function ot(j,P){D=E(function(){j(t.unstable_now())},P)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(j){j.callback=null},t.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<j?Math.floor(1e3/j):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_next=function(j){switch(v){case 1:case 2:case 3:var P=3;break;default:P=v}var nt=v;v=P;try{return j()}finally{v=nt}},t.unstable_requestPaint=function(){C=!0},t.unstable_runWithPriority=function(j,P){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var nt=v;v=j;try{return P()}finally{v=nt}},t.unstable_scheduleCallback=function(j,P,nt){var st=t.unstable_now();switch(typeof nt=="object"&&nt!==null?(nt=nt.delay,nt=typeof nt=="number"&&0<nt?st+nt:st):nt=st,j){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=nt+N,j={id:p++,callback:P,priorityLevel:j,startTime:nt,expirationTime:N,sortIndex:-1},nt>st?(j.sortIndex=nt,n(h,j),i(m)===null&&j===i(h)&&(S?(_(D),D=-1):S=!0,ot(M,nt-st))):(j.sortIndex=N,n(m,j),x||b||(x=!0,R||(R=!0,X()))),j},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(j){var P=v;return function(){var nt=v;v=P;try{return j.apply(this,arguments)}finally{v=nt}}}}(nh)),nh}var g1;function ZT(){return g1||(g1=1,eh.exports=PT()),eh.exports}var rh={exports:{}},Ct={};/** 18 - * @license React 19 - * react.production.js 20 - * 21 - * Copyright (c) Meta Platforms, Inc. and affiliates. 22 - * 23 - * This source code is licensed under the MIT license found in the 24 - * LICENSE file in the root directory of this source tree. 25 - */var p1;function QT(){if(p1)return Ct;p1=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.iterator;function v(N){return N===null||typeof N!="object"?null:(N=y&&N[y]||N["@@iterator"],typeof N=="function"?N:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,S={};function C(N,F,at){this.props=N,this.context=F,this.refs=S,this.updater=at||b}C.prototype.isReactComponent={},C.prototype.setState=function(N,F){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,F,"setState")},C.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function E(){}E.prototype=C.prototype;function _(N,F,at){this.props=N,this.context=F,this.refs=S,this.updater=at||b}var O=_.prototype=new E;O.constructor=_,x(O,C.prototype),O.isPureReactComponent=!0;var k=Array.isArray,M={H:null,A:null,T:null,S:null,V:null},R=Object.prototype.hasOwnProperty;function D(N,F,at,lt,ct,yt){return at=yt.ref,{$$typeof:t,type:N,key:F,ref:at!==void 0?at:null,props:yt}}function L(N,F){return D(N.type,F,void 0,void 0,void 0,N.props)}function $(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function T(N){var F={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(at){return F[at]})}var z=/\/+/g;function X(N,F){return typeof N=="object"&&N!==null&&N.key!=null?T(""+N.key):F.toString(36)}function K(){}function it(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(K,K):(N.status="pending",N.then(function(F){N.status==="pending"&&(N.status="fulfilled",N.value=F)},function(F){N.status==="pending"&&(N.status="rejected",N.reason=F)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function ot(N,F,at,lt,ct){var yt=typeof N;(yt==="undefined"||yt==="boolean")&&(N=null);var dt=!1;if(N===null)dt=!0;else switch(yt){case"bigint":case"string":case"number":dt=!0;break;case"object":switch(N.$$typeof){case t:case n:dt=!0;break;case p:return dt=N._init,ot(dt(N._payload),F,at,lt,ct)}}if(dt)return ct=ct(N),dt=lt===""?"."+X(N,0):lt,k(ct)?(at="",dt!=null&&(at=dt.replace(z,"$&/")+"/"),ot(ct,F,at,"",function(ut){return ut})):ct!=null&&($(ct)&&(ct=L(ct,at+(ct.key==null||N&&N.key===ct.key?"":(""+ct.key).replace(z,"$&/")+"/")+dt)),F.push(ct)),1;dt=0;var gt=lt===""?".":lt+":";if(k(N))for(var mt=0;mt<N.length;mt++)lt=N[mt],yt=gt+X(lt,mt),dt+=ot(lt,F,at,yt,ct);else if(mt=v(N),typeof mt=="function")for(N=mt.call(N),mt=0;!(lt=N.next()).done;)lt=lt.value,yt=gt+X(lt,mt++),dt+=ot(lt,F,at,yt,ct);else if(yt==="object"){if(typeof N.then=="function")return ot(it(N),F,at,lt,ct);throw F=String(N),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return dt}function j(N,F,at){if(N==null)return N;var lt=[],ct=0;return ot(N,lt,"","",function(yt){return F.call(at,yt,ct++)}),lt}function P(N){if(N._status===-1){var F=N._result;F=F(),F.then(function(at){(N._status===0||N._status===-1)&&(N._status=1,N._result=at)},function(at){(N._status===0||N._status===-1)&&(N._status=2,N._result=at)}),N._status===-1&&(N._status=0,N._result=F)}if(N._status===1)return N._result.default;throw N._result}var nt=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function st(){}return Ct.Children={map:j,forEach:function(N,F,at){j(N,function(){F.apply(this,arguments)},at)},count:function(N){var F=0;return j(N,function(){F++}),F},toArray:function(N){return j(N,function(F){return F})||[]},only:function(N){if(!$(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},Ct.Component=C,Ct.Fragment=i,Ct.Profiler=o,Ct.PureComponent=_,Ct.StrictMode=a,Ct.Suspense=m,Ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Ct.__COMPILER_RUNTIME={__proto__:null,c:function(N){return M.H.useMemoCache(N)}},Ct.cache=function(N){return function(){return N.apply(null,arguments)}},Ct.cloneElement=function(N,F,at){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var lt=x({},N.props),ct=N.key,yt=void 0;if(F!=null)for(dt in F.ref!==void 0&&(yt=void 0),F.key!==void 0&&(ct=""+F.key),F)!R.call(F,dt)||dt==="key"||dt==="__self"||dt==="__source"||dt==="ref"&&F.ref===void 0||(lt[dt]=F[dt]);var dt=arguments.length-2;if(dt===1)lt.children=at;else if(1<dt){for(var gt=Array(dt),mt=0;mt<dt;mt++)gt[mt]=arguments[mt+2];lt.children=gt}return D(N.type,ct,void 0,void 0,yt,lt)},Ct.createContext=function(N){return N={$$typeof:c,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:u,_context:N},N},Ct.createElement=function(N,F,at){var lt,ct={},yt=null;if(F!=null)for(lt in F.key!==void 0&&(yt=""+F.key),F)R.call(F,lt)&&lt!=="key"&&lt!=="__self"&&lt!=="__source"&&(ct[lt]=F[lt]);var dt=arguments.length-2;if(dt===1)ct.children=at;else if(1<dt){for(var gt=Array(dt),mt=0;mt<dt;mt++)gt[mt]=arguments[mt+2];ct.children=gt}if(N&&N.defaultProps)for(lt in dt=N.defaultProps,dt)ct[lt]===void 0&&(ct[lt]=dt[lt]);return D(N,yt,void 0,void 0,null,ct)},Ct.createRef=function(){return{current:null}},Ct.forwardRef=function(N){return{$$typeof:f,render:N}},Ct.isValidElement=$,Ct.lazy=function(N){return{$$typeof:p,_payload:{_status:-1,_result:N},_init:P}},Ct.memo=function(N,F){return{$$typeof:h,type:N,compare:F===void 0?null:F}},Ct.startTransition=function(N){var F=M.T,at={};M.T=at;try{var lt=N(),ct=M.S;ct!==null&&ct(at,lt),typeof lt=="object"&&lt!==null&&typeof lt.then=="function"&&lt.then(st,nt)}catch(yt){nt(yt)}finally{M.T=F}},Ct.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Ct.use=function(N){return M.H.use(N)},Ct.useActionState=function(N,F,at){return M.H.useActionState(N,F,at)},Ct.useCallback=function(N,F){return M.H.useCallback(N,F)},Ct.useContext=function(N){return M.H.useContext(N)},Ct.useDebugValue=function(){},Ct.useDeferredValue=function(N,F){return M.H.useDeferredValue(N,F)},Ct.useEffect=function(N,F,at){var lt=M.H;if(typeof at=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return lt.useEffect(N,F)},Ct.useId=function(){return M.H.useId()},Ct.useImperativeHandle=function(N,F,at){return M.H.useImperativeHandle(N,F,at)},Ct.useInsertionEffect=function(N,F){return M.H.useInsertionEffect(N,F)},Ct.useLayoutEffect=function(N,F){return M.H.useLayoutEffect(N,F)},Ct.useMemo=function(N,F){return M.H.useMemo(N,F)},Ct.useOptimistic=function(N,F){return M.H.useOptimistic(N,F)},Ct.useReducer=function(N,F,at){return M.H.useReducer(N,F,at)},Ct.useRef=function(N){return M.H.useRef(N)},Ct.useState=function(N){return M.H.useState(N)},Ct.useSyncExternalStore=function(N,F,at){return M.H.useSyncExternalStore(N,F,at)},Ct.useTransition=function(){return M.H.useTransition()},Ct.version="19.1.0",Ct}var y1;function ic(){return y1||(y1=1,rh.exports=QT()),rh.exports}var ih={exports:{}},Be={};/** 26 - * @license React 27 - * react-dom.production.js 28 - * 29 - * Copyright (c) Meta Platforms, Inc. and affiliates. 30 - * 31 - * This source code is licensed under the MIT license found in the 32 - * LICENSE file in the root directory of this source tree. 33 - */var v1;function KT(){if(v1)return Be;v1=1;var t=ic();function n(m){var h="https://react.dev/errors/"+m;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)h+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+m+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var a={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(m,h,p){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:m,containerInfo:h,implementation:p}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(m,h){if(m==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Be.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Be.createPortal=function(m,h){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(n(299));return u(m,h,null,p)},Be.flushSync=function(m){var h=c.T,p=a.p;try{if(c.T=null,a.p=2,m)return m()}finally{c.T=h,a.p=p,a.d.f()}},Be.preconnect=function(m,h){typeof m=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,a.d.C(m,h))},Be.prefetchDNS=function(m){typeof m=="string"&&a.d.D(m)},Be.preinit=function(m,h){if(typeof m=="string"&&h&&typeof h.as=="string"){var p=h.as,y=f(p,h.crossOrigin),v=typeof h.integrity=="string"?h.integrity:void 0,b=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;p==="style"?a.d.S(m,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:v,fetchPriority:b}):p==="script"&&a.d.X(m,{crossOrigin:y,integrity:v,fetchPriority:b,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Be.preinitModule=function(m,h){if(typeof m=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var p=f(h.as,h.crossOrigin);a.d.M(m,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&a.d.M(m)},Be.preload=function(m,h){if(typeof m=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var p=h.as,y=f(p,h.crossOrigin);a.d.L(m,p,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Be.preloadModule=function(m,h){if(typeof m=="string")if(h){var p=f(h.as,h.crossOrigin);a.d.m(m,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else a.d.m(m)},Be.requestFormReset=function(m){a.d.r(m)},Be.unstable_batchedUpdates=function(m,h){return m(h)},Be.useFormState=function(m,h,p){return c.H.useFormState(m,h,p)},Be.useFormStatus=function(){return c.H.useHostTransitionStatus()},Be.version="19.1.0",Be}var b1;function $b(){if(b1)return ih.exports;b1=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}return t(),ih.exports=KT(),ih.exports}/** 34 - * @license React 35 - * react-dom-client.production.js 36 - * 37 - * Copyright (c) Meta Platforms, Inc. and affiliates. 38 - * 39 - * This source code is licensed under the MIT license found in the 40 - * LICENSE file in the root directory of this source tree. 41 - */var x1;function FT(){if(x1)return mo;x1=1;var t=ZT(),n=ic(),i=$b();function a(e){var r="https://react.dev/errors/"+e;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)r+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var r=e,l=e;if(e.alternate)for(;r.return;)r=r.return;else{e=r;do r=e,(r.flags&4098)!==0&&(l=r.return),e=r.return;while(e)}return r.tag===3?l:null}function c(e){if(e.tag===13){var r=e.memoizedState;if(r===null&&(e=e.alternate,e!==null&&(r=e.memoizedState)),r!==null)return r.dehydrated}return null}function f(e){if(u(e)!==e)throw Error(a(188))}function m(e){var r=e.alternate;if(!r){if(r=u(e),r===null)throw Error(a(188));return r!==e?null:e}for(var l=e,s=r;;){var d=l.return;if(d===null)break;var g=d.alternate;if(g===null){if(s=d.return,s!==null){l=s;continue}break}if(d.child===g.child){for(g=d.child;g;){if(g===l)return f(d),e;if(g===s)return f(d),r;g=g.sibling}throw Error(a(188))}if(l.return!==s.return)l=d,s=g;else{for(var A=!1,w=d.child;w;){if(w===l){A=!0,l=d,s=g;break}if(w===s){A=!0,s=d,l=g;break}w=w.sibling}if(!A){for(w=g.child;w;){if(w===l){A=!0,l=g,s=d;break}if(w===s){A=!0,s=g,l=d;break}w=w.sibling}if(!A)throw Error(a(189))}}if(l.alternate!==s)throw Error(a(190))}if(l.tag!==3)throw Error(a(188));return l.stateNode.current===l?e:r}function h(e){var r=e.tag;if(r===5||r===26||r===27||r===6)return e;for(e=e.child;e!==null;){if(r=h(e),r!==null)return r;e=e.sibling}return null}var p=Object.assign,y=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),_=Symbol.for("react.consumer"),O=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),T=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function X(e){return e===null||typeof e!="object"?null:(e=z&&e[z]||e["@@iterator"],typeof e=="function"?e:null)}var K=Symbol.for("react.client.reference");function it(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===K?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case x:return"Fragment";case C:return"Profiler";case S:return"StrictMode";case M:return"Suspense";case R:return"SuspenseList";case $:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case b:return"Portal";case O:return(e.displayName||"Context")+".Provider";case _:return(e._context.displayName||"Context")+".Consumer";case k:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case D:return r=e.displayName||null,r!==null?r:it(e.type)||"Memo";case L:r=e._payload,e=e._init;try{return it(e(r))}catch{}}return null}var ot=Array.isArray,j=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt={pending:!1,data:null,method:null,action:null},st=[],N=-1;function F(e){return{current:e}}function at(e){0>N||(e.current=st[N],st[N]=null,N--)}function lt(e,r){N++,st[N]=e.current,e.current=r}var ct=F(null),yt=F(null),dt=F(null),gt=F(null);function mt(e,r){switch(lt(dt,r),lt(yt,e),lt(ct,null),r.nodeType){case 9:case 11:e=(e=r.documentElement)&&(e=e.namespaceURI)?Hy(e):0;break;default:if(e=r.tagName,r=r.namespaceURI)r=Hy(r),e=Yy(r,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}at(ct),lt(ct,e)}function ut(){at(ct),at(yt),at(dt)}function xt(e){e.memoizedState!==null&&lt(gt,e);var r=ct.current,l=Yy(r,e.type);r!==l&&(lt(yt,e),lt(ct,l))}function bt(e){yt.current===e&&(at(ct),at(yt)),gt.current===e&&(at(gt),oo._currentValue=nt)}var rt=Object.prototype.hasOwnProperty,_t=t.unstable_scheduleCallback,vt=t.unstable_cancelCallback,Bt=t.unstable_shouldYield,Wt=t.unstable_requestPaint,Yt=t.unstable_now,Ae=t.unstable_getCurrentPriorityLevel,ue=t.unstable_ImmediatePriority,me=t.unstable_UserBlockingPriority,Kt=t.unstable_NormalPriority,Xe=t.unstable_LowPriority,mn=t.unstable_IdlePriority,gn=t.log,Un=t.unstable_setDisableYieldValue,Ge=null,te=null;function Re(e){if(typeof gn=="function"&&Un(e),te&&typeof te.setStrictMode=="function")try{te.setStrictMode(Ge,e)}catch{}}var Te=Math.clz32?Math.clz32:lr,Ne=Math.log,re=Math.LN2;function lr(e){return e>>>=0,e===0?32:31-(Ne(e)/re|0)|0}var qe=256,Ue=4194304;function or(e){var r=e&42;if(r!==0)return r;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function as(e,r,l){var s=e.pendingLanes;if(s===0)return 0;var d=0,g=e.suspendedLanes,A=e.pingedLanes;e=e.warmLanes;var w=s&134217727;return w!==0?(s=w&~g,s!==0?d=or(s):(A&=w,A!==0?d=or(A):l||(l=w&~e,l!==0&&(d=or(l))))):(w=s&~g,w!==0?d=or(w):A!==0?d=or(A):l||(l=s&~e,l!==0&&(d=or(l)))),d===0?0:r!==0&&r!==d&&(r&g)===0&&(g=d&-d,l=r&-r,g>=l||g===32&&(l&4194048)!==0)?r:d}function pl(e,r){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&r)===0}function R2(e,r){switch(e){case 1:case 2:case 4:case 8:case 64:return r+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 r+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 T0(){var e=qe;return qe<<=1,(qe&4194048)===0&&(qe=256),e}function C0(){var e=Ue;return Ue<<=1,(Ue&62914560)===0&&(Ue=4194304),e}function Yc(e){for(var r=[],l=0;31>l;l++)r.push(e);return r}function yl(e,r){e.pendingLanes|=r,r!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function _2(e,r,l,s,d,g){var A=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var w=e.entanglements,U=e.expirationTimes,V=e.hiddenUpdates;for(l=A&~l;0<l;){var J=31-Te(l),et=1<<J;w[J]=0,U[J]=-1;var Z=V[J];if(Z!==null)for(V[J]=null,J=0;J<Z.length;J++){var Q=Z[J];Q!==null&&(Q.lane&=-536870913)}l&=~et}s!==0&&w0(e,s,0),g!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=g&~(A&~r))}function w0(e,r,l){e.pendingLanes|=r,e.suspendedLanes&=~r;var s=31-Te(r);e.entangledLanes|=r,e.entanglements[s]=e.entanglements[s]|1073741824|l&4194090}function M0(e,r){var l=e.entangledLanes|=r;for(e=e.entanglements;l;){var s=31-Te(l),d=1<<s;d&r|e[s]&r&&(e[s]|=r),l&=~d}}function Gc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function qc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function E0(){var e=P.p;return e!==0?e:(e=window.event,e===void 0?32:l1(e.type))}function k2(e,r){var l=P.p;try{return P.p=e,r()}finally{P.p=l}}var Br=Math.random().toString(36).slice(2),je="__reactFiber$"+Br,Pe="__reactProps$"+Br,Zi="__reactContainer$"+Br,Ic="__reactEvents$"+Br,D2="__reactListeners$"+Br,z2="__reactHandles$"+Br,O0="__reactResources$"+Br,vl="__reactMarker$"+Br;function Vc(e){delete e[je],delete e[Pe],delete e[Ic],delete e[D2],delete e[z2]}function Qi(e){var r=e[je];if(r)return r;for(var l=e.parentNode;l;){if(r=l[Zi]||l[je]){if(l=r.alternate,r.child!==null||l!==null&&l.child!==null)for(e=Vy(e);e!==null;){if(l=e[je])return l;e=Vy(e)}return r}e=l,l=e.parentNode}return null}function Ki(e){if(e=e[je]||e[Zi]){var r=e.tag;if(r===5||r===6||r===13||r===26||r===27||r===3)return e}return null}function bl(e){var r=e.tag;if(r===5||r===26||r===27||r===6)return e.stateNode;throw Error(a(33))}function Fi(e){var r=e[O0];return r||(r=e[O0]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Ce(e){e[vl]=!0}var R0=new Set,_0={};function di(e,r){Wi(e,r),Wi(e+"Capture",r)}function Wi(e,r){for(_0[e]=r,e=0;e<r.length;e++)R0.add(r[e])}var N2=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]*$"),k0={},D0={};function U2(e){return rt.call(D0,e)?!0:rt.call(k0,e)?!1:N2.test(e)?D0[e]=!0:(k0[e]=!0,!1)}function ls(e,r,l){if(U2(r))if(l===null)e.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(r);return;case"boolean":var s=r.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(r);return}}e.setAttribute(r,""+l)}}function os(e,r,l){if(l===null)e.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttribute(r,""+l)}}function sr(e,r,l,s){if(s===null)e.removeAttribute(l);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(r,l,""+s)}}var Xc,z0;function Ji(e){if(Xc===void 0)try{throw Error()}catch(l){var r=l.stack.trim().match(/\n( *(at )?)/);Xc=r&&r[1]||"",z0=-1<l.stack.indexOf(` 42 - at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return` 43 - `+Xc+e+z0}var Pc=!1;function Zc(e,r){if(!e||Pc)return"";Pc=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(r){var et=function(){throw Error()};if(Object.defineProperty(et.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(et,[])}catch(Q){var Z=Q}Reflect.construct(e,[],et)}else{try{et.call()}catch(Q){Z=Q}e.call(et.prototype)}}else{try{throw Error()}catch(Q){Z=Q}(et=e())&&typeof et.catch=="function"&&et.catch(function(){})}}catch(Q){if(Q&&Z&&typeof Q.stack=="string")return[Q.stack,Z.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=s.DetermineComponentFrameRoot(),A=g[0],w=g[1];if(A&&w){var U=A.split(` 44 - `),V=w.split(` 45 - `);for(d=s=0;s<U.length&&!U[s].includes("DetermineComponentFrameRoot");)s++;for(;d<V.length&&!V[d].includes("DetermineComponentFrameRoot");)d++;if(s===U.length||d===V.length)for(s=U.length-1,d=V.length-1;1<=s&&0<=d&&U[s]!==V[d];)d--;for(;1<=s&&0<=d;s--,d--)if(U[s]!==V[d]){if(s!==1||d!==1)do if(s--,d--,0>d||U[s]!==V[d]){var J=` 46 - `+U[s].replace(" at new "," at ");return e.displayName&&J.includes("<anonymous>")&&(J=J.replace("<anonymous>",e.displayName)),J}while(1<=s&&0<=d);break}}}finally{Pc=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ji(l):""}function j2(e){switch(e.tag){case 26:case 27:case 5:return Ji(e.type);case 16:return Ji("Lazy");case 13:return Ji("Suspense");case 19:return Ji("SuspenseList");case 0:case 15:return Zc(e.type,!1);case 11:return Zc(e.type.render,!1);case 1:return Zc(e.type,!0);case 31:return Ji("Activity");default:return""}}function N0(e){try{var r="";do r+=j2(e),e=e.return;while(e);return r}catch(l){return` 47 - Error generating stack: `+l.message+` 48 - `+l.stack}}function pn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function U0(e){var r=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function $2(e){var r=U0(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),s=""+e[r];if(!e.hasOwnProperty(r)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var d=l.get,g=l.set;return Object.defineProperty(e,r,{configurable:!0,get:function(){return d.call(this)},set:function(A){s=""+A,g.call(this,A)}}),Object.defineProperty(e,r,{enumerable:l.enumerable}),{getValue:function(){return s},setValue:function(A){s=""+A},stopTracking:function(){e._valueTracker=null,delete e[r]}}}}function ss(e){e._valueTracker||(e._valueTracker=$2(e))}function j0(e){if(!e)return!1;var r=e._valueTracker;if(!r)return!0;var l=r.getValue(),s="";return e&&(s=U0(e)?e.checked?"true":"false":e.value),e=s,e!==l?(r.setValue(e),!0):!1}function us(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var B2=/[\n"\\]/g;function yn(e){return e.replace(B2,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Qc(e,r,l,s,d,g,A,w){e.name="",A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?e.type=A:e.removeAttribute("type"),r!=null?A==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+pn(r)):e.value!==""+pn(r)&&(e.value=""+pn(r)):A!=="submit"&&A!=="reset"||e.removeAttribute("value"),r!=null?Kc(e,A,pn(r)):l!=null?Kc(e,A,pn(l)):s!=null&&e.removeAttribute("value"),d==null&&g!=null&&(e.defaultChecked=!!g),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+pn(w):e.removeAttribute("name")}function $0(e,r,l,s,d,g,A,w){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.type=g),r!=null||l!=null){if(!(g!=="submit"&&g!=="reset"||r!=null))return;l=l!=null?""+pn(l):"",r=r!=null?""+pn(r):l,w||r===e.value||(e.value=r),e.defaultValue=r}s=s??d,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=w?e.checked:!!s,e.defaultChecked=!!s,A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(e.name=A)}function Kc(e,r,l){r==="number"&&us(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ta(e,r,l,s){if(e=e.options,r){r={};for(var d=0;d<l.length;d++)r["$"+l[d]]=!0;for(l=0;l<e.length;l++)d=r.hasOwnProperty("$"+e[l].value),e[l].selected!==d&&(e[l].selected=d),d&&s&&(e[l].defaultSelected=!0)}else{for(l=""+pn(l),r=null,d=0;d<e.length;d++){if(e[d].value===l){e[d].selected=!0,s&&(e[d].defaultSelected=!0);return}r!==null||e[d].disabled||(r=e[d])}r!==null&&(r.selected=!0)}}function B0(e,r,l){if(r!=null&&(r=""+pn(r),r!==e.value&&(e.value=r),l==null)){e.defaultValue!==r&&(e.defaultValue=r);return}e.defaultValue=l!=null?""+pn(l):""}function L0(e,r,l,s){if(r==null){if(s!=null){if(l!=null)throw Error(a(92));if(ot(s)){if(1<s.length)throw Error(a(93));s=s[0]}l=s}l==null&&(l=""),r=l}l=pn(r),e.defaultValue=l,s=e.textContent,s===l&&s!==""&&s!==null&&(e.value=s)}function ea(e,r){if(r){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=r;return}}e.textContent=r}var L2=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 H0(e,r,l){var s=r.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?s?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="":s?e.setProperty(r,l):typeof l!="number"||l===0||L2.has(r)?r==="float"?e.cssFloat=l:e[r]=(""+l).trim():e[r]=l+"px"}function Y0(e,r,l){if(r!=null&&typeof r!="object")throw Error(a(62));if(e=e.style,l!=null){for(var s in l)!l.hasOwnProperty(s)||r!=null&&r.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var d in r)s=r[d],r.hasOwnProperty(d)&&l[d]!==s&&H0(e,d,s)}else for(var g in r)r.hasOwnProperty(g)&&H0(e,g,r[g])}function Fc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var H2=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"]]),Y2=/^[\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 cs(e){return Y2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Wc=null;function Jc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var na=null,ra=null;function G0(e){var r=Ki(e);if(r&&(e=r.stateNode)){var l=e[Pe]||null;t:switch(e=r.stateNode,r.type){case"input":if(Qc(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),r=l.name,l.type==="radio"&&r!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+yn(""+r)+'"][type="radio"]'),r=0;r<l.length;r++){var s=l[r];if(s!==e&&s.form===e.form){var d=s[Pe]||null;if(!d)throw Error(a(90));Qc(s,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(r=0;r<l.length;r++)s=l[r],s.form===e.form&&j0(s)}break t;case"textarea":B0(e,l.value,l.defaultValue);break t;case"select":r=l.value,r!=null&&ta(e,!!l.multiple,r,!1)}}}var tf=!1;function q0(e,r,l){if(tf)return e(r,l);tf=!0;try{var s=e(r);return s}finally{if(tf=!1,(na!==null||ra!==null)&&(Qs(),na&&(r=na,e=ra,ra=na=null,G0(r),e)))for(r=0;r<e.length;r++)G0(e[r])}}function xl(e,r){var l=e.stateNode;if(l===null)return null;var s=l[Pe]||null;if(s===null)return null;l=s[r];t:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break t;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(a(231,r,typeof l));return l}var ur=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ef=!1;if(ur)try{var Sl={};Object.defineProperty(Sl,"passive",{get:function(){ef=!0}}),window.addEventListener("test",Sl,Sl),window.removeEventListener("test",Sl,Sl)}catch{ef=!1}var Lr=null,nf=null,fs=null;function I0(){if(fs)return fs;var e,r=nf,l=r.length,s,d="value"in Lr?Lr.value:Lr.textContent,g=d.length;for(e=0;e<l&&r[e]===d[e];e++);var A=l-e;for(s=1;s<=A&&r[l-s]===d[g-s];s++);return fs=d.slice(e,1<s?1-s:void 0)}function ds(e){var r=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&r===13&&(e=13)):e=r,e===10&&(e=13),32<=e||e===13?e:0}function hs(){return!0}function V0(){return!1}function Ze(e){function r(l,s,d,g,A){this._reactName=l,this._targetInst=d,this.type=s,this.nativeEvent=g,this.target=A,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(l=e[w],this[w]=l?l(g):g[w]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?hs:V0,this.isPropagationStopped=V0,this}return p(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=hs)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=hs)},persist:function(){},isPersistent:hs}),r}var hi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ms=Ze(hi),Al=p({},hi,{view:0,detail:0}),G2=Ze(Al),rf,af,Tl,gs=p({},Al,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:of,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Tl&&(Tl&&e.type==="mousemove"?(rf=e.screenX-Tl.screenX,af=e.screenY-Tl.screenY):af=rf=0,Tl=e),rf)},movementY:function(e){return"movementY"in e?e.movementY:af}}),X0=Ze(gs),q2=p({},gs,{dataTransfer:0}),I2=Ze(q2),V2=p({},Al,{relatedTarget:0}),lf=Ze(V2),X2=p({},hi,{animationName:0,elapsedTime:0,pseudoElement:0}),P2=Ze(X2),Z2=p({},hi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Q2=Ze(Z2),K2=p({},hi,{data:0}),P0=Ze(K2),F2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},W2={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"},J2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tA(e){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(e):(e=J2[e])?!!r[e]:!1}function of(){return tA}var eA=p({},Al,{key:function(e){if(e.key){var r=F2[e.key]||e.key;if(r!=="Unidentified")return r}return e.type==="keypress"?(e=ds(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?W2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:of,charCode:function(e){return e.type==="keypress"?ds(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ds(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),nA=Ze(eA),rA=p({},gs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Z0=Ze(rA),iA=p({},Al,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:of}),aA=Ze(iA),lA=p({},hi,{propertyName:0,elapsedTime:0,pseudoElement:0}),oA=Ze(lA),sA=p({},gs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),uA=Ze(sA),cA=p({},hi,{newState:0,oldState:0}),fA=Ze(cA),dA=[9,13,27,32],sf=ur&&"CompositionEvent"in window,Cl=null;ur&&"documentMode"in document&&(Cl=document.documentMode);var hA=ur&&"TextEvent"in window&&!Cl,Q0=ur&&(!sf||Cl&&8<Cl&&11>=Cl),K0=" ",F0=!1;function W0(e,r){switch(e){case"keyup":return dA.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function J0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ia=!1;function mA(e,r){switch(e){case"compositionend":return J0(r);case"keypress":return r.which!==32?null:(F0=!0,K0);case"textInput":return e=r.data,e===K0&&F0?null:e;default:return null}}function gA(e,r){if(ia)return e==="compositionend"||!sf&&W0(e,r)?(e=I0(),fs=nf=Lr=null,ia=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Q0&&r.locale!=="ko"?null:r.data;default:return null}}var pA={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 tg(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r==="input"?!!pA[e.type]:r==="textarea"}function eg(e,r,l,s){na?ra?ra.push(s):ra=[s]:na=s,r=eu(r,"onChange"),0<r.length&&(l=new ms("onChange","change",null,l,s),e.push({event:l,listeners:r}))}var wl=null,Ml=null;function yA(e){Uy(e,0)}function ps(e){var r=bl(e);if(j0(r))return e}function ng(e,r){if(e==="change")return r}var rg=!1;if(ur){var uf;if(ur){var cf="oninput"in document;if(!cf){var ig=document.createElement("div");ig.setAttribute("oninput","return;"),cf=typeof ig.oninput=="function"}uf=cf}else uf=!1;rg=uf&&(!document.documentMode||9<document.documentMode)}function ag(){wl&&(wl.detachEvent("onpropertychange",lg),Ml=wl=null)}function lg(e){if(e.propertyName==="value"&&ps(Ml)){var r=[];eg(r,Ml,e,Jc(e)),q0(yA,r)}}function vA(e,r,l){e==="focusin"?(ag(),wl=r,Ml=l,wl.attachEvent("onpropertychange",lg)):e==="focusout"&&ag()}function bA(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ps(Ml)}function xA(e,r){if(e==="click")return ps(r)}function SA(e,r){if(e==="input"||e==="change")return ps(r)}function AA(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var nn=typeof Object.is=="function"?Object.is:AA;function El(e,r){if(nn(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;var l=Object.keys(e),s=Object.keys(r);if(l.length!==s.length)return!1;for(s=0;s<l.length;s++){var d=l[s];if(!rt.call(r,d)||!nn(e[d],r[d]))return!1}return!0}function og(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sg(e,r){var l=og(e);e=0;for(var s;l;){if(l.nodeType===3){if(s=e+l.textContent.length,e<=r&&s>=r)return{node:l,offset:r-e};e=s}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=og(l)}}function ug(e,r){return e&&r?e===r?!0:e&&e.nodeType===3?!1:r&&r.nodeType===3?ug(e,r.parentNode):"contains"in e?e.contains(r):e.compareDocumentPosition?!!(e.compareDocumentPosition(r)&16):!1:!1}function cg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var r=us(e.document);r instanceof e.HTMLIFrameElement;){try{var l=typeof r.contentWindow.location.href=="string"}catch{l=!1}if(l)e=r.contentWindow;else break;r=us(e.document)}return r}function ff(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r&&(r==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||r==="textarea"||e.contentEditable==="true")}var TA=ur&&"documentMode"in document&&11>=document.documentMode,aa=null,df=null,Ol=null,hf=!1;function fg(e,r,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;hf||aa==null||aa!==us(s)||(s=aa,"selectionStart"in s&&ff(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Ol&&El(Ol,s)||(Ol=s,s=eu(df,"onSelect"),0<s.length&&(r=new ms("onSelect","select",null,r,l),e.push({event:r,listeners:s}),r.target=aa)))}function mi(e,r){var l={};return l[e.toLowerCase()]=r.toLowerCase(),l["Webkit"+e]="webkit"+r,l["Moz"+e]="moz"+r,l}var la={animationend:mi("Animation","AnimationEnd"),animationiteration:mi("Animation","AnimationIteration"),animationstart:mi("Animation","AnimationStart"),transitionrun:mi("Transition","TransitionRun"),transitionstart:mi("Transition","TransitionStart"),transitioncancel:mi("Transition","TransitionCancel"),transitionend:mi("Transition","TransitionEnd")},mf={},dg={};ur&&(dg=document.createElement("div").style,"AnimationEvent"in window||(delete la.animationend.animation,delete la.animationiteration.animation,delete la.animationstart.animation),"TransitionEvent"in window||delete la.transitionend.transition);function gi(e){if(mf[e])return mf[e];if(!la[e])return e;var r=la[e],l;for(l in r)if(r.hasOwnProperty(l)&&l in dg)return mf[e]=r[l];return e}var hg=gi("animationend"),mg=gi("animationiteration"),gg=gi("animationstart"),CA=gi("transitionrun"),wA=gi("transitionstart"),MA=gi("transitioncancel"),pg=gi("transitionend"),yg=new Map,gf="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(" ");gf.push("scrollEnd");function jn(e,r){yg.set(e,r),di(r,[e])}var vg=new WeakMap;function vn(e,r){if(typeof e=="object"&&e!==null){var l=vg.get(e);return l!==void 0?l:(r={value:e,source:r,stack:N0(r)},vg.set(e,r),r)}return{value:e,source:r,stack:N0(r)}}var bn=[],oa=0,pf=0;function ys(){for(var e=oa,r=pf=oa=0;r<e;){var l=bn[r];bn[r++]=null;var s=bn[r];bn[r++]=null;var d=bn[r];bn[r++]=null;var g=bn[r];if(bn[r++]=null,s!==null&&d!==null){var A=s.pending;A===null?d.next=d:(d.next=A.next,A.next=d),s.pending=d}g!==0&&bg(l,d,g)}}function vs(e,r,l,s){bn[oa++]=e,bn[oa++]=r,bn[oa++]=l,bn[oa++]=s,pf|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function yf(e,r,l,s){return vs(e,r,l,s),bs(e)}function sa(e,r){return vs(e,null,null,r),bs(e)}function bg(e,r,l){e.lanes|=l;var s=e.alternate;s!==null&&(s.lanes|=l);for(var d=!1,g=e.return;g!==null;)g.childLanes|=l,s=g.alternate,s!==null&&(s.childLanes|=l),g.tag===22&&(e=g.stateNode,e===null||e._visibility&1||(d=!0)),e=g,g=g.return;return e.tag===3?(g=e.stateNode,d&&r!==null&&(d=31-Te(l),e=g.hiddenUpdates,s=e[d],s===null?e[d]=[r]:s.push(r),r.lane=l|536870912),g):null}function bs(e){if(50<Jl)throw Jl=0,Td=null,Error(a(185));for(var r=e.return;r!==null;)e=r,r=e.return;return e.tag===3?e.stateNode:null}var ua={};function EA(e,r,l,s){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rn(e,r,l,s){return new EA(e,r,l,s)}function vf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cr(e,r){var l=e.alternate;return l===null?(l=rn(e.tag,r,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=r,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,r=e.dependencies,l.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function xg(e,r){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=r,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,r=l.dependencies,e.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),e}function xs(e,r,l,s,d,g){var A=0;if(s=e,typeof e=="function")vf(e)&&(A=1);else if(typeof e=="string")A=RT(e,l,ct.current)?26:e==="html"||e==="head"||e==="body"?27:5;else t:switch(e){case $:return e=rn(31,l,r,d),e.elementType=$,e.lanes=g,e;case x:return pi(l.children,d,g,r);case S:A=8,d|=24;break;case C:return e=rn(12,l,r,d|2),e.elementType=C,e.lanes=g,e;case M:return e=rn(13,l,r,d),e.elementType=M,e.lanes=g,e;case R:return e=rn(19,l,r,d),e.elementType=R,e.lanes=g,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case E:case O:A=10;break t;case _:A=9;break t;case k:A=11;break t;case D:A=14;break t;case L:A=16,s=null;break t}A=29,l=Error(a(130,e===null?"null":typeof e,"")),s=null}return r=rn(A,l,r,d),r.elementType=e,r.type=s,r.lanes=g,r}function pi(e,r,l,s){return e=rn(7,e,s,r),e.lanes=l,e}function bf(e,r,l){return e=rn(6,e,null,r),e.lanes=l,e}function xf(e,r,l){return r=rn(4,e.children!==null?e.children:[],e.key,r),r.lanes=l,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}var ca=[],fa=0,Ss=null,As=0,xn=[],Sn=0,yi=null,fr=1,dr="";function vi(e,r){ca[fa++]=As,ca[fa++]=Ss,Ss=e,As=r}function Sg(e,r,l){xn[Sn++]=fr,xn[Sn++]=dr,xn[Sn++]=yi,yi=e;var s=fr;e=dr;var d=32-Te(s)-1;s&=~(1<<d),l+=1;var g=32-Te(r)+d;if(30<g){var A=d-d%5;g=(s&(1<<A)-1).toString(32),s>>=A,d-=A,fr=1<<32-Te(r)+d|l<<d|s,dr=g+e}else fr=1<<g|l<<d|s,dr=e}function Sf(e){e.return!==null&&(vi(e,1),Sg(e,1,0))}function Af(e){for(;e===Ss;)Ss=ca[--fa],ca[fa]=null,As=ca[--fa],ca[fa]=null;for(;e===yi;)yi=xn[--Sn],xn[Sn]=null,dr=xn[--Sn],xn[Sn]=null,fr=xn[--Sn],xn[Sn]=null}var Ie=null,ae=null,Nt=!1,bi=null,Vn=!1,Tf=Error(a(519));function xi(e){var r=Error(a(418,""));throw kl(vn(r,e)),Tf}function Ag(e){var r=e.stateNode,l=e.type,s=e.memoizedProps;switch(r[je]=e,r[Pe]=s,l){case"dialog":Rt("cancel",r),Rt("close",r);break;case"iframe":case"object":case"embed":Rt("load",r);break;case"video":case"audio":for(l=0;l<eo.length;l++)Rt(eo[l],r);break;case"source":Rt("error",r);break;case"img":case"image":case"link":Rt("error",r),Rt("load",r);break;case"details":Rt("toggle",r);break;case"input":Rt("invalid",r),$0(r,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),ss(r);break;case"select":Rt("invalid",r);break;case"textarea":Rt("invalid",r),L0(r,s.value,s.defaultValue,s.children),ss(r)}l=s.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||r.textContent===""+l||s.suppressHydrationWarning===!0||Ly(r.textContent,l)?(s.popover!=null&&(Rt("beforetoggle",r),Rt("toggle",r)),s.onScroll!=null&&Rt("scroll",r),s.onScrollEnd!=null&&Rt("scrollend",r),s.onClick!=null&&(r.onclick=nu),r=!0):r=!1,r||xi(e)}function Tg(e){for(Ie=e.return;Ie;)switch(Ie.tag){case 5:case 13:Vn=!1;return;case 27:case 3:Vn=!0;return;default:Ie=Ie.return}}function Rl(e){if(e!==Ie)return!1;if(!Nt)return Tg(e),Nt=!0,!1;var r=e.tag,l;if((l=r!==3&&r!==27)&&((l=r===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Ld(e.type,e.memoizedProps)),l=!l),l&&ae&&xi(e),Tg(e),r===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));t:{for(e=e.nextSibling,r=0;e;){if(e.nodeType===8)if(l=e.data,l==="/$"){if(r===0){ae=Bn(e.nextSibling);break t}r--}else l!=="$"&&l!=="$!"&&l!=="$?"||r++;e=e.nextSibling}ae=null}}else r===27?(r=ae,ei(e.type)?(e=qd,qd=null,ae=e):ae=r):ae=Ie?Bn(e.stateNode.nextSibling):null;return!0}function _l(){ae=Ie=null,Nt=!1}function Cg(){var e=bi;return e!==null&&(Fe===null?Fe=e:Fe.push.apply(Fe,e),bi=null),e}function kl(e){bi===null?bi=[e]:bi.push(e)}var Cf=F(null),Si=null,hr=null;function Hr(e,r,l){lt(Cf,r._currentValue),r._currentValue=l}function mr(e){e._currentValue=Cf.current,at(Cf)}function wf(e,r,l){for(;e!==null;){var s=e.alternate;if((e.childLanes&r)!==r?(e.childLanes|=r,s!==null&&(s.childLanes|=r)):s!==null&&(s.childLanes&r)!==r&&(s.childLanes|=r),e===l)break;e=e.return}}function Mf(e,r,l,s){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var g=d.dependencies;if(g!==null){var A=d.child;g=g.firstContext;t:for(;g!==null;){var w=g;g=d;for(var U=0;U<r.length;U++)if(w.context===r[U]){g.lanes|=l,w=g.alternate,w!==null&&(w.lanes|=l),wf(g.return,l,e),s||(A=null);break t}g=w.next}}else if(d.tag===18){if(A=d.return,A===null)throw Error(a(341));A.lanes|=l,g=A.alternate,g!==null&&(g.lanes|=l),wf(A,l,e),A=null}else A=d.child;if(A!==null)A.return=d;else for(A=d;A!==null;){if(A===e){A=null;break}if(d=A.sibling,d!==null){d.return=A.return,A=d;break}A=A.return}d=A}}function Dl(e,r,l,s){e=null;for(var d=r,g=!1;d!==null;){if(!g){if((d.flags&524288)!==0)g=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var A=d.alternate;if(A===null)throw Error(a(387));if(A=A.memoizedProps,A!==null){var w=d.type;nn(d.pendingProps.value,A.value)||(e!==null?e.push(w):e=[w])}}else if(d===gt.current){if(A=d.alternate,A===null)throw Error(a(387));A.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(oo):e=[oo])}d=d.return}e!==null&&Mf(r,e,l,s),r.flags|=262144}function Ts(e){for(e=e.firstContext;e!==null;){if(!nn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ai(e){Si=e,hr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $e(e){return wg(Si,e)}function Cs(e,r){return Si===null&&Ai(e),wg(e,r)}function wg(e,r){var l=r._currentValue;if(r={context:r,memoizedValue:l,next:null},hr===null){if(e===null)throw Error(a(308));hr=r,e.dependencies={lanes:0,firstContext:r},e.flags|=524288}else hr=hr.next=r;return l}var OA=typeof AbortController<"u"?AbortController:function(){var e=[],r=this.signal={aborted:!1,addEventListener:function(l,s){e.push(s)}};this.abort=function(){r.aborted=!0,e.forEach(function(l){return l()})}},RA=t.unstable_scheduleCallback,_A=t.unstable_NormalPriority,ve={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ef(){return{controller:new OA,data:new Map,refCount:0}}function zl(e){e.refCount--,e.refCount===0&&RA(_A,function(){e.controller.abort()})}var Nl=null,Of=0,da=0,ha=null;function kA(e,r){if(Nl===null){var l=Nl=[];Of=0,da=_d(),ha={status:"pending",value:void 0,then:function(s){l.push(s)}}}return Of++,r.then(Mg,Mg),r}function Mg(){if(--Of===0&&Nl!==null){ha!==null&&(ha.status="fulfilled");var e=Nl;Nl=null,da=0,ha=null;for(var r=0;r<e.length;r++)(0,e[r])()}}function DA(e,r){var l=[],s={status:"pending",value:null,reason:null,then:function(d){l.push(d)}};return e.then(function(){s.status="fulfilled",s.value=r;for(var d=0;d<l.length;d++)(0,l[d])(r)},function(d){for(s.status="rejected",s.reason=d,d=0;d<l.length;d++)(0,l[d])(void 0)}),s}var Eg=j.S;j.S=function(e,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&kA(e,r),Eg!==null&&Eg(e,r)};var Ti=F(null);function Rf(){var e=Ti.current;return e!==null?e:Ft.pooledCache}function ws(e,r){r===null?lt(Ti,Ti.current):lt(Ti,r.pool)}function Og(){var e=Rf();return e===null?null:{parent:ve._currentValue,pool:e}}var Ul=Error(a(460)),Rg=Error(a(474)),Ms=Error(a(542)),_f={then:function(){}};function _g(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Es(){}function kg(e,r,l){switch(l=e[l],l===void 0?e.push(r):l!==r&&(r.then(Es,Es),r=l),r.status){case"fulfilled":return r.value;case"rejected":throw e=r.reason,zg(e),e;default:if(typeof r.status=="string")r.then(Es,Es);else{if(e=Ft,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=r,e.status="pending",e.then(function(s){if(r.status==="pending"){var d=r;d.status="fulfilled",d.value=s}},function(s){if(r.status==="pending"){var d=r;d.status="rejected",d.reason=s}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw e=r.reason,zg(e),e}throw jl=r,Ul}}var jl=null;function Dg(){if(jl===null)throw Error(a(459));var e=jl;return jl=null,e}function zg(e){if(e===Ul||e===Ms)throw Error(a(483))}var Yr=!1;function kf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Df(e,r){e=e.updateQueue,r.updateQueue===e&&(r.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Gr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function qr(e,r,l){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Lt&2)!==0){var d=s.pending;return d===null?r.next=r:(r.next=d.next,d.next=r),s.pending=r,r=bs(e),bg(e,null,l),r}return vs(e,s,r,l),bs(e)}function $l(e,r,l){if(r=r.updateQueue,r!==null&&(r=r.shared,(l&4194048)!==0)){var s=r.lanes;s&=e.pendingLanes,l|=s,r.lanes=l,M0(e,l)}}function zf(e,r){var l=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,l===s)){var d=null,g=null;if(l=l.firstBaseUpdate,l!==null){do{var A={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};g===null?d=g=A:g=g.next=A,l=l.next}while(l!==null);g===null?d=g=r:g=g.next=r}else d=g=r;l={baseState:s.baseState,firstBaseUpdate:d,lastBaseUpdate:g,shared:s.shared,callbacks:s.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=r:e.next=r,l.lastBaseUpdate=r}var Nf=!1;function Bl(){if(Nf){var e=ha;if(e!==null)throw e}}function Ll(e,r,l,s){Nf=!1;var d=e.updateQueue;Yr=!1;var g=d.firstBaseUpdate,A=d.lastBaseUpdate,w=d.shared.pending;if(w!==null){d.shared.pending=null;var U=w,V=U.next;U.next=null,A===null?g=V:A.next=V,A=U;var J=e.alternate;J!==null&&(J=J.updateQueue,w=J.lastBaseUpdate,w!==A&&(w===null?J.firstBaseUpdate=V:w.next=V,J.lastBaseUpdate=U))}if(g!==null){var et=d.baseState;A=0,J=V=U=null,w=g;do{var Z=w.lane&-536870913,Q=Z!==w.lane;if(Q?(kt&Z)===Z:(s&Z)===Z){Z!==0&&Z===da&&(Nf=!0),J!==null&&(J=J.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});t:{var Tt=e,St=w;Z=r;var It=l;switch(St.tag){case 1:if(Tt=St.payload,typeof Tt=="function"){et=Tt.call(It,et,Z);break t}et=Tt;break t;case 3:Tt.flags=Tt.flags&-65537|128;case 0:if(Tt=St.payload,Z=typeof Tt=="function"?Tt.call(It,et,Z):Tt,Z==null)break t;et=p({},et,Z);break t;case 2:Yr=!0}}Z=w.callback,Z!==null&&(e.flags|=64,Q&&(e.flags|=8192),Q=d.callbacks,Q===null?d.callbacks=[Z]:Q.push(Z))}else Q={lane:Z,tag:w.tag,payload:w.payload,callback:w.callback,next:null},J===null?(V=J=Q,U=et):J=J.next=Q,A|=Z;if(w=w.next,w===null){if(w=d.shared.pending,w===null)break;Q=w,w=Q.next,Q.next=null,d.lastBaseUpdate=Q,d.shared.pending=null}}while(!0);J===null&&(U=et),d.baseState=U,d.firstBaseUpdate=V,d.lastBaseUpdate=J,g===null&&(d.shared.lanes=0),Fr|=A,e.lanes=A,e.memoizedState=et}}function Ng(e,r){if(typeof e!="function")throw Error(a(191,e));e.call(r)}function Ug(e,r){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Ng(l[e],r)}var ma=F(null),Os=F(0);function jg(e,r){e=Sr,lt(Os,e),lt(ma,r),Sr=e|r.baseLanes}function Uf(){lt(Os,Sr),lt(ma,ma.current)}function jf(){Sr=Os.current,at(ma),at(Os)}var Ir=0,Mt=null,Gt=null,ge=null,Rs=!1,ga=!1,Ci=!1,_s=0,Hl=0,pa=null,zA=0;function ce(){throw Error(a(321))}function $f(e,r){if(r===null)return!1;for(var l=0;l<r.length&&l<e.length;l++)if(!nn(e[l],r[l]))return!1;return!0}function Bf(e,r,l,s,d,g){return Ir=g,Mt=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,j.H=e===null||e.memoizedState===null?bp:xp,Ci=!1,g=l(s,d),Ci=!1,ga&&(g=Bg(r,l,s,d)),$g(e),g}function $g(e){j.H=js;var r=Gt!==null&&Gt.next!==null;if(Ir=0,ge=Gt=Mt=null,Rs=!1,Hl=0,pa=null,r)throw Error(a(300));e===null||we||(e=e.dependencies,e!==null&&Ts(e)&&(we=!0))}function Bg(e,r,l,s){Mt=e;var d=0;do{if(ga&&(pa=null),Hl=0,ga=!1,25<=d)throw Error(a(301));if(d+=1,ge=Gt=null,e.updateQueue!=null){var g=e.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}j.H=HA,g=r(l,s)}while(ga);return g}function NA(){var e=j.H,r=e.useState()[0];return r=typeof r.then=="function"?Yl(r):r,e=e.useState()[0],(Gt!==null?Gt.memoizedState:null)!==e&&(Mt.flags|=1024),r}function Lf(){var e=_s!==0;return _s=0,e}function Hf(e,r,l){r.updateQueue=e.updateQueue,r.flags&=-2053,e.lanes&=~l}function Yf(e){if(Rs){for(e=e.memoizedState;e!==null;){var r=e.queue;r!==null&&(r.pending=null),e=e.next}Rs=!1}Ir=0,ge=Gt=Mt=null,ga=!1,Hl=_s=0,pa=null}function Qe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ge===null?Mt.memoizedState=ge=e:ge=ge.next=e,ge}function pe(){if(Gt===null){var e=Mt.alternate;e=e!==null?e.memoizedState:null}else e=Gt.next;var r=ge===null?Mt.memoizedState:ge.next;if(r!==null)ge=r,Gt=e;else{if(e===null)throw Mt.alternate===null?Error(a(467)):Error(a(310));Gt=e,e={memoizedState:Gt.memoizedState,baseState:Gt.baseState,baseQueue:Gt.baseQueue,queue:Gt.queue,next:null},ge===null?Mt.memoizedState=ge=e:ge=ge.next=e}return ge}function Gf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yl(e){var r=Hl;return Hl+=1,pa===null&&(pa=[]),e=kg(pa,e,r),r=Mt,(ge===null?r.memoizedState:ge.next)===null&&(r=r.alternate,j.H=r===null||r.memoizedState===null?bp:xp),e}function ks(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Yl(e);if(e.$$typeof===O)return $e(e)}throw Error(a(438,String(e)))}function qf(e){var r=null,l=Mt.updateQueue;if(l!==null&&(r=l.memoCache),r==null){var s=Mt.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(r={data:s.data.map(function(d){return d.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),l===null&&(l=Gf(),Mt.updateQueue=l),l.memoCache=r,l=r.data[r.index],l===void 0)for(l=r.data[r.index]=Array(e),s=0;s<e;s++)l[s]=T;return r.index++,l}function gr(e,r){return typeof r=="function"?r(e):r}function Ds(e){var r=pe();return If(r,Gt,e)}function If(e,r,l){var s=e.queue;if(s===null)throw Error(a(311));s.lastRenderedReducer=l;var d=e.baseQueue,g=s.pending;if(g!==null){if(d!==null){var A=d.next;d.next=g.next,g.next=A}r.baseQueue=d=g,s.pending=null}if(g=e.baseState,d===null)e.memoizedState=g;else{r=d.next;var w=A=null,U=null,V=r,J=!1;do{var et=V.lane&-536870913;if(et!==V.lane?(kt&et)===et:(Ir&et)===et){var Z=V.revertLane;if(Z===0)U!==null&&(U=U.next={lane:0,revertLane:0,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),et===da&&(J=!0);else if((Ir&Z)===Z){V=V.next,Z===da&&(J=!0);continue}else et={lane:0,revertLane:V.revertLane,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},U===null?(w=U=et,A=g):U=U.next=et,Mt.lanes|=Z,Fr|=Z;et=V.action,Ci&&l(g,et),g=V.hasEagerState?V.eagerState:l(g,et)}else Z={lane:et,revertLane:V.revertLane,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},U===null?(w=U=Z,A=g):U=U.next=Z,Mt.lanes|=et,Fr|=et;V=V.next}while(V!==null&&V!==r);if(U===null?A=g:U.next=w,!nn(g,e.memoizedState)&&(we=!0,J&&(l=ha,l!==null)))throw l;e.memoizedState=g,e.baseState=A,e.baseQueue=U,s.lastRenderedState=g}return d===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function Vf(e){var r=pe(),l=r.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=e;var s=l.dispatch,d=l.pending,g=r.memoizedState;if(d!==null){l.pending=null;var A=d=d.next;do g=e(g,A.action),A=A.next;while(A!==d);nn(g,r.memoizedState)||(we=!0),r.memoizedState=g,r.baseQueue===null&&(r.baseState=g),l.lastRenderedState=g}return[g,s]}function Lg(e,r,l){var s=Mt,d=pe(),g=Nt;if(g){if(l===void 0)throw Error(a(407));l=l()}else l=r();var A=!nn((Gt||d).memoizedState,l);A&&(d.memoizedState=l,we=!0),d=d.queue;var w=Gg.bind(null,s,d,e);if(Gl(2048,8,w,[e]),d.getSnapshot!==r||A||ge!==null&&ge.memoizedState.tag&1){if(s.flags|=2048,ya(9,zs(),Yg.bind(null,s,d,l,r),null),Ft===null)throw Error(a(349));g||(Ir&124)!==0||Hg(s,r,l)}return l}function Hg(e,r,l){e.flags|=16384,e={getSnapshot:r,value:l},r=Mt.updateQueue,r===null?(r=Gf(),Mt.updateQueue=r,r.stores=[e]):(l=r.stores,l===null?r.stores=[e]:l.push(e))}function Yg(e,r,l,s){r.value=l,r.getSnapshot=s,qg(r)&&Ig(e)}function Gg(e,r,l){return l(function(){qg(r)&&Ig(e)})}function qg(e){var r=e.getSnapshot;e=e.value;try{var l=r();return!nn(e,l)}catch{return!0}}function Ig(e){var r=sa(e,2);r!==null&&un(r,e,2)}function Xf(e){var r=Qe();if(typeof e=="function"){var l=e;if(e=l(),Ci){Re(!0);try{l()}finally{Re(!1)}}}return r.memoizedState=r.baseState=e,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:e},r}function Vg(e,r,l,s){return e.baseState=l,If(e,Gt,typeof s=="function"?s:gr)}function UA(e,r,l,s,d){if(Us(e))throw Error(a(485));if(e=r.action,e!==null){var g={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(A){g.listeners.push(A)}};j.T!==null?l(!0):g.isTransition=!1,s(g),l=r.pending,l===null?(g.next=r.pending=g,Xg(r,g)):(g.next=l.next,r.pending=l.next=g)}}function Xg(e,r){var l=r.action,s=r.payload,d=e.state;if(r.isTransition){var g=j.T,A={};j.T=A;try{var w=l(d,s),U=j.S;U!==null&&U(A,w),Pg(e,r,w)}catch(V){Pf(e,r,V)}finally{j.T=g}}else try{g=l(d,s),Pg(e,r,g)}catch(V){Pf(e,r,V)}}function Pg(e,r,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(s){Zg(e,r,s)},function(s){return Pf(e,r,s)}):Zg(e,r,l)}function Zg(e,r,l){r.status="fulfilled",r.value=l,Qg(r),e.state=l,r=e.pending,r!==null&&(l=r.next,l===r?e.pending=null:(l=l.next,r.next=l,Xg(e,l)))}function Pf(e,r,l){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do r.status="rejected",r.reason=l,Qg(r),r=r.next;while(r!==s)}e.action=null}function Qg(e){e=e.listeners;for(var r=0;r<e.length;r++)(0,e[r])()}function Kg(e,r){return r}function Fg(e,r){if(Nt){var l=Ft.formState;if(l!==null){t:{var s=Mt;if(Nt){if(ae){e:{for(var d=ae,g=Vn;d.nodeType!==8;){if(!g){d=null;break e}if(d=Bn(d.nextSibling),d===null){d=null;break e}}g=d.data,d=g==="F!"||g==="F"?d:null}if(d){ae=Bn(d.nextSibling),s=d.data==="F!";break t}}xi(s)}s=!1}s&&(r=l[0])}}return l=Qe(),l.memoizedState=l.baseState=r,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kg,lastRenderedState:r},l.queue=s,l=pp.bind(null,Mt,s),s.dispatch=l,s=Xf(!1),g=Wf.bind(null,Mt,!1,s.queue),s=Qe(),d={state:r,dispatch:null,action:e,pending:null},s.queue=d,l=UA.bind(null,Mt,d,g,l),d.dispatch=l,s.memoizedState=e,[r,l,!1]}function Wg(e){var r=pe();return Jg(r,Gt,e)}function Jg(e,r,l){if(r=If(e,r,Kg)[0],e=Ds(gr)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var s=Yl(r)}catch(A){throw A===Ul?Ms:A}else s=r;r=pe();var d=r.queue,g=d.dispatch;return l!==r.memoizedState&&(Mt.flags|=2048,ya(9,zs(),jA.bind(null,d,l),null)),[s,g,e]}function jA(e,r){e.action=r}function tp(e){var r=pe(),l=Gt;if(l!==null)return Jg(r,l,e);pe(),r=r.memoizedState,l=pe();var s=l.queue.dispatch;return l.memoizedState=e,[r,s,!1]}function ya(e,r,l,s){return e={tag:e,create:l,deps:s,inst:r,next:null},r=Mt.updateQueue,r===null&&(r=Gf(),Mt.updateQueue=r),l=r.lastEffect,l===null?r.lastEffect=e.next=e:(s=l.next,l.next=e,e.next=s,r.lastEffect=e),e}function zs(){return{destroy:void 0,resource:void 0}}function ep(){return pe().memoizedState}function Ns(e,r,l,s){var d=Qe();s=s===void 0?null:s,Mt.flags|=e,d.memoizedState=ya(1|r,zs(),l,s)}function Gl(e,r,l,s){var d=pe();s=s===void 0?null:s;var g=d.memoizedState.inst;Gt!==null&&s!==null&&$f(s,Gt.memoizedState.deps)?d.memoizedState=ya(r,g,l,s):(Mt.flags|=e,d.memoizedState=ya(1|r,g,l,s))}function np(e,r){Ns(8390656,8,e,r)}function rp(e,r){Gl(2048,8,e,r)}function ip(e,r){return Gl(4,2,e,r)}function ap(e,r){return Gl(4,4,e,r)}function lp(e,r){if(typeof r=="function"){e=e();var l=r(e);return function(){typeof l=="function"?l():r(null)}}if(r!=null)return e=e(),r.current=e,function(){r.current=null}}function op(e,r,l){l=l!=null?l.concat([e]):null,Gl(4,4,lp.bind(null,r,e),l)}function Zf(){}function sp(e,r){var l=pe();r=r===void 0?null:r;var s=l.memoizedState;return r!==null&&$f(r,s[1])?s[0]:(l.memoizedState=[e,r],e)}function up(e,r){var l=pe();r=r===void 0?null:r;var s=l.memoizedState;if(r!==null&&$f(r,s[1]))return s[0];if(s=e(),Ci){Re(!0);try{e()}finally{Re(!1)}}return l.memoizedState=[s,r],s}function Qf(e,r,l){return l===void 0||(Ir&1073741824)!==0?e.memoizedState=r:(e.memoizedState=l,e=dy(),Mt.lanes|=e,Fr|=e,l)}function cp(e,r,l,s){return nn(l,r)?l:ma.current!==null?(e=Qf(e,l,s),nn(e,r)||(we=!0),e):(Ir&42)===0?(we=!0,e.memoizedState=l):(e=dy(),Mt.lanes|=e,Fr|=e,r)}function fp(e,r,l,s,d){var g=P.p;P.p=g!==0&&8>g?g:8;var A=j.T,w={};j.T=w,Wf(e,!1,r,l);try{var U=d(),V=j.S;if(V!==null&&V(w,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var J=DA(U,s);ql(e,r,J,sn(e))}else ql(e,r,s,sn(e))}catch(et){ql(e,r,{then:function(){},status:"rejected",reason:et},sn())}finally{P.p=g,j.T=A}}function $A(){}function Kf(e,r,l,s){if(e.tag!==5)throw Error(a(476));var d=dp(e).queue;fp(e,d,r,nt,l===null?$A:function(){return hp(e),l(s)})}function dp(e){var r=e.memoizedState;if(r!==null)return r;r={memoizedState:nt,baseState:nt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:nt},next:null};var l={};return r.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:l},next:null},e.memoizedState=r,e=e.alternate,e!==null&&(e.memoizedState=r),r}function hp(e){var r=dp(e).next.queue;ql(e,r,{},sn())}function Ff(){return $e(oo)}function mp(){return pe().memoizedState}function gp(){return pe().memoizedState}function BA(e){for(var r=e.return;r!==null;){switch(r.tag){case 24:case 3:var l=sn();e=Gr(l);var s=qr(r,e,l);s!==null&&(un(s,r,l),$l(s,r,l)),r={cache:Ef()},e.payload=r;return}r=r.return}}function LA(e,r,l){var s=sn();l={lane:s,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},Us(e)?yp(r,l):(l=yf(e,r,l,s),l!==null&&(un(l,e,s),vp(l,r,s)))}function pp(e,r,l){var s=sn();ql(e,r,l,s)}function ql(e,r,l,s){var d={lane:s,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Us(e))yp(r,d);else{var g=e.alternate;if(e.lanes===0&&(g===null||g.lanes===0)&&(g=r.lastRenderedReducer,g!==null))try{var A=r.lastRenderedState,w=g(A,l);if(d.hasEagerState=!0,d.eagerState=w,nn(w,A))return vs(e,r,d,0),Ft===null&&ys(),!1}catch{}finally{}if(l=yf(e,r,d,s),l!==null)return un(l,e,s),vp(l,r,s),!0}return!1}function Wf(e,r,l,s){if(s={lane:2,revertLane:_d(),action:s,hasEagerState:!1,eagerState:null,next:null},Us(e)){if(r)throw Error(a(479))}else r=yf(e,l,s,2),r!==null&&un(r,e,2)}function Us(e){var r=e.alternate;return e===Mt||r!==null&&r===Mt}function yp(e,r){ga=Rs=!0;var l=e.pending;l===null?r.next=r:(r.next=l.next,l.next=r),e.pending=r}function vp(e,r,l){if((l&4194048)!==0){var s=r.lanes;s&=e.pendingLanes,l|=s,r.lanes=l,M0(e,l)}}var js={readContext:$e,use:ks,useCallback:ce,useContext:ce,useEffect:ce,useImperativeHandle:ce,useLayoutEffect:ce,useInsertionEffect:ce,useMemo:ce,useReducer:ce,useRef:ce,useState:ce,useDebugValue:ce,useDeferredValue:ce,useTransition:ce,useSyncExternalStore:ce,useId:ce,useHostTransitionStatus:ce,useFormState:ce,useActionState:ce,useOptimistic:ce,useMemoCache:ce,useCacheRefresh:ce},bp={readContext:$e,use:ks,useCallback:function(e,r){return Qe().memoizedState=[e,r===void 0?null:r],e},useContext:$e,useEffect:np,useImperativeHandle:function(e,r,l){l=l!=null?l.concat([e]):null,Ns(4194308,4,lp.bind(null,r,e),l)},useLayoutEffect:function(e,r){return Ns(4194308,4,e,r)},useInsertionEffect:function(e,r){Ns(4,2,e,r)},useMemo:function(e,r){var l=Qe();r=r===void 0?null:r;var s=e();if(Ci){Re(!0);try{e()}finally{Re(!1)}}return l.memoizedState=[s,r],s},useReducer:function(e,r,l){var s=Qe();if(l!==void 0){var d=l(r);if(Ci){Re(!0);try{l(r)}finally{Re(!1)}}}else d=r;return s.memoizedState=s.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},s.queue=e,e=e.dispatch=LA.bind(null,Mt,e),[s.memoizedState,e]},useRef:function(e){var r=Qe();return e={current:e},r.memoizedState=e},useState:function(e){e=Xf(e);var r=e.queue,l=pp.bind(null,Mt,r);return r.dispatch=l,[e.memoizedState,l]},useDebugValue:Zf,useDeferredValue:function(e,r){var l=Qe();return Qf(l,e,r)},useTransition:function(){var e=Xf(!1);return e=fp.bind(null,Mt,e.queue,!0,!1),Qe().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,r,l){var s=Mt,d=Qe();if(Nt){if(l===void 0)throw Error(a(407));l=l()}else{if(l=r(),Ft===null)throw Error(a(349));(kt&124)!==0||Hg(s,r,l)}d.memoizedState=l;var g={value:l,getSnapshot:r};return d.queue=g,np(Gg.bind(null,s,g,e),[e]),s.flags|=2048,ya(9,zs(),Yg.bind(null,s,g,l,r),null),l},useId:function(){var e=Qe(),r=Ft.identifierPrefix;if(Nt){var l=dr,s=fr;l=(s&~(1<<32-Te(s)-1)).toString(32)+l,r="«"+r+"R"+l,l=_s++,0<l&&(r+="H"+l.toString(32)),r+="»"}else l=zA++,r="«"+r+"r"+l.toString(32)+"»";return e.memoizedState=r},useHostTransitionStatus:Ff,useFormState:Fg,useActionState:Fg,useOptimistic:function(e){var r=Qe();r.memoizedState=r.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=l,r=Wf.bind(null,Mt,!0,l),l.dispatch=r,[e,r]},useMemoCache:qf,useCacheRefresh:function(){return Qe().memoizedState=BA.bind(null,Mt)}},xp={readContext:$e,use:ks,useCallback:sp,useContext:$e,useEffect:rp,useImperativeHandle:op,useInsertionEffect:ip,useLayoutEffect:ap,useMemo:up,useReducer:Ds,useRef:ep,useState:function(){return Ds(gr)},useDebugValue:Zf,useDeferredValue:function(e,r){var l=pe();return cp(l,Gt.memoizedState,e,r)},useTransition:function(){var e=Ds(gr)[0],r=pe().memoizedState;return[typeof e=="boolean"?e:Yl(e),r]},useSyncExternalStore:Lg,useId:mp,useHostTransitionStatus:Ff,useFormState:Wg,useActionState:Wg,useOptimistic:function(e,r){var l=pe();return Vg(l,Gt,e,r)},useMemoCache:qf,useCacheRefresh:gp},HA={readContext:$e,use:ks,useCallback:sp,useContext:$e,useEffect:rp,useImperativeHandle:op,useInsertionEffect:ip,useLayoutEffect:ap,useMemo:up,useReducer:Vf,useRef:ep,useState:function(){return Vf(gr)},useDebugValue:Zf,useDeferredValue:function(e,r){var l=pe();return Gt===null?Qf(l,e,r):cp(l,Gt.memoizedState,e,r)},useTransition:function(){var e=Vf(gr)[0],r=pe().memoizedState;return[typeof e=="boolean"?e:Yl(e),r]},useSyncExternalStore:Lg,useId:mp,useHostTransitionStatus:Ff,useFormState:tp,useActionState:tp,useOptimistic:function(e,r){var l=pe();return Gt!==null?Vg(l,Gt,e,r):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:qf,useCacheRefresh:gp},va=null,Il=0;function $s(e){var r=Il;return Il+=1,va===null&&(va=[]),kg(va,e,r)}function Vl(e,r){r=r.props.ref,e.ref=r!==void 0?r:null}function Bs(e,r){throw r.$$typeof===y?Error(a(525)):(e=Object.prototype.toString.call(r),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e)))}function Sp(e){var r=e._init;return r(e._payload)}function Ap(e){function r(G,B){if(e){var q=G.deletions;q===null?(G.deletions=[B],G.flags|=16):q.push(B)}}function l(G,B){if(!e)return null;for(;B!==null;)r(G,B),B=B.sibling;return null}function s(G){for(var B=new Map;G!==null;)G.key!==null?B.set(G.key,G):B.set(G.index,G),G=G.sibling;return B}function d(G,B){return G=cr(G,B),G.index=0,G.sibling=null,G}function g(G,B,q){return G.index=q,e?(q=G.alternate,q!==null?(q=q.index,q<B?(G.flags|=67108866,B):q):(G.flags|=67108866,B)):(G.flags|=1048576,B)}function A(G){return e&&G.alternate===null&&(G.flags|=67108866),G}function w(G,B,q,tt){return B===null||B.tag!==6?(B=bf(q,G.mode,tt),B.return=G,B):(B=d(B,q),B.return=G,B)}function U(G,B,q,tt){var ht=q.type;return ht===x?J(G,B,q.props.children,tt,q.key):B!==null&&(B.elementType===ht||typeof ht=="object"&&ht!==null&&ht.$$typeof===L&&Sp(ht)===B.type)?(B=d(B,q.props),Vl(B,q),B.return=G,B):(B=xs(q.type,q.key,q.props,null,G.mode,tt),Vl(B,q),B.return=G,B)}function V(G,B,q,tt){return B===null||B.tag!==4||B.stateNode.containerInfo!==q.containerInfo||B.stateNode.implementation!==q.implementation?(B=xf(q,G.mode,tt),B.return=G,B):(B=d(B,q.children||[]),B.return=G,B)}function J(G,B,q,tt,ht){return B===null||B.tag!==7?(B=pi(q,G.mode,tt,ht),B.return=G,B):(B=d(B,q),B.return=G,B)}function et(G,B,q){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return B=bf(""+B,G.mode,q),B.return=G,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case v:return q=xs(B.type,B.key,B.props,null,G.mode,q),Vl(q,B),q.return=G,q;case b:return B=xf(B,G.mode,q),B.return=G,B;case L:var tt=B._init;return B=tt(B._payload),et(G,B,q)}if(ot(B)||X(B))return B=pi(B,G.mode,q,null),B.return=G,B;if(typeof B.then=="function")return et(G,$s(B),q);if(B.$$typeof===O)return et(G,Cs(G,B),q);Bs(G,B)}return null}function Z(G,B,q,tt){var ht=B!==null?B.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return ht!==null?null:w(G,B,""+q,tt);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case v:return q.key===ht?U(G,B,q,tt):null;case b:return q.key===ht?V(G,B,q,tt):null;case L:return ht=q._init,q=ht(q._payload),Z(G,B,q,tt)}if(ot(q)||X(q))return ht!==null?null:J(G,B,q,tt,null);if(typeof q.then=="function")return Z(G,B,$s(q),tt);if(q.$$typeof===O)return Z(G,B,Cs(G,q),tt);Bs(G,q)}return null}function Q(G,B,q,tt,ht){if(typeof tt=="string"&&tt!==""||typeof tt=="number"||typeof tt=="bigint")return G=G.get(q)||null,w(B,G,""+tt,ht);if(typeof tt=="object"&&tt!==null){switch(tt.$$typeof){case v:return G=G.get(tt.key===null?q:tt.key)||null,U(B,G,tt,ht);case b:return G=G.get(tt.key===null?q:tt.key)||null,V(B,G,tt,ht);case L:var Et=tt._init;return tt=Et(tt._payload),Q(G,B,q,tt,ht)}if(ot(tt)||X(tt))return G=G.get(q)||null,J(B,G,tt,ht,null);if(typeof tt.then=="function")return Q(G,B,q,$s(tt),ht);if(tt.$$typeof===O)return Q(G,B,q,Cs(B,tt),ht);Bs(B,tt)}return null}function Tt(G,B,q,tt){for(var ht=null,Et=null,pt=B,At=B=0,Ee=null;pt!==null&&At<q.length;At++){pt.index>At?(Ee=pt,pt=null):Ee=pt.sibling;var Dt=Z(G,pt,q[At],tt);if(Dt===null){pt===null&&(pt=Ee);break}e&&pt&&Dt.alternate===null&&r(G,pt),B=g(Dt,B,At),Et===null?ht=Dt:Et.sibling=Dt,Et=Dt,pt=Ee}if(At===q.length)return l(G,pt),Nt&&vi(G,At),ht;if(pt===null){for(;At<q.length;At++)pt=et(G,q[At],tt),pt!==null&&(B=g(pt,B,At),Et===null?ht=pt:Et.sibling=pt,Et=pt);return Nt&&vi(G,At),ht}for(pt=s(pt);At<q.length;At++)Ee=Q(pt,G,At,q[At],tt),Ee!==null&&(e&&Ee.alternate!==null&&pt.delete(Ee.key===null?At:Ee.key),B=g(Ee,B,At),Et===null?ht=Ee:Et.sibling=Ee,Et=Ee);return e&&pt.forEach(function(li){return r(G,li)}),Nt&&vi(G,At),ht}function St(G,B,q,tt){if(q==null)throw Error(a(151));for(var ht=null,Et=null,pt=B,At=B=0,Ee=null,Dt=q.next();pt!==null&&!Dt.done;At++,Dt=q.next()){pt.index>At?(Ee=pt,pt=null):Ee=pt.sibling;var li=Z(G,pt,Dt.value,tt);if(li===null){pt===null&&(pt=Ee);break}e&&pt&&li.alternate===null&&r(G,pt),B=g(li,B,At),Et===null?ht=li:Et.sibling=li,Et=li,pt=Ee}if(Dt.done)return l(G,pt),Nt&&vi(G,At),ht;if(pt===null){for(;!Dt.done;At++,Dt=q.next())Dt=et(G,Dt.value,tt),Dt!==null&&(B=g(Dt,B,At),Et===null?ht=Dt:Et.sibling=Dt,Et=Dt);return Nt&&vi(G,At),ht}for(pt=s(pt);!Dt.done;At++,Dt=q.next())Dt=Q(pt,G,At,Dt.value,tt),Dt!==null&&(e&&Dt.alternate!==null&&pt.delete(Dt.key===null?At:Dt.key),B=g(Dt,B,At),Et===null?ht=Dt:Et.sibling=Dt,Et=Dt);return e&&pt.forEach(function(YT){return r(G,YT)}),Nt&&vi(G,At),ht}function It(G,B,q,tt){if(typeof q=="object"&&q!==null&&q.type===x&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case v:t:{for(var ht=q.key;B!==null;){if(B.key===ht){if(ht=q.type,ht===x){if(B.tag===7){l(G,B.sibling),tt=d(B,q.props.children),tt.return=G,G=tt;break t}}else if(B.elementType===ht||typeof ht=="object"&&ht!==null&&ht.$$typeof===L&&Sp(ht)===B.type){l(G,B.sibling),tt=d(B,q.props),Vl(tt,q),tt.return=G,G=tt;break t}l(G,B);break}else r(G,B);B=B.sibling}q.type===x?(tt=pi(q.props.children,G.mode,tt,q.key),tt.return=G,G=tt):(tt=xs(q.type,q.key,q.props,null,G.mode,tt),Vl(tt,q),tt.return=G,G=tt)}return A(G);case b:t:{for(ht=q.key;B!==null;){if(B.key===ht)if(B.tag===4&&B.stateNode.containerInfo===q.containerInfo&&B.stateNode.implementation===q.implementation){l(G,B.sibling),tt=d(B,q.children||[]),tt.return=G,G=tt;break t}else{l(G,B);break}else r(G,B);B=B.sibling}tt=xf(q,G.mode,tt),tt.return=G,G=tt}return A(G);case L:return ht=q._init,q=ht(q._payload),It(G,B,q,tt)}if(ot(q))return Tt(G,B,q,tt);if(X(q)){if(ht=X(q),typeof ht!="function")throw Error(a(150));return q=ht.call(q),St(G,B,q,tt)}if(typeof q.then=="function")return It(G,B,$s(q),tt);if(q.$$typeof===O)return It(G,B,Cs(G,q),tt);Bs(G,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,B!==null&&B.tag===6?(l(G,B.sibling),tt=d(B,q),tt.return=G,G=tt):(l(G,B),tt=bf(q,G.mode,tt),tt.return=G,G=tt),A(G)):l(G,B)}return function(G,B,q,tt){try{Il=0;var ht=It(G,B,q,tt);return va=null,ht}catch(pt){if(pt===Ul||pt===Ms)throw pt;var Et=rn(29,pt,null,G.mode);return Et.lanes=tt,Et.return=G,Et}finally{}}}var ba=Ap(!0),Tp=Ap(!1),An=F(null),Xn=null;function Vr(e){var r=e.alternate;lt(be,be.current&1),lt(An,e),Xn===null&&(r===null||ma.current!==null||r.memoizedState!==null)&&(Xn=e)}function Cp(e){if(e.tag===22){if(lt(be,be.current),lt(An,e),Xn===null){var r=e.alternate;r!==null&&r.memoizedState!==null&&(Xn=e)}}else Xr()}function Xr(){lt(be,be.current),lt(An,An.current)}function pr(e){at(An),Xn===e&&(Xn=null),at(be)}var be=F(0);function Ls(e){for(var r=e;r!==null;){if(r.tag===13){var l=r.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||Gd(l)))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}function Jf(e,r,l,s){r=e.memoizedState,l=l(s,r),l=l==null?r:p({},r,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var td={enqueueSetState:function(e,r,l){e=e._reactInternals;var s=sn(),d=Gr(s);d.payload=r,l!=null&&(d.callback=l),r=qr(e,d,s),r!==null&&(un(r,e,s),$l(r,e,s))},enqueueReplaceState:function(e,r,l){e=e._reactInternals;var s=sn(),d=Gr(s);d.tag=1,d.payload=r,l!=null&&(d.callback=l),r=qr(e,d,s),r!==null&&(un(r,e,s),$l(r,e,s))},enqueueForceUpdate:function(e,r){e=e._reactInternals;var l=sn(),s=Gr(l);s.tag=2,r!=null&&(s.callback=r),r=qr(e,s,l),r!==null&&(un(r,e,l),$l(r,e,l))}};function wp(e,r,l,s,d,g,A){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,g,A):r.prototype&&r.prototype.isPureReactComponent?!El(l,s)||!El(d,g):!0}function Mp(e,r,l,s){e=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(l,s),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(l,s),r.state!==e&&td.enqueueReplaceState(r,r.state,null)}function wi(e,r){var l=r;if("ref"in r){l={};for(var s in r)s!=="ref"&&(l[s]=r[s])}if(e=e.defaultProps){l===r&&(l=p({},l));for(var d in e)l[d]===void 0&&(l[d]=e[d])}return l}var Hs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Ep(e){Hs(e)}function Op(e){console.error(e)}function Rp(e){Hs(e)}function Ys(e,r){try{var l=e.onUncaughtError;l(r.value,{componentStack:r.stack})}catch(s){setTimeout(function(){throw s})}}function _p(e,r,l){try{var s=e.onCaughtError;s(l.value,{componentStack:l.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function ed(e,r,l){return l=Gr(l),l.tag=3,l.payload={element:null},l.callback=function(){Ys(e,r)},l}function kp(e){return e=Gr(e),e.tag=3,e}function Dp(e,r,l,s){var d=l.type.getDerivedStateFromError;if(typeof d=="function"){var g=s.value;e.payload=function(){return d(g)},e.callback=function(){_p(r,l,s)}}var A=l.stateNode;A!==null&&typeof A.componentDidCatch=="function"&&(e.callback=function(){_p(r,l,s),typeof d!="function"&&(Wr===null?Wr=new Set([this]):Wr.add(this));var w=s.stack;this.componentDidCatch(s.value,{componentStack:w!==null?w:""})})}function YA(e,r,l,s,d){if(l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(r=l.alternate,r!==null&&Dl(r,l,d,!0),l=An.current,l!==null){switch(l.tag){case 13:return Xn===null?wd():l.alternate===null&&le===0&&(le=3),l.flags&=-257,l.flags|=65536,l.lanes=d,s===_f?l.flags|=16384:(r=l.updateQueue,r===null?l.updateQueue=new Set([s]):r.add(s),Ed(e,s,d)),!1;case 22:return l.flags|=65536,s===_f?l.flags|=16384:(r=l.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([s])},l.updateQueue=r):(l=r.retryQueue,l===null?r.retryQueue=new Set([s]):l.add(s)),Ed(e,s,d)),!1}throw Error(a(435,l.tag))}return Ed(e,s,d),wd(),!1}if(Nt)return r=An.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=d,s!==Tf&&(e=Error(a(422),{cause:s}),kl(vn(e,l)))):(s!==Tf&&(r=Error(a(423),{cause:s}),kl(vn(r,l))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,s=vn(s,l),d=ed(e.stateNode,s,d),zf(e,d),le!==4&&(le=2)),!1;var g=Error(a(520),{cause:s});if(g=vn(g,l),Wl===null?Wl=[g]:Wl.push(g),le!==4&&(le=2),r===null)return!0;s=vn(s,l),l=r;do{switch(l.tag){case 3:return l.flags|=65536,e=d&-d,l.lanes|=e,e=ed(l.stateNode,s,e),zf(l,e),!1;case 1:if(r=l.type,g=l.stateNode,(l.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Wr===null||!Wr.has(g))))return l.flags|=65536,d&=-d,l.lanes|=d,d=kp(d),Dp(d,e,l,s),zf(l,d),!1}l=l.return}while(l!==null);return!1}var zp=Error(a(461)),we=!1;function _e(e,r,l,s){r.child=e===null?Tp(r,null,l,s):ba(r,e.child,l,s)}function Np(e,r,l,s,d){l=l.render;var g=r.ref;if("ref"in s){var A={};for(var w in s)w!=="ref"&&(A[w]=s[w])}else A=s;return Ai(r),s=Bf(e,r,l,A,g,d),w=Lf(),e!==null&&!we?(Hf(e,r,d),yr(e,r,d)):(Nt&&w&&Sf(r),r.flags|=1,_e(e,r,s,d),r.child)}function Up(e,r,l,s,d){if(e===null){var g=l.type;return typeof g=="function"&&!vf(g)&&g.defaultProps===void 0&&l.compare===null?(r.tag=15,r.type=g,jp(e,r,g,s,d)):(e=xs(l.type,null,s,r,r.mode,d),e.ref=r.ref,e.return=r,r.child=e)}if(g=e.child,!ud(e,d)){var A=g.memoizedProps;if(l=l.compare,l=l!==null?l:El,l(A,s)&&e.ref===r.ref)return yr(e,r,d)}return r.flags|=1,e=cr(g,s),e.ref=r.ref,e.return=r,r.child=e}function jp(e,r,l,s,d){if(e!==null){var g=e.memoizedProps;if(El(g,s)&&e.ref===r.ref)if(we=!1,r.pendingProps=s=g,ud(e,d))(e.flags&131072)!==0&&(we=!0);else return r.lanes=e.lanes,yr(e,r,d)}return nd(e,r,l,s,d)}function $p(e,r,l){var s=r.pendingProps,d=s.children,g=e!==null?e.memoizedState:null;if(s.mode==="hidden"){if((r.flags&128)!==0){if(s=g!==null?g.baseLanes|l:l,e!==null){for(d=r.child=e.child,g=0;d!==null;)g=g|d.lanes|d.childLanes,d=d.sibling;r.childLanes=g&~s}else r.childLanes=0,r.child=null;return Bp(e,r,s,l)}if((l&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},e!==null&&ws(r,g!==null?g.cachePool:null),g!==null?jg(r,g):Uf(),Cp(r);else return r.lanes=r.childLanes=536870912,Bp(e,r,g!==null?g.baseLanes|l:l,l)}else g!==null?(ws(r,g.cachePool),jg(r,g),Xr(),r.memoizedState=null):(e!==null&&ws(r,null),Uf(),Xr());return _e(e,r,d,l),r.child}function Bp(e,r,l,s){var d=Rf();return d=d===null?null:{parent:ve._currentValue,pool:d},r.memoizedState={baseLanes:l,cachePool:d},e!==null&&ws(r,null),Uf(),Cp(r),e!==null&&Dl(e,r,s,!0),null}function Gs(e,r){var l=r.ref;if(l===null)e!==null&&e.ref!==null&&(r.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(a(284));(e===null||e.ref!==l)&&(r.flags|=4194816)}}function nd(e,r,l,s,d){return Ai(r),l=Bf(e,r,l,s,void 0,d),s=Lf(),e!==null&&!we?(Hf(e,r,d),yr(e,r,d)):(Nt&&s&&Sf(r),r.flags|=1,_e(e,r,l,d),r.child)}function Lp(e,r,l,s,d,g){return Ai(r),r.updateQueue=null,l=Bg(r,s,l,d),$g(e),s=Lf(),e!==null&&!we?(Hf(e,r,g),yr(e,r,g)):(Nt&&s&&Sf(r),r.flags|=1,_e(e,r,l,g),r.child)}function Hp(e,r,l,s,d){if(Ai(r),r.stateNode===null){var g=ua,A=l.contextType;typeof A=="object"&&A!==null&&(g=$e(A)),g=new l(s,g),r.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=td,r.stateNode=g,g._reactInternals=r,g=r.stateNode,g.props=s,g.state=r.memoizedState,g.refs={},kf(r),A=l.contextType,g.context=typeof A=="object"&&A!==null?$e(A):ua,g.state=r.memoizedState,A=l.getDerivedStateFromProps,typeof A=="function"&&(Jf(r,l,A,s),g.state=r.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(A=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),A!==g.state&&td.enqueueReplaceState(g,g.state,null),Ll(r,s,g,d),Bl(),g.state=r.memoizedState),typeof g.componentDidMount=="function"&&(r.flags|=4194308),s=!0}else if(e===null){g=r.stateNode;var w=r.memoizedProps,U=wi(l,w);g.props=U;var V=g.context,J=l.contextType;A=ua,typeof J=="object"&&J!==null&&(A=$e(J));var et=l.getDerivedStateFromProps;J=typeof et=="function"||typeof g.getSnapshotBeforeUpdate=="function",w=r.pendingProps!==w,J||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(w||V!==A)&&Mp(r,g,s,A),Yr=!1;var Z=r.memoizedState;g.state=Z,Ll(r,s,g,d),Bl(),V=r.memoizedState,w||Z!==V||Yr?(typeof et=="function"&&(Jf(r,l,et,s),V=r.memoizedState),(U=Yr||wp(r,l,U,s,Z,V,A))?(J||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(r.flags|=4194308)):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=s,r.memoizedState=V),g.props=s,g.state=V,g.context=A,s=U):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),s=!1)}else{g=r.stateNode,Df(e,r),A=r.memoizedProps,J=wi(l,A),g.props=J,et=r.pendingProps,Z=g.context,V=l.contextType,U=ua,typeof V=="object"&&V!==null&&(U=$e(V)),w=l.getDerivedStateFromProps,(V=typeof w=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(A!==et||Z!==U)&&Mp(r,g,s,U),Yr=!1,Z=r.memoizedState,g.state=Z,Ll(r,s,g,d),Bl();var Q=r.memoizedState;A!==et||Z!==Q||Yr||e!==null&&e.dependencies!==null&&Ts(e.dependencies)?(typeof w=="function"&&(Jf(r,l,w,s),Q=r.memoizedState),(J=Yr||wp(r,l,J,s,Z,Q,U)||e!==null&&e.dependencies!==null&&Ts(e.dependencies))?(V||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(s,Q,U),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(s,Q,U)),typeof g.componentDidUpdate=="function"&&(r.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof g.componentDidUpdate!="function"||A===e.memoizedProps&&Z===e.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||A===e.memoizedProps&&Z===e.memoizedState||(r.flags|=1024),r.memoizedProps=s,r.memoizedState=Q),g.props=s,g.state=Q,g.context=U,s=J):(typeof g.componentDidUpdate!="function"||A===e.memoizedProps&&Z===e.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||A===e.memoizedProps&&Z===e.memoizedState||(r.flags|=1024),s=!1)}return g=s,Gs(e,r),s=(r.flags&128)!==0,g||s?(g=r.stateNode,l=s&&typeof l.getDerivedStateFromError!="function"?null:g.render(),r.flags|=1,e!==null&&s?(r.child=ba(r,e.child,null,d),r.child=ba(r,null,l,d)):_e(e,r,l,d),r.memoizedState=g.state,e=r.child):e=yr(e,r,d),e}function Yp(e,r,l,s){return _l(),r.flags|=256,_e(e,r,l,s),r.child}var rd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function id(e){return{baseLanes:e,cachePool:Og()}}function ad(e,r,l){return e=e!==null?e.childLanes&~l:0,r&&(e|=Tn),e}function Gp(e,r,l){var s=r.pendingProps,d=!1,g=(r.flags&128)!==0,A;if((A=g)||(A=e!==null&&e.memoizedState===null?!1:(be.current&2)!==0),A&&(d=!0,r.flags&=-129),A=(r.flags&32)!==0,r.flags&=-33,e===null){if(Nt){if(d?Vr(r):Xr(),Nt){var w=ae,U;if(U=w){t:{for(U=w,w=Vn;U.nodeType!==8;){if(!w){w=null;break t}if(U=Bn(U.nextSibling),U===null){w=null;break t}}w=U}w!==null?(r.memoizedState={dehydrated:w,treeContext:yi!==null?{id:fr,overflow:dr}:null,retryLane:536870912,hydrationErrors:null},U=rn(18,null,null,0),U.stateNode=w,U.return=r,r.child=U,Ie=r,ae=null,U=!0):U=!1}U||xi(r)}if(w=r.memoizedState,w!==null&&(w=w.dehydrated,w!==null))return Gd(w)?r.lanes=32:r.lanes=536870912,null;pr(r)}return w=s.children,s=s.fallback,d?(Xr(),d=r.mode,w=qs({mode:"hidden",children:w},d),s=pi(s,d,l,null),w.return=r,s.return=r,w.sibling=s,r.child=w,d=r.child,d.memoizedState=id(l),d.childLanes=ad(e,A,l),r.memoizedState=rd,s):(Vr(r),ld(r,w))}if(U=e.memoizedState,U!==null&&(w=U.dehydrated,w!==null)){if(g)r.flags&256?(Vr(r),r.flags&=-257,r=od(e,r,l)):r.memoizedState!==null?(Xr(),r.child=e.child,r.flags|=128,r=null):(Xr(),d=s.fallback,w=r.mode,s=qs({mode:"visible",children:s.children},w),d=pi(d,w,l,null),d.flags|=2,s.return=r,d.return=r,s.sibling=d,r.child=s,ba(r,e.child,null,l),s=r.child,s.memoizedState=id(l),s.childLanes=ad(e,A,l),r.memoizedState=rd,r=d);else if(Vr(r),Gd(w)){if(A=w.nextSibling&&w.nextSibling.dataset,A)var V=A.dgst;A=V,s=Error(a(419)),s.stack="",s.digest=A,kl({value:s,source:null,stack:null}),r=od(e,r,l)}else if(we||Dl(e,r,l,!1),A=(l&e.childLanes)!==0,we||A){if(A=Ft,A!==null&&(s=l&-l,s=(s&42)!==0?1:Gc(s),s=(s&(A.suspendedLanes|l))!==0?0:s,s!==0&&s!==U.retryLane))throw U.retryLane=s,sa(e,s),un(A,e,s),zp;w.data==="$?"||wd(),r=od(e,r,l)}else w.data==="$?"?(r.flags|=192,r.child=e.child,r=null):(e=U.treeContext,ae=Bn(w.nextSibling),Ie=r,Nt=!0,bi=null,Vn=!1,e!==null&&(xn[Sn++]=fr,xn[Sn++]=dr,xn[Sn++]=yi,fr=e.id,dr=e.overflow,yi=r),r=ld(r,s.children),r.flags|=4096);return r}return d?(Xr(),d=s.fallback,w=r.mode,U=e.child,V=U.sibling,s=cr(U,{mode:"hidden",children:s.children}),s.subtreeFlags=U.subtreeFlags&65011712,V!==null?d=cr(V,d):(d=pi(d,w,l,null),d.flags|=2),d.return=r,s.return=r,s.sibling=d,r.child=s,s=d,d=r.child,w=e.child.memoizedState,w===null?w=id(l):(U=w.cachePool,U!==null?(V=ve._currentValue,U=U.parent!==V?{parent:V,pool:V}:U):U=Og(),w={baseLanes:w.baseLanes|l,cachePool:U}),d.memoizedState=w,d.childLanes=ad(e,A,l),r.memoizedState=rd,s):(Vr(r),l=e.child,e=l.sibling,l=cr(l,{mode:"visible",children:s.children}),l.return=r,l.sibling=null,e!==null&&(A=r.deletions,A===null?(r.deletions=[e],r.flags|=16):A.push(e)),r.child=l,r.memoizedState=null,l)}function ld(e,r){return r=qs({mode:"visible",children:r},e.mode),r.return=e,e.child=r}function qs(e,r){return e=rn(22,e,null,r),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function od(e,r,l){return ba(r,e.child,null,l),e=ld(r,r.pendingProps.children),e.flags|=2,r.memoizedState=null,e}function qp(e,r,l){e.lanes|=r;var s=e.alternate;s!==null&&(s.lanes|=r),wf(e.return,r,l)}function sd(e,r,l,s,d){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:s,tail:l,tailMode:d}:(g.isBackwards=r,g.rendering=null,g.renderingStartTime=0,g.last=s,g.tail=l,g.tailMode=d)}function Ip(e,r,l){var s=r.pendingProps,d=s.revealOrder,g=s.tail;if(_e(e,r,s.children,l),s=be.current,(s&2)!==0)s=s&1|2,r.flags|=128;else{if(e!==null&&(e.flags&128)!==0)t:for(e=r.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qp(e,l,r);else if(e.tag===19)qp(e,l,r);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===r)break t;for(;e.sibling===null;){if(e.return===null||e.return===r)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}switch(lt(be,s),d){case"forwards":for(l=r.child,d=null;l!==null;)e=l.alternate,e!==null&&Ls(e)===null&&(d=l),l=l.sibling;l=d,l===null?(d=r.child,r.child=null):(d=l.sibling,l.sibling=null),sd(r,!1,d,l,g);break;case"backwards":for(l=null,d=r.child,r.child=null;d!==null;){if(e=d.alternate,e!==null&&Ls(e)===null){r.child=d;break}e=d.sibling,d.sibling=l,l=d,d=e}sd(r,!0,l,null,g);break;case"together":sd(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function yr(e,r,l){if(e!==null&&(r.dependencies=e.dependencies),Fr|=r.lanes,(l&r.childLanes)===0)if(e!==null){if(Dl(e,r,l,!1),(l&r.childLanes)===0)return null}else return null;if(e!==null&&r.child!==e.child)throw Error(a(153));if(r.child!==null){for(e=r.child,l=cr(e,e.pendingProps),r.child=l,l.return=r;e.sibling!==null;)e=e.sibling,l=l.sibling=cr(e,e.pendingProps),l.return=r;l.sibling=null}return r.child}function ud(e,r){return(e.lanes&r)!==0?!0:(e=e.dependencies,!!(e!==null&&Ts(e)))}function GA(e,r,l){switch(r.tag){case 3:mt(r,r.stateNode.containerInfo),Hr(r,ve,e.memoizedState.cache),_l();break;case 27:case 5:xt(r);break;case 4:mt(r,r.stateNode.containerInfo);break;case 10:Hr(r,r.type,r.memoizedProps.value);break;case 13:var s=r.memoizedState;if(s!==null)return s.dehydrated!==null?(Vr(r),r.flags|=128,null):(l&r.child.childLanes)!==0?Gp(e,r,l):(Vr(r),e=yr(e,r,l),e!==null?e.sibling:null);Vr(r);break;case 19:var d=(e.flags&128)!==0;if(s=(l&r.childLanes)!==0,s||(Dl(e,r,l,!1),s=(l&r.childLanes)!==0),d){if(s)return Ip(e,r,l);r.flags|=128}if(d=r.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),lt(be,be.current),s)break;return null;case 22:case 23:return r.lanes=0,$p(e,r,l);case 24:Hr(r,ve,e.memoizedState.cache)}return yr(e,r,l)}function Vp(e,r,l){if(e!==null)if(e.memoizedProps!==r.pendingProps)we=!0;else{if(!ud(e,l)&&(r.flags&128)===0)return we=!1,GA(e,r,l);we=(e.flags&131072)!==0}else we=!1,Nt&&(r.flags&1048576)!==0&&Sg(r,As,r.index);switch(r.lanes=0,r.tag){case 16:t:{e=r.pendingProps;var s=r.elementType,d=s._init;if(s=d(s._payload),r.type=s,typeof s=="function")vf(s)?(e=wi(s,e),r.tag=1,r=Hp(null,r,s,e,l)):(r.tag=0,r=nd(null,r,s,e,l));else{if(s!=null){if(d=s.$$typeof,d===k){r.tag=11,r=Np(null,r,s,e,l);break t}else if(d===D){r.tag=14,r=Up(null,r,s,e,l);break t}}throw r=it(s)||s,Error(a(306,r,""))}}return r;case 0:return nd(e,r,r.type,r.pendingProps,l);case 1:return s=r.type,d=wi(s,r.pendingProps),Hp(e,r,s,d,l);case 3:t:{if(mt(r,r.stateNode.containerInfo),e===null)throw Error(a(387));s=r.pendingProps;var g=r.memoizedState;d=g.element,Df(e,r),Ll(r,s,null,l);var A=r.memoizedState;if(s=A.cache,Hr(r,ve,s),s!==g.cache&&Mf(r,[ve],l,!0),Bl(),s=A.element,g.isDehydrated)if(g={element:s,isDehydrated:!1,cache:A.cache},r.updateQueue.baseState=g,r.memoizedState=g,r.flags&256){r=Yp(e,r,s,l);break t}else if(s!==d){d=vn(Error(a(424)),r),kl(d),r=Yp(e,r,s,l);break t}else{switch(e=r.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ae=Bn(e.firstChild),Ie=r,Nt=!0,bi=null,Vn=!0,l=Tp(r,null,s,l),r.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(_l(),s===d){r=yr(e,r,l);break t}_e(e,r,s,l)}r=r.child}return r;case 26:return Gs(e,r),e===null?(l=Qy(r.type,null,r.pendingProps,null))?r.memoizedState=l:Nt||(l=r.type,e=r.pendingProps,s=ru(dt.current).createElement(l),s[je]=r,s[Pe]=e,De(s,l,e),Ce(s),r.stateNode=s):r.memoizedState=Qy(r.type,e.memoizedProps,r.pendingProps,e.memoizedState),null;case 27:return xt(r),e===null&&Nt&&(s=r.stateNode=Xy(r.type,r.pendingProps,dt.current),Ie=r,Vn=!0,d=ae,ei(r.type)?(qd=d,ae=Bn(s.firstChild)):ae=d),_e(e,r,r.pendingProps.children,l),Gs(e,r),e===null&&(r.flags|=4194304),r.child;case 5:return e===null&&Nt&&((d=s=ae)&&(s=pT(s,r.type,r.pendingProps,Vn),s!==null?(r.stateNode=s,Ie=r,ae=Bn(s.firstChild),Vn=!1,d=!0):d=!1),d||xi(r)),xt(r),d=r.type,g=r.pendingProps,A=e!==null?e.memoizedProps:null,s=g.children,Ld(d,g)?s=null:A!==null&&Ld(d,A)&&(r.flags|=32),r.memoizedState!==null&&(d=Bf(e,r,NA,null,null,l),oo._currentValue=d),Gs(e,r),_e(e,r,s,l),r.child;case 6:return e===null&&Nt&&((e=l=ae)&&(l=yT(l,r.pendingProps,Vn),l!==null?(r.stateNode=l,Ie=r,ae=null,e=!0):e=!1),e||xi(r)),null;case 13:return Gp(e,r,l);case 4:return mt(r,r.stateNode.containerInfo),s=r.pendingProps,e===null?r.child=ba(r,null,s,l):_e(e,r,s,l),r.child;case 11:return Np(e,r,r.type,r.pendingProps,l);case 7:return _e(e,r,r.pendingProps,l),r.child;case 8:return _e(e,r,r.pendingProps.children,l),r.child;case 12:return _e(e,r,r.pendingProps.children,l),r.child;case 10:return s=r.pendingProps,Hr(r,r.type,s.value),_e(e,r,s.children,l),r.child;case 9:return d=r.type._context,s=r.pendingProps.children,Ai(r),d=$e(d),s=s(d),r.flags|=1,_e(e,r,s,l),r.child;case 14:return Up(e,r,r.type,r.pendingProps,l);case 15:return jp(e,r,r.type,r.pendingProps,l);case 19:return Ip(e,r,l);case 31:return s=r.pendingProps,l=r.mode,s={mode:s.mode,children:s.children},e===null?(l=qs(s,l),l.ref=r.ref,r.child=l,l.return=r,r=l):(l=cr(e.child,s),l.ref=r.ref,r.child=l,l.return=r,r=l),r;case 22:return $p(e,r,l);case 24:return Ai(r),s=$e(ve),e===null?(d=Rf(),d===null&&(d=Ft,g=Ef(),d.pooledCache=g,g.refCount++,g!==null&&(d.pooledCacheLanes|=l),d=g),r.memoizedState={parent:s,cache:d},kf(r),Hr(r,ve,d)):((e.lanes&l)!==0&&(Df(e,r),Ll(r,null,null,l),Bl()),d=e.memoizedState,g=r.memoizedState,d.parent!==s?(d={parent:s,cache:s},r.memoizedState=d,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=d),Hr(r,ve,s)):(s=g.cache,Hr(r,ve,s),s!==d.cache&&Mf(r,[ve],l,!0))),_e(e,r,r.pendingProps.children,l),r.child;case 29:throw r.pendingProps}throw Error(a(156,r.tag))}function vr(e){e.flags|=4}function Xp(e,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!t1(r)){if(r=An.current,r!==null&&((kt&4194048)===kt?Xn!==null:(kt&62914560)!==kt&&(kt&536870912)===0||r!==Xn))throw jl=_f,Rg;e.flags|=8192}}function Is(e,r){r!==null&&(e.flags|=4),e.flags&16384&&(r=e.tag!==22?C0():536870912,e.lanes|=r,Ta|=r)}function Xl(e,r){if(!Nt)switch(e.tailMode){case"hidden":r=e.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var s=null;l!==null;)l.alternate!==null&&(s=l),l=l.sibling;s===null?r||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function ie(e){var r=e.alternate!==null&&e.alternate.child===e.child,l=0,s=0;if(r)for(var d=e.child;d!==null;)l|=d.lanes|d.childLanes,s|=d.subtreeFlags&65011712,s|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)l|=d.lanes|d.childLanes,s|=d.subtreeFlags,s|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=s,e.childLanes=l,r}function qA(e,r,l){var s=r.pendingProps;switch(Af(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ie(r),null;case 1:return ie(r),null;case 3:return l=r.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),r.memoizedState.cache!==s&&(r.flags|=2048),mr(ve),ut(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Rl(r)?vr(r):e===null||e.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Cg())),ie(r),null;case 26:return l=r.memoizedState,e===null?(vr(r),l!==null?(ie(r),Xp(r,l)):(ie(r),r.flags&=-16777217)):l?l!==e.memoizedState?(vr(r),ie(r),Xp(r,l)):(ie(r),r.flags&=-16777217):(e.memoizedProps!==s&&vr(r),ie(r),r.flags&=-16777217),null;case 27:bt(r),l=dt.current;var d=r.type;if(e!==null&&r.stateNode!=null)e.memoizedProps!==s&&vr(r);else{if(!s){if(r.stateNode===null)throw Error(a(166));return ie(r),null}e=ct.current,Rl(r)?Ag(r):(e=Xy(d,s,l),r.stateNode=e,vr(r))}return ie(r),null;case 5:if(bt(r),l=r.type,e!==null&&r.stateNode!=null)e.memoizedProps!==s&&vr(r);else{if(!s){if(r.stateNode===null)throw Error(a(166));return ie(r),null}if(e=ct.current,Rl(r))Ag(r);else{switch(d=ru(dt.current),e){case 1:e=d.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:e=d.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":e=d.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":e=d.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":e=d.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof s.is=="string"?d.createElement("select",{is:s.is}):d.createElement("select"),s.multiple?e.multiple=!0:s.size&&(e.size=s.size);break;default:e=typeof s.is=="string"?d.createElement(l,{is:s.is}):d.createElement(l)}}e[je]=r,e[Pe]=s;t:for(d=r.child;d!==null;){if(d.tag===5||d.tag===6)e.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===r)break t;for(;d.sibling===null;){if(d.return===null||d.return===r)break t;d=d.return}d.sibling.return=d.return,d=d.sibling}r.stateNode=e;t:switch(De(e,l,s),l){case"button":case"input":case"select":case"textarea":e=!!s.autoFocus;break t;case"img":e=!0;break t;default:e=!1}e&&vr(r)}}return ie(r),r.flags&=-16777217,null;case 6:if(e&&r.stateNode!=null)e.memoizedProps!==s&&vr(r);else{if(typeof s!="string"&&r.stateNode===null)throw Error(a(166));if(e=dt.current,Rl(r)){if(e=r.stateNode,l=r.memoizedProps,s=null,d=Ie,d!==null)switch(d.tag){case 27:case 5:s=d.memoizedProps}e[je]=r,e=!!(e.nodeValue===l||s!==null&&s.suppressHydrationWarning===!0||Ly(e.nodeValue,l)),e||xi(r)}else e=ru(e).createTextNode(s),e[je]=r,r.stateNode=e}return ie(r),null;case 13:if(s=r.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=Rl(r),s!==null&&s.dehydrated!==null){if(e===null){if(!d)throw Error(a(318));if(d=r.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(a(317));d[je]=r}else _l(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;ie(r),d=!1}else d=Cg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return r.flags&256?(pr(r),r):(pr(r),null)}if(pr(r),(r.flags&128)!==0)return r.lanes=l,r;if(l=s!==null,e=e!==null&&e.memoizedState!==null,l){s=r.child,d=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(d=s.alternate.memoizedState.cachePool.pool);var g=null;s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(g=s.memoizedState.cachePool.pool),g!==d&&(s.flags|=2048)}return l!==e&&l&&(r.child.flags|=8192),Is(r,r.updateQueue),ie(r),null;case 4:return ut(),e===null&&Nd(r.stateNode.containerInfo),ie(r),null;case 10:return mr(r.type),ie(r),null;case 19:if(at(be),d=r.memoizedState,d===null)return ie(r),null;if(s=(r.flags&128)!==0,g=d.rendering,g===null)if(s)Xl(d,!1);else{if(le!==0||e!==null&&(e.flags&128)!==0)for(e=r.child;e!==null;){if(g=Ls(e),g!==null){for(r.flags|=128,Xl(d,!1),e=g.updateQueue,r.updateQueue=e,Is(r,e),r.subtreeFlags=0,e=l,l=r.child;l!==null;)xg(l,e),l=l.sibling;return lt(be,be.current&1|2),r.child}e=e.sibling}d.tail!==null&&Yt()>Ps&&(r.flags|=128,s=!0,Xl(d,!1),r.lanes=4194304)}else{if(!s)if(e=Ls(g),e!==null){if(r.flags|=128,s=!0,e=e.updateQueue,r.updateQueue=e,Is(r,e),Xl(d,!0),d.tail===null&&d.tailMode==="hidden"&&!g.alternate&&!Nt)return ie(r),null}else 2*Yt()-d.renderingStartTime>Ps&&l!==536870912&&(r.flags|=128,s=!0,Xl(d,!1),r.lanes=4194304);d.isBackwards?(g.sibling=r.child,r.child=g):(e=d.last,e!==null?e.sibling=g:r.child=g,d.last=g)}return d.tail!==null?(r=d.tail,d.rendering=r,d.tail=r.sibling,d.renderingStartTime=Yt(),r.sibling=null,e=be.current,lt(be,s?e&1|2:e&1),r):(ie(r),null);case 22:case 23:return pr(r),jf(),s=r.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(r.flags|=8192):s&&(r.flags|=8192),s?(l&536870912)!==0&&(r.flags&128)===0&&(ie(r),r.subtreeFlags&6&&(r.flags|=8192)):ie(r),l=r.updateQueue,l!==null&&Is(r,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),s=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),s!==l&&(r.flags|=2048),e!==null&&at(Ti),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),r.memoizedState.cache!==l&&(r.flags|=2048),mr(ve),ie(r),null;case 25:return null;case 30:return null}throw Error(a(156,r.tag))}function IA(e,r){switch(Af(r),r.tag){case 1:return e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 3:return mr(ve),ut(),e=r.flags,(e&65536)!==0&&(e&128)===0?(r.flags=e&-65537|128,r):null;case 26:case 27:case 5:return bt(r),null;case 13:if(pr(r),e=r.memoizedState,e!==null&&e.dehydrated!==null){if(r.alternate===null)throw Error(a(340));_l()}return e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 19:return at(be),null;case 4:return ut(),null;case 10:return mr(r.type),null;case 22:case 23:return pr(r),jf(),e!==null&&at(Ti),e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 24:return mr(ve),null;case 25:return null;default:return null}}function Pp(e,r){switch(Af(r),r.tag){case 3:mr(ve),ut();break;case 26:case 27:case 5:bt(r);break;case 4:ut();break;case 13:pr(r);break;case 19:at(be);break;case 10:mr(r.type);break;case 22:case 23:pr(r),jf(),e!==null&&at(Ti);break;case 24:mr(ve)}}function Pl(e,r){try{var l=r.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var d=s.next;l=d;do{if((l.tag&e)===e){s=void 0;var g=l.create,A=l.inst;s=g(),A.destroy=s}l=l.next}while(l!==d)}}catch(w){Xt(r,r.return,w)}}function Pr(e,r,l){try{var s=r.updateQueue,d=s!==null?s.lastEffect:null;if(d!==null){var g=d.next;s=g;do{if((s.tag&e)===e){var A=s.inst,w=A.destroy;if(w!==void 0){A.destroy=void 0,d=r;var U=l,V=w;try{V()}catch(J){Xt(d,U,J)}}}s=s.next}while(s!==g)}}catch(J){Xt(r,r.return,J)}}function Zp(e){var r=e.updateQueue;if(r!==null){var l=e.stateNode;try{Ug(r,l)}catch(s){Xt(e,e.return,s)}}}function Qp(e,r,l){l.props=wi(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(s){Xt(e,r,s)}}function Zl(e,r){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof l=="function"?e.refCleanup=l(s):l.current=s}}catch(d){Xt(e,r,d)}}function Pn(e,r){var l=e.ref,s=e.refCleanup;if(l!==null)if(typeof s=="function")try{s()}catch(d){Xt(e,r,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(d){Xt(e,r,d)}else l.current=null}function Kp(e){var r=e.type,l=e.memoizedProps,s=e.stateNode;try{t:switch(r){case"button":case"input":case"select":case"textarea":l.autoFocus&&s.focus();break t;case"img":l.src?s.src=l.src:l.srcSet&&(s.srcset=l.srcSet)}}catch(d){Xt(e,e.return,d)}}function cd(e,r,l){try{var s=e.stateNode;fT(s,e.type,l,r),s[Pe]=r}catch(d){Xt(e,e.return,d)}}function Fp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ei(e.type)||e.tag===4}function fd(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||Fp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ei(e.type)||e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function dd(e,r,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,r?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,r):(r=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,r.appendChild(e),l=l._reactRootContainer,l!=null||r.onclick!==null||(r.onclick=nu));else if(s!==4&&(s===27&&ei(e.type)&&(l=e.stateNode,r=null),e=e.child,e!==null))for(dd(e,r,l),e=e.sibling;e!==null;)dd(e,r,l),e=e.sibling}function Vs(e,r,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,r?l.insertBefore(e,r):l.appendChild(e);else if(s!==4&&(s===27&&ei(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Vs(e,r,l),e=e.sibling;e!==null;)Vs(e,r,l),e=e.sibling}function Wp(e){var r=e.stateNode,l=e.memoizedProps;try{for(var s=e.type,d=r.attributes;d.length;)r.removeAttributeNode(d[0]);De(r,s,l),r[je]=e,r[Pe]=l}catch(g){Xt(e,e.return,g)}}var br=!1,fe=!1,hd=!1,Jp=typeof WeakSet=="function"?WeakSet:Set,Me=null;function VA(e,r){if(e=e.containerInfo,$d=uu,e=cg(e),ff(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else t:{l=(l=e.ownerDocument)&&l.defaultView||window;var s=l.getSelection&&l.getSelection();if(s&&s.rangeCount!==0){l=s.anchorNode;var d=s.anchorOffset,g=s.focusNode;s=s.focusOffset;try{l.nodeType,g.nodeType}catch{l=null;break t}var A=0,w=-1,U=-1,V=0,J=0,et=e,Z=null;e:for(;;){for(var Q;et!==l||d!==0&&et.nodeType!==3||(w=A+d),et!==g||s!==0&&et.nodeType!==3||(U=A+s),et.nodeType===3&&(A+=et.nodeValue.length),(Q=et.firstChild)!==null;)Z=et,et=Q;for(;;){if(et===e)break e;if(Z===l&&++V===d&&(w=A),Z===g&&++J===s&&(U=A),(Q=et.nextSibling)!==null)break;et=Z,Z=et.parentNode}et=Q}l=w===-1||U===-1?null:{start:w,end:U}}else l=null}l=l||{start:0,end:0}}else l=null;for(Bd={focusedElem:e,selectionRange:l},uu=!1,Me=r;Me!==null;)if(r=Me,e=r.child,(r.subtreeFlags&1024)!==0&&e!==null)e.return=r,Me=e;else for(;Me!==null;){switch(r=Me,g=r.alternate,e=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&g!==null){e=void 0,l=r,d=g.memoizedProps,g=g.memoizedState,s=l.stateNode;try{var Tt=wi(l.type,d,l.elementType===l.type);e=s.getSnapshotBeforeUpdate(Tt,g),s.__reactInternalSnapshotBeforeUpdate=e}catch(St){Xt(l,l.return,St)}}break;case 3:if((e&1024)!==0){if(e=r.stateNode.containerInfo,l=e.nodeType,l===9)Yd(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Yd(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(a(163))}if(e=r.sibling,e!==null){e.return=r.return,Me=e;break}Me=r.return}}function ty(e,r,l){var s=l.flags;switch(l.tag){case 0:case 11:case 15:Zr(e,l),s&4&&Pl(5,l);break;case 1:if(Zr(e,l),s&4)if(e=l.stateNode,r===null)try{e.componentDidMount()}catch(A){Xt(l,l.return,A)}else{var d=wi(l.type,r.memoizedProps);r=r.memoizedState;try{e.componentDidUpdate(d,r,e.__reactInternalSnapshotBeforeUpdate)}catch(A){Xt(l,l.return,A)}}s&64&&Zp(l),s&512&&Zl(l,l.return);break;case 3:if(Zr(e,l),s&64&&(e=l.updateQueue,e!==null)){if(r=null,l.child!==null)switch(l.child.tag){case 27:case 5:r=l.child.stateNode;break;case 1:r=l.child.stateNode}try{Ug(e,r)}catch(A){Xt(l,l.return,A)}}break;case 27:r===null&&s&4&&Wp(l);case 26:case 5:Zr(e,l),r===null&&s&4&&Kp(l),s&512&&Zl(l,l.return);break;case 12:Zr(e,l);break;case 13:Zr(e,l),s&4&&ry(e,l),s&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=tT.bind(null,l),vT(e,l))));break;case 22:if(s=l.memoizedState!==null||br,!s){r=r!==null&&r.memoizedState!==null||fe,d=br;var g=fe;br=s,(fe=r)&&!g?Qr(e,l,(l.subtreeFlags&8772)!==0):Zr(e,l),br=d,fe=g}break;case 30:break;default:Zr(e,l)}}function ey(e){var r=e.alternate;r!==null&&(e.alternate=null,ey(r)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(r=e.stateNode,r!==null&&Vc(r)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ee=null,Ke=!1;function xr(e,r,l){for(l=l.child;l!==null;)ny(e,r,l),l=l.sibling}function ny(e,r,l){if(te&&typeof te.onCommitFiberUnmount=="function")try{te.onCommitFiberUnmount(Ge,l)}catch{}switch(l.tag){case 26:fe||Pn(l,r),xr(e,r,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:fe||Pn(l,r);var s=ee,d=Ke;ei(l.type)&&(ee=l.stateNode,Ke=!1),xr(e,r,l),ro(l.stateNode),ee=s,Ke=d;break;case 5:fe||Pn(l,r);case 6:if(s=ee,d=Ke,ee=null,xr(e,r,l),ee=s,Ke=d,ee!==null)if(Ke)try{(ee.nodeType===9?ee.body:ee.nodeName==="HTML"?ee.ownerDocument.body:ee).removeChild(l.stateNode)}catch(g){Xt(l,r,g)}else try{ee.removeChild(l.stateNode)}catch(g){Xt(l,r,g)}break;case 18:ee!==null&&(Ke?(e=ee,Iy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),fo(e)):Iy(ee,l.stateNode));break;case 4:s=ee,d=Ke,ee=l.stateNode.containerInfo,Ke=!0,xr(e,r,l),ee=s,Ke=d;break;case 0:case 11:case 14:case 15:fe||Pr(2,l,r),fe||Pr(4,l,r),xr(e,r,l);break;case 1:fe||(Pn(l,r),s=l.stateNode,typeof s.componentWillUnmount=="function"&&Qp(l,r,s)),xr(e,r,l);break;case 21:xr(e,r,l);break;case 22:fe=(s=fe)||l.memoizedState!==null,xr(e,r,l),fe=s;break;default:xr(e,r,l)}}function ry(e,r){if(r.memoizedState===null&&(e=r.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{fo(e)}catch(l){Xt(r,r.return,l)}}function XA(e){switch(e.tag){case 13:case 19:var r=e.stateNode;return r===null&&(r=e.stateNode=new Jp),r;case 22:return e=e.stateNode,r=e._retryCache,r===null&&(r=e._retryCache=new Jp),r;default:throw Error(a(435,e.tag))}}function md(e,r){var l=XA(e);r.forEach(function(s){var d=eT.bind(null,e,s);l.has(s)||(l.add(s),s.then(d,d))})}function an(e,r){var l=r.deletions;if(l!==null)for(var s=0;s<l.length;s++){var d=l[s],g=e,A=r,w=A;t:for(;w!==null;){switch(w.tag){case 27:if(ei(w.type)){ee=w.stateNode,Ke=!1;break t}break;case 5:ee=w.stateNode,Ke=!1;break t;case 3:case 4:ee=w.stateNode.containerInfo,Ke=!0;break t}w=w.return}if(ee===null)throw Error(a(160));ny(g,A,d),ee=null,Ke=!1,g=d.alternate,g!==null&&(g.return=null),d.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)iy(r,e),r=r.sibling}var $n=null;function iy(e,r){var l=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:an(r,e),ln(e),s&4&&(Pr(3,e,e.return),Pl(3,e),Pr(5,e,e.return));break;case 1:an(r,e),ln(e),s&512&&(fe||l===null||Pn(l,l.return)),s&64&&br&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?s:l.concat(s))));break;case 26:var d=$n;if(an(r,e),ln(e),s&512&&(fe||l===null||Pn(l,l.return)),s&4){var g=l!==null?l.memoizedState:null;if(s=e.memoizedState,l===null)if(s===null)if(e.stateNode===null){t:{s=e.type,l=e.memoizedProps,d=d.ownerDocument||d;e:switch(s){case"title":g=d.getElementsByTagName("title")[0],(!g||g[vl]||g[je]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=d.createElement(s),d.head.insertBefore(g,d.querySelector("head > title"))),De(g,s,l),g[je]=e,Ce(g),s=g;break t;case"link":var A=Wy("link","href",d).get(s+(l.href||""));if(A){for(var w=0;w<A.length;w++)if(g=A[w],g.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&g.getAttribute("rel")===(l.rel==null?null:l.rel)&&g.getAttribute("title")===(l.title==null?null:l.title)&&g.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){A.splice(w,1);break e}}g=d.createElement(s),De(g,s,l),d.head.appendChild(g);break;case"meta":if(A=Wy("meta","content",d).get(s+(l.content||""))){for(w=0;w<A.length;w++)if(g=A[w],g.getAttribute("content")===(l.content==null?null:""+l.content)&&g.getAttribute("name")===(l.name==null?null:l.name)&&g.getAttribute("property")===(l.property==null?null:l.property)&&g.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&g.getAttribute("charset")===(l.charSet==null?null:l.charSet)){A.splice(w,1);break e}}g=d.createElement(s),De(g,s,l),d.head.appendChild(g);break;default:throw Error(a(468,s))}g[je]=e,Ce(g),s=g}e.stateNode=s}else Jy(d,e.type,e.stateNode);else e.stateNode=Fy(d,s,e.memoizedProps);else g!==s?(g===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):g.count--,s===null?Jy(d,e.type,e.stateNode):Fy(d,s,e.memoizedProps)):s===null&&e.stateNode!==null&&cd(e,e.memoizedProps,l.memoizedProps)}break;case 27:an(r,e),ln(e),s&512&&(fe||l===null||Pn(l,l.return)),l!==null&&s&4&&cd(e,e.memoizedProps,l.memoizedProps);break;case 5:if(an(r,e),ln(e),s&512&&(fe||l===null||Pn(l,l.return)),e.flags&32){d=e.stateNode;try{ea(d,"")}catch(Q){Xt(e,e.return,Q)}}s&4&&e.stateNode!=null&&(d=e.memoizedProps,cd(e,d,l!==null?l.memoizedProps:d)),s&1024&&(hd=!0);break;case 6:if(an(r,e),ln(e),s&4){if(e.stateNode===null)throw Error(a(162));s=e.memoizedProps,l=e.stateNode;try{l.nodeValue=s}catch(Q){Xt(e,e.return,Q)}}break;case 3:if(lu=null,d=$n,$n=iu(r.containerInfo),an(r,e),$n=d,ln(e),s&4&&l!==null&&l.memoizedState.isDehydrated)try{fo(r.containerInfo)}catch(Q){Xt(e,e.return,Q)}hd&&(hd=!1,ay(e));break;case 4:s=$n,$n=iu(e.stateNode.containerInfo),an(r,e),ln(e),$n=s;break;case 12:an(r,e),ln(e);break;case 13:an(r,e),ln(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(xd=Yt()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,md(e,s)));break;case 22:d=e.memoizedState!==null;var U=l!==null&&l.memoizedState!==null,V=br,J=fe;if(br=V||d,fe=J||U,an(r,e),fe=J,br=V,ln(e),s&8192)t:for(r=e.stateNode,r._visibility=d?r._visibility&-2:r._visibility|1,d&&(l===null||U||br||fe||Mi(e)),l=null,r=e;;){if(r.tag===5||r.tag===26){if(l===null){U=l=r;try{if(g=U.stateNode,d)A=g.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none";else{w=U.stateNode;var et=U.memoizedProps.style,Z=et!=null&&et.hasOwnProperty("display")?et.display:null;w.style.display=Z==null||typeof Z=="boolean"?"":(""+Z).trim()}}catch(Q){Xt(U,U.return,Q)}}}else if(r.tag===6){if(l===null){U=r;try{U.stateNode.nodeValue=d?"":U.memoizedProps}catch(Q){Xt(U,U.return,Q)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break t;for(;r.sibling===null;){if(r.return===null||r.return===e)break t;l===r&&(l=null),r=r.return}l===r&&(l=null),r.sibling.return=r.return,r=r.sibling}s&4&&(s=e.updateQueue,s!==null&&(l=s.retryQueue,l!==null&&(s.retryQueue=null,md(e,l))));break;case 19:an(r,e),ln(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,md(e,s)));break;case 30:break;case 21:break;default:an(r,e),ln(e)}}function ln(e){var r=e.flags;if(r&2){try{for(var l,s=e.return;s!==null;){if(Fp(s)){l=s;break}s=s.return}if(l==null)throw Error(a(160));switch(l.tag){case 27:var d=l.stateNode,g=fd(e);Vs(e,g,d);break;case 5:var A=l.stateNode;l.flags&32&&(ea(A,""),l.flags&=-33);var w=fd(e);Vs(e,w,A);break;case 3:case 4:var U=l.stateNode.containerInfo,V=fd(e);dd(e,V,U);break;default:throw Error(a(161))}}catch(J){Xt(e,e.return,J)}e.flags&=-3}r&4096&&(e.flags&=-4097)}function ay(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var r=e;ay(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),e=e.sibling}}function Zr(e,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)ty(e,r.alternate,r),r=r.sibling}function Mi(e){for(e=e.child;e!==null;){var r=e;switch(r.tag){case 0:case 11:case 14:case 15:Pr(4,r,r.return),Mi(r);break;case 1:Pn(r,r.return);var l=r.stateNode;typeof l.componentWillUnmount=="function"&&Qp(r,r.return,l),Mi(r);break;case 27:ro(r.stateNode);case 26:case 5:Pn(r,r.return),Mi(r);break;case 22:r.memoizedState===null&&Mi(r);break;case 30:Mi(r);break;default:Mi(r)}e=e.sibling}}function Qr(e,r,l){for(l=l&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var s=r.alternate,d=e,g=r,A=g.flags;switch(g.tag){case 0:case 11:case 15:Qr(d,g,l),Pl(4,g);break;case 1:if(Qr(d,g,l),s=g,d=s.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(V){Xt(s,s.return,V)}if(s=g,d=s.updateQueue,d!==null){var w=s.stateNode;try{var U=d.shared.hiddenCallbacks;if(U!==null)for(d.shared.hiddenCallbacks=null,d=0;d<U.length;d++)Ng(U[d],w)}catch(V){Xt(s,s.return,V)}}l&&A&64&&Zp(g),Zl(g,g.return);break;case 27:Wp(g);case 26:case 5:Qr(d,g,l),l&&s===null&&A&4&&Kp(g),Zl(g,g.return);break;case 12:Qr(d,g,l);break;case 13:Qr(d,g,l),l&&A&4&&ry(d,g);break;case 22:g.memoizedState===null&&Qr(d,g,l),Zl(g,g.return);break;case 30:break;default:Qr(d,g,l)}r=r.sibling}}function gd(e,r){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(e=r.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&zl(l))}function pd(e,r){e=null,r.alternate!==null&&(e=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==e&&(r.refCount++,e!=null&&zl(e))}function Zn(e,r,l,s){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)ly(e,r,l,s),r=r.sibling}function ly(e,r,l,s){var d=r.flags;switch(r.tag){case 0:case 11:case 15:Zn(e,r,l,s),d&2048&&Pl(9,r);break;case 1:Zn(e,r,l,s);break;case 3:Zn(e,r,l,s),d&2048&&(e=null,r.alternate!==null&&(e=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==e&&(r.refCount++,e!=null&&zl(e)));break;case 12:if(d&2048){Zn(e,r,l,s),e=r.stateNode;try{var g=r.memoizedProps,A=g.id,w=g.onPostCommit;typeof w=="function"&&w(A,r.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(U){Xt(r,r.return,U)}}else Zn(e,r,l,s);break;case 13:Zn(e,r,l,s);break;case 23:break;case 22:g=r.stateNode,A=r.alternate,r.memoizedState!==null?g._visibility&2?Zn(e,r,l,s):Ql(e,r):g._visibility&2?Zn(e,r,l,s):(g._visibility|=2,xa(e,r,l,s,(r.subtreeFlags&10256)!==0)),d&2048&&gd(A,r);break;case 24:Zn(e,r,l,s),d&2048&&pd(r.alternate,r);break;default:Zn(e,r,l,s)}}function xa(e,r,l,s,d){for(d=d&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;){var g=e,A=r,w=l,U=s,V=A.flags;switch(A.tag){case 0:case 11:case 15:xa(g,A,w,U,d),Pl(8,A);break;case 23:break;case 22:var J=A.stateNode;A.memoizedState!==null?J._visibility&2?xa(g,A,w,U,d):Ql(g,A):(J._visibility|=2,xa(g,A,w,U,d)),d&&V&2048&&gd(A.alternate,A);break;case 24:xa(g,A,w,U,d),d&&V&2048&&pd(A.alternate,A);break;default:xa(g,A,w,U,d)}r=r.sibling}}function Ql(e,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var l=e,s=r,d=s.flags;switch(s.tag){case 22:Ql(l,s),d&2048&&gd(s.alternate,s);break;case 24:Ql(l,s),d&2048&&pd(s.alternate,s);break;default:Ql(l,s)}r=r.sibling}}var Kl=8192;function Sa(e){if(e.subtreeFlags&Kl)for(e=e.child;e!==null;)oy(e),e=e.sibling}function oy(e){switch(e.tag){case 26:Sa(e),e.flags&Kl&&e.memoizedState!==null&&kT($n,e.memoizedState,e.memoizedProps);break;case 5:Sa(e);break;case 3:case 4:var r=$n;$n=iu(e.stateNode.containerInfo),Sa(e),$n=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Kl,Kl=16777216,Sa(e),Kl=r):Sa(e));break;default:Sa(e)}}function sy(e){var r=e.alternate;if(r!==null&&(e=r.child,e!==null)){r.child=null;do r=e.sibling,e.sibling=null,e=r;while(e!==null)}}function Fl(e){var r=e.deletions;if((e.flags&16)!==0){if(r!==null)for(var l=0;l<r.length;l++){var s=r[l];Me=s,cy(s,e)}sy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)uy(e),e=e.sibling}function uy(e){switch(e.tag){case 0:case 11:case 15:Fl(e),e.flags&2048&&Pr(9,e,e.return);break;case 3:Fl(e);break;case 12:Fl(e);break;case 22:var r=e.stateNode;e.memoizedState!==null&&r._visibility&2&&(e.return===null||e.return.tag!==13)?(r._visibility&=-3,Xs(e)):Fl(e);break;default:Fl(e)}}function Xs(e){var r=e.deletions;if((e.flags&16)!==0){if(r!==null)for(var l=0;l<r.length;l++){var s=r[l];Me=s,cy(s,e)}sy(e)}for(e=e.child;e!==null;){switch(r=e,r.tag){case 0:case 11:case 15:Pr(8,r,r.return),Xs(r);break;case 22:l=r.stateNode,l._visibility&2&&(l._visibility&=-3,Xs(r));break;default:Xs(r)}e=e.sibling}}function cy(e,r){for(;Me!==null;){var l=Me;switch(l.tag){case 0:case 11:case 15:Pr(8,l,r);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var s=l.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:zl(l.memoizedState.cache)}if(s=l.child,s!==null)s.return=l,Me=s;else t:for(l=e;Me!==null;){s=Me;var d=s.sibling,g=s.return;if(ey(s),s===l){Me=null;break t}if(d!==null){d.return=g,Me=d;break t}Me=g}}}var PA={getCacheForType:function(e){var r=$e(ve),l=r.data.get(e);return l===void 0&&(l=e(),r.data.set(e,l)),l}},ZA=typeof WeakMap=="function"?WeakMap:Map,Lt=0,Ft=null,Ot=null,kt=0,Ht=0,on=null,Kr=!1,Aa=!1,yd=!1,Sr=0,le=0,Fr=0,Ei=0,vd=0,Tn=0,Ta=0,Wl=null,Fe=null,bd=!1,xd=0,Ps=1/0,Zs=null,Wr=null,ke=0,Jr=null,Ca=null,wa=0,Sd=0,Ad=null,fy=null,Jl=0,Td=null;function sn(){if((Lt&2)!==0&&kt!==0)return kt&-kt;if(j.T!==null){var e=da;return e!==0?e:_d()}return E0()}function dy(){Tn===0&&(Tn=(kt&536870912)===0||Nt?T0():536870912);var e=An.current;return e!==null&&(e.flags|=32),Tn}function un(e,r,l){(e===Ft&&(Ht===2||Ht===9)||e.cancelPendingCommit!==null)&&(Ma(e,0),ti(e,kt,Tn,!1)),yl(e,l),((Lt&2)===0||e!==Ft)&&(e===Ft&&((Lt&2)===0&&(Ei|=l),le===4&&ti(e,kt,Tn,!1)),Qn(e))}function hy(e,r,l){if((Lt&6)!==0)throw Error(a(327));var s=!l&&(r&124)===0&&(r&e.expiredLanes)===0||pl(e,r),d=s?FA(e,r):Md(e,r,!0),g=s;do{if(d===0){Aa&&!s&&ti(e,r,0,!1);break}else{if(l=e.current.alternate,g&&!QA(l)){d=Md(e,r,!1),g=!1;continue}if(d===2){if(g=r,e.errorRecoveryDisabledLanes&g)var A=0;else A=e.pendingLanes&-536870913,A=A!==0?A:A&536870912?536870912:0;if(A!==0){r=A;t:{var w=e;d=Wl;var U=w.current.memoizedState.isDehydrated;if(U&&(Ma(w,A).flags|=256),A=Md(w,A,!1),A!==2){if(yd&&!U){w.errorRecoveryDisabledLanes|=g,Ei|=g,d=4;break t}g=Fe,Fe=d,g!==null&&(Fe===null?Fe=g:Fe.push.apply(Fe,g))}d=A}if(g=!1,d!==2)continue}}if(d===1){Ma(e,0),ti(e,r,0,!0);break}t:{switch(s=e,g=d,g){case 0:case 1:throw Error(a(345));case 4:if((r&4194048)!==r)break;case 6:ti(s,r,Tn,!Kr);break t;case 2:Fe=null;break;case 3:case 5:break;default:throw Error(a(329))}if((r&62914560)===r&&(d=xd+300-Yt(),10<d)){if(ti(s,r,Tn,!Kr),as(s,0,!0)!==0)break t;s.timeoutHandle=Gy(my.bind(null,s,l,Fe,Zs,bd,r,Tn,Ei,Ta,Kr,g,2,-0,0),d);break t}my(s,l,Fe,Zs,bd,r,Tn,Ei,Ta,Kr,g,0,-0,0)}}break}while(!0);Qn(e)}function my(e,r,l,s,d,g,A,w,U,V,J,et,Z,Q){if(e.timeoutHandle=-1,et=r.subtreeFlags,(et&8192||(et&16785408)===16785408)&&(lo={stylesheets:null,count:0,unsuspend:_T},oy(r),et=DT(),et!==null)){e.cancelPendingCommit=et(Sy.bind(null,e,r,g,l,s,d,A,w,U,J,1,Z,Q)),ti(e,g,A,!V);return}Sy(e,r,g,l,s,d,A,w,U)}function QA(e){for(var r=e;;){var l=r.tag;if((l===0||l===11||l===15)&&r.flags&16384&&(l=r.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var s=0;s<l.length;s++){var d=l[s],g=d.getSnapshot;d=d.value;try{if(!nn(g(),d))return!1}catch{return!1}}if(l=r.child,r.subtreeFlags&16384&&l!==null)l.return=r,r=l;else{if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function ti(e,r,l,s){r&=~vd,r&=~Ei,e.suspendedLanes|=r,e.pingedLanes&=~r,s&&(e.warmLanes|=r),s=e.expirationTimes;for(var d=r;0<d;){var g=31-Te(d),A=1<<g;s[g]=-1,d&=~A}l!==0&&w0(e,l,r)}function Qs(){return(Lt&6)===0?(to(0),!1):!0}function Cd(){if(Ot!==null){if(Ht===0)var e=Ot.return;else e=Ot,hr=Si=null,Yf(e),va=null,Il=0,e=Ot;for(;e!==null;)Pp(e.alternate,e),e=e.return;Ot=null}}function Ma(e,r){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,hT(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Cd(),Ft=e,Ot=l=cr(e.current,null),kt=r,Ht=0,on=null,Kr=!1,Aa=pl(e,r),yd=!1,Ta=Tn=vd=Ei=Fr=le=0,Fe=Wl=null,bd=!1,(r&8)!==0&&(r|=r&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=r;0<s;){var d=31-Te(s),g=1<<d;r|=e[d],s&=~g}return Sr=r,ys(),l}function gy(e,r){Mt=null,j.H=js,r===Ul||r===Ms?(r=Dg(),Ht=3):r===Rg?(r=Dg(),Ht=4):Ht=r===zp?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,on=r,Ot===null&&(le=1,Ys(e,vn(r,e.current)))}function py(){var e=j.H;return j.H=js,e===null?js:e}function yy(){var e=j.A;return j.A=PA,e}function wd(){le=4,Kr||(kt&4194048)!==kt&&An.current!==null||(Aa=!0),(Fr&134217727)===0&&(Ei&134217727)===0||Ft===null||ti(Ft,kt,Tn,!1)}function Md(e,r,l){var s=Lt;Lt|=2;var d=py(),g=yy();(Ft!==e||kt!==r)&&(Zs=null,Ma(e,r)),r=!1;var A=le;t:do try{if(Ht!==0&&Ot!==null){var w=Ot,U=on;switch(Ht){case 8:Cd(),A=6;break t;case 3:case 2:case 9:case 6:An.current===null&&(r=!0);var V=Ht;if(Ht=0,on=null,Ea(e,w,U,V),l&&Aa){A=0;break t}break;default:V=Ht,Ht=0,on=null,Ea(e,w,U,V)}}KA(),A=le;break}catch(J){gy(e,J)}while(!0);return r&&e.shellSuspendCounter++,hr=Si=null,Lt=s,j.H=d,j.A=g,Ot===null&&(Ft=null,kt=0,ys()),A}function KA(){for(;Ot!==null;)vy(Ot)}function FA(e,r){var l=Lt;Lt|=2;var s=py(),d=yy();Ft!==e||kt!==r?(Zs=null,Ps=Yt()+500,Ma(e,r)):Aa=pl(e,r);t:do try{if(Ht!==0&&Ot!==null){r=Ot;var g=on;e:switch(Ht){case 1:Ht=0,on=null,Ea(e,r,g,1);break;case 2:case 9:if(_g(g)){Ht=0,on=null,by(r);break}r=function(){Ht!==2&&Ht!==9||Ft!==e||(Ht=7),Qn(e)},g.then(r,r);break t;case 3:Ht=7;break t;case 4:Ht=5;break t;case 7:_g(g)?(Ht=0,on=null,by(r)):(Ht=0,on=null,Ea(e,r,g,7));break;case 5:var A=null;switch(Ot.tag){case 26:A=Ot.memoizedState;case 5:case 27:var w=Ot;if(!A||t1(A)){Ht=0,on=null;var U=w.sibling;if(U!==null)Ot=U;else{var V=w.return;V!==null?(Ot=V,Ks(V)):Ot=null}break e}}Ht=0,on=null,Ea(e,r,g,5);break;case 6:Ht=0,on=null,Ea(e,r,g,6);break;case 8:Cd(),le=6;break t;default:throw Error(a(462))}}WA();break}catch(J){gy(e,J)}while(!0);return hr=Si=null,j.H=s,j.A=d,Lt=l,Ot!==null?0:(Ft=null,kt=0,ys(),le)}function WA(){for(;Ot!==null&&!Bt();)vy(Ot)}function vy(e){var r=Vp(e.alternate,e,Sr);e.memoizedProps=e.pendingProps,r===null?Ks(e):Ot=r}function by(e){var r=e,l=r.alternate;switch(r.tag){case 15:case 0:r=Lp(l,r,r.pendingProps,r.type,void 0,kt);break;case 11:r=Lp(l,r,r.pendingProps,r.type.render,r.ref,kt);break;case 5:Yf(r);default:Pp(l,r),r=Ot=xg(r,Sr),r=Vp(l,r,Sr)}e.memoizedProps=e.pendingProps,r===null?Ks(e):Ot=r}function Ea(e,r,l,s){hr=Si=null,Yf(r),va=null,Il=0;var d=r.return;try{if(YA(e,d,r,l,kt)){le=1,Ys(e,vn(l,e.current)),Ot=null;return}}catch(g){if(d!==null)throw Ot=d,g;le=1,Ys(e,vn(l,e.current)),Ot=null;return}r.flags&32768?(Nt||s===1?e=!0:Aa||(kt&536870912)!==0?e=!1:(Kr=e=!0,(s===2||s===9||s===3||s===6)&&(s=An.current,s!==null&&s.tag===13&&(s.flags|=16384))),xy(r,e)):Ks(r)}function Ks(e){var r=e;do{if((r.flags&32768)!==0){xy(r,Kr);return}e=r.return;var l=qA(r.alternate,r,Sr);if(l!==null){Ot=l;return}if(r=r.sibling,r!==null){Ot=r;return}Ot=r=e}while(r!==null);le===0&&(le=5)}function xy(e,r){do{var l=IA(e.alternate,e);if(l!==null){l.flags&=32767,Ot=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!r&&(e=e.sibling,e!==null)){Ot=e;return}Ot=e=l}while(e!==null);le=6,Ot=null}function Sy(e,r,l,s,d,g,A,w,U){e.cancelPendingCommit=null;do Fs();while(ke!==0);if((Lt&6)!==0)throw Error(a(327));if(r!==null){if(r===e.current)throw Error(a(177));if(g=r.lanes|r.childLanes,g|=pf,_2(e,l,g,A,w,U),e===Ft&&(Ot=Ft=null,kt=0),Ca=r,Jr=e,wa=l,Sd=g,Ad=d,fy=s,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,nT(Kt,function(){return My(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||s){s=j.T,j.T=null,d=P.p,P.p=2,A=Lt,Lt|=4;try{VA(e,r,l)}finally{Lt=A,P.p=d,j.T=s}}ke=1,Ay(),Ty(),Cy()}}function Ay(){if(ke===1){ke=0;var e=Jr,r=Ca,l=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||l){l=j.T,j.T=null;var s=P.p;P.p=2;var d=Lt;Lt|=4;try{iy(r,e);var g=Bd,A=cg(e.containerInfo),w=g.focusedElem,U=g.selectionRange;if(A!==w&&w&&w.ownerDocument&&ug(w.ownerDocument.documentElement,w)){if(U!==null&&ff(w)){var V=U.start,J=U.end;if(J===void 0&&(J=V),"selectionStart"in w)w.selectionStart=V,w.selectionEnd=Math.min(J,w.value.length);else{var et=w.ownerDocument||document,Z=et&&et.defaultView||window;if(Z.getSelection){var Q=Z.getSelection(),Tt=w.textContent.length,St=Math.min(U.start,Tt),It=U.end===void 0?St:Math.min(U.end,Tt);!Q.extend&&St>It&&(A=It,It=St,St=A);var G=sg(w,St),B=sg(w,It);if(G&&B&&(Q.rangeCount!==1||Q.anchorNode!==G.node||Q.anchorOffset!==G.offset||Q.focusNode!==B.node||Q.focusOffset!==B.offset)){var q=et.createRange();q.setStart(G.node,G.offset),Q.removeAllRanges(),St>It?(Q.addRange(q),Q.extend(B.node,B.offset)):(q.setEnd(B.node,B.offset),Q.addRange(q))}}}}for(et=[],Q=w;Q=Q.parentNode;)Q.nodeType===1&&et.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<et.length;w++){var tt=et[w];tt.element.scrollLeft=tt.left,tt.element.scrollTop=tt.top}}uu=!!$d,Bd=$d=null}finally{Lt=d,P.p=s,j.T=l}}e.current=r,ke=2}}function Ty(){if(ke===2){ke=0;var e=Jr,r=Ca,l=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||l){l=j.T,j.T=null;var s=P.p;P.p=2;var d=Lt;Lt|=4;try{ty(e,r.alternate,r)}finally{Lt=d,P.p=s,j.T=l}}ke=3}}function Cy(){if(ke===4||ke===3){ke=0,Wt();var e=Jr,r=Ca,l=wa,s=fy;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?ke=5:(ke=0,Ca=Jr=null,wy(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(Wr=null),qc(l),r=r.stateNode,te&&typeof te.onCommitFiberRoot=="function")try{te.onCommitFiberRoot(Ge,r,void 0,(r.current.flags&128)===128)}catch{}if(s!==null){r=j.T,d=P.p,P.p=2,j.T=null;try{for(var g=e.onRecoverableError,A=0;A<s.length;A++){var w=s[A];g(w.value,{componentStack:w.stack})}}finally{j.T=r,P.p=d}}(wa&3)!==0&&Fs(),Qn(e),d=e.pendingLanes,(l&4194090)!==0&&(d&42)!==0?e===Td?Jl++:(Jl=0,Td=e):Jl=0,to(0)}}function wy(e,r){(e.pooledCacheLanes&=r)===0&&(r=e.pooledCache,r!=null&&(e.pooledCache=null,zl(r)))}function Fs(e){return Ay(),Ty(),Cy(),My()}function My(){if(ke!==5)return!1;var e=Jr,r=Sd;Sd=0;var l=qc(wa),s=j.T,d=P.p;try{P.p=32>l?32:l,j.T=null,l=Ad,Ad=null;var g=Jr,A=wa;if(ke=0,Ca=Jr=null,wa=0,(Lt&6)!==0)throw Error(a(331));var w=Lt;if(Lt|=4,uy(g.current),ly(g,g.current,A,l),Lt=w,to(0,!1),te&&typeof te.onPostCommitFiberRoot=="function")try{te.onPostCommitFiberRoot(Ge,g)}catch{}return!0}finally{P.p=d,j.T=s,wy(e,r)}}function Ey(e,r,l){r=vn(l,r),r=ed(e.stateNode,r,2),e=qr(e,r,2),e!==null&&(yl(e,2),Qn(e))}function Xt(e,r,l){if(e.tag===3)Ey(e,e,l);else for(;r!==null;){if(r.tag===3){Ey(r,e,l);break}else if(r.tag===1){var s=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Wr===null||!Wr.has(s))){e=vn(l,e),l=kp(2),s=qr(r,l,2),s!==null&&(Dp(l,s,r,e),yl(s,2),Qn(s));break}}r=r.return}}function Ed(e,r,l){var s=e.pingCache;if(s===null){s=e.pingCache=new ZA;var d=new Set;s.set(r,d)}else d=s.get(r),d===void 0&&(d=new Set,s.set(r,d));d.has(l)||(yd=!0,d.add(l),e=JA.bind(null,e,r,l),r.then(e,e))}function JA(e,r,l){var s=e.pingCache;s!==null&&s.delete(r),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ft===e&&(kt&l)===l&&(le===4||le===3&&(kt&62914560)===kt&&300>Yt()-xd?(Lt&2)===0&&Ma(e,0):vd|=l,Ta===kt&&(Ta=0)),Qn(e)}function Oy(e,r){r===0&&(r=C0()),e=sa(e,r),e!==null&&(yl(e,r),Qn(e))}function tT(e){var r=e.memoizedState,l=0;r!==null&&(l=r.retryLane),Oy(e,l)}function eT(e,r){var l=0;switch(e.tag){case 13:var s=e.stateNode,d=e.memoizedState;d!==null&&(l=d.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(a(314))}s!==null&&s.delete(r),Oy(e,l)}function nT(e,r){return _t(e,r)}var Ws=null,Oa=null,Od=!1,Js=!1,Rd=!1,Oi=0;function Qn(e){e!==Oa&&e.next===null&&(Oa===null?Ws=Oa=e:Oa=Oa.next=e),Js=!0,Od||(Od=!0,iT())}function to(e,r){if(!Rd&&Js){Rd=!0;do for(var l=!1,s=Ws;s!==null;){if(e!==0){var d=s.pendingLanes;if(d===0)var g=0;else{var A=s.suspendedLanes,w=s.pingedLanes;g=(1<<31-Te(42|e)+1)-1,g&=d&~(A&~w),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(l=!0,Dy(s,g))}else g=kt,g=as(s,s===Ft?g:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(g&3)===0||pl(s,g)||(l=!0,Dy(s,g));s=s.next}while(l);Rd=!1}}function rT(){Ry()}function Ry(){Js=Od=!1;var e=0;Oi!==0&&(dT()&&(e=Oi),Oi=0);for(var r=Yt(),l=null,s=Ws;s!==null;){var d=s.next,g=_y(s,r);g===0?(s.next=null,l===null?Ws=d:l.next=d,d===null&&(Oa=l)):(l=s,(e!==0||(g&3)!==0)&&(Js=!0)),s=d}to(e)}function _y(e,r){for(var l=e.suspendedLanes,s=e.pingedLanes,d=e.expirationTimes,g=e.pendingLanes&-62914561;0<g;){var A=31-Te(g),w=1<<A,U=d[A];U===-1?((w&l)===0||(w&s)!==0)&&(d[A]=R2(w,r)):U<=r&&(e.expiredLanes|=w),g&=~w}if(r=Ft,l=kt,l=as(e,e===r?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,l===0||e===r&&(Ht===2||Ht===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&vt(s),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||pl(e,l)){if(r=l&-l,r===e.callbackPriority)return r;switch(s!==null&&vt(s),qc(l)){case 2:case 8:l=me;break;case 32:l=Kt;break;case 268435456:l=mn;break;default:l=Kt}return s=ky.bind(null,e),l=_t(l,s),e.callbackPriority=r,e.callbackNode=l,r}return s!==null&&s!==null&&vt(s),e.callbackPriority=2,e.callbackNode=null,2}function ky(e,r){if(ke!==0&&ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Fs()&&e.callbackNode!==l)return null;var s=kt;return s=as(e,e===Ft?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(hy(e,s,r),_y(e,Yt()),e.callbackNode!=null&&e.callbackNode===l?ky.bind(null,e):null)}function Dy(e,r){if(Fs())return null;hy(e,r,!0)}function iT(){mT(function(){(Lt&6)!==0?_t(ue,rT):Ry()})}function _d(){return Oi===0&&(Oi=T0()),Oi}function zy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:cs(""+e)}function Ny(e,r){var l=r.ownerDocument.createElement("input");return l.name=r.name,l.value=r.value,e.id&&l.setAttribute("form",e.id),r.parentNode.insertBefore(l,r),e=new FormData(e),l.parentNode.removeChild(l),e}function aT(e,r,l,s,d){if(r==="submit"&&l&&l.stateNode===d){var g=zy((d[Pe]||null).action),A=s.submitter;A&&(r=(r=A[Pe]||null)?zy(r.formAction):A.getAttribute("formAction"),r!==null&&(g=r,A=null));var w=new ms("action","action",null,s,d);e.push({event:w,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Oi!==0){var U=A?Ny(d,A):new FormData(d);Kf(l,{pending:!0,data:U,method:d.method,action:g},null,U)}}else typeof g=="function"&&(w.preventDefault(),U=A?Ny(d,A):new FormData(d),Kf(l,{pending:!0,data:U,method:d.method,action:g},g,U))},currentTarget:d}]})}}for(var kd=0;kd<gf.length;kd++){var Dd=gf[kd],lT=Dd.toLowerCase(),oT=Dd[0].toUpperCase()+Dd.slice(1);jn(lT,"on"+oT)}jn(hg,"onAnimationEnd"),jn(mg,"onAnimationIteration"),jn(gg,"onAnimationStart"),jn("dblclick","onDoubleClick"),jn("focusin","onFocus"),jn("focusout","onBlur"),jn(CA,"onTransitionRun"),jn(wA,"onTransitionStart"),jn(MA,"onTransitionCancel"),jn(pg,"onTransitionEnd"),Wi("onMouseEnter",["mouseout","mouseover"]),Wi("onMouseLeave",["mouseout","mouseover"]),Wi("onPointerEnter",["pointerout","pointerover"]),Wi("onPointerLeave",["pointerout","pointerover"]),di("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),di("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),di("onBeforeInput",["compositionend","keypress","textInput","paste"]),di("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),di("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),di("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var eo="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(" "),sT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(eo));function Uy(e,r){r=(r&4)!==0;for(var l=0;l<e.length;l++){var s=e[l],d=s.event;s=s.listeners;t:{var g=void 0;if(r)for(var A=s.length-1;0<=A;A--){var w=s[A],U=w.instance,V=w.currentTarget;if(w=w.listener,U!==g&&d.isPropagationStopped())break t;g=w,d.currentTarget=V;try{g(d)}catch(J){Hs(J)}d.currentTarget=null,g=U}else for(A=0;A<s.length;A++){if(w=s[A],U=w.instance,V=w.currentTarget,w=w.listener,U!==g&&d.isPropagationStopped())break t;g=w,d.currentTarget=V;try{g(d)}catch(J){Hs(J)}d.currentTarget=null,g=U}}}}function Rt(e,r){var l=r[Ic];l===void 0&&(l=r[Ic]=new Set);var s=e+"__bubble";l.has(s)||(jy(r,e,2,!1),l.add(s))}function zd(e,r,l){var s=0;r&&(s|=4),jy(l,e,s,r)}var tu="_reactListening"+Math.random().toString(36).slice(2);function Nd(e){if(!e[tu]){e[tu]=!0,R0.forEach(function(l){l!=="selectionchange"&&(sT.has(l)||zd(l,!1,e),zd(l,!0,e))});var r=e.nodeType===9?e:e.ownerDocument;r===null||r[tu]||(r[tu]=!0,zd("selectionchange",!1,r))}}function jy(e,r,l,s){switch(l1(r)){case 2:var d=UT;break;case 8:d=jT;break;default:d=Zd}l=d.bind(null,r,l,e),d=void 0,!ef||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(d=!0),s?d!==void 0?e.addEventListener(r,l,{capture:!0,passive:d}):e.addEventListener(r,l,!0):d!==void 0?e.addEventListener(r,l,{passive:d}):e.addEventListener(r,l,!1)}function Ud(e,r,l,s,d){var g=s;if((r&1)===0&&(r&2)===0&&s!==null)t:for(;;){if(s===null)return;var A=s.tag;if(A===3||A===4){var w=s.stateNode.containerInfo;if(w===d)break;if(A===4)for(A=s.return;A!==null;){var U=A.tag;if((U===3||U===4)&&A.stateNode.containerInfo===d)return;A=A.return}for(;w!==null;){if(A=Qi(w),A===null)return;if(U=A.tag,U===5||U===6||U===26||U===27){s=g=A;continue t}w=w.parentNode}}s=s.return}q0(function(){var V=g,J=Jc(l),et=[];t:{var Z=yg.get(e);if(Z!==void 0){var Q=ms,Tt=e;switch(e){case"keypress":if(ds(l)===0)break t;case"keydown":case"keyup":Q=nA;break;case"focusin":Tt="focus",Q=lf;break;case"focusout":Tt="blur",Q=lf;break;case"beforeblur":case"afterblur":Q=lf;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Q=X0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=I2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=aA;break;case hg:case mg:case gg:Q=P2;break;case pg:Q=oA;break;case"scroll":case"scrollend":Q=G2;break;case"wheel":Q=uA;break;case"copy":case"cut":case"paste":Q=Q2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=Z0;break;case"toggle":case"beforetoggle":Q=fA}var St=(r&4)!==0,It=!St&&(e==="scroll"||e==="scrollend"),G=St?Z!==null?Z+"Capture":null:Z;St=[];for(var B=V,q;B!==null;){var tt=B;if(q=tt.stateNode,tt=tt.tag,tt!==5&&tt!==26&&tt!==27||q===null||G===null||(tt=xl(B,G),tt!=null&&St.push(no(B,tt,q))),It)break;B=B.return}0<St.length&&(Z=new Q(Z,Tt,null,l,J),et.push({event:Z,listeners:St}))}}if((r&7)===0){t:{if(Z=e==="mouseover"||e==="pointerover",Q=e==="mouseout"||e==="pointerout",Z&&l!==Wc&&(Tt=l.relatedTarget||l.fromElement)&&(Qi(Tt)||Tt[Zi]))break t;if((Q||Z)&&(Z=J.window===J?J:(Z=J.ownerDocument)?Z.defaultView||Z.parentWindow:window,Q?(Tt=l.relatedTarget||l.toElement,Q=V,Tt=Tt?Qi(Tt):null,Tt!==null&&(It=u(Tt),St=Tt.tag,Tt!==It||St!==5&&St!==27&&St!==6)&&(Tt=null)):(Q=null,Tt=V),Q!==Tt)){if(St=X0,tt="onMouseLeave",G="onMouseEnter",B="mouse",(e==="pointerout"||e==="pointerover")&&(St=Z0,tt="onPointerLeave",G="onPointerEnter",B="pointer"),It=Q==null?Z:bl(Q),q=Tt==null?Z:bl(Tt),Z=new St(tt,B+"leave",Q,l,J),Z.target=It,Z.relatedTarget=q,tt=null,Qi(J)===V&&(St=new St(G,B+"enter",Tt,l,J),St.target=q,St.relatedTarget=It,tt=St),It=tt,Q&&Tt)e:{for(St=Q,G=Tt,B=0,q=St;q;q=Ra(q))B++;for(q=0,tt=G;tt;tt=Ra(tt))q++;for(;0<B-q;)St=Ra(St),B--;for(;0<q-B;)G=Ra(G),q--;for(;B--;){if(St===G||G!==null&&St===G.alternate)break e;St=Ra(St),G=Ra(G)}St=null}else St=null;Q!==null&&$y(et,Z,Q,St,!1),Tt!==null&&It!==null&&$y(et,It,Tt,St,!0)}}t:{if(Z=V?bl(V):window,Q=Z.nodeName&&Z.nodeName.toLowerCase(),Q==="select"||Q==="input"&&Z.type==="file")var ht=ng;else if(tg(Z))if(rg)ht=SA;else{ht=bA;var Et=vA}else Q=Z.nodeName,!Q||Q.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?V&&Fc(V.elementType)&&(ht=ng):ht=xA;if(ht&&(ht=ht(e,V))){eg(et,ht,l,J);break t}Et&&Et(e,Z,V),e==="focusout"&&V&&Z.type==="number"&&V.memoizedProps.value!=null&&Kc(Z,"number",Z.value)}switch(Et=V?bl(V):window,e){case"focusin":(tg(Et)||Et.contentEditable==="true")&&(aa=Et,df=V,Ol=null);break;case"focusout":Ol=df=aa=null;break;case"mousedown":hf=!0;break;case"contextmenu":case"mouseup":case"dragend":hf=!1,fg(et,l,J);break;case"selectionchange":if(TA)break;case"keydown":case"keyup":fg(et,l,J)}var pt;if(sf)t:{switch(e){case"compositionstart":var At="onCompositionStart";break t;case"compositionend":At="onCompositionEnd";break t;case"compositionupdate":At="onCompositionUpdate";break t}At=void 0}else ia?W0(e,l)&&(At="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(At="onCompositionStart");At&&(Q0&&l.locale!=="ko"&&(ia||At!=="onCompositionStart"?At==="onCompositionEnd"&&ia&&(pt=I0()):(Lr=J,nf="value"in Lr?Lr.value:Lr.textContent,ia=!0)),Et=eu(V,At),0<Et.length&&(At=new P0(At,e,null,l,J),et.push({event:At,listeners:Et}),pt?At.data=pt:(pt=J0(l),pt!==null&&(At.data=pt)))),(pt=hA?mA(e,l):gA(e,l))&&(At=eu(V,"onBeforeInput"),0<At.length&&(Et=new P0("onBeforeInput","beforeinput",null,l,J),et.push({event:Et,listeners:At}),Et.data=pt)),aT(et,e,V,l,J)}Uy(et,r)})}function no(e,r,l){return{instance:e,listener:r,currentTarget:l}}function eu(e,r){for(var l=r+"Capture",s=[];e!==null;){var d=e,g=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||g===null||(d=xl(e,l),d!=null&&s.unshift(no(e,d,g)),d=xl(e,r),d!=null&&s.push(no(e,d,g))),e.tag===3)return s;e=e.return}return[]}function Ra(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function $y(e,r,l,s,d){for(var g=r._reactName,A=[];l!==null&&l!==s;){var w=l,U=w.alternate,V=w.stateNode;if(w=w.tag,U!==null&&U===s)break;w!==5&&w!==26&&w!==27||V===null||(U=V,d?(V=xl(l,g),V!=null&&A.unshift(no(l,V,U))):d||(V=xl(l,g),V!=null&&A.push(no(l,V,U)))),l=l.return}A.length!==0&&e.push({event:r,listeners:A})}var uT=/\r\n?/g,cT=/\u0000|\uFFFD/g;function By(e){return(typeof e=="string"?e:""+e).replace(uT,` 49 - `).replace(cT,"")}function Ly(e,r){return r=By(r),By(e)===r}function nu(){}function qt(e,r,l,s,d,g){switch(l){case"children":typeof s=="string"?r==="body"||r==="textarea"&&s===""||ea(e,s):(typeof s=="number"||typeof s=="bigint")&&r!=="body"&&ea(e,""+s);break;case"className":os(e,"class",s);break;case"tabIndex":os(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":os(e,l,s);break;case"style":Y0(e,s,g);break;case"data":if(r!=="object"){os(e,"data",s);break}case"src":case"href":if(s===""&&(r!=="a"||l!=="href")){e.removeAttribute(l);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=cs(""+s),e.setAttribute(l,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof g=="function"&&(l==="formAction"?(r!=="input"&&qt(e,r,"name",d.name,d,null),qt(e,r,"formEncType",d.formEncType,d,null),qt(e,r,"formMethod",d.formMethod,d,null),qt(e,r,"formTarget",d.formTarget,d,null)):(qt(e,r,"encType",d.encType,d,null),qt(e,r,"method",d.method,d,null),qt(e,r,"target",d.target,d,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=cs(""+s),e.setAttribute(l,s);break;case"onClick":s!=null&&(e.onclick=nu);break;case"onScroll":s!=null&&Rt("scroll",e);break;case"onScrollEnd":s!=null&&Rt("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(a(61));if(l=s.__html,l!=null){if(d.children!=null)throw Error(a(60));e.innerHTML=l}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}l=cs(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""+s):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":s===!0?e.setAttribute(l,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,s):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(l,s):e.removeAttribute(l);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(l):e.setAttribute(l,s);break;case"popover":Rt("beforetoggle",e),Rt("toggle",e),ls(e,"popover",s);break;case"xlinkActuate":sr(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":sr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":sr(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":sr(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":sr(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":sr(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":sr(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":sr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":sr(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":ls(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=H2.get(l)||l,ls(e,l,s))}}function jd(e,r,l,s,d,g){switch(l){case"style":Y0(e,s,g);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(a(61));if(l=s.__html,l!=null){if(d.children!=null)throw Error(a(60));e.innerHTML=l}}break;case"children":typeof s=="string"?ea(e,s):(typeof s=="number"||typeof s=="bigint")&&ea(e,""+s);break;case"onScroll":s!=null&&Rt("scroll",e);break;case"onScrollEnd":s!=null&&Rt("scrollend",e);break;case"onClick":s!=null&&(e.onclick=nu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!_0.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(d=l.endsWith("Capture"),r=l.slice(2,d?l.length-7:void 0),g=e[Pe]||null,g=g!=null?g[l]:null,typeof g=="function"&&e.removeEventListener(r,g,d),typeof s=="function")){typeof g!="function"&&g!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(r,s,d);break t}l in e?e[l]=s:s===!0?e.setAttribute(l,""):ls(e,l,s)}}}function De(e,r,l){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Rt("error",e),Rt("load",e);var s=!1,d=!1,g;for(g in l)if(l.hasOwnProperty(g)){var A=l[g];if(A!=null)switch(g){case"src":s=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:qt(e,r,g,A,l,null)}}d&&qt(e,r,"srcSet",l.srcSet,l,null),s&&qt(e,r,"src",l.src,l,null);return;case"input":Rt("invalid",e);var w=g=A=d=null,U=null,V=null;for(s in l)if(l.hasOwnProperty(s)){var J=l[s];if(J!=null)switch(s){case"name":d=J;break;case"type":A=J;break;case"checked":U=J;break;case"defaultChecked":V=J;break;case"value":g=J;break;case"defaultValue":w=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(a(137,r));break;default:qt(e,r,s,J,l,null)}}$0(e,g,w,U,V,A,d,!1),ss(e);return;case"select":Rt("invalid",e),s=A=g=null;for(d in l)if(l.hasOwnProperty(d)&&(w=l[d],w!=null))switch(d){case"value":g=w;break;case"defaultValue":A=w;break;case"multiple":s=w;default:qt(e,r,d,w,l,null)}r=g,l=A,e.multiple=!!s,r!=null?ta(e,!!s,r,!1):l!=null&&ta(e,!!s,l,!0);return;case"textarea":Rt("invalid",e),g=d=s=null;for(A in l)if(l.hasOwnProperty(A)&&(w=l[A],w!=null))switch(A){case"value":s=w;break;case"defaultValue":d=w;break;case"children":g=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(a(91));break;default:qt(e,r,A,w,l,null)}L0(e,s,d,g),ss(e);return;case"option":for(U in l)if(l.hasOwnProperty(U)&&(s=l[U],s!=null))switch(U){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:qt(e,r,U,s,l,null)}return;case"dialog":Rt("beforetoggle",e),Rt("toggle",e),Rt("cancel",e),Rt("close",e);break;case"iframe":case"object":Rt("load",e);break;case"video":case"audio":for(s=0;s<eo.length;s++)Rt(eo[s],e);break;case"image":Rt("error",e),Rt("load",e);break;case"details":Rt("toggle",e);break;case"embed":case"source":case"link":Rt("error",e),Rt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in l)if(l.hasOwnProperty(V)&&(s=l[V],s!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:qt(e,r,V,s,l,null)}return;default:if(Fc(r)){for(J in l)l.hasOwnProperty(J)&&(s=l[J],s!==void 0&&jd(e,r,J,s,l,void 0));return}}for(w in l)l.hasOwnProperty(w)&&(s=l[w],s!=null&&qt(e,r,w,s,l,null))}function fT(e,r,l,s){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,g=null,A=null,w=null,U=null,V=null,J=null;for(Q in l){var et=l[Q];if(l.hasOwnProperty(Q)&&et!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":U=et;default:s.hasOwnProperty(Q)||qt(e,r,Q,null,s,et)}}for(var Z in s){var Q=s[Z];if(et=l[Z],s.hasOwnProperty(Z)&&(Q!=null||et!=null))switch(Z){case"type":g=Q;break;case"name":d=Q;break;case"checked":V=Q;break;case"defaultChecked":J=Q;break;case"value":A=Q;break;case"defaultValue":w=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(a(137,r));break;default:Q!==et&&qt(e,r,Z,Q,s,et)}}Qc(e,A,w,U,V,J,g,d);return;case"select":Q=A=w=Z=null;for(g in l)if(U=l[g],l.hasOwnProperty(g)&&U!=null)switch(g){case"value":break;case"multiple":Q=U;default:s.hasOwnProperty(g)||qt(e,r,g,null,s,U)}for(d in s)if(g=s[d],U=l[d],s.hasOwnProperty(d)&&(g!=null||U!=null))switch(d){case"value":Z=g;break;case"defaultValue":w=g;break;case"multiple":A=g;default:g!==U&&qt(e,r,d,g,s,U)}r=w,l=A,s=Q,Z!=null?ta(e,!!l,Z,!1):!!s!=!!l&&(r!=null?ta(e,!!l,r,!0):ta(e,!!l,l?[]:"",!1));return;case"textarea":Q=Z=null;for(w in l)if(d=l[w],l.hasOwnProperty(w)&&d!=null&&!s.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:qt(e,r,w,null,s,d)}for(A in s)if(d=s[A],g=l[A],s.hasOwnProperty(A)&&(d!=null||g!=null))switch(A){case"value":Z=d;break;case"defaultValue":Q=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(a(91));break;default:d!==g&&qt(e,r,A,d,s,g)}B0(e,Z,Q);return;case"option":for(var Tt in l)if(Z=l[Tt],l.hasOwnProperty(Tt)&&Z!=null&&!s.hasOwnProperty(Tt))switch(Tt){case"selected":e.selected=!1;break;default:qt(e,r,Tt,null,s,Z)}for(U in s)if(Z=s[U],Q=l[U],s.hasOwnProperty(U)&&Z!==Q&&(Z!=null||Q!=null))switch(U){case"selected":e.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:qt(e,r,U,Z,s,Q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var St in l)Z=l[St],l.hasOwnProperty(St)&&Z!=null&&!s.hasOwnProperty(St)&&qt(e,r,St,null,s,Z);for(V in s)if(Z=s[V],Q=l[V],s.hasOwnProperty(V)&&Z!==Q&&(Z!=null||Q!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(a(137,r));break;default:qt(e,r,V,Z,s,Q)}return;default:if(Fc(r)){for(var It in l)Z=l[It],l.hasOwnProperty(It)&&Z!==void 0&&!s.hasOwnProperty(It)&&jd(e,r,It,void 0,s,Z);for(J in s)Z=s[J],Q=l[J],!s.hasOwnProperty(J)||Z===Q||Z===void 0&&Q===void 0||jd(e,r,J,Z,s,Q);return}}for(var G in l)Z=l[G],l.hasOwnProperty(G)&&Z!=null&&!s.hasOwnProperty(G)&&qt(e,r,G,null,s,Z);for(et in s)Z=s[et],Q=l[et],!s.hasOwnProperty(et)||Z===Q||Z==null&&Q==null||qt(e,r,et,Z,s,Q)}var $d=null,Bd=null;function ru(e){return e.nodeType===9?e:e.ownerDocument}function Hy(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Yy(e,r){if(e===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&r==="foreignObject"?0:e}function Ld(e,r){return e==="textarea"||e==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Hd=null;function dT(){var e=window.event;return e&&e.type==="popstate"?e===Hd?!1:(Hd=e,!0):(Hd=null,!1)}var Gy=typeof setTimeout=="function"?setTimeout:void 0,hT=typeof clearTimeout=="function"?clearTimeout:void 0,qy=typeof Promise=="function"?Promise:void 0,mT=typeof queueMicrotask=="function"?queueMicrotask:typeof qy<"u"?function(e){return qy.resolve(null).then(e).catch(gT)}:Gy;function gT(e){setTimeout(function(){throw e})}function ei(e){return e==="head"}function Iy(e,r){var l=r,s=0,d=0;do{var g=l.nextSibling;if(e.removeChild(l),g&&g.nodeType===8)if(l=g.data,l==="/$"){if(0<s&&8>s){l=s;var A=e.ownerDocument;if(l&1&&ro(A.documentElement),l&2&&ro(A.body),l&4)for(l=A.head,ro(l),A=l.firstChild;A;){var w=A.nextSibling,U=A.nodeName;A[vl]||U==="SCRIPT"||U==="STYLE"||U==="LINK"&&A.rel.toLowerCase()==="stylesheet"||l.removeChild(A),A=w}}if(d===0){e.removeChild(g),fo(r);return}d--}else l==="$"||l==="$?"||l==="$!"?d++:s=l.charCodeAt(0)-48;else s=0;l=g}while(l);fo(r)}function Yd(e){var r=e.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var l=r;switch(r=r.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Yd(l),Vc(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function pT(e,r,l,s){for(;e.nodeType===1;){var d=l;if(e.nodeName.toLowerCase()!==r.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[vl])switch(r){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(g=e.getAttribute("rel"),g==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(g!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(g=e.getAttribute("src"),(g!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&g&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(r==="input"&&e.type==="hidden"){var g=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===g)return e}else return e;if(e=Bn(e.nextSibling),e===null)break}return null}function yT(e,r,l){if(r==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Bn(e.nextSibling),e===null))return null;return e}function Gd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function vT(e,r){var l=e.ownerDocument;if(e.data!=="$?"||l.readyState==="complete")r();else{var s=function(){r(),l.removeEventListener("DOMContentLoaded",s)};l.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Bn(e){for(;e!=null;e=e.nextSibling){var r=e.nodeType;if(r===1||r===3)break;if(r===8){if(r=e.data,r==="$"||r==="$!"||r==="$?"||r==="F!"||r==="F")break;if(r==="/$")return null}}return e}var qd=null;function Vy(e){e=e.previousSibling;for(var r=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(r===0)return e;r--}else l==="/$"&&r++}e=e.previousSibling}return null}function Xy(e,r,l){switch(r=ru(l),e){case"html":if(e=r.documentElement,!e)throw Error(a(452));return e;case"head":if(e=r.head,!e)throw Error(a(453));return e;case"body":if(e=r.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function ro(e){for(var r=e.attributes;r.length;)e.removeAttributeNode(r[0]);Vc(e)}var Cn=new Map,Py=new Set;function iu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ar=P.d;P.d={f:bT,r:xT,D:ST,C:AT,L:TT,m:CT,X:MT,S:wT,M:ET};function bT(){var e=Ar.f(),r=Qs();return e||r}function xT(e){var r=Ki(e);r!==null&&r.tag===5&&r.type==="form"?hp(r):Ar.r(e)}var _a=typeof document>"u"?null:document;function Zy(e,r,l){var s=_a;if(s&&typeof r=="string"&&r){var d=yn(r);d='link[rel="'+e+'"][href="'+d+'"]',typeof l=="string"&&(d+='[crossorigin="'+l+'"]'),Py.has(d)||(Py.add(d),e={rel:e,crossOrigin:l,href:r},s.querySelector(d)===null&&(r=s.createElement("link"),De(r,"link",e),Ce(r),s.head.appendChild(r)))}}function ST(e){Ar.D(e),Zy("dns-prefetch",e,null)}function AT(e,r){Ar.C(e,r),Zy("preconnect",e,r)}function TT(e,r,l){Ar.L(e,r,l);var s=_a;if(s&&e&&r){var d='link[rel="preload"][as="'+yn(r)+'"]';r==="image"&&l&&l.imageSrcSet?(d+='[imagesrcset="'+yn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(d+='[imagesizes="'+yn(l.imageSizes)+'"]')):d+='[href="'+yn(e)+'"]';var g=d;switch(r){case"style":g=ka(e);break;case"script":g=Da(e)}Cn.has(g)||(e=p({rel:"preload",href:r==="image"&&l&&l.imageSrcSet?void 0:e,as:r},l),Cn.set(g,e),s.querySelector(d)!==null||r==="style"&&s.querySelector(io(g))||r==="script"&&s.querySelector(ao(g))||(r=s.createElement("link"),De(r,"link",e),Ce(r),s.head.appendChild(r)))}}function CT(e,r){Ar.m(e,r);var l=_a;if(l&&e){var s=r&&typeof r.as=="string"?r.as:"script",d='link[rel="modulepreload"][as="'+yn(s)+'"][href="'+yn(e)+'"]',g=d;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=Da(e)}if(!Cn.has(g)&&(e=p({rel:"modulepreload",href:e},r),Cn.set(g,e),l.querySelector(d)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ao(g)))return}s=l.createElement("link"),De(s,"link",e),Ce(s),l.head.appendChild(s)}}}function wT(e,r,l){Ar.S(e,r,l);var s=_a;if(s&&e){var d=Fi(s).hoistableStyles,g=ka(e);r=r||"default";var A=d.get(g);if(!A){var w={loading:0,preload:null};if(A=s.querySelector(io(g)))w.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":r},l),(l=Cn.get(g))&&Id(e,l);var U=A=s.createElement("link");Ce(U),De(U,"link",e),U._p=new Promise(function(V,J){U.onload=V,U.onerror=J}),U.addEventListener("load",function(){w.loading|=1}),U.addEventListener("error",function(){w.loading|=2}),w.loading|=4,au(A,r,s)}A={type:"stylesheet",instance:A,count:1,state:w},d.set(g,A)}}}function MT(e,r){Ar.X(e,r);var l=_a;if(l&&e){var s=Fi(l).hoistableScripts,d=Da(e),g=s.get(d);g||(g=l.querySelector(ao(d)),g||(e=p({src:e,async:!0},r),(r=Cn.get(d))&&Vd(e,r),g=l.createElement("script"),Ce(g),De(g,"link",e),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},s.set(d,g))}}function ET(e,r){Ar.M(e,r);var l=_a;if(l&&e){var s=Fi(l).hoistableScripts,d=Da(e),g=s.get(d);g||(g=l.querySelector(ao(d)),g||(e=p({src:e,async:!0,type:"module"},r),(r=Cn.get(d))&&Vd(e,r),g=l.createElement("script"),Ce(g),De(g,"link",e),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},s.set(d,g))}}function Qy(e,r,l,s){var d=(d=dt.current)?iu(d):null;if(!d)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(r=ka(l.href),l=Fi(d).hoistableStyles,s=l.get(r),s||(s={type:"style",instance:null,count:0,state:null},l.set(r,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ka(l.href);var g=Fi(d).hoistableStyles,A=g.get(e);if(A||(d=d.ownerDocument||d,A={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(e,A),(g=d.querySelector(io(e)))&&!g._p&&(A.instance=g,A.state.loading=5),Cn.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Cn.set(e,l),g||OT(d,e,l,A.state))),r&&s===null)throw Error(a(528,""));return A}if(r&&s!==null)throw Error(a(529,""));return null;case"script":return r=l.async,l=l.src,typeof l=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=Da(l),l=Fi(d).hoistableScripts,s=l.get(r),s||(s={type:"script",instance:null,count:0,state:null},l.set(r,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function ka(e){return'href="'+yn(e)+'"'}function io(e){return'link[rel="stylesheet"]['+e+"]"}function Ky(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function OT(e,r,l,s){e.querySelector('link[rel="preload"][as="style"]['+r+"]")?s.loading=1:(r=e.createElement("link"),s.preload=r,r.addEventListener("load",function(){return s.loading|=1}),r.addEventListener("error",function(){return s.loading|=2}),De(r,"link",l),Ce(r),e.head.appendChild(r))}function Da(e){return'[src="'+yn(e)+'"]'}function ao(e){return"script[async]"+e}function Fy(e,r,l){if(r.count++,r.instance===null)switch(r.type){case"style":var s=e.querySelector('style[data-href~="'+yn(l.href)+'"]');if(s)return r.instance=s,Ce(s),s;var d=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),Ce(s),De(s,"style",d),au(s,l.precedence,e),r.instance=s;case"stylesheet":d=ka(l.href);var g=e.querySelector(io(d));if(g)return r.state.loading|=4,r.instance=g,Ce(g),g;s=Ky(l),(d=Cn.get(d))&&Id(s,d),g=(e.ownerDocument||e).createElement("link"),Ce(g);var A=g;return A._p=new Promise(function(w,U){A.onload=w,A.onerror=U}),De(g,"link",s),r.state.loading|=4,au(g,l.precedence,e),r.instance=g;case"script":return g=Da(l.src),(d=e.querySelector(ao(g)))?(r.instance=d,Ce(d),d):(s=l,(d=Cn.get(g))&&(s=p({},l),Vd(s,d)),e=e.ownerDocument||e,d=e.createElement("script"),Ce(d),De(d,"link",s),e.head.appendChild(d),r.instance=d);case"void":return null;default:throw Error(a(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(s=r.instance,r.state.loading|=4,au(s,l.precedence,e));return r.instance}function au(e,r,l){for(var s=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=s.length?s[s.length-1]:null,g=d,A=0;A<s.length;A++){var w=s[A];if(w.dataset.precedence===r)g=w;else if(g!==d)break}g?g.parentNode.insertBefore(e,g.nextSibling):(r=l.nodeType===9?l.head:l,r.insertBefore(e,r.firstChild))}function Id(e,r){e.crossOrigin==null&&(e.crossOrigin=r.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=r.referrerPolicy),e.title==null&&(e.title=r.title)}function Vd(e,r){e.crossOrigin==null&&(e.crossOrigin=r.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=r.referrerPolicy),e.integrity==null&&(e.integrity=r.integrity)}var lu=null;function Wy(e,r,l){if(lu===null){var s=new Map,d=lu=new Map;d.set(l,s)}else d=lu,s=d.get(l),s||(s=new Map,d.set(l,s));if(s.has(e))return s;for(s.set(e,null),l=l.getElementsByTagName(e),d=0;d<l.length;d++){var g=l[d];if(!(g[vl]||g[je]||e==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var A=g.getAttribute(r)||"";A=e+A;var w=s.get(A);w?w.push(g):s.set(A,[g])}}return s}function Jy(e,r,l){e=e.ownerDocument||e,e.head.insertBefore(l,r==="title"?e.querySelector("head > title"):null)}function RT(e,r,l){if(l===1||r.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return e=r.disabled,typeof r.precedence=="string"&&e==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function t1(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var lo=null;function _T(){}function kT(e,r,l){if(lo===null)throw Error(a(475));var s=lo;if(r.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var d=ka(l.href),g=e.querySelector(io(d));if(g){e=g._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(s.count++,s=ou.bind(s),e.then(s,s)),r.state.loading|=4,r.instance=g,Ce(g);return}g=e.ownerDocument||e,l=Ky(l),(d=Cn.get(d))&&Id(l,d),g=g.createElement("link"),Ce(g);var A=g;A._p=new Promise(function(w,U){A.onload=w,A.onerror=U}),De(g,"link",l),r.instance=g}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(r,e),(e=r.state.preload)&&(r.state.loading&3)===0&&(s.count++,r=ou.bind(s),e.addEventListener("load",r),e.addEventListener("error",r))}}function DT(){if(lo===null)throw Error(a(475));var e=lo;return e.stylesheets&&e.count===0&&Xd(e,e.stylesheets),0<e.count?function(r){var l=setTimeout(function(){if(e.stylesheets&&Xd(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(l)}}:null}function ou(){if(this.count--,this.count===0){if(this.stylesheets)Xd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var su=null;function Xd(e,r){e.stylesheets=null,e.unsuspend!==null&&(e.count++,su=new Map,r.forEach(zT,e),su=null,ou.call(e))}function zT(e,r){if(!(r.state.loading&4)){var l=su.get(e);if(l)var s=l.get(null);else{l=new Map,su.set(e,l);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<d.length;g++){var A=d[g];(A.nodeName==="LINK"||A.getAttribute("media")!=="not all")&&(l.set(A.dataset.precedence,A),s=A)}s&&l.set(null,s)}d=r.instance,A=d.getAttribute("data-precedence"),g=l.get(A)||s,g===s&&l.set(null,d),l.set(A,d),this.count++,s=ou.bind(this),d.addEventListener("load",s),d.addEventListener("error",s),g?g.parentNode.insertBefore(d,g.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),r.state.loading|=4}}var oo={$$typeof:O,Provider:null,Consumer:null,_currentValue:nt,_currentValue2:nt,_threadCount:0};function NT(e,r,l,s,d,g,A,w){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Yc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yc(0),this.hiddenUpdates=Yc(null),this.identifierPrefix=s,this.onUncaughtError=d,this.onCaughtError=g,this.onRecoverableError=A,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function e1(e,r,l,s,d,g,A,w,U,V,J,et){return e=new NT(e,r,l,A,w,U,V,et),r=1,g===!0&&(r|=24),g=rn(3,null,null,r),e.current=g,g.stateNode=e,r=Ef(),r.refCount++,e.pooledCache=r,r.refCount++,g.memoizedState={element:s,isDehydrated:l,cache:r},kf(g),e}function n1(e){return e?(e=ua,e):ua}function r1(e,r,l,s,d,g){d=n1(d),s.context===null?s.context=d:s.pendingContext=d,s=Gr(r),s.payload={element:l},g=g===void 0?null:g,g!==null&&(s.callback=g),l=qr(e,s,r),l!==null&&(un(l,e,r),$l(l,e,r))}function i1(e,r){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<r?l:r}}function Pd(e,r){i1(e,r),(e=e.alternate)&&i1(e,r)}function a1(e){if(e.tag===13){var r=sa(e,67108864);r!==null&&un(r,e,67108864),Pd(e,67108864)}}var uu=!0;function UT(e,r,l,s){var d=j.T;j.T=null;var g=P.p;try{P.p=2,Zd(e,r,l,s)}finally{P.p=g,j.T=d}}function jT(e,r,l,s){var d=j.T;j.T=null;var g=P.p;try{P.p=8,Zd(e,r,l,s)}finally{P.p=g,j.T=d}}function Zd(e,r,l,s){if(uu){var d=Qd(s);if(d===null)Ud(e,r,s,cu,l),o1(e,s);else if(BT(d,e,r,l,s))s.stopPropagation();else if(o1(e,s),r&4&&-1<$T.indexOf(e)){for(;d!==null;){var g=Ki(d);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var A=or(g.pendingLanes);if(A!==0){var w=g;for(w.pendingLanes|=2,w.entangledLanes|=2;A;){var U=1<<31-Te(A);w.entanglements[1]|=U,A&=~U}Qn(g),(Lt&6)===0&&(Ps=Yt()+500,to(0))}}break;case 13:w=sa(g,2),w!==null&&un(w,g,2),Qs(),Pd(g,2)}if(g=Qd(s),g===null&&Ud(e,r,s,cu,l),g===d)break;d=g}d!==null&&s.stopPropagation()}else Ud(e,r,s,null,l)}}function Qd(e){return e=Jc(e),Kd(e)}var cu=null;function Kd(e){if(cu=null,e=Qi(e),e!==null){var r=u(e);if(r===null)e=null;else{var l=r.tag;if(l===13){if(e=c(r),e!==null)return e;e=null}else if(l===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;e=null}else r!==e&&(e=null)}}return cu=e,null}function l1(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ae()){case ue:return 2;case me:return 8;case Kt:case Xe:return 32;case mn:return 268435456;default:return 32}default:return 32}}var Fd=!1,ni=null,ri=null,ii=null,so=new Map,uo=new Map,ai=[],$T="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 o1(e,r){switch(e){case"focusin":case"focusout":ni=null;break;case"dragenter":case"dragleave":ri=null;break;case"mouseover":case"mouseout":ii=null;break;case"pointerover":case"pointerout":so.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":uo.delete(r.pointerId)}}function co(e,r,l,s,d,g){return e===null||e.nativeEvent!==g?(e={blockedOn:r,domEventName:l,eventSystemFlags:s,nativeEvent:g,targetContainers:[d]},r!==null&&(r=Ki(r),r!==null&&a1(r)),e):(e.eventSystemFlags|=s,r=e.targetContainers,d!==null&&r.indexOf(d)===-1&&r.push(d),e)}function BT(e,r,l,s,d){switch(r){case"focusin":return ni=co(ni,e,r,l,s,d),!0;case"dragenter":return ri=co(ri,e,r,l,s,d),!0;case"mouseover":return ii=co(ii,e,r,l,s,d),!0;case"pointerover":var g=d.pointerId;return so.set(g,co(so.get(g)||null,e,r,l,s,d)),!0;case"gotpointercapture":return g=d.pointerId,uo.set(g,co(uo.get(g)||null,e,r,l,s,d)),!0}return!1}function s1(e){var r=Qi(e.target);if(r!==null){var l=u(r);if(l!==null){if(r=l.tag,r===13){if(r=c(l),r!==null){e.blockedOn=r,k2(e.priority,function(){if(l.tag===13){var s=sn();s=Gc(s);var d=sa(l,s);d!==null&&un(d,l,s),Pd(l,s)}});return}}else if(r===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fu(e){if(e.blockedOn!==null)return!1;for(var r=e.targetContainers;0<r.length;){var l=Qd(e.nativeEvent);if(l===null){l=e.nativeEvent;var s=new l.constructor(l.type,l);Wc=s,l.target.dispatchEvent(s),Wc=null}else return r=Ki(l),r!==null&&a1(r),e.blockedOn=l,!1;r.shift()}return!0}function u1(e,r,l){fu(e)&&l.delete(r)}function LT(){Fd=!1,ni!==null&&fu(ni)&&(ni=null),ri!==null&&fu(ri)&&(ri=null),ii!==null&&fu(ii)&&(ii=null),so.forEach(u1),uo.forEach(u1)}function du(e,r){e.blockedOn===r&&(e.blockedOn=null,Fd||(Fd=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,LT)))}var hu=null;function c1(e){hu!==e&&(hu=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){hu===e&&(hu=null);for(var r=0;r<e.length;r+=3){var l=e[r],s=e[r+1],d=e[r+2];if(typeof s!="function"){if(Kd(s||l)===null)continue;break}var g=Ki(l);g!==null&&(e.splice(r,3),r-=3,Kf(g,{pending:!0,data:d,method:l.method,action:s},s,d))}}))}function fo(e){function r(U){return du(U,e)}ni!==null&&du(ni,e),ri!==null&&du(ri,e),ii!==null&&du(ii,e),so.forEach(r),uo.forEach(r);for(var l=0;l<ai.length;l++){var s=ai[l];s.blockedOn===e&&(s.blockedOn=null)}for(;0<ai.length&&(l=ai[0],l.blockedOn===null);)s1(l),l.blockedOn===null&&ai.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(s=0;s<l.length;s+=3){var d=l[s],g=l[s+1],A=d[Pe]||null;if(typeof g=="function")A||c1(l);else if(A){var w=null;if(g&&g.hasAttribute("formAction")){if(d=g,A=g[Pe]||null)w=A.formAction;else if(Kd(d)!==null)continue}else w=A.action;typeof w=="function"?l[s+1]=w:(l.splice(s,3),s-=3),c1(l)}}}function Wd(e){this._internalRoot=e}mu.prototype.render=Wd.prototype.render=function(e){var r=this._internalRoot;if(r===null)throw Error(a(409));var l=r.current,s=sn();r1(l,s,e,r,null,null)},mu.prototype.unmount=Wd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var r=e.containerInfo;r1(e.current,2,null,e,null,null),Qs(),r[Zi]=null}};function mu(e){this._internalRoot=e}mu.prototype.unstable_scheduleHydration=function(e){if(e){var r=E0();e={blockedOn:null,target:e,priority:r};for(var l=0;l<ai.length&&r!==0&&r<ai[l].priority;l++);ai.splice(l,0,e),l===0&&s1(e)}};var f1=n.version;if(f1!=="19.1.0")throw Error(a(527,f1,"19.1.0"));P.findDOMNode=function(e){var r=e._reactInternals;if(r===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=m(r),e=e!==null?h(e):null,e=e===null?null:e.stateNode,e};var HT={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gu.isDisabled&&gu.supportsFiber)try{Ge=gu.inject(HT),te=gu}catch{}}return mo.createRoot=function(e,r){if(!o(e))throw Error(a(299));var l=!1,s="",d=Ep,g=Op,A=Rp,w=null;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onUncaughtError!==void 0&&(d=r.onUncaughtError),r.onCaughtError!==void 0&&(g=r.onCaughtError),r.onRecoverableError!==void 0&&(A=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(w=r.unstable_transitionCallbacks)),r=e1(e,1,!1,null,null,l,s,d,g,A,w,null),e[Zi]=r.current,Nd(e),new Wd(r)},mo.hydrateRoot=function(e,r,l){if(!o(e))throw Error(a(299));var s=!1,d="",g=Ep,A=Op,w=Rp,U=null,V=null;return l!=null&&(l.unstable_strictMode===!0&&(s=!0),l.identifierPrefix!==void 0&&(d=l.identifierPrefix),l.onUncaughtError!==void 0&&(g=l.onUncaughtError),l.onCaughtError!==void 0&&(A=l.onCaughtError),l.onRecoverableError!==void 0&&(w=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(U=l.unstable_transitionCallbacks),l.formState!==void 0&&(V=l.formState)),r=e1(e,1,!0,r,l??null,s,d,g,A,w,U,V),r.context=n1(null),l=r.current,s=sn(),s=Gc(s),d=Gr(s),d.callback=null,qr(l,d,s),l=s,r.current.lanes=l,yl(r,l),Qn(r),e[Zi]=r.current,Nd(e),new mu(r)},mo.version="19.1.0",mo}var S1;function WT(){if(S1)return th.exports;S1=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}return t(),th.exports=FT(),th.exports}var JT=WT();function ji(t,...n){const i=new URL(`https://mui.com/production-error/?code=${t}`);return n.forEach(a=>i.searchParams.append("args[]",a)),`Minified MUI error #${t}; visit ${i} for the full message.`}const Er="$$material";function I(){return I=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var a in i)({}).hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},I.apply(null,arguments)}var Y=ic();const tC=jb(Y),Bh=IT({__proto__:null,default:tC},[Y]);function eC(t){if(t.sheet)return t.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===t)return document.styleSheets[n]}function nC(t){var n=document.createElement("style");return n.setAttribute("data-emotion",t.key),t.nonce!==void 0&&n.setAttribute("nonce",t.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n}var Bb=function(){function t(i){var a=this;this._insertTag=function(o){var u;a.tags.length===0?a.insertionPoint?u=a.insertionPoint.nextSibling:a.prepend?u=a.container.firstChild:u=a.before:u=a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(o,u),a.tags.push(o)},this.isSpeedy=i.speedy===void 0?!0:i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var n=t.prototype;return n.hydrate=function(a){a.forEach(this._insertTag)},n.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(nC(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var u=eC(o);try{u.insertRule(a,u.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(a));this.ctr++},n.flush=function(){this.tags.forEach(function(a){var o;return(o=a.parentNode)==null?void 0:o.removeChild(a)}),this.tags=[],this.ctr=0},t}(),He="-ms-",Uu="-moz-",Ut="-webkit-",Lb="comm",cm="rule",fm="decl",rC="@import",Hb="@keyframes",iC="@layer",aC=Math.abs,ac=String.fromCharCode,lC=Object.assign;function oC(t,n){return ze(t,0)^45?(((n<<2^ze(t,0))<<2^ze(t,1))<<2^ze(t,2))<<2^ze(t,3):0}function Yb(t){return t.trim()}function sC(t,n){return(t=n.exec(t))?t[0]:t}function jt(t,n,i){return t.replace(n,i)}function Lh(t,n){return t.indexOf(n)}function ze(t,n){return t.charCodeAt(n)|0}function ko(t,n,i){return t.slice(n,i)}function Fn(t){return t.length}function dm(t){return t.length}function pu(t,n){return n.push(t),t}function uC(t,n){return t.map(n).join("")}var lc=1,Ka=1,Gb=0,en=0,ye=0,fl="";function oc(t,n,i,a,o,u,c){return{value:t,root:n,parent:i,type:a,props:o,children:u,line:lc,column:Ka,length:c,return:""}}function go(t,n){return lC(oc("",null,null,"",null,null,0),t,{length:-t.length},n)}function cC(){return ye}function fC(){return ye=en>0?ze(fl,--en):0,Ka--,ye===10&&(Ka=1,lc--),ye}function fn(){return ye=en<Gb?ze(fl,en++):0,Ka++,ye===10&&(Ka=1,lc++),ye}function tr(){return ze(fl,en)}function Ru(){return en}function qo(t,n){return ko(fl,t,n)}function Do(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function qb(t){return lc=Ka=1,Gb=Fn(fl=t),en=0,[]}function Ib(t){return fl="",t}function _u(t){return Yb(qo(en-1,Hh(t===91?t+2:t===40?t+1:t)))}function dC(t){for(;(ye=tr())&&ye<33;)fn();return Do(t)>2||Do(ye)>3?"":" "}function hC(t,n){for(;--n&&fn()&&!(ye<48||ye>102||ye>57&&ye<65||ye>70&&ye<97););return qo(t,Ru()+(n<6&&tr()==32&&fn()==32))}function Hh(t){for(;fn();)switch(ye){case t:return en;case 34:case 39:t!==34&&t!==39&&Hh(ye);break;case 40:t===41&&Hh(t);break;case 92:fn();break}return en}function mC(t,n){for(;fn()&&t+ye!==57;)if(t+ye===84&&tr()===47)break;return"/*"+qo(n,en-1)+"*"+ac(t===47?t:fn())}function gC(t){for(;!Do(tr());)fn();return qo(t,en)}function pC(t){return Ib(ku("",null,null,null,[""],t=qb(t),0,[0],t))}function ku(t,n,i,a,o,u,c,f,m){for(var h=0,p=0,y=c,v=0,b=0,x=0,S=1,C=1,E=1,_=0,O="",k=o,M=u,R=a,D=O;C;)switch(x=_,_=fn()){case 40:if(x!=108&&ze(D,y-1)==58){Lh(D+=jt(_u(_),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:D+=_u(_);break;case 9:case 10:case 13:case 32:D+=dC(x);break;case 92:D+=hC(Ru()-1,7);continue;case 47:switch(tr()){case 42:case 47:pu(yC(mC(fn(),Ru()),n,i),m);break;default:D+="/"}break;case 123*S:f[h++]=Fn(D)*E;case 125*S:case 59:case 0:switch(_){case 0:case 125:C=0;case 59+p:E==-1&&(D=jt(D,/\f/g,"")),b>0&&Fn(D)-y&&pu(b>32?T1(D+";",a,i,y-1):T1(jt(D," ","")+";",a,i,y-2),m);break;case 59:D+=";";default:if(pu(R=A1(D,n,i,h,p,o,f,O,k=[],M=[],y),u),_===123)if(p===0)ku(D,n,R,R,k,u,y,f,M);else switch(v===99&&ze(D,3)===110?100:v){case 100:case 108:case 109:case 115:ku(t,R,R,a&&pu(A1(t,R,R,0,0,o,f,O,o,k=[],y),M),o,M,y,f,a?k:M);break;default:ku(D,R,R,R,[""],M,0,f,M)}}h=p=b=0,S=E=1,O=D="",y=c;break;case 58:y=1+Fn(D),b=x;default:if(S<1){if(_==123)--S;else if(_==125&&S++==0&&fC()==125)continue}switch(D+=ac(_),_*S){case 38:E=p>0?1:(D+="\f",-1);break;case 44:f[h++]=(Fn(D)-1)*E,E=1;break;case 64:tr()===45&&(D+=_u(fn())),v=tr(),p=y=Fn(O=D+=gC(Ru())),_++;break;case 45:x===45&&Fn(D)==2&&(S=0)}}return u}function A1(t,n,i,a,o,u,c,f,m,h,p){for(var y=o-1,v=o===0?u:[""],b=dm(v),x=0,S=0,C=0;x<a;++x)for(var E=0,_=ko(t,y+1,y=aC(S=c[x])),O=t;E<b;++E)(O=Yb(S>0?v[E]+" "+_:jt(_,/&\f/g,v[E])))&&(m[C++]=O);return oc(t,n,i,o===0?cm:f,m,h,p)}function yC(t,n,i){return oc(t,n,i,Lb,ac(cC()),ko(t,2,-2),0)}function T1(t,n,i,a){return oc(t,n,i,fm,ko(t,0,a),ko(t,a+1,-1),a)}function Xa(t,n){for(var i="",a=dm(t),o=0;o<a;o++)i+=n(t[o],o,t,n)||"";return i}function vC(t,n,i,a){switch(t.type){case iC:if(t.children.length)break;case rC:case fm:return t.return=t.return||t.value;case Lb:return"";case Hb:return t.return=t.value+"{"+Xa(t.children,a)+"}";case cm:t.value=t.props.join(",")}return Fn(i=Xa(t.children,a))?t.return=t.value+"{"+i+"}":""}function bC(t){var n=dm(t);return function(i,a,o,u){for(var c="",f=0;f<n;f++)c+=t[f](i,a,o,u)||"";return c}}function xC(t){return function(n){n.root||(n=n.return)&&t(n)}}function Vb(t){var n=Object.create(null);return function(i){return n[i]===void 0&&(n[i]=t(i)),n[i]}}var SC=function(n,i,a){for(var o=0,u=0;o=u,u=tr(),o===38&&u===12&&(i[a]=1),!Do(u);)fn();return qo(n,en)},AC=function(n,i){var a=-1,o=44;do switch(Do(o)){case 0:o===38&&tr()===12&&(i[a]=1),n[a]+=SC(en-1,i,a);break;case 2:n[a]+=_u(o);break;case 4:if(o===44){n[++a]=tr()===58?"&\f":"",i[a]=n[a].length;break}default:n[a]+=ac(o)}while(o=fn());return n},TC=function(n,i){return Ib(AC(qb(n),i))},C1=new WeakMap,CC=function(n){if(!(n.type!=="rule"||!n.parent||n.length<1)){for(var i=n.value,a=n.parent,o=n.column===a.column&&n.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(n.props.length===1&&i.charCodeAt(0)!==58&&!C1.get(a))&&!o){C1.set(n,!0);for(var u=[],c=TC(i,u),f=a.props,m=0,h=0;m<c.length;m++)for(var p=0;p<f.length;p++,h++)n.props[h]=u[m]?c[m].replace(/&\f/g,f[p]):f[p]+" "+c[m]}}},wC=function(n){if(n.type==="decl"){var i=n.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(n.return="",n.value="")}};function Xb(t,n){switch(oC(t,n)){case 5103:return Ut+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ut+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Ut+t+Uu+t+He+t+t;case 6828:case 4268:return Ut+t+He+t+t;case 6165:return Ut+t+He+"flex-"+t+t;case 5187:return Ut+t+jt(t,/(\w+).+(:[^]+)/,Ut+"box-$1$2"+He+"flex-$1$2")+t;case 5443:return Ut+t+He+"flex-item-"+jt(t,/flex-|-self/,"")+t;case 4675:return Ut+t+He+"flex-line-pack"+jt(t,/align-content|flex-|-self/,"")+t;case 5548:return Ut+t+He+jt(t,"shrink","negative")+t;case 5292:return Ut+t+He+jt(t,"basis","preferred-size")+t;case 6060:return Ut+"box-"+jt(t,"-grow","")+Ut+t+He+jt(t,"grow","positive")+t;case 4554:return Ut+jt(t,/([^-])(transform)/g,"$1"+Ut+"$2")+t;case 6187:return jt(jt(jt(t,/(zoom-|grab)/,Ut+"$1"),/(image-set)/,Ut+"$1"),t,"")+t;case 5495:case 3959:return jt(t,/(image-set\([^]*)/,Ut+"$1$`$1");case 4968:return jt(jt(t,/(.+:)(flex-)?(.*)/,Ut+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ut+t+t;case 4095:case 3583:case 4068:case 2532:return jt(t,/(.+)-inline(.+)/,Ut+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Fn(t)-1-n>6)switch(ze(t,n+1)){case 109:if(ze(t,n+4)!==45)break;case 102:return jt(t,/(.+:)(.+)-([^]+)/,"$1"+Ut+"$2-$3$1"+Uu+(ze(t,n+3)==108?"$3":"$2-$3"))+t;case 115:return~Lh(t,"stretch")?Xb(jt(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(ze(t,n+1)!==115)break;case 6444:switch(ze(t,Fn(t)-3-(~Lh(t,"!important")&&10))){case 107:return jt(t,":",":"+Ut)+t;case 101:return jt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ut+(ze(t,14)===45?"inline-":"")+"box$3$1"+Ut+"$2$3$1"+He+"$2box$3")+t}break;case 5936:switch(ze(t,n+11)){case 114:return Ut+t+He+jt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Ut+t+He+jt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Ut+t+He+jt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Ut+t+He+t+t}return t}var MC=function(n,i,a,o){if(n.length>-1&&!n.return)switch(n.type){case fm:n.return=Xb(n.value,n.length);break;case Hb:return Xa([go(n,{value:jt(n.value,"@","@"+Ut)})],o);case cm:if(n.length)return uC(n.props,function(u){switch(sC(u,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xa([go(n,{props:[jt(u,/:(read-\w+)/,":"+Uu+"$1")]})],o);case"::placeholder":return Xa([go(n,{props:[jt(u,/:(plac\w+)/,":"+Ut+"input-$1")]}),go(n,{props:[jt(u,/:(plac\w+)/,":"+Uu+"$1")]}),go(n,{props:[jt(u,/:(plac\w+)/,He+"input-$1")]})],o)}return""})}},EC=[MC],Pb=function(n){var i=n.key;if(i==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(S){var C=S.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=n.stylisPlugins||EC,u={},c,f=[];c=n.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(S){for(var C=S.getAttribute("data-emotion").split(" "),E=1;E<C.length;E++)u[C[E]]=!0;f.push(S)});var m,h=[CC,wC];{var p,y=[vC,xC(function(S){p.insert(S)})],v=bC(h.concat(o,y)),b=function(C){return Xa(pC(C),v)};m=function(C,E,_,O){p=_,b(C?C+"{"+E.styles+"}":E.styles),O&&(x.inserted[E.name]=!0)}}var x={key:i,sheet:new Bb({key:i,container:c,nonce:n.nonce,speedy:n.speedy,prepend:n.prepend,insertionPoint:n.insertionPoint}),nonce:n.nonce,inserted:u,registered:{},insert:m};return x.sheet.hydrate(f),x},ah={exports:{}},$t={};/** @license React v16.13.1 50 - * react-is.production.min.js 51 - * 52 - * Copyright (c) Facebook, Inc. and its affiliates. 53 - * 54 - * This source code is licensed under the MIT license found in the 55 - * LICENSE file in the root directory of this source tree. 56 - */var w1;function OC(){if(w1)return $t;w1=1;var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,u=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,f=t?Symbol.for("react.context"):60110,m=t?Symbol.for("react.async_mode"):60111,h=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,y=t?Symbol.for("react.suspense"):60113,v=t?Symbol.for("react.suspense_list"):60120,b=t?Symbol.for("react.memo"):60115,x=t?Symbol.for("react.lazy"):60116,S=t?Symbol.for("react.block"):60121,C=t?Symbol.for("react.fundamental"):60117,E=t?Symbol.for("react.responder"):60118,_=t?Symbol.for("react.scope"):60119;function O(M){if(typeof M=="object"&&M!==null){var R=M.$$typeof;switch(R){case n:switch(M=M.type,M){case m:case h:case a:case u:case o:case y:return M;default:switch(M=M&&M.$$typeof,M){case f:case p:case x:case b:case c:return M;default:return R}}case i:return R}}}function k(M){return O(M)===h}return $t.AsyncMode=m,$t.ConcurrentMode=h,$t.ContextConsumer=f,$t.ContextProvider=c,$t.Element=n,$t.ForwardRef=p,$t.Fragment=a,$t.Lazy=x,$t.Memo=b,$t.Portal=i,$t.Profiler=u,$t.StrictMode=o,$t.Suspense=y,$t.isAsyncMode=function(M){return k(M)||O(M)===m},$t.isConcurrentMode=k,$t.isContextConsumer=function(M){return O(M)===f},$t.isContextProvider=function(M){return O(M)===c},$t.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===n},$t.isForwardRef=function(M){return O(M)===p},$t.isFragment=function(M){return O(M)===a},$t.isLazy=function(M){return O(M)===x},$t.isMemo=function(M){return O(M)===b},$t.isPortal=function(M){return O(M)===i},$t.isProfiler=function(M){return O(M)===u},$t.isStrictMode=function(M){return O(M)===o},$t.isSuspense=function(M){return O(M)===y},$t.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===a||M===h||M===u||M===o||M===y||M===v||typeof M=="object"&&M!==null&&(M.$$typeof===x||M.$$typeof===b||M.$$typeof===c||M.$$typeof===f||M.$$typeof===p||M.$$typeof===C||M.$$typeof===E||M.$$typeof===_||M.$$typeof===S)},$t.typeOf=O,$t}var M1;function RC(){return M1||(M1=1,ah.exports=OC()),ah.exports}var lh,E1;function _C(){if(E1)return lh;E1=1;var t=RC(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};u[t.ForwardRef]=a,u[t.Memo]=o;function c(x){return t.isMemo(x)?o:u[x.$$typeof]||n}var f=Object.defineProperty,m=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,v=Object.prototype;function b(x,S,C){if(typeof S!="string"){if(v){var E=y(S);E&&E!==v&&b(x,E,C)}var _=m(S);h&&(_=_.concat(h(S)));for(var O=c(x),k=c(S),M=0;M<_.length;++M){var R=_[M];if(!i[R]&&!(C&&C[R])&&!(k&&k[R])&&!(O&&O[R])){var D=p(S,R);try{f(x,R,D)}catch{}}}}return x}return lh=b,lh}_C();var kC=!0;function Zb(t,n,i){var a="";return i.split(" ").forEach(function(o){t[o]!==void 0?n.push(t[o]+";"):o&&(a+=o+" ")}),a}var hm=function(n,i,a){var o=n.key+"-"+i.name;(a===!1||kC===!1)&&n.registered[o]===void 0&&(n.registered[o]=i.styles)},mm=function(n,i,a){hm(n,i,a);var o=n.key+"-"+i.name;if(n.inserted[i.name]===void 0){var u=i;do n.insert(i===u?"."+o:"",u,n.sheet,!0),u=u.next;while(u!==void 0)}};function DC(t){for(var n=0,i,a=0,o=t.length;o>=4;++a,o-=4)i=t.charCodeAt(a)&255|(t.charCodeAt(++a)&255)<<8|(t.charCodeAt(++a)&255)<<16|(t.charCodeAt(++a)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,n=(i&65535)*1540483477+((i>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(t.charCodeAt(a+2)&255)<<16;case 2:n^=(t.charCodeAt(a+1)&255)<<8;case 1:n^=t.charCodeAt(a)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var zC={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},NC=/[A-Z]|^ms/g,UC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qb=function(n){return n.charCodeAt(1)===45},O1=function(n){return n!=null&&typeof n!="boolean"},oh=Vb(function(t){return Qb(t)?t:t.replace(NC,"-$&").toLowerCase()}),R1=function(n,i){switch(n){case"animation":case"animationName":if(typeof i=="string")return i.replace(UC,function(a,o,u){return Wn={name:o,styles:u,next:Wn},o})}return zC[n]!==1&&!Qb(n)&&typeof i=="number"&&i!==0?i+"px":i};function zo(t,n,i){if(i==null)return"";var a=i;if(a.__emotion_styles!==void 0)return a;switch(typeof i){case"boolean":return"";case"object":{var o=i;if(o.anim===1)return Wn={name:o.name,styles:o.styles,next:Wn},o.name;var u=i;if(u.styles!==void 0){var c=u.next;if(c!==void 0)for(;c!==void 0;)Wn={name:c.name,styles:c.styles,next:Wn},c=c.next;var f=u.styles+";";return f}return jC(t,n,i)}case"function":{if(t!==void 0){var m=Wn,h=i(t);return Wn=m,zo(t,n,h)}break}}var p=i;if(n==null)return p;var y=n[p];return y!==void 0?y:p}function jC(t,n,i){var a="";if(Array.isArray(i))for(var o=0;o<i.length;o++)a+=zo(t,n,i[o])+";";else for(var u in i){var c=i[u];if(typeof c!="object"){var f=c;n!=null&&n[f]!==void 0?a+=u+"{"+n[f]+"}":O1(f)&&(a+=oh(u)+":"+R1(u,f)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(n==null||n[c[0]]===void 0))for(var m=0;m<c.length;m++)O1(c[m])&&(a+=oh(u)+":"+R1(u,c[m])+";");else{var h=zo(t,n,c);switch(u){case"animation":case"animationName":{a+=oh(u)+":"+h+";";break}default:a+=u+"{"+h+"}"}}}return a}var _1=/label:\s*([^\s;{]+)\s*(;|$)/g,Wn;function sc(t,n,i){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var a=!0,o="";Wn=void 0;var u=t[0];if(u==null||u.raw===void 0)a=!1,o+=zo(i,n,u);else{var c=u;o+=c[0]}for(var f=1;f<t.length;f++)if(o+=zo(i,n,t[f]),a){var m=u;o+=m[f]}_1.lastIndex=0;for(var h="",p;(p=_1.exec(o))!==null;)h+="-"+p[1];var y=DC(o)+h;return{name:y,styles:o,next:Wn}}var $C=function(n){return n()},Kb=Bh.useInsertionEffect?Bh.useInsertionEffect:!1,Fb=Kb||$C,k1=Kb||Y.useLayoutEffect,Wb=Y.createContext(typeof HTMLElement<"u"?Pb({key:"css"}):null),BC=Wb.Provider,gm=function(n){return Y.forwardRef(function(i,a){var o=Y.useContext(Wb);return n(i,o,a)})},Io=Y.createContext({}),pm={}.hasOwnProperty,Yh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",LC=function(n,i){var a={};for(var o in i)pm.call(i,o)&&(a[o]=i[o]);return a[Yh]=n,a},HC=function(n){var i=n.cache,a=n.serialized,o=n.isStringTag;return hm(i,a,o),Fb(function(){return mm(i,a,o)}),null},YC=gm(function(t,n,i){var a=t.css;typeof a=="string"&&n.registered[a]!==void 0&&(a=n.registered[a]);var o=t[Yh],u=[a],c="";typeof t.className=="string"?c=Zb(n.registered,u,t.className):t.className!=null&&(c=t.className+" ");var f=sc(u,void 0,Y.useContext(Io));c+=n.key+"-"+f.name;var m={};for(var h in t)pm.call(t,h)&&h!=="css"&&h!==Yh&&(m[h]=t[h]);return m.className=c,i&&(m.ref=i),Y.createElement(Y.Fragment,null,Y.createElement(HC,{cache:n,serialized:f,isStringTag:typeof o=="string"}),Y.createElement(o,m))}),GC=YC,D1=function(n,i){var a=arguments;if(i==null||!pm.call(i,"css"))return Y.createElement.apply(void 0,a);var o=a.length,u=new Array(o);u[0]=GC,u[1]=LC(n,i);for(var c=2;c<o;c++)u[c]=a[c];return Y.createElement.apply(null,u)};(function(t){var n;n||(n=t.JSX||(t.JSX={}))})(D1||(D1={}));var qC=gm(function(t,n){var i=t.styles,a=sc([i],void 0,Y.useContext(Io)),o=Y.useRef();return k1(function(){var u=n.key+"-global",c=new n.sheet.constructor({key:u,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),f=!1,m=document.querySelector('style[data-emotion="'+u+" "+a.name+'"]');return n.sheet.tags.length&&(c.before=n.sheet.tags[0]),m!==null&&(f=!0,m.setAttribute("data-emotion",u),c.hydrate([m])),o.current=[c,f],function(){c.flush()}},[n]),k1(function(){var u=o.current,c=u[0],f=u[1];if(f){u[1]=!1;return}if(a.next!==void 0&&mm(n,a.next,!0),c.tags.length){var m=c.tags[c.tags.length-1].nextElementSibling;c.before=m,c.flush()}n.insert("",a,c,!1)},[n,a.name]),null}),IC=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|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|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|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|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,VC=Vb(function(t){return IC.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),XC=VC,PC=function(n){return n!=="theme"},z1=function(n){return typeof n=="string"&&n.charCodeAt(0)>96?XC:PC},N1=function(n,i,a){var o;if(i){var u=i.shouldForwardProp;o=n.__emotion_forwardProp&&u?function(c){return n.__emotion_forwardProp(c)&&u(c)}:u}return typeof o!="function"&&a&&(o=n.__emotion_forwardProp),o},ZC=function(n){var i=n.cache,a=n.serialized,o=n.isStringTag;return hm(i,a,o),Fb(function(){return mm(i,a,o)}),null},QC=function t(n,i){var a=n.__emotion_real===n,o=a&&n.__emotion_base||n,u,c;i!==void 0&&(u=i.label,c=i.target);var f=N1(n,i,a),m=f||z1(o),h=!m("as");return function(){var p=arguments,y=a&&n.__emotion_styles!==void 0?n.__emotion_styles.slice(0):[];if(u!==void 0&&y.push("label:"+u+";"),p[0]==null||p[0].raw===void 0)y.push.apply(y,p);else{var v=p[0];y.push(v[0]);for(var b=p.length,x=1;x<b;x++)y.push(p[x],v[x])}var S=gm(function(C,E,_){var O=h&&C.as||o,k="",M=[],R=C;if(C.theme==null){R={};for(var D in C)R[D]=C[D];R.theme=Y.useContext(Io)}typeof C.className=="string"?k=Zb(E.registered,M,C.className):C.className!=null&&(k=C.className+" ");var L=sc(y.concat(M),E.registered,R);k+=E.key+"-"+L.name,c!==void 0&&(k+=" "+c);var $=h&&f===void 0?z1(O):m,T={};for(var z in C)h&&z==="as"||$(z)&&(T[z]=C[z]);return T.className=k,_&&(T.ref=_),Y.createElement(Y.Fragment,null,Y.createElement(ZC,{cache:E,serialized:L,isStringTag:typeof O=="string"}),Y.createElement(O,T))});return S.displayName=u!==void 0?u:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",S.defaultProps=n.defaultProps,S.__emotion_real=S,S.__emotion_base=o,S.__emotion_styles=y,S.__emotion_forwardProp=f,Object.defineProperty(S,"toString",{value:function(){return"."+c}}),S.withComponent=function(C,E){var _=t(C,I({},i,E,{shouldForwardProp:N1(S,E,!0)}));return _.apply(void 0,y)},S}},KC=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Gh=QC.bind(null);KC.forEach(function(t){Gh[t]=Gh(t)});const sh=new Map,FC=(t,n)=>{const i=Pb(t);return i.sheet=new n({key:i.key,nonce:i.sheet.nonce,container:i.sheet.container,speedy:i.sheet.isSpeedy,prepend:i.sheet.prepend,insertionPoint:i.sheet.insertionPoint}),i};let oi;if(typeof document=="object"&&(oi=document.querySelector('[name="emotion-insertion-point"]'),!oi)){oi=document.createElement("meta"),oi.setAttribute("name","emotion-insertion-point"),oi.setAttribute("content","");const t=document.querySelector("head");t&&t.prepend(oi)}function WC(t,n){if(t||n){class i extends Bb{insert(u,c){return this.key&&this.key.endsWith("global")&&(this.before=oi),super.insert(u,c)}}const a=FC({key:"css",insertionPoint:t?oi:void 0},i);if(n){const o=a.insert;a.insert=(...u)=>(u[1].styles.startsWith("@layer")||(u[1].styles=`@layer mui {${u[1].styles}}`),o(...u))}return a}}function JC(t){const{injectFirst:n,enableCssLayer:i,children:a}=t,o=Y.useMemo(()=>{const u=`${n}-${i}`;if(sh.has(u))return sh.get(u);const c=WC(n,i);return sh.set(u,c),c},[n,i]);return o?H.jsx(BC,{value:o,children:a}):a}function tw(t){return t==null||Object.keys(t).length===0}function ew(t){const{styles:n,defaultTheme:i={}}=t,a=typeof n=="function"?o=>n(tw(o)?i:o):n;return H.jsx(qC,{styles:a})}function nw(t,n){return Gh(t,n)}function rw(t,n){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=n(t.__emotion_styles))}const U1=[];function j1(t){return U1[0]=t,sc(U1)}var uh={exports:{}},Vt={};/** 57 - * @license React 58 - * react-is.production.js 59 - * 60 - * Copyright (c) Meta Platforms, Inc. and affiliates. 61 - * 62 - * This source code is licensed under the MIT license found in the 63 - * LICENSE file in the root directory of this source tree. 64 - */var $1;function iw(){if($1)return Vt;$1=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function x(S){if(typeof S=="object"&&S!==null){var C=S.$$typeof;switch(C){case t:switch(S=S.type,S){case i:case o:case a:case m:case h:case v:return S;default:switch(S=S&&S.$$typeof,S){case c:case f:case y:case p:return S;case u:return S;default:return C}}case n:return C}}}return Vt.ContextConsumer=u,Vt.ContextProvider=c,Vt.Element=t,Vt.ForwardRef=f,Vt.Fragment=i,Vt.Lazy=y,Vt.Memo=p,Vt.Portal=n,Vt.Profiler=o,Vt.StrictMode=a,Vt.Suspense=m,Vt.SuspenseList=h,Vt.isContextConsumer=function(S){return x(S)===u},Vt.isContextProvider=function(S){return x(S)===c},Vt.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},Vt.isForwardRef=function(S){return x(S)===f},Vt.isFragment=function(S){return x(S)===i},Vt.isLazy=function(S){return x(S)===y},Vt.isMemo=function(S){return x(S)===p},Vt.isPortal=function(S){return x(S)===n},Vt.isProfiler=function(S){return x(S)===o},Vt.isStrictMode=function(S){return x(S)===a},Vt.isSuspense=function(S){return x(S)===m},Vt.isSuspenseList=function(S){return x(S)===h},Vt.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===i||S===o||S===a||S===m||S===h||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===p||S.$$typeof===c||S.$$typeof===u||S.$$typeof===f||S.$$typeof===b||S.getModuleId!==void 0)},Vt.typeOf=x,Vt}var B1;function aw(){return B1||(B1=1,uh.exports=iw()),uh.exports}var Jb=aw();function Jn(t){if(typeof t!="object"||t===null)return!1;const n=Object.getPrototypeOf(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function tx(t){if(Y.isValidElement(t)||Jb.isValidElementType(t)||!Jn(t))return t;const n={};return Object.keys(t).forEach(i=>{n[i]=tx(t[i])}),n}function dn(t,n,i={clone:!0}){const a=i.clone?{...t}:t;return Jn(t)&&Jn(n)&&Object.keys(n).forEach(o=>{Y.isValidElement(n[o])||Jb.isValidElementType(n[o])?a[o]=n[o]:Jn(n[o])&&Object.prototype.hasOwnProperty.call(t,o)&&Jn(t[o])?a[o]=dn(t[o],n[o],i):i.clone?a[o]=Jn(n[o])?tx(n[o]):n[o]:a[o]=n[o]}),a}const lw=t=>{const n=Object.keys(t).map(i=>({key:i,val:t[i]}))||[];return n.sort((i,a)=>i.val-a.val),n.reduce((i,a)=>({...i,[a.key]:a.val}),{})};function ow(t){const{values:n={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:a=5,...o}=t,u=lw(n),c=Object.keys(u);function f(v){return`@media (min-width:${typeof n[v]=="number"?n[v]:v}${i})`}function m(v){return`@media (max-width:${(typeof n[v]=="number"?n[v]:v)-a/100}${i})`}function h(v,b){const x=c.indexOf(b);return`@media (min-width:${typeof n[v]=="number"?n[v]:v}${i}) and (max-width:${(x!==-1&&typeof n[c[x]]=="number"?n[c[x]]:b)-a/100}${i})`}function p(v){return c.indexOf(v)+1<c.length?h(v,c[c.indexOf(v)+1]):f(v)}function y(v){const b=c.indexOf(v);return b===0?f(c[1]):b===c.length-1?m(c[b]):h(v,c[c.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:c,values:u,up:f,down:m,between:h,only:p,not:y,unit:i,...o}}function sw(t,n){if(!t.containerQueries)return n;const i=Object.keys(n).filter(a=>a.startsWith("@container")).sort((a,o)=>{var c,f;const u=/min-width:\s*([0-9.]+)/;return+(((c=a.match(u))==null?void 0:c[1])||0)-+(((f=o.match(u))==null?void 0:f[1])||0)});return i.length?i.reduce((a,o)=>{const u=n[o];return delete a[o],a[o]=u,a},{...n}):n}function uw(t,n){return n==="@"||n.startsWith("@")&&(t.some(i=>n.startsWith(`@${i}`))||!!n.match(/^@\d/))}function cw(t,n){const i=n.match(/^@([^/]+)?\/?(.+)?$/);if(!i)return null;const[,a,o]=i,u=Number.isNaN(+a)?a||0:+a;return t.containerQueries(o).up(u)}function fw(t){const n=(u,c)=>u.replace("@media",c?`@container ${c}`:"@container");function i(u,c){u.up=(...f)=>n(t.breakpoints.up(...f),c),u.down=(...f)=>n(t.breakpoints.down(...f),c),u.between=(...f)=>n(t.breakpoints.between(...f),c),u.only=(...f)=>n(t.breakpoints.only(...f),c),u.not=(...f)=>{const m=n(t.breakpoints.not(...f),c);return m.includes("not all and")?m.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):m}}const a={},o=u=>(i(a,u),a);return i(o),{...t,containerQueries:o}}const dw={borderRadius:4};function Oo(t,n){return n?dn(t,n,{clone:!1}):t}const uc={xs:0,sm:600,md:900,lg:1200,xl:1536},L1={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${uc[t]}px)`},hw={containerQueries:t=>({up:n=>{let i=typeof n=="number"?n:uc[n]||n;return typeof i=="number"&&(i=`${i}px`),t?`@container ${t} (min-width:${i})`:`@container (min-width:${i})`}})};function _r(t,n,i){const a=t.theme||{};if(Array.isArray(n)){const u=a.breakpoints||L1;return n.reduce((c,f,m)=>(c[u.up(u.keys[m])]=i(n[m]),c),{})}if(typeof n=="object"){const u=a.breakpoints||L1;return Object.keys(n).reduce((c,f)=>{if(uw(u.keys,f)){const m=cw(a.containerQueries?a:hw,f);m&&(c[m]=i(n[f],f))}else if(Object.keys(u.values||uc).includes(f)){const m=u.up(f);c[m]=i(n[f],f)}else{const m=f;c[m]=n[m]}return c},{})}return i(n)}function mw(t={}){var i;return((i=t.keys)==null?void 0:i.reduce((a,o)=>{const u=t.up(o);return a[u]={},a},{}))||{}}function gw(t,n){return t.reduce((i,a)=>{const o=i[a];return(!o||Object.keys(o).length===0)&&delete i[a],i},n)}function No(t){if(typeof t!="string")throw new Error(ji(7));return t.charAt(0).toUpperCase()+t.slice(1)}function cc(t,n,i=!0){if(!n||typeof n!="string")return null;if(t&&t.vars&&i){const a=`vars.${n}`.split(".").reduce((o,u)=>o&&o[u]?o[u]:null,t);if(a!=null)return a}return n.split(".").reduce((a,o)=>a&&a[o]!=null?a[o]:null,t)}function ju(t,n,i,a=i){let o;return typeof t=="function"?o=t(i):Array.isArray(t)?o=t[i]||a:o=cc(t,i)||a,n&&(o=n(o,a,t)),o}function de(t){const{prop:n,cssProperty:i=t.prop,themeKey:a,transform:o}=t,u=c=>{if(c[n]==null)return null;const f=c[n],m=c.theme,h=cc(m,a)||{};return _r(c,f,y=>{let v=ju(h,o,y);return y===v&&typeof y=="string"&&(v=ju(h,o,`${n}${y==="default"?"":No(y)}`,y)),i===!1?v:{[i]:v}})};return u.propTypes={},u.filterProps=[n],u}function pw(t){const n={};return i=>(n[i]===void 0&&(n[i]=t(i)),n[i])}const yw={m:"margin",p:"padding"},vw={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},H1={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},bw=pw(t=>{if(t.length>2)if(H1[t])t=H1[t];else return[t];const[n,i]=t.split(""),a=yw[n],o=vw[i]||"";return Array.isArray(o)?o.map(u=>a+u):[a+o]}),ym=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],vm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...ym,...vm];function Vo(t,n,i,a){const o=cc(t,n,!0)??i;return typeof o=="number"||typeof o=="string"?u=>typeof u=="string"?u:typeof o=="string"?o.startsWith("var(")&&u===0?0:o.startsWith("var(")&&u===1?o:`calc(${u} * ${o})`:o*u:Array.isArray(o)?u=>{if(typeof u=="string")return u;const c=Math.abs(u),f=o[c];return u>=0?f:typeof f=="number"?-f:typeof f=="string"&&f.startsWith("var(")?`calc(-1 * ${f})`:`-${f}`}:typeof o=="function"?o:()=>{}}function bm(t){return Vo(t,"spacing",8)}function Xo(t,n){return typeof n=="string"||n==null?n:t(n)}function xw(t,n){return i=>t.reduce((a,o)=>(a[o]=Xo(n,i),a),{})}function Sw(t,n,i,a){if(!n.includes(i))return null;const o=bw(i),u=xw(o,a),c=t[i];return _r(t,c,u)}function ex(t,n){const i=bm(t.theme);return Object.keys(t).map(a=>Sw(t,n,a,i)).reduce(Oo,{})}function oe(t){return ex(t,ym)}oe.propTypes={};oe.filterProps=ym;function se(t){return ex(t,vm)}se.propTypes={};se.filterProps=vm;function nx(t=8,n=bm({spacing:t})){if(t.mui)return t;const i=(...a)=>(a.length===0?[1]:a).map(u=>{const c=n(u);return typeof c=="number"?`${c}px`:c}).join(" ");return i.mui=!0,i}function fc(...t){const n=t.reduce((a,o)=>(o.filterProps.forEach(u=>{a[u]=o}),a),{}),i=a=>Object.keys(a).reduce((o,u)=>n[u]?Oo(o,n[u](a)):o,{});return i.propTypes={},i.filterProps=t.reduce((a,o)=>a.concat(o.filterProps),[]),i}function wn(t){return typeof t!="number"?t:`${t}px solid`}function Dn(t,n){return de({prop:t,themeKey:"borders",transform:n})}const Aw=Dn("border",wn),Tw=Dn("borderTop",wn),Cw=Dn("borderRight",wn),ww=Dn("borderBottom",wn),Mw=Dn("borderLeft",wn),Ew=Dn("borderColor"),Ow=Dn("borderTopColor"),Rw=Dn("borderRightColor"),_w=Dn("borderBottomColor"),kw=Dn("borderLeftColor"),Dw=Dn("outline",wn),zw=Dn("outlineColor"),dc=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const n=Vo(t.theme,"shape.borderRadius",4),i=a=>({borderRadius:Xo(n,a)});return _r(t,t.borderRadius,i)}return null};dc.propTypes={};dc.filterProps=["borderRadius"];fc(Aw,Tw,Cw,ww,Mw,Ew,Ow,Rw,_w,kw,dc,Dw,zw);const hc=t=>{if(t.gap!==void 0&&t.gap!==null){const n=Vo(t.theme,"spacing",8),i=a=>({gap:Xo(n,a)});return _r(t,t.gap,i)}return null};hc.propTypes={};hc.filterProps=["gap"];const mc=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const n=Vo(t.theme,"spacing",8),i=a=>({columnGap:Xo(n,a)});return _r(t,t.columnGap,i)}return null};mc.propTypes={};mc.filterProps=["columnGap"];const gc=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const n=Vo(t.theme,"spacing",8),i=a=>({rowGap:Xo(n,a)});return _r(t,t.rowGap,i)}return null};gc.propTypes={};gc.filterProps=["rowGap"];const Nw=de({prop:"gridColumn"}),Uw=de({prop:"gridRow"}),jw=de({prop:"gridAutoFlow"}),$w=de({prop:"gridAutoColumns"}),Bw=de({prop:"gridAutoRows"}),Lw=de({prop:"gridTemplateColumns"}),Hw=de({prop:"gridTemplateRows"}),Yw=de({prop:"gridTemplateAreas"}),Gw=de({prop:"gridArea"});fc(hc,mc,gc,Nw,Uw,jw,$w,Bw,Lw,Hw,Yw,Gw);function Pa(t,n){return n==="grey"?n:t}const qw=de({prop:"color",themeKey:"palette",transform:Pa}),Iw=de({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Pa}),Vw=de({prop:"backgroundColor",themeKey:"palette",transform:Pa});fc(qw,Iw,Vw);function cn(t){return t<=1&&t!==0?`${t*100}%`:t}const Xw=de({prop:"width",transform:cn}),xm=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const n=i=>{var o,u,c,f,m;const a=((c=(u=(o=t.theme)==null?void 0:o.breakpoints)==null?void 0:u.values)==null?void 0:c[i])||uc[i];return a?((m=(f=t.theme)==null?void 0:f.breakpoints)==null?void 0:m.unit)!=="px"?{maxWidth:`${a}${t.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:cn(i)}};return _r(t,t.maxWidth,n)}return null};xm.filterProps=["maxWidth"];const Pw=de({prop:"minWidth",transform:cn}),Zw=de({prop:"height",transform:cn}),Qw=de({prop:"maxHeight",transform:cn}),Kw=de({prop:"minHeight",transform:cn});de({prop:"size",cssProperty:"width",transform:cn});de({prop:"size",cssProperty:"height",transform:cn});const Fw=de({prop:"boxSizing"});fc(Xw,xm,Pw,Zw,Qw,Kw,Fw);const Po={border:{themeKey:"borders",transform:wn},borderTop:{themeKey:"borders",transform:wn},borderRight:{themeKey:"borders",transform:wn},borderBottom:{themeKey:"borders",transform:wn},borderLeft:{themeKey:"borders",transform:wn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:dc},color:{themeKey:"palette",transform:Pa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Pa},backgroundColor:{themeKey:"palette",transform:Pa},p:{style:se},pt:{style:se},pr:{style:se},pb:{style:se},pl:{style:se},px:{style:se},py:{style:se},padding:{style:se},paddingTop:{style:se},paddingRight:{style:se},paddingBottom:{style:se},paddingLeft:{style:se},paddingX:{style:se},paddingY:{style:se},paddingInline:{style:se},paddingInlineStart:{style:se},paddingInlineEnd:{style:se},paddingBlock:{style:se},paddingBlockStart:{style:se},paddingBlockEnd:{style:se},m:{style:oe},mt:{style:oe},mr:{style:oe},mb:{style:oe},ml:{style:oe},mx:{style:oe},my:{style:oe},margin:{style:oe},marginTop:{style:oe},marginRight:{style:oe},marginBottom:{style:oe},marginLeft:{style:oe},marginX:{style:oe},marginY:{style:oe},marginInline:{style:oe},marginInlineStart:{style:oe},marginInlineEnd:{style:oe},marginBlock:{style:oe},marginBlockStart:{style:oe},marginBlockEnd:{style:oe},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:hc},rowGap:{style:gc},columnGap:{style:mc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:cn},maxWidth:{style:xm},minWidth:{transform:cn},height:{transform:cn},maxHeight:{transform:cn},minHeight:{transform:cn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ww(...t){const n=t.reduce((a,o)=>a.concat(Object.keys(o)),[]),i=new Set(n);return t.every(a=>i.size===Object.keys(a).length)}function Jw(t,n){return typeof t=="function"?t(n):t}function tM(){function t(i,a,o,u){const c={[i]:a,theme:o},f=u[i];if(!f)return{[i]:a};const{cssProperty:m=i,themeKey:h,transform:p,style:y}=f;if(a==null)return null;if(h==="typography"&&a==="inherit")return{[i]:a};const v=cc(o,h)||{};return y?y(c):_r(c,a,x=>{let S=ju(v,p,x);return x===S&&typeof x=="string"&&(S=ju(v,p,`${i}${x==="default"?"":No(x)}`,x)),m===!1?S:{[m]:S}})}function n(i){const{sx:a,theme:o={}}=i||{};if(!a)return null;const u=o.unstable_sxConfig??Po;function c(f){let m=f;if(typeof f=="function")m=f(o);else if(typeof f!="object")return f;if(!m)return null;const h=mw(o.breakpoints),p=Object.keys(h);let y=h;return Object.keys(m).forEach(v=>{const b=Jw(m[v],o);if(b!=null)if(typeof b=="object")if(u[v])y=Oo(y,t(v,b,o,u));else{const x=_r({theme:o},b,S=>({[v]:S}));Ww(x,b)?y[v]=n({sx:b,theme:o}):y=Oo(y,x)}else y=Oo(y,t(v,b,o,u))}),sw(o,gw(p,y))}return Array.isArray(a)?a.map(c):c(a)}return n}const $i=tM();$i.filterProps=["sx"];function eM(t,n){var a;const i=this;if(i.vars){if(!((a=i.colorSchemes)!=null&&a[t])||typeof i.getColorSchemeSelector!="function")return{};let o=i.getColorSchemeSelector(t);return o==="&"?n:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:n})}return i.palette.mode===t?n:{}}function Sm(t={},...n){const{breakpoints:i={},palette:a={},spacing:o,shape:u={},...c}=t,f=ow(i),m=nx(o);let h=dn({breakpoints:f,direction:"ltr",components:{},palette:{mode:"light",...a},spacing:m,shape:{...dw,...u}},c);return h=fw(h),h.applyStyles=eM,h=n.reduce((p,y)=>dn(p,y),h),h.unstable_sxConfig={...Po,...c==null?void 0:c.unstable_sxConfig},h.unstable_sx=function(y){return $i({sx:y,theme:this})},h}function nM(t){return Object.keys(t).length===0}function rx(t=null){const n=Y.useContext(Io);return!n||nM(n)?t:n}const rM=Sm();function ix(t=rM){return rx(t)}const iM=t=>{var a;const n={systemProps:{},otherProps:{}},i=((a=t==null?void 0:t.theme)==null?void 0:a.unstable_sxConfig)??Po;return Object.keys(t).forEach(o=>{i[o]?n.systemProps[o]=t[o]:n.otherProps[o]=t[o]}),n};function aM(t){const{sx:n,...i}=t,{systemProps:a,otherProps:o}=iM(i);let u;return Array.isArray(n)?u=[a,...n]:typeof n=="function"?u=(...c)=>{const f=n(...c);return Jn(f)?{...a,...f}:a}:u={...a,...n},{...o,sx:u}}const Y1=t=>t,lM=()=>{let t=Y1;return{configure(n){t=n},generate(n){return t(n)},reset(){t=Y1}}},oM=lM();function ax(t){var n,i,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(i=ax(t[n]))&&(a&&(a+=" "),a+=i)}else for(i in t)t[i]&&(a&&(a+=" "),a+=i);return a}function Mn(){for(var t,n,i=0,a="",o=arguments.length;i<o;i++)(t=arguments[i])&&(n=ax(t))&&(a&&(a+=" "),a+=n);return a}const sM={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function zn(t,n,i="Mui"){const a=sM[n];return a?`${i}-${a}`:`${oM.generate(t)}-${n}`}function qn(t,n,i="Mui"){const a={};return n.forEach(o=>{a[o]=zn(t,o,i)}),a}function lx(t){const{variants:n,...i}=t,a={variants:n,style:j1(i),isProcessed:!0};return a.style===i||n&&n.forEach(o=>{typeof o.style!="function"&&(o.style=j1(o.style))}),a}const uM=Sm();function ch(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function cM(t){return t?(n,i)=>i[t]:null}function fM(t,n,i){t.theme=mM(t.theme)?i:t.theme[n]||t.theme}function Du(t,n){const i=typeof n=="function"?n(t):n;if(Array.isArray(i))return i.flatMap(a=>Du(t,a));if(Array.isArray(i==null?void 0:i.variants)){let a;if(i.isProcessed)a=i.style;else{const{variants:o,...u}=i;a=u}return ox(t,i.variants,[a])}return i!=null&&i.isProcessed?i.style:i}function ox(t,n,i=[]){var o;let a;t:for(let u=0;u<n.length;u+=1){const c=n[u];if(typeof c.props=="function"){if(a??(a={...t,...t.ownerState,ownerState:t.ownerState}),!c.props(a))continue}else for(const f in c.props)if(t[f]!==c.props[f]&&((o=t.ownerState)==null?void 0:o[f])!==c.props[f])continue t;typeof c.style=="function"?(a??(a={...t,...t.ownerState,ownerState:t.ownerState}),i.push(c.style(a))):i.push(c.style)}return i}function dM(t={}){const{themeId:n,defaultTheme:i=uM,rootShouldForwardProp:a=ch,slotShouldForwardProp:o=ch}=t;function u(f){fM(f,n,i)}return(f,m={})=>{rw(f,M=>M.filter(R=>R!==$i));const{name:h,slot:p,skipVariantsResolver:y,skipSx:v,overridesResolver:b=cM(pM(p)),...x}=m,S=y!==void 0?y:p&&p!=="Root"&&p!=="root"||!1,C=v||!1;let E=ch;p==="Root"||p==="root"?E=a:p?E=o:gM(f)&&(E=void 0);const _=nw(f,{shouldForwardProp:E,label:hM(),...x}),O=M=>{if(typeof M=="function"&&M.__emotion_real!==M)return function(D){return Du(D,M)};if(Jn(M)){const R=lx(M);return R.variants?function(L){return Du(L,R)}:R.style}return M},k=(...M)=>{const R=[],D=M.map(O),L=[];if(R.push(u),h&&b&&L.push(function(X){var j,P;const it=(P=(j=X.theme.components)==null?void 0:j[h])==null?void 0:P.styleOverrides;if(!it)return null;const ot={};for(const nt in it)ot[nt]=Du(X,it[nt]);return b(X,ot)}),h&&!S&&L.push(function(X){var ot,j;const K=X.theme,it=(j=(ot=K==null?void 0:K.components)==null?void 0:ot[h])==null?void 0:j.variants;return it?ox(X,it):null}),C||L.push($i),Array.isArray(D[0])){const z=D.shift(),X=new Array(R.length).fill(""),K=new Array(L.length).fill("");let it;it=[...X,...z,...K],it.raw=[...X,...z.raw,...K],R.unshift(it)}const $=[...R,...D,...L],T=_(...$);return f.muiName&&(T.muiName=f.muiName),T};return _.withConfig&&(k.withConfig=_.withConfig),k}}function hM(t,n){return void 0}function mM(t){for(const n in t)return!1;return!0}function gM(t){return typeof t=="string"&&t.charCodeAt(0)>96}function pM(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}function Fa(t,n){const i={...n};for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)){const o=a;if(o==="components"||o==="slots")i[o]={...t[o],...i[o]};else if(o==="componentsProps"||o==="slotProps"){const u=t[o],c=n[o];if(!c)i[o]=u||{};else if(!u)i[o]=c;else{i[o]={...c};for(const f in u)if(Object.prototype.hasOwnProperty.call(u,f)){const m=f;i[o][m]=Fa(u[m],c[m])}}}else i[o]===void 0&&(i[o]=t[o])}return i}function yM(t){const{theme:n,name:i,props:a}=t;return!n||!n.components||!n.components[i]||!n.components[i].defaultProps?a:Fa(n.components[i].defaultProps,a)}function vM({props:t,name:n,defaultTheme:i,themeId:a}){let o=ix(i);return o=o[a]||o,yM({theme:o,name:n,props:t})}const Ye=typeof window<"u"?Y.useLayoutEffect:Y.useEffect;function bM(t,n=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(n,Math.min(t,i))}function Am(t,n=0,i=1){return bM(t,n,i)}function xM(t){t=t.slice(1);const n=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let i=t.match(n);return i&&i[0].length===1&&(i=i.map(a=>a+a)),i?`rgb${i.length===4?"a":""}(${i.map((a,o)=>o<3?parseInt(a,16):Math.round(parseInt(a,16)/255*1e3)/1e3).join(", ")})`:""}function ui(t){if(t.type)return t;if(t.charAt(0)==="#")return ui(xM(t));const n=t.indexOf("("),i=t.substring(0,n);if(!["rgb","rgba","hsl","hsla","color"].includes(i))throw new Error(ji(9,t));let a=t.substring(n+1,t.length-1),o;if(i==="color"){if(a=a.split(" "),o=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(ji(10,o))}else a=a.split(",");return a=a.map(u=>parseFloat(u)),{type:i,values:a,colorSpace:o}}const SM=t=>{const n=ui(t);return n.values.slice(0,3).map((i,a)=>n.type.includes("hsl")&&a!==0?`${i}%`:i).join(" ")},To=(t,n)=>{try{return SM(t)}catch{return t}};function pc(t){const{type:n,colorSpace:i}=t;let{values:a}=t;return n.includes("rgb")?a=a.map((o,u)=>u<3?parseInt(o,10):o):n.includes("hsl")&&(a[1]=`${a[1]}%`,a[2]=`${a[2]}%`),n.includes("color")?a=`${i} ${a.join(" ")}`:a=`${a.join(", ")}`,`${n}(${a})`}function sx(t){t=ui(t);const{values:n}=t,i=n[0],a=n[1]/100,o=n[2]/100,u=a*Math.min(o,1-o),c=(h,p=(h+i/30)%12)=>o-u*Math.max(Math.min(p-3,9-p,1),-1);let f="rgb";const m=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return t.type==="hsla"&&(f+="a",m.push(n[3])),pc({type:f,values:m})}function qh(t){t=ui(t);let n=t.type==="hsl"||t.type==="hsla"?ui(sx(t)).values:t.values;return n=n.map(i=>(t.type!=="color"&&(i/=255),i<=.03928?i/12.92:((i+.055)/1.055)**2.4)),Number((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}function AM(t,n){const i=qh(t),a=qh(n);return(Math.max(i,a)+.05)/(Math.min(i,a)+.05)}function TM(t,n){return t=ui(t),n=Am(n),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${n}`:t.values[3]=n,pc(t)}function yu(t,n,i){try{return TM(t,n)}catch{return t}}function Tm(t,n){if(t=ui(t),n=Am(n),t.type.includes("hsl"))t.values[2]*=1-n;else if(t.type.includes("rgb")||t.type.includes("color"))for(let i=0;i<3;i+=1)t.values[i]*=1-n;return pc(t)}function Pt(t,n,i){try{return Tm(t,n)}catch{return t}}function Cm(t,n){if(t=ui(t),n=Am(n),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*n;else if(t.type.includes("rgb"))for(let i=0;i<3;i+=1)t.values[i]+=(255-t.values[i])*n;else if(t.type.includes("color"))for(let i=0;i<3;i+=1)t.values[i]+=(1-t.values[i])*n;return pc(t)}function Zt(t,n,i){try{return Cm(t,n)}catch{return t}}function CM(t,n=.15){return qh(t)>.5?Tm(t,n):Cm(t,n)}function vu(t,n,i){try{return CM(t,n)}catch{return t}}const ux=Y.createContext(null);function wm(){return Y.useContext(ux)}const wM=typeof Symbol=="function"&&Symbol.for,MM=wM?Symbol.for("mui.nested"):"__THEME_NESTED__";function EM(t,n){return typeof n=="function"?n(t):{...t,...n}}function OM(t){const{children:n,theme:i}=t,a=wm(),o=Y.useMemo(()=>{const u=a===null?{...i}:EM(a,i);return u!=null&&(u[MM]=a!==null),u},[i,a]);return H.jsx(ux.Provider,{value:o,children:n})}const cx=Y.createContext();function RM({value:t,...n}){return H.jsx(cx.Provider,{value:t??!0,...n})}const Mm=()=>Y.useContext(cx)??!1,fx=Y.createContext(void 0);function _M({value:t,children:n}){return H.jsx(fx.Provider,{value:t,children:n})}function kM(t){const{theme:n,name:i,props:a}=t;if(!n||!n.components||!n.components[i])return a;const o=n.components[i];return o.defaultProps?Fa(o.defaultProps,a):!o.styleOverrides&&!o.variants?Fa(o,a):a}function DM({props:t,name:n}){const i=Y.useContext(fx);return kM({props:t,name:n,theme:{components:i}})}const G1={};function q1(t,n,i,a=!1){return Y.useMemo(()=>{const o=t&&n[t]||n;if(typeof i=="function"){const u=i(o),c=t?{...n,[t]:u}:u;return a?()=>c:c}return t?{...n,[t]:i}:{...n,...i}},[t,n,i,a])}function dx(t){const{children:n,theme:i,themeId:a}=t,o=rx(G1),u=wm()||G1,c=q1(a,o,i),f=q1(a,u,i,!0),m=(a?c[a]:c).direction==="rtl";return H.jsx(OM,{theme:f,children:H.jsx(Io.Provider,{value:c,children:H.jsx(RM,{value:m,children:H.jsx(_M,{value:a?c[a].components:c.components,children:n})})})})}const I1={theme:void 0};function zM(t){let n,i;return function(o){let u=n;return(u===void 0||o.theme!==i)&&(I1.theme=o.theme,u=lx(t(I1)),n=u,i=o.theme),u}}const Em="mode",Om="color-scheme",NM="data-color-scheme";function UM(t){const{defaultMode:n="system",defaultLightColorScheme:i="light",defaultDarkColorScheme:a="dark",modeStorageKey:o=Em,colorSchemeStorageKey:u=Om,attribute:c=NM,colorSchemeNode:f="document.documentElement",nonce:m}=t||{};let h="",p=c;if(c==="class"&&(p=".%s"),c==="data"&&(p="[data-%s]"),p.startsWith(".")){const v=p.substring(1);h+=`${f}.classList.remove('${v}'.replace('%s', light), '${v}'.replace('%s', dark)); 65 - ${f}.classList.add('${v}'.replace('%s', colorScheme));`}const y=p.match(/\[([^\]]+)\]/);if(y){const[v,b]=y[1].split("=");b||(h+=`${f}.removeAttribute('${v}'.replace('%s', light)); 66 - ${f}.removeAttribute('${v}'.replace('%s', dark));`),h+=` 67 - ${f}.setAttribute('${v}'.replace('%s', colorScheme), ${b?`${b}.replace('%s', colorScheme)`:'""'});`}else h+=`${f}.setAttribute('${p}', colorScheme);`;return H.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(function() { 68 - try { 69 - let colorScheme = ''; 70 - const mode = localStorage.getItem('${o}') || '${n}'; 71 - const dark = localStorage.getItem('${u}-dark') || '${a}'; 72 - const light = localStorage.getItem('${u}-light') || '${i}'; 73 - if (mode === 'system') { 74 - // handle system mode 75 - const mql = window.matchMedia('(prefers-color-scheme: dark)'); 76 - if (mql.matches) { 77 - colorScheme = dark 78 - } else { 79 - colorScheme = light 80 - } 81 - } 82 - if (mode === 'light') { 83 - colorScheme = light; 84 - } 85 - if (mode === 'dark') { 86 - colorScheme = dark; 87 - } 88 - if (colorScheme) { 89 - ${h} 90 - } 91 - } catch(e){}})();`}},"mui-color-scheme-init")}function jM(){}const $M=({key:t,storageWindow:n})=>(!n&&typeof window<"u"&&(n=window),{get(i){if(typeof window>"u")return;if(!n)return i;let a;try{a=n.localStorage.getItem(t)}catch{}return a||i},set:i=>{if(n)try{n.localStorage.setItem(t,i)}catch{}},subscribe:i=>{if(!n)return jM;const a=o=>{const u=o.newValue;o.key===t&&i(u)};return n.addEventListener("storage",a),()=>{n.removeEventListener("storage",a)}}});function fh(){}function V1(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function hx(t,n){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return n("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return n("dark")}function BM(t){return hx(t,n=>{if(n==="light")return t.lightColorScheme;if(n==="dark")return t.darkColorScheme})}function LM(t){const{defaultMode:n="light",defaultLightColorScheme:i,defaultDarkColorScheme:a,supportedColorSchemes:o=[],modeStorageKey:u=Em,colorSchemeStorageKey:c=Om,storageWindow:f=typeof window>"u"?void 0:window,storageManager:m=$M,noSsr:h=!1}=t,p=o.join(","),y=o.length>1,v=Y.useMemo(()=>m==null?void 0:m({key:u,storageWindow:f}),[m,u,f]),b=Y.useMemo(()=>m==null?void 0:m({key:`${c}-light`,storageWindow:f}),[m,c,f]),x=Y.useMemo(()=>m==null?void 0:m({key:`${c}-dark`,storageWindow:f}),[m,c,f]),[S,C]=Y.useState(()=>{const L=(v==null?void 0:v.get(n))||n,$=(b==null?void 0:b.get(i))||i,T=(x==null?void 0:x.get(a))||a;return{mode:L,systemMode:V1(L),lightColorScheme:$,darkColorScheme:T}}),[E,_]=Y.useState(h||!y);Y.useEffect(()=>{_(!0)},[]);const O=BM(S),k=Y.useCallback(L=>{C($=>{if(L===$.mode)return $;const T=L??n;return v==null||v.set(T),{...$,mode:T,systemMode:V1(T)}})},[v,n]),M=Y.useCallback(L=>{L?typeof L=="string"?L&&!p.includes(L)?console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`):C($=>{const T={...$};return hx($,z=>{z==="light"&&(b==null||b.set(L),T.lightColorScheme=L),z==="dark"&&(x==null||x.set(L),T.darkColorScheme=L)}),T}):C($=>{const T={...$},z=L.light===null?i:L.light,X=L.dark===null?a:L.dark;return z&&(p.includes(z)?(T.lightColorScheme=z,b==null||b.set(z)):console.error(`\`${z}\` does not exist in \`theme.colorSchemes\`.`)),X&&(p.includes(X)?(T.darkColorScheme=X,x==null||x.set(X)):console.error(`\`${X}\` does not exist in \`theme.colorSchemes\`.`)),T}):C($=>(b==null||b.set(i),x==null||x.set(a),{...$,lightColorScheme:i,darkColorScheme:a}))},[p,b,x,i,a]),R=Y.useCallback(L=>{S.mode==="system"&&C($=>{const T=L!=null&&L.matches?"dark":"light";return $.systemMode===T?$:{...$,systemMode:T}})},[S.mode]),D=Y.useRef(R);return D.current=R,Y.useEffect(()=>{if(typeof window.matchMedia!="function"||!y)return;const L=(...T)=>D.current(...T),$=window.matchMedia("(prefers-color-scheme: dark)");return $.addListener(L),L($),()=>{$.removeListener(L)}},[y]),Y.useEffect(()=>{if(y){const L=(v==null?void 0:v.subscribe(z=>{(!z||["light","dark","system"].includes(z))&&k(z||n)}))||fh,$=(b==null?void 0:b.subscribe(z=>{(!z||p.match(z))&&M({light:z})}))||fh,T=(x==null?void 0:x.subscribe(z=>{(!z||p.match(z))&&M({dark:z})}))||fh;return()=>{L(),$(),T()}}},[M,k,p,n,f,y,v,b,x]),{...S,mode:E?S.mode:void 0,systemMode:E?S.systemMode:void 0,colorScheme:E?O:void 0,setMode:k,setColorScheme:M}}const HM="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function YM(t){const{themeId:n,theme:i={},modeStorageKey:a=Em,colorSchemeStorageKey:o=Om,disableTransitionOnChange:u=!1,defaultColorScheme:c,resolveTheme:f}=t,m={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},h=Y.createContext(void 0),p=()=>Y.useContext(h)||m,y={},v={};function b(E){var Ge,te,Re,Te;const{children:_,theme:O,modeStorageKey:k=a,colorSchemeStorageKey:M=o,disableTransitionOnChange:R=u,storageManager:D,storageWindow:L=typeof window>"u"?void 0:window,documentNode:$=typeof document>"u"?void 0:document,colorSchemeNode:T=typeof document>"u"?void 0:document.documentElement,disableNestedContext:z=!1,disableStyleSheetGeneration:X=!1,defaultMode:K="system",forceThemeRerender:it=!1,noSsr:ot}=E,j=Y.useRef(!1),P=wm(),nt=Y.useContext(h),st=!!nt&&!z,N=Y.useMemo(()=>O||(typeof i=="function"?i():i),[O]),F=N[n],at=F||N,{colorSchemes:lt=y,components:ct=v,cssVarPrefix:yt}=at,dt=Object.keys(lt).filter(Ne=>!!lt[Ne]).join(","),gt=Y.useMemo(()=>dt.split(","),[dt]),mt=typeof c=="string"?c:c.light,ut=typeof c=="string"?c:c.dark,xt=lt[mt]&&lt[ut]?K:((te=(Ge=lt[at.defaultColorScheme])==null?void 0:Ge.palette)==null?void 0:te.mode)||((Re=at.palette)==null?void 0:Re.mode),{mode:bt,setMode:rt,systemMode:_t,lightColorScheme:vt,darkColorScheme:Bt,colorScheme:Wt,setColorScheme:Yt}=LM({supportedColorSchemes:gt,defaultLightColorScheme:mt,defaultDarkColorScheme:ut,modeStorageKey:k,colorSchemeStorageKey:M,defaultMode:xt,storageManager:D,storageWindow:L,noSsr:ot});let Ae=bt,ue=Wt;st&&(Ae=nt.mode,ue=nt.colorScheme);let me=ue||at.defaultColorScheme;at.vars&&!it&&(me=at.defaultColorScheme);const Kt=Y.useMemo(()=>{var lr;const Ne=((lr=at.generateThemeVars)==null?void 0:lr.call(at))||at.vars,re={...at,components:ct,colorSchemes:lt,cssVarPrefix:yt,vars:Ne};if(typeof re.generateSpacing=="function"&&(re.spacing=re.generateSpacing()),me){const qe=lt[me];qe&&typeof qe=="object"&&Object.keys(qe).forEach(Ue=>{qe[Ue]&&typeof qe[Ue]=="object"?re[Ue]={...re[Ue],...qe[Ue]}:re[Ue]=qe[Ue]})}return f?f(re):re},[at,me,ct,lt,yt]),Xe=at.colorSchemeSelector;Ye(()=>{if(ue&&T&&Xe&&Xe!=="media"){const Ne=Xe;let re=Xe;if(Ne==="class"&&(re=".%s"),Ne==="data"&&(re="[data-%s]"),Ne!=null&&Ne.startsWith("data-")&&!Ne.includes("%s")&&(re=`[${Ne}="%s"]`),re.startsWith("."))T.classList.remove(...gt.map(lr=>re.substring(1).replace("%s",lr))),T.classList.add(re.substring(1).replace("%s",ue));else{const lr=re.replace("%s",ue).match(/\[([^\]]+)\]/);if(lr){const[qe,Ue]=lr[1].split("=");Ue||gt.forEach(or=>{T.removeAttribute(qe.replace(ue,or))}),T.setAttribute(qe,Ue?Ue.replace(/"|'/g,""):"")}else T.setAttribute(re,ue)}}},[ue,Xe,T,gt]),Y.useEffect(()=>{let Ne;if(R&&j.current&&$){const re=$.createElement("style");re.appendChild($.createTextNode(HM)),$.head.appendChild(re),window.getComputedStyle($.body),Ne=setTimeout(()=>{$.head.removeChild(re)},1)}return()=>{clearTimeout(Ne)}},[ue,R,$]),Y.useEffect(()=>(j.current=!0,()=>{j.current=!1}),[]);const mn=Y.useMemo(()=>({allColorSchemes:gt,colorScheme:ue,darkColorScheme:Bt,lightColorScheme:vt,mode:Ae,setColorScheme:Yt,setMode:rt,systemMode:_t}),[gt,ue,Bt,vt,Ae,Yt,rt,_t,Kt.colorSchemeSelector]);let gn=!0;(X||at.cssVariables===!1||st&&(P==null?void 0:P.cssVarPrefix)===yt)&&(gn=!1);const Un=H.jsxs(Y.Fragment,{children:[H.jsx(dx,{themeId:F?n:void 0,theme:Kt,children:_}),gn&&H.jsx(ew,{styles:((Te=Kt.generateStyleSheets)==null?void 0:Te.call(Kt))||[]})]});return st?Un:H.jsx(h.Provider,{value:mn,children:Un})}const x=typeof c=="string"?c:c.light,S=typeof c=="string"?c:c.dark;return{CssVarsProvider:b,useColorScheme:p,getInitColorSchemeScript:E=>UM({colorSchemeStorageKey:o,defaultLightColorScheme:x,defaultDarkColorScheme:S,modeStorageKey:a,...E})}}function GM(t=""){function n(...a){if(!a.length)return"";const o=a[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${o}${n(...a.slice(1))})`:`, ${o}`}return(a,...o)=>`var(--${t?`${t}-`:""}${a}${n(...o)})`}const X1=(t,n,i,a=[])=>{let o=t;n.forEach((u,c)=>{c===n.length-1?Array.isArray(o)?o[Number(u)]=i:o&&typeof o=="object"&&(o[u]=i):o&&typeof o=="object"&&(o[u]||(o[u]=a.includes(u)?[]:{}),o=o[u])})},qM=(t,n,i)=>{function a(o,u=[],c=[]){Object.entries(o).forEach(([f,m])=>{(!i||i&&!i([...u,f]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?a(m,[...u,f],Array.isArray(m)?[...c,f]:c):n([...u,f],m,c))})}a(t)},IM=(t,n)=>typeof n=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(a=>t.includes(a))||t[t.length-1].toLowerCase().includes("opacity")?n:`${n}px`:n;function dh(t,n){const{prefix:i,shouldSkipGeneratingVar:a}=n||{},o={},u={},c={};return qM(t,(f,m,h)=>{if((typeof m=="string"||typeof m=="number")&&(!a||!a(f,m))){const p=`--${i?`${i}-`:""}${f.join("-")}`,y=IM(f,m);Object.assign(o,{[p]:y}),X1(u,f,`var(${p})`,h),X1(c,f,`var(${p}, ${y})`,h)}},f=>f[0]==="vars"),{css:o,vars:u,varsWithDefaults:c}}function VM(t,n={}){const{getSelector:i=C,disableCssColorScheme:a,colorSchemeSelector:o}=n,{colorSchemes:u={},components:c,defaultColorScheme:f="light",...m}=t,{vars:h,css:p,varsWithDefaults:y}=dh(m,n);let v=y;const b={},{[f]:x,...S}=u;if(Object.entries(S||{}).forEach(([O,k])=>{const{vars:M,css:R,varsWithDefaults:D}=dh(k,n);v=dn(v,D),b[O]={css:R,vars:M}}),x){const{css:O,vars:k,varsWithDefaults:M}=dh(x,n);v=dn(v,M),b[f]={css:O,vars:k}}function C(O,k){var R,D;let M=o;if(o==="class"&&(M=".%s"),o==="data"&&(M="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(M=`[${o}="%s"]`),O){if(M==="media")return t.defaultColorScheme===O?":root":{[`@media (prefers-color-scheme: ${((D=(R=u[O])==null?void 0:R.palette)==null?void 0:D.mode)||O})`]:{":root":k}};if(M)return t.defaultColorScheme===O?`:root, ${M.replace("%s",String(O))}`:M.replace("%s",String(O))}return":root"}return{vars:v,generateThemeVars:()=>{let O={...h};return Object.entries(b).forEach(([,{vars:k}])=>{O=dn(O,k)}),O},generateStyleSheets:()=>{var L,$;const O=[],k=t.defaultColorScheme||"light";function M(T,z){Object.keys(z).length&&O.push(typeof T=="string"?{[T]:{...z}}:T)}M(i(void 0,{...p}),p);const{[k]:R,...D}=b;if(R){const{css:T}=R,z=($=(L=u[k])==null?void 0:L.palette)==null?void 0:$.mode,X=!a&&z?{colorScheme:z,...T}:{...T};M(i(k,{...X}),X)}return Object.entries(D).forEach(([T,{css:z}])=>{var it,ot;const X=(ot=(it=u[T])==null?void 0:it.palette)==null?void 0:ot.mode,K=!a&&X?{colorScheme:X,...z}:{...z};M(i(T,{...K}),K)}),O}}}function XM(t){return function(i){return t==="media"?`@media (prefers-color-scheme: ${i})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${i}"] &`:t==="class"?`.${i} &`:t==="data"?`[data-${i}] &`:`${t.replace("%s",i)} &`:"&"}}function Nn(t,n,i=void 0){const a={};for(const o in t){const u=t[o];let c="",f=!0;for(let m=0;m<u.length;m+=1){const h=u[m];h&&(c+=(f===!0?"":" ")+n(h),f=!1,i&&i[h]&&(c+=" "+i[h]))}a[o]=c}return a}const Uo={black:"#000",white:"#fff"},PM={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},za={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Na={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},po={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ua={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ja={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},$a={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function mx(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Uo.white,default:Uo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const ZM=mx();function gx(){return{text:{primary:Uo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Uo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const P1=gx();function Z1(t,n,i,a){const o=a.light||a,u=a.dark||a*1.5;t[n]||(t.hasOwnProperty(i)?t[n]=t[i]:n==="light"?t.light=Cm(t.main,o):n==="dark"&&(t.dark=Tm(t.main,u)))}function QM(t="light"){return t==="dark"?{main:Ua[200],light:Ua[50],dark:Ua[400]}:{main:Ua[700],light:Ua[400],dark:Ua[800]}}function KM(t="light"){return t==="dark"?{main:za[200],light:za[50],dark:za[400]}:{main:za[500],light:za[300],dark:za[700]}}function FM(t="light"){return t==="dark"?{main:Na[500],light:Na[300],dark:Na[700]}:{main:Na[700],light:Na[400],dark:Na[800]}}function WM(t="light"){return t==="dark"?{main:ja[400],light:ja[300],dark:ja[700]}:{main:ja[700],light:ja[500],dark:ja[900]}}function JM(t="light"){return t==="dark"?{main:$a[400],light:$a[300],dark:$a[700]}:{main:$a[800],light:$a[500],dark:$a[900]}}function tE(t="light"){return t==="dark"?{main:po[400],light:po[300],dark:po[700]}:{main:"#ed6c02",light:po[500],dark:po[900]}}function Rm(t){const{mode:n="light",contrastThreshold:i=3,tonalOffset:a=.2,...o}=t,u=t.primary||QM(n),c=t.secondary||KM(n),f=t.error||FM(n),m=t.info||WM(n),h=t.success||JM(n),p=t.warning||tE(n);function y(S){return AM(S,P1.text.primary)>=i?P1.text.primary:ZM.text.primary}const v=({color:S,name:C,mainShade:E=500,lightShade:_=300,darkShade:O=700})=>{if(S={...S},!S.main&&S[E]&&(S.main=S[E]),!S.hasOwnProperty("main"))throw new Error(ji(11,C?` (${C})`:"",E));if(typeof S.main!="string")throw new Error(ji(12,C?` (${C})`:"",JSON.stringify(S.main)));return Z1(S,"light",_,a),Z1(S,"dark",O,a),S.contrastText||(S.contrastText=y(S.main)),S};let b;return n==="light"?b=mx():n==="dark"&&(b=gx()),dn({common:{...Uo},mode:n,primary:v({color:u,name:"primary"}),secondary:v({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:f,name:"error"}),warning:v({color:p,name:"warning"}),info:v({color:m,name:"info"}),success:v({color:h,name:"success"}),grey:PM,contrastThreshold:i,getContrastText:y,augmentColor:v,tonalOffset:a,...b},o)}function eE(t){const n={};return Object.entries(t).forEach(a=>{const[o,u]=a;typeof u=="object"&&(n[o]=`${u.fontStyle?`${u.fontStyle} `:""}${u.fontVariant?`${u.fontVariant} `:""}${u.fontWeight?`${u.fontWeight} `:""}${u.fontStretch?`${u.fontStretch} `:""}${u.fontSize||""}${u.lineHeight?`/${u.lineHeight} `:""}${u.fontFamily||""}`)}),n}function nE(t,n){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...n}}function rE(t){return Math.round(t*1e5)/1e5}const Q1={textTransform:"uppercase"},K1='"Roboto", "Helvetica", "Arial", sans-serif';function px(t,n){const{fontFamily:i=K1,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:u=400,fontWeightMedium:c=500,fontWeightBold:f=700,htmlFontSize:m=16,allVariants:h,pxToRem:p,...y}=typeof n=="function"?n(t):n,v=a/14,b=p||(C=>`${C/m*v}rem`),x=(C,E,_,O,k)=>({fontFamily:i,fontWeight:C,fontSize:b(E),lineHeight:_,...i===K1?{letterSpacing:`${rE(O/E)}em`}:{},...k,...h}),S={h1:x(o,96,1.167,-1.5),h2:x(o,60,1.2,-.5),h3:x(u,48,1.167,0),h4:x(u,34,1.235,.25),h5:x(u,24,1.334,0),h6:x(c,20,1.6,.15),subtitle1:x(u,16,1.75,.15),subtitle2:x(c,14,1.57,.1),body1:x(u,16,1.5,.15),body2:x(u,14,1.43,.15),button:x(c,14,1.75,.4,Q1),caption:x(u,12,1.66,.4),overline:x(u,12,2.66,1,Q1),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return dn({htmlFontSize:m,pxToRem:b,fontFamily:i,fontSize:a,fontWeightLight:o,fontWeightRegular:u,fontWeightMedium:c,fontWeightBold:f,...S},y,{clone:!1})}const iE=.2,aE=.14,lE=.12;function ne(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${iE})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${aE})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${lE})`].join(",")}const oE=["none",ne(0,2,1,-1,0,1,1,0,0,1,3,0),ne(0,3,1,-2,0,2,2,0,0,1,5,0),ne(0,3,3,-2,0,3,4,0,0,1,8,0),ne(0,2,4,-1,0,4,5,0,0,1,10,0),ne(0,3,5,-1,0,5,8,0,0,1,14,0),ne(0,3,5,-1,0,6,10,0,0,1,18,0),ne(0,4,5,-2,0,7,10,1,0,2,16,1),ne(0,5,5,-3,0,8,10,1,0,3,14,2),ne(0,5,6,-3,0,9,12,1,0,3,16,2),ne(0,6,6,-3,0,10,14,1,0,4,18,3),ne(0,6,7,-4,0,11,15,1,0,4,20,3),ne(0,7,8,-4,0,12,17,2,0,5,22,4),ne(0,7,8,-4,0,13,19,2,0,5,24,4),ne(0,7,9,-4,0,14,21,2,0,5,26,4),ne(0,8,9,-5,0,15,22,2,0,6,28,5),ne(0,8,10,-5,0,16,24,2,0,6,30,5),ne(0,8,11,-5,0,17,26,2,0,6,32,5),ne(0,9,11,-5,0,18,28,2,0,7,34,6),ne(0,9,12,-6,0,19,29,2,0,7,36,6),ne(0,10,13,-6,0,20,31,3,0,8,38,7),ne(0,10,13,-6,0,21,33,3,0,8,40,7),ne(0,10,14,-6,0,22,35,3,0,8,42,7),ne(0,11,14,-7,0,23,36,3,0,9,44,8),ne(0,11,15,-7,0,24,38,3,0,9,46,8)],sE={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},uE={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function F1(t){return`${Math.round(t)}ms`}function cE(t){if(!t)return 0;const n=t/36;return Math.min(Math.round((4+15*n**.25+n/5)*10),3e3)}function fE(t){const n={...sE,...t.easing},i={...uE,...t.duration};return{getAutoHeightDuration:cE,create:(o=["all"],u={})=>{const{duration:c=i.standard,easing:f=n.easeInOut,delay:m=0,...h}=u;return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof c=="string"?c:F1(c)} ${f} ${typeof m=="string"?m:F1(m)}`).join(",")},...t,easing:n,duration:i}}const dE={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function hE(t){return Jn(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function yx(t={}){const n={...t};function i(a){const o=Object.entries(a);for(let u=0;u<o.length;u++){const[c,f]=o[u];!hE(f)||c.startsWith("unstable_")?delete a[c]:Jn(f)&&(a[c]={...f},i(a[c]))}}return i(n),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles'; 92 - 93 - const theme = ${JSON.stringify(n,null,2)}; 94 - 95 - theme.breakpoints = createBreakpoints(theme.breakpoints || {}); 96 - theme.transitions = createTransitions(theme.transitions || {}); 97 - 98 - export default theme;`}function Ih(t={},...n){const{breakpoints:i,mixins:a={},spacing:o,palette:u={},transitions:c={},typography:f={},shape:m,...h}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(ji(20));const p=Rm(u),y=Sm(t);let v=dn(y,{mixins:nE(y.breakpoints,a),palette:p,shadows:oE.slice(),typography:px(p,f),transitions:fE(c),zIndex:{...dE}});return v=dn(v,h),v=n.reduce((b,x)=>dn(b,x),v),v.unstable_sxConfig={...Po,...h==null?void 0:h.unstable_sxConfig},v.unstable_sx=function(x){return $i({sx:x,theme:this})},v.toRuntimeSource=yx,v}function mE(t){let n;return t<1?n=5.11916*t**2:n=4.5*Math.log(t+1)+2,Math.round(n*10)/1e3}const gE=[...Array(25)].map((t,n)=>{if(n===0)return"none";const i=mE(n);return`linear-gradient(rgba(255 255 255 / ${i}), rgba(255 255 255 / ${i}))`});function vx(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function bx(t){return t==="dark"?gE:[]}function pE(t){const{palette:n={mode:"light"},opacity:i,overlays:a,...o}=t,u=Rm(n);return{palette:u,opacity:{...vx(u.mode),...i},overlays:a||bx(u.mode),...o}}function yE(t){var n;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((n=t[1])!=null&&n.match(/(mode|contrastThreshold|tonalOffset)/))}const vE=t=>[...[...Array(25)].map((n,i)=>`--${t?`${t}-`:""}overlays-${i}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],bE=t=>(n,i)=>{const a=t.rootSelector||":root",o=t.colorSchemeSelector;let u=o;if(o==="class"&&(u=".%s"),o==="data"&&(u="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(u=`[${o}="%s"]`),t.defaultColorScheme===n){if(n==="dark"){const c={};return vE(t.cssVarPrefix).forEach(f=>{c[f]=i[f],delete i[f]}),u==="media"?{[a]:i,"@media (prefers-color-scheme: dark)":{[a]:c}}:u?{[u.replace("%s",n)]:c,[`${a}, ${u.replace("%s",n)}`]:i}:{[a]:{...i,...c}}}if(u&&u!=="media")return`${a}, ${u.replace("%s",String(n))}`}else if(n){if(u==="media")return{[`@media (prefers-color-scheme: ${String(n)})`]:{[a]:i}};if(u)return u.replace("%s",String(n))}return a};function xE(t,n){n.forEach(i=>{t[i]||(t[i]={})})}function W(t,n,i){!t[n]&&i&&(t[n]=i)}function Co(t){return typeof t!="string"||!t.startsWith("hsl")?t:sx(t)}function Tr(t,n){`${n}Channel`in t||(t[`${n}Channel`]=To(Co(t[n])))}function SE(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Kn=t=>{try{return t()}catch{}},AE=(t="mui")=>GM(t);function hh(t,n,i,a){if(!n)return;n=n===!0?{}:n;const o=a==="dark"?"dark":"light";if(!i){t[a]=pE({...n,palette:{mode:o,...n==null?void 0:n.palette}});return}const{palette:u,...c}=Ih({...i,palette:{mode:o,...n==null?void 0:n.palette}});return t[a]={...n,palette:u,opacity:{...vx(o),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||bx(o)},c}function TE(t={},...n){const{colorSchemes:i={light:!0},defaultColorScheme:a,disableCssColorScheme:o=!1,cssVarPrefix:u="mui",shouldSkipGeneratingVar:c=yE,colorSchemeSelector:f=i.light&&i.dark?"media":void 0,rootSelector:m=":root",...h}=t,p=Object.keys(i)[0],y=a||(i.light&&p!=="light"?"light":p),v=AE(u),{[y]:b,light:x,dark:S,...C}=i,E={...C};let _=b;if((y==="dark"&&!("dark"in i)||y==="light"&&!("light"in i))&&(_=!0),!_)throw new Error(ji(21,y));const O=hh(E,_,h,y);x&&!E.light&&hh(E,x,void 0,"light"),S&&!E.dark&&hh(E,S,void 0,"dark");let k={defaultColorScheme:y,...O,cssVarPrefix:u,colorSchemeSelector:f,rootSelector:m,getCssVar:v,colorSchemes:E,font:{...eE(O.typography),...O.font},spacing:SE(h.spacing)};Object.keys(k.colorSchemes).forEach($=>{const T=k.colorSchemes[$].palette,z=X=>{const K=X.split("-"),it=K[1],ot=K[2];return v(X,T[it][ot])};if(T.mode==="light"&&(W(T.common,"background","#fff"),W(T.common,"onBackground","#000")),T.mode==="dark"&&(W(T.common,"background","#000"),W(T.common,"onBackground","#fff")),xE(T,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T.mode==="light"){W(T.Alert,"errorColor",Pt(T.error.light,.6)),W(T.Alert,"infoColor",Pt(T.info.light,.6)),W(T.Alert,"successColor",Pt(T.success.light,.6)),W(T.Alert,"warningColor",Pt(T.warning.light,.6)),W(T.Alert,"errorFilledBg",z("palette-error-main")),W(T.Alert,"infoFilledBg",z("palette-info-main")),W(T.Alert,"successFilledBg",z("palette-success-main")),W(T.Alert,"warningFilledBg",z("palette-warning-main")),W(T.Alert,"errorFilledColor",Kn(()=>T.getContrastText(T.error.main))),W(T.Alert,"infoFilledColor",Kn(()=>T.getContrastText(T.info.main))),W(T.Alert,"successFilledColor",Kn(()=>T.getContrastText(T.success.main))),W(T.Alert,"warningFilledColor",Kn(()=>T.getContrastText(T.warning.main))),W(T.Alert,"errorStandardBg",Zt(T.error.light,.9)),W(T.Alert,"infoStandardBg",Zt(T.info.light,.9)),W(T.Alert,"successStandardBg",Zt(T.success.light,.9)),W(T.Alert,"warningStandardBg",Zt(T.warning.light,.9)),W(T.Alert,"errorIconColor",z("palette-error-main")),W(T.Alert,"infoIconColor",z("palette-info-main")),W(T.Alert,"successIconColor",z("palette-success-main")),W(T.Alert,"warningIconColor",z("palette-warning-main")),W(T.AppBar,"defaultBg",z("palette-grey-100")),W(T.Avatar,"defaultBg",z("palette-grey-400")),W(T.Button,"inheritContainedBg",z("palette-grey-300")),W(T.Button,"inheritContainedHoverBg",z("palette-grey-A100")),W(T.Chip,"defaultBorder",z("palette-grey-400")),W(T.Chip,"defaultAvatarColor",z("palette-grey-700")),W(T.Chip,"defaultIconColor",z("palette-grey-700")),W(T.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),W(T.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),W(T.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),W(T.LinearProgress,"primaryBg",Zt(T.primary.main,.62)),W(T.LinearProgress,"secondaryBg",Zt(T.secondary.main,.62)),W(T.LinearProgress,"errorBg",Zt(T.error.main,.62)),W(T.LinearProgress,"infoBg",Zt(T.info.main,.62)),W(T.LinearProgress,"successBg",Zt(T.success.main,.62)),W(T.LinearProgress,"warningBg",Zt(T.warning.main,.62)),W(T.Skeleton,"bg",`rgba(${z("palette-text-primaryChannel")} / 0.11)`),W(T.Slider,"primaryTrack",Zt(T.primary.main,.62)),W(T.Slider,"secondaryTrack",Zt(T.secondary.main,.62)),W(T.Slider,"errorTrack",Zt(T.error.main,.62)),W(T.Slider,"infoTrack",Zt(T.info.main,.62)),W(T.Slider,"successTrack",Zt(T.success.main,.62)),W(T.Slider,"warningTrack",Zt(T.warning.main,.62));const X=vu(T.background.default,.8);W(T.SnackbarContent,"bg",X),W(T.SnackbarContent,"color",Kn(()=>T.getContrastText(X))),W(T.SpeedDialAction,"fabHoverBg",vu(T.background.paper,.15)),W(T.StepConnector,"border",z("palette-grey-400")),W(T.StepContent,"border",z("palette-grey-400")),W(T.Switch,"defaultColor",z("palette-common-white")),W(T.Switch,"defaultDisabledColor",z("palette-grey-100")),W(T.Switch,"primaryDisabledColor",Zt(T.primary.main,.62)),W(T.Switch,"secondaryDisabledColor",Zt(T.secondary.main,.62)),W(T.Switch,"errorDisabledColor",Zt(T.error.main,.62)),W(T.Switch,"infoDisabledColor",Zt(T.info.main,.62)),W(T.Switch,"successDisabledColor",Zt(T.success.main,.62)),W(T.Switch,"warningDisabledColor",Zt(T.warning.main,.62)),W(T.TableCell,"border",Zt(yu(T.divider,1),.88)),W(T.Tooltip,"bg",yu(T.grey[700],.92))}if(T.mode==="dark"){W(T.Alert,"errorColor",Zt(T.error.light,.6)),W(T.Alert,"infoColor",Zt(T.info.light,.6)),W(T.Alert,"successColor",Zt(T.success.light,.6)),W(T.Alert,"warningColor",Zt(T.warning.light,.6)),W(T.Alert,"errorFilledBg",z("palette-error-dark")),W(T.Alert,"infoFilledBg",z("palette-info-dark")),W(T.Alert,"successFilledBg",z("palette-success-dark")),W(T.Alert,"warningFilledBg",z("palette-warning-dark")),W(T.Alert,"errorFilledColor",Kn(()=>T.getContrastText(T.error.dark))),W(T.Alert,"infoFilledColor",Kn(()=>T.getContrastText(T.info.dark))),W(T.Alert,"successFilledColor",Kn(()=>T.getContrastText(T.success.dark))),W(T.Alert,"warningFilledColor",Kn(()=>T.getContrastText(T.warning.dark))),W(T.Alert,"errorStandardBg",Pt(T.error.light,.9)),W(T.Alert,"infoStandardBg",Pt(T.info.light,.9)),W(T.Alert,"successStandardBg",Pt(T.success.light,.9)),W(T.Alert,"warningStandardBg",Pt(T.warning.light,.9)),W(T.Alert,"errorIconColor",z("palette-error-main")),W(T.Alert,"infoIconColor",z("palette-info-main")),W(T.Alert,"successIconColor",z("palette-success-main")),W(T.Alert,"warningIconColor",z("palette-warning-main")),W(T.AppBar,"defaultBg",z("palette-grey-900")),W(T.AppBar,"darkBg",z("palette-background-paper")),W(T.AppBar,"darkColor",z("palette-text-primary")),W(T.Avatar,"defaultBg",z("palette-grey-600")),W(T.Button,"inheritContainedBg",z("palette-grey-800")),W(T.Button,"inheritContainedHoverBg",z("palette-grey-700")),W(T.Chip,"defaultBorder",z("palette-grey-700")),W(T.Chip,"defaultAvatarColor",z("palette-grey-300")),W(T.Chip,"defaultIconColor",z("palette-grey-300")),W(T.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),W(T.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),W(T.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),W(T.LinearProgress,"primaryBg",Pt(T.primary.main,.5)),W(T.LinearProgress,"secondaryBg",Pt(T.secondary.main,.5)),W(T.LinearProgress,"errorBg",Pt(T.error.main,.5)),W(T.LinearProgress,"infoBg",Pt(T.info.main,.5)),W(T.LinearProgress,"successBg",Pt(T.success.main,.5)),W(T.LinearProgress,"warningBg",Pt(T.warning.main,.5)),W(T.Skeleton,"bg",`rgba(${z("palette-text-primaryChannel")} / 0.13)`),W(T.Slider,"primaryTrack",Pt(T.primary.main,.5)),W(T.Slider,"secondaryTrack",Pt(T.secondary.main,.5)),W(T.Slider,"errorTrack",Pt(T.error.main,.5)),W(T.Slider,"infoTrack",Pt(T.info.main,.5)),W(T.Slider,"successTrack",Pt(T.success.main,.5)),W(T.Slider,"warningTrack",Pt(T.warning.main,.5));const X=vu(T.background.default,.98);W(T.SnackbarContent,"bg",X),W(T.SnackbarContent,"color",Kn(()=>T.getContrastText(X))),W(T.SpeedDialAction,"fabHoverBg",vu(T.background.paper,.15)),W(T.StepConnector,"border",z("palette-grey-600")),W(T.StepContent,"border",z("palette-grey-600")),W(T.Switch,"defaultColor",z("palette-grey-300")),W(T.Switch,"defaultDisabledColor",z("palette-grey-600")),W(T.Switch,"primaryDisabledColor",Pt(T.primary.main,.55)),W(T.Switch,"secondaryDisabledColor",Pt(T.secondary.main,.55)),W(T.Switch,"errorDisabledColor",Pt(T.error.main,.55)),W(T.Switch,"infoDisabledColor",Pt(T.info.main,.55)),W(T.Switch,"successDisabledColor",Pt(T.success.main,.55)),W(T.Switch,"warningDisabledColor",Pt(T.warning.main,.55)),W(T.TableCell,"border",Pt(yu(T.divider,1),.68)),W(T.Tooltip,"bg",yu(T.grey[700],.92))}Tr(T.background,"default"),Tr(T.background,"paper"),Tr(T.common,"background"),Tr(T.common,"onBackground"),Tr(T,"divider"),Object.keys(T).forEach(X=>{const K=T[X];X!=="tonalOffset"&&K&&typeof K=="object"&&(K.main&&W(T[X],"mainChannel",To(Co(K.main))),K.light&&W(T[X],"lightChannel",To(Co(K.light))),K.dark&&W(T[X],"darkChannel",To(Co(K.dark))),K.contrastText&&W(T[X],"contrastTextChannel",To(Co(K.contrastText))),X==="text"&&(Tr(T[X],"primary"),Tr(T[X],"secondary")),X==="action"&&(K.active&&Tr(T[X],"active"),K.selected&&Tr(T[X],"selected")))})}),k=n.reduce(($,T)=>dn($,T),k);const M={prefix:u,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:bE(k)},{vars:R,generateThemeVars:D,generateStyleSheets:L}=VM(k,M);return k.vars=R,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([$,T])=>{k[$]=T}),k.generateThemeVars=D,k.generateStyleSheets=L,k.generateSpacing=function(){return nx(h.spacing,bm(this))},k.getColorSchemeSelector=XM(f),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=c,k.unstable_sxConfig={...Po,...h==null?void 0:h.unstable_sxConfig},k.unstable_sx=function(T){return $i({sx:T,theme:this})},k.toRuntimeSource=yx,k}function W1(t,n,i){t.colorSchemes&&i&&(t.colorSchemes[n]={...i!==!0&&i,palette:Rm({...i===!0?{}:i.palette,mode:n})})}function _m(t={},...n){const{palette:i,cssVariables:a=!1,colorSchemes:o=i?void 0:{light:!0},defaultColorScheme:u=i==null?void 0:i.mode,...c}=t,f=u||"light",m=o==null?void 0:o[f],h={...o,...i?{[f]:{...typeof m!="boolean"&&m,palette:i}}:void 0};if(a===!1){if(!("colorSchemes"in t))return Ih(t,...n);let p=i;"palette"in t||h[f]&&(h[f]!==!0?p=h[f].palette:f==="dark"&&(p={mode:"dark"}));const y=Ih({...t,palette:p},...n);return y.defaultColorScheme=f,y.colorSchemes=h,y.palette.mode==="light"&&(y.colorSchemes.light={...h.light!==!0&&h.light,palette:y.palette},W1(y,"dark",h.dark)),y.palette.mode==="dark"&&(y.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:y.palette},W1(y,"light",h.light)),y}return!i&&!("light"in h)&&f==="light"&&(h.light=!0),TE({...c,colorSchemes:h,defaultColorScheme:f,...typeof a!="boolean"&&a},...n)}const km=_m();function Zo(){const t=ix(km);return t[Er]||t}function ir({props:t,name:n}){return vM({props:t,name:n,defaultTheme:km,themeId:Er})}function CE(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const wE=t=>CE(t)&&t!=="classes",he=dM({themeId:Er,defaultTheme:km,rootShouldForwardProp:wE});function ME({theme:t,...n}){const i=Er in t?t[Er]:void 0;return H.jsx(dx,{...n,themeId:i?Er:void 0,theme:i||t})}const bu={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:EE}=YM({themeId:Er,theme:()=>_m({cssVariables:!0}),colorSchemeStorageKey:bu.colorSchemeStorageKey,modeStorageKey:bu.modeStorageKey,defaultColorScheme:{light:bu.defaultLightColorScheme,dark:bu.defaultDarkColorScheme},resolveTheme:t=>{const n={...t,typography:px(t.palette,t.typography)};return n.unstable_sx=function(a){return $i({sx:a,theme:this})},n}}),OE=EE;function RE({theme:t,...n}){const i=Y.useMemo(()=>{if(typeof t=="function")return t;const a=Er in t?t[Er]:t;return"colorSchemes"in a?null:"vars"in a?t:{...t,vars:null}},[t]);return i?H.jsx(ME,{theme:i,...n}):H.jsx(OE,{theme:t,...n})}function Qt(t,n){if(t==null)return{};var i={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(n.indexOf(a)!==-1)continue;i[a]=t[a]}return i}function _E(t){return zn("MuiBarElement",t)}const kE=qn("MuiBarElement",["root","highlighted","faded","series"]),DE=t=>{const{classes:n,id:i,isHighlighted:a,isFaded:o}=t,u={root:["root",`series-${i}`,a&&"highlighted",o&&"faded"]};return Nn(u,_E,n)};function Wa(...t){const n=Y.useRef(void 0),i=Y.useCallback(a=>{const o=t.map(u=>{if(u==null)return null;if(typeof u=="function"){const c=u,f=c(a);return typeof f=="function"?f:()=>{c(null)}}return u.current=a,()=>{u.current=null}});return()=>{o.forEach(u=>u==null?void 0:u())}},t);return Y.useMemo(()=>t.every(a=>a==null)?null:a=>{n.current&&(n.current(),n.current=void 0),a!=null&&(n.current=i(a))},t)}function zE(t){return typeof t=="string"}function NE(t,n,i){return t===void 0||zE(t)?n:{...n,ownerState:{...n.ownerState,...i}}}function UE(t,n=[]){if(t===void 0)return{};const i={};return Object.keys(t).filter(a=>a.match(/^on[A-Z]/)&&typeof t[a]=="function"&&!n.includes(a)).forEach(a=>{i[a]=t[a]}),i}function J1(t){if(t===void 0)return{};const n={};return Object.keys(t).filter(i=>!(i.match(/^on[A-Z]/)&&typeof t[i]=="function")).forEach(i=>{n[i]=t[i]}),n}function jE(t){const{getSlotProps:n,additionalProps:i,externalSlotProps:a,externalForwardedProps:o,className:u}=t;if(!n){const b=Mn(i==null?void 0:i.className,u,o==null?void 0:o.className,a==null?void 0:a.className),x={...i==null?void 0:i.style,...o==null?void 0:o.style,...a==null?void 0:a.style},S={...i,...o,...a};return b.length>0&&(S.className=b),Object.keys(x).length>0&&(S.style=x),{props:S,internalRef:void 0}}const c=UE({...o,...a}),f=J1(a),m=J1(o),h=n(c),p=Mn(h==null?void 0:h.className,i==null?void 0:i.className,u,o==null?void 0:o.className,a==null?void 0:a.className),y={...h==null?void 0:h.style,...i==null?void 0:i.style,...o==null?void 0:o.style,...a==null?void 0:a.style},v={...h,...i,...m,...f};return p.length>0&&(v.className=p),Object.keys(y).length>0&&(v.style=y),{props:v,internalRef:h.ref}}function $E(t,n,i){return typeof t=="function"?t(n,i):t}function Or(t){var y;const{elementType:n,externalSlotProps:i,ownerState:a,skipResolvingSlotProps:o=!1,...u}=t,c=o?{}:$E(i,a),{props:f,internalRef:m}=jE({...u,externalSlotProps:c}),h=Wa(m,c==null?void 0:c.ref,(y=t.additionalProps)==null?void 0:y.ref);return NE(n,{...f,ref:h},a)}let tv=0;function BE(t){const[n,i]=Y.useState(t),a=n;return Y.useEffect(()=>{n==null&&(tv+=1,i(`mui-${tv}`))},[n]),a}const LE={...Bh},ev=LE.useId;function xx(t){return ev!==void 0?ev():BE(t)}class HE{constructor(n){this.value=void 0,this.listeners=void 0,this.subscribe=i=>(this.listeners.add(i),()=>{this.listeners.delete(i)}),this.getSnapshot=()=>this.value,this.update=i=>{const a=i(this.value);a!==this.value&&(this.value=a,this.listeners.forEach(o=>o(a)))},this.value=n,this.listeners=new Set}}const yc=({params:t,store:n})=>{Y.useEffect(()=>{n.update(a=>I({},a,{animation:I({},a.animation,{skip:t.skipAnimation})}))},[n,t.skipAnimation]);const i=Y.useCallback(()=>{let a=!1;return n.update(o=>I({},o,{animation:I({},o.animation,{skipAnimationRequests:o.animation.skipAnimationRequests+1})})),()=>{a||(a=!0,n.update(o=>I({},o,{animation:I({},o.animation,{skipAnimationRequests:o.animation.skipAnimationRequests-1})})))}},[n]);return Ye(()=>{if(typeof window>"u"||!(window!=null&&window.matchMedia))return;let o;const u=f=>{f.matches?o=i():o==null||o()},c=window.matchMedia("(prefers-reduced-motion)");return u(c),c.addEventListener("change",u),()=>{c.removeEventListener("change",u)}},[i,n]),{instance:{disableAnimation:i}}};yc.params={skipAnimation:!0};yc.getDefaultizedParams=({params:t})=>I({},t,{skipAnimation:t.skipAnimation??!1});yc.getInitialState=({skipAnimation:t})=>({animation:{skip:t,skipAnimationRequests:0}});var $u=Symbol("NOT_FOUND");function YE(t,n=`expected a function, instead received ${typeof t}`){if(typeof t!="function")throw new TypeError(n)}function GE(t,n=`expected an object, instead received ${typeof t}`){if(typeof t!="object")throw new TypeError(n)}function qE(t,n="expected all items to be functions, instead received the following types: "){if(!t.every(i=>typeof i=="function")){const i=t.map(a=>typeof a=="function"?`function ${a.name||"unnamed"}()`:typeof a).join(", ");throw new TypeError(`${n}[${i}]`)}}var nv=t=>Array.isArray(t)?t:[t];function IE(t){const n=Array.isArray(t[0])?t[0]:t;return qE(n,"createSelector expects all input-selectors to be functions, but received the following types: "),n}function VE(t,n){const i=[],{length:a}=t;for(let o=0;o<a;o++)i.push(t[o].apply(null,n));return i}function XE(t){let n;return{get(i){return n&&t(n.key,i)?n.value:$u},put(i,a){n={key:i,value:a}},getEntries(){return n?[n]:[]},clear(){n=void 0}}}function PE(t,n){let i=[];function a(f){const m=i.findIndex(h=>n(f,h.key));if(m>-1){const h=i[m];return m>0&&(i.splice(m,1),i.unshift(h)),h.value}return $u}function o(f,m){a(f)===$u&&(i.unshift({key:f,value:m}),i.length>t&&i.pop())}function u(){return i}function c(){i=[]}return{get:a,put:o,getEntries:u,clear:c}}var ZE=(t,n)=>t===n;function QE(t){return function(i,a){if(i===null||a===null||i.length!==a.length)return!1;const{length:o}=i;for(let u=0;u<o;u++)if(!t(i[u],a[u]))return!1;return!0}}function KE(t,n){const i=typeof n=="object"?n:{equalityCheck:n},{equalityCheck:a=ZE,maxSize:o=1,resultEqualityCheck:u}=i,c=QE(a);let f=0;const m=o<=1?XE(c):PE(o,c);function h(){let p=m.get(arguments);if(p===$u){if(p=t.apply(null,arguments),f++,u){const v=m.getEntries().find(b=>u(b.value,p));v&&(p=v.value,f!==0&&f--)}m.put(arguments,p)}return p}return h.clearCache=()=>{m.clear(),h.resetResultsCount()},h.resultsCount=()=>f,h.resetResultsCount=()=>{f=0},h}var FE=class{constructor(t){this.value=t}deref(){return this.value}},WE=typeof WeakRef<"u"?WeakRef:FE,JE=0,rv=1;function xu(){return{s:JE,v:void 0,o:null,p:null}}function Sx(t,n={}){let i=xu();const{resultEqualityCheck:a}=n;let o,u=0;function c(){var y;let f=i;const{length:m}=arguments;for(let v=0,b=m;v<b;v++){const x=arguments[v];if(typeof x=="function"||typeof x=="object"&&x!==null){let S=f.o;S===null&&(f.o=S=new WeakMap);const C=S.get(x);C===void 0?(f=xu(),S.set(x,f)):f=C}else{let S=f.p;S===null&&(f.p=S=new Map);const C=S.get(x);C===void 0?(f=xu(),S.set(x,f)):f=C}}const h=f;let p;if(f.s===rv)p=f.v;else if(p=t.apply(null,arguments),u++,a){const v=((y=o==null?void 0:o.deref)==null?void 0:y.call(o))??o;v!=null&&a(v,p)&&(p=v,u!==0&&u--),o=typeof p=="object"&&p!==null||typeof p=="function"?new WE(p):p}return h.s=rv,h.v=p,p}return c.clearCache=()=>{i=xu(),c.resetResultsCount()},c.resultsCount=()=>u,c.resetResultsCount=()=>{u=0},c}function Ax(t,...n){const i=typeof t=="function"?{memoize:t,memoizeOptions:n}:t,a=(...o)=>{let u=0,c=0,f,m={},h=o.pop();typeof h=="object"&&(m=h,h=o.pop()),YE(h,`createSelector expects an output function after the inputs, but received: [${typeof h}]`);const p={...i,...m},{memoize:y,memoizeOptions:v=[],argsMemoize:b=Sx,argsMemoizeOptions:x=[]}=p,S=nv(v),C=nv(x),E=IE(o),_=y(function(){return u++,h.apply(null,arguments)},...S),O=b(function(){c++;const M=VE(E,arguments);return f=_.apply(null,M),f},...C);return Object.assign(O,{resultFunc:h,memoizedResultFunc:_,dependencies:E,dependencyRecomputations:()=>c,resetDependencyRecomputations:()=>{c=0},lastResult:()=>f,recomputations:()=>u,resetRecomputations:()=>{u=0},memoize:y,argsMemoize:b})};return Object.assign(a,{withTypes:()=>a}),a}var tO=Ax(Sx),eO=Object.assign((t,n=tO)=>{GE(t,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof t}`);const i=Object.keys(t),a=i.map(u=>t[u]);return n(a,(...u)=>u.reduce((c,f,m)=>(c[i[m]]=f,c),{}))},{withTypes:()=>eO});const nO=Ax({memoize:KE,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),iv=new WeakMap,ft=(...t)=>(i,a)=>{const o=i.cacheKey;let u=iv.get(o);u||(u=new Map,iv.set(o,u));const c=u.get(t);if(c)return c(i,a);const f=nO(...t);return u.set(t,f),f(i,a)},rO=t=>t.animation,iO=ft(rO,t=>t.skip||t.skipAnimationRequests>0);function Vh(t){return t&&t.ownerDocument||document}function aO(t){return Vh(t).defaultView||window}const Dm="DEFAULT_X_AXIS_KEY",zm="DEFAULT_Y_AXIS_KEY",lO={top:20,bottom:20,left:20,right:20},oO=45,sO=25,Tx=20,uO=4,dl=20+2*uO,Cx=t=>t.cartesianAxis,hl=ft(Cx,t=>t==null?void 0:t.x),Qo=ft(Cx,t=>t==null?void 0:t.y),cO=ft([Qo],t=>(t??[]).reduce((n,i)=>{var a;return i.position==="left"?n+(i.width||0)+((a=i.zoom)!=null&&a.slider.enabled?dl:0):n},0)),fO=ft([Qo],t=>(t??[]).reduce((n,i)=>{var a;return i.position==="right"?n+(i.width||0)+((a=i.zoom)!=null&&a.slider.enabled?dl:0):n},0)),dO=ft([hl],t=>(t??[]).reduce((n,i)=>{var a;return i.position==="top"?n+(i.height||0)+((a=i.zoom)!=null&&a.slider.enabled?dl:0):n},0)),hO=ft([hl],t=>(t??[]).reduce((n,i)=>{var a;return i.position==="bottom"?n+(i.height||0)+((a=i.zoom)!=null&&a.slider.enabled?dl:0):n},0)),vc=t=>t.dimensions,bc=ft(vc,t=>t.margin),wx=ft(vc,t=>t.width),Mx=ft(vc,t=>t.height),mO=ft(bc,t=>t.top),gO=ft(bc,t=>t.right),pO=ft(bc,t=>t.bottom),yO=ft(bc,t=>t.left),Ur=ft(wx,Mx,mO,gO,pO,yO,dO,fO,hO,cO,(t,n,i,a,o,u,c,f,m,h)=>({width:t-u-a-h-f,left:u+h,right:a+f,height:n-i-o-c-m,top:i+c,bottom:o+m})),vO=ft(vc,t=>({width:t.propsWidth,height:t.propsHeight})),bO=ft(wx,Mx,(t,n)=>({width:t,height:n}));function xO(t,n){return typeof t=="number"?{top:t,bottom:t,left:t,right:t}:n?I({},n,t):t}const SO=10,xc=({params:t,store:n,svgRef:i})=>{const a=t.width!==void 0&&t.height!==void 0,o=Y.useRef({displayError:!1,initialCompute:!0,computeRun:0}),[u,c]=Y.useState(0),[f,m]=Y.useState(0),h=Y.useCallback(()=>{const y=i==null?void 0:i.current;if(!y)return{};const b=aO(y).getComputedStyle(y),x=Math.floor(parseFloat(b.height))||0,S=Math.floor(parseFloat(b.width))||0;return n.update(C=>C.dimensions.width===S&&C.dimensions.height===x?C:I({},C,{dimensions:{margin:{top:t.margin.top,right:t.margin.right,bottom:t.margin.bottom,left:t.margin.left},width:t.width??S,height:t.height??x,propsWidth:t.width,propsHeight:t.height}})),{height:x,width:S}},[n,i,t.height,t.width,t.margin.left,t.margin.right,t.margin.top,t.margin.bottom]);return Y.useEffect(()=>{n.update(y=>{const v=t.width??y.dimensions.width,b=t.height??y.dimensions.height;return I({},y,{dimensions:{margin:{top:t.margin.top,right:t.margin.right,bottom:t.margin.bottom,left:t.margin.left},width:v,height:b,propsHeight:t.height,propsWidth:t.width}})})},[n,t.height,t.width,t.margin.left,t.margin.right,t.margin.top,t.margin.bottom]),Y.useEffect(()=>{o.current.displayError=!0},[]),Ye(()=>{if(a||!o.current.initialCompute||o.current.computeRun>SO)return;const y=h();y.width!==u||y.height!==f?(o.current.computeRun+=1,y.width!==void 0&&c(y.width),y.height!==void 0&&m(y.height)):o.current.initialCompute&&(o.current.initialCompute=!1)},[f,u,h,a]),Ye(()=>{if(a)return()=>{};h();const y=i.current;if(typeof ResizeObserver>"u")return()=>{};let v;const b=new ResizeObserver(()=>{v=requestAnimationFrame(()=>{h()})});return y&&b.observe(y),()=>{v&&cancelAnimationFrame(v),y&&b.unobserve(y)}},[h,a,i]),{instance:{isPointInside:Y.useCallback(({x:y,y:v},b)=>{if(b!=null&&b.targetElement&&(b!=null&&b.targetElement.closest("[data-drawing-container]")))return!0;const x=Ur(n.value),S=y>=x.left-1&&y<=x.left+x.width,C=v>=x.top-1&&v<=x.top+x.height;return(b==null?void 0:b.direction)==="x"?S:((b==null?void 0:b.direction)==="y"||S)&&C},[n.value])}}};xc.params={width:!0,height:!0,margin:!0};xc.getDefaultizedParams=({params:t})=>I({},t,{margin:xO(t.margin,lO)});xc.getInitialState=({width:t,height:n,margin:i})=>({dimensions:{margin:i,width:t??0,height:n??0,propsWidth:t,propsHeight:n}});let av=0;const AO=()=>(av+=1,`mui-chart-${av}`),Nm=({params:t,store:n})=>(Y.useEffect(()=>{n.update(i=>t.id===void 0||t.id===i.id.providedChartId&&i.id.chartId!==void 0?i:I({},i,{id:I({},i.id,{chartId:t.id??AO()})}))},[n,t.id]),{});Nm.params={id:!0};Nm.getInitialState=({id:t})=>({id:{chartId:t,providedChartId:t}});const TO=t=>t.id,CO=ft(TO,t=>t.chartId),wO=["#4254FB","#FFB422","#FA4F58","#0DBEFF","#22BF75","#FA83B4","#FF7511"],MO=["#495AFB","#FFC758","#F35865","#30C8FF","#44CE8D","#F286B3","#FF8C39"],Ex=t=>t==="dark"?MO:wO,Ox=({series:t,colors:n,seriesConfig:i,dataset:a})=>{const o={};t.forEach((c,f)=>{var p;const m=i[c.type].getSeriesWithDefaultValues(c,f,n),h=m.id;if(o[c.type]===void 0&&(o[c.type]={series:{},seriesOrder:[]}),((p=o[c.type])==null?void 0:p.series[h])!==void 0)throw new Error(`MUI X Charts: series' id "${h}" is not unique.`);o[c.type].series[h]=m,o[c.type].seriesOrder.push(h)});const u={};return Object.keys(i).forEach(c=>{var m,h;const f=o[c];f!==void 0&&(u[c]=((h=(m=i[c])==null?void 0:m.seriesProcessor)==null?void 0:h.call(m,f,a))??o[c])}),u},Sc=({params:t,store:n,seriesConfig:i})=>{const{series:a,dataset:o,theme:u,colors:c}=t,f=Y.useRef(!0);return Y.useEffect(()=>{if(f.current){f.current=!1;return}n.update(m=>I({},m,{series:I({},m.series,{processedSeries:Ox({series:a,colors:typeof c=="function"?c(u):c,seriesConfig:i,dataset:o})})}))},[c,o,a,u,i,n]),{}};Sc.params={dataset:!0,series:!0,colors:!0,theme:!0};const EO=[];Sc.getDefaultizedParams=({params:t})=>{var n;return I({},t,{series:(n=t.series)!=null&&n.length?t.series:EO,colors:t.colors??Ex,theme:t.theme??"light"})};Sc.getInitialState=({series:t=[],colors:n,theme:i,dataset:a},o,u)=>({series:{seriesConfig:u,processedSeries:Ox({series:t,colors:typeof n=="function"?n(i):n,seriesConfig:u,dataset:a})}});const Rx=t=>t.series,In=ft(Rx,t=>t.processedSeries),jr=ft(Rx,t=>t.seriesConfig),OO=[Nm,xc,Sc,yc],RO=["apiRef"],_O=t=>{let{plugins:n}=t,i=Qt(t.props,RO);const a={};n.forEach(c=>{Object.assign(a,c.params)});const o={};return Object.keys(i).forEach(c=>{const f=i[c];a[c]&&(o[c]=f)}),n.reduce((c,f)=>f.getDefaultizedParams?f.getDefaultizedParams({params:c}):c,o)};let lv=0;function kO(t,n,i){const a=xx(),o=Y.useMemo(()=>[...OO,...t],[t]),u=_O({plugins:o,props:n});u.id=u.id??a;const f=Y.useRef({}).current,m=zO(n.apiRef),h=Y.useRef(null),p=Y.useRef(null),y=Y.useRef(null);if(y.current==null){lv+=1;const x={cacheKey:{id:lv}};o.forEach(S=>{S.getInitialState&&Object.assign(x,S.getInitialState(u,x,i))}),y.current=new HE(x)}const v=x=>{const S=x({instance:f,params:u,plugins:o,store:y.current,svgRef:p,chartRootRef:h,seriesConfig:i});S.publicAPI&&Object.assign(m.current,S.publicAPI),S.instance&&Object.assign(f,S.instance)};return o.forEach(v),{contextValue:Y.useMemo(()=>({store:y.current,publicAPI:m.current,instance:f,svgRef:p,chartRootRef:h}),[f,m])}}function DO(t){return t.current==null&&(t.current={}),t}function zO(t){const n=Y.useRef({});return t?DO(t):n}const _x=Y.createContext(null);var mh={exports:{}},gh={};/** 99 - * @license React 100 - * use-sync-external-store-with-selector.production.js 101 - * 102 - * Copyright (c) Meta Platforms, Inc. and affiliates. 103 - * 104 - * This source code is licensed under the MIT license found in the 105 - * LICENSE file in the root directory of this source tree. 106 - */var ov;function NO(){if(ov)return gh;ov=1;var t=ic();function n(m,h){return m===h&&(m!==0||1/m===1/h)||m!==m&&h!==h}var i=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,o=t.useRef,u=t.useEffect,c=t.useMemo,f=t.useDebugValue;return gh.useSyncExternalStoreWithSelector=function(m,h,p,y,v){var b=o(null);if(b.current===null){var x={hasValue:!1,value:null};b.current=x}else x=b.current;b=c(function(){function C(M){if(!E){if(E=!0,_=M,M=y(M),v!==void 0&&x.hasValue){var R=x.value;if(v(R,M))return O=R}return O=M}if(R=O,i(_,M))return R;var D=y(M);return v!==void 0&&v(R,D)?(_=M,R):(_=M,O=D)}var E=!1,_,O,k=p===void 0?null:p;return[function(){return C(h())},k===null?void 0:function(){return C(k())}]},[h,p,y,v]);var S=a(m,b[0],b[1]);return u(function(){x.hasValue=!0,x.value=S},[S]),f(S),S},gh}var sv;function UO(){return sv||(sv=1,mh.exports=NO()),mh.exports}var jO=UO();const $O=Object.is,wt=(t,n,i=void 0,a=$O)=>{const o=u=>n(u,i);return jO.useSyncExternalStoreWithSelector(t.subscribe,t.getSnapshot,t.getSnapshot,o,a)},ph={minStart:0,maxEnd:100,step:5,minSpan:10,maxSpan:100,panning:!0,filterMode:"keep",slider:{enabled:!1}},Um=(t,n,i)=>{if(t)return t===!0?I({axisId:n,axisDirection:i},ph):I({axisId:n,axisDirection:i},ph,t,{slider:I({},ph.slider,t.slider)})};function kx(t,n){const i={top:0,bottom:0,none:0};return(t&&t.length>0?t:[{id:Dm,scaleType:"linear"}]).map((u,c)=>{var b;const f=u.dataKey,m=c===0?"bottom":"none",h=u.position??m,p=sO+(u.label?Tx:0),y=u.id??`defaultized-x-axis-${c}`,v=I({offset:i[h]},u,{id:y,position:h,height:u.height??p,zoom:Um(u.zoom,y,"x")});if(h!=="none"&&(i[h]+=v.height,(b=v.zoom)!=null&&b.slider.enabled&&(i[h]+=dl)),f===void 0||u.data!==void 0)return v;if(n===void 0)throw new Error("MUI X Charts: x-axis uses `dataKey` but no `dataset` is provided.");return I({},v,{data:n.map(x=>x[f])})})}function Dx(t,n){const i={right:0,left:0,none:0};return(t&&t.length>0?t:[{id:zm,scaleType:"linear"}]).map((u,c)=>{var b;const f=u.dataKey,m=c===0?"left":"none",h=u.position??m,p=oO+(u.label?Tx:0),y=u.id??`defaultized-y-axis-${c}`,v=I({offset:i[h]},u,{id:y,position:h,width:u.width??p,zoom:Um(u.zoom,y,"y")});if(h!=="none"&&(i[h]+=v.width,(b=v.zoom)!=null&&b.slider.enabled&&(i[h]+=dl)),f===void 0||u.data!==void 0)return v;if(n===void 0)throw new Error("MUI X Charts: y-axis uses `dataKey` but no `dataset` is provided.");return I({},v,{data:n.map(x=>x[f])})})}function zu(t,n){return t==null||n==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function BO(t,n){return t==null||n==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function jm(t){let n,i,a;t.length!==2?(n=zu,i=(f,m)=>zu(t(f),m),a=(f,m)=>t(f)-m):(n=t===zu||t===BO?t:LO,i=t,a=t);function o(f,m,h=0,p=f.length){if(h<p){if(n(m,m)!==0)return p;do{const y=h+p>>>1;i(f[y],m)<0?h=y+1:p=y}while(h<p)}return h}function u(f,m,h=0,p=f.length){if(h<p){if(n(m,m)!==0)return p;do{const y=h+p>>>1;i(f[y],m)<=0?h=y+1:p=y}while(h<p)}return h}function c(f,m,h=0,p=f.length){const y=o(f,m,h,p-1);return y>h&&a(f[y-1],m)>-a(f[y],m)?y-1:y}return{left:o,center:c,right:u}}function LO(){return 0}function HO(t){return t===null?NaN:+t}const YO=jm(zu),zx=YO.right;jm(HO).center;class uv extends Map{constructor(n,i=IO){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:i}}),n!=null)for(const[a,o]of n)this.set(a,o)}get(n){return super.get(cv(this,n))}has(n){return super.has(cv(this,n))}set(n,i){return super.set(GO(this,n),i)}delete(n){return super.delete(qO(this,n))}}function cv({_intern:t,_key:n},i){const a=n(i);return t.has(a)?t.get(a):i}function GO({_intern:t,_key:n},i){const a=n(i);return t.has(a)?t.get(a):(t.set(a,i),i)}function qO({_intern:t,_key:n},i){const a=n(i);return t.has(a)&&(i=t.get(a),t.delete(a)),i}function IO(t){return t!==null&&typeof t=="object"?t.valueOf():t}const VO=Math.sqrt(50),XO=Math.sqrt(10),PO=Math.sqrt(2);function Bu(t,n,i){const a=(n-t)/Math.max(0,i),o=Math.floor(Math.log10(a)),u=a/Math.pow(10,o),c=u>=VO?10:u>=XO?5:u>=PO?2:1;let f,m,h;return o<0?(h=Math.pow(10,-o)/c,f=Math.round(t*h),m=Math.round(n*h),f/h<t&&++f,m/h>n&&--m,h=-h):(h=Math.pow(10,o)*c,f=Math.round(t/h),m=Math.round(n/h),f*h<t&&++f,m*h>n&&--m),m<f&&.5<=i&&i<2?Bu(t,n,i*2):[f,m,h]}function Xh(t,n,i){if(n=+n,t=+t,i=+i,!(i>0))return[];if(t===n)return[t];const a=n<t,[o,u,c]=a?Bu(n,t,i):Bu(t,n,i);if(!(u>=o))return[];const f=u-o+1,m=new Array(f);if(a)if(c<0)for(let h=0;h<f;++h)m[h]=(u-h)/-c;else for(let h=0;h<f;++h)m[h]=(u-h)*c;else if(c<0)for(let h=0;h<f;++h)m[h]=(o+h)/-c;else for(let h=0;h<f;++h)m[h]=(o+h)*c;return m}function Ph(t,n,i){return n=+n,t=+t,i=+i,Bu(t,n,i)[2]}function Zh(t,n,i){n=+n,t=+t,i=+i;const a=n<t,o=a?Ph(n,t,i):Ph(t,n,i);return(a?-1:1)*(o<0?1/-o:o)}function ZO(t,n,i){t=+t,n=+n,i=(o=arguments.length)<2?(n=t,t=0,1):o<3?1:+i;for(var a=-1,o=Math.max(0,Math.ceil((n-t)/i))|0,u=new Array(o);++a<o;)u[a]=t+a*i;return u}function ci(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t);break}return this}function QO(t,n){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof n=="function"?this.interpolator(n):this.range(n);break}}return this}const fv=Symbol("implicit");function Lu(){var t=new uv,n=[],i=[],a=fv;function o(u){let c=t.get(u);if(c===void 0){if(a!==fv)return a;t.set(u,c=n.push(u)-1)}return i[c%i.length]}return o.domain=function(u){if(!arguments.length)return n.slice();n=[],t=new uv;for(const c of u)t.has(c)||t.set(c,n.push(c)-1);return o},o.range=function(u){return arguments.length?(i=Array.from(u),o):i.slice()},o.unknown=function(u){return arguments.length?(a=u,o):a},o.copy=function(){return Lu(n,i).unknown(a)},ci.apply(o,arguments),o}function Ac(){var t=Lu().unknown(void 0),n=t.domain,i=t.range,a=0,o=1,u,c,f=!1,m=0,h=0,p=.5;delete t.unknown;function y(){var v=n().length,b=o<a,x=b?o:a,S=b?a:o;u=(S-x)/Math.max(1,v-m+h*2),f&&(u=Math.floor(u)),x+=(S-x-u*(v-m))*p,c=u*(1-m),f&&(x=Math.round(x),c=Math.round(c));var C=ZO(v).map(function(E){return x+u*E});return i(b?C.reverse():C)}return t.domain=function(v){return arguments.length?(n(v),y()):n()},t.range=function(v){return arguments.length?([a,o]=v,a=+a,o=+o,y()):[a,o]},t.rangeRound=function(v){return[a,o]=v,a=+a,o=+o,f=!0,y()},t.bandwidth=function(){return c},t.step=function(){return u},t.round=function(v){return arguments.length?(f=!!v,y()):f},t.padding=function(v){return arguments.length?(m=Math.min(1,h=+v),y()):m},t.paddingInner=function(v){return arguments.length?(m=Math.min(1,v),y()):m},t.paddingOuter=function(v){return arguments.length?(h=+v,y()):h},t.align=function(v){return arguments.length?(p=Math.max(0,Math.min(1,v)),y()):p},t.copy=function(){return Ac(n(),[a,o]).round(f).paddingInner(m).paddingOuter(h).align(p)},ci.apply(y(),arguments)}function Nx(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Nx(n())},t}function Ux(){return Nx(Ac.apply(null,arguments).paddingInner(1))}function $m(t,n,i){t.prototype=n.prototype=i,i.constructor=t}function jx(t,n){var i=Object.create(t.prototype);for(var a in n)i[a]=n[a];return i}function Ko(){}var jo=.7,Hu=1/jo,Za="\\s*([+-]?\\d+)\\s*",$o="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",er="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",KO=/^#([0-9a-f]{3,8})$/,FO=new RegExp(`^rgb\\(${Za},${Za},${Za}\\)$`),WO=new RegExp(`^rgb\\(${er},${er},${er}\\)$`),JO=new RegExp(`^rgba\\(${Za},${Za},${Za},${$o}\\)$`),t3=new RegExp(`^rgba\\(${er},${er},${er},${$o}\\)$`),e3=new RegExp(`^hsl\\(${$o},${er},${er}\\)$`),n3=new RegExp(`^hsla\\(${$o},${er},${er},${$o}\\)$`),dv={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};$m(Ko,Bo,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:hv,formatHex:hv,formatHex8:r3,formatHsl:i3,formatRgb:mv,toString:mv});function hv(){return this.rgb().formatHex()}function r3(){return this.rgb().formatHex8()}function i3(){return $x(this).formatHsl()}function mv(){return this.rgb().formatRgb()}function Bo(t){var n,i;return t=(t+"").trim().toLowerCase(),(n=KO.exec(t))?(i=n[1].length,n=parseInt(n[1],16),i===6?gv(n):i===3?new We(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):i===8?Su(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):i===4?Su(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=FO.exec(t))?new We(n[1],n[2],n[3],1):(n=WO.exec(t))?new We(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=JO.exec(t))?Su(n[1],n[2],n[3],n[4]):(n=t3.exec(t))?Su(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=e3.exec(t))?vv(n[1],n[2]/100,n[3]/100,1):(n=n3.exec(t))?vv(n[1],n[2]/100,n[3]/100,n[4]):dv.hasOwnProperty(t)?gv(dv[t]):t==="transparent"?new We(NaN,NaN,NaN,0):null}function gv(t){return new We(t>>16&255,t>>8&255,t&255,1)}function Su(t,n,i,a){return a<=0&&(t=n=i=NaN),new We(t,n,i,a)}function a3(t){return t instanceof Ko||(t=Bo(t)),t?(t=t.rgb(),new We(t.r,t.g,t.b,t.opacity)):new We}function Qh(t,n,i,a){return arguments.length===1?a3(t):new We(t,n,i,a??1)}function We(t,n,i,a){this.r=+t,this.g=+n,this.b=+i,this.opacity=+a}$m(We,Qh,jx(Ko,{brighter(t){return t=t==null?Hu:Math.pow(Hu,t),new We(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?jo:Math.pow(jo,t),new We(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new We(zi(this.r),zi(this.g),zi(this.b),Yu(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:pv,formatHex:pv,formatHex8:l3,formatRgb:yv,toString:yv}));function pv(){return`#${_i(this.r)}${_i(this.g)}${_i(this.b)}`}function l3(){return`#${_i(this.r)}${_i(this.g)}${_i(this.b)}${_i((isNaN(this.opacity)?1:this.opacity)*255)}`}function yv(){const t=Yu(this.opacity);return`${t===1?"rgb(":"rgba("}${zi(this.r)}, ${zi(this.g)}, ${zi(this.b)}${t===1?")":`, ${t})`}`}function Yu(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function zi(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function _i(t){return t=zi(t),(t<16?"0":"")+t.toString(16)}function vv(t,n,i,a){return a<=0?t=n=i=NaN:i<=0||i>=1?t=n=NaN:n<=0&&(t=NaN),new Yn(t,n,i,a)}function $x(t){if(t instanceof Yn)return new Yn(t.h,t.s,t.l,t.opacity);if(t instanceof Ko||(t=Bo(t)),!t)return new Yn;if(t instanceof Yn)return t;t=t.rgb();var n=t.r/255,i=t.g/255,a=t.b/255,o=Math.min(n,i,a),u=Math.max(n,i,a),c=NaN,f=u-o,m=(u+o)/2;return f?(n===u?c=(i-a)/f+(i<a)*6:i===u?c=(a-n)/f+2:c=(n-i)/f+4,f/=m<.5?u+o:2-u-o,c*=60):f=m>0&&m<1?0:c,new Yn(c,f,m,t.opacity)}function o3(t,n,i,a){return arguments.length===1?$x(t):new Yn(t,n,i,a??1)}function Yn(t,n,i,a){this.h=+t,this.s=+n,this.l=+i,this.opacity=+a}$m(Yn,o3,jx(Ko,{brighter(t){return t=t==null?Hu:Math.pow(Hu,t),new Yn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?jo:Math.pow(jo,t),new Yn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*n,o=2*i-a;return new We(yh(t>=240?t-240:t+120,o,a),yh(t,o,a),yh(t<120?t+240:t-120,o,a),this.opacity)},clamp(){return new Yn(bv(this.h),Au(this.s),Au(this.l),Yu(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 t=Yu(this.opacity);return`${t===1?"hsl(":"hsla("}${bv(this.h)}, ${Au(this.s)*100}%, ${Au(this.l)*100}%${t===1?")":`, ${t})`}`}}));function bv(t){return t=(t||0)%360,t<0?t+360:t}function Au(t){return Math.max(0,Math.min(1,t||0))}function yh(t,n,i){return(t<60?n+(i-n)*t/60:t<180?i:t<240?n+(i-n)*(240-t)/60:n)*255}const Bm=t=>()=>t;function s3(t,n){return function(i){return t+i*n}}function u3(t,n,i){return t=Math.pow(t,i),n=Math.pow(n,i)-t,i=1/i,function(a){return Math.pow(t+a*n,i)}}function c3(t){return(t=+t)==1?Bx:function(n,i){return i-n?u3(n,i,t):Bm(isNaN(n)?i:n)}}function Bx(t,n){var i=n-t;return i?s3(t,i):Bm(isNaN(t)?n:t)}const xv=function t(n){var i=c3(n);function a(o,u){var c=i((o=Qh(o)).r,(u=Qh(u)).r),f=i(o.g,u.g),m=i(o.b,u.b),h=Bx(o.opacity,u.opacity);return function(p){return o.r=c(p),o.g=f(p),o.b=m(p),o.opacity=h(p),o+""}}return a.gamma=t,a}(1);function f3(t,n){n||(n=[]);var i=t?Math.min(n.length,t.length):0,a=n.slice(),o;return function(u){for(o=0;o<i;++o)a[o]=t[o]*(1-u)+n[o]*u;return a}}function d3(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function h3(t,n){var i=n?n.length:0,a=t?Math.min(i,t.length):0,o=new Array(a),u=new Array(i),c;for(c=0;c<a;++c)o[c]=Tc(t[c],n[c]);for(;c<i;++c)u[c]=n[c];return function(f){for(c=0;c<a;++c)u[c]=o[c](f);return u}}function Lm(t,n){var i=new Date;return t=+t,n=+n,function(a){return i.setTime(t*(1-a)+n*a),i}}function xe(t,n){return t=+t,n=+n,function(i){return t*(1-i)+n*i}}function m3(t,n){var i={},a={},o;(t===null||typeof t!="object")&&(t={}),(n===null||typeof n!="object")&&(n={});for(o in n)o in t?i[o]=Tc(t[o],n[o]):a[o]=n[o];return function(u){for(o in i)a[o]=i[o](u);return a}}var Kh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vh=new RegExp(Kh.source,"g");function g3(t){return function(){return t}}function p3(t){return function(n){return t(n)+""}}function y3(t,n){var i=Kh.lastIndex=vh.lastIndex=0,a,o,u,c=-1,f=[],m=[];for(t=t+"",n=n+"";(a=Kh.exec(t))&&(o=vh.exec(n));)(u=o.index)>i&&(u=n.slice(i,u),f[c]?f[c]+=u:f[++c]=u),(a=a[0])===(o=o[0])?f[c]?f[c]+=o:f[++c]=o:(f[++c]=null,m.push({i:c,x:xe(a,o)})),i=vh.lastIndex;return i<n.length&&(u=n.slice(i),f[c]?f[c]+=u:f[++c]=u),f.length<2?m[0]?p3(m[0].x):g3(n):(n=m.length,function(h){for(var p=0,y;p<n;++p)f[(y=m[p]).i]=y.x(h);return f.join("")})}function Tc(t,n){var i=typeof n,a;return n==null||i==="boolean"?Bm(n):(i==="number"?xe:i==="string"?(a=Bo(n))?(n=a,xv):y3:n instanceof Bo?xv:n instanceof Date?Lm:d3(n)?f3:Array.isArray(n)?h3:typeof n.valueOf!="function"&&typeof n.toString!="function"||isNaN(n)?m3:xe)(t,n)}function Lx(t,n){return t=+t,n=+n,function(i){return Math.round(t*(1-i)+n*i)}}function v3(t){return function(){return t}}function b3(t){return+t}var Sv=[0,1];function En(t){return t}function Fh(t,n){return(n-=t=+t)?function(i){return(i-t)/n}:v3(isNaN(n)?NaN:.5)}function x3(t,n){var i;return t>n&&(i=t,t=n,n=i),function(a){return Math.max(t,Math.min(n,a))}}function S3(t,n,i){var a=t[0],o=t[1],u=n[0],c=n[1];return o<a?(a=Fh(o,a),u=i(c,u)):(a=Fh(a,o),u=i(u,c)),function(f){return u(a(f))}}function A3(t,n,i){var a=Math.min(t.length,n.length)-1,o=new Array(a),u=new Array(a),c=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++c<a;)o[c]=Fh(t[c],t[c+1]),u[c]=i(n[c],n[c+1]);return function(f){var m=zx(t,f,1,a)-1;return u[m](o[m](f))}}function Cc(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Hm(){var t=Sv,n=Sv,i=Tc,a,o,u,c=En,f,m,h;function p(){var v=Math.min(t.length,n.length);return c!==En&&(c=x3(t[0],t[v-1])),f=v>2?A3:S3,m=h=null,y}function y(v){return v==null||isNaN(v=+v)?u:(m||(m=f(t.map(a),n,i)))(a(c(v)))}return y.invert=function(v){return c(o((h||(h=f(n,t.map(a),xe)))(v)))},y.domain=function(v){return arguments.length?(t=Array.from(v,b3),p()):t.slice()},y.range=function(v){return arguments.length?(n=Array.from(v),p()):n.slice()},y.rangeRound=function(v){return n=Array.from(v),i=Lx,p()},y.clamp=function(v){return arguments.length?(c=v?!0:En,p()):c!==En},y.interpolate=function(v){return arguments.length?(i=v,p()):i},y.unknown=function(v){return arguments.length?(u=v,y):u},function(v,b){return a=v,o=b,p()}}function Hx(){return Hm()(En,En)}function T3(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Gu(t,n){if((i=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var i,a=t.slice(0,i);return[a.length>1?a[0]+a.slice(2):a,+t.slice(i+1)]}function Ja(t){return t=Gu(Math.abs(t)),t?t[1]:NaN}function C3(t,n){return function(i,a){for(var o=i.length,u=[],c=0,f=t[0],m=0;o>0&&f>0&&(m+f+1>a&&(f=Math.max(1,a-m)),u.push(i.substring(o-=f,o+f)),!((m+=f+1)>a));)f=t[c=(c+1)%t.length];return u.reverse().join(n)}}function w3(t){return function(n){return n.replace(/[0-9]/g,function(i){return t[+i]})}}var M3=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Lo(t){if(!(n=M3.exec(t)))throw new Error("invalid format: "+t);var n;return new Ym({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}Lo.prototype=Ym.prototype;function Ym(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Ym.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 E3(t){t:for(var n=t.length,i=1,a=-1,o;i<n;++i)switch(t[i]){case".":a=o=i;break;case"0":a===0&&(a=i),o=i;break;default:if(!+t[i])break t;a>0&&(a=0);break}return a>0?t.slice(0,a)+t.slice(o+1):t}var Yx;function O3(t,n){var i=Gu(t,n);if(!i)return t+"";var a=i[0],o=i[1],u=o-(Yx=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,c=a.length;return u===c?a:u>c?a+new Array(u-c+1).join("0"):u>0?a.slice(0,u)+"."+a.slice(u):"0."+new Array(1-u).join("0")+Gu(t,Math.max(0,n+u-1))[0]}function Av(t,n){var i=Gu(t,n);if(!i)return t+"";var a=i[0],o=i[1];return o<0?"0."+new Array(-o).join("0")+a:a.length>o+1?a.slice(0,o+1)+"."+a.slice(o+1):a+new Array(o-a.length+2).join("0")}const Tv={"%":(t,n)=>(t*100).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:T3,e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>Av(t*100,n),r:Av,s:O3,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Cv(t){return t}var wv=Array.prototype.map,Mv=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function R3(t){var n=t.grouping===void 0||t.thousands===void 0?Cv:C3(wv.call(t.grouping,Number),t.thousands+""),i=t.currency===void 0?"":t.currency[0]+"",a=t.currency===void 0?"":t.currency[1]+"",o=t.decimal===void 0?".":t.decimal+"",u=t.numerals===void 0?Cv:w3(wv.call(t.numerals,String)),c=t.percent===void 0?"%":t.percent+"",f=t.minus===void 0?"−":t.minus+"",m=t.nan===void 0?"NaN":t.nan+"";function h(y){y=Lo(y);var v=y.fill,b=y.align,x=y.sign,S=y.symbol,C=y.zero,E=y.width,_=y.comma,O=y.precision,k=y.trim,M=y.type;M==="n"?(_=!0,M="g"):Tv[M]||(O===void 0&&(O=12),k=!0,M="g"),(C||v==="0"&&b==="=")&&(C=!0,v="0",b="=");var R=S==="$"?i:S==="#"&&/[boxX]/.test(M)?"0"+M.toLowerCase():"",D=S==="$"?a:/[%p]/.test(M)?c:"",L=Tv[M],$=/[defgprs%]/.test(M);O=O===void 0?6:/[gprs]/.test(M)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function T(z){var X=R,K=D,it,ot,j;if(M==="c")K=L(z)+K,z="";else{z=+z;var P=z<0||1/z<0;if(z=isNaN(z)?m:L(Math.abs(z),O),k&&(z=E3(z)),P&&+z==0&&x!=="+"&&(P=!1),X=(P?x==="("?x:f:x==="-"||x==="("?"":x)+X,K=(M==="s"?Mv[8+Yx/3]:"")+K+(P&&x==="("?")":""),$){for(it=-1,ot=z.length;++it<ot;)if(j=z.charCodeAt(it),48>j||j>57){K=(j===46?o+z.slice(it+1):z.slice(it))+K,z=z.slice(0,it);break}}}_&&!C&&(z=n(z,1/0));var nt=X.length+z.length+K.length,st=nt<E?new Array(E-nt+1).join(v):"";switch(_&&C&&(z=n(st+z,st.length?E-K.length:1/0),st=""),b){case"<":z=X+z+K+st;break;case"=":z=X+st+z+K;break;case"^":z=st.slice(0,nt=st.length>>1)+X+z+K+st.slice(nt);break;default:z=st+X+z+K;break}return u(z)}return T.toString=function(){return y+""},T}function p(y,v){var b=h((y=Lo(y),y.type="f",y)),x=Math.max(-8,Math.min(8,Math.floor(Ja(v)/3)))*3,S=Math.pow(10,-x),C=Mv[8+x/3];return function(E){return b(S*E)+C}}return{format:h,formatPrefix:p}}var Tu,Gm,Gx;_3({thousands:",",grouping:[3],currency:["$",""]});function _3(t){return Tu=R3(t),Gm=Tu.format,Gx=Tu.formatPrefix,Tu}function k3(t){return Math.max(0,-Ja(Math.abs(t)))}function D3(t,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ja(n)/3)))*3-Ja(Math.abs(t)))}function z3(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Ja(n)-Ja(t))+1}function N3(t,n,i,a){var o=Zh(t,n,i),u;switch(a=Lo(a??",f"),a.type){case"s":{var c=Math.max(Math.abs(t),Math.abs(n));return a.precision==null&&!isNaN(u=D3(o,c))&&(a.precision=u),Gx(a,c)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(u=z3(o,Math.max(Math.abs(t),Math.abs(n))))&&(a.precision=u-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(u=k3(o))&&(a.precision=u-(a.type==="%")*2);break}}return Gm(a)}function qm(t){var n=t.domain;return t.ticks=function(i){var a=n();return Xh(a[0],a[a.length-1],i??10)},t.tickFormat=function(i,a){var o=n();return N3(o[0],o[o.length-1],i??10,a)},t.nice=function(i){i==null&&(i=10);var a=n(),o=0,u=a.length-1,c=a[o],f=a[u],m,h,p=10;for(f<c&&(h=c,c=f,f=h,h=o,o=u,u=h);p-- >0;){if(h=Ph(c,f,i),h===m)return a[o]=c,a[u]=f,n(a);if(h>0)c=Math.floor(c/h)*h,f=Math.ceil(f/h)*h;else if(h<0)c=Math.ceil(c*h)/h,f=Math.floor(f*h)/h;else break;m=h}return t},t}function qx(){var t=Hx();return t.copy=function(){return Cc(t,qx())},ci.apply(t,arguments),qm(t)}function Ix(t,n){t=t.slice();var i=0,a=t.length-1,o=t[i],u=t[a],c;return u<o&&(c=i,i=a,a=c,c=o,o=u,u=c),t[i]=n.floor(o),t[a]=n.ceil(u),t}function Ev(t){return Math.log(t)}function Ov(t){return Math.exp(t)}function U3(t){return-Math.log(-t)}function j3(t){return-Math.exp(-t)}function $3(t){return isFinite(t)?+("1e"+t):t<0?0:t}function B3(t){return t===10?$3:t===Math.E?Math.exp:n=>Math.pow(t,n)}function L3(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),n=>Math.log(n)/t)}function Rv(t){return(n,i)=>-t(-n,i)}function H3(t){const n=t(Ev,Ov),i=n.domain;let a=10,o,u;function c(){return o=L3(a),u=B3(a),i()[0]<0?(o=Rv(o),u=Rv(u),t(U3,j3)):t(Ev,Ov),n}return n.base=function(f){return arguments.length?(a=+f,c()):a},n.domain=function(f){return arguments.length?(i(f),c()):i()},n.ticks=f=>{const m=i();let h=m[0],p=m[m.length-1];const y=p<h;y&&([h,p]=[p,h]);let v=o(h),b=o(p),x,S;const C=f==null?10:+f;let E=[];if(!(a%1)&&b-v<C){if(v=Math.floor(v),b=Math.ceil(b),h>0){for(;v<=b;++v)for(x=1;x<a;++x)if(S=v<0?x/u(-v):x*u(v),!(S<h)){if(S>p)break;E.push(S)}}else for(;v<=b;++v)for(x=a-1;x>=1;--x)if(S=v>0?x/u(-v):x*u(v),!(S<h)){if(S>p)break;E.push(S)}E.length*2<C&&(E=Xh(h,p,C))}else E=Xh(v,b,Math.min(b-v,C)).map(u);return y?E.reverse():E},n.tickFormat=(f,m)=>{if(f==null&&(f=10),m==null&&(m=a===10?"s":","),typeof m!="function"&&(!(a%1)&&(m=Lo(m)).precision==null&&(m.trim=!0),m=Gm(m)),f===1/0)return m;const h=Math.max(1,a*f/n.ticks().length);return p=>{let y=p/u(Math.round(o(p)));return y*a<a-.5&&(y*=a),y<=h?m(p):""}},n.nice=()=>i(Ix(i(),{floor:f=>u(Math.floor(o(f))),ceil:f=>u(Math.ceil(o(f)))})),n}function Vx(){const t=H3(Hm()).domain([1,10]);return t.copy=()=>Cc(t,Vx()).base(t.base()),ci.apply(t,arguments),t}function _v(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function Y3(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function G3(t){return t<0?-t*t:t*t}function q3(t){var n=t(En,En),i=1;function a(){return i===1?t(En,En):i===.5?t(Y3,G3):t(_v(i),_v(1/i))}return n.exponent=function(o){return arguments.length?(i=+o,a()):i},qm(n)}function Im(){var t=q3(Hm());return t.copy=function(){return Cc(t,Im()).exponent(t.exponent())},ci.apply(t,arguments),t}function I3(){return Im.apply(null,arguments).exponent(.5)}function Xx(){var t=[.5],n=[0,1],i,a=1;function o(u){return u!=null&&u<=u?n[zx(t,u,0,a)]:i}return o.domain=function(u){return arguments.length?(t=Array.from(u),a=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(u){return arguments.length?(n=Array.from(u),a=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(u){var c=n.indexOf(u);return[t[c-1],t[c]]},o.unknown=function(u){return arguments.length?(i=u,o):i},o.copy=function(){return Xx().domain(t).range(n).unknown(i)},ci.apply(o,arguments)}const bh=new Date,xh=new Date;function Se(t,n,i,a){function o(u){return t(u=arguments.length===0?new Date:new Date(+u)),u}return o.floor=u=>(t(u=new Date(+u)),u),o.ceil=u=>(t(u=new Date(u-1)),n(u,1),t(u),u),o.round=u=>{const c=o(u),f=o.ceil(u);return u-c<f-u?c:f},o.offset=(u,c)=>(n(u=new Date(+u),c==null?1:Math.floor(c)),u),o.range=(u,c,f)=>{const m=[];if(u=o.ceil(u),f=f==null?1:Math.floor(f),!(u<c)||!(f>0))return m;let h;do m.push(h=new Date(+u)),n(u,f),t(u);while(h<u&&u<c);return m},o.filter=u=>Se(c=>{if(c>=c)for(;t(c),!u(c);)c.setTime(c-1)},(c,f)=>{if(c>=c)if(f<0)for(;++f<=0;)for(;n(c,-1),!u(c););else for(;--f>=0;)for(;n(c,1),!u(c););}),i&&(o.count=(u,c)=>(bh.setTime(+u),xh.setTime(+c),t(bh),t(xh),Math.floor(i(bh,xh))),o.every=u=>(u=Math.floor(u),!isFinite(u)||!(u>0)?null:u>1?o.filter(a?c=>a(c)%u===0:c=>o.count(0,c)%u===0):o)),o}const qu=Se(()=>{},(t,n)=>{t.setTime(+t+n)},(t,n)=>n-t);qu.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Se(n=>{n.setTime(Math.floor(n/t)*t)},(n,i)=>{n.setTime(+n+i*t)},(n,i)=>(i-n)/t):qu);qu.range;const wr=1e3,On=wr*60,Mr=On*60,kr=Mr*24,Vm=kr*7,kv=kr*30,Sh=kr*365,ki=Se(t=>{t.setTime(t-t.getMilliseconds())},(t,n)=>{t.setTime(+t+n*wr)},(t,n)=>(n-t)/wr,t=>t.getUTCSeconds());ki.range;const Xm=Se(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*wr)},(t,n)=>{t.setTime(+t+n*On)},(t,n)=>(n-t)/On,t=>t.getMinutes());Xm.range;const Pm=Se(t=>{t.setUTCSeconds(0,0)},(t,n)=>{t.setTime(+t+n*On)},(t,n)=>(n-t)/On,t=>t.getUTCMinutes());Pm.range;const Zm=Se(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*wr-t.getMinutes()*On)},(t,n)=>{t.setTime(+t+n*Mr)},(t,n)=>(n-t)/Mr,t=>t.getHours());Zm.range;const Qm=Se(t=>{t.setUTCMinutes(0,0,0)},(t,n)=>{t.setTime(+t+n*Mr)},(t,n)=>(n-t)/Mr,t=>t.getUTCHours());Qm.range;const Fo=Se(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*On)/kr,t=>t.getDate()-1);Fo.range;const wc=Se(t=>{t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n)},(t,n)=>(n-t)/kr,t=>t.getUTCDate()-1);wc.range;const Px=Se(t=>{t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n)},(t,n)=>(n-t)/kr,t=>Math.floor(t/kr));Px.range;function Hi(t){return Se(n=>{n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},(n,i)=>{n.setDate(n.getDate()+i*7)},(n,i)=>(i-n-(i.getTimezoneOffset()-n.getTimezoneOffset())*On)/Vm)}const Mc=Hi(0),Iu=Hi(1),V3=Hi(2),X3=Hi(3),tl=Hi(4),P3=Hi(5),Z3=Hi(6);Mc.range;Iu.range;V3.range;X3.range;tl.range;P3.range;Z3.range;function Yi(t){return Se(n=>{n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},(n,i)=>{n.setUTCDate(n.getUTCDate()+i*7)},(n,i)=>(i-n)/Vm)}const Ec=Yi(0),Vu=Yi(1),Q3=Yi(2),K3=Yi(3),el=Yi(4),F3=Yi(5),W3=Yi(6);Ec.range;Vu.range;Q3.range;K3.range;el.range;F3.range;W3.range;const Km=Se(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,n)=>{t.setMonth(t.getMonth()+n)},(t,n)=>n.getMonth()-t.getMonth()+(n.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Km.range;const Fm=Se(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCMonth(t.getUTCMonth()+n)},(t,n)=>n.getUTCMonth()-t.getUTCMonth()+(n.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());Fm.range;const Dr=Se(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n)},(t,n)=>n.getFullYear()-t.getFullYear(),t=>t.getFullYear());Dr.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Se(n=>{n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},(n,i)=>{n.setFullYear(n.getFullYear()+i*t)});Dr.range;const zr=Se(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n)},(t,n)=>n.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());zr.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Se(n=>{n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,i)=>{n.setUTCFullYear(n.getUTCFullYear()+i*t)});zr.range;function Zx(t,n,i,a,o,u){const c=[[ki,1,wr],[ki,5,5*wr],[ki,15,15*wr],[ki,30,30*wr],[u,1,On],[u,5,5*On],[u,15,15*On],[u,30,30*On],[o,1,Mr],[o,3,3*Mr],[o,6,6*Mr],[o,12,12*Mr],[a,1,kr],[a,2,2*kr],[i,1,Vm],[n,1,kv],[n,3,3*kv],[t,1,Sh]];function f(h,p,y){const v=p<h;v&&([h,p]=[p,h]);const b=y&&typeof y.range=="function"?y:m(h,p,y),x=b?b.range(h,+p+1):[];return v?x.reverse():x}function m(h,p,y){const v=Math.abs(p-h)/y,b=jm(([,,C])=>C).right(c,v);if(b===c.length)return t.every(Zh(h/Sh,p/Sh,y));if(b===0)return qu.every(Math.max(Zh(h,p,y),1));const[x,S]=c[v/c[b-1][2]<c[b][2]/v?b-1:b];return x.every(S)}return[f,m]}const[J3,tR]=Zx(zr,Fm,Ec,Px,Qm,Pm),[eR,nR]=Zx(Dr,Km,Mc,Fo,Zm,Xm);function Ah(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Th(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function yo(t,n,i){return{y:t,m:n,d:i,H:0,M:0,S:0,L:0}}function rR(t){var n=t.dateTime,i=t.date,a=t.time,o=t.periods,u=t.days,c=t.shortDays,f=t.months,m=t.shortMonths,h=vo(o),p=bo(o),y=vo(u),v=bo(u),b=vo(c),x=bo(c),S=vo(f),C=bo(f),E=vo(m),_=bo(m),O={a:P,A:nt,b:st,B:N,c:null,d:$v,e:$v,f:MR,g:jR,G:BR,H:TR,I:CR,j:wR,L:Qx,m:ER,M:OR,p:F,q:at,Q:Hv,s:Yv,S:RR,u:_R,U:kR,V:DR,w:zR,W:NR,x:null,X:null,y:UR,Y:$R,Z:LR,"%":Lv},k={a:lt,A:ct,b:yt,B:dt,c:null,d:Bv,e:Bv,f:qR,g:JR,G:e_,H:HR,I:YR,j:GR,L:Fx,m:IR,M:VR,p:gt,q:mt,Q:Hv,s:Yv,S:XR,u:PR,U:ZR,V:QR,w:KR,W:FR,x:null,X:null,y:WR,Y:t_,Z:n_,"%":Lv},M={a:T,A:z,b:X,B:K,c:it,d:Uv,e:Uv,f:bR,g:Nv,G:zv,H:jv,I:jv,j:gR,L:vR,m:mR,M:pR,p:$,q:hR,Q:SR,s:AR,S:yR,u:sR,U:uR,V:cR,w:oR,W:fR,x:ot,X:j,y:Nv,Y:zv,Z:dR,"%":xR};O.x=R(i,O),O.X=R(a,O),O.c=R(n,O),k.x=R(i,k),k.X=R(a,k),k.c=R(n,k);function R(ut,xt){return function(bt){var rt=[],_t=-1,vt=0,Bt=ut.length,Wt,Yt,Ae;for(bt instanceof Date||(bt=new Date(+bt));++_t<Bt;)ut.charCodeAt(_t)===37&&(rt.push(ut.slice(vt,_t)),(Yt=Dv[Wt=ut.charAt(++_t)])!=null?Wt=ut.charAt(++_t):Yt=Wt==="e"?" ":"0",(Ae=xt[Wt])&&(Wt=Ae(bt,Yt)),rt.push(Wt),vt=_t+1);return rt.push(ut.slice(vt,_t)),rt.join("")}}function D(ut,xt){return function(bt){var rt=yo(1900,void 0,1),_t=L(rt,ut,bt+="",0),vt,Bt;if(_t!=bt.length)return null;if("Q"in rt)return new Date(rt.Q);if("s"in rt)return new Date(rt.s*1e3+("L"in rt?rt.L:0));if(xt&&!("Z"in rt)&&(rt.Z=0),"p"in rt&&(rt.H=rt.H%12+rt.p*12),rt.m===void 0&&(rt.m="q"in rt?rt.q:0),"V"in rt){if(rt.V<1||rt.V>53)return null;"w"in rt||(rt.w=1),"Z"in rt?(vt=Th(yo(rt.y,0,1)),Bt=vt.getUTCDay(),vt=Bt>4||Bt===0?Vu.ceil(vt):Vu(vt),vt=wc.offset(vt,(rt.V-1)*7),rt.y=vt.getUTCFullYear(),rt.m=vt.getUTCMonth(),rt.d=vt.getUTCDate()+(rt.w+6)%7):(vt=Ah(yo(rt.y,0,1)),Bt=vt.getDay(),vt=Bt>4||Bt===0?Iu.ceil(vt):Iu(vt),vt=Fo.offset(vt,(rt.V-1)*7),rt.y=vt.getFullYear(),rt.m=vt.getMonth(),rt.d=vt.getDate()+(rt.w+6)%7)}else("W"in rt||"U"in rt)&&("w"in rt||(rt.w="u"in rt?rt.u%7:"W"in rt?1:0),Bt="Z"in rt?Th(yo(rt.y,0,1)).getUTCDay():Ah(yo(rt.y,0,1)).getDay(),rt.m=0,rt.d="W"in rt?(rt.w+6)%7+rt.W*7-(Bt+5)%7:rt.w+rt.U*7-(Bt+6)%7);return"Z"in rt?(rt.H+=rt.Z/100|0,rt.M+=rt.Z%100,Th(rt)):Ah(rt)}}function L(ut,xt,bt,rt){for(var _t=0,vt=xt.length,Bt=bt.length,Wt,Yt;_t<vt;){if(rt>=Bt)return-1;if(Wt=xt.charCodeAt(_t++),Wt===37){if(Wt=xt.charAt(_t++),Yt=M[Wt in Dv?xt.charAt(_t++):Wt],!Yt||(rt=Yt(ut,bt,rt))<0)return-1}else if(Wt!=bt.charCodeAt(rt++))return-1}return rt}function $(ut,xt,bt){var rt=h.exec(xt.slice(bt));return rt?(ut.p=p.get(rt[0].toLowerCase()),bt+rt[0].length):-1}function T(ut,xt,bt){var rt=b.exec(xt.slice(bt));return rt?(ut.w=x.get(rt[0].toLowerCase()),bt+rt[0].length):-1}function z(ut,xt,bt){var rt=y.exec(xt.slice(bt));return rt?(ut.w=v.get(rt[0].toLowerCase()),bt+rt[0].length):-1}function X(ut,xt,bt){var rt=E.exec(xt.slice(bt));return rt?(ut.m=_.get(rt[0].toLowerCase()),bt+rt[0].length):-1}function K(ut,xt,bt){var rt=S.exec(xt.slice(bt));return rt?(ut.m=C.get(rt[0].toLowerCase()),bt+rt[0].length):-1}function it(ut,xt,bt){return L(ut,n,xt,bt)}function ot(ut,xt,bt){return L(ut,i,xt,bt)}function j(ut,xt,bt){return L(ut,a,xt,bt)}function P(ut){return c[ut.getDay()]}function nt(ut){return u[ut.getDay()]}function st(ut){return m[ut.getMonth()]}function N(ut){return f[ut.getMonth()]}function F(ut){return o[+(ut.getHours()>=12)]}function at(ut){return 1+~~(ut.getMonth()/3)}function lt(ut){return c[ut.getUTCDay()]}function ct(ut){return u[ut.getUTCDay()]}function yt(ut){return m[ut.getUTCMonth()]}function dt(ut){return f[ut.getUTCMonth()]}function gt(ut){return o[+(ut.getUTCHours()>=12)]}function mt(ut){return 1+~~(ut.getUTCMonth()/3)}return{format:function(ut){var xt=R(ut+="",O);return xt.toString=function(){return ut},xt},parse:function(ut){var xt=D(ut+="",!1);return xt.toString=function(){return ut},xt},utcFormat:function(ut){var xt=R(ut+="",k);return xt.toString=function(){return ut},xt},utcParse:function(ut){var xt=D(ut+="",!0);return xt.toString=function(){return ut},xt}}}var Dv={"-":"",_:" ",0:"0"},Oe=/^\s*\d+/,iR=/^%/,aR=/[\\^$*+?|[\]().{}]/g;function zt(t,n,i){var a=t<0?"-":"",o=(a?-t:t)+"",u=o.length;return a+(u<i?new Array(i-u+1).join(n)+o:o)}function lR(t){return t.replace(aR,"\\$&")}function vo(t){return new RegExp("^(?:"+t.map(lR).join("|")+")","i")}function bo(t){return new Map(t.map((n,i)=>[n.toLowerCase(),i]))}function oR(t,n,i){var a=Oe.exec(n.slice(i,i+1));return a?(t.w=+a[0],i+a[0].length):-1}function sR(t,n,i){var a=Oe.exec(n.slice(i,i+1));return a?(t.u=+a[0],i+a[0].length):-1}function uR(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.U=+a[0],i+a[0].length):-1}function cR(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.V=+a[0],i+a[0].length):-1}function fR(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.W=+a[0],i+a[0].length):-1}function zv(t,n,i){var a=Oe.exec(n.slice(i,i+4));return a?(t.y=+a[0],i+a[0].length):-1}function Nv(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),i+a[0].length):-1}function dR(t,n,i){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(i,i+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),i+a[0].length):-1}function hR(t,n,i){var a=Oe.exec(n.slice(i,i+1));return a?(t.q=a[0]*3-3,i+a[0].length):-1}function mR(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.m=a[0]-1,i+a[0].length):-1}function Uv(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.d=+a[0],i+a[0].length):-1}function gR(t,n,i){var a=Oe.exec(n.slice(i,i+3));return a?(t.m=0,t.d=+a[0],i+a[0].length):-1}function jv(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.H=+a[0],i+a[0].length):-1}function pR(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.M=+a[0],i+a[0].length):-1}function yR(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.S=+a[0],i+a[0].length):-1}function vR(t,n,i){var a=Oe.exec(n.slice(i,i+3));return a?(t.L=+a[0],i+a[0].length):-1}function bR(t,n,i){var a=Oe.exec(n.slice(i,i+6));return a?(t.L=Math.floor(a[0]/1e3),i+a[0].length):-1}function xR(t,n,i){var a=iR.exec(n.slice(i,i+1));return a?i+a[0].length:-1}function SR(t,n,i){var a=Oe.exec(n.slice(i));return a?(t.Q=+a[0],i+a[0].length):-1}function AR(t,n,i){var a=Oe.exec(n.slice(i));return a?(t.s=+a[0],i+a[0].length):-1}function $v(t,n){return zt(t.getDate(),n,2)}function TR(t,n){return zt(t.getHours(),n,2)}function CR(t,n){return zt(t.getHours()%12||12,n,2)}function wR(t,n){return zt(1+Fo.count(Dr(t),t),n,3)}function Qx(t,n){return zt(t.getMilliseconds(),n,3)}function MR(t,n){return Qx(t,n)+"000"}function ER(t,n){return zt(t.getMonth()+1,n,2)}function OR(t,n){return zt(t.getMinutes(),n,2)}function RR(t,n){return zt(t.getSeconds(),n,2)}function _R(t){var n=t.getDay();return n===0?7:n}function kR(t,n){return zt(Mc.count(Dr(t)-1,t),n,2)}function Kx(t){var n=t.getDay();return n>=4||n===0?tl(t):tl.ceil(t)}function DR(t,n){return t=Kx(t),zt(tl.count(Dr(t),t)+(Dr(t).getDay()===4),n,2)}function zR(t){return t.getDay()}function NR(t,n){return zt(Iu.count(Dr(t)-1,t),n,2)}function UR(t,n){return zt(t.getFullYear()%100,n,2)}function jR(t,n){return t=Kx(t),zt(t.getFullYear()%100,n,2)}function $R(t,n){return zt(t.getFullYear()%1e4,n,4)}function BR(t,n){var i=t.getDay();return t=i>=4||i===0?tl(t):tl.ceil(t),zt(t.getFullYear()%1e4,n,4)}function LR(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+zt(n/60|0,"0",2)+zt(n%60,"0",2)}function Bv(t,n){return zt(t.getUTCDate(),n,2)}function HR(t,n){return zt(t.getUTCHours(),n,2)}function YR(t,n){return zt(t.getUTCHours()%12||12,n,2)}function GR(t,n){return zt(1+wc.count(zr(t),t),n,3)}function Fx(t,n){return zt(t.getUTCMilliseconds(),n,3)}function qR(t,n){return Fx(t,n)+"000"}function IR(t,n){return zt(t.getUTCMonth()+1,n,2)}function VR(t,n){return zt(t.getUTCMinutes(),n,2)}function XR(t,n){return zt(t.getUTCSeconds(),n,2)}function PR(t){var n=t.getUTCDay();return n===0?7:n}function ZR(t,n){return zt(Ec.count(zr(t)-1,t),n,2)}function Wx(t){var n=t.getUTCDay();return n>=4||n===0?el(t):el.ceil(t)}function QR(t,n){return t=Wx(t),zt(el.count(zr(t),t)+(zr(t).getUTCDay()===4),n,2)}function KR(t){return t.getUTCDay()}function FR(t,n){return zt(Vu.count(zr(t)-1,t),n,2)}function WR(t,n){return zt(t.getUTCFullYear()%100,n,2)}function JR(t,n){return t=Wx(t),zt(t.getUTCFullYear()%100,n,2)}function t_(t,n){return zt(t.getUTCFullYear()%1e4,n,4)}function e_(t,n){var i=t.getUTCDay();return t=i>=4||i===0?el(t):el.ceil(t),zt(t.getUTCFullYear()%1e4,n,4)}function n_(){return"+0000"}function Lv(){return"%"}function Hv(t){return+t}function Yv(t){return Math.floor(+t/1e3)}var Ba,Jx,tS;r_({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 r_(t){return Ba=rR(t),Jx=Ba.format,Ba.parse,tS=Ba.utcFormat,Ba.utcParse,Ba}function i_(t){return new Date(t)}function a_(t){return t instanceof Date?+t:+new Date(+t)}function Wm(t,n,i,a,o,u,c,f,m,h){var p=Hx(),y=p.invert,v=p.domain,b=h(".%L"),x=h(":%S"),S=h("%I:%M"),C=h("%I %p"),E=h("%a %d"),_=h("%b %d"),O=h("%B"),k=h("%Y");function M(R){return(m(R)<R?b:f(R)<R?x:c(R)<R?S:u(R)<R?C:a(R)<R?o(R)<R?E:_:i(R)<R?O:k)(R)}return p.invert=function(R){return new Date(y(R))},p.domain=function(R){return arguments.length?v(Array.from(R,a_)):v().map(i_)},p.ticks=function(R){var D=v();return t(D[0],D[D.length-1],R??10)},p.tickFormat=function(R,D){return D==null?M:h(D)},p.nice=function(R){var D=v();return(!R||typeof R.range!="function")&&(R=n(D[0],D[D.length-1],R??10)),R?v(Ix(D,R)):p},p.copy=function(){return Cc(p,Wm(t,n,i,a,o,u,c,f,m,h))},p}function Jm(){return ci.apply(Wm(eR,nR,Dr,Km,Mc,Fo,Zm,Xm,ki,Jx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function l_(){return ci.apply(Wm(J3,tR,zr,Fm,Ec,wc,Qm,Pm,ki,tS).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function o_(){var t=0,n=1,i,a,o,u,c=En,f=!1,m;function h(y){return y==null||isNaN(y=+y)?m:c(o===0?.5:(y=(u(y)-i)*o,f?Math.max(0,Math.min(1,y)):y))}h.domain=function(y){return arguments.length?([t,n]=y,i=u(t=+t),a=u(n=+n),o=i===a?0:1/(a-i),h):[t,n]},h.clamp=function(y){return arguments.length?(f=!!y,h):f},h.interpolator=function(y){return arguments.length?(c=y,h):c};function p(y){return function(v){var b,x;return arguments.length?([b,x]=v,c=y(b,x),h):[c(0),c(1)]}}return h.range=p(Tc),h.rangeRound=p(Lx),h.unknown=function(y){return arguments.length?(m=y,h):m},function(y){return u=y,i=y(t),a=y(n),o=i===a?0:1/(a-i),h}}function s_(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function eS(){var t=qm(o_()(En));return t.copy=function(){return s_(t,eS())},QO.apply(t,arguments)}function Xu(t){return t.scaleType==="band"}function t0(t){return t.scaleType==="point"}function u_(t){return t.type==="piecewise"?Xx(t.thresholds,t.colors):eS([t.min??0,t.max??100],t.color)}function nl(t){return t.values?Lu(t.values,t.colors).unknown(t.unknownColor??null):Lu(t.colors.map((n,i)=>i),t.colors).unknown(t.unknownColor??null)}function Ni(t){return t.type==="ordinal"?nl(t):u_(t)}function nS(t){const{tickMaxStep:n,tickMinStep:i,tickNumber:a,range:o,domain:u}=t,c=i===void 0?999:Math.floor(Math.abs(u[1]-u[0])/i),f=n===void 0?2:Math.ceil(Math.abs(u[1]-u[0])/n),m=a??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(c,Math.max(f,m))}function rS(t,n){return n[1]-n[0]===0?1:t/((n[1]-n[0])/100)}function e0(t,n,i){switch(t){case"log":return Vx(n,i);case"pow":return Im(n,i);case"sqrt":return I3(n,i);case"time":return Jm(n,i);case"utc":return l_(n,i);default:return qx(n,i)}}const Ch=(t,n)=>{const i=t[1]-t[0],a=n[1]-n[0],o=t[0]-n[0]*i/a,u=t[1]+(100-n[1])*i/a;return[o,u]};let Gv,qv;class c_{constructor(){if(this.types=new Set,Gv)throw new Error("You can only create one instance!");Gv=this.types}addType(n){this.types.add(n)}getTypes(){return this.types}}class f_{constructor(){if(this.types=new Set,qv)throw new Error("You can only create one instance!");qv=this.types}addType(n){this.types.add(n)}getTypes(){return this.types}}const Oc=new c_;Oc.addType("bar");Oc.addType("line");Oc.addType("scatter");const iS=new f_;iS.addType("radar");function n0(t){return Oc.getTypes().has(t)}const d_=(t,n,i,a,o,u,c,f)=>{var x;const m=a==="x"?o[n].xExtremumGetter:o[n].yExtremumGetter,h=((x=c[n])==null?void 0:x.series)??{},[p,y]=(m==null?void 0:m({series:h,axis:i,axisIndex:u,isDefaultAxis:u===0,getFilters:f}))??[1/0,-1/0],[v,b]=t;return[Math.min(p,v),Math.max(y,b)]},aS=(t,n,i,a,o,u)=>{const f=Object.keys(i).filter(n0).reduce((m,h)=>d_(m,h,t,n,i,a,o,u),[1/0,-1/0]);return Number.isNaN(f[0])||Number.isNaN(f[1])?[1/0,-1/0]:f},h_=(t,n,i,a)=>{const o=new Set;return Object.keys(n).filter(n0).forEach(c=>{var h,p,y;const f=((h=i[c])==null?void 0:h.series)??{},m=(y=(p=n[c]).axisTooltipGetter)==null?void 0:y.call(p,f);m!==void 0&&m.forEach(({axisId:v,direction:b})=>{b===t&&o.add(v??a)})}),o};function m_(t,n,i){const a=n==="x"?[t.left,t.left+t.width]:[t.top+t.height,t.top];return i.reverse?[a[1],a[0]]:a}const Iv=t=>(t==null?void 0:t[0])instanceof Date;function Vv(t,n){const i=Jm(t.data,n);return(a,{location:o})=>o==="tick"?i.tickFormat(t.tickNumber)(a):`${a.toLocaleString()}`}const g_=.2,p_=.1;function lS({drawingArea:t,formattedSeries:n,axis:i,seriesConfig:a,axisDirection:o,zoomMap:u,zoomOptions:c,getFilters:f}){if(i===void 0)return{axis:{},axisIds:[]};const m=h_(o,a,n,i[0].id),h={};return i.forEach((p,y)=>{const v=p,b=c==null?void 0:c[v.id],x=u==null?void 0:u.get(v.id),S=x?[x.start,x.end]:[0,100],C=m_(t,o,v),[E,_]=aS(v,o,a,y,n,x===void 0&&!b?f:void 0),O=!v.ignoreTooltip&&m.has(v.id),k=v.data??[];if(Xu(v)){const j=v.categoryGapRatio??g_,P=v.barGapRatio??p_,nt=o==="y"?[C[1],C[0]]:C,st=Ch(nt,S);if(h[v.id]=I({offset:0,height:0,categoryGapRatio:j,barGapRatio:P,triggerTooltip:O},v,{data:k,scale:Ac(v.data,st).paddingInner(j).paddingOuter(j/2),tickNumber:v.data.length,colorScale:v.colorMap&&(v.colorMap.type==="ordinal"?nl(I({values:v.data},v.colorMap)):Ni(v.colorMap))}),Iv(v.data)){const N=Vv(v,nt);h[v.id].valueFormatter=v.valueFormatter??N}}if(t0(v)){const j=o==="y"?[...C].reverse():C,P=Ch(j,S);if(h[v.id]=I({offset:0,height:0,triggerTooltip:O},v,{data:k,scale:Ux(v.data,P),tickNumber:v.data.length,colorScale:v.colorMap&&(v.colorMap.type==="ordinal"?nl(I({values:v.data},v.colorMap)):Ni(v.colorMap))}),Iv(v.data)){const nt=Vv(v,j);h[v.id].valueFormatter=v.valueFormatter??nt}}if(v.scaleType==="band"||v.scaleType==="point")return;const M=v.scaleType??"linear",R=v.domainLimit??"nice",D=[v.min??E,v.max??_];if(typeof R=="function"){const{min:j,max:P}=R(E,_);D[0]=j,D[1]=P}const L=nS(I({},v,{range:C,domain:D})),$=rS(L,S),T=Ch(C,S),z=e0(M,D,T),X=R==="nice"?z.nice(L):z,[K,it]=X.domain(),ot=[v.min??K,v.max??it];h[v.id]=I({offset:0,height:0,triggerTooltip:O},v,{data:k,scaleType:M,scale:X.domain(ot),tickNumber:$,colorScale:v.colorMap&&Ni(v.colorMap)})}),{axis:h,axisIds:i.map(({id:p})=>p)}}function y_(t){return t!=null}function oS({zoomMap:t,zoomOptions:n,seriesConfig:i,formattedSeries:a,direction:o}){return(u,c)=>{var C;const f=n[u.id];if(!f||f.filterMode!=="discard")return null;const m=t==null?void 0:t.get(u.id);if(m===void 0||m.start<=0&&m.end>=100)return null;let h=[];const p=u.scaleType;p==="point"||p==="band"?h=[0,(((C=u.data)==null?void 0:C.length)??1)-1]:h=aS(u,o,i,c,a);let y,v;[y,v]=e0(!p||p==="band"||p==="point"?"linear":p,h,[0,100]).nice().domain(),y=y instanceof Date?y.getTime():y,v=v instanceof Date?v.getTime():v;const x=y+m.start*(v-y)/100,S=y+m.end*(v-y)/100;return(E,_)=>{var k;const O=E[o]??((k=u.data)==null?void 0:k[_]);return O==null?!0:u.scaleType==="point"||u.scaleType==="band"||typeof O=="string"?_>=x&&_<=S:O>=x&&O<=S}}}const v_=t=>({currentAxisId:n,seriesXAxisId:i,seriesYAxisId:a,isDefaultAxis:o})=>(u,c)=>{var h,p;return!(n===i?a:i)||o?((p=(h=Object.values(t??{}))[0])==null?void 0:p.call(h,u,c))??!0:[a,i].filter(y=>y!==n).map(y=>t[y??""]).filter(y_).every(y=>y(u,c))},sS=t=>(n=[])=>n.reduce((i,a)=>{const{zoom:o,id:u}=a,c=Um(o,u,t);return c&&(i[u]=c),i},{}),b_=t=>{const n=new Map;return t.forEach(i=>{n.set(i.axisId,i)}),n},uS=t=>t.zoom,cS=ft(uS,t=>t==null?void 0:t.isInteracting),Rc=ft(uS,t=>(t==null?void 0:t.zoomData)&&b_(t==null?void 0:t.zoomData)),fS=ft(hl,sS("x")),dS=ft(Qo,sS("y")),_c=ft([fS,dS],(t,n)=>I({},t,n));ft([fS,dS,(t,n)=>n],(t,n,i)=>t[i]??n[i]);const x_=ft([Rc,_c,jr,In],(t,n,i,a)=>t&&n&&oS({zoomMap:t,zoomOptions:n,seriesConfig:i,formattedSeries:a,direction:"x"})),S_=ft([Rc,_c,jr,In],(t,n,i,a)=>t&&n&&oS({zoomMap:t,zoomOptions:n,seriesConfig:i,formattedSeries:a,direction:"y"})),hS=ft([x_,S_,hl,Qo],(t,n,i,a)=>{if(t===void 0||n===void 0)return;const o=i==null?void 0:i.reduce((c,f,m)=>{const h=t(f,m);return h!==null&&(c[f.id]=h),c},{}),u=a==null?void 0:a.reduce((c,f,m)=>{const h=n(f,m);return h!==null&&(c[f.id]=h),c},{});if(!(Object.keys(o??{}).length===0&&Object.keys(u??{}).length===0))return v_(I({},o,u))}),Gi=ft([hl,Ur,In,jr,Rc,_c,hS],(t,n,i,a,o,u,c)=>lS({drawingArea:n,formattedSeries:i,axis:t,seriesConfig:a,axisDirection:"x",zoomMap:o,zoomOptions:u,getFilters:c})),qi=ft([Qo,Ur,In,jr,Rc,_c,hS],(t,n,i,a,o,u,c)=>lS({drawingArea:n,formattedSeries:i,axis:t,seriesConfig:a,axisDirection:"y",zoomMap:o,zoomOptions:u,getFilters:c}));function $r(t){return t.bandwidth!==void 0}function La(t){return t instanceof Date?t.getTime():t}function rl(t,n){const{scale:i,data:a,reverse:o}=t;if(!$r(i)){const c=i.invert(n);if(a===void 0)return-1;const f=La(c);return a==null?void 0:a.findIndex((h,p)=>{const y=La(h);return y>f&&(p===0||Math.abs(f-y)<=Math.abs(f-La(a[p-1])))||y<=f&&(p===a.length-1||Math.abs(La(c)-y)<Math.abs(La(c)-La(a[p+1])))})}const u=i.bandwidth()===0?Math.floor((n-Math.min(...i.range())+i.step()/2)/i.step()):Math.floor((n-Math.min(...i.range()))/i.step());return u<0||u>=a.length?-1:o?a.length-1-u:u}function Xv(t,n,i){const{scale:a,data:o}=t;if(!$r(a)){const u=a.invert(n);return i<0?u:o[i]}return i<0||i>=o.length?null:o[i]}function Wh(t,n){const i=t.createSVGPoint();return i.x=n.clientX,i.y=n.clientY,i.matrixTransform(t.getScreenCTM().inverse())}function si(t){const n=Y.useRef(t);return Ye(()=>{n.current=t}),Y.useRef((...i)=>(0,n.current)(...i)).current}const Wo=({store:t})=>{const n=si(()=>{t.update(u=>I({},u,{interaction:{pointer:null,item:null}}))}),i=si(u=>{t.update(c=>{const f=c.interaction.item;return u?f===null||Object.keys(u).some(m=>u[m]!==f[m])?c:I({},c,{interaction:I({},c.interaction,{item:null})}):f===null?c:I({},c,{interaction:I({},c.interaction,{item:null})})})}),a=si(u=>{t.update(c=>I({},c,{interaction:I({},c.interaction,{item:u})}))}),o=si(u=>{t.update(c=>I({},c,{interaction:I({},c.interaction,{pointer:u})}))});return{instance:{cleanInteraction:n,setItemInteraction:a,removeItemInteraction:i,setPointerCoordinate:o}}};Wo.getInitialState=()=>({interaction:{item:null,pointer:null}});Wo.params={};const r0=t=>t.interaction,A_=ft(r0,t=>t!==void 0),mS=ft(r0,t=>(t==null?void 0:t.item)??null),gS=ft(r0,t=>(t==null?void 0:t.pointer)??null),kc=ft(gS,t=>t&&t.x),Dc=ft(gS,t=>t&&t.y),T_=ft(mS,t=>t!==null),ml=({params:t,store:n,seriesConfig:i,svgRef:a,instance:o})=>{const{xAxis:u,yAxis:c,dataset:f}=t,m=wt(n,Ur),h=wt(n,In),p=wt(n,A_),{axis:y,axisIds:v}=wt(n,Gi),{axis:b,axisIds:x}=wt(n,qi),S=Y.useRef(!0);Y.useEffect(()=>{if(S.current){S.current=!1;return}n.update(_=>I({},_,{cartesianAxis:I({},_.cartesianAxis,{x:kx(u,f),y:Dx(c,f)})}))},[i,m,u,c,f,n]);const C=v[0],E=x[0];return Y.useEffect(()=>{const _=a.current;if(!p||_===null||t.disableAxisListener)return()=>{};const O=()=>{var R;(R=o.cleanInteraction)==null||R.call(o)},k=R=>{var $,T;const D="targetTouches"in R?R.targetTouches[0]:R,L=Wh(_,D);if(!o.isPointInside(L,{targetElement:R.target})){($=o.cleanInteraction)==null||$.call(o);return}(T=o.setPointerCoordinate)==null||T.call(o,L)},M=R=>{const D=R.currentTarget;D&&"hasPointerCapture"in D&&D.hasPointerCapture(R.pointerId)&&D.releasePointerCapture(R.pointerId)};return _.addEventListener("pointerdown",M),_.addEventListener("pointermove",k),_.addEventListener("pointercancel",O),_.addEventListener("pointerleave",O),()=>{_.removeEventListener("pointerdown",M),_.removeEventListener("pointermove",k),_.removeEventListener("pointercancel",O),_.removeEventListener("pointerleave",O)}},[a,n,y,C,b,E,o,t.disableAxisListener,p]),Y.useEffect(()=>{const _=a.current,O=t.onAxisClick;if(_===null||!O)return()=>{};const k=M=>{M.preventDefault();let R=null,D=!1;const L=Wh(_,M),$=rl(y[C],L.x);D=$!==-1,R=D?$:rl(b[E],L.y);const T=D?v[0]:x[0];if(R==null||R===-1)return;const z=(D?y:b)[T].data[R],X={};Object.keys(h).filter(K=>["bar","line"].includes(K)).forEach(K=>{var it;(it=h[K])==null||it.seriesOrder.forEach(ot=>{const j=h[K].series[ot],P=j.xAxisId,nt=j.yAxisId,st=D?P:nt;(st===void 0||st===T)&&(X[ot]=j.data[R])})}),O(M,{dataIndex:R,axisValue:z,seriesValues:X})};return _.addEventListener("click",k),()=>{_.removeEventListener("click",k)}},[t.onAxisClick,h,a,y,v,b,x,C,E]),{}};ml.params={xAxis:!0,yAxis:!0,dataset:!0,onAxisClick:!0,disableAxisListener:!0};ml.getDefaultizedParams=({params:t})=>I({},t,{colors:t.colors??Ex,theme:t.theme??"light",defaultizedXAxis:kx(t.xAxis,t.dataset),defaultizedYAxis:Dx(t.yAxis,t.dataset)});ml.getInitialState=t=>({cartesianAxis:{x:t.defaultizedXAxis,y:t.defaultizedYAxis}});function Qa(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){const o=t.length;if(o!==n.length)return!1;for(let u=0;u<o;u+=1)if(!Qa(t[u],n[u]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;const o=Array.from(t.entries());for(let u=0;u<o.length;u+=1)if(!n.has(o[u][0]))return!1;for(let u=0;u<o.length;u+=1){const c=o[u];if(!Qa(c[1],n.get(c[0])))return!1}return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;const o=Array.from(t.entries());for(let u=0;u<o.length;u+=1)if(!n.has(o[u][0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){const o=t.length;if(o!==n.length)return!1;for(let u=0;u<o;u+=1)if(t[u]!==n[u])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();const i=Object.keys(t),a=i.length;if(a!==Object.keys(n).length)return!1;for(let o=0;o<a;o+=1)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(let o=0;o<a;o+=1){const u=i[o];if(!Qa(t[u],n[u]))return!1}return!0}return t!==t&&n!==n}const zc=(t,n)=>n;function pS(t,n,i=n.axisIds[0]){return Array.isArray(i)?i.map(a=>rl(n.axis[a],t)):rl(n.axis[i],t)}const C_=ft([kc,Gi,zc],(t,n,i)=>t===null?null:pS(t,n,i)),w_=ft([Dc,qi,zc],(t,n,i)=>t===null?null:pS(t,n,i));function yS(t,n,i,a=n.axisIds[0]){return Array.isArray(a)?a.map((o,u)=>Xv(n.axis[o],t,i[u])):Xv(n.axis[a],t,i)}const M_=ft([kc,Gi,C_,zc],(t,n,i,a)=>t===null||i===null||n.axisIds.length===0?null:yS(t,n,i,a)),E_=ft([Dc,qi,w_,zc],(t,n,i,a)=>t===null||i===null||n.axisIds.length===0?null:yS(t,n,i,a)),vS=ft([kc,Gi],(t,n)=>t===null?[]:n.axisIds.filter(i=>n.axis[i].triggerTooltip).map(i=>({axisId:i,dataIndex:rl(n.axis[i],t)})).filter(({dataIndex:i})=>i>=0),{memoizeOptions:{resultEqualityCheck:Qa}}),bS=ft([Dc,qi],(t,n)=>t===null?[]:n.axisIds.filter(i=>n.axis[i].triggerTooltip).map(i=>({axisId:i,dataIndex:rl(n.axis[i],t)})).filter(({dataIndex:i})=>i>=0),{memoizeOptions:{resultEqualityCheck:Qa}}),O_=ft([vS,bS],(t,n)=>t.length>0||n.length>0);function Pv(t,n){return t.id!==void 0?t:I({id:n},t)}function Zv(t){return t.colorMap?I({},t,{colorScale:t.colorMap.type==="ordinal"&&t.data?nl(I({values:t.data},t.colorMap)):Ni(t.colorMap.type==="continuous"?I({min:t.min,max:t.max},t.colorMap):t.colorMap)}):t}function xS(t,n){if(!t||t.length===0)return{axis:{},axisIds:[]};const i={},a=[];return t.forEach((o,u)=>{const c=o.dataKey,f=o.id??`defaultized-z-axis-${u}`;if(c===void 0||o.data!==void 0){i[f]=Zv(Pv(o,f)),a.push(f);return}if(n===void 0)throw new Error("MUI X Charts: z-axis uses `dataKey` but no `dataset` is provided.");i[f]=Zv(Pv(I({},o,{data:n.map(m=>m[c])}),f)),a.push(f)}),{axis:i,axisIds:a}}const Jo=({params:t,store:n})=>{const{zAxis:i,dataset:a}=t,o=Y.useRef(!0);return Y.useEffect(()=>{if(o.current){o.current=!1;return}n.update(u=>I({},u,{zAxis:xS(i,a)}))},[i,a,n]),{}};Jo.params={zAxis:!0,dataset:!0};Jo.getInitialState=t=>({zAxis:xS(t.zAxis,t.dataset)});const R_=t=>t,__=ft([R_],t=>t.zAxis),k_=()=>{},gl=({store:t,params:n})=>{k_({controlled:n.highlightedItem}),Ye(()=>{t.update(o=>o.highlight.item===n.highlightedItem?o:I({},o,{highlight:I({},o.highlight,{item:n.highlightedItem})}))},[t,n.highlightedItem]);const i=si(()=>{var o;(o=n.onHighlightChange)==null||o.call(n,null),t.update(u=>I({},u,{highlight:{item:null}}))}),a=si(o=>{var u;(u=n.onHighlightChange)==null||u.call(n,o),t.update(c=>I({},c,{highlight:{item:o}}))});return{instance:{clearHighlight:i,setHighlight:a}}};gl.getDefaultizedParams=({params:t})=>I({},t,{highlightedItem:t.highlightedItem??null});gl.getInitialState=t=>({highlight:{item:t.highlightedItem}});gl.params={highlightedItem:!0,onHighlightChange:!0};const Qv=(t,n)=>n==="x"?{x:t,y:null}:{x:null,y:t},SS=t=>{var m;const{axis:n,getFilters:i,isDefaultAxis:a}=t,o=i==null?void 0:i({currentAxisId:n.id,isDefaultAxis:a}),u=o?(m=n.data)==null?void 0:m.filter((h,p)=>o({x:null,y:null},p)):n.data,c=Math.min(...u??[]),f=Math.max(...u??[]);return[c,f]},AS=t=>n=>{const{series:i,axis:a,getFilters:o,isDefaultAxis:u}=n;return Object.keys(i).filter(c=>{const f=t==="x"?i[c].xAxisId:i[c].yAxisId;return f===a.id||u&&f===void 0}).reduce((c,f)=>{const{stackedData:m}=i[f],h=o==null?void 0:o({currentAxisId:a.id,isDefaultAxis:u,seriesXAxisId:i[f].xAxisId,seriesYAxisId:i[f].yAxisId}),[p,y]=(m==null?void 0:m.reduce((v,b,x)=>h&&(!h(Qv(b[0],t),x)||!h(Qv(b[1],t),x))?v:[Math.min(...b,v[0]),Math.max(...b,v[1])],[1/0,-1/0]))??[1/0,-1/0];return[Math.min(p,c[0]),Math.max(y,c[1])]},[1/0,-1/0])},D_=t=>Object.keys(t.series).some(i=>t.series[i].layout==="horizontal")?AS("x")(t):SS(t),z_=t=>Object.keys(t.series).some(i=>t.series[i].layout==="horizontal")?SS(t):AS("y")(t);function Hn(t){return function(){return t}}const N_=Math.PI,wh=2*N_;function TS(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function U_(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function j_(t){return t}function $_(){var t=j_,n=U_,i=null,a=Hn(0),o=Hn(wh),u=Hn(0);function c(f){var m,h=(f=TS(f)).length,p,y,v=0,b=new Array(h),x=new Array(h),S=+a.apply(this,arguments),C=Math.min(wh,Math.max(-wh,o.apply(this,arguments)-S)),E,_=Math.min(Math.abs(C)/h,u.apply(this,arguments)),O=_*(C<0?-1:1),k;for(m=0;m<h;++m)(k=x[b[m]=m]=+t(f[m],m,f))>0&&(v+=k);for(n!=null?b.sort(function(M,R){return n(x[M],x[R])}):i!=null&&b.sort(function(M,R){return i(f[M],f[R])}),m=0,y=v?(C-h*O)/v:0;m<h;++m,S=E)p=b[m],k=x[p],E=S+(k>0?k*y:0)+O,x[p]={data:f[p],index:m,value:k,startAngle:S,endAngle:E,padAngle:_};return x}return c.value=function(f){return arguments.length?(t=typeof f=="function"?f:Hn(+f),c):t},c.sortValues=function(f){return arguments.length?(n=f,i=null,c):n},c.sort=function(f){return arguments.length?(i=f,n=null,c):i},c.startAngle=function(f){return arguments.length?(a=typeof f=="function"?f:Hn(+f),c):a},c.endAngle=function(f){return arguments.length?(o=typeof f=="function"?f:Hn(+f),c):o},c.padAngle=function(f){return arguments.length?(u=typeof f=="function"?f:Hn(+f),c):u},c}function il(t,n){if((c=t.length)>1)for(var i=1,a,o,u=t[n[0]],c,f=u.length;i<c;++i)for(o=u,u=t[n[i]],a=0;a<f;++a)u[a][1]+=u[a][0]=isNaN(o[a][1])?o[a][0]:o[a][1]}function al(t){for(var n=t.length,i=new Array(n);--n>=0;)i[n]=n;return i}function B_(t,n){return t[n]}function L_(t){const n=[];return n.key=t,n}function CS(){var t=Hn([]),n=al,i=il,a=B_;function o(u){var c=Array.from(t.apply(this,arguments),L_),f,m=c.length,h=-1,p;for(const y of u)for(f=0,++h;f<m;++f)(c[f][h]=[0,+a(y,c[f].key,h,u)]).data=y;for(f=0,p=TS(n(c));f<m;++f)c[p[f]].index=f;return i(c,p),c}return o.keys=function(u){return arguments.length?(t=typeof u=="function"?u:Hn(Array.from(u)),o):t},o.value=function(u){return arguments.length?(a=typeof u=="function"?u:Hn(+u),o):a},o.order=function(u){return arguments.length?(n=u==null?al:typeof u=="function"?u:Hn(Array.from(u)),o):n},o.offset=function(u){return arguments.length?(i=u??il,o):i},o}function H_(t,n){if((a=t.length)>0){for(var i,a,o=0,u=t[0].length,c;o<u;++o){for(c=i=0;i<a;++i)c+=t[i][o][1]||0;if(c)for(i=0;i<a;++i)t[i][o][1]/=c}il(t,n)}}function Y_(t,n){if((m=t.length)>0)for(var i,a=0,o,u,c,f,m,h=t[n[0]].length;a<h;++a)for(c=f=0,i=0;i<m;++i)(u=(o=t[n[i]][a])[1]-o[0])>0?(o[0]=c,o[1]=c+=u):u<0?(o[1]=f,o[0]=f+=u):(o[0]=0,o[1]=u)}function G_(t,n){if((o=t.length)>0){for(var i=0,a=t[n[0]],o,u=a.length;i<u;++i){for(var c=0,f=0;c<o;++c)f+=t[c][i][1]||0;a[i][1]+=a[i][0]=-f/2}il(t,n)}}function q_(t,n){if(!(!((c=t.length)>0)||!((u=(o=t[n[0]]).length)>0))){for(var i=0,a=1,o,u,c;a<u;++a){for(var f=0,m=0,h=0;f<c;++f){for(var p=t[n[f]],y=p[a][1]||0,v=p[a-1][1]||0,b=(y-v)/2,x=0;x<f;++x){var S=t[n[x]],C=S[a][1]||0,E=S[a-1][1]||0;b+=C-E}m+=y,h+=b*y}o[a-1][1]+=o[a-1][0]=i,m&&(i-=h/m)}o[a-1][1]+=o[a-1][0]=i,il(t,n)}}function wS(t){var n=t.map(I_);return al(t).sort(function(i,a){return n[i]-n[a]})}function I_(t){for(var n=-1,i=0,a=t.length,o,u=-1/0;++n<a;)(o=+t[n][1])>u&&(u=o,i=n);return i}function MS(t){var n=t.map(ES);return al(t).sort(function(i,a){return n[i]-n[a]})}function ES(t){for(var n=0,i=-1,a=t.length,o;++i<a;)(o=+t[i][1])&&(n+=o);return n}function V_(t){return MS(t).reverse()}function X_(t){var n=t.length,i,a,o=t.map(ES),u=wS(t),c=0,f=0,m=[],h=[];for(i=0;i<n;++i)a=u[i],c<f?(c+=o[a],m.push(a)):(f+=o[a],h.push(a));return h.reverse().concat(m)}function P_(t){return al(t).reverse()}const Mh={appearance:wS,ascending:MS,descending:V_,insideOut:X_,none:al,reverse:P_},Eh={expand:H_,diverging:Y_,none:il,silhouette:G_,wiggle:q_},OS=t=>{const{series:n,seriesOrder:i,defaultStrategy:a}=t,o=[],u={};return i.forEach(c=>{const{stack:f,stackOrder:m,stackOffset:h}=n[c];f===void 0?o.push({ids:[c],stackingOrder:Mh.none,stackingOffset:Eh.none}):u[f]===void 0?(u[f]=o.length,o.push({ids:[c],stackingOrder:Mh[m??(a==null?void 0:a.stackOrder)??"none"],stackingOffset:Eh[h??(a==null?void 0:a.stackOffset)??"diverging"]})):(o[u[f]].ids.push(c),m!==void 0&&(o[u[f]].stackingOrder=Mh[m]),h!==void 0&&(o[u[f]].stackingOffset=Eh[h]))}),o};function RS(t,n){const i={};return Object.keys(t).forEach(a=>{i[a]=I({},t[a],{valueFormatter:t[a].valueFormatter??n})}),i}const Z_=(t,n)=>{const{seriesOrder:i,series:a}=t,o=OS(t),u=n??[];i.forEach(f=>{const m=a[f].data;if(m!==void 0)m.forEach((h,p)=>{u.length<=p?u.push({[f]:h}):u[p][f]=h});else if(n===void 0)throw new Error([`MUI X Charts: bar series with id='${f}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(` 107 - `))});const c={};return o.forEach(f=>{const{ids:m,stackingOffset:h,stackingOrder:p}=f,y=CS().keys(m.map(v=>{const b=a[v].dataKey;return a[v].data===void 0&&b!==void 0?b:v})).value((v,b)=>v[b]??0).order(p).offset(h)(u);m.forEach((v,b)=>{const x=a[v].dataKey;c[v]=I({layout:"vertical",labelMarkType:"square"},a[v],{data:x?n.map(S=>{const C=S[x];return typeof C!="number"?0:C}):a[v].data,stackedData:y[b].map(([S,C])=>[S,C])})})}),{seriesOrder:i,stackingGroups:o,series:RS(c,f=>f==null?"":f.toLocaleString())}};function Gn(t,n){return typeof t=="function"?t(n):t}const Q_=t=>{const{seriesOrder:n,series:i}=t;return n.reduce((a,o)=>{const u=Gn(i[o].label,"legend");return u===void 0||a.push({markType:i[o].labelMarkType,id:o,seriesId:o,color:i[o].color,label:u}),a},[])},_S=(t,n,i)=>{const a=t.layout==="vertical",o=a?n==null?void 0:n.colorScale:i==null?void 0:i.colorScale,u=a?i==null?void 0:i.colorScale:n==null?void 0:n.colorScale,c=a?n==null?void 0:n.data:i==null?void 0:i.data;return u?f=>{if(f===void 0)return t.color;const m=t.data[f],h=m===null?t.color:u(m);return h===null?t.color:h}:o&&c?f=>{if(f===void 0)return t.color;const m=c[f],h=m===null?t.color:o(m);return h===null?t.color:h}:()=>t.color},K_=t=>{const{series:n,getColor:i,identifier:a}=t;if(!a||a.dataIndex===void 0)return null;const o=Gn(n.label,"tooltip"),u=n.data[a.dataIndex];if(u==null)return null;const c=n.valueFormatter(u,{dataIndex:a.dataIndex});return{identifier:a,color:i(a.dataIndex),label:o,value:u,formattedValue:c,markType:n.labelMarkType}},F_=t=>Object.values(t).map(n=>n.layout==="horizontal"?{direction:"y",axisId:n.yAxisId}:{direction:"x",axisId:n.xAxisId}),W_=(t,n,i)=>I({id:t.id??`auto-generated-id-${n}`,color:i[n%i.length]},t),J_={seriesProcessor:Z_,colorProcessor:_S,legendGetter:Q_,tooltipGetter:K_,axisTooltipGetter:F_,xExtremumGetter:D_,yExtremumGetter:z_,getSeriesWithDefaultValues:W_},Pu=(t,n)=>[n[0]===null?t[0]:Math.min(t[0],n[0]),n[1]===null?t[1]:Math.max(t[1],n[1])],t4=t=>{const{series:n,axis:i,isDefaultAxis:a,getFilters:o}=t;return Object.keys(n).filter(u=>{const c=n[u].xAxisId;return c===i.id||c===void 0&&a}).reduce((u,c)=>{var h;const f=o==null?void 0:o({currentAxisId:i.id,isDefaultAxis:a,seriesXAxisId:n[c].xAxisId,seriesYAxisId:n[c].yAxisId}),m=(h=n[c].data)==null?void 0:h.reduce((p,y,v)=>f&&!f(y,v)?p:Pu(p,[y.x,y.x]),[1/0,-1/0]);return Pu(u,m??[1/0,-1/0])},[1/0,-1/0])},e4=t=>{const{series:n,axis:i,isDefaultAxis:a,getFilters:o}=t;return Object.keys(n).filter(u=>{const c=n[u].yAxisId;return c===i.id||c===void 0&&a}).reduce((u,c)=>{var h;const f=o==null?void 0:o({currentAxisId:i.id,isDefaultAxis:a,seriesXAxisId:n[c].xAxisId,seriesYAxisId:n[c].yAxisId}),m=(h=n[c].data)==null?void 0:h.reduce((p,y,v)=>f&&!f(y,v)?p:Pu(p,[y.y,y.y]),[1/0,-1/0]);return Pu(u,m??[1/0,-1/0])},[1/0,-1/0])},n4=({series:t,seriesOrder:n},i)=>({series:Object.fromEntries(Object.entries(t).map(([o,u])=>{const c=u==null?void 0:u.datasetKeys,f=["x","y","id"].filter(h=>typeof(c==null?void 0:c[h])!="string");if(u!=null&&u.datasetKeys&&f.length>0)throw new Error([`MUI X Charts: scatter series with id='${o}' has incomplete datasetKeys.`,`Properties ${f.map(h=>`"${h}"`).join(", ")} are missing.`].join(` 108 - `));const m=c?(i==null?void 0:i.map(h=>({x:h[c.x]??null,y:h[c.y]??null,z:c.z&&h[c.z],id:c.id&&h[c.id]})))??[]:u.data??[];return[o,I({labelMarkType:"circle",markerSize:4},u,{data:m,valueFormatter:u.valueFormatter??(h=>h&&`(${h.x}, ${h.y})`)})]})),seriesOrder:n}),r4=(t,n,i,a)=>{const o=a==null?void 0:a.colorScale,u=i==null?void 0:i.colorScale,c=n==null?void 0:n.colorScale;return o?f=>{var p,y;if(f===void 0)return t.color;if(((p=a==null?void 0:a.data)==null?void 0:p[f])!==void 0){const v=o((y=a==null?void 0:a.data)==null?void 0:y[f]);if(v!==null)return v}const m=t.data[f],h=m===null?t.color:o(m.z);return h===null?t.color:h}:u?f=>{if(f===void 0)return t.color;const m=t.data[f],h=m===null?t.color:u(m.y);return h===null?t.color:h}:c?f=>{if(f===void 0)return t.color;const m=t.data[f],h=m===null?t.color:c(m.x);return h===null?t.color:h}:()=>t.color},i4=t=>{const{seriesOrder:n,series:i}=t;return n.reduce((a,o)=>{const u=Gn(i[o].label,"legend");return u===void 0||a.push({markType:i[o].labelMarkType,id:o,seriesId:o,color:i[o].color,label:u}),a},[])},a4=t=>{const{series:n,getColor:i,identifier:a}=t;if(!a||a.dataIndex===void 0)return null;const o=Gn(n.label,"tooltip"),u=n.data[a.dataIndex],c=n.valueFormatter(u,{dataIndex:a.dataIndex});return{identifier:a,color:i(a.dataIndex),label:o,value:u,formattedValue:c,markType:n.labelMarkType}},l4=(t,n,i)=>I({id:t.id??`auto-generated-id-${n}`,color:i[n%i.length]},t),o4={seriesProcessor:n4,colorProcessor:r4,legendGetter:i4,tooltipGetter:a4,xExtremumGetter:t4,yExtremumGetter:e4,getSeriesWithDefaultValues:l4},s4=t=>{const{axis:n}=t,i=Math.min(...n.data??[]),a=Math.max(...n.data??[]);return[i,a]};function u4(t,n,i,a){return i.reduce((o,u,c)=>{if(n[c]===null)return o;const[f,m]=t(u);return a&&(!a({y:f,x:null},c)||!a({y:m,x:null},c))?o:[Math.min(f,m,o[0]),Math.max(f,m,o[1])]},[1/0,-1/0])}const c4=t=>{const{series:n,axis:i,isDefaultAxis:a,getFilters:o}=t;return Object.keys(n).filter(u=>{const c=n[u].yAxisId;return c===i.id||a&&c===void 0}).reduce((u,c)=>{const{area:f,stackedData:m,data:h}=n[c],p=f!==void 0,y=o==null?void 0:o({currentAxisId:i.id,isDefaultAxis:a,seriesXAxisId:n[c].xAxisId,seriesYAxisId:n[c].yAxisId}),v=p&&i.scaleType!=="log"&&typeof n[c].baseline!="string"?C=>C:C=>[C[1],C[1]],b=u4(v,h,m,y),[x,S]=b;return[Math.min(x,u[0]),Math.max(S,u[1])]},[1/0,-1/0])},f4=(t,n)=>{const{seriesOrder:i,series:a}=t,o=OS(I({},t,{defaultStrategy:{stackOffset:"none"}})),u=n??[];i.forEach(f=>{const m=a[f].data;m!==void 0&&m.forEach((h,p)=>{u.length<=p?u.push({[f]:h}):u[p][f]=h})});const c={};return o.forEach(f=>{const{ids:m,stackingOrder:h,stackingOffset:p}=f,y=CS().keys(m.map(v=>{const b=a[v].dataKey;return a[v].data===void 0&&b!==void 0?b:v})).value((v,b)=>v[b]??0).order(h).offset(p)(u);m.forEach((v,b)=>{const x=a[v].dataKey;c[v]=I({labelMarkType:"line"},a[v],{data:x?n.map(S=>{const C=S[x];return typeof C!="number"?null:C}):a[v].data,stackedData:y[b].map(([S,C])=>[S,C])})})}),{seriesOrder:i,stackingGroups:o,series:RS(c,f=>f==null?"":f.toLocaleString())}},d4=(t,n,i)=>{const a=i==null?void 0:i.colorScale,o=n==null?void 0:n.colorScale;return a?u=>{if(u===void 0)return t.color;const c=t.data[u],f=c===null?t.color:a(c);return f===null?t.color:f}:o?u=>{var m;if(u===void 0)return t.color;const c=(m=n.data)==null?void 0:m[u],f=c===null?t.color:o(c);return f===null?t.color:f}:()=>t.color},h4=t=>{const{seriesOrder:n,series:i}=t;return n.reduce((a,o)=>{const u=Gn(i[o].label,"legend");return u===void 0||a.push({markType:i[o].labelMarkType,id:o,seriesId:o,color:i[o].color,label:u}),a},[])},m4=t=>{const{series:n,getColor:i,identifier:a}=t;if(!a||a.dataIndex===void 0)return null;const o=Gn(n.label,"tooltip"),u=n.data[a.dataIndex],c=n.valueFormatter(u,{dataIndex:a.dataIndex});return{identifier:a,color:i(a.dataIndex),label:o,value:u,formattedValue:c,markType:n.labelMarkType}},g4=t=>Object.values(t).map(n=>({direction:"x",axisId:n.xAxisId})),p4=(t,n,i)=>I({id:t.id??`auto-generated-id-${n}`,color:i[n%i.length]},t),y4={colorProcessor:d4,seriesProcessor:f4,legendGetter:h4,tooltipGetter:m4,axisTooltipGetter:g4,xExtremumGetter:s4,yExtremumGetter:c4,getSeriesWithDefaultValues:p4},v4=(t="none")=>{if(typeof t=="function")return t;switch(t){case"none":return null;case"desc":return(n,i)=>i-n;case"asc":return(n,i)=>n-i;default:return null}},b4=t=>{const{seriesOrder:n,series:i}=t,a={};return n.forEach(o=>{const u=$_().startAngle(2*Math.PI*(i[o].startAngle??0)/360).endAngle(2*Math.PI*(i[o].endAngle??360)/360).padAngle(2*Math.PI*(i[o].paddingAngle??0)/360).sortValues(v4(i[o].sortingValues??"none"))(i[o].data.map(c=>c.value));a[o]=I({labelMarkType:"circle",valueFormatter:c=>c.value.toLocaleString()},i[o],{data:i[o].data.map((c,f)=>I({},c,{id:c.id??`auto-generated-pie-id-${o}-${f}`},u[f])).map((c,f)=>{var m,h;return I({labelMarkType:"circle"},c,{formattedValue:((h=(m=i[o]).valueFormatter)==null?void 0:h.call(m,I({},c,{label:Gn(c.label,"arc")}),{dataIndex:f}))??c.value.toLocaleString()})})})}),{seriesOrder:n,series:a}},x4=t=>n=>t.data[n].color,S4=t=>{const{seriesOrder:n,series:i}=t;return n.reduce((a,o)=>(i[o].data.forEach((u,c)=>{const f=Gn(u.label,"legend");f!==void 0&&a.push({markType:u.labelMarkType??i[o].labelMarkType,id:u.id??c,seriesId:o,color:u.color,label:f,itemId:u.id??c})}),a),[])},A4=t=>{const{series:n,getColor:i,identifier:a}=t;if(!a||a.dataIndex===void 0)return null;const o=n.data[a.dataIndex];if(o==null)return null;const u=Gn(o.label,"tooltip"),c=I({},o,{label:u}),f=n.valueFormatter(c,{dataIndex:a.dataIndex});return{identifier:a,color:i(a.dataIndex),label:u,value:c,formattedValue:f,markType:o.labelMarkType??n.labelMarkType}},T4=(t,n,i)=>I({id:t.id??`auto-generated-id-${n}`},t,{data:t.data.map((a,o)=>I({color:i[o%i.length]},a))}),C4={colorProcessor:x4,seriesProcessor:b4,legendGetter:S4,tooltipGetter:A4,getSeriesWithDefaultValues:T4},w4={bar:J_,scatter:o4,line:y4,pie:C4},M4=[Jo,ml,Wo,gl];function E4(t){const{children:n,plugins:i=M4,pluginParams:a={},seriesConfig:o=w4}=t,{contextValue:u}=kO(i,a,o);return H.jsx(_x.Provider,{value:u,children:n})}const Ii=()=>{const t=Y.useContext(_x);if(t==null)throw new Error(["MUI X Charts: Could not find the Chart context.","It looks like you rendered your component outside of a ChartDataProvider.","This can also happen if you are bundling multiple versions of the library."].join(` 109 - `));return t},O4=t=>{"hasPointerCapture"in t.currentTarget&&t.currentTarget.hasPointerCapture(t.pointerId)&&t.currentTarget.releasePointerCapture(t.pointerId)},R4=(t,n)=>{const{instance:i}=Ii(),a=Y.useRef(!1),o=Y.useCallback(()=>{a.current=!0,i.setItemInteraction({type:t.type,seriesId:t.seriesId,dataIndex:t.dataIndex}),i.setHighlight({seriesId:t.seriesId,dataIndex:t.dataIndex})},[i,t.type,t.seriesId,t.dataIndex]),u=Y.useCallback(()=>{a.current=!1,i.removeItemInteraction({type:t.type,seriesId:t.seriesId,dataIndex:t.dataIndex}),i.clearHighlight()},[i,t.type,t.seriesId,t.dataIndex]);return Y.useEffect(()=>()=>{a.current&&u()},[u]),{onPointerEnter:o,onPointerLeave:u,onPointerDown:O4}};function Jt(){const t=Ii();if(!t)throw new Error(["MUI X Charts: Could not find the charts context.","It looks like you rendered your component outside of a ChartContainer parent component."].join(` 110 - `));return t.store}const kS=(t,n)=>i=>!t||!n||!i?!1:t.highlight==="series"?i.seriesId===n.seriesId:t.highlight==="item"?i.dataIndex===n.dataIndex&&i.seriesId===n.seriesId:!1,DS=(t,n)=>i=>!t||!n||!i?!1:t.fade==="series"?i.seriesId===n.seriesId&&i.dataIndex!==n.dataIndex:t.fade==="global"?i.seriesId!==n.seriesId||i.dataIndex!==n.dataIndex:!1,_4=t=>t.highlight,k4=t=>t.series,D4=ft(k4,t=>{const n=new Map;return Object.keys(t.processedSeries).forEach(i=>{const a=t.processedSeries[i];Object.keys((a==null?void 0:a.series)??{}).forEach(o=>{const u=a==null?void 0:a.series[o];n.set(o,u==null?void 0:u.highlightScope)})}),n}),ts=ft(_4,t=>t.item),Nc=ft([D4,ts],(t,n)=>{if(!n)return null;const i=t.get(n.seriesId);return i===void 0?null:i});ft([Nc,ts],kS);ft([Nc,ts],DS);const z4=ft([Nc,ts,(t,n)=>n],(t,n,i)=>kS(t,n)(i)),N4=ft([Nc,ts,(t,n)=>n],(t,n,i)=>DS(t,n)(i));function zS(t){const n=Jt(),i=wt(n,z4,t),a=wt(n,N4,t);return{isHighlighted:i,isFaded:!i&&a}}var Oh,Kv;function U4(){if(Kv)return Oh;Kv=1;var t=4,n=.001,i=1e-7,a=10,o=11,u=1/(o-1),c=typeof Float32Array=="function";function f(S,C){return 1-3*C+3*S}function m(S,C){return 3*C-6*S}function h(S){return 3*S}function p(S,C,E){return((f(C,E)*S+m(C,E))*S+h(C))*S}function y(S,C,E){return 3*f(C,E)*S*S+2*m(C,E)*S+h(C)}function v(S,C,E,_,O){var k,M,R=0;do M=C+(E-C)/2,k=p(M,_,O)-S,k>0?E=M:C=M;while(Math.abs(k)>i&&++R<a);return M}function b(S,C,E,_){for(var O=0;O<t;++O){var k=y(C,E,_);if(k===0)return C;var M=p(C,E,_)-S;C-=M/k}return C}function x(S){return S}return Oh=function(C,E,_,O){if(!(0<=C&&C<=1&&0<=_&&_<=1))throw new Error("bezier x values must be in [0, 1] range");if(C===E&&_===O)return x;for(var k=c?new Float32Array(o):new Array(o),M=0;M<o;++M)k[M]=p(M*u,C,_);function R(D){for(var L=0,$=1,T=o-1;$!==T&&k[$]<=D;++$)L+=u;--$;var z=(D-k[$])/(k[$+1]-k[$]),X=L+z*u,K=y(X,C,_);return K>=n?b(D,X,C,_):K===0?X:v(D,L,L+u,C,_)}return function(L){return L===0?0:L===1?1:p(R(L),E,O)}},Oh}var j4=U4();const $4=jb(j4),B4=300,L4=$4(.66,0,.34,1);var ll=0,wo=0,xo=0,NS=1e3,Zu,Mo,Qu=0,Bi=0,Uc=0,Ho=typeof performance=="object"&&performance.now?performance:Date,US=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function i0(){return Bi||(US(H4),Bi=Ho.now()+Uc)}function H4(){Bi=0}function Ku(){this._call=this._time=this._next=null}Ku.prototype=jS.prototype={constructor:Ku,restart:function(t,n,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?i0():+i)+(n==null?0:+n),!this._next&&Mo!==this&&(Mo?Mo._next=this:Zu=this,Mo=this),this._call=t,this._time=i,tm()},stop:function(){this._call&&(this._call=null,this._time=1/0,tm())}};function jS(t,n,i){var a=new Ku;return a.restart(t,n,i),a}function Jh(){i0(),++ll;for(var t=Zu,n;t;)(n=Bi-t._time)>=0&&t._call.call(void 0,n),t=t._next;--ll}function Fv(){Bi=(Qu=Ho.now())+Uc,ll=wo=0;try{Jh()}finally{ll=0,G4(),Bi=0}}function Y4(){var t=Ho.now(),n=t-Qu;n>NS&&(Uc-=n,Qu=t)}function G4(){for(var t,n=Zu,i,a=1/0;n;)n._call?(a>n._time&&(a=n._time),t=n,n=n._next):(i=n._next,n._next=null,n=t?t._next=i:Zu=i);Mo=t,tm(a)}function tm(t){if(!ll){wo&&(wo=clearTimeout(wo));var n=t-Bi;n>24?(t<1/0&&(wo=setTimeout(Fv,t-Ho.now()-Uc)),xo&&(xo=clearInterval(xo))):(xo||(Qu=Ho.now(),xo=setInterval(Y4,NS)),ll=1,US(Fv))}}function q4(t,n,i){var a=new Ku;return n=n==null?0:+n,a.restart(o=>{a.stop(),t(o+n)},n,i),a}class I4{constructor(n,i,a){this.duration=void 0,this.elapsed=0,this.easingFn=void 0,this.timer=null,this.onTickCallback=void 0,this.duration=n,this.easingFn=i,this.onTickCallback=a,this.resume()}get running(){return this.timer!==null}timerCallback(n){this.elapsed=Math.min(n,this.duration);const i=this.duration===0?1:this.elapsed/this.duration,a=this.easingFn(i);this.onTickCallback(a),this.elapsed>=this.duration&&this.stop()}resume(){if(this.running||this.elapsed>=this.duration)return this;const n=i0()-this.elapsed;return this.timer=jS(i=>this.timerCallback(i),0,n),Jh(),this}stop(){return this.running?(this.timer&&(this.timer.stop(),this.timer=null),this):this}finish(){return this.stop(),q4(()=>this.timerCallback(this.duration)),Jh(),this}}function V4(t,n){if(Object.is(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;const i=Object.keys(t),a=Object.keys(n);if(i.length!==a.length)return!1;for(let o=0;o<i.length;o+=1){const u=i[o];if(!Object.prototype.hasOwnProperty.call(n,u)||!Object.is(t[u],n[u]))return!1}return!0}function X4(t,{createInterpolator:n,applyProps:i,skip:a,initialProps:o=t}){const u=Y.useRef(o),c=Y.useRef(null),f=Y.useRef(null),m=Y.useRef(t);Ye(()=>{m.current=t},[t]),Ye(()=>{var y;a&&((y=c.current)==null||y.finish(),c.current=null,f.current=null,u.current=t)},[t,a]);const h=Y.useCallback(y=>{const v=u.current,b=n(v,t);c.current=new I4(B4,L4,x=>{const S=b(x);u.current=S,i(y,S)})},[i,n,t]);return Y.useCallback(y=>{var b,x,S,C;if(y===null){(b=c.current)==null||b.stop();return}const v=f.current;if(v===y){if(V4(m.current,t)){(x=c.current)==null||x.resume();return}(S=c.current)==null||S.stop()}v&&((C=c.current)==null||C.stop()),f.current=y,(c.current||!a)&&h(y)},[h,t,a])}function a0(t,{createInterpolator:n,transformProps:i,applyProps:a,skip:o,initialProps:u=t,ref:c}){const f=i??(p=>p),m=X4(t,{initialProps:u,createInterpolator:n,applyProps:(p,y)=>a(p,f(y)),skip:o});return I({},i(o?t:u),{ref:Wa(m,c)})}function P4(t,n){const i=xe(t.x,n.x),a=xe(t.y,n.y),o=xe(t.width,n.width),u=xe(t.height,n.height);return c=>({x:i(c),y:a(c),width:o(c),height:u(c)})}function Z4(t){const n={x:t.layout==="vertical"?t.x:t.xOrigin,y:t.layout==="vertical"?t.yOrigin:t.y,width:t.layout==="vertical"?t.width:0,height:t.layout==="vertical"?0:t.height};return a0({x:t.x,y:t.y,width:t.width,height:t.height},{createInterpolator:P4,applyProps(i,a){i.setAttribute("x",a.x.toString()),i.setAttribute("y",a.y.toString()),i.setAttribute("width",a.width.toString()),i.setAttribute("height",a.height.toString())},transformProps:i=>i,initialProps:n,skip:t.skipAnimation,ref:t.ref})}const Q4=["ownerState","skipAnimation","id","dataIndex","xOrigin","yOrigin"];function K4(t){const{ownerState:n}=t,i=Qt(t,Q4),a=Z4(t);return H.jsx("rect",I({},i,{filter:n.isHighlighted?"brightness(120%)":void 0,opacity:n.isFaded?.3:1},a))}const F4=["id","dataIndex","classes","color","slots","slotProps","style","onClick","skipAnimation","layout","x","xOrigin","y","yOrigin","width","height"];function W4(t){const{id:n,dataIndex:i,classes:a,color:o,slots:u,slotProps:c,style:f,onClick:m,skipAnimation:h,layout:p,x:y,xOrigin:v,y:b,yOrigin:x,width:S,height:C}=t,E=Qt(t,F4),_=R4({type:"bar",seriesId:n,dataIndex:i}),{isFaded:O,isHighlighted:k}=zS({seriesId:n,dataIndex:i}),M={id:n,dataIndex:i,classes:a,color:o,isFaded:O,isHighlighted:k},R=DE(M),D=(u==null?void 0:u.bar)??K4,L=Or({elementType:D,externalSlotProps:c==null?void 0:c.bar,externalForwardedProps:E,additionalProps:I({},_,{id:n,dataIndex:i,color:o,x:y,xOrigin:v,y:b,yOrigin:x,width:S,height:C,style:f,onClick:m,cursor:m?"pointer":"unset",stroke:"none",fill:o,skipAnimation:h,layout:p}),className:R.root,ownerState:M});return H.jsx(D,I({},L))}function ar(){const t=Jt();return wt(t,Ur)}function l0(){const t=Jt();return wt(t,CO)}function o0(t){return iS.getTypes().has(t)}const J4=(t,n,i,a,o,u,c)=>{var b;const f=a==="rotation"?o[n].rotationExtremumGetter:o[n].radiusExtremumGetter,m=((b=c[n])==null?void 0:b.series)??{},[h,p]=(f==null?void 0:f({series:m,axis:i,axisIndex:u,isDefaultAxis:u===0}))??[1/0,-1/0],[y,v]=t;return[Math.min(h,y),Math.max(p,v)]},t5=(t,n,i,a,o)=>{const c=Object.keys(i).filter(o0).reduce((f,m)=>J4(f,m,t,n,i,a,o),[1/0,-1/0]);return Number.isNaN(c[0])||Number.isNaN(c[1])?[1/0,-1/0]:c},Eo=(t,n)=>t===void 0?n:Math.PI*t/180,e5=(t,n,i,a)=>{const o=new Set;return Object.keys(n).filter(o0).forEach(c=>{var h,p,y;const f=((h=i[c])==null?void 0:h.series)??{},m=(y=(p=n[c]).axisTooltipGetter)==null?void 0:y.call(p,f);m!==void 0&&m.forEach(({axisId:v,direction:b})=>{b===t&&o.add(v??a)})}),o};function n5(t,n,i){if(n==="rotation"){if(i.scaleType==="point"){const a=[Eo(i.startAngle,0),Eo(i.endAngle,2*Math.PI)],o=a[1]-a[0];return o>Math.PI*2-.1&&(a[1]-=o/i.data.length),a}return[Eo(i.startAngle,0),Eo(i.endAngle,2*Math.PI)]}return[0,Math.min(t.height,t.width)/2]}const Wv=t=>(t==null?void 0:t[0])instanceof Date;function Jv(t,n){const i=Jm(t.data,n);return(a,{location:o})=>o==="tick"?i.tickFormat(t.tickNumber)(a):`${a.toLocaleString()}`}const r5=.2,i5=.1;function $S({drawingArea:t,formattedSeries:n,axis:i,seriesConfig:a,axisDirection:o}){if(i===void 0)return{axis:{},axisIds:[]};const u=e5(o,a,n,i[0].id),c={};return i.forEach((f,m)=>{const h=f,p=n5(t,o,h),[y,v]=t5(h,o,a,m,n),b=!h.ignoreTooltip&&u.has(h.id),x=h.data??[];if(Xu(h)){const $=h.categoryGapRatio??r5,T=h.barGapRatio??i5;if(c[h.id]=I({offset:0,categoryGapRatio:$,barGapRatio:T,triggerTooltip:b},h,{data:x,scale:Ac(h.data,p).paddingInner($).paddingOuter($/2),tickNumber:h.data.length,colorScale:h.colorMap&&(h.colorMap.type==="ordinal"?nl(I({values:h.data},h.colorMap)):Ni(h.colorMap))}),Wv(h.data)){const z=Jv(h,p);c[h.id].valueFormatter=h.valueFormatter??z}}if(t0(h)&&(c[h.id]=I({offset:0,triggerTooltip:b},h,{data:x,scale:Ux(h.data,p),tickNumber:h.data.length,colorScale:h.colorMap&&(h.colorMap.type==="ordinal"?nl(I({values:h.data},h.colorMap)):Ni(h.colorMap))}),Wv(h.data))){const $=Jv(h,p);c[h.id].valueFormatter=h.valueFormatter??$}if(h.scaleType==="band"||h.scaleType==="point")return;const S=h.scaleType??"linear",C=h.domainLimit??"nice",E=[h.min??y,h.max??v];if(typeof C=="function"){const{min:$,max:T}=C(y,v);E[0]=$,E[1]=T}const _=nS(I({},h,{range:p,domain:E})),O=rS(_,p),k=e0(S,E,p),M=C==="nice"?k.nice(_):k,[R,D]=M.domain(),L=[h.min??R,h.max??D];c[h.id]=I({offset:0,triggerTooltip:b},h,{data:x,scaleType:S,scale:M.domain(L),tickNumber:O,colorScale:h.colorMap&&Ni(h.colorMap)})}),{axis:c,axisIds:i.map(({id:f})=>f)}}const BS=t=>t.polarAxis,LS=ft(BS,t=>t==null?void 0:t.rotation),a5=ft(BS,t=>t==null?void 0:t.radius),Vi=ft([LS,Ur,In,jr],(t,n,i,a)=>$S({drawingArea:n,formattedSeries:i,axis:t,seriesConfig:a,axisDirection:"rotation"})),l5=ft([a5,Ur,In,jr],(t,n,i,a)=>$S({drawingArea:n,formattedSeries:i,axis:t,seriesConfig:a,axisDirection:"radius"})),o5=ft([Ur],t=>({cx:t.left+t.width/2,cy:t.top+t.height/2})),s5=t=>(n,i)=>Math.atan2(n-t.cx,t.cy-i);function Xi(){const t=Jt(),{axis:n,axisIds:i}=wt(t,Gi);return{xAxis:n,xAxisIds:i}}function Pi(){const t=Jt(),{axis:n,axisIds:i}=wt(t,qi);return{yAxis:n,yAxisIds:i}}function HS(t){const n=Jt(),{axis:i,axisIds:a}=wt(n,Gi),o=a[0];return i[o]}function YS(t){const n=Jt(),{axis:i,axisIds:a}=wt(n,qi),o=a[0];return i[o]}function GS(){const t=Jt(),{axis:n,axisIds:i}=wt(t,Vi);return{rotationAxis:n,rotationAxisIds:i}}function u5(){const t=Jt(),{axis:n,axisIds:i}=wt(t,l5);return{radiusAxis:n,radiusAxisIds:i}}function c5(t){const n=Jt(),{axis:i,axisIds:a}=wt(n,Vi),o=a[0];return i[o]}function Fu(t){return $r(t)?n=>(t(n)??0)+t.bandwidth()/2:n=>t(n)}function f5(t){return HS().scale}function d5(t){return YS().scale}function s0(){const t=Jt(),{axis:n,axisIds:i}=wt(t,__)??{axis:{},axisIds:[]};return{zAxis:n,zAxisIds:i}}function u0(){const t=Ii();if(!t)throw new Error(["MUI X Charts: Could not find the svg ref context.","It looks like you rendered your component outside of a ChartContainer parent component."].join(` 111 - `));return t.svgRef}function jc(){const t=Jt();return wt(t,In)}function h5(t,n){if(t===n)return!0;if(!Array.isArray(t)||!Array.isArray(n))return!1;let i=t.length;if(i!==n.length)return!1;for(;i--;)if(t[i]!==n[i])return!1;return!0}function m5(t){const n=ft([In,(i,a)=>a],(i,a)=>{var u,c,f,m,h,p;if(!a||Array.isArray(a)&&a.length===0)return((c=(u=i[t])==null?void 0:u.seriesOrder)==null?void 0:c.map(y=>{var v;return(v=i[t])==null?void 0:v.series[y]}))??[];if(!Array.isArray(a))return(m=(f=i[t])==null?void 0:f.series)==null?void 0:m[a];const o=[];for(const y of a){const v=(p=(h=i[t])==null?void 0:h.series)==null?void 0:p[y];v&&o.push(v)}return o});return i=>{const a=Jt();return wt(a,n,i,h5)}}function g5(t){const n=ft(In,i=>i[t]);return()=>{const i=Jt();return wt(i,n)}}m5("bar");const p5=g5("bar");function y5(){return p5()}function v5(t,n){return Object.keys(t).flatMap(i=>{const a=n[i].legendGetter;return a===void 0?[]:a(t[i])})}function b5(){const t=jc(),n=Jt(),i=wt(n,jr);return{items:v5(t,i)}}function x5(){const t=l0();return Y.useCallback(n=>`${t}-gradient-${n}`,[t])}function S5(){const t=l0();return Y.useCallback(n=>`${t}-gradient-${n}-object-bound`,[t])}function A5(t,n){const i=xe(t.x,n.x),a=xe(t.y,n.y),o=xe(t.width,n.width),u=xe(t.height,n.height);return c=>({x:i(c),y:a(c),width:o(c),height:u(c)})}function T5(t){const n={x:t.layout==="vertical"?t.x+t.width/2:t.xOrigin,y:t.layout==="vertical"?t.yOrigin:t.y+t.height/2,width:t.width,height:t.height},i={x:t.x+t.width/2,y:t.y+t.height/2,width:t.width,height:t.height};return a0(i,{createInterpolator:A5,transformProps:a=>a,applyProps(a,o){a.setAttribute("x",o.x.toString()),a.setAttribute("y",o.y.toString()),a.setAttribute("width",o.width.toString()),a.setAttribute("height",o.height.toString())},initialProps:n,skip:t.skipAnimation,ref:t.ref})}function C5(){return Ii().chartRootRef}const w5=t=>({components:{MuiChartsLocalizationProvider:{defaultProps:{localeText:I({},t)}}}}),qS={loading:"Loading data…",noData:"No data to display",zoomIn:"Zoom in",zoomOut:"Zoom out"},M5=qS;w5(qS);const E5=["localeText"],em=Y.createContext(null);function O5(t){const{localeText:n}=t,i=Qt(t,E5),{localeText:a}=Y.useContext(em)??{localeText:void 0},o=ir({props:i,name:"MuiChartsLocalizationProvider"}),{children:u,localeText:c}=o,f=Y.useMemo(()=>I({},M5,c,a,n),[c,a,n]),m=Y.useMemo(()=>({localeText:f}),[f]);return H.jsx(em.Provider,{value:m,children:u})}const IS=()=>{const t=Y.useContext(em);if(t===null)throw new Error(["MUI X Charts: Can not find the charts localization context.","It looks like you forgot to wrap your component in ChartsLocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-charts` package"].join(` 112 - `));return t},Cu=(t,{hasNegative:n,hasPositive:i,borderRadius:a,layout:o})=>{if(!a)return 0;const u=o==="vertical";return t==="top-left"&&(u&&i||!u&&n)||t==="top-right"&&(u&&i||!u&&i)||t==="bottom-right"&&(u&&n||!u&&i)||t==="bottom-left"&&(u&&n||!u&&n)?a:0},R5=["maskId","x","y","width","height","skipAnimation"];function _5(t,n,i){const a=I({},i,{borderRadius:n}),o=Math.min(t,Cu("top-left",a)),u=Math.min(t,Cu("top-right",a)),c=Math.min(t,Cu("bottom-right",a)),f=Math.min(t,Cu("bottom-left",a));return`inset(0px round ${o}px ${u}px ${c}px ${f}px)`}function k5(t,n){const i=xe(t.x,n.x),a=xe(t.y,n.y),o=xe(t.width,n.width),u=xe(t.height,n.height),c=xe(t.borderRadius,n.borderRadius);return f=>({x:i(f),y:a(f),width:o(f),height:u(f),borderRadius:c(f)})}function D5(t){const n={x:t.x,y:t.y+(t.ownerState.layout==="vertical"?t.height:0),width:t.ownerState.layout==="vertical"?t.width:0,height:t.ownerState.layout==="vertical"?0:t.height,borderRadius:t.borderRadius};return a0({x:t.x,y:t.y,width:t.width,height:t.height,borderRadius:t.borderRadius},{createInterpolator:k5,transformProps:i=>({x:i.x,y:i.y,width:i.width,height:i.height,style:{clipPath:_5(t.ownerState.layout==="vertical"?i.height:i.width,i.borderRadius,t.ownerState)}}),applyProps(i,a){i.setAttribute("x",a.x.toString()),i.setAttribute("y",a.y.toString()),i.setAttribute("width",a.width.toString()),i.setAttribute("height",a.height.toString()),i.style.clipPath=a.style.clipPath},initialProps:n,skip:t.skipAnimation,ref:t.ref})}function z5(t){const n=D5(I({},t,{borderRadius:t.ownerState.borderRadius??0}));return H.jsx("rect",I({},n))}function N5(t){const{maskId:n,x:i,y:a,width:o,height:u,skipAnimation:c}=t,f=Qt(t,R5);return!t.borderRadius||t.borderRadius<=0?null:H.jsx("clipPath",{id:n,children:H.jsx(z5,{ownerState:f,x:i,y:a,width:o,height:u,skipAnimation:c})})}function U5(t){return zn("MuiBarLabel",t)}const Rh=qn("MuiBarLabel",["root","highlighted","faded","animate"]),j5=t=>{const{classes:n,seriesId:i,isFaded:a,isHighlighted:o,skipAnimation:u}=t,c={root:["root",`series-${i}`,o&&"highlighted",a&&"faded",!u&&"animate"]};return Nn(c,U5,n)},$5=t=>{const{barLabel:n,value:i,dataIndex:a,seriesId:o,height:u,width:c}=t;return n==="value"?i?i==null?void 0:i.toString():null:n({seriesId:o,dataIndex:a,value:i},{bar:{height:u,width:c}})},B5=["seriesId","dataIndex","color","isFaded","isHighlighted","classes","skipAnimation","layout","xOrigin","yOrigin"],L5=he("text",{name:"MuiBarLabel",slot:"Root",overridesResolver:(t,n)=>[{[`&.${Rh.faded}`]:n.faded},{[`&.${Rh.highlighted}`]:n.highlighted},n.root]})(({theme:t})=>{var n,i,a,o;return I({},(n=t==null?void 0:t.typography)==null?void 0:n.body2,{stroke:"none",fill:(o=(a=(i=t.vars||t)==null?void 0:i.palette)==null?void 0:a.text)==null?void 0:o.primary,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",textAnchor:"middle",dominantBaseline:"central",pointerEvents:"none",opacity:1,[`&.${Rh.faded}`]:{opacity:.3}})});function H5(t){const n=ir({props:t,name:"MuiBarLabel"}),i=Qt(n,B5),a=T5(n);return H.jsx(L5,I({},i,a))}const Y5=["seriesId","classes","color","dataIndex","barLabel","slots","slotProps","xOrigin","yOrigin","x","y","width","height","value","skipAnimation","layout"],G5=["ownerState"];function q5(t){const{seriesId:n,classes:i,color:a,dataIndex:o,barLabel:u,slots:c,slotProps:f,xOrigin:m,yOrigin:h,x:p,y,width:v,height:b,value:x,skipAnimation:S,layout:C}=t,E=Qt(t,Y5),{isFaded:_,isHighlighted:O}=zS({seriesId:n,dataIndex:o}),k={seriesId:n,classes:i,color:a,isFaded:_,isHighlighted:O,dataIndex:o,skipAnimation:S,layout:C},M=j5(k),R=(c==null?void 0:c.barLabel)??H5,D=Or({elementType:R,externalSlotProps:f==null?void 0:f.barLabel,additionalProps:I({},E,{xOrigin:m,yOrigin:h,x:p,y,width:v,height:b,className:M.root}),ownerState:k}),{ownerState:L}=D,$=Qt(D,G5);if(!u)return null;const T=$5({barLabel:u,value:x,dataIndex:o,seriesId:n,height:b,width:v});return T?H.jsx(R,I({},$,L,{children:T})):null}const I5=["bars","skipAnimation"];function V5(t){const{bars:n,skipAnimation:i}=t,a=Qt(t,I5);return H.jsx(Y.Fragment,{children:n.map(({xOrigin:o,yOrigin:u,x:c,y:f,seriesId:m,dataIndex:h,color:p,value:y,width:v,height:b,layout:x})=>H.jsx(q5,I({seriesId:m,dataIndex:h,value:y,color:p,xOrigin:o,yOrigin:u,x:c,y:f,width:v,height:b,skipAnimation:i??!1,layout:x??"vertical"},a),`${m}-${h}`))})}const _h=(t,n)=>{const i=`${t}-axis`,a=`${t}Axis`;return n===(t==="x"?Dm:zm)?`The first \`${a}\``:`The ${i} with id "${n}"`};function X5(t,n,i,a,o,u,c){const f=o[a],m=c[u],h=t?f:m,p=t?m:f,y=t?a:u,v=t?u:a,b=t?"x":"y",x=t?"y":"x";if(!Xu(h))throw new Error(`MUI X Charts: ${_h(b,y)} should be of type "band" to display the bar series of id "${n}".`);if(h.data===void 0)throw new Error(`MUI X Charts: ${_h(b,y)} should have data property.`);if(Xu(p)||t0(p))throw new Error(`MUI X Charts: ${_h(x,v)} should be a continuous type to display the bar series of id "${n}".`)}function P5(t){const n=Jt(),i=wt(n,iO);return t||i}function Z5(){const t=Jt();return wt(t,cS)}const Q5=["skipAnimation","onItemClick","borderRadius","barLabel"];function K5({bandWidth:t,numberOfGroups:n,gapRatio:i}){if(i===0)return{barWidth:t/n,offset:0};const a=t/(n+(n-1)*i),o=i*a;return{barWidth:a,offset:o}}const F5=()=>{const t=y5()??{series:{},stackingGroups:[]},n=ar(),i=l0(),{series:a,stackingGroups:o}=t,{xAxis:u,xAxisIds:c}=Xi(),{yAxis:f,yAxisIds:m}=Pi(),h=c[0],p=m[0],y={};return{completedData:o.flatMap(({ids:b},x)=>{const S=n.left,C=n.left+n.width,E=n.top,_=n.top+n.height;return b.flatMap(O=>{const k=a[O].xAxisId??h,M=a[O].yAxisId??p,R=u[k],D=f[M],L=a[O].layout==="vertical";X5(L,O,a[O],k,u,M,f);const $=L?R:D,T=R.scale,z=D.scale,X=_S(a[O],u[k],f[M]),K=$.scale.bandwidth(),{barWidth:it,offset:ot}=K5({bandWidth:K,numberOfGroups:o.length,gapRatio:$.barGapRatio}),j=x*(it+ot),{stackedData:P,data:nt,layout:st}=a[O];return $.data.map((N,F)=>{if(nt[F]==null)return null;const lt=P[F].map(ut=>L?z(ut):T(ut)),ct=Math.round(Math.min(...lt)),yt=Math.round(Math.max(...lt)),dt=a[O].stack,gt={seriesId:O,dataIndex:F,layout:st,x:L?T(N)+j:ct,y:L?ct:z(N)+j,xOrigin:T(0)??0,yOrigin:z(0)??0,height:L?yt-ct:it,width:L?it:yt-ct,color:X(F),value:nt[F],maskId:`${i}_${dt||O}_${x}_${F}`};if(gt.x>C||gt.x+gt.width<S||gt.y>_||gt.y+gt.height<E)return null;y[gt.maskId]||(y[gt.maskId]={id:gt.maskId,width:0,height:0,hasNegative:!1,hasPositive:!1,layout:gt.layout,xOrigin:T(0),yOrigin:z(0),x:0,y:0});const mt=y[gt.maskId];return mt.width=gt.layout==="vertical"?gt.width:mt.width+gt.width,mt.height=gt.layout==="vertical"?mt.height+gt.height:gt.height,mt.x=Math.min(mt.x===0?1/0:mt.x,gt.x),mt.y=Math.min(mt.y===0?1/0:mt.y,gt.y),mt.hasNegative=mt.hasNegative||(gt.value??0)<0,mt.hasPositive=mt.hasPositive||(gt.value??0)>0,gt}).filter(N=>N!==null)})}),masksData:Object.values(y)}},W5=he("g",{name:"MuiBarPlot",slot:"Root"})({[`& .${kE.root}`]:{transition:"opacity 0.2s ease-in, fill 0.2s ease-in"}});function J5(t){const{completedData:n,masksData:i}=F5(),{skipAnimation:a,onItemClick:o,borderRadius:u,barLabel:c}=t,f=Qt(t,Q5),m=Z5(),h=P5(m||a),p=!u||u<=0;return H.jsxs(W5,{children:[!p&&i.map(({id:y,x:v,y:b,width:x,height:S,hasPositive:C,hasNegative:E,layout:_})=>H.jsx(N5,{maskId:y,borderRadius:u,hasNegative:E,hasPositive:C,layout:_,x:v,y:b,width:x,height:S,skipAnimation:h??!1},y)),n.map(({seriesId:y,dataIndex:v,color:b,maskId:x,layout:S,x:C,xOrigin:E,y:_,yOrigin:O,width:k,height:M})=>{const R=H.jsx(W4,I({id:y,dataIndex:v,color:b,skipAnimation:h??!1,layout:S??"vertical",x:C,xOrigin:E,y:_,yOrigin:O,width:k,height:M},f,{onClick:o&&(D=>{o(D,{type:"bar",seriesId:y,dataIndex:v})})}),`${y}-${v}`);return p?R:H.jsx("g",{clipPath:`url(#${x})`,children:R},`${y}-${v}`)}),c&&H.jsx(V5,I({bars:n,skipAnimation:h,barLabel:c},f))]})}function $c(t){return(t%360+360)%360}const kh=2*Math.PI;function tk(t){return(t%kh+kh)%kh}function c0(){const[t,n]=Y.useState(typeof window<"u"||!1);return Y.useEffect(()=>{n(!0)},[]),t}const VS=typeof window<"u"&&"Intl"in window&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function ek(t){return t.length}function nk(t){const n=VS.segment(t);let i=0;for(const a of n)i+=1;return i}const rk=VS?nk:ek;function ik(t){return t*(Math.PI/180)}const XS=typeof window<"u"&&"Intl"in window&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function ak(t,n){return t.slice(0,n)}function lk(t,n){const i=XS.segment(t);let a="",o=0;for(const u of i)if(a+=u.segment,o+=1,o>=n)break;return a}const ok=XS?lk:ak,tb="…";function PS(t,n){const{width:i,height:a,measureText:o}=n,u=ik(n.angle),c=o(t),f=Math.abs(c.width*Math.cos(u))+Math.abs(c.height*Math.sin(u)),m=Math.abs(c.width*Math.sin(u))+Math.abs(c.height*Math.cos(u));return f<=i&&m<=a}function ZS(t,n){if(n(t))return t;let i=t,a=1,o=1/2;const u=rk(t);let c=u,f=u,m=null;do{if(f=c,c=Math.floor(u*o),c===0)break;i=ok(t,c).trim();const h=n(i+tb);a+=1,h?(m=i,o+=1/2**a):o-=1/2**a}while(Math.abs(c-f)!==1);return m?m+tb:""}function sk(){return typeof window>"u"}const Ri={widthCache:{},cacheCount:0},uk=2e3,ck={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},fk=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],eb="mui_measurement_span";function QS(t,n){return fk.indexOf(t)>=0&&n===+n?`${n}px`:n}function KS(t){return t.split("").reduce((a,o)=>o===o.toUpperCase()?[...a,"-",o.toLowerCase()]:[...a,o],[]).join("")}const dk=t=>Object.keys(t).sort().reduce((n,i)=>`${n}${KS(i)}:${QS(i,t[i])};`,"");let Dh;const es=(t,n={})=>{if(t==null||sk())return{width:0,height:0};const i=`${t}`,a=dk(n),o=`${i}-${a}`;if(Ri.widthCache[o])return Ri.widthCache[o];try{let u=document.getElementById(eb);u===null&&(u=document.createElement("span"),u.setAttribute("id",eb),u.setAttribute("aria-hidden","true"),document.body.appendChild(u));const c=I({},ck,n);Object.keys(c).map(h=>(u.style[KS(h)]=QS(h,c[h]),h)),u.textContent=i;const f=u.getBoundingClientRect(),m={width:f.width,height:f.height};return Ri.widthCache[o]=m,Ri.cacheCount+1>uk?(Ri.cacheCount=0,Ri.widthCache={}):Ri.cacheCount+=1,Dh&&clearTimeout(Dh),Dh=setTimeout(()=>{u.textContent=""},0),m}catch{return{width:0,height:0}}};function f0(t){return typeof t=="number"&&!Number.isFinite(t)}const zh={start:0,extremities:0,end:1,middle:.5};function Bc(t){const{scale:n,tickNumber:i,valueFormatter:a,tickInterval:o,tickPlacement:u="extremities",tickLabelPlacement:c,direction:f}=t,{instance:m}=Ii();return Y.useMemo(()=>{if($r(n)){const b=n.domain(),x=c??"middle";return n.bandwidth()>0?[...(typeof o=="function"&&b.filter(o)||typeof o=="object"&&o||b).map(E=>({value:E,formattedValue:(a==null?void 0:a(E,{location:"tick",scale:n}))??`${E}`,offset:n(E)-(n.step()-n.bandwidth())/2+zh[u]*n.step(),labelOffset:x==="tick"?0:n.step()*(zh[x]-zh[u])})),...u==="extremities"?[{formattedValue:void 0,offset:n.range()[1],labelOffset:0}]:[]]:(typeof o=="function"&&b.filter(o)||typeof o=="object"&&o||b).map(C=>({value:C,formattedValue:(a==null?void 0:a(C,{location:"tick",scale:n}))??`${C}`,offset:n(C),labelOffset:0}))}if(n.domain().some(f0))return[];const p=c,y=typeof o=="object"?o:n.ticks(i),v=[];for(let b=0;b<y.length;b+=1){const x=y[b],S=n(x);m.isPointInside({x:S,y:S},{direction:f})&&v.push({value:x,formattedValue:(a==null?void 0:a(x,{location:"tick",scale:n}))??n.tickFormat(i)(x),offset:S,labelOffset:p==="middle"?n(y[b-1]??0)-(S+n(y[b-1]??0))/2:0})}return v},[n,c,o,i,u,a,f,m])}function FS(t){return zn("MuiChartsAxis",t)}const wu=qn("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right"]),WS=he("g",{name:"MuiChartsAxis",slot:"Root"})(({theme:t})=>({[`& .${wu.tickLabel}`]:I({},t.typography.caption,{fill:(t.vars||t).palette.text.primary}),[`& .${wu.label}`]:{fill:(t.vars||t).palette.text.primary},[`& .${wu.line}`]:{stroke:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${wu.tick}`]:{stroke:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges"}}));function JS({style:t,needsComputation:n,text:i}){return i.split(` 113 - `).map(a=>I({text:a},n?es(a,t):{width:0,height:0}))}const hk=["x","y","style","text","ownerState"],mk=["angle","textAnchor","dominantBaseline"];function Wu(t){const{x:n,y:i,style:a,text:o}=t,u=Qt(t,hk),c=a??{},{angle:f,textAnchor:m,dominantBaseline:h}=c,p=Qt(c,mk),y=c0(),v=Y.useMemo(()=>JS({style:p,needsComputation:y&&o.includes(` 114 - `),text:o}),[p,o,y]);let b;switch(h){case"hanging":case"text-before-edge":b=0;break;case"central":b=(v.length-1)/2*-v[0].height;break;default:b=(v.length-1)*-v[0].height;break}return H.jsx("text",I({},u,{transform:f?`rotate(${f}, ${n}, ${i})`:void 0,x:n,y:i,textAnchor:m,dominantBaseline:h,style:p,children:v.map((x,S)=>H.jsx("tspan",{x:n,dy:`${S===0?b:v[0].height}px`,dominantBaseline:h,children:x.text},S))}))}const nb=5;function gk(t,n,i=0){const a=Math.min(Math.abs(i)%180,Math.abs(Math.abs(i)%180-180)%180);if(a<nb)return t;if(a>90-nb)return n;const o=Eo(a),u=Math.atan2(n,t);return o<u?t/Math.cos(o):n/Math.sin(o)}function pk(t=!1){const[n,i]=Y.useState(!1);return Ye(()=>{t||i(!0)},[t]),Y.useEffect(()=>{t&&i(!0)},[t]),n}function t2(t){const n=$c(t);return n<=30||n>=330||n<=210&&n>=150?"middle":n<=180?"end":"start"}function e2(t){const n=$c(t);return n<=30||n>=330?"hanging":n<=210&&n>=150?"auto":"central"}function n2(t){switch(t){case"start":return"end";case"end":return"start";default:return t}}const yk=["scale","tickNumber","reverse"],vk=t=>{const{classes:n,position:i}=t;return Nn({root:["root","directionX",i],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},FS,n)},rb=3,bk=4;function xk(t,{tickLabelStyle:n,tickLabelInterval:i,tickLabelMinGap:a,reverse:o,isMounted:u,isPointInside:c}){const f=p=>{if(!u||p.formattedValue===void 0)return{width:0,height:0};const y=JS({style:n,needsComputation:!0,text:p.formattedValue});return{width:Math.max(...y.map(v=>v.width)),height:Math.max(y.length*y[0].height)}};if(typeof i=="function")return new Set(t.filter((p,y)=>i(p.value,y)));let m=0;const h=o?-1:1;return new Set(t.filter((p,y)=>{const{offset:v,labelOffset:b}=p,x=v+b;if(y>0&&h*x<h*(m+a)||!c(x))return!1;const{width:S,height:C}=f(p),E=gk(S,C,n==null?void 0:n.angle),_=x-h*E/2;return y>0&&h*_<h*(m+a)?!1:(m=x+h*E/2,!0)}))}function Sk(t,n,i,a,o){const u=new Map,c=$c((o==null?void 0:o.angle)??0);let f=1,m=1;(o==null?void 0:o.textAnchor)==="start"?(f=1/0,m=1):(o==null?void 0:o.textAnchor)==="end"?(f=1,m=1/0):(f=2,m=2),c>90&&c<270&&([f,m]=[m,f]),a&&([f,m]=[m,f]);for(const h of t)if(h.formattedValue){const p=Math.min((h.offset+h.labelOffset)*f,(n.left+n.width+n.right-h.offset-h.labelOffset)*m),y=v=>PS(v,{width:p,height:i,angle:c,measureText:b=>es(b,o)});u.set(h,ZS(h.formattedValue.toString(),y))}return u}const Ak=he(WS,{name:"MuiChartsXAxis",slot:"Root"})({}),Tk={disableLine:!1,disableTicks:!1,tickSize:6,tickLabelMinGap:4};function Ck(t){const{xAxis:n,xAxisIds:i}=Xi(),a=n[t.axisId??i[0]],{scale:o,tickNumber:u,reverse:c}=a,f=Qt(a,yk),m=pk(),h=ir({props:I({},f,t),name:"MuiChartsXAxis"}),p=I({},Tk,h),{position:y,disableLine:v,disableTicks:b,tickLabelStyle:x,label:S,labelStyle:C,tickSize:E,valueFormatter:_,slots:O,slotProps:k,tickInterval:M,tickLabelInterval:R,tickPlacement:D,tickLabelPlacement:L,tickLabelMinGap:$,sx:T,offset:z,height:X}=p,K=Zo(),it=Mm(),ot=vk(p),j=ar(),{left:P,top:nt,width:st,height:N}=j,{instance:F}=Ii(),at=c0(),lt=b?4:E,ct=y==="bottom"?1:-1,yt=(O==null?void 0:O.axisLine)??"line",dt=(O==null?void 0:O.axisTick)??"line",gt=(O==null?void 0:O.axisTickLabel)??Wu,mt=(O==null?void 0:O.axisLabel)??Wu,ut=t2((y==="bottom"?0:180)-((x==null?void 0:x.angle)??0)),xt=e2((y==="bottom"?0:180)-((x==null?void 0:x.angle)??0)),bt=Or({elementType:gt,externalSlotProps:k==null?void 0:k.axisTickLabel,additionalProps:{style:I({},K.typography.caption,{fontSize:12,lineHeight:1.25,textAnchor:it?n2(ut):ut,dominantBaseline:xt},x)},className:ot.tickLabel,ownerState:{}}),rt=Bc({scale:o,tickNumber:u,valueFormatter:_,tickInterval:M,tickPlacement:D,tickLabelPlacement:L,direction:"x"}),_t=xk(rt,{tickLabelStyle:bt.style,tickLabelInterval:R,tickLabelMinGap:$,reverse:c,isMounted:m,isPointInside:Kt=>F.isPointInside({x:Kt,y:-1},{direction:"x"})}),vt=Or({elementType:mt,externalSlotProps:k==null?void 0:k.axisLabel,additionalProps:{style:I({},K.typography.body1,{lineHeight:1,fontSize:14,textAnchor:"middle",dominantBaseline:y==="bottom"?"text-after-edge":"text-before-edge"},C)},ownerState:{}}),Bt=o.domain(),Wt=$r(o);if(Wt&&Bt.length===0||!Wt&&Bt.some(f0)||y==="none")return null;const Yt=S?es(S,vt.style).height:0,Ae={x:P+st/2,y:ct*X},ue=Math.max(0,X-(S?Yt+bk:0)-lt-rb),me=at?Sk(_t,j,ue,it,bt.style):new Map(Array.from(_t).map(Kt=>[Kt,Kt.formattedValue]));return H.jsxs(Ak,{transform:`translate(0, ${y==="bottom"?nt+N+z:nt-z})`,className:ot.root,sx:T,children:[!v&&H.jsx(yt,I({x1:P,x2:P+st,className:ot.line},k==null?void 0:k.axisLine)),rt.map((Kt,Xe)=>{const{offset:mn,labelOffset:gn}=Kt,Un=gn??0,Ge=ct*(lt+rb),te=F.isPointInside({x:mn,y:-1},{direction:"x"}),Re=me.get(Kt),Te=_t.has(Kt);return H.jsxs("g",{transform:`translate(${mn}, 0)`,className:ot.tickContainer,children:[!b&&te&&H.jsx(dt,I({y2:ct*lt,className:ot.tick},k==null?void 0:k.axisTick)),Re!==void 0&&Te&&H.jsx(gt,I({x:Un,y:Ge},bt,{text:Re}))]},Xe)}),S&&H.jsx("g",{className:ot.label,children:H.jsx(mt,I({},Ae,vt,{text:S}))})]})}const wk=["scale","tickNumber"],Mk=t=>{const{classes:n,position:i}=t;return Nn({root:["root","directionY",i],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},FS,n)},ib=2,Ek=2;function Ok(t,n,i,a,o){const u=new Map,c=$c((o==null?void 0:o.angle)??0);let f=1,m=1;(o==null?void 0:o.textAnchor)==="start"?(f=1/0,m=1):(o==null?void 0:o.textAnchor)==="end"?(f=1,m=1/0):(f=2,m=2),c>180&&([f,m]=[m,f]),a&&([f,m]=[m,f]);for(const h of t)if(h.formattedValue){const p=Math.min((h.offset+h.labelOffset)*f,(n.top+n.height+n.bottom-h.offset-h.labelOffset)*m),y=v=>PS(v,{width:i,height:p,angle:c,measureText:b=>es(b,o)});u.set(h,ZS(h.formattedValue.toString(),y))}return u}const Rk=he(WS,{name:"MuiChartsYAxis",slot:"Root"})({}),_k={disableLine:!1,disableTicks:!1,tickSize:6};function kk(t){const{yAxisIds:n,yAxis:i}=Pi(),a=i[t.axisId??n[0]],{scale:o,tickNumber:u}=a,c=Qt(a,wk),f=ir({props:I({},c,t),name:"MuiChartsYAxis"}),m=I({},_k,f),{position:h,disableLine:p,disableTicks:y,label:v,labelStyle:b,tickLabelStyle:x,tickSize:S,valueFormatter:C,slots:E,slotProps:_,tickPlacement:O,tickLabelPlacement:k,tickInterval:M,tickLabelInterval:R,sx:D,offset:L,width:$}=m,T=Zo(),z=Mm(),X=c0(),K=Mk(m),{instance:it}=Ii(),ot=ar(),{left:j,top:P,width:nt,height:st}=ot,N=y?4:S,F=Bc({scale:o,tickNumber:u,valueFormatter:C,tickPlacement:O,tickLabelPlacement:k,tickInterval:M,direction:"y"}),at=h==="right"?1:-1,lt=typeof(x==null?void 0:x.fontSize)=="number"?x.fontSize:12,ct=(E==null?void 0:E.axisLine)??"line",yt=(E==null?void 0:E.axisTick)??"line",dt=(E==null?void 0:E.axisTickLabel)??Wu,gt=(E==null?void 0:E.axisLabel)??Wu,mt=t2((h==="right"?-90:90)-((x==null?void 0:x.angle)??0)),ut=e2((h==="right"?-90:90)-((x==null?void 0:x.angle)??0)),xt=Or({elementType:dt,externalSlotProps:_==null?void 0:_.axisTickLabel,additionalProps:{style:I({},T.typography.caption,{fontSize:lt,textAnchor:z?n2(mt):mt,dominantBaseline:ut},x)},className:K.tickLabel,ownerState:{}}),bt=Or({elementType:gt,externalSlotProps:_==null?void 0:_.axisLabel,additionalProps:{style:I({},T.typography.body1,{lineHeight:1,fontSize:14,angle:at*90,textAnchor:"middle",dominantBaseline:"text-before-edge"},b)},ownerState:{}}),rt=Or({elementType:ct,externalSlotProps:_==null?void 0:_.axisLine,additionalProps:{strokeLinecap:"square"},ownerState:{}}),_t=o.domain(),vt=$r(o);if(vt&&_t.length===0||!vt&&_t.some(f0)||h==="none")return null;const Bt={x:at*$,y:P+st/2},Wt=Math.max(0,$-(v?es(v,bt.style).height+Ek:0)-N-ib),Yt=X?Ok(F,ot,Wt,z,xt.style):new Map(Array.from(F).map(Ae=>[Ae,Ae.formattedValue]));return H.jsxs(Rk,{transform:`translate(${h==="right"?j+nt+L:j-L}, 0)`,className:K.root,sx:D,children:[!p&&H.jsx(ct,I({y1:P,y2:P+st,className:K.line},rt)),F.map((Ae,ue)=>{const{offset:me,labelOffset:Kt,value:Xe}=Ae,mn=at*(N+ib),gn=Kt,Un=typeof R=="function"&&!(R!=null&&R(Xe,ue)),Ge=it.isPointInside({x:-1,y:me},{direction:"y"}),te=Yt.get(Ae);return Ge?H.jsxs("g",{transform:`translate(0, ${me})`,className:K.tickContainer,children:[!y&&H.jsx(yt,I({x2:at*N,className:K.tick},_==null?void 0:_.axisTick)),te!==void 0&&!Un&&H.jsx(dt,I({x:mn,y:gn,text:te},xt))]},ue):null}),v&&X&&H.jsx("g",{className:K.label,children:H.jsx(gt,I({},Bt,bt,{text:v}))})]})}function Dk(t){const{slots:n,slotProps:i}=t,{xAxisIds:a,xAxis:o}=Xi(),{yAxisIds:u,yAxis:c}=Pi();return H.jsxs(Y.Fragment,{children:[a.map(f=>!o[f].position||o[f].position==="none"?null:H.jsx(Ck,{slots:n,slotProps:i,axisId:f},f)),u.map(f=>!c[f].position||c[f].position==="none"?null:H.jsx(kk,{slots:n,slotProps:i,axisId:f},f))]})}function zk(){return aM}const Nk=zM;function r2(t){return DM(t)}function Uk(t){return typeof t.main=="string"}function jk(t,n=[]){if(!Uk(t))return!1;for(const i of n)if(!t.hasOwnProperty(i)||typeof t[i]!="string")return!1;return!0}function $k(t=[]){return([,n])=>n&&jk(n,t)}function Bk(t){return zn("MuiTypography",t)}qn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Lk={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Hk=zk(),Yk=t=>{const{align:n,gutterBottom:i,noWrap:a,paragraph:o,variant:u,classes:c}=t,f={root:["root",u,t.align!=="inherit"&&`align${No(n)}`,i&&"gutterBottom",a&&"noWrap",o&&"paragraph"]};return Nn(f,Bk,c)},Gk=he("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:i}=t;return[n.root,i.variant&&n[i.variant],i.align!=="inherit"&&n[`align${No(i.align)}`],i.noWrap&&n.noWrap,i.gutterBottom&&n.gutterBottom,i.paragraph&&n.paragraph]}})(Nk(({theme:t})=>{var n;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([i,a])=>i!=="inherit"&&a&&typeof a=="object").map(([i,a])=>({props:{variant:i},style:a})),...Object.entries(t.palette).filter($k()).map(([i])=>({props:{color:i},style:{color:(t.vars||t).palette[i].main}})),...Object.entries(((n=t.palette)==null?void 0:n.text)||{}).filter(([,i])=>typeof i=="string").map(([i])=>({props:{color:`text${No(i)}`},style:{color:(t.vars||t).palette.text[i]}})),{props:({ownerState:i})=>i.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:i})=>i.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:i})=>i.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:i})=>i.paragraph,style:{marginBottom:16}}]}})),ab={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},d0=Y.forwardRef(function(n,i){const{color:a,...o}=r2({props:n,name:"MuiTypography"}),u=!Lk[a],c=Hk({...o,...u&&{color:a}}),{align:f="inherit",className:m,component:h,gutterBottom:p=!1,noWrap:y=!1,paragraph:v=!1,variant:b="body1",variantMapping:x=ab,...S}=c,C={...c,align:f,color:a,className:m,component:h,gutterBottom:p,noWrap:y,paragraph:v,variant:b,variantMapping:x},E=h||(v?"p":x[b]||ab[b])||"span",_=Yk(C);return H.jsx(Gk,{as:E,ref:i,className:Mn(_.root,m),...S,ownerState:C,style:{...f!=="inherit"&&{"--Typography-textAlign":f},...S.style}})});function qk(t){return zn("MuiChartsTooltip",t)}const qa=qn("MuiChartsTooltip",["root","paper","table","row","cell","mark","markContainer","labelCell","valueCell","axisValueCell"]),h0=t=>Nn({root:["root"],paper:["paper"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markContainer:["markContainer"],labelCell:["labelCell"],valueCell:["valueCell"],axisValueCell:["axisValueCell"]},qk,t);function Ik(){var R,D,L;const t=Jt(),n=wt(t,mS),i=wt(t,jr),a=jc(),{xAxis:o,xAxisIds:u}=Xi(),{yAxis:c,yAxisIds:f}=Pi(),{zAxis:m,zAxisIds:h}=s0(),{rotationAxis:p,rotationAxisIds:y}=GS(),{radiusAxis:v,radiusAxisIds:b}=u5(),x=a.xAxisId??u[0],S=a.yAxisId??f[0],C=a.zAxisId??h[0],E=a.rotationAxisId??y[0],_=a.radiusAxisId??b[0];if(!n)return null;const O=(R=a[n.type])==null?void 0:R.series[n.seriesId];if(!O)return null;const k=((L=(D=i[O.type]).colorProcessor)==null?void 0:L.call(D,O,x&&o[x],S&&c[S],C&&m[C]))??(()=>""),M={};return x!==void 0&&(M.x=o[x]),S!==void 0&&(M.y=c[S]),E!==void 0&&(M.rotation=p[E]),_!==void 0&&(M.radius=v[_]),i[O.type].tooltipGetter({series:O,axesConfig:M,getColor:k,identifier:n})}const nm=he("div",{name:"MuiChartsTooltip",slot:"Container",overridesResolver:(t,n)=>n.paper})(({theme:t})=>{var n;return{backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,borderRadius:(n=(t.vars||t).shape)==null?void 0:n.borderRadius,border:`solid ${(t.vars||t).palette.divider} 1px`}}),rm=he("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:t})=>({borderSpacing:0,[`& .${qa.markContainer}`]:{display:"inline-block",width:`calc(20px + ${t.spacing(1.5)})`,verticalAlign:"middle"},"& caption":{borderBottom:`solid ${(t.vars||t).palette.divider} 1px`,padding:t.spacing(.5,1.5),textAlign:"start",whiteSpace:"nowrap","& span":{marginRight:t.spacing(1.5)}}})),im=he("tr",{name:"MuiChartsTooltip",slot:"Row"})(({theme:t})=>({"tr:first-of-type& td":{paddingTop:t.spacing(.5)},"tr:last-of-type& td":{paddingBottom:t.spacing(.5)}})),Ia=he(d0,{name:"MuiChartsTooltip",slot:"Cell"})(({theme:t})=>({verticalAlign:"middle",color:(t.vars||t).palette.text.secondary,textAlign:"start",[`&.${qa.cell}`]:{paddingLeft:t.spacing(1),paddingRight:t.spacing(1)},[`&.${qa.labelCell}`]:{fontWeight:t.typography.fontWeightRegular},[`&.${qa.valueCell}, &.${qa.axisValueCell}`]:{color:(t.vars||t).palette.text.primary,fontWeight:t.typography.fontWeightMedium},[`&.${qa.valueCell}`]:{paddingLeft:t.spacing(1.5),paddingRight:t.spacing(1.5)},"td:first-of-type&, th:first-of-type&":{paddingLeft:t.spacing(1.5)},"td:last-of-type&, th:last-of-type&":{paddingRight:t.spacing(1.5)}}));function Vk(t){return zn("MuiChartsLabelMark",t)}const Ha=qn("MuiChartsLabelMark",["root","line","square","circle","mask","fill"]),Xk=t=>{const{type:n}=t;return Nn({root:typeof n=="function"?["root"]:["root",n],mask:["mask"],fill:["fill"]},Vk,t.classes)},i2=(t,n,i)=>Y.forwardRef(function(o,u){var v;const c=ir({props:o,name:t}),f=typeof n.defaultProps=="function"?n.defaultProps(c):n.defaultProps??{},m=Fa(f,c),h=Zo(),p=(v=n.classesResolver)==null?void 0:v.call(n,m,h),y=Y.forwardRef(i);return H.jsx(y,I({},m,{classes:p,ref:u}))}),Pk=["type","color","className","classes"],Zk=he("div",{name:"MuiChartsLabelMark",slot:"Root"})(()=>({display:"flex",width:14,height:14,[`&.${Ha.line}`]:{width:16,height:"unset",alignItems:"center",[`.${Ha.mask}`]:{height:4,width:"100%",borderRadius:1,overflow:"hidden"}},[`&.${Ha.square}`]:{height:13,width:13,borderRadius:2,overflow:"hidden"},[`&.${Ha.circle}`]:{height:15,width:15},svg:{display:"block"},[`& .${Ha.mask} > *`]:{height:"100%",width:"100%"},[`& .${Ha.mask}`]:{height:"100%",width:"100%"}})),Ju=i2("MuiChartsLabelMark",{defaultProps:{type:"square"},classesResolver:Xk},function(n,i){const{type:a,color:o,className:u,classes:c}=n,f=Qt(n,Pk),m=a;return H.jsx(Zk,I({className:Mn(c==null?void 0:c.root,u),ownerState:n,"aria-hidden":"true",ref:i},f,{children:H.jsx("div",{className:c==null?void 0:c.mask,children:typeof m=="function"?H.jsx(m,{className:c==null?void 0:c.fill,color:o}):H.jsx("svg",{viewBox:"0 0 24 24",preserveAspectRatio:a==="line"?"none":void 0,children:a==="circle"?H.jsx("circle",{className:c==null?void 0:c.fill,r:"12",cx:"12",cy:"12",fill:o}):H.jsx("rect",{className:c==null?void 0:c.fill,width:"24",height:"24",fill:o})})})}))});function Qk(t){const{classes:n,sx:i}=t,a=Ik(),o=h0(n);if(!a)return null;if("values"in a){const{label:h,color:p,markType:y}=a;return H.jsx(nm,{sx:i,className:o.paper,children:H.jsxs(rm,{className:o.table,children:[H.jsxs(d0,{component:"caption",children:[H.jsx("div",{className:o.markContainer,children:H.jsx(Ju,{type:y,color:p,className:o.mark})}),h]}),H.jsx("tbody",{children:a.values.map(({formattedValue:v,label:b})=>H.jsxs(im,{className:o.row,children:[H.jsx(Ia,{className:Mn(o.labelCell,o.cell),component:"th",children:b}),H.jsx(Ia,{className:Mn(o.valueCell,o.cell),component:"td",children:v})]},b))})]})})}const{color:u,label:c,formattedValue:f,markType:m}=a;return H.jsx(nm,{sx:i,className:o.paper,children:H.jsx(rm,{className:o.table,children:H.jsx("tbody",{children:H.jsxs(im,{className:o.row,children:[H.jsxs(Ia,{className:Mn(o.labelCell,o.cell),component:"th",children:[H.jsx("div",{className:o.markContainer,children:H.jsx(Ju,{type:m,color:u,className:o.mark})}),c]}),H.jsx(Ia,{className:Mn(o.valueCell,o.cell),component:"td",children:f})]})})})})}function Kk(t){const n=Jt(),i=wt(n,jr);return Y.useMemo(()=>{const o={};return Object.keys(i).forEach(u=>{o[u]=i[u].colorProcessor}),o},[i])}function Fk(){const t=u0(),[n,i]=Y.useState(null);return Y.useEffect(()=>{const a=t.current;if(a===null)return()=>{};const o=c=>{c.pointerType!=="mouse"&&i(null)},u=c=>{i({pointerType:c.pointerType})};return a.addEventListener("pointerenter",u),a.addEventListener("pointerup",o),()=>{a.removeEventListener("pointerenter",u),a.removeEventListener("pointerup",o)}},[t]),n}function Wk(t){return t instanceof Date?t.toUTCString():t.toLocaleString()}function lb(t,n){const{scale:i,data:a,reverse:o}=t;if(!$r(i))throw new Error("MUI X Charts: getAxisValue is not implemented for polare continuous axes.");if(!a)return-1;const u=tk(n-Math.min(...i.range())),c=i.bandwidth()===0?Math.floor((u+i.step()/2)/i.step())%a.length:Math.floor(u/i.step());return c<0||c>=a.length?-1:o?a.length-1-c:c}const a2=(t,n)=>n,l2=(t,n)=>n;function o2(t,n,i){return Array.isArray(i)?i.map(a=>lb(n.axis[a],t)):lb(n.axis[i],t)}const s2=ft([kc,Dc,o5],(t,n,i)=>t===null||n===null?null:s5(i)(t,n)),Jk=ft([s2,Vi,a2],(t,n,i=n.axisIds[0])=>t===null?null:o2(t,n,i)),u2=ft([s2,Vi,l2],(t,n,i=n.axisIds)=>t===null?null:o2(t,n,i));ft([Vi,Jk,a2],(t,n,i=t.axisIds[0])=>{var o;if(n===null||n===-1||t.axisIds.length===0)return null;const a=(o=t.axis[i])==null?void 0:o.data;return a?a[n]:null});ft([Vi,u2,l2],(t,n,i=t.axisIds)=>n===null?null:i.map((a,o)=>{var c;const u=n[o];return u===-1?null:(c=t.axis[a].data)==null?void 0:c[u]}));const c2=ft([u2,Vi],(t,n)=>t===null?[]:n.axisIds.map((i,a)=>({axisId:i,dataIndex:t[a]})).filter(({axisId:i,dataIndex:a})=>n.axis[i].triggerTooltip&&a>=0),{memoizeOptions:{resultEqualityCheck:Qa}});ft([],()=>[]);const t6=ft([c2],t=>t.length>0);function Nh(t,n,i){var c;const a=((c=t.data)==null?void 0:c[n])??null,u=(t.valueFormatter??(f=>t.scaleType==="utc"?Wk(f):f.toLocaleString()))(a,{location:"tooltip",scale:t.scale});return{axisDirection:i,axisId:t.id,mainAxis:t,dataIndex:n,axisValue:a,axisFormattedValue:u,seriesItems:[]}}function e6(t={}){const{multipleAxes:n,directions:i}=t,a=HS(),o=YS(),u=c5(),c=Jt(),f=wt(c,vS),m=wt(c,bS),h=wt(c,c2),p=jc(),{xAxis:y}=Xi(),{yAxis:v}=Pi(),{zAxis:b,zAxisIds:x}=s0(),{rotationAxis:S}=GS(),C=Kk();if(f.length===0&&m.length===0&&h.length===0)return null;const E=[];return(i===void 0||i.includes("x"))&&f.forEach(({axisId:_,dataIndex:O})=>{!n&&E.length>1||E.push(Nh(y[_],O,"x"))}),(i===void 0||i.includes("y"))&&m.forEach(({axisId:_,dataIndex:O})=>{!n&&E.length>1||E.push(Nh(v[_],O,"y"))}),(i===void 0||i.includes("rotation"))&&h.forEach(({axisId:_,dataIndex:O})=>{!n&&E.length>1||E.push(Nh(S[_],O,"rotation"))}),Object.keys(p).filter(n0).forEach(_=>{const O=p[_];return O?O.seriesOrder.forEach(k=>{var $;const M=O.series[k],R=M.xAxisId??a.id,D=M.yAxisId??o.id,L=E.findIndex(({axisDirection:T,axisId:z})=>T==="x"&&z===R||T==="y"&&z===D);if(L>=0){const T="zAxisId"in M?M.zAxisId:x[0],{dataIndex:z}=E[L],X=(($=C[_])==null?void 0:$.call(C,M,y[R],v[D],T?b[T]:void 0)(z))??"",K=M.data[z]??null,it=M.valueFormatter(K,{dataIndex:z}),ot=Gn(M.label,"tooltip")??null;E[L].seriesItems.push({seriesId:k,color:X,value:K,formattedValue:it,formattedLabel:ot,markType:M.labelMarkType})}}):[]}),Object.keys(p).filter(o0).forEach(_=>{const O=p[_];return O?O.seriesOrder.forEach(k=>{var L;const M=O.series[k],R=M.rotationAxisId??(u==null?void 0:u.id),D=E.findIndex(({axisDirection:$,axisId:T})=>$==="rotation"&&T===R);if(D>=0){const{dataIndex:$}=E[D],T=((L=C[_])==null?void 0:L.call(C,M)($))??"",z=M.data[$]??null,X=M.valueFormatter(z,{dataIndex:$}),K=Gn(M.label,"tooltip")??null;E[D].seriesItems.push({seriesId:k,color:T,value:z,formattedValue:X,formattedLabel:K,markType:M.labelMarkType})}}):[]}),n?E:E.length===0?E[0]:null}function n6(t){return e6(I({},t,{multipleAxes:!0}))}function r6(t){const n=h0(t.classes),i=n6();return i===null?null:H.jsx(nm,{sx:t.sx,className:n.paper,children:i.map(({axisId:a,mainAxis:o,axisValue:u,axisFormattedValue:c,seriesItems:f})=>H.jsxs(rm,{className:n.table,children:[u!=null&&!o.hideTooltip&&H.jsx(d0,{component:"caption",children:c}),H.jsx("tbody",{children:f.map(({seriesId:m,color:h,formattedValue:p,formattedLabel:y,markType:v})=>p==null?null:H.jsxs(im,{className:n.row,children:[H.jsxs(Ia,{className:Mn(n.labelCell,n.cell),component:"th",children:[H.jsx("div",{className:n.markContainer,children:H.jsx(Ju,{type:v,color:h,className:n.mark})}),y||null]}),H.jsx(Ia,{className:Mn(n.valueCell,n.cell),component:"td",children:p})]},m))})]},a))})}const ob={};function i6(t,n){const i=Y.useRef(ob);return i.current===ob&&(i.current=t(n)),i}var Je="top",_n="bottom",kn="right",tn="left",m0="auto",ns=[Je,_n,kn,tn],ol="start",Yo="end",a6="clippingParents",f2="viewport",So="popper",l6="reference",sb=ns.reduce(function(t,n){return t.concat([n+"-"+ol,n+"-"+Yo])},[]),d2=[].concat(ns,[m0]).reduce(function(t,n){return t.concat([n,n+"-"+ol,n+"-"+Yo])},[]),o6="beforeRead",s6="read",u6="afterRead",c6="beforeMain",f6="main",d6="afterMain",h6="beforeWrite",m6="write",g6="afterWrite",p6=[o6,s6,u6,c6,f6,d6,h6,m6,g6];function rr(t){return t?(t.nodeName||"").toLowerCase():null}function hn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function Li(t){var n=hn(t).Element;return t instanceof n||t instanceof Element}function Rn(t){var n=hn(t).HTMLElement;return t instanceof n||t instanceof HTMLElement}function g0(t){if(typeof ShadowRoot>"u")return!1;var n=hn(t).ShadowRoot;return t instanceof n||t instanceof ShadowRoot}function y6(t){var n=t.state;Object.keys(n.elements).forEach(function(i){var a=n.styles[i]||{},o=n.attributes[i]||{},u=n.elements[i];!Rn(u)||!rr(u)||(Object.assign(u.style,a),Object.keys(o).forEach(function(c){var f=o[c];f===!1?u.removeAttribute(c):u.setAttribute(c,f===!0?"":f)}))})}function v6(t){var n=t.state,i={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,i.popper),n.styles=i,n.elements.arrow&&Object.assign(n.elements.arrow.style,i.arrow),function(){Object.keys(n.elements).forEach(function(a){var o=n.elements[a],u=n.attributes[a]||{},c=Object.keys(n.styles.hasOwnProperty(a)?n.styles[a]:i[a]),f=c.reduce(function(m,h){return m[h]="",m},{});!Rn(o)||!rr(o)||(Object.assign(o.style,f),Object.keys(u).forEach(function(m){o.removeAttribute(m)}))})}}const b6={name:"applyStyles",enabled:!0,phase:"write",fn:y6,effect:v6,requires:["computeStyles"]};function nr(t){return t.split("-")[0]}var Ui=Math.max,tc=Math.min,sl=Math.round;function am(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function h2(){return!/^((?!chrome|android).)*safari/i.test(am())}function ul(t,n,i){n===void 0&&(n=!1),i===void 0&&(i=!1);var a=t.getBoundingClientRect(),o=1,u=1;n&&Rn(t)&&(o=t.offsetWidth>0&&sl(a.width)/t.offsetWidth||1,u=t.offsetHeight>0&&sl(a.height)/t.offsetHeight||1);var c=Li(t)?hn(t):window,f=c.visualViewport,m=!h2()&&i,h=(a.left+(m&&f?f.offsetLeft:0))/o,p=(a.top+(m&&f?f.offsetTop:0))/u,y=a.width/o,v=a.height/u;return{width:y,height:v,top:p,right:h+y,bottom:p+v,left:h,x:h,y:p}}function p0(t){var n=ul(t),i=t.offsetWidth,a=t.offsetHeight;return Math.abs(n.width-i)<=1&&(i=n.width),Math.abs(n.height-a)<=1&&(a=n.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:a}}function m2(t,n){var i=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(i&&g0(i)){var a=n;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Nr(t){return hn(t).getComputedStyle(t)}function x6(t){return["table","td","th"].indexOf(rr(t))>=0}function fi(t){return((Li(t)?t.ownerDocument:t.document)||window.document).documentElement}function Lc(t){return rr(t)==="html"?t:t.assignedSlot||t.parentNode||(g0(t)?t.host:null)||fi(t)}function ub(t){return!Rn(t)||Nr(t).position==="fixed"?null:t.offsetParent}function S6(t){var n=/firefox/i.test(am()),i=/Trident/i.test(am());if(i&&Rn(t)){var a=Nr(t);if(a.position==="fixed")return null}var o=Lc(t);for(g0(o)&&(o=o.host);Rn(o)&&["html","body"].indexOf(rr(o))<0;){var u=Nr(o);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||n&&u.willChange==="filter"||n&&u.filter&&u.filter!=="none")return o;o=o.parentNode}return null}function rs(t){for(var n=hn(t),i=ub(t);i&&x6(i)&&Nr(i).position==="static";)i=ub(i);return i&&(rr(i)==="html"||rr(i)==="body"&&Nr(i).position==="static")?n:i||S6(t)||n}function y0(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ro(t,n,i){return Ui(t,tc(n,i))}function A6(t,n,i){var a=Ro(t,n,i);return a>i?i:a}function g2(){return{top:0,right:0,bottom:0,left:0}}function p2(t){return Object.assign({},g2(),t)}function y2(t,n){return n.reduce(function(i,a){return i[a]=t,i},{})}var T6=function(n,i){return n=typeof n=="function"?n(Object.assign({},i.rects,{placement:i.placement})):n,p2(typeof n!="number"?n:y2(n,ns))};function C6(t){var n,i=t.state,a=t.name,o=t.options,u=i.elements.arrow,c=i.modifiersData.popperOffsets,f=nr(i.placement),m=y0(f),h=[tn,kn].indexOf(f)>=0,p=h?"height":"width";if(!(!u||!c)){var y=T6(o.padding,i),v=p0(u),b=m==="y"?Je:tn,x=m==="y"?_n:kn,S=i.rects.reference[p]+i.rects.reference[m]-c[m]-i.rects.popper[p],C=c[m]-i.rects.reference[m],E=rs(u),_=E?m==="y"?E.clientHeight||0:E.clientWidth||0:0,O=S/2-C/2,k=y[b],M=_-v[p]-y[x],R=_/2-v[p]/2+O,D=Ro(k,R,M),L=m;i.modifiersData[a]=(n={},n[L]=D,n.centerOffset=D-R,n)}}function w6(t){var n=t.state,i=t.options,a=i.element,o=a===void 0?"[data-popper-arrow]":a;o!=null&&(typeof o=="string"&&(o=n.elements.popper.querySelector(o),!o)||m2(n.elements.popper,o)&&(n.elements.arrow=o))}const M6={name:"arrow",enabled:!0,phase:"main",fn:C6,effect:w6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cl(t){return t.split("-")[1]}var E6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function O6(t,n){var i=t.x,a=t.y,o=n.devicePixelRatio||1;return{x:sl(i*o)/o||0,y:sl(a*o)/o||0}}function cb(t){var n,i=t.popper,a=t.popperRect,o=t.placement,u=t.variation,c=t.offsets,f=t.position,m=t.gpuAcceleration,h=t.adaptive,p=t.roundOffsets,y=t.isFixed,v=c.x,b=v===void 0?0:v,x=c.y,S=x===void 0?0:x,C=typeof p=="function"?p({x:b,y:S}):{x:b,y:S};b=C.x,S=C.y;var E=c.hasOwnProperty("x"),_=c.hasOwnProperty("y"),O=tn,k=Je,M=window;if(h){var R=rs(i),D="clientHeight",L="clientWidth";if(R===hn(i)&&(R=fi(i),Nr(R).position!=="static"&&f==="absolute"&&(D="scrollHeight",L="scrollWidth")),R=R,o===Je||(o===tn||o===kn)&&u===Yo){k=_n;var $=y&&R===M&&M.visualViewport?M.visualViewport.height:R[D];S-=$-a.height,S*=m?1:-1}if(o===tn||(o===Je||o===_n)&&u===Yo){O=kn;var T=y&&R===M&&M.visualViewport?M.visualViewport.width:R[L];b-=T-a.width,b*=m?1:-1}}var z=Object.assign({position:f},h&&E6),X=p===!0?O6({x:b,y:S},hn(i)):{x:b,y:S};if(b=X.x,S=X.y,m){var K;return Object.assign({},z,(K={},K[k]=_?"0":"",K[O]=E?"0":"",K.transform=(M.devicePixelRatio||1)<=1?"translate("+b+"px, "+S+"px)":"translate3d("+b+"px, "+S+"px, 0)",K))}return Object.assign({},z,(n={},n[k]=_?S+"px":"",n[O]=E?b+"px":"",n.transform="",n))}function R6(t){var n=t.state,i=t.options,a=i.gpuAcceleration,o=a===void 0?!0:a,u=i.adaptive,c=u===void 0?!0:u,f=i.roundOffsets,m=f===void 0?!0:f,h={placement:nr(n.placement),variation:cl(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:o,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,cb(Object.assign({},h,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:c,roundOffsets:m})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,cb(Object.assign({},h,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:m})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}const _6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:R6,data:{}};var Mu={passive:!0};function k6(t){var n=t.state,i=t.instance,a=t.options,o=a.scroll,u=o===void 0?!0:o,c=a.resize,f=c===void 0?!0:c,m=hn(n.elements.popper),h=[].concat(n.scrollParents.reference,n.scrollParents.popper);return u&&h.forEach(function(p){p.addEventListener("scroll",i.update,Mu)}),f&&m.addEventListener("resize",i.update,Mu),function(){u&&h.forEach(function(p){p.removeEventListener("scroll",i.update,Mu)}),f&&m.removeEventListener("resize",i.update,Mu)}}const D6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:k6,data:{}};var z6={left:"right",right:"left",bottom:"top",top:"bottom"};function Nu(t){return t.replace(/left|right|bottom|top/g,function(n){return z6[n]})}var N6={start:"end",end:"start"};function fb(t){return t.replace(/start|end/g,function(n){return N6[n]})}function v0(t){var n=hn(t),i=n.pageXOffset,a=n.pageYOffset;return{scrollLeft:i,scrollTop:a}}function b0(t){return ul(fi(t)).left+v0(t).scrollLeft}function U6(t,n){var i=hn(t),a=fi(t),o=i.visualViewport,u=a.clientWidth,c=a.clientHeight,f=0,m=0;if(o){u=o.width,c=o.height;var h=h2();(h||!h&&n==="fixed")&&(f=o.offsetLeft,m=o.offsetTop)}return{width:u,height:c,x:f+b0(t),y:m}}function j6(t){var n,i=fi(t),a=v0(t),o=(n=t.ownerDocument)==null?void 0:n.body,u=Ui(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=Ui(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),f=-a.scrollLeft+b0(t),m=-a.scrollTop;return Nr(o||i).direction==="rtl"&&(f+=Ui(i.clientWidth,o?o.clientWidth:0)-u),{width:u,height:c,x:f,y:m}}function x0(t){var n=Nr(t),i=n.overflow,a=n.overflowX,o=n.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+a)}function v2(t){return["html","body","#document"].indexOf(rr(t))>=0?t.ownerDocument.body:Rn(t)&&x0(t)?t:v2(Lc(t))}function _o(t,n){var i;n===void 0&&(n=[]);var a=v2(t),o=a===((i=t.ownerDocument)==null?void 0:i.body),u=hn(a),c=o?[u].concat(u.visualViewport||[],x0(a)?a:[]):a,f=n.concat(c);return o?f:f.concat(_o(Lc(c)))}function lm(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function $6(t,n){var i=ul(t,!1,n==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function db(t,n,i){return n===f2?lm(U6(t,i)):Li(n)?$6(n,i):lm(j6(fi(t)))}function B6(t){var n=_o(Lc(t)),i=["absolute","fixed"].indexOf(Nr(t).position)>=0,a=i&&Rn(t)?rs(t):t;return Li(a)?n.filter(function(o){return Li(o)&&m2(o,a)&&rr(o)!=="body"}):[]}function L6(t,n,i,a){var o=n==="clippingParents"?B6(t):[].concat(n),u=[].concat(o,[i]),c=u[0],f=u.reduce(function(m,h){var p=db(t,h,a);return m.top=Ui(p.top,m.top),m.right=tc(p.right,m.right),m.bottom=tc(p.bottom,m.bottom),m.left=Ui(p.left,m.left),m},db(t,c,a));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function b2(t){var n=t.reference,i=t.element,a=t.placement,o=a?nr(a):null,u=a?cl(a):null,c=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,m;switch(o){case Je:m={x:c,y:n.y-i.height};break;case _n:m={x:c,y:n.y+n.height};break;case kn:m={x:n.x+n.width,y:f};break;case tn:m={x:n.x-i.width,y:f};break;default:m={x:n.x,y:n.y}}var h=o?y0(o):null;if(h!=null){var p=h==="y"?"height":"width";switch(u){case ol:m[h]=m[h]-(n[p]/2-i[p]/2);break;case Yo:m[h]=m[h]+(n[p]/2-i[p]/2);break}}return m}function Go(t,n){n===void 0&&(n={});var i=n,a=i.placement,o=a===void 0?t.placement:a,u=i.strategy,c=u===void 0?t.strategy:u,f=i.boundary,m=f===void 0?a6:f,h=i.rootBoundary,p=h===void 0?f2:h,y=i.elementContext,v=y===void 0?So:y,b=i.altBoundary,x=b===void 0?!1:b,S=i.padding,C=S===void 0?0:S,E=p2(typeof C!="number"?C:y2(C,ns)),_=v===So?l6:So,O=t.rects.popper,k=t.elements[x?_:v],M=L6(Li(k)?k:k.contextElement||fi(t.elements.popper),m,p,c),R=ul(t.elements.reference),D=b2({reference:R,element:O,placement:o}),L=lm(Object.assign({},O,D)),$=v===So?L:R,T={top:M.top-$.top+E.top,bottom:$.bottom-M.bottom+E.bottom,left:M.left-$.left+E.left,right:$.right-M.right+E.right},z=t.modifiersData.offset;if(v===So&&z){var X=z[o];Object.keys(T).forEach(function(K){var it=[kn,_n].indexOf(K)>=0?1:-1,ot=[Je,_n].indexOf(K)>=0?"y":"x";T[K]+=X[ot]*it})}return T}function H6(t,n){n===void 0&&(n={});var i=n,a=i.placement,o=i.boundary,u=i.rootBoundary,c=i.padding,f=i.flipVariations,m=i.allowedAutoPlacements,h=m===void 0?d2:m,p=cl(a),y=p?f?sb:sb.filter(function(x){return cl(x)===p}):ns,v=y.filter(function(x){return h.indexOf(x)>=0});v.length===0&&(v=y);var b=v.reduce(function(x,S){return x[S]=Go(t,{placement:S,boundary:o,rootBoundary:u,padding:c})[nr(S)],x},{});return Object.keys(b).sort(function(x,S){return b[x]-b[S]})}function Y6(t){if(nr(t)===m0)return[];var n=Nu(t);return[fb(t),n,fb(n)]}function G6(t){var n=t.state,i=t.options,a=t.name;if(!n.modifiersData[a]._skip){for(var o=i.mainAxis,u=o===void 0?!0:o,c=i.altAxis,f=c===void 0?!0:c,m=i.fallbackPlacements,h=i.padding,p=i.boundary,y=i.rootBoundary,v=i.altBoundary,b=i.flipVariations,x=b===void 0?!0:b,S=i.allowedAutoPlacements,C=n.options.placement,E=nr(C),_=E===C,O=m||(_||!x?[Nu(C)]:Y6(C)),k=[C].concat(O).reduce(function(ct,yt){return ct.concat(nr(yt)===m0?H6(n,{placement:yt,boundary:p,rootBoundary:y,padding:h,flipVariations:x,allowedAutoPlacements:S}):yt)},[]),M=n.rects.reference,R=n.rects.popper,D=new Map,L=!0,$=k[0],T=0;T<k.length;T++){var z=k[T],X=nr(z),K=cl(z)===ol,it=[Je,_n].indexOf(X)>=0,ot=it?"width":"height",j=Go(n,{placement:z,boundary:p,rootBoundary:y,altBoundary:v,padding:h}),P=it?K?kn:tn:K?_n:Je;M[ot]>R[ot]&&(P=Nu(P));var nt=Nu(P),st=[];if(u&&st.push(j[X]<=0),f&&st.push(j[P]<=0,j[nt]<=0),st.every(function(ct){return ct})){$=z,L=!1;break}D.set(z,st)}if(L)for(var N=x?3:1,F=function(yt){var dt=k.find(function(gt){var mt=D.get(gt);if(mt)return mt.slice(0,yt).every(function(ut){return ut})});if(dt)return $=dt,"break"},at=N;at>0;at--){var lt=F(at);if(lt==="break")break}n.placement!==$&&(n.modifiersData[a]._skip=!0,n.placement=$,n.reset=!0)}}const q6={name:"flip",enabled:!0,phase:"main",fn:G6,requiresIfExists:["offset"],data:{_skip:!1}};function hb(t,n,i){return i===void 0&&(i={x:0,y:0}),{top:t.top-n.height-i.y,right:t.right-n.width+i.x,bottom:t.bottom-n.height+i.y,left:t.left-n.width-i.x}}function mb(t){return[Je,kn,_n,tn].some(function(n){return t[n]>=0})}function I6(t){var n=t.state,i=t.name,a=n.rects.reference,o=n.rects.popper,u=n.modifiersData.preventOverflow,c=Go(n,{elementContext:"reference"}),f=Go(n,{altBoundary:!0}),m=hb(c,a),h=hb(f,o,u),p=mb(m),y=mb(h);n.modifiersData[i]={referenceClippingOffsets:m,popperEscapeOffsets:h,isReferenceHidden:p,hasPopperEscaped:y},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":y})}const V6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:I6};function X6(t,n,i){var a=nr(t),o=[tn,Je].indexOf(a)>=0?-1:1,u=typeof i=="function"?i(Object.assign({},n,{placement:t})):i,c=u[0],f=u[1];return c=c||0,f=(f||0)*o,[tn,kn].indexOf(a)>=0?{x:f,y:c}:{x:c,y:f}}function P6(t){var n=t.state,i=t.options,a=t.name,o=i.offset,u=o===void 0?[0,0]:o,c=d2.reduce(function(p,y){return p[y]=X6(y,n.rects,u),p},{}),f=c[n.placement],m=f.x,h=f.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=m,n.modifiersData.popperOffsets.y+=h),n.modifiersData[a]=c}const Z6={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:P6};function Q6(t){var n=t.state,i=t.name;n.modifiersData[i]=b2({reference:n.rects.reference,element:n.rects.popper,placement:n.placement})}const K6={name:"popperOffsets",enabled:!0,phase:"read",fn:Q6,data:{}};function F6(t){return t==="x"?"y":"x"}function W6(t){var n=t.state,i=t.options,a=t.name,o=i.mainAxis,u=o===void 0?!0:o,c=i.altAxis,f=c===void 0?!1:c,m=i.boundary,h=i.rootBoundary,p=i.altBoundary,y=i.padding,v=i.tether,b=v===void 0?!0:v,x=i.tetherOffset,S=x===void 0?0:x,C=Go(n,{boundary:m,rootBoundary:h,padding:y,altBoundary:p}),E=nr(n.placement),_=cl(n.placement),O=!_,k=y0(E),M=F6(k),R=n.modifiersData.popperOffsets,D=n.rects.reference,L=n.rects.popper,$=typeof S=="function"?S(Object.assign({},n.rects,{placement:n.placement})):S,T=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),z=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,X={x:0,y:0};if(R){if(u){var K,it=k==="y"?Je:tn,ot=k==="y"?_n:kn,j=k==="y"?"height":"width",P=R[k],nt=P+C[it],st=P-C[ot],N=b?-L[j]/2:0,F=_===ol?D[j]:L[j],at=_===ol?-L[j]:-D[j],lt=n.elements.arrow,ct=b&&lt?p0(lt):{width:0,height:0},yt=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:g2(),dt=yt[it],gt=yt[ot],mt=Ro(0,D[j],ct[j]),ut=O?D[j]/2-N-mt-dt-T.mainAxis:F-mt-dt-T.mainAxis,xt=O?-D[j]/2+N+mt+gt+T.mainAxis:at+mt+gt+T.mainAxis,bt=n.elements.arrow&&rs(n.elements.arrow),rt=bt?k==="y"?bt.clientTop||0:bt.clientLeft||0:0,_t=(K=z==null?void 0:z[k])!=null?K:0,vt=P+ut-_t-rt,Bt=P+xt-_t,Wt=Ro(b?tc(nt,vt):nt,P,b?Ui(st,Bt):st);R[k]=Wt,X[k]=Wt-P}if(f){var Yt,Ae=k==="x"?Je:tn,ue=k==="x"?_n:kn,me=R[M],Kt=M==="y"?"height":"width",Xe=me+C[Ae],mn=me-C[ue],gn=[Je,tn].indexOf(E)!==-1,Un=(Yt=z==null?void 0:z[M])!=null?Yt:0,Ge=gn?Xe:me-D[Kt]-L[Kt]-Un+T.altAxis,te=gn?me+D[Kt]+L[Kt]-Un-T.altAxis:mn,Re=b&&gn?A6(Ge,me,te):Ro(b?Ge:Xe,me,b?te:mn);R[M]=Re,X[M]=Re-me}n.modifiersData[a]=X}}const J6={name:"preventOverflow",enabled:!0,phase:"main",fn:W6,requiresIfExists:["offset"]};function tD(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function eD(t){return t===hn(t)||!Rn(t)?v0(t):tD(t)}function nD(t){var n=t.getBoundingClientRect(),i=sl(n.width)/t.offsetWidth||1,a=sl(n.height)/t.offsetHeight||1;return i!==1||a!==1}function rD(t,n,i){i===void 0&&(i=!1);var a=Rn(n),o=Rn(n)&&nD(n),u=fi(n),c=ul(t,o,i),f={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(a||!a&&!i)&&((rr(n)!=="body"||x0(u))&&(f=eD(n)),Rn(n)?(m=ul(n,!0),m.x+=n.clientLeft,m.y+=n.clientTop):u&&(m.x=b0(u))),{x:c.left+f.scrollLeft-m.x,y:c.top+f.scrollTop-m.y,width:c.width,height:c.height}}function iD(t){var n=new Map,i=new Set,a=[];t.forEach(function(u){n.set(u.name,u)});function o(u){i.add(u.name);var c=[].concat(u.requires||[],u.requiresIfExists||[]);c.forEach(function(f){if(!i.has(f)){var m=n.get(f);m&&o(m)}}),a.push(u)}return t.forEach(function(u){i.has(u.name)||o(u)}),a}function aD(t){var n=iD(t);return p6.reduce(function(i,a){return i.concat(n.filter(function(o){return o.phase===a}))},[])}function lD(t){var n;return function(){return n||(n=new Promise(function(i){Promise.resolve().then(function(){n=void 0,i(t())})})),n}}function oD(t){var n=t.reduce(function(i,a){var o=i[a.name];return i[a.name]=o?Object.assign({},o,a,{options:Object.assign({},o.options,a.options),data:Object.assign({},o.data,a.data)}):a,i},{});return Object.keys(n).map(function(i){return n[i]})}var gb={placement:"bottom",modifiers:[],strategy:"absolute"};function pb(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return!n.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function sD(t){t===void 0&&(t={});var n=t,i=n.defaultModifiers,a=i===void 0?[]:i,o=n.defaultOptions,u=o===void 0?gb:o;return function(f,m,h){h===void 0&&(h=u);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},gb,u),modifiersData:{},elements:{reference:f,popper:m},attributes:{},styles:{}},y=[],v=!1,b={state:p,setOptions:function(E){var _=typeof E=="function"?E(p.options):E;S(),p.options=Object.assign({},u,p.options,_),p.scrollParents={reference:Li(f)?_o(f):f.contextElement?_o(f.contextElement):[],popper:_o(m)};var O=aD(oD([].concat(a,p.options.modifiers)));return p.orderedModifiers=O.filter(function(k){return k.enabled}),x(),b.update()},forceUpdate:function(){if(!v){var E=p.elements,_=E.reference,O=E.popper;if(pb(_,O)){p.rects={reference:rD(_,rs(O),p.options.strategy==="fixed"),popper:p0(O)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(T){return p.modifiersData[T.name]=Object.assign({},T.data)});for(var k=0;k<p.orderedModifiers.length;k++){if(p.reset===!0){p.reset=!1,k=-1;continue}var M=p.orderedModifiers[k],R=M.fn,D=M.options,L=D===void 0?{}:D,$=M.name;typeof R=="function"&&(p=R({state:p,options:L,name:$,instance:b})||p)}}}},update:lD(function(){return new Promise(function(C){b.forceUpdate(),C(p)})}),destroy:function(){S(),v=!0}};if(!pb(f,m))return b;b.setOptions(h).then(function(C){!v&&h.onFirstUpdate&&h.onFirstUpdate(C)});function x(){p.orderedModifiers.forEach(function(C){var E=C.name,_=C.options,O=_===void 0?{}:_,k=C.effect;if(typeof k=="function"){var M=k({state:p,name:E,instance:b,options:O}),R=function(){};y.push(M||R)}})}function S(){y.forEach(function(C){return C()}),y=[]}return b}}var uD=[D6,K6,_6,b6,Z6,q6,J6,M6,V6],cD=sD({defaultModifiers:uD}),fD=$b();function yb(t,n){typeof t=="function"?t(n):t&&(t.current=n)}function dD(t){var n;return parseInt(Y.version,10)>=19?((n=t==null?void 0:t.props)==null?void 0:n.ref)||null:(t==null?void 0:t.ref)||null}function hD(t){return typeof t=="function"?t():t}const mD=Y.forwardRef(function(n,i){const{children:a,container:o,disablePortal:u=!1}=n,[c,f]=Y.useState(null),m=Wa(Y.isValidElement(a)?dD(a):null,i);if(Ye(()=>{u||f(hD(o)||document.body)},[o,u]),Ye(()=>{if(c&&!u)return yb(i,c),()=>{yb(i,null)}},[i,c,u]),u){if(Y.isValidElement(a)){const h={ref:m};return Y.cloneElement(a,h)}return a}return c&&fD.createPortal(a,c)});function gD(t){return zn("MuiPopper",t)}qn("MuiPopper",["root"]);function pD(t,n){if(n==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function om(t){return typeof t=="function"?t():t}function yD(t){return t.nodeType!==void 0}const vD=t=>{const{classes:n}=t;return Nn({root:["root"]},gD,n)},bD={},xD=Y.forwardRef(function(n,i){const{anchorEl:a,children:o,direction:u,disablePortal:c,modifiers:f,open:m,placement:h,popperOptions:p,popperRef:y,slotProps:v={},slots:b={},TransitionProps:x,ownerState:S,...C}=n,E=Y.useRef(null),_=Wa(E,i),O=Y.useRef(null),k=Wa(O,y),M=Y.useRef(k);Ye(()=>{M.current=k},[k]),Y.useImperativeHandle(y,()=>O.current,[]);const R=pD(h,u),[D,L]=Y.useState(R),[$,T]=Y.useState(om(a));Y.useEffect(()=>{O.current&&O.current.forceUpdate()}),Y.useEffect(()=>{a&&T(om(a))},[a]),Ye(()=>{if(!$||!m)return;const ot=nt=>{L(nt.placement)};let j=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:nt})=>{ot(nt)}}];f!=null&&(j=j.concat(f)),p&&p.modifiers!=null&&(j=j.concat(p.modifiers));const P=cD($,E.current,{placement:R,...p,modifiers:j});return M.current(P),()=>{P.destroy(),M.current(null)}},[$,c,f,m,p,R]);const z={placement:D};x!==null&&(z.TransitionProps=x);const X=vD(n),K=b.root??"div",it=Or({elementType:K,externalSlotProps:v.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:_},ownerState:n,className:X.root});return H.jsx(K,{...it,children:typeof o=="function"?o(z):o})}),SD=Y.forwardRef(function(n,i){const{anchorEl:a,children:o,container:u,direction:c="ltr",disablePortal:f=!1,keepMounted:m=!1,modifiers:h,open:p,placement:y="bottom",popperOptions:v=bD,popperRef:b,style:x,transition:S=!1,slotProps:C={},slots:E={},..._}=n,[O,k]=Y.useState(!0),M=()=>{k(!1)},R=()=>{k(!0)};if(!m&&!p&&(!S||O))return null;let D;if(u)D=u;else if(a){const T=om(a);D=T&&yD(T)?Vh(T).body:Vh(null).body}const L=!p&&m&&(!S||O)?"none":void 0,$=S?{in:p,onEnter:M,onExited:R}:void 0;return H.jsx(mD,{disablePortal:f,container:D,children:H.jsx(xD,{anchorEl:a,direction:c,disablePortal:f,modifiers:h,ref:i,open:S?!O:p,placement:y,popperOptions:v,popperRef:b,slotProps:C,slots:E,..._,style:{position:"fixed",top:0,left:0,display:L,...x},TransitionProps:$,children:o})})}),AD=he(SD,{name:"MuiPopper",slot:"Root"})({}),TD=Y.forwardRef(function(n,i){const a=Mm(),o=r2({props:n,name:"MuiPopper"}),{anchorEl:u,component:c,components:f,componentsProps:m,container:h,disablePortal:p,keepMounted:y,modifiers:v,open:b,placement:x,popperOptions:S,popperRef:C,transition:E,slots:_,slotProps:O,...k}=o,M=(_==null?void 0:_.root)??(f==null?void 0:f.Root),R={anchorEl:u,container:h,disablePortal:p,keepMounted:y,modifiers:v,open:b,placement:x,popperOptions:S,popperRef:C,transition:E,...k};return H.jsx(AD,{as:c,direction:a?"rtl":"ltr",slots:{root:M},slotProps:O??m,...R,ref:i})});function CD(t){const{children:n,defer:i=!1,fallback:a=null}=t,[o,u]=Y.useState(!1);return Ye(()=>{i||u(!0)},[i]),Y.useEffect(()=>{i&&u(!0)},[i]),o?n:a}function wD(){const t=Jt(),n=wt(t,LS),i=wt(t,hl);return n!==void 0?"polar":i!==void 0?"cartesian":"none"}const MD=["trigger","classes","children"],ED=()=>!1,OD=he(TD,{name:"MuiChartsTooltip",slot:"Root"})(({theme:t})=>({pointerEvents:"none",zIndex:t.zIndex.modal}));function RD(t){const n=ir({props:t,name:"MuiChartsTooltipContainer"}),{trigger:i="axis",classes:a,children:o}=n,u=Qt(n,MD),c=u0(),f=Fk(),m=Y.useRef(null),h=i6(()=>({x:0,y:0})),p=wD(),y=Jt(),v=wt(y,i==="axis"?p==="polar"&&t6||p==="cartesian"&&O_||ED:T_),b=f!==null&&v;Y.useEffect(()=>{const C=c.current;if(C===null)return()=>{};const E=_=>{var O;h.current={x:_.clientX,y:_.clientY},(O=m.current)==null||O.update()};return C.addEventListener("pointermove",E),()=>{C.removeEventListener("pointermove",E)}},[c,h]);const x=Y.useMemo(()=>({getBoundingClientRect:()=>({x:h.current.x,y:h.current.y,top:h.current.y,left:h.current.x,right:h.current.x,bottom:h.current.y,width:0,height:0,toJSON:()=>""})}),[h]),S=Y.useMemo(()=>[{name:"offset",options:{offset:()=>(f==null?void 0:f.pointerType)!=="touch"?[0,8]:[0,64]}},...(f==null?void 0:f.pointerType)==="mouse"?[]:[{name:"flip",options:{fallbackPlacements:["top-end","top-start","bottom-end","bottom"]}}]],[f]);return i==="none"?null:H.jsx(CD,{children:b&&H.jsx(OD,I({className:a==null?void 0:a.root,open:b,placement:(f==null?void 0:f.pointerType)==="mouse"?"right-start":"top",popperRef:m,anchorEl:x,modifiers:S},u,{children:o}))})}function _D(t){const{classes:n,trigger:i="axis"}=t,a=h0(n);return H.jsx(RD,I({},t,{classes:a,children:i==="axis"?H.jsx(r6,{classes:a}):H.jsx(Qk,{classes:a})}))}const kD=t=>({type:"series",color:t.color,label:t.label,seriesId:t.seriesId,itemId:t.itemId});function DD(t){return zn("MuiChartsLegend",t)}const zD=t=>{const{classes:n,direction:i}=t;return Nn({root:["root",i],mark:["mark"],label:["label"],series:["series"]},DD,n)},vb=qn("MuiChartsLegend",["root","series","mark","label","vertical","horizontal"]),ND=["slots","slotProps"],UD=["ownerState"],jD=(t,n,i,a)=>{function o(u,c){var M;const f=ir({props:u,name:t}),m=typeof i.defaultProps=="function"?i.defaultProps(f):i.defaultProps??{},h=Fa(m,f),p=h,{slots:y,slotProps:v}=p,b=Qt(p,ND),x=Zo(),S=(M=i.classesResolver)==null?void 0:M.call(i,h,x),C=(y==null?void 0:y[n])??a,E=i.propagateSlots&&!(y!=null&&y[n]),_=Or({elementType:C,externalSlotProps:v==null?void 0:v[n],additionalProps:I({},b,{classes:S},E&&{slots:y,slotProps:v}),ownerState:{}}),O=Qt(_,UD),k=I({},O);for(const R of i.omitProps??[])delete k[R];return H.jsx(C,I({},k,{ref:c}))}return Y.forwardRef(o)};function $D(t){return zn("MuiChartsLabel",t)}qn("MuiChartsLabel",["root"]);const BD=t=>Nn({root:["root"]},$D,t.classes),LD=["children","className","classes"],HD=i2("MuiChartsLabel",{classesResolver:BD},function(n,i){const{children:a,className:o,classes:u}=n,c=Qt(n,LD);return H.jsx("span",I({className:Mn(u==null?void 0:u.root,o),ref:i},c,{children:a}))}),YD=["direction","onItemClick","className","classes"],GD=he("ul",{name:"MuiChartsLegend",slot:"Root"})(({ownerState:t,theme:n})=>I({},n.typography.caption,{color:(n.vars||n).palette.text.primary,lineHeight:"100%",display:"flex",flexDirection:t.direction==="vertical"?"column":"row",alignItems:t.direction==="vertical"?void 0:"center",flexShrink:0,gap:n.spacing(2),listStyleType:"none",paddingInlineStart:0,marginBlock:n.spacing(1),marginInline:n.spacing(1),flexWrap:"wrap",li:{display:t.direction==="horizontal"?"inline-flex":void 0},[`button.${vb.series}`]:{background:"none",border:"none",padding:0,fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",letterSpacing:"inherit",color:"inherit"},[`& .${vb.series}`]:{display:t.direction==="vertical"?"flex":"inline-flex",alignItems:"center",gap:n.spacing(1)}})),qD=jD("MuiChartsLegend","legend",{defaultProps:{direction:"horizontal"},omitProps:["position"],classesResolver:zD},Y.forwardRef(function(n,i){const a=b5(),{onItemClick:o,className:u,classes:c}=n,f=Qt(n,YD);if(a.items.length===0)return null;const m=o?"button":"div";return H.jsx(GD,I({className:Mn(c==null?void 0:c.root,u),ref:i},f,{ownerState:n,children:a.items.map((h,p)=>H.jsx("li",{children:H.jsxs(m,{className:c==null?void 0:c.series,role:o?"button":void 0,type:o?"button":void 0,onClick:o?y=>o(y,kD(h),p):void 0,children:[H.jsx(Ju,{className:c==null?void 0:c.mark,color:h.color,type:h.markType}),H.jsx(HD,{className:c==null?void 0:c.label,children:h.label})]})},h.id))}))}));function ID(t){return zn("MuiChartsAxisHighlight",t)}qn("MuiChartsAxisHighlight",["root"]);const ec=he("path",{name:"MuiChartsAxisHighlight",slot:"Root"})(({theme:t})=>({pointerEvents:"none",variants:[{props:{axisHighlight:"band"},style:I({fill:"white",fillOpacity:.1},t.applyStyles("light",{fill:"gray"}))},{props:{axisHighlight:"line"},style:I({strokeDasharray:"5 2",stroke:"#ffffff"},t.applyStyles("light",{stroke:"#000000"}))}]}));function VD(t){const{type:n,classes:i}=t,{left:a,width:o}=ar(),u=d5(),c=Jt(),f=wt(c,E_),m=Fu(u),h=n==="band"&&f!==null&&$r(u);return H.jsxs(Y.Fragment,{children:[h&&u(f)!==void 0&&H.jsx(ec,{d:`M ${a} ${u(f)-(u.step()-u.bandwidth())/2} l 0 ${u.step()} l ${o} 0 l 0 ${-u.step()} Z`,className:i.root,ownerState:{axisHighlight:"band"}}),n==="line"&&f!==null&&H.jsx(ec,{d:`M ${a} ${m(f)} L ${a+o} ${m(f)}`,className:i.root,ownerState:{axisHighlight:"line"}})]})}function XD(t){const{type:n,classes:i}=t,{top:a,height:o}=ar(),u=f5(),c=Jt(),f=wt(c,M_),m=Fu(u),h=n==="band"&&f!==null&&$r(u);return H.jsxs(Y.Fragment,{children:[h&&u(f)!==void 0&&H.jsx(ec,{d:`M ${u(f)-(u.step()-u.bandwidth())/2} ${a} l ${u.step()} 0 l 0 ${o} l ${-u.step()} 0 Z`,className:i.root,ownerState:{axisHighlight:"band"}}),n==="line"&&f!==null&&H.jsx(ec,{d:`M ${m(f)} ${a} L ${m(f)} ${a+o}`,className:i.root,ownerState:{axisHighlight:"line"}})]})}const PD=()=>Nn({root:["root"]},ID);function ZD(t){const{x:n,y:i}=t,a=PD();return H.jsxs(Y.Fragment,{children:[n&&H.jsx(XD,{type:n,classes:a}),i&&H.jsx(VD,{type:i,classes:a})]})}function QD(t){const{id:n,offset:i}=t,{left:a,top:o,width:u,height:c}=ar(),f=I({top:0,right:0,bottom:0,left:0},i);return H.jsx("clipPath",{id:n,children:H.jsx("rect",{x:a-f.left,y:o-f.top,width:u+f.left+f.right,height:c+f.top+f.bottom})})}function KD(t){return zn("MuiChartsGrid",t)}const bb=qn("MuiChartsGrid",["root","line","horizontalLine","verticalLine"]),FD=he("g",{name:"MuiChartsGrid",slot:"Root",overridesResolver:(t,n)=>[{[`&.${bb.verticalLine}`]:n.verticalLine},{[`&.${bb.horizontalLine}`]:n.horizontalLine},n.root]})({}),x2=he("line",{name:"MuiChartsGrid",slot:"Line"})(({theme:t})=>({stroke:(t.vars||t).palette.divider,shapeRendering:"crispEdges",strokeWidth:1}));function WD(t){const{axis:n,start:i,end:a,classes:o}=t,{scale:u,tickNumber:c,tickInterval:f}=n,m=Bc({scale:u,tickNumber:c,tickInterval:f,direction:"x"});return H.jsx(Y.Fragment,{children:m.map(({value:h,offset:p})=>{var y;return H.jsx(x2,{y1:i,y2:a,x1:p,x2:p,className:o.verticalLine},`vertical-${((y=h.getTime)==null?void 0:y.call(h))??h}`)})})}function JD(t){const{axis:n,start:i,end:a,classes:o}=t,{scale:u,tickNumber:c,tickInterval:f}=n,m=Bc({scale:u,tickNumber:c,tickInterval:f,direction:"y"});return H.jsx(Y.Fragment,{children:m.map(({value:h,offset:p})=>{var y;return H.jsx(x2,{y1:p,y2:p,x1:i,x2:a,className:o.horizontalLine},`horizontal-${((y=h.getTime)==null?void 0:y.call(h))??h}`)})})}const t8=["vertical","horizontal"],e8=({classes:t})=>Nn({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},KD,t);function n8(t){const n=ir({props:t,name:"MuiChartsGrid"}),i=ar(),{vertical:a,horizontal:o}=n,u=Qt(n,t8),{xAxis:c,xAxisIds:f}=Xi(),{yAxis:m,yAxisIds:h}=Pi(),p=e8(n),y=m[h[0]],v=c[f[0]];return H.jsxs(FD,I({},u,{className:p.root,children:[a&&H.jsx(WD,{axis:v,start:i.top,end:i.height+i.top,classes:p}),o&&H.jsx(JD,{axis:y,start:i.left,end:i.width+i.left,classes:p})]}))}const r8=["message"],i8=he("text")(({theme:t})=>I({},t.typography.body2,{stroke:"none",fill:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function a8(t){const{message:n}=t,i=Qt(t,r8),{top:a,left:o,height:u,width:c}=ar(),{localeText:f}=IS();return H.jsx(i8,I({x:o+c/2,y:a+u/2},i,{children:n??f.loading}))}const l8=["message"],o8=he("text")(({theme:t})=>I({},t.typography.body2,{stroke:"none",fill:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function s8(t){const{message:n}=t,i=Qt(t,l8),{top:a,left:o,height:u,width:c}=ar(),{localeText:f}=IS();return H.jsx(o8,I({x:o+c/2,y:a+u/2},i,{children:n??f.noData}))}function u8(){const t=jc();return Object.values(t).every(n=>{if(!n)return!0;const{series:i,seriesOrder:a}=n;return a.every(o=>i[o].data.length===0)})}function c8(t){var i,a,o,u;const n=u8();if(t.loading){const c=((i=t.slots)==null?void 0:i.loadingOverlay)??a8;return H.jsx(c,I({},(a=t.slotProps)==null?void 0:a.loadingOverlay))}if(n){const c=((o=t.slots)==null?void 0:o.noDataOverlay)??s8;return H.jsx(c,I({},(u=t.slotProps)==null?void 0:u.noDataOverlay))}return null}const f8=[Jo,ml,Wo,gl],d8=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","axisHighlight","grid","children","slots","slotProps","skipAnimation","loading","layout","onItemClick","highlightedItem","onHighlightChange","borderRadius","barLabel","className","hideLegend"],h8=t=>{var ut,xt,bt,rt,_t;const{xAxis:n,yAxis:i,series:a,width:o,height:u,margin:c,colors:f,dataset:m,sx:h,axisHighlight:p,grid:y,children:v,slots:b,slotProps:x,skipAnimation:S,loading:C,layout:E,onItemClick:_,highlightedItem:O,onHighlightChange:k,borderRadius:M,barLabel:R,className:D}=t,L=Qt(t,d8),T=`${xx()}-clip-path`,z=E==="horizontal"||E===void 0&&a.some(vt=>vt.layout==="horizontal"),X=Y.useMemo(()=>[{id:Dm,scaleType:"band",data:Array.from({length:Math.max(...a.map(vt=>(vt.data??m??[]).length))},(vt,Bt)=>Bt)}],[m,a]),K=Y.useMemo(()=>[{id:zm,scaleType:"band",data:Array.from({length:Math.max(...a.map(vt=>(vt.data??m??[]).length))},(vt,Bt)=>Bt)}],[m,a]),it=Y.useMemo(()=>a.map(vt=>I({type:"bar"},vt,{layout:z?"horizontal":"vertical"})),[z,a]),ot=z?void 0:X,j=Y.useMemo(()=>n?z?n:n.map(vt=>I({scaleType:"band"},vt)):ot,[ot,z,n]),P=z?K:void 0,nt=Y.useMemo(()=>i?z?i.map(vt=>I({scaleType:"band"},vt)):i:P,[P,z,i]),st=I({},L,{series:it,width:o,height:u,margin:c,colors:f,dataset:m,xAxis:j,yAxis:nt,highlightedItem:O,onHighlightChange:k,disableAxisListener:((ut=x==null?void 0:x.tooltip)==null?void 0:ut.trigger)!=="axis"&&(p==null?void 0:p.x)==="none"&&(p==null?void 0:p.y)==="none",className:D,skipAnimation:S,plugins:f8}),N={onItemClick:_,slots:b,slotProps:x,borderRadius:M,barLabel:R},F={vertical:y==null?void 0:y.vertical,horizontal:y==null?void 0:y.horizontal},at={clipPath:`url(#${T})`},lt={id:T},ct={slots:b,slotProps:x,loading:C},yt={slots:b,slotProps:x},dt=I({},z?{y:"band"}:{x:"band"},p),gt={slots:b,slotProps:x};return{chartsWrapperProps:{sx:h,legendPosition:(bt=(xt=t.slotProps)==null?void 0:xt.legend)==null?void 0:bt.position,legendDirection:(_t=(rt=t.slotProps)==null?void 0:rt.legend)==null?void 0:_t.direction},chartContainerProps:st,barPlotProps:N,gridProps:F,clipPathProps:lt,clipPathGroupProps:at,overlayProps:ct,chartsAxisProps:yt,axisHighlightProps:dt,legendProps:gt,children:v}},Rr=11102230246251565e-32,Le=134217729,m8=(3+8*Rr)*Rr;function Uh(t,n,i,a,o){let u,c,f,m,h=n[0],p=a[0],y=0,v=0;p>h==p>-h?(u=h,h=n[++y]):(u=p,p=a[++v]);let b=0;if(y<t&&v<i)for(p>h==p>-h?(c=h+u,f=u-(c-h),h=n[++y]):(c=p+u,f=u-(c-p),p=a[++v]),u=c,f!==0&&(o[b++]=f);y<t&&v<i;)p>h==p>-h?(c=u+h,m=c-u,f=u-(c-m)+(h-m),h=n[++y]):(c=u+p,m=c-u,f=u-(c-m)+(p-m),p=a[++v]),u=c,f!==0&&(o[b++]=f);for(;y<t;)c=u+h,m=c-u,f=u-(c-m)+(h-m),h=n[++y],u=c,f!==0&&(o[b++]=f);for(;v<i;)c=u+p,m=c-u,f=u-(c-m)+(p-m),p=a[++v],u=c,f!==0&&(o[b++]=f);return(u!==0||b===0)&&(o[b++]=u),b}function g8(t,n){let i=n[0];for(let a=1;a<t;a++)i+=n[a];return i}function is(t){return new Float64Array(t)}const p8=(3+16*Rr)*Rr,y8=(2+12*Rr)*Rr,v8=(9+64*Rr)*Rr*Rr,Ya=is(4),xb=is(8),Sb=is(12),Ab=is(16),Ve=is(4);function b8(t,n,i,a,o,u,c){let f,m,h,p,y,v,b,x,S,C,E,_,O,k,M,R,D,L;const $=t-o,T=i-o,z=n-u,X=a-u;k=$*X,v=Le*$,b=v-(v-$),x=$-b,v=Le*X,S=v-(v-X),C=X-S,M=x*C-(k-b*S-x*S-b*C),R=z*T,v=Le*z,b=v-(v-z),x=z-b,v=Le*T,S=v-(v-T),C=T-S,D=x*C-(R-b*S-x*S-b*C),E=M-D,y=M-E,Ya[0]=M-(E+y)+(y-D),_=k+E,y=_-k,O=k-(_-y)+(E-y),E=O-R,y=O-E,Ya[1]=O-(E+y)+(y-R),L=_+E,y=L-_,Ya[2]=_-(L-y)+(E-y),Ya[3]=L;let K=g8(4,Ya),it=y8*c;if(K>=it||-K>=it||(y=t-$,f=t-($+y)+(y-o),y=i-T,h=i-(T+y)+(y-o),y=n-z,m=n-(z+y)+(y-u),y=a-X,p=a-(X+y)+(y-u),f===0&&m===0&&h===0&&p===0)||(it=v8*c+m8*Math.abs(K),K+=$*p+X*f-(z*h+T*m),K>=it||-K>=it))return K;k=f*X,v=Le*f,b=v-(v-f),x=f-b,v=Le*X,S=v-(v-X),C=X-S,M=x*C-(k-b*S-x*S-b*C),R=m*T,v=Le*m,b=v-(v-m),x=m-b,v=Le*T,S=v-(v-T),C=T-S,D=x*C-(R-b*S-x*S-b*C),E=M-D,y=M-E,Ve[0]=M-(E+y)+(y-D),_=k+E,y=_-k,O=k-(_-y)+(E-y),E=O-R,y=O-E,Ve[1]=O-(E+y)+(y-R),L=_+E,y=L-_,Ve[2]=_-(L-y)+(E-y),Ve[3]=L;const ot=Uh(4,Ya,4,Ve,xb);k=$*p,v=Le*$,b=v-(v-$),x=$-b,v=Le*p,S=v-(v-p),C=p-S,M=x*C-(k-b*S-x*S-b*C),R=z*h,v=Le*z,b=v-(v-z),x=z-b,v=Le*h,S=v-(v-h),C=h-S,D=x*C-(R-b*S-x*S-b*C),E=M-D,y=M-E,Ve[0]=M-(E+y)+(y-D),_=k+E,y=_-k,O=k-(_-y)+(E-y),E=O-R,y=O-E,Ve[1]=O-(E+y)+(y-R),L=_+E,y=L-_,Ve[2]=_-(L-y)+(E-y),Ve[3]=L;const j=Uh(ot,xb,4,Ve,Sb);k=f*p,v=Le*f,b=v-(v-f),x=f-b,v=Le*p,S=v-(v-p),C=p-S,M=x*C-(k-b*S-x*S-b*C),R=m*h,v=Le*m,b=v-(v-m),x=m-b,v=Le*h,S=v-(v-h),C=h-S,D=x*C-(R-b*S-x*S-b*C),E=M-D,y=M-E,Ve[0]=M-(E+y)+(y-D),_=k+E,y=_-k,O=k-(_-y)+(E-y),E=O-R,y=O-E,Ve[1]=O-(E+y)+(y-R),L=_+E,y=L-_,Ve[2]=_-(L-y)+(E-y),Ve[3]=L;const P=Uh(j,Sb,4,Ve,Ab);return Ab[P-1]}function Eu(t,n,i,a,o,u){const c=(n-u)*(i-o),f=(t-o)*(a-u),m=c-f,h=Math.abs(c+f);return Math.abs(m)>=p8*h?m:-b8(t,n,i,a,o,u,h)}const Tb=Math.pow(2,-52),Ou=new Uint32Array(512);class nc{static from(n,i=C8,a=w8){const o=n.length,u=new Float64Array(o*2);for(let c=0;c<o;c++){const f=n[c];u[2*c]=i(f),u[2*c+1]=a(f)}return new nc(u)}constructor(n){const i=n.length>>1;if(i>0&&typeof n[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=n;const a=Math.max(2*i-5,0);this._triangles=new Uint32Array(a*3),this._halfedges=new Int32Array(a*3),this._hashSize=Math.ceil(Math.sqrt(i)),this._hullPrev=new Uint32Array(i),this._hullNext=new Uint32Array(i),this._hullTri=new Uint32Array(i),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(i),this._dists=new Float64Array(i),this.update()}update(){const{coords:n,_hullPrev:i,_hullNext:a,_hullTri:o,_hullHash:u}=this,c=n.length>>1;let f=1/0,m=1/0,h=-1/0,p=-1/0;for(let $=0;$<c;$++){const T=n[2*$],z=n[2*$+1];T<f&&(f=T),z<m&&(m=z),T>h&&(h=T),z>p&&(p=z),this._ids[$]=$}const y=(f+h)/2,v=(m+p)/2;let b,x,S;for(let $=0,T=1/0;$<c;$++){const z=jh(y,v,n[2*$],n[2*$+1]);z<T&&(b=$,T=z)}const C=n[2*b],E=n[2*b+1];for(let $=0,T=1/0;$<c;$++){if($===b)continue;const z=jh(C,E,n[2*$],n[2*$+1]);z<T&&z>0&&(x=$,T=z)}let _=n[2*x],O=n[2*x+1],k=1/0;for(let $=0;$<c;$++){if($===b||$===x)continue;const T=A8(C,E,_,O,n[2*$],n[2*$+1]);T<k&&(S=$,k=T)}let M=n[2*S],R=n[2*S+1];if(k===1/0){for(let z=0;z<c;z++)this._dists[z]=n[2*z]-n[0]||n[2*z+1]-n[1];Va(this._ids,this._dists,0,c-1);const $=new Uint32Array(c);let T=0;for(let z=0,X=-1/0;z<c;z++){const K=this._ids[z],it=this._dists[K];it>X&&($[T++]=K,X=it)}this.hull=$.subarray(0,T),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(Eu(C,E,_,O,M,R)<0){const $=x,T=_,z=O;x=S,_=M,O=R,S=$,M=T,R=z}const D=T8(C,E,_,O,M,R);this._cx=D.x,this._cy=D.y;for(let $=0;$<c;$++)this._dists[$]=jh(n[2*$],n[2*$+1],D.x,D.y);Va(this._ids,this._dists,0,c-1),this._hullStart=b;let L=3;a[b]=i[S]=x,a[x]=i[b]=S,a[S]=i[x]=b,o[b]=0,o[x]=1,o[S]=2,u.fill(-1),u[this._hashKey(C,E)]=b,u[this._hashKey(_,O)]=x,u[this._hashKey(M,R)]=S,this.trianglesLen=0,this._addTriangle(b,x,S,-1,-1,-1);for(let $=0,T,z;$<this._ids.length;$++){const X=this._ids[$],K=n[2*X],it=n[2*X+1];if($>0&&Math.abs(K-T)<=Tb&&Math.abs(it-z)<=Tb||(T=K,z=it,X===b||X===x||X===S))continue;let ot=0;for(let N=0,F=this._hashKey(K,it);N<this._hashSize&&(ot=u[(F+N)%this._hashSize],!(ot!==-1&&ot!==a[ot]));N++);ot=i[ot];let j=ot,P;for(;P=a[j],Eu(K,it,n[2*j],n[2*j+1],n[2*P],n[2*P+1])>=0;)if(j=P,j===ot){j=-1;break}if(j===-1)continue;let nt=this._addTriangle(j,X,a[j],-1,-1,o[j]);o[X]=this._legalize(nt+2),o[j]=nt,L++;let st=a[j];for(;P=a[st],Eu(K,it,n[2*st],n[2*st+1],n[2*P],n[2*P+1])<0;)nt=this._addTriangle(st,X,P,o[X],-1,o[st]),o[X]=this._legalize(nt+2),a[st]=st,L--,st=P;if(j===ot)for(;P=i[j],Eu(K,it,n[2*P],n[2*P+1],n[2*j],n[2*j+1])<0;)nt=this._addTriangle(P,X,j,-1,o[j],o[P]),this._legalize(nt+2),o[P]=nt,a[j]=j,L--,j=P;this._hullStart=i[X]=j,a[j]=i[st]=X,a[X]=st,u[this._hashKey(K,it)]=X,u[this._hashKey(n[2*j],n[2*j+1])]=j}this.hull=new Uint32Array(L);for(let $=0,T=this._hullStart;$<L;$++)this.hull[$]=T,T=a[T];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(n,i){return Math.floor(x8(n-this._cx,i-this._cy)*this._hashSize)%this._hashSize}_legalize(n){const{_triangles:i,_halfedges:a,coords:o}=this;let u=0,c=0;for(;;){const f=a[n],m=n-n%3;if(c=m+(n+2)%3,f===-1){if(u===0)break;n=Ou[--u];continue}const h=f-f%3,p=m+(n+1)%3,y=h+(f+2)%3,v=i[c],b=i[n],x=i[p],S=i[y];if(S8(o[2*v],o[2*v+1],o[2*b],o[2*b+1],o[2*x],o[2*x+1],o[2*S],o[2*S+1])){i[n]=S,i[f]=v;const E=a[y];if(E===-1){let O=this._hullStart;do{if(this._hullTri[O]===y){this._hullTri[O]=n;break}O=this._hullPrev[O]}while(O!==this._hullStart)}this._link(n,E),this._link(f,a[c]),this._link(c,y);const _=h+(f+1)%3;u<Ou.length&&(Ou[u++]=_)}else{if(u===0)break;n=Ou[--u]}}return c}_link(n,i){this._halfedges[n]=i,i!==-1&&(this._halfedges[i]=n)}_addTriangle(n,i,a,o,u,c){const f=this.trianglesLen;return this._triangles[f]=n,this._triangles[f+1]=i,this._triangles[f+2]=a,this._link(f,o),this._link(f+1,u),this._link(f+2,c),this.trianglesLen+=3,f}}function x8(t,n){const i=t/(Math.abs(t)+Math.abs(n));return(n>0?3-i:1+i)/4}function jh(t,n,i,a){const o=t-i,u=n-a;return o*o+u*u}function S8(t,n,i,a,o,u,c,f){const m=t-c,h=n-f,p=i-c,y=a-f,v=o-c,b=u-f,x=m*m+h*h,S=p*p+y*y,C=v*v+b*b;return m*(y*C-S*b)-h*(p*C-S*v)+x*(p*b-y*v)<0}function A8(t,n,i,a,o,u){const c=i-t,f=a-n,m=o-t,h=u-n,p=c*c+f*f,y=m*m+h*h,v=.5/(c*h-f*m),b=(h*p-f*y)*v,x=(c*y-m*p)*v;return b*b+x*x}function T8(t,n,i,a,o,u){const c=i-t,f=a-n,m=o-t,h=u-n,p=c*c+f*f,y=m*m+h*h,v=.5/(c*h-f*m),b=t+(h*p-f*y)*v,x=n+(c*y-m*p)*v;return{x:b,y:x}}function Va(t,n,i,a){if(a-i<=20)for(let o=i+1;o<=a;o++){const u=t[o],c=n[u];let f=o-1;for(;f>=i&&n[t[f]]>c;)t[f+1]=t[f--];t[f+1]=u}else{const o=i+a>>1;let u=i+1,c=a;Ao(t,o,u),n[t[i]]>n[t[a]]&&Ao(t,i,a),n[t[u]]>n[t[a]]&&Ao(t,u,a),n[t[i]]>n[t[u]]&&Ao(t,i,u);const f=t[u],m=n[f];for(;;){do u++;while(n[t[u]]<m);do c--;while(n[t[c]]>m);if(c<u)break;Ao(t,u,c)}t[i+1]=t[c],t[c]=f,a-u+1>=c-i?(Va(t,n,u,a),Va(t,n,i,c-1)):(Va(t,n,i,c-1),Va(t,n,u,a))}}function Ao(t,n,i){const a=t[n];t[n]=t[i],t[i]=a}function C8(t){return t[0]}function w8(t){return t[1]}const Cb=1e-6;class Di{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(n,i){this._+=`M${this._x0=this._x1=+n},${this._y0=this._y1=+i}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(n,i){this._+=`L${this._x1=+n},${this._y1=+i}`}arc(n,i,a){n=+n,i=+i,a=+a;const o=n+a,u=i;if(a<0)throw new Error("negative radius");this._x1===null?this._+=`M${o},${u}`:(Math.abs(this._x1-o)>Cb||Math.abs(this._y1-u)>Cb)&&(this._+="L"+o+","+u),a&&(this._+=`A${a},${a},0,1,1,${n-a},${i}A${a},${a},0,1,1,${this._x1=o},${this._y1=u}`)}rect(n,i,a,o){this._+=`M${this._x0=this._x1=+n},${this._y0=this._y1=+i}h${+a}v${+o}h${-a}Z`}value(){return this._||null}}class sm{constructor(){this._=[]}moveTo(n,i){this._.push([n,i])}closePath(){this._.push(this._[0].slice())}lineTo(n,i){this._.push([n,i])}value(){return this._.length?this._:null}}class M8{constructor(n,[i,a,o,u]=[0,0,960,500]){if(!((o=+o)>=(i=+i))||!((u=+u)>=(a=+a)))throw new Error("invalid bounds");this.delaunay=n,this._circumcenters=new Float64Array(n.points.length*2),this.vectors=new Float64Array(n.points.length*2),this.xmax=o,this.xmin=i,this.ymax=u,this.ymin=a,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:n,hull:i,triangles:a},vectors:o}=this;let u,c;const f=this.circumcenters=this._circumcenters.subarray(0,a.length/3*2);for(let S=0,C=0,E=a.length,_,O;S<E;S+=3,C+=2){const k=a[S]*2,M=a[S+1]*2,R=a[S+2]*2,D=n[k],L=n[k+1],$=n[M],T=n[M+1],z=n[R],X=n[R+1],K=$-D,it=T-L,ot=z-D,j=X-L,P=(K*j-it*ot)*2;if(Math.abs(P)<1e-9){if(u===void 0){u=c=0;for(const st of i)u+=n[st*2],c+=n[st*2+1];u/=i.length,c/=i.length}const nt=1e9*Math.sign((u-D)*j-(c-L)*ot);_=(D+z)/2-nt*j,O=(L+X)/2+nt*ot}else{const nt=1/P,st=K*K+it*it,N=ot*ot+j*j;_=D+(j*st-it*N)*nt,O=L+(K*N-ot*st)*nt}f[C]=_,f[C+1]=O}let m=i[i.length-1],h,p=m*4,y,v=n[2*m],b,x=n[2*m+1];o.fill(0);for(let S=0;S<i.length;++S)m=i[S],h=p,y=v,b=x,p=m*4,v=n[2*m],x=n[2*m+1],o[h+2]=o[p]=b-x,o[h+3]=o[p+1]=v-y}render(n){const i=n==null?n=new Di:void 0,{delaunay:{halfedges:a,inedges:o,hull:u},circumcenters:c,vectors:f}=this;if(u.length<=1)return null;for(let p=0,y=a.length;p<y;++p){const v=a[p];if(v<p)continue;const b=Math.floor(p/3)*2,x=Math.floor(v/3)*2,S=c[b],C=c[b+1],E=c[x],_=c[x+1];this._renderSegment(S,C,E,_,n)}let m,h=u[u.length-1];for(let p=0;p<u.length;++p){m=h,h=u[p];const y=Math.floor(o[h]/3)*2,v=c[y],b=c[y+1],x=m*4,S=this._project(v,b,f[x+2],f[x+3]);S&&this._renderSegment(v,b,S[0],S[1],n)}return i&&i.value()}renderBounds(n){const i=n==null?n=new Di:void 0;return n.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),i&&i.value()}renderCell(n,i){const a=i==null?i=new Di:void 0,o=this._clip(n);if(o===null||!o.length)return;i.moveTo(o[0],o[1]);let u=o.length;for(;o[0]===o[u-2]&&o[1]===o[u-1]&&u>1;)u-=2;for(let c=2;c<u;c+=2)(o[c]!==o[c-2]||o[c+1]!==o[c-1])&&i.lineTo(o[c],o[c+1]);return i.closePath(),a&&a.value()}*cellPolygons(){const{delaunay:{points:n}}=this;for(let i=0,a=n.length/2;i<a;++i){const o=this.cellPolygon(i);o&&(o.index=i,yield o)}}cellPolygon(n){const i=new sm;return this.renderCell(n,i),i.value()}_renderSegment(n,i,a,o,u){let c;const f=this._regioncode(n,i),m=this._regioncode(a,o);f===0&&m===0?(u.moveTo(n,i),u.lineTo(a,o)):(c=this._clipSegment(n,i,a,o,f,m))&&(u.moveTo(c[0],c[1]),u.lineTo(c[2],c[3]))}contains(n,i,a){return i=+i,i!==i||(a=+a,a!==a)?!1:this.delaunay._step(n,i,a)===n}*neighbors(n){const i=this._clip(n);if(i)for(const a of this.delaunay.neighbors(n)){const o=this._clip(a);if(o){t:for(let u=0,c=i.length;u<c;u+=2)for(let f=0,m=o.length;f<m;f+=2)if(i[u]===o[f]&&i[u+1]===o[f+1]&&i[(u+2)%c]===o[(f+m-2)%m]&&i[(u+3)%c]===o[(f+m-1)%m]){yield a;break t}}}}_cell(n){const{circumcenters:i,delaunay:{inedges:a,halfedges:o,triangles:u}}=this,c=a[n];if(c===-1)return null;const f=[];let m=c;do{const h=Math.floor(m/3);if(f.push(i[h*2],i[h*2+1]),m=m%3===2?m-2:m+1,u[m]!==n)break;m=o[m]}while(m!==c&&m!==-1);return f}_clip(n){if(n===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const i=this._cell(n);if(i===null)return null;const{vectors:a}=this,o=n*4;return this._simplify(a[o]||a[o+1]?this._clipInfinite(n,i,a[o],a[o+1],a[o+2],a[o+3]):this._clipFinite(n,i))}_clipFinite(n,i){const a=i.length;let o=null,u,c,f=i[a-2],m=i[a-1],h,p=this._regioncode(f,m),y,v=0;for(let b=0;b<a;b+=2)if(u=f,c=m,f=i[b],m=i[b+1],h=p,p=this._regioncode(f,m),h===0&&p===0)y=v,v=0,o?o.push(f,m):o=[f,m];else{let x,S,C,E,_;if(h===0){if((x=this._clipSegment(u,c,f,m,h,p))===null)continue;[S,C,E,_]=x}else{if((x=this._clipSegment(f,m,u,c,p,h))===null)continue;[E,_,S,C]=x,y=v,v=this._edgecode(S,C),y&&v&&this._edge(n,y,v,o,o.length),o?o.push(S,C):o=[S,C]}y=v,v=this._edgecode(E,_),y&&v&&this._edge(n,y,v,o,o.length),o?o.push(E,_):o=[E,_]}if(o)y=v,v=this._edgecode(o[0],o[1]),y&&v&&this._edge(n,y,v,o,o.length);else if(this.contains(n,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return o}_clipSegment(n,i,a,o,u,c){const f=u<c;for(f&&([n,i,a,o,u,c]=[a,o,n,i,c,u]);;){if(u===0&&c===0)return f?[a,o,n,i]:[n,i,a,o];if(u&c)return null;let m,h,p=u||c;p&8?(m=n+(a-n)*(this.ymax-i)/(o-i),h=this.ymax):p&4?(m=n+(a-n)*(this.ymin-i)/(o-i),h=this.ymin):p&2?(h=i+(o-i)*(this.xmax-n)/(a-n),m=this.xmax):(h=i+(o-i)*(this.xmin-n)/(a-n),m=this.xmin),u?(n=m,i=h,u=this._regioncode(n,i)):(a=m,o=h,c=this._regioncode(a,o))}}_clipInfinite(n,i,a,o,u,c){let f=Array.from(i),m;if((m=this._project(f[0],f[1],a,o))&&f.unshift(m[0],m[1]),(m=this._project(f[f.length-2],f[f.length-1],u,c))&&f.push(m[0],m[1]),f=this._clipFinite(n,f))for(let h=0,p=f.length,y,v=this._edgecode(f[p-2],f[p-1]);h<p;h+=2)y=v,v=this._edgecode(f[h],f[h+1]),y&&v&&(h=this._edge(n,y,v,f,h),p=f.length);else this.contains(n,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(f=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return f}_edge(n,i,a,o,u){for(;i!==a;){let c,f;switch(i){case 5:i=4;continue;case 4:i=6,c=this.xmax,f=this.ymin;break;case 6:i=2;continue;case 2:i=10,c=this.xmax,f=this.ymax;break;case 10:i=8;continue;case 8:i=9,c=this.xmin,f=this.ymax;break;case 9:i=1;continue;case 1:i=5,c=this.xmin,f=this.ymin;break}(o[u]!==c||o[u+1]!==f)&&this.contains(n,c,f)&&(o.splice(u,0,c,f),u+=2)}return u}_project(n,i,a,o){let u=1/0,c,f,m;if(o<0){if(i<=this.ymin)return null;(c=(this.ymin-i)/o)<u&&(m=this.ymin,f=n+(u=c)*a)}else if(o>0){if(i>=this.ymax)return null;(c=(this.ymax-i)/o)<u&&(m=this.ymax,f=n+(u=c)*a)}if(a>0){if(n>=this.xmax)return null;(c=(this.xmax-n)/a)<u&&(f=this.xmax,m=i+(u=c)*o)}else if(a<0){if(n<=this.xmin)return null;(c=(this.xmin-n)/a)<u&&(f=this.xmin,m=i+(u=c)*o)}return[f,m]}_edgecode(n,i){return(n===this.xmin?1:n===this.xmax?2:0)|(i===this.ymin?4:i===this.ymax?8:0)}_regioncode(n,i){return(n<this.xmin?1:n>this.xmax?2:0)|(i<this.ymin?4:i>this.ymax?8:0)}_simplify(n){if(n&&n.length>4){for(let i=0;i<n.length;i+=2){const a=(i+2)%n.length,o=(i+4)%n.length;(n[i]===n[a]&&n[a]===n[o]||n[i+1]===n[a+1]&&n[a+1]===n[o+1])&&(n.splice(a,2),i-=2)}n.length||(n=null)}return n}}const E8=2*Math.PI,Ga=Math.pow;function O8(t){return t[0]}function R8(t){return t[1]}function _8(t){const{triangles:n,coords:i}=t;for(let a=0;a<n.length;a+=3){const o=2*n[a],u=2*n[a+1],c=2*n[a+2];if((i[c]-i[o])*(i[u+1]-i[o+1])-(i[u]-i[o])*(i[c+1]-i[o+1])>1e-10)return!1}return!0}function k8(t,n,i){return[t+Math.sin(t+n)*i,n+Math.cos(t-n)*i]}class S0{static from(n,i=O8,a=R8,o){return new S0("length"in n?D8(n,i,a,o):Float64Array.from(z8(n,i,a,o)))}constructor(n){this._delaunator=new nc(n),this.inedges=new Int32Array(n.length/2),this._hullIndex=new Int32Array(n.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const n=this._delaunator,i=this.points;if(n.hull&&n.hull.length>2&&_8(n)){this.collinear=Int32Array.from({length:i.length/2},(v,b)=>b).sort((v,b)=>i[2*v]-i[2*b]||i[2*v+1]-i[2*b+1]);const m=this.collinear[0],h=this.collinear[this.collinear.length-1],p=[i[2*m],i[2*m+1],i[2*h],i[2*h+1]],y=1e-8*Math.hypot(p[3]-p[1],p[2]-p[0]);for(let v=0,b=i.length/2;v<b;++v){const x=k8(i[2*v],i[2*v+1],y);i[2*v]=x[0],i[2*v+1]=x[1]}this._delaunator=new nc(i)}else delete this.collinear;const a=this.halfedges=this._delaunator.halfedges,o=this.hull=this._delaunator.hull,u=this.triangles=this._delaunator.triangles,c=this.inedges.fill(-1),f=this._hullIndex.fill(-1);for(let m=0,h=a.length;m<h;++m){const p=u[m%3===2?m-2:m+1];(a[m]===-1||c[p]===-1)&&(c[p]=m)}for(let m=0,h=o.length;m<h;++m)f[o[m]]=m;o.length<=2&&o.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=o[0],c[o[0]]=1,o.length===2&&(c[o[1]]=0,this.triangles[1]=o[1],this.triangles[2]=o[1]))}voronoi(n){return new M8(this,n)}*neighbors(n){const{inedges:i,hull:a,_hullIndex:o,halfedges:u,triangles:c,collinear:f}=this;if(f){const y=f.indexOf(n);y>0&&(yield f[y-1]),y<f.length-1&&(yield f[y+1]);return}const m=i[n];if(m===-1)return;let h=m,p=-1;do{if(yield p=c[h],h=h%3===2?h-2:h+1,c[h]!==n)return;if(h=u[h],h===-1){const y=a[(o[n]+1)%a.length];y!==p&&(yield y);return}}while(h!==m)}find(n,i,a=0){if(n=+n,n!==n||(i=+i,i!==i))return-1;const o=a;let u;for(;(u=this._step(a,n,i))>=0&&u!==a&&u!==o;)a=u;return u}_step(n,i,a){const{inedges:o,hull:u,_hullIndex:c,halfedges:f,triangles:m,points:h}=this;if(o[n]===-1||!h.length)return(n+1)%(h.length>>1);let p=n,y=Ga(i-h[n*2],2)+Ga(a-h[n*2+1],2);const v=o[n];let b=v;do{let x=m[b];const S=Ga(i-h[x*2],2)+Ga(a-h[x*2+1],2);if(S<y&&(y=S,p=x),b=b%3===2?b-2:b+1,m[b]!==n)break;if(b=f[b],b===-1){if(b=u[(c[n]+1)%u.length],b!==x&&Ga(i-h[b*2],2)+Ga(a-h[b*2+1],2)<y)return b;break}}while(b!==v);return p}render(n){const i=n==null?n=new Di:void 0,{points:a,halfedges:o,triangles:u}=this;for(let c=0,f=o.length;c<f;++c){const m=o[c];if(m<c)continue;const h=u[c]*2,p=u[m]*2;n.moveTo(a[h],a[h+1]),n.lineTo(a[p],a[p+1])}return this.renderHull(n),i&&i.value()}renderPoints(n,i){i===void 0&&(!n||typeof n.moveTo!="function")&&(i=n,n=null),i=i==null?2:+i;const a=n==null?n=new Di:void 0,{points:o}=this;for(let u=0,c=o.length;u<c;u+=2){const f=o[u],m=o[u+1];n.moveTo(f+i,m),n.arc(f,m,i,0,E8)}return a&&a.value()}renderHull(n){const i=n==null?n=new Di:void 0,{hull:a,points:o}=this,u=a[0]*2,c=a.length;n.moveTo(o[u],o[u+1]);for(let f=1;f<c;++f){const m=2*a[f];n.lineTo(o[m],o[m+1])}return n.closePath(),i&&i.value()}hullPolygon(){const n=new sm;return this.renderHull(n),n.value()}renderTriangle(n,i){const a=i==null?i=new Di:void 0,{points:o,triangles:u}=this,c=u[n*=3]*2,f=u[n+1]*2,m=u[n+2]*2;return i.moveTo(o[c],o[c+1]),i.lineTo(o[f],o[f+1]),i.lineTo(o[m],o[m+1]),i.closePath(),a&&a.value()}*trianglePolygons(){const{triangles:n}=this;for(let i=0,a=n.length/3;i<a;++i)yield this.trianglePolygon(i)}trianglePolygon(n){const i=new sm;return this.renderTriangle(n,i),i.value()}}function D8(t,n,i,a){const o=t.length,u=new Float64Array(o*2);for(let c=0;c<o;++c){const f=t[c];u[c*2]=n.call(a,f,c,t),u[c*2+1]=i.call(a,f,c,t)}return u}function*z8(t,n,i,a){let o=0;for(const u of t)yield n.call(a,u,o,t),yield i.call(a,u,o,t),++o}const Hc=({svgRef:t,params:n,store:i,instance:a})=>{var R;const{disableVoronoi:o,voronoiMaxRadius:u,onItemClick:c}=n,f=wt(i,Ur),{axis:m,axisIds:h}=wt(i,Gi),{axis:p,axisIds:y}=wt(i,qi),v=wt(i,cS),{series:b,seriesOrder:x}=((R=wt(i,In))==null?void 0:R.scatter)??{},S=Y.useRef({}),C=Y.useRef(void 0),E=Y.useRef(void 0),_=h[0],O=y[0];Ye(()=>{i.update(D=>D.voronoi.isVoronoiEnabled===!o?D:I({},D,{voronoi:{isVoronoiEnabled:!o}}))},[i,o]),Ye(()=>{if(v||x===void 0||b===void 0||o)return;S.current={};let D=[];x.forEach(L=>{const{data:$,xAxisId:T,yAxisId:z}=b[L],X=m[T??_].scale,K=p[z??O].scale,it=Fu(X),ot=Fu(K),j=$.flatMap(({x:P,y:nt})=>{const st=it(P),N=ot(nt);return a.isPointInside({x:st,y:N})?[st,N]:[-f.width,-f.height]});S.current[L]={seriesId:L,startIndex:D.length,endIndex:D.length+j.length},D=D.concat(j)}),C.current=new S0(D),E.current=void 0},[v,_,O,b,x,m,p,f,a,o]),Y.useEffect(()=>{if(t.current===null||o)return;const D=t.current;function L(X){const K=Wh(D,X);if(!a.isPointInside(K))return E.current=void 0,"outside-chart";if(!C.current)return"no-point-found";const it=C.current.find(K.x,K.y,E.current);if(it===void 0)return"no-point-found";E.current=it;const ot=Object.values(S.current).find(P=>2*it>=P.startIndex&&2*it<P.endIndex);if(ot===void 0)return"no-point-found";const j=(2*it-S.current[ot.seriesId].startIndex)/2;if(u!==void 0){const P=C.current.points[2*it],nt=C.current.points[2*it+1];if((P-K.x)**2+(nt-K.y)**2>u**2)return"outside-voronoi-max-radius"}return{seriesId:ot.seriesId,dataIndex:j}}const $=()=>{var X,K;(X=a.cleanInteraction)==null||X.call(a),(K=a.clearHighlight)==null||K.call(a)},T=X=>{var j,P,nt,st,N,F;const K=L(X);if(K==="outside-chart"){(j=a.cleanInteraction)==null||j.call(a),(P=a.clearHighlight)==null||P.call(a);return}if(K==="outside-voronoi-max-radius"||K==="no-point-found"){(nt=a.removeItemInteraction)==null||nt.call(a),(st=a.clearHighlight)==null||st.call(a);return}const{seriesId:it,dataIndex:ot}=K;(N=a.setItemInteraction)==null||N.call(a,{type:"scatter",seriesId:it,dataIndex:ot}),(F=a.setHighlight)==null||F.call(a,{seriesId:it,dataIndex:ot})},z=X=>{if(!c)return;const K=L(X);if(typeof K=="string")return;const{seriesId:it,dataIndex:ot}=K;c(X,{type:"scatter",seriesId:it,dataIndex:ot})};return D.addEventListener("pointerleave",$),D.addEventListener("pointermove",T),D.addEventListener("click",z),()=>{D.removeEventListener("pointerleave",$),D.removeEventListener("pointermove",T),D.removeEventListener("click",z)}},[t,p,m,u,c,o,f,a]);const k=si(()=>{i.update(D=>I({},D,{voronoi:I({},D.voronoi,{isVoronoiEnabled:!0})}))}),M=si(()=>{i.update(D=>I({},D,{voronoi:I({},D.voronoi,{isVoronoiEnabled:!1})}))});return{instance:{enableVoronoi:k,disableVoronoi:M}}};Hc.getDefaultizedParams=({params:t})=>I({},t,{disableVoronoi:t.disableVoronoi??!t.series.some(n=>n.type==="scatter")});Hc.getInitialState=t=>({voronoi:{isVoronoiEnabled:!t.disableVoronoi}});Hc.params={disableVoronoi:!0,voronoiMaxRadius:!0,onItemClick:!0};const S2=[Jo,ml,Wo,gl,Hc],N8=["children","localeText","plugins","seriesConfig"],U8=t=>{const{children:n,localeText:i,plugins:a=S2,seriesConfig:o}=t,u=Qt(t,N8),c=Zo(),f={plugins:a,seriesConfig:o,pluginParams:I({theme:c.palette.mode},u)};return{children:n,localeText:i,chartProviderProps:f}};function j8(t){const{children:n,localeText:i,chartProviderProps:a}=U8(t);return H.jsx(E4,I({},a,{children:H.jsx(O5,{localeText:i,children:n})}))}function wb(t){const{isReversed:n,gradientId:i,size:a,direction:o,scale:u,colorMap:c}=t;return a<=0?null:H.jsx("linearGradient",{id:i,x1:"0",x2:"0",y1:"0",y2:"0",[`${o}${n?1:2}`]:`${a}px`,gradientUnits:"userSpaceOnUse",children:c.thresholds.map((f,m)=>{const h=u(f);if(h===void 0)return null;const p=n?1-h/a:h/a;return Number.isNaN(p)?null:H.jsxs(Y.Fragment,{children:[H.jsx("stop",{offset:p,stopColor:c.colors[m],stopOpacity:1}),H.jsx("stop",{offset:p,stopColor:c.colors[m+1],stopOpacity:1})]},f.toString()+m)})})}const $8=10;function Mb(t){const{gradientUnits:n,isReversed:i,gradientId:a,size:o,direction:u,scale:c,colorScale:f,colorMap:m}=t,h=[m.min??0,m.max??100],p=h.map(c).filter(x=>x!==void 0);if(p.length!==2)return null;const y=typeof h[0]=="number"?xe(h[0],h[1]):Lm(h[0],h[1]),v=Math.round((Math.max(...p)-Math.min(...p))/$8),b=`${h[0]}-${h[1]}-`;return H.jsx("linearGradient",{id:a,x1:"0",x2:"0",y1:"0",y2:"0",[`${u}${i?1:2}`]:n==="objectBoundingBox"?1:`${o}px`,gradientUnits:n??"userSpaceOnUse",children:Array.from({length:v+1},(x,S)=>{const C=y(S/v);if(C===void 0)return null;const E=c(C);if(E===void 0)return null;const _=i?1-E/o:E/o,O=f(C);return O===null?null:H.jsx("stop",{offset:_,stopColor:O,stopOpacity:1},b+S)})})}const B8=10,L8=t=>t?{x1:"1",x2:"0",y1:"0",y2:"0"}:{x1:"0",x2:"1",y1:"0",y2:"0"};function $h(t){const{isReversed:n,gradientId:i,colorScale:a,colorMap:o}=t,u=[o.min??0,o.max??100],c=typeof u[0]=="number"?xe(u[0],u[1]):Lm(u[0],u[1]),f=B8,m=`${u[0]}-${u[1]}-`;return H.jsx("linearGradient",I({id:i},L8(n),{gradientUnits:"objectBoundingBox",children:Array.from({length:f+1},(h,p)=>{const y=p/f,v=c(y);if(v===void 0)return null;const b=a(v);return b===null?null:H.jsx("stop",{offset:y,stopColor:b,stopOpacity:1},m+p)})}))}function H8(){const{top:t,height:n,bottom:i,left:a,width:o,right:u}=ar(),c=t+n+i,f=a+o+u,m=x5(),h=S5(),{xAxis:p,xAxisIds:y}=Xi(),{yAxis:v,yAxisIds:b}=Pi(),{zAxis:x,zAxisIds:S}=s0(),C=b.filter(O=>v[O].colorMap!==void 0),E=y.filter(O=>p[O].colorMap!==void 0),_=S.filter(O=>x[O].colorMap!==void 0);return C.length===0&&E.length===0&&_.length===0?null:H.jsxs("defs",{children:[C.map(O=>{const k=m(O),M=h(O),{colorMap:R,scale:D,colorScale:L,reverse:$}=v[O];return(R==null?void 0:R.type)==="piecewise"?H.jsx(wb,{isReversed:!$,scale:D,colorMap:R,size:c,gradientId:k,direction:"y"},k):(R==null?void 0:R.type)==="continuous"?H.jsxs(Y.Fragment,{children:[H.jsx(Mb,{isReversed:!$,scale:D,colorScale:L,colorMap:R,size:c,gradientId:k,direction:"y"}),H.jsx($h,{isReversed:$,colorScale:L,colorMap:R,gradientId:M})]},k):null}),E.map(O=>{const k=m(O),M=h(O),{colorMap:R,scale:D,reverse:L,colorScale:$}=p[O];return(R==null?void 0:R.type)==="piecewise"?H.jsx(wb,{isReversed:L,scale:D,colorMap:R,size:f,gradientId:k,direction:"x"},k):(R==null?void 0:R.type)==="continuous"?H.jsxs(Y.Fragment,{children:[H.jsx(Mb,{isReversed:L,scale:D,colorScale:$,colorMap:R,size:f,gradientId:k,direction:"x"}),H.jsx($h,{isReversed:L,colorScale:$,colorMap:R,gradientId:M})]},k):null}),_.map(O=>{const k=h(O),{colorMap:M,colorScale:R}=x[O];return(M==null?void 0:M.type)==="continuous"?H.jsx($h,{colorScale:R,colorMap:M,gradientId:k},k):null})]})}const Y8=["children","className","title","desc"],G8=he("svg",{name:"MuiChartsSurface",slot:"Root"})(({ownerState:t})=>({width:t.width??"100%",height:t.height??"100%",display:"flex",position:"relative",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden",touchAction:"none"})),q8=Y.forwardRef(function(n,i){const a=Jt(),{width:o,height:u}=wt(a,bO),{width:c,height:f}=wt(a,vO),m=u0(),h=Wa(m,i),p=ir({props:n,name:"MuiChartsSurface"}),{children:y,className:v,title:b,desc:x}=p,S=Qt(p,Y8),C=u>0&&o>0;return H.jsxs(G8,I({ownerState:{width:c,height:f},viewBox:`0 0 ${o} ${u}`,className:v},S,{ref:h,children:[b&&H.jsx("title",{children:b}),x&&H.jsx("desc",{children:x}),H.jsx(H8,{}),C&&y]}))}),I8=["width","height","margin","children","series","colors","dataset","desc","onAxisClick","disableVoronoi","voronoiMaxRadius","onItemClick","disableAxisListener","highlightedItem","onHighlightChange","sx","title","xAxis","yAxis","zAxis","rotationAxis","radiusAxis","skipAnimation","seriesConfig","plugins","localeText"],V8=(t,n)=>{const i=t,{width:a,height:o,margin:u,children:c,series:f,colors:m,dataset:h,desc:p,onAxisClick:y,disableVoronoi:v,voronoiMaxRadius:b,onItemClick:x,disableAxisListener:S,highlightedItem:C,onHighlightChange:E,sx:_,title:O,xAxis:k,yAxis:M,zAxis:R,rotationAxis:D,radiusAxis:L,skipAnimation:$,seriesConfig:T,plugins:z,localeText:X}=i,K=Qt(i,I8),it=I({title:O,desc:p,sx:_,ref:n},K);return{chartDataProviderProps:{margin:u,series:f,colors:m,dataset:h,disableAxisListener:S,highlightedItem:C,onHighlightChange:E,onAxisClick:y,disableVoronoi:v,voronoiMaxRadius:b,onItemClick:x,xAxis:k,yAxis:M,zAxis:R,rotationAxis:D,radiusAxis:L,skipAnimation:$,width:a,height:o,localeText:X,seriesConfig:T,plugins:z??S2},chartsSurfaceProps:it,children:c}},X8=(t,n)=>t==="vertical"?(n==null?void 0:n.horizontal)==="start"?"row":"row-reverse":(n==null?void 0:n.vertical)==="bottom"?"column-reverse":"column",P8=(t,n)=>{if(t==="vertical"){if((n==null?void 0:n.vertical)==="top")return"flex-start";if((n==null?void 0:n.vertical)==="bottom")return"flex-end"}if(t==="horizontal"){if((n==null?void 0:n.horizontal)==="start")return"flex-start";if((n==null?void 0:n.horizontal)==="end")return"flex-end"}return"center"},Z8=he("div",{name:"MuiChartsWrapper",slot:"Root"})(({ownerState:t})=>({display:"flex",flexDirection:X8(t.legendDirection,t.legendPosition),flex:1,justifyContent:"center",alignItems:P8(t.legendDirection,t.legendPosition)}));function Q8(t){const{children:n,sx:i}=t,a=C5();return H.jsx(Z8,{ref:a,ownerState:t,sx:i,children:n})}const K8=Y.forwardRef(function(n,i){var _,O;const a=ir({props:n,name:"MuiBarChart"}),{chartsWrapperProps:o,chartContainerProps:u,barPlotProps:c,gridProps:f,clipPathProps:m,clipPathGroupProps:h,overlayProps:p,chartsAxisProps:y,axisHighlightProps:v,legendProps:b,children:x}=h8(a),{chartDataProviderProps:S,chartsSurfaceProps:C}=V8(u,i),E=((_=a.slots)==null?void 0:_.tooltip)??_D;return H.jsx(j8,I({},S,{children:H.jsxs(Q8,I({},o,{children:[!a.hideLegend&&H.jsx(qD,I({},b)),H.jsxs(q8,I({},C,{children:[H.jsx(n8,I({},f)),H.jsxs("g",I({},h,{children:[H.jsx(J5,I({},c)),H.jsx(c8,I({},p)),H.jsx(ZD,I({},v))]})),H.jsx(Dk,I({},y)),!a.loading&&H.jsx(E,I({},(O=a.slotProps)==null?void 0:O.tooltip)),H.jsx(QD,I({},m)),x]}))]}))}))});new TextEncoder;const F8=new TextDecoder,W8=t=>new Uint8Array(t),J8=W8,tz=(t,n,i)=>{let a;return n===void 0?a=t:i===void 0?a=t.subarray(n):a=t.subarray(n,n+i),F8.decode(a)},A2=(t,n,i)=>a=>{const o=(1<<n)-1;let u="",c=0,f=0;for(let m=0;m<a.length;++m)for(f=f<<8|a[m],c+=8;c>n;)c-=n,u+=t[o&f>>c];if(c!==0&&(u+=t[o&f<<n-c]),i)for(;(u.length*n&7)!==0;)u+="=";return u},ez=(t,n,i)=>{const a={};for(let o=0;o<t.length;++o)a[t[o]]=o;return o=>{let u=o.length;for(;i&&o[u-1]==="=";)--u;const c=J8(u*n/8|0);let f=0,m=0,h=0;for(let p=0;p<u;++p){const y=a[o[p]];if(y===void 0)throw new SyntaxError("invalid base string");m=m<<n|y,f+=n,f>=8&&(f-=8,c[h++]=255&m>>f)}if(f>=n||(255&m<<8-f)!==0)throw new SyntaxError("unexpected end of data");return c}},T2="fromBase64"in Uint8Array,C2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nz=ez(C2,6,!1),rz=A2(C2,6,!1),iz=t=>Uint8Array.fromBase64(t,{alphabet:"base64",lastChunkHandling:"loose"}),az=t=>t.toBase64({alphabet:"base64",omitPadding:!0}),lz=T2?iz:nz,oz=T2?az:rz,sz="abcdefghijklmnopqrstuvwxyz234567",uz=A2(sz,5,!1),cz=1,fz=18,dz=85,hz=113,mz=Symbol.for("@atcute/cid-link-wrapper");var Nb;Nb=mz;class A0{constructor(n){Ln(this,"bytes");Ln(this,Nb,!0);this.bytes=n}get $link(){return`b${uz(this.bytes)}`}toJSON(){return{$link:this.$link}}}const gz=t=>new A0(t.bytes),pz=Symbol.for("@atcute/bytes-wrapper");var Ub;Ub=pz;class w2{constructor(n){Ln(this,"buf");Ln(this,Ub,!0);this.buf=n}get $bytes(){return oz(this.buf)}toJSON(){return{$bytes:this.$bytes}}}const yz=t=>new w2(t),Eb=t=>t instanceof w2?t.buf:lz(t.$bytes),Cr=(t,n)=>{if(n<24)return n;switch(n){case 24:return rc(t);case 25:return bz(t);case 26:return xz(t);case 27:return Sz(t)}throw new Error(`invalid argument encoding; got ${n}`)},vz=t=>{const i=(t.v??(t.v=new DataView(t.b.buffer,t.b.byteOffset,t.b.byteLength))).getFloat64(t.p);return t.p+=8,i},rc=t=>t.b[t.p++],bz=t=>{let n=t.p;const i=t.b,a=i[n++]<<8|i[n++];return t.p=n,a},xz=t=>{let n=t.p;const i=t.b,a=(i[n++]<<24|i[n++]<<16|i[n++]<<8|i[n++])>>>0;return t.p=n,a},Sz=t=>{let n=t.p;const i=t.b,a=(i[n++]<<24|i[n++]<<16|i[n++]<<8|i[n++])>>>0;if(a>2097151)throw new RangeError("can't decode integers beyond safe integer range");const o=(i[n++]<<24|i[n++]<<16|i[n++]<<8|i[n++])>>>0,u=a*2**32+o;return t.p=n,u},M2=(t,n)=>{const i=tz(t.b,t.p,n);return t.p+=n,i},Az=(t,n)=>{const i=t.b.subarray(t.p,t.p+=n);return yz(i)},Tz=(t,n)=>{const i=t.b.subarray(t.p+1,t.p+=n);return new A0(i)},Ob=t=>{const n=rc(t),i=n>>5;if(i!==3)throw new TypeError(`expected map to only have string keys; got type ${i}`);const a=n&31,o=Cr(t,a);return M2(t,o)},um=t=>{const n=t.length,i={b:t,v:null,p:0};let a=null,o;t:for(;i.p<n;){const u=rc(i),c=u>>5,f=u&31;switch(c){case 0:{o=Cr(i,f);break}case 1:{o=-1-Cr(i,f);break}case 2:{o=Az(i,Cr(i,f));break}case 3:{o=M2(i,Cr(i,f));break}case 4:{const m=Cr(i,f),h=new Array(m);if(o=h,m>0){a={t:1,c:h,k:null,r:m,n:a};continue t}break}case 5:{const m=Cr(i,f),h={};if(o=h,m>0){const p=Ob(i);a={t:0,c:h,k:p,r:m,n:a};continue t}break}case 6:{const m=Cr(i,f);switch(m){case 42:{const h=rc(i),p=h>>5,y=h&31;if(p!==2)throw new TypeError(`expected cid-link to be type 2 (bytes); got type ${p}`);const v=Cr(i,y);o=Tz(i,v);break}default:throw new TypeError(`unsupported tag; got ${m}`)}break}case 7:{switch(f){case 20:case 21:{o=f===21;break}case 22:{o=null;break}case 27:{o=vz(i);break}default:throw new Error(`invalid simple value; got ${f}`)}break}default:throw new TypeError(`invalid type; got ${c}`)}for(;a!==null;){switch(a.t){case 0:{const m=a.c,h=a.k;h==="__proto__"&&Object.defineProperty(m,h,{enumerable:!0,configurable:!0,writable:!0}),m[h]=o;break}case 1:{const m=a.c,h=m.length-a.r;m[h]=o;break}}if(--a.r!==0){a.t===0&&(a.k=Ob(i));continue t}o=a.c,a=a.n}break}return[o,t.subarray(i.p)]},E2=t=>{const[n,i]=um(t);if(i.length!==0)throw new Error("decoded value contains remainder");return n},Cz=t=>{let n=0;return{get pos(){return n},seek(i){if(i>t.length-n)throw new RangeError("unexpected end of data");n+=i},upto(i){return t.subarray(n,n+i)},exactly(i,a){if(i>t.length-n)throw new RangeError("unexpected end of data");const o=t.subarray(n,n+i);return a&&(n+=i),o}}},wz=128,Rb=127,Mz=(t,n=0)=>{let i=t.length,a=0,o=0,u=n,c;do{if(u>=i)throw new RangeError("could not decode varint");c=t[u++],a+=o<28?(c&Rb)<<o:(c&Rb)*Math.pow(2,o),o+=7}while(c>=wz);return[a,u-n]},Ez=t=>{if(t===null||typeof t!="object")return!1;const{version:n,roots:i}=t;return n===1&&Array.isArray(i)&&i.every(a=>a instanceof A0)},O2=(t,n)=>{const i=t.upto(n);if(i.length===0)throw new RangeError("unexpected end of data");const[a,o]=Mz(i);return t.seek(o),a},Oz=t=>{const n=t.pos,i=O2(t,8);if(i===0)throw new RangeError("invalid car header; length=0");const a=t.pos,o=t.exactly(i,!0),u=E2(o);if(!Ez(u))throw new TypeError("expected a car v1 archive");const c=t.pos;return{data:u,headerStart:n,headerEnd:c,dataStart:a,dataEnd:c}},Rz=t=>{const n=t.exactly(4,!1),i=n[0],a=n[1],o=n[2],u=n[3];if(i!==cz)throw new RangeError(`incorrect cid version (got v${i})`);if(a!==hz&&a!==dz)throw new RangeError(`incorrect cid codec (got 0x${a.toString(16)})`);if(o!==fz)throw new RangeError(`incorrect cid digest type (got 0x${o.toString(16)})`);if(u!==32&&u!==0)throw new RangeError(`incorrect cid digest size (got ${u})`);const c=t.exactly(4+u,!0),f=c.subarray(4,4+u);return{version:i,codec:a,digest:{codec:o,contents:f},bytes:c}},_z=t=>({header:Oz(t),*iterate(){for(;t.upto(44).length>0;){const i=t.pos,a=O2(t,8),o=t.pos,u=Rz(t),c=t.pos,f=a-(c-o),m=t.exactly(f,!0),h=c,p=t.pos;yield{cid:u,bytes:m,entryStart:i,entryEnd:p,cidStart:o,cidEnd:h,bytesStart:c,bytesEnd:p}}}}),kz=t=>{const n=Cz(t);return _z(n)};let Dz=()=>({emit(t,...n){for(let i=this.events[t]||[],a=0,o=i.length;a<o;a++)i[a](...n)},events:{},on(t,n){var i;return((i=this.events)[t]||(i[t]=[])).push(n),()=>{var a;this.events[t]=(a=this.events[t])==null?void 0:a.filter(o=>n!==o)}}});class zz{constructor(n={}){Ln(this,"relay");Ln(this,"ws");Ln(this,"cursor","");Ln(this,"emitter",Dz());Ln(this,"autoReconnect");Ln(this,"reconnectTimeout");this.relay=n.relay??"wss://bsky.network",this.cursor=n.cursor??"",this.autoReconnect=n.autoReconnect??!0;const i=this.cursor?`?cursor=${this.cursor}`:"";if(typeof globalThis.WebSocket>"u"&&!n.ws)throw new Error(`No WebSocket implementation was found in your environment. You must provide an implementation as the \`ws\` option. 115 - 116 - For example, in a Node.js environment, \`npm install ws\` and then: 117 - import { Firehose } from "@skyware/firehose"; 118 - import WebSocket from "ws"; 119 - 120 - const firehose = new Firehose({ 121 - ws: WebSocket, 122 - });`);const a=n.ws??globalThis.WebSocket;this.ws=new a(`${this.relay}/xrpc/com.atproto.sync.subscribeRepos${i}`)}start(){this.ws.addEventListener("open",()=>{this.emitter.emit("open")}),this.ws.addEventListener("message",async({data:n})=>{try{const i=await this.parseMessage(n);switch("seq"in i&&i.seq&&!isNaN(i.seq)&&(this.cursor=`${i.seq}`),i.$type){case"com.atproto.sync.subscribeRepos#identity":this.emitter.emit("identity",i);break;case"com.atproto.sync.subscribeRepos#account":this.emitter.emit("account",i);break;case"com.atproto.sync.subscribeRepos#info":this.emitter.emit("info",i);break;case"com.atproto.sync.subscribeRepos#sync":this.emitter.emit("sync",i);break;case"com.atproto.sync.subscribeRepos#commit":this.emitter.emit("commit",i);break;default:this.emitter.emit("unknown",i);break}}catch(i){this.emitter.emit("error",{cursor:this.cursor,error:i})}finally{this.autoReconnect&&this.preventReconnect()}}),this.ws.addEventListener("close",()=>{this.emitter.emit("close",this.cursor)}),this.ws.addEventListener("error",n=>{this.emitter.emit("websocketError",{cursor:this.cursor,error:n})})}close(){var n;(n=this.ws)==null||n.close()}on(n,i){return this.emitter.on(n,i)}async parseMessage(n){var h,p;const i=new Uint8Array(await new Blob(Array.isArray(n)?n:[n]).arrayBuffer()),[a,o]=um(i),[u,c]=um(o);if(c.length>0)throw new Error("Excess bytes in message");const{t:f,op:m}=Nz(a);if(m===-1)throw new Error(`Error: ${u.message} 123 - Error code: ${u.error}`);if(f==="#commit"){const{seq:y,repo:v,commit:b,rev:x,since:S,blocks:C,ops:E,prevData:_,time:O}=u;if(!((h=C==null?void 0:C.$bytes)!=null&&h.length))return{$type:"com.atproto.sync.subscribeRepos#commit",seq:y,repo:v,commit:b.$link,rev:x,since:S,blocks:new Uint8Array,ops:[],..._?{prevData:_.$link}:{},time:O};const k=Eb(C),M=Uz(k),R=[];for(const D of E){const L=D.action;if(L==="create"){if(!D.cid)continue;const $=M.get(D.cid.$link);if(!$)continue;R.push({action:L,path:D.path,cid:D.cid.$link,record:$})}else if(L==="update"){if(!D.cid)continue;const $=M.get(D.cid.$link);if(!$)continue;R.push({action:L,path:D.path,cid:D.cid.$link,...D.prev?{prev:D.prev.$link}:{},record:$})}else if(L==="delete")R.push({action:L,path:D.path,...D.prev?{prev:D.prev.$link}:{}});else throw new Error(`Unknown action: ${L}`)}return{$type:"com.atproto.sync.subscribeRepos#commit",seq:y,repo:v,commit:b.$link,rev:x,since:S,blocks:k,ops:R,..._?{prevData:_.$link}:{},time:O}}else if(f==="#sync"){const{seq:y,did:v,blocks:b,rev:x,time:S}=u,C=(p=b==null?void 0:b.$bytes)!=null&&p.length?Eb(b):new Uint8Array;return{$type:"com.atproto.sync.subscribeRepos#sync",seq:y,did:v,blocks:C,rev:x,time:S}}return{$type:`com.atproto.sync.subscribeRepos${f}`,...u}}preventReconnect(){this.reconnectTimeout&&clearTimeout(this.reconnectTimeout),this.reconnectTimeout=setTimeout(()=>{this.reconnect()},5e3)}reconnect(){var n;(n=this.ws)==null||n.close(),this.start(),this.emitter.emit("reconnect")}}function Nz(t){if(!t||typeof t!="object"||!t.t||typeof t.t!="string"||!t.op||typeof t.op!="number")throw new Error("Invalid header received");return{t:t.t,op:t.op}}function Uz(t){const n=new Map;for(const{cid:i,bytes:a}of kz(t).iterate())n.set(gz(i).$link,E2(a));return n}function jz({url:t,desc:n,onRecieveEvent:i}){const[a,o]=Y.useState("connecting"),[u,c]=Y.useState(0),[f,m]=Y.useState(0);return Y.useEffect(()=>{const h=(y,v)=>{i(y,v),c(b=>b+1)},p=new zz({relay:t});return p.on("open",()=>o("connected")),p.on("close",()=>o("closed")),p.on("reconnect",()=>m(y=>y+1)),p.on("error",y=>{console.error("oops",y),o("errored")}),p.on("websocketError",()=>o("errored")),p.on("commit",y=>h("commit",y)),p.on("sync",y=>h("sync",y)),p.on("account",y=>h("account",y)),p.on("identity",y=>h("identity",y)),p.on("info",(...y)=>console.info("info event",...y)),p.on("unknown",y=>console.warn(`unknown event from ${t}`,y)),p.start(),()=>{p.close()}},[t]),H.jsxs("div",{className:"relay",children:[H.jsx("h2",{children:n}),H.jsx("p",{children:H.jsx("code",{children:t})}),H.jsxs("p",{children:["[",H.jsx("code",{children:a}),"] (",H.jsx("code",{children:u.toLocaleString()})," events)"]}),f>0&&H.jsxs("p",{children:["reconnects: ",H.jsx("code",{children:f})]})]})}const _b=[{url:"wss://atproto.africa",desc:"Blacksky"},{url:"wss://bsky.network",desc:"Bluesky primary (+Rainbow)"},{url:"wss://relay1.us-east.bsky.network",desc:"Bluesky sync1.1 east (+Rainbow)"},{url:"wss://relay1.us-west.bsky.network",desc:"Bluesky sync1.1 west (+Rainbow)"},{url:"wss://relay.fire.hose.cam",desc:"microcosm Montreal"},{url:"wss://relay3.fr.hose.cam",desc:"microcosm France"},{url:"wss://relay.hayescmd.net",desc:"@edavis.dev's relay"},{url:"wss://relay.xero.systems",desc:"@dane.is.extraordinarily.cool's relay"}],kb=1600,$z=6,Db=10*60*1e3,zb=(t,n,i)=>{};function Bz(){const[t,n]=Y.useState([]),[i,a]=Y.useState(()=>zb),[o,u]=Y.useState(()=>()=>{}),[c,f]=Y.useState({series:[]}),[m,h]=Y.useState(!1),[p,y]=Y.useState("");Y.useEffect(()=>{let x=performance.now(),S={},C=[],E=requestAnimationFrame(M),_=setTimeout(O,Db);a(()=>(R,D,L)=>{S[R]||(S[R]=0),S[R]+=1}),u(()=>()=>{clearTimeout(_),_=setTimeout(O,Db),h(!1),console.info("keepalive: disconnection timer reset")});function O(){console.info("disconnecting due to inactivity"),n([]),h(!0)}const k=setInterval(()=>{let R=performance.now(),D=R-x;C.length>=$z-1&&C.shift(),C.push({t:R,dt:D,counts:S}),x=R,S={}},kb);function M(){var L;let R=performance.now();const D=Object.keys(((L=C.at(-1))==null?void 0:L.counts)||{}).toSorted();f({xAxis:[{data:C.map(({t:$})=>(-(R-$)/1e3).toFixed(1)).concat(["now"]),label:"bucket (seconds ago)"}],series:D.map($=>({label:$,data:C.map(({dt:T,counts:z})=>z[$]?(z[$]/(T/1e3)).toFixed(1):null).concat([S[$]?(S[$]/(kb/1e3)).toFixed(1):null])}))}),E=requestAnimationFrame(M)}return()=>{a(()=>zb),u(()=>()=>null),clearInterval(k),cancelAnimationFrame(E)}},[]);function v(x,S){h(!1),n(S?C=>C.includes(x)?C:[...C,x]:C=>C.includes(x)?C.filter(E=>E!==x):C),o()}function b(){if(!p)return"";try{let x;return p.includes("://")?x=new URL(p):x=new URL("https://"+p),x.protocol==="https:"?x.protocol="wss:":x.protocol==="http:"&&(x.protocol="ws:"),x.origin}catch{return""}}return H.jsxs(H.Fragment,{children:[H.jsx("h1",{children:"compare hoses"}),H.jsx("p",{children:H.jsx("em",{children:"warning: enabling many relay connections requires a lot of bandwidth"})}),H.jsxs("form",{style:{display:"block",textAlign:"left"},children:[_b.map(({url:x,desc:S})=>H.jsx("p",{style:{margin:0},children:H.jsxs("label",{children:[H.jsx("input",{type:"checkbox",onChange:C=>v(x,C.target.checked),checked:t.includes(x)}),` ${S} `,"(",H.jsx("code",{children:x.slice(6)}),")"]})},x)),H.jsx("p",{style:{margin:0},children:H.jsxs("label",{children:[H.jsx("input",{type:"checkbox",onChange:x=>{const S=b();S&&v(S,x.target.checked)},checked:t.includes(b())})," ",H.jsx("input",{type:"text",placeholder:"wss://…",value:p,onChange:x=>{const S=b();n(C=>C.includes(S)?C.filter(E=>E!==S):C),y(x.target.value)},onKeyDown:x=>{if(x.key!=="Enter")return;x.preventDefault();const S=b();S&&v(S,!0)}})," ",p&&H.jsx("code",{children:b()})]})})]}),H.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"2em",textAlign:"left"},children:t.map(x=>{const{desc:S}=_b.find(C=>C.url===x)??{desc:"custom relay"};return H.jsx("div",{children:H.jsx(jz,{url:x,desc:S,onRecieveEvent:(C,E)=>i(x,C,E)})},x)})}),m&&H.jsx("p",{children:H.jsx("em",{children:"disconnected to save bandwidth due to inactivity"})}),H.jsx("div",{className:"throughputs",children:H.jsx(K8,{height:300,yAxis:[{label:"events / sec"}],skipAnimation:!0,...c})})]})}const Lz=_m({colorSchemes:{dark:!0}});JT.createRoot(document.getElementById("root")).render(H.jsx(JC,{injectFirst:!0,children:H.jsx(RE,{theme:Lz,children:H.jsx(Bz,{})})}));
+232
docs/assets/index-KS4_m-xo.js
··· 1 + var aE=Object.defineProperty;var oE=(t,e,r)=>e in t?aE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Et=(t,e,r)=>oE(t,typeof e!="symbol"?e+"":e,r);function sE(t,e){for(var r=0;r<e.length;r++){const a=e[r];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in t)){const l=Object.getOwnPropertyDescriptor(a,s);l&&Object.defineProperty(t,s,l.get?l:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function r(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(s){if(s.ep)return;s.ep=!0;const l=r(s);fetch(s.href,l)}})();function Bx(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Rh={exports:{}},Os={};/** 2 + * @license React 3 + * react-jsx-runtime.production.js 4 + * 5 + * Copyright (c) Meta Platforms, Inc. and affiliates. 6 + * 7 + * This source code is licensed under the MIT license found in the 8 + * LICENSE file in the root directory of this source tree. 9 + */var sb;function lE(){if(sb)return Os;sb=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function r(a,s,l){var c=null;if(l!==void 0&&(c=""+l),s.key!==void 0&&(c=""+s.key),"key"in s){l={};for(var f in s)f!=="key"&&(l[f]=s[f])}else l=s;return s=l.ref,{$$typeof:t,type:a,key:c,ref:s!==void 0?s:null,props:l}}return Os.Fragment=e,Os.jsx=r,Os.jsxs=r,Os}var lb;function uE(){return lb||(lb=1,Rh.exports=lE()),Rh.exports}var N=uE(),kh={exports:{}},Rs={},Dh={exports:{}},_h={};/** 10 + * @license React 11 + * scheduler.production.js 12 + * 13 + * Copyright (c) Meta Platforms, Inc. and affiliates. 14 + * 15 + * This source code is licensed under the MIT license found in the 16 + * LICENSE file in the root directory of this source tree. 17 + */var ub;function cE(){return ub||(ub=1,function(t){function e(j,Y){var W=j.length;j.push(Y);t:for(;0<W;){var J=W-1>>>1,$=j[J];if(0<s($,Y))j[J]=Y,j[W]=$,W=J;else break t}}function r(j){return j.length===0?null:j[0]}function a(j){if(j.length===0)return null;var Y=j[0],W=j.pop();if(W!==Y){j[0]=W;t:for(var J=0,$=j.length,Z=$>>>1;J<Z;){var at=2*(J+1)-1,ot=j[at],ct=at+1,dt=j[ct];if(0>s(ot,W))ct<$&&0>s(dt,ot)?(j[J]=dt,j[ct]=W,J=ct):(j[J]=ot,j[at]=W,J=at);else if(ct<$&&0>s(dt,W))j[J]=dt,j[ct]=W,J=ct;else break t}}return Y}function s(j,Y){var W=j.sortIndex-Y.sortIndex;return W!==0?W:j.id-Y.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;t.unstable_now=function(){return l.now()}}else{var c=Date,f=c.now();t.unstable_now=function(){return c.now()-f}}var p=[],d=[],m=1,y=null,v=3,b=!1,x=!1,S=!1,A=!1,w=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function R(j){for(var Y=r(d);Y!==null;){if(Y.callback===null)a(d);else if(Y.startTime<=j)a(d),Y.sortIndex=Y.expirationTime,e(p,Y);else break;Y=r(d)}}function E(j){if(S=!1,R(j),!x)if(r(p)!==null)x=!0,k||(k=!0,I());else{var Y=r(d);Y!==null&&lt(E,Y.startTime-j)}}var k=!1,z=-1,H=5,L=-1;function C(){return A?!0:!(t.unstable_now()-L<H)}function _(){if(A=!1,k){var j=t.unstable_now();L=j;var Y=!0;try{t:{x=!1,S&&(S=!1,D(z),z=-1),b=!0;var W=v;try{e:{for(R(j),y=r(p);y!==null&&!(y.expirationTime>j&&C());){var J=y.callback;if(typeof J=="function"){y.callback=null,v=y.priorityLevel;var $=J(y.expirationTime<=j);if(j=t.unstable_now(),typeof $=="function"){y.callback=$,R(j),Y=!0;break e}y===r(p)&&a(p),R(j)}else a(p);y=r(p)}if(y!==null)Y=!0;else{var Z=r(d);Z!==null&&lt(E,Z.startTime-j),Y=!1}}break t}finally{y=null,v=W,b=!1}Y=void 0}}finally{Y?I():k=!1}}}var I;if(typeof O=="function")I=function(){O(_)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,it=q.port2;q.port1.onmessage=_,I=function(){it.postMessage(null)}}else I=function(){w(_,0)};function lt(j,Y){z=w(function(){j(t.unstable_now())},Y)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(j){j.callback=null},t.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<j?Math.floor(1e3/j):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_next=function(j){switch(v){case 1:case 2:case 3:var Y=3;break;default:Y=v}var W=v;v=Y;try{return j()}finally{v=W}},t.unstable_requestPaint=function(){A=!0},t.unstable_runWithPriority=function(j,Y){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var W=v;v=j;try{return Y()}finally{v=W}},t.unstable_scheduleCallback=function(j,Y,W){var J=t.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?J+W:J):W=J,j){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=W+$,j={id:m++,callback:Y,priorityLevel:j,startTime:W,expirationTime:$,sortIndex:-1},W>J?(j.sortIndex=W,e(d,j),r(p)===null&&j===r(d)&&(S?(D(z),z=-1):S=!0,lt(E,W-J))):(j.sortIndex=$,e(p,j),x||b||(x=!0,k||(k=!0,I()))),j},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(j){var Y=v;return function(){var W=v;v=Y;try{return j.apply(this,arguments)}finally{v=W}}}}(_h)),_h}var cb;function fE(){return cb||(cb=1,Dh.exports=cE()),Dh.exports}var zh={exports:{}},Mt={};/** 18 + * @license React 19 + * react.production.js 20 + * 21 + * Copyright (c) Meta Platforms, Inc. and affiliates. 22 + * 23 + * This source code is licensed under the MIT license found in the 24 + * LICENSE file in the root directory of this source tree. 25 + */var fb;function dE(){if(fb)return Mt;fb=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function v($){return $===null||typeof $!="object"?null:($=y&&$[y]||$["@@iterator"],typeof $=="function"?$:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,S={};function A($,Z,at){this.props=$,this.context=Z,this.refs=S,this.updater=at||b}A.prototype.isReactComponent={},A.prototype.setState=function($,Z){if(typeof $!="object"&&typeof $!="function"&&$!=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,$,Z,"setState")},A.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function w(){}w.prototype=A.prototype;function D($,Z,at){this.props=$,this.context=Z,this.refs=S,this.updater=at||b}var O=D.prototype=new w;O.constructor=D,x(O,A.prototype),O.isPureReactComponent=!0;var R=Array.isArray,E={H:null,A:null,T:null,S:null,V:null},k=Object.prototype.hasOwnProperty;function z($,Z,at,ot,ct,dt){return at=dt.ref,{$$typeof:t,type:$,key:Z,ref:at!==void 0?at:null,props:dt}}function H($,Z){return z($.type,Z,void 0,void 0,void 0,$.props)}function L($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function C($){var Z={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(at){return Z[at]})}var _=/\/+/g;function I($,Z){return typeof $=="object"&&$!==null&&$.key!=null?C(""+$.key):Z.toString(36)}function q(){}function it($){switch($.status){case"fulfilled":return $.value;case"rejected":throw $.reason;default:switch(typeof $.status=="string"?$.then(q,q):($.status="pending",$.then(function(Z){$.status==="pending"&&($.status="fulfilled",$.value=Z)},function(Z){$.status==="pending"&&($.status="rejected",$.reason=Z)})),$.status){case"fulfilled":return $.value;case"rejected":throw $.reason}}throw $}function lt($,Z,at,ot,ct){var dt=typeof $;(dt==="undefined"||dt==="boolean")&&($=null);var ft=!1;if($===null)ft=!0;else switch(dt){case"bigint":case"string":case"number":ft=!0;break;case"object":switch($.$$typeof){case t:case e:ft=!0;break;case m:return ft=$._init,lt(ft($._payload),Z,at,ot,ct)}}if(ft)return ct=ct($),ft=ot===""?"."+I($,0):ot,R(ct)?(at="",ft!=null&&(at=ft.replace(_,"$&/")+"/"),lt(ct,Z,at,"",function(nt){return nt})):ct!=null&&(L(ct)&&(ct=H(ct,at+(ct.key==null||$&&$.key===ct.key?"":(""+ct.key).replace(_,"$&/")+"/")+ft)),Z.push(ct)),1;ft=0;var At=ot===""?".":ot+":";if(R($))for(var bt=0;bt<$.length;bt++)ot=$[bt],dt=At+I(ot,bt),ft+=lt(ot,Z,at,dt,ct);else if(bt=v($),typeof bt=="function")for($=bt.call($),bt=0;!(ot=$.next()).done;)ot=ot.value,dt=At+I(ot,bt++),ft+=lt(ot,Z,at,dt,ct);else if(dt==="object"){if(typeof $.then=="function")return lt(it($),Z,at,ot,ct);throw Z=String($),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return ft}function j($,Z,at){if($==null)return $;var ot=[],ct=0;return lt($,ot,"","",function(dt){return Z.call(at,dt,ct++)}),ot}function Y($){if($._status===-1){var Z=$._result;Z=Z(),Z.then(function(at){($._status===0||$._status===-1)&&($._status=1,$._result=at)},function(at){($._status===0||$._status===-1)&&($._status=2,$._result=at)}),$._status===-1&&($._status=0,$._result=Z)}if($._status===1)return $._result.default;throw $._result}var W=typeof reportError=="function"?reportError:function($){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $=="object"&&$!==null&&typeof $.message=="string"?String($.message):String($),error:$});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",$);return}console.error($)};function J(){}return Mt.Children={map:j,forEach:function($,Z,at){j($,function(){Z.apply(this,arguments)},at)},count:function($){var Z=0;return j($,function(){Z++}),Z},toArray:function($){return j($,function(Z){return Z})||[]},only:function($){if(!L($))throw Error("React.Children.only expected to receive a single React element child.");return $}},Mt.Component=A,Mt.Fragment=r,Mt.Profiler=s,Mt.PureComponent=D,Mt.StrictMode=a,Mt.Suspense=p,Mt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E,Mt.__COMPILER_RUNTIME={__proto__:null,c:function($){return E.H.useMemoCache($)}},Mt.cache=function($){return function(){return $.apply(null,arguments)}},Mt.cloneElement=function($,Z,at){if($==null)throw Error("The argument must be a React element, but you passed "+$+".");var ot=x({},$.props),ct=$.key,dt=void 0;if(Z!=null)for(ft in Z.ref!==void 0&&(dt=void 0),Z.key!==void 0&&(ct=""+Z.key),Z)!k.call(Z,ft)||ft==="key"||ft==="__self"||ft==="__source"||ft==="ref"&&Z.ref===void 0||(ot[ft]=Z[ft]);var ft=arguments.length-2;if(ft===1)ot.children=at;else if(1<ft){for(var At=Array(ft),bt=0;bt<ft;bt++)At[bt]=arguments[bt+2];ot.children=At}return z($.type,ct,void 0,void 0,dt,ot)},Mt.createContext=function($){return $={$$typeof:c,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null},$.Provider=$,$.Consumer={$$typeof:l,_context:$},$},Mt.createElement=function($,Z,at){var ot,ct={},dt=null;if(Z!=null)for(ot in Z.key!==void 0&&(dt=""+Z.key),Z)k.call(Z,ot)&&ot!=="key"&&ot!=="__self"&&ot!=="__source"&&(ct[ot]=Z[ot]);var ft=arguments.length-2;if(ft===1)ct.children=at;else if(1<ft){for(var At=Array(ft),bt=0;bt<ft;bt++)At[bt]=arguments[bt+2];ct.children=At}if($&&$.defaultProps)for(ot in ft=$.defaultProps,ft)ct[ot]===void 0&&(ct[ot]=ft[ot]);return z($,dt,void 0,void 0,null,ct)},Mt.createRef=function(){return{current:null}},Mt.forwardRef=function($){return{$$typeof:f,render:$}},Mt.isValidElement=L,Mt.lazy=function($){return{$$typeof:m,_payload:{_status:-1,_result:$},_init:Y}},Mt.memo=function($,Z){return{$$typeof:d,type:$,compare:Z===void 0?null:Z}},Mt.startTransition=function($){var Z=E.T,at={};E.T=at;try{var ot=$(),ct=E.S;ct!==null&&ct(at,ot),typeof ot=="object"&&ot!==null&&typeof ot.then=="function"&&ot.then(J,W)}catch(dt){W(dt)}finally{E.T=Z}},Mt.unstable_useCacheRefresh=function(){return E.H.useCacheRefresh()},Mt.use=function($){return E.H.use($)},Mt.useActionState=function($,Z,at){return E.H.useActionState($,Z,at)},Mt.useCallback=function($,Z){return E.H.useCallback($,Z)},Mt.useContext=function($){return E.H.useContext($)},Mt.useDebugValue=function(){},Mt.useDeferredValue=function($,Z){return E.H.useDeferredValue($,Z)},Mt.useEffect=function($,Z,at){var ot=E.H;if(typeof at=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ot.useEffect($,Z)},Mt.useId=function(){return E.H.useId()},Mt.useImperativeHandle=function($,Z,at){return E.H.useImperativeHandle($,Z,at)},Mt.useInsertionEffect=function($,Z){return E.H.useInsertionEffect($,Z)},Mt.useLayoutEffect=function($,Z){return E.H.useLayoutEffect($,Z)},Mt.useMemo=function($,Z){return E.H.useMemo($,Z)},Mt.useOptimistic=function($,Z){return E.H.useOptimistic($,Z)},Mt.useReducer=function($,Z,at){return E.H.useReducer($,Z,at)},Mt.useRef=function($){return E.H.useRef($)},Mt.useState=function($){return E.H.useState($)},Mt.useSyncExternalStore=function($,Z,at){return E.H.useSyncExternalStore($,Z,at)},Mt.useTransition=function(){return E.H.useTransition()},Mt.version="19.1.0",Mt}var db;function ol(){return db||(db=1,zh.exports=dE()),zh.exports}var $h={exports:{}},qe={};/** 26 + * @license React 27 + * react-dom.production.js 28 + * 29 + * Copyright (c) Meta Platforms, Inc. and affiliates. 30 + * 31 + * This source code is licensed under the MIT license found in the 32 + * LICENSE file in the root directory of this source tree. 33 + */var hb;function hE(){if(hb)return qe;hb=1;var t=ol();function e(p){var d="https://react.dev/errors/"+p;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 #"+p+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var a={d:{f:r,r:function(){throw Error(e(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function l(p,d,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:y==null?null:""+y,children:p,containerInfo:d,implementation:m}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(p,d){if(p==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return qe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,qe.createPortal=function(p,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(e(299));return l(p,d,null,m)},qe.flushSync=function(p){var d=c.T,m=a.p;try{if(c.T=null,a.p=2,p)return p()}finally{c.T=d,a.p=m,a.d.f()}},qe.preconnect=function(p,d){typeof p=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,a.d.C(p,d))},qe.prefetchDNS=function(p){typeof p=="string"&&a.d.D(p)},qe.preinit=function(p,d){if(typeof p=="string"&&d&&typeof d.as=="string"){var m=d.as,y=f(m,d.crossOrigin),v=typeof d.integrity=="string"?d.integrity:void 0,b=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?a.d.S(p,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:y,integrity:v,fetchPriority:b}):m==="script"&&a.d.X(p,{crossOrigin:y,integrity:v,fetchPriority:b,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},qe.preinitModule=function(p,d){if(typeof p=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=f(d.as,d.crossOrigin);a.d.M(p,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&a.d.M(p)},qe.preload=function(p,d){if(typeof p=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,y=f(m,d.crossOrigin);a.d.L(p,m,{crossOrigin:y,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})}},qe.preloadModule=function(p,d){if(typeof p=="string")if(d){var m=f(d.as,d.crossOrigin);a.d.m(p,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else a.d.m(p)},qe.requestFormReset=function(p){a.d.r(p)},qe.unstable_batchedUpdates=function(p,d){return p(d)},qe.useFormState=function(p,d,m){return c.H.useFormState(p,d,m)},qe.useFormStatus=function(){return c.H.useHostTransitionStatus()},qe.version="19.1.0",qe}var pb;function Hx(){if(pb)return $h.exports;pb=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),$h.exports=hE(),$h.exports}/** 34 + * @license React 35 + * react-dom-client.production.js 36 + * 37 + * Copyright (c) Meta Platforms, Inc. and affiliates. 38 + * 39 + * This source code is licensed under the MIT license found in the 40 + * LICENSE file in the root directory of this source tree. 41 + */var mb;function pE(){if(mb)return Rs;mb=1;var t=fE(),e=ol(),r=Hx();function a(n){var i="https://react.dev/errors/"+n;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)i+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function l(n){var i=n,o=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(o=i.return),n=i.return;while(n)}return i.tag===3?o:null}function c(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function f(n){if(l(n)!==n)throw Error(a(188))}function p(n){var i=n.alternate;if(!i){if(i=l(n),i===null)throw Error(a(188));return i!==n?null:n}for(var o=n,u=i;;){var h=o.return;if(h===null)break;var g=h.alternate;if(g===null){if(u=h.return,u!==null){o=u;continue}break}if(h.child===g.child){for(g=h.child;g;){if(g===o)return f(h),n;if(g===u)return f(h),i;g=g.sibling}throw Error(a(188))}if(o.return!==u.return)o=h,u=g;else{for(var T=!1,M=h.child;M;){if(M===o){T=!0,o=h,u=g;break}if(M===u){T=!0,u=h,o=g;break}M=M.sibling}if(!T){for(M=g.child;M;){if(M===o){T=!0,o=g,u=h;break}if(M===u){T=!0,u=g,o=h;break}M=M.sibling}if(!T)throw Error(a(189))}}if(o.alternate!==u)throw Error(a(190))}if(o.tag!==3)throw Error(a(188));return o.stateNode.current===o?n:i}function d(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=d(n),i!==null)return i;n=n.sibling}return null}var m=Object.assign,y=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),D=Symbol.for("react.consumer"),O=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),C=Symbol.for("react.memo_cache_sentinel"),_=Symbol.iterator;function I(n){return n===null||typeof n!="object"?null:(n=_&&n[_]||n["@@iterator"],typeof n=="function"?n:null)}var q=Symbol.for("react.client.reference");function it(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===q?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case x:return"Fragment";case A:return"Profiler";case S:return"StrictMode";case E:return"Suspense";case k:return"SuspenseList";case L:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case b:return"Portal";case O:return(n.displayName||"Context")+".Provider";case D:return(n._context.displayName||"Context")+".Consumer";case R:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case z:return i=n.displayName||null,i!==null?i:it(n.type)||"Memo";case H:i=n._payload,n=n._init;try{return it(n(i))}catch{}}return null}var lt=Array.isArray,j=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},J=[],$=-1;function Z(n){return{current:n}}function at(n){0>$||(n.current=J[$],J[$]=null,$--)}function ot(n,i){$++,J[$]=n.current,n.current=i}var ct=Z(null),dt=Z(null),ft=Z(null),At=Z(null);function bt(n,i){switch(ot(ft,i),ot(dt,n),ot(ct,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?Nv(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=Nv(i),n=Lv(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}at(ct),ot(ct,n)}function nt(){at(ct),at(dt),at(ft)}function ht(n){n.memoizedState!==null&&ot(At,n);var i=ct.current,o=Lv(i,n.type);i!==o&&(ot(dt,n),ot(ct,o))}function vt(n){dt.current===n&&(at(ct),at(dt)),At.current===n&&(at(At),Cs._currentValue=W)}var ut=Object.prototype.hasOwnProperty,$t=t.unstable_scheduleCallback,gt=t.unstable_cancelCallback,Yt=t.unstable_shouldYield,re=t.unstable_requestPaint,jt=t.unstable_now,Be=t.unstable_getCurrentPriorityLevel,Ae=t.unstable_ImmediatePriority,Ee=t.unstable_UserBlockingPriority,De=t.unstable_NormalPriority,St=t.unstable_LowPriority,Ci=t.unstable_IdlePriority,Vr=t.log,Ai=t.unstable_setDisableYieldValue,In=null,ve=null;function Fe(n){if(typeof Vr=="function"&&Ai(n),ve&&typeof ve.setStrictMode=="function")try{ve.setStrictMode(In,n)}catch{}}var He=Math.clz32?Math.clz32:cr,Ie=Math.log,oe=Math.LN2;function cr(n){return n>>>=0,n===0?32:31-(Ie(n)/oe|0)|0}var Ke=256,Pe=4194304;function fr(n){var i=n&42;if(i!==0)return i;switch(n&-n){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:case 262144:case 524288:case 1048576:case 2097152:return n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Rl(n,i,o){var u=n.pendingLanes;if(u===0)return 0;var h=0,g=n.suspendedLanes,T=n.pingedLanes;n=n.warmLanes;var M=u&134217727;return M!==0?(u=M&~g,u!==0?h=fr(u):(T&=M,T!==0?h=fr(T):o||(o=M&~n,o!==0&&(h=fr(o))))):(M=u&~g,M!==0?h=fr(M):T!==0?h=fr(T):o||(o=u&~n,o!==0&&(h=fr(o)))),h===0?0:i!==0&&i!==h&&(i&g)===0&&(g=h&-h,o=i&-i,g>=o||g===32&&(o&4194048)!==0)?i:h}function _o(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function VT(n,i){switch(n){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 vg(){var n=Ke;return Ke<<=1,(Ke&4194048)===0&&(Ke=256),n}function bg(){var n=Pe;return Pe<<=1,(Pe&62914560)===0&&(Pe=4194304),n}function vf(n){for(var i=[],o=0;31>o;o++)i.push(n);return i}function zo(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function XT(n,i,o,u,h,g){var T=n.pendingLanes;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=o,n.entangledLanes&=o,n.errorRecoveryDisabledLanes&=o,n.shellSuspendCounter=0;var M=n.entanglements,B=n.expirationTimes,K=n.hiddenUpdates;for(o=T&~o;0<o;){var et=31-He(o),st=1<<et;M[et]=0,B[et]=-1;var Q=K[et];if(Q!==null)for(K[et]=null,et=0;et<Q.length;et++){var F=Q[et];F!==null&&(F.lane&=-536870913)}o&=~st}u!==0&&xg(n,u,0),g!==0&&h===0&&n.tag!==0&&(n.suspendedLanes|=g&~(T&~i))}function xg(n,i,o){n.pendingLanes|=i,n.suspendedLanes&=~i;var u=31-He(i);n.entangledLanes|=i,n.entanglements[u]=n.entanglements[u]|1073741824|o&4194090}function Sg(n,i){var o=n.entangledLanes|=i;for(n=n.entanglements;o;){var u=31-He(o),h=1<<u;h&i|n[u]&i&&(n[u]|=i),o&=~h}}function bf(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function xf(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Tg(){var n=Y.p;return n!==0?n:(n=window.event,n===void 0?32:eb(n.type))}function KT(n,i){var o=Y.p;try{return Y.p=n,i()}finally{Y.p=o}}var Xr=Math.random().toString(36).slice(2),Ge="__reactFiber$"+Xr,We="__reactProps$"+Xr,sa="__reactContainer$"+Xr,Sf="__reactEvents$"+Xr,ZT="__reactListeners$"+Xr,QT="__reactHandles$"+Xr,Cg="__reactResources$"+Xr,$o="__reactMarker$"+Xr;function Tf(n){delete n[Ge],delete n[We],delete n[Sf],delete n[ZT],delete n[QT]}function la(n){var i=n[Ge];if(i)return i;for(var o=n.parentNode;o;){if(i=o[sa]||o[Ge]){if(o=i.alternate,i.child!==null||o!==null&&o.child!==null)for(n=Hv(n);n!==null;){if(o=n[Ge])return o;n=Hv(n)}return i}n=o,o=n.parentNode}return null}function ua(n){if(n=n[Ge]||n[sa]){var i=n.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return n}return null}function No(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(a(33))}function ca(n){var i=n[Cg];return i||(i=n[Cg]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function we(n){n[$o]=!0}var Ag=new Set,Eg={};function Ei(n,i){fa(n,i),fa(n+"Capture",i)}function fa(n,i){for(Eg[n]=i,n=0;n<i.length;n++)Ag.add(i[n])}var FT=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]*$"),wg={},Mg={};function WT(n){return ut.call(Mg,n)?!0:ut.call(wg,n)?!1:FT.test(n)?Mg[n]=!0:(wg[n]=!0,!1)}function kl(n,i,o){if(WT(i))if(o===null)n.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var u=i.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){n.removeAttribute(i);return}}n.setAttribute(i,""+o)}}function Dl(n,i,o){if(o===null)n.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttribute(i,""+o)}}function dr(n,i,o,u){if(u===null)n.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(o);return}n.setAttributeNS(i,o,""+u)}}var Cf,Og;function da(n){if(Cf===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);Cf=i&&i[1]||"",Og=-1<o.stack.indexOf(` 42 + at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return` 43 + `+Cf+n+Og}var Af=!1;function Ef(n,i){if(!n||Af)return"";Af=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(i){var st=function(){throw Error()};if(Object.defineProperty(st.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(st,[])}catch(F){var Q=F}Reflect.construct(n,[],st)}else{try{st.call()}catch(F){Q=F}n.call(st.prototype)}}else{try{throw Error()}catch(F){Q=F}(st=n())&&typeof st.catch=="function"&&st.catch(function(){})}}catch(F){if(F&&Q&&typeof F.stack=="string")return[F.stack,Q.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=u.DetermineComponentFrameRoot(),T=g[0],M=g[1];if(T&&M){var B=T.split(` 44 + `),K=M.split(` 45 + `);for(h=u=0;u<B.length&&!B[u].includes("DetermineComponentFrameRoot");)u++;for(;h<K.length&&!K[h].includes("DetermineComponentFrameRoot");)h++;if(u===B.length||h===K.length)for(u=B.length-1,h=K.length-1;1<=u&&0<=h&&B[u]!==K[h];)h--;for(;1<=u&&0<=h;u--,h--)if(B[u]!==K[h]){if(u!==1||h!==1)do if(u--,h--,0>h||B[u]!==K[h]){var et=` 46 + `+B[u].replace(" at new "," at ");return n.displayName&&et.includes("<anonymous>")&&(et=et.replace("<anonymous>",n.displayName)),et}while(1<=u&&0<=h);break}}}finally{Af=!1,Error.prepareStackTrace=o}return(o=n?n.displayName||n.name:"")?da(o):""}function JT(n){switch(n.tag){case 26:case 27:case 5:return da(n.type);case 16:return da("Lazy");case 13:return da("Suspense");case 19:return da("SuspenseList");case 0:case 15:return Ef(n.type,!1);case 11:return Ef(n.type.render,!1);case 1:return Ef(n.type,!0);case 31:return da("Activity");default:return""}}function Rg(n){try{var i="";do i+=JT(n),n=n.return;while(n);return i}catch(o){return` 47 + Error generating stack: `+o.message+` 48 + `+o.stack}}function Sn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function kg(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function tC(n){var i=kg(n)?"checked":"value",o=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),u=""+n[i];if(!n.hasOwnProperty(i)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var h=o.get,g=o.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return h.call(this)},set:function(T){u=""+T,g.call(this,T)}}),Object.defineProperty(n,i,{enumerable:o.enumerable}),{getValue:function(){return u},setValue:function(T){u=""+T},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function _l(n){n._valueTracker||(n._valueTracker=tC(n))}function Dg(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var o=i.getValue(),u="";return n&&(u=kg(n)?n.checked?"true":"false":n.value),n=u,n!==o?(i.setValue(n),!0):!1}function zl(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var eC=/[\n"\\]/g;function Tn(n){return n.replace(eC,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function wf(n,i,o,u,h,g,T,M){n.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?n.type=T:n.removeAttribute("type"),i!=null?T==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+Sn(i)):n.value!==""+Sn(i)&&(n.value=""+Sn(i)):T!=="submit"&&T!=="reset"||n.removeAttribute("value"),i!=null?Mf(n,T,Sn(i)):o!=null?Mf(n,T,Sn(o)):u!=null&&n.removeAttribute("value"),h==null&&g!=null&&(n.defaultChecked=!!g),h!=null&&(n.checked=h&&typeof h!="function"&&typeof h!="symbol"),M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?n.name=""+Sn(M):n.removeAttribute("name")}function _g(n,i,o,u,h,g,T,M){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(n.type=g),i!=null||o!=null){if(!(g!=="submit"&&g!=="reset"||i!=null))return;o=o!=null?""+Sn(o):"",i=i!=null?""+Sn(i):o,M||i===n.value||(n.value=i),n.defaultValue=i}u=u??h,u=typeof u!="function"&&typeof u!="symbol"&&!!u,n.checked=M?n.checked:!!u,n.defaultChecked=!!u,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(n.name=T)}function Mf(n,i,o){i==="number"&&zl(n.ownerDocument)===n||n.defaultValue===""+o||(n.defaultValue=""+o)}function ha(n,i,o,u){if(n=n.options,i){i={};for(var h=0;h<o.length;h++)i["$"+o[h]]=!0;for(o=0;o<n.length;o++)h=i.hasOwnProperty("$"+n[o].value),n[o].selected!==h&&(n[o].selected=h),h&&u&&(n[o].defaultSelected=!0)}else{for(o=""+Sn(o),i=null,h=0;h<n.length;h++){if(n[h].value===o){n[h].selected=!0,u&&(n[h].defaultSelected=!0);return}i!==null||n[h].disabled||(i=n[h])}i!==null&&(i.selected=!0)}}function zg(n,i,o){if(i!=null&&(i=""+Sn(i),i!==n.value&&(n.value=i),o==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=o!=null?""+Sn(o):""}function $g(n,i,o,u){if(i==null){if(u!=null){if(o!=null)throw Error(a(92));if(lt(u)){if(1<u.length)throw Error(a(93));u=u[0]}o=u}o==null&&(o=""),i=o}o=Sn(i),n.defaultValue=o,u=n.textContent,u===o&&u!==""&&u!==null&&(n.value=u)}function pa(n,i){if(i){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===3){o.nodeValue=i;return}}n.textContent=i}var nC=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 Ng(n,i,o){var u=i.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?u?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":u?n.setProperty(i,o):typeof o!="number"||o===0||nC.has(i)?i==="float"?n.cssFloat=o:n[i]=(""+o).trim():n[i]=o+"px"}function Lg(n,i,o){if(i!=null&&typeof i!="object")throw Error(a(62));if(n=n.style,o!=null){for(var u in o)!o.hasOwnProperty(u)||i!=null&&i.hasOwnProperty(u)||(u.indexOf("--")===0?n.setProperty(u,""):u==="float"?n.cssFloat="":n[u]="");for(var h in i)u=i[h],i.hasOwnProperty(h)&&o[h]!==u&&Ng(n,h,u)}else for(var g in i)i.hasOwnProperty(g)&&Ng(n,g,i[g])}function Of(n){if(n.indexOf("-")===-1)return!1;switch(n){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 rC=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"]]),iC=/^[\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 $l(n){return iC.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var Rf=null;function kf(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var ma=null,ga=null;function jg(n){var i=ua(n);if(i&&(n=i.stateNode)){var o=n[We]||null;t:switch(n=i.stateNode,i.type){case"input":if(wf(n,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),i=o.name,o.type==="radio"&&i!=null){for(o=n;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Tn(""+i)+'"][type="radio"]'),i=0;i<o.length;i++){var u=o[i];if(u!==n&&u.form===n.form){var h=u[We]||null;if(!h)throw Error(a(90));wf(u,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(i=0;i<o.length;i++)u=o[i],u.form===n.form&&Dg(u)}break t;case"textarea":zg(n,o.value,o.defaultValue);break t;case"select":i=o.value,i!=null&&ha(n,!!o.multiple,i,!1)}}}var Df=!1;function Ug(n,i,o){if(Df)return n(i,o);Df=!0;try{var u=n(i);return u}finally{if(Df=!1,(ma!==null||ga!==null)&&(bu(),ma&&(i=ma,n=ga,ga=ma=null,jg(i),n)))for(i=0;i<n.length;i++)jg(n[i])}}function Lo(n,i){var o=n.stateNode;if(o===null)return null;var u=o[We]||null;if(u===null)return null;o=u[i];t:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(n=n.type,u=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!u;break t;default:n=!1}if(n)return null;if(o&&typeof o!="function")throw Error(a(231,i,typeof o));return o}var hr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_f=!1;if(hr)try{var jo={};Object.defineProperty(jo,"passive",{get:function(){_f=!0}}),window.addEventListener("test",jo,jo),window.removeEventListener("test",jo,jo)}catch{_f=!1}var Kr=null,zf=null,Nl=null;function Bg(){if(Nl)return Nl;var n,i=zf,o=i.length,u,h="value"in Kr?Kr.value:Kr.textContent,g=h.length;for(n=0;n<o&&i[n]===h[n];n++);var T=o-n;for(u=1;u<=T&&i[o-u]===h[g-u];u++);return Nl=h.slice(n,1<u?1-u:void 0)}function Ll(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function jl(){return!0}function Hg(){return!1}function Je(n){function i(o,u,h,g,T){this._reactName=o,this._targetInst=h,this.type=u,this.nativeEvent=g,this.target=T,this.currentTarget=null;for(var M in n)n.hasOwnProperty(M)&&(o=n[M],this[M]=o?o(g):g[M]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?jl:Hg,this.isPropagationStopped=Hg,this}return m(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=jl)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=jl)},persist:function(){},isPersistent:jl}),i}var wi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ul=Je(wi),Uo=m({},wi,{view:0,detail:0}),aC=Je(Uo),$f,Nf,Bo,Bl=m({},Uo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jf,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Bo&&(Bo&&n.type==="mousemove"?($f=n.screenX-Bo.screenX,Nf=n.screenY-Bo.screenY):Nf=$f=0,Bo=n),$f)},movementY:function(n){return"movementY"in n?n.movementY:Nf}}),Ig=Je(Bl),oC=m({},Bl,{dataTransfer:0}),sC=Je(oC),lC=m({},Uo,{relatedTarget:0}),Lf=Je(lC),uC=m({},wi,{animationName:0,elapsedTime:0,pseudoElement:0}),cC=Je(uC),fC=m({},wi,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),dC=Je(fC),hC=m({},wi,{data:0}),Pg=Je(hC),pC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mC={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"},gC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yC(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=gC[n])?!!i[n]:!1}function jf(){return yC}var vC=m({},Uo,{key:function(n){if(n.key){var i=pC[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Ll(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?mC[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jf,charCode:function(n){return n.type==="keypress"?Ll(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Ll(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),bC=Je(vC),xC=m({},Bl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gg=Je(xC),SC=m({},Uo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jf}),TC=Je(SC),CC=m({},wi,{propertyName:0,elapsedTime:0,pseudoElement:0}),AC=Je(CC),EC=m({},Bl,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),wC=Je(EC),MC=m({},wi,{newState:0,oldState:0}),OC=Je(MC),RC=[9,13,27,32],Uf=hr&&"CompositionEvent"in window,Ho=null;hr&&"documentMode"in document&&(Ho=document.documentMode);var kC=hr&&"TextEvent"in window&&!Ho,Yg=hr&&(!Uf||Ho&&8<Ho&&11>=Ho),qg=" ",Vg=!1;function Xg(n,i){switch(n){case"keyup":return RC.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kg(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var ya=!1;function DC(n,i){switch(n){case"compositionend":return Kg(i);case"keypress":return i.which!==32?null:(Vg=!0,qg);case"textInput":return n=i.data,n===qg&&Vg?null:n;default:return null}}function _C(n,i){if(ya)return n==="compositionend"||!Uf&&Xg(n,i)?(n=Bg(),Nl=zf=Kr=null,ya=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Yg&&i.locale!=="ko"?null:i.data;default:return null}}var zC={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 Zg(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!zC[n.type]:i==="textarea"}function Qg(n,i,o,u){ma?ga?ga.push(u):ga=[u]:ma=u,i=Eu(i,"onChange"),0<i.length&&(o=new Ul("onChange","change",null,o,u),n.push({event:o,listeners:i}))}var Io=null,Po=null;function $C(n){kv(n,0)}function Hl(n){var i=No(n);if(Dg(i))return n}function Fg(n,i){if(n==="change")return i}var Wg=!1;if(hr){var Bf;if(hr){var Hf="oninput"in document;if(!Hf){var Jg=document.createElement("div");Jg.setAttribute("oninput","return;"),Hf=typeof Jg.oninput=="function"}Bf=Hf}else Bf=!1;Wg=Bf&&(!document.documentMode||9<document.documentMode)}function t0(){Io&&(Io.detachEvent("onpropertychange",e0),Po=Io=null)}function e0(n){if(n.propertyName==="value"&&Hl(Po)){var i=[];Qg(i,Po,n,kf(n)),Ug($C,i)}}function NC(n,i,o){n==="focusin"?(t0(),Io=i,Po=o,Io.attachEvent("onpropertychange",e0)):n==="focusout"&&t0()}function LC(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Hl(Po)}function jC(n,i){if(n==="click")return Hl(i)}function UC(n,i){if(n==="input"||n==="change")return Hl(i)}function BC(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var ln=typeof Object.is=="function"?Object.is:BC;function Go(n,i){if(ln(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var o=Object.keys(n),u=Object.keys(i);if(o.length!==u.length)return!1;for(u=0;u<o.length;u++){var h=o[u];if(!ut.call(i,h)||!ln(n[h],i[h]))return!1}return!0}function n0(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function r0(n,i){var o=n0(n);n=0;for(var u;o;){if(o.nodeType===3){if(u=n+o.textContent.length,n<=i&&u>=i)return{node:o,offset:i-n};n=u}t:{for(;o;){if(o.nextSibling){o=o.nextSibling;break t}o=o.parentNode}o=void 0}o=n0(o)}}function i0(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?i0(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function a0(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=zl(n.document);i instanceof n.HTMLIFrameElement;){try{var o=typeof i.contentWindow.location.href=="string"}catch{o=!1}if(o)n=i.contentWindow;else break;i=zl(n.document)}return i}function If(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}var HC=hr&&"documentMode"in document&&11>=document.documentMode,va=null,Pf=null,Yo=null,Gf=!1;function o0(n,i,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Gf||va==null||va!==zl(u)||(u=va,"selectionStart"in u&&If(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Yo&&Go(Yo,u)||(Yo=u,u=Eu(Pf,"onSelect"),0<u.length&&(i=new Ul("onSelect","select",null,i,o),n.push({event:i,listeners:u}),i.target=va)))}function Mi(n,i){var o={};return o[n.toLowerCase()]=i.toLowerCase(),o["Webkit"+n]="webkit"+i,o["Moz"+n]="moz"+i,o}var ba={animationend:Mi("Animation","AnimationEnd"),animationiteration:Mi("Animation","AnimationIteration"),animationstart:Mi("Animation","AnimationStart"),transitionrun:Mi("Transition","TransitionRun"),transitionstart:Mi("Transition","TransitionStart"),transitioncancel:Mi("Transition","TransitionCancel"),transitionend:Mi("Transition","TransitionEnd")},Yf={},s0={};hr&&(s0=document.createElement("div").style,"AnimationEvent"in window||(delete ba.animationend.animation,delete ba.animationiteration.animation,delete ba.animationstart.animation),"TransitionEvent"in window||delete ba.transitionend.transition);function Oi(n){if(Yf[n])return Yf[n];if(!ba[n])return n;var i=ba[n],o;for(o in i)if(i.hasOwnProperty(o)&&o in s0)return Yf[n]=i[o];return n}var l0=Oi("animationend"),u0=Oi("animationiteration"),c0=Oi("animationstart"),IC=Oi("transitionrun"),PC=Oi("transitionstart"),GC=Oi("transitioncancel"),f0=Oi("transitionend"),d0=new Map,qf="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(" ");qf.push("scrollEnd");function Pn(n,i){d0.set(n,i),Ei(i,[n])}var h0=new WeakMap;function Cn(n,i){if(typeof n=="object"&&n!==null){var o=h0.get(n);return o!==void 0?o:(i={value:n,source:i,stack:Rg(i)},h0.set(n,i),i)}return{value:n,source:i,stack:Rg(i)}}var An=[],xa=0,Vf=0;function Il(){for(var n=xa,i=Vf=xa=0;i<n;){var o=An[i];An[i++]=null;var u=An[i];An[i++]=null;var h=An[i];An[i++]=null;var g=An[i];if(An[i++]=null,u!==null&&h!==null){var T=u.pending;T===null?h.next=h:(h.next=T.next,T.next=h),u.pending=h}g!==0&&p0(o,h,g)}}function Pl(n,i,o,u){An[xa++]=n,An[xa++]=i,An[xa++]=o,An[xa++]=u,Vf|=u,n.lanes|=u,n=n.alternate,n!==null&&(n.lanes|=u)}function Xf(n,i,o,u){return Pl(n,i,o,u),Gl(n)}function Sa(n,i){return Pl(n,null,null,i),Gl(n)}function p0(n,i,o){n.lanes|=o;var u=n.alternate;u!==null&&(u.lanes|=o);for(var h=!1,g=n.return;g!==null;)g.childLanes|=o,u=g.alternate,u!==null&&(u.childLanes|=o),g.tag===22&&(n=g.stateNode,n===null||n._visibility&1||(h=!0)),n=g,g=g.return;return n.tag===3?(g=n.stateNode,h&&i!==null&&(h=31-He(o),n=g.hiddenUpdates,u=n[h],u===null?n[h]=[i]:u.push(i),i.lane=o|536870912),g):null}function Gl(n){if(50<ms)throw ms=0,Jd=null,Error(a(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}var Ta={};function YC(n,i,o,u){this.tag=n,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function un(n,i,o,u){return new YC(n,i,o,u)}function Kf(n){return n=n.prototype,!(!n||!n.isReactComponent)}function pr(n,i){var o=n.alternate;return o===null?(o=un(n.tag,i,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o.alternate=n,n.alternate=o):(o.pendingProps=i,o.type=n.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=n.flags&65011712,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue,i=n.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o.refCleanup=n.refCleanup,o}function m0(n,i){n.flags&=65011714;var o=n.alternate;return o===null?(n.childLanes=0,n.lanes=i,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=o.childLanes,n.lanes=o.lanes,n.child=o.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=o.memoizedProps,n.memoizedState=o.memoizedState,n.updateQueue=o.updateQueue,n.type=o.type,i=o.dependencies,n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n}function Yl(n,i,o,u,h,g){var T=0;if(u=n,typeof n=="function")Kf(n)&&(T=1);else if(typeof n=="string")T=VA(n,o,ct.current)?26:n==="html"||n==="head"||n==="body"?27:5;else t:switch(n){case L:return n=un(31,o,i,h),n.elementType=L,n.lanes=g,n;case x:return Ri(o.children,h,g,i);case S:T=8,h|=24;break;case A:return n=un(12,o,i,h|2),n.elementType=A,n.lanes=g,n;case E:return n=un(13,o,i,h),n.elementType=E,n.lanes=g,n;case k:return n=un(19,o,i,h),n.elementType=k,n.lanes=g,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case w:case O:T=10;break t;case D:T=9;break t;case R:T=11;break t;case z:T=14;break t;case H:T=16,u=null;break t}T=29,o=Error(a(130,n===null?"null":typeof n,"")),u=null}return i=un(T,o,i,h),i.elementType=n,i.type=u,i.lanes=g,i}function Ri(n,i,o,u){return n=un(7,n,u,i),n.lanes=o,n}function Zf(n,i,o){return n=un(6,n,null,i),n.lanes=o,n}function Qf(n,i,o){return i=un(4,n.children!==null?n.children:[],n.key,i),i.lanes=o,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}var Ca=[],Aa=0,ql=null,Vl=0,En=[],wn=0,ki=null,mr=1,gr="";function Di(n,i){Ca[Aa++]=Vl,Ca[Aa++]=ql,ql=n,Vl=i}function g0(n,i,o){En[wn++]=mr,En[wn++]=gr,En[wn++]=ki,ki=n;var u=mr;n=gr;var h=32-He(u)-1;u&=~(1<<h),o+=1;var g=32-He(i)+h;if(30<g){var T=h-h%5;g=(u&(1<<T)-1).toString(32),u>>=T,h-=T,mr=1<<32-He(i)+h|o<<h|u,gr=g+n}else mr=1<<g|o<<h|u,gr=n}function Ff(n){n.return!==null&&(Di(n,1),g0(n,1,0))}function Wf(n){for(;n===ql;)ql=Ca[--Aa],Ca[Aa]=null,Vl=Ca[--Aa],Ca[Aa]=null;for(;n===ki;)ki=En[--wn],En[wn]=null,gr=En[--wn],En[wn]=null,mr=En[--wn],En[wn]=null}var Ze=null,le=null,Ut=!1,_i=null,Qn=!1,Jf=Error(a(519));function zi(n){var i=Error(a(418,""));throw Xo(Cn(i,n)),Jf}function y0(n){var i=n.stateNode,o=n.type,u=n.memoizedProps;switch(i[Ge]=n,i[We]=u,o){case"dialog":Dt("cancel",i),Dt("close",i);break;case"iframe":case"object":case"embed":Dt("load",i);break;case"video":case"audio":for(o=0;o<ys.length;o++)Dt(ys[o],i);break;case"source":Dt("error",i);break;case"img":case"image":case"link":Dt("error",i),Dt("load",i);break;case"details":Dt("toggle",i);break;case"input":Dt("invalid",i),_g(i,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),_l(i);break;case"select":Dt("invalid",i);break;case"textarea":Dt("invalid",i),$g(i,u.value,u.defaultValue,u.children),_l(i)}o=u.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||i.textContent===""+o||u.suppressHydrationWarning===!0||$v(i.textContent,o)?(u.popover!=null&&(Dt("beforetoggle",i),Dt("toggle",i)),u.onScroll!=null&&Dt("scroll",i),u.onScrollEnd!=null&&Dt("scrollend",i),u.onClick!=null&&(i.onclick=wu),i=!0):i=!1,i||zi(n)}function v0(n){for(Ze=n.return;Ze;)switch(Ze.tag){case 5:case 13:Qn=!1;return;case 27:case 3:Qn=!0;return;default:Ze=Ze.return}}function qo(n){if(n!==Ze)return!1;if(!Ut)return v0(n),Ut=!0,!1;var i=n.tag,o;if((o=i!==3&&i!==27)&&((o=i===5)&&(o=n.type,o=!(o!=="form"&&o!=="button")||mh(n.type,n.memoizedProps)),o=!o),o&&le&&zi(n),v0(n),i===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));t:{for(n=n.nextSibling,i=0;n;){if(n.nodeType===8)if(o=n.data,o==="/$"){if(i===0){le=Yn(n.nextSibling);break t}i--}else o!=="$"&&o!=="$!"&&o!=="$?"||i++;n=n.nextSibling}le=null}}else i===27?(i=le,ci(n.type)?(n=bh,bh=null,le=n):le=i):le=Ze?Yn(n.stateNode.nextSibling):null;return!0}function Vo(){le=Ze=null,Ut=!1}function b0(){var n=_i;return n!==null&&(nn===null?nn=n:nn.push.apply(nn,n),_i=null),n}function Xo(n){_i===null?_i=[n]:_i.push(n)}var td=Z(null),$i=null,yr=null;function Zr(n,i,o){ot(td,i._currentValue),i._currentValue=o}function vr(n){n._currentValue=td.current,at(td)}function ed(n,i,o){for(;n!==null;){var u=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,u!==null&&(u.childLanes|=i)):u!==null&&(u.childLanes&i)!==i&&(u.childLanes|=i),n===o)break;n=n.return}}function nd(n,i,o,u){var h=n.child;for(h!==null&&(h.return=n);h!==null;){var g=h.dependencies;if(g!==null){var T=h.child;g=g.firstContext;t:for(;g!==null;){var M=g;g=h;for(var B=0;B<i.length;B++)if(M.context===i[B]){g.lanes|=o,M=g.alternate,M!==null&&(M.lanes|=o),ed(g.return,o,n),u||(T=null);break t}g=M.next}}else if(h.tag===18){if(T=h.return,T===null)throw Error(a(341));T.lanes|=o,g=T.alternate,g!==null&&(g.lanes|=o),ed(T,o,n),T=null}else T=h.child;if(T!==null)T.return=h;else for(T=h;T!==null;){if(T===n){T=null;break}if(h=T.sibling,h!==null){h.return=T.return,T=h;break}T=T.return}h=T}}function Ko(n,i,o,u){n=null;for(var h=i,g=!1;h!==null;){if(!g){if((h.flags&524288)!==0)g=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var T=h.alternate;if(T===null)throw Error(a(387));if(T=T.memoizedProps,T!==null){var M=h.type;ln(h.pendingProps.value,T.value)||(n!==null?n.push(M):n=[M])}}else if(h===At.current){if(T=h.alternate,T===null)throw Error(a(387));T.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(n!==null?n.push(Cs):n=[Cs])}h=h.return}n!==null&&nd(i,n,o,u),i.flags|=262144}function Xl(n){for(n=n.firstContext;n!==null;){if(!ln(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Ni(n){$i=n,yr=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Ye(n){return x0($i,n)}function Kl(n,i){return $i===null&&Ni(n),x0(n,i)}function x0(n,i){var o=i._currentValue;if(i={context:i,memoizedValue:o,next:null},yr===null){if(n===null)throw Error(a(308));yr=i,n.dependencies={lanes:0,firstContext:i},n.flags|=524288}else yr=yr.next=i;return o}var qC=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:function(o,u){n.push(u)}};this.abort=function(){i.aborted=!0,n.forEach(function(o){return o()})}},VC=t.unstable_scheduleCallback,XC=t.unstable_NormalPriority,be={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function rd(){return{controller:new qC,data:new Map,refCount:0}}function Zo(n){n.refCount--,n.refCount===0&&VC(XC,function(){n.controller.abort()})}var Qo=null,id=0,Ea=0,wa=null;function KC(n,i){if(Qo===null){var o=Qo=[];id=0,Ea=oh(),wa={status:"pending",value:void 0,then:function(u){o.push(u)}}}return id++,i.then(S0,S0),i}function S0(){if(--id===0&&Qo!==null){wa!==null&&(wa.status="fulfilled");var n=Qo;Qo=null,Ea=0,wa=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function ZC(n,i){var o=[],u={status:"pending",value:null,reason:null,then:function(h){o.push(h)}};return n.then(function(){u.status="fulfilled",u.value=i;for(var h=0;h<o.length;h++)(0,o[h])(i)},function(h){for(u.status="rejected",u.reason=h,h=0;h<o.length;h++)(0,o[h])(void 0)}),u}var T0=j.S;j.S=function(n,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&KC(n,i),T0!==null&&T0(n,i)};var Li=Z(null);function ad(){var n=Li.current;return n!==null?n:ee.pooledCache}function Zl(n,i){i===null?ot(Li,Li.current):ot(Li,i.pool)}function C0(){var n=ad();return n===null?null:{parent:be._currentValue,pool:n}}var Fo=Error(a(460)),A0=Error(a(474)),Ql=Error(a(542)),od={then:function(){}};function E0(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Fl(){}function w0(n,i,o){switch(o=n[o],o===void 0?n.push(i):o!==i&&(i.then(Fl,Fl),i=o),i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,O0(n),n;default:if(typeof i.status=="string")i.then(Fl,Fl);else{if(n=ee,n!==null&&100<n.shellSuspendCounter)throw Error(a(482));n=i,n.status="pending",n.then(function(u){if(i.status==="pending"){var h=i;h.status="fulfilled",h.value=u}},function(u){if(i.status==="pending"){var h=i;h.status="rejected",h.reason=u}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,O0(n),n}throw Wo=i,Fo}}var Wo=null;function M0(){if(Wo===null)throw Error(a(459));var n=Wo;return Wo=null,n}function O0(n){if(n===Fo||n===Ql)throw Error(a(483))}var Qr=!1;function sd(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ld(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Fr(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Wr(n,i,o){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(Pt&2)!==0){var h=u.pending;return h===null?i.next=i:(i.next=h.next,h.next=i),u.pending=i,i=Gl(n),p0(n,null,o),i}return Pl(n,u,i,o),Gl(n)}function Jo(n,i,o){if(i=i.updateQueue,i!==null&&(i=i.shared,(o&4194048)!==0)){var u=i.lanes;u&=n.pendingLanes,o|=u,i.lanes=o,Sg(n,o)}}function ud(n,i){var o=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var h=null,g=null;if(o=o.firstBaseUpdate,o!==null){do{var T={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};g===null?h=g=T:g=g.next=T,o=o.next}while(o!==null);g===null?h=g=i:g=g.next=i}else h=g=i;o={baseState:u.baseState,firstBaseUpdate:h,lastBaseUpdate:g,shared:u.shared,callbacks:u.callbacks},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=i:n.next=i,o.lastBaseUpdate=i}var cd=!1;function ts(){if(cd){var n=wa;if(n!==null)throw n}}function es(n,i,o,u){cd=!1;var h=n.updateQueue;Qr=!1;var g=h.firstBaseUpdate,T=h.lastBaseUpdate,M=h.shared.pending;if(M!==null){h.shared.pending=null;var B=M,K=B.next;B.next=null,T===null?g=K:T.next=K,T=B;var et=n.alternate;et!==null&&(et=et.updateQueue,M=et.lastBaseUpdate,M!==T&&(M===null?et.firstBaseUpdate=K:M.next=K,et.lastBaseUpdate=B))}if(g!==null){var st=h.baseState;T=0,et=K=B=null,M=g;do{var Q=M.lane&-536870913,F=Q!==M.lane;if(F?(_t&Q)===Q:(u&Q)===Q){Q!==0&&Q===Ea&&(cd=!0),et!==null&&(et=et.next={lane:0,tag:M.tag,payload:M.payload,callback:null,next:null});t:{var Ct=n,xt=M;Q=i;var Xt=o;switch(xt.tag){case 1:if(Ct=xt.payload,typeof Ct=="function"){st=Ct.call(Xt,st,Q);break t}st=Ct;break t;case 3:Ct.flags=Ct.flags&-65537|128;case 0:if(Ct=xt.payload,Q=typeof Ct=="function"?Ct.call(Xt,st,Q):Ct,Q==null)break t;st=m({},st,Q);break t;case 2:Qr=!0}}Q=M.callback,Q!==null&&(n.flags|=64,F&&(n.flags|=8192),F=h.callbacks,F===null?h.callbacks=[Q]:F.push(Q))}else F={lane:Q,tag:M.tag,payload:M.payload,callback:M.callback,next:null},et===null?(K=et=F,B=st):et=et.next=F,T|=Q;if(M=M.next,M===null){if(M=h.shared.pending,M===null)break;F=M,M=F.next,F.next=null,h.lastBaseUpdate=F,h.shared.pending=null}}while(!0);et===null&&(B=st),h.baseState=B,h.firstBaseUpdate=K,h.lastBaseUpdate=et,g===null&&(h.shared.lanes=0),oi|=T,n.lanes=T,n.memoizedState=st}}function R0(n,i){if(typeof n!="function")throw Error(a(191,n));n.call(i)}function k0(n,i){var o=n.callbacks;if(o!==null)for(n.callbacks=null,n=0;n<o.length;n++)R0(o[n],i)}var Ma=Z(null),Wl=Z(0);function D0(n,i){n=Er,ot(Wl,n),ot(Ma,i),Er=n|i.baseLanes}function fd(){ot(Wl,Er),ot(Ma,Ma.current)}function dd(){Er=Wl.current,at(Ma),at(Wl)}var Jr=0,Ot=null,qt=null,me=null,Jl=!1,Oa=!1,ji=!1,tu=0,ns=0,Ra=null,QC=0;function de(){throw Error(a(321))}function hd(n,i){if(i===null)return!1;for(var o=0;o<i.length&&o<n.length;o++)if(!ln(n[o],i[o]))return!1;return!0}function pd(n,i,o,u,h,g){return Jr=g,Ot=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,j.H=n===null||n.memoizedState===null?py:my,ji=!1,g=o(u,h),ji=!1,Oa&&(g=z0(i,o,u,h)),_0(n),g}function _0(n){j.H=ou;var i=qt!==null&&qt.next!==null;if(Jr=0,me=qt=Ot=null,Jl=!1,ns=0,Ra=null,i)throw Error(a(300));n===null||Me||(n=n.dependencies,n!==null&&Xl(n)&&(Me=!0))}function z0(n,i,o,u){Ot=n;var h=0;do{if(Oa&&(Ra=null),ns=0,Oa=!1,25<=h)throw Error(a(301));if(h+=1,me=qt=null,n.updateQueue!=null){var g=n.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}j.H=rA,g=i(o,u)}while(Oa);return g}function FC(){var n=j.H,i=n.useState()[0];return i=typeof i.then=="function"?rs(i):i,n=n.useState()[0],(qt!==null?qt.memoizedState:null)!==n&&(Ot.flags|=1024),i}function md(){var n=tu!==0;return tu=0,n}function gd(n,i,o){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~o}function yd(n){if(Jl){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Jl=!1}Jr=0,me=qt=Ot=null,Oa=!1,ns=tu=0,Ra=null}function tn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return me===null?Ot.memoizedState=me=n:me=me.next=n,me}function ge(){if(qt===null){var n=Ot.alternate;n=n!==null?n.memoizedState:null}else n=qt.next;var i=me===null?Ot.memoizedState:me.next;if(i!==null)me=i,qt=n;else{if(n===null)throw Ot.alternate===null?Error(a(467)):Error(a(310));qt=n,n={memoizedState:qt.memoizedState,baseState:qt.baseState,baseQueue:qt.baseQueue,queue:qt.queue,next:null},me===null?Ot.memoizedState=me=n:me=me.next=n}return me}function vd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function rs(n){var i=ns;return ns+=1,Ra===null&&(Ra=[]),n=w0(Ra,n,i),i=Ot,(me===null?i.memoizedState:me.next)===null&&(i=i.alternate,j.H=i===null||i.memoizedState===null?py:my),n}function eu(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return rs(n);if(n.$$typeof===O)return Ye(n)}throw Error(a(438,String(n)))}function bd(n){var i=null,o=Ot.updateQueue;if(o!==null&&(i=o.memoCache),i==null){var u=Ot.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(i={data:u.data.map(function(h){return h.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),o===null&&(o=vd(),Ot.updateQueue=o),o.memoCache=i,o=i.data[i.index],o===void 0)for(o=i.data[i.index]=Array(n),u=0;u<n;u++)o[u]=C;return i.index++,o}function br(n,i){return typeof i=="function"?i(n):i}function nu(n){var i=ge();return xd(i,qt,n)}function xd(n,i,o){var u=n.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=o;var h=n.baseQueue,g=u.pending;if(g!==null){if(h!==null){var T=h.next;h.next=g.next,g.next=T}i.baseQueue=h=g,u.pending=null}if(g=n.baseState,h===null)n.memoizedState=g;else{i=h.next;var M=T=null,B=null,K=i,et=!1;do{var st=K.lane&-536870913;if(st!==K.lane?(_t&st)===st:(Jr&st)===st){var Q=K.revertLane;if(Q===0)B!==null&&(B=B.next={lane:0,revertLane:0,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),st===Ea&&(et=!0);else if((Jr&Q)===Q){K=K.next,Q===Ea&&(et=!0);continue}else st={lane:0,revertLane:K.revertLane,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},B===null?(M=B=st,T=g):B=B.next=st,Ot.lanes|=Q,oi|=Q;st=K.action,ji&&o(g,st),g=K.hasEagerState?K.eagerState:o(g,st)}else Q={lane:st,revertLane:K.revertLane,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},B===null?(M=B=Q,T=g):B=B.next=Q,Ot.lanes|=st,oi|=st;K=K.next}while(K!==null&&K!==i);if(B===null?T=g:B.next=M,!ln(g,n.memoizedState)&&(Me=!0,et&&(o=wa,o!==null)))throw o;n.memoizedState=g,n.baseState=T,n.baseQueue=B,u.lastRenderedState=g}return h===null&&(u.lanes=0),[n.memoizedState,u.dispatch]}function Sd(n){var i=ge(),o=i.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=n;var u=o.dispatch,h=o.pending,g=i.memoizedState;if(h!==null){o.pending=null;var T=h=h.next;do g=n(g,T.action),T=T.next;while(T!==h);ln(g,i.memoizedState)||(Me=!0),i.memoizedState=g,i.baseQueue===null&&(i.baseState=g),o.lastRenderedState=g}return[g,u]}function $0(n,i,o){var u=Ot,h=ge(),g=Ut;if(g){if(o===void 0)throw Error(a(407));o=o()}else o=i();var T=!ln((qt||h).memoizedState,o);T&&(h.memoizedState=o,Me=!0),h=h.queue;var M=j0.bind(null,u,h,n);if(is(2048,8,M,[n]),h.getSnapshot!==i||T||me!==null&&me.memoizedState.tag&1){if(u.flags|=2048,ka(9,ru(),L0.bind(null,u,h,o,i),null),ee===null)throw Error(a(349));g||(Jr&124)!==0||N0(u,i,o)}return o}function N0(n,i,o){n.flags|=16384,n={getSnapshot:i,value:o},i=Ot.updateQueue,i===null?(i=vd(),Ot.updateQueue=i,i.stores=[n]):(o=i.stores,o===null?i.stores=[n]:o.push(n))}function L0(n,i,o,u){i.value=o,i.getSnapshot=u,U0(i)&&B0(n)}function j0(n,i,o){return o(function(){U0(i)&&B0(n)})}function U0(n){var i=n.getSnapshot;n=n.value;try{var o=i();return!ln(n,o)}catch{return!0}}function B0(n){var i=Sa(n,2);i!==null&&pn(i,n,2)}function Td(n){var i=tn();if(typeof n=="function"){var o=n;if(n=o(),ji){Fe(!0);try{o()}finally{Fe(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:br,lastRenderedState:n},i}function H0(n,i,o,u){return n.baseState=o,xd(n,qt,typeof u=="function"?u:br)}function WC(n,i,o,u,h){if(au(n))throw Error(a(485));if(n=i.action,n!==null){var g={payload:h,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){g.listeners.push(T)}};j.T!==null?o(!0):g.isTransition=!1,u(g),o=i.pending,o===null?(g.next=i.pending=g,I0(i,g)):(g.next=o.next,i.pending=o.next=g)}}function I0(n,i){var o=i.action,u=i.payload,h=n.state;if(i.isTransition){var g=j.T,T={};j.T=T;try{var M=o(h,u),B=j.S;B!==null&&B(T,M),P0(n,i,M)}catch(K){Cd(n,i,K)}finally{j.T=g}}else try{g=o(h,u),P0(n,i,g)}catch(K){Cd(n,i,K)}}function P0(n,i,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(u){G0(n,i,u)},function(u){return Cd(n,i,u)}):G0(n,i,o)}function G0(n,i,o){i.status="fulfilled",i.value=o,Y0(i),n.state=o,i=n.pending,i!==null&&(o=i.next,o===i?n.pending=null:(o=o.next,i.next=o,I0(n,o)))}function Cd(n,i,o){var u=n.pending;if(n.pending=null,u!==null){u=u.next;do i.status="rejected",i.reason=o,Y0(i),i=i.next;while(i!==u)}n.action=null}function Y0(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function q0(n,i){return i}function V0(n,i){if(Ut){var o=ee.formState;if(o!==null){t:{var u=Ot;if(Ut){if(le){e:{for(var h=le,g=Qn;h.nodeType!==8;){if(!g){h=null;break e}if(h=Yn(h.nextSibling),h===null){h=null;break e}}g=h.data,h=g==="F!"||g==="F"?h:null}if(h){le=Yn(h.nextSibling),u=h.data==="F!";break t}}zi(u)}u=!1}u&&(i=o[0])}}return o=tn(),o.memoizedState=o.baseState=i,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:q0,lastRenderedState:i},o.queue=u,o=fy.bind(null,Ot,u),u.dispatch=o,u=Td(!1),g=Od.bind(null,Ot,!1,u.queue),u=tn(),h={state:i,dispatch:null,action:n,pending:null},u.queue=h,o=WC.bind(null,Ot,h,g,o),h.dispatch=o,u.memoizedState=n,[i,o,!1]}function X0(n){var i=ge();return K0(i,qt,n)}function K0(n,i,o){if(i=xd(n,i,q0)[0],n=nu(br)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var u=rs(i)}catch(T){throw T===Fo?Ql:T}else u=i;i=ge();var h=i.queue,g=h.dispatch;return o!==i.memoizedState&&(Ot.flags|=2048,ka(9,ru(),JC.bind(null,h,o),null)),[u,g,n]}function JC(n,i){n.action=i}function Z0(n){var i=ge(),o=qt;if(o!==null)return K0(i,o,n);ge(),i=i.memoizedState,o=ge();var u=o.queue.dispatch;return o.memoizedState=n,[i,u,!1]}function ka(n,i,o,u){return n={tag:n,create:o,deps:u,inst:i,next:null},i=Ot.updateQueue,i===null&&(i=vd(),Ot.updateQueue=i),o=i.lastEffect,o===null?i.lastEffect=n.next=n:(u=o.next,o.next=n,n.next=u,i.lastEffect=n),n}function ru(){return{destroy:void 0,resource:void 0}}function Q0(){return ge().memoizedState}function iu(n,i,o,u){var h=tn();u=u===void 0?null:u,Ot.flags|=n,h.memoizedState=ka(1|i,ru(),o,u)}function is(n,i,o,u){var h=ge();u=u===void 0?null:u;var g=h.memoizedState.inst;qt!==null&&u!==null&&hd(u,qt.memoizedState.deps)?h.memoizedState=ka(i,g,o,u):(Ot.flags|=n,h.memoizedState=ka(1|i,g,o,u))}function F0(n,i){iu(8390656,8,n,i)}function W0(n,i){is(2048,8,n,i)}function J0(n,i){return is(4,2,n,i)}function ty(n,i){return is(4,4,n,i)}function ey(n,i){if(typeof i=="function"){n=n();var o=i(n);return function(){typeof o=="function"?o():i(null)}}if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function ny(n,i,o){o=o!=null?o.concat([n]):null,is(4,4,ey.bind(null,i,n),o)}function Ad(){}function ry(n,i){var o=ge();i=i===void 0?null:i;var u=o.memoizedState;return i!==null&&hd(i,u[1])?u[0]:(o.memoizedState=[n,i],n)}function iy(n,i){var o=ge();i=i===void 0?null:i;var u=o.memoizedState;if(i!==null&&hd(i,u[1]))return u[0];if(u=n(),ji){Fe(!0);try{n()}finally{Fe(!1)}}return o.memoizedState=[u,i],u}function Ed(n,i,o){return o===void 0||(Jr&1073741824)!==0?n.memoizedState=i:(n.memoizedState=o,n=sv(),Ot.lanes|=n,oi|=n,o)}function ay(n,i,o,u){return ln(o,i)?o:Ma.current!==null?(n=Ed(n,o,u),ln(n,i)||(Me=!0),n):(Jr&42)===0?(Me=!0,n.memoizedState=o):(n=sv(),Ot.lanes|=n,oi|=n,i)}function oy(n,i,o,u,h){var g=Y.p;Y.p=g!==0&&8>g?g:8;var T=j.T,M={};j.T=M,Od(n,!1,i,o);try{var B=h(),K=j.S;if(K!==null&&K(M,B),B!==null&&typeof B=="object"&&typeof B.then=="function"){var et=ZC(B,u);as(n,i,et,hn(n))}else as(n,i,u,hn(n))}catch(st){as(n,i,{then:function(){},status:"rejected",reason:st},hn())}finally{Y.p=g,j.T=T}}function tA(){}function wd(n,i,o,u){if(n.tag!==5)throw Error(a(476));var h=sy(n).queue;oy(n,h,i,W,o===null?tA:function(){return ly(n),o(u)})}function sy(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:br,lastRenderedState:W},next:null};var o={};return i.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:br,lastRenderedState:o},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}function ly(n){var i=sy(n).next.queue;as(n,i,{},hn())}function Md(){return Ye(Cs)}function uy(){return ge().memoizedState}function cy(){return ge().memoizedState}function eA(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var o=hn();n=Fr(o);var u=Wr(i,n,o);u!==null&&(pn(u,i,o),Jo(u,i,o)),i={cache:rd()},n.payload=i;return}i=i.return}}function nA(n,i,o){var u=hn();o={lane:u,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null},au(n)?dy(i,o):(o=Xf(n,i,o,u),o!==null&&(pn(o,n,u),hy(o,i,u)))}function fy(n,i,o){var u=hn();as(n,i,o,u)}function as(n,i,o,u){var h={lane:u,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if(au(n))dy(i,h);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=i.lastRenderedReducer,g!==null))try{var T=i.lastRenderedState,M=g(T,o);if(h.hasEagerState=!0,h.eagerState=M,ln(M,T))return Pl(n,i,h,0),ee===null&&Il(),!1}catch{}finally{}if(o=Xf(n,i,h,u),o!==null)return pn(o,n,u),hy(o,i,u),!0}return!1}function Od(n,i,o,u){if(u={lane:2,revertLane:oh(),action:u,hasEagerState:!1,eagerState:null,next:null},au(n)){if(i)throw Error(a(479))}else i=Xf(n,o,u,2),i!==null&&pn(i,n,2)}function au(n){var i=n.alternate;return n===Ot||i!==null&&i===Ot}function dy(n,i){Oa=Jl=!0;var o=n.pending;o===null?i.next=i:(i.next=o.next,o.next=i),n.pending=i}function hy(n,i,o){if((o&4194048)!==0){var u=i.lanes;u&=n.pendingLanes,o|=u,i.lanes=o,Sg(n,o)}}var ou={readContext:Ye,use:eu,useCallback:de,useContext:de,useEffect:de,useImperativeHandle:de,useLayoutEffect:de,useInsertionEffect:de,useMemo:de,useReducer:de,useRef:de,useState:de,useDebugValue:de,useDeferredValue:de,useTransition:de,useSyncExternalStore:de,useId:de,useHostTransitionStatus:de,useFormState:de,useActionState:de,useOptimistic:de,useMemoCache:de,useCacheRefresh:de},py={readContext:Ye,use:eu,useCallback:function(n,i){return tn().memoizedState=[n,i===void 0?null:i],n},useContext:Ye,useEffect:F0,useImperativeHandle:function(n,i,o){o=o!=null?o.concat([n]):null,iu(4194308,4,ey.bind(null,i,n),o)},useLayoutEffect:function(n,i){return iu(4194308,4,n,i)},useInsertionEffect:function(n,i){iu(4,2,n,i)},useMemo:function(n,i){var o=tn();i=i===void 0?null:i;var u=n();if(ji){Fe(!0);try{n()}finally{Fe(!1)}}return o.memoizedState=[u,i],u},useReducer:function(n,i,o){var u=tn();if(o!==void 0){var h=o(i);if(ji){Fe(!0);try{o(i)}finally{Fe(!1)}}}else h=i;return u.memoizedState=u.baseState=h,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:h},u.queue=n,n=n.dispatch=nA.bind(null,Ot,n),[u.memoizedState,n]},useRef:function(n){var i=tn();return n={current:n},i.memoizedState=n},useState:function(n){n=Td(n);var i=n.queue,o=fy.bind(null,Ot,i);return i.dispatch=o,[n.memoizedState,o]},useDebugValue:Ad,useDeferredValue:function(n,i){var o=tn();return Ed(o,n,i)},useTransition:function(){var n=Td(!1);return n=oy.bind(null,Ot,n.queue,!0,!1),tn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,o){var u=Ot,h=tn();if(Ut){if(o===void 0)throw Error(a(407));o=o()}else{if(o=i(),ee===null)throw Error(a(349));(_t&124)!==0||N0(u,i,o)}h.memoizedState=o;var g={value:o,getSnapshot:i};return h.queue=g,F0(j0.bind(null,u,g,n),[n]),u.flags|=2048,ka(9,ru(),L0.bind(null,u,g,o,i),null),o},useId:function(){var n=tn(),i=ee.identifierPrefix;if(Ut){var o=gr,u=mr;o=(u&~(1<<32-He(u)-1)).toString(32)+o,i="«"+i+"R"+o,o=tu++,0<o&&(i+="H"+o.toString(32)),i+="»"}else o=QC++,i="«"+i+"r"+o.toString(32)+"»";return n.memoizedState=i},useHostTransitionStatus:Md,useFormState:V0,useActionState:V0,useOptimistic:function(n){var i=tn();i.memoizedState=i.baseState=n;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=o,i=Od.bind(null,Ot,!0,o),o.dispatch=i,[n,i]},useMemoCache:bd,useCacheRefresh:function(){return tn().memoizedState=eA.bind(null,Ot)}},my={readContext:Ye,use:eu,useCallback:ry,useContext:Ye,useEffect:W0,useImperativeHandle:ny,useInsertionEffect:J0,useLayoutEffect:ty,useMemo:iy,useReducer:nu,useRef:Q0,useState:function(){return nu(br)},useDebugValue:Ad,useDeferredValue:function(n,i){var o=ge();return ay(o,qt.memoizedState,n,i)},useTransition:function(){var n=nu(br)[0],i=ge().memoizedState;return[typeof n=="boolean"?n:rs(n),i]},useSyncExternalStore:$0,useId:uy,useHostTransitionStatus:Md,useFormState:X0,useActionState:X0,useOptimistic:function(n,i){var o=ge();return H0(o,qt,n,i)},useMemoCache:bd,useCacheRefresh:cy},rA={readContext:Ye,use:eu,useCallback:ry,useContext:Ye,useEffect:W0,useImperativeHandle:ny,useInsertionEffect:J0,useLayoutEffect:ty,useMemo:iy,useReducer:Sd,useRef:Q0,useState:function(){return Sd(br)},useDebugValue:Ad,useDeferredValue:function(n,i){var o=ge();return qt===null?Ed(o,n,i):ay(o,qt.memoizedState,n,i)},useTransition:function(){var n=Sd(br)[0],i=ge().memoizedState;return[typeof n=="boolean"?n:rs(n),i]},useSyncExternalStore:$0,useId:uy,useHostTransitionStatus:Md,useFormState:Z0,useActionState:Z0,useOptimistic:function(n,i){var o=ge();return qt!==null?H0(o,qt,n,i):(o.baseState=n,[n,o.queue.dispatch])},useMemoCache:bd,useCacheRefresh:cy},Da=null,os=0;function su(n){var i=os;return os+=1,Da===null&&(Da=[]),w0(Da,n,i)}function ss(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function lu(n,i){throw i.$$typeof===y?Error(a(525)):(n=Object.prototype.toString.call(i),Error(a(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)))}function gy(n){var i=n._init;return i(n._payload)}function yy(n){function i(V,P){if(n){var X=V.deletions;X===null?(V.deletions=[P],V.flags|=16):X.push(P)}}function o(V,P){if(!n)return null;for(;P!==null;)i(V,P),P=P.sibling;return null}function u(V){for(var P=new Map;V!==null;)V.key!==null?P.set(V.key,V):P.set(V.index,V),V=V.sibling;return P}function h(V,P){return V=pr(V,P),V.index=0,V.sibling=null,V}function g(V,P,X){return V.index=X,n?(X=V.alternate,X!==null?(X=X.index,X<P?(V.flags|=67108866,P):X):(V.flags|=67108866,P)):(V.flags|=1048576,P)}function T(V){return n&&V.alternate===null&&(V.flags|=67108866),V}function M(V,P,X,rt){return P===null||P.tag!==6?(P=Zf(X,V.mode,rt),P.return=V,P):(P=h(P,X),P.return=V,P)}function B(V,P,X,rt){var mt=X.type;return mt===x?et(V,P,X.props.children,rt,X.key):P!==null&&(P.elementType===mt||typeof mt=="object"&&mt!==null&&mt.$$typeof===H&&gy(mt)===P.type)?(P=h(P,X.props),ss(P,X),P.return=V,P):(P=Yl(X.type,X.key,X.props,null,V.mode,rt),ss(P,X),P.return=V,P)}function K(V,P,X,rt){return P===null||P.tag!==4||P.stateNode.containerInfo!==X.containerInfo||P.stateNode.implementation!==X.implementation?(P=Qf(X,V.mode,rt),P.return=V,P):(P=h(P,X.children||[]),P.return=V,P)}function et(V,P,X,rt,mt){return P===null||P.tag!==7?(P=Ri(X,V.mode,rt,mt),P.return=V,P):(P=h(P,X),P.return=V,P)}function st(V,P,X){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return P=Zf(""+P,V.mode,X),P.return=V,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case v:return X=Yl(P.type,P.key,P.props,null,V.mode,X),ss(X,P),X.return=V,X;case b:return P=Qf(P,V.mode,X),P.return=V,P;case H:var rt=P._init;return P=rt(P._payload),st(V,P,X)}if(lt(P)||I(P))return P=Ri(P,V.mode,X,null),P.return=V,P;if(typeof P.then=="function")return st(V,su(P),X);if(P.$$typeof===O)return st(V,Kl(V,P),X);lu(V,P)}return null}function Q(V,P,X,rt){var mt=P!==null?P.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return mt!==null?null:M(V,P,""+X,rt);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case v:return X.key===mt?B(V,P,X,rt):null;case b:return X.key===mt?K(V,P,X,rt):null;case H:return mt=X._init,X=mt(X._payload),Q(V,P,X,rt)}if(lt(X)||I(X))return mt!==null?null:et(V,P,X,rt,null);if(typeof X.then=="function")return Q(V,P,su(X),rt);if(X.$$typeof===O)return Q(V,P,Kl(V,X),rt);lu(V,X)}return null}function F(V,P,X,rt,mt){if(typeof rt=="string"&&rt!==""||typeof rt=="number"||typeof rt=="bigint")return V=V.get(X)||null,M(P,V,""+rt,mt);if(typeof rt=="object"&&rt!==null){switch(rt.$$typeof){case v:return V=V.get(rt.key===null?X:rt.key)||null,B(P,V,rt,mt);case b:return V=V.get(rt.key===null?X:rt.key)||null,K(P,V,rt,mt);case H:var Rt=rt._init;return rt=Rt(rt._payload),F(V,P,X,rt,mt)}if(lt(rt)||I(rt))return V=V.get(X)||null,et(P,V,rt,mt,null);if(typeof rt.then=="function")return F(V,P,X,su(rt),mt);if(rt.$$typeof===O)return F(V,P,X,Kl(P,rt),mt);lu(P,rt)}return null}function Ct(V,P,X,rt){for(var mt=null,Rt=null,yt=P,Tt=P=0,Re=null;yt!==null&&Tt<X.length;Tt++){yt.index>Tt?(Re=yt,yt=null):Re=yt.sibling;var Nt=Q(V,yt,X[Tt],rt);if(Nt===null){yt===null&&(yt=Re);break}n&&yt&&Nt.alternate===null&&i(V,yt),P=g(Nt,P,Tt),Rt===null?mt=Nt:Rt.sibling=Nt,Rt=Nt,yt=Re}if(Tt===X.length)return o(V,yt),Ut&&Di(V,Tt),mt;if(yt===null){for(;Tt<X.length;Tt++)yt=st(V,X[Tt],rt),yt!==null&&(P=g(yt,P,Tt),Rt===null?mt=yt:Rt.sibling=yt,Rt=yt);return Ut&&Di(V,Tt),mt}for(yt=u(yt);Tt<X.length;Tt++)Re=F(yt,V,Tt,X[Tt],rt),Re!==null&&(n&&Re.alternate!==null&&yt.delete(Re.key===null?Tt:Re.key),P=g(Re,P,Tt),Rt===null?mt=Re:Rt.sibling=Re,Rt=Re);return n&&yt.forEach(function(mi){return i(V,mi)}),Ut&&Di(V,Tt),mt}function xt(V,P,X,rt){if(X==null)throw Error(a(151));for(var mt=null,Rt=null,yt=P,Tt=P=0,Re=null,Nt=X.next();yt!==null&&!Nt.done;Tt++,Nt=X.next()){yt.index>Tt?(Re=yt,yt=null):Re=yt.sibling;var mi=Q(V,yt,Nt.value,rt);if(mi===null){yt===null&&(yt=Re);break}n&&yt&&mi.alternate===null&&i(V,yt),P=g(mi,P,Tt),Rt===null?mt=mi:Rt.sibling=mi,Rt=mi,yt=Re}if(Nt.done)return o(V,yt),Ut&&Di(V,Tt),mt;if(yt===null){for(;!Nt.done;Tt++,Nt=X.next())Nt=st(V,Nt.value,rt),Nt!==null&&(P=g(Nt,P,Tt),Rt===null?mt=Nt:Rt.sibling=Nt,Rt=Nt);return Ut&&Di(V,Tt),mt}for(yt=u(yt);!Nt.done;Tt++,Nt=X.next())Nt=F(yt,V,Tt,Nt.value,rt),Nt!==null&&(n&&Nt.alternate!==null&&yt.delete(Nt.key===null?Tt:Nt.key),P=g(Nt,P,Tt),Rt===null?mt=Nt:Rt.sibling=Nt,Rt=Nt);return n&&yt.forEach(function(iE){return i(V,iE)}),Ut&&Di(V,Tt),mt}function Xt(V,P,X,rt){if(typeof X=="object"&&X!==null&&X.type===x&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case v:t:{for(var mt=X.key;P!==null;){if(P.key===mt){if(mt=X.type,mt===x){if(P.tag===7){o(V,P.sibling),rt=h(P,X.props.children),rt.return=V,V=rt;break t}}else if(P.elementType===mt||typeof mt=="object"&&mt!==null&&mt.$$typeof===H&&gy(mt)===P.type){o(V,P.sibling),rt=h(P,X.props),ss(rt,X),rt.return=V,V=rt;break t}o(V,P);break}else i(V,P);P=P.sibling}X.type===x?(rt=Ri(X.props.children,V.mode,rt,X.key),rt.return=V,V=rt):(rt=Yl(X.type,X.key,X.props,null,V.mode,rt),ss(rt,X),rt.return=V,V=rt)}return T(V);case b:t:{for(mt=X.key;P!==null;){if(P.key===mt)if(P.tag===4&&P.stateNode.containerInfo===X.containerInfo&&P.stateNode.implementation===X.implementation){o(V,P.sibling),rt=h(P,X.children||[]),rt.return=V,V=rt;break t}else{o(V,P);break}else i(V,P);P=P.sibling}rt=Qf(X,V.mode,rt),rt.return=V,V=rt}return T(V);case H:return mt=X._init,X=mt(X._payload),Xt(V,P,X,rt)}if(lt(X))return Ct(V,P,X,rt);if(I(X)){if(mt=I(X),typeof mt!="function")throw Error(a(150));return X=mt.call(X),xt(V,P,X,rt)}if(typeof X.then=="function")return Xt(V,P,su(X),rt);if(X.$$typeof===O)return Xt(V,P,Kl(V,X),rt);lu(V,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,P!==null&&P.tag===6?(o(V,P.sibling),rt=h(P,X),rt.return=V,V=rt):(o(V,P),rt=Zf(X,V.mode,rt),rt.return=V,V=rt),T(V)):o(V,P)}return function(V,P,X,rt){try{os=0;var mt=Xt(V,P,X,rt);return Da=null,mt}catch(yt){if(yt===Fo||yt===Ql)throw yt;var Rt=un(29,yt,null,V.mode);return Rt.lanes=rt,Rt.return=V,Rt}finally{}}}var _a=yy(!0),vy=yy(!1),Mn=Z(null),Fn=null;function ti(n){var i=n.alternate;ot(xe,xe.current&1),ot(Mn,n),Fn===null&&(i===null||Ma.current!==null||i.memoizedState!==null)&&(Fn=n)}function by(n){if(n.tag===22){if(ot(xe,xe.current),ot(Mn,n),Fn===null){var i=n.alternate;i!==null&&i.memoizedState!==null&&(Fn=n)}}else ei()}function ei(){ot(xe,xe.current),ot(Mn,Mn.current)}function xr(n){at(Mn),Fn===n&&(Fn=null),at(xe)}var xe=Z(0);function uu(n){for(var i=n;i!==null;){if(i.tag===13){var o=i.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||vh(o)))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function Rd(n,i,o,u){i=n.memoizedState,o=o(u,i),o=o==null?i:m({},i,o),n.memoizedState=o,n.lanes===0&&(n.updateQueue.baseState=o)}var kd={enqueueSetState:function(n,i,o){n=n._reactInternals;var u=hn(),h=Fr(u);h.payload=i,o!=null&&(h.callback=o),i=Wr(n,h,u),i!==null&&(pn(i,n,u),Jo(i,n,u))},enqueueReplaceState:function(n,i,o){n=n._reactInternals;var u=hn(),h=Fr(u);h.tag=1,h.payload=i,o!=null&&(h.callback=o),i=Wr(n,h,u),i!==null&&(pn(i,n,u),Jo(i,n,u))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var o=hn(),u=Fr(o);u.tag=2,i!=null&&(u.callback=i),i=Wr(n,u,o),i!==null&&(pn(i,n,o),Jo(i,n,o))}};function xy(n,i,o,u,h,g,T){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,g,T):i.prototype&&i.prototype.isPureReactComponent?!Go(o,u)||!Go(h,g):!0}function Sy(n,i,o,u){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(o,u),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(o,u),i.state!==n&&kd.enqueueReplaceState(i,i.state,null)}function Ui(n,i){var o=i;if("ref"in i){o={};for(var u in i)u!=="ref"&&(o[u]=i[u])}if(n=n.defaultProps){o===i&&(o=m({},o));for(var h in n)o[h]===void 0&&(o[h]=n[h])}return o}var cu=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function Ty(n){cu(n)}function Cy(n){console.error(n)}function Ay(n){cu(n)}function fu(n,i){try{var o=n.onUncaughtError;o(i.value,{componentStack:i.stack})}catch(u){setTimeout(function(){throw u})}}function Ey(n,i,o){try{var u=n.onCaughtError;u(o.value,{componentStack:o.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Dd(n,i,o){return o=Fr(o),o.tag=3,o.payload={element:null},o.callback=function(){fu(n,i)},o}function wy(n){return n=Fr(n),n.tag=3,n}function My(n,i,o,u){var h=o.type.getDerivedStateFromError;if(typeof h=="function"){var g=u.value;n.payload=function(){return h(g)},n.callback=function(){Ey(i,o,u)}}var T=o.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(n.callback=function(){Ey(i,o,u),typeof h!="function"&&(si===null?si=new Set([this]):si.add(this));var M=u.stack;this.componentDidCatch(u.value,{componentStack:M!==null?M:""})})}function iA(n,i,o,u,h){if(o.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(i=o.alternate,i!==null&&Ko(i,o,h,!0),o=Mn.current,o!==null){switch(o.tag){case 13:return Fn===null?eh():o.alternate===null&&ue===0&&(ue=3),o.flags&=-257,o.flags|=65536,o.lanes=h,u===od?o.flags|=16384:(i=o.updateQueue,i===null?o.updateQueue=new Set([u]):i.add(u),rh(n,u,h)),!1;case 22:return o.flags|=65536,u===od?o.flags|=16384:(i=o.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([u])},o.updateQueue=i):(o=i.retryQueue,o===null?i.retryQueue=new Set([u]):o.add(u)),rh(n,u,h)),!1}throw Error(a(435,o.tag))}return rh(n,u,h),eh(),!1}if(Ut)return i=Mn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=h,u!==Jf&&(n=Error(a(422),{cause:u}),Xo(Cn(n,o)))):(u!==Jf&&(i=Error(a(423),{cause:u}),Xo(Cn(i,o))),n=n.current.alternate,n.flags|=65536,h&=-h,n.lanes|=h,u=Cn(u,o),h=Dd(n.stateNode,u,h),ud(n,h),ue!==4&&(ue=2)),!1;var g=Error(a(520),{cause:u});if(g=Cn(g,o),ps===null?ps=[g]:ps.push(g),ue!==4&&(ue=2),i===null)return!0;u=Cn(u,o),o=i;do{switch(o.tag){case 3:return o.flags|=65536,n=h&-h,o.lanes|=n,n=Dd(o.stateNode,u,n),ud(o,n),!1;case 1:if(i=o.type,g=o.stateNode,(o.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(si===null||!si.has(g))))return o.flags|=65536,h&=-h,o.lanes|=h,h=wy(h),My(h,n,o,u),ud(o,h),!1}o=o.return}while(o!==null);return!1}var Oy=Error(a(461)),Me=!1;function _e(n,i,o,u){i.child=n===null?vy(i,null,o,u):_a(i,n.child,o,u)}function Ry(n,i,o,u,h){o=o.render;var g=i.ref;if("ref"in u){var T={};for(var M in u)M!=="ref"&&(T[M]=u[M])}else T=u;return Ni(i),u=pd(n,i,o,T,g,h),M=md(),n!==null&&!Me?(gd(n,i,h),Sr(n,i,h)):(Ut&&M&&Ff(i),i.flags|=1,_e(n,i,u,h),i.child)}function ky(n,i,o,u,h){if(n===null){var g=o.type;return typeof g=="function"&&!Kf(g)&&g.defaultProps===void 0&&o.compare===null?(i.tag=15,i.type=g,Dy(n,i,g,u,h)):(n=Yl(o.type,null,u,i,i.mode,h),n.ref=i.ref,n.return=i,i.child=n)}if(g=n.child,!Bd(n,h)){var T=g.memoizedProps;if(o=o.compare,o=o!==null?o:Go,o(T,u)&&n.ref===i.ref)return Sr(n,i,h)}return i.flags|=1,n=pr(g,u),n.ref=i.ref,n.return=i,i.child=n}function Dy(n,i,o,u,h){if(n!==null){var g=n.memoizedProps;if(Go(g,u)&&n.ref===i.ref)if(Me=!1,i.pendingProps=u=g,Bd(n,h))(n.flags&131072)!==0&&(Me=!0);else return i.lanes=n.lanes,Sr(n,i,h)}return _d(n,i,o,u,h)}function _y(n,i,o){var u=i.pendingProps,h=u.children,g=n!==null?n.memoizedState:null;if(u.mode==="hidden"){if((i.flags&128)!==0){if(u=g!==null?g.baseLanes|o:o,n!==null){for(h=i.child=n.child,g=0;h!==null;)g=g|h.lanes|h.childLanes,h=h.sibling;i.childLanes=g&~u}else i.childLanes=0,i.child=null;return zy(n,i,u,o)}if((o&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&Zl(i,g!==null?g.cachePool:null),g!==null?D0(i,g):fd(),by(i);else return i.lanes=i.childLanes=536870912,zy(n,i,g!==null?g.baseLanes|o:o,o)}else g!==null?(Zl(i,g.cachePool),D0(i,g),ei(),i.memoizedState=null):(n!==null&&Zl(i,null),fd(),ei());return _e(n,i,h,o),i.child}function zy(n,i,o,u){var h=ad();return h=h===null?null:{parent:be._currentValue,pool:h},i.memoizedState={baseLanes:o,cachePool:h},n!==null&&Zl(i,null),fd(),by(i),n!==null&&Ko(n,i,u,!0),null}function du(n,i){var o=i.ref;if(o===null)n!==null&&n.ref!==null&&(i.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(a(284));(n===null||n.ref!==o)&&(i.flags|=4194816)}}function _d(n,i,o,u,h){return Ni(i),o=pd(n,i,o,u,void 0,h),u=md(),n!==null&&!Me?(gd(n,i,h),Sr(n,i,h)):(Ut&&u&&Ff(i),i.flags|=1,_e(n,i,o,h),i.child)}function $y(n,i,o,u,h,g){return Ni(i),i.updateQueue=null,o=z0(i,u,o,h),_0(n),u=md(),n!==null&&!Me?(gd(n,i,g),Sr(n,i,g)):(Ut&&u&&Ff(i),i.flags|=1,_e(n,i,o,g),i.child)}function Ny(n,i,o,u,h){if(Ni(i),i.stateNode===null){var g=Ta,T=o.contextType;typeof T=="object"&&T!==null&&(g=Ye(T)),g=new o(u,g),i.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=kd,i.stateNode=g,g._reactInternals=i,g=i.stateNode,g.props=u,g.state=i.memoizedState,g.refs={},sd(i),T=o.contextType,g.context=typeof T=="object"&&T!==null?Ye(T):Ta,g.state=i.memoizedState,T=o.getDerivedStateFromProps,typeof T=="function"&&(Rd(i,o,T,u),g.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(T=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),T!==g.state&&kd.enqueueReplaceState(g,g.state,null),es(i,u,g,h),ts(),g.state=i.memoizedState),typeof g.componentDidMount=="function"&&(i.flags|=4194308),u=!0}else if(n===null){g=i.stateNode;var M=i.memoizedProps,B=Ui(o,M);g.props=B;var K=g.context,et=o.contextType;T=Ta,typeof et=="object"&&et!==null&&(T=Ye(et));var st=o.getDerivedStateFromProps;et=typeof st=="function"||typeof g.getSnapshotBeforeUpdate=="function",M=i.pendingProps!==M,et||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(M||K!==T)&&Sy(i,g,u,T),Qr=!1;var Q=i.memoizedState;g.state=Q,es(i,u,g,h),ts(),K=i.memoizedState,M||Q!==K||Qr?(typeof st=="function"&&(Rd(i,o,st,u),K=i.memoizedState),(B=Qr||xy(i,o,B,u,Q,K,T))?(et||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(i.flags|=4194308)):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=K),g.props=u,g.state=K,g.context=T,u=B):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{g=i.stateNode,ld(n,i),T=i.memoizedProps,et=Ui(o,T),g.props=et,st=i.pendingProps,Q=g.context,K=o.contextType,B=Ta,typeof K=="object"&&K!==null&&(B=Ye(K)),M=o.getDerivedStateFromProps,(K=typeof M=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(T!==st||Q!==B)&&Sy(i,g,u,B),Qr=!1,Q=i.memoizedState,g.state=Q,es(i,u,g,h),ts();var F=i.memoizedState;T!==st||Q!==F||Qr||n!==null&&n.dependencies!==null&&Xl(n.dependencies)?(typeof M=="function"&&(Rd(i,o,M,u),F=i.memoizedState),(et=Qr||xy(i,o,et,u,Q,F,B)||n!==null&&n.dependencies!==null&&Xl(n.dependencies))?(K||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(u,F,B),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(u,F,B)),typeof g.componentDidUpdate=="function"&&(i.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof g.componentDidUpdate!="function"||T===n.memoizedProps&&Q===n.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&Q===n.memoizedState||(i.flags|=1024),i.memoizedProps=u,i.memoizedState=F),g.props=u,g.state=F,g.context=B,u=et):(typeof g.componentDidUpdate!="function"||T===n.memoizedProps&&Q===n.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&Q===n.memoizedState||(i.flags|=1024),u=!1)}return g=u,du(n,i),u=(i.flags&128)!==0,g||u?(g=i.stateNode,o=u&&typeof o.getDerivedStateFromError!="function"?null:g.render(),i.flags|=1,n!==null&&u?(i.child=_a(i,n.child,null,h),i.child=_a(i,null,o,h)):_e(n,i,o,h),i.memoizedState=g.state,n=i.child):n=Sr(n,i,h),n}function Ly(n,i,o,u){return Vo(),i.flags|=256,_e(n,i,o,u),i.child}var zd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $d(n){return{baseLanes:n,cachePool:C0()}}function Nd(n,i,o){return n=n!==null?n.childLanes&~o:0,i&&(n|=On),n}function jy(n,i,o){var u=i.pendingProps,h=!1,g=(i.flags&128)!==0,T;if((T=g)||(T=n!==null&&n.memoizedState===null?!1:(xe.current&2)!==0),T&&(h=!0,i.flags&=-129),T=(i.flags&32)!==0,i.flags&=-33,n===null){if(Ut){if(h?ti(i):ei(),Ut){var M=le,B;if(B=M){t:{for(B=M,M=Qn;B.nodeType!==8;){if(!M){M=null;break t}if(B=Yn(B.nextSibling),B===null){M=null;break t}}M=B}M!==null?(i.memoizedState={dehydrated:M,treeContext:ki!==null?{id:mr,overflow:gr}:null,retryLane:536870912,hydrationErrors:null},B=un(18,null,null,0),B.stateNode=M,B.return=i,i.child=B,Ze=i,le=null,B=!0):B=!1}B||zi(i)}if(M=i.memoizedState,M!==null&&(M=M.dehydrated,M!==null))return vh(M)?i.lanes=32:i.lanes=536870912,null;xr(i)}return M=u.children,u=u.fallback,h?(ei(),h=i.mode,M=hu({mode:"hidden",children:M},h),u=Ri(u,h,o,null),M.return=i,u.return=i,M.sibling=u,i.child=M,h=i.child,h.memoizedState=$d(o),h.childLanes=Nd(n,T,o),i.memoizedState=zd,u):(ti(i),Ld(i,M))}if(B=n.memoizedState,B!==null&&(M=B.dehydrated,M!==null)){if(g)i.flags&256?(ti(i),i.flags&=-257,i=jd(n,i,o)):i.memoizedState!==null?(ei(),i.child=n.child,i.flags|=128,i=null):(ei(),h=u.fallback,M=i.mode,u=hu({mode:"visible",children:u.children},M),h=Ri(h,M,o,null),h.flags|=2,u.return=i,h.return=i,u.sibling=h,i.child=u,_a(i,n.child,null,o),u=i.child,u.memoizedState=$d(o),u.childLanes=Nd(n,T,o),i.memoizedState=zd,i=h);else if(ti(i),vh(M)){if(T=M.nextSibling&&M.nextSibling.dataset,T)var K=T.dgst;T=K,u=Error(a(419)),u.stack="",u.digest=T,Xo({value:u,source:null,stack:null}),i=jd(n,i,o)}else if(Me||Ko(n,i,o,!1),T=(o&n.childLanes)!==0,Me||T){if(T=ee,T!==null&&(u=o&-o,u=(u&42)!==0?1:bf(u),u=(u&(T.suspendedLanes|o))!==0?0:u,u!==0&&u!==B.retryLane))throw B.retryLane=u,Sa(n,u),pn(T,n,u),Oy;M.data==="$?"||eh(),i=jd(n,i,o)}else M.data==="$?"?(i.flags|=192,i.child=n.child,i=null):(n=B.treeContext,le=Yn(M.nextSibling),Ze=i,Ut=!0,_i=null,Qn=!1,n!==null&&(En[wn++]=mr,En[wn++]=gr,En[wn++]=ki,mr=n.id,gr=n.overflow,ki=i),i=Ld(i,u.children),i.flags|=4096);return i}return h?(ei(),h=u.fallback,M=i.mode,B=n.child,K=B.sibling,u=pr(B,{mode:"hidden",children:u.children}),u.subtreeFlags=B.subtreeFlags&65011712,K!==null?h=pr(K,h):(h=Ri(h,M,o,null),h.flags|=2),h.return=i,u.return=i,u.sibling=h,i.child=u,u=h,h=i.child,M=n.child.memoizedState,M===null?M=$d(o):(B=M.cachePool,B!==null?(K=be._currentValue,B=B.parent!==K?{parent:K,pool:K}:B):B=C0(),M={baseLanes:M.baseLanes|o,cachePool:B}),h.memoizedState=M,h.childLanes=Nd(n,T,o),i.memoizedState=zd,u):(ti(i),o=n.child,n=o.sibling,o=pr(o,{mode:"visible",children:u.children}),o.return=i,o.sibling=null,n!==null&&(T=i.deletions,T===null?(i.deletions=[n],i.flags|=16):T.push(n)),i.child=o,i.memoizedState=null,o)}function Ld(n,i){return i=hu({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function hu(n,i){return n=un(22,n,null,i),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function jd(n,i,o){return _a(i,n.child,null,o),n=Ld(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function Uy(n,i,o){n.lanes|=i;var u=n.alternate;u!==null&&(u.lanes|=i),ed(n.return,i,o)}function Ud(n,i,o,u,h){var g=n.memoizedState;g===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:h}:(g.isBackwards=i,g.rendering=null,g.renderingStartTime=0,g.last=u,g.tail=o,g.tailMode=h)}function By(n,i,o){var u=i.pendingProps,h=u.revealOrder,g=u.tail;if(_e(n,i,u.children,o),u=xe.current,(u&2)!==0)u=u&1|2,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)t:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Uy(n,o,i);else if(n.tag===19)Uy(n,o,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break t;for(;n.sibling===null;){if(n.return===null||n.return===i)break t;n=n.return}n.sibling.return=n.return,n=n.sibling}u&=1}switch(ot(xe,u),h){case"forwards":for(o=i.child,h=null;o!==null;)n=o.alternate,n!==null&&uu(n)===null&&(h=o),o=o.sibling;o=h,o===null?(h=i.child,i.child=null):(h=o.sibling,o.sibling=null),Ud(i,!1,h,o,g);break;case"backwards":for(o=null,h=i.child,i.child=null;h!==null;){if(n=h.alternate,n!==null&&uu(n)===null){i.child=h;break}n=h.sibling,h.sibling=o,o=h,h=n}Ud(i,!0,o,null,g);break;case"together":Ud(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Sr(n,i,o){if(n!==null&&(i.dependencies=n.dependencies),oi|=i.lanes,(o&i.childLanes)===0)if(n!==null){if(Ko(n,i,o,!1),(o&i.childLanes)===0)return null}else return null;if(n!==null&&i.child!==n.child)throw Error(a(153));if(i.child!==null){for(n=i.child,o=pr(n,n.pendingProps),i.child=o,o.return=i;n.sibling!==null;)n=n.sibling,o=o.sibling=pr(n,n.pendingProps),o.return=i;o.sibling=null}return i.child}function Bd(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&Xl(n)))}function aA(n,i,o){switch(i.tag){case 3:bt(i,i.stateNode.containerInfo),Zr(i,be,n.memoizedState.cache),Vo();break;case 27:case 5:ht(i);break;case 4:bt(i,i.stateNode.containerInfo);break;case 10:Zr(i,i.type,i.memoizedProps.value);break;case 13:var u=i.memoizedState;if(u!==null)return u.dehydrated!==null?(ti(i),i.flags|=128,null):(o&i.child.childLanes)!==0?jy(n,i,o):(ti(i),n=Sr(n,i,o),n!==null?n.sibling:null);ti(i);break;case 19:var h=(n.flags&128)!==0;if(u=(o&i.childLanes)!==0,u||(Ko(n,i,o,!1),u=(o&i.childLanes)!==0),h){if(u)return By(n,i,o);i.flags|=128}if(h=i.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),ot(xe,xe.current),u)break;return null;case 22:case 23:return i.lanes=0,_y(n,i,o);case 24:Zr(i,be,n.memoizedState.cache)}return Sr(n,i,o)}function Hy(n,i,o){if(n!==null)if(n.memoizedProps!==i.pendingProps)Me=!0;else{if(!Bd(n,o)&&(i.flags&128)===0)return Me=!1,aA(n,i,o);Me=(n.flags&131072)!==0}else Me=!1,Ut&&(i.flags&1048576)!==0&&g0(i,Vl,i.index);switch(i.lanes=0,i.tag){case 16:t:{n=i.pendingProps;var u=i.elementType,h=u._init;if(u=h(u._payload),i.type=u,typeof u=="function")Kf(u)?(n=Ui(u,n),i.tag=1,i=Ny(null,i,u,n,o)):(i.tag=0,i=_d(null,i,u,n,o));else{if(u!=null){if(h=u.$$typeof,h===R){i.tag=11,i=Ry(null,i,u,n,o);break t}else if(h===z){i.tag=14,i=ky(null,i,u,n,o);break t}}throw i=it(u)||u,Error(a(306,i,""))}}return i;case 0:return _d(n,i,i.type,i.pendingProps,o);case 1:return u=i.type,h=Ui(u,i.pendingProps),Ny(n,i,u,h,o);case 3:t:{if(bt(i,i.stateNode.containerInfo),n===null)throw Error(a(387));u=i.pendingProps;var g=i.memoizedState;h=g.element,ld(n,i),es(i,u,null,o);var T=i.memoizedState;if(u=T.cache,Zr(i,be,u),u!==g.cache&&nd(i,[be],o,!0),ts(),u=T.element,g.isDehydrated)if(g={element:u,isDehydrated:!1,cache:T.cache},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){i=Ly(n,i,u,o);break t}else if(u!==h){h=Cn(Error(a(424)),i),Xo(h),i=Ly(n,i,u,o);break t}else{switch(n=i.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(le=Yn(n.firstChild),Ze=i,Ut=!0,_i=null,Qn=!0,o=vy(i,null,u,o),i.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(Vo(),u===h){i=Sr(n,i,o);break t}_e(n,i,u,o)}i=i.child}return i;case 26:return du(n,i),n===null?(o=Yv(i.type,null,i.pendingProps,null))?i.memoizedState=o:Ut||(o=i.type,n=i.pendingProps,u=Mu(ft.current).createElement(o),u[Ge]=i,u[We]=n,$e(u,o,n),we(u),i.stateNode=u):i.memoizedState=Yv(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return ht(i),n===null&&Ut&&(u=i.stateNode=Iv(i.type,i.pendingProps,ft.current),Ze=i,Qn=!0,h=le,ci(i.type)?(bh=h,le=Yn(u.firstChild)):le=h),_e(n,i,i.pendingProps.children,o),du(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&Ut&&((h=u=le)&&(u=zA(u,i.type,i.pendingProps,Qn),u!==null?(i.stateNode=u,Ze=i,le=Yn(u.firstChild),Qn=!1,h=!0):h=!1),h||zi(i)),ht(i),h=i.type,g=i.pendingProps,T=n!==null?n.memoizedProps:null,u=g.children,mh(h,g)?u=null:T!==null&&mh(h,T)&&(i.flags|=32),i.memoizedState!==null&&(h=pd(n,i,FC,null,null,o),Cs._currentValue=h),du(n,i),_e(n,i,u,o),i.child;case 6:return n===null&&Ut&&((n=o=le)&&(o=$A(o,i.pendingProps,Qn),o!==null?(i.stateNode=o,Ze=i,le=null,n=!0):n=!1),n||zi(i)),null;case 13:return jy(n,i,o);case 4:return bt(i,i.stateNode.containerInfo),u=i.pendingProps,n===null?i.child=_a(i,null,u,o):_e(n,i,u,o),i.child;case 11:return Ry(n,i,i.type,i.pendingProps,o);case 7:return _e(n,i,i.pendingProps,o),i.child;case 8:return _e(n,i,i.pendingProps.children,o),i.child;case 12:return _e(n,i,i.pendingProps.children,o),i.child;case 10:return u=i.pendingProps,Zr(i,i.type,u.value),_e(n,i,u.children,o),i.child;case 9:return h=i.type._context,u=i.pendingProps.children,Ni(i),h=Ye(h),u=u(h),i.flags|=1,_e(n,i,u,o),i.child;case 14:return ky(n,i,i.type,i.pendingProps,o);case 15:return Dy(n,i,i.type,i.pendingProps,o);case 19:return By(n,i,o);case 31:return u=i.pendingProps,o=i.mode,u={mode:u.mode,children:u.children},n===null?(o=hu(u,o),o.ref=i.ref,i.child=o,o.return=i,i=o):(o=pr(n.child,u),o.ref=i.ref,i.child=o,o.return=i,i=o),i;case 22:return _y(n,i,o);case 24:return Ni(i),u=Ye(be),n===null?(h=ad(),h===null&&(h=ee,g=rd(),h.pooledCache=g,g.refCount++,g!==null&&(h.pooledCacheLanes|=o),h=g),i.memoizedState={parent:u,cache:h},sd(i),Zr(i,be,h)):((n.lanes&o)!==0&&(ld(n,i),es(i,null,null,o),ts()),h=n.memoizedState,g=i.memoizedState,h.parent!==u?(h={parent:u,cache:u},i.memoizedState=h,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=h),Zr(i,be,u)):(u=g.cache,Zr(i,be,u),u!==h.cache&&nd(i,[be],o,!0))),_e(n,i,i.pendingProps.children,o),i.child;case 29:throw i.pendingProps}throw Error(a(156,i.tag))}function Tr(n){n.flags|=4}function Iy(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Zv(i)){if(i=Mn.current,i!==null&&((_t&4194048)===_t?Fn!==null:(_t&62914560)!==_t&&(_t&536870912)===0||i!==Fn))throw Wo=od,A0;n.flags|=8192}}function pu(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?bg():536870912,n.lanes|=i,La|=i)}function ls(n,i){if(!Ut)switch(n.tailMode){case"hidden":i=n.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?n.tail=null:o.sibling=null;break;case"collapsed":o=n.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:u.sibling=null}}function se(n){var i=n.alternate!==null&&n.alternate.child===n.child,o=0,u=0;if(i)for(var h=n.child;h!==null;)o|=h.lanes|h.childLanes,u|=h.subtreeFlags&65011712,u|=h.flags&65011712,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)o|=h.lanes|h.childLanes,u|=h.subtreeFlags,u|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=u,n.childLanes=o,i}function oA(n,i,o){var u=i.pendingProps;switch(Wf(i),i.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return se(i),null;case 1:return se(i),null;case 3:return o=i.stateNode,u=null,n!==null&&(u=n.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),vr(be),nt(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(n===null||n.child===null)&&(qo(i)?Tr(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,b0())),se(i),null;case 26:return o=i.memoizedState,n===null?(Tr(i),o!==null?(se(i),Iy(i,o)):(se(i),i.flags&=-16777217)):o?o!==n.memoizedState?(Tr(i),se(i),Iy(i,o)):(se(i),i.flags&=-16777217):(n.memoizedProps!==u&&Tr(i),se(i),i.flags&=-16777217),null;case 27:vt(i),o=ft.current;var h=i.type;if(n!==null&&i.stateNode!=null)n.memoizedProps!==u&&Tr(i);else{if(!u){if(i.stateNode===null)throw Error(a(166));return se(i),null}n=ct.current,qo(i)?y0(i):(n=Iv(h,u,o),i.stateNode=n,Tr(i))}return se(i),null;case 5:if(vt(i),o=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==u&&Tr(i);else{if(!u){if(i.stateNode===null)throw Error(a(166));return se(i),null}if(n=ct.current,qo(i))y0(i);else{switch(h=Mu(ft.current),n){case 1:n=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:n=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":n=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":n=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":n=h.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof u.is=="string"?h.createElement("select",{is:u.is}):h.createElement("select"),u.multiple?n.multiple=!0:u.size&&(n.size=u.size);break;default:n=typeof u.is=="string"?h.createElement(o,{is:u.is}):h.createElement(o)}}n[Ge]=i,n[We]=u;t:for(h=i.child;h!==null;){if(h.tag===5||h.tag===6)n.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===i)break t;for(;h.sibling===null;){if(h.return===null||h.return===i)break t;h=h.return}h.sibling.return=h.return,h=h.sibling}i.stateNode=n;t:switch($e(n,o,u),o){case"button":case"input":case"select":case"textarea":n=!!u.autoFocus;break t;case"img":n=!0;break t;default:n=!1}n&&Tr(i)}}return se(i),i.flags&=-16777217,null;case 6:if(n&&i.stateNode!=null)n.memoizedProps!==u&&Tr(i);else{if(typeof u!="string"&&i.stateNode===null)throw Error(a(166));if(n=ft.current,qo(i)){if(n=i.stateNode,o=i.memoizedProps,u=null,h=Ze,h!==null)switch(h.tag){case 27:case 5:u=h.memoizedProps}n[Ge]=i,n=!!(n.nodeValue===o||u!==null&&u.suppressHydrationWarning===!0||$v(n.nodeValue,o)),n||zi(i)}else n=Mu(n).createTextNode(u),n[Ge]=i,i.stateNode=n}return se(i),null;case 13:if(u=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(h=qo(i),u!==null&&u.dehydrated!==null){if(n===null){if(!h)throw Error(a(318));if(h=i.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(a(317));h[Ge]=i}else Vo(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;se(i),h=!1}else h=b0(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=h),h=!0;if(!h)return i.flags&256?(xr(i),i):(xr(i),null)}if(xr(i),(i.flags&128)!==0)return i.lanes=o,i;if(o=u!==null,n=n!==null&&n.memoizedState!==null,o){u=i.child,h=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(h=u.alternate.memoizedState.cachePool.pool);var g=null;u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool),g!==h&&(u.flags|=2048)}return o!==n&&o&&(i.child.flags|=8192),pu(i,i.updateQueue),se(i),null;case 4:return nt(),n===null&&ch(i.stateNode.containerInfo),se(i),null;case 10:return vr(i.type),se(i),null;case 19:if(at(xe),h=i.memoizedState,h===null)return se(i),null;if(u=(i.flags&128)!==0,g=h.rendering,g===null)if(u)ls(h,!1);else{if(ue!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(g=uu(n),g!==null){for(i.flags|=128,ls(h,!1),n=g.updateQueue,i.updateQueue=n,pu(i,n),i.subtreeFlags=0,n=o,o=i.child;o!==null;)m0(o,n),o=o.sibling;return ot(xe,xe.current&1|2),i.child}n=n.sibling}h.tail!==null&&jt()>yu&&(i.flags|=128,u=!0,ls(h,!1),i.lanes=4194304)}else{if(!u)if(n=uu(g),n!==null){if(i.flags|=128,u=!0,n=n.updateQueue,i.updateQueue=n,pu(i,n),ls(h,!0),h.tail===null&&h.tailMode==="hidden"&&!g.alternate&&!Ut)return se(i),null}else 2*jt()-h.renderingStartTime>yu&&o!==536870912&&(i.flags|=128,u=!0,ls(h,!1),i.lanes=4194304);h.isBackwards?(g.sibling=i.child,i.child=g):(n=h.last,n!==null?n.sibling=g:i.child=g,h.last=g)}return h.tail!==null?(i=h.tail,h.rendering=i,h.tail=i.sibling,h.renderingStartTime=jt(),i.sibling=null,n=xe.current,ot(xe,u?n&1|2:n&1),i):(se(i),null);case 22:case 23:return xr(i),dd(),u=i.memoizedState!==null,n!==null?n.memoizedState!==null!==u&&(i.flags|=8192):u&&(i.flags|=8192),u?(o&536870912)!==0&&(i.flags&128)===0&&(se(i),i.subtreeFlags&6&&(i.flags|=8192)):se(i),o=i.updateQueue,o!==null&&pu(i,o.retryQueue),o=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==o&&(i.flags|=2048),n!==null&&at(Li),null;case 24:return o=null,n!==null&&(o=n.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),vr(be),se(i),null;case 25:return null;case 30:return null}throw Error(a(156,i.tag))}function sA(n,i){switch(Wf(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return vr(be),nt(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 26:case 27:case 5:return vt(i),null;case 13:if(xr(i),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(a(340));Vo()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return at(xe),null;case 4:return nt(),null;case 10:return vr(i.type),null;case 22:case 23:return xr(i),dd(),n!==null&&at(Li),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return vr(be),null;case 25:return null;default:return null}}function Py(n,i){switch(Wf(i),i.tag){case 3:vr(be),nt();break;case 26:case 27:case 5:vt(i);break;case 4:nt();break;case 13:xr(i);break;case 19:at(xe);break;case 10:vr(i.type);break;case 22:case 23:xr(i),dd(),n!==null&&at(Li);break;case 24:vr(be)}}function us(n,i){try{var o=i.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var h=u.next;o=h;do{if((o.tag&n)===n){u=void 0;var g=o.create,T=o.inst;u=g(),T.destroy=u}o=o.next}while(o!==h)}}catch(M){Zt(i,i.return,M)}}function ni(n,i,o){try{var u=i.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var g=h.next;u=g;do{if((u.tag&n)===n){var T=u.inst,M=T.destroy;if(M!==void 0){T.destroy=void 0,h=i;var B=o,K=M;try{K()}catch(et){Zt(h,B,et)}}}u=u.next}while(u!==g)}}catch(et){Zt(i,i.return,et)}}function Gy(n){var i=n.updateQueue;if(i!==null){var o=n.stateNode;try{k0(i,o)}catch(u){Zt(n,n.return,u)}}}function Yy(n,i,o){o.props=Ui(n.type,n.memoizedProps),o.state=n.memoizedState;try{o.componentWillUnmount()}catch(u){Zt(n,i,u)}}function cs(n,i){try{var o=n.ref;if(o!==null){switch(n.tag){case 26:case 27:case 5:var u=n.stateNode;break;case 30:u=n.stateNode;break;default:u=n.stateNode}typeof o=="function"?n.refCleanup=o(u):o.current=u}}catch(h){Zt(n,i,h)}}function Wn(n,i){var o=n.ref,u=n.refCleanup;if(o!==null)if(typeof u=="function")try{u()}catch(h){Zt(n,i,h)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(h){Zt(n,i,h)}else o.current=null}function qy(n){var i=n.type,o=n.memoizedProps,u=n.stateNode;try{t:switch(i){case"button":case"input":case"select":case"textarea":o.autoFocus&&u.focus();break t;case"img":o.src?u.src=o.src:o.srcSet&&(u.srcset=o.srcSet)}}catch(h){Zt(n,n.return,h)}}function Hd(n,i,o){try{var u=n.stateNode;OA(u,n.type,o,i),u[We]=i}catch(h){Zt(n,n.return,h)}}function Vy(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&ci(n.type)||n.tag===4}function Id(n){t:for(;;){for(;n.sibling===null;){if(n.return===null||Vy(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&ci(n.type)||n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Pd(n,i,o){var u=n.tag;if(u===5||u===6)n=n.stateNode,i?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(n,i):(i=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,i.appendChild(n),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=wu));else if(u!==4&&(u===27&&ci(n.type)&&(o=n.stateNode,i=null),n=n.child,n!==null))for(Pd(n,i,o),n=n.sibling;n!==null;)Pd(n,i,o),n=n.sibling}function mu(n,i,o){var u=n.tag;if(u===5||u===6)n=n.stateNode,i?o.insertBefore(n,i):o.appendChild(n);else if(u!==4&&(u===27&&ci(n.type)&&(o=n.stateNode),n=n.child,n!==null))for(mu(n,i,o),n=n.sibling;n!==null;)mu(n,i,o),n=n.sibling}function Xy(n){var i=n.stateNode,o=n.memoizedProps;try{for(var u=n.type,h=i.attributes;h.length;)i.removeAttributeNode(h[0]);$e(i,u,o),i[Ge]=n,i[We]=o}catch(g){Zt(n,n.return,g)}}var Cr=!1,he=!1,Gd=!1,Ky=typeof WeakSet=="function"?WeakSet:Set,Oe=null;function lA(n,i){if(n=n.containerInfo,hh=zu,n=a0(n),If(n)){if("selectionStart"in n)var o={start:n.selectionStart,end:n.selectionEnd};else t:{o=(o=n.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var h=u.anchorOffset,g=u.focusNode;u=u.focusOffset;try{o.nodeType,g.nodeType}catch{o=null;break t}var T=0,M=-1,B=-1,K=0,et=0,st=n,Q=null;e:for(;;){for(var F;st!==o||h!==0&&st.nodeType!==3||(M=T+h),st!==g||u!==0&&st.nodeType!==3||(B=T+u),st.nodeType===3&&(T+=st.nodeValue.length),(F=st.firstChild)!==null;)Q=st,st=F;for(;;){if(st===n)break e;if(Q===o&&++K===h&&(M=T),Q===g&&++et===u&&(B=T),(F=st.nextSibling)!==null)break;st=Q,Q=st.parentNode}st=F}o=M===-1||B===-1?null:{start:M,end:B}}else o=null}o=o||{start:0,end:0}}else o=null;for(ph={focusedElem:n,selectionRange:o},zu=!1,Oe=i;Oe!==null;)if(i=Oe,n=i.child,(i.subtreeFlags&1024)!==0&&n!==null)n.return=i,Oe=n;else for(;Oe!==null;){switch(i=Oe,g=i.alternate,n=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&g!==null){n=void 0,o=i,h=g.memoizedProps,g=g.memoizedState,u=o.stateNode;try{var Ct=Ui(o.type,h,o.elementType===o.type);n=u.getSnapshotBeforeUpdate(Ct,g),u.__reactInternalSnapshotBeforeUpdate=n}catch(xt){Zt(o,o.return,xt)}}break;case 3:if((n&1024)!==0){if(n=i.stateNode.containerInfo,o=n.nodeType,o===9)yh(n);else if(o===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":yh(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(a(163))}if(n=i.sibling,n!==null){n.return=i.return,Oe=n;break}Oe=i.return}}function Zy(n,i,o){var u=o.flags;switch(o.tag){case 0:case 11:case 15:ri(n,o),u&4&&us(5,o);break;case 1:if(ri(n,o),u&4)if(n=o.stateNode,i===null)try{n.componentDidMount()}catch(T){Zt(o,o.return,T)}else{var h=Ui(o.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(h,i,n.__reactInternalSnapshotBeforeUpdate)}catch(T){Zt(o,o.return,T)}}u&64&&Gy(o),u&512&&cs(o,o.return);break;case 3:if(ri(n,o),u&64&&(n=o.updateQueue,n!==null)){if(i=null,o.child!==null)switch(o.child.tag){case 27:case 5:i=o.child.stateNode;break;case 1:i=o.child.stateNode}try{k0(n,i)}catch(T){Zt(o,o.return,T)}}break;case 27:i===null&&u&4&&Xy(o);case 26:case 5:ri(n,o),i===null&&u&4&&qy(o),u&512&&cs(o,o.return);break;case 12:ri(n,o);break;case 13:ri(n,o),u&4&&Wy(n,o),u&64&&(n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(o=yA.bind(null,o),NA(n,o))));break;case 22:if(u=o.memoizedState!==null||Cr,!u){i=i!==null&&i.memoizedState!==null||he,h=Cr;var g=he;Cr=u,(he=i)&&!g?ii(n,o,(o.subtreeFlags&8772)!==0):ri(n,o),Cr=h,he=g}break;case 30:break;default:ri(n,o)}}function Qy(n){var i=n.alternate;i!==null&&(n.alternate=null,Qy(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&Tf(i)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var ie=null,en=!1;function Ar(n,i,o){for(o=o.child;o!==null;)Fy(n,i,o),o=o.sibling}function Fy(n,i,o){if(ve&&typeof ve.onCommitFiberUnmount=="function")try{ve.onCommitFiberUnmount(In,o)}catch{}switch(o.tag){case 26:he||Wn(o,i),Ar(n,i,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:he||Wn(o,i);var u=ie,h=en;ci(o.type)&&(ie=o.stateNode,en=!1),Ar(n,i,o),bs(o.stateNode),ie=u,en=h;break;case 5:he||Wn(o,i);case 6:if(u=ie,h=en,ie=null,Ar(n,i,o),ie=u,en=h,ie!==null)if(en)try{(ie.nodeType===9?ie.body:ie.nodeName==="HTML"?ie.ownerDocument.body:ie).removeChild(o.stateNode)}catch(g){Zt(o,i,g)}else try{ie.removeChild(o.stateNode)}catch(g){Zt(o,i,g)}break;case 18:ie!==null&&(en?(n=ie,Bv(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,o.stateNode),Ms(n)):Bv(ie,o.stateNode));break;case 4:u=ie,h=en,ie=o.stateNode.containerInfo,en=!0,Ar(n,i,o),ie=u,en=h;break;case 0:case 11:case 14:case 15:he||ni(2,o,i),he||ni(4,o,i),Ar(n,i,o);break;case 1:he||(Wn(o,i),u=o.stateNode,typeof u.componentWillUnmount=="function"&&Yy(o,i,u)),Ar(n,i,o);break;case 21:Ar(n,i,o);break;case 22:he=(u=he)||o.memoizedState!==null,Ar(n,i,o),he=u;break;default:Ar(n,i,o)}}function Wy(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Ms(n)}catch(o){Zt(i,i.return,o)}}function uA(n){switch(n.tag){case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new Ky),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new Ky),i;default:throw Error(a(435,n.tag))}}function Yd(n,i){var o=uA(n);i.forEach(function(u){var h=vA.bind(null,n,u);o.has(u)||(o.add(u),u.then(h,h))})}function cn(n,i){var o=i.deletions;if(o!==null)for(var u=0;u<o.length;u++){var h=o[u],g=n,T=i,M=T;t:for(;M!==null;){switch(M.tag){case 27:if(ci(M.type)){ie=M.stateNode,en=!1;break t}break;case 5:ie=M.stateNode,en=!1;break t;case 3:case 4:ie=M.stateNode.containerInfo,en=!0;break t}M=M.return}if(ie===null)throw Error(a(160));Fy(g,T,h),ie=null,en=!1,g=h.alternate,g!==null&&(g.return=null),h.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)Jy(i,n),i=i.sibling}var Gn=null;function Jy(n,i){var o=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:cn(i,n),fn(n),u&4&&(ni(3,n,n.return),us(3,n),ni(5,n,n.return));break;case 1:cn(i,n),fn(n),u&512&&(he||o===null||Wn(o,o.return)),u&64&&Cr&&(n=n.updateQueue,n!==null&&(u=n.callbacks,u!==null&&(o=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=o===null?u:o.concat(u))));break;case 26:var h=Gn;if(cn(i,n),fn(n),u&512&&(he||o===null||Wn(o,o.return)),u&4){var g=o!==null?o.memoizedState:null;if(u=n.memoizedState,o===null)if(u===null)if(n.stateNode===null){t:{u=n.type,o=n.memoizedProps,h=h.ownerDocument||h;e:switch(u){case"title":g=h.getElementsByTagName("title")[0],(!g||g[$o]||g[Ge]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=h.createElement(u),h.head.insertBefore(g,h.querySelector("head > title"))),$e(g,u,o),g[Ge]=n,we(g),u=g;break t;case"link":var T=Xv("link","href",h).get(u+(o.href||""));if(T){for(var M=0;M<T.length;M++)if(g=T[M],g.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&g.getAttribute("rel")===(o.rel==null?null:o.rel)&&g.getAttribute("title")===(o.title==null?null:o.title)&&g.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){T.splice(M,1);break e}}g=h.createElement(u),$e(g,u,o),h.head.appendChild(g);break;case"meta":if(T=Xv("meta","content",h).get(u+(o.content||""))){for(M=0;M<T.length;M++)if(g=T[M],g.getAttribute("content")===(o.content==null?null:""+o.content)&&g.getAttribute("name")===(o.name==null?null:o.name)&&g.getAttribute("property")===(o.property==null?null:o.property)&&g.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&g.getAttribute("charset")===(o.charSet==null?null:o.charSet)){T.splice(M,1);break e}}g=h.createElement(u),$e(g,u,o),h.head.appendChild(g);break;default:throw Error(a(468,u))}g[Ge]=n,we(g),u=g}n.stateNode=u}else Kv(h,n.type,n.stateNode);else n.stateNode=Vv(h,u,n.memoizedProps);else g!==u?(g===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):g.count--,u===null?Kv(h,n.type,n.stateNode):Vv(h,u,n.memoizedProps)):u===null&&n.stateNode!==null&&Hd(n,n.memoizedProps,o.memoizedProps)}break;case 27:cn(i,n),fn(n),u&512&&(he||o===null||Wn(o,o.return)),o!==null&&u&4&&Hd(n,n.memoizedProps,o.memoizedProps);break;case 5:if(cn(i,n),fn(n),u&512&&(he||o===null||Wn(o,o.return)),n.flags&32){h=n.stateNode;try{pa(h,"")}catch(F){Zt(n,n.return,F)}}u&4&&n.stateNode!=null&&(h=n.memoizedProps,Hd(n,h,o!==null?o.memoizedProps:h)),u&1024&&(Gd=!0);break;case 6:if(cn(i,n),fn(n),u&4){if(n.stateNode===null)throw Error(a(162));u=n.memoizedProps,o=n.stateNode;try{o.nodeValue=u}catch(F){Zt(n,n.return,F)}}break;case 3:if(ku=null,h=Gn,Gn=Ou(i.containerInfo),cn(i,n),Gn=h,fn(n),u&4&&o!==null&&o.memoizedState.isDehydrated)try{Ms(i.containerInfo)}catch(F){Zt(n,n.return,F)}Gd&&(Gd=!1,tv(n));break;case 4:u=Gn,Gn=Ou(n.stateNode.containerInfo),cn(i,n),fn(n),Gn=u;break;case 12:cn(i,n),fn(n);break;case 13:cn(i,n),fn(n),n.child.flags&8192&&n.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Qd=jt()),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Yd(n,u)));break;case 22:h=n.memoizedState!==null;var B=o!==null&&o.memoizedState!==null,K=Cr,et=he;if(Cr=K||h,he=et||B,cn(i,n),he=et,Cr=K,fn(n),u&8192)t:for(i=n.stateNode,i._visibility=h?i._visibility&-2:i._visibility|1,h&&(o===null||B||Cr||he||Bi(n)),o=null,i=n;;){if(i.tag===5||i.tag===26){if(o===null){B=o=i;try{if(g=B.stateNode,h)T=g.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none";else{M=B.stateNode;var st=B.memoizedProps.style,Q=st!=null&&st.hasOwnProperty("display")?st.display:null;M.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(F){Zt(B,B.return,F)}}}else if(i.tag===6){if(o===null){B=i;try{B.stateNode.nodeValue=h?"":B.memoizedProps}catch(F){Zt(B,B.return,F)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===n)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break t;for(;i.sibling===null;){if(i.return===null||i.return===n)break t;o===i&&(o=null),i=i.return}o===i&&(o=null),i.sibling.return=i.return,i=i.sibling}u&4&&(u=n.updateQueue,u!==null&&(o=u.retryQueue,o!==null&&(u.retryQueue=null,Yd(n,o))));break;case 19:cn(i,n),fn(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Yd(n,u)));break;case 30:break;case 21:break;default:cn(i,n),fn(n)}}function fn(n){var i=n.flags;if(i&2){try{for(var o,u=n.return;u!==null;){if(Vy(u)){o=u;break}u=u.return}if(o==null)throw Error(a(160));switch(o.tag){case 27:var h=o.stateNode,g=Id(n);mu(n,g,h);break;case 5:var T=o.stateNode;o.flags&32&&(pa(T,""),o.flags&=-33);var M=Id(n);mu(n,M,T);break;case 3:case 4:var B=o.stateNode.containerInfo,K=Id(n);Pd(n,K,B);break;default:throw Error(a(161))}}catch(et){Zt(n,n.return,et)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function tv(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;tv(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),n=n.sibling}}function ri(n,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)Zy(n,i.alternate,i),i=i.sibling}function Bi(n){for(n=n.child;n!==null;){var i=n;switch(i.tag){case 0:case 11:case 14:case 15:ni(4,i,i.return),Bi(i);break;case 1:Wn(i,i.return);var o=i.stateNode;typeof o.componentWillUnmount=="function"&&Yy(i,i.return,o),Bi(i);break;case 27:bs(i.stateNode);case 26:case 5:Wn(i,i.return),Bi(i);break;case 22:i.memoizedState===null&&Bi(i);break;case 30:Bi(i);break;default:Bi(i)}n=n.sibling}}function ii(n,i,o){for(o=o&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var u=i.alternate,h=n,g=i,T=g.flags;switch(g.tag){case 0:case 11:case 15:ii(h,g,o),us(4,g);break;case 1:if(ii(h,g,o),u=g,h=u.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(K){Zt(u,u.return,K)}if(u=g,h=u.updateQueue,h!==null){var M=u.stateNode;try{var B=h.shared.hiddenCallbacks;if(B!==null)for(h.shared.hiddenCallbacks=null,h=0;h<B.length;h++)R0(B[h],M)}catch(K){Zt(u,u.return,K)}}o&&T&64&&Gy(g),cs(g,g.return);break;case 27:Xy(g);case 26:case 5:ii(h,g,o),o&&u===null&&T&4&&qy(g),cs(g,g.return);break;case 12:ii(h,g,o);break;case 13:ii(h,g,o),o&&T&4&&Wy(h,g);break;case 22:g.memoizedState===null&&ii(h,g,o),cs(g,g.return);break;case 30:break;default:ii(h,g,o)}i=i.sibling}}function qd(n,i){var o=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),n=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(n=i.memoizedState.cachePool.pool),n!==o&&(n!=null&&n.refCount++,o!=null&&Zo(o))}function Vd(n,i){n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&Zo(n))}function Jn(n,i,o,u){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)ev(n,i,o,u),i=i.sibling}function ev(n,i,o,u){var h=i.flags;switch(i.tag){case 0:case 11:case 15:Jn(n,i,o,u),h&2048&&us(9,i);break;case 1:Jn(n,i,o,u);break;case 3:Jn(n,i,o,u),h&2048&&(n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&Zo(n)));break;case 12:if(h&2048){Jn(n,i,o,u),n=i.stateNode;try{var g=i.memoizedProps,T=g.id,M=g.onPostCommit;typeof M=="function"&&M(T,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(B){Zt(i,i.return,B)}}else Jn(n,i,o,u);break;case 13:Jn(n,i,o,u);break;case 23:break;case 22:g=i.stateNode,T=i.alternate,i.memoizedState!==null?g._visibility&2?Jn(n,i,o,u):fs(n,i):g._visibility&2?Jn(n,i,o,u):(g._visibility|=2,za(n,i,o,u,(i.subtreeFlags&10256)!==0)),h&2048&&qd(T,i);break;case 24:Jn(n,i,o,u),h&2048&&Vd(i.alternate,i);break;default:Jn(n,i,o,u)}}function za(n,i,o,u,h){for(h=h&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var g=n,T=i,M=o,B=u,K=T.flags;switch(T.tag){case 0:case 11:case 15:za(g,T,M,B,h),us(8,T);break;case 23:break;case 22:var et=T.stateNode;T.memoizedState!==null?et._visibility&2?za(g,T,M,B,h):fs(g,T):(et._visibility|=2,za(g,T,M,B,h)),h&&K&2048&&qd(T.alternate,T);break;case 24:za(g,T,M,B,h),h&&K&2048&&Vd(T.alternate,T);break;default:za(g,T,M,B,h)}i=i.sibling}}function fs(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var o=n,u=i,h=u.flags;switch(u.tag){case 22:fs(o,u),h&2048&&qd(u.alternate,u);break;case 24:fs(o,u),h&2048&&Vd(u.alternate,u);break;default:fs(o,u)}i=i.sibling}}var ds=8192;function $a(n){if(n.subtreeFlags&ds)for(n=n.child;n!==null;)nv(n),n=n.sibling}function nv(n){switch(n.tag){case 26:$a(n),n.flags&ds&&n.memoizedState!==null&&KA(Gn,n.memoizedState,n.memoizedProps);break;case 5:$a(n);break;case 3:case 4:var i=Gn;Gn=Ou(n.stateNode.containerInfo),$a(n),Gn=i;break;case 22:n.memoizedState===null&&(i=n.alternate,i!==null&&i.memoizedState!==null?(i=ds,ds=16777216,$a(n),ds=i):$a(n));break;default:$a(n)}}function rv(n){var i=n.alternate;if(i!==null&&(n=i.child,n!==null)){i.child=null;do i=n.sibling,n.sibling=null,n=i;while(n!==null)}}function hs(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var u=i[o];Oe=u,av(u,n)}rv(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)iv(n),n=n.sibling}function iv(n){switch(n.tag){case 0:case 11:case 15:hs(n),n.flags&2048&&ni(9,n,n.return);break;case 3:hs(n);break;case 12:hs(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&2&&(n.return===null||n.return.tag!==13)?(i._visibility&=-3,gu(n)):hs(n);break;default:hs(n)}}function gu(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var u=i[o];Oe=u,av(u,n)}rv(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:ni(8,i,i.return),gu(i);break;case 22:o=i.stateNode,o._visibility&2&&(o._visibility&=-3,gu(i));break;default:gu(i)}n=n.sibling}}function av(n,i){for(;Oe!==null;){var o=Oe;switch(o.tag){case 0:case 11:case 15:ni(8,o,i);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var u=o.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Zo(o.memoizedState.cache)}if(u=o.child,u!==null)u.return=o,Oe=u;else t:for(o=n;Oe!==null;){u=Oe;var h=u.sibling,g=u.return;if(Qy(u),u===o){Oe=null;break t}if(h!==null){h.return=g,Oe=h;break t}Oe=g}}}var cA={getCacheForType:function(n){var i=Ye(be),o=i.data.get(n);return o===void 0&&(o=n(),i.data.set(n,o)),o}},fA=typeof WeakMap=="function"?WeakMap:Map,Pt=0,ee=null,kt=null,_t=0,Gt=0,dn=null,ai=!1,Na=!1,Xd=!1,Er=0,ue=0,oi=0,Hi=0,Kd=0,On=0,La=0,ps=null,nn=null,Zd=!1,Qd=0,yu=1/0,vu=null,si=null,ze=0,li=null,ja=null,Ua=0,Fd=0,Wd=null,ov=null,ms=0,Jd=null;function hn(){if((Pt&2)!==0&&_t!==0)return _t&-_t;if(j.T!==null){var n=Ea;return n!==0?n:oh()}return Tg()}function sv(){On===0&&(On=(_t&536870912)===0||Ut?vg():536870912);var n=Mn.current;return n!==null&&(n.flags|=32),On}function pn(n,i,o){(n===ee&&(Gt===2||Gt===9)||n.cancelPendingCommit!==null)&&(Ba(n,0),ui(n,_t,On,!1)),zo(n,o),((Pt&2)===0||n!==ee)&&(n===ee&&((Pt&2)===0&&(Hi|=o),ue===4&&ui(n,_t,On,!1)),tr(n))}function lv(n,i,o){if((Pt&6)!==0)throw Error(a(327));var u=!o&&(i&124)===0&&(i&n.expiredLanes)===0||_o(n,i),h=u?pA(n,i):nh(n,i,!0),g=u;do{if(h===0){Na&&!u&&ui(n,i,0,!1);break}else{if(o=n.current.alternate,g&&!dA(o)){h=nh(n,i,!1),g=!1;continue}if(h===2){if(g=i,n.errorRecoveryDisabledLanes&g)var T=0;else T=n.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){i=T;t:{var M=n;h=ps;var B=M.current.memoizedState.isDehydrated;if(B&&(Ba(M,T).flags|=256),T=nh(M,T,!1),T!==2){if(Xd&&!B){M.errorRecoveryDisabledLanes|=g,Hi|=g,h=4;break t}g=nn,nn=h,g!==null&&(nn===null?nn=g:nn.push.apply(nn,g))}h=T}if(g=!1,h!==2)continue}}if(h===1){Ba(n,0),ui(n,i,0,!0);break}t:{switch(u=n,g=h,g){case 0:case 1:throw Error(a(345));case 4:if((i&4194048)!==i)break;case 6:ui(u,i,On,!ai);break t;case 2:nn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((i&62914560)===i&&(h=Qd+300-jt(),10<h)){if(ui(u,i,On,!ai),Rl(u,0,!0)!==0)break t;u.timeoutHandle=jv(uv.bind(null,u,o,nn,vu,Zd,i,On,Hi,La,ai,g,2,-0,0),h);break t}uv(u,o,nn,vu,Zd,i,On,Hi,La,ai,g,0,-0,0)}}break}while(!0);tr(n)}function uv(n,i,o,u,h,g,T,M,B,K,et,st,Q,F){if(n.timeoutHandle=-1,st=i.subtreeFlags,(st&8192||(st&16785408)===16785408)&&(Ts={stylesheets:null,count:0,unsuspend:XA},nv(i),st=ZA(),st!==null)){n.cancelPendingCommit=st(gv.bind(null,n,i,g,o,u,h,T,M,B,et,1,Q,F)),ui(n,g,T,!K);return}gv(n,i,g,o,u,h,T,M,B)}function dA(n){for(var i=n;;){var o=i.tag;if((o===0||o===11||o===15)&&i.flags&16384&&(o=i.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var u=0;u<o.length;u++){var h=o[u],g=h.getSnapshot;h=h.value;try{if(!ln(g(),h))return!1}catch{return!1}}if(o=i.child,i.subtreeFlags&16384&&o!==null)o.return=i,i=o;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function ui(n,i,o,u){i&=~Kd,i&=~Hi,n.suspendedLanes|=i,n.pingedLanes&=~i,u&&(n.warmLanes|=i),u=n.expirationTimes;for(var h=i;0<h;){var g=31-He(h),T=1<<g;u[g]=-1,h&=~T}o!==0&&xg(n,o,i)}function bu(){return(Pt&6)===0?(gs(0),!1):!0}function th(){if(kt!==null){if(Gt===0)var n=kt.return;else n=kt,yr=$i=null,yd(n),Da=null,os=0,n=kt;for(;n!==null;)Py(n.alternate,n),n=n.return;kt=null}}function Ba(n,i){var o=n.timeoutHandle;o!==-1&&(n.timeoutHandle=-1,kA(o)),o=n.cancelPendingCommit,o!==null&&(n.cancelPendingCommit=null,o()),th(),ee=n,kt=o=pr(n.current,null),_t=i,Gt=0,dn=null,ai=!1,Na=_o(n,i),Xd=!1,La=On=Kd=Hi=oi=ue=0,nn=ps=null,Zd=!1,(i&8)!==0&&(i|=i&32);var u=n.entangledLanes;if(u!==0)for(n=n.entanglements,u&=i;0<u;){var h=31-He(u),g=1<<h;i|=n[h],u&=~g}return Er=i,Il(),o}function cv(n,i){Ot=null,j.H=ou,i===Fo||i===Ql?(i=M0(),Gt=3):i===A0?(i=M0(),Gt=4):Gt=i===Oy?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,dn=i,kt===null&&(ue=1,fu(n,Cn(i,n.current)))}function fv(){var n=j.H;return j.H=ou,n===null?ou:n}function dv(){var n=j.A;return j.A=cA,n}function eh(){ue=4,ai||(_t&4194048)!==_t&&Mn.current!==null||(Na=!0),(oi&134217727)===0&&(Hi&134217727)===0||ee===null||ui(ee,_t,On,!1)}function nh(n,i,o){var u=Pt;Pt|=2;var h=fv(),g=dv();(ee!==n||_t!==i)&&(vu=null,Ba(n,i)),i=!1;var T=ue;t:do try{if(Gt!==0&&kt!==null){var M=kt,B=dn;switch(Gt){case 8:th(),T=6;break t;case 3:case 2:case 9:case 6:Mn.current===null&&(i=!0);var K=Gt;if(Gt=0,dn=null,Ha(n,M,B,K),o&&Na){T=0;break t}break;default:K=Gt,Gt=0,dn=null,Ha(n,M,B,K)}}hA(),T=ue;break}catch(et){cv(n,et)}while(!0);return i&&n.shellSuspendCounter++,yr=$i=null,Pt=u,j.H=h,j.A=g,kt===null&&(ee=null,_t=0,Il()),T}function hA(){for(;kt!==null;)hv(kt)}function pA(n,i){var o=Pt;Pt|=2;var u=fv(),h=dv();ee!==n||_t!==i?(vu=null,yu=jt()+500,Ba(n,i)):Na=_o(n,i);t:do try{if(Gt!==0&&kt!==null){i=kt;var g=dn;e:switch(Gt){case 1:Gt=0,dn=null,Ha(n,i,g,1);break;case 2:case 9:if(E0(g)){Gt=0,dn=null,pv(i);break}i=function(){Gt!==2&&Gt!==9||ee!==n||(Gt=7),tr(n)},g.then(i,i);break t;case 3:Gt=7;break t;case 4:Gt=5;break t;case 7:E0(g)?(Gt=0,dn=null,pv(i)):(Gt=0,dn=null,Ha(n,i,g,7));break;case 5:var T=null;switch(kt.tag){case 26:T=kt.memoizedState;case 5:case 27:var M=kt;if(!T||Zv(T)){Gt=0,dn=null;var B=M.sibling;if(B!==null)kt=B;else{var K=M.return;K!==null?(kt=K,xu(K)):kt=null}break e}}Gt=0,dn=null,Ha(n,i,g,5);break;case 6:Gt=0,dn=null,Ha(n,i,g,6);break;case 8:th(),ue=6;break t;default:throw Error(a(462))}}mA();break}catch(et){cv(n,et)}while(!0);return yr=$i=null,j.H=u,j.A=h,Pt=o,kt!==null?0:(ee=null,_t=0,Il(),ue)}function mA(){for(;kt!==null&&!Yt();)hv(kt)}function hv(n){var i=Hy(n.alternate,n,Er);n.memoizedProps=n.pendingProps,i===null?xu(n):kt=i}function pv(n){var i=n,o=i.alternate;switch(i.tag){case 15:case 0:i=$y(o,i,i.pendingProps,i.type,void 0,_t);break;case 11:i=$y(o,i,i.pendingProps,i.type.render,i.ref,_t);break;case 5:yd(i);default:Py(o,i),i=kt=m0(i,Er),i=Hy(o,i,Er)}n.memoizedProps=n.pendingProps,i===null?xu(n):kt=i}function Ha(n,i,o,u){yr=$i=null,yd(i),Da=null,os=0;var h=i.return;try{if(iA(n,h,i,o,_t)){ue=1,fu(n,Cn(o,n.current)),kt=null;return}}catch(g){if(h!==null)throw kt=h,g;ue=1,fu(n,Cn(o,n.current)),kt=null;return}i.flags&32768?(Ut||u===1?n=!0:Na||(_t&536870912)!==0?n=!1:(ai=n=!0,(u===2||u===9||u===3||u===6)&&(u=Mn.current,u!==null&&u.tag===13&&(u.flags|=16384))),mv(i,n)):xu(i)}function xu(n){var i=n;do{if((i.flags&32768)!==0){mv(i,ai);return}n=i.return;var o=oA(i.alternate,i,Er);if(o!==null){kt=o;return}if(i=i.sibling,i!==null){kt=i;return}kt=i=n}while(i!==null);ue===0&&(ue=5)}function mv(n,i){do{var o=sA(n.alternate,n);if(o!==null){o.flags&=32767,kt=o;return}if(o=n.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!i&&(n=n.sibling,n!==null)){kt=n;return}kt=n=o}while(n!==null);ue=6,kt=null}function gv(n,i,o,u,h,g,T,M,B){n.cancelPendingCommit=null;do Su();while(ze!==0);if((Pt&6)!==0)throw Error(a(327));if(i!==null){if(i===n.current)throw Error(a(177));if(g=i.lanes|i.childLanes,g|=Vf,XT(n,o,g,T,M,B),n===ee&&(kt=ee=null,_t=0),ja=i,li=n,Ua=o,Fd=g,Wd=h,ov=u,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,bA(De,function(){return Sv(),null})):(n.callbackNode=null,n.callbackPriority=0),u=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||u){u=j.T,j.T=null,h=Y.p,Y.p=2,T=Pt,Pt|=4;try{lA(n,i,o)}finally{Pt=T,Y.p=h,j.T=u}}ze=1,yv(),vv(),bv()}}function yv(){if(ze===1){ze=0;var n=li,i=ja,o=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||o){o=j.T,j.T=null;var u=Y.p;Y.p=2;var h=Pt;Pt|=4;try{Jy(i,n);var g=ph,T=a0(n.containerInfo),M=g.focusedElem,B=g.selectionRange;if(T!==M&&M&&M.ownerDocument&&i0(M.ownerDocument.documentElement,M)){if(B!==null&&If(M)){var K=B.start,et=B.end;if(et===void 0&&(et=K),"selectionStart"in M)M.selectionStart=K,M.selectionEnd=Math.min(et,M.value.length);else{var st=M.ownerDocument||document,Q=st&&st.defaultView||window;if(Q.getSelection){var F=Q.getSelection(),Ct=M.textContent.length,xt=Math.min(B.start,Ct),Xt=B.end===void 0?xt:Math.min(B.end,Ct);!F.extend&&xt>Xt&&(T=Xt,Xt=xt,xt=T);var V=r0(M,xt),P=r0(M,Xt);if(V&&P&&(F.rangeCount!==1||F.anchorNode!==V.node||F.anchorOffset!==V.offset||F.focusNode!==P.node||F.focusOffset!==P.offset)){var X=st.createRange();X.setStart(V.node,V.offset),F.removeAllRanges(),xt>Xt?(F.addRange(X),F.extend(P.node,P.offset)):(X.setEnd(P.node,P.offset),F.addRange(X))}}}}for(st=[],F=M;F=F.parentNode;)F.nodeType===1&&st.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof M.focus=="function"&&M.focus(),M=0;M<st.length;M++){var rt=st[M];rt.element.scrollLeft=rt.left,rt.element.scrollTop=rt.top}}zu=!!hh,ph=hh=null}finally{Pt=h,Y.p=u,j.T=o}}n.current=i,ze=2}}function vv(){if(ze===2){ze=0;var n=li,i=ja,o=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||o){o=j.T,j.T=null;var u=Y.p;Y.p=2;var h=Pt;Pt|=4;try{Zy(n,i.alternate,i)}finally{Pt=h,Y.p=u,j.T=o}}ze=3}}function bv(){if(ze===4||ze===3){ze=0,re();var n=li,i=ja,o=Ua,u=ov;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?ze=5:(ze=0,ja=li=null,xv(n,n.pendingLanes));var h=n.pendingLanes;if(h===0&&(si=null),xf(o),i=i.stateNode,ve&&typeof ve.onCommitFiberRoot=="function")try{ve.onCommitFiberRoot(In,i,void 0,(i.current.flags&128)===128)}catch{}if(u!==null){i=j.T,h=Y.p,Y.p=2,j.T=null;try{for(var g=n.onRecoverableError,T=0;T<u.length;T++){var M=u[T];g(M.value,{componentStack:M.stack})}}finally{j.T=i,Y.p=h}}(Ua&3)!==0&&Su(),tr(n),h=n.pendingLanes,(o&4194090)!==0&&(h&42)!==0?n===Jd?ms++:(ms=0,Jd=n):ms=0,gs(0)}}function xv(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,Zo(i)))}function Su(n){return yv(),vv(),bv(),Sv()}function Sv(){if(ze!==5)return!1;var n=li,i=Fd;Fd=0;var o=xf(Ua),u=j.T,h=Y.p;try{Y.p=32>o?32:o,j.T=null,o=Wd,Wd=null;var g=li,T=Ua;if(ze=0,ja=li=null,Ua=0,(Pt&6)!==0)throw Error(a(331));var M=Pt;if(Pt|=4,iv(g.current),ev(g,g.current,T,o),Pt=M,gs(0,!1),ve&&typeof ve.onPostCommitFiberRoot=="function")try{ve.onPostCommitFiberRoot(In,g)}catch{}return!0}finally{Y.p=h,j.T=u,xv(n,i)}}function Tv(n,i,o){i=Cn(o,i),i=Dd(n.stateNode,i,2),n=Wr(n,i,2),n!==null&&(zo(n,2),tr(n))}function Zt(n,i,o){if(n.tag===3)Tv(n,n,o);else for(;i!==null;){if(i.tag===3){Tv(i,n,o);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(si===null||!si.has(u))){n=Cn(o,n),o=wy(2),u=Wr(i,o,2),u!==null&&(My(o,u,i,n),zo(u,2),tr(u));break}}i=i.return}}function rh(n,i,o){var u=n.pingCache;if(u===null){u=n.pingCache=new fA;var h=new Set;u.set(i,h)}else h=u.get(i),h===void 0&&(h=new Set,u.set(i,h));h.has(o)||(Xd=!0,h.add(o),n=gA.bind(null,n,i,o),i.then(n,n))}function gA(n,i,o){var u=n.pingCache;u!==null&&u.delete(i),n.pingedLanes|=n.suspendedLanes&o,n.warmLanes&=~o,ee===n&&(_t&o)===o&&(ue===4||ue===3&&(_t&62914560)===_t&&300>jt()-Qd?(Pt&2)===0&&Ba(n,0):Kd|=o,La===_t&&(La=0)),tr(n)}function Cv(n,i){i===0&&(i=bg()),n=Sa(n,i),n!==null&&(zo(n,i),tr(n))}function yA(n){var i=n.memoizedState,o=0;i!==null&&(o=i.retryLane),Cv(n,o)}function vA(n,i){var o=0;switch(n.tag){case 13:var u=n.stateNode,h=n.memoizedState;h!==null&&(o=h.retryLane);break;case 19:u=n.stateNode;break;case 22:u=n.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(i),Cv(n,o)}function bA(n,i){return $t(n,i)}var Tu=null,Ia=null,ih=!1,Cu=!1,ah=!1,Ii=0;function tr(n){n!==Ia&&n.next===null&&(Ia===null?Tu=Ia=n:Ia=Ia.next=n),Cu=!0,ih||(ih=!0,SA())}function gs(n,i){if(!ah&&Cu){ah=!0;do for(var o=!1,u=Tu;u!==null;){if(n!==0){var h=u.pendingLanes;if(h===0)var g=0;else{var T=u.suspendedLanes,M=u.pingedLanes;g=(1<<31-He(42|n)+1)-1,g&=h&~(T&~M),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(o=!0,Mv(u,g))}else g=_t,g=Rl(u,u===ee?g:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(g&3)===0||_o(u,g)||(o=!0,Mv(u,g));u=u.next}while(o);ah=!1}}function xA(){Av()}function Av(){Cu=ih=!1;var n=0;Ii!==0&&(RA()&&(n=Ii),Ii=0);for(var i=jt(),o=null,u=Tu;u!==null;){var h=u.next,g=Ev(u,i);g===0?(u.next=null,o===null?Tu=h:o.next=h,h===null&&(Ia=o)):(o=u,(n!==0||(g&3)!==0)&&(Cu=!0)),u=h}gs(n)}function Ev(n,i){for(var o=n.suspendedLanes,u=n.pingedLanes,h=n.expirationTimes,g=n.pendingLanes&-62914561;0<g;){var T=31-He(g),M=1<<T,B=h[T];B===-1?((M&o)===0||(M&u)!==0)&&(h[T]=VT(M,i)):B<=i&&(n.expiredLanes|=M),g&=~M}if(i=ee,o=_t,o=Rl(n,n===i?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u=n.callbackNode,o===0||n===i&&(Gt===2||Gt===9)||n.cancelPendingCommit!==null)return u!==null&&u!==null&&gt(u),n.callbackNode=null,n.callbackPriority=0;if((o&3)===0||_o(n,o)){if(i=o&-o,i===n.callbackPriority)return i;switch(u!==null&&gt(u),xf(o)){case 2:case 8:o=Ee;break;case 32:o=De;break;case 268435456:o=Ci;break;default:o=De}return u=wv.bind(null,n),o=$t(o,u),n.callbackPriority=i,n.callbackNode=o,i}return u!==null&&u!==null&&gt(u),n.callbackPriority=2,n.callbackNode=null,2}function wv(n,i){if(ze!==0&&ze!==5)return n.callbackNode=null,n.callbackPriority=0,null;var o=n.callbackNode;if(Su()&&n.callbackNode!==o)return null;var u=_t;return u=Rl(n,n===ee?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u===0?null:(lv(n,u,i),Ev(n,jt()),n.callbackNode!=null&&n.callbackNode===o?wv.bind(null,n):null)}function Mv(n,i){if(Su())return null;lv(n,i,!0)}function SA(){DA(function(){(Pt&6)!==0?$t(Ae,xA):Av()})}function oh(){return Ii===0&&(Ii=vg()),Ii}function Ov(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:$l(""+n)}function Rv(n,i){var o=i.ownerDocument.createElement("input");return o.name=i.name,o.value=i.value,n.id&&o.setAttribute("form",n.id),i.parentNode.insertBefore(o,i),n=new FormData(n),o.parentNode.removeChild(o),n}function TA(n,i,o,u,h){if(i==="submit"&&o&&o.stateNode===h){var g=Ov((h[We]||null).action),T=u.submitter;T&&(i=(i=T[We]||null)?Ov(i.formAction):T.getAttribute("formAction"),i!==null&&(g=i,T=null));var M=new Ul("action","action",null,u,h);n.push({event:M,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Ii!==0){var B=T?Rv(h,T):new FormData(h);wd(o,{pending:!0,data:B,method:h.method,action:g},null,B)}}else typeof g=="function"&&(M.preventDefault(),B=T?Rv(h,T):new FormData(h),wd(o,{pending:!0,data:B,method:h.method,action:g},g,B))},currentTarget:h}]})}}for(var sh=0;sh<qf.length;sh++){var lh=qf[sh],CA=lh.toLowerCase(),AA=lh[0].toUpperCase()+lh.slice(1);Pn(CA,"on"+AA)}Pn(l0,"onAnimationEnd"),Pn(u0,"onAnimationIteration"),Pn(c0,"onAnimationStart"),Pn("dblclick","onDoubleClick"),Pn("focusin","onFocus"),Pn("focusout","onBlur"),Pn(IC,"onTransitionRun"),Pn(PC,"onTransitionStart"),Pn(GC,"onTransitionCancel"),Pn(f0,"onTransitionEnd"),fa("onMouseEnter",["mouseout","mouseover"]),fa("onMouseLeave",["mouseout","mouseover"]),fa("onPointerEnter",["pointerout","pointerover"]),fa("onPointerLeave",["pointerout","pointerover"]),Ei("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ei("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ei("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ei("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ei("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ei("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ys="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(" "),EA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ys));function kv(n,i){i=(i&4)!==0;for(var o=0;o<n.length;o++){var u=n[o],h=u.event;u=u.listeners;t:{var g=void 0;if(i)for(var T=u.length-1;0<=T;T--){var M=u[T],B=M.instance,K=M.currentTarget;if(M=M.listener,B!==g&&h.isPropagationStopped())break t;g=M,h.currentTarget=K;try{g(h)}catch(et){cu(et)}h.currentTarget=null,g=B}else for(T=0;T<u.length;T++){if(M=u[T],B=M.instance,K=M.currentTarget,M=M.listener,B!==g&&h.isPropagationStopped())break t;g=M,h.currentTarget=K;try{g(h)}catch(et){cu(et)}h.currentTarget=null,g=B}}}}function Dt(n,i){var o=i[Sf];o===void 0&&(o=i[Sf]=new Set);var u=n+"__bubble";o.has(u)||(Dv(i,n,2,!1),o.add(u))}function uh(n,i,o){var u=0;i&&(u|=4),Dv(o,n,u,i)}var Au="_reactListening"+Math.random().toString(36).slice(2);function ch(n){if(!n[Au]){n[Au]=!0,Ag.forEach(function(o){o!=="selectionchange"&&(EA.has(o)||uh(o,!1,n),uh(o,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[Au]||(i[Au]=!0,uh("selectionchange",!1,i))}}function Dv(n,i,o,u){switch(eb(i)){case 2:var h=WA;break;case 8:h=JA;break;default:h=Ah}o=h.bind(null,i,o,n),h=void 0,!_f||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(h=!0),u?h!==void 0?n.addEventListener(i,o,{capture:!0,passive:h}):n.addEventListener(i,o,!0):h!==void 0?n.addEventListener(i,o,{passive:h}):n.addEventListener(i,o,!1)}function fh(n,i,o,u,h){var g=u;if((i&1)===0&&(i&2)===0&&u!==null)t:for(;;){if(u===null)return;var T=u.tag;if(T===3||T===4){var M=u.stateNode.containerInfo;if(M===h)break;if(T===4)for(T=u.return;T!==null;){var B=T.tag;if((B===3||B===4)&&T.stateNode.containerInfo===h)return;T=T.return}for(;M!==null;){if(T=la(M),T===null)return;if(B=T.tag,B===5||B===6||B===26||B===27){u=g=T;continue t}M=M.parentNode}}u=u.return}Ug(function(){var K=g,et=kf(o),st=[];t:{var Q=d0.get(n);if(Q!==void 0){var F=Ul,Ct=n;switch(n){case"keypress":if(Ll(o)===0)break t;case"keydown":case"keyup":F=bC;break;case"focusin":Ct="focus",F=Lf;break;case"focusout":Ct="blur",F=Lf;break;case"beforeblur":case"afterblur":F=Lf;break;case"click":if(o.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=Ig;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=sC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=TC;break;case l0:case u0:case c0:F=cC;break;case f0:F=AC;break;case"scroll":case"scrollend":F=aC;break;case"wheel":F=wC;break;case"copy":case"cut":case"paste":F=dC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=Gg;break;case"toggle":case"beforetoggle":F=OC}var xt=(i&4)!==0,Xt=!xt&&(n==="scroll"||n==="scrollend"),V=xt?Q!==null?Q+"Capture":null:Q;xt=[];for(var P=K,X;P!==null;){var rt=P;if(X=rt.stateNode,rt=rt.tag,rt!==5&&rt!==26&&rt!==27||X===null||V===null||(rt=Lo(P,V),rt!=null&&xt.push(vs(P,rt,X))),Xt)break;P=P.return}0<xt.length&&(Q=new F(Q,Ct,null,o,et),st.push({event:Q,listeners:xt}))}}if((i&7)===0){t:{if(Q=n==="mouseover"||n==="pointerover",F=n==="mouseout"||n==="pointerout",Q&&o!==Rf&&(Ct=o.relatedTarget||o.fromElement)&&(la(Ct)||Ct[sa]))break t;if((F||Q)&&(Q=et.window===et?et:(Q=et.ownerDocument)?Q.defaultView||Q.parentWindow:window,F?(Ct=o.relatedTarget||o.toElement,F=K,Ct=Ct?la(Ct):null,Ct!==null&&(Xt=l(Ct),xt=Ct.tag,Ct!==Xt||xt!==5&&xt!==27&&xt!==6)&&(Ct=null)):(F=null,Ct=K),F!==Ct)){if(xt=Ig,rt="onMouseLeave",V="onMouseEnter",P="mouse",(n==="pointerout"||n==="pointerover")&&(xt=Gg,rt="onPointerLeave",V="onPointerEnter",P="pointer"),Xt=F==null?Q:No(F),X=Ct==null?Q:No(Ct),Q=new xt(rt,P+"leave",F,o,et),Q.target=Xt,Q.relatedTarget=X,rt=null,la(et)===K&&(xt=new xt(V,P+"enter",Ct,o,et),xt.target=X,xt.relatedTarget=Xt,rt=xt),Xt=rt,F&&Ct)e:{for(xt=F,V=Ct,P=0,X=xt;X;X=Pa(X))P++;for(X=0,rt=V;rt;rt=Pa(rt))X++;for(;0<P-X;)xt=Pa(xt),P--;for(;0<X-P;)V=Pa(V),X--;for(;P--;){if(xt===V||V!==null&&xt===V.alternate)break e;xt=Pa(xt),V=Pa(V)}xt=null}else xt=null;F!==null&&_v(st,Q,F,xt,!1),Ct!==null&&Xt!==null&&_v(st,Xt,Ct,xt,!0)}}t:{if(Q=K?No(K):window,F=Q.nodeName&&Q.nodeName.toLowerCase(),F==="select"||F==="input"&&Q.type==="file")var mt=Fg;else if(Zg(Q))if(Wg)mt=UC;else{mt=LC;var Rt=NC}else F=Q.nodeName,!F||F.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?K&&Of(K.elementType)&&(mt=Fg):mt=jC;if(mt&&(mt=mt(n,K))){Qg(st,mt,o,et);break t}Rt&&Rt(n,Q,K),n==="focusout"&&K&&Q.type==="number"&&K.memoizedProps.value!=null&&Mf(Q,"number",Q.value)}switch(Rt=K?No(K):window,n){case"focusin":(Zg(Rt)||Rt.contentEditable==="true")&&(va=Rt,Pf=K,Yo=null);break;case"focusout":Yo=Pf=va=null;break;case"mousedown":Gf=!0;break;case"contextmenu":case"mouseup":case"dragend":Gf=!1,o0(st,o,et);break;case"selectionchange":if(HC)break;case"keydown":case"keyup":o0(st,o,et)}var yt;if(Uf)t:{switch(n){case"compositionstart":var Tt="onCompositionStart";break t;case"compositionend":Tt="onCompositionEnd";break t;case"compositionupdate":Tt="onCompositionUpdate";break t}Tt=void 0}else ya?Xg(n,o)&&(Tt="onCompositionEnd"):n==="keydown"&&o.keyCode===229&&(Tt="onCompositionStart");Tt&&(Yg&&o.locale!=="ko"&&(ya||Tt!=="onCompositionStart"?Tt==="onCompositionEnd"&&ya&&(yt=Bg()):(Kr=et,zf="value"in Kr?Kr.value:Kr.textContent,ya=!0)),Rt=Eu(K,Tt),0<Rt.length&&(Tt=new Pg(Tt,n,null,o,et),st.push({event:Tt,listeners:Rt}),yt?Tt.data=yt:(yt=Kg(o),yt!==null&&(Tt.data=yt)))),(yt=kC?DC(n,o):_C(n,o))&&(Tt=Eu(K,"onBeforeInput"),0<Tt.length&&(Rt=new Pg("onBeforeInput","beforeinput",null,o,et),st.push({event:Rt,listeners:Tt}),Rt.data=yt)),TA(st,n,K,o,et)}kv(st,i)})}function vs(n,i,o){return{instance:n,listener:i,currentTarget:o}}function Eu(n,i){for(var o=i+"Capture",u=[];n!==null;){var h=n,g=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||g===null||(h=Lo(n,o),h!=null&&u.unshift(vs(n,h,g)),h=Lo(n,i),h!=null&&u.push(vs(n,h,g))),n.tag===3)return u;n=n.return}return[]}function Pa(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function _v(n,i,o,u,h){for(var g=i._reactName,T=[];o!==null&&o!==u;){var M=o,B=M.alternate,K=M.stateNode;if(M=M.tag,B!==null&&B===u)break;M!==5&&M!==26&&M!==27||K===null||(B=K,h?(K=Lo(o,g),K!=null&&T.unshift(vs(o,K,B))):h||(K=Lo(o,g),K!=null&&T.push(vs(o,K,B)))),o=o.return}T.length!==0&&n.push({event:i,listeners:T})}var wA=/\r\n?/g,MA=/\u0000|\uFFFD/g;function zv(n){return(typeof n=="string"?n:""+n).replace(wA,` 49 + `).replace(MA,"")}function $v(n,i){return i=zv(i),zv(n)===i}function wu(){}function Vt(n,i,o,u,h,g){switch(o){case"children":typeof u=="string"?i==="body"||i==="textarea"&&u===""||pa(n,u):(typeof u=="number"||typeof u=="bigint")&&i!=="body"&&pa(n,""+u);break;case"className":Dl(n,"class",u);break;case"tabIndex":Dl(n,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Dl(n,o,u);break;case"style":Lg(n,u,g);break;case"data":if(i!=="object"){Dl(n,"data",u);break}case"src":case"href":if(u===""&&(i!=="a"||o!=="href")){n.removeAttribute(o);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(o);break}u=$l(""+u),n.setAttribute(o,u);break;case"action":case"formAction":if(typeof u=="function"){n.setAttribute(o,"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 g=="function"&&(o==="formAction"?(i!=="input"&&Vt(n,i,"name",h.name,h,null),Vt(n,i,"formEncType",h.formEncType,h,null),Vt(n,i,"formMethod",h.formMethod,h,null),Vt(n,i,"formTarget",h.formTarget,h,null)):(Vt(n,i,"encType",h.encType,h,null),Vt(n,i,"method",h.method,h,null),Vt(n,i,"target",h.target,h,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(o);break}u=$l(""+u),n.setAttribute(o,u);break;case"onClick":u!=null&&(n.onclick=wu);break;case"onScroll":u!=null&&Dt("scroll",n);break;case"onScrollEnd":u!=null&&Dt("scrollend",n);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(o=u.__html,o!=null){if(h.children!=null)throw Error(a(60));n.innerHTML=o}}break;case"multiple":n.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":n.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){n.removeAttribute("xlink:href");break}o=$l(""+u),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(o,""+u):n.removeAttribute(o);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":u&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(o,""):n.removeAttribute(o);break;case"capture":case"download":u===!0?n.setAttribute(o,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(o,u):n.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?n.setAttribute(o,u):n.removeAttribute(o);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?n.removeAttribute(o):n.setAttribute(o,u);break;case"popover":Dt("beforetoggle",n),Dt("toggle",n),kl(n,"popover",u);break;case"xlinkActuate":dr(n,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":dr(n,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":dr(n,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":dr(n,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":dr(n,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":dr(n,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":dr(n,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":dr(n,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":dr(n,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":kl(n,"is",u);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=rC.get(o)||o,kl(n,o,u))}}function dh(n,i,o,u,h,g){switch(o){case"style":Lg(n,u,g);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(o=u.__html,o!=null){if(h.children!=null)throw Error(a(60));n.innerHTML=o}}break;case"children":typeof u=="string"?pa(n,u):(typeof u=="number"||typeof u=="bigint")&&pa(n,""+u);break;case"onScroll":u!=null&&Dt("scroll",n);break;case"onScrollEnd":u!=null&&Dt("scrollend",n);break;case"onClick":u!=null&&(n.onclick=wu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Eg.hasOwnProperty(o))t:{if(o[0]==="o"&&o[1]==="n"&&(h=o.endsWith("Capture"),i=o.slice(2,h?o.length-7:void 0),g=n[We]||null,g=g!=null?g[o]:null,typeof g=="function"&&n.removeEventListener(i,g,h),typeof u=="function")){typeof g!="function"&&g!==null&&(o in n?n[o]=null:n.hasAttribute(o)&&n.removeAttribute(o)),n.addEventListener(i,u,h);break t}o in n?n[o]=u:u===!0?n.setAttribute(o,""):kl(n,o,u)}}}function $e(n,i,o){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Dt("error",n),Dt("load",n);var u=!1,h=!1,g;for(g in o)if(o.hasOwnProperty(g)){var T=o[g];if(T!=null)switch(g){case"src":u=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:Vt(n,i,g,T,o,null)}}h&&Vt(n,i,"srcSet",o.srcSet,o,null),u&&Vt(n,i,"src",o.src,o,null);return;case"input":Dt("invalid",n);var M=g=T=h=null,B=null,K=null;for(u in o)if(o.hasOwnProperty(u)){var et=o[u];if(et!=null)switch(u){case"name":h=et;break;case"type":T=et;break;case"checked":B=et;break;case"defaultChecked":K=et;break;case"value":g=et;break;case"defaultValue":M=et;break;case"children":case"dangerouslySetInnerHTML":if(et!=null)throw Error(a(137,i));break;default:Vt(n,i,u,et,o,null)}}_g(n,g,M,B,K,T,h,!1),_l(n);return;case"select":Dt("invalid",n),u=T=g=null;for(h in o)if(o.hasOwnProperty(h)&&(M=o[h],M!=null))switch(h){case"value":g=M;break;case"defaultValue":T=M;break;case"multiple":u=M;default:Vt(n,i,h,M,o,null)}i=g,o=T,n.multiple=!!u,i!=null?ha(n,!!u,i,!1):o!=null&&ha(n,!!u,o,!0);return;case"textarea":Dt("invalid",n),g=h=u=null;for(T in o)if(o.hasOwnProperty(T)&&(M=o[T],M!=null))switch(T){case"value":u=M;break;case"defaultValue":h=M;break;case"children":g=M;break;case"dangerouslySetInnerHTML":if(M!=null)throw Error(a(91));break;default:Vt(n,i,T,M,o,null)}$g(n,u,h,g),_l(n);return;case"option":for(B in o)if(o.hasOwnProperty(B)&&(u=o[B],u!=null))switch(B){case"selected":n.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:Vt(n,i,B,u,o,null)}return;case"dialog":Dt("beforetoggle",n),Dt("toggle",n),Dt("cancel",n),Dt("close",n);break;case"iframe":case"object":Dt("load",n);break;case"video":case"audio":for(u=0;u<ys.length;u++)Dt(ys[u],n);break;case"image":Dt("error",n),Dt("load",n);break;case"details":Dt("toggle",n);break;case"embed":case"source":case"link":Dt("error",n),Dt("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in o)if(o.hasOwnProperty(K)&&(u=o[K],u!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:Vt(n,i,K,u,o,null)}return;default:if(Of(i)){for(et in o)o.hasOwnProperty(et)&&(u=o[et],u!==void 0&&dh(n,i,et,u,o,void 0));return}}for(M in o)o.hasOwnProperty(M)&&(u=o[M],u!=null&&Vt(n,i,M,u,o,null))}function OA(n,i,o,u){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,g=null,T=null,M=null,B=null,K=null,et=null;for(F in o){var st=o[F];if(o.hasOwnProperty(F)&&st!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":B=st;default:u.hasOwnProperty(F)||Vt(n,i,F,null,u,st)}}for(var Q in u){var F=u[Q];if(st=o[Q],u.hasOwnProperty(Q)&&(F!=null||st!=null))switch(Q){case"type":g=F;break;case"name":h=F;break;case"checked":K=F;break;case"defaultChecked":et=F;break;case"value":T=F;break;case"defaultValue":M=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(a(137,i));break;default:F!==st&&Vt(n,i,Q,F,u,st)}}wf(n,T,M,B,K,et,g,h);return;case"select":F=T=M=Q=null;for(g in o)if(B=o[g],o.hasOwnProperty(g)&&B!=null)switch(g){case"value":break;case"multiple":F=B;default:u.hasOwnProperty(g)||Vt(n,i,g,null,u,B)}for(h in u)if(g=u[h],B=o[h],u.hasOwnProperty(h)&&(g!=null||B!=null))switch(h){case"value":Q=g;break;case"defaultValue":M=g;break;case"multiple":T=g;default:g!==B&&Vt(n,i,h,g,u,B)}i=M,o=T,u=F,Q!=null?ha(n,!!o,Q,!1):!!u!=!!o&&(i!=null?ha(n,!!o,i,!0):ha(n,!!o,o?[]:"",!1));return;case"textarea":F=Q=null;for(M in o)if(h=o[M],o.hasOwnProperty(M)&&h!=null&&!u.hasOwnProperty(M))switch(M){case"value":break;case"children":break;default:Vt(n,i,M,null,u,h)}for(T in u)if(h=u[T],g=o[T],u.hasOwnProperty(T)&&(h!=null||g!=null))switch(T){case"value":Q=h;break;case"defaultValue":F=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(a(91));break;default:h!==g&&Vt(n,i,T,h,u,g)}zg(n,Q,F);return;case"option":for(var Ct in o)if(Q=o[Ct],o.hasOwnProperty(Ct)&&Q!=null&&!u.hasOwnProperty(Ct))switch(Ct){case"selected":n.selected=!1;break;default:Vt(n,i,Ct,null,u,Q)}for(B in u)if(Q=u[B],F=o[B],u.hasOwnProperty(B)&&Q!==F&&(Q!=null||F!=null))switch(B){case"selected":n.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:Vt(n,i,B,Q,u,F)}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 xt in o)Q=o[xt],o.hasOwnProperty(xt)&&Q!=null&&!u.hasOwnProperty(xt)&&Vt(n,i,xt,null,u,Q);for(K in u)if(Q=u[K],F=o[K],u.hasOwnProperty(K)&&Q!==F&&(Q!=null||F!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(a(137,i));break;default:Vt(n,i,K,Q,u,F)}return;default:if(Of(i)){for(var Xt in o)Q=o[Xt],o.hasOwnProperty(Xt)&&Q!==void 0&&!u.hasOwnProperty(Xt)&&dh(n,i,Xt,void 0,u,Q);for(et in u)Q=u[et],F=o[et],!u.hasOwnProperty(et)||Q===F||Q===void 0&&F===void 0||dh(n,i,et,Q,u,F);return}}for(var V in o)Q=o[V],o.hasOwnProperty(V)&&Q!=null&&!u.hasOwnProperty(V)&&Vt(n,i,V,null,u,Q);for(st in u)Q=u[st],F=o[st],!u.hasOwnProperty(st)||Q===F||Q==null&&F==null||Vt(n,i,st,Q,u,F)}var hh=null,ph=null;function Mu(n){return n.nodeType===9?n:n.ownerDocument}function Nv(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Lv(n,i){if(n===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&i==="foreignObject"?0:n}function mh(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var gh=null;function RA(){var n=window.event;return n&&n.type==="popstate"?n===gh?!1:(gh=n,!0):(gh=null,!1)}var jv=typeof setTimeout=="function"?setTimeout:void 0,kA=typeof clearTimeout=="function"?clearTimeout:void 0,Uv=typeof Promise=="function"?Promise:void 0,DA=typeof queueMicrotask=="function"?queueMicrotask:typeof Uv<"u"?function(n){return Uv.resolve(null).then(n).catch(_A)}:jv;function _A(n){setTimeout(function(){throw n})}function ci(n){return n==="head"}function Bv(n,i){var o=i,u=0,h=0;do{var g=o.nextSibling;if(n.removeChild(o),g&&g.nodeType===8)if(o=g.data,o==="/$"){if(0<u&&8>u){o=u;var T=n.ownerDocument;if(o&1&&bs(T.documentElement),o&2&&bs(T.body),o&4)for(o=T.head,bs(o),T=o.firstChild;T;){var M=T.nextSibling,B=T.nodeName;T[$o]||B==="SCRIPT"||B==="STYLE"||B==="LINK"&&T.rel.toLowerCase()==="stylesheet"||o.removeChild(T),T=M}}if(h===0){n.removeChild(g),Ms(i);return}h--}else o==="$"||o==="$?"||o==="$!"?h++:u=o.charCodeAt(0)-48;else u=0;o=g}while(o);Ms(i)}function yh(n){var i=n.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var o=i;switch(i=i.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":yh(o),Tf(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}n.removeChild(o)}}function zA(n,i,o,u){for(;n.nodeType===1;){var h=o;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!u&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(u){if(!n[$o])switch(i){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(g=n.getAttribute("rel"),g==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(g!==h.rel||n.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||n.getAttribute("title")!==(h.title==null?null:h.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(g=n.getAttribute("src"),(g!==(h.src==null?null:h.src)||n.getAttribute("type")!==(h.type==null?null:h.type)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&g&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var g=h.name==null?null:""+h.name;if(h.type==="hidden"&&n.getAttribute("name")===g)return n}else return n;if(n=Yn(n.nextSibling),n===null)break}return null}function $A(n,i,o){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!o||(n=Yn(n.nextSibling),n===null))return null;return n}function vh(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function NA(n,i){var o=n.ownerDocument;if(n.data!=="$?"||o.readyState==="complete")i();else{var u=function(){i(),o.removeEventListener("DOMContentLoaded",u)};o.addEventListener("DOMContentLoaded",u),n._reactRetry=u}}function Yn(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?"||i==="F!"||i==="F")break;if(i==="/$")return null}}return n}var bh=null;function Hv(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var o=n.data;if(o==="$"||o==="$!"||o==="$?"){if(i===0)return n;i--}else o==="/$"&&i++}n=n.previousSibling}return null}function Iv(n,i,o){switch(i=Mu(o),n){case"html":if(n=i.documentElement,!n)throw Error(a(452));return n;case"head":if(n=i.head,!n)throw Error(a(453));return n;case"body":if(n=i.body,!n)throw Error(a(454));return n;default:throw Error(a(451))}}function bs(n){for(var i=n.attributes;i.length;)n.removeAttributeNode(i[0]);Tf(n)}var Rn=new Map,Pv=new Set;function Ou(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var wr=Y.d;Y.d={f:LA,r:jA,D:UA,C:BA,L:HA,m:IA,X:GA,S:PA,M:YA};function LA(){var n=wr.f(),i=bu();return n||i}function jA(n){var i=ua(n);i!==null&&i.tag===5&&i.type==="form"?ly(i):wr.r(n)}var Ga=typeof document>"u"?null:document;function Gv(n,i,o){var u=Ga;if(u&&typeof i=="string"&&i){var h=Tn(i);h='link[rel="'+n+'"][href="'+h+'"]',typeof o=="string"&&(h+='[crossorigin="'+o+'"]'),Pv.has(h)||(Pv.add(h),n={rel:n,crossOrigin:o,href:i},u.querySelector(h)===null&&(i=u.createElement("link"),$e(i,"link",n),we(i),u.head.appendChild(i)))}}function UA(n){wr.D(n),Gv("dns-prefetch",n,null)}function BA(n,i){wr.C(n,i),Gv("preconnect",n,i)}function HA(n,i,o){wr.L(n,i,o);var u=Ga;if(u&&n&&i){var h='link[rel="preload"][as="'+Tn(i)+'"]';i==="image"&&o&&o.imageSrcSet?(h+='[imagesrcset="'+Tn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(h+='[imagesizes="'+Tn(o.imageSizes)+'"]')):h+='[href="'+Tn(n)+'"]';var g=h;switch(i){case"style":g=Ya(n);break;case"script":g=qa(n)}Rn.has(g)||(n=m({rel:"preload",href:i==="image"&&o&&o.imageSrcSet?void 0:n,as:i},o),Rn.set(g,n),u.querySelector(h)!==null||i==="style"&&u.querySelector(xs(g))||i==="script"&&u.querySelector(Ss(g))||(i=u.createElement("link"),$e(i,"link",n),we(i),u.head.appendChild(i)))}}function IA(n,i){wr.m(n,i);var o=Ga;if(o&&n){var u=i&&typeof i.as=="string"?i.as:"script",h='link[rel="modulepreload"][as="'+Tn(u)+'"][href="'+Tn(n)+'"]',g=h;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=qa(n)}if(!Rn.has(g)&&(n=m({rel:"modulepreload",href:n},i),Rn.set(g,n),o.querySelector(h)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Ss(g)))return}u=o.createElement("link"),$e(u,"link",n),we(u),o.head.appendChild(u)}}}function PA(n,i,o){wr.S(n,i,o);var u=Ga;if(u&&n){var h=ca(u).hoistableStyles,g=Ya(n);i=i||"default";var T=h.get(g);if(!T){var M={loading:0,preload:null};if(T=u.querySelector(xs(g)))M.loading=5;else{n=m({rel:"stylesheet",href:n,"data-precedence":i},o),(o=Rn.get(g))&&xh(n,o);var B=T=u.createElement("link");we(B),$e(B,"link",n),B._p=new Promise(function(K,et){B.onload=K,B.onerror=et}),B.addEventListener("load",function(){M.loading|=1}),B.addEventListener("error",function(){M.loading|=2}),M.loading|=4,Ru(T,i,u)}T={type:"stylesheet",instance:T,count:1,state:M},h.set(g,T)}}}function GA(n,i){wr.X(n,i);var o=Ga;if(o&&n){var u=ca(o).hoistableScripts,h=qa(n),g=u.get(h);g||(g=o.querySelector(Ss(h)),g||(n=m({src:n,async:!0},i),(i=Rn.get(h))&&Sh(n,i),g=o.createElement("script"),we(g),$e(g,"link",n),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},u.set(h,g))}}function YA(n,i){wr.M(n,i);var o=Ga;if(o&&n){var u=ca(o).hoistableScripts,h=qa(n),g=u.get(h);g||(g=o.querySelector(Ss(h)),g||(n=m({src:n,async:!0,type:"module"},i),(i=Rn.get(h))&&Sh(n,i),g=o.createElement("script"),we(g),$e(g,"link",n),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},u.set(h,g))}}function Yv(n,i,o,u){var h=(h=ft.current)?Ou(h):null;if(!h)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(i=Ya(o.href),o=ca(h).hoistableStyles,u=o.get(i),u||(u={type:"style",instance:null,count:0,state:null},o.set(i,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){n=Ya(o.href);var g=ca(h).hoistableStyles,T=g.get(n);if(T||(h=h.ownerDocument||h,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(n,T),(g=h.querySelector(xs(n)))&&!g._p&&(T.instance=g,T.state.loading=5),Rn.has(n)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Rn.set(n,o),g||qA(h,n,o,T.state))),i&&u===null)throw Error(a(528,""));return T}if(i&&u!==null)throw Error(a(529,""));return null;case"script":return i=o.async,o=o.src,typeof o=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=qa(o),o=ca(h).hoistableScripts,u=o.get(i),u||(u={type:"script",instance:null,count:0,state:null},o.set(i,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,n))}}function Ya(n){return'href="'+Tn(n)+'"'}function xs(n){return'link[rel="stylesheet"]['+n+"]"}function qv(n){return m({},n,{"data-precedence":n.precedence,precedence:null})}function qA(n,i,o,u){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?u.loading=1:(i=n.createElement("link"),u.preload=i,i.addEventListener("load",function(){return u.loading|=1}),i.addEventListener("error",function(){return u.loading|=2}),$e(i,"link",o),we(i),n.head.appendChild(i))}function qa(n){return'[src="'+Tn(n)+'"]'}function Ss(n){return"script[async]"+n}function Vv(n,i,o){if(i.count++,i.instance===null)switch(i.type){case"style":var u=n.querySelector('style[data-href~="'+Tn(o.href)+'"]');if(u)return i.instance=u,we(u),u;var h=m({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return u=(n.ownerDocument||n).createElement("style"),we(u),$e(u,"style",h),Ru(u,o.precedence,n),i.instance=u;case"stylesheet":h=Ya(o.href);var g=n.querySelector(xs(h));if(g)return i.state.loading|=4,i.instance=g,we(g),g;u=qv(o),(h=Rn.get(h))&&xh(u,h),g=(n.ownerDocument||n).createElement("link"),we(g);var T=g;return T._p=new Promise(function(M,B){T.onload=M,T.onerror=B}),$e(g,"link",u),i.state.loading|=4,Ru(g,o.precedence,n),i.instance=g;case"script":return g=qa(o.src),(h=n.querySelector(Ss(g)))?(i.instance=h,we(h),h):(u=o,(h=Rn.get(g))&&(u=m({},o),Sh(u,h)),n=n.ownerDocument||n,h=n.createElement("script"),we(h),$e(h,"link",u),n.head.appendChild(h),i.instance=h);case"void":return null;default:throw Error(a(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(u=i.instance,i.state.loading|=4,Ru(u,o.precedence,n));return i.instance}function Ru(n,i,o){for(var u=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=u.length?u[u.length-1]:null,g=h,T=0;T<u.length;T++){var M=u[T];if(M.dataset.precedence===i)g=M;else if(g!==h)break}g?g.parentNode.insertBefore(n,g.nextSibling):(i=o.nodeType===9?o.head:o,i.insertBefore(n,i.firstChild))}function xh(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function Sh(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}var ku=null;function Xv(n,i,o){if(ku===null){var u=new Map,h=ku=new Map;h.set(o,u)}else h=ku,u=h.get(o),u||(u=new Map,h.set(o,u));if(u.has(n))return u;for(u.set(n,null),o=o.getElementsByTagName(n),h=0;h<o.length;h++){var g=o[h];if(!(g[$o]||g[Ge]||n==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var T=g.getAttribute(i)||"";T=n+T;var M=u.get(T);M?M.push(g):u.set(T,[g])}}return u}function Kv(n,i,o){n=n.ownerDocument||n,n.head.insertBefore(o,i==="title"?n.querySelector("head > title"):null)}function VA(n,i,o){if(o===1||i.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return n=i.disabled,typeof i.precedence=="string"&&n==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function Zv(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var Ts=null;function XA(){}function KA(n,i,o){if(Ts===null)throw Error(a(475));var u=Ts;if(i.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var h=Ya(o.href),g=n.querySelector(xs(h));if(g){n=g._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(u.count++,u=Du.bind(u),n.then(u,u)),i.state.loading|=4,i.instance=g,we(g);return}g=n.ownerDocument||n,o=qv(o),(h=Rn.get(h))&&xh(o,h),g=g.createElement("link"),we(g);var T=g;T._p=new Promise(function(M,B){T.onload=M,T.onerror=B}),$e(g,"link",o),i.instance=g}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(u.count++,i=Du.bind(u),n.addEventListener("load",i),n.addEventListener("error",i))}}function ZA(){if(Ts===null)throw Error(a(475));var n=Ts;return n.stylesheets&&n.count===0&&Th(n,n.stylesheets),0<n.count?function(i){var o=setTimeout(function(){if(n.stylesheets&&Th(n,n.stylesheets),n.unsuspend){var u=n.unsuspend;n.unsuspend=null,u()}},6e4);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(o)}}:null}function Du(){if(this.count--,this.count===0){if(this.stylesheets)Th(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var _u=null;function Th(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,_u=new Map,i.forEach(QA,n),_u=null,Du.call(n))}function QA(n,i){if(!(i.state.loading&4)){var o=_u.get(n);if(o)var u=o.get(null);else{o=new Map,_u.set(n,o);for(var h=n.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<h.length;g++){var T=h[g];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(o.set(T.dataset.precedence,T),u=T)}u&&o.set(null,u)}h=i.instance,T=h.getAttribute("data-precedence"),g=o.get(T)||u,g===u&&o.set(null,h),o.set(T,h),this.count++,u=Du.bind(this),h.addEventListener("load",u),h.addEventListener("error",u),g?g.parentNode.insertBefore(h,g.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(h,n.firstChild)),i.state.loading|=4}}var Cs={$$typeof:O,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function FA(n,i,o,u,h,g,T,M){this.tag=1,this.containerInfo=n,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=vf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vf(0),this.hiddenUpdates=vf(null),this.identifierPrefix=u,this.onUncaughtError=h,this.onCaughtError=g,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function Qv(n,i,o,u,h,g,T,M,B,K,et,st){return n=new FA(n,i,o,T,M,B,K,st),i=1,g===!0&&(i|=24),g=un(3,null,null,i),n.current=g,g.stateNode=n,i=rd(),i.refCount++,n.pooledCache=i,i.refCount++,g.memoizedState={element:u,isDehydrated:o,cache:i},sd(g),n}function Fv(n){return n?(n=Ta,n):Ta}function Wv(n,i,o,u,h,g){h=Fv(h),u.context===null?u.context=h:u.pendingContext=h,u=Fr(i),u.payload={element:o},g=g===void 0?null:g,g!==null&&(u.callback=g),o=Wr(n,u,i),o!==null&&(pn(o,n,i),Jo(o,n,i))}function Jv(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var o=n.retryLane;n.retryLane=o!==0&&o<i?o:i}}function Ch(n,i){Jv(n,i),(n=n.alternate)&&Jv(n,i)}function tb(n){if(n.tag===13){var i=Sa(n,67108864);i!==null&&pn(i,n,67108864),Ch(n,67108864)}}var zu=!0;function WA(n,i,o,u){var h=j.T;j.T=null;var g=Y.p;try{Y.p=2,Ah(n,i,o,u)}finally{Y.p=g,j.T=h}}function JA(n,i,o,u){var h=j.T;j.T=null;var g=Y.p;try{Y.p=8,Ah(n,i,o,u)}finally{Y.p=g,j.T=h}}function Ah(n,i,o,u){if(zu){var h=Eh(u);if(h===null)fh(n,i,u,$u,o),nb(n,u);else if(eE(h,n,i,o,u))u.stopPropagation();else if(nb(n,u),i&4&&-1<tE.indexOf(n)){for(;h!==null;){var g=ua(h);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var T=fr(g.pendingLanes);if(T!==0){var M=g;for(M.pendingLanes|=2,M.entangledLanes|=2;T;){var B=1<<31-He(T);M.entanglements[1]|=B,T&=~B}tr(g),(Pt&6)===0&&(yu=jt()+500,gs(0))}}break;case 13:M=Sa(g,2),M!==null&&pn(M,g,2),bu(),Ch(g,2)}if(g=Eh(u),g===null&&fh(n,i,u,$u,o),g===h)break;h=g}h!==null&&u.stopPropagation()}else fh(n,i,u,null,o)}}function Eh(n){return n=kf(n),wh(n)}var $u=null;function wh(n){if($u=null,n=la(n),n!==null){var i=l(n);if(i===null)n=null;else{var o=i.tag;if(o===13){if(n=c(i),n!==null)return n;n=null}else if(o===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return $u=n,null}function eb(n){switch(n){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(Be()){case Ae:return 2;case Ee:return 8;case De:case St:return 32;case Ci:return 268435456;default:return 32}default:return 32}}var Mh=!1,fi=null,di=null,hi=null,As=new Map,Es=new Map,pi=[],tE="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 nb(n,i){switch(n){case"focusin":case"focusout":fi=null;break;case"dragenter":case"dragleave":di=null;break;case"mouseover":case"mouseout":hi=null;break;case"pointerover":case"pointerout":As.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Es.delete(i.pointerId)}}function ws(n,i,o,u,h,g){return n===null||n.nativeEvent!==g?(n={blockedOn:i,domEventName:o,eventSystemFlags:u,nativeEvent:g,targetContainers:[h]},i!==null&&(i=ua(i),i!==null&&tb(i)),n):(n.eventSystemFlags|=u,i=n.targetContainers,h!==null&&i.indexOf(h)===-1&&i.push(h),n)}function eE(n,i,o,u,h){switch(i){case"focusin":return fi=ws(fi,n,i,o,u,h),!0;case"dragenter":return di=ws(di,n,i,o,u,h),!0;case"mouseover":return hi=ws(hi,n,i,o,u,h),!0;case"pointerover":var g=h.pointerId;return As.set(g,ws(As.get(g)||null,n,i,o,u,h)),!0;case"gotpointercapture":return g=h.pointerId,Es.set(g,ws(Es.get(g)||null,n,i,o,u,h)),!0}return!1}function rb(n){var i=la(n.target);if(i!==null){var o=l(i);if(o!==null){if(i=o.tag,i===13){if(i=c(o),i!==null){n.blockedOn=i,KT(n.priority,function(){if(o.tag===13){var u=hn();u=bf(u);var h=Sa(o,u);h!==null&&pn(h,o,u),Ch(o,u)}});return}}else if(i===3&&o.stateNode.current.memoizedState.isDehydrated){n.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Nu(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var o=Eh(n.nativeEvent);if(o===null){o=n.nativeEvent;var u=new o.constructor(o.type,o);Rf=u,o.target.dispatchEvent(u),Rf=null}else return i=ua(o),i!==null&&tb(i),n.blockedOn=o,!1;i.shift()}return!0}function ib(n,i,o){Nu(n)&&o.delete(i)}function nE(){Mh=!1,fi!==null&&Nu(fi)&&(fi=null),di!==null&&Nu(di)&&(di=null),hi!==null&&Nu(hi)&&(hi=null),As.forEach(ib),Es.forEach(ib)}function Lu(n,i){n.blockedOn===i&&(n.blockedOn=null,Mh||(Mh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,nE)))}var ju=null;function ab(n){ju!==n&&(ju=n,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){ju===n&&(ju=null);for(var i=0;i<n.length;i+=3){var o=n[i],u=n[i+1],h=n[i+2];if(typeof u!="function"){if(wh(u||o)===null)continue;break}var g=ua(o);g!==null&&(n.splice(i,3),i-=3,wd(g,{pending:!0,data:h,method:o.method,action:u},u,h))}}))}function Ms(n){function i(B){return Lu(B,n)}fi!==null&&Lu(fi,n),di!==null&&Lu(di,n),hi!==null&&Lu(hi,n),As.forEach(i),Es.forEach(i);for(var o=0;o<pi.length;o++){var u=pi[o];u.blockedOn===n&&(u.blockedOn=null)}for(;0<pi.length&&(o=pi[0],o.blockedOn===null);)rb(o),o.blockedOn===null&&pi.shift();if(o=(n.ownerDocument||n).$$reactFormReplay,o!=null)for(u=0;u<o.length;u+=3){var h=o[u],g=o[u+1],T=h[We]||null;if(typeof g=="function")T||ab(o);else if(T){var M=null;if(g&&g.hasAttribute("formAction")){if(h=g,T=g[We]||null)M=T.formAction;else if(wh(h)!==null)continue}else M=T.action;typeof M=="function"?o[u+1]=M:(o.splice(u,3),u-=3),ab(o)}}}function Oh(n){this._internalRoot=n}Uu.prototype.render=Oh.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(a(409));var o=i.current,u=hn();Wv(o,u,n,i,null,null)},Uu.prototype.unmount=Oh.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;Wv(n.current,2,null,n,null,null),bu(),i[sa]=null}};function Uu(n){this._internalRoot=n}Uu.prototype.unstable_scheduleHydration=function(n){if(n){var i=Tg();n={blockedOn:null,target:n,priority:i};for(var o=0;o<pi.length&&i!==0&&i<pi[o].priority;o++);pi.splice(o,0,n),o===0&&rb(n)}};var ob=e.version;if(ob!=="19.1.0")throw Error(a(527,ob,"19.1.0"));Y.findDOMNode=function(n){var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(a(188)):(n=Object.keys(n).join(","),Error(a(268,n)));return n=p(i),n=n!==null?d(n):null,n=n===null?null:n.stateNode,n};var rE={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Bu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bu.isDisabled&&Bu.supportsFiber)try{In=Bu.inject(rE),ve=Bu}catch{}}return Rs.createRoot=function(n,i){if(!s(n))throw Error(a(299));var o=!1,u="",h=Ty,g=Cy,T=Ay,M=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(h=i.onUncaughtError),i.onCaughtError!==void 0&&(g=i.onCaughtError),i.onRecoverableError!==void 0&&(T=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(M=i.unstable_transitionCallbacks)),i=Qv(n,1,!1,null,null,o,u,h,g,T,M,null),n[sa]=i.current,ch(n),new Oh(i)},Rs.hydrateRoot=function(n,i,o){if(!s(n))throw Error(a(299));var u=!1,h="",g=Ty,T=Cy,M=Ay,B=null,K=null;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(g=o.onUncaughtError),o.onCaughtError!==void 0&&(T=o.onCaughtError),o.onRecoverableError!==void 0&&(M=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(B=o.unstable_transitionCallbacks),o.formState!==void 0&&(K=o.formState)),i=Qv(n,1,!0,i,o??null,u,h,g,T,M,B,K),i.context=Fv(null),o=i.current,u=hn(),u=bf(u),h=Fr(u),h.callback=null,Wr(o,h,u),o=u,i.current.lanes=o,zo(i,o),tr(i),n[sa]=i.current,ch(n),new Uu(i)},Rs.version="19.1.0",Rs}var gb;function mE(){if(gb)return kh.exports;gb=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),kh.exports=pE(),kh.exports}var gE=mE();function Fi(t,...e){const r=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(a=>r.searchParams.append("args[]",a)),`Minified MUI error #${t}; visit ${r} for the full message.`}const ar="$$material";function G(){return G=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)({}).hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},G.apply(null,arguments)}var U=ol();const io=Bx(U),uc=sE({__proto__:null,default:io},[U]);function yE(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function vE(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Ix=function(){function t(r){var a=this;this._insertTag=function(s){var l;a.tags.length===0?a.insertionPoint?l=a.insertionPoint.nextSibling:a.prepend?l=a.container.firstChild:l=a.before:l=a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(s,l),a.tags.push(s)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(a){a.forEach(this._insertTag)},e.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(vE(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var l=yE(s);try{l.insertRule(a,l.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(a));this.ctr++},e.flush=function(){this.tags.forEach(function(a){var s;return(s=a.parentNode)==null?void 0:s.removeChild(a)}),this.tags=[],this.ctr=0},t}(),Xe="-ms-",cc="-moz-",Bt="-webkit-",Px="comm",Kp="rule",Zp="decl",bE="@import",Gx="@keyframes",xE="@layer",SE=Math.abs,jc=String.fromCharCode,TE=Object.assign;function CE(t,e){return Ne(t,0)^45?(((e<<2^Ne(t,0))<<2^Ne(t,1))<<2^Ne(t,2))<<2^Ne(t,3):0}function Yx(t){return t.trim()}function AE(t,e){return(t=e.exec(t))?t[0]:t}function Ht(t,e,r){return t.replace(e,r)}function mp(t,e){return t.indexOf(e)}function Ne(t,e){return t.charCodeAt(e)|0}function Ks(t,e,r){return t.slice(e,r)}function nr(t){return t.length}function Qp(t){return t.length}function Hu(t,e){return e.push(t),t}function EE(t,e){return t.map(e).join("")}var Uc=1,fo=1,qx=0,sn=0,ye=0,wo="";function Bc(t,e,r,a,s,l,c){return{value:t,root:e,parent:r,type:a,props:s,children:l,line:Uc,column:fo,length:c,return:""}}function ks(t,e){return TE(Bc("",null,null,"",null,null,0),t,{length:-t.length},e)}function wE(){return ye}function ME(){return ye=sn>0?Ne(wo,--sn):0,fo--,ye===10&&(fo=1,Uc--),ye}function gn(){return ye=sn<qx?Ne(wo,sn++):0,fo++,ye===10&&(fo=1,Uc++),ye}function or(){return Ne(wo,sn)}function nc(){return sn}function sl(t,e){return Ks(wo,t,e)}function Zs(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Vx(t){return Uc=fo=1,qx=nr(wo=t),sn=0,[]}function Xx(t){return wo="",t}function rc(t){return Yx(sl(sn-1,gp(t===91?t+2:t===40?t+1:t)))}function OE(t){for(;(ye=or())&&ye<33;)gn();return Zs(t)>2||Zs(ye)>3?"":" "}function RE(t,e){for(;--e&&gn()&&!(ye<48||ye>102||ye>57&&ye<65||ye>70&&ye<97););return sl(t,nc()+(e<6&&or()==32&&gn()==32))}function gp(t){for(;gn();)switch(ye){case t:return sn;case 34:case 39:t!==34&&t!==39&&gp(ye);break;case 40:t===41&&gp(t);break;case 92:gn();break}return sn}function kE(t,e){for(;gn()&&t+ye!==57;)if(t+ye===84&&or()===47)break;return"/*"+sl(e,sn-1)+"*"+jc(t===47?t:gn())}function DE(t){for(;!Zs(or());)gn();return sl(t,sn)}function _E(t){return Xx(ic("",null,null,null,[""],t=Vx(t),0,[0],t))}function ic(t,e,r,a,s,l,c,f,p){for(var d=0,m=0,y=c,v=0,b=0,x=0,S=1,A=1,w=1,D=0,O="",R=s,E=l,k=a,z=O;A;)switch(x=D,D=gn()){case 40:if(x!=108&&Ne(z,y-1)==58){mp(z+=Ht(rc(D),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:z+=rc(D);break;case 9:case 10:case 13:case 32:z+=OE(x);break;case 92:z+=RE(nc()-1,7);continue;case 47:switch(or()){case 42:case 47:Hu(zE(kE(gn(),nc()),e,r),p);break;default:z+="/"}break;case 123*S:f[d++]=nr(z)*w;case 125*S:case 59:case 0:switch(D){case 0:case 125:A=0;case 59+m:w==-1&&(z=Ht(z,/\f/g,"")),b>0&&nr(z)-y&&Hu(b>32?vb(z+";",a,r,y-1):vb(Ht(z," ","")+";",a,r,y-2),p);break;case 59:z+=";";default:if(Hu(k=yb(z,e,r,d,m,s,f,O,R=[],E=[],y),l),D===123)if(m===0)ic(z,e,k,k,R,l,y,f,E);else switch(v===99&&Ne(z,3)===110?100:v){case 100:case 108:case 109:case 115:ic(t,k,k,a&&Hu(yb(t,k,k,0,0,s,f,O,s,R=[],y),E),s,E,y,f,a?R:E);break;default:ic(z,k,k,k,[""],E,0,f,E)}}d=m=b=0,S=w=1,O=z="",y=c;break;case 58:y=1+nr(z),b=x;default:if(S<1){if(D==123)--S;else if(D==125&&S++==0&&ME()==125)continue}switch(z+=jc(D),D*S){case 38:w=m>0?1:(z+="\f",-1);break;case 44:f[d++]=(nr(z)-1)*w,w=1;break;case 64:or()===45&&(z+=rc(gn())),v=or(),m=y=nr(O=z+=DE(nc())),D++;break;case 45:x===45&&nr(z)==2&&(S=0)}}return l}function yb(t,e,r,a,s,l,c,f,p,d,m){for(var y=s-1,v=s===0?l:[""],b=Qp(v),x=0,S=0,A=0;x<a;++x)for(var w=0,D=Ks(t,y+1,y=SE(S=c[x])),O=t;w<b;++w)(O=Yx(S>0?v[w]+" "+D:Ht(D,/&\f/g,v[w])))&&(p[A++]=O);return Bc(t,e,r,s===0?Kp:f,p,d,m)}function zE(t,e,r){return Bc(t,e,r,Px,jc(wE()),Ks(t,2,-2),0)}function vb(t,e,r,a){return Bc(t,e,r,Zp,Ks(t,0,a),Ks(t,a+1,-1),a)}function so(t,e){for(var r="",a=Qp(t),s=0;s<a;s++)r+=e(t[s],s,t,e)||"";return r}function $E(t,e,r,a){switch(t.type){case xE:if(t.children.length)break;case bE:case Zp:return t.return=t.return||t.value;case Px:return"";case Gx:return t.return=t.value+"{"+so(t.children,a)+"}";case Kp:t.value=t.props.join(",")}return nr(r=so(t.children,a))?t.return=t.value+"{"+r+"}":""}function NE(t){var e=Qp(t);return function(r,a,s,l){for(var c="",f=0;f<e;f++)c+=t[f](r,a,s,l)||"";return c}}function LE(t){return function(e){e.root||(e=e.return)&&t(e)}}function Kx(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var jE=function(e,r,a){for(var s=0,l=0;s=l,l=or(),s===38&&l===12&&(r[a]=1),!Zs(l);)gn();return sl(e,sn)},UE=function(e,r){var a=-1,s=44;do switch(Zs(s)){case 0:s===38&&or()===12&&(r[a]=1),e[a]+=jE(sn-1,r,a);break;case 2:e[a]+=rc(s);break;case 4:if(s===44){e[++a]=or()===58?"&\f":"",r[a]=e[a].length;break}default:e[a]+=jc(s)}while(s=gn());return e},BE=function(e,r){return Xx(UE(Vx(e),r))},bb=new WeakMap,HE=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,a=e.parent,s=e.column===a.column&&e.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!bb.get(a))&&!s){bb.set(e,!0);for(var l=[],c=BE(r,l),f=a.props,p=0,d=0;p<c.length;p++)for(var m=0;m<f.length;m++,d++)e.props[d]=l[p]?c[p].replace(/&\f/g,f[m]):f[m]+" "+c[p]}}},IE=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};function Zx(t,e){switch(CE(t,e)){case 5103:return Bt+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Bt+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Bt+t+cc+t+Xe+t+t;case 6828:case 4268:return Bt+t+Xe+t+t;case 6165:return Bt+t+Xe+"flex-"+t+t;case 5187:return Bt+t+Ht(t,/(\w+).+(:[^]+)/,Bt+"box-$1$2"+Xe+"flex-$1$2")+t;case 5443:return Bt+t+Xe+"flex-item-"+Ht(t,/flex-|-self/,"")+t;case 4675:return Bt+t+Xe+"flex-line-pack"+Ht(t,/align-content|flex-|-self/,"")+t;case 5548:return Bt+t+Xe+Ht(t,"shrink","negative")+t;case 5292:return Bt+t+Xe+Ht(t,"basis","preferred-size")+t;case 6060:return Bt+"box-"+Ht(t,"-grow","")+Bt+t+Xe+Ht(t,"grow","positive")+t;case 4554:return Bt+Ht(t,/([^-])(transform)/g,"$1"+Bt+"$2")+t;case 6187:return Ht(Ht(Ht(t,/(zoom-|grab)/,Bt+"$1"),/(image-set)/,Bt+"$1"),t,"")+t;case 5495:case 3959:return Ht(t,/(image-set\([^]*)/,Bt+"$1$`$1");case 4968:return Ht(Ht(t,/(.+:)(flex-)?(.*)/,Bt+"box-pack:$3"+Xe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Bt+t+t;case 4095:case 3583:case 4068:case 2532:return Ht(t,/(.+)-inline(.+)/,Bt+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(nr(t)-1-e>6)switch(Ne(t,e+1)){case 109:if(Ne(t,e+4)!==45)break;case 102:return Ht(t,/(.+:)(.+)-([^]+)/,"$1"+Bt+"$2-$3$1"+cc+(Ne(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~mp(t,"stretch")?Zx(Ht(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Ne(t,e+1)!==115)break;case 6444:switch(Ne(t,nr(t)-3-(~mp(t,"!important")&&10))){case 107:return Ht(t,":",":"+Bt)+t;case 101:return Ht(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Bt+(Ne(t,14)===45?"inline-":"")+"box$3$1"+Bt+"$2$3$1"+Xe+"$2box$3")+t}break;case 5936:switch(Ne(t,e+11)){case 114:return Bt+t+Xe+Ht(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Bt+t+Xe+Ht(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Bt+t+Xe+Ht(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Bt+t+Xe+t+t}return t}var PE=function(e,r,a,s){if(e.length>-1&&!e.return)switch(e.type){case Zp:e.return=Zx(e.value,e.length);break;case Gx:return so([ks(e,{value:Ht(e.value,"@","@"+Bt)})],s);case Kp:if(e.length)return EE(e.props,function(l){switch(AE(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return so([ks(e,{props:[Ht(l,/:(read-\w+)/,":"+cc+"$1")]})],s);case"::placeholder":return so([ks(e,{props:[Ht(l,/:(plac\w+)/,":"+Bt+"input-$1")]}),ks(e,{props:[Ht(l,/:(plac\w+)/,":"+cc+"$1")]}),ks(e,{props:[Ht(l,/:(plac\w+)/,Xe+"input-$1")]})],s)}return""})}},GE=[PE],Qx=function(e){var r=e.key;if(r==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(S){var A=S.getAttribute("data-emotion");A.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var s=e.stylisPlugins||GE,l={},c,f=[];c=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(S){for(var A=S.getAttribute("data-emotion").split(" "),w=1;w<A.length;w++)l[A[w]]=!0;f.push(S)});var p,d=[HE,IE];{var m,y=[$E,LE(function(S){m.insert(S)})],v=NE(d.concat(s,y)),b=function(A){return so(_E(A),v)};p=function(A,w,D,O){m=D,b(A?A+"{"+w.styles+"}":w.styles),O&&(x.inserted[w.name]=!0)}}var x={key:r,sheet:new Ix({key:r,container:c,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:p};return x.sheet.hydrate(f),x},Nh={exports:{}},It={};/** @license React v16.13.1 50 + * react-is.production.min.js 51 + * 52 + * Copyright (c) Facebook, Inc. and its affiliates. 53 + * 54 + * This source code is licensed under the MIT license found in the 55 + * LICENSE file in the root directory of this source tree. 56 + */var xb;function YE(){if(xb)return It;xb=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,f=t?Symbol.for("react.context"):60110,p=t?Symbol.for("react.async_mode"):60111,d=t?Symbol.for("react.concurrent_mode"):60111,m=t?Symbol.for("react.forward_ref"):60112,y=t?Symbol.for("react.suspense"):60113,v=t?Symbol.for("react.suspense_list"):60120,b=t?Symbol.for("react.memo"):60115,x=t?Symbol.for("react.lazy"):60116,S=t?Symbol.for("react.block"):60121,A=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,D=t?Symbol.for("react.scope"):60119;function O(E){if(typeof E=="object"&&E!==null){var k=E.$$typeof;switch(k){case e:switch(E=E.type,E){case p:case d:case a:case l:case s:case y:return E;default:switch(E=E&&E.$$typeof,E){case f:case m:case x:case b:case c:return E;default:return k}}case r:return k}}}function R(E){return O(E)===d}return It.AsyncMode=p,It.ConcurrentMode=d,It.ContextConsumer=f,It.ContextProvider=c,It.Element=e,It.ForwardRef=m,It.Fragment=a,It.Lazy=x,It.Memo=b,It.Portal=r,It.Profiler=l,It.StrictMode=s,It.Suspense=y,It.isAsyncMode=function(E){return R(E)||O(E)===p},It.isConcurrentMode=R,It.isContextConsumer=function(E){return O(E)===f},It.isContextProvider=function(E){return O(E)===c},It.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},It.isForwardRef=function(E){return O(E)===m},It.isFragment=function(E){return O(E)===a},It.isLazy=function(E){return O(E)===x},It.isMemo=function(E){return O(E)===b},It.isPortal=function(E){return O(E)===r},It.isProfiler=function(E){return O(E)===l},It.isStrictMode=function(E){return O(E)===s},It.isSuspense=function(E){return O(E)===y},It.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===a||E===d||E===l||E===s||E===y||E===v||typeof E=="object"&&E!==null&&(E.$$typeof===x||E.$$typeof===b||E.$$typeof===c||E.$$typeof===f||E.$$typeof===m||E.$$typeof===A||E.$$typeof===w||E.$$typeof===D||E.$$typeof===S)},It.typeOf=O,It}var Sb;function qE(){return Sb||(Sb=1,Nh.exports=YE()),Nh.exports}var Lh,Tb;function VE(){if(Tb)return Lh;Tb=1;var t=qE(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[t.ForwardRef]=a,l[t.Memo]=s;function c(x){return t.isMemo(x)?s:l[x.$$typeof]||e}var f=Object.defineProperty,p=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,v=Object.prototype;function b(x,S,A){if(typeof S!="string"){if(v){var w=y(S);w&&w!==v&&b(x,w,A)}var D=p(S);d&&(D=D.concat(d(S)));for(var O=c(x),R=c(S),E=0;E<D.length;++E){var k=D[E];if(!r[k]&&!(A&&A[k])&&!(R&&R[k])&&!(O&&O[k])){var z=m(S,k);try{f(x,k,z)}catch{}}}}return x}return Lh=b,Lh}VE();var XE=!0;function Fx(t,e,r){var a="";return r.split(" ").forEach(function(s){t[s]!==void 0?e.push(t[s]+";"):s&&(a+=s+" ")}),a}var Fp=function(e,r,a){var s=e.key+"-"+r.name;(a===!1||XE===!1)&&e.registered[s]===void 0&&(e.registered[s]=r.styles)},Wp=function(e,r,a){Fp(e,r,a);var s=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var l=r;do e.insert(r===l?"."+s:"",l,e.sheet,!0),l=l.next;while(l!==void 0)}};function KE(t){for(var e=0,r,a=0,s=t.length;s>=4;++a,s-=4)r=t.charCodeAt(a)&255|(t.charCodeAt(++a)&255)<<8|(t.charCodeAt(++a)&255)<<16|(t.charCodeAt(++a)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(s){case 3:e^=(t.charCodeAt(a+2)&255)<<16;case 2:e^=(t.charCodeAt(a+1)&255)<<8;case 1:e^=t.charCodeAt(a)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var ZE={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},QE=/[A-Z]|^ms/g,FE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Wx=function(e){return e.charCodeAt(1)===45},Cb=function(e){return e!=null&&typeof e!="boolean"},jh=Kx(function(t){return Wx(t)?t:t.replace(QE,"-$&").toLowerCase()}),Ab=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(FE,function(a,s,l){return rr={name:s,styles:l,next:rr},s})}return ZE[e]!==1&&!Wx(e)&&typeof r=="number"&&r!==0?r+"px":r};function Qs(t,e,r){if(r==null)return"";var a=r;if(a.__emotion_styles!==void 0)return a;switch(typeof r){case"boolean":return"";case"object":{var s=r;if(s.anim===1)return rr={name:s.name,styles:s.styles,next:rr},s.name;var l=r;if(l.styles!==void 0){var c=l.next;if(c!==void 0)for(;c!==void 0;)rr={name:c.name,styles:c.styles,next:rr},c=c.next;var f=l.styles+";";return f}return WE(t,e,r)}case"function":{if(t!==void 0){var p=rr,d=r(t);return rr=p,Qs(t,e,d)}break}}var m=r;if(e==null)return m;var y=e[m];return y!==void 0?y:m}function WE(t,e,r){var a="";if(Array.isArray(r))for(var s=0;s<r.length;s++)a+=Qs(t,e,r[s])+";";else for(var l in r){var c=r[l];if(typeof c!="object"){var f=c;e!=null&&e[f]!==void 0?a+=l+"{"+e[f]+"}":Cb(f)&&(a+=jh(l)+":"+Ab(l,f)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(e==null||e[c[0]]===void 0))for(var p=0;p<c.length;p++)Cb(c[p])&&(a+=jh(l)+":"+Ab(l,c[p])+";");else{var d=Qs(t,e,c);switch(l){case"animation":case"animationName":{a+=jh(l)+":"+d+";";break}default:a+=l+"{"+d+"}"}}}return a}var Eb=/label:\s*([^\s;{]+)\s*(;|$)/g,rr;function ll(t,e,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var a=!0,s="";rr=void 0;var l=t[0];if(l==null||l.raw===void 0)a=!1,s+=Qs(r,e,l);else{var c=l;s+=c[0]}for(var f=1;f<t.length;f++)if(s+=Qs(r,e,t[f]),a){var p=l;s+=p[f]}Eb.lastIndex=0;for(var d="",m;(m=Eb.exec(s))!==null;)d+="-"+m[1];var y=KE(s)+d;return{name:y,styles:s,next:rr}}var JE=function(e){return e()},Jx=uc.useInsertionEffect?uc.useInsertionEffect:!1,tS=Jx||JE,wb=Jx||U.useLayoutEffect,eS=U.createContext(typeof HTMLElement<"u"?Qx({key:"css"}):null),tw=eS.Provider,Jp=function(e){return U.forwardRef(function(r,a){var s=U.useContext(eS);return e(r,s,a)})},ul=U.createContext({}),tm={}.hasOwnProperty,yp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ew=function(e,r){var a={};for(var s in r)tm.call(r,s)&&(a[s]=r[s]);return a[yp]=e,a},nw=function(e){var r=e.cache,a=e.serialized,s=e.isStringTag;return Fp(r,a,s),tS(function(){return Wp(r,a,s)}),null},rw=Jp(function(t,e,r){var a=t.css;typeof a=="string"&&e.registered[a]!==void 0&&(a=e.registered[a]);var s=t[yp],l=[a],c="";typeof t.className=="string"?c=Fx(e.registered,l,t.className):t.className!=null&&(c=t.className+" ");var f=ll(l,void 0,U.useContext(ul));c+=e.key+"-"+f.name;var p={};for(var d in t)tm.call(t,d)&&d!=="css"&&d!==yp&&(p[d]=t[d]);return p.className=c,r&&(p.ref=r),U.createElement(U.Fragment,null,U.createElement(nw,{cache:e,serialized:f,isStringTag:typeof s=="string"}),U.createElement(s,p))}),iw=rw,Mb=function(e,r){var a=arguments;if(r==null||!tm.call(r,"css"))return U.createElement.apply(void 0,a);var s=a.length,l=new Array(s);l[0]=iw,l[1]=ew(e,r);for(var c=2;c<s;c++)l[c]=a[c];return U.createElement.apply(null,l)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(Mb||(Mb={}));var aw=Jp(function(t,e){var r=t.styles,a=ll([r],void 0,U.useContext(ul)),s=U.useRef();return wb(function(){var l=e.key+"-global",c=new e.sheet.constructor({key:l,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),f=!1,p=document.querySelector('style[data-emotion="'+l+" "+a.name+'"]');return e.sheet.tags.length&&(c.before=e.sheet.tags[0]),p!==null&&(f=!0,p.setAttribute("data-emotion",l),c.hydrate([p])),s.current=[c,f],function(){c.flush()}},[e]),wb(function(){var l=s.current,c=l[0],f=l[1];if(f){l[1]=!1;return}if(a.next!==void 0&&Wp(e,a.next,!0),c.tags.length){var p=c.tags[c.tags.length-1].nextElementSibling;c.before=p,c.flush()}e.insert("",a,c,!1)},[e,a.name]),null});function em(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return ll(e)}function cl(){var t=em.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var ow=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|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|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|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|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,sw=Kx(function(t){return ow.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),lw=sw,uw=function(e){return e!=="theme"},Ob=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?lw:uw},Rb=function(e,r,a){var s;if(r){var l=r.shouldForwardProp;s=e.__emotion_forwardProp&&l?function(c){return e.__emotion_forwardProp(c)&&l(c)}:l}return typeof s!="function"&&a&&(s=e.__emotion_forwardProp),s},cw=function(e){var r=e.cache,a=e.serialized,s=e.isStringTag;return Fp(r,a,s),tS(function(){return Wp(r,a,s)}),null},fw=function t(e,r){var a=e.__emotion_real===e,s=a&&e.__emotion_base||e,l,c;r!==void 0&&(l=r.label,c=r.target);var f=Rb(e,r,a),p=f||Ob(s),d=!p("as");return function(){var m=arguments,y=a&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(l!==void 0&&y.push("label:"+l+";"),m[0]==null||m[0].raw===void 0)y.push.apply(y,m);else{var v=m[0];y.push(v[0]);for(var b=m.length,x=1;x<b;x++)y.push(m[x],v[x])}var S=Jp(function(A,w,D){var O=d&&A.as||s,R="",E=[],k=A;if(A.theme==null){k={};for(var z in A)k[z]=A[z];k.theme=U.useContext(ul)}typeof A.className=="string"?R=Fx(w.registered,E,A.className):A.className!=null&&(R=A.className+" ");var H=ll(y.concat(E),w.registered,k);R+=w.key+"-"+H.name,c!==void 0&&(R+=" "+c);var L=d&&f===void 0?Ob(O):p,C={};for(var _ in A)d&&_==="as"||L(_)&&(C[_]=A[_]);return C.className=R,D&&(C.ref=D),U.createElement(U.Fragment,null,U.createElement(cw,{cache:w,serialized:H,isStringTag:typeof O=="string"}),U.createElement(O,C))});return S.displayName=l!==void 0?l:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",S.defaultProps=e.defaultProps,S.__emotion_real=S,S.__emotion_base=s,S.__emotion_styles=y,S.__emotion_forwardProp=f,Object.defineProperty(S,"toString",{value:function(){return"."+c}}),S.withComponent=function(A,w){var D=t(A,G({},r,w,{shouldForwardProp:Rb(S,w,!0)}));return D.apply(void 0,y)},S}},dw=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],vp=fw.bind(null);dw.forEach(function(t){vp[t]=vp(t)});const Uh=new Map,hw=(t,e)=>{const r=Qx(t);return r.sheet=new e({key:r.key,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy,prepend:r.sheet.prepend,insertionPoint:r.sheet.insertionPoint}),r};let vi;if(typeof document=="object"&&(vi=document.querySelector('[name="emotion-insertion-point"]'),!vi)){vi=document.createElement("meta"),vi.setAttribute("name","emotion-insertion-point"),vi.setAttribute("content","");const t=document.querySelector("head");t&&t.prepend(vi)}function pw(t,e){if(t||e){class r extends Ix{insert(l,c){return this.key&&this.key.endsWith("global")&&(this.before=vi),super.insert(l,c)}}const a=hw({key:"css",insertionPoint:t?vi:void 0},r);if(e){const s=a.insert;a.insert=(...l)=>(l[1].styles.startsWith("@layer")||(l[1].styles=`@layer mui {${l[1].styles}}`),s(...l))}return a}}function mw(t){const{injectFirst:e,enableCssLayer:r,children:a}=t,s=U.useMemo(()=>{const l=`${e}-${r}`;if(Uh.has(l))return Uh.get(l);const c=pw(e,r);return Uh.set(l,c),c},[e,r]);return s?N.jsx(tw,{value:s,children:a}):a}function gw(t){return t==null||Object.keys(t).length===0}function yw(t){const{styles:e,defaultTheme:r={}}=t,a=typeof e=="function"?s=>e(gw(s)?r:s):e;return N.jsx(aw,{styles:a})}function vw(t,e){return vp(t,e)}function bw(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const kb=[];function Db(t){return kb[0]=t,ll(kb)}var Bh={exports:{}},Kt={};/** 57 + * @license React 58 + * react-is.production.js 59 + * 60 + * Copyright (c) Meta Platforms, Inc. and affiliates. 61 + * 62 + * This source code is licensed under the MIT license found in the 63 + * LICENSE file in the root directory of this source tree. 64 + */var _b;function xw(){if(_b)return Kt;_b=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function x(S){if(typeof S=="object"&&S!==null){var A=S.$$typeof;switch(A){case t:switch(S=S.type,S){case r:case s:case a:case p:case d:case v:return S;default:switch(S=S&&S.$$typeof,S){case c:case f:case y:case m:return S;case l:return S;default:return A}}case e:return A}}}return Kt.ContextConsumer=l,Kt.ContextProvider=c,Kt.Element=t,Kt.ForwardRef=f,Kt.Fragment=r,Kt.Lazy=y,Kt.Memo=m,Kt.Portal=e,Kt.Profiler=s,Kt.StrictMode=a,Kt.Suspense=p,Kt.SuspenseList=d,Kt.isContextConsumer=function(S){return x(S)===l},Kt.isContextProvider=function(S){return x(S)===c},Kt.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},Kt.isForwardRef=function(S){return x(S)===f},Kt.isFragment=function(S){return x(S)===r},Kt.isLazy=function(S){return x(S)===y},Kt.isMemo=function(S){return x(S)===m},Kt.isPortal=function(S){return x(S)===e},Kt.isProfiler=function(S){return x(S)===s},Kt.isStrictMode=function(S){return x(S)===a},Kt.isSuspense=function(S){return x(S)===p},Kt.isSuspenseList=function(S){return x(S)===d},Kt.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===s||S===a||S===p||S===d||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===m||S.$$typeof===c||S.$$typeof===l||S.$$typeof===f||S.$$typeof===b||S.getModuleId!==void 0)},Kt.typeOf=x,Kt}var zb;function Sw(){return zb||(zb=1,Bh.exports=xw()),Bh.exports}var nS=Sw();function ir(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function rS(t){if(U.isValidElement(t)||nS.isValidElementType(t)||!ir(t))return t;const e={};return Object.keys(t).forEach(r=>{e[r]=rS(t[r])}),e}function yn(t,e,r={clone:!0}){const a=r.clone?{...t}:t;return ir(t)&&ir(e)&&Object.keys(e).forEach(s=>{U.isValidElement(e[s])||nS.isValidElementType(e[s])?a[s]=e[s]:ir(e[s])&&Object.prototype.hasOwnProperty.call(t,s)&&ir(t[s])?a[s]=yn(t[s],e[s],r):r.clone?a[s]=ir(e[s])?rS(e[s]):e[s]:a[s]=e[s]}),a}const Tw=t=>{const e=Object.keys(t).map(r=>({key:r,val:t[r]}))||[];return e.sort((r,a)=>r.val-a.val),e.reduce((r,a)=>({...r,[a.key]:a.val}),{})};function Cw(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:a=5,...s}=t,l=Tw(e),c=Object.keys(l);function f(v){return`@media (min-width:${typeof e[v]=="number"?e[v]:v}${r})`}function p(v){return`@media (max-width:${(typeof e[v]=="number"?e[v]:v)-a/100}${r})`}function d(v,b){const x=c.indexOf(b);return`@media (min-width:${typeof e[v]=="number"?e[v]:v}${r}) and (max-width:${(x!==-1&&typeof e[c[x]]=="number"?e[c[x]]:b)-a/100}${r})`}function m(v){return c.indexOf(v)+1<c.length?d(v,c[c.indexOf(v)+1]):f(v)}function y(v){const b=c.indexOf(v);return b===0?f(c[1]):b===c.length-1?p(c[b]):d(v,c[c.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:c,values:l,up:f,down:p,between:d,only:m,not:y,unit:r,...s}}function Aw(t,e){if(!t.containerQueries)return e;const r=Object.keys(e).filter(a=>a.startsWith("@container")).sort((a,s)=>{var c,f;const l=/min-width:\s*([0-9.]+)/;return+(((c=a.match(l))==null?void 0:c[1])||0)-+(((f=s.match(l))==null?void 0:f[1])||0)});return r.length?r.reduce((a,s)=>{const l=e[s];return delete a[s],a[s]=l,a},{...e}):e}function Ew(t,e){return e==="@"||e.startsWith("@")&&(t.some(r=>e.startsWith(`@${r}`))||!!e.match(/^@\d/))}function ww(t,e){const r=e.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,a,s]=r,l=Number.isNaN(+a)?a||0:+a;return t.containerQueries(s).up(l)}function Mw(t){const e=(l,c)=>l.replace("@media",c?`@container ${c}`:"@container");function r(l,c){l.up=(...f)=>e(t.breakpoints.up(...f),c),l.down=(...f)=>e(t.breakpoints.down(...f),c),l.between=(...f)=>e(t.breakpoints.between(...f),c),l.only=(...f)=>e(t.breakpoints.only(...f),c),l.not=(...f)=>{const p=e(t.breakpoints.not(...f),c);return p.includes("not all and")?p.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):p}}const a={},s=l=>(r(a,l),a);return r(s),{...t,containerQueries:s}}const Ow={borderRadius:4};function qs(t,e){return e?yn(t,e,{clone:!1}):t}const Hc={xs:0,sm:600,md:900,lg:1200,xl:1536},$b={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${Hc[t]}px)`},Rw={containerQueries:t=>({up:e=>{let r=typeof e=="number"?e:Hc[e]||e;return typeof r=="number"&&(r=`${r}px`),t?`@container ${t} (min-width:${r})`:`@container (min-width:${r})`}})};function $r(t,e,r){const a=t.theme||{};if(Array.isArray(e)){const l=a.breakpoints||$b;return e.reduce((c,f,p)=>(c[l.up(l.keys[p])]=r(e[p]),c),{})}if(typeof e=="object"){const l=a.breakpoints||$b;return Object.keys(e).reduce((c,f)=>{if(Ew(l.keys,f)){const p=ww(a.containerQueries?a:Rw,f);p&&(c[p]=r(e[f],f))}else if(Object.keys(l.values||Hc).includes(f)){const p=l.up(f);c[p]=r(e[f],f)}else{const p=f;c[p]=e[p]}return c},{})}return r(e)}function kw(t={}){var r;return((r=t.keys)==null?void 0:r.reduce((a,s)=>{const l=t.up(s);return a[l]={},a},{}))||{}}function Dw(t,e){return t.reduce((r,a)=>{const s=r[a];return(!s||Object.keys(s).length===0)&&delete r[a],r},e)}function Wt(t){if(typeof t!="string")throw new Error(Fi(7));return t.charAt(0).toUpperCase()+t.slice(1)}function Ic(t,e,r=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&r){const a=`vars.${e}`.split(".").reduce((s,l)=>s&&s[l]?s[l]:null,t);if(a!=null)return a}return e.split(".").reduce((a,s)=>a&&a[s]!=null?a[s]:null,t)}function fc(t,e,r,a=r){let s;return typeof t=="function"?s=t(r):Array.isArray(t)?s=t[r]||a:s=Ic(t,r)||a,e&&(s=e(s,a,t)),s}function pe(t){const{prop:e,cssProperty:r=t.prop,themeKey:a,transform:s}=t,l=c=>{if(c[e]==null)return null;const f=c[e],p=c.theme,d=Ic(p,a)||{};return $r(c,f,y=>{let v=fc(d,s,y);return y===v&&typeof y=="string"&&(v=fc(d,s,`${e}${y==="default"?"":Wt(y)}`,y)),r===!1?v:{[r]:v}})};return l.propTypes={},l.filterProps=[e],l}function _w(t){const e={};return r=>(e[r]===void 0&&(e[r]=t(r)),e[r])}const zw={m:"margin",p:"padding"},$w={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Nb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Nw=_w(t=>{if(t.length>2)if(Nb[t])t=Nb[t];else return[t];const[e,r]=t.split(""),a=zw[e],s=$w[r]||"";return Array.isArray(s)?s.map(l=>a+l):[a+s]}),nm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],rm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...nm,...rm];function fl(t,e,r,a){const s=Ic(t,e,!0)??r;return typeof s=="number"||typeof s=="string"?l=>typeof l=="string"?l:typeof s=="string"?s.startsWith("var(")&&l===0?0:s.startsWith("var(")&&l===1?s:`calc(${l} * ${s})`:s*l:Array.isArray(s)?l=>{if(typeof l=="string")return l;const c=Math.abs(l),f=s[c];return l>=0?f:typeof f=="number"?-f:typeof f=="string"&&f.startsWith("var(")?`calc(-1 * ${f})`:`-${f}`}:typeof s=="function"?s:()=>{}}function im(t){return fl(t,"spacing",8)}function dl(t,e){return typeof e=="string"||e==null?e:t(e)}function Lw(t,e){return r=>t.reduce((a,s)=>(a[s]=dl(e,r),a),{})}function jw(t,e,r,a){if(!e.includes(r))return null;const s=Nw(r),l=Lw(s,a),c=t[r];return $r(t,c,l)}function iS(t,e){const r=im(t.theme);return Object.keys(t).map(a=>jw(t,e,a,r)).reduce(qs,{})}function ce(t){return iS(t,nm)}ce.propTypes={};ce.filterProps=nm;function fe(t){return iS(t,rm)}fe.propTypes={};fe.filterProps=rm;function aS(t=8,e=im({spacing:t})){if(t.mui)return t;const r=(...a)=>(a.length===0?[1]:a).map(l=>{const c=e(l);return typeof c=="number"?`${c}px`:c}).join(" ");return r.mui=!0,r}function Pc(...t){const e=t.reduce((a,s)=>(s.filterProps.forEach(l=>{a[l]=s}),a),{}),r=a=>Object.keys(a).reduce((s,l)=>e[l]?qs(s,e[l](a)):s,{});return r.propTypes={},r.filterProps=t.reduce((a,s)=>a.concat(s.filterProps),[]),r}function Dn(t){return typeof t!="number"?t:`${t}px solid`}function Un(t,e){return pe({prop:t,themeKey:"borders",transform:e})}const Uw=Un("border",Dn),Bw=Un("borderTop",Dn),Hw=Un("borderRight",Dn),Iw=Un("borderBottom",Dn),Pw=Un("borderLeft",Dn),Gw=Un("borderColor"),Yw=Un("borderTopColor"),qw=Un("borderRightColor"),Vw=Un("borderBottomColor"),Xw=Un("borderLeftColor"),Kw=Un("outline",Dn),Zw=Un("outlineColor"),Gc=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=fl(t.theme,"shape.borderRadius",4),r=a=>({borderRadius:dl(e,a)});return $r(t,t.borderRadius,r)}return null};Gc.propTypes={};Gc.filterProps=["borderRadius"];Pc(Uw,Bw,Hw,Iw,Pw,Gw,Yw,qw,Vw,Xw,Gc,Kw,Zw);const Yc=t=>{if(t.gap!==void 0&&t.gap!==null){const e=fl(t.theme,"spacing",8),r=a=>({gap:dl(e,a)});return $r(t,t.gap,r)}return null};Yc.propTypes={};Yc.filterProps=["gap"];const qc=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=fl(t.theme,"spacing",8),r=a=>({columnGap:dl(e,a)});return $r(t,t.columnGap,r)}return null};qc.propTypes={};qc.filterProps=["columnGap"];const Vc=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=fl(t.theme,"spacing",8),r=a=>({rowGap:dl(e,a)});return $r(t,t.rowGap,r)}return null};Vc.propTypes={};Vc.filterProps=["rowGap"];const Qw=pe({prop:"gridColumn"}),Fw=pe({prop:"gridRow"}),Ww=pe({prop:"gridAutoFlow"}),Jw=pe({prop:"gridAutoColumns"}),tM=pe({prop:"gridAutoRows"}),eM=pe({prop:"gridTemplateColumns"}),nM=pe({prop:"gridTemplateRows"}),rM=pe({prop:"gridTemplateAreas"}),iM=pe({prop:"gridArea"});Pc(Yc,qc,Vc,Qw,Fw,Ww,Jw,tM,eM,nM,rM,iM);function lo(t,e){return e==="grey"?e:t}const aM=pe({prop:"color",themeKey:"palette",transform:lo}),oM=pe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:lo}),sM=pe({prop:"backgroundColor",themeKey:"palette",transform:lo});Pc(aM,oM,sM);function mn(t){return t<=1&&t!==0?`${t*100}%`:t}const lM=pe({prop:"width",transform:mn}),am=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=r=>{var s,l,c,f,p;const a=((c=(l=(s=t.theme)==null?void 0:s.breakpoints)==null?void 0:l.values)==null?void 0:c[r])||Hc[r];return a?((p=(f=t.theme)==null?void 0:f.breakpoints)==null?void 0:p.unit)!=="px"?{maxWidth:`${a}${t.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:mn(r)}};return $r(t,t.maxWidth,e)}return null};am.filterProps=["maxWidth"];const uM=pe({prop:"minWidth",transform:mn}),cM=pe({prop:"height",transform:mn}),fM=pe({prop:"maxHeight",transform:mn}),dM=pe({prop:"minHeight",transform:mn});pe({prop:"size",cssProperty:"width",transform:mn});pe({prop:"size",cssProperty:"height",transform:mn});const hM=pe({prop:"boxSizing"});Pc(lM,am,uM,cM,fM,dM,hM);const hl={border:{themeKey:"borders",transform:Dn},borderTop:{themeKey:"borders",transform:Dn},borderRight:{themeKey:"borders",transform:Dn},borderBottom:{themeKey:"borders",transform:Dn},borderLeft:{themeKey:"borders",transform:Dn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Dn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gc},color:{themeKey:"palette",transform:lo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:lo},backgroundColor:{themeKey:"palette",transform:lo},p:{style:fe},pt:{style:fe},pr:{style:fe},pb:{style:fe},pl:{style:fe},px:{style:fe},py:{style:fe},padding:{style:fe},paddingTop:{style:fe},paddingRight:{style:fe},paddingBottom:{style:fe},paddingLeft:{style:fe},paddingX:{style:fe},paddingY:{style:fe},paddingInline:{style:fe},paddingInlineStart:{style:fe},paddingInlineEnd:{style:fe},paddingBlock:{style:fe},paddingBlockStart:{style:fe},paddingBlockEnd:{style:fe},m:{style:ce},mt:{style:ce},mr:{style:ce},mb:{style:ce},ml:{style:ce},mx:{style:ce},my:{style:ce},margin:{style:ce},marginTop:{style:ce},marginRight:{style:ce},marginBottom:{style:ce},marginLeft:{style:ce},marginX:{style:ce},marginY:{style:ce},marginInline:{style:ce},marginInlineStart:{style:ce},marginInlineEnd:{style:ce},marginBlock:{style:ce},marginBlockStart:{style:ce},marginBlockEnd:{style:ce},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Yc},rowGap:{style:Vc},columnGap:{style:qc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:mn},maxWidth:{style:am},minWidth:{transform:mn},height:{transform:mn},maxHeight:{transform:mn},minHeight:{transform:mn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function pM(...t){const e=t.reduce((a,s)=>a.concat(Object.keys(s)),[]),r=new Set(e);return t.every(a=>r.size===Object.keys(a).length)}function mM(t,e){return typeof t=="function"?t(e):t}function gM(){function t(r,a,s,l){const c={[r]:a,theme:s},f=l[r];if(!f)return{[r]:a};const{cssProperty:p=r,themeKey:d,transform:m,style:y}=f;if(a==null)return null;if(d==="typography"&&a==="inherit")return{[r]:a};const v=Ic(s,d)||{};return y?y(c):$r(c,a,x=>{let S=fc(v,m,x);return x===S&&typeof x=="string"&&(S=fc(v,m,`${r}${x==="default"?"":Wt(x)}`,x)),p===!1?S:{[p]:S}})}function e(r){const{sx:a,theme:s={}}=r||{};if(!a)return null;const l=s.unstable_sxConfig??hl;function c(f){let p=f;if(typeof f=="function")p=f(s);else if(typeof f!="object")return f;if(!p)return null;const d=kw(s.breakpoints),m=Object.keys(d);let y=d;return Object.keys(p).forEach(v=>{const b=mM(p[v],s);if(b!=null)if(typeof b=="object")if(l[v])y=qs(y,t(v,b,s,l));else{const x=$r({theme:s},b,S=>({[v]:S}));pM(x,b)?y[v]=e({sx:b,theme:s}):y=qs(y,x)}else y=qs(y,t(v,b,s,l))}),Aw(s,Dw(m,y))}return Array.isArray(a)?a.map(c):c(a)}return e}const Wi=gM();Wi.filterProps=["sx"];function yM(t,e){var a;const r=this;if(r.vars){if(!((a=r.colorSchemes)!=null&&a[t])||typeof r.getColorSchemeSelector!="function")return{};let s=r.getColorSchemeSelector(t);return s==="&"?e:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:e})}return r.palette.mode===t?e:{}}function om(t={},...e){const{breakpoints:r={},palette:a={},spacing:s,shape:l={},...c}=t,f=Cw(r),p=aS(s);let d=yn({breakpoints:f,direction:"ltr",components:{},palette:{mode:"light",...a},spacing:p,shape:{...Ow,...l}},c);return d=Mw(d),d.applyStyles=yM,d=e.reduce((m,y)=>yn(m,y),d),d.unstable_sxConfig={...hl,...c==null?void 0:c.unstable_sxConfig},d.unstable_sx=function(y){return Wi({sx:y,theme:this})},d}function vM(t){return Object.keys(t).length===0}function sm(t=null){const e=U.useContext(ul);return!e||vM(e)?t:e}const bM=om();function oS(t=bM){return sm(t)}const xM=t=>{var a;const e={systemProps:{},otherProps:{}},r=((a=t==null?void 0:t.theme)==null?void 0:a.unstable_sxConfig)??hl;return Object.keys(t).forEach(s=>{r[s]?e.systemProps[s]=t[s]:e.otherProps[s]=t[s]}),e};function SM(t){const{sx:e,...r}=t,{systemProps:a,otherProps:s}=xM(r);let l;return Array.isArray(e)?l=[a,...e]:typeof e=="function"?l=(...c)=>{const f=e(...c);return ir(f)?{...a,...f}:a}:l={...a,...e},{...s,sx:l}}const Lb=t=>t,TM=()=>{let t=Lb;return{configure(e){t=e},generate(e){return t(e)},reset(){t=Lb}}},CM=TM();function sS(t){var e,r,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(r=sS(t[e]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}function Jt(){for(var t,e,r=0,a="",s=arguments.length;r<s;r++)(t=arguments[r])&&(e=sS(t))&&(a&&(a+=" "),a+=e);return a}const AM={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Le(t,e,r="Mui"){const a=AM[e];return a?`${r}-${a}`:`${CM.generate(t)}-${e}`}function je(t,e,r="Mui"){const a={};return e.forEach(s=>{a[s]=Le(t,s,r)}),a}function lS(t){const{variants:e,...r}=t,a={variants:e,style:Db(r),isProcessed:!0};return a.style===r||e&&e.forEach(s=>{typeof s.style!="function"&&(s.style=Db(s.style))}),a}const EM=om();function ac(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function wM(t){return t?(e,r)=>r[t]:null}function MM(t,e,r){t.theme=kM(t.theme)?r:t.theme[e]||t.theme}function oc(t,e){const r=typeof e=="function"?e(t):e;if(Array.isArray(r))return r.flatMap(a=>oc(t,a));if(Array.isArray(r==null?void 0:r.variants)){let a;if(r.isProcessed)a=r.style;else{const{variants:s,...l}=r;a=l}return uS(t,r.variants,[a])}return r!=null&&r.isProcessed?r.style:r}function uS(t,e,r=[]){var s;let a;t:for(let l=0;l<e.length;l+=1){const c=e[l];if(typeof c.props=="function"){if(a??(a={...t,...t.ownerState,ownerState:t.ownerState}),!c.props(a))continue}else for(const f in c.props)if(t[f]!==c.props[f]&&((s=t.ownerState)==null?void 0:s[f])!==c.props[f])continue t;typeof c.style=="function"?(a??(a={...t,...t.ownerState,ownerState:t.ownerState}),r.push(c.style(a))):r.push(c.style)}return r}function OM(t={}){const{themeId:e,defaultTheme:r=EM,rootShouldForwardProp:a=ac,slotShouldForwardProp:s=ac}=t;function l(f){MM(f,e,r)}return(f,p={})=>{bw(f,E=>E.filter(k=>k!==Wi));const{name:d,slot:m,skipVariantsResolver:y,skipSx:v,overridesResolver:b=wM(_M(m)),...x}=p,S=y!==void 0?y:m&&m!=="Root"&&m!=="root"||!1,A=v||!1;let w=ac;m==="Root"||m==="root"?w=a:m?w=s:DM(f)&&(w=void 0);const D=vw(f,{shouldForwardProp:w,label:RM(),...x}),O=E=>{if(typeof E=="function"&&E.__emotion_real!==E)return function(z){return oc(z,E)};if(ir(E)){const k=lS(E);return k.variants?function(H){return oc(H,k)}:k.style}return E},R=(...E)=>{const k=[],z=E.map(O),H=[];if(k.push(l),d&&b&&H.push(function(I){var j,Y;const it=(Y=(j=I.theme.components)==null?void 0:j[d])==null?void 0:Y.styleOverrides;if(!it)return null;const lt={};for(const W in it)lt[W]=oc(I,it[W]);return b(I,lt)}),d&&!S&&H.push(function(I){var lt,j;const q=I.theme,it=(j=(lt=q==null?void 0:q.components)==null?void 0:lt[d])==null?void 0:j.variants;return it?uS(I,it):null}),A||H.push(Wi),Array.isArray(z[0])){const _=z.shift(),I=new Array(k.length).fill(""),q=new Array(H.length).fill("");let it;it=[...I,..._,...q],it.raw=[...I,..._.raw,...q],k.unshift(it)}const L=[...k,...z,...H],C=D(...L);return f.muiName&&(C.muiName=f.muiName),C};return D.withConfig&&(R.withConfig=D.withConfig),R}}function RM(t,e){return void 0}function kM(t){for(const e in t)return!1;return!0}function DM(t){return typeof t=="string"&&t.charCodeAt(0)>96}function _M(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}function Ji(t,e,r=!1){const a={...e};for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)){const l=s;if(l==="components"||l==="slots")a[l]={...t[l],...a[l]};else if(l==="componentsProps"||l==="slotProps"){const c=t[l],f=e[l];if(!f)a[l]=c||{};else if(!c)a[l]=f;else{a[l]={...f};for(const p in c)if(Object.prototype.hasOwnProperty.call(c,p)){const d=p;a[l][d]=Ji(c[d],f[d],r)}}}else l==="className"&&r&&e.className?a.className=Jt(t==null?void 0:t.className,e==null?void 0:e.className):l==="style"&&r&&e.style?a.style={...t==null?void 0:t.style,...e==null?void 0:e.style}:a[l]===void 0&&(a[l]=t[l])}return a}function cS(t){const{theme:e,name:r,props:a}=t;return!e||!e.components||!e.components[r]||!e.components[r].defaultProps?a:Ji(e.components[r].defaultProps,a)}function zM({props:t,name:e,defaultTheme:r,themeId:a}){let s=oS(r);return s=s[a]||s,cS({theme:s,name:e,props:t})}const Te=typeof window<"u"?U.useLayoutEffect:U.useEffect;function $M(t,e,r,a,s){const[l,c]=U.useState(()=>s&&r?r(t).matches:a?a(t).matches:e);return Te(()=>{if(!r)return;const f=r(t),p=()=>{c(f.matches)};return p(),f.addEventListener("change",p),()=>{f.removeEventListener("change",p)}},[t,r]),l}const NM={...uc},fS=NM.useSyncExternalStore;function LM(t,e,r,a,s){const l=U.useCallback(()=>e,[e]),c=U.useMemo(()=>{if(s&&r)return()=>r(t).matches;if(a!==null){const{matches:m}=a(t);return()=>m}return l},[l,t,a,s,r]),[f,p]=U.useMemo(()=>{if(r===null)return[l,()=>()=>{}];const m=r(t);return[()=>m.matches,y=>(m.addEventListener("change",y),()=>{m.removeEventListener("change",y)})]},[l,r,t]);return fS(p,f,c)}function dS(t={}){const{themeId:e}=t;return function(a,s={}){let l=sm();l&&e&&(l=l[e]||l);const c=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:f=!1,matchMedia:p=c?window.matchMedia:null,ssrMatchMedia:d=null,noSsr:m=!1}=cS({name:"MuiUseMediaQuery",props:s,theme:l});let y=typeof a=="function"?a(l):a;return y=y.replace(/^@media( ?)/m,""),y.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(` 65 + `)),(fS!==void 0?LM:$M)(y,f,p,d,m)}}dS();function jM(t,e=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,r))}function lm(t,e=0,r=1){return jM(t,e,r)}function UM(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let r=t.match(e);return r&&r[0].length===1&&(r=r.map(a=>a+a)),r?`rgb${r.length===4?"a":""}(${r.map((a,s)=>s<3?parseInt(a,16):Math.round(parseInt(a,16)/255*1e3)/1e3).join(", ")})`:""}function xi(t){if(t.type)return t;if(t.charAt(0)==="#")return xi(UM(t));const e=t.indexOf("("),r=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(Fi(9,t));let a=t.substring(e+1,t.length-1),s;if(r==="color"){if(a=a.split(" "),s=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(Fi(10,s))}else a=a.split(",");return a=a.map(l=>parseFloat(l)),{type:r,values:a,colorSpace:s}}const BM=t=>{const e=xi(t);return e.values.slice(0,3).map((r,a)=>e.type.includes("hsl")&&a!==0?`${r}%`:r).join(" ")},Bs=(t,e)=>{try{return BM(t)}catch{return t}};function Xc(t){const{type:e,colorSpace:r}=t;let{values:a}=t;return e.includes("rgb")?a=a.map((s,l)=>l<3?parseInt(s,10):s):e.includes("hsl")&&(a[1]=`${a[1]}%`,a[2]=`${a[2]}%`),e.includes("color")?a=`${r} ${a.join(" ")}`:a=`${a.join(", ")}`,`${e}(${a})`}function hS(t){t=xi(t);const{values:e}=t,r=e[0],a=e[1]/100,s=e[2]/100,l=a*Math.min(s,1-s),c=(d,m=(d+r/30)%12)=>s-l*Math.max(Math.min(m-3,9-m,1),-1);let f="rgb";const p=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return t.type==="hsla"&&(f+="a",p.push(e[3])),Xc({type:f,values:p})}function bp(t){t=xi(t);let e=t.type==="hsl"||t.type==="hsla"?xi(hS(t)).values:t.values;return e=e.map(r=>(t.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function HM(t,e){const r=bp(t),a=bp(e);return(Math.max(r,a)+.05)/(Math.min(r,a)+.05)}function bi(t,e){return t=xi(t),e=lm(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,Xc(t)}function Iu(t,e,r){try{return bi(t,e)}catch{return t}}function um(t,e){if(t=xi(t),e=lm(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]*=1-e;return Xc(t)}function Qt(t,e,r){try{return um(t,e)}catch{return t}}function cm(t,e){if(t=xi(t),e=lm(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;else if(t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]+=(1-t.values[r])*e;return Xc(t)}function Ft(t,e,r){try{return cm(t,e)}catch{return t}}function IM(t,e=.15){return bp(t)>.5?um(t,e):cm(t,e)}function Pu(t,e,r){try{return IM(t,e)}catch{return t}}const pS=U.createContext(null);function fm(){return U.useContext(pS)}const PM=typeof Symbol=="function"&&Symbol.for,GM=PM?Symbol.for("mui.nested"):"__THEME_NESTED__";function YM(t,e){return typeof e=="function"?e(t):{...t,...e}}function qM(t){const{children:e,theme:r}=t,a=fm(),s=U.useMemo(()=>{const l=a===null?{...r}:YM(a,r);return l!=null&&(l[GM]=a!==null),l},[r,a]);return N.jsx(pS.Provider,{value:s,children:e})}const mS=U.createContext();function VM({value:t,...e}){return N.jsx(mS.Provider,{value:t??!0,...e})}const dm=()=>U.useContext(mS)??!1,gS=U.createContext(void 0);function XM({value:t,children:e}){return N.jsx(gS.Provider,{value:t,children:e})}function KM(t){const{theme:e,name:r,props:a}=t;if(!e||!e.components||!e.components[r])return a;const s=e.components[r];return s.defaultProps?Ji(s.defaultProps,a):!s.styleOverrides&&!s.variants?Ji(s,a):a}function ZM({props:t,name:e}){const r=U.useContext(gS);return KM({props:t,name:e,theme:{components:r}})}const jb={};function Ub(t,e,r,a=!1){return U.useMemo(()=>{const s=t&&e[t]||e;if(typeof r=="function"){const l=r(s),c=t?{...e,[t]:l}:l;return a?()=>c:c}return t?{...e,[t]:r}:{...e,...r}},[t,e,r,a])}function yS(t){const{children:e,theme:r,themeId:a}=t,s=sm(jb),l=fm()||jb,c=Ub(a,s,r),f=Ub(a,l,r,!0),p=(a?c[a]:c).direction==="rtl";return N.jsx(qM,{theme:f,children:N.jsx(ul.Provider,{value:c,children:N.jsx(VM,{value:p,children:N.jsx(XM,{value:a?c[a].components:c.components,children:e})})})})}const Bb={theme:void 0};function QM(t){let e,r;return function(s){let l=e;return(l===void 0||s.theme!==r)&&(Bb.theme=s.theme,l=lS(t(Bb)),e=l,r=s.theme),l}}const hm="mode",pm="color-scheme",FM="data-color-scheme";function WM(t){const{defaultMode:e="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:a="dark",modeStorageKey:s=hm,colorSchemeStorageKey:l=pm,attribute:c=FM,colorSchemeNode:f="document.documentElement",nonce:p}=t||{};let d="",m=c;if(c==="class"&&(m=".%s"),c==="data"&&(m="[data-%s]"),m.startsWith(".")){const v=m.substring(1);d+=`${f}.classList.remove('${v}'.replace('%s', light), '${v}'.replace('%s', dark)); 66 + ${f}.classList.add('${v}'.replace('%s', colorScheme));`}const y=m.match(/\[([^\]]+)\]/);if(y){const[v,b]=y[1].split("=");b||(d+=`${f}.removeAttribute('${v}'.replace('%s', light)); 67 + ${f}.removeAttribute('${v}'.replace('%s', dark));`),d+=` 68 + ${f}.setAttribute('${v}'.replace('%s', colorScheme), ${b?`${b}.replace('%s', colorScheme)`:'""'});`}else d+=`${f}.setAttribute('${m}', colorScheme);`;return N.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(function() { 69 + try { 70 + let colorScheme = ''; 71 + const mode = localStorage.getItem('${s}') || '${e}'; 72 + const dark = localStorage.getItem('${l}-dark') || '${a}'; 73 + const light = localStorage.getItem('${l}-light') || '${r}'; 74 + if (mode === 'system') { 75 + // handle system mode 76 + const mql = window.matchMedia('(prefers-color-scheme: dark)'); 77 + if (mql.matches) { 78 + colorScheme = dark 79 + } else { 80 + colorScheme = light 81 + } 82 + } 83 + if (mode === 'light') { 84 + colorScheme = light; 85 + } 86 + if (mode === 'dark') { 87 + colorScheme = dark; 88 + } 89 + if (colorScheme) { 90 + ${d} 91 + } 92 + } catch(e){}})();`}},"mui-color-scheme-init")}function JM(){}const tO=({key:t,storageWindow:e})=>(!e&&typeof window<"u"&&(e=window),{get(r){if(typeof window>"u")return;if(!e)return r;let a;try{a=e.localStorage.getItem(t)}catch{}return a||r},set:r=>{if(e)try{e.localStorage.setItem(t,r)}catch{}},subscribe:r=>{if(!e)return JM;const a=s=>{const l=s.newValue;s.key===t&&r(l)};return e.addEventListener("storage",a),()=>{e.removeEventListener("storage",a)}}});function Hh(){}function Hb(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function vS(t,e){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return e("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return e("dark")}function eO(t){return vS(t,e=>{if(e==="light")return t.lightColorScheme;if(e==="dark")return t.darkColorScheme})}function nO(t){const{defaultMode:e="light",defaultLightColorScheme:r,defaultDarkColorScheme:a,supportedColorSchemes:s=[],modeStorageKey:l=hm,colorSchemeStorageKey:c=pm,storageWindow:f=typeof window>"u"?void 0:window,storageManager:p=tO,noSsr:d=!1}=t,m=s.join(","),y=s.length>1,v=U.useMemo(()=>p==null?void 0:p({key:l,storageWindow:f}),[p,l,f]),b=U.useMemo(()=>p==null?void 0:p({key:`${c}-light`,storageWindow:f}),[p,c,f]),x=U.useMemo(()=>p==null?void 0:p({key:`${c}-dark`,storageWindow:f}),[p,c,f]),[S,A]=U.useState(()=>{const H=(v==null?void 0:v.get(e))||e,L=(b==null?void 0:b.get(r))||r,C=(x==null?void 0:x.get(a))||a;return{mode:H,systemMode:Hb(H),lightColorScheme:L,darkColorScheme:C}}),[w,D]=U.useState(d||!y);U.useEffect(()=>{D(!0)},[]);const O=eO(S),R=U.useCallback(H=>{A(L=>{if(H===L.mode)return L;const C=H??e;return v==null||v.set(C),{...L,mode:C,systemMode:Hb(C)}})},[v,e]),E=U.useCallback(H=>{H?typeof H=="string"?H&&!m.includes(H)?console.error(`\`${H}\` does not exist in \`theme.colorSchemes\`.`):A(L=>{const C={...L};return vS(L,_=>{_==="light"&&(b==null||b.set(H),C.lightColorScheme=H),_==="dark"&&(x==null||x.set(H),C.darkColorScheme=H)}),C}):A(L=>{const C={...L},_=H.light===null?r:H.light,I=H.dark===null?a:H.dark;return _&&(m.includes(_)?(C.lightColorScheme=_,b==null||b.set(_)):console.error(`\`${_}\` does not exist in \`theme.colorSchemes\`.`)),I&&(m.includes(I)?(C.darkColorScheme=I,x==null||x.set(I)):console.error(`\`${I}\` does not exist in \`theme.colorSchemes\`.`)),C}):A(L=>(b==null||b.set(r),x==null||x.set(a),{...L,lightColorScheme:r,darkColorScheme:a}))},[m,b,x,r,a]),k=U.useCallback(H=>{S.mode==="system"&&A(L=>{const C=H!=null&&H.matches?"dark":"light";return L.systemMode===C?L:{...L,systemMode:C}})},[S.mode]),z=U.useRef(k);return z.current=k,U.useEffect(()=>{if(typeof window.matchMedia!="function"||!y)return;const H=(...C)=>z.current(...C),L=window.matchMedia("(prefers-color-scheme: dark)");return L.addListener(H),H(L),()=>{L.removeListener(H)}},[y]),U.useEffect(()=>{if(y){const H=(v==null?void 0:v.subscribe(_=>{(!_||["light","dark","system"].includes(_))&&R(_||e)}))||Hh,L=(b==null?void 0:b.subscribe(_=>{(!_||m.match(_))&&E({light:_})}))||Hh,C=(x==null?void 0:x.subscribe(_=>{(!_||m.match(_))&&E({dark:_})}))||Hh;return()=>{H(),L(),C()}}},[E,R,m,e,f,y,v,b,x]),{...S,mode:w?S.mode:void 0,systemMode:w?S.systemMode:void 0,colorScheme:w?O:void 0,setMode:R,setColorScheme:E}}const rO="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function iO(t){const{themeId:e,theme:r={},modeStorageKey:a=hm,colorSchemeStorageKey:s=pm,disableTransitionOnChange:l=!1,defaultColorScheme:c,resolveTheme:f}=t,p={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},d=U.createContext(void 0),m=()=>U.useContext(d)||p,y={},v={};function b(w){var In,ve,Fe,He;const{children:D,theme:O,modeStorageKey:R=a,colorSchemeStorageKey:E=s,disableTransitionOnChange:k=l,storageManager:z,storageWindow:H=typeof window>"u"?void 0:window,documentNode:L=typeof document>"u"?void 0:document,colorSchemeNode:C=typeof document>"u"?void 0:document.documentElement,disableNestedContext:_=!1,disableStyleSheetGeneration:I=!1,defaultMode:q="system",forceThemeRerender:it=!1,noSsr:lt}=w,j=U.useRef(!1),Y=fm(),W=U.useContext(d),J=!!W&&!_,$=U.useMemo(()=>O||(typeof r=="function"?r():r),[O]),Z=$[e],at=Z||$,{colorSchemes:ot=y,components:ct=v,cssVarPrefix:dt}=at,ft=Object.keys(ot).filter(Ie=>!!ot[Ie]).join(","),At=U.useMemo(()=>ft.split(","),[ft]),bt=typeof c=="string"?c:c.light,nt=typeof c=="string"?c:c.dark,ht=ot[bt]&&ot[nt]?q:((ve=(In=ot[at.defaultColorScheme])==null?void 0:In.palette)==null?void 0:ve.mode)||((Fe=at.palette)==null?void 0:Fe.mode),{mode:vt,setMode:ut,systemMode:$t,lightColorScheme:gt,darkColorScheme:Yt,colorScheme:re,setColorScheme:jt}=nO({supportedColorSchemes:At,defaultLightColorScheme:bt,defaultDarkColorScheme:nt,modeStorageKey:R,colorSchemeStorageKey:E,defaultMode:ht,storageManager:z,storageWindow:H,noSsr:lt});let Be=vt,Ae=re;J&&(Be=W.mode,Ae=W.colorScheme);let Ee=Ae||at.defaultColorScheme;at.vars&&!it&&(Ee=at.defaultColorScheme);const De=U.useMemo(()=>{var cr;const Ie=((cr=at.generateThemeVars)==null?void 0:cr.call(at))||at.vars,oe={...at,components:ct,colorSchemes:ot,cssVarPrefix:dt,vars:Ie};if(typeof oe.generateSpacing=="function"&&(oe.spacing=oe.generateSpacing()),Ee){const Ke=ot[Ee];Ke&&typeof Ke=="object"&&Object.keys(Ke).forEach(Pe=>{Ke[Pe]&&typeof Ke[Pe]=="object"?oe[Pe]={...oe[Pe],...Ke[Pe]}:oe[Pe]=Ke[Pe]})}return f?f(oe):oe},[at,Ee,ct,ot,dt]),St=at.colorSchemeSelector;Te(()=>{if(Ae&&C&&St&&St!=="media"){const Ie=St;let oe=St;if(Ie==="class"&&(oe=".%s"),Ie==="data"&&(oe="[data-%s]"),Ie!=null&&Ie.startsWith("data-")&&!Ie.includes("%s")&&(oe=`[${Ie}="%s"]`),oe.startsWith("."))C.classList.remove(...At.map(cr=>oe.substring(1).replace("%s",cr))),C.classList.add(oe.substring(1).replace("%s",Ae));else{const cr=oe.replace("%s",Ae).match(/\[([^\]]+)\]/);if(cr){const[Ke,Pe]=cr[1].split("=");Pe||At.forEach(fr=>{C.removeAttribute(Ke.replace(Ae,fr))}),C.setAttribute(Ke,Pe?Pe.replace(/"|'/g,""):"")}else C.setAttribute(oe,Ae)}}},[Ae,St,C,At]),U.useEffect(()=>{let Ie;if(k&&j.current&&L){const oe=L.createElement("style");oe.appendChild(L.createTextNode(rO)),L.head.appendChild(oe),window.getComputedStyle(L.body),Ie=setTimeout(()=>{L.head.removeChild(oe)},1)}return()=>{clearTimeout(Ie)}},[Ae,k,L]),U.useEffect(()=>(j.current=!0,()=>{j.current=!1}),[]);const Ci=U.useMemo(()=>({allColorSchemes:At,colorScheme:Ae,darkColorScheme:Yt,lightColorScheme:gt,mode:Be,setColorScheme:jt,setMode:ut,systemMode:$t}),[At,Ae,Yt,gt,Be,jt,ut,$t,De.colorSchemeSelector]);let Vr=!0;(I||at.cssVariables===!1||J&&(Y==null?void 0:Y.cssVarPrefix)===dt)&&(Vr=!1);const Ai=N.jsxs(U.Fragment,{children:[N.jsx(yS,{themeId:Z?e:void 0,theme:De,children:D}),Vr&&N.jsx(yw,{styles:((He=De.generateStyleSheets)==null?void 0:He.call(De))||[]})]});return J?Ai:N.jsx(d.Provider,{value:Ci,children:Ai})}const x=typeof c=="string"?c:c.light,S=typeof c=="string"?c:c.dark;return{CssVarsProvider:b,useColorScheme:m,getInitColorSchemeScript:w=>WM({colorSchemeStorageKey:s,defaultLightColorScheme:x,defaultDarkColorScheme:S,modeStorageKey:a,...w})}}function aO(t=""){function e(...a){if(!a.length)return"";const s=a[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${s}${e(...a.slice(1))})`:`, ${s}`}return(a,...s)=>`var(--${t?`${t}-`:""}${a}${e(...s)})`}const Ib=(t,e,r,a=[])=>{let s=t;e.forEach((l,c)=>{c===e.length-1?Array.isArray(s)?s[Number(l)]=r:s&&typeof s=="object"&&(s[l]=r):s&&typeof s=="object"&&(s[l]||(s[l]=a.includes(l)?[]:{}),s=s[l])})},oO=(t,e,r)=>{function a(s,l=[],c=[]){Object.entries(s).forEach(([f,p])=>{(!r||r&&!r([...l,f]))&&p!=null&&(typeof p=="object"&&Object.keys(p).length>0?a(p,[...l,f],Array.isArray(p)?[...c,f]:c):e([...l,f],p,c))})}a(t)},sO=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(a=>t.includes(a))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function Ih(t,e){const{prefix:r,shouldSkipGeneratingVar:a}=e||{},s={},l={},c={};return oO(t,(f,p,d)=>{if((typeof p=="string"||typeof p=="number")&&(!a||!a(f,p))){const m=`--${r?`${r}-`:""}${f.join("-")}`,y=sO(f,p);Object.assign(s,{[m]:y}),Ib(l,f,`var(${m})`,d),Ib(c,f,`var(${m}, ${y})`,d)}},f=>f[0]==="vars"),{css:s,vars:l,varsWithDefaults:c}}function lO(t,e={}){const{getSelector:r=A,disableCssColorScheme:a,colorSchemeSelector:s}=e,{colorSchemes:l={},components:c,defaultColorScheme:f="light",...p}=t,{vars:d,css:m,varsWithDefaults:y}=Ih(p,e);let v=y;const b={},{[f]:x,...S}=l;if(Object.entries(S||{}).forEach(([O,R])=>{const{vars:E,css:k,varsWithDefaults:z}=Ih(R,e);v=yn(v,z),b[O]={css:k,vars:E}}),x){const{css:O,vars:R,varsWithDefaults:E}=Ih(x,e);v=yn(v,E),b[f]={css:O,vars:R}}function A(O,R){var k,z;let E=s;if(s==="class"&&(E=".%s"),s==="data"&&(E="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(E=`[${s}="%s"]`),O){if(E==="media")return t.defaultColorScheme===O?":root":{[`@media (prefers-color-scheme: ${((z=(k=l[O])==null?void 0:k.palette)==null?void 0:z.mode)||O})`]:{":root":R}};if(E)return t.defaultColorScheme===O?`:root, ${E.replace("%s",String(O))}`:E.replace("%s",String(O))}return":root"}return{vars:v,generateThemeVars:()=>{let O={...d};return Object.entries(b).forEach(([,{vars:R}])=>{O=yn(O,R)}),O},generateStyleSheets:()=>{var H,L;const O=[],R=t.defaultColorScheme||"light";function E(C,_){Object.keys(_).length&&O.push(typeof C=="string"?{[C]:{..._}}:C)}E(r(void 0,{...m}),m);const{[R]:k,...z}=b;if(k){const{css:C}=k,_=(L=(H=l[R])==null?void 0:H.palette)==null?void 0:L.mode,I=!a&&_?{colorScheme:_,...C}:{...C};E(r(R,{...I}),I)}return Object.entries(z).forEach(([C,{css:_}])=>{var it,lt;const I=(lt=(it=l[C])==null?void 0:it.palette)==null?void 0:lt.mode,q=!a&&I?{colorScheme:I,..._}:{..._};E(r(C,{...q}),q)}),O}}}function uO(t){return function(r){return t==="media"?`@media (prefers-color-scheme: ${r})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${r}"] &`:t==="class"?`.${r} &`:t==="data"?`[data-${r}] &`:`${t.replace("%s",r)} &`:"&"}}function Ue(t,e,r=void 0){const a={};for(const s in t){const l=t[s];let c="",f=!0;for(let p=0;p<l.length;p+=1){const d=l[p];d&&(c+=(f===!0?"":" ")+e(d),f=!1,r&&r[d]&&(c+=" "+r[d]))}a[s]=c}return a}const Fs={black:"#000",white:"#fff"},cO={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Va={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Xa={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ds={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ka={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Za={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Qa={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function bS(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Fs.white,default:Fs.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const fO=bS();function xS(){return{text:{primary:Fs.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Fs.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Pb=xS();function Gb(t,e,r,a){const s=a.light||a,l=a.dark||a*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=cm(t.main,s):e==="dark"&&(t.dark=um(t.main,l)))}function dO(t="light"){return t==="dark"?{main:Ka[200],light:Ka[50],dark:Ka[400]}:{main:Ka[700],light:Ka[400],dark:Ka[800]}}function hO(t="light"){return t==="dark"?{main:Va[200],light:Va[50],dark:Va[400]}:{main:Va[500],light:Va[300],dark:Va[700]}}function pO(t="light"){return t==="dark"?{main:Xa[500],light:Xa[300],dark:Xa[700]}:{main:Xa[700],light:Xa[400],dark:Xa[800]}}function mO(t="light"){return t==="dark"?{main:Za[400],light:Za[300],dark:Za[700]}:{main:Za[700],light:Za[500],dark:Za[900]}}function gO(t="light"){return t==="dark"?{main:Qa[400],light:Qa[300],dark:Qa[700]}:{main:Qa[800],light:Qa[500],dark:Qa[900]}}function yO(t="light"){return t==="dark"?{main:Ds[400],light:Ds[300],dark:Ds[700]}:{main:"#ed6c02",light:Ds[500],dark:Ds[900]}}function mm(t){const{mode:e="light",contrastThreshold:r=3,tonalOffset:a=.2,...s}=t,l=t.primary||dO(e),c=t.secondary||hO(e),f=t.error||pO(e),p=t.info||mO(e),d=t.success||gO(e),m=t.warning||yO(e);function y(S){return HM(S,Pb.text.primary)>=r?Pb.text.primary:fO.text.primary}const v=({color:S,name:A,mainShade:w=500,lightShade:D=300,darkShade:O=700})=>{if(S={...S},!S.main&&S[w]&&(S.main=S[w]),!S.hasOwnProperty("main"))throw new Error(Fi(11,A?` (${A})`:"",w));if(typeof S.main!="string")throw new Error(Fi(12,A?` (${A})`:"",JSON.stringify(S.main)));return Gb(S,"light",D,a),Gb(S,"dark",O,a),S.contrastText||(S.contrastText=y(S.main)),S};let b;return e==="light"?b=bS():e==="dark"&&(b=xS()),yn({common:{...Fs},mode:e,primary:v({color:l,name:"primary"}),secondary:v({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:f,name:"error"}),warning:v({color:m,name:"warning"}),info:v({color:p,name:"info"}),success:v({color:d,name:"success"}),grey:cO,contrastThreshold:r,getContrastText:y,augmentColor:v,tonalOffset:a,...b},s)}function vO(t){const e={};return Object.entries(t).forEach(a=>{const[s,l]=a;typeof l=="object"&&(e[s]=`${l.fontStyle?`${l.fontStyle} `:""}${l.fontVariant?`${l.fontVariant} `:""}${l.fontWeight?`${l.fontWeight} `:""}${l.fontStretch?`${l.fontStretch} `:""}${l.fontSize||""}${l.lineHeight?`/${l.lineHeight} `:""}${l.fontFamily||""}`)}),e}function bO(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function xO(t){return Math.round(t*1e5)/1e5}const Yb={textTransform:"uppercase"},qb='"Roboto", "Helvetica", "Arial", sans-serif';function SS(t,e){const{fontFamily:r=qb,fontSize:a=14,fontWeightLight:s=300,fontWeightRegular:l=400,fontWeightMedium:c=500,fontWeightBold:f=700,htmlFontSize:p=16,allVariants:d,pxToRem:m,...y}=typeof e=="function"?e(t):e,v=a/14,b=m||(A=>`${A/p*v}rem`),x=(A,w,D,O,R)=>({fontFamily:r,fontWeight:A,fontSize:b(w),lineHeight:D,...r===qb?{letterSpacing:`${xO(O/w)}em`}:{},...R,...d}),S={h1:x(s,96,1.167,-1.5),h2:x(s,60,1.2,-.5),h3:x(l,48,1.167,0),h4:x(l,34,1.235,.25),h5:x(l,24,1.334,0),h6:x(c,20,1.6,.15),subtitle1:x(l,16,1.75,.15),subtitle2:x(c,14,1.57,.1),body1:x(l,16,1.5,.15),body2:x(l,14,1.43,.15),button:x(c,14,1.75,.4,Yb),caption:x(l,12,1.66,.4),overline:x(l,12,2.66,1,Yb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return yn({htmlFontSize:p,pxToRem:b,fontFamily:r,fontSize:a,fontWeightLight:s,fontWeightRegular:l,fontWeightMedium:c,fontWeightBold:f,...S},y,{clone:!1})}const SO=.2,TO=.14,CO=.12;function ae(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${SO})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${TO})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${CO})`].join(",")}const AO=["none",ae(0,2,1,-1,0,1,1,0,0,1,3,0),ae(0,3,1,-2,0,2,2,0,0,1,5,0),ae(0,3,3,-2,0,3,4,0,0,1,8,0),ae(0,2,4,-1,0,4,5,0,0,1,10,0),ae(0,3,5,-1,0,5,8,0,0,1,14,0),ae(0,3,5,-1,0,6,10,0,0,1,18,0),ae(0,4,5,-2,0,7,10,1,0,2,16,1),ae(0,5,5,-3,0,8,10,1,0,3,14,2),ae(0,5,6,-3,0,9,12,1,0,3,16,2),ae(0,6,6,-3,0,10,14,1,0,4,18,3),ae(0,6,7,-4,0,11,15,1,0,4,20,3),ae(0,7,8,-4,0,12,17,2,0,5,22,4),ae(0,7,8,-4,0,13,19,2,0,5,24,4),ae(0,7,9,-4,0,14,21,2,0,5,26,4),ae(0,8,9,-5,0,15,22,2,0,6,28,5),ae(0,8,10,-5,0,16,24,2,0,6,30,5),ae(0,8,11,-5,0,17,26,2,0,6,32,5),ae(0,9,11,-5,0,18,28,2,0,7,34,6),ae(0,9,12,-6,0,19,29,2,0,7,36,6),ae(0,10,13,-6,0,20,31,3,0,8,38,7),ae(0,10,13,-6,0,21,33,3,0,8,40,7),ae(0,10,14,-6,0,22,35,3,0,8,42,7),ae(0,11,14,-7,0,23,36,3,0,9,44,8),ae(0,11,15,-7,0,24,38,3,0,9,46,8)],EO={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},wO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Vb(t){return`${Math.round(t)}ms`}function MO(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function OO(t){const e={...EO,...t.easing},r={...wO,...t.duration};return{getAutoHeightDuration:MO,create:(s=["all"],l={})=>{const{duration:c=r.standard,easing:f=e.easeInOut,delay:p=0,...d}=l;return(Array.isArray(s)?s:[s]).map(m=>`${m} ${typeof c=="string"?c:Vb(c)} ${f} ${typeof p=="string"?p:Vb(p)}`).join(",")},...t,easing:e,duration:r}}const RO={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function kO(t){return ir(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function TS(t={}){const e={...t};function r(a){const s=Object.entries(a);for(let l=0;l<s.length;l++){const[c,f]=s[l];!kO(f)||c.startsWith("unstable_")?delete a[c]:ir(f)&&(a[c]={...f},r(a[c]))}}return r(e),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles'; 93 + 94 + const theme = ${JSON.stringify(e,null,2)}; 95 + 96 + theme.breakpoints = createBreakpoints(theme.breakpoints || {}); 97 + theme.transitions = createTransitions(theme.transitions || {}); 98 + 99 + export default theme;`}function xp(t={},...e){const{breakpoints:r,mixins:a={},spacing:s,palette:l={},transitions:c={},typography:f={},shape:p,...d}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(Fi(20));const m=mm(l),y=om(t);let v=yn(y,{mixins:bO(y.breakpoints,a),palette:m,shadows:AO.slice(),typography:SS(m,f),transitions:OO(c),zIndex:{...RO}});return v=yn(v,d),v=e.reduce((b,x)=>yn(b,x),v),v.unstable_sxConfig={...hl,...d==null?void 0:d.unstable_sxConfig},v.unstable_sx=function(x){return Wi({sx:x,theme:this})},v.toRuntimeSource=TS,v}function DO(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const _O=[...Array(25)].map((t,e)=>{if(e===0)return"none";const r=DO(e);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function CS(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function AS(t){return t==="dark"?_O:[]}function zO(t){const{palette:e={mode:"light"},opacity:r,overlays:a,...s}=t,l=mm(e);return{palette:l,opacity:{...CS(l.mode),...r},overlays:a||AS(l.mode),...s}}function $O(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const NO=t=>[...[...Array(25)].map((e,r)=>`--${t?`${t}-`:""}overlays-${r}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],LO=t=>(e,r)=>{const a=t.rootSelector||":root",s=t.colorSchemeSelector;let l=s;if(s==="class"&&(l=".%s"),s==="data"&&(l="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(l=`[${s}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const c={};return NO(t.cssVarPrefix).forEach(f=>{c[f]=r[f],delete r[f]}),l==="media"?{[a]:r,"@media (prefers-color-scheme: dark)":{[a]:c}}:l?{[l.replace("%s",e)]:c,[`${a}, ${l.replace("%s",e)}`]:r}:{[a]:{...r,...c}}}if(l&&l!=="media")return`${a}, ${l.replace("%s",String(e))}`}else if(e){if(l==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[a]:r}};if(l)return l.replace("%s",String(e))}return a};function jO(t,e){e.forEach(r=>{t[r]||(t[r]={})})}function tt(t,e,r){!t[e]&&r&&(t[e]=r)}function Hs(t){return typeof t!="string"||!t.startsWith("hsl")?t:hS(t)}function Mr(t,e){`${e}Channel`in t||(t[`${e}Channel`]=Bs(Hs(t[e])))}function UO(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const er=t=>{try{return t()}catch{}},BO=(t="mui")=>aO(t);function Ph(t,e,r,a){if(!e)return;e=e===!0?{}:e;const s=a==="dark"?"dark":"light";if(!r){t[a]=zO({...e,palette:{mode:s,...e==null?void 0:e.palette}});return}const{palette:l,...c}=xp({...r,palette:{mode:s,...e==null?void 0:e.palette}});return t[a]={...e,palette:l,opacity:{...CS(s),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||AS(s)},c}function HO(t={},...e){const{colorSchemes:r={light:!0},defaultColorScheme:a,disableCssColorScheme:s=!1,cssVarPrefix:l="mui",shouldSkipGeneratingVar:c=$O,colorSchemeSelector:f=r.light&&r.dark?"media":void 0,rootSelector:p=":root",...d}=t,m=Object.keys(r)[0],y=a||(r.light&&m!=="light"?"light":m),v=BO(l),{[y]:b,light:x,dark:S,...A}=r,w={...A};let D=b;if((y==="dark"&&!("dark"in r)||y==="light"&&!("light"in r))&&(D=!0),!D)throw new Error(Fi(21,y));const O=Ph(w,D,d,y);x&&!w.light&&Ph(w,x,void 0,"light"),S&&!w.dark&&Ph(w,S,void 0,"dark");let R={defaultColorScheme:y,...O,cssVarPrefix:l,colorSchemeSelector:f,rootSelector:p,getCssVar:v,colorSchemes:w,font:{...vO(O.typography),...O.font},spacing:UO(d.spacing)};Object.keys(R.colorSchemes).forEach(L=>{const C=R.colorSchemes[L].palette,_=I=>{const q=I.split("-"),it=q[1],lt=q[2];return v(I,C[it][lt])};if(C.mode==="light"&&(tt(C.common,"background","#fff"),tt(C.common,"onBackground","#000")),C.mode==="dark"&&(tt(C.common,"background","#000"),tt(C.common,"onBackground","#fff")),jO(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){tt(C.Alert,"errorColor",Qt(C.error.light,.6)),tt(C.Alert,"infoColor",Qt(C.info.light,.6)),tt(C.Alert,"successColor",Qt(C.success.light,.6)),tt(C.Alert,"warningColor",Qt(C.warning.light,.6)),tt(C.Alert,"errorFilledBg",_("palette-error-main")),tt(C.Alert,"infoFilledBg",_("palette-info-main")),tt(C.Alert,"successFilledBg",_("palette-success-main")),tt(C.Alert,"warningFilledBg",_("palette-warning-main")),tt(C.Alert,"errorFilledColor",er(()=>C.getContrastText(C.error.main))),tt(C.Alert,"infoFilledColor",er(()=>C.getContrastText(C.info.main))),tt(C.Alert,"successFilledColor",er(()=>C.getContrastText(C.success.main))),tt(C.Alert,"warningFilledColor",er(()=>C.getContrastText(C.warning.main))),tt(C.Alert,"errorStandardBg",Ft(C.error.light,.9)),tt(C.Alert,"infoStandardBg",Ft(C.info.light,.9)),tt(C.Alert,"successStandardBg",Ft(C.success.light,.9)),tt(C.Alert,"warningStandardBg",Ft(C.warning.light,.9)),tt(C.Alert,"errorIconColor",_("palette-error-main")),tt(C.Alert,"infoIconColor",_("palette-info-main")),tt(C.Alert,"successIconColor",_("palette-success-main")),tt(C.Alert,"warningIconColor",_("palette-warning-main")),tt(C.AppBar,"defaultBg",_("palette-grey-100")),tt(C.Avatar,"defaultBg",_("palette-grey-400")),tt(C.Button,"inheritContainedBg",_("palette-grey-300")),tt(C.Button,"inheritContainedHoverBg",_("palette-grey-A100")),tt(C.Chip,"defaultBorder",_("palette-grey-400")),tt(C.Chip,"defaultAvatarColor",_("palette-grey-700")),tt(C.Chip,"defaultIconColor",_("palette-grey-700")),tt(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),tt(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),tt(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),tt(C.LinearProgress,"primaryBg",Ft(C.primary.main,.62)),tt(C.LinearProgress,"secondaryBg",Ft(C.secondary.main,.62)),tt(C.LinearProgress,"errorBg",Ft(C.error.main,.62)),tt(C.LinearProgress,"infoBg",Ft(C.info.main,.62)),tt(C.LinearProgress,"successBg",Ft(C.success.main,.62)),tt(C.LinearProgress,"warningBg",Ft(C.warning.main,.62)),tt(C.Skeleton,"bg",`rgba(${_("palette-text-primaryChannel")} / 0.11)`),tt(C.Slider,"primaryTrack",Ft(C.primary.main,.62)),tt(C.Slider,"secondaryTrack",Ft(C.secondary.main,.62)),tt(C.Slider,"errorTrack",Ft(C.error.main,.62)),tt(C.Slider,"infoTrack",Ft(C.info.main,.62)),tt(C.Slider,"successTrack",Ft(C.success.main,.62)),tt(C.Slider,"warningTrack",Ft(C.warning.main,.62));const I=Pu(C.background.default,.8);tt(C.SnackbarContent,"bg",I),tt(C.SnackbarContent,"color",er(()=>C.getContrastText(I))),tt(C.SpeedDialAction,"fabHoverBg",Pu(C.background.paper,.15)),tt(C.StepConnector,"border",_("palette-grey-400")),tt(C.StepContent,"border",_("palette-grey-400")),tt(C.Switch,"defaultColor",_("palette-common-white")),tt(C.Switch,"defaultDisabledColor",_("palette-grey-100")),tt(C.Switch,"primaryDisabledColor",Ft(C.primary.main,.62)),tt(C.Switch,"secondaryDisabledColor",Ft(C.secondary.main,.62)),tt(C.Switch,"errorDisabledColor",Ft(C.error.main,.62)),tt(C.Switch,"infoDisabledColor",Ft(C.info.main,.62)),tt(C.Switch,"successDisabledColor",Ft(C.success.main,.62)),tt(C.Switch,"warningDisabledColor",Ft(C.warning.main,.62)),tt(C.TableCell,"border",Ft(Iu(C.divider,1),.88)),tt(C.Tooltip,"bg",Iu(C.grey[700],.92))}if(C.mode==="dark"){tt(C.Alert,"errorColor",Ft(C.error.light,.6)),tt(C.Alert,"infoColor",Ft(C.info.light,.6)),tt(C.Alert,"successColor",Ft(C.success.light,.6)),tt(C.Alert,"warningColor",Ft(C.warning.light,.6)),tt(C.Alert,"errorFilledBg",_("palette-error-dark")),tt(C.Alert,"infoFilledBg",_("palette-info-dark")),tt(C.Alert,"successFilledBg",_("palette-success-dark")),tt(C.Alert,"warningFilledBg",_("palette-warning-dark")),tt(C.Alert,"errorFilledColor",er(()=>C.getContrastText(C.error.dark))),tt(C.Alert,"infoFilledColor",er(()=>C.getContrastText(C.info.dark))),tt(C.Alert,"successFilledColor",er(()=>C.getContrastText(C.success.dark))),tt(C.Alert,"warningFilledColor",er(()=>C.getContrastText(C.warning.dark))),tt(C.Alert,"errorStandardBg",Qt(C.error.light,.9)),tt(C.Alert,"infoStandardBg",Qt(C.info.light,.9)),tt(C.Alert,"successStandardBg",Qt(C.success.light,.9)),tt(C.Alert,"warningStandardBg",Qt(C.warning.light,.9)),tt(C.Alert,"errorIconColor",_("palette-error-main")),tt(C.Alert,"infoIconColor",_("palette-info-main")),tt(C.Alert,"successIconColor",_("palette-success-main")),tt(C.Alert,"warningIconColor",_("palette-warning-main")),tt(C.AppBar,"defaultBg",_("palette-grey-900")),tt(C.AppBar,"darkBg",_("palette-background-paper")),tt(C.AppBar,"darkColor",_("palette-text-primary")),tt(C.Avatar,"defaultBg",_("palette-grey-600")),tt(C.Button,"inheritContainedBg",_("palette-grey-800")),tt(C.Button,"inheritContainedHoverBg",_("palette-grey-700")),tt(C.Chip,"defaultBorder",_("palette-grey-700")),tt(C.Chip,"defaultAvatarColor",_("palette-grey-300")),tt(C.Chip,"defaultIconColor",_("palette-grey-300")),tt(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),tt(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),tt(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),tt(C.LinearProgress,"primaryBg",Qt(C.primary.main,.5)),tt(C.LinearProgress,"secondaryBg",Qt(C.secondary.main,.5)),tt(C.LinearProgress,"errorBg",Qt(C.error.main,.5)),tt(C.LinearProgress,"infoBg",Qt(C.info.main,.5)),tt(C.LinearProgress,"successBg",Qt(C.success.main,.5)),tt(C.LinearProgress,"warningBg",Qt(C.warning.main,.5)),tt(C.Skeleton,"bg",`rgba(${_("palette-text-primaryChannel")} / 0.13)`),tt(C.Slider,"primaryTrack",Qt(C.primary.main,.5)),tt(C.Slider,"secondaryTrack",Qt(C.secondary.main,.5)),tt(C.Slider,"errorTrack",Qt(C.error.main,.5)),tt(C.Slider,"infoTrack",Qt(C.info.main,.5)),tt(C.Slider,"successTrack",Qt(C.success.main,.5)),tt(C.Slider,"warningTrack",Qt(C.warning.main,.5));const I=Pu(C.background.default,.98);tt(C.SnackbarContent,"bg",I),tt(C.SnackbarContent,"color",er(()=>C.getContrastText(I))),tt(C.SpeedDialAction,"fabHoverBg",Pu(C.background.paper,.15)),tt(C.StepConnector,"border",_("palette-grey-600")),tt(C.StepContent,"border",_("palette-grey-600")),tt(C.Switch,"defaultColor",_("palette-grey-300")),tt(C.Switch,"defaultDisabledColor",_("palette-grey-600")),tt(C.Switch,"primaryDisabledColor",Qt(C.primary.main,.55)),tt(C.Switch,"secondaryDisabledColor",Qt(C.secondary.main,.55)),tt(C.Switch,"errorDisabledColor",Qt(C.error.main,.55)),tt(C.Switch,"infoDisabledColor",Qt(C.info.main,.55)),tt(C.Switch,"successDisabledColor",Qt(C.success.main,.55)),tt(C.Switch,"warningDisabledColor",Qt(C.warning.main,.55)),tt(C.TableCell,"border",Qt(Iu(C.divider,1),.68)),tt(C.Tooltip,"bg",Iu(C.grey[700],.92))}Mr(C.background,"default"),Mr(C.background,"paper"),Mr(C.common,"background"),Mr(C.common,"onBackground"),Mr(C,"divider"),Object.keys(C).forEach(I=>{const q=C[I];I!=="tonalOffset"&&q&&typeof q=="object"&&(q.main&&tt(C[I],"mainChannel",Bs(Hs(q.main))),q.light&&tt(C[I],"lightChannel",Bs(Hs(q.light))),q.dark&&tt(C[I],"darkChannel",Bs(Hs(q.dark))),q.contrastText&&tt(C[I],"contrastTextChannel",Bs(Hs(q.contrastText))),I==="text"&&(Mr(C[I],"primary"),Mr(C[I],"secondary")),I==="action"&&(q.active&&Mr(C[I],"active"),q.selected&&Mr(C[I],"selected")))})}),R=e.reduce((L,C)=>yn(L,C),R);const E={prefix:l,disableCssColorScheme:s,shouldSkipGeneratingVar:c,getSelector:LO(R)},{vars:k,generateThemeVars:z,generateStyleSheets:H}=lO(R,E);return R.vars=k,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([L,C])=>{R[L]=C}),R.generateThemeVars=z,R.generateStyleSheets=H,R.generateSpacing=function(){return aS(d.spacing,im(this))},R.getColorSchemeSelector=uO(f),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=c,R.unstable_sxConfig={...hl,...d==null?void 0:d.unstable_sxConfig},R.unstable_sx=function(C){return Wi({sx:C,theme:this})},R.toRuntimeSource=TS,R}function Xb(t,e,r){t.colorSchemes&&r&&(t.colorSchemes[e]={...r!==!0&&r,palette:mm({...r===!0?{}:r.palette,mode:e})})}function gm(t={},...e){const{palette:r,cssVariables:a=!1,colorSchemes:s=r?void 0:{light:!0},defaultColorScheme:l=r==null?void 0:r.mode,...c}=t,f=l||"light",p=s==null?void 0:s[f],d={...s,...r?{[f]:{...typeof p!="boolean"&&p,palette:r}}:void 0};if(a===!1){if(!("colorSchemes"in t))return xp(t,...e);let m=r;"palette"in t||d[f]&&(d[f]!==!0?m=d[f].palette:f==="dark"&&(m={mode:"dark"}));const y=xp({...t,palette:m},...e);return y.defaultColorScheme=f,y.colorSchemes=d,y.palette.mode==="light"&&(y.colorSchemes.light={...d.light!==!0&&d.light,palette:y.palette},Xb(y,"dark",d.dark)),y.palette.mode==="dark"&&(y.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:y.palette},Xb(y,"light",d.light)),y}return!r&&!("light"in d)&&f==="light"&&(d.light=!0),HO({...c,colorSchemes:d,defaultColorScheme:f,...typeof a!="boolean"&&a},...e)}const ym=gm();function pl(){const t=oS(ym);return t[ar]||t}function Kn({props:t,name:e}){return zM({props:t,name:e,defaultTheme:ym,themeId:ar})}function IO(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const ES=t=>IO(t)&&t!=="classes",zt=OM({themeId:ar,defaultTheme:ym,rootShouldForwardProp:ES});function PO({theme:t,...e}){const r=ar in t?t[ar]:void 0;return N.jsx(yS,{...e,themeId:r?ar:void 0,theme:r||t})}const Gu={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:GO}=iO({themeId:ar,theme:()=>gm({cssVariables:!0}),colorSchemeStorageKey:Gu.colorSchemeStorageKey,modeStorageKey:Gu.modeStorageKey,defaultColorScheme:{light:Gu.defaultLightColorScheme,dark:Gu.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:SS(t.palette,t.typography)};return e.unstable_sx=function(a){return Wi({sx:a,theme:this})},e}}),YO=GO;function qO({theme:t,...e}){const r=U.useMemo(()=>{if(typeof t=="function")return t;const a=ar in t?t[ar]:t;return"colorSchemes"in a?null:"vars"in a?t:{...t,vars:null}},[t]);return r?N.jsx(PO,{theme:r,...e}):N.jsx(YO,{theme:t,...e})}function te(t,e){if(t==null)return{};var r={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(e.indexOf(a)!==-1)continue;r[a]=t[a]}return r}function VO(t){return Le("MuiBarElement",t)}const XO=je("MuiBarElement",["root","highlighted","faded","series"]),KO=t=>{const{classes:e,id:r,isHighlighted:a,isFaded:s}=t,l={root:["root",`series-${r}`,a&&"highlighted",s&&"faded"]};return Ue(l,VO,e)};function Si(...t){const e=U.useRef(void 0),r=U.useCallback(a=>{const s=t.map(l=>{if(l==null)return null;if(typeof l=="function"){const c=l,f=c(a);return typeof f=="function"?f:()=>{c(null)}}return l.current=a,()=>{l.current=null}});return()=>{s.forEach(l=>l==null?void 0:l())}},t);return U.useMemo(()=>t.every(a=>a==null)?null:a=>{e.current&&(e.current(),e.current=void 0),a!=null&&(e.current=r(a))},t)}function ZO(t){return typeof t=="string"}function QO(t,e,r){return t===void 0||ZO(t)?e:{...e,ownerState:{...e.ownerState,...r}}}function FO(t,e=[]){if(t===void 0)return{};const r={};return Object.keys(t).filter(a=>a.match(/^on[A-Z]/)&&typeof t[a]=="function"&&!e.includes(a)).forEach(a=>{r[a]=t[a]}),r}function Kb(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>!(r.match(/^on[A-Z]/)&&typeof t[r]=="function")).forEach(r=>{e[r]=t[r]}),e}function WO(t){const{getSlotProps:e,additionalProps:r,externalSlotProps:a,externalForwardedProps:s,className:l}=t;if(!e){const b=Jt(r==null?void 0:r.className,l,s==null?void 0:s.className,a==null?void 0:a.className),x={...r==null?void 0:r.style,...s==null?void 0:s.style,...a==null?void 0:a.style},S={...r,...s,...a};return b.length>0&&(S.className=b),Object.keys(x).length>0&&(S.style=x),{props:S,internalRef:void 0}}const c=FO({...s,...a}),f=Kb(a),p=Kb(s),d=e(c),m=Jt(d==null?void 0:d.className,r==null?void 0:r.className,l,s==null?void 0:s.className,a==null?void 0:a.className),y={...d==null?void 0:d.style,...r==null?void 0:r.style,...s==null?void 0:s.style,...a==null?void 0:a.style},v={...d,...r,...p,...f};return m.length>0&&(v.className=m),Object.keys(y).length>0&&(v.style=y),{props:v,internalRef:d.ref}}function JO(t,e,r){return typeof t=="function"?t(e,r):t}function _r(t){var y;const{elementType:e,externalSlotProps:r,ownerState:a,skipResolvingSlotProps:s=!1,...l}=t,c=s?{}:JO(r,a),{props:f,internalRef:p}=WO({...l,externalSlotProps:c}),d=Si(p,c==null?void 0:c.ref,(y=t.additionalProps)==null?void 0:y.ref);return QO(e,{...f,ref:d},a)}let Zb=0;function tR(t){const[e,r]=U.useState(t),a=t||e;return U.useEffect(()=>{e==null&&(Zb+=1,r(`mui-${Zb}`))},[e]),a}const eR={...uc},Qb=eR.useId;function Kc(t){if(Qb!==void 0){const e=Qb();return t??e}return tR(t)}class nR{constructor(e){Et(this,"subscribe",e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}));Et(this,"getSnapshot",()=>this.value);Et(this,"update",e=>{const r=e(this.value);r!==this.value&&(this.value=r,this.listeners.forEach(a=>a(r)))});this.value=e,this.listeners=new Set}}const Zc=({params:t,store:e})=>{U.useEffect(()=>{e.update(a=>G({},a,{animation:G({},a.animation,{skip:t.skipAnimation})}))},[e,t.skipAnimation]);const r=U.useCallback(()=>{let a=!1;return e.update(s=>G({},s,{animation:G({},s.animation,{skipAnimationRequests:s.animation.skipAnimationRequests+1})})),()=>{a||(a=!0,e.update(s=>G({},s,{animation:G({},s.animation,{skipAnimationRequests:s.animation.skipAnimationRequests-1})})))}},[e]);return Te(()=>{if(typeof window>"u"||!(window!=null&&window.matchMedia))return;let s;const l=f=>{f.matches?s=r():s==null||s()},c=window.matchMedia("(prefers-reduced-motion)");return l(c),c.addEventListener("change",l),()=>{c.removeEventListener("change",l)}},[r,e]),{instance:{disableAnimation:r}}};Zc.params={skipAnimation:!0};Zc.getDefaultizedParams=({params:t})=>G({},t,{skipAnimation:t.skipAnimation??!1});Zc.getInitialState=({skipAnimation:t})=>({animation:{skip:t,skipAnimationRequests:0}});var dc=Symbol("NOT_FOUND");function rR(t,e=`expected a function, instead received ${typeof t}`){if(typeof t!="function")throw new TypeError(e)}function iR(t,e=`expected an object, instead received ${typeof t}`){if(typeof t!="object")throw new TypeError(e)}function aR(t,e="expected all items to be functions, instead received the following types: "){if(!t.every(r=>typeof r=="function")){const r=t.map(a=>typeof a=="function"?`function ${a.name||"unnamed"}()`:typeof a).join(", ");throw new TypeError(`${e}[${r}]`)}}var Fb=t=>Array.isArray(t)?t:[t];function oR(t){const e=Array.isArray(t[0])?t[0]:t;return aR(e,"createSelector expects all input-selectors to be functions, but received the following types: "),e}function sR(t,e){const r=[],{length:a}=t;for(let s=0;s<a;s++)r.push(t[s].apply(null,e));return r}function lR(t){let e;return{get(r){return e&&t(e.key,r)?e.value:dc},put(r,a){e={key:r,value:a}},getEntries(){return e?[e]:[]},clear(){e=void 0}}}function uR(t,e){let r=[];function a(f){const p=r.findIndex(d=>e(f,d.key));if(p>-1){const d=r[p];return p>0&&(r.splice(p,1),r.unshift(d)),d.value}return dc}function s(f,p){a(f)===dc&&(r.unshift({key:f,value:p}),r.length>t&&r.pop())}function l(){return r}function c(){r=[]}return{get:a,put:s,getEntries:l,clear:c}}var cR=(t,e)=>t===e;function fR(t){return function(r,a){if(r===null||a===null||r.length!==a.length)return!1;const{length:s}=r;for(let l=0;l<s;l++)if(!t(r[l],a[l]))return!1;return!0}}function dR(t,e){const r=typeof e=="object"?e:{equalityCheck:e},{equalityCheck:a=cR,maxSize:s=1,resultEqualityCheck:l}=r,c=fR(a);let f=0;const p=s<=1?lR(c):uR(s,c);function d(){let m=p.get(arguments);if(m===dc){if(m=t.apply(null,arguments),f++,l){const v=p.getEntries().find(b=>l(b.value,m));v&&(m=v.value,f!==0&&f--)}p.put(arguments,m)}return m}return d.clearCache=()=>{p.clear(),d.resetResultsCount()},d.resultsCount=()=>f,d.resetResultsCount=()=>{f=0},d}var hR=class{constructor(t){this.value=t}deref(){return this.value}},pR=typeof WeakRef<"u"?WeakRef:hR,mR=0,Wb=1;function Yu(){return{s:mR,v:void 0,o:null,p:null}}function wS(t,e={}){let r=Yu();const{resultEqualityCheck:a}=e;let s,l=0;function c(){var y;let f=r;const{length:p}=arguments;for(let v=0,b=p;v<b;v++){const x=arguments[v];if(typeof x=="function"||typeof x=="object"&&x!==null){let S=f.o;S===null&&(f.o=S=new WeakMap);const A=S.get(x);A===void 0?(f=Yu(),S.set(x,f)):f=A}else{let S=f.p;S===null&&(f.p=S=new Map);const A=S.get(x);A===void 0?(f=Yu(),S.set(x,f)):f=A}}const d=f;let m;if(f.s===Wb)m=f.v;else if(m=t.apply(null,arguments),l++,a){const v=((y=s==null?void 0:s.deref)==null?void 0:y.call(s))??s;v!=null&&a(v,m)&&(m=v,l!==0&&l--),s=typeof m=="object"&&m!==null||typeof m=="function"?new pR(m):m}return d.s=Wb,d.v=m,m}return c.clearCache=()=>{r=Yu(),c.resetResultsCount()},c.resultsCount=()=>l,c.resetResultsCount=()=>{l=0},c}function MS(t,...e){const r=typeof t=="function"?{memoize:t,memoizeOptions:e}:t,a=(...s)=>{let l=0,c=0,f,p={},d=s.pop();typeof d=="object"&&(p=d,d=s.pop()),rR(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const m={...r,...p},{memoize:y,memoizeOptions:v=[],argsMemoize:b=wS,argsMemoizeOptions:x=[]}=m,S=Fb(v),A=Fb(x),w=oR(s),D=y(function(){return l++,d.apply(null,arguments)},...S),O=b(function(){c++;const E=sR(w,arguments);return f=D.apply(null,E),f},...A);return Object.assign(O,{resultFunc:d,memoizedResultFunc:D,dependencies:w,dependencyRecomputations:()=>c,resetDependencyRecomputations:()=>{c=0},lastResult:()=>f,recomputations:()=>l,resetRecomputations:()=>{l=0},memoize:y,argsMemoize:b})};return Object.assign(a,{withTypes:()=>a}),a}var gR=MS(wS),yR=Object.assign((t,e=gR)=>{iR(t,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof t}`);const r=Object.keys(t),a=r.map(l=>t[l]);return e(a,(...l)=>l.reduce((c,f,p)=>(c[r[p]]=f,c),{}))},{withTypes:()=>yR});const vR=MS({memoize:dR,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),Jb=new WeakMap,pt=(...t)=>(r,...a)=>{const s=r.cacheKey;let l=Jb.get(s);l||(l=new Map,Jb.set(s,l));const c=l.get(t);if(c)return c(r,...a);const f=vR(...t);return l.set(t,f),f(r,...a)},bR=t=>t.animation,xR=pt([bR],t=>t.skip||t.skipAnimationRequests>0);function Sp(t){return t&&t.ownerDocument||document}function SR(t){return Sp(t).defaultView||window}var Gh={exports:{}},Yh={},qh={exports:{}},Vh={};/** 100 + * @license React 101 + * use-sync-external-store-shim.production.js 102 + * 103 + * Copyright (c) Meta Platforms, Inc. and affiliates. 104 + * 105 + * This source code is licensed under the MIT license found in the 106 + * LICENSE file in the root directory of this source tree. 107 + */var t1;function TR(){if(t1)return Vh;t1=1;var t=ol();function e(y,v){return y===v&&(y!==0||1/y===1/v)||y!==y&&v!==v}var r=typeof Object.is=="function"?Object.is:e,a=t.useState,s=t.useEffect,l=t.useLayoutEffect,c=t.useDebugValue;function f(y,v){var b=v(),x=a({inst:{value:b,getSnapshot:v}}),S=x[0].inst,A=x[1];return l(function(){S.value=b,S.getSnapshot=v,p(S)&&A({inst:S})},[y,b,v]),s(function(){return p(S)&&A({inst:S}),y(function(){p(S)&&A({inst:S})})},[y]),c(b),b}function p(y){var v=y.getSnapshot;y=y.value;try{var b=v();return!r(y,b)}catch{return!0}}function d(y,v){return v()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:f;return Vh.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:m,Vh}var e1;function CR(){return e1||(e1=1,qh.exports=TR()),qh.exports}/** 108 + * @license React 109 + * use-sync-external-store-shim/with-selector.production.js 110 + * 111 + * Copyright (c) Meta Platforms, Inc. and affiliates. 112 + * 113 + * This source code is licensed under the MIT license found in the 114 + * LICENSE file in the root directory of this source tree. 115 + */var n1;function AR(){if(n1)return Yh;n1=1;var t=ol(),e=CR();function r(d,m){return d===m&&(d!==0||1/d===1/m)||d!==d&&m!==m}var a=typeof Object.is=="function"?Object.is:r,s=e.useSyncExternalStore,l=t.useRef,c=t.useEffect,f=t.useMemo,p=t.useDebugValue;return Yh.useSyncExternalStoreWithSelector=function(d,m,y,v,b){var x=l(null);if(x.current===null){var S={hasValue:!1,value:null};x.current=S}else S=x.current;x=f(function(){function w(k){if(!D){if(D=!0,O=k,k=v(k),b!==void 0&&S.hasValue){var z=S.value;if(b(z,k))return R=z}return R=k}if(z=R,a(O,k))return z;var H=v(k);return b!==void 0&&b(z,H)?(O=k,z):(O=k,R=H)}var D=!1,O,R,E=y===void 0?null:y;return[function(){return w(m())},E===null?void 0:function(){return w(E())}]},[m,y,v,b]);var A=s(d,x[0],x[1]);return c(function(){S.hasValue=!0,S.value=A},[A]),p(A),A},Yh}var r1;function ER(){return r1||(r1=1,Gh.exports=AR()),Gh.exports}var wR=ER();const MR=Object.is,wt=(t,e,r=[],a=MR)=>{const s=l=>e(l,...r);return wR.useSyncExternalStoreWithSelector(t.subscribe,t.getSnapshot,t.getSnapshot,s,a)},vm="DEFAULT_X_AXIS_KEY",bm="DEFAULT_Y_AXIS_KEY",OR={top:20,bottom:20,left:20,right:20},RR=45,kR=25,OS=20,na=t=>{var e;return(e=t.cartesianAxis)==null?void 0:e.x},Mo=t=>{var e;return(e=t.cartesianAxis)==null?void 0:e.y},DR=pt([Mo],t=>(t??[]).reduce((e,r)=>{var a;return r.position==="left"?e+(r.width||0)+((a=r.zoom)!=null&&a.slider.enabled?r.zoom.slider.size:0):e},0)),_R=pt([Mo],t=>(t??[]).reduce((e,r)=>{var a;return r.position==="right"?e+(r.width||0)+((a=r.zoom)!=null&&a.slider.enabled?r.zoom.slider.size:0):e},0)),zR=pt([na],t=>(t??[]).reduce((e,r)=>{var a;return r.position==="top"?e+(r.height||0)+((a=r.zoom)!=null&&a.slider.enabled?r.zoom.slider.size:0):e},0)),$R=pt([na],t=>(t??[]).reduce((e,r)=>{var a;return r.position==="bottom"?e+(r.height||0)+((a=r.zoom)!=null&&a.slider.enabled?r.zoom.slider.size:0):e},0)),NR=t=>t.dimensions,RS=t=>t.dimensions.width,kS=t=>t.dimensions.height,LR=t=>t.dimensions.margin.top,jR=t=>t.dimensions.margin.right,UR=t=>t.dimensions.margin.bottom,BR=t=>t.dimensions.margin.left,Hr=pt([RS,kS,LR,jR,UR,BR,zR,_R,$R,DR],(t,e,r,a,s,l,c,f,p,d)=>({width:t-l-a-d-f,left:l+d,right:a+f,height:e-r-s-c-p,top:r+c,bottom:s+p})),DS=pt([NR],t=>({width:t.propsWidth,height:t.propsHeight})),HR=pt([RS,kS],(t,e)=>({width:t,height:e}));function IR(t,e){return typeof t=="number"?{top:t,bottom:t,left:t,right:t}:e?G({},e,t):t}const PR=10,Qc=({params:t,store:e,svgRef:r})=>{const a=t.width!==void 0&&t.height!==void 0,s=U.useRef({displayError:!1,initialCompute:!0,computeRun:0}),[l,c]=U.useState(0),[f,p]=U.useState(0),d=U.useCallback(()=>{const x=r==null?void 0:r.current;if(!x)return{};const A=SR(x).getComputedStyle(x),w=Math.floor(parseFloat(A.height))||0,D=Math.floor(parseFloat(A.width))||0;return e.update(O=>O.dimensions.width===D&&O.dimensions.height===w?O:G({},O,{dimensions:{margin:{top:t.margin.top,right:t.margin.right,bottom:t.margin.bottom,left:t.margin.left},width:t.width??D,height:t.height??w,propsWidth:t.width,propsHeight:t.height}})),{height:w,width:D}},[e,r,t.height,t.width,t.margin.left,t.margin.right,t.margin.top,t.margin.bottom]);U.useEffect(()=>{e.update(x=>{const S=t.width??x.dimensions.width,A=t.height??x.dimensions.height;return G({},x,{dimensions:{margin:{top:t.margin.top,right:t.margin.right,bottom:t.margin.bottom,left:t.margin.left},width:S,height:A,propsHeight:t.height,propsWidth:t.width}})})},[e,t.height,t.width,t.margin.left,t.margin.right,t.margin.top,t.margin.bottom]),U.useEffect(()=>{s.current.displayError=!0},[]),Te(()=>{if(a||!s.current.initialCompute||s.current.computeRun>PR)return;const x=d();x.width!==l||x.height!==f?(s.current.computeRun+=1,x.width!==void 0&&c(x.width),x.height!==void 0&&p(x.height)):s.current.initialCompute&&(s.current.initialCompute=!1)},[f,l,d,a]),Te(()=>{if(a)return()=>{};d();const x=r.current;if(typeof ResizeObserver>"u")return()=>{};let S;const A=new ResizeObserver(()=>{S=requestAnimationFrame(()=>{d()})});return x&&A.observe(x),()=>{S&&cancelAnimationFrame(S),x&&A.unobserve(x)}},[d,a,r]);const m=wt(e,Hr),y=U.useCallback(x=>x>=m.left-1&&x<=m.left+m.width,[m.left,m.width]),v=U.useCallback(x=>x>=m.top-1&&x<=m.top+m.height,[m.height,m.top]);return{instance:{isPointInside:U.useCallback((x,S,A)=>A&&"closest"in A&&A.closest("[data-drawing-container]")?!0:y(x)&&v(S),[y,v]),isXInside:y,isYInside:v}}};Qc.params={width:!0,height:!0,margin:!0};Qc.getDefaultizedParams=({params:t})=>G({},t,{margin:IR(t.margin,OR)});Qc.getInitialState=({width:t,height:e,margin:r})=>({dimensions:{margin:r,width:t??0,height:e??0,propsWidth:t,propsHeight:e}});const xm=({params:t,store:e})=>(Te(()=>{e.update(r=>G({},r,{experimentalFeatures:t.experimentalFeatures}))},[e,t.experimentalFeatures]),{});xm.params={experimentalFeatures:!0};xm.getInitialState=({experimentalFeatures:t})=>({experimentalFeatures:t});const GR=t=>t.experimentalFeatures,_S=pt([GR],t=>!!(t!=null&&t.preferStrictDomainInLineCharts));let i1=0;const YR=()=>(i1+=1,`mui-chart-${i1}`),Sm=({params:t,store:e})=>(U.useEffect(()=>{e.update(r=>t.id===void 0||t.id===r.id.providedChartId&&r.id.chartId!==void 0?r:G({},r,{id:G({},r.id,{chartId:t.id??YR()})}))},[e,t.id]),{});Sm.params={id:!0};Sm.getInitialState=({id:t})=>({id:{chartId:t,providedChartId:t}});const qR=t=>t.id,VR=pt([qR],t=>t.chartId),XR=["#4254FB","#FFB422","#FA4F58","#0DBEFF","#22BF75","#FA83B4","#FF7511"],KR=["#495AFB","#FFC758","#F35865","#30C8FF","#44CE8D","#F286B3","#FF8C39"],zS=t=>t==="dark"?KR:XR,$S=({series:t,colors:e,seriesConfig:r,dataset:a})=>{const s={};t.forEach((c,f)=>{var m;const p=r[c.type].getSeriesWithDefaultValues(c,f,e),d=p.id;if(s[c.type]===void 0&&(s[c.type]={series:{},seriesOrder:[]}),((m=s[c.type])==null?void 0:m.series[d])!==void 0)throw new Error(`MUI X Charts: series' id "${d}" is not unique.`);s[c.type].series[d]=p,s[c.type].seriesOrder.push(d)});const l={};return Object.keys(r).forEach(c=>{var p,d;const f=s[c];f!==void 0&&(l[c]=((d=(p=r[c])==null?void 0:p.seriesProcessor)==null?void 0:d.call(p,f,a))??s[c])}),l},Fc=({params:t,store:e,seriesConfig:r})=>{const{series:a,dataset:s,theme:l,colors:c}=t,f=U.useRef(!0);return U.useEffect(()=>{if(f.current){f.current=!1;return}e.update(p=>G({},p,{series:G({},p.series,{processedSeries:$S({series:a,colors:typeof c=="function"?c(l):c,seriesConfig:r,dataset:s})})}))},[c,s,a,l,r,e]),{}};Fc.params={dataset:!0,series:!0,colors:!0,theme:!0};const ZR=[];Fc.getDefaultizedParams=({params:t})=>{var e;return G({},t,{series:(e=t.series)!=null&&e.length?t.series:ZR,colors:t.colors??zS,theme:t.theme??"light"})};Fc.getInitialState=({series:t=[],colors:e,theme:r,dataset:a},s,l)=>({series:{seriesConfig:l,processedSeries:$S({series:t,colors:typeof e=="function"?e(r):e,seriesConfig:l,dataset:a})}});const NS=t=>t.series,Zn=pt([NS],t=>t.processedSeries),Ir=pt([NS],t=>t.seriesConfig),QR={abort:!0,animationcancel:!0,animationend:!0,animationiteration:!0,animationstart:!0,auxclick:!0,beforeinput:!0,beforetoggle:!0,blur:!0,cancel:!0,canplay:!0,canplaythrough:!0,change:!0,click:!0,close:!0,compositionend:!0,compositionstart:!0,compositionupdate:!0,contextlost:!0,contextmenu:!0,contextrestored:!0,copy:!0,cuechange:!0,cut:!0,dblclick:!0,drag:!0,dragend:!0,dragenter:!0,dragleave:!0,dragover:!0,dragstart:!0,drop:!0,durationchange:!0,emptied:!0,ended:!0,error:!0,focus:!0,focusin:!0,focusout:!0,formdata:!0,gotpointercapture:!0,input:!0,invalid:!0,keydown:!0,keypress:!0,keyup:!0,load:!0,loadeddata:!0,loadedmetadata:!0,loadstart:!0,lostpointercapture:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,paste:!0,pause:!0,play:!0,playing:!0,pointercancel:!0,pointerdown:!0,pointerenter:!0,pointerleave:!0,pointermove:!0,pointerout:!0,pointerover:!0,pointerup:!0,progress:!0,ratechange:!0,reset:!0,resize:!0,scroll:!0,scrollend:!0,securitypolicyviolation:!0,seeked:!0,seeking:!0,select:!0,selectionchange:!0,selectstart:!0,slotchange:!0,stalled:!0,submit:!0,suspend:!0,timeupdate:!0,toggle:!0,touchcancel:!0,touchend:!0,touchmove:!0,touchstart:!0,transitioncancel:!0,transitionend:!0,transitionrun:!0,transitionstart:!0,volumechange:!0,waiting:!0,webkitanimationend:!0,webkitanimationiteration:!0,webkitanimationstart:!0,webkittransitionend:!0,wheel:!0,beforematch:!0,pointerrawupdate:!0};class LS{constructor(e){Et(this,"customData",{});if(!e||!e.name)throw new Error("Gesture must be initialized with a valid name.");if(e.name in QR)throw new Error(`Gesture can't be created with a native event name. Tried to use "${e.name}". Please use a custom name instead.`);this.name=e.name,this.preventDefault=e.preventDefault??!1,this.stopPropagation=e.stopPropagation??!1,this.preventIf=e.preventIf??[],this.requiredKeys=e.requiredKeys??[],this.pointerMode=e.pointerMode??[]}init(e,r,a,s){this.element=e,this.pointerManager=r,this.gesturesRegistry=a,this.keyboardManager=s;const l=`${this.name}ChangeOptions`;this.element.addEventListener(l,this.handleOptionsChange.bind(this));const c=`${this.name}ChangeState`;this.element.addEventListener(c,this.handleStateChange.bind(this))}handleOptionsChange(e){e&&e.detail&&this.updateOptions(e.detail)}updateOptions(e){this.preventDefault=e.preventDefault??this.preventDefault,this.stopPropagation=e.stopPropagation??this.stopPropagation,this.preventIf=e.preventIf??this.preventIf,this.requiredKeys=e.requiredKeys??this.requiredKeys,this.pointerMode=e.pointerMode??this.pointerMode}handleStateChange(e){e&&e.detail&&this.updateState(e.detail)}updateState(e){Object.assign(this.state,e)}getTargetElement(e){return this.isActive||this.element===e.target||"contains"in this.element&&this.element.contains(e.target)||"getRootNode"in this.element&&this.element.getRootNode()instanceof ShadowRoot&&e.composedPath().includes(this.element)?this.element:null}set isActive(e){e?this.gesturesRegistry.registerActiveGesture(this.element,this):this.gesturesRegistry.unregisterActiveGesture(this.element,this)}get isActive(){return this.gesturesRegistry.isGestureActive(this.element,this)??!1}shouldPreventGesture(e){if(!this.keyboardManager.areKeysPressed(this.requiredKeys))return!0;if(this.preventIf.length===0)return!1;const r=this.gesturesRegistry.getActiveGestures(e);return this.preventIf.some(a=>r[a])}isPointerTypeAllowed(e){return!this.pointerMode||this.pointerMode.length===0?!0:this.pointerMode.includes(e)}destroy(){const e=`${this.name}ChangeOptions`;this.element.removeEventListener(e,this.handleOptionsChange.bind(this));const r=`${this.name}ChangeState`;this.element.removeEventListener(r,this.handleStateChange.bind(this))}}class FR{constructor(){Et(this,"activeGestures",new Map)}registerActiveGesture(e,r){this.activeGestures.has(e)||this.activeGestures.set(e,new Set);const a=this.activeGestures.get(e),s={gesture:r,element:e};a.add(s)}unregisterActiveGesture(e,r){const a=this.activeGestures.get(e);a&&(a.forEach(s=>{s.gesture===r&&a.delete(s)}),a.size===0&&this.activeGestures.delete(e))}getActiveGestures(e){const r=this.activeGestures.get(e);return r?Array.from(r).reduce((a,s)=>(a[s.gesture.name]=!0,a),{}):{}}isGestureActive(e,r){const a=this.activeGestures.get(e);return a?Array.from(a).some(s=>s.gesture===r):!1}destroy(){this.activeGestures.clear()}unregisterElement(e){this.activeGestures.delete(e)}}class WR{constructor(){Et(this,"pressedKeys",new Set);Et(this,"handleKeyDown",e=>{this.pressedKeys.add(e.key)});Et(this,"handleKeyUp",e=>{this.pressedKeys.delete(e.key)});Et(this,"clearKeys",()=>{this.pressedKeys.clear()});this.initialize()}initialize(){typeof window>"u"||(window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("keyup",this.handleKeyUp),window.addEventListener("blur",this.clearKeys))}areKeysPressed(e){return!e||e.length===0?!0:e.every(r=>r==="ControlOrMeta"?this.pressedKeys.has("Control")||this.pressedKeys.has("Meta"):this.pressedKeys.has(r))}destroy(){typeof window<"u"&&(window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("keyup",this.handleKeyUp),window.removeEventListener("blur",this.clearKeys)),this.clearKeys()}}class JR{constructor(e){Et(this,"preventEventInterruption",!0);Et(this,"pointers",new Map);Et(this,"gestureHandlers",new Set);Et(this,"handleInterruptEvents",e=>{if(this.preventEventInterruption&&"pointerType"in e&&e.pointerType==="touch"){e.preventDefault();return}const r=new PointerEvent("forceCancel",{bubbles:!1,cancelable:!1}),a=this.pointers.values().next().value;if(this.pointers.size>0&&a){Object.defineProperties(r,{clientX:{value:a.clientX},clientY:{value:a.clientY},pointerId:{value:a.pointerId},pointerType:{value:a.pointerType}});for(const[s,l]of this.pointers.entries()){const c=G({},l,{type:"forceCancel"});this.pointers.set(s,c)}}this.notifyHandlers(r),this.pointers.clear()});Et(this,"handlePointerEvent",e=>{const{type:r,pointerId:a}=e;if(r==="pointerdown"||r==="pointermove")this.pointers.set(a,this.createPointerData(e));else if(r==="pointerup"||r==="pointercancel"||r==="forceCancel"){this.pointers.set(a,this.createPointerData(e)),this.notifyHandlers(e),this.pointers.delete(a);return}this.notifyHandlers(e)});this.root=e.root??document.getRootNode({composed:!0}),this.touchAction=e.touchAction||"auto",this.passive=e.passive??!1,this.preventEventInterruption=e.preventEventInterruption??!1,this.setupEventListeners()}registerGestureHandler(e){return this.gestureHandlers.add(e),()=>{this.gestureHandlers.delete(e)}}getPointers(){return new Map(this.pointers)}setupEventListeners(){this.touchAction!=="auto"&&(this.root.style.touchAction=this.touchAction),this.root.addEventListener("pointerdown",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("pointermove",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("pointerup",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("pointercancel",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("forceCancel",this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener("blur",this.handleInterruptEvents),this.root.addEventListener("contextmenu",this.handleInterruptEvents)}notifyHandlers(e){this.gestureHandlers.forEach(r=>r(this.pointers,e))}createPointerData(e){return{pointerId:e.pointerId,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,target:e.target,timeStamp:e.timeStamp,type:e.type,isPrimary:e.isPrimary,pressure:e.pressure,width:e.width,height:e.height,pointerType:e.pointerType,srcEvent:e}}destroy(){this.root.removeEventListener("pointerdown",this.handlePointerEvent),this.root.removeEventListener("pointermove",this.handlePointerEvent),this.root.removeEventListener("pointerup",this.handlePointerEvent),this.root.removeEventListener("pointercancel",this.handlePointerEvent),this.root.removeEventListener("forceCancel",this.handlePointerEvent),this.root.removeEventListener("blur",this.handleInterruptEvents),this.root.removeEventListener("contextmenu",this.handleInterruptEvents),this.pointers.clear(),this.gestureHandlers.clear()}}class tk{constructor(e){Et(this,"gestureTemplates",new Map);Et(this,"elementGestureMap",new Map);Et(this,"activeGesturesRegistry",new FR);Et(this,"keyboardManager",new WR);this.pointerManager=new JR({root:e.root,touchAction:e.touchAction,passive:e.passive}),e.gestures&&e.gestures.length>0&&e.gestures.forEach(r=>{this.addGestureTemplate(r)})}addGestureTemplate(e){this.gestureTemplates.has(e.name)&&console.warn(`Gesture template with name "${e.name}" already exists. It will be overwritten.`),this.gestureTemplates.set(e.name,e)}setGestureOptions(e,r,a){const s=this.elementGestureMap.get(r);if(!s||!s.has(e)){console.error(`Gesture "${e}" not found on the provided element.`);return}const l=new CustomEvent(`${e}ChangeOptions`,{detail:a,bubbles:!1,cancelable:!1,composed:!1});r.dispatchEvent(l)}setGestureState(e,r,a){const s=this.elementGestureMap.get(r);if(!s||!s.has(e)){console.error(`Gesture "${e}" not found on the provided element.`);return}const l=new CustomEvent(`${e}ChangeState`,{detail:a,bubbles:!1,cancelable:!1,composed:!1});r.dispatchEvent(l)}registerElement(e,r,a){return Array.isArray(e)||(e=[e]),e.forEach(s=>{const l=a==null?void 0:a[s];this.registerSingleGesture(s,r,l)}),r}registerSingleGesture(e,r,a){const s=this.gestureTemplates.get(e);if(!s)return console.error(`Gesture template "${e}" not found.`),!1;this.elementGestureMap.has(r)||this.elementGestureMap.set(r,new Map);const l=this.elementGestureMap.get(r);l.has(e)&&(console.warn(`Element already has gesture "${e}" registered. It will be replaced.`),this.unregisterElement(e,r));const c=s.clone(a);return c.init(r,this.pointerManager,this.activeGesturesRegistry,this.keyboardManager),l.set(e,c),!0}unregisterElement(e,r){const a=this.elementGestureMap.get(r);return!a||!a.has(e)?!1:(a.get(e).destroy(),a.delete(e),this.activeGesturesRegistry.unregisterElement(r),a.size===0&&this.elementGestureMap.delete(r),!0)}unregisterAllGestures(e){const r=this.elementGestureMap.get(e);if(r){for(const[,a]of r)a.destroy(),this.activeGesturesRegistry.unregisterElement(e);this.elementGestureMap.delete(e)}}destroy(){for(const[e]of this.elementGestureMap)this.unregisterAllGestures(e);this.gestureTemplates.clear(),this.elementGestureMap.clear(),this.activeGesturesRegistry.destroy(),this.keyboardManager.destroy(),this.pointerManager.destroy()}}class ml extends LS{constructor(r){super(r);Et(this,"unregisterHandler",null);Et(this,"originalTarget",null);this.minPointers=r.minPointers??1,this.maxPointers=r.maxPointers??1/0}init(r,a,s,l){super.init(r,a,s,l),this.unregisterHandler=this.pointerManager.registerGestureHandler(this.handlePointerEvent.bind(this))}updateOptions(r){super.updateOptions(r),this.minPointers=r.minPointers??this.minPointers,this.maxPointers=r.maxPointers??this.maxPointers}getRelevantPointers(r,a){return r.filter(s=>this.isPointerTypeAllowed(s.pointerType)&&(a===s.target||s.target===this.originalTarget||a===this.originalTarget||"contains"in a&&a.contains(s.target))||"getRootNode"in a&&a.getRootNode()instanceof ShadowRoot&&s.srcEvent.composedPath().includes(a))}destroy(){this.unregisterHandler&&(this.unregisterHandler(),this.unregisterHandler=null),super.destroy()}}function ek(t,e){const r=e.x-t.x,a=e.y-t.y;return Math.sqrt(r*r+a*a)}function Xh(t){if(t.length<2)return 0;let e=0,r=0;for(let a=0;a<t.length;a+=1)for(let s=a+1;s<t.length;s+=1)e+=ek({x:t[a].clientX,y:t[a].clientY},{x:t[s].clientX,y:t[s].clientY}),r+=1;return r>0?e/r:0}function Nr(t){if(t.length===0)return{x:0,y:0};const e=t.reduce((r,a)=>(r.x+=a.clientX,r.y+=a.clientY,r),{x:0,y:0});return{x:e.x/t.length,y:e.y/t.length}}function Oo(t,e){return`${t}${e==="ongoing"?"":e.charAt(0).toUpperCase()+e.slice(1)}`}const qu=1e-5,gi=1e-5,a1=.15;function nk(t,e){const r=e.x-t.x,a=e.y-t.y,s={vertical:null,horizontal:null,mainAxis:null},l=rk(e,t),c=Math.abs(r)>Math.abs(a)?"horizontal":"vertical",f=l||c==="horizontal"?qu:a1,p=l?qu:c==="horizontal"?a1:qu;return Math.abs(r)>f&&(s.horizontal=r>0?"right":"left"),Math.abs(a)>p&&(s.vertical=a>0?"down":"up"),s.mainAxis=l?"diagonal":c,s}function rk(t,e){const r=e.x-t.x,a=e.y-t.y,s=Math.atan2(a,r)*180/Math.PI;return s>=-45+gi&&s<=-22.5+gi||s>=22.5+gi&&s<=45+gi||s>=135+gi&&s<=157.5+gi||s>=-157.5+gi&&s<=-135+gi}function ik(t,e){if(!t.vertical&&!t.horizontal)return!1;if(e.length===0)return!0;const r=t.vertical===null||e.includes(t.vertical),a=t.horizontal===null||e.includes(t.horizontal);return r&&a}const ak=0,ok=t=>t>ak?1:t<-0?-1:0;class Tm extends ml{constructor(r){super(r);Et(this,"state",{lastPosition:null});this.handleElementEnterBound=this.handleElementEnter.bind(this),this.handleElementLeaveBound=this.handleElementLeave.bind(this),this.threshold=r.threshold||0}clone(r){return new Tm(G({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,threshold:this.threshold,minPointers:this.minPointers,maxPointers:this.maxPointers,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf]},r))}init(r,a,s,l){super.init(r,a,s,l),this.element.addEventListener("pointerenter",this.handleElementEnterBound),this.element.addEventListener("pointerleave",this.handleElementLeaveBound)}destroy(){this.element.removeEventListener("pointerenter",this.handleElementEnterBound),this.element.removeEventListener("pointerleave",this.handleElementLeaveBound),this.resetState(),super.destroy()}updateOptions(r){super.updateOptions(r)}resetState(){this.isActive=!1,this.state={lastPosition:null}}handleElementEnter(r){if(r.pointerType!=="mouse"&&r.pointerType!=="pen")return;const a=this.pointerManager.getPointers()||new Map,s=Array.from(a.values());if(s.length>=this.minPointers&&s.length<=this.maxPointers){this.isActive=!0;const l={x:r.clientX,y:r.clientY};this.state.lastPosition=l,this.emitMoveEvent(this.element,"start",s,r),this.emitMoveEvent(this.element,"ongoing",s,r)}}handleElementLeave(r){if(r.pointerType!=="mouse"&&r.pointerType!=="pen"||!this.isActive)return;const a=this.pointerManager.getPointers()||new Map,s=Array.from(a.values());this.emitMoveEvent(this.element,"end",s,r),this.resetState()}handlePointerEvent(r,a){if(a.type!=="pointermove"||a.pointerType!=="mouse"&&a.pointerType!=="pen")return;this.preventDefault&&a.preventDefault(),this.stopPropagation&&a.stopPropagation();const s=Array.from(r.values()),l=this.getTargetElement(a);if(!l||s.length<this.minPointers||s.length>this.maxPointers)return;if(this.shouldPreventGesture(l)){if(!this.isActive)return;this.resetState(),this.emitMoveEvent(l,"end",s,a);return}const c={x:a.clientX,y:a.clientY};this.state.lastPosition=c,this.isActive||(this.isActive=!0,this.emitMoveEvent(l,"start",s,a)),this.emitMoveEvent(l,"ongoing",s,a)}emitMoveEvent(r,a,s,l){const c=this.state.lastPosition||Nr(s),f=this.gesturesRegistry.getActiveGestures(r),p={gestureName:this.name,centroid:c,target:l.target,srcEvent:l,phase:a,pointers:s,timeStamp:l.timeStamp,activeGestures:f,customData:this.customData},d=Oo(this.name,a),m=new CustomEvent(d,{bubbles:!0,cancelable:!0,composed:!0,detail:p});r.dispatchEvent(m)}}class Cm extends ml{constructor(r){super(r);Et(this,"state",{startPointers:new Map,startCentroid:null,lastCentroid:null,movementThresholdReached:!1,totalDeltaX:0,totalDeltaY:0,activeDeltaX:0,activeDeltaY:0,lastDirection:{vertical:null,horizontal:null,mainAxis:null},lastDeltas:null});this.direction=r.direction||["up","down","left","right"],this.threshold=r.threshold||0}clone(r){return new Cm(G({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,threshold:this.threshold,minPointers:this.minPointers,maxPointers:this.maxPointers,direction:[...this.direction],requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf]},r))}destroy(){this.resetState(),super.destroy()}updateOptions(r){super.updateOptions(r),this.direction=r.direction||this.direction}resetState(){this.isActive=!1,this.state=G({},this.state,{startPointers:new Map,startCentroid:null,lastCentroid:null,lastDeltas:null,activeDeltaX:0,activeDeltaY:0,movementThresholdReached:!1,lastDirection:{vertical:null,horizontal:null,mainAxis:null}})}handlePointerEvent(r,a){const s=Array.from(r.values());if(a.type==="forceCancel"){this.cancel(a.target,s,a);return}const l=this.getTargetElement(a);if(!l)return;if(this.shouldPreventGesture(l)){this.cancel(l,s,a);return}const c=this.getRelevantPointers(s,l);if(c.length<this.minPointers||c.length>this.maxPointers){this.cancel(l,c,a);return}switch(a.type){case"pointerdown":!this.isActive&&!this.state.startCentroid&&(c.forEach(f=>{this.state.startPointers.set(f.pointerId,f)}),this.originalTarget=l,this.state.startCentroid=Nr(c),this.state.lastCentroid=G({},this.state.startCentroid));break;case"pointermove":if(this.state.startCentroid&&c.length>=this.minPointers){const f=Nr(c),p=f.x-this.state.startCentroid.x,d=f.y-this.state.startCentroid.y,m=Math.sqrt(p*p+d*d),y=nk(this.state.lastCentroid??this.state.startCentroid,f),v=this.state.lastCentroid?f.x-this.state.lastCentroid.x:0,b=this.state.lastCentroid?f.y-this.state.lastCentroid.y:0;!this.state.movementThresholdReached&&m>=this.threshold&&ik(y,this.direction)?(this.state.movementThresholdReached=!0,this.isActive=!0,this.state.lastDeltas={x:v,y:b},this.state.totalDeltaX+=v,this.state.totalDeltaY+=b,this.state.activeDeltaX+=v,this.state.activeDeltaY+=b,this.emitPanEvent(l,"start",c,a,f),this.emitPanEvent(l,"ongoing",c,a,f)):this.state.movementThresholdReached&&this.isActive&&(this.state.lastDeltas={x:v,y:b},this.state.totalDeltaX+=v,this.state.totalDeltaY+=b,this.state.activeDeltaX+=v,this.state.activeDeltaY+=b,this.emitPanEvent(l,"ongoing",c,a,f)),this.state.lastCentroid=f,this.state.lastDirection=y}break;case"pointerup":case"pointercancel":case"forceCancel":if(this.isActive&&this.state.movementThresholdReached){if(c.filter(f=>f.type!=="pointerup"&&f.type!=="pointercancel").length<this.minPointers){const f=this.state.lastCentroid||this.state.startCentroid;a.type==="pointercancel"&&this.emitPanEvent(l,"cancel",c,a,f),this.emitPanEvent(l,"end",c,a,f),this.resetState()}}else this.resetState();break}}emitPanEvent(r,a,s,l,c){var D,O;if(!this.state.startCentroid)return;const f=((D=this.state.lastDeltas)==null?void 0:D.x)??0,p=((O=this.state.lastDeltas)==null?void 0:O.y)??0,d=this.state.startPointers.values().next().value,m=d?(l.timeStamp-d.timeStamp)/1e3:0,y=m>0?f/m:0,v=m>0?p/m:0,b=Math.sqrt(y*y+v*v),x=this.gesturesRegistry.getActiveGestures(r),S={gestureName:this.name,initialCentroid:this.state.startCentroid,centroid:c,target:l.target,srcEvent:l,phase:a,pointers:s,timeStamp:l.timeStamp,deltaX:f,deltaY:p,direction:this.state.lastDirection,velocityX:y,velocityY:v,velocity:b,totalDeltaX:this.state.totalDeltaX,totalDeltaY:this.state.totalDeltaY,activeDeltaX:this.state.activeDeltaX,activeDeltaY:this.state.activeDeltaY,activeGestures:x,customData:this.customData},A=Oo(this.name,a),w=new CustomEvent(A,{bubbles:!0,cancelable:!0,composed:!0,detail:S});r.dispatchEvent(w),this.preventDefault&&l.preventDefault(),this.stopPropagation&&l.stopPropagation()}cancel(r,a,s){if(this.isActive){const l=r??this.element;this.emitPanEvent(l,"cancel",a,s,this.state.lastCentroid),this.emitPanEvent(l,"end",a,s,this.state.lastCentroid)}this.resetState()}}class Am extends ml{constructor(r){super(G({},r,{minPointers:r.minPointers??2}));Et(this,"state",{startDistance:0,lastDistance:0,lastScale:1,lastTime:0,velocity:0,totalScale:1,deltaScale:0});this.threshold=r.threshold??0}clone(r){return new Am(G({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,threshold:this.threshold,minPointers:this.minPointers,maxPointers:this.maxPointers,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf]},r))}destroy(){this.resetState(),super.destroy()}updateOptions(r){super.updateOptions(r)}resetState(){this.isActive=!1,this.state=G({},this.state,{startDistance:0,lastDistance:0,lastScale:1,lastTime:0,velocity:0,deltaScale:0})}handlePointerEvent(r,a){const s=Array.from(r.values()),l=this.getTargetElement(a);if(!l)return;if(this.shouldPreventGesture(l)){this.isActive&&(this.emitPinchEvent(l,"cancel",s,a),this.resetState());return}const c=this.getRelevantPointers(s,l);switch(a.type){case"pointerdown":if(c.length>=2&&!this.isActive){const f=Xh(c);this.state.startDistance=f,this.state.lastDistance=f,this.state.lastTime=a.timeStamp,this.originalTarget=l}break;case"pointermove":if(this.state.startDistance&&c.length>=this.minPointers){const f=Xh(c),p=Math.abs(f-this.state.lastDistance);if(p!==0&&p>=this.threshold){const d=this.state.startDistance?f/this.state.startDistance:1,m=d/this.state.lastScale;this.state.totalScale*=m;const y=(a.timeStamp-this.state.lastTime)/1e3;if(this.state.lastDistance){const b=(f-this.state.lastDistance)/y;this.state.velocity=Number.isNaN(b)?0:b}this.state.lastDistance=f,this.state.deltaScale=d-this.state.lastScale,this.state.lastScale=d,this.state.lastTime=a.timeStamp,this.isActive?this.emitPinchEvent(l,"ongoing",c,a):(this.isActive=!0,this.emitPinchEvent(l,"start",c,a),this.emitPinchEvent(l,"ongoing",c,a))}}break;case"pointerup":case"pointercancel":case"forceCancel":if(this.isActive){const f=c.filter(p=>p.type!=="pointerup"&&p.type!=="pointercancel");if(f.length<this.minPointers)a.type==="pointercancel"&&this.emitPinchEvent(l,"cancel",c,a),this.emitPinchEvent(l,"end",c,a),this.resetState();else if(f.length>=2){const p=Xh(f);this.state.startDistance=p/this.state.lastScale}}break}}emitPinchEvent(r,a,s,l){const c=Nr(s),f=this.state.lastDistance,p=this.state.lastScale,d=this.gesturesRegistry.getActiveGestures(r),m={gestureName:this.name,centroid:c,target:l.target,srcEvent:l,phase:a,pointers:s,timeStamp:l.timeStamp,scale:p,deltaScale:this.state.deltaScale,totalScale:this.state.totalScale,distance:f,velocity:this.state.velocity,activeGestures:d,direction:ok(this.state.velocity),customData:this.customData};this.preventDefault&&l.preventDefault(),this.stopPropagation&&l.stopPropagation();const y=Oo(this.name,a),v=new CustomEvent(y,{bubbles:!0,cancelable:!0,composed:!0,detail:m});r.dispatchEvent(v)}}class Em extends ml{constructor(r){super(r);Et(this,"state",{startCentroid:null,lastPosition:null,timerId:null,startTime:0,pressThresholdReached:!1});this.duration=r.duration??500,this.maxDistance=r.maxDistance??10}clone(r){return new Em(G({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,minPointers:this.minPointers,maxPointers:this.maxPointers,duration:this.duration,maxDistance:this.maxDistance,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf]},r))}destroy(){this.clearPressTimer(),this.resetState(),super.destroy()}updateOptions(r){super.updateOptions(r),this.duration=r.duration??this.duration,this.maxDistance=r.maxDistance??this.maxDistance}resetState(){this.clearPressTimer(),this.isActive=!1,this.state=G({},this.state,{startCentroid:null,lastPosition:null,timerId:null,startTime:0,pressThresholdReached:!1})}clearPressTimer(){this.state.timerId!==null&&(clearTimeout(this.state.timerId),this.state.timerId=null)}handlePointerEvent(r,a){const s=Array.from(r.values());if(a.type==="forceCancel"){this.cancelPress(a.target,s,a);return}const l=this.getTargetElement(a);if(!l)return;if(this.shouldPreventGesture(l)){this.isActive&&this.cancelPress(l,s,a);return}const c=this.getRelevantPointers(s,l);if(c.length<this.minPointers||c.length>this.maxPointers){this.isActive&&this.cancelPress(l,c,a);return}switch(a.type){case"pointerdown":!this.isActive&&!this.state.startCentroid&&(this.state.startCentroid=Nr(c),this.state.lastPosition=G({},this.state.startCentroid),this.state.startTime=a.timeStamp,this.isActive=!0,this.originalTarget=l,this.clearPressTimer(),this.state.timerId=setTimeout(()=>{if(this.isActive&&this.state.startCentroid){this.state.pressThresholdReached=!0;const f=this.state.lastPosition;this.emitPressEvent(l,"start",c,a,f),this.emitPressEvent(l,"ongoing",c,a,f)}},this.duration));break;case"pointermove":if(this.isActive&&this.state.startCentroid){const f=Nr(c);this.state.lastPosition=f;const p=f.x-this.state.startCentroid.x,d=f.y-this.state.startCentroid.y;Math.sqrt(p*p+d*d)>this.maxDistance&&this.cancelPress(l,c,a)}break;case"pointerup":if(this.isActive){if(this.state.pressThresholdReached){const f=this.state.lastPosition||this.state.startCentroid;this.emitPressEvent(l,"end",c,a,f)}this.resetState()}break;case"pointercancel":case"forceCancel":this.cancelPress(l,c,a);break}}emitPressEvent(r,a,s,l,c){const f=this.gesturesRegistry.getActiveGestures(r),p=l.timeStamp-this.state.startTime,d={gestureName:this.name,centroid:c,target:l.target,srcEvent:l,phase:a,pointers:s,timeStamp:l.timeStamp,x:c.x,y:c.y,duration:p,activeGestures:f,customData:this.customData},m=Oo(this.name,a),y=new CustomEvent(m,{bubbles:!0,cancelable:!0,composed:!0,detail:d});r.dispatchEvent(y),this.preventDefault&&l.preventDefault(),this.stopPropagation&&l.stopPropagation()}cancelPress(r,a,s){if(this.isActive&&this.state.pressThresholdReached){const l=this.state.lastPosition||this.state.startCentroid;this.emitPressEvent(r??this.element,"cancel",a,s,l),this.emitPressEvent(r??this.element,"end",a,s,l)}this.resetState()}}class wm extends ml{constructor(r){super(r);Et(this,"state",{startCentroid:null,currentTapCount:0,lastTapTime:0,lastPosition:null});this.maxDistance=r.maxDistance??10,this.taps=r.taps??1}clone(r){return new wm(G({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,minPointers:this.minPointers,maxPointers:this.maxPointers,maxDistance:this.maxDistance,taps:this.taps,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf]},r))}destroy(){this.resetState(),super.destroy()}updateOptions(r){super.updateOptions(r),this.maxDistance=r.maxDistance??this.maxDistance,this.taps=r.taps??this.taps}resetState(){this.isActive=!1,this.state={startCentroid:null,currentTapCount:0,lastTapTime:0,lastPosition:null}}handlePointerEvent(r,a){const s=Array.from(r.values()),l=this.getTargetElement(a);if(!l)return;const c=this.getRelevantPointers(s,l);if(this.shouldPreventGesture(l)||c.length<this.minPointers||c.length>this.maxPointers){this.isActive&&this.cancelTap(l,c,a);return}switch(a.type){case"pointerdown":this.isActive||(this.state.startCentroid=Nr(c),this.state.lastPosition=G({},this.state.startCentroid),this.isActive=!0,this.originalTarget=l);break;case"pointermove":if(this.isActive&&this.state.startCentroid){const f=Nr(c);this.state.lastPosition=f;const p=f.x-this.state.startCentroid.x,d=f.y-this.state.startCentroid.y;Math.sqrt(p*p+d*d)>this.maxDistance&&this.cancelTap(l,c,a)}break;case"pointerup":if(this.isActive){this.state.currentTapCount+=1;const f=this.state.lastPosition||this.state.startCentroid;if(!f){this.cancelTap(l,c,a);return}this.state.currentTapCount>=this.taps?(this.fireTapEvent(l,c,a,f),this.resetState()):(this.state.lastTapTime=a.timeStamp,this.isActive=!1,this.state.startCentroid=null,setTimeout(()=>{this.state&&this.state.currentTapCount>0&&this.state.currentTapCount<this.taps&&(this.state.currentTapCount=0)},300))}break;case"pointercancel":case"forceCancel":this.cancelTap(l,c,a);break}}fireTapEvent(r,a,s,l){const c=this.gesturesRegistry.getActiveGestures(r),f={gestureName:this.name,centroid:l,target:s.target,srcEvent:s,phase:"end",pointers:a,timeStamp:s.timeStamp,x:l.x,y:l.y,tapCount:this.state.currentTapCount,activeGestures:c,customData:this.customData},p=new CustomEvent(this.name,{bubbles:!0,cancelable:!0,composed:!0,detail:f});r.dispatchEvent(p),this.preventDefault&&s.preventDefault(),this.stopPropagation&&s.stopPropagation()}cancelTap(r,a,s){if(this.state.startCentroid||this.state.lastPosition){const l=this.state.lastPosition||this.state.startCentroid,c=this.gesturesRegistry.getActiveGestures(r),f={gestureName:this.name,centroid:l,target:s.target,srcEvent:s,phase:"cancel",pointers:a,timeStamp:s.timeStamp,x:l.x,y:l.y,tapCount:this.state.currentTapCount,activeGestures:c,customData:this.customData},p=Oo(this.name,"cancel"),d=new CustomEvent(p,{bubbles:!0,cancelable:!0,composed:!0,detail:f});r.dispatchEvent(d)}this.resetState()}}class Mm extends LS{constructor(r){super(r);Et(this,"state",{totalDeltaX:0,totalDeltaY:0,totalDeltaZ:0});this.sensitivity=r.sensitivity??1,this.max=r.max??Number.MAX_SAFE_INTEGER,this.min=r.min??Number.MIN_SAFE_INTEGER,this.initialDelta=r.initialDelta??0,this.invert=r.invert??!1,this.state.totalDeltaX=this.initialDelta,this.state.totalDeltaY=this.initialDelta,this.state.totalDeltaZ=this.initialDelta,this.handleWheelEventBound=this.handleWheelEvent.bind(this)}clone(r){return new Mm(G({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,sensitivity:this.sensitivity,max:this.max,min:this.min,initialDelta:this.initialDelta,invert:this.invert,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf]},r))}init(r,a,s,l){super.init(r,a,s,l),this.element.addEventListener("wheel",this.handleWheelEventBound)}destroy(){this.element.removeEventListener("wheel",this.handleWheelEventBound),this.resetState(),super.destroy()}resetState(){this.isActive=!1,this.state={totalDeltaX:0,totalDeltaY:0,totalDeltaZ:0}}updateOptions(r){super.updateOptions(r),this.sensitivity=r.sensitivity??this.sensitivity,this.max=r.max??this.max,this.min=r.min??this.min,this.initialDelta=r.initialDelta??this.initialDelta,this.invert=r.invert??this.invert}handleWheelEvent(r){if(this.shouldPreventGesture(this.element))return;const a=this.pointerManager.getPointers()||new Map,s=Array.from(a.values());this.state.totalDeltaX+=r.deltaX*this.sensitivity*(this.invert?-1:1),this.state.totalDeltaY+=r.deltaY*this.sensitivity*(this.invert?-1:1),this.state.totalDeltaZ+=r.deltaZ*this.sensitivity*(this.invert?-1:1),["totalDeltaX","totalDeltaY","totalDeltaZ"].forEach(l=>{this.state[l]<this.min&&(this.state[l]=this.min),this.state[l]>this.max&&(this.state[l]=this.max)}),this.emitWheelEvent(s,r)}emitWheelEvent(r,a){const s=r.length>0?Nr(r):{x:a.clientX,y:a.clientY},l=this.gesturesRegistry.getActiveGestures(this.element),c={gestureName:this.name,centroid:s,target:a.target,srcEvent:a,phase:"ongoing",pointers:r,timeStamp:a.timeStamp,deltaX:a.deltaX*this.sensitivity*(this.invert?-1:1),deltaY:a.deltaY*this.sensitivity*(this.invert?-1:1),deltaZ:a.deltaZ*this.sensitivity*(this.invert?-1:1),deltaMode:a.deltaMode,totalDeltaX:this.state.totalDeltaX,totalDeltaY:this.state.totalDeltaY,totalDeltaZ:this.state.totalDeltaZ,activeGestures:l,customData:this.customData};this.preventDefault&&a.preventDefault(),this.stopPropagation&&a.stopPropagation();const f=Oo(this.name,"ongoing"),p=new CustomEvent(f,{bubbles:!0,cancelable:!0,composed:!0,detail:c});this.element.dispatchEvent(p)}}const Fa=t=>t.preventDefault(),Om=({svgRef:t})=>{U.useEffect(()=>{const r=t.current;if(!r)return;const a=new tk({gestures:[new Cm({name:"pan",threshold:0,maxPointers:1}),new Tm({name:"move",preventIf:["pan","pinch"]}),new Am({name:"pinch",threshold:5,preventIf:["pan"]}),new Mm({name:"turnWheel",sensitivity:.01,initialDelta:1}),new wm({name:"tap",maxDistance:10,preventIf:["pan","pinch"]}),new Em({name:"quickPress",duration:50,maxDistance:10})]});return a.registerElement(["pan","move","pinch","turnWheel","tap","quickPress"],r),()=>{a.destroy()}},[t]);const e=U.useCallback((r,a,s)=>{const l=t.current;return l==null||l.addEventListener(r,a,s),{cleanup:()=>l==null?void 0:l.removeEventListener(r,a)}},[t]);return U.useEffect(()=>{const r=t.current;return r==null||r.addEventListener("gesturestart",Fa),r==null||r.addEventListener("gesturechange",Fa),r==null||r.addEventListener("gestureend",Fa),()=>{r==null||r.removeEventListener("gesturestart",Fa),r==null||r.removeEventListener("gesturechange",Fa),r==null||r.removeEventListener("gestureend",Fa)}},[t]),{instance:{addInteractionListener:e}}};Om.params={};Om.getInitialState=()=>({});const sk=[Sm,xm,Qc,Fc,Om,Zc],lk=["apiRef"],uk=t=>{let{plugins:e}=t,r=te(t.props,lk);const a={};e.forEach(c=>{Object.assign(a,c.params)});const s={};return Object.keys(r).forEach(c=>{const f=r[c];a[c]&&(s[c]=f)}),e.reduce((c,f)=>f.getDefaultizedParams?f.getDefaultizedParams({params:c}):c,s)};let o1=0;function ck(t,e,r){const a=Kc(),s=U.useMemo(()=>[...sk,...t],[t]),l=uk({plugins:s,props:e});l.id=l.id??a;const f=U.useRef({}).current,p=dk(e.apiRef),d=U.useRef(null),m=U.useRef(null),y=U.useRef(null);if(y.current==null){o1+=1;const x={cacheKey:{id:o1}};s.forEach(S=>{S.getInitialState&&Object.assign(x,S.getInitialState(l,x,r))}),y.current=new nR(x)}const v=x=>{const S=x({instance:f,params:l,plugins:s,store:y.current,svgRef:m,chartRootRef:d,seriesConfig:r});S.publicAPI&&Object.assign(p.current,S.publicAPI),S.instance&&Object.assign(f,S.instance)};return s.forEach(v),{contextValue:U.useMemo(()=>({store:y.current,publicAPI:p.current,instance:f,svgRef:m,chartRootRef:d}),[f,p])}}function fk(t){return t.current==null&&(t.current={}),t}function dk(t){const e=U.useRef({});return t?fk(t):e}const jS=U.createContext(null),US=()=>{},BS=4,HS=20+2*BS,hk=40+2*BS,pk="hover",Vu={minStart:0,maxEnd:100,step:5,minSpan:10,maxSpan:100,panning:!0,filterMode:"keep",slider:{enabled:!1,preview:!1,size:HS,showTooltip:pk}},Rm=(t,e,r)=>{var a;if(t)return t===!0?G({axisId:e,axisDirection:r},Vu):G({axisId:e,axisDirection:r},Vu,t,{slider:G({},Vu.slider,{size:((a=t.slider)==null?void 0:a.preview)??Vu.slider.preview?hk:HS},t.slider)})};function IS(t,e){const r={top:0,bottom:0,none:0};return(t&&t.length>0?t:[{id:vm,scaleType:"linear"}]).map((l,c)=>{var b;const f=l.dataKey,p=c===0?"bottom":"none",d=l.position??p,m=kR+(l.label?OS:0),y=l.id??`defaultized-x-axis-${c}`,v=G({offset:r[d]},l,{id:y,position:d,height:l.height??m,zoom:Rm(l.zoom,y,"x")});if(d!=="none"&&(r[d]+=v.height,(b=v.zoom)!=null&&b.slider.enabled&&(r[d]+=v.zoom.slider.size)),f===void 0||l.data!==void 0)return v;if(e===void 0)throw new Error("MUI X Charts: x-axis uses `dataKey` but no `dataset` is provided.");return G({},v,{data:e.map(x=>x[f])})})}function PS(t,e){const r={right:0,left:0,none:0};return(t&&t.length>0?t:[{id:bm,scaleType:"linear"}]).map((l,c)=>{var b;const f=l.dataKey,p=c===0?"left":"none",d=l.position??p,m=RR+(l.label?OS:0),y=l.id??`defaultized-y-axis-${c}`,v=G({offset:r[d]},l,{id:y,position:d,width:l.width??m,zoom:Rm(l.zoom,y,"y")});if(d!=="none"&&(r[d]+=v.width,(b=v.zoom)!=null&&b.slider.enabled&&(r[d]+=v.zoom.slider.size)),f===void 0||l.data!==void 0)return v;if(e===void 0)throw new Error("MUI X Charts: y-axis uses `dataKey` but no `dataset` is provided.");return G({},v,{data:e.map(x=>x[f])})})}function sc(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function mk(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function km(t){let e,r,a;t.length!==2?(e=sc,r=(f,p)=>sc(t(f),p),a=(f,p)=>t(f)-p):(e=t===sc||t===mk?t:gk,r=t,a=t);function s(f,p,d=0,m=f.length){if(d<m){if(e(p,p)!==0)return m;do{const y=d+m>>>1;r(f[y],p)<0?d=y+1:m=y}while(d<m)}return d}function l(f,p,d=0,m=f.length){if(d<m){if(e(p,p)!==0)return m;do{const y=d+m>>>1;r(f[y],p)<=0?d=y+1:m=y}while(d<m)}return d}function c(f,p,d=0,m=f.length){const y=s(f,p,d,m-1);return y>d&&a(f[y-1],p)>-a(f[y],p)?y-1:y}return{left:s,center:c,right:l}}function gk(){return 0}function yk(t){return t===null?NaN:+t}const vk=km(sc),GS=vk.right;km(yk).center;class s1 extends Map{constructor(e,r=Sk){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[a,s]of e)this.set(a,s)}get(e){return super.get(l1(this,e))}has(e){return super.has(l1(this,e))}set(e,r){return super.set(bk(this,e),r)}delete(e){return super.delete(xk(this,e))}}function l1({_intern:t,_key:e},r){const a=e(r);return t.has(a)?t.get(a):r}function bk({_intern:t,_key:e},r){const a=e(r);return t.has(a)?t.get(a):(t.set(a,r),r)}function xk({_intern:t,_key:e},r){const a=e(r);return t.has(a)&&(r=t.get(a),t.delete(a)),r}function Sk(t){return t!==null&&typeof t=="object"?t.valueOf():t}const Tk=Math.sqrt(50),Ck=Math.sqrt(10),Ak=Math.sqrt(2);function hc(t,e,r){const a=(e-t)/Math.max(0,r),s=Math.floor(Math.log10(a)),l=a/Math.pow(10,s),c=l>=Tk?10:l>=Ck?5:l>=Ak?2:1;let f,p,d;return s<0?(d=Math.pow(10,-s)/c,f=Math.round(t*d),p=Math.round(e*d),f/d<t&&++f,p/d>e&&--p,d=-d):(d=Math.pow(10,s)*c,f=Math.round(t/d),p=Math.round(e/d),f*d<t&&++f,p*d>e&&--p),p<f&&.5<=r&&r<2?hc(t,e,r*2):[f,p,d]}function Tp(t,e,r){if(e=+e,t=+t,r=+r,!(r>0))return[];if(t===e)return[t];const a=e<t,[s,l,c]=a?hc(e,t,r):hc(t,e,r);if(!(l>=s))return[];const f=l-s+1,p=new Array(f);if(a)if(c<0)for(let d=0;d<f;++d)p[d]=(l-d)/-c;else for(let d=0;d<f;++d)p[d]=(l-d)*c;else if(c<0)for(let d=0;d<f;++d)p[d]=(s+d)/-c;else for(let d=0;d<f;++d)p[d]=(s+d)*c;return p}function Cp(t,e,r){return e=+e,t=+t,r=+r,hc(t,e,r)[2]}function Ap(t,e,r){e=+e,t=+t,r=+r;const a=e<t,s=a?Cp(e,t,r):Cp(t,e,r);return(a?-1:1)*(s<0?1/-s:s)}function Ek(t,e,r){t=+t,e=+e,r=(s=arguments.length)<2?(e=t,t=0,1):s<3?1:+r;for(var a=-1,s=Math.max(0,Math.ceil((e-t)/r))|0,l=new Array(s);++a<s;)l[a]=t+a*r;return l}function Pr(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function wk(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const u1=Symbol("implicit");function pc(){var t=new s1,e=[],r=[],a=u1;function s(l){let c=t.get(l);if(c===void 0){if(a!==u1)return a;t.set(l,c=e.push(l)-1)}return r[c%r.length]}return s.domain=function(l){if(!arguments.length)return e.slice();e=[],t=new s1;for(const c of l)t.has(c)||t.set(c,e.push(c)-1);return s},s.range=function(l){return arguments.length?(r=Array.from(l),s):r.slice()},s.unknown=function(l){return arguments.length?(a=l,s):a},s.copy=function(){return pc(e,r).unknown(a)},Pr.apply(s,arguments),s}function Wc(){var t=pc().unknown(void 0),e=t.domain,r=t.range,a=0,s=1,l,c,f=!1,p=0,d=0,m=.5;delete t.unknown;function y(){var v=e().length,b=s<a,x=b?s:a,S=b?a:s;l=(S-x)/Math.max(1,v-p+d*2),f&&(l=Math.floor(l)),x+=(S-x-l*(v-p))*m,c=l*(1-p),f&&(x=Math.round(x),c=Math.round(c));var A=Ek(v).map(function(w){return x+l*w});return r(b?A.reverse():A)}return t.domain=function(v){return arguments.length?(e(v),y()):e()},t.range=function(v){return arguments.length?([a,s]=v,a=+a,s=+s,y()):[a,s]},t.rangeRound=function(v){return[a,s]=v,a=+a,s=+s,f=!0,y()},t.bandwidth=function(){return c},t.step=function(){return l},t.round=function(v){return arguments.length?(f=!!v,y()):f},t.padding=function(v){return arguments.length?(p=Math.min(1,d=+v),y()):p},t.paddingInner=function(v){return arguments.length?(p=Math.min(1,v),y()):p},t.paddingOuter=function(v){return arguments.length?(d=+v,y()):d},t.align=function(v){return arguments.length?(m=Math.max(0,Math.min(1,v)),y()):m},t.copy=function(){return Wc(e(),[a,s]).round(f).paddingInner(p).paddingOuter(d).align(m)},Pr.apply(y(),arguments)}function YS(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return YS(e())},t}function qS(){return YS(Wc.apply(null,arguments).paddingInner(1))}function Dm(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function VS(t,e){var r=Object.create(t.prototype);for(var a in e)r[a]=e[a];return r}function gl(){}var Ws=.7,mc=1/Ws,uo="\\s*([+-]?\\d+)\\s*",Js="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",sr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Mk=/^#([0-9a-f]{3,8})$/,Ok=new RegExp(`^rgb\\(${uo},${uo},${uo}\\)$`),Rk=new RegExp(`^rgb\\(${sr},${sr},${sr}\\)$`),kk=new RegExp(`^rgba\\(${uo},${uo},${uo},${Js}\\)$`),Dk=new RegExp(`^rgba\\(${sr},${sr},${sr},${Js}\\)$`),_k=new RegExp(`^hsl\\(${Js},${sr},${sr}\\)$`),zk=new RegExp(`^hsla\\(${Js},${sr},${sr},${Js}\\)$`),c1={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};Dm(gl,tl,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:f1,formatHex:f1,formatHex8:$k,formatHsl:Nk,formatRgb:d1,toString:d1});function f1(){return this.rgb().formatHex()}function $k(){return this.rgb().formatHex8()}function Nk(){return XS(this).formatHsl()}function d1(){return this.rgb().formatRgb()}function tl(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Mk.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?h1(e):r===3?new rn(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?Xu(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?Xu(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Ok.exec(t))?new rn(e[1],e[2],e[3],1):(e=Rk.exec(t))?new rn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=kk.exec(t))?Xu(e[1],e[2],e[3],e[4]):(e=Dk.exec(t))?Xu(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=_k.exec(t))?g1(e[1],e[2]/100,e[3]/100,1):(e=zk.exec(t))?g1(e[1],e[2]/100,e[3]/100,e[4]):c1.hasOwnProperty(t)?h1(c1[t]):t==="transparent"?new rn(NaN,NaN,NaN,0):null}function h1(t){return new rn(t>>16&255,t>>8&255,t&255,1)}function Xu(t,e,r,a){return a<=0&&(t=e=r=NaN),new rn(t,e,r,a)}function Lk(t){return t instanceof gl||(t=tl(t)),t?(t=t.rgb(),new rn(t.r,t.g,t.b,t.opacity)):new rn}function Ep(t,e,r,a){return arguments.length===1?Lk(t):new rn(t,e,r,a??1)}function rn(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}Dm(rn,Ep,VS(gl,{brighter(t){return t=t==null?mc:Math.pow(mc,t),new rn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ws:Math.pow(Ws,t),new rn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new rn(Ki(this.r),Ki(this.g),Ki(this.b),gc(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:p1,formatHex:p1,formatHex8:jk,formatRgb:m1,toString:m1}));function p1(){return`#${Yi(this.r)}${Yi(this.g)}${Yi(this.b)}`}function jk(){return`#${Yi(this.r)}${Yi(this.g)}${Yi(this.b)}${Yi((isNaN(this.opacity)?1:this.opacity)*255)}`}function m1(){const t=gc(this.opacity);return`${t===1?"rgb(":"rgba("}${Ki(this.r)}, ${Ki(this.g)}, ${Ki(this.b)}${t===1?")":`, ${t})`}`}function gc(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ki(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Yi(t){return t=Ki(t),(t<16?"0":"")+t.toString(16)}function g1(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Vn(t,e,r,a)}function XS(t){if(t instanceof Vn)return new Vn(t.h,t.s,t.l,t.opacity);if(t instanceof gl||(t=tl(t)),!t)return new Vn;if(t instanceof Vn)return t;t=t.rgb();var e=t.r/255,r=t.g/255,a=t.b/255,s=Math.min(e,r,a),l=Math.max(e,r,a),c=NaN,f=l-s,p=(l+s)/2;return f?(e===l?c=(r-a)/f+(r<a)*6:r===l?c=(a-e)/f+2:c=(e-r)/f+4,f/=p<.5?l+s:2-l-s,c*=60):f=p>0&&p<1?0:c,new Vn(c,f,p,t.opacity)}function Uk(t,e,r,a){return arguments.length===1?XS(t):new Vn(t,e,r,a??1)}function Vn(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}Dm(Vn,Uk,VS(gl,{brighter(t){return t=t==null?mc:Math.pow(mc,t),new Vn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ws:Math.pow(Ws,t),new Vn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*e,s=2*r-a;return new rn(Kh(t>=240?t-240:t+120,s,a),Kh(t,s,a),Kh(t<120?t+240:t-120,s,a),this.opacity)},clamp(){return new Vn(y1(this.h),Ku(this.s),Ku(this.l),gc(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 t=gc(this.opacity);return`${t===1?"hsl(":"hsla("}${y1(this.h)}, ${Ku(this.s)*100}%, ${Ku(this.l)*100}%${t===1?")":`, ${t})`}`}}));function y1(t){return t=(t||0)%360,t<0?t+360:t}function Ku(t){return Math.max(0,Math.min(1,t||0))}function Kh(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const _m=t=>()=>t;function Bk(t,e){return function(r){return t+r*e}}function Hk(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(a){return Math.pow(t+a*e,r)}}function Ik(t){return(t=+t)==1?KS:function(e,r){return r-e?Hk(e,r,t):_m(isNaN(e)?r:e)}}function KS(t,e){var r=e-t;return r?Bk(t,r):_m(isNaN(t)?e:t)}const v1=function t(e){var r=Ik(e);function a(s,l){var c=r((s=Ep(s)).r,(l=Ep(l)).r),f=r(s.g,l.g),p=r(s.b,l.b),d=KS(s.opacity,l.opacity);return function(m){return s.r=c(m),s.g=f(m),s.b=p(m),s.opacity=d(m),s+""}}return a.gamma=t,a}(1);function Pk(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,a=e.slice(),s;return function(l){for(s=0;s<r;++s)a[s]=t[s]*(1-l)+e[s]*l;return a}}function Gk(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Yk(t,e){var r=e?e.length:0,a=t?Math.min(r,t.length):0,s=new Array(a),l=new Array(r),c;for(c=0;c<a;++c)s[c]=Jc(t[c],e[c]);for(;c<r;++c)l[c]=e[c];return function(f){for(c=0;c<a;++c)l[c]=s[c](f);return l}}function zm(t,e){var r=new Date;return t=+t,e=+e,function(a){return r.setTime(t*(1-a)+e*a),r}}function Se(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function qk(t,e){var r={},a={},s;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(s in e)s in t?r[s]=Jc(t[s],e[s]):a[s]=e[s];return function(l){for(s in r)a[s]=r[s](l);return a}}var wp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zh=new RegExp(wp.source,"g");function Vk(t){return function(){return t}}function Xk(t){return function(e){return t(e)+""}}function Kk(t,e){var r=wp.lastIndex=Zh.lastIndex=0,a,s,l,c=-1,f=[],p=[];for(t=t+"",e=e+"";(a=wp.exec(t))&&(s=Zh.exec(e));)(l=s.index)>r&&(l=e.slice(r,l),f[c]?f[c]+=l:f[++c]=l),(a=a[0])===(s=s[0])?f[c]?f[c]+=s:f[++c]=s:(f[++c]=null,p.push({i:c,x:Se(a,s)})),r=Zh.lastIndex;return r<e.length&&(l=e.slice(r),f[c]?f[c]+=l:f[++c]=l),f.length<2?p[0]?Xk(p[0].x):Vk(e):(e=p.length,function(d){for(var m=0,y;m<e;++m)f[(y=p[m]).i]=y.x(d);return f.join("")})}function Jc(t,e){var r=typeof e,a;return e==null||r==="boolean"?_m(e):(r==="number"?Se:r==="string"?(a=tl(e))?(e=a,v1):Kk:e instanceof tl?v1:e instanceof Date?zm:Gk(e)?Pk:Array.isArray(e)?Yk:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?qk:Se)(t,e)}function ZS(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function Zk(t){return function(){return t}}function Qk(t){return+t}var b1=[0,1];function _n(t){return t}function Mp(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:Zk(isNaN(e)?NaN:.5)}function Fk(t,e){var r;return t>e&&(r=t,t=e,e=r),function(a){return Math.max(t,Math.min(e,a))}}function Wk(t,e,r){var a=t[0],s=t[1],l=e[0],c=e[1];return s<a?(a=Mp(s,a),l=r(c,l)):(a=Mp(a,s),l=r(l,c)),function(f){return l(a(f))}}function Jk(t,e,r){var a=Math.min(t.length,e.length)-1,s=new Array(a),l=new Array(a),c=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++c<a;)s[c]=Mp(t[c],t[c+1]),l[c]=r(e[c],e[c+1]);return function(f){var p=GS(t,f,1,a)-1;return l[p](s[p](f))}}function yl(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function tf(){var t=b1,e=b1,r=Jc,a,s,l,c=_n,f,p,d;function m(){var v=Math.min(t.length,e.length);return c!==_n&&(c=Fk(t[0],t[v-1])),f=v>2?Jk:Wk,p=d=null,y}function y(v){return v==null||isNaN(v=+v)?l:(p||(p=f(t.map(a),e,r)))(a(c(v)))}return y.invert=function(v){return c(s((d||(d=f(e,t.map(a),Se)))(v)))},y.domain=function(v){return arguments.length?(t=Array.from(v,Qk),m()):t.slice()},y.range=function(v){return arguments.length?(e=Array.from(v),m()):e.slice()},y.rangeRound=function(v){return e=Array.from(v),r=ZS,m()},y.clamp=function(v){return arguments.length?(c=v?!0:_n,m()):c!==_n},y.interpolate=function(v){return arguments.length?(r=v,m()):r},y.unknown=function(v){return arguments.length?(l=v,y):l},function(v,b){return a=v,s=b,m()}}function QS(){return tf()(_n,_n)}function t3(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function yc(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,a=t.slice(0,r);return[a.length>1?a[0]+a.slice(2):a,+t.slice(r+1)]}function ho(t){return t=yc(Math.abs(t)),t?t[1]:NaN}function e3(t,e){return function(r,a){for(var s=r.length,l=[],c=0,f=t[0],p=0;s>0&&f>0&&(p+f+1>a&&(f=Math.max(1,a-p)),l.push(r.substring(s-=f,s+f)),!((p+=f+1)>a));)f=t[c=(c+1)%t.length];return l.reverse().join(e)}}function n3(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var r3=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function el(t){if(!(e=r3.exec(t)))throw new Error("invalid format: "+t);var e;return new $m({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}el.prototype=$m.prototype;function $m(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}$m.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 i3(t){t:for(var e=t.length,r=1,a=-1,s;r<e;++r)switch(t[r]){case".":a=s=r;break;case"0":a===0&&(a=r),s=r;break;default:if(!+t[r])break t;a>0&&(a=0);break}return a>0?t.slice(0,a)+t.slice(s+1):t}var FS;function a3(t,e){var r=yc(t,e);if(!r)return t+"";var a=r[0],s=r[1],l=s-(FS=Math.max(-8,Math.min(8,Math.floor(s/3)))*3)+1,c=a.length;return l===c?a:l>c?a+new Array(l-c+1).join("0"):l>0?a.slice(0,l)+"."+a.slice(l):"0."+new Array(1-l).join("0")+yc(t,Math.max(0,e+l-1))[0]}function x1(t,e){var r=yc(t,e);if(!r)return t+"";var a=r[0],s=r[1];return s<0?"0."+new Array(-s).join("0")+a:a.length>s+1?a.slice(0,s+1)+"."+a.slice(s+1):a+new Array(s-a.length+2).join("0")}const S1={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:t3,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>x1(t*100,e),r:x1,s:a3,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function T1(t){return t}var C1=Array.prototype.map,A1=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function o3(t){var e=t.grouping===void 0||t.thousands===void 0?T1:e3(C1.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",a=t.currency===void 0?"":t.currency[1]+"",s=t.decimal===void 0?".":t.decimal+"",l=t.numerals===void 0?T1:n3(C1.call(t.numerals,String)),c=t.percent===void 0?"%":t.percent+"",f=t.minus===void 0?"−":t.minus+"",p=t.nan===void 0?"NaN":t.nan+"";function d(y){y=el(y);var v=y.fill,b=y.align,x=y.sign,S=y.symbol,A=y.zero,w=y.width,D=y.comma,O=y.precision,R=y.trim,E=y.type;E==="n"?(D=!0,E="g"):S1[E]||(O===void 0&&(O=12),R=!0,E="g"),(A||v==="0"&&b==="=")&&(A=!0,v="0",b="=");var k=S==="$"?r:S==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",z=S==="$"?a:/[%p]/.test(E)?c:"",H=S1[E],L=/[defgprs%]/.test(E);O=O===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function C(_){var I=k,q=z,it,lt,j;if(E==="c")q=H(_)+q,_="";else{_=+_;var Y=_<0||1/_<0;if(_=isNaN(_)?p:H(Math.abs(_),O),R&&(_=i3(_)),Y&&+_==0&&x!=="+"&&(Y=!1),I=(Y?x==="("?x:f:x==="-"||x==="("?"":x)+I,q=(E==="s"?A1[8+FS/3]:"")+q+(Y&&x==="("?")":""),L){for(it=-1,lt=_.length;++it<lt;)if(j=_.charCodeAt(it),48>j||j>57){q=(j===46?s+_.slice(it+1):_.slice(it))+q,_=_.slice(0,it);break}}}D&&!A&&(_=e(_,1/0));var W=I.length+_.length+q.length,J=W<w?new Array(w-W+1).join(v):"";switch(D&&A&&(_=e(J+_,J.length?w-q.length:1/0),J=""),b){case"<":_=I+_+q+J;break;case"=":_=I+J+_+q;break;case"^":_=J.slice(0,W=J.length>>1)+I+_+q+J.slice(W);break;default:_=J+I+_+q;break}return l(_)}return C.toString=function(){return y+""},C}function m(y,v){var b=d((y=el(y),y.type="f",y)),x=Math.max(-8,Math.min(8,Math.floor(ho(v)/3)))*3,S=Math.pow(10,-x),A=A1[8+x/3];return function(w){return b(S*w)+A}}return{format:d,formatPrefix:m}}var Zu,Nm,WS;s3({thousands:",",grouping:[3],currency:["$",""]});function s3(t){return Zu=o3(t),Nm=Zu.format,WS=Zu.formatPrefix,Zu}function l3(t){return Math.max(0,-ho(Math.abs(t)))}function u3(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ho(e)/3)))*3-ho(Math.abs(t)))}function c3(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ho(e)-ho(t))+1}function f3(t,e,r,a){var s=Ap(t,e,r),l;switch(a=el(a??",f"),a.type){case"s":{var c=Math.max(Math.abs(t),Math.abs(e));return a.precision==null&&!isNaN(l=u3(s,c))&&(a.precision=l),WS(a,c)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(l=c3(s,Math.max(Math.abs(t),Math.abs(e))))&&(a.precision=l-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(l=l3(s))&&(a.precision=l-(a.type==="%")*2);break}}return Nm(a)}function ef(t){var e=t.domain;return t.ticks=function(r){var a=e();return Tp(a[0],a[a.length-1],r??10)},t.tickFormat=function(r,a){var s=e();return f3(s[0],s[s.length-1],r??10,a)},t.nice=function(r){r==null&&(r=10);var a=e(),s=0,l=a.length-1,c=a[s],f=a[l],p,d,m=10;for(f<c&&(d=c,c=f,f=d,d=s,s=l,l=d);m-- >0;){if(d=Cp(c,f,r),d===p)return a[s]=c,a[l]=f,e(a);if(d>0)c=Math.floor(c/d)*d,f=Math.ceil(f/d)*d;else if(d<0)c=Math.ceil(c*d)/d,f=Math.floor(f*d)/d;else break;p=d}return t},t}function Lm(){var t=QS();return t.copy=function(){return yl(t,Lm())},Pr.apply(t,arguments),ef(t)}function JS(t,e){t=t.slice();var r=0,a=t.length-1,s=t[r],l=t[a],c;return l<s&&(c=r,r=a,a=c,c=s,s=l,l=c),t[r]=e.floor(s),t[a]=e.ceil(l),t}function E1(t){return Math.log(t)}function w1(t){return Math.exp(t)}function d3(t){return-Math.log(-t)}function h3(t){return-Math.exp(-t)}function p3(t){return isFinite(t)?+("1e"+t):t<0?0:t}function m3(t){return t===10?p3:t===Math.E?Math.exp:e=>Math.pow(t,e)}function g3(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function M1(t){return(e,r)=>-t(-e,r)}function y3(t){const e=t(E1,w1),r=e.domain;let a=10,s,l;function c(){return s=g3(a),l=m3(a),r()[0]<0?(s=M1(s),l=M1(l),t(d3,h3)):t(E1,w1),e}return e.base=function(f){return arguments.length?(a=+f,c()):a},e.domain=function(f){return arguments.length?(r(f),c()):r()},e.ticks=f=>{const p=r();let d=p[0],m=p[p.length-1];const y=m<d;y&&([d,m]=[m,d]);let v=s(d),b=s(m),x,S;const A=f==null?10:+f;let w=[];if(!(a%1)&&b-v<A){if(v=Math.floor(v),b=Math.ceil(b),d>0){for(;v<=b;++v)for(x=1;x<a;++x)if(S=v<0?x/l(-v):x*l(v),!(S<d)){if(S>m)break;w.push(S)}}else for(;v<=b;++v)for(x=a-1;x>=1;--x)if(S=v>0?x/l(-v):x*l(v),!(S<d)){if(S>m)break;w.push(S)}w.length*2<A&&(w=Tp(d,m,A))}else w=Tp(v,b,Math.min(b-v,A)).map(l);return y?w.reverse():w},e.tickFormat=(f,p)=>{if(f==null&&(f=10),p==null&&(p=a===10?"s":","),typeof p!="function"&&(!(a%1)&&(p=el(p)).precision==null&&(p.trim=!0),p=Nm(p)),f===1/0)return p;const d=Math.max(1,a*f/e.ticks().length);return m=>{let y=m/l(Math.round(s(m)));return y*a<a-.5&&(y*=a),y<=d?p(m):""}},e.nice=()=>r(JS(r(),{floor:f=>l(Math.floor(s(f))),ceil:f=>l(Math.ceil(s(f)))})),e}function vc(){const t=y3(tf()).domain([1,10]);return t.copy=()=>yl(t,vc()).base(t.base()),Pr.apply(t,arguments),t}function O1(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function R1(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function v3(t){var e=1,r=t(O1(e),R1(e));return r.constant=function(a){return arguments.length?t(O1(e=+a),R1(e)):e},ef(r)}function t2(){var t=v3(tf());return t.copy=function(){return yl(t,t2()).constant(t.constant())},Pr.apply(t,arguments)}function k1(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function b3(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function x3(t){return t<0?-t*t:t*t}function S3(t){var e=t(_n,_n),r=1;function a(){return r===1?t(_n,_n):r===.5?t(b3,x3):t(k1(r),k1(1/r))}return e.exponent=function(s){return arguments.length?(r=+s,a()):r},ef(e)}function jm(){var t=S3(tf());return t.copy=function(){return yl(t,jm()).exponent(t.exponent())},Pr.apply(t,arguments),t}function T3(){return jm.apply(null,arguments).exponent(.5)}function e2(){var t=[.5],e=[0,1],r,a=1;function s(l){return l!=null&&l<=l?e[GS(t,l,0,a)]:r}return s.domain=function(l){return arguments.length?(t=Array.from(l),a=Math.min(t.length,e.length-1),s):t.slice()},s.range=function(l){return arguments.length?(e=Array.from(l),a=Math.min(t.length,e.length-1),s):e.slice()},s.invertExtent=function(l){var c=e.indexOf(l);return[t[c-1],t[c]]},s.unknown=function(l){return arguments.length?(r=l,s):r},s.copy=function(){return e2().domain(t).range(e).unknown(r)},Pr.apply(s,arguments)}const Qh=new Date,Fh=new Date;function Ce(t,e,r,a){function s(l){return t(l=arguments.length===0?new Date:new Date(+l)),l}return s.floor=l=>(t(l=new Date(+l)),l),s.ceil=l=>(t(l=new Date(l-1)),e(l,1),t(l),l),s.round=l=>{const c=s(l),f=s.ceil(l);return l-c<f-l?c:f},s.offset=(l,c)=>(e(l=new Date(+l),c==null?1:Math.floor(c)),l),s.range=(l,c,f)=>{const p=[];if(l=s.ceil(l),f=f==null?1:Math.floor(f),!(l<c)||!(f>0))return p;let d;do p.push(d=new Date(+l)),e(l,f),t(l);while(d<l&&l<c);return p},s.filter=l=>Ce(c=>{if(c>=c)for(;t(c),!l(c);)c.setTime(c-1)},(c,f)=>{if(c>=c)if(f<0)for(;++f<=0;)for(;e(c,-1),!l(c););else for(;--f>=0;)for(;e(c,1),!l(c););}),r&&(s.count=(l,c)=>(Qh.setTime(+l),Fh.setTime(+c),t(Qh),t(Fh),Math.floor(r(Qh,Fh))),s.every=l=>(l=Math.floor(l),!isFinite(l)||!(l>0)?null:l>1?s.filter(a?c=>a(c)%l===0:c=>s.count(0,c)%l===0):s)),s}const bc=Ce(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);bc.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Ce(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):bc);bc.range;const kr=1e3,zn=kr*60,Dr=zn*60,Lr=Dr*24,Um=Lr*7,D1=Lr*30,Wh=Lr*365,qi=Ce(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*kr)},(t,e)=>(e-t)/kr,t=>t.getUTCSeconds());qi.range;const Bm=Ce(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*kr)},(t,e)=>{t.setTime(+t+e*zn)},(t,e)=>(e-t)/zn,t=>t.getMinutes());Bm.range;const Hm=Ce(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*zn)},(t,e)=>(e-t)/zn,t=>t.getUTCMinutes());Hm.range;const Im=Ce(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*kr-t.getMinutes()*zn)},(t,e)=>{t.setTime(+t+e*Dr)},(t,e)=>(e-t)/Dr,t=>t.getHours());Im.range;const Pm=Ce(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Dr)},(t,e)=>(e-t)/Dr,t=>t.getUTCHours());Pm.range;const vl=Ce(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*zn)/Lr,t=>t.getDate()-1);vl.range;const nf=Ce(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Lr,t=>t.getUTCDate()-1);nf.range;const n2=Ce(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Lr,t=>Math.floor(t/Lr));n2.range;function ra(t){return Ce(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*zn)/Um)}const rf=ra(0),xc=ra(1),C3=ra(2),A3=ra(3),po=ra(4),E3=ra(5),w3=ra(6);rf.range;xc.range;C3.range;A3.range;po.range;E3.range;w3.range;function ia(t){return Ce(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/Um)}const af=ia(0),Sc=ia(1),M3=ia(2),O3=ia(3),mo=ia(4),R3=ia(5),k3=ia(6);af.range;Sc.range;M3.range;O3.range;mo.range;R3.range;k3.range;const Gm=Ce(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Gm.range;const Ym=Ce(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());Ym.range;const jr=Ce(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());jr.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Ce(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});jr.range;const Ur=Ce(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Ur.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Ce(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});Ur.range;function r2(t,e,r,a,s,l){const c=[[qi,1,kr],[qi,5,5*kr],[qi,15,15*kr],[qi,30,30*kr],[l,1,zn],[l,5,5*zn],[l,15,15*zn],[l,30,30*zn],[s,1,Dr],[s,3,3*Dr],[s,6,6*Dr],[s,12,12*Dr],[a,1,Lr],[a,2,2*Lr],[r,1,Um],[e,1,D1],[e,3,3*D1],[t,1,Wh]];function f(d,m,y){const v=m<d;v&&([d,m]=[m,d]);const b=y&&typeof y.range=="function"?y:p(d,m,y),x=b?b.range(d,+m+1):[];return v?x.reverse():x}function p(d,m,y){const v=Math.abs(m-d)/y,b=km(([,,A])=>A).right(c,v);if(b===c.length)return t.every(Ap(d/Wh,m/Wh,y));if(b===0)return bc.every(Math.max(Ap(d,m,y),1));const[x,S]=c[v/c[b-1][2]<c[b][2]/v?b-1:b];return x.every(S)}return[f,p]}const[D3,_3]=r2(Ur,Ym,af,n2,Pm,Hm),[z3,$3]=r2(jr,Gm,rf,vl,Im,Bm);function Jh(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function tp(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function _s(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function N3(t){var e=t.dateTime,r=t.date,a=t.time,s=t.periods,l=t.days,c=t.shortDays,f=t.months,p=t.shortMonths,d=zs(s),m=$s(s),y=zs(l),v=$s(l),b=zs(c),x=$s(c),S=zs(f),A=$s(f),w=zs(p),D=$s(p),O={a:Y,A:W,b:J,B:$,c:null,d:j1,e:j1,f:iD,g:pD,G:gD,H:eD,I:nD,j:rD,L:i2,m:aD,M:oD,p:Z,q:at,Q:H1,s:I1,S:sD,u:lD,U:uD,V:cD,w:fD,W:dD,x:null,X:null,y:hD,Y:mD,Z:yD,"%":B1},R={a:ot,A:ct,b:dt,B:ft,c:null,d:U1,e:U1,f:SD,g:DD,G:zD,H:vD,I:bD,j:xD,L:o2,m:TD,M:CD,p:At,q:bt,Q:H1,s:I1,S:AD,u:ED,U:wD,V:MD,w:OD,W:RD,x:null,X:null,y:kD,Y:_D,Z:$D,"%":B1},E={a:C,A:_,b:I,B:q,c:it,d:N1,e:N1,f:F3,g:$1,G:z1,H:L1,I:L1,j:X3,L:Q3,m:V3,M:K3,p:L,q:q3,Q:J3,s:tD,S:Z3,u:H3,U:I3,V:P3,w:B3,W:G3,x:lt,X:j,y:$1,Y:z1,Z:Y3,"%":W3};O.x=k(r,O),O.X=k(a,O),O.c=k(e,O),R.x=k(r,R),R.X=k(a,R),R.c=k(e,R);function k(nt,ht){return function(vt){var ut=[],$t=-1,gt=0,Yt=nt.length,re,jt,Be;for(vt instanceof Date||(vt=new Date(+vt));++$t<Yt;)nt.charCodeAt($t)===37&&(ut.push(nt.slice(gt,$t)),(jt=_1[re=nt.charAt(++$t)])!=null?re=nt.charAt(++$t):jt=re==="e"?" ":"0",(Be=ht[re])&&(re=Be(vt,jt)),ut.push(re),gt=$t+1);return ut.push(nt.slice(gt,$t)),ut.join("")}}function z(nt,ht){return function(vt){var ut=_s(1900,void 0,1),$t=H(ut,nt,vt+="",0),gt,Yt;if($t!=vt.length)return null;if("Q"in ut)return new Date(ut.Q);if("s"in ut)return new Date(ut.s*1e3+("L"in ut?ut.L:0));if(ht&&!("Z"in ut)&&(ut.Z=0),"p"in ut&&(ut.H=ut.H%12+ut.p*12),ut.m===void 0&&(ut.m="q"in ut?ut.q:0),"V"in ut){if(ut.V<1||ut.V>53)return null;"w"in ut||(ut.w=1),"Z"in ut?(gt=tp(_s(ut.y,0,1)),Yt=gt.getUTCDay(),gt=Yt>4||Yt===0?Sc.ceil(gt):Sc(gt),gt=nf.offset(gt,(ut.V-1)*7),ut.y=gt.getUTCFullYear(),ut.m=gt.getUTCMonth(),ut.d=gt.getUTCDate()+(ut.w+6)%7):(gt=Jh(_s(ut.y,0,1)),Yt=gt.getDay(),gt=Yt>4||Yt===0?xc.ceil(gt):xc(gt),gt=vl.offset(gt,(ut.V-1)*7),ut.y=gt.getFullYear(),ut.m=gt.getMonth(),ut.d=gt.getDate()+(ut.w+6)%7)}else("W"in ut||"U"in ut)&&("w"in ut||(ut.w="u"in ut?ut.u%7:"W"in ut?1:0),Yt="Z"in ut?tp(_s(ut.y,0,1)).getUTCDay():Jh(_s(ut.y,0,1)).getDay(),ut.m=0,ut.d="W"in ut?(ut.w+6)%7+ut.W*7-(Yt+5)%7:ut.w+ut.U*7-(Yt+6)%7);return"Z"in ut?(ut.H+=ut.Z/100|0,ut.M+=ut.Z%100,tp(ut)):Jh(ut)}}function H(nt,ht,vt,ut){for(var $t=0,gt=ht.length,Yt=vt.length,re,jt;$t<gt;){if(ut>=Yt)return-1;if(re=ht.charCodeAt($t++),re===37){if(re=ht.charAt($t++),jt=E[re in _1?ht.charAt($t++):re],!jt||(ut=jt(nt,vt,ut))<0)return-1}else if(re!=vt.charCodeAt(ut++))return-1}return ut}function L(nt,ht,vt){var ut=d.exec(ht.slice(vt));return ut?(nt.p=m.get(ut[0].toLowerCase()),vt+ut[0].length):-1}function C(nt,ht,vt){var ut=b.exec(ht.slice(vt));return ut?(nt.w=x.get(ut[0].toLowerCase()),vt+ut[0].length):-1}function _(nt,ht,vt){var ut=y.exec(ht.slice(vt));return ut?(nt.w=v.get(ut[0].toLowerCase()),vt+ut[0].length):-1}function I(nt,ht,vt){var ut=w.exec(ht.slice(vt));return ut?(nt.m=D.get(ut[0].toLowerCase()),vt+ut[0].length):-1}function q(nt,ht,vt){var ut=S.exec(ht.slice(vt));return ut?(nt.m=A.get(ut[0].toLowerCase()),vt+ut[0].length):-1}function it(nt,ht,vt){return H(nt,e,ht,vt)}function lt(nt,ht,vt){return H(nt,r,ht,vt)}function j(nt,ht,vt){return H(nt,a,ht,vt)}function Y(nt){return c[nt.getDay()]}function W(nt){return l[nt.getDay()]}function J(nt){return p[nt.getMonth()]}function $(nt){return f[nt.getMonth()]}function Z(nt){return s[+(nt.getHours()>=12)]}function at(nt){return 1+~~(nt.getMonth()/3)}function ot(nt){return c[nt.getUTCDay()]}function ct(nt){return l[nt.getUTCDay()]}function dt(nt){return p[nt.getUTCMonth()]}function ft(nt){return f[nt.getUTCMonth()]}function At(nt){return s[+(nt.getUTCHours()>=12)]}function bt(nt){return 1+~~(nt.getUTCMonth()/3)}return{format:function(nt){var ht=k(nt+="",O);return ht.toString=function(){return nt},ht},parse:function(nt){var ht=z(nt+="",!1);return ht.toString=function(){return nt},ht},utcFormat:function(nt){var ht=k(nt+="",R);return ht.toString=function(){return nt},ht},utcParse:function(nt){var ht=z(nt+="",!0);return ht.toString=function(){return nt},ht}}}var _1={"-":"",_:" ",0:"0"},ke=/^\s*\d+/,L3=/^%/,j3=/[\\^$*+?|[\]().{}]/g;function Lt(t,e,r){var a=t<0?"-":"",s=(a?-t:t)+"",l=s.length;return a+(l<r?new Array(r-l+1).join(e)+s:s)}function U3(t){return t.replace(j3,"\\$&")}function zs(t){return new RegExp("^(?:"+t.map(U3).join("|")+")","i")}function $s(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function B3(t,e,r){var a=ke.exec(e.slice(r,r+1));return a?(t.w=+a[0],r+a[0].length):-1}function H3(t,e,r){var a=ke.exec(e.slice(r,r+1));return a?(t.u=+a[0],r+a[0].length):-1}function I3(t,e,r){var a=ke.exec(e.slice(r,r+2));return a?(t.U=+a[0],r+a[0].length):-1}function P3(t,e,r){var a=ke.exec(e.slice(r,r+2));return a?(t.V=+a[0],r+a[0].length):-1}function G3(t,e,r){var a=ke.exec(e.slice(r,r+2));return a?(t.W=+a[0],r+a[0].length):-1}function z1(t,e,r){var a=ke.exec(e.slice(r,r+4));return a?(t.y=+a[0],r+a[0].length):-1}function $1(t,e,r){var a=ke.exec(e.slice(r,r+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function Y3(t,e,r){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),r+a[0].length):-1}function q3(t,e,r){var a=ke.exec(e.slice(r,r+1));return a?(t.q=a[0]*3-3,r+a[0].length):-1}function V3(t,e,r){var a=ke.exec(e.slice(r,r+2));return a?(t.m=a[0]-1,r+a[0].length):-1}function N1(t,e,r){var a=ke.exec(e.slice(r,r+2));return a?(t.d=+a[0],r+a[0].length):-1}function X3(t,e,r){var a=ke.exec(e.slice(r,r+3));return a?(t.m=0,t.d=+a[0],r+a[0].length):-1}function L1(t,e,r){var a=ke.exec(e.slice(r,r+2));return a?(t.H=+a[0],r+a[0].length):-1}function K3(t,e,r){var a=ke.exec(e.slice(r,r+2));return a?(t.M=+a[0],r+a[0].length):-1}function Z3(t,e,r){var a=ke.exec(e.slice(r,r+2));return a?(t.S=+a[0],r+a[0].length):-1}function Q3(t,e,r){var a=ke.exec(e.slice(r,r+3));return a?(t.L=+a[0],r+a[0].length):-1}function F3(t,e,r){var a=ke.exec(e.slice(r,r+6));return a?(t.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function W3(t,e,r){var a=L3.exec(e.slice(r,r+1));return a?r+a[0].length:-1}function J3(t,e,r){var a=ke.exec(e.slice(r));return a?(t.Q=+a[0],r+a[0].length):-1}function tD(t,e,r){var a=ke.exec(e.slice(r));return a?(t.s=+a[0],r+a[0].length):-1}function j1(t,e){return Lt(t.getDate(),e,2)}function eD(t,e){return Lt(t.getHours(),e,2)}function nD(t,e){return Lt(t.getHours()%12||12,e,2)}function rD(t,e){return Lt(1+vl.count(jr(t),t),e,3)}function i2(t,e){return Lt(t.getMilliseconds(),e,3)}function iD(t,e){return i2(t,e)+"000"}function aD(t,e){return Lt(t.getMonth()+1,e,2)}function oD(t,e){return Lt(t.getMinutes(),e,2)}function sD(t,e){return Lt(t.getSeconds(),e,2)}function lD(t){var e=t.getDay();return e===0?7:e}function uD(t,e){return Lt(rf.count(jr(t)-1,t),e,2)}function a2(t){var e=t.getDay();return e>=4||e===0?po(t):po.ceil(t)}function cD(t,e){return t=a2(t),Lt(po.count(jr(t),t)+(jr(t).getDay()===4),e,2)}function fD(t){return t.getDay()}function dD(t,e){return Lt(xc.count(jr(t)-1,t),e,2)}function hD(t,e){return Lt(t.getFullYear()%100,e,2)}function pD(t,e){return t=a2(t),Lt(t.getFullYear()%100,e,2)}function mD(t,e){return Lt(t.getFullYear()%1e4,e,4)}function gD(t,e){var r=t.getDay();return t=r>=4||r===0?po(t):po.ceil(t),Lt(t.getFullYear()%1e4,e,4)}function yD(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Lt(e/60|0,"0",2)+Lt(e%60,"0",2)}function U1(t,e){return Lt(t.getUTCDate(),e,2)}function vD(t,e){return Lt(t.getUTCHours(),e,2)}function bD(t,e){return Lt(t.getUTCHours()%12||12,e,2)}function xD(t,e){return Lt(1+nf.count(Ur(t),t),e,3)}function o2(t,e){return Lt(t.getUTCMilliseconds(),e,3)}function SD(t,e){return o2(t,e)+"000"}function TD(t,e){return Lt(t.getUTCMonth()+1,e,2)}function CD(t,e){return Lt(t.getUTCMinutes(),e,2)}function AD(t,e){return Lt(t.getUTCSeconds(),e,2)}function ED(t){var e=t.getUTCDay();return e===0?7:e}function wD(t,e){return Lt(af.count(Ur(t)-1,t),e,2)}function s2(t){var e=t.getUTCDay();return e>=4||e===0?mo(t):mo.ceil(t)}function MD(t,e){return t=s2(t),Lt(mo.count(Ur(t),t)+(Ur(t).getUTCDay()===4),e,2)}function OD(t){return t.getUTCDay()}function RD(t,e){return Lt(Sc.count(Ur(t)-1,t),e,2)}function kD(t,e){return Lt(t.getUTCFullYear()%100,e,2)}function DD(t,e){return t=s2(t),Lt(t.getUTCFullYear()%100,e,2)}function _D(t,e){return Lt(t.getUTCFullYear()%1e4,e,4)}function zD(t,e){var r=t.getUTCDay();return t=r>=4||r===0?mo(t):mo.ceil(t),Lt(t.getUTCFullYear()%1e4,e,4)}function $D(){return"+0000"}function B1(){return"%"}function H1(t){return+t}function I1(t){return Math.floor(+t/1e3)}var Wa,l2,u2;ND({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 ND(t){return Wa=N3(t),l2=Wa.format,Wa.parse,u2=Wa.utcFormat,Wa.utcParse,Wa}function LD(t){return new Date(t)}function jD(t){return t instanceof Date?+t:+new Date(+t)}function qm(t,e,r,a,s,l,c,f,p,d){var m=QS(),y=m.invert,v=m.domain,b=d(".%L"),x=d(":%S"),S=d("%I:%M"),A=d("%I %p"),w=d("%a %d"),D=d("%b %d"),O=d("%B"),R=d("%Y");function E(k){return(p(k)<k?b:f(k)<k?x:c(k)<k?S:l(k)<k?A:a(k)<k?s(k)<k?w:D:r(k)<k?O:R)(k)}return m.invert=function(k){return new Date(y(k))},m.domain=function(k){return arguments.length?v(Array.from(k,jD)):v().map(LD)},m.ticks=function(k){var z=v();return t(z[0],z[z.length-1],k??10)},m.tickFormat=function(k,z){return z==null?E:d(z)},m.nice=function(k){var z=v();return(!k||typeof k.range!="function")&&(k=e(z[0],z[z.length-1],k??10)),k?v(JS(z,k)):m},m.copy=function(){return yl(m,qm(t,e,r,a,s,l,c,f,p,d))},m}function c2(){return Pr.apply(qm(z3,$3,jr,Gm,rf,vl,Im,Bm,qi,l2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function UD(){return Pr.apply(qm(D3,_3,Ur,Ym,af,nf,Pm,Hm,qi,u2).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function BD(){var t=0,e=1,r,a,s,l,c=_n,f=!1,p;function d(y){return y==null||isNaN(y=+y)?p:c(s===0?.5:(y=(l(y)-r)*s,f?Math.max(0,Math.min(1,y)):y))}d.domain=function(y){return arguments.length?([t,e]=y,r=l(t=+t),a=l(e=+e),s=r===a?0:1/(a-r),d):[t,e]},d.clamp=function(y){return arguments.length?(f=!!y,d):f},d.interpolator=function(y){return arguments.length?(c=y,d):c};function m(y){return function(v){var b,x;return arguments.length?([b,x]=v,c=y(b,x),d):[c(0),c(1)]}}return d.range=m(Jc),d.rangeRound=m(ZS),d.unknown=function(y){return arguments.length?(p=y,d):p},function(y){return l=y,r=y(t),a=y(e),s=r===a?0:1/(a-r),d}}function HD(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function f2(){var t=ef(BD()(_n));return t.copy=function(){return HD(t,f2())},wk.apply(t,arguments)}function ID(t,e){return function(a,s){return s.location==="tick"?s.scale.tickFormat(t)(a):s.location==="zoom-slider-tooltip"?e.tickFormat(2)(a):`${a}`}}function Tc(t){return t.scaleType==="band"}function Vm(t){return t.scaleType==="point"}function PD(t){return t.scaleType==="symlog"}function GD(t){return t.type==="piecewise"?e2(t.thresholds,t.colors):f2([t.min??0,t.max??100],t.color)}function go(t){return t.values?pc(t.values,t.colors).unknown(t.unknownColor??null):pc(t.colors.map((e,r)=>r),t.colors).unknown(t.unknownColor??null)}function Zi(t){return t.type==="ordinal"?go(t):GD(t)}function d2(t){const{tickMaxStep:e,tickMinStep:r,tickNumber:a,range:s,domain:l}=t,c=r===void 0?999:Math.floor(Math.abs(l[1]-l[0])/r),f=e===void 0?2:Math.ceil(Math.abs(l[1]-l[0])/e),p=a??Math.floor(Math.abs(s[1]-s[0])/50);return Math.min(c,Math.max(f,p))}function h2(t,e){return e[1]-e[0]===0?1:t/((e[1]-e[0])/100)}function YD(t,e){const r=t2(t,e),a=r.ticks,{negativeScale:s,linearScale:l,positiveScale:c}=qD(r);return r.ticks=f=>{const p=a(f),d=r.constant();let m=0,y=0,v=0;p.forEach(x=>{x>-d&&x<d&&(y+=1),x<=-d&&(m+=1),x>=d&&(v+=1)});const b=[];if(m>0&&b.push(...s.ticks(m)),y>0){const x=l.ticks(y);b.at(-1)===x[0]?b.push(...x.slice(1)):b.push(...x)}if(v>0){const x=c.ticks(v);b.at(-1)===x[0]?b.push(...x.slice(1)):b.push(...x)}return b},r.tickFormat=(f=10,p)=>{const d=r.constant(),[m,y]=r.domain(),v=y-m,b=s.domain(),x=b[1]-b[0],A=(v===0?0:x/v)*f,w=l.domain(),D=w[1]-w[0],R=(v===0?0:D/v)*f,E=c.domain(),k=E[1]-E[0],H=(v===0?0:k/v)*f,L=s.tickFormat(A,p),C=l.tickFormat(R,p),_=c.tickFormat(H,p);return I=>(I.valueOf()<=-d?L:I.valueOf()>=d?_:C)(I)},r}function qD(t){const e=t.constant(),r=t.domain(),a=[r[0],Math.min(r[1],-e)],s=vc(a,t.range()),l=[Math.max(r[0],-e),Math.min(r[1],e)],c=Lm(l,t.range()),f=[Math.max(r[0],e),r[1]],p=vc(f,t.range());return{negativeScale:s,linearScale:c,positiveScale:p}}function Cc(t,e,r){switch(t){case"log":return vc(e,r);case"pow":return jm(e,r);case"sqrt":return T3(e,r);case"time":return c2(e,r);case"utc":return UD(e,r);case"symlog":return YD(e,r);default:return Lm(e,r)}}const Ac=t=>(t==null?void 0:t[0])instanceof Date;function Ec(t,e){const r=c2(t.data,e);return(a,{location:s})=>s==="tick"?r.tickFormat(t.tickNumber)(a):`${a.toLocaleString()}`}const ep=(t,e)=>{const r=t[1]-t[0],a=e[1]-e[0],s=t[0]-e[0]*r/a,l=t[1]+(100-e[1])*r/a;return[s,l]};let P1,G1;class VD{constructor(){Et(this,"types",new Set);if(P1)throw new Error("You can only create one instance!");P1=this.types}addType(e){this.types.add(e)}getTypes(){return this.types}}class XD{constructor(){Et(this,"types",new Set);if(G1)throw new Error("You can only create one instance!");G1=this.types}addType(e){this.types.add(e)}getTypes(){return this.types}}const of=new VD;of.addType("bar");of.addType("line");of.addType("scatter");const p2=new XD;p2.addType("radar");function Xm(t){return of.getTypes().has(t)}const KD=(t,e,r,a,s,l,c,f)=>{var x;const p=a==="x"?s[e].xExtremumGetter:s[e].yExtremumGetter,d=((x=c[e])==null?void 0:x.series)??{},[m,y]=(p==null?void 0:p({series:d,axis:r,axisIndex:l,isDefaultAxis:l===0,getFilters:f}))??[1/0,-1/0],[v,b]=t;return[Math.min(m,v),Math.max(y,b)]},m2=(t,e,r,a,s,l)=>{const f=Object.keys(r).filter(Xm).reduce((p,d)=>KD(p,d,t,e,r,a,s,l),[1/0,-1/0]);return Number.isNaN(f[0])||Number.isNaN(f[1])?[1/0,-1/0]:f},ZD=(t,e,r,a)=>{const s=new Set;return Object.keys(e).filter(Xm).forEach(c=>{var d,m,y;const f=((d=r[c])==null?void 0:d.series)??{},p=(y=(m=e[c]).axisTooltipGetter)==null?void 0:y.call(m,f);p!==void 0&&p.forEach(({axisId:v,direction:b})=>{b===t&&s.add(v??a)})}),s},QD=(t,e,r,a)=>{var s;if(t.domainLimit!==void 0)return t.domainLimit;if(e==="x")for(const l of((s=a.line)==null?void 0:s.seriesOrder)??[]){const c=a.line.series[l];if(c.xAxisId===t.id||c.xAxisId===void 0&&r===0)return"strict"}return"nice"};function FD(t,e,r){const a=e==="x"?[t.left,t.left+t.width]:[t.top+t.height,t.top];return r.reverse?[a[1],a[0]]:a}const WD=.2,JD=.1;function g2({drawingArea:t,formattedSeries:e,axis:r,seriesConfig:a,axisDirection:s,zoomMap:l,zoomOptions:c,getFilters:f,preferStrictDomainInLineCharts:p}){if(r===void 0)return{axis:{},axisIds:[]};const d=ZD(s,a,e,r[0].id),m={};return r.forEach((y,v)=>{const b=y,x=c==null?void 0:c[b.id],S=l==null?void 0:l.get(b.id),A=S?[S.start,S.end]:[0,100],w=FD(t,s,b),[D,O]=m2(b,s,a,v,e,S===void 0&&!x?f:void 0),R=!b.ignoreTooltip&&d.has(b.id),E=b.data??[];if(Tc(b)){const Y=b.categoryGapRatio??WD,W=b.barGapRatio??JD,J=s==="y"?[w[1],w[0]]:w,$=ep(J,A);if(m[b.id]=G({offset:0,height:0,categoryGapRatio:Y,barGapRatio:W,triggerTooltip:R},b,{data:E,scale:Wc(b.data,$).paddingInner(Y).paddingOuter(Y/2),tickNumber:b.data.length,colorScale:b.colorMap&&(b.colorMap.type==="ordinal"?go(G({values:b.data},b.colorMap)):Zi(b.colorMap))}),Ac(b.data)){const Z=Ec(b,J);m[b.id].valueFormatter=b.valueFormatter??Z}}if(Vm(b)){const Y=s==="y"?[...w].reverse():w,W=ep(Y,A);if(m[b.id]=G({offset:0,height:0,triggerTooltip:R},b,{data:E,scale:qS(b.data,W),tickNumber:b.data.length,colorScale:b.colorMap&&(b.colorMap.type==="ordinal"?go(G({values:b.data},b.colorMap)):Zi(b.colorMap))}),Ac(b.data)){const J=Ec(b,Y);m[b.id].valueFormatter=b.valueFormatter??J}}if(b.scaleType==="band"||b.scaleType==="point")return;const k=b.scaleType??"linear",z=p?QD(b,s,v,e):b.domainLimit??"nice",H=[b.min??D,b.max??O];if(typeof z=="function"){const{min:Y,max:W}=z(D,O);H[0]=Y,H[1]=W}const L=d2(G({},b,{range:w,domain:H})),C=h2(L,A),_=ep(w,A),I=Cc(k,H,_);PD(b)&&b.constant!=null&&I.constant(b.constant);const q=z==="nice"?I.nice(L):I,[it,lt]=q.domain(),j=[b.min??it,b.max??lt];m[b.id]=G({offset:0,height:0,triggerTooltip:R},b,{data:E,scaleType:k,scale:q.domain(j),tickNumber:C,colorScale:b.colorMap&&Zi(b.colorMap),valueFormatter:b.valueFormatter??ID(C,Cc(k,w.map(Y=>I.invert(Y)),w))})}),{axis:m,axisIds:r.map(({id:y})=>y)}}function t_(t){return t!=null}function y2({zoomMap:t,zoomOptions:e,seriesConfig:r,formattedSeries:a,direction:s}){return(l,c)=>{const f=e[l.id];if(!f||f.filterMode!=="discard")return null;const p=t==null?void 0:t.get(l.id);if(p===void 0||p.start<=0&&p.end>=100)return null;const d=l.scaleType;return d==="point"||d==="band"?e_(l.data,p.start,p.end,s):n_(d,m2(l,s,r,c,a),p.start,p.end,s,l.data)}}function e_(t,e,r,a){const s=(t==null?void 0:t.length)??0,l=Math.floor(e*s/100),c=Math.ceil(r*s/100);return function(p,d){return(p[a]??(t==null?void 0:t[d]))==null?!0:d>=l&&d<c}}function n_(t,e,r,a,s,l){let c,f;[c,f]=Cc(t??"linear",e,[0,100]).nice().domain(),c=c instanceof Date?c.getTime():c,f=f instanceof Date?f.getTime():f;const p=c+r*(f-c)/100,d=c+a*(f-c)/100;return function(y,v){const b=y[s]??(l==null?void 0:l[v]);return b==null?!0:b>=p&&b<=d}}const r_=t=>({currentAxisId:e,seriesXAxisId:r,seriesYAxisId:a,isDefaultAxis:s})=>(l,c)=>{var d,m;return!(e===r?a:r)||s?((m=(d=Object.values(t??{}))[0])==null?void 0:m.call(d,l,c))??!0:[a,r].filter(y=>y!==e).map(y=>t[y??""]).filter(t_).every(y=>y(l,c))},Y1=t=>(e=[])=>e.reduce((r,a)=>{const{zoom:s,id:l}=a,c=Rm(s,l,t);return c&&(r[l]=c),r},{}),i_=t=>{const e=new Map;return t.forEach(r=>{e.set(r.axisId,r)}),e},v2=t=>t.zoom,b2=pt([v2],t=>t==null?void 0:t.isInteracting),sf=pt([v2],t=>(t==null?void 0:t.zoomData)&&i_(t==null?void 0:t.zoomData)),bl=pt([na,Mo],(t,e)=>G({},Y1("x")(t),Y1("y")(e)));pt([bl,(t,e)=>e],(t,e)=>t[e]);const a_=pt([sf,bl,Ir,Zn],(t,e,r,a)=>t&&e&&y2({zoomMap:t,zoomOptions:e,seriesConfig:r,formattedSeries:a,direction:"x"})),o_=pt([sf,bl,Ir,Zn],(t,e,r,a)=>t&&e&&y2({zoomMap:t,zoomOptions:e,seriesConfig:r,formattedSeries:a,direction:"y"})),x2=pt([a_,o_,na,Mo],(t,e,r,a)=>{if(t===void 0||e===void 0)return;const s=r==null?void 0:r.reduce((c,f,p)=>{const d=t(f,p);return d!==null&&(c[f.id]=d),c},{}),l=a==null?void 0:a.reduce((c,f,p)=>{const d=e(f,p);return d!==null&&(c[f.id]=d),c},{});if(!(Object.keys(s??{}).length===0&&Object.keys(l??{}).length===0))return r_(G({},s,l))}),bn=pt([na,Hr,Zn,Ir,sf,bl,x2,_S],(t,e,r,a,s,l,c,f)=>g2({drawingArea:e,formattedSeries:r,axis:t,seriesConfig:a,axisDirection:"x",zoomMap:s,zoomOptions:l,getFilters:c,preferStrictDomainInLineCharts:f})),xn=pt([Mo,Hr,Zn,Ir,sf,bl,x2,_S],(t,e,r,a,s,l,c,f)=>g2({drawingArea:e,formattedSeries:r,axis:t,seriesConfig:a,axisDirection:"y",zoomMap:s,zoomOptions:l,getFilters:c,preferStrictDomainInLineCharts:f}));pt([bn,xn,(t,e)=>e],(t,e,r)=>(t==null?void 0:t.axis[r])??(e==null?void 0:e.axis[r]));pt([na,Mo,(t,e)=>e],(t,e,r)=>{const a=(t==null?void 0:t.find(s=>s.id===r))??(e==null?void 0:e.find(s=>s.id===r))??null;if(a)return a});function Bn(t){return t.bandwidth!==void 0}function Ja(t){return t instanceof Date?t.getTime():t}function yo(t,e){const{scale:r,data:a,reverse:s}=t;if(!Bn(r)){const c=r.invert(e);if(a===void 0)return-1;const f=Ja(c);return a==null?void 0:a.findIndex((d,m)=>{const y=Ja(d);return y>f&&(m===0||Math.abs(f-y)<=Math.abs(f-Ja(a[m-1])))||y<=f&&(m===a.length-1||Math.abs(Ja(c)-y)<Math.abs(Ja(c)-Ja(a[m+1])))})}const l=r.bandwidth()===0?Math.floor((e-Math.min(...r.range())+r.step()/2)/r.step()):Math.floor((e-Math.min(...r.range()))/r.step());return l<0||l>=a.length?-1:s?a.length-1-l:l}function q1(t,e,r){const{scale:a,data:s}=t;return Bn(a)?r===null||r<0||r>=s.length?null:s[r]:r===null?a.invert(e):s[r]}function Op(t,e){const r=t.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r.matrixTransform(t.getScreenCTM().inverse())}function $n(t){const e=U.useRef(t);return Te(()=>{e.current=t}),U.useRef((...r)=>(0,e.current)(...r)).current}const s_=Object.is;function S2(t,e){if(t===e)return!0;if(!(t instanceof Object)||!(e instanceof Object))return!1;let r=0,a=0;for(const s in t)if(r+=1,!s_(t[s],e[s])||!(s in e))return!1;for(const s in e)a+=1;return r===a}const xl=({store:t})=>{const e=$n(function(){t.update(c=>G({},c,{interaction:{pointer:null,item:null}}))}),r=$n(function(c){t.update(f=>{const p=f.interaction.item;return c?p===null||Object.keys(c).some(d=>c[d]!==p[d])?f:G({},f,{interaction:G({},f.interaction,{item:null})}):p===null?f:G({},f,{interaction:G({},f.interaction,{item:null})})})}),a=$n(function(c){t.update(f=>S2(f.interaction.item,c)?f:G({},f,{interaction:G({},f.interaction,{item:c})}))}),s=$n(function(c){t.update(f=>G({},f,{interaction:G({},f.interaction,{pointer:c})}))});return{instance:{cleanInteraction:e,setItemInteraction:a,removeItemInteraction:r,setPointerCoordinate:s}}};xl.getInitialState=()=>({interaction:{item:null,pointer:null}});xl.params={};const Km=t=>t.interaction,l_=pt([Km],t=>t!==void 0),T2=pt([Km],t=>(t==null?void 0:t.item)??null),C2=pt([Km],t=>(t==null?void 0:t.pointer)??null),Sl=pt([C2],t=>t&&t.x),Tl=pt([C2],t=>t&&t.y),u_=pt([T2],t=>t!==null);function co(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;if(Array.isArray(t)){const s=t.length;if(s!==e.length)return!1;for(let l=0;l<s;l+=1)if(!co(t[l],e[l]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;const s=Array.from(t.entries());for(let l=0;l<s.length;l+=1)if(!e.has(s[l][0]))return!1;for(let l=0;l<s.length;l+=1){const c=s[l];if(!co(c[1],e.get(c[0])))return!1}return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;const s=Array.from(t.entries());for(let l=0;l<s.length;l+=1)if(!e.has(s[l][0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){const s=t.length;if(s!==e.length)return!1;for(let l=0;l<s;l+=1)if(t[l]!==e[l])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();const r=Object.keys(t),a=r.length;if(a!==Object.keys(e).length)return!1;for(let s=0;s<a;s+=1)if(!Object.prototype.hasOwnProperty.call(e,r[s]))return!1;for(let s=0;s<a;s+=1){const l=r[s];if(!co(t[l],e[l]))return!1}return!0}return t!==t&&e!==e}const lf=(t,e)=>e;function Rp(t,e,r=e.axisIds[0]){return Array.isArray(r)?r.map(a=>yo(e.axis[a],t)):yo(e.axis[r],t)}const A2=(t,e,r)=>{if(t===null)return null;const a=Rp(t,e,r);return a===-1?null:a},Zm=pt([Sl,bn,lf],A2),Qm=pt([Tl,xn,lf],A2),c_=pt([Sl,Tl,bn,xn],(t,e,r,a)=>[...t===null?[]:r.axisIds.map(s=>({axisId:s,dataIndex:Rp(t,r,s)})),...e===null?[]:a.axisIds.map(s=>({axisId:s,dataIndex:Rp(e,a,s)}))].filter(s=>s.dataIndex!==null&&s.dataIndex>=0));function E2(t,e,r,a=e.axisIds[0]){return Array.isArray(a)?a.map((s,l)=>q1(e.axis[s],t,r[l])):q1(e.axis[a],t,r)}const f_=pt([Sl,bn,Zm,lf],(t,e,r,a)=>t===null||e.axisIds.length===0?null:E2(t,e,r,a)),d_=pt([Tl,xn,Qm,lf],(t,e,r,a)=>t===null||e.axisIds.length===0?null:E2(t,e,r,a)),w2=pt([Sl,bn],(t,e)=>t===null?[]:e.axisIds.filter(r=>e.axis[r].triggerTooltip).map(r=>({axisId:r,dataIndex:yo(e.axis[r],t)})).filter(({dataIndex:r})=>r>=0),{memoizeOptions:{resultEqualityCheck:co}}),M2=pt([Tl,xn],(t,e)=>t===null?[]:e.axisIds.filter(r=>e.axis[r].triggerTooltip).map(r=>({axisId:r,dataIndex:yo(e.axis[r],t)})).filter(({dataIndex:r})=>r>=0),{memoizeOptions:{resultEqualityCheck:co}}),h_=pt([w2,M2],(t,e)=>t.length>0||e.length>0),V1={};function uf(t,e){const r=U.useRef(V1);return r.current===V1&&(r.current=t(e)),r}const p_=()=>{};function m_(t,e,r,a){const s=uf(g_,{store:t,selector:e,skip:a}).current;s.effect=r,U.useEffect(s.onMount(a),[a])}function g_(t){const{store:e,selector:r,skip:a}=t;let s=!1,l;const c=()=>{f.dispose??(f.dispose=e.subscribe(p=>{const d=r(p);f.effect(l,d),l=d}))},f={effect:p_,dispose:null,onMount:p=>()=>{if(!p)return s||(s=!0,l=r(e.value)),c(),()=>{var d;(d=f.dispose)==null||d.call(f),f.dispose=null}}};return a||(s=!0,l=r(e.value),c()),f}const Ro=({params:t,store:e,seriesConfig:r,svgRef:a,instance:s})=>{const{xAxis:l,yAxis:c,dataset:f,onHighlightedAxisChange:p}=t,d=wt(e,Hr),m=wt(e,Zn),y=wt(e,l_),{axis:v,axisIds:b}=wt(e,bn),{axis:x,axisIds:S}=wt(e,xn);US({controlled:t.highlightedAxis}),Te(()=>{t.highlightedAxis!==void 0&&e.update(O=>O.controlledCartesianAxisHighlight===t.highlightedAxis?O:G({},O,{controlledCartesianAxisHighlight:t.highlightedAxis}))},[e,t.highlightedAxis]);const A=U.useRef(!0);U.useEffect(()=>{if(A.current){A.current=!1;return}e.update(O=>G({},O,{cartesianAxis:G({},O.cartesianAxis,{x:IS(l,f),y:PS(c,f)})}))},[r,d,l,c,f,e]);const w=b[0],D=S[0];return m_(e,c_,(O,R)=>{if(!Object.is(O,R)){if(O.length!==R.length){p(R);return}O!=null&&O.some(({axisId:E,dataIndex:k},z)=>R[z].axisId!==E||R[z].dataIndex!==k)&&p(R)}},!p),U.useEffect(()=>{const O=a.current;if(!y||!O||t.disableAxisListener)return()=>{};const R=s.addInteractionListener("moveEnd",_=>{var I;_.detail.activeGestures.pan||(I=s.cleanInteraction)==null||I.call(s)}),E=s.addInteractionListener("panEnd",_=>{var I;_.detail.activeGestures.move||(I=s.cleanInteraction)==null||I.call(s)}),k=s.addInteractionListener("quickPressEnd",_=>{var I;!_.detail.activeGestures.move&&!_.detail.activeGestures.pan&&((I=s.cleanInteraction)==null||I.call(s))}),z=_=>{var lt,j;const I=_.detail.srcEvent,q=_.detail.target,it=Op(O,I);if(_.detail.srcEvent.buttons>=1&&(q!=null&&q.hasPointerCapture(_.detail.srcEvent.pointerId))&&!(q!=null&&q.closest("[data-charts-zoom-slider]"))&&(q==null||q.releasePointerCapture(_.detail.srcEvent.pointerId)),!s.isPointInside(it.x,it.y,q)){(lt=s.cleanInteraction)==null||lt.call(s);return}(j=s.setPointerCoordinate)==null||j.call(s,it)},H=s.addInteractionListener("move",z),L=s.addInteractionListener("pan",z),C=s.addInteractionListener("quickPress",z);return()=>{H.cleanup(),R.cleanup(),L.cleanup(),E.cleanup(),C.cleanup(),k.cleanup()}},[a,e,v,w,x,D,s,t.disableAxisListener,y]),U.useEffect(()=>{const O=a.current,R=t.onAxisClick;if(O===null||!R)return()=>{};const E=s.addInteractionListener("tap",k=>{let z=null,H=!1;const L=Op(O,k.detail.srcEvent),C=yo(v[w],L.x);H=C!==-1,z=H?C:yo(x[D],L.y);const _=H?b[0]:S[0];if(z==null||z===-1)return;const I=(H?v:x)[_].data[z],q={};Object.keys(m).filter(it=>["bar","line"].includes(it)).forEach(it=>{var lt;(lt=m[it])==null||lt.seriesOrder.forEach(j=>{const Y=m[it].series[j],W=Y.xAxisId,J=Y.yAxisId,$=H?W:J;($===void 0||$===_)&&(q[j]=Y.data[z])})}),R(k.detail.srcEvent,{dataIndex:z,axisValue:I,seriesValues:q})});return()=>{E.cleanup()}},[t.onAxisClick,m,a,v,b,x,S,w,D,s]),{}};Ro.params={xAxis:!0,yAxis:!0,dataset:!0,onAxisClick:!0,disableAxisListener:!0,onHighlightedAxisChange:!0,highlightedAxis:!0};Ro.getDefaultizedParams=({params:t})=>G({},t,{colors:t.colors??zS,theme:t.theme??"light",defaultizedXAxis:IS(t.xAxis,t.dataset),defaultizedYAxis:PS(t.yAxis,t.dataset)});Ro.getInitialState=t=>G({cartesianAxis:{x:t.defaultizedXAxis,y:t.defaultizedYAxis}},t.highlightedAxis===void 0?{}:{controlledCartesianAxisHighlight:t.highlightedAxis});const ko=t=>t.controlledCartesianAxisHighlight,O2=(t,e,r)=>r!==void 0?r.filter(a=>e.axis[a.axisId]!==void 0).map(a=>a):t===null?[]:[{axisId:e.axisIds[0],dataIndex:t}];pt([Zm,bn,ko],O2);pt([Qm,xn,ko],O2);const R2=(t,e,r,a)=>a!==void 0?a.map(s=>{var l,c;return G({},s,{value:(c=(l=r.axis[s.axisId])==null?void 0:l.data)==null?void 0:c[s.dataIndex]})}).filter(({value:s})=>s!==void 0):e===null?[]:[{axisId:r.axisIds[0],dataIndex:t,value:e}],y_=pt([Zm,f_,bn,ko],R2),v_=pt([Qm,d_,xn,ko],R2),k2=(t,e)=>t===void 0?[e.axis[e.axisIds[0]]]:t.map(a=>e.axis[a.axisId]??null).filter(a=>a!==null);pt([ko,bn],k2);pt([ko,xn],k2);function X1(t,e){return t.id!==void 0?t:G({id:e},t)}function K1(t){return t.colorMap?G({},t,{colorScale:t.colorMap.type==="ordinal"&&t.data?go(G({values:t.data},t.colorMap)):Zi(t.colorMap.type==="continuous"?G({min:t.min,max:t.max},t.colorMap):t.colorMap)}):t}function D2(t,e){if(!t||t.length===0)return{axis:{},axisIds:[]};const r={},a=[];return t.forEach((s,l)=>{const c=s.dataKey,f=s.id??`defaultized-z-axis-${l}`;if(c===void 0||s.data!==void 0){r[f]=K1(X1(s,f)),a.push(f);return}if(e===void 0)throw new Error("MUI X Charts: z-axis uses `dataKey` but no `dataset` is provided.");r[f]=K1(X1(G({},s,{data:e.map(p=>p[c])}),f)),a.push(f)}),{axis:r,axisIds:a}}const Cl=({params:t,store:e})=>{const{zAxis:r,dataset:a}=t,s=U.useRef(!0);return U.useEffect(()=>{if(s.current){s.current=!1;return}e.update(l=>G({},l,{zAxis:D2(r,a)}))},[r,a,e]),{}};Cl.params={zAxis:!0,dataset:!0};Cl.getInitialState=t=>({zAxis:D2(t.zAxis,t.dataset)});const b_=t=>t,x_=pt([b_],t=>t.zAxis),Do=({store:t,params:e})=>{US({controlled:e.highlightedItem}),Te(()=>{t.update(s=>s.highlight.item===e.highlightedItem?s:G({},s,{highlight:G({},s.highlight,{item:e.highlightedItem})}))},[t,e.highlightedItem]);const r=$n(()=>{var s;(s=e.onHighlightChange)==null||s.call(e,null),t.update(l=>G({},l,{highlight:{item:null}}))}),a=$n(s=>{var c;const l=t.getSnapshot().highlight.item;S2(l,s)||((c=e.onHighlightChange)==null||c.call(e,s),t.update(f=>G({},f,{highlight:{item:s}})))});return{instance:{clearHighlight:r,setHighlight:a}}};Do.getDefaultizedParams=({params:t})=>G({},t,{highlightedItem:t.highlightedItem??null});Do.getInitialState=t=>({highlight:{item:t.highlightedItem}});Do.params={highlightedItem:!0,onHighlightChange:!0};function _2(t){let e=1/0,r=-1/0;for(const a of t??[])a<e&&(e=a),a>r&&(r=a);return[e,r]}const Z1=(t,e)=>e==="x"?{x:t,y:null}:{x:null,y:t},z2=t=>{var c;const{axis:e,getFilters:r,isDefaultAxis:a}=t,s=r==null?void 0:r({currentAxisId:e.id,isDefaultAxis:a}),l=s?(c=e.data)==null?void 0:c.filter((f,p)=>s({x:null,y:null},p)):e.data;return _2(l??[])},$2=t=>e=>{const{series:r,axis:a,getFilters:s,isDefaultAxis:l}=e;return Object.keys(r).filter(c=>{const f=t==="x"?r[c].xAxisId:r[c].yAxisId;return f===a.id||l&&f===void 0}).reduce((c,f)=>{const{stackedData:p}=r[f],d=s==null?void 0:s({currentAxisId:a.id,isDefaultAxis:l,seriesXAxisId:r[f].xAxisId,seriesYAxisId:r[f].yAxisId}),[m,y]=(p==null?void 0:p.reduce((v,b,x)=>d&&(!d(Z1(b[0],t),x)||!d(Z1(b[1],t),x))?v:[Math.min(...b,v[0]),Math.max(...b,v[1])],[1/0,-1/0]))??[1/0,-1/0];return[Math.min(m,c[0]),Math.max(y,c[1])]},[1/0,-1/0])},S_=t=>Object.keys(t.series).some(r=>t.series[r].layout==="horizontal")?$2("x")(t):z2(t),T_=t=>Object.keys(t.series).some(r=>t.series[r].layout==="horizontal")?z2(t):$2("y")(t);function qn(t){return function(){return t}}const C_=Math.PI,np=2*C_;function N2(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function A_(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function E_(t){return t}function w_(){var t=E_,e=A_,r=null,a=qn(0),s=qn(np),l=qn(0);function c(f){var p,d=(f=N2(f)).length,m,y,v=0,b=new Array(d),x=new Array(d),S=+a.apply(this,arguments),A=Math.min(np,Math.max(-np,s.apply(this,arguments)-S)),w,D=Math.min(Math.abs(A)/d,l.apply(this,arguments)),O=D*(A<0?-1:1),R;for(p=0;p<d;++p)(R=x[b[p]=p]=+t(f[p],p,f))>0&&(v+=R);for(e!=null?b.sort(function(E,k){return e(x[E],x[k])}):r!=null&&b.sort(function(E,k){return r(f[E],f[k])}),p=0,y=v?(A-d*O)/v:0;p<d;++p,S=w)m=b[p],R=x[m],w=S+(R>0?R*y:0)+O,x[m]={data:f[m],index:p,value:R,startAngle:S,endAngle:w,padAngle:D};return x}return c.value=function(f){return arguments.length?(t=typeof f=="function"?f:qn(+f),c):t},c.sortValues=function(f){return arguments.length?(e=f,r=null,c):e},c.sort=function(f){return arguments.length?(r=f,e=null,c):r},c.startAngle=function(f){return arguments.length?(a=typeof f=="function"?f:qn(+f),c):a},c.endAngle=function(f){return arguments.length?(s=typeof f=="function"?f:qn(+f),c):s},c.padAngle=function(f){return arguments.length?(l=typeof f=="function"?f:qn(+f),c):l},c}function vo(t,e){if((c=t.length)>1)for(var r=1,a,s,l=t[e[0]],c,f=l.length;r<c;++r)for(s=l,l=t[e[r]],a=0;a<f;++a)l[a][1]+=l[a][0]=isNaN(s[a][1])?s[a][0]:s[a][1]}function bo(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function M_(t,e){return t[e]}function O_(t){const e=[];return e.key=t,e}function L2(){var t=qn([]),e=bo,r=vo,a=M_;function s(l){var c=Array.from(t.apply(this,arguments),O_),f,p=c.length,d=-1,m;for(const y of l)for(f=0,++d;f<p;++f)(c[f][d]=[0,+a(y,c[f].key,d,l)]).data=y;for(f=0,m=N2(e(c));f<p;++f)c[m[f]].index=f;return r(c,m),c}return s.keys=function(l){return arguments.length?(t=typeof l=="function"?l:qn(Array.from(l)),s):t},s.value=function(l){return arguments.length?(a=typeof l=="function"?l:qn(+l),s):a},s.order=function(l){return arguments.length?(e=l==null?bo:typeof l=="function"?l:qn(Array.from(l)),s):e},s.offset=function(l){return arguments.length?(r=l??vo,s):r},s}function R_(t,e){if((a=t.length)>0){for(var r,a,s=0,l=t[0].length,c;s<l;++s){for(c=r=0;r<a;++r)c+=t[r][s][1]||0;if(c)for(r=0;r<a;++r)t[r][s][1]/=c}vo(t,e)}}function k_(t,e){if((p=t.length)>0)for(var r,a=0,s,l,c,f,p,d=t[e[0]].length;a<d;++a)for(c=f=0,r=0;r<p;++r)(l=(s=t[e[r]][a])[1]-s[0])>0?(s[0]=c,s[1]=c+=l):l<0?(s[1]=f,s[0]=f+=l):(s[0]=0,s[1]=l)}function D_(t,e){if((s=t.length)>0){for(var r=0,a=t[e[0]],s,l=a.length;r<l;++r){for(var c=0,f=0;c<s;++c)f+=t[c][r][1]||0;a[r][1]+=a[r][0]=-f/2}vo(t,e)}}function __(t,e){if(!(!((c=t.length)>0)||!((l=(s=t[e[0]]).length)>0))){for(var r=0,a=1,s,l,c;a<l;++a){for(var f=0,p=0,d=0;f<c;++f){for(var m=t[e[f]],y=m[a][1]||0,v=m[a-1][1]||0,b=(y-v)/2,x=0;x<f;++x){var S=t[e[x]],A=S[a][1]||0,w=S[a-1][1]||0;b+=A-w}p+=y,d+=b*y}s[a-1][1]+=s[a-1][0]=r,p&&(r-=d/p)}s[a-1][1]+=s[a-1][0]=r,vo(t,e)}}function j2(t){var e=t.map(z_);return bo(t).sort(function(r,a){return e[r]-e[a]})}function z_(t){for(var e=-1,r=0,a=t.length,s,l=-1/0;++e<a;)(s=+t[e][1])>l&&(l=s,r=e);return r}function U2(t){var e=t.map(B2);return bo(t).sort(function(r,a){return e[r]-e[a]})}function B2(t){for(var e=0,r=-1,a=t.length,s;++r<a;)(s=+t[r][1])&&(e+=s);return e}function $_(t){return U2(t).reverse()}function N_(t){var e=t.length,r,a,s=t.map(B2),l=j2(t),c=0,f=0,p=[],d=[];for(r=0;r<e;++r)a=l[r],c<f?(c+=s[a],p.push(a)):(f+=s[a],d.push(a));return d.reverse().concat(p)}function L_(t){return bo(t).reverse()}const rp={appearance:j2,ascending:U2,descending:$_,insideOut:N_,none:bo,reverse:L_},ip={expand:R_,diverging:k_,none:vo,silhouette:D_,wiggle:__},H2=t=>{const{series:e,seriesOrder:r,defaultStrategy:a}=t,s=[],l={};return r.forEach(c=>{const{stack:f,stackOrder:p,stackOffset:d}=e[c];f===void 0?s.push({ids:[c],stackingOrder:rp.none,stackingOffset:ip.none}):l[f]===void 0?(l[f]=s.length,s.push({ids:[c],stackingOrder:rp[p??(a==null?void 0:a.stackOrder)??"none"],stackingOffset:ip[d??(a==null?void 0:a.stackOffset)??"diverging"]})):(s[l[f]].ids.push(c),p!==void 0&&(s[l[f]].stackingOrder=rp[p]),d!==void 0&&(s[l[f]].stackingOffset=ip[d]))}),s},j_=t=>t==null?"":t.toLocaleString(),U_=(t,e)=>{const{seriesOrder:r,series:a}=t,s=H2(t),l=e??[];r.forEach(f=>{const p=a[f].data;if(p!==void 0)p.forEach((d,m)=>{l.length<=m?l.push({[f]:d}):l[m][f]=d});else if(e===void 0)throw new Error([`MUI X Charts: bar series with id='${f}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(` 116 + `))});const c={};return s.forEach(f=>{const{ids:p,stackingOffset:d,stackingOrder:m}=f,y=L2().keys(p.map(v=>{const b=a[v].dataKey;return a[v].data===void 0&&b!==void 0?b:v})).value((v,b)=>v[b]??0).order(m).offset(d)(l);p.forEach((v,b)=>{const x=a[v].dataKey;c[v]=G({layout:"vertical",labelMarkType:"square",minBarSize:0,valueFormatter:a[v].valueFormatter??j_},a[v],{data:x?e.map(S=>{const A=S[x];return typeof A!="number"?null:A}):a[v].data,stackedData:y[b].map(([S,A])=>[S,A])})})}),{seriesOrder:r,stackingGroups:s,series:c}};function Xn(t,e){return typeof t=="function"?t(e):t}const B_=t=>{const{seriesOrder:e,series:r}=t;return e.reduce((a,s)=>{const l=Xn(r[s].label,"legend");return l===void 0||a.push({markType:r[s].labelMarkType,id:s,seriesId:s,color:r[s].color,label:l}),a},[])},I2=(t,e,r)=>{const a=t.layout==="vertical",s=a?e==null?void 0:e.colorScale:r==null?void 0:r.colorScale,l=a?r==null?void 0:r.colorScale:e==null?void 0:e.colorScale,c=a?e==null?void 0:e.data:r==null?void 0:r.data;return l?f=>{if(f===void 0)return t.color;const p=t.data[f],d=p===null?t.color:l(p);return d===null?t.color:d}:s&&c?f=>{if(f===void 0)return t.color;const p=c[f],d=p===null?t.color:s(p);return d===null?t.color:d}:()=>t.color},H_=t=>{const{series:e,getColor:r,identifier:a}=t;if(!a||a.dataIndex===void 0)return null;const s=Xn(e.label,"tooltip"),l=e.data[a.dataIndex];if(l==null)return null;const c=e.valueFormatter(l,{dataIndex:a.dataIndex});return{identifier:a,color:r(a.dataIndex),label:s,value:l,formattedValue:c,markType:e.labelMarkType}},I_=t=>Object.values(t).map(e=>e.layout==="horizontal"?{direction:"y",axisId:e.yAxisId}:{direction:"x",axisId:e.xAxisId}),P_=(t,e,r)=>G({id:t.id??`auto-generated-id-${e}`,color:r[e%r.length]},t),G_={seriesProcessor:U_,colorProcessor:I2,legendGetter:B_,tooltipGetter:H_,axisTooltipGetter:I_,xExtremumGetter:S_,yExtremumGetter:T_,getSeriesWithDefaultValues:P_},Y_=t=>{const{series:e,axis:r,isDefaultAxis:a,getFilters:s}=t;let l=1/0,c=-1/0;for(const f in e){if(!Object.hasOwn(e,f))continue;const p=e[f].xAxisId;if(!(p===r.id||p===void 0&&a))continue;const d=s==null?void 0:s({currentAxisId:r.id,isDefaultAxis:a,seriesXAxisId:e[f].xAxisId,seriesYAxisId:e[f].yAxisId}),m=e[f].data??[];for(let y=0;y<m.length;y+=1){const v=m[y];d&&!d(v,y)||v.x!==null&&(v.x<l&&(l=v.x),v.x>c&&(c=v.x))}}return[l,c]},q_=t=>{const{series:e,axis:r,isDefaultAxis:a,getFilters:s}=t;let l=1/0,c=-1/0;for(const f in e){if(!Object.hasOwn(e,f))continue;const p=e[f].yAxisId;if(!(p===r.id||p===void 0&&a))continue;const d=s==null?void 0:s({currentAxisId:r.id,isDefaultAxis:a,seriesXAxisId:e[f].xAxisId,seriesYAxisId:e[f].yAxisId}),m=e[f].data??[];for(let y=0;y<m.length;y+=1){const v=m[y];d&&!d(v,y)||v.y!==null&&(v.y<l&&(l=v.y),v.y>c&&(c=v.y))}}return[l,c]},V_=({series:t,seriesOrder:e},r)=>({series:Object.fromEntries(Object.entries(t).map(([s,l])=>{const c=l==null?void 0:l.datasetKeys,f=["x","y","id"].filter(d=>typeof(c==null?void 0:c[d])!="string");if(l!=null&&l.datasetKeys&&f.length>0)throw new Error([`MUI X Charts: scatter series with id='${s}' has incomplete datasetKeys.`,`Properties ${f.map(d=>`"${d}"`).join(", ")} are missing.`].join(` 117 + `));const p=c?(r==null?void 0:r.map(d=>({x:d[c.x]??null,y:d[c.y]??null,z:c.z&&d[c.z],id:c.id&&d[c.id]})))??[]:l.data??[];return[s,G({labelMarkType:"circle",markerSize:4},l,{preview:G({markerSize:1},l==null?void 0:l.preview),data:p,valueFormatter:l.valueFormatter??(d=>d&&`(${d.x}, ${d.y})`)})]})),seriesOrder:e}),X_=(t,e,r,a)=>{const s=a==null?void 0:a.colorScale,l=r==null?void 0:r.colorScale,c=e==null?void 0:e.colorScale;return s?f=>{var m,y;if(f===void 0)return t.color;if(((m=a==null?void 0:a.data)==null?void 0:m[f])!==void 0){const v=s((y=a==null?void 0:a.data)==null?void 0:y[f]);if(v!==null)return v}const p=t.data[f],d=p===null?t.color:s(p.z);return d===null?t.color:d}:l?f=>{if(f===void 0)return t.color;const p=t.data[f],d=p===null?t.color:l(p.y);return d===null?t.color:d}:c?f=>{if(f===void 0)return t.color;const p=t.data[f],d=p===null?t.color:c(p.x);return d===null?t.color:d}:()=>t.color},K_=t=>{const{seriesOrder:e,series:r}=t;return e.reduce((a,s)=>{const l=Xn(r[s].label,"legend");return l===void 0||a.push({markType:r[s].labelMarkType,id:s,seriesId:s,color:r[s].color,label:l}),a},[])},Z_=t=>{const{series:e,getColor:r,identifier:a}=t;if(!a||a.dataIndex===void 0)return null;const s=Xn(e.label,"tooltip"),l=e.data[a.dataIndex],c=e.valueFormatter(l,{dataIndex:a.dataIndex});return{identifier:a,color:r(a.dataIndex),label:s,value:l,formattedValue:c,markType:e.labelMarkType}},Q_=(t,e,r)=>G({id:t.id??`auto-generated-id-${e}`,color:r[e%r.length]},t),F_={seriesProcessor:V_,colorProcessor:X_,legendGetter:K_,tooltipGetter:Z_,xExtremumGetter:Y_,yExtremumGetter:q_,getSeriesWithDefaultValues:Q_},W_=t=>{const{axis:e}=t;return _2(e.data??[])};function J_(t,e,r,a){return r.reduce((s,l,c)=>{if(e[c]===null)return s;const[f,p]=t(l);return a&&(!a({y:f,x:null},c)||!a({y:p,x:null},c))?s:[Math.min(f,p,s[0]),Math.max(f,p,s[1])]},[1/0,-1/0])}const t5=t=>{const{series:e,axis:r,isDefaultAxis:a,getFilters:s}=t;return Object.keys(e).filter(l=>{const c=e[l].yAxisId;return c===r.id||a&&c===void 0}).reduce((l,c)=>{const{area:f,stackedData:p,data:d}=e[c],m=f!==void 0,y=s==null?void 0:s({currentAxisId:r.id,isDefaultAxis:a,seriesXAxisId:e[c].xAxisId,seriesYAxisId:e[c].yAxisId}),v=m&&r.scaleType!=="log"&&typeof e[c].baseline!="string"?A=>A:A=>[A[1],A[1]],b=J_(v,d,p,y),[x,S]=b;return[Math.min(x,l[0]),Math.max(S,l[1])]},[1/0,-1/0])};function e5(t,e){const r={};return Object.keys(t).forEach(a=>{r[a]=G({},t[a],{valueFormatter:t[a].valueFormatter??e})}),r}const n5=(t,e)=>{const{seriesOrder:r,series:a}=t,s=H2(G({},t,{defaultStrategy:{stackOffset:"none"}})),l=e??[];r.forEach(f=>{const p=a[f].data;p!==void 0&&p.forEach((d,m)=>{l.length<=m?l.push({[f]:d}):l[m][f]=d})});const c={};return s.forEach(f=>{const{ids:p,stackingOrder:d,stackingOffset:m}=f,y=L2().keys(p.map(v=>{const b=a[v].dataKey;return a[v].data===void 0&&b!==void 0?b:v})).value((v,b)=>v[b]??0).order(d).offset(m)(l);p.forEach((v,b)=>{const x=a[v].dataKey;c[v]=G({labelMarkType:"line"},a[v],{data:x?e.map(S=>{const A=S[x];return typeof A!="number"?null:A}):a[v].data,stackedData:y[b].map(([S,A])=>[S,A])})})}),{seriesOrder:r,stackingGroups:s,series:e5(c,f=>f==null?"":f.toLocaleString())}},r5=(t,e,r)=>{const a=r==null?void 0:r.colorScale,s=e==null?void 0:e.colorScale;return a?l=>{if(l===void 0)return t.color;const c=t.data[l],f=c===null?t.color:a(c);return f===null?t.color:f}:s?l=>{var p;if(l===void 0)return t.color;const c=(p=e.data)==null?void 0:p[l],f=c===null?t.color:s(c);return f===null?t.color:f}:()=>t.color},i5=t=>{const{seriesOrder:e,series:r}=t;return e.reduce((a,s)=>{const l=Xn(r[s].label,"legend");return l===void 0||a.push({markType:r[s].labelMarkType,id:s,seriesId:s,color:r[s].color,label:l}),a},[])},a5=t=>{const{series:e,getColor:r,identifier:a}=t;if(!a||a.dataIndex===void 0)return null;const s=Xn(e.label,"tooltip"),l=e.data[a.dataIndex],c=e.valueFormatter(l,{dataIndex:a.dataIndex});return{identifier:a,color:r(a.dataIndex),label:s,value:l,formattedValue:c,markType:e.labelMarkType}},o5=t=>Object.values(t).map(e=>({direction:"x",axisId:e.xAxisId})),s5=(t,e,r)=>G({id:t.id??`auto-generated-id-${e}`,color:r[e%r.length]},t),l5={colorProcessor:r5,seriesProcessor:n5,legendGetter:i5,tooltipGetter:a5,axisTooltipGetter:o5,xExtremumGetter:W_,yExtremumGetter:t5,getSeriesWithDefaultValues:s5},u5=(t="none")=>{if(typeof t=="function")return t;switch(t){case"none":return null;case"desc":return(e,r)=>r-e;case"asc":return(e,r)=>e-r;default:return null}},c5=t=>{const{seriesOrder:e,series:r}=t,a={};return e.forEach(s=>{const l=w_().startAngle(2*Math.PI*(r[s].startAngle??0)/360).endAngle(2*Math.PI*(r[s].endAngle??360)/360).padAngle(2*Math.PI*(r[s].paddingAngle??0)/360).sortValues(u5(r[s].sortingValues??"none"))(r[s].data.map(c=>c.value));a[s]=G({labelMarkType:"circle",valueFormatter:c=>c.value.toLocaleString()},r[s],{data:r[s].data.map((c,f)=>G({},c,{id:c.id??`auto-generated-pie-id-${s}-${f}`},l[f])).map((c,f)=>{var p,d;return G({labelMarkType:"circle"},c,{formattedValue:((d=(p=r[s]).valueFormatter)==null?void 0:d.call(p,G({},c,{label:Xn(c.label,"arc")}),{dataIndex:f}))??c.value.toLocaleString()})})})}),{seriesOrder:e,series:a}},f5=t=>e=>t.data[e].color,d5=t=>{const{seriesOrder:e,series:r}=t;return e.reduce((a,s)=>(r[s].data.forEach((l,c)=>{const f=Xn(l.label,"legend");f!==void 0&&a.push({markType:l.labelMarkType??r[s].labelMarkType,id:l.id??c,seriesId:s,color:l.color,label:f,itemId:l.id??c})}),a),[])},h5=t=>{const{series:e,getColor:r,identifier:a}=t;if(!a||a.dataIndex===void 0)return null;const s=e.data[a.dataIndex];if(s==null)return null;const l=Xn(s.label,"tooltip"),c=G({},s,{label:l}),f=e.valueFormatter(c,{dataIndex:a.dataIndex});return{identifier:a,color:r(a.dataIndex),label:l,value:c,formattedValue:f,markType:s.labelMarkType??e.labelMarkType}},p5=(t,e,r)=>G({id:t.id??`auto-generated-id-${e}`},t,{data:t.data.map((a,s)=>G({color:r[s%r.length]},a))}),m5={colorProcessor:f5,seriesProcessor:c5,legendGetter:d5,tooltipGetter:h5,getSeriesWithDefaultValues:p5},g5={bar:G_,scatter:F_,line:l5,pie:m5},y5=[Cl,Ro,xl,Do];function v5(t){const{children:e,plugins:r=y5,pluginParams:a={},seriesConfig:s=g5}=t,{contextValue:l}=ck(r,a,s);return N.jsx(jS.Provider,{value:l,children:e})}const Gr=()=>{const t=U.useContext(jS);if(t==null)throw new Error(["MUI X Charts: Could not find the Chart context.","It looks like you rendered your component outside of a ChartDataProvider.","This can also happen if you are bundling multiple versions of the library."].join(` 118 + `));return t};function b5(t){"hasPointerCapture"in t.currentTarget&&t.currentTarget.hasPointerCapture(t.pointerId)&&t.currentTarget.releasePointerCapture(t.pointerId)}const x5=(t,e)=>{const{instance:r}=Gr(),a=U.useRef(!1),s=U.useCallback(()=>{a.current=!0,r.setItemInteraction({type:t.type,seriesId:t.seriesId,dataIndex:t.dataIndex}),r.setHighlight({seriesId:t.seriesId,dataIndex:t.dataIndex})},[r,t.type,t.seriesId,t.dataIndex]),l=U.useCallback(()=>{a.current=!1,r.removeItemInteraction({type:t.type,seriesId:t.seriesId,dataIndex:t.dataIndex}),r.clearHighlight()},[r,t.type,t.seriesId,t.dataIndex]);return U.useEffect(()=>()=>{a.current&&l()},[l]),{onPointerEnter:s,onPointerLeave:l,onPointerDown:b5}};function ne(){const t=Gr();if(!t)throw new Error(["MUI X Charts: Could not find the charts context.","It looks like you rendered your component outside of a ChartContainer parent component."].join(` 119 + `));return t.store}function S5(){return!1}function P2(t,e){return!t||!e?S5:function(a){return a?t.highlight==="series"?a.seriesId===e.seriesId:t.highlight==="item"?a.dataIndex===e.dataIndex&&a.seriesId===e.seriesId:!1:!1}}function T5(){return!1}function G2(t,e){return!t||!e?T5:function(a){return a?t.fade==="series"?a.seriesId===e.seriesId&&a.dataIndex!==e.dataIndex:t.fade==="global"?a.seriesId!==e.seriesId||a.dataIndex!==e.dataIndex:!1:!1}}const C5=t=>t.highlight,A5=t=>t.series,E5=pt([A5],t=>{const e=new Map;return Object.keys(t.processedSeries).forEach(r=>{var s;const a=t.processedSeries[r];(s=a==null?void 0:a.seriesOrder)==null||s.forEach(l=>{const c=a==null?void 0:a.series[l];e.set(l,c==null?void 0:c.highlightScope)})}),e}),Al=pt([C5],function(e){return e.item}),cf=pt([E5,Al],function(e,r){if(!r)return null;const a=e.get(r.seriesId);return a===void 0?null:a});pt([cf,Al],P2);pt([cf,Al],G2);const w5=pt([cf,Al,(t,e)=>e],function(e,r,a){return P2(e,r)(a)}),M5=pt([cf,Al,(t,e)=>e],function(e,r,a){return G2(e,r)(a)});function Y2(t){const e=ne(),r=wt(e,w5,[t]),a=wt(e,M5,[t]);return{isHighlighted:r,isFaded:!r&&a}}var ap,Q1;function O5(){if(Q1)return ap;Q1=1;var t=4,e=.001,r=1e-7,a=10,s=11,l=1/(s-1),c=typeof Float32Array=="function";function f(S,A){return 1-3*A+3*S}function p(S,A){return 3*A-6*S}function d(S){return 3*S}function m(S,A,w){return((f(A,w)*S+p(A,w))*S+d(A))*S}function y(S,A,w){return 3*f(A,w)*S*S+2*p(A,w)*S+d(A)}function v(S,A,w,D,O){var R,E,k=0;do E=A+(w-A)/2,R=m(E,D,O)-S,R>0?w=E:A=E;while(Math.abs(R)>r&&++k<a);return E}function b(S,A,w,D){for(var O=0;O<t;++O){var R=y(A,w,D);if(R===0)return A;var E=m(A,w,D)-S;A-=E/R}return A}function x(S){return S}return ap=function(A,w,D,O){if(!(0<=A&&A<=1&&0<=D&&D<=1))throw new Error("bezier x values must be in [0, 1] range");if(A===w&&D===O)return x;for(var R=c?new Float32Array(s):new Array(s),E=0;E<s;++E)R[E]=m(E*l,A,D);function k(z){for(var H=0,L=1,C=s-1;L!==C&&R[L]<=z;++L)H+=l;--L;var _=(z-R[L])/(R[L+1]-R[L]),I=H+_*l,q=y(I,A,D);return q>=e?b(z,I,A,D):q===0?I:v(z,H,H+l,A,D)}return function(H){return H===0?0:H===1?1:m(k(H),w,O)}},ap}var R5=O5();const k5=Bx(R5),D5=300,_5=k5(.66,0,.34,1);var xo=0,Is=0,Ns=0,q2=1e3,wc,Ps,Mc=0,ta=0,ff=0,nl=typeof performance=="object"&&performance.now?performance:Date,V2=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Fm(){return ta||(V2(z5),ta=nl.now()+ff)}function z5(){ta=0}function Oc(){this._call=this._time=this._next=null}Oc.prototype=X2.prototype={constructor:Oc,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?Fm():+r)+(e==null?0:+e),!this._next&&Ps!==this&&(Ps?Ps._next=this:wc=this,Ps=this),this._call=t,this._time=r,Dp()},stop:function(){this._call&&(this._call=null,this._time=1/0,Dp())}};function X2(t,e,r){var a=new Oc;return a.restart(t,e,r),a}function kp(){Fm(),++xo;for(var t=wc,e;t;)(e=ta-t._time)>=0&&t._call.call(void 0,e),t=t._next;--xo}function F1(){ta=(Mc=nl.now())+ff,xo=Is=0;try{kp()}finally{xo=0,N5(),ta=0}}function $5(){var t=nl.now(),e=t-Mc;e>q2&&(ff-=e,Mc=t)}function N5(){for(var t,e=wc,r,a=1/0;e;)e._call?(a>e._time&&(a=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:wc=r);Ps=t,Dp(a)}function Dp(t){if(!xo){Is&&(Is=clearTimeout(Is));var e=t-ta;e>24?(t<1/0&&(Is=setTimeout(F1,t-nl.now()-ff)),Ns&&(Ns=clearInterval(Ns))):(Ns||(Mc=nl.now(),Ns=setInterval($5,q2)),xo=1,V2(F1))}}function L5(t,e,r){var a=new Oc;return e=e==null?0:+e,a.restart(s=>{a.stop(),t(s+e)},e,r),a}class j5{constructor(e,r,a){Et(this,"elapsed",0);Et(this,"timer",null);this.duration=e,this.easingFn=r,this.onTickCallback=a,this.resume()}get running(){return this.timer!==null}timerCallback(e){this.elapsed=Math.min(e,this.duration);const r=this.duration===0?1:this.elapsed/this.duration,a=this.easingFn(r);this.onTickCallback(a),this.elapsed>=this.duration&&this.stop()}resume(){if(this.running||this.elapsed>=this.duration)return this;const e=Fm()-this.elapsed;return this.timer=X2(r=>this.timerCallback(r),0,e),kp(),this}stop(){return this.running?(this.timer&&(this.timer.stop(),this.timer=null),this):this}finish(){return this.stop(),L5(()=>this.timerCallback(this.duration)),kp(),this}}function U5(t,e){if(Object.is(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;const r=Object.keys(t),a=Object.keys(e);if(r.length!==a.length)return!1;for(let s=0;s<r.length;s+=1){const l=r[s];if(!Object.prototype.hasOwnProperty.call(e,l)||!Object.is(t[l],e[l]))return!1}return!0}function B5(t,{createInterpolator:e,applyProps:r,skip:a,initialProps:s=t}){const l=U.useRef(s),c=U.useRef(null),f=U.useRef(null),p=U.useRef(t);Te(()=>{p.current=t},[t]),Te(()=>{var y;a&&((y=c.current)==null||y.finish(),c.current=null,f.current=null,l.current=t)},[t,a]);const d=U.useCallback(y=>{const v=l.current,b=e(v,t);c.current=new j5(D5,_5,x=>{const S=b(x);l.current=S,r(y,S)})},[r,e,t]);return U.useCallback(y=>{var b,x,S,A;if(y===null){(b=c.current)==null||b.stop();return}const v=f.current;if(v===y){if(U5(p.current,t)){(x=c.current)==null||x.resume();return}(S=c.current)==null||S.stop()}v&&((A=c.current)==null||A.stop()),f.current=y,(c.current||!a)&&d(y)},[d,t,a])}function Wm(t,{createInterpolator:e,transformProps:r,applyProps:a,skip:s,initialProps:l=t,ref:c}){const f=r??(m=>m),p=B5(t,{initialProps:l,createInterpolator:e,applyProps:(m,y)=>a(m,f(y)),skip:s});return G({},r(s?t:l),{ref:Si(p,c)})}function H5(t,e){const r=Se(t.x,e.x),a=Se(t.y,e.y),s=Se(t.width,e.width),l=Se(t.height,e.height);return c=>({x:r(c),y:a(c),width:s(c),height:l(c)})}function I5(t){const e={x:t.layout==="vertical"?t.x:t.xOrigin,y:t.layout==="vertical"?t.yOrigin:t.y,width:t.layout==="vertical"?t.width:0,height:t.layout==="vertical"?0:t.height};return Wm({x:t.x,y:t.y,width:t.width,height:t.height},{createInterpolator:H5,applyProps(r,a){r.setAttribute("x",a.x.toString()),r.setAttribute("y",a.y.toString()),r.setAttribute("width",a.width.toString()),r.setAttribute("height",a.height.toString())},transformProps:r=>r,initialProps:e,skip:t.skipAnimation,ref:t.ref})}const P5=["ownerState","skipAnimation","id","dataIndex","xOrigin","yOrigin"];function G5(t){const{ownerState:e}=t,r=te(t,P5),a=I5(t);return N.jsx("rect",G({},r,{filter:e.isHighlighted?"brightness(120%)":void 0,opacity:e.isFaded?.3:1,"data-highlighted":e.isHighlighted||void 0,"data-faded":e.isFaded||void 0},a))}const Y5=["id","dataIndex","classes","color","slots","slotProps","style","onClick","skipAnimation","layout","x","xOrigin","y","yOrigin","width","height"];function q5(t){const{id:e,dataIndex:r,classes:a,color:s,slots:l,slotProps:c,style:f,onClick:p,skipAnimation:d,layout:m,x:y,xOrigin:v,y:b,yOrigin:x,width:S,height:A}=t,w=te(t,Y5),D=x5({type:"bar",seriesId:e,dataIndex:r}),{isFaded:O,isHighlighted:R}=Y2({seriesId:e,dataIndex:r}),E={id:e,dataIndex:r,classes:a,color:s,isFaded:O,isHighlighted:R},k=KO(E),z=(l==null?void 0:l.bar)??G5,H=_r({elementType:z,externalSlotProps:c==null?void 0:c.bar,externalForwardedProps:w,additionalProps:G({},D,{id:e,dataIndex:r,color:s,x:y,xOrigin:v,y:b,yOrigin:x,width:S,height:A,style:f,onClick:p,cursor:p?"pointer":"unset",stroke:"none",fill:s,skipAnimation:d,layout:m}),className:k.root,ownerState:E});return N.jsx(z,G({},H))}function Hn(){const t=ne();return wt(t,Hr)}function Jm(){const t=ne();return wt(t,VR)}function tg(t){return p2.getTypes().has(t)}const V5=(t,e,r,a,s,l,c)=>{var b;const f=a==="rotation"?s[e].rotationExtremumGetter:s[e].radiusExtremumGetter,p=((b=c[e])==null?void 0:b.series)??{},[d,m]=(f==null?void 0:f({series:p,axis:r,axisIndex:l,isDefaultAxis:l===0}))??[1/0,-1/0],[y,v]=t;return[Math.min(d,y),Math.max(m,v)]},X5=(t,e,r,a,s)=>{const c=Object.keys(r).filter(tg).reduce((f,p)=>V5(f,p,t,e,r,a,s),[1/0,-1/0]);return Number.isNaN(c[0])||Number.isNaN(c[1])?[1/0,-1/0]:c},Gs=(t,e)=>t===void 0?e:Math.PI*t/180,K5=(t,e,r,a)=>{const s=new Set;return Object.keys(e).filter(tg).forEach(c=>{var d,m,y;const f=((d=r[c])==null?void 0:d.series)??{},p=(y=(m=e[c]).axisTooltipGetter)==null?void 0:y.call(m,f);p!==void 0&&p.forEach(({axisId:v,direction:b})=>{b===t&&s.add(v??a)})}),s};function Z5(t,e,r){if(e==="rotation"){if(r.scaleType==="point"){const a=[Gs(r.startAngle,0),Gs(r.endAngle,2*Math.PI)],s=a[1]-a[0];return s>Math.PI*2-.1&&(a[1]-=s/r.data.length),a}return[Gs(r.startAngle,0),Gs(r.endAngle,2*Math.PI)]}return[0,Math.min(t.height,t.width)/2]}const Q5=.2,F5=.1;function K2({drawingArea:t,formattedSeries:e,axis:r,seriesConfig:a,axisDirection:s}){if(r===void 0)return{axis:{},axisIds:[]};const l=K5(s,a,e,r[0].id),c={};return r.forEach((f,p)=>{const d=f,m=Z5(t,s,d),[y,v]=X5(d,s,a,p,e),b=!d.ignoreTooltip&&l.has(d.id),x=d.data??[];if(Tc(d)){const L=d.categoryGapRatio??Q5,C=d.barGapRatio??F5;if(c[d.id]=G({offset:0,categoryGapRatio:L,barGapRatio:C,triggerTooltip:b},d,{data:x,scale:Wc(d.data,m).paddingInner(L).paddingOuter(L/2),tickNumber:d.data.length,colorScale:d.colorMap&&(d.colorMap.type==="ordinal"?go(G({values:d.data},d.colorMap)):Zi(d.colorMap))}),Ac(d.data)){const _=Ec(d,m);c[d.id].valueFormatter=d.valueFormatter??_}}if(Vm(d)&&(c[d.id]=G({offset:0,triggerTooltip:b},d,{data:x,scale:qS(d.data,m),tickNumber:d.data.length,colorScale:d.colorMap&&(d.colorMap.type==="ordinal"?go(G({values:d.data},d.colorMap)):Zi(d.colorMap))}),Ac(d.data))){const L=Ec(d,m);c[d.id].valueFormatter=d.valueFormatter??L}if(d.scaleType==="band"||d.scaleType==="point")return;const S=d.scaleType??"linear",A=d.domainLimit??"nice",w=[d.min??y,d.max??v];if(typeof A=="function"){const{min:L,max:C}=A(y,v);w[0]=L,w[1]=C}const D=d2(G({},d,{range:m,domain:w})),O=h2(D,m),R=Cc(S,w,m),E=A==="nice"?R.nice(D):R,[k,z]=E.domain(),H=[d.min??k,d.max??z];c[d.id]=G({offset:0,triggerTooltip:b},d,{data:x,scaleType:S,scale:E.domain(H),tickNumber:O,colorScale:d.colorMap&&Zi(d.colorMap)})}),{axis:c,axisIds:r.map(({id:f})=>f)}}const Z2=t=>t.polarAxis,Q2=pt([Z2],t=>t==null?void 0:t.rotation),W5=pt([Z2],t=>t==null?void 0:t.radius),aa=pt([Q2,Hr,Zn,Ir],(t,e,r,a)=>K2({drawingArea:e,formattedSeries:r,axis:t,seriesConfig:a,axisDirection:"rotation"})),J5=pt([W5,Hr,Zn,Ir],(t,e,r,a)=>K2({drawingArea:e,formattedSeries:r,axis:t,seriesConfig:a,axisDirection:"radius"})),t4=pt([Hr],t=>({cx:t.left+t.width/2,cy:t.top+t.height/2})),e4=t=>(e,r)=>Math.atan2(e-t.cx,t.cy-r);function df(t){return(t%360+360)%360}const op=2*Math.PI;function n4(t){return(t%op+op)%op}function W1(t,e){const{scale:r,data:a,reverse:s}=t;if(!Bn(r))throw new Error("MUI X Charts: getAxisValue is not implemented for polare continuous axes.");if(!a)return-1;const l=n4(e-Math.min(...r.range())),c=r.bandwidth()===0?Math.floor((l+r.step()/2)/r.step())%a.length:Math.floor(l/r.step());return c<0||c>=a.length?-1:s?a.length-1-c:c}function Yr(){const t=ne(),{axis:e,axisIds:r}=wt(t,bn);return{xAxis:e,xAxisIds:r}}function qr(){const t=ne(),{axis:e,axisIds:r}=wt(t,xn);return{yAxis:e,yAxisIds:r}}function r4(t){const e=ne(),{axis:r,axisIds:a}=wt(e,bn),s=a[0];return r[s]}function i4(t){const e=ne(),{axis:r,axisIds:a}=wt(e,xn),s=a[0];return r[s]}function F2(){const t=ne(),{axis:e,axisIds:r}=wt(t,aa);return{rotationAxis:e,rotationAxisIds:r}}function a4(){const t=ne(),{axis:e,axisIds:r}=wt(t,J5);return{radiusAxis:e,radiusAxisIds:r}}function o4(t){const e=ne(),{axis:r,axisIds:a}=wt(e,aa),s=a[0];return r[s]}function Rc(t){return Bn(t)?e=>(t(e)??0)+t.bandwidth()/2:e=>t(e)}function eg(){const t=ne(),{axis:e,axisIds:r}=wt(t,x_)??{axis:{},axisIds:[]};return{zAxis:e,zAxisIds:r}}function ng(){const t=Gr();if(!t)throw new Error(["MUI X Charts: Could not find the svg ref context.","It looks like you rendered your component outside of a ChartContainer parent component."].join(` 120 + `));return t.svgRef}function hf(){const t=ne();return wt(t,Zn)}function s4(t,e){if(t===e)return!0;if(!Array.isArray(t)||!Array.isArray(e))return!1;let r=t.length;if(r!==e.length)return!1;for(;r--;)if(t[r]!==e[r])return!1;return!0}function l4(t){const e=pt([Zn,(r,a)=>a],(r,a)=>{var l,c,f,p,d,m;if(!a||Array.isArray(a)&&a.length===0)return((c=(l=r[t])==null?void 0:l.seriesOrder)==null?void 0:c.map(y=>{var v;return(v=r[t])==null?void 0:v.series[y]}))??[];if(!Array.isArray(a))return(p=(f=r[t])==null?void 0:f.series)==null?void 0:p[a];const s=[];for(const y of a){const v=(m=(d=r[t])==null?void 0:d.series)==null?void 0:m[y];v&&s.push(v)}return s});return r=>{const a=ne();return wt(a,e,[r],s4)}}function u4(t){const e=pt([Zn],r=>r[t]);return()=>{const r=ne();return wt(r,e)}}l4("bar");const c4=u4("bar");function f4(){return c4()}function d4(t,e){return Object.keys(t).flatMap(r=>{const a=e[r].legendGetter;return a===void 0?[]:a(t[r])})}function h4(){const t=hf(),e=ne(),r=wt(e,Ir);return{items:d4(t,r)}}function p4(){const t=Jm();return U.useCallback(e=>`${t}-gradient-${e}`,[t])}function m4(){const t=Jm();return U.useCallback(e=>`${t}-gradient-${e}-object-bound`,[t])}function g4(t,e){const r=Se(t.x,e.x),a=Se(t.y,e.y),s=Se(t.width,e.width),l=Se(t.height,e.height);return c=>({x:r(c),y:a(c),width:s(c),height:l(c)})}function y4(t){const e={x:t.layout==="vertical"?t.x+t.width/2:t.xOrigin,y:t.layout==="vertical"?t.yOrigin:t.y+t.height/2,width:t.width,height:t.height},r={x:t.x+t.width/2,y:t.y+t.height/2,width:t.width,height:t.height};return Wm(r,{createInterpolator:g4,transformProps:a=>a,applyProps(a,s){a.setAttribute("x",s.x.toString()),a.setAttribute("y",s.y.toString()),a.setAttribute("width",s.width.toString()),a.setAttribute("height",s.height.toString())},initialProps:e,skip:t.skipAnimation,ref:t.ref})}function v4(){return Gr().chartRootRef}const b4={"image/png":"PNG","image/jpeg":"JPEG","image/webp":"WebP"},x4=t=>({components:{MuiChartsLocalizationProvider:{defaultProps:{localeText:G({},t)}}}}),W2={loading:"Loading data…",noData:"No data to display",zoomIn:"Zoom in",zoomOut:"Zoom out",toolbarExport:"Export",toolbarExportPrint:"Print",toolbarExportImage:t=>`Export as ${b4[t]??t}`},S4=W2;x4(W2);const T4=["localeText"],_p=U.createContext(null);function C4(t){const{localeText:e}=t,r=te(t,T4),{localeText:a}=U.useContext(_p)??{localeText:void 0},s=Kn({props:r,name:"MuiChartsLocalizationProvider"}),{children:l,localeText:c}=s,f=U.useMemo(()=>G({},S4,c,a,e),[c,a,e]),p=U.useMemo(()=>({localeText:f}),[f]);return N.jsx(_p.Provider,{value:p,children:l})}const J2=()=>{const t=U.useContext(_p);if(t===null)throw new Error(["MUI X Charts: Can not find the charts localization context.","It looks like you forgot to wrap your component in ChartsLocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-charts` package"].join(` 121 + `));return t};function A4(t,e){const r=Se(t.x,e.x),a=Se(t.y,e.y),s=Se(t.width,e.width),l=Se(t.height,e.height),c=Se(t.borderRadius,e.borderRadius);return f=>({x:r(f),y:a(f),width:s(f),height:l(f),borderRadius:c(f)})}function E4(t){const e={x:t.layout==="vertical"?t.x:t.xOrigin,y:t.layout==="vertical"?t.yOrigin:t.y,width:t.layout==="vertical"?t.width:0,height:t.layout==="vertical"?0:t.height,borderRadius:t.borderRadius};return Wm({x:t.x,y:t.y,width:t.width,height:t.height,borderRadius:t.borderRadius},{createInterpolator:A4,transformProps:r=>({d:M4(t.hasNegative,t.hasPositive,t.layout,r.x,r.y,r.width,r.height,t.xOrigin,t.yOrigin,r.borderRadius)}),applyProps(r,{d:a}){a&&r.setAttribute("d",a)},initialProps:e,skip:t.skipAnimation,ref:t.ref})}function w4(t){const{maskId:e,x:r,y:a,width:s,height:l,skipAnimation:c}=t,{ref:f,d:p}=E4({layout:t.layout??"vertical",hasNegative:t.hasNegative,hasPositive:t.hasPositive,xOrigin:t.xOrigin,yOrigin:t.yOrigin,x:r,y:a,width:s,height:l,borderRadius:t.borderRadius??0,skipAnimation:c});return!t.borderRadius||t.borderRadius<=0?null:N.jsx("clipPath",{id:e,children:N.jsx("path",{ref:f,d:p})})}function M4(t,e,r,a,s,l,c,f,p,d){if(r==="vertical"){if(e&&t){const y=Math.min(d,l/2,c/2);return`M${a},${s+c/2} v${-(c/2-y)} a${y},${y} 0 0 1 ${y},${-y} h${l-y*2} a${y},${y} 0 0 1 ${y},${y} v${c-2*y} a${y},${y} 0 0 1 ${-y},${y} h${-(l-y*2)} a${y},${y} 0 0 1 ${-y},${-y} v${-(c/2-y)}`}const m=Math.min(d,l/2);if(e)return`M${a},${Math.max(p,s+m)} v${Math.min(0,-(p-s-m))} a${m},${m} 0 0 1 ${m},${-m} h${l-m*2} a${m},${m} 0 0 1 ${m},${m} v${Math.max(0,p-s-m)} Z`;if(t)return`M${a},${Math.min(p,s+c-m)} v${Math.max(0,c-m)} a${m},${m} 0 0 0 ${m},${m} h${l-m*2} a${m},${m} 0 0 0 ${m},${-m} v${-Math.max(0,c-m)} Z`}if(r==="horizontal"){if(e&&t){const y=Math.min(d,l/2,c/2);return`M${a+l/2},${s} h${l/2-y} a${y},${y} 0 0 1 ${y},${y} v${c-y*2} a${y},${y} 0 0 1 ${-y},${y} h${-(l-2*y)} a${y},${y} 0 0 1 ${-y},${-y} v${-(c-y*2)} a${y},${y} 0 0 1 ${y},${-y} h${l/2-y}`}const m=Math.min(d,c/2);if(e)return`M${Math.min(f,a-m)},${s} h${l} a${m},${m} 0 0 1 ${m},${m} v${c-m*2} a${m},${m} 0 0 1 ${-m},${m} h${-l} Z`;if(t)return`M${Math.max(f,a+l+m)},${s} h${-l} a${m},${m} 0 0 0 ${-m},${m} v${c-m*2} a${m},${m} 0 0 0 ${m},${m} h${l} Z`}}function O4(t){return Le("MuiBarLabel",t)}const sp=je("MuiBarLabel",["root","highlighted","faded","animate"]),R4=t=>{const{classes:e,seriesId:r,isFaded:a,isHighlighted:s,skipAnimation:l}=t,c={root:["root",`series-${r}`,s&&"highlighted",a&&"faded",!l&&"animate"]};return Ue(c,O4,e)},k4=t=>{const{barLabel:e,value:r,dataIndex:a,seriesId:s,height:l,width:c}=t;return e==="value"?r?r==null?void 0:r.toString():null:e({seriesId:s,dataIndex:a,value:r},{bar:{height:l,width:c}})},D4=["seriesId","dataIndex","color","isFaded","isHighlighted","classes","skipAnimation","layout","xOrigin","yOrigin"],_4=zt("text",{name:"MuiBarLabel",slot:"Root",overridesResolver:(t,e)=>[{[`&.${sp.faded}`]:e.faded},{[`&.${sp.highlighted}`]:e.highlighted},e.root]})(({theme:t})=>{var e,r,a,s;return G({},(e=t==null?void 0:t.typography)==null?void 0:e.body2,{stroke:"none",fill:(s=(a=(r=t.vars||t)==null?void 0:r.palette)==null?void 0:a.text)==null?void 0:s.primary,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",textAnchor:"middle",dominantBaseline:"central",pointerEvents:"none",opacity:1,[`&.${sp.faded}`]:{opacity:.3}})});function z4(t){const e=Kn({props:t,name:"MuiBarLabel"}),r=te(e,D4),a=y4(e);return N.jsx(_4,G({},r,a))}const $4=["seriesId","classes","color","dataIndex","barLabel","slots","slotProps","xOrigin","yOrigin","x","y","width","height","value","skipAnimation","layout"],N4=["ownerState"];function L4(t){const{seriesId:e,classes:r,color:a,dataIndex:s,barLabel:l,slots:c,slotProps:f,xOrigin:p,yOrigin:d,x:m,y,width:v,height:b,value:x,skipAnimation:S,layout:A}=t,w=te(t,$4),{isFaded:D,isHighlighted:O}=Y2({seriesId:e,dataIndex:s}),R={seriesId:e,classes:r,color:a,isFaded:D,isHighlighted:O,dataIndex:s,skipAnimation:S,layout:A},E=R4(R),k=(c==null?void 0:c.barLabel)??z4,z=_r({elementType:k,externalSlotProps:f==null?void 0:f.barLabel,additionalProps:G({},w,{xOrigin:p,yOrigin:d,x:m,y,width:v,height:b,className:E.root}),ownerState:R}),{ownerState:H}=z,L=te(z,N4);if(!l)return null;const C=k4({barLabel:l,value:x,dataIndex:s,seriesId:e,height:b,width:v});return C?N.jsx(k,G({},L,H,{children:C})):null}function j4(t){return Le("MuiBar",t)}je("MuiBar",["root","series","seriesLabels"]);const tT=t=>Ue({root:["root"],series:["series"],seriesLabels:["seriesLabels"]},j4,t),U4=["bars","skipAnimation"];function B4(t){const{bars:e,skipAnimation:r}=t,a=te(t,U4),s=tT();return N.jsx(U.Fragment,{children:e.flatMap(({seriesId:l,data:c})=>N.jsx("g",{className:s.seriesLabels,"data-series":l,children:c.map(({xOrigin:f,yOrigin:p,x:d,y:m,dataIndex:y,color:v,value:b,width:x,height:S,layout:A})=>N.jsx(L4,G({seriesId:l,dataIndex:y,value:b,color:v,xOrigin:f,yOrigin:p,x:d,y:m,width:x,height:S,skipAnimation:r??!1,layout:A??"vertical"},a),y))},l))})}function H4(t){const e=ne(),r=wt(e,xR);return t||r}function I4(){const t=ne();return wt(t,b2)}const lp=(t,e)=>{const r=`${t}-axis`,a=`${t}Axis`;return e===(t==="x"?vm:bm)?`The first \`${a}\``:`The ${r} with id "${e}"`};function P4(t,e,r,a,s,l,c){const f=s[a],p=c[l],d=t?f:p,m=t?p:f,y=t?a:l,v=t?l:a,b=t?"x":"y",x=t?"y":"x";if(!Tc(d))throw new Error(`MUI X Charts: ${lp(b,y)} should be of type "band" to display the bar series of id "${e}".`);if(d.data===void 0)throw new Error(`MUI X Charts: ${lp(b,y)} should have data property.`);if(Tc(m)||Vm(m))throw new Error(`MUI X Charts: ${lp(x,v)} should be a continuous type to display the bar series of id "${e}".`)}function G4(t,e,r){const a=f4()??{series:{},stackingGroups:[]},s=Yr().xAxisIds[0],l=qr().yAxisIds[0],c=Jm(),{series:f,stackingGroups:p}=a,d={};return{completedData:p.flatMap(({ids:y},v)=>{const b=t.left,x=t.left+t.width,S=t.top,A=t.top+t.height;return y.map(w=>{const D=f[w].xAxisId??s,O=f[w].yAxisId??l,R=e[D],E=r[O],k=f[w].layout==="vertical";P4(k,w,f[w],D,e,O,r);const z=k?R:E,H=R.scale,L=E.scale,C=I2(f[w],e[D],r[O]),_=z.scale.bandwidth(),{barWidth:I,offset:q}=Y4({bandWidth:_,numberOfGroups:p.length,gapRatio:z.barGapRatio}),it=v*(I+q),{stackedData:lt,data:j,layout:Y,minBarSize:W}=f[w],J=z.data.map(($,Z)=>{if(j[Z]==null)return null;const ot=lt[Z].map(vt=>k?L(vt):H(vt)),ct=Math.round(Math.min(...ot)),dt=Math.round(Math.max(...ot)),ft=f[w].stack,{barSize:At,startCoordinate:bt}=q4(k,ct,dt,j[Z],W),nt={seriesId:w,dataIndex:Z,layout:Y,x:k?H($)+it:bt,y:k?bt:L($)+it,xOrigin:H(0)??0,yOrigin:L(0)??0,height:k?At:I,width:k?I:At,color:C(Z),value:j[Z],maskId:`${c}_${ft||w}_${v}_${Z}`};if(nt.x>x||nt.x+nt.width<b||nt.y>A||nt.y+nt.height<S)return null;d[nt.maskId]||(d[nt.maskId]={id:nt.maskId,width:0,height:0,hasNegative:!1,hasPositive:!1,layout:nt.layout,xOrigin:H(0),yOrigin:L(0),x:0,y:0});const ht=d[nt.maskId];return ht.width=nt.layout==="vertical"?nt.width:ht.width+nt.width,ht.height=nt.layout==="vertical"?ht.height+nt.height:nt.height,ht.x=Math.min(ht.x===0?1/0:ht.x,nt.x),ht.y=Math.min(ht.y===0?1/0:ht.y,nt.y),ht.hasNegative=ht.hasNegative||(nt.value??0)<0,ht.hasPositive=ht.hasPositive||(nt.value??0)>0,nt}).filter($=>$!==null);return{seriesId:w,data:J}})}),masksData:Object.values(d)}}function Y4({bandWidth:t,numberOfGroups:e,gapRatio:r}){if(r===0)return{barWidth:t/e,offset:0};const a=t/(e+(e-1)*r),s=r*a;return{barWidth:a,offset:s}}function q4(t,e,r,a,s){if(a===0||a==null)return{barSize:0,startCoordinate:e};const l=r-e<s,c=l?s:r-e,f=t&&a>=0,p=!t&&a<0;return l&&(f||p)?{barSize:c,startCoordinate:r-c}:{barSize:c,startCoordinate:e}}const V4=["skipAnimation","onItemClick","borderRadius","barLabel"],X4=zt("g",{name:"MuiBarPlot",slot:"Root"})({[`& .${XO.root}`]:{transition:"opacity 0.2s ease-in, fill 0.2s ease-in"}});function K4(t){const{skipAnimation:e,onItemClick:r,borderRadius:a,barLabel:s}=t,l=te(t,V4),c=I4(),f=H4(c||e),{xAxis:p}=Yr(),{yAxis:d}=qr(),{completedData:m,masksData:y}=G4(Hn(),p,d),v=!a||a<=0,b=tT();return N.jsxs(X4,{className:b.root,children:[!v&&y.map(({id:x,x:S,y:A,xOrigin:w,yOrigin:D,width:O,height:R,hasPositive:E,hasNegative:k,layout:z})=>N.jsx(w4,{maskId:x,borderRadius:a,hasNegative:k,hasPositive:E,layout:z,x:S,y:A,xOrigin:w,yOrigin:D,width:O,height:R,skipAnimation:f??!1},x)),m.map(({seriesId:x,data:S})=>N.jsx("g",{"data-series":x,className:b.series,children:S.map(({dataIndex:A,color:w,maskId:D,layout:O,x:R,xOrigin:E,y:k,yOrigin:z,width:H,height:L})=>{const C=N.jsx(q5,G({id:x,dataIndex:A,color:w,skipAnimation:f??!1,layout:O??"vertical",x:R,xOrigin:E,y:k,yOrigin:z,width:H,height:L},l,{onClick:r&&(_=>{r(_,{type:"bar",seriesId:x,dataIndex:A})})}),A);return v?C:N.jsx("g",{clipPath:`url(#${D})`,children:C},A)})},x)),s&&N.jsx(B4,G({bars:m,skipAnimation:f,barLabel:s},l))]})}function rg(){const[t,e]=U.useState(typeof window<"u"||!1);return U.useEffect(()=>{e(!0)},[]),t}function Z4(){return typeof window>"u"}const Qu=new Map,Q4=2e3,F4={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},W4=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],J1="mui_measurement_span";function eT(t,e){return W4.indexOf(t)>=0&&e===+e?`${e}px`:e}function nT(t){return t.split("").reduce((a,s)=>s===s.toUpperCase()?[...a,"-",s.toLowerCase()]:[...a,s],[]).join("")}const J4=t=>Object.keys(t).sort().reduce((e,r)=>`${e}${nT(r)}:${eT(r,t[r])};`,"");let up;const El=(t,e={})=>{if(t==null||Z4())return{width:0,height:0};const r=`${t}`,a=J4(e),s=`${r}-${a}`,l=Qu.get(s);if(l)return l;try{let c=document.getElementById(J1);c===null&&(c=document.createElement("span"),c.setAttribute("id",J1),c.setAttribute("aria-hidden","true"),document.body.appendChild(c));const f=G({},F4,e);Object.keys(f).map(m=>(c.style[nT(m)]=eT(m,f[m]),m)),c.textContent=r;const p=c.getBoundingClientRect(),d={width:p.width,height:p.height};return Qu.set(s,d),Qu.size+1>Q4&&Qu.clear(),up&&clearTimeout(up),up=setTimeout(()=>{c.textContent=""},0),d}catch{return{width:0,height:0}}};function ig(t){return typeof t=="number"&&!Number.isFinite(t)}const cp={start:0,extremities:0,end:1,middle:.5};function tz(t){const{scale:e,tickNumber:r,valueFormatter:a,tickInterval:s,tickPlacement:l="extremities",tickLabelPlacement:c,isInside:f}=t;if(Bn(e)){const v=e.domain(),b=c??"middle";return e.bandwidth()>0?[...(typeof s=="function"&&v.filter(s)||typeof s=="object"&&s||v).map(A=>{const w=`${A}`;return{value:A,formattedValue:(a==null?void 0:a(A,{location:"tick",scale:e,tickNumber:r,defaultTickLabel:w}))??w,offset:e(A)-(e.step()-e.bandwidth())/2+cp[l]*e.step(),labelOffset:b==="tick"?0:e.step()*(cp[b]-cp[l])}}),...l==="extremities"?[{formattedValue:void 0,offset:e.range()[1],labelOffset:0}]:[]]:(typeof s=="function"&&v.filter(s)||typeof s=="object"&&s||v).map(S=>{const A=`${S}`;return{value:S,formattedValue:(a==null?void 0:a(S,{location:"tick",scale:e,tickNumber:r,defaultTickLabel:A}))??A,offset:e(S),labelOffset:0}})}if(e.domain().some(ig))return[];const d=c,m=typeof s=="object"?s:e.ticks(r),y=[];for(let v=0;v<m.length;v+=1){const b=m[v],x=e(b);if(f(x)){const S=e.tickFormat(r)(b);y.push({value:b,formattedValue:(a==null?void 0:a(b,{location:"tick",scale:e,tickNumber:r,defaultTickLabel:S}))??S,offset:x,labelOffset:d==="middle"?e(m[v-1]??0)-(x+e(m[v-1]??0))/2:0})}}return y}function pf(t){const{scale:e,tickNumber:r,valueFormatter:a,tickInterval:s,tickPlacement:l="extremities",tickLabelPlacement:c,direction:f}=t,{instance:p}=Gr(),d=f==="x"?p.isXInside:p.isYInside;return U.useMemo(()=>tz({scale:e,tickNumber:r,tickPlacement:l,tickInterval:s,tickLabelPlacement:c,valueFormatter:a,isInside:d}),[e,r,l,s,c,a,d])}function ez(t=!1){const[e,r]=U.useState(!1);return Te(()=>{t||r(!0)},[t]),U.useEffect(()=>{t&&r(!0)},[t]),e}const rT=typeof window<"u"&&"Intl"in window&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function nz(t){return t.length}function rz(t){const e=rT.segment(t);let r=0;for(const a of e)r+=1;return r}const iz=rT?rz:nz;function az(t){return t*(Math.PI/180)}const iT=typeof window<"u"&&"Intl"in window&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function oz(t,e){return t.slice(0,e)}function sz(t,e){const r=iT.segment(t);let a="",s=0;for(const l of r)if(a+=l.segment,s+=1,s>=e)break;return a}const lz=iT?sz:oz,tx="…";function aT(t,e){const{width:r,height:a,measureText:s}=e,l=az(e.angle),c=s(t),f=Math.abs(c.width*Math.cos(l))+Math.abs(c.height*Math.sin(l)),p=Math.abs(c.width*Math.sin(l))+Math.abs(c.height*Math.cos(l));return f<=r&&p<=a}function oT(t,e){if(e(t))return t;let r=t,a=1,s=1/2;const l=iz(t);let c=l,f=l,p=null;do{if(f=c,c=Math.floor(l*s),c===0)break;r=lz(t,c).trim();const d=e(r+tx);a+=1,d?(p=r,s+=1/2**a):s-=1/2**a}while(Math.abs(c-f)!==1);return p?p+tx:""}function uz(t,e,r,a,s){const l=new Map,c=df((s==null?void 0:s.angle)??0);let f=1,p=1;(s==null?void 0:s.textAnchor)==="start"?(f=1/0,p=1):(s==null?void 0:s.textAnchor)==="end"?(f=1,p=1/0):(f=2,p=2),c>90&&c<270&&([f,p]=[p,f]),a&&([f,p]=[p,f]);for(const d of t)if(d.formattedValue){const m=Math.min((d.offset+d.labelOffset)*f,(e.left+e.width+e.right-d.offset-d.labelOffset)*p),y=v=>aT(v,{width:m,height:r,angle:c,measureText:b=>El(b,s)});l.set(d,oT(d.formattedValue.toString(),y))}return l}const ex=5;function cz(t,e,r=0){const a=Math.min(Math.abs(r)%180,Math.abs(Math.abs(r)%180-180)%180);if(a<ex)return t;if(a>90-ex)return e;const s=Gs(a),l=Math.atan2(e,t);return s<l?t/Math.cos(s):e/Math.sin(s)}function sT({style:t,needsComputation:e,text:r}){return r.split(` 122 + `).map(a=>G({text:a},e?El(a,t):{width:0,height:0}))}function fz(t,{tickLabelStyle:e,tickLabelInterval:r,tickLabelMinGap:a,reverse:s,isMounted:l,isXInside:c}){const f=m=>{if(!l||m.formattedValue===void 0)return{width:0,height:0};const y=sT({style:e,needsComputation:!0,text:m.formattedValue});return{width:Math.max(...y.map(v=>v.width)),height:Math.max(y.length*y[0].height)}};if(typeof r=="function")return new Set(t.filter((m,y)=>r(m.value,y)));let p=0;const d=s?-1:1;return new Set(t.filter((m,y)=>{const{offset:v,labelOffset:b}=m,x=v+b;if(y>0&&d*x<d*(p+a)||!c(x))return!1;const{width:S,height:A}=f(m),w=cz(S,A,e==null?void 0:e.angle),D=x-d*w/2;return y>0&&d*D<d*(p+a)?!1:(p=x+d*w/2,!0)}))}function lT(t){return Le("MuiChartsAxis",t)}const Fu=je("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right","id"]),uT=zt("g",{name:"MuiChartsAxis",slot:"Root"})(({theme:t})=>({[`& .${Fu.tickLabel}`]:G({},t.typography.caption,{fill:(t.vars||t).palette.text.primary}),[`& .${Fu.label}`]:{fill:(t.vars||t).palette.text.primary},[`& .${Fu.line}`]:{stroke:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${Fu.tick}`]:{stroke:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges"}})),dz=t=>{const{classes:e,position:r,id:a}=t,s={root:["root","directionX",r,`id-${a}`],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]};return Ue(s,lT,e)},zp=3,hz=4,cT=zt(uT,{name:"MuiChartsXAxis",slot:"Root"})({}),pz={disableLine:!1,disableTicks:!1,tickSize:6,tickLabelMinGap:4},mz=["x","y","style","text","ownerState"],gz=["angle","textAnchor","dominantBaseline"];function kc(t){const{x:e,y:r,style:a,text:s}=t,l=te(t,mz),c=a??{},{angle:f,textAnchor:p,dominantBaseline:d}=c,m=te(c,gz),y=rg(),v=U.useMemo(()=>sT({style:m,needsComputation:y&&s.includes(` 123 + `),text:s}),[m,s,y]);let b;switch(d){case"hanging":case"text-before-edge":b=0;break;case"central":b=(v.length-1)/2*-v[0].height;break;default:b=(v.length-1)*-v[0].height;break}return N.jsx("text",G({},l,{transform:f?`rotate(${f}, ${e}, ${r})`:void 0,x:e,y:r,textAnchor:p,dominantBaseline:d,style:m,children:v.map((x,S)=>N.jsx("tspan",{x:e,dy:`${S===0?b:v[0].height}px`,dominantBaseline:d,children:x.text},S))}))}function fT(t){const e=df(t);return e<=30||e>=330||e<=210&&e>=150?"middle":e<=180?"end":"start"}function dT(t){const e=df(t);return e<=30||e>=330?"hanging":e<=210&&e>=150?"auto":"central"}function hT(t){switch(t){case"start":return"end";case"end":return"start";default:return t}}const yz=["scale","tickNumber","reverse"],pT=t=>{const{xAxis:e,xAxisIds:r}=Yr(),a=e[t.axisId??r[0]],{scale:s,tickNumber:l,reverse:c}=a,f=te(a,yz),p=Kn({props:G({},f,t),name:"MuiChartsXAxis"}),d=G({},pz,p),{position:m,tickLabelStyle:y,labelStyle:v,slots:b,slotProps:x}=d,S=pl(),A=dm(),w=dz(d),D=m==="bottom"?1:-1,O=(b==null?void 0:b.axisLine)??"line",R=(b==null?void 0:b.axisTick)??"line",E=(b==null?void 0:b.axisTickLabel)??kc,k=(b==null?void 0:b.axisLabel)??kc,z=fT((m==="bottom"?0:180)-((y==null?void 0:y.angle)??0)),H=dT((m==="bottom"?0:180)-((y==null?void 0:y.angle)??0)),L=_r({elementType:E,externalSlotProps:x==null?void 0:x.axisTickLabel,additionalProps:{style:G({},S.typography.caption,{fontSize:12,lineHeight:1.25,textAnchor:A?hT(z):z,dominantBaseline:H},y)},className:w.tickLabel,ownerState:{}}),C=_r({elementType:k,externalSlotProps:x==null?void 0:x.axisLabel,additionalProps:{style:G({},S.typography.body1,{lineHeight:1,fontSize:14,textAnchor:"middle",dominantBaseline:m==="bottom"?"text-after-edge":"text-before-edge"},v)},ownerState:{}}),_=s.domain(),I=Bn(s),q=I&&_.length===0||!I&&_.some(ig)||m==="none";return{xScale:s,defaultizedProps:d,tickNumber:l,positionSign:D,skipAxisRendering:q,classes:w,Line:O,Tick:R,TickLabel:E,Label:k,axisTickLabelProps:L,axisLabelProps:C,reverse:c,isRtl:A}};function vz(t){const{xScale:e,defaultizedProps:r,tickNumber:a,positionSign:s,skipAxisRendering:l,classes:c,Line:f,Tick:p,TickLabel:d,Label:m,axisTickLabelProps:y,axisLabelProps:v,reverse:b,isRtl:x}=pT(t),S=ez(),{position:A,disableLine:w,disableTicks:D,label:O,tickSize:R,valueFormatter:E,slotProps:k,tickInterval:z,tickLabelInterval:H,tickPlacement:L,tickLabelPlacement:C,tickLabelMinGap:_,sx:I,offset:q,height:it}=r,lt=Hn(),{left:j,top:Y,width:W,height:J}=lt,{instance:$}=Gr(),Z=rg(),at=D?4:R,ot=pf({scale:e,tickNumber:a,valueFormatter:E,tickInterval:z,tickPlacement:L,tickLabelPlacement:C,direction:"x"}),ct=fz(ot,{tickLabelStyle:y.style,tickLabelInterval:H,tickLabelMinGap:_,reverse:b,isMounted:S,isXInside:$.isXInside});if(l)return null;const dt=O?El(O,v.style).height:0,ft={x:j+W/2,y:s*it},At=Math.max(0,it-(O?dt+hz:0)-at-zp),bt=Z?uz(ct,lt,At,x,y.style):new Map(Array.from(ct).map(nt=>[nt,nt.formattedValue]));return N.jsxs(cT,{transform:`translate(0, ${A==="bottom"?Y+J+q:Y-q})`,className:c.root,sx:I,children:[!w&&N.jsx(f,G({x1:j,x2:j+W,className:c.line},k==null?void 0:k.axisLine)),ot.map((nt,ht)=>{const{offset:vt,labelOffset:ut}=nt,$t=ut??0,gt=s*(at+zp),Yt=$.isXInside(vt),re=bt.get(nt),jt=ct.has(nt);return N.jsxs("g",{transform:`translate(${vt}, 0)`,className:c.tickContainer,children:[!D&&Yt&&N.jsx(p,G({y2:s*at,className:c.tick},k==null?void 0:k.axisTick)),re!==void 0&&jt&&N.jsx(d,G({x:$t,y:gt},y,{text:re}))]},ht)}),O&&N.jsx("g",{className:c.label,children:N.jsx(m,G({},ft,v,{text:O}))})]})}const Ls={start:0,extremities:0,end:1,middle:.5,tick:0};function mT(t){const{scale:e,tickInterval:r,tickLabelPlacement:a="middle",tickPlacement:s="extremities",groups:l}=t;return U.useMemo(()=>{const c=e.domain(),f=typeof r=="function"&&c.filter(r)||typeof r=="object"&&r||c;if(e.bandwidth()>0){const p=nx(f,l,s,a,e);return p[0]&&(p[0].ignoreTick=!0),[{formattedValue:void 0,offset:e.range()[0],labelOffset:0,groupIndex:l.length-1},...p,{formattedValue:void 0,offset:e.range()[1],labelOffset:0,groupIndex:l.length-1}]}return nx(f,l,s,a,e)},[e,r,l,s,a])}function nx(t,e,r,a,s){const l=[],c=new Map;let f=0;for(let p=0;p<e.length;p+=1)for(let d=0;d<t.length;d+=1){const m=t[d],y=e[p].getValue(m,d),v=l[l.length-1];if((v==null?void 0:v.value)!==y||(v==null?void 0:v.groupIndex)!==p){f=1;const x=Bn(s)?s(m)-(s.step()-s.bandwidth())/2+Ls[r]*s.step():s(m),S=s.step()*f*(Ls[a]-Ls[r]);l.push({value:y,formattedValue:`${y}`,offset:x,groupIndex:p,dataIndex:d,ignoreTick:!1,labelOffset:S}),c.has(d)||c.set(d,new Set);const A=c.get(d);for(const w of A.values())l[w].ignoreTick=!0;A.add(l.length-1)}else{f+=1;const x=s.step()*f*(Ls[a]-Ls[r]);v.labelOffset=x}}return l}const rx={tickSize:6},bz=(t,e,r)=>{const a=t[e]??{},s=r??rx.tickSize,l=s*e*2+s;return G({},rx,a,{tickSize:a.tickSize??l})};function xz(t){const{xScale:e,defaultizedProps:r,positionSign:a,skipAxisRendering:s,classes:l,Line:c,Tick:f,TickLabel:p,Label:d,axisTickLabelProps:m,axisLabelProps:y}=pT(t);if(!Bn(e))throw new Error("MUI X Charts: ChartsGroupedXAxis only supports the `band` and `point` scale types.");const{position:v,disableLine:b,disableTicks:x,label:S,tickSize:A,valueFormatter:w,slotProps:D,tickInterval:O,tickPlacement:R,tickLabelPlacement:E,sx:k,offset:z,height:H}=r,L=r.groups,C=Hn(),{left:_,top:I,width:q,height:it}=C,{instance:lt}=Gr(),j={x:_+q/2,y:a*H},Y=mT({scale:e,tickInterval:O,tickPlacement:R,tickLabelPlacement:E,groups:L});return s?null:N.jsxs(cT,{transform:`translate(0, ${v==="bottom"?I+it+z:I-z})`,className:l.root,sx:k,children:[!b&&N.jsx(c,G({x1:_,x2:_+q,className:l.line},D==null?void 0:D.axisLine)),Y.map((W,J)=>{const{offset:$,labelOffset:Z}=W,at=Z??0,ot=lt.isXInside($),ct=W.formattedValue,dt=W.ignoreTick??!1,ft=W.groupIndex??0,At=bz(L,ft,A),bt=a*At.tickSize,nt=a*(At.tickSize+zp);return N.jsxs("g",{transform:`translate(${$}, 0)`,className:l.tickContainer,"data-group-index":ft,children:[!x&&!dt&&ot&&N.jsx(f,G({y2:bt,className:l.tick},D==null?void 0:D.axisTick)),ct!==void 0&&N.jsx(p,G({x:at,y:nt},m,{style:G({},m.style,At.tickLabelStyle),text:ct}))]},J)}),S&&N.jsx("g",{className:l.label,children:N.jsx(d,G({},j,y,{text:S}))})]})}function Sz(t){const{xAxis:e,xAxisIds:r}=Yr(),a=e[t.axisId??r[0]];return"groups"in a&&Array.isArray(a.groups)?N.jsx(xz,G({},t)):N.jsx(vz,G({},t))}function Tz(t,e,r,a,s){const l=new Map,c=df((s==null?void 0:s.angle)??0);let f=1,p=1;(s==null?void 0:s.textAnchor)==="start"?(f=1/0,p=1):(s==null?void 0:s.textAnchor)==="end"?(f=1,p=1/0):(f=2,p=2),c>180&&([f,p]=[p,f]),a&&([f,p]=[p,f]);for(const d of t)if(d.formattedValue){const m=Math.min((d.offset+d.labelOffset)*f,(e.top+e.height+e.bottom-d.offset-d.labelOffset)*p),y=v=>aT(v,{width:r,height:m,angle:c,measureText:b=>El(b,s)});l.set(d,oT(d.formattedValue.toString(),y))}return l}const Cz=t=>{const{classes:e,position:r,id:a}=t,s={root:["root","directionY",r,`id-${a}`],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]};return Ue(s,lT,e)},$p=2,Az=2,gT=zt(uT,{name:"MuiChartsYAxis",slot:"Root"})({}),Ez={disableLine:!1,disableTicks:!1,tickSize:6},wz=["scale","tickNumber","reverse"],yT=t=>{const{yAxis:e,yAxisIds:r}=qr(),a=e[t.axisId??r[0]],{scale:s,tickNumber:l,reverse:c}=a,f=te(a,wz),p=Kn({props:G({},f,t),name:"MuiChartsYAxis"}),d=G({},Ez,p),{position:m,tickLabelStyle:y,labelStyle:v,slots:b,slotProps:x}=d,S=pl(),A=dm(),w=Cz(d),D=m==="right"?1:-1,O=typeof(y==null?void 0:y.fontSize)=="number"?y.fontSize:12,R=(b==null?void 0:b.axisLine)??"line",E=(b==null?void 0:b.axisTick)??"line",k=(b==null?void 0:b.axisTickLabel)??kc,z=(b==null?void 0:b.axisLabel)??kc,H=fT((m==="right"?-90:90)-((y==null?void 0:y.angle)??0)),L=dT((m==="right"?-90:90)-((y==null?void 0:y.angle)??0)),C=_r({elementType:k,externalSlotProps:x==null?void 0:x.axisTickLabel,additionalProps:{style:G({},S.typography.caption,{fontSize:O,textAnchor:A?hT(H):H,dominantBaseline:L},y)},className:w.tickLabel,ownerState:{}}),_=_r({elementType:z,externalSlotProps:x==null?void 0:x.axisLabel,additionalProps:{style:G({},S.typography.body1,{lineHeight:1,fontSize:14,angle:D*90,textAnchor:"middle",dominantBaseline:"text-before-edge"},v)},ownerState:{}}),I=_r({elementType:R,externalSlotProps:x==null?void 0:x.axisLine,additionalProps:{strokeLinecap:"square"},ownerState:{}}),q=s.domain(),it=Bn(s),lt=it&&q.length===0||!it&&q.some(ig)||m==="none";return{yScale:s,defaultizedProps:d,tickNumber:l,positionSign:D,skipAxisRendering:lt,classes:w,Line:R,Tick:E,TickLabel:k,Label:z,axisTickLabelProps:C,axisLabelProps:_,lineProps:I,reverse:c,isRtl:A}};function Mz(t){const{yScale:e,defaultizedProps:r,tickNumber:a,positionSign:s,skipAxisRendering:l,classes:c,Line:f,Tick:p,TickLabel:d,Label:m,axisTickLabelProps:y,axisLabelProps:v,lineProps:b,isRtl:x}=yT(t),{position:S,disableLine:A,disableTicks:w,label:D,tickSize:O,valueFormatter:R,slotProps:E,tickPlacement:k,tickLabelPlacement:z,tickInterval:H,tickLabelInterval:L,sx:C,offset:_,width:I}=r,q=Hn(),{left:it,top:lt,width:j,height:Y}=q,{instance:W}=Gr(),J=rg(),$=w?4:O,Z=pf({scale:e,tickNumber:a,valueFormatter:R,tickPlacement:k,tickLabelPlacement:z,tickInterval:H,direction:"y"});if(l)return null;const at={x:s*I,y:lt+Y/2},ot=Math.max(0,I-(D?El(D,v.style).height+Az:0)-$-$p),ct=J?Tz(Z,q,ot,x,y.style):new Map(Array.from(Z).map(dt=>[dt,dt.formattedValue]));return N.jsxs(gT,{transform:`translate(${S==="right"?it+j+_:it-_}, 0)`,className:c.root,sx:C,children:[!A&&N.jsx(f,G({y1:lt,y2:lt+Y,className:c.line},b)),Z.map((dt,ft)=>{const{offset:At,labelOffset:bt,value:nt}=dt,ht=s*($+$p),vt=bt,ut=typeof L=="function"&&!(L!=null&&L(nt,ft)),$t=W.isYInside(At),gt=ct.get(dt);return $t?N.jsxs("g",{transform:`translate(0, ${At})`,className:c.tickContainer,children:[!w&&N.jsx(p,G({x2:s*$,className:c.tick},E==null?void 0:E.axisTick)),gt!==void 0&&!ut&&N.jsx(d,G({x:ht,y:vt,text:gt},y))]},ft):null}),D&&J&&N.jsx("g",{className:c.label,children:N.jsx(m,G({},at,v,{text:D}))})]})}const ix={tickSize:6},Oz=(t,e,r)=>{const a=t[e]??{},s=r??ix.tickSize,l=s*e*2+s;return G({},ix,a,{tickSize:a.tickSize??l})};function Rz(t){const{yScale:e,defaultizedProps:r,positionSign:a,skipAxisRendering:s,classes:l,Line:c,Tick:f,TickLabel:p,Label:d,axisTickLabelProps:m,axisLabelProps:y,lineProps:v}=yT(t);if(!Bn(e))throw new Error("MUI X Charts: ChartsGroupedYAxis only supports the `band` and `point` scale types.");const{position:b,disableLine:x,disableTicks:S,label:A,tickSize:w,valueFormatter:D,slotProps:O,tickInterval:R,tickPlacement:E,tickLabelPlacement:k,sx:z,offset:H,width:L}=r,C=r.groups,_=Hn(),{left:I,top:q,width:it,height:lt}=_,{instance:j}=Gr(),Y={x:a*L,y:q+lt/2},W=mT({scale:e,tickInterval:R,tickPlacement:E,tickLabelPlacement:k,groups:C});return s?null:N.jsxs(gT,{transform:`translate(${b==="right"?I+it+H:I-H}, 0)`,className:l.root,sx:z,children:[!x&&N.jsx(c,G({y1:q,y2:q+lt,className:l.line},v)),W.map((J,$)=>{const{offset:Z,labelOffset:at}=J,ot=at??0,ct=j.isYInside(Z),dt=J.formattedValue,ft=J.ignoreTick??!1,At=J.groupIndex??0,bt=Oz(C,At,w),nt=a*bt.tickSize,ht=a*(bt.tickSize+$p);return N.jsxs("g",{transform:`translate(0, ${Z})`,className:l.tickContainer,"data-group-index":At,children:[!S&&!ft&&ct&&N.jsx(f,G({x2:nt,className:l.tick},O==null?void 0:O.axisTick)),dt!==void 0&&N.jsx(p,G({x:ht,y:ot},m,{style:G({},m.style,bt.tickLabelStyle),text:dt}))]},$)}),A&&N.jsx("g",{className:l.label,children:N.jsx(d,G({},Y,y,{text:A}))})]})}function kz(t){const{yAxis:e,yAxisIds:r}=qr(),a=e[t.axisId??r[0]];return"groups"in a&&Array.isArray(a.groups)?N.jsx(Rz,G({},t)):N.jsx(Mz,G({},t))}function Dz(t){const{slots:e,slotProps:r}=t,{xAxisIds:a,xAxis:s}=Yr(),{yAxisIds:l,yAxis:c}=qr();return N.jsxs(U.Fragment,{children:[a.map(f=>!s[f].position||s[f].position==="none"?null:N.jsx(Sz,{slots:e,slotProps:r,axisId:f},f)),l.map(f=>!c[f].position||c[f].position==="none"?null:N.jsx(kz,{slots:e,slotProps:r,axisId:f},f))]})}function _z(){return SM}const So=QM;function oa(t){return ZM(t)}function zz(t){return typeof t.main=="string"}function $z(t,e=[]){if(!zz(t))return!1;for(const r of e)if(!t.hasOwnProperty(r)||typeof t[r]!="string")return!1;return!0}function rl(t=[]){return([,e])=>e&&$z(e,t)}function Nz(t){return Le("MuiTypography",t)}je("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Lz={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},jz=_z(),Uz=t=>{const{align:e,gutterBottom:r,noWrap:a,paragraph:s,variant:l,classes:c}=t,f={root:["root",l,t.align!=="inherit"&&`align${Wt(e)}`,r&&"gutterBottom",a&&"noWrap",s&&"paragraph"]};return Ue(f,Nz,c)},Bz=zt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.variant&&e[r.variant],r.align!=="inherit"&&e[`align${Wt(r.align)}`],r.noWrap&&e.noWrap,r.gutterBottom&&e.gutterBottom,r.paragraph&&e.paragraph]}})(So(({theme:t})=>{var e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([r,a])=>r!=="inherit"&&a&&typeof a=="object").map(([r,a])=>({props:{variant:r},style:a})),...Object.entries(t.palette).filter(rl()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}})),...Object.entries(((e=t.palette)==null?void 0:e.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${Wt(r)}`},style:{color:(t.vars||t).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),ax={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ag=U.forwardRef(function(e,r){const{color:a,...s}=oa({props:e,name:"MuiTypography"}),l=!Lz[a],c=jz({...s,...l&&{color:a}}),{align:f="inherit",className:p,component:d,gutterBottom:m=!1,noWrap:y=!1,paragraph:v=!1,variant:b="body1",variantMapping:x=ax,...S}=c,A={...c,align:f,color:a,className:p,component:d,gutterBottom:m,noWrap:y,paragraph:v,variant:b,variantMapping:x},w=d||(v?"p":x[b]||ax[b])||"span",D=Uz(A);return N.jsx(Bz,{as:w,ref:r,className:Jt(D.root,p),...S,ownerState:A,style:{...f!=="inherit"&&{"--Typography-textAlign":f},...S.style}})});function Hz(t){return Le("MuiChartsTooltip",t)}const ro=je("MuiChartsTooltip",["root","paper","table","row","cell","mark","markContainer","labelCell","valueCell","axisValueCell"]),mf=t=>Ue({root:["root"],paper:["paper"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markContainer:["markContainer"],labelCell:["labelCell"],valueCell:["valueCell"],axisValueCell:["axisValueCell"]},Hz,t);function Iz(){var k,z,H;const t=ne(),e=wt(t,T2),r=wt(t,Ir),a=hf(),{xAxis:s,xAxisIds:l}=Yr(),{yAxis:c,yAxisIds:f}=qr(),{zAxis:p,zAxisIds:d}=eg(),{rotationAxis:m,rotationAxisIds:y}=F2(),{radiusAxis:v,radiusAxisIds:b}=a4(),x=a.xAxisId??l[0],S=a.yAxisId??f[0],A=a.zAxisId??d[0],w=a.rotationAxisId??y[0],D=a.radiusAxisId??b[0];if(!e)return null;const O=(k=a[e.type])==null?void 0:k.series[e.seriesId];if(!O)return null;const R=((H=(z=r[O.type]).colorProcessor)==null?void 0:H.call(z,O,x&&s[x],S&&c[S],A&&p[A]))??(()=>""),E={};return x!==void 0&&(E.x=s[x]),S!==void 0&&(E.y=c[S]),w!==void 0&&(E.rotation=m[w]),D!==void 0&&(E.radius=v[D]),r[O.type].tooltipGetter({series:O,axesConfig:E,getColor:R,identifier:e})}const Np=zt("div",{name:"MuiChartsTooltip",slot:"Container",overridesResolver:(t,e)=>e.paper})(({theme:t})=>{var e;return{backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,borderRadius:(e=(t.vars||t).shape)==null?void 0:e.borderRadius,border:`solid ${(t.vars||t).palette.divider} 1px`}}),Lp=zt("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:t})=>({borderSpacing:0,[`& .${ro.markContainer}`]:{display:"inline-block",width:`calc(20px + ${t.spacing(1.5)})`,verticalAlign:"middle"},"& caption":{borderBottom:`solid ${(t.vars||t).palette.divider} 1px`,padding:t.spacing(.5,1.5),textAlign:"start",whiteSpace:"nowrap","& span":{marginRight:t.spacing(1.5)}}})),jp=zt("tr",{name:"MuiChartsTooltip",slot:"Row"})(({theme:t})=>({"tr:first-of-type& td":{paddingTop:t.spacing(.5)},"tr:last-of-type& td":{paddingBottom:t.spacing(.5)}})),ao=zt(ag,{name:"MuiChartsTooltip",slot:"Cell"})(({theme:t})=>({verticalAlign:"middle",color:(t.vars||t).palette.text.secondary,textAlign:"start",[`&.${ro.cell}`]:{paddingLeft:t.spacing(1),paddingRight:t.spacing(1)},[`&.${ro.labelCell}`]:{whiteSpace:"nowrap",fontWeight:t.typography.fontWeightRegular},[`&.${ro.valueCell}, &.${ro.axisValueCell}`]:{color:(t.vars||t).palette.text.primary,fontWeight:t.typography.fontWeightMedium},[`&.${ro.valueCell}`]:{paddingLeft:t.spacing(1.5),paddingRight:t.spacing(1.5)},"td:first-of-type&, th:first-of-type&":{paddingLeft:t.spacing(1.5)},"td:last-of-type&, th:last-of-type&":{paddingRight:t.spacing(1.5)}}));function Pz(t){return Le("MuiChartsLabelMark",t)}const to=je("MuiChartsLabelMark",["root","line","square","circle","mask","fill"]),Gz=t=>{const{type:e}=t;return Ue({root:typeof e=="function"?["root"]:["root",e],mask:["mask"],fill:["fill"]},Pz,t.classes)},vT=(t,e,r)=>U.forwardRef(function(s,l){var v;const c=Kn({props:s,name:t}),f=typeof e.defaultProps=="function"?e.defaultProps(c):e.defaultProps??{},p=Ji(f,c),d=pl(),m=(v=e.classesResolver)==null?void 0:v.call(e,p,d),y=U.forwardRef(r);return N.jsx(y,G({},p,{classes:m,ref:l}))}),Yz=["type","color","className","classes"],qz=zt("div",{name:"MuiChartsLabelMark",slot:"Root"})(()=>({display:"flex",width:14,height:14,[`&.${to.line}`]:{width:16,height:"unset",alignItems:"center",[`.${to.mask}`]:{height:4,width:"100%",borderRadius:1,overflow:"hidden"}},[`&.${to.square}`]:{height:13,width:13,borderRadius:2,overflow:"hidden"},[`&.${to.circle}`]:{height:15,width:15},svg:{display:"block"},[`& .${to.mask} > *`]:{height:"100%",width:"100%"},[`& .${to.mask}`]:{height:"100%",width:"100%"}})),Dc=vT("MuiChartsLabelMark",{defaultProps:{type:"square"},classesResolver:Gz},function(e,r){const{type:a,color:s,className:l,classes:c}=e,f=te(e,Yz),p=a;return N.jsx(qz,G({className:Jt(c==null?void 0:c.root,l),ownerState:e,"aria-hidden":"true",ref:r},f,{children:N.jsx("div",{className:c==null?void 0:c.mask,children:typeof p=="function"?N.jsx(p,{className:c==null?void 0:c.fill,color:s}):N.jsx("svg",{viewBox:"0 0 24 24",preserveAspectRatio:a==="line"?"none":void 0,children:a==="circle"?N.jsx("circle",{className:c==null?void 0:c.fill,r:"12",cx:"12",cy:"12",fill:s}):N.jsx("rect",{className:c==null?void 0:c.fill,width:"24",height:"24",fill:s})})})}))});function Vz(t){const{classes:e,sx:r}=t,a=Iz(),s=mf(e);if(!a)return null;if("values"in a){const{label:d,color:m,markType:y}=a;return N.jsx(Np,{sx:r,className:s.paper,children:N.jsxs(Lp,{className:s.table,children:[N.jsxs(ag,{component:"caption",children:[N.jsx("div",{className:s.markContainer,children:N.jsx(Dc,{type:y,color:m,className:s.mark})}),d]}),N.jsx("tbody",{children:a.values.map(({formattedValue:v,label:b})=>N.jsxs(jp,{className:s.row,children:[N.jsx(ao,{className:Jt(s.labelCell,s.cell),component:"th",children:b}),N.jsx(ao,{className:Jt(s.valueCell,s.cell),component:"td",children:v})]},b))})]})})}const{color:l,label:c,formattedValue:f,markType:p}=a;return N.jsx(Np,{sx:r,className:s.paper,children:N.jsx(Lp,{className:s.table,children:N.jsx("tbody",{children:N.jsxs(jp,{className:s.row,children:[N.jsxs(ao,{className:Jt(s.labelCell,s.cell),component:"th",children:[N.jsx("div",{className:s.markContainer,children:N.jsx(Dc,{type:p,color:l,className:s.mark})}),c]}),N.jsx(ao,{className:Jt(s.valueCell,s.cell),component:"td",children:f})]})})})})}function Xz(t){const e=ne(),r=wt(e,Ir);return U.useMemo(()=>{const s={};return Object.keys(r).forEach(l=>{s[l]=r[l].colorProcessor}),s},[r])}const Kz=dS({themeId:ar});function Zz(){const t=ng(),[e,r]=U.useState(null);return U.useEffect(()=>{const a=t.current;if(a===null)return()=>{};const s=c=>{c.pointerType!=="mouse"&&r(null)},l=c=>{r({pointerType:c.pointerType})};return a.addEventListener("pointerenter",l),a.addEventListener("pointerup",s),()=>{a.removeEventListener("pointerenter",l),a.removeEventListener("pointerup",s)}},[t]),e}function Qz(t){return t instanceof Date?t.toUTCString():t.toLocaleString()}const Fz="@media (pointer: fine)",Wz=()=>Kz(Fz,{defaultMatches:!0}),bT=(t,e)=>e,xT=(t,e)=>e;function ST(t,e,r){return Array.isArray(r)?r.map(a=>W1(e.axis[a],t)):W1(e.axis[r],t)}const TT=pt([Sl,Tl,t4],(t,e,r)=>t===null||e===null?null:e4(r)(t,e)),Jz=pt([TT,aa,bT],(t,e,r=e.axisIds[0])=>t===null?null:ST(t,e,r)),CT=pt([TT,aa,xT],(t,e,r=e.axisIds)=>t===null?null:ST(t,e,r));pt([aa,Jz,bT],(t,e,r=t.axisIds[0])=>{var s;if(e===null||e===-1||t.axisIds.length===0)return null;const a=(s=t.axis[r])==null?void 0:s.data;return a?a[e]:null});pt([aa,CT,xT],(t,e,r=t.axisIds)=>e===null?null:r.map((a,s)=>{var c;const l=e[s];return l===-1?null:(c=t.axis[a].data)==null?void 0:c[l]}));const AT=pt([CT,aa],(t,e)=>t===null?[]:e.axisIds.map((r,a)=>({axisId:r,dataIndex:t[a]})).filter(({axisId:r,dataIndex:a})=>e.axis[r].triggerTooltip&&a>=0),{memoizeOptions:{resultEqualityCheck:co}});pt([],()=>[]);const t6=pt([AT],t=>t.length>0);function fp(t,e,r){var c;const a=((c=t.data)==null?void 0:c[e])??null,l=(t.valueFormatter??(f=>t.scaleType==="utc"?Qz(f):f.toLocaleString()))(a,{location:"tooltip",scale:t.scale});return{axisDirection:r,axisId:t.id,mainAxis:t,dataIndex:e,axisValue:a,axisFormattedValue:l,seriesItems:[]}}function e6(t={}){const{multipleAxes:e,directions:r}=t,a=r4(),s=i4(),l=o4(),c=ne(),f=wt(c,w2),p=wt(c,M2),d=wt(c,AT),m=hf(),{xAxis:y}=Yr(),{yAxis:v}=qr(),{zAxis:b,zAxisIds:x}=eg(),{rotationAxis:S}=F2(),A=Xz();if(f.length===0&&p.length===0&&d.length===0)return null;const w=[];return(r===void 0||r.includes("x"))&&f.forEach(({axisId:D,dataIndex:O})=>{!e&&w.length>1||w.push(fp(y[D],O,"x"))}),(r===void 0||r.includes("y"))&&p.forEach(({axisId:D,dataIndex:O})=>{!e&&w.length>1||w.push(fp(v[D],O,"y"))}),(r===void 0||r.includes("rotation"))&&d.forEach(({axisId:D,dataIndex:O})=>{!e&&w.length>1||w.push(fp(S[D],O,"rotation"))}),Object.keys(m).filter(Xm).forEach(D=>{const O=m[D];return O?O.seriesOrder.forEach(R=>{var L;const E=O.series[R],k=E.xAxisId??a.id,z=E.yAxisId??s.id,H=w.findIndex(({axisDirection:C,axisId:_})=>C==="x"&&_===k||C==="y"&&_===z);if(H>=0){const C="zAxisId"in E?E.zAxisId:x[0],{dataIndex:_}=w[H],I=((L=A[D])==null?void 0:L.call(A,E,y[k],v[z],C?b[C]:void 0)(_))??"",q=E.data[_]??null,it=E.valueFormatter(q,{dataIndex:_}),lt=Xn(E.label,"tooltip")??null;w[H].seriesItems.push({seriesId:R,color:I,value:q,formattedValue:it,formattedLabel:lt,markType:E.labelMarkType})}}):[]}),Object.keys(m).filter(tg).forEach(D=>{const O=m[D];return O?O.seriesOrder.forEach(R=>{var H;const E=O.series[R],k=E.rotationAxisId??(l==null?void 0:l.id),z=w.findIndex(({axisDirection:L,axisId:C})=>L==="rotation"&&C===k);if(z>=0){const{dataIndex:L}=w[z],C=((H=A[D])==null?void 0:H.call(A,E)(L))??"",_=E.data[L]??null,I=E.valueFormatter(_,{dataIndex:L}),q=Xn(E.label,"tooltip")??null;w[z].seriesItems.push({seriesId:R,color:C,value:_,formattedValue:I,formattedLabel:q,markType:E.labelMarkType})}}):[]}),e?w:w.length===0?w[0]:null}function n6(t){return e6(G({},t,{multipleAxes:!0}))}function r6(t){const e=mf(t.classes),r=n6();return r===null?null:N.jsx(Np,{sx:t.sx,className:e.paper,children:r.map(({axisId:a,mainAxis:s,axisValue:l,axisFormattedValue:c,seriesItems:f})=>N.jsxs(Lp,{className:e.table,children:[l!=null&&!s.hideTooltip&&N.jsx(ag,{component:"caption",children:c}),N.jsx("tbody",{children:f.map(({seriesId:p,color:d,formattedValue:m,formattedLabel:y,markType:v})=>m==null?null:N.jsxs(jp,{className:e.row,children:[N.jsxs(ao,{className:Jt(e.labelCell,e.cell),component:"th",children:[N.jsx("div",{className:e.markContainer,children:N.jsx(Dc,{type:v,color:d,className:e.mark})}),y||null]}),N.jsx(ao,{className:Jt(e.valueCell,e.cell),component:"td",children:m})]},p))})]},a))})}var an="top",Ln="bottom",jn="right",on="left",og="auto",wl=[an,Ln,jn,on],To="start",il="end",i6="clippingParents",ET="viewport",js="popper",a6="reference",ox=wl.reduce(function(t,e){return t.concat([e+"-"+To,e+"-"+il])},[]),wT=[].concat(wl,[og]).reduce(function(t,e){return t.concat([e,e+"-"+To,e+"-"+il])},[]),o6="beforeRead",s6="read",l6="afterRead",u6="beforeMain",c6="main",f6="afterMain",d6="beforeWrite",h6="write",p6="afterWrite",m6=[o6,s6,l6,u6,c6,f6,d6,h6,p6];function ur(t){return t?(t.nodeName||"").toLowerCase():null}function vn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ea(t){var e=vn(t).Element;return t instanceof e||t instanceof Element}function Nn(t){var e=vn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function sg(t){if(typeof ShadowRoot>"u")return!1;var e=vn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function g6(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var a=e.styles[r]||{},s=e.attributes[r]||{},l=e.elements[r];!Nn(l)||!ur(l)||(Object.assign(l.style,a),Object.keys(s).forEach(function(c){var f=s[c];f===!1?l.removeAttribute(c):l.setAttribute(c,f===!0?"":f)}))})}function y6(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(a){var s=e.elements[a],l=e.attributes[a]||{},c=Object.keys(e.styles.hasOwnProperty(a)?e.styles[a]:r[a]),f=c.reduce(function(p,d){return p[d]="",p},{});!Nn(s)||!ur(s)||(Object.assign(s.style,f),Object.keys(l).forEach(function(p){s.removeAttribute(p)}))})}}const v6={name:"applyStyles",enabled:!0,phase:"write",fn:g6,effect:y6,requires:["computeStyles"]};function lr(t){return t.split("-")[0]}var Qi=Math.max,_c=Math.min,Co=Math.round;function Up(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function MT(){return!/^((?!chrome|android).)*safari/i.test(Up())}function Ao(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var a=t.getBoundingClientRect(),s=1,l=1;e&&Nn(t)&&(s=t.offsetWidth>0&&Co(a.width)/t.offsetWidth||1,l=t.offsetHeight>0&&Co(a.height)/t.offsetHeight||1);var c=ea(t)?vn(t):window,f=c.visualViewport,p=!MT()&&r,d=(a.left+(p&&f?f.offsetLeft:0))/s,m=(a.top+(p&&f?f.offsetTop:0))/l,y=a.width/s,v=a.height/l;return{width:y,height:v,top:m,right:d+y,bottom:m+v,left:d,x:d,y:m}}function lg(t){var e=Ao(t),r=t.offsetWidth,a=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-a)<=1&&(a=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:a}}function OT(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&sg(r)){var a=e;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Br(t){return vn(t).getComputedStyle(t)}function b6(t){return["table","td","th"].indexOf(ur(t))>=0}function Ti(t){return((ea(t)?t.ownerDocument:t.document)||window.document).documentElement}function gf(t){return ur(t)==="html"?t:t.assignedSlot||t.parentNode||(sg(t)?t.host:null)||Ti(t)}function sx(t){return!Nn(t)||Br(t).position==="fixed"?null:t.offsetParent}function x6(t){var e=/firefox/i.test(Up()),r=/Trident/i.test(Up());if(r&&Nn(t)){var a=Br(t);if(a.position==="fixed")return null}var s=gf(t);for(sg(s)&&(s=s.host);Nn(s)&&["html","body"].indexOf(ur(s))<0;){var l=Br(s);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||e&&l.willChange==="filter"||e&&l.filter&&l.filter!=="none")return s;s=s.parentNode}return null}function Ml(t){for(var e=vn(t),r=sx(t);r&&b6(r)&&Br(r).position==="static";)r=sx(r);return r&&(ur(r)==="html"||ur(r)==="body"&&Br(r).position==="static")?e:r||x6(t)||e}function ug(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Vs(t,e,r){return Qi(t,_c(e,r))}function S6(t,e,r){var a=Vs(t,e,r);return a>r?r:a}function RT(){return{top:0,right:0,bottom:0,left:0}}function kT(t){return Object.assign({},RT(),t)}function DT(t,e){return e.reduce(function(r,a){return r[a]=t,r},{})}var T6=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,kT(typeof e!="number"?e:DT(e,wl))};function C6(t){var e,r=t.state,a=t.name,s=t.options,l=r.elements.arrow,c=r.modifiersData.popperOffsets,f=lr(r.placement),p=ug(f),d=[on,jn].indexOf(f)>=0,m=d?"height":"width";if(!(!l||!c)){var y=T6(s.padding,r),v=lg(l),b=p==="y"?an:on,x=p==="y"?Ln:jn,S=r.rects.reference[m]+r.rects.reference[p]-c[p]-r.rects.popper[m],A=c[p]-r.rects.reference[p],w=Ml(l),D=w?p==="y"?w.clientHeight||0:w.clientWidth||0:0,O=S/2-A/2,R=y[b],E=D-v[m]-y[x],k=D/2-v[m]/2+O,z=Vs(R,k,E),H=p;r.modifiersData[a]=(e={},e[H]=z,e.centerOffset=z-k,e)}}function A6(t){var e=t.state,r=t.options,a=r.element,s=a===void 0?"[data-popper-arrow]":a;s!=null&&(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s)||OT(e.elements.popper,s)&&(e.elements.arrow=s))}const E6={name:"arrow",enabled:!0,phase:"main",fn:C6,effect:A6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Eo(t){return t.split("-")[1]}var w6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function M6(t,e){var r=t.x,a=t.y,s=e.devicePixelRatio||1;return{x:Co(r*s)/s||0,y:Co(a*s)/s||0}}function lx(t){var e,r=t.popper,a=t.popperRect,s=t.placement,l=t.variation,c=t.offsets,f=t.position,p=t.gpuAcceleration,d=t.adaptive,m=t.roundOffsets,y=t.isFixed,v=c.x,b=v===void 0?0:v,x=c.y,S=x===void 0?0:x,A=typeof m=="function"?m({x:b,y:S}):{x:b,y:S};b=A.x,S=A.y;var w=c.hasOwnProperty("x"),D=c.hasOwnProperty("y"),O=on,R=an,E=window;if(d){var k=Ml(r),z="clientHeight",H="clientWidth";if(k===vn(r)&&(k=Ti(r),Br(k).position!=="static"&&f==="absolute"&&(z="scrollHeight",H="scrollWidth")),k=k,s===an||(s===on||s===jn)&&l===il){R=Ln;var L=y&&k===E&&E.visualViewport?E.visualViewport.height:k[z];S-=L-a.height,S*=p?1:-1}if(s===on||(s===an||s===Ln)&&l===il){O=jn;var C=y&&k===E&&E.visualViewport?E.visualViewport.width:k[H];b-=C-a.width,b*=p?1:-1}}var _=Object.assign({position:f},d&&w6),I=m===!0?M6({x:b,y:S},vn(r)):{x:b,y:S};if(b=I.x,S=I.y,p){var q;return Object.assign({},_,(q={},q[R]=D?"0":"",q[O]=w?"0":"",q.transform=(E.devicePixelRatio||1)<=1?"translate("+b+"px, "+S+"px)":"translate3d("+b+"px, "+S+"px, 0)",q))}return Object.assign({},_,(e={},e[R]=D?S+"px":"",e[O]=w?b+"px":"",e.transform="",e))}function O6(t){var e=t.state,r=t.options,a=r.gpuAcceleration,s=a===void 0?!0:a,l=r.adaptive,c=l===void 0?!0:l,f=r.roundOffsets,p=f===void 0?!0:f,d={placement:lr(e.placement),variation:Eo(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,lx(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:c,roundOffsets:p})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,lx(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:p})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const R6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:O6,data:{}};var Wu={passive:!0};function k6(t){var e=t.state,r=t.instance,a=t.options,s=a.scroll,l=s===void 0?!0:s,c=a.resize,f=c===void 0?!0:c,p=vn(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return l&&d.forEach(function(m){m.addEventListener("scroll",r.update,Wu)}),f&&p.addEventListener("resize",r.update,Wu),function(){l&&d.forEach(function(m){m.removeEventListener("scroll",r.update,Wu)}),f&&p.removeEventListener("resize",r.update,Wu)}}const D6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:k6,data:{}};var _6={left:"right",right:"left",bottom:"top",top:"bottom"};function lc(t){return t.replace(/left|right|bottom|top/g,function(e){return _6[e]})}var z6={start:"end",end:"start"};function ux(t){return t.replace(/start|end/g,function(e){return z6[e]})}function cg(t){var e=vn(t),r=e.pageXOffset,a=e.pageYOffset;return{scrollLeft:r,scrollTop:a}}function fg(t){return Ao(Ti(t)).left+cg(t).scrollLeft}function $6(t,e){var r=vn(t),a=Ti(t),s=r.visualViewport,l=a.clientWidth,c=a.clientHeight,f=0,p=0;if(s){l=s.width,c=s.height;var d=MT();(d||!d&&e==="fixed")&&(f=s.offsetLeft,p=s.offsetTop)}return{width:l,height:c,x:f+fg(t),y:p}}function N6(t){var e,r=Ti(t),a=cg(t),s=(e=t.ownerDocument)==null?void 0:e.body,l=Qi(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),c=Qi(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),f=-a.scrollLeft+fg(t),p=-a.scrollTop;return Br(s||r).direction==="rtl"&&(f+=Qi(r.clientWidth,s?s.clientWidth:0)-l),{width:l,height:c,x:f,y:p}}function dg(t){var e=Br(t),r=e.overflow,a=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+s+a)}function _T(t){return["html","body","#document"].indexOf(ur(t))>=0?t.ownerDocument.body:Nn(t)&&dg(t)?t:_T(gf(t))}function Xs(t,e){var r;e===void 0&&(e=[]);var a=_T(t),s=a===((r=t.ownerDocument)==null?void 0:r.body),l=vn(a),c=s?[l].concat(l.visualViewport||[],dg(a)?a:[]):a,f=e.concat(c);return s?f:f.concat(Xs(gf(c)))}function Bp(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function L6(t,e){var r=Ao(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function cx(t,e,r){return e===ET?Bp($6(t,r)):ea(e)?L6(e,r):Bp(N6(Ti(t)))}function j6(t){var e=Xs(gf(t)),r=["absolute","fixed"].indexOf(Br(t).position)>=0,a=r&&Nn(t)?Ml(t):t;return ea(a)?e.filter(function(s){return ea(s)&&OT(s,a)&&ur(s)!=="body"}):[]}function U6(t,e,r,a){var s=e==="clippingParents"?j6(t):[].concat(e),l=[].concat(s,[r]),c=l[0],f=l.reduce(function(p,d){var m=cx(t,d,a);return p.top=Qi(m.top,p.top),p.right=_c(m.right,p.right),p.bottom=_c(m.bottom,p.bottom),p.left=Qi(m.left,p.left),p},cx(t,c,a));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function zT(t){var e=t.reference,r=t.element,a=t.placement,s=a?lr(a):null,l=a?Eo(a):null,c=e.x+e.width/2-r.width/2,f=e.y+e.height/2-r.height/2,p;switch(s){case an:p={x:c,y:e.y-r.height};break;case Ln:p={x:c,y:e.y+e.height};break;case jn:p={x:e.x+e.width,y:f};break;case on:p={x:e.x-r.width,y:f};break;default:p={x:e.x,y:e.y}}var d=s?ug(s):null;if(d!=null){var m=d==="y"?"height":"width";switch(l){case To:p[d]=p[d]-(e[m]/2-r[m]/2);break;case il:p[d]=p[d]+(e[m]/2-r[m]/2);break}}return p}function al(t,e){e===void 0&&(e={});var r=e,a=r.placement,s=a===void 0?t.placement:a,l=r.strategy,c=l===void 0?t.strategy:l,f=r.boundary,p=f===void 0?i6:f,d=r.rootBoundary,m=d===void 0?ET:d,y=r.elementContext,v=y===void 0?js:y,b=r.altBoundary,x=b===void 0?!1:b,S=r.padding,A=S===void 0?0:S,w=kT(typeof A!="number"?A:DT(A,wl)),D=v===js?a6:js,O=t.rects.popper,R=t.elements[x?D:v],E=U6(ea(R)?R:R.contextElement||Ti(t.elements.popper),p,m,c),k=Ao(t.elements.reference),z=zT({reference:k,element:O,placement:s}),H=Bp(Object.assign({},O,z)),L=v===js?H:k,C={top:E.top-L.top+w.top,bottom:L.bottom-E.bottom+w.bottom,left:E.left-L.left+w.left,right:L.right-E.right+w.right},_=t.modifiersData.offset;if(v===js&&_){var I=_[s];Object.keys(C).forEach(function(q){var it=[jn,Ln].indexOf(q)>=0?1:-1,lt=[an,Ln].indexOf(q)>=0?"y":"x";C[q]+=I[lt]*it})}return C}function B6(t,e){e===void 0&&(e={});var r=e,a=r.placement,s=r.boundary,l=r.rootBoundary,c=r.padding,f=r.flipVariations,p=r.allowedAutoPlacements,d=p===void 0?wT:p,m=Eo(a),y=m?f?ox:ox.filter(function(x){return Eo(x)===m}):wl,v=y.filter(function(x){return d.indexOf(x)>=0});v.length===0&&(v=y);var b=v.reduce(function(x,S){return x[S]=al(t,{placement:S,boundary:s,rootBoundary:l,padding:c})[lr(S)],x},{});return Object.keys(b).sort(function(x,S){return b[x]-b[S]})}function H6(t){if(lr(t)===og)return[];var e=lc(t);return[ux(t),e,ux(e)]}function I6(t){var e=t.state,r=t.options,a=t.name;if(!e.modifiersData[a]._skip){for(var s=r.mainAxis,l=s===void 0?!0:s,c=r.altAxis,f=c===void 0?!0:c,p=r.fallbackPlacements,d=r.padding,m=r.boundary,y=r.rootBoundary,v=r.altBoundary,b=r.flipVariations,x=b===void 0?!0:b,S=r.allowedAutoPlacements,A=e.options.placement,w=lr(A),D=w===A,O=p||(D||!x?[lc(A)]:H6(A)),R=[A].concat(O).reduce(function(ct,dt){return ct.concat(lr(dt)===og?B6(e,{placement:dt,boundary:m,rootBoundary:y,padding:d,flipVariations:x,allowedAutoPlacements:S}):dt)},[]),E=e.rects.reference,k=e.rects.popper,z=new Map,H=!0,L=R[0],C=0;C<R.length;C++){var _=R[C],I=lr(_),q=Eo(_)===To,it=[an,Ln].indexOf(I)>=0,lt=it?"width":"height",j=al(e,{placement:_,boundary:m,rootBoundary:y,altBoundary:v,padding:d}),Y=it?q?jn:on:q?Ln:an;E[lt]>k[lt]&&(Y=lc(Y));var W=lc(Y),J=[];if(l&&J.push(j[I]<=0),f&&J.push(j[Y]<=0,j[W]<=0),J.every(function(ct){return ct})){L=_,H=!1;break}z.set(_,J)}if(H)for(var $=x?3:1,Z=function(dt){var ft=R.find(function(At){var bt=z.get(At);if(bt)return bt.slice(0,dt).every(function(nt){return nt})});if(ft)return L=ft,"break"},at=$;at>0;at--){var ot=Z(at);if(ot==="break")break}e.placement!==L&&(e.modifiersData[a]._skip=!0,e.placement=L,e.reset=!0)}}const P6={name:"flip",enabled:!0,phase:"main",fn:I6,requiresIfExists:["offset"],data:{_skip:!1}};function fx(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function dx(t){return[an,jn,Ln,on].some(function(e){return t[e]>=0})}function G6(t){var e=t.state,r=t.name,a=e.rects.reference,s=e.rects.popper,l=e.modifiersData.preventOverflow,c=al(e,{elementContext:"reference"}),f=al(e,{altBoundary:!0}),p=fx(c,a),d=fx(f,s,l),m=dx(p),y=dx(d);e.modifiersData[r]={referenceClippingOffsets:p,popperEscapeOffsets:d,isReferenceHidden:m,hasPopperEscaped:y},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":y})}const Y6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:G6};function q6(t,e,r){var a=lr(t),s=[on,an].indexOf(a)>=0?-1:1,l=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,c=l[0],f=l[1];return c=c||0,f=(f||0)*s,[on,jn].indexOf(a)>=0?{x:f,y:c}:{x:c,y:f}}function V6(t){var e=t.state,r=t.options,a=t.name,s=r.offset,l=s===void 0?[0,0]:s,c=wT.reduce(function(m,y){return m[y]=q6(y,e.rects,l),m},{}),f=c[e.placement],p=f.x,d=f.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=p,e.modifiersData.popperOffsets.y+=d),e.modifiersData[a]=c}const X6={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:V6};function K6(t){var e=t.state,r=t.name;e.modifiersData[r]=zT({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Z6={name:"popperOffsets",enabled:!0,phase:"read",fn:K6,data:{}};function Q6(t){return t==="x"?"y":"x"}function F6(t){var e=t.state,r=t.options,a=t.name,s=r.mainAxis,l=s===void 0?!0:s,c=r.altAxis,f=c===void 0?!1:c,p=r.boundary,d=r.rootBoundary,m=r.altBoundary,y=r.padding,v=r.tether,b=v===void 0?!0:v,x=r.tetherOffset,S=x===void 0?0:x,A=al(e,{boundary:p,rootBoundary:d,padding:y,altBoundary:m}),w=lr(e.placement),D=Eo(e.placement),O=!D,R=ug(w),E=Q6(R),k=e.modifiersData.popperOffsets,z=e.rects.reference,H=e.rects.popper,L=typeof S=="function"?S(Object.assign({},e.rects,{placement:e.placement})):S,C=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),_=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,I={x:0,y:0};if(k){if(l){var q,it=R==="y"?an:on,lt=R==="y"?Ln:jn,j=R==="y"?"height":"width",Y=k[R],W=Y+A[it],J=Y-A[lt],$=b?-H[j]/2:0,Z=D===To?z[j]:H[j],at=D===To?-H[j]:-z[j],ot=e.elements.arrow,ct=b&&ot?lg(ot):{width:0,height:0},dt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:RT(),ft=dt[it],At=dt[lt],bt=Vs(0,z[j],ct[j]),nt=O?z[j]/2-$-bt-ft-C.mainAxis:Z-bt-ft-C.mainAxis,ht=O?-z[j]/2+$+bt+At+C.mainAxis:at+bt+At+C.mainAxis,vt=e.elements.arrow&&Ml(e.elements.arrow),ut=vt?R==="y"?vt.clientTop||0:vt.clientLeft||0:0,$t=(q=_==null?void 0:_[R])!=null?q:0,gt=Y+nt-$t-ut,Yt=Y+ht-$t,re=Vs(b?_c(W,gt):W,Y,b?Qi(J,Yt):J);k[R]=re,I[R]=re-Y}if(f){var jt,Be=R==="x"?an:on,Ae=R==="x"?Ln:jn,Ee=k[E],De=E==="y"?"height":"width",St=Ee+A[Be],Ci=Ee-A[Ae],Vr=[an,on].indexOf(w)!==-1,Ai=(jt=_==null?void 0:_[E])!=null?jt:0,In=Vr?St:Ee-z[De]-H[De]-Ai+C.altAxis,ve=Vr?Ee+z[De]+H[De]-Ai-C.altAxis:Ci,Fe=b&&Vr?S6(In,Ee,ve):Vs(b?In:St,Ee,b?ve:Ci);k[E]=Fe,I[E]=Fe-Ee}e.modifiersData[a]=I}}const W6={name:"preventOverflow",enabled:!0,phase:"main",fn:F6,requiresIfExists:["offset"]};function J6(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function t$(t){return t===vn(t)||!Nn(t)?cg(t):J6(t)}function e$(t){var e=t.getBoundingClientRect(),r=Co(e.width)/t.offsetWidth||1,a=Co(e.height)/t.offsetHeight||1;return r!==1||a!==1}function n$(t,e,r){r===void 0&&(r=!1);var a=Nn(e),s=Nn(e)&&e$(e),l=Ti(e),c=Ao(t,s,r),f={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(a||!a&&!r)&&((ur(e)!=="body"||dg(l))&&(f=t$(e)),Nn(e)?(p=Ao(e,!0),p.x+=e.clientLeft,p.y+=e.clientTop):l&&(p.x=fg(l))),{x:c.left+f.scrollLeft-p.x,y:c.top+f.scrollTop-p.y,width:c.width,height:c.height}}function r$(t){var e=new Map,r=new Set,a=[];t.forEach(function(l){e.set(l.name,l)});function s(l){r.add(l.name);var c=[].concat(l.requires||[],l.requiresIfExists||[]);c.forEach(function(f){if(!r.has(f)){var p=e.get(f);p&&s(p)}}),a.push(l)}return t.forEach(function(l){r.has(l.name)||s(l)}),a}function i$(t){var e=r$(t);return m6.reduce(function(r,a){return r.concat(e.filter(function(s){return s.phase===a}))},[])}function a$(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function o$(t){var e=t.reduce(function(r,a){var s=r[a.name];return r[a.name]=s?Object.assign({},s,a,{options:Object.assign({},s.options,a.options),data:Object.assign({},s.data,a.data)}):a,r},{});return Object.keys(e).map(function(r){return e[r]})}var hx={placement:"bottom",modifiers:[],strategy:"absolute"};function px(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function s$(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,a=r===void 0?[]:r,s=e.defaultOptions,l=s===void 0?hx:s;return function(f,p,d){d===void 0&&(d=l);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},hx,l),modifiersData:{},elements:{reference:f,popper:p},attributes:{},styles:{}},y=[],v=!1,b={state:m,setOptions:function(w){var D=typeof w=="function"?w(m.options):w;S(),m.options=Object.assign({},l,m.options,D),m.scrollParents={reference:ea(f)?Xs(f):f.contextElement?Xs(f.contextElement):[],popper:Xs(p)};var O=i$(o$([].concat(a,m.options.modifiers)));return m.orderedModifiers=O.filter(function(R){return R.enabled}),x(),b.update()},forceUpdate:function(){if(!v){var w=m.elements,D=w.reference,O=w.popper;if(px(D,O)){m.rects={reference:n$(D,Ml(O),m.options.strategy==="fixed"),popper:lg(O)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(C){return m.modifiersData[C.name]=Object.assign({},C.data)});for(var R=0;R<m.orderedModifiers.length;R++){if(m.reset===!0){m.reset=!1,R=-1;continue}var E=m.orderedModifiers[R],k=E.fn,z=E.options,H=z===void 0?{}:z,L=E.name;typeof k=="function"&&(m=k({state:m,options:H,name:L,instance:b})||m)}}}},update:a$(function(){return new Promise(function(A){b.forceUpdate(),A(m)})}),destroy:function(){S(),v=!0}};if(!px(f,p))return b;b.setOptions(d).then(function(A){!v&&d.onFirstUpdate&&d.onFirstUpdate(A)});function x(){m.orderedModifiers.forEach(function(A){var w=A.name,D=A.options,O=D===void 0?{}:D,R=A.effect;if(typeof R=="function"){var E=R({state:m,name:w,instance:b,options:O}),k=function(){};y.push(E||k)}})}function S(){y.forEach(function(A){return A()}),y=[]}return b}}var l$=[D6,Z6,R6,v6,X6,P6,W6,E6,Y6],u$=s$({defaultModifiers:l$}),c$=Hx();function mx(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function f$(t){var e;return parseInt(U.version,10)>=19?((e=t==null?void 0:t.props)==null?void 0:e.ref)||null:(t==null?void 0:t.ref)||null}function d$(t){return typeof t=="function"?t():t}const h$=U.forwardRef(function(e,r){const{children:a,container:s,disablePortal:l=!1}=e,[c,f]=U.useState(null),p=Si(U.isValidElement(a)?f$(a):null,r);if(Te(()=>{l||f(d$(s)||document.body)},[s,l]),Te(()=>{if(c&&!l)return mx(r,c),()=>{mx(r,null)}},[r,c,l]),l){if(U.isValidElement(a)){const d={ref:p};return U.cloneElement(a,d)}return a}return c&&c$.createPortal(a,c)});function p$(t){return Le("MuiPopper",t)}je("MuiPopper",["root"]);function m$(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function Hp(t){return typeof t=="function"?t():t}function g$(t){return t.nodeType!==void 0}const y$=t=>{const{classes:e}=t;return Ue({root:["root"]},p$,e)},v$={},b$=U.forwardRef(function(e,r){const{anchorEl:a,children:s,direction:l,disablePortal:c,modifiers:f,open:p,placement:d,popperOptions:m,popperRef:y,slotProps:v={},slots:b={},TransitionProps:x,ownerState:S,...A}=e,w=U.useRef(null),D=Si(w,r),O=U.useRef(null),R=Si(O,y),E=U.useRef(R);Te(()=>{E.current=R},[R]),U.useImperativeHandle(y,()=>O.current,[]);const k=m$(d,l),[z,H]=U.useState(k),[L,C]=U.useState(Hp(a));U.useEffect(()=>{O.current&&O.current.forceUpdate()}),U.useEffect(()=>{a&&C(Hp(a))},[a]),Te(()=>{if(!L||!p)return;const lt=W=>{H(W.placement)};let j=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{lt(W)}}];f!=null&&(j=j.concat(f)),m&&m.modifiers!=null&&(j=j.concat(m.modifiers));const Y=u$(L,w.current,{placement:k,...m,modifiers:j});return E.current(Y),()=>{Y.destroy(),E.current(null)}},[L,c,f,p,m,k]);const _={placement:z};x!==null&&(_.TransitionProps=x);const I=y$(e),q=b.root??"div",it=_r({elementType:q,externalSlotProps:v.root,externalForwardedProps:A,additionalProps:{role:"tooltip",ref:D},ownerState:e,className:I.root});return N.jsx(q,{...it,children:typeof s=="function"?s(_):s})}),x$=U.forwardRef(function(e,r){const{anchorEl:a,children:s,container:l,direction:c="ltr",disablePortal:f=!1,keepMounted:p=!1,modifiers:d,open:m,placement:y="bottom",popperOptions:v=v$,popperRef:b,style:x,transition:S=!1,slotProps:A={},slots:w={},...D}=e,[O,R]=U.useState(!0),E=()=>{R(!1)},k=()=>{R(!0)};if(!p&&!m&&(!S||O))return null;let z;if(l)z=l;else if(a){const C=Hp(a);z=C&&g$(C)?Sp(C).body:Sp(null).body}const H=!m&&p&&(!S||O)?"none":void 0,L=S?{in:m,onEnter:E,onExited:k}:void 0;return N.jsx(h$,{disablePortal:f,container:z,children:N.jsx(b$,{anchorEl:a,direction:c,disablePortal:f,modifiers:d,ref:r,open:S?!O:m,placement:y,popperOptions:v,popperRef:b,slotProps:A,slots:w,...D,style:{position:"fixed",top:0,left:0,display:H,...x},TransitionProps:L,children:s})})}),S$=zt(x$,{name:"MuiPopper",slot:"Root"})({}),T$=U.forwardRef(function(e,r){const a=dm(),s=oa({props:e,name:"MuiPopper"}),{anchorEl:l,component:c,components:f,componentsProps:p,container:d,disablePortal:m,keepMounted:y,modifiers:v,open:b,placement:x,popperOptions:S,popperRef:A,transition:w,slots:D,slotProps:O,...R}=s,E=(D==null?void 0:D.root)??(f==null?void 0:f.Root),k={anchorEl:l,container:d,disablePortal:m,keepMounted:y,modifiers:v,open:b,placement:x,popperOptions:S,popperRef:A,transition:w,...R};return N.jsx(S$,{as:c,direction:a?"rtl":"ltr",slots:{root:E},slotProps:O??p,...k,ref:r})});function C$(t){const{children:e,defer:r=!1,fallback:a=null}=t,[s,l]=U.useState(!1);return Te(()=>{r||l(!0)},[r]),U.useEffect(()=>{r&&l(!0)},[r]),s?e:a}function A$(t){let e,r;const a=()=>{r=null,t(...e)};function s(...l){e=l,r||(r=requestAnimationFrame(a))}return s.clear=()=>{r&&(cancelAnimationFrame(r),r=null)},s}function E$(){const t=ne(),e=wt(t,Q2),r=wt(t,na);return e!==void 0?"polar":r!==void 0?"cartesian":"none"}const w$=["trigger","classes","children"],M$=()=>!1,O$=zt(T$,{name:"MuiChartsTooltip",slot:"Root"})(({theme:t})=>({pointerEvents:"none",zIndex:t.zIndex.modal}));function R$(t){const e=Kn({props:t,name:"MuiChartsTooltipContainer"}),{trigger:r="axis",classes:a,children:s}=e,l=te(e,w$),c=ng(),f=mf(a),p=Zz(),d=Wz(),m=U.useRef(null),y=uf(()=>({x:0,y:0})),v=E$(),b=ne(),x=wt(b,r==="axis"?v==="polar"&&t6||v==="cartesian"&&h_||M$:u_);U.useEffect(()=>{const O=c.current;if(O===null)return()=>{};const R=A$(()=>{var k;return(k=m.current)==null?void 0:k.update()}),E=k=>{y.current={x:k.clientX,y:k.clientY},R()};return O.addEventListener("pointerdown",E),O.addEventListener("pointermove",E),()=>{O.removeEventListener("pointerdown",E),O.removeEventListener("pointermove",E),R.clear()}},[c,y]);const S=U.useMemo(()=>({getBoundingClientRect:()=>({x:y.current.x,y:y.current.y,top:y.current.y,left:y.current.x,right:y.current.x,bottom:y.current.y,width:0,height:0,toJSON:()=>""})}),[y]),A=(p==null?void 0:p.pointerType)==="mouse"||d,w=(p==null?void 0:p.pointerType)==="touch"||!d,D=U.useMemo(()=>[{name:"offset",options:{offset:()=>w?[0,64]:[0,8]}},...A?[]:[{name:"flip",options:{fallbackPlacements:["top-end","top-start","bottom-end","bottom"]}}],{name:"preventOverflow",options:{altAxis:!0}}],[A,w]);return r==="none"?null:N.jsx(C$,{children:x&&N.jsx(O$,G({className:f==null?void 0:f.root,open:x,placement:A?"right-start":"top",popperRef:m,anchorEl:S,modifiers:D},l,{children:s}))})}function k$(t){const{classes:e,trigger:r="axis"}=t,a=mf(e);return N.jsx(R$,G({},t,{classes:e,children:r==="axis"?N.jsx(r6,{classes:a}):N.jsx(Vz,{classes:a})}))}const D$=t=>({type:"series",color:t.color,label:t.label,seriesId:t.seriesId,itemId:t.itemId});function _$(t){return Le("MuiChartsLegend",t)}const z$=t=>{const{classes:e,direction:r}=t;return Ue({root:["root",r],item:["item"],mark:["mark"],label:["label"],series:["series"]},_$,e)},gx=je("MuiChartsLegend",["root","item","series","mark","label","vertical","horizontal"]),$$=["slots","slotProps"],N$=["ownerState"],L$=(t,e,r,a)=>{function s(l,c){var E;const f=Kn({props:l,name:t}),p=typeof r.defaultProps=="function"?r.defaultProps(f):r.defaultProps??{},d=Ji(p,f),m=d,{slots:y,slotProps:v}=m,b=te(m,$$),x=pl(),S=(E=r.classesResolver)==null?void 0:E.call(r,d,x),A=(y==null?void 0:y[e])??a,w=r.propagateSlots&&!(y!=null&&y[e]),D=_r({elementType:A,externalSlotProps:v==null?void 0:v[e],additionalProps:G({},b,{classes:S},w&&{slots:y,slotProps:v}),ownerState:{}}),O=te(D,N$),R=G({},O);for(const k of r.omitProps??[])delete R[k];return N.jsx(A,G({},R,{ref:c}))}return U.forwardRef(s)};function j$(t){return Le("MuiChartsLabel",t)}je("MuiChartsLabel",["root"]);const U$=t=>Ue({root:["root"]},j$,t.classes),B$=["children","className","classes"],H$=vT("MuiChartsLabel",{classesResolver:U$},function(e,r){const{children:a,className:s,classes:l}=e,c=te(e,B$);return N.jsx("span",G({className:Jt(l==null?void 0:l.root,s),ref:r},c,{children:a}))}),I$=["direction","onItemClick","className","classes"],P$=zt("ul",{name:"MuiChartsLegend",slot:"Root"})(({ownerState:t,theme:e})=>G({},e.typography.caption,{color:(e.vars||e).palette.text.primary,lineHeight:"100%",display:"flex",flexDirection:t.direction==="vertical"?"column":"row",alignItems:t.direction==="vertical"?void 0:"center",flexShrink:0,gap:e.spacing(2),listStyleType:"none",paddingInlineStart:0,marginBlock:e.spacing(1),marginInline:e.spacing(1),flexWrap:"wrap",li:{display:t.direction==="horizontal"?"inline-flex":void 0},[`button.${gx.series}`]:{background:"none",border:"none",padding:0,fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",letterSpacing:"inherit",color:"inherit"},[`& .${gx.series}`]:{display:t.direction==="vertical"?"flex":"inline-flex",alignItems:"center",gap:e.spacing(1)}})),G$=L$("MuiChartsLegend","legend",{defaultProps:{direction:"horizontal"},omitProps:["position"],classesResolver:z$},U.forwardRef(function(e,r){const a=h4(),{onItemClick:s,className:l,classes:c}=e,f=te(e,I$);if(a.items.length===0)return null;const p=s?"button":"div";return N.jsx(P$,G({className:Jt(c==null?void 0:c.root,l),ref:r},f,{ownerState:e,children:a.items.map((d,m)=>N.jsx("li",{className:c==null?void 0:c.item,"data-series":d.id,children:N.jsxs(p,{className:c==null?void 0:c.series,role:s?"button":void 0,type:s?"button":void 0,onClick:s?y=>s(y,D$(d),m):void 0,children:[N.jsx(Dc,{className:c==null?void 0:c.mark,color:d.color,type:d.markType}),N.jsx(H$,{className:c==null?void 0:c.label,children:d.label})]})},d.id))}))}));function Y$(t){return Le("MuiChartsAxisHighlight",t)}je("MuiChartsAxisHighlight",["root"]);const zc=zt("path",{name:"MuiChartsAxisHighlight",slot:"Root"})(({theme:t})=>({pointerEvents:"none",variants:[{props:{axisHighlight:"band"},style:G({fill:"white",fillOpacity:.1},t.applyStyles("light",{fill:"gray"}))},{props:{axisHighlight:"line"},style:G({strokeDasharray:"5 2",stroke:"#ffffff"},t.applyStyles("light",{stroke:"#000000"}))}]}));function q$(t){const{type:e,classes:r}=t,{left:a,width:s}=Hn(),l=ne(),c=wt(l,v_),f=wt(l,xn);return c.length===0?null:c.map(({axisId:p,value:d})=>{const y=f.axis[p].scale,v=Rc(y),b=e==="band"&&d!==null&&Bn(y);return N.jsxs(U.Fragment,{children:[b&&y(d)!==void 0&&N.jsx(zc,{d:`M ${a} ${y(d)-(y.step()-y.bandwidth())/2} l 0 ${y.step()} l ${s} 0 l 0 ${-y.step()} Z`,className:r.root,ownerState:{axisHighlight:"band"}}),e==="line"&&d!==null&&N.jsx(zc,{d:`M ${a} ${v(d)} L ${a+s} ${v(d)}`,className:r.root,ownerState:{axisHighlight:"line"}})]},`${p}-${d}`)})}function V$(t){const{type:e,classes:r}=t,{top:a,height:s}=Hn(),l=ne(),c=wt(l,y_),f=wt(l,bn);return c.length===0?null:c.map(({axisId:p,value:d})=>{const y=f.axis[p].scale,v=Rc(y),b=e==="band"&&d!==null&&Bn(y);return N.jsxs(U.Fragment,{children:[b&&y(d)!==void 0&&N.jsx(zc,{d:`M ${y(d)-(y.step()-y.bandwidth())/2} ${a} l ${y.step()} 0 l 0 ${s} l ${-y.step()} 0 Z`,className:r.root,ownerState:{axisHighlight:"band"}}),e==="line"&&d!==null&&N.jsx(zc,{d:`M ${v(d)} ${a} L ${v(d)} ${a+s}`,className:r.root,ownerState:{axisHighlight:"line"}})]},`${p}-${d}`)})}const X$=()=>Ue({root:["root"]},Y$);function K$(t){const{x:e,y:r}=t,a=X$();return N.jsxs(U.Fragment,{children:[e&&e!=="none"&&N.jsx(V$,{type:e,classes:a}),r&&r!=="none"&&N.jsx(q$,{type:r,classes:a})]})}function Z$(t){const{id:e,offset:r}=t,{left:a,top:s,width:l,height:c}=Hn(),f=G({top:0,right:0,bottom:0,left:0},r);return N.jsx("clipPath",{id:e,children:N.jsx("rect",{x:a-f.left,y:s-f.top,width:l+f.left+f.right,height:c+f.top+f.bottom})})}function Q$(t){return Le("MuiChartsGrid",t)}const yx=je("MuiChartsGrid",["root","line","horizontalLine","verticalLine"]),F$=zt("g",{name:"MuiChartsGrid",slot:"Root",overridesResolver:(t,e)=>[{[`&.${yx.verticalLine}`]:e.verticalLine},{[`&.${yx.horizontalLine}`]:e.horizontalLine},e.root]})({}),$T=zt("line",{name:"MuiChartsGrid",slot:"Line"})(({theme:t})=>({stroke:(t.vars||t).palette.divider,shapeRendering:"crispEdges",strokeWidth:1}));function W$(t){const{axis:e,start:r,end:a,classes:s}=t,{scale:l,tickNumber:c,tickInterval:f}=e,p=pf({scale:l,tickNumber:c,tickInterval:f,direction:"x"});return N.jsx(U.Fragment,{children:p.map(({value:d,offset:m})=>{var y;return N.jsx($T,{y1:r,y2:a,x1:m,x2:m,className:s.verticalLine},`vertical-${((y=d==null?void 0:d.getTime)==null?void 0:y.call(d))??d}`)})})}function J$(t){const{axis:e,start:r,end:a,classes:s}=t,{scale:l,tickNumber:c,tickInterval:f}=e,p=pf({scale:l,tickNumber:c,tickInterval:f,direction:"y"});return N.jsx(U.Fragment,{children:p.map(({value:d,offset:m})=>{var y;return N.jsx($T,{y1:m,y2:m,x1:r,x2:a,className:s.horizontalLine},`horizontal-${((y=d==null?void 0:d.getTime)==null?void 0:y.call(d))??d}`)})})}const tN=["vertical","horizontal"],eN=({classes:t})=>Ue({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},Q$,t);function nN(t){const e=Kn({props:t,name:"MuiChartsGrid"}),r=Hn(),{vertical:a,horizontal:s}=e,l=te(e,tN),{xAxis:c,xAxisIds:f}=Yr(),{yAxis:p,yAxisIds:d}=qr(),m=eN(e),y=p[d[0]],v=c[f[0]];return N.jsxs(F$,G({},l,{className:m.root,children:[a&&N.jsx(W$,{axis:v,start:r.top,end:r.height+r.top,classes:m}),s&&N.jsx(J$,{axis:y,start:r.left,end:r.width+r.left,classes:m})]}))}const rN=["message"],iN=zt("text")(({theme:t})=>G({},t.typography.body2,{stroke:"none",fill:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function aN(t){const{message:e}=t,r=te(t,rN),{top:a,left:s,height:l,width:c}=Hn(),{localeText:f}=J2();return N.jsx(iN,G({x:s+c/2,y:a+l/2},r,{children:e??f.loading}))}const oN=["message"],sN=zt("text")(({theme:t})=>G({},t.typography.body2,{stroke:"none",fill:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function lN(t){const{message:e}=t,r=te(t,oN),{top:a,left:s,height:l,width:c}=Hn(),{localeText:f}=J2();return N.jsx(sN,G({x:s+c/2,y:a+l/2},r,{children:e??f.noData}))}function uN(){const t=hf();return Object.values(t).every(e=>{if(!e)return!0;const{series:r,seriesOrder:a}=e;return a.every(s=>r[s].data.length===0)})}function cN(t){var r,a,s,l;const e=uN();if(t.loading){const c=((r=t.slots)==null?void 0:r.loadingOverlay)??aN;return N.jsx(c,G({},(a=t.slotProps)==null?void 0:a.loadingOverlay))}if(e){const c=((s=t.slots)==null?void 0:s.noDataOverlay)??lN;return N.jsx(c,G({},(l=t.slotProps)==null?void 0:l.noDataOverlay))}return null}const fN=[Cl,Ro,xl,Do],dN=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","axisHighlight","grid","children","slots","slotProps","skipAnimation","loading","layout","onItemClick","highlightedItem","onHighlightChange","borderRadius","barLabel","className","hideLegend","showToolbar"],hN=t=>{var nt,ht,vt,ut,$t;const{xAxis:e,yAxis:r,series:a,width:s,height:l,margin:c,colors:f,dataset:p,sx:d,axisHighlight:m,grid:y,children:v,slots:b,slotProps:x,skipAnimation:S,loading:A,layout:w,onItemClick:D,highlightedItem:O,onHighlightChange:R,borderRadius:E,barLabel:k,className:z}=t,H=te(t,dN),C=`${Kc()}-clip-path`,_=w==="horizontal"||w===void 0&&a.some(gt=>gt.layout==="horizontal"),I=U.useMemo(()=>[{id:vm,scaleType:"band",data:Array.from({length:Math.max(...a.map(gt=>(gt.data??p??[]).length))},(gt,Yt)=>Yt)}],[p,a]),q=U.useMemo(()=>[{id:bm,scaleType:"band",data:Array.from({length:Math.max(...a.map(gt=>(gt.data??p??[]).length))},(gt,Yt)=>Yt)}],[p,a]),it=U.useMemo(()=>a.map(gt=>G({type:"bar"},gt,{layout:_?"horizontal":"vertical"})),[_,a]),lt=_?void 0:I,j=U.useMemo(()=>e?_?e:e.map(gt=>G({scaleType:"band"},gt)):lt,[lt,_,e]),Y=_?q:void 0,W=U.useMemo(()=>r?_?r.map(gt=>G({scaleType:"band"},gt)):r:Y,[Y,_,r]),J=G({},H,{series:it,width:s,height:l,margin:c,colors:f,dataset:p,xAxis:j,yAxis:W,highlightedItem:O,onHighlightChange:R,disableAxisListener:((nt=x==null?void 0:x.tooltip)==null?void 0:nt.trigger)!=="axis"&&(m==null?void 0:m.x)==="none"&&(m==null?void 0:m.y)==="none",className:z,skipAnimation:S,plugins:fN}),$={onItemClick:D,slots:b,slotProps:x,borderRadius:E,barLabel:k},Z={vertical:y==null?void 0:y.vertical,horizontal:y==null?void 0:y.horizontal},at={clipPath:`url(#${C})`},ot={id:C},ct={slots:b,slotProps:x,loading:A},dt={slots:b,slotProps:x},ft=G({},_?{y:"band"}:{x:"band"},m),At={slots:b,slotProps:x};return{chartsWrapperProps:{sx:d,legendPosition:(vt=(ht=t.slotProps)==null?void 0:ht.legend)==null?void 0:vt.position,legendDirection:($t=(ut=t.slotProps)==null?void 0:ut.legend)==null?void 0:$t.direction},chartContainerProps:J,barPlotProps:$,gridProps:Z,clipPathProps:ot,clipPathGroupProps:at,overlayProps:ct,chartsAxisProps:dt,axisHighlightProps:ft,legendProps:At,children:v}};function vx(t){try{return t.matches(":focus-visible")}catch{}return!1}class $c{constructor(){Et(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new $c}static use(){const e=uf($c.create).current,[r,a]=U.useState(!1);return e.shouldMount=r,e.setShouldMount=a,U.useEffect(e.mountEffect,[r]),e}mount(){return this.mounted||(this.mounted=mN(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...e)})}stop(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...e)})}pulsate(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...e)})}}function pN(){return $c.use()}function mN(){let t,e;const r=new Promise((a,s)=>{t=a,e=s});return r.resolve=t,r.reject=e,r}function Ip(t,e){return Ip=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Ip(t,e)}function gN(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Ip(t,e)}const bx=io.createContext(null);function yN(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hg(t,e){var r=function(l){return e&&U.isValidElement(l)?e(l):l},a=Object.create(null);return t&&U.Children.map(t,function(s){return s}).forEach(function(s){a[s.key]=r(s)}),a}function vN(t,e){t=t||{},e=e||{};function r(m){return m in e?e[m]:t[m]}var a=Object.create(null),s=[];for(var l in t)l in e?s.length&&(a[l]=s,s=[]):s.push(l);var c,f={};for(var p in e){if(a[p])for(c=0;c<a[p].length;c++){var d=a[p][c];f[a[p][c]]=r(d)}f[p]=r(p)}for(c=0;c<s.length;c++)f[s[c]]=r(s[c]);return f}function Vi(t,e,r){return r[e]!=null?r[e]:t.props[e]}function bN(t,e){return hg(t.children,function(r){return U.cloneElement(r,{onExited:e.bind(null,r),in:!0,appear:Vi(r,"appear",t),enter:Vi(r,"enter",t),exit:Vi(r,"exit",t)})})}function xN(t,e,r){var a=hg(t.children),s=vN(e,a);return Object.keys(s).forEach(function(l){var c=s[l];if(U.isValidElement(c)){var f=l in e,p=l in a,d=e[l],m=U.isValidElement(d)&&!d.props.in;p&&(!f||m)?s[l]=U.cloneElement(c,{onExited:r.bind(null,c),in:!0,exit:Vi(c,"exit",t),enter:Vi(c,"enter",t)}):!p&&f&&!m?s[l]=U.cloneElement(c,{in:!1}):p&&f&&U.isValidElement(d)&&(s[l]=U.cloneElement(c,{onExited:r.bind(null,c),in:d.props.in,exit:Vi(c,"exit",t),enter:Vi(c,"enter",t)}))}}),s}var SN=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},TN={component:"div",childFactory:function(e){return e}},pg=function(t){gN(e,t);function e(a,s){var l;l=t.call(this,a,s)||this;var c=l.handleExited.bind(yN(l));return l.state={contextValue:{isMounting:!0},handleExited:c,firstRender:!0},l}var r=e.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(s,l){var c=l.children,f=l.handleExited,p=l.firstRender;return{children:p?bN(s,f):xN(s,c,f),firstRender:!1}},r.handleExited=function(s,l){var c=hg(this.props.children);s.key in c||(s.props.onExited&&s.props.onExited(l),this.mounted&&this.setState(function(f){var p=G({},f.children);return delete p[s.key],{children:p}}))},r.render=function(){var s=this.props,l=s.component,c=s.childFactory,f=te(s,["component","childFactory"]),p=this.state.contextValue,d=SN(this.state.children).map(c);return delete f.appear,delete f.enter,delete f.exit,l===null?io.createElement(bx.Provider,{value:p},d):io.createElement(bx.Provider,{value:p},io.createElement(l,f,d))},e}(io.Component);pg.propTypes={};pg.defaultProps=TN;const CN=[];function AN(t){U.useEffect(t,CN)}class mg{constructor(){Et(this,"currentId",null);Et(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Et(this,"disposeEffect",()=>this.clear)}static create(){return new mg}start(e,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},e)}}function EN(){const t=uf(mg.create).current;return AN(t.disposeEffect),t}function wN(t){const{className:e,classes:r,pulsate:a=!1,rippleX:s,rippleY:l,rippleSize:c,in:f,onExited:p,timeout:d}=t,[m,y]=U.useState(!1),v=Jt(e,r.ripple,r.rippleVisible,a&&r.ripplePulsate),b={width:c,height:c,top:-(c/2)+l,left:-(c/2)+s},x=Jt(r.child,m&&r.childLeaving,a&&r.childPulsate);return!f&&!m&&y(!0),U.useEffect(()=>{if(!f&&p!=null){const S=setTimeout(p,d);return()=>{clearTimeout(S)}}},[p,f,d]),N.jsx("span",{className:v,style:b,children:N.jsx("span",{className:x})})}const kn=je("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Pp=550,MN=80,ON=cl` 124 + 0% { 125 + transform: scale(0); 126 + opacity: 0.1; 127 + } 128 + 129 + 100% { 130 + transform: scale(1); 131 + opacity: 0.3; 132 + } 133 + `,RN=cl` 134 + 0% { 135 + opacity: 1; 136 + } 137 + 138 + 100% { 139 + opacity: 0; 140 + } 141 + `,kN=cl` 142 + 0% { 143 + transform: scale(1); 144 + } 145 + 146 + 50% { 147 + transform: scale(0.92); 148 + } 149 + 150 + 100% { 151 + transform: scale(1); 152 + } 153 + `,DN=zt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),_N=zt(wN,{name:"MuiTouchRipple",slot:"Ripple"})` 154 + opacity: 0; 155 + position: absolute; 156 + 157 + &.${kn.rippleVisible} { 158 + opacity: 0.3; 159 + transform: scale(1); 160 + animation-name: ${ON}; 161 + animation-duration: ${Pp}ms; 162 + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; 163 + } 164 + 165 + &.${kn.ripplePulsate} { 166 + animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms; 167 + } 168 + 169 + & .${kn.child} { 170 + opacity: 1; 171 + display: block; 172 + width: 100%; 173 + height: 100%; 174 + border-radius: 50%; 175 + background-color: currentColor; 176 + } 177 + 178 + & .${kn.childLeaving} { 179 + opacity: 0; 180 + animation-name: ${RN}; 181 + animation-duration: ${Pp}ms; 182 + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; 183 + } 184 + 185 + & .${kn.childPulsate} { 186 + position: absolute; 187 + /* @noflip */ 188 + left: 0px; 189 + top: 0; 190 + animation-name: ${kN}; 191 + animation-duration: 2500ms; 192 + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; 193 + animation-iteration-count: infinite; 194 + animation-delay: 200ms; 195 + } 196 + `,zN=U.forwardRef(function(e,r){const a=oa({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:l={},className:c,...f}=a,[p,d]=U.useState([]),m=U.useRef(0),y=U.useRef(null);U.useEffect(()=>{y.current&&(y.current(),y.current=null)},[p]);const v=U.useRef(!1),b=EN(),x=U.useRef(null),S=U.useRef(null),A=U.useCallback(R=>{const{pulsate:E,rippleX:k,rippleY:z,rippleSize:H,cb:L}=R;d(C=>[...C,N.jsx(_N,{classes:{ripple:Jt(l.ripple,kn.ripple),rippleVisible:Jt(l.rippleVisible,kn.rippleVisible),ripplePulsate:Jt(l.ripplePulsate,kn.ripplePulsate),child:Jt(l.child,kn.child),childLeaving:Jt(l.childLeaving,kn.childLeaving),childPulsate:Jt(l.childPulsate,kn.childPulsate)},timeout:Pp,pulsate:E,rippleX:k,rippleY:z,rippleSize:H},m.current)]),m.current+=1,y.current=L},[l]),w=U.useCallback((R={},E={},k=()=>{})=>{const{pulsate:z=!1,center:H=s||E.pulsate,fakeElement:L=!1}=E;if((R==null?void 0:R.type)==="mousedown"&&v.current){v.current=!1;return}(R==null?void 0:R.type)==="touchstart"&&(v.current=!0);const C=L?null:S.current,_=C?C.getBoundingClientRect():{width:0,height:0,left:0,top:0};let I,q,it;if(H||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)I=Math.round(_.width/2),q=Math.round(_.height/2);else{const{clientX:lt,clientY:j}=R.touches&&R.touches.length>0?R.touches[0]:R;I=Math.round(lt-_.left),q=Math.round(j-_.top)}if(H)it=Math.sqrt((2*_.width**2+_.height**2)/3),it%2===0&&(it+=1);else{const lt=Math.max(Math.abs((C?C.clientWidth:0)-I),I)*2+2,j=Math.max(Math.abs((C?C.clientHeight:0)-q),q)*2+2;it=Math.sqrt(lt**2+j**2)}R!=null&&R.touches?x.current===null&&(x.current=()=>{A({pulsate:z,rippleX:I,rippleY:q,rippleSize:it,cb:k})},b.start(MN,()=>{x.current&&(x.current(),x.current=null)})):A({pulsate:z,rippleX:I,rippleY:q,rippleSize:it,cb:k})},[s,A,b]),D=U.useCallback(()=>{w({},{pulsate:!0})},[w]),O=U.useCallback((R,E)=>{if(b.clear(),(R==null?void 0:R.type)==="touchend"&&x.current){x.current(),x.current=null,b.start(0,()=>{O(R,E)});return}x.current=null,d(k=>k.length>0?k.slice(1):k),y.current=E},[b]);return U.useImperativeHandle(r,()=>({pulsate:D,start:w,stop:O}),[D,w,O]),N.jsx(DN,{className:Jt(kn.root,l.root,c),ref:S,...f,children:N.jsx(pg,{component:null,exit:!0,children:p})})});function $N(t){return Le("MuiButtonBase",t)}const NN=je("MuiButtonBase",["root","disabled","focusVisible"]),LN=t=>{const{disabled:e,focusVisible:r,focusVisibleClassName:a,classes:s}=t,c=Ue({root:["root",e&&"disabled",r&&"focusVisible"]},$N,s);return r&&a&&(c.root+=` ${a}`),c},jN=zt("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${NN.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),NT=U.forwardRef(function(e,r){const a=oa({props:e,name:"MuiButtonBase"}),{action:s,centerRipple:l=!1,children:c,className:f,component:p="button",disabled:d=!1,disableRipple:m=!1,disableTouchRipple:y=!1,focusRipple:v=!1,focusVisibleClassName:b,LinkComponent:x="a",onBlur:S,onClick:A,onContextMenu:w,onDragLeave:D,onFocus:O,onFocusVisible:R,onKeyDown:E,onKeyUp:k,onMouseDown:z,onMouseLeave:H,onMouseUp:L,onTouchEnd:C,onTouchMove:_,onTouchStart:I,tabIndex:q=0,TouchRippleProps:it,touchRippleRef:lt,type:j,...Y}=a,W=U.useRef(null),J=pN(),$=Si(J.ref,lt),[Z,at]=U.useState(!1);d&&Z&&at(!1),U.useImperativeHandle(s,()=>({focusVisible:()=>{at(!0),W.current.focus()}}),[]);const ot=J.shouldMount&&!m&&!d;U.useEffect(()=>{Z&&v&&!m&&J.pulsate()},[m,v,Z,J]);const ct=Or(J,"start",z,y),dt=Or(J,"stop",w,y),ft=Or(J,"stop",D,y),At=Or(J,"stop",L,y),bt=Or(J,"stop",St=>{Z&&St.preventDefault(),H&&H(St)},y),nt=Or(J,"start",I,y),ht=Or(J,"stop",C,y),vt=Or(J,"stop",_,y),ut=Or(J,"stop",St=>{vx(St.target)||at(!1),S&&S(St)},!1),$t=$n(St=>{W.current||(W.current=St.currentTarget),vx(St.target)&&(at(!0),R&&R(St)),O&&O(St)}),gt=()=>{const St=W.current;return p&&p!=="button"&&!(St.tagName==="A"&&St.href)},Yt=$n(St=>{v&&!St.repeat&&Z&&St.key===" "&&J.stop(St,()=>{J.start(St)}),St.target===St.currentTarget&&gt()&&St.key===" "&&St.preventDefault(),E&&E(St),St.target===St.currentTarget&&gt()&&St.key==="Enter"&&!d&&(St.preventDefault(),A&&A(St))}),re=$n(St=>{v&&St.key===" "&&Z&&!St.defaultPrevented&&J.stop(St,()=>{J.pulsate(St)}),k&&k(St),A&&St.target===St.currentTarget&&gt()&&St.key===" "&&!St.defaultPrevented&&A(St)});let jt=p;jt==="button"&&(Y.href||Y.to)&&(jt=x);const Be={};jt==="button"?(Be.type=j===void 0?"button":j,Be.disabled=d):(!Y.href&&!Y.to&&(Be.role="button"),d&&(Be["aria-disabled"]=d));const Ae=Si(r,W),Ee={...a,centerRipple:l,component:p,disabled:d,disableRipple:m,disableTouchRipple:y,focusRipple:v,tabIndex:q,focusVisible:Z},De=LN(Ee);return N.jsxs(jN,{as:jt,className:Jt(De.root,f),ownerState:Ee,onBlur:ut,onClick:A,onContextMenu:dt,onFocus:$t,onKeyDown:Yt,onKeyUp:re,onMouseDown:ct,onMouseLeave:bt,onMouseUp:At,onDragLeave:ft,onTouchEnd:ht,onTouchMove:vt,onTouchStart:nt,ref:Ae,tabIndex:d?-1:q,type:j,...Be,...Y,children:[c,ot?N.jsx(zN,{ref:$,center:l,...it}):null]})});function Or(t,e,r,a=!1){return $n(s=>(r&&r(s),a||t[e](s),!0))}function UN(t){return Le("MuiCircularProgress",t)}je("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const yi=44,Gp=cl` 197 + 0% { 198 + transform: rotate(0deg); 199 + } 200 + 201 + 100% { 202 + transform: rotate(360deg); 203 + } 204 + `,Yp=cl` 205 + 0% { 206 + stroke-dasharray: 1px, 200px; 207 + stroke-dashoffset: 0; 208 + } 209 + 210 + 50% { 211 + stroke-dasharray: 100px, 200px; 212 + stroke-dashoffset: -15px; 213 + } 214 + 215 + 100% { 216 + stroke-dasharray: 1px, 200px; 217 + stroke-dashoffset: -126px; 218 + } 219 + `,BN=typeof Gp!="string"?em` 220 + animation: ${Gp} 1.4s linear infinite; 221 + `:null,HN=typeof Yp!="string"?em` 222 + animation: ${Yp} 1.4s ease-in-out infinite; 223 + `:null,IN=t=>{const{classes:e,variant:r,color:a,disableShrink:s}=t,l={root:["root",r,`color${Wt(a)}`],svg:["svg"],circle:["circle",`circle${Wt(r)}`,s&&"circleDisableShrink"]};return Ue(l,UN,e)},PN=zt("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`color${Wt(r.color)}`]]}})(So(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:BN||{animation:`${Gp} 1.4s linear infinite`}},...Object.entries(t.palette).filter(rl()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),GN=zt("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),YN=zt("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.circle,e[`circle${Wt(r.variant)}`],r.disableShrink&&e.circleDisableShrink]}})(So(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:HN||{animation:`${Yp} 1.4s ease-in-out infinite`}}]}))),LT=U.forwardRef(function(e,r){const a=oa({props:e,name:"MuiCircularProgress"}),{className:s,color:l="primary",disableShrink:c=!1,size:f=40,style:p,thickness:d=3.6,value:m=0,variant:y="indeterminate",...v}=a,b={...a,color:l,disableShrink:c,size:f,thickness:d,value:m,variant:y},x=IN(b),S={},A={},w={};if(y==="determinate"){const D=2*Math.PI*((yi-d)/2);S.strokeDasharray=D.toFixed(3),w["aria-valuenow"]=Math.round(m),S.strokeDashoffset=`${((100-m)/100*D).toFixed(3)}px`,A.transform="rotate(-90deg)"}return N.jsx(PN,{className:Jt(x.root,s),style:{width:f,height:f,...A,...p},ownerState:b,ref:r,role:"progressbar",...w,...v,children:N.jsx(GN,{className:x.svg,ownerState:b,viewBox:`${yi/2} ${yi/2} ${yi} ${yi}`,children:N.jsx(YN,{className:x.circle,style:S,ownerState:b,cx:yi,cy:yi,r:(yi-d)/2,fill:"none",strokeWidth:d})})})});function qN(t){return Le("MuiIconButton",t)}const xx=je("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),VN=t=>{const{classes:e,disabled:r,color:a,edge:s,size:l,loading:c}=t,f={root:["root",c&&"loading",r&&"disabled",a!=="default"&&`color${Wt(a)}`,s&&`edge${Wt(s)}`,`size${Wt(l)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ue(f,qN,e)},XN=zt(NT,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.loading&&e.loading,r.color!=="default"&&e[`color${Wt(r.color)}`],r.edge&&e[`edge${Wt(r.edge)}`],e[`size${Wt(r.size)}`]]}})(So(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:bi(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),So(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(rl()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(rl()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.vars?`rgba(${(t.vars||t).palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:bi((t.vars||t).palette[e].main,t.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${xx.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${xx.loading}`]:{color:"transparent"}}))),KN=zt("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),ZN=U.forwardRef(function(e,r){const a=oa({props:e,name:"MuiIconButton"}),{edge:s=!1,children:l,className:c,color:f="default",disabled:p=!1,disableFocusRipple:d=!1,size:m="medium",id:y,loading:v=null,loadingIndicator:b,...x}=a,S=Kc(y),A=b??N.jsx(LT,{"aria-labelledby":S,color:"inherit",size:16}),w={...a,edge:s,color:f,disabled:p,disableFocusRipple:d,loading:v,loadingIndicator:A,size:m},D=VN(w);return N.jsxs(XN,{id:v?S:y,className:Jt(D.root,c),centerRipple:!0,focusRipple:!d,disabled:p||v,ref:r,...x,ownerState:w,children:[typeof v=="boolean"&&N.jsx("span",{className:D.loadingWrapper,style:{display:"contents"},children:N.jsx(KN,{className:D.loadingIndicator,ownerState:w,children:v&&A})}),l]})});function QN(t){return Le("MuiButton",t)}const Pi=je("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),FN=U.createContext({}),WN=U.createContext(void 0),JN=t=>{const{color:e,disableElevation:r,fullWidth:a,size:s,variant:l,loading:c,loadingPosition:f,classes:p}=t,d={root:["root",c&&"loading",l,`${l}${Wt(e)}`,`size${Wt(s)}`,`${l}Size${Wt(s)}`,`color${Wt(e)}`,r&&"disableElevation",a&&"fullWidth",c&&`loadingPosition${Wt(f)}`],startIcon:["icon","startIcon",`iconSize${Wt(s)}`],endIcon:["icon","endIcon",`iconSize${Wt(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},m=Ue(d,QN,p);return{...p,...m}},jT=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],t8=zt(NT,{shouldForwardProp:t=>ES(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`${r.variant}${Wt(r.color)}`],e[`size${Wt(r.size)}`],e[`${r.variant}Size${Wt(r.size)}`],r.color==="inherit"&&e.colorInherit,r.disableElevation&&e.disableElevation,r.fullWidth&&e.fullWidth,r.loading&&e.loading]}})(So(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],r=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Pi.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${Pi.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${Pi.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Pi.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(rl()).map(([a])=>({props:{color:a},style:{"--variant-textColor":(t.vars||t).palette[a].main,"--variant-outlinedColor":(t.vars||t).palette[a].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[a].mainChannel} / 0.5)`:bi(t.palette[a].main,.5),"--variant-containedColor":(t.vars||t).palette[a].contrastText,"--variant-containedBg":(t.vars||t).palette[a].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[a].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[a].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:bi(t.palette[a].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[a].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[a].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:bi(t.palette[a].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:bi(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:bi(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Pi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Pi.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${Pi.loading}`]:{color:"transparent"}}}]}})),e8=zt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.startIcon,r.loading&&e.startIconLoadingStart,e[`iconSize${Wt(r.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...jT]})),n8=zt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.endIcon,r.loading&&e.endIconLoadingEnd,e[`iconSize${Wt(r.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...jT]})),r8=zt("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Sx=zt("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),i8=U.forwardRef(function(e,r){const a=U.useContext(FN),s=U.useContext(WN),l=Ji(a,e),c=oa({props:l,name:"MuiButton"}),{children:f,color:p="primary",component:d="button",className:m,disabled:y=!1,disableElevation:v=!1,disableFocusRipple:b=!1,endIcon:x,focusVisibleClassName:S,fullWidth:A=!1,id:w,loading:D=null,loadingIndicator:O,loadingPosition:R="center",size:E="medium",startIcon:k,type:z,variant:H="text",...L}=c,C=Kc(w),_=O??N.jsx(LT,{"aria-labelledby":C,color:"inherit",size:16}),I={...c,color:p,component:d,disabled:y,disableElevation:v,disableFocusRipple:b,fullWidth:A,loading:D,loadingIndicator:_,loadingPosition:R,size:E,type:z,variant:H},q=JN(I),it=(k||D&&R==="start")&&N.jsx(e8,{className:q.startIcon,ownerState:I,children:k||N.jsx(Sx,{className:q.loadingIconPlaceholder,ownerState:I})}),lt=(x||D&&R==="end")&&N.jsx(n8,{className:q.endIcon,ownerState:I,children:x||N.jsx(Sx,{className:q.loadingIconPlaceholder,ownerState:I})}),j=s||"",Y=typeof D=="boolean"?N.jsx("span",{className:q.loadingWrapper,style:{display:"contents"},children:D&&N.jsx(r8,{className:q.loadingIndicator,ownerState:I,children:_})}):null;return N.jsxs(t8,{ownerState:I,className:Jt(a.className,q.root,m,j),component:d,disabled:y||D,focusRipple:!b,focusVisibleClassName:Jt(q.focusVisible,S),ref:r,type:z,id:D?C:w,...L,classes:q,children:[it,R!=="end"&&Y,f,R==="end"&&Y,lt]})}),a8={baseButton:i8,baseIconButton:ZN},o8={},s8=G({},a8,o8),l8=U.createContext(null);function u8(t){const{slots:e,slotProps:r={},defaultSlots:a,children:s}=t,l=U.useMemo(()=>({slots:G({},a,e),slotProps:r}),[a,e,r]);return N.jsx(l8.Provider,{value:l,children:s})}const zr=11102230246251565e-32,Ve=134217729,c8=(3+8*zr)*zr;function dp(t,e,r,a,s){let l,c,f,p,d=e[0],m=a[0],y=0,v=0;m>d==m>-d?(l=d,d=e[++y]):(l=m,m=a[++v]);let b=0;if(y<t&&v<r)for(m>d==m>-d?(c=d+l,f=l-(c-d),d=e[++y]):(c=m+l,f=l-(c-m),m=a[++v]),l=c,f!==0&&(s[b++]=f);y<t&&v<r;)m>d==m>-d?(c=l+d,p=c-l,f=l-(c-p)+(d-p),d=e[++y]):(c=l+m,p=c-l,f=l-(c-p)+(m-p),m=a[++v]),l=c,f!==0&&(s[b++]=f);for(;y<t;)c=l+d,p=c-l,f=l-(c-p)+(d-p),d=e[++y],l=c,f!==0&&(s[b++]=f);for(;v<r;)c=l+m,p=c-l,f=l-(c-p)+(m-p),m=a[++v],l=c,f!==0&&(s[b++]=f);return(l!==0||b===0)&&(s[b++]=l),b}function f8(t,e){let r=e[0];for(let a=1;a<t;a++)r+=e[a];return r}function Ol(t){return new Float64Array(t)}const d8=(3+16*zr)*zr,h8=(2+12*zr)*zr,p8=(9+64*zr)*zr*zr,eo=Ol(4),Tx=Ol(8),Cx=Ol(12),Ax=Ol(16),Qe=Ol(4);function m8(t,e,r,a,s,l,c){let f,p,d,m,y,v,b,x,S,A,w,D,O,R,E,k,z,H;const L=t-s,C=r-s,_=e-l,I=a-l;R=L*I,v=Ve*L,b=v-(v-L),x=L-b,v=Ve*I,S=v-(v-I),A=I-S,E=x*A-(R-b*S-x*S-b*A),k=_*C,v=Ve*_,b=v-(v-_),x=_-b,v=Ve*C,S=v-(v-C),A=C-S,z=x*A-(k-b*S-x*S-b*A),w=E-z,y=E-w,eo[0]=E-(w+y)+(y-z),D=R+w,y=D-R,O=R-(D-y)+(w-y),w=O-k,y=O-w,eo[1]=O-(w+y)+(y-k),H=D+w,y=H-D,eo[2]=D-(H-y)+(w-y),eo[3]=H;let q=f8(4,eo),it=h8*c;if(q>=it||-q>=it||(y=t-L,f=t-(L+y)+(y-s),y=r-C,d=r-(C+y)+(y-s),y=e-_,p=e-(_+y)+(y-l),y=a-I,m=a-(I+y)+(y-l),f===0&&p===0&&d===0&&m===0)||(it=p8*c+c8*Math.abs(q),q+=L*m+I*f-(_*d+C*p),q>=it||-q>=it))return q;R=f*I,v=Ve*f,b=v-(v-f),x=f-b,v=Ve*I,S=v-(v-I),A=I-S,E=x*A-(R-b*S-x*S-b*A),k=p*C,v=Ve*p,b=v-(v-p),x=p-b,v=Ve*C,S=v-(v-C),A=C-S,z=x*A-(k-b*S-x*S-b*A),w=E-z,y=E-w,Qe[0]=E-(w+y)+(y-z),D=R+w,y=D-R,O=R-(D-y)+(w-y),w=O-k,y=O-w,Qe[1]=O-(w+y)+(y-k),H=D+w,y=H-D,Qe[2]=D-(H-y)+(w-y),Qe[3]=H;const lt=dp(4,eo,4,Qe,Tx);R=L*m,v=Ve*L,b=v-(v-L),x=L-b,v=Ve*m,S=v-(v-m),A=m-S,E=x*A-(R-b*S-x*S-b*A),k=_*d,v=Ve*_,b=v-(v-_),x=_-b,v=Ve*d,S=v-(v-d),A=d-S,z=x*A-(k-b*S-x*S-b*A),w=E-z,y=E-w,Qe[0]=E-(w+y)+(y-z),D=R+w,y=D-R,O=R-(D-y)+(w-y),w=O-k,y=O-w,Qe[1]=O-(w+y)+(y-k),H=D+w,y=H-D,Qe[2]=D-(H-y)+(w-y),Qe[3]=H;const j=dp(lt,Tx,4,Qe,Cx);R=f*m,v=Ve*f,b=v-(v-f),x=f-b,v=Ve*m,S=v-(v-m),A=m-S,E=x*A-(R-b*S-x*S-b*A),k=p*d,v=Ve*p,b=v-(v-p),x=p-b,v=Ve*d,S=v-(v-d),A=d-S,z=x*A-(k-b*S-x*S-b*A),w=E-z,y=E-w,Qe[0]=E-(w+y)+(y-z),D=R+w,y=D-R,O=R-(D-y)+(w-y),w=O-k,y=O-w,Qe[1]=O-(w+y)+(y-k),H=D+w,y=H-D,Qe[2]=D-(H-y)+(w-y),Qe[3]=H;const Y=dp(j,Cx,4,Qe,Ax);return Ax[Y-1]}function Ju(t,e,r,a,s,l){const c=(e-l)*(r-s),f=(t-s)*(a-l),p=c-f,d=Math.abs(c+f);return Math.abs(p)>=d8*d?p:-m8(t,e,r,a,s,l,d)}const Ex=Math.pow(2,-52),tc=new Uint32Array(512);class Nc{static from(e,r=x8,a=S8){const s=e.length,l=new Float64Array(s*2);for(let c=0;c<s;c++){const f=e[c];l[2*c]=r(f),l[2*c+1]=a(f)}return new Nc(l)}constructor(e){const r=e.length>>1;if(r>0&&typeof e[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=e;const a=Math.max(2*r-5,0);this._triangles=new Uint32Array(a*3),this._halfedges=new Int32Array(a*3),this._hashSize=Math.ceil(Math.sqrt(r)),this._hullPrev=new Uint32Array(r),this._hullNext=new Uint32Array(r),this._hullTri=new Uint32Array(r),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(r),this._dists=new Float64Array(r),this.update()}update(){const{coords:e,_hullPrev:r,_hullNext:a,_hullTri:s,_hullHash:l}=this,c=e.length>>1;let f=1/0,p=1/0,d=-1/0,m=-1/0;for(let L=0;L<c;L++){const C=e[2*L],_=e[2*L+1];C<f&&(f=C),_<p&&(p=_),C>d&&(d=C),_>m&&(m=_),this._ids[L]=L}const y=(f+d)/2,v=(p+m)/2;let b,x,S;for(let L=0,C=1/0;L<c;L++){const _=hp(y,v,e[2*L],e[2*L+1]);_<C&&(b=L,C=_)}const A=e[2*b],w=e[2*b+1];for(let L=0,C=1/0;L<c;L++){if(L===b)continue;const _=hp(A,w,e[2*L],e[2*L+1]);_<C&&_>0&&(x=L,C=_)}let D=e[2*x],O=e[2*x+1],R=1/0;for(let L=0;L<c;L++){if(L===b||L===x)continue;const C=v8(A,w,D,O,e[2*L],e[2*L+1]);C<R&&(S=L,R=C)}let E=e[2*S],k=e[2*S+1];if(R===1/0){for(let _=0;_<c;_++)this._dists[_]=e[2*_]-e[0]||e[2*_+1]-e[1];oo(this._ids,this._dists,0,c-1);const L=new Uint32Array(c);let C=0;for(let _=0,I=-1/0;_<c;_++){const q=this._ids[_],it=this._dists[q];it>I&&(L[C++]=q,I=it)}this.hull=L.subarray(0,C),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(Ju(A,w,D,O,E,k)<0){const L=x,C=D,_=O;x=S,D=E,O=k,S=L,E=C,k=_}const z=b8(A,w,D,O,E,k);this._cx=z.x,this._cy=z.y;for(let L=0;L<c;L++)this._dists[L]=hp(e[2*L],e[2*L+1],z.x,z.y);oo(this._ids,this._dists,0,c-1),this._hullStart=b;let H=3;a[b]=r[S]=x,a[x]=r[b]=S,a[S]=r[x]=b,s[b]=0,s[x]=1,s[S]=2,l.fill(-1),l[this._hashKey(A,w)]=b,l[this._hashKey(D,O)]=x,l[this._hashKey(E,k)]=S,this.trianglesLen=0,this._addTriangle(b,x,S,-1,-1,-1);for(let L=0,C,_;L<this._ids.length;L++){const I=this._ids[L],q=e[2*I],it=e[2*I+1];if(L>0&&Math.abs(q-C)<=Ex&&Math.abs(it-_)<=Ex||(C=q,_=it,I===b||I===x||I===S))continue;let lt=0;for(let $=0,Z=this._hashKey(q,it);$<this._hashSize&&(lt=l[(Z+$)%this._hashSize],!(lt!==-1&&lt!==a[lt]));$++);lt=r[lt];let j=lt,Y;for(;Y=a[j],Ju(q,it,e[2*j],e[2*j+1],e[2*Y],e[2*Y+1])>=0;)if(j=Y,j===lt){j=-1;break}if(j===-1)continue;let W=this._addTriangle(j,I,a[j],-1,-1,s[j]);s[I]=this._legalize(W+2),s[j]=W,H++;let J=a[j];for(;Y=a[J],Ju(q,it,e[2*J],e[2*J+1],e[2*Y],e[2*Y+1])<0;)W=this._addTriangle(J,I,Y,s[I],-1,s[J]),s[I]=this._legalize(W+2),a[J]=J,H--,J=Y;if(j===lt)for(;Y=r[j],Ju(q,it,e[2*Y],e[2*Y+1],e[2*j],e[2*j+1])<0;)W=this._addTriangle(Y,I,j,-1,s[j],s[Y]),this._legalize(W+2),s[Y]=W,a[j]=j,H--,j=Y;this._hullStart=r[I]=j,a[j]=r[J]=I,a[I]=J,l[this._hashKey(q,it)]=I,l[this._hashKey(e[2*j],e[2*j+1])]=j}this.hull=new Uint32Array(H);for(let L=0,C=this._hullStart;L<H;L++)this.hull[L]=C,C=a[C];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(e,r){return Math.floor(g8(e-this._cx,r-this._cy)*this._hashSize)%this._hashSize}_legalize(e){const{_triangles:r,_halfedges:a,coords:s}=this;let l=0,c=0;for(;;){const f=a[e],p=e-e%3;if(c=p+(e+2)%3,f===-1){if(l===0)break;e=tc[--l];continue}const d=f-f%3,m=p+(e+1)%3,y=d+(f+2)%3,v=r[c],b=r[e],x=r[m],S=r[y];if(y8(s[2*v],s[2*v+1],s[2*b],s[2*b+1],s[2*x],s[2*x+1],s[2*S],s[2*S+1])){r[e]=S,r[f]=v;const w=a[y];if(w===-1){let O=this._hullStart;do{if(this._hullTri[O]===y){this._hullTri[O]=e;break}O=this._hullPrev[O]}while(O!==this._hullStart)}this._link(e,w),this._link(f,a[c]),this._link(c,y);const D=d+(f+1)%3;l<tc.length&&(tc[l++]=D)}else{if(l===0)break;e=tc[--l]}}return c}_link(e,r){this._halfedges[e]=r,r!==-1&&(this._halfedges[r]=e)}_addTriangle(e,r,a,s,l,c){const f=this.trianglesLen;return this._triangles[f]=e,this._triangles[f+1]=r,this._triangles[f+2]=a,this._link(f,s),this._link(f+1,l),this._link(f+2,c),this.trianglesLen+=3,f}}function g8(t,e){const r=t/(Math.abs(t)+Math.abs(e));return(e>0?3-r:1+r)/4}function hp(t,e,r,a){const s=t-r,l=e-a;return s*s+l*l}function y8(t,e,r,a,s,l,c,f){const p=t-c,d=e-f,m=r-c,y=a-f,v=s-c,b=l-f,x=p*p+d*d,S=m*m+y*y,A=v*v+b*b;return p*(y*A-S*b)-d*(m*A-S*v)+x*(m*b-y*v)<0}function v8(t,e,r,a,s,l){const c=r-t,f=a-e,p=s-t,d=l-e,m=c*c+f*f,y=p*p+d*d,v=.5/(c*d-f*p),b=(d*m-f*y)*v,x=(c*y-p*m)*v;return b*b+x*x}function b8(t,e,r,a,s,l){const c=r-t,f=a-e,p=s-t,d=l-e,m=c*c+f*f,y=p*p+d*d,v=.5/(c*d-f*p),b=t+(d*m-f*y)*v,x=e+(c*y-p*m)*v;return{x:b,y:x}}function oo(t,e,r,a){if(a-r<=20)for(let s=r+1;s<=a;s++){const l=t[s],c=e[l];let f=s-1;for(;f>=r&&e[t[f]]>c;)t[f+1]=t[f--];t[f+1]=l}else{const s=r+a>>1;let l=r+1,c=a;Us(t,s,l),e[t[r]]>e[t[a]]&&Us(t,r,a),e[t[l]]>e[t[a]]&&Us(t,l,a),e[t[r]]>e[t[l]]&&Us(t,r,l);const f=t[l],p=e[f];for(;;){do l++;while(e[t[l]]<p);do c--;while(e[t[c]]>p);if(c<l)break;Us(t,l,c)}t[r+1]=t[c],t[c]=f,a-l+1>=c-r?(oo(t,e,l,a),oo(t,e,r,c-1)):(oo(t,e,r,c-1),oo(t,e,l,a))}}function Us(t,e,r){const a=t[e];t[e]=t[r],t[r]=a}function x8(t){return t[0]}function S8(t){return t[1]}const wx=1e-6;class Xi{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(e,r){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(e,r){this._+=`L${this._x1=+e},${this._y1=+r}`}arc(e,r,a){e=+e,r=+r,a=+a;const s=e+a,l=r;if(a<0)throw new Error("negative radius");this._x1===null?this._+=`M${s},${l}`:(Math.abs(this._x1-s)>wx||Math.abs(this._y1-l)>wx)&&(this._+="L"+s+","+l),a&&(this._+=`A${a},${a},0,1,1,${e-a},${r}A${a},${a},0,1,1,${this._x1=s},${this._y1=l}`)}rect(e,r,a,s){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${+a}v${+s}h${-a}Z`}value(){return this._||null}}class qp{constructor(){this._=[]}moveTo(e,r){this._.push([e,r])}closePath(){this._.push(this._[0].slice())}lineTo(e,r){this._.push([e,r])}value(){return this._.length?this._:null}}class T8{constructor(e,[r,a,s,l]=[0,0,960,500]){if(!((s=+s)>=(r=+r))||!((l=+l)>=(a=+a)))throw new Error("invalid bounds");this.delaunay=e,this._circumcenters=new Float64Array(e.points.length*2),this.vectors=new Float64Array(e.points.length*2),this.xmax=s,this.xmin=r,this.ymax=l,this.ymin=a,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:e,hull:r,triangles:a},vectors:s}=this;let l,c;const f=this.circumcenters=this._circumcenters.subarray(0,a.length/3*2);for(let S=0,A=0,w=a.length,D,O;S<w;S+=3,A+=2){const R=a[S]*2,E=a[S+1]*2,k=a[S+2]*2,z=e[R],H=e[R+1],L=e[E],C=e[E+1],_=e[k],I=e[k+1],q=L-z,it=C-H,lt=_-z,j=I-H,Y=(q*j-it*lt)*2;if(Math.abs(Y)<1e-9){if(l===void 0){l=c=0;for(const J of r)l+=e[J*2],c+=e[J*2+1];l/=r.length,c/=r.length}const W=1e9*Math.sign((l-z)*j-(c-H)*lt);D=(z+_)/2-W*j,O=(H+I)/2+W*lt}else{const W=1/Y,J=q*q+it*it,$=lt*lt+j*j;D=z+(j*J-it*$)*W,O=H+(q*$-lt*J)*W}f[A]=D,f[A+1]=O}let p=r[r.length-1],d,m=p*4,y,v=e[2*p],b,x=e[2*p+1];s.fill(0);for(let S=0;S<r.length;++S)p=r[S],d=m,y=v,b=x,m=p*4,v=e[2*p],x=e[2*p+1],s[d+2]=s[m]=b-x,s[d+3]=s[m+1]=v-y}render(e){const r=e==null?e=new Xi:void 0,{delaunay:{halfedges:a,inedges:s,hull:l},circumcenters:c,vectors:f}=this;if(l.length<=1)return null;for(let m=0,y=a.length;m<y;++m){const v=a[m];if(v<m)continue;const b=Math.floor(m/3)*2,x=Math.floor(v/3)*2,S=c[b],A=c[b+1],w=c[x],D=c[x+1];this._renderSegment(S,A,w,D,e)}let p,d=l[l.length-1];for(let m=0;m<l.length;++m){p=d,d=l[m];const y=Math.floor(s[d]/3)*2,v=c[y],b=c[y+1],x=p*4,S=this._project(v,b,f[x+2],f[x+3]);S&&this._renderSegment(v,b,S[0],S[1],e)}return r&&r.value()}renderBounds(e){const r=e==null?e=new Xi:void 0;return e.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),r&&r.value()}renderCell(e,r){const a=r==null?r=new Xi:void 0,s=this._clip(e);if(s===null||!s.length)return;r.moveTo(s[0],s[1]);let l=s.length;for(;s[0]===s[l-2]&&s[1]===s[l-1]&&l>1;)l-=2;for(let c=2;c<l;c+=2)(s[c]!==s[c-2]||s[c+1]!==s[c-1])&&r.lineTo(s[c],s[c+1]);return r.closePath(),a&&a.value()}*cellPolygons(){const{delaunay:{points:e}}=this;for(let r=0,a=e.length/2;r<a;++r){const s=this.cellPolygon(r);s&&(s.index=r,yield s)}}cellPolygon(e){const r=new qp;return this.renderCell(e,r),r.value()}_renderSegment(e,r,a,s,l){let c;const f=this._regioncode(e,r),p=this._regioncode(a,s);f===0&&p===0?(l.moveTo(e,r),l.lineTo(a,s)):(c=this._clipSegment(e,r,a,s,f,p))&&(l.moveTo(c[0],c[1]),l.lineTo(c[2],c[3]))}contains(e,r,a){return r=+r,r!==r||(a=+a,a!==a)?!1:this.delaunay._step(e,r,a)===e}*neighbors(e){const r=this._clip(e);if(r)for(const a of this.delaunay.neighbors(e)){const s=this._clip(a);if(s){t:for(let l=0,c=r.length;l<c;l+=2)for(let f=0,p=s.length;f<p;f+=2)if(r[l]===s[f]&&r[l+1]===s[f+1]&&r[(l+2)%c]===s[(f+p-2)%p]&&r[(l+3)%c]===s[(f+p-1)%p]){yield a;break t}}}}_cell(e){const{circumcenters:r,delaunay:{inedges:a,halfedges:s,triangles:l}}=this,c=a[e];if(c===-1)return null;const f=[];let p=c;do{const d=Math.floor(p/3);if(f.push(r[d*2],r[d*2+1]),p=p%3===2?p-2:p+1,l[p]!==e)break;p=s[p]}while(p!==c&&p!==-1);return f}_clip(e){if(e===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const r=this._cell(e);if(r===null)return null;const{vectors:a}=this,s=e*4;return this._simplify(a[s]||a[s+1]?this._clipInfinite(e,r,a[s],a[s+1],a[s+2],a[s+3]):this._clipFinite(e,r))}_clipFinite(e,r){const a=r.length;let s=null,l,c,f=r[a-2],p=r[a-1],d,m=this._regioncode(f,p),y,v=0;for(let b=0;b<a;b+=2)if(l=f,c=p,f=r[b],p=r[b+1],d=m,m=this._regioncode(f,p),d===0&&m===0)y=v,v=0,s?s.push(f,p):s=[f,p];else{let x,S,A,w,D;if(d===0){if((x=this._clipSegment(l,c,f,p,d,m))===null)continue;[S,A,w,D]=x}else{if((x=this._clipSegment(f,p,l,c,m,d))===null)continue;[w,D,S,A]=x,y=v,v=this._edgecode(S,A),y&&v&&this._edge(e,y,v,s,s.length),s?s.push(S,A):s=[S,A]}y=v,v=this._edgecode(w,D),y&&v&&this._edge(e,y,v,s,s.length),s?s.push(w,D):s=[w,D]}if(s)y=v,v=this._edgecode(s[0],s[1]),y&&v&&this._edge(e,y,v,s,s.length);else if(this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return s}_clipSegment(e,r,a,s,l,c){const f=l<c;for(f&&([e,r,a,s,l,c]=[a,s,e,r,c,l]);;){if(l===0&&c===0)return f?[a,s,e,r]:[e,r,a,s];if(l&c)return null;let p,d,m=l||c;m&8?(p=e+(a-e)*(this.ymax-r)/(s-r),d=this.ymax):m&4?(p=e+(a-e)*(this.ymin-r)/(s-r),d=this.ymin):m&2?(d=r+(s-r)*(this.xmax-e)/(a-e),p=this.xmax):(d=r+(s-r)*(this.xmin-e)/(a-e),p=this.xmin),l?(e=p,r=d,l=this._regioncode(e,r)):(a=p,s=d,c=this._regioncode(a,s))}}_clipInfinite(e,r,a,s,l,c){let f=Array.from(r),p;if((p=this._project(f[0],f[1],a,s))&&f.unshift(p[0],p[1]),(p=this._project(f[f.length-2],f[f.length-1],l,c))&&f.push(p[0],p[1]),f=this._clipFinite(e,f))for(let d=0,m=f.length,y,v=this._edgecode(f[m-2],f[m-1]);d<m;d+=2)y=v,v=this._edgecode(f[d],f[d+1]),y&&v&&(d=this._edge(e,y,v,f,d),m=f.length);else this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(f=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return f}_edge(e,r,a,s,l){for(;r!==a;){let c,f;switch(r){case 5:r=4;continue;case 4:r=6,c=this.xmax,f=this.ymin;break;case 6:r=2;continue;case 2:r=10,c=this.xmax,f=this.ymax;break;case 10:r=8;continue;case 8:r=9,c=this.xmin,f=this.ymax;break;case 9:r=1;continue;case 1:r=5,c=this.xmin,f=this.ymin;break}(s[l]!==c||s[l+1]!==f)&&this.contains(e,c,f)&&(s.splice(l,0,c,f),l+=2)}return l}_project(e,r,a,s){let l=1/0,c,f,p;if(s<0){if(r<=this.ymin)return null;(c=(this.ymin-r)/s)<l&&(p=this.ymin,f=e+(l=c)*a)}else if(s>0){if(r>=this.ymax)return null;(c=(this.ymax-r)/s)<l&&(p=this.ymax,f=e+(l=c)*a)}if(a>0){if(e>=this.xmax)return null;(c=(this.xmax-e)/a)<l&&(f=this.xmax,p=r+(l=c)*s)}else if(a<0){if(e<=this.xmin)return null;(c=(this.xmin-e)/a)<l&&(f=this.xmin,p=r+(l=c)*s)}return[f,p]}_edgecode(e,r){return(e===this.xmin?1:e===this.xmax?2:0)|(r===this.ymin?4:r===this.ymax?8:0)}_regioncode(e,r){return(e<this.xmin?1:e>this.xmax?2:0)|(r<this.ymin?4:r>this.ymax?8:0)}_simplify(e){if(e&&e.length>4){for(let r=0;r<e.length;r+=2){const a=(r+2)%e.length,s=(r+4)%e.length;(e[r]===e[a]&&e[a]===e[s]||e[r+1]===e[a+1]&&e[a+1]===e[s+1])&&(e.splice(a,2),r-=2)}e.length||(e=null)}return e}}const C8=2*Math.PI,no=Math.pow;function A8(t){return t[0]}function E8(t){return t[1]}function w8(t){const{triangles:e,coords:r}=t;for(let a=0;a<e.length;a+=3){const s=2*e[a],l=2*e[a+1],c=2*e[a+2];if((r[c]-r[s])*(r[l+1]-r[s+1])-(r[l]-r[s])*(r[c+1]-r[s+1])>1e-10)return!1}return!0}function M8(t,e,r){return[t+Math.sin(t+e)*r,e+Math.cos(t-e)*r]}class gg{static from(e,r=A8,a=E8,s){return new gg("length"in e?O8(e,r,a,s):Float64Array.from(R8(e,r,a,s)))}constructor(e){this._delaunator=new Nc(e),this.inedges=new Int32Array(e.length/2),this._hullIndex=new Int32Array(e.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const e=this._delaunator,r=this.points;if(e.hull&&e.hull.length>2&&w8(e)){this.collinear=Int32Array.from({length:r.length/2},(v,b)=>b).sort((v,b)=>r[2*v]-r[2*b]||r[2*v+1]-r[2*b+1]);const p=this.collinear[0],d=this.collinear[this.collinear.length-1],m=[r[2*p],r[2*p+1],r[2*d],r[2*d+1]],y=1e-8*Math.hypot(m[3]-m[1],m[2]-m[0]);for(let v=0,b=r.length/2;v<b;++v){const x=M8(r[2*v],r[2*v+1],y);r[2*v]=x[0],r[2*v+1]=x[1]}this._delaunator=new Nc(r)}else delete this.collinear;const a=this.halfedges=this._delaunator.halfedges,s=this.hull=this._delaunator.hull,l=this.triangles=this._delaunator.triangles,c=this.inedges.fill(-1),f=this._hullIndex.fill(-1);for(let p=0,d=a.length;p<d;++p){const m=l[p%3===2?p-2:p+1];(a[p]===-1||c[m]===-1)&&(c[m]=p)}for(let p=0,d=s.length;p<d;++p)f[s[p]]=p;s.length<=2&&s.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=s[0],c[s[0]]=1,s.length===2&&(c[s[1]]=0,this.triangles[1]=s[1],this.triangles[2]=s[1]))}voronoi(e){return new T8(this,e)}*neighbors(e){const{inedges:r,hull:a,_hullIndex:s,halfedges:l,triangles:c,collinear:f}=this;if(f){const y=f.indexOf(e);y>0&&(yield f[y-1]),y<f.length-1&&(yield f[y+1]);return}const p=r[e];if(p===-1)return;let d=p,m=-1;do{if(yield m=c[d],d=d%3===2?d-2:d+1,c[d]!==e)return;if(d=l[d],d===-1){const y=a[(s[e]+1)%a.length];y!==m&&(yield y);return}}while(d!==p)}find(e,r,a=0){if(e=+e,e!==e||(r=+r,r!==r))return-1;const s=a;let l;for(;(l=this._step(a,e,r))>=0&&l!==a&&l!==s;)a=l;return l}_step(e,r,a){const{inedges:s,hull:l,_hullIndex:c,halfedges:f,triangles:p,points:d}=this;if(s[e]===-1||!d.length)return(e+1)%(d.length>>1);let m=e,y=no(r-d[e*2],2)+no(a-d[e*2+1],2);const v=s[e];let b=v;do{let x=p[b];const S=no(r-d[x*2],2)+no(a-d[x*2+1],2);if(S<y&&(y=S,m=x),b=b%3===2?b-2:b+1,p[b]!==e)break;if(b=f[b],b===-1){if(b=l[(c[e]+1)%l.length],b!==x&&no(r-d[b*2],2)+no(a-d[b*2+1],2)<y)return b;break}}while(b!==v);return m}render(e){const r=e==null?e=new Xi:void 0,{points:a,halfedges:s,triangles:l}=this;for(let c=0,f=s.length;c<f;++c){const p=s[c];if(p<c)continue;const d=l[c]*2,m=l[p]*2;e.moveTo(a[d],a[d+1]),e.lineTo(a[m],a[m+1])}return this.renderHull(e),r&&r.value()}renderPoints(e,r){r===void 0&&(!e||typeof e.moveTo!="function")&&(r=e,e=null),r=r==null?2:+r;const a=e==null?e=new Xi:void 0,{points:s}=this;for(let l=0,c=s.length;l<c;l+=2){const f=s[l],p=s[l+1];e.moveTo(f+r,p),e.arc(f,p,r,0,C8)}return a&&a.value()}renderHull(e){const r=e==null?e=new Xi:void 0,{hull:a,points:s}=this,l=a[0]*2,c=a.length;e.moveTo(s[l],s[l+1]);for(let f=1;f<c;++f){const p=2*a[f];e.lineTo(s[p],s[p+1])}return e.closePath(),r&&r.value()}hullPolygon(){const e=new qp;return this.renderHull(e),e.value()}renderTriangle(e,r){const a=r==null?r=new Xi:void 0,{points:s,triangles:l}=this,c=l[e*=3]*2,f=l[e+1]*2,p=l[e+2]*2;return r.moveTo(s[c],s[c+1]),r.lineTo(s[f],s[f+1]),r.lineTo(s[p],s[p+1]),r.closePath(),a&&a.value()}*trianglePolygons(){const{triangles:e}=this;for(let r=0,a=e.length/3;r<a;++r)yield this.trianglePolygon(r)}trianglePolygon(e){const r=new qp;return this.renderTriangle(e,r),r.value()}}function O8(t,e,r,a){const s=t.length,l=new Float64Array(s*2);for(let c=0;c<s;++c){const f=t[c];l[c*2]=e.call(a,f,c,t),l[c*2+1]=r.call(a,f,c,t)}return l}function*R8(t,e,r,a){let s=0;for(const l of t)yield e.call(a,l,s,t),yield r.call(a,l,s,t),++s}const yf=({svgRef:t,params:e,store:r,instance:a})=>{var k;const{disableVoronoi:s,voronoiMaxRadius:l,onItemClick:c}=e,f=wt(r,Hr),{axis:p,axisIds:d}=wt(r,bn),{axis:m,axisIds:y}=wt(r,xn),v=wt(r,b2),{series:b,seriesOrder:x}=((k=wt(r,Zn))==null?void 0:k.scatter)??{},S=U.useRef({}),A=U.useRef(void 0),w=U.useRef(void 0),D=d[0],O=y[0];Te(()=>{r.update(z=>z.voronoi.isVoronoiEnabled===!s?z:G({},z,{voronoi:{isVoronoiEnabled:!s}}))},[r,s]),Te(()=>{if(v||x===void 0||b===void 0||s)return;S.current={};let z=[];x.forEach(H=>{const{data:L,xAxisId:C,yAxisId:_}=b[H],I=p[C??D].scale,q=m[_??O].scale,it=Rc(I),lt=Rc(q),j=[],Y=[];for(let W=0;W<L.length;W+=1){const{x:J,y:$}=L[W],Z=it(J),at=lt($);a.isPointInside(Z,at)&&(j.push(Z),j.push(at),Y.push(W))}S.current[H]={seriesId:H,seriesIndexes:Y,startIndex:z.length,endIndex:z.length+j.length},z=z.concat(j)}),A.current=new gg(z),w.current=void 0},[v,D,O,b,x,p,m,f,a,s]),U.useEffect(()=>{if(t.current===null||s)return;const z=t.current;function H(Y){const W=Op(z,Y);if(!a.isPointInside(W.x,W.y))return w.current=void 0,"outside-chart";if(!A.current)return"no-point-found";const J=A.current.find(W.x,W.y,w.current);if(J===void 0)return"no-point-found";w.current=J;const $=Object.values(S.current).find(ot=>2*J>=ot.startIndex&&2*J<ot.endIndex);if($===void 0)return"no-point-found";const Z=(2*J-S.current[$.seriesId].startIndex)/2,at=S.current[$.seriesId].seriesIndexes[Z];if(l!==void 0){const ot=A.current.points[2*J],ct=A.current.points[2*J+1];if((ot-W.x)**2+(ct-W.y)**2>l**2)return"outside-voronoi-max-radius"}return{seriesId:$.seriesId,dataIndex:at}}const L=a.addInteractionListener("moveEnd",Y=>{var W,J;Y.detail.activeGestures.pan||((W=a.cleanInteraction)==null||W.call(a),(J=a.clearHighlight)==null||J.call(a))}),C=a.addInteractionListener("panEnd",Y=>{var W,J;Y.detail.activeGestures.move||((W=a.cleanInteraction)==null||W.call(a),(J=a.clearHighlight)==null||J.call(a))}),_=a.addInteractionListener("quickPressEnd",Y=>{var W,J;!Y.detail.activeGestures.move&&!Y.detail.activeGestures.pan&&((W=a.cleanInteraction)==null||W.call(a),(J=a.clearHighlight)==null||J.call(a))}),I=Y=>{var Z,at,ot,ct,dt,ft;const W=H(Y.detail.srcEvent);if(W==="outside-chart"){(Z=a.cleanInteraction)==null||Z.call(a),(at=a.clearHighlight)==null||at.call(a);return}if(W==="outside-voronoi-max-radius"||W==="no-point-found"){(ot=a.removeItemInteraction)==null||ot.call(a),(ct=a.clearHighlight)==null||ct.call(a);return}const{seriesId:J,dataIndex:$}=W;(dt=a.setItemInteraction)==null||dt.call(a,{type:"scatter",seriesId:J,dataIndex:$}),(ft=a.setHighlight)==null||ft.call(a,{seriesId:J,dataIndex:$})},q=a.addInteractionListener("tap",Y=>{const W=H(Y.detail.srcEvent);if(typeof W!="string"&&c){const{seriesId:J,dataIndex:$}=W;c(Y.detail.srcEvent,{type:"scatter",seriesId:J,dataIndex:$})}}),it=a.addInteractionListener("move",I),lt=a.addInteractionListener("pan",I),j=a.addInteractionListener("quickPress",I);return()=>{q.cleanup(),it.cleanup(),L.cleanup(),lt.cleanup(),C.cleanup(),j.cleanup(),_.cleanup()}},[t,m,p,l,c,s,f,a]);const R=$n(()=>{r.update(z=>G({},z,{voronoi:G({},z.voronoi,{isVoronoiEnabled:!0})}))}),E=$n(()=>{r.update(z=>G({},z,{voronoi:G({},z.voronoi,{isVoronoiEnabled:!1})}))});return{instance:{enableVoronoi:R,disableVoronoi:E}}};yf.getDefaultizedParams=({params:t})=>G({},t,{disableVoronoi:t.disableVoronoi??!t.series.some(e=>e.type==="scatter")});yf.getInitialState=t=>({voronoi:{isVoronoiEnabled:!t.disableVoronoi}});yf.params={disableVoronoi:!0,voronoiMaxRadius:!0,onItemClick:!0};const UT=[Cl,Ro,xl,Do,yf],k8=["children","localeText","plugins","seriesConfig","slots","slotProps"],D8=t=>{const e=Kn({props:t,name:"MuiChartDataProvider"}),{children:r,localeText:a,plugins:s=UT,seriesConfig:l,slots:c,slotProps:f}=e,p=te(e,k8),d=pl(),m={plugins:s,seriesConfig:l,pluginParams:G({theme:d.palette.mode},p)};return{children:r,localeText:a,chartProviderProps:m,slots:c,slotProps:f}};function _8(t){const{children:e,localeText:r,chartProviderProps:a,slots:s,slotProps:l}=D8(t);return N.jsx(v5,G({},a,{children:N.jsx(C4,{localeText:r,children:N.jsx(u8,{slots:s,slotProps:l,defaultSlots:s8,children:e})})}))}function Mx(t){const{isReversed:e,gradientId:r,size:a,direction:s,scale:l,colorMap:c}=t;return a<=0?null:N.jsx("linearGradient",{id:r,x1:"0",x2:"0",y1:"0",y2:"0",[`${s}${e?1:2}`]:`${a}px`,gradientUnits:"userSpaceOnUse",children:c.thresholds.map((f,p)=>{const d=l(f);if(d===void 0)return null;const m=e?1-d/a:d/a;return Number.isNaN(m)?null:N.jsxs(U.Fragment,{children:[N.jsx("stop",{offset:m,stopColor:c.colors[p],stopOpacity:1}),N.jsx("stop",{offset:m,stopColor:c.colors[p+1],stopOpacity:1})]},f.toString()+p)})})}const z8=10;function Ox(t){const{gradientUnits:e,isReversed:r,gradientId:a,size:s,direction:l,scale:c,colorScale:f,colorMap:p}=t,d=[p.min??0,p.max??100],m=d.map(c).filter(x=>x!==void 0);if(m.length!==2)return null;const y=typeof d[0]=="number"?Se(d[0],d[1]):zm(d[0],d[1]),v=Math.round((Math.max(...m)-Math.min(...m))/z8),b=`${d[0]}-${d[1]}-`;return N.jsx("linearGradient",{id:a,x1:"0",x2:"0",y1:"0",y2:"0",[`${l}${r?1:2}`]:e==="objectBoundingBox"?1:`${s}px`,gradientUnits:e??"userSpaceOnUse",children:Array.from({length:v+1},(x,S)=>{const A=y(S/v);if(A===void 0)return null;const w=c(A);if(w===void 0)return null;const D=r?1-w/s:w/s,O=f(A);return O===null?null:N.jsx("stop",{offset:D,stopColor:O,stopOpacity:1},b+S)})})}const $8=10,N8=t=>t?{x1:"1",x2:"0",y1:"0",y2:"0"}:{x1:"0",x2:"1",y1:"0",y2:"0"};function pp(t){const{isReversed:e,gradientId:r,colorScale:a,colorMap:s}=t,l=[s.min??0,s.max??100],c=typeof l[0]=="number"?Se(l[0],l[1]):zm(l[0],l[1]),f=$8,p=`${l[0]}-${l[1]}-`;return N.jsx("linearGradient",G({id:r},N8(e),{gradientUnits:"objectBoundingBox",children:Array.from({length:f+1},(d,m)=>{const y=m/f,v=c(y);if(v===void 0)return null;const b=a(v);return b===null?null:N.jsx("stop",{offset:y,stopColor:b,stopOpacity:1},p+m)})}))}function L8(){const{top:t,height:e,bottom:r,left:a,width:s,right:l}=Hn(),c=t+e+r,f=a+s+l,p=p4(),d=m4(),{xAxis:m,xAxisIds:y}=Yr(),{yAxis:v,yAxisIds:b}=qr(),{zAxis:x,zAxisIds:S}=eg(),A=b.filter(O=>v[O].colorMap!==void 0),w=y.filter(O=>m[O].colorMap!==void 0),D=S.filter(O=>x[O].colorMap!==void 0);return A.length===0&&w.length===0&&D.length===0?null:N.jsxs("defs",{children:[A.map(O=>{const R=p(O),E=d(O),{colorMap:k,scale:z,colorScale:H,reverse:L}=v[O];return(k==null?void 0:k.type)==="piecewise"?N.jsx(Mx,{isReversed:!L,scale:z,colorMap:k,size:c,gradientId:R,direction:"y"},R):(k==null?void 0:k.type)==="continuous"?N.jsxs(U.Fragment,{children:[N.jsx(Ox,{isReversed:!L,scale:z,colorScale:H,colorMap:k,size:c,gradientId:R,direction:"y"}),N.jsx(pp,{isReversed:L,colorScale:H,colorMap:k,gradientId:E})]},R):null}),w.map(O=>{const R=p(O),E=d(O),{colorMap:k,scale:z,reverse:H,colorScale:L}=m[O];return(k==null?void 0:k.type)==="piecewise"?N.jsx(Mx,{isReversed:H,scale:z,colorMap:k,size:f,gradientId:R,direction:"x"},R):(k==null?void 0:k.type)==="continuous"?N.jsxs(U.Fragment,{children:[N.jsx(Ox,{isReversed:H,scale:z,colorScale:L,colorMap:k,size:f,gradientId:R,direction:"x"}),N.jsx(pp,{isReversed:H,colorScale:L,colorMap:k,gradientId:E})]},R):null}),D.map(O=>{const R=d(O),{colorMap:E,colorScale:k}=x[O];return(E==null?void 0:E.type)==="continuous"?N.jsx(pp,{colorScale:k,colorMap:E,gradientId:R},R):null})]})}const j8=["children","className","title","desc"],U8=zt("svg",{name:"MuiChartsSurface",slot:"Root"})(({ownerState:t})=>({width:t.width??"100%",height:t.height??"100%",display:"flex",position:"relative",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden",touchAction:"pan-y",userSelect:"none"})),B8=U.forwardRef(function(e,r){const a=ne(),{width:s,height:l}=wt(a,HR),{width:c,height:f}=wt(a,DS),p=ng(),d=Si(p,r),m=Kn({props:e,name:"MuiChartsSurface"}),{children:y,className:v,title:b,desc:x}=m,S=te(m,j8),A=l>0&&s>0;return N.jsxs(U8,G({ownerState:{width:c,height:f},viewBox:`0 0 ${s} ${l}`,className:v},S,{ref:d,children:[b&&N.jsx("title",{children:b}),x&&N.jsx("desc",{children:x}),N.jsx(L8,{}),A&&y]}))}),H8=["width","height","margin","children","series","colors","dataset","desc","onAxisClick","highlightedAxis","onHighlightedAxisChange","disableVoronoi","voronoiMaxRadius","onItemClick","disableAxisListener","highlightedItem","onHighlightChange","sx","title","xAxis","yAxis","zAxis","rotationAxis","radiusAxis","skipAnimation","seriesConfig","plugins","localeText","slots","slotProps","experimentalFeatures"],I8=(t,e)=>{const r=t,{width:a,height:s,margin:l,children:c,series:f,colors:p,dataset:d,desc:m,onAxisClick:y,highlightedAxis:v,onHighlightedAxisChange:b,disableVoronoi:x,voronoiMaxRadius:S,onItemClick:A,disableAxisListener:w,highlightedItem:D,onHighlightChange:O,sx:R,title:E,xAxis:k,yAxis:z,zAxis:H,rotationAxis:L,radiusAxis:C,skipAnimation:_,seriesConfig:I,plugins:q,localeText:it,slots:lt,slotProps:j,experimentalFeatures:Y}=r,W=te(r,H8),J=G({title:E,desc:m,sx:R,ref:e},W);return{chartDataProviderProps:{margin:l,series:f,colors:p,dataset:d,disableAxisListener:w,highlightedItem:D,onHighlightChange:O,onAxisClick:y,highlightedAxis:v,onHighlightedAxisChange:b,disableVoronoi:x,voronoiMaxRadius:S,onItemClick:A,xAxis:k,yAxis:z,zAxis:H,rotationAxis:L,radiusAxis:C,skipAnimation:_,width:a,height:s,localeText:it,seriesConfig:I,experimentalFeatures:Y,plugins:q??UT,slots:lt,slotProps:j},chartsSurfaceProps:J,children:c}},P8=(t,e)=>t==="vertical"?(e==null?void 0:e.horizontal)==="start"?"row":"row-reverse":(e==null?void 0:e.vertical)==="bottom"?"column-reverse":"column",G8=(t,e)=>{if(t==="vertical"){if((e==null?void 0:e.vertical)==="top")return"flex-start";if((e==null?void 0:e.vertical)==="bottom")return"flex-end"}if(t==="horizontal"){if((e==null?void 0:e.horizontal)==="start")return"flex-start";if((e==null?void 0:e.horizontal)==="end")return"flex-end"}return"center"},Y8=zt("div",{name:"MuiChartsWrapper",slot:"Root",shouldForwardProp:t=>ac(t)&&t!=="extendVertically"})(({ownerState:t})=>({display:"flex",flexDirection:P8(t.legendDirection,t.legendPosition),flex:1,justifyContent:"center",alignItems:G8(t.legendDirection,t.legendPosition),variants:[{props:{extendVertically:!0},style:{height:"100%"}}]}));function q8(t){const{children:e,sx:r,extendVertically:a}=t,s=v4(),l=ne(),{height:c}=wt(l,DS);return N.jsx(Y8,{ref:s,ownerState:t,sx:r,extendVertically:a??c===void 0,children:e})}const Vp=U.forwardRef(function(e,r){var O,R,E,k;const a=Kn({props:e,name:"MuiBarChart"}),{chartsWrapperProps:s,chartContainerProps:l,barPlotProps:c,gridProps:f,clipPathProps:p,clipPathGroupProps:d,overlayProps:m,chartsAxisProps:y,axisHighlightProps:v,legendProps:b,children:x}=hN(a),{chartDataProviderProps:S,chartsSurfaceProps:A}=I8(l,r),w=((O=a.slots)==null?void 0:O.tooltip)??k$,D=(R=a.slots)==null?void 0:R.toolbar;return N.jsx(_8,G({},S,{children:N.jsxs(q8,G({},s,{children:[a.showToolbar&&D?N.jsx(D,G({},(E=a.slotProps)==null?void 0:E.toolbar)):null,!a.hideLegend&&N.jsx(G$,G({},b)),N.jsxs(B8,G({},A,{children:[N.jsx(nN,G({},f)),N.jsxs("g",G({},d,{children:[N.jsx(K4,G({},c)),N.jsx(cN,G({},m)),N.jsx(K$,G({},v))]})),N.jsx(Dz,G({},y)),N.jsx(Z$,G({},p)),x]})),!a.loading&&N.jsx(w,G({},(k=a.slotProps)==null?void 0:k.tooltip))]}))}))});new TextEncoder;const V8=new TextDecoder,X8=t=>new Uint8Array(t),K8=X8,Z8=(t,e,r)=>{let a;return e===void 0?a=t:r===void 0?a=t.subarray(e):a=t.subarray(e,e+r),V8.decode(a)},BT=(t,e,r)=>a=>{const s=(1<<e)-1;let l="",c=0,f=0;for(let p=0;p<a.length;++p)for(f=f<<8|a[p],c+=8;c>e;)c-=e,l+=t[s&f>>c];if(c!==0&&(l+=t[s&f<<e-c]),r)for(;(l.length*e&7)!==0;)l+="=";return l},Q8=(t,e,r)=>{const a={};for(let s=0;s<t.length;++s)a[t[s]]=s;return s=>{let l=s.length;for(;r&&s[l-1]==="=";)--l;const c=K8(l*e/8|0);let f=0,p=0,d=0;for(let m=0;m<l;++m){const y=a[s[m]];if(y===void 0)throw new SyntaxError("invalid base string");p=p<<e|y,f+=e,f>=8&&(f-=8,c[d++]=255&p>>f)}if(f>=e||(255&p<<8-f)!==0)throw new SyntaxError("unexpected end of data");return c}},HT="fromBase64"in Uint8Array,IT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",F8=Q8(IT,6,!1),W8=BT(IT,6,!1),J8=t=>Uint8Array.fromBase64(t,{alphabet:"base64",lastChunkHandling:"loose"}),tL=t=>t.toBase64({alphabet:"base64",omitPadding:!0}),eL=HT?J8:F8,nL=HT?tL:W8,rL="abcdefghijklmnopqrstuvwxyz234567",iL=BT(rL,5,!1),aL=1,oL=18,sL=85,lL=113,uL=Symbol.for("@atcute/cid-link-wrapper");var jx;jx=uL;class yg{constructor(e){Et(this,"bytes");Et(this,jx,!0);this.bytes=e}get $link(){return`b${iL(this.bytes)}`}toJSON(){return{$link:this.$link}}}const cL=t=>new yg(t.bytes),fL=Symbol.for("@atcute/bytes-wrapper");var Ux;Ux=fL;class PT{constructor(e){Et(this,"buf");Et(this,Ux,!0);this.buf=e}get $bytes(){return nL(this.buf)}toJSON(){return{$bytes:this.$bytes}}}const dL=t=>new PT(t),Rx=t=>t instanceof PT?t.buf:eL(t.$bytes),Rr=(t,e)=>{if(e<24)return e;switch(e){case 24:return Lc(t);case 25:return pL(t);case 26:return mL(t);case 27:return gL(t)}throw new Error(`invalid argument encoding; got ${e}`)},hL=t=>{const r=(t.v??(t.v=new DataView(t.b.buffer,t.b.byteOffset,t.b.byteLength))).getFloat64(t.p);return t.p+=8,r},Lc=t=>t.b[t.p++],pL=t=>{let e=t.p;const r=t.b,a=r[e++]<<8|r[e++];return t.p=e,a},mL=t=>{let e=t.p;const r=t.b,a=(r[e++]<<24|r[e++]<<16|r[e++]<<8|r[e++])>>>0;return t.p=e,a},gL=t=>{let e=t.p;const r=t.b,a=(r[e++]<<24|r[e++]<<16|r[e++]<<8|r[e++])>>>0;if(a>2097151)throw new RangeError("can't decode integers beyond safe integer range");const s=(r[e++]<<24|r[e++]<<16|r[e++]<<8|r[e++])>>>0,l=a*2**32+s;return t.p=e,l},GT=(t,e)=>{const r=Z8(t.b,t.p,e);return t.p+=e,r},yL=(t,e)=>{const r=t.b.subarray(t.p,t.p+=e);return dL(r)},vL=(t,e)=>{const r=t.b.subarray(t.p+1,t.p+=e);return new yg(r)},kx=t=>{const e=Lc(t),r=e>>5;if(r!==3)throw new TypeError(`expected map to only have string keys; got type ${r}`);const a=e&31,s=Rr(t,a);return GT(t,s)},Xp=t=>{const e=t.length,r={b:t,v:null,p:0};let a=null,s;t:for(;r.p<e;){const l=Lc(r),c=l>>5,f=l&31;switch(c){case 0:{s=Rr(r,f);break}case 1:{s=-1-Rr(r,f);break}case 2:{s=yL(r,Rr(r,f));break}case 3:{s=GT(r,Rr(r,f));break}case 4:{const p=Rr(r,f),d=new Array(p);if(s=d,p>0){a={t:1,c:d,k:null,r:p,n:a};continue t}break}case 5:{const p=Rr(r,f),d={};if(s=d,p>0){const m=kx(r);a={t:0,c:d,k:m,r:p,n:a};continue t}break}case 6:{const p=Rr(r,f);switch(p){case 42:{const d=Lc(r),m=d>>5,y=d&31;if(m!==2)throw new TypeError(`expected cid-link to be type 2 (bytes); got type ${m}`);const v=Rr(r,y);s=vL(r,v);break}default:throw new TypeError(`unsupported tag; got ${p}`)}break}case 7:{switch(f){case 20:case 21:{s=f===21;break}case 22:{s=null;break}case 27:{s=hL(r);break}default:throw new Error(`invalid simple value; got ${f}`)}break}default:throw new TypeError(`invalid type; got ${c}`)}for(;a!==null;){switch(a.t){case 0:{const p=a.c,d=a.k;d==="__proto__"&&Object.defineProperty(p,d,{enumerable:!0,configurable:!0,writable:!0}),p[d]=s;break}case 1:{const p=a.c,d=p.length-a.r;p[d]=s;break}}if(--a.r!==0){a.t===0&&(a.k=kx(r));continue t}s=a.c,a=a.n}break}return[s,t.subarray(r.p)]},YT=t=>{const[e,r]=Xp(t);if(r.length!==0)throw new Error("decoded value contains remainder");return e},bL=t=>{let e=0;return{get pos(){return e},seek(r){if(r>t.length-e)throw new RangeError("unexpected end of data");e+=r},upto(r){return t.subarray(e,e+r)},exactly(r,a){if(r>t.length-e)throw new RangeError("unexpected end of data");const s=t.subarray(e,e+r);return a&&(e+=r),s}}},xL=128,Dx=127,SL=(t,e=0)=>{let r=t.length,a=0,s=0,l=e,c;do{if(l>=r)throw new RangeError("could not decode varint");c=t[l++],a+=s<28?(c&Dx)<<s:(c&Dx)*Math.pow(2,s),s+=7}while(c>=xL);return[a,l-e]},TL=t=>{if(t===null||typeof t!="object")return!1;const{version:e,roots:r}=t;return e===1&&Array.isArray(r)&&r.every(a=>a instanceof yg)},qT=(t,e)=>{const r=t.upto(e);if(r.length===0)throw new RangeError("unexpected end of data");const[a,s]=SL(r);return t.seek(s),a},CL=t=>{const e=t.pos,r=qT(t,8);if(r===0)throw new RangeError("invalid car header; length=0");const a=t.pos,s=t.exactly(r,!0),l=YT(s);if(!TL(l))throw new TypeError("expected a car v1 archive");const c=t.pos;return{data:l,headerStart:e,headerEnd:c,dataStart:a,dataEnd:c}},AL=t=>{const e=t.exactly(4,!1),r=e[0],a=e[1],s=e[2],l=e[3];if(r!==aL)throw new RangeError(`incorrect cid version (got v${r})`);if(a!==lL&&a!==sL)throw new RangeError(`incorrect cid codec (got 0x${a.toString(16)})`);if(s!==oL)throw new RangeError(`incorrect cid digest type (got 0x${s.toString(16)})`);if(l!==32&&l!==0)throw new RangeError(`incorrect cid digest size (got ${l})`);const c=t.exactly(4+l,!0),f=c.subarray(4,4+l);return{version:r,codec:a,digest:{codec:s,contents:f},bytes:c}},EL=t=>({header:CL(t),*iterate(){for(;t.upto(44).length>0;){const r=t.pos,a=qT(t,8),s=t.pos,l=AL(t),c=t.pos,f=a-(c-s),p=t.exactly(f,!0),d=c,m=t.pos;yield{cid:l,bytes:p,entryStart:r,entryEnd:m,cidStart:s,cidEnd:d,bytesStart:c,bytesEnd:m}}}}),wL=t=>{const e=bL(t);return EL(e)};let ML=()=>({emit(t,...e){for(let r=this.events[t]||[],a=0,s=r.length;a<s;a++)r[a](...e)},events:{},on(t,e){var r;return((r=this.events)[t]||(r[t]=[])).push(e),()=>{var a;this.events[t]=(a=this.events[t])==null?void 0:a.filter(s=>e!==s)}}});class OL{constructor(e={}){Et(this,"relay");Et(this,"ws");Et(this,"cursor","");Et(this,"emitter",ML());Et(this,"autoReconnect");Et(this,"reconnectTimeout");this.relay=e.relay??"wss://bsky.network",this.cursor=e.cursor??"",this.autoReconnect=e.autoReconnect??!0;const r=this.cursor?`?cursor=${this.cursor}`:"";if(typeof globalThis.WebSocket>"u"&&!e.ws)throw new Error(`No WebSocket implementation was found in your environment. You must provide an implementation as the \`ws\` option. 224 + 225 + For example, in a Node.js environment, \`npm install ws\` and then: 226 + import { Firehose } from "@skyware/firehose"; 227 + import WebSocket from "ws"; 228 + 229 + const firehose = new Firehose({ 230 + ws: WebSocket, 231 + });`);const a=e.ws??globalThis.WebSocket;this.ws=new a(`${this.relay}/xrpc/com.atproto.sync.subscribeRepos${r}`)}start(){this.ws.addEventListener("open",()=>{this.emitter.emit("open")}),this.ws.addEventListener("message",async({data:e})=>{try{const r=await this.parseMessage(e);switch("seq"in r&&r.seq&&!isNaN(r.seq)&&(this.cursor=`${r.seq}`),r.$type){case"com.atproto.sync.subscribeRepos#identity":this.emitter.emit("identity",r);break;case"com.atproto.sync.subscribeRepos#account":this.emitter.emit("account",r);break;case"com.atproto.sync.subscribeRepos#info":this.emitter.emit("info",r);break;case"com.atproto.sync.subscribeRepos#sync":this.emitter.emit("sync",r);break;case"com.atproto.sync.subscribeRepos#commit":this.emitter.emit("commit",r);break;default:this.emitter.emit("unknown",r);break}}catch(r){this.emitter.emit("error",{cursor:this.cursor,error:r})}finally{this.autoReconnect&&this.preventReconnect()}}),this.ws.addEventListener("close",()=>{this.emitter.emit("close",this.cursor)}),this.ws.addEventListener("error",e=>{this.emitter.emit("websocketError",{cursor:this.cursor,error:e})})}close(){var e;(e=this.ws)==null||e.close()}on(e,r){return this.emitter.on(e,r)}async parseMessage(e){var d,m;const r=new Uint8Array(await new Blob(Array.isArray(e)?e:[e]).arrayBuffer()),[a,s]=Xp(r),[l,c]=Xp(s);if(c.length>0)throw new Error("Excess bytes in message");const{t:f,op:p}=RL(a);if(p===-1)throw new Error(`Error: ${l.message} 232 + Error code: ${l.error}`);if(f==="#commit"){const{seq:y,repo:v,commit:b,rev:x,since:S,blocks:A,ops:w,prevData:D,time:O}=l;if(!((d=A==null?void 0:A.$bytes)!=null&&d.length))return{$type:"com.atproto.sync.subscribeRepos#commit",seq:y,repo:v,commit:b.$link,rev:x,since:S,blocks:new Uint8Array,ops:[],...D?{prevData:D.$link}:{},time:O};const R=Rx(A),E=kL(R),k=[];for(const z of w){const H=z.action;if(H==="create"){if(!z.cid)continue;const L=E.get(z.cid.$link);if(!L)continue;k.push({action:H,path:z.path,cid:z.cid.$link,record:L})}else if(H==="update"){if(!z.cid)continue;const L=E.get(z.cid.$link);if(!L)continue;k.push({action:H,path:z.path,cid:z.cid.$link,...z.prev?{prev:z.prev.$link}:{},record:L})}else if(H==="delete")k.push({action:H,path:z.path,...z.prev?{prev:z.prev.$link}:{}});else throw new Error(`Unknown action: ${H}`)}return{$type:"com.atproto.sync.subscribeRepos#commit",seq:y,repo:v,commit:b.$link,rev:x,since:S,blocks:R,ops:k,...D?{prevData:D.$link}:{},time:O}}else if(f==="#sync"){const{seq:y,did:v,blocks:b,rev:x,time:S}=l,A=(m=b==null?void 0:b.$bytes)!=null&&m.length?Rx(b):new Uint8Array;return{$type:"com.atproto.sync.subscribeRepos#sync",seq:y,did:v,blocks:A,rev:x,time:S}}return{$type:`com.atproto.sync.subscribeRepos${f}`,...l}}preventReconnect(){this.reconnectTimeout&&clearTimeout(this.reconnectTimeout),this.reconnectTimeout=setTimeout(()=>{this.reconnect()},5e3)}reconnect(){var e;(e=this.ws)==null||e.close(),this.start(),this.emitter.emit("reconnect")}}function RL(t){if(!t||typeof t!="object"||!t.t||typeof t.t!="string"||!t.op||typeof t.op!="number")throw new Error("Invalid header received");return{t:t.t,op:t.op}}function kL(t){const e=new Map;for(const{cid:r,bytes:a}of wL(t).iterate())e.set(cL(r).$link,YT(a));return e}const DL="234567abcdefghijklmnopqrstuvwxyz",_x=t=>{let e=0;for(const r of t)e=e*32+DL.indexOf(r);return e},_L=/^[234567abcdefghij][234567abcdefghijklmnopqrstuvwxyz]{12}$/,zL=t=>{if(!$L(t))throw new Error("invalid TID");const e=_x(t.slice(0,11)),r=_x(t.slice(11,13));return{timestamp:e,clockid:r}},$L=t=>t.length===13&&_L.test(t),NL="app.bsky.feed.like",Ys=32,Gi=32,ec=Ys*Gi;function LL({url:t,desc:e,includeEvents:r,onRecieveEvent:a}){const[s,l]=U.useState("connecting"),[c,f]=U.useState(0),[p,d]=U.useState(0),[m,y]=U.useState({idx:Array.from({length:Gi+2}).map(()=>0),recv:Array.from({length:Gi+2}).map(()=>0)});return U.useEffect(()=>{const v=(x,S)=>{if(r.has(x)&&(a(x,S),f(A=>A+1),x==="commit"&&S.ops.length===1)){const A=S.ops[0];try{const[w,D]=A.path.split("/");if(w===NL){const O=zL(D).timestamp/1e3,R=Date.parse(S.time),E=R-O,k=+new Date-R;let z,H;E<0?z=-1:E>=ec?z=Gi:z=Math.min(Math.floor(E/Ys),ec),k<0?H=-1:k>=ec?H=Gi:H=Math.min(Math.floor(k/Ys),ec),y(({idx:L,recv:C})=>(L=L.slice(),C=C.slice(),L[z+1]+=1,C[H+1]+=1,{idx:L,recv:C}))}}catch{}}},b=new OL({relay:t});return b.on("open",()=>l("connected")),b.on("close",()=>l("closed")),b.on("reconnect",()=>d(x=>x+1)),b.on("error",x=>{console.error("oops",x),l("errored")}),b.on("websocketError",()=>l("errored")),b.on("commit",x=>v("commit",x)),b.on("sync",x=>v("sync",x)),b.on("account",x=>v("account",x)),b.on("identity",x=>v("identity",x)),b.on("info",(...x)=>console.info("info event",...x)),b.on("unknown",x=>console.warn(`unknown event from ${t}`,x)),b.start(),()=>{b.close()}},[t,r]),N.jsxs("div",{className:"relay",children:[N.jsx("h2",{children:e}),N.jsx("p",{children:N.jsx("code",{children:t})}),N.jsxs("p",{children:["[",N.jsx("code",{children:s}),"] (",N.jsx("code",{children:c.toLocaleString()})," events)"]}),p>0&&N.jsxs("p",{children:["reconnects: ",N.jsx("code",{children:p})]}),N.jsx(Vp,{height:180,width:420,yAxis:[{label:"events",scaleType:"symlog"}],skipAnimation:!0,xAxis:[{data:[-1].concat(Array.from({length:Gi}).map((v,b)=>b*Ys)).concat(["+"]),label:"index latency (ms)"}],series:[{data:m.idx}]}),N.jsx(Vp,{height:180,width:420,yAxis:[{label:"events",scaleType:"symlog"}],skipAnimation:!0,xAxis:[{data:[-1].concat(Array.from({length:Gi}).map((v,b)=>b*Ys)).concat(["+"]),label:"receive latency (ms)"}],series:[{data:m.recv}]})]})}const zx=[{url:"wss://atproto.africa",desc:"Blacksky"},{url:"wss://bsky.network",desc:"Bluesky primary (+Rainbow)"},{url:"wss://relay1.us-east.bsky.network",desc:"Bluesky sync1.1 east (+Rainbow)"},{url:"wss://relay1.us-west.bsky.network",desc:"Bluesky sync1.1 west (+Rainbow)"},{url:"wss://relay.fire.hose.cam",desc:"microcosm Montreal"},{url:"wss://relay3.fr.hose.cam",desc:"microcosm France"},{url:"wss://relay.hayescmd.net",desc:"@edavis.dev's relay"},{url:"wss://relay.xero.systems",desc:"@dane.is.extraordinarily.cool's relay"}],$x=1600,jL=6,Nx=10*60*1e3,Lx=(t,e,r)=>{};function UL(){const[t,e]=U.useState([]),[r,a]=U.useState(["commit","sync","account","identity","unknown"]),[s,l]=U.useState(new Set(r)),[c,f]=U.useState(()=>Lx),[p,d]=U.useState(()=>()=>{}),[m,y]=U.useState({series:[]}),[v,b]=U.useState(!1),[x,S]=U.useState("");U.useEffect(()=>{let D=performance.now(),O={},R=[],E=requestAnimationFrame(L),k=setTimeout(z,Nx);f(()=>(C,_,I)=>{O[C]||(O[C]=0),O[C]+=1}),d(()=>()=>{clearTimeout(k),k=setTimeout(z,Nx),b(!1),console.info("keepalive: disconnection timer reset")});function z(){console.info("disconnecting due to inactivity"),e([]),b(!0)}const H=setInterval(()=>{let C=performance.now(),_=C-D;R.length>=jL-1&&R.shift(),R.push({t:C,dt:_,counts:O}),D=C,O={}},$x);function L(){var I;let C=performance.now();const _=Object.keys(((I=R.at(-1))==null?void 0:I.counts)||{}).toSorted();y({xAxis:[{data:R.map(({t:q})=>(-(C-q)/1e3).toFixed(1)).concat(["now"]),label:"bucket (seconds ago)"}],series:_.map(q=>({label:q,data:R.map(({dt:it,counts:lt})=>lt[q]?(lt[q]/(it/1e3)).toFixed(1):null).concat([O[q]?(O[q]/($x/1e3)).toFixed(1):null])}))}),E=requestAnimationFrame(L)}return()=>{f(()=>Lx),d(()=>()=>null),clearInterval(H),cancelAnimationFrame(E)}},[]);function A(D,O){b(!1),e(O?R=>R.includes(D)?R:[...R,D]:R=>R.includes(D)?R.filter(E=>E!==D):R),p()}function w(){if(!x)return"";try{let D;return x.includes("://")?D=new URL(x):D=new URL("https://"+x),D.protocol==="https:"?D.protocol="wss:":D.protocol==="http:"&&(D.protocol="ws:"),D.origin}catch{return""}}return N.jsxs(N.Fragment,{children:[N.jsx("h1",{children:"compare hoses"}),N.jsx("p",{children:N.jsxs("em",{children:["warning: enabling many relay connections requires a ",N.jsx("strong",{children:"lot"})," of bandwidth"]})}),N.jsxs("form",{style:{display:"block",textAlign:"left"},children:[zx.map(({url:D,desc:O})=>N.jsx("p",{style:{margin:0},children:N.jsxs("label",{children:[N.jsx("input",{type:"checkbox",onChange:R=>A(D,R.target.checked),checked:t.includes(D)}),` ${O} `,"(",N.jsx("code",{children:D.slice(6)}),")"]})},D)),N.jsx("p",{style:{margin:0},children:N.jsxs("label",{children:[N.jsx("input",{type:"checkbox",onChange:D=>{const O=w();O&&A(O,D.target.checked)},checked:t.includes(w())})," ",N.jsx("input",{type:"text",placeholder:"wss://…",value:x,onChange:D=>{const O=w();e(R=>R.includes(O)?R.filter(E=>E!==O):R),S(D.target.value)},onKeyDown:D=>{if(D.key!=="Enter")return;D.preventDefault();const O=w();O&&A(O,!0)}})," ",x&&N.jsx("code",{children:w()})]})})]}),N.jsxs("form",{style:{display:"block",margin:"1rem 0"},children:[N.jsx("span",{children:"events: "}),r.map(D=>N.jsxs("label",{children:[N.jsx("input",{type:"checkbox",checked:s.has(D),onChange:O=>{l(R=>{const E=new Set(R);return O.target.checked?E.add(D):E.delete(D),E})}})," ",D]},D))]}),N.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"2em",textAlign:"left"},children:t.map(D=>{const{desc:O}=zx.find(R=>R.url===D)??{desc:"custom relay"};return N.jsx("div",{children:N.jsx(LL,{url:D,desc:O,includeEvents:s,onRecieveEvent:(R,E)=>c(D,R,E)})},D)})}),v&&N.jsx("p",{children:N.jsx("em",{children:"disconnected to save bandwidth due to inactivity"})}),N.jsx("div",{className:"throughputs",children:N.jsx(Vp,{height:300,yAxis:[{label:"events / sec"}],skipAnimation:!0,...m})})]})}const BL=gm({colorSchemes:{dark:!0}});gE.createRoot(document.getElementById("root")).render(N.jsx(mw,{injectFirst:!0,children:N.jsx(qO,{theme:BL,children:N.jsx(UL,{})})}));
+1 -1
docs/index.html
··· 4 4 <meta charset="UTF-8" /> 5 5 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 6 6 <title>compare hoses</title> 7 - <script type="module" crossorigin src="/assets/index-GCbXm-Bp.js"></script> 7 + <script type="module" crossorigin src="/assets/index-KS4_m-xo.js"></script> 8 8 <link rel="stylesheet" crossorigin href="/assets/index-Br90oyGg.css"> 9 9 </head> 10 10 <body>