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

Configure Feed

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

build site

phil 1d3e9972 9a463d2e

+235 -235
-1
docs/assets/index-Br90oyGg.css
··· 1 - :root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#121212;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}#root{margin:0 auto;padding:2rem;text-align:center}h1{color:#fcf8c9}.throughputs{margin-top:1em}.relay h2{margin-bottom:0}.relay p{margin:0}
+1
docs/assets/index-Dv-8fvSG.css
··· 1 + :root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#121212;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:.3em;border:1px solid transparent;padding:.5em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}#root{margin:0 auto;padding:1rem;text-align:center}h1{color:#fcf8c9}.throughputs{margin-top:1em}.relay h2{margin-bottom:0}.relay p{margin:0}
-232
docs/assets/index-TkW73U8w.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.upcloud.world",desc:"UpCloud relay"},{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,{})})}));
+232
docs/assets/index-f73U_Nfl.js
··· 1 + var hA=Object.defineProperty;var pA=(t,e,r)=>e in t?hA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Ct=(t,e,r)=>pA(t,typeof e!="symbol"?e+"":e,r);function mA(t,e){for(var r=0;r<e.length;r++){const a=e[r];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in t)){const l=Object.getOwnPropertyDescriptor(a,o);l&&Object.defineProperty(t,o,l.get?l:{enumerable:!0,get:()=>a[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&a(u)}).observe(document,{childList:!0,subtree:!0});function r(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(o){if(o.ep)return;o.ep=!0;const l=r(o);fetch(o.href,l)}})();function Hx(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Oh={exports:{}},ks={};/** 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 cb;function gA(){if(cb)return ks;cb=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function r(a,o,l){var u=null;if(l!==void 0&&(u=""+l),o.key!==void 0&&(u=""+o.key),"key"in o){l={};for(var f in o)f!=="key"&&(l[f]=o[f])}else l=o;return o=l.ref,{$$typeof:t,type:a,key:u,ref:o!==void 0?o:null,props:l}}return ks.Fragment=e,ks.jsx=r,ks.jsxs=r,ks}var ub;function yA(){return ub||(ub=1,Oh.exports=gA()),Oh.exports}var D=yA(),Dh={exports:{}},Rs={},_h={exports:{}},zh={};/** 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 fb;function vA(){return fb||(fb=1,function(t){function e(U,Y){var W=U.length;U.push(Y);t:for(;0<W;){var J=W-1>>>1,N=U[J];if(0<o(N,Y))U[J]=Y,U[W]=N,W=J;else break t}}function r(U){return U.length===0?null:U[0]}function a(U){if(U.length===0)return null;var Y=U[0],W=U.pop();if(W!==Y){U[0]=W;t:for(var J=0,N=U.length,Z=N>>>1;J<Z;){var at=2*(J+1)-1,ot=U[at],ut=at+1,dt=U[ut];if(0>o(ot,W))ut<N&&0>o(dt,ot)?(U[J]=dt,U[ut]=W,J=ut):(U[J]=ot,U[at]=W,J=at);else if(ut<N&&0>o(dt,W))U[J]=dt,U[ut]=W,J=ut;else break t}}return Y}function o(U,Y){var W=U.sortIndex-Y.sortIndex;return W!==0?W:U.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 u=Date,f=u.now();t.unstable_now=function(){return u.now()-f}}var h=[],d=[],m=1,y=null,v=3,b=!1,x=!1,S=!1,w=!1,E=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function R(U){for(var Y=r(d);Y!==null;){if(Y.callback===null)a(d);else if(Y.startTime<=U)a(d),Y.sortIndex=Y.expirationTime,e(h,Y);else break;Y=r(d)}}function A(U){if(S=!1,R(U),!x)if(r(h)!==null)x=!0,_||(_=!0,H());else{var Y=r(d);Y!==null&&lt(A,Y.startTime-U)}}var _=!1,$=-1,I=5,L=-1;function C(){return w?!0:!(t.unstable_now()-L<I)}function z(){if(w=!1,_){var U=t.unstable_now();L=U;var Y=!0;try{t:{x=!1,S&&(S=!1,O($),$=-1),b=!0;var W=v;try{e:{for(R(U),y=r(h);y!==null&&!(y.expirationTime>U&&C());){var J=y.callback;if(typeof J=="function"){y.callback=null,v=y.priorityLevel;var N=J(y.expirationTime<=U);if(U=t.unstable_now(),typeof N=="function"){y.callback=N,R(U),Y=!0;break e}y===r(h)&&a(h),R(U)}else a(h);y=r(h)}if(y!==null)Y=!0;else{var Z=r(d);Z!==null&&lt(A,Z.startTime-U),Y=!1}}break t}finally{y=null,v=W,b=!1}Y=void 0}}finally{Y?H():_=!1}}}var H;if(typeof k=="function")H=function(){k(z)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,it=q.port2;q.port1.onmessage=z,H=function(){it.postMessage(null)}}else H=function(){E(z,0)};function lt(U,Y){$=E(function(){U(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(U){U.callback=null},t.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<U?Math.floor(1e3/U):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_next=function(U){switch(v){case 1:case 2:case 3:var Y=3;break;default:Y=v}var W=v;v=Y;try{return U()}finally{v=W}},t.unstable_requestPaint=function(){w=!0},t.unstable_runWithPriority=function(U,Y){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var W=v;v=U;try{return Y()}finally{v=W}},t.unstable_scheduleCallback=function(U,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,U){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=W+N,U={id:m++,callback:Y,priorityLevel:U,startTime:W,expirationTime:N,sortIndex:-1},W>J?(U.sortIndex=W,e(d,U),r(h)===null&&U===r(d)&&(S?(O($),$=-1):S=!0,lt(A,W-J))):(U.sortIndex=N,e(h,U),x||b||(x=!0,_||(_=!0,H()))),U},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(U){var Y=v;return function(){var W=v;v=Y;try{return U.apply(this,arguments)}finally{v=W}}}}(zh)),zh}var db;function bA(){return db||(db=1,_h.exports=vA()),_h.exports}var $h={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 hb;function xA(){if(hb)return Mt;hb=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=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 w(N,Z,at){this.props=N,this.context=Z,this.refs=S,this.updater=at||b}w.prototype.isReactComponent={},w.prototype.setState=function(N,Z){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,Z,"setState")},w.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function E(){}E.prototype=w.prototype;function O(N,Z,at){this.props=N,this.context=Z,this.refs=S,this.updater=at||b}var k=O.prototype=new E;k.constructor=O,x(k,w.prototype),k.isPureReactComponent=!0;var R=Array.isArray,A={H:null,A:null,T:null,S:null,V:null},_=Object.prototype.hasOwnProperty;function $(N,Z,at,ot,ut,dt){return at=dt.ref,{$$typeof:t,type:N,key:Z,ref:at!==void 0?at:null,props:dt}}function I(N,Z){return $(N.type,Z,void 0,void 0,void 0,N.props)}function L(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function C(N){var Z={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(at){return Z[at]})}var z=/\/+/g;function H(N,Z){return typeof N=="object"&&N!==null&&N.key!=null?C(""+N.key):Z.toString(36)}function q(){}function it(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(q,q):(N.status="pending",N.then(function(Z){N.status==="pending"&&(N.status="fulfilled",N.value=Z)},function(Z){N.status==="pending"&&(N.status="rejected",N.reason=Z)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function lt(N,Z,at,ot,ut){var dt=typeof N;(dt==="undefined"||dt==="boolean")&&(N=null);var ft=!1;if(N===null)ft=!0;else switch(dt){case"bigint":case"string":case"number":ft=!0;break;case"object":switch(N.$$typeof){case t:case e:ft=!0;break;case m:return ft=N._init,lt(ft(N._payload),Z,at,ot,ut)}}if(ft)return ut=ut(N),ft=ot===""?"."+H(N,0):ot,R(ut)?(at="",ft!=null&&(at=ft.replace(z,"$&/")+"/"),lt(ut,Z,at,"",function(nt){return nt})):ut!=null&&(L(ut)&&(ut=I(ut,at+(ut.key==null||N&&N.key===ut.key?"":(""+ut.key).replace(z,"$&/")+"/")+ft)),Z.push(ut)),1;ft=0;var At=ot===""?".":ot+":";if(R(N))for(var bt=0;bt<N.length;bt++)ot=N[bt],dt=At+H(ot,bt),ft+=lt(ot,Z,at,dt,ut);else if(bt=v(N),typeof bt=="function")for(N=bt.call(N),bt=0;!(ot=N.next()).done;)ot=ot.value,dt=At+H(ot,bt++),ft+=lt(ot,Z,at,dt,ut);else if(dt==="object"){if(typeof N.then=="function")return lt(it(N),Z,at,ot,ut);throw Z=String(N),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return ft}function U(N,Z,at){if(N==null)return N;var ot=[],ut=0;return lt(N,ot,"","",function(dt){return Z.call(at,dt,ut++)}),ot}function Y(N){if(N._status===-1){var Z=N._result;Z=Z(),Z.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=Z)}if(N._status===1)return N._result.default;throw N._result}var W=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=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(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function J(){}return Mt.Children={map:U,forEach:function(N,Z,at){U(N,function(){Z.apply(this,arguments)},at)},count:function(N){var Z=0;return U(N,function(){Z++}),Z},toArray:function(N){return U(N,function(Z){return Z})||[]},only:function(N){if(!L(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},Mt.Component=w,Mt.Fragment=r,Mt.Profiler=o,Mt.PureComponent=O,Mt.StrictMode=a,Mt.Suspense=h,Mt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,Mt.__COMPILER_RUNTIME={__proto__:null,c:function(N){return A.H.useMemoCache(N)}},Mt.cache=function(N){return function(){return N.apply(null,arguments)}},Mt.cloneElement=function(N,Z,at){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var ot=x({},N.props),ut=N.key,dt=void 0;if(Z!=null)for(ft in Z.ref!==void 0&&(dt=void 0),Z.key!==void 0&&(ut=""+Z.key),Z)!_.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 $(N.type,ut,void 0,void 0,dt,ot)},Mt.createContext=function(N){return N={$$typeof:u,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:l,_context:N},N},Mt.createElement=function(N,Z,at){var ot,ut={},dt=null;if(Z!=null)for(ot in Z.key!==void 0&&(dt=""+Z.key),Z)_.call(Z,ot)&&ot!=="key"&&ot!=="__self"&&ot!=="__source"&&(ut[ot]=Z[ot]);var ft=arguments.length-2;if(ft===1)ut.children=at;else if(1<ft){for(var At=Array(ft),bt=0;bt<ft;bt++)At[bt]=arguments[bt+2];ut.children=At}if(N&&N.defaultProps)for(ot in ft=N.defaultProps,ft)ut[ot]===void 0&&(ut[ot]=ft[ot]);return $(N,dt,void 0,void 0,null,ut)},Mt.createRef=function(){return{current:null}},Mt.forwardRef=function(N){return{$$typeof:f,render:N}},Mt.isValidElement=L,Mt.lazy=function(N){return{$$typeof:m,_payload:{_status:-1,_result:N},_init:Y}},Mt.memo=function(N,Z){return{$$typeof:d,type:N,compare:Z===void 0?null:Z}},Mt.startTransition=function(N){var Z=A.T,at={};A.T=at;try{var ot=N(),ut=A.S;ut!==null&&ut(at,ot),typeof ot=="object"&&ot!==null&&typeof ot.then=="function"&&ot.then(J,W)}catch(dt){W(dt)}finally{A.T=Z}},Mt.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},Mt.use=function(N){return A.H.use(N)},Mt.useActionState=function(N,Z,at){return A.H.useActionState(N,Z,at)},Mt.useCallback=function(N,Z){return A.H.useCallback(N,Z)},Mt.useContext=function(N){return A.H.useContext(N)},Mt.useDebugValue=function(){},Mt.useDeferredValue=function(N,Z){return A.H.useDeferredValue(N,Z)},Mt.useEffect=function(N,Z,at){var ot=A.H;if(typeof at=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ot.useEffect(N,Z)},Mt.useId=function(){return A.H.useId()},Mt.useImperativeHandle=function(N,Z,at){return A.H.useImperativeHandle(N,Z,at)},Mt.useInsertionEffect=function(N,Z){return A.H.useInsertionEffect(N,Z)},Mt.useLayoutEffect=function(N,Z){return A.H.useLayoutEffect(N,Z)},Mt.useMemo=function(N,Z){return A.H.useMemo(N,Z)},Mt.useOptimistic=function(N,Z){return A.H.useOptimistic(N,Z)},Mt.useReducer=function(N,Z,at){return A.H.useReducer(N,Z,at)},Mt.useRef=function(N){return A.H.useRef(N)},Mt.useState=function(N){return A.H.useState(N)},Mt.useSyncExternalStore=function(N,Z,at){return A.H.useSyncExternalStore(N,Z,at)},Mt.useTransition=function(){return A.H.useTransition()},Mt.version="19.1.0",Mt}var pb;function ol(){return pb||(pb=1,$h.exports=xA()),$h.exports}var Nh={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 mb;function SA(){if(mb)return qe;mb=1;var t=ol();function e(h){var d="https://react.dev/errors/"+h;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 #"+h+"; 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},o=Symbol.for("react.portal");function l(h,d,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:h,containerInfo:d,implementation:m}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,d){if(h==="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(h,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(h,d,null,m)},qe.flushSync=function(h){var d=u.T,m=a.p;try{if(u.T=null,a.p=2,h)return h()}finally{u.T=d,a.p=m,a.d.f()}},qe.preconnect=function(h,d){typeof h=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,a.d.C(h,d))},qe.prefetchDNS=function(h){typeof h=="string"&&a.d.D(h)},qe.preinit=function(h,d){if(typeof h=="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(h,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:y,integrity:v,fetchPriority:b}):m==="script"&&a.d.X(h,{crossOrigin:y,integrity:v,fetchPriority:b,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},qe.preinitModule=function(h,d){if(typeof h=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=f(d.as,d.crossOrigin);a.d.M(h,{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(h)},qe.preload=function(h,d){if(typeof h=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,y=f(m,d.crossOrigin);a.d.L(h,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(h,d){if(typeof h=="string")if(d){var m=f(d.as,d.crossOrigin);a.d.m(h,{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(h)},qe.requestFormReset=function(h){a.d.r(h)},qe.unstable_batchedUpdates=function(h,d){return h(d)},qe.useFormState=function(h,d,m){return u.H.useFormState(h,d,m)},qe.useFormStatus=function(){return u.H.useHostTransitionStatus()},qe.version="19.1.0",qe}var gb;function Px(){if(gb)return Nh.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(),Nh.exports=SA(),Nh.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 yb;function TA(){if(yb)return Rs;yb=1;var t=bA(),e=ol(),r=Px();function a(n){var i="https://react.dev/errors/"+n;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)i+="&args[]="+encodeURIComponent(arguments[s])}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 o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function l(n){var i=n,s=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(s=i.return),n=i.return;while(n)}return i.tag===3?s:null}function u(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 h(n){var i=n.alternate;if(!i){if(i=l(n),i===null)throw Error(a(188));return i!==n?null:n}for(var s=n,c=i;;){var p=s.return;if(p===null)break;var g=p.alternate;if(g===null){if(c=p.return,c!==null){s=c;continue}break}if(p.child===g.child){for(g=p.child;g;){if(g===s)return f(p),n;if(g===c)return f(p),i;g=g.sibling}throw Error(a(188))}if(s.return!==c.return)s=p,c=g;else{for(var T=!1,M=p.child;M;){if(M===s){T=!0,s=p,c=g;break}if(M===c){T=!0,c=p,s=g;break}M=M.sibling}if(!T){for(M=g.child;M;){if(M===s){T=!0,s=g,c=p;break}if(M===c){T=!0,c=g,s=p;break}M=M.sibling}if(!T)throw Error(a(189))}}if(s.alternate!==c)throw Error(a(190))}if(s.tag!==3)throw Error(a(188));return s.stateNode.current===s?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"),w=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),O=Symbol.for("react.consumer"),k=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),C=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function H(n){return n===null||typeof n!="object"?null:(n=z&&n[z]||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 w:return"Profiler";case S:return"StrictMode";case A:return"Suspense";case _:return"SuspenseList";case L:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case b:return"Portal";case k:return(n.displayName||"Context")+".Provider";case O: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 $:return i=n.displayName||null,i!==null?i:it(n.type)||"Memo";case I:i=n._payload,n=n._init;try{return it(n(i))}catch{}}return null}var lt=Array.isArray,U=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=[],N=-1;function Z(n){return{current:n}}function at(n){0>N||(n.current=J[N],J[N]=null,N--)}function ot(n,i){N++,J[N]=n.current,n.current=i}var ut=Z(null),dt=Z(null),ft=Z(null),At=Z(null);function bt(n,i){switch(ot(ft,i),ot(dt,n),ot(ut,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?Lv(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=Lv(i),n=Uv(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}at(ut),ot(ut,n)}function nt(){at(ut),at(dt),at(ft)}function ht(n){n.memoizedState!==null&&ot(At,n);var i=ut.current,s=Uv(i,n.type);i!==s&&(ot(dt,n),ot(ut,s))}function vt(n){dt.current===n&&(at(ut),at(dt)),At.current===n&&(at(At),Cs._currentValue=W)}var ct=Object.prototype.hasOwnProperty,$t=t.unstable_scheduleCallback,gt=t.unstable_cancelCallback,Yt=t.unstable_shouldYield,re=t.unstable_requestPaint,Lt=t.unstable_now,Be=t.unstable_getCurrentPriorityLevel,we=t.unstable_ImmediatePriority,Ae=t.unstable_UserBlockingPriority,De=t.unstable_NormalPriority,St=t.unstable_LowPriority,Ci=t.unstable_IdlePriority,Vr=t.log,wi=t.unstable_setDisableYieldValue,Hn=null,ve=null;function Fe(n){if(typeof Vr=="function"&&wi(n),ve&&typeof ve.setStrictMode=="function")try{ve.setStrictMode(Hn,n)}catch{}}var Ie=Math.clz32?Math.clz32:ur,He=Math.log,oe=Math.LN2;function ur(n){return n>>>=0,n===0?32:31-(He(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,s){var c=n.pendingLanes;if(c===0)return 0;var p=0,g=n.suspendedLanes,T=n.pingedLanes;n=n.warmLanes;var M=c&134217727;return M!==0?(c=M&~g,c!==0?p=fr(c):(T&=M,T!==0?p=fr(T):s||(s=M&~n,s!==0&&(p=fr(s))))):(M=c&~g,M!==0?p=fr(M):T!==0?p=fr(T):s||(s=c&~n,s!==0&&(p=fr(s)))),p===0?0:i!==0&&i!==p&&(i&g)===0&&(g=p&-p,s=i&-i,g>=s||g===32&&(s&4194048)!==0)?i:p}function _o(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function tC(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 xg(){var n=Ke;return Ke<<=1,(Ke&4194048)===0&&(Ke=256),n}function Sg(){var n=Pe;return Pe<<=1,(Pe&62914560)===0&&(Pe=4194304),n}function bf(n){for(var i=[],s=0;31>s;s++)i.push(n);return i}function zo(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function eC(n,i,s,c,p,g){var T=n.pendingLanes;n.pendingLanes=s,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=s,n.entangledLanes&=s,n.errorRecoveryDisabledLanes&=s,n.shellSuspendCounter=0;var M=n.entanglements,B=n.expirationTimes,K=n.hiddenUpdates;for(s=T&~s;0<s;){var et=31-Ie(s),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)}s&=~st}c!==0&&Tg(n,c,0),g!==0&&p===0&&n.tag!==0&&(n.suspendedLanes|=g&~(T&~i))}function Tg(n,i,s){n.pendingLanes|=i,n.suspendedLanes&=~i;var c=31-Ie(i);n.entangledLanes|=i,n.entanglements[c]=n.entanglements[c]|1073741824|s&4194090}function Cg(n,i){var s=n.entangledLanes|=i;for(n=n.entanglements;s;){var c=31-Ie(s),p=1<<c;p&i|n[c]&i&&(n[c]|=i),s&=~p}}function xf(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 Sf(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function wg(){var n=Y.p;return n!==0?n:(n=window.event,n===void 0?32:rb(n.type))}function nC(n,i){var s=Y.p;try{return Y.p=n,i()}finally{Y.p=s}}var Xr=Math.random().toString(36).slice(2),Ge="__reactFiber$"+Xr,We="__reactProps$"+Xr,sa="__reactContainer$"+Xr,Tf="__reactEvents$"+Xr,rC="__reactListeners$"+Xr,iC="__reactHandles$"+Xr,Ag="__reactResources$"+Xr,$o="__reactMarker$"+Xr;function Cf(n){delete n[Ge],delete n[We],delete n[Tf],delete n[rC],delete n[iC]}function la(n){var i=n[Ge];if(i)return i;for(var s=n.parentNode;s;){if(i=s[sa]||s[Ge]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(n=Pv(n);n!==null;){if(s=n[Ge])return s;n=Pv(n)}return i}n=s,s=n.parentNode}return null}function ca(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 ua(n){var i=n[Ag];return i||(i=n[Ag]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Ee(n){n[$o]=!0}var Eg=new Set,Mg={};function Ai(n,i){fa(n,i),fa(n+"Capture",i)}function fa(n,i){for(Mg[n]=i,n=0;n<i.length;n++)Eg.add(i[n])}var aC=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]*$"),kg={},Rg={};function oC(n){return ct.call(Rg,n)?!0:ct.call(kg,n)?!1:aC.test(n)?Rg[n]=!0:(kg[n]=!0,!1)}function Ol(n,i,s){if(oC(i))if(s===null)n.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var c=i.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){n.removeAttribute(i);return}}n.setAttribute(i,""+s)}}function Dl(n,i,s){if(s===null)n.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttribute(i,""+s)}}function dr(n,i,s,c){if(c===null)n.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}n.setAttributeNS(i,s,""+c)}}var wf,Og;function da(n){if(wf===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);wf=i&&i[1]||"",Og=-1<s.stack.indexOf(` 42 + at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return` 43 + `+wf+n+Og}var Af=!1;function Ef(n,i){if(!n||Af)return"";Af=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={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]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=c.DetermineComponentFrameRoot(),T=g[0],M=g[1];if(T&&M){var B=T.split(` 44 + `),K=M.split(` 45 + `);for(p=c=0;c<B.length&&!B[c].includes("DetermineComponentFrameRoot");)c++;for(;p<K.length&&!K[p].includes("DetermineComponentFrameRoot");)p++;if(c===B.length||p===K.length)for(c=B.length-1,p=K.length-1;1<=c&&0<=p&&B[c]!==K[p];)p--;for(;1<=c&&0<=p;c--,p--)if(B[c]!==K[p]){if(c!==1||p!==1)do if(c--,p--,0>p||B[c]!==K[p]){var et=` 46 + `+B[c].replace(" at new "," at ");return n.displayName&&et.includes("<anonymous>")&&(et=et.replace("<anonymous>",n.displayName)),et}while(1<=c&&0<=p);break}}}finally{Af=!1,Error.prepareStackTrace=s}return(s=n?n.displayName||n.name:"")?da(s):""}function sC(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 Dg(n){try{var i="";do i+=sC(n),n=n.return;while(n);return i}catch(s){return` 47 + Error generating stack: `+s.message+` 48 + `+s.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 _g(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function lC(n){var i=_g(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),c=""+n[i];if(!n.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var p=s.get,g=s.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return p.call(this)},set:function(T){c=""+T,g.call(this,T)}}),Object.defineProperty(n,i,{enumerable:s.enumerable}),{getValue:function(){return c},setValue:function(T){c=""+T},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function _l(n){n._valueTracker||(n._valueTracker=lC(n))}function zg(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var s=i.getValue(),c="";return n&&(c=_g(n)?n.checked?"true":"false":n.value),n=c,n!==s?(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 cC=/[\n"\\]/g;function Tn(n){return n.replace(cC,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Mf(n,i,s,c,p,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?kf(n,T,Sn(i)):s!=null?kf(n,T,Sn(s)):c!=null&&n.removeAttribute("value"),p==null&&g!=null&&(n.defaultChecked=!!g),p!=null&&(n.checked=p&&typeof p!="function"&&typeof p!="symbol"),M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?n.name=""+Sn(M):n.removeAttribute("name")}function $g(n,i,s,c,p,g,T,M){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(n.type=g),i!=null||s!=null){if(!(g!=="submit"&&g!=="reset"||i!=null))return;s=s!=null?""+Sn(s):"",i=i!=null?""+Sn(i):s,M||i===n.value||(n.value=i),n.defaultValue=i}c=c??p,c=typeof c!="function"&&typeof c!="symbol"&&!!c,n.checked=M?n.checked:!!c,n.defaultChecked=!!c,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(n.name=T)}function kf(n,i,s){i==="number"&&zl(n.ownerDocument)===n||n.defaultValue===""+s||(n.defaultValue=""+s)}function ha(n,i,s,c){if(n=n.options,i){i={};for(var p=0;p<s.length;p++)i["$"+s[p]]=!0;for(s=0;s<n.length;s++)p=i.hasOwnProperty("$"+n[s].value),n[s].selected!==p&&(n[s].selected=p),p&&c&&(n[s].defaultSelected=!0)}else{for(s=""+Sn(s),i=null,p=0;p<n.length;p++){if(n[p].value===s){n[p].selected=!0,c&&(n[p].defaultSelected=!0);return}i!==null||n[p].disabled||(i=n[p])}i!==null&&(i.selected=!0)}}function Ng(n,i,s){if(i!=null&&(i=""+Sn(i),i!==n.value&&(n.value=i),s==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=s!=null?""+Sn(s):""}function jg(n,i,s,c){if(i==null){if(c!=null){if(s!=null)throw Error(a(92));if(lt(c)){if(1<c.length)throw Error(a(93));c=c[0]}s=c}s==null&&(s=""),i=s}s=Sn(i),n.defaultValue=s,c=n.textContent,c===s&&c!==""&&c!==null&&(n.value=c)}function pa(n,i){if(i){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=i;return}}n.textContent=i}var uC=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 Lg(n,i,s){var c=i.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?c?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":c?n.setProperty(i,s):typeof s!="number"||s===0||uC.has(i)?i==="float"?n.cssFloat=s:n[i]=(""+s).trim():n[i]=s+"px"}function Ug(n,i,s){if(i!=null&&typeof i!="object")throw Error(a(62));if(n=n.style,s!=null){for(var c in s)!s.hasOwnProperty(c)||i!=null&&i.hasOwnProperty(c)||(c.indexOf("--")===0?n.setProperty(c,""):c==="float"?n.cssFloat="":n[c]="");for(var p in i)c=i[p],i.hasOwnProperty(p)&&s[p]!==c&&Lg(n,p,c)}else for(var g in i)i.hasOwnProperty(g)&&Lg(n,g,i[g])}function Rf(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 fC=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"]]),dC=/^[\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 dC.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var Of=null;function Df(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 Bg(n){var i=ca(n);if(i&&(n=i.stateNode)){var s=n[We]||null;t:switch(n=i.stateNode,i.type){case"input":if(Mf(n,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),i=s.name,s.type==="radio"&&i!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Tn(""+i)+'"][type="radio"]'),i=0;i<s.length;i++){var c=s[i];if(c!==n&&c.form===n.form){var p=c[We]||null;if(!p)throw Error(a(90));Mf(c,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(i=0;i<s.length;i++)c=s[i],c.form===n.form&&zg(c)}break t;case"textarea":Ng(n,s.value,s.defaultValue);break t;case"select":i=s.value,i!=null&&ha(n,!!s.multiple,i,!1)}}}var _f=!1;function Ig(n,i,s){if(_f)return n(i,s);_f=!0;try{var c=n(i);return c}finally{if(_f=!1,(ma!==null||ga!==null)&&(bc(),ma&&(i=ma,n=ga,ga=ma=null,Bg(i),n)))for(i=0;i<n.length;i++)Bg(n[i])}}function jo(n,i){var s=n.stateNode;if(s===null)return null;var c=s[We]||null;if(c===null)return null;s=c[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":(c=!c.disabled)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break t;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error(a(231,i,typeof s));return s}var hr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zf=!1;if(hr)try{var Lo={};Object.defineProperty(Lo,"passive",{get:function(){zf=!0}}),window.addEventListener("test",Lo,Lo),window.removeEventListener("test",Lo,Lo)}catch{zf=!1}var Kr=null,$f=null,Nl=null;function Hg(){if(Nl)return Nl;var n,i=$f,s=i.length,c,p="value"in Kr?Kr.value:Kr.textContent,g=p.length;for(n=0;n<s&&i[n]===p[n];n++);var T=s-n;for(c=1;c<=T&&i[s-c]===p[g-c];c++);return Nl=p.slice(n,1<c?1-c:void 0)}function jl(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 Ll(){return!0}function Pg(){return!1}function Je(n){function i(s,c,p,g,T){this._reactName=s,this._targetInst=p,this.type=c,this.nativeEvent=g,this.target=T,this.currentTarget=null;for(var M in n)n.hasOwnProperty(M)&&(s=n[M],this[M]=s?s(g):g[M]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Ll:Pg,this.isPropagationStopped=Pg,this}return m(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Ll)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Ll)},persist:function(){},isPersistent:Ll}),i}var Ei={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ul=Je(Ei),Uo=m({},Ei,{view:0,detail:0}),hC=Je(Uo),Nf,jf,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:Uf,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"?(Nf=n.screenX-Bo.screenX,jf=n.screenY-Bo.screenY):jf=Nf=0,Bo=n),Nf)},movementY:function(n){return"movementY"in n?n.movementY:jf}}),Gg=Je(Bl),pC=m({},Bl,{dataTransfer:0}),mC=Je(pC),gC=m({},Uo,{relatedTarget:0}),Lf=Je(gC),yC=m({},Ei,{animationName:0,elapsedTime:0,pseudoElement:0}),vC=Je(yC),bC=m({},Ei,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),xC=Je(bC),SC=m({},Ei,{data:0}),Yg=Je(SC),TC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},CC={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"},wC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function AC(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=wC[n])?!!i[n]:!1}function Uf(){return AC}var EC=m({},Uo,{key:function(n){if(n.key){var i=TC[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=jl(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?CC[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Uf,charCode:function(n){return n.type==="keypress"?jl(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?jl(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),MC=Je(EC),kC=m({},Bl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qg=Je(kC),RC=m({},Uo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Uf}),OC=Je(RC),DC=m({},Ei,{propertyName:0,elapsedTime:0,pseudoElement:0}),_C=Je(DC),zC=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}),$C=Je(zC),NC=m({},Ei,{newState:0,oldState:0}),jC=Je(NC),LC=[9,13,27,32],Bf=hr&&"CompositionEvent"in window,Io=null;hr&&"documentMode"in document&&(Io=document.documentMode);var UC=hr&&"TextEvent"in window&&!Io,Vg=hr&&(!Bf||Io&&8<Io&&11>=Io),Xg=" ",Kg=!1;function Zg(n,i){switch(n){case"keyup":return LC.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qg(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var ya=!1;function BC(n,i){switch(n){case"compositionend":return Qg(i);case"keypress":return i.which!==32?null:(Kg=!0,Xg);case"textInput":return n=i.data,n===Xg&&Kg?null:n;default:return null}}function IC(n,i){if(ya)return n==="compositionend"||!Bf&&Zg(n,i)?(n=Hg(),Nl=$f=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 Vg&&i.locale!=="ko"?null:i.data;default:return null}}var HC={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 Fg(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!HC[n.type]:i==="textarea"}function Wg(n,i,s,c){ma?ga?ga.push(c):ga=[c]:ma=c,i=Ac(i,"onChange"),0<i.length&&(s=new Ul("onChange","change",null,s,c),n.push({event:s,listeners:i}))}var Ho=null,Po=null;function PC(n){_v(n,0)}function Il(n){var i=No(n);if(zg(i))return n}function Jg(n,i){if(n==="change")return i}var t0=!1;if(hr){var If;if(hr){var Hf="oninput"in document;if(!Hf){var e0=document.createElement("div");e0.setAttribute("oninput","return;"),Hf=typeof e0.oninput=="function"}If=Hf}else If=!1;t0=If&&(!document.documentMode||9<document.documentMode)}function n0(){Ho&&(Ho.detachEvent("onpropertychange",r0),Po=Ho=null)}function r0(n){if(n.propertyName==="value"&&Il(Po)){var i=[];Wg(i,Po,n,Df(n)),Ig(PC,i)}}function GC(n,i,s){n==="focusin"?(n0(),Ho=i,Po=s,Ho.attachEvent("onpropertychange",r0)):n==="focusout"&&n0()}function YC(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Il(Po)}function qC(n,i){if(n==="click")return Il(i)}function VC(n,i){if(n==="input"||n==="change")return Il(i)}function XC(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var ln=typeof Object.is=="function"?Object.is:XC;function Go(n,i){if(ln(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var s=Object.keys(n),c=Object.keys(i);if(s.length!==c.length)return!1;for(c=0;c<s.length;c++){var p=s[c];if(!ct.call(i,p)||!ln(n[p],i[p]))return!1}return!0}function i0(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function a0(n,i){var s=i0(n);n=0;for(var c;s;){if(s.nodeType===3){if(c=n+s.textContent.length,n<=i&&c>=i)return{node:s,offset:i-n};n=c}t:{for(;s;){if(s.nextSibling){s=s.nextSibling;break t}s=s.parentNode}s=void 0}s=i0(s)}}function o0(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?o0(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function s0(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 s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)n=i.contentWindow;else break;i=zl(n.document)}return i}function Pf(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 KC=hr&&"documentMode"in document&&11>=document.documentMode,va=null,Gf=null,Yo=null,Yf=!1;function l0(n,i,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Yf||va==null||va!==zl(c)||(c=va,"selectionStart"in c&&Pf(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Yo&&Go(Yo,c)||(Yo=c,c=Ac(Gf,"onSelect"),0<c.length&&(i=new Ul("onSelect","select",null,i,s),n.push({event:i,listeners:c}),i.target=va)))}function Mi(n,i){var s={};return s[n.toLowerCase()]=i.toLowerCase(),s["Webkit"+n]="webkit"+i,s["Moz"+n]="moz"+i,s}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")},qf={},c0={};hr&&(c0=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 ki(n){if(qf[n])return qf[n];if(!ba[n])return n;var i=ba[n],s;for(s in i)if(i.hasOwnProperty(s)&&s in c0)return qf[n]=i[s];return n}var u0=ki("animationend"),f0=ki("animationiteration"),d0=ki("animationstart"),ZC=ki("transitionrun"),QC=ki("transitionstart"),FC=ki("transitioncancel"),h0=ki("transitionend"),p0=new Map,Vf="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(" ");Vf.push("scrollEnd");function Pn(n,i){p0.set(n,i),Ai(i,[n])}var m0=new WeakMap;function Cn(n,i){if(typeof n=="object"&&n!==null){var s=m0.get(n);return s!==void 0?s:(i={value:n,source:i,stack:Dg(i)},m0.set(n,i),i)}return{value:n,source:i,stack:Dg(i)}}var wn=[],xa=0,Xf=0;function Hl(){for(var n=xa,i=Xf=xa=0;i<n;){var s=wn[i];wn[i++]=null;var c=wn[i];wn[i++]=null;var p=wn[i];wn[i++]=null;var g=wn[i];if(wn[i++]=null,c!==null&&p!==null){var T=c.pending;T===null?p.next=p:(p.next=T.next,T.next=p),c.pending=p}g!==0&&g0(s,p,g)}}function Pl(n,i,s,c){wn[xa++]=n,wn[xa++]=i,wn[xa++]=s,wn[xa++]=c,Xf|=c,n.lanes|=c,n=n.alternate,n!==null&&(n.lanes|=c)}function Kf(n,i,s,c){return Pl(n,i,s,c),Gl(n)}function Sa(n,i){return Pl(n,null,null,i),Gl(n)}function g0(n,i,s){n.lanes|=s;var c=n.alternate;c!==null&&(c.lanes|=s);for(var p=!1,g=n.return;g!==null;)g.childLanes|=s,c=g.alternate,c!==null&&(c.childLanes|=s),g.tag===22&&(n=g.stateNode,n===null||n._visibility&1||(p=!0)),n=g,g=g.return;return n.tag===3?(g=n.stateNode,p&&i!==null&&(p=31-Ie(s),n=g.hiddenUpdates,c=n[p],c===null?n[p]=[i]:c.push(i),i.lane=s|536870912),g):null}function Gl(n){if(50<ms)throw ms=0,th=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 WC(n,i,s,c){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function cn(n,i,s,c){return new WC(n,i,s,c)}function Zf(n){return n=n.prototype,!(!n||!n.isReactComponent)}function pr(n,i){var s=n.alternate;return s===null?(s=cn(n.tag,i,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=i,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&65011712,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,i=n.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s.refCleanup=n.refCleanup,s}function y0(n,i){n.flags&=65011714;var s=n.alternate;return s===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=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,i=s.dependencies,n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n}function Yl(n,i,s,c,p,g){var T=0;if(c=n,typeof n=="function")Zf(n)&&(T=1);else if(typeof n=="string")T=tA(n,s,ut.current)?26:n==="html"||n==="head"||n==="body"?27:5;else t:switch(n){case L:return n=cn(31,s,i,p),n.elementType=L,n.lanes=g,n;case x:return Ri(s.children,p,g,i);case S:T=8,p|=24;break;case w:return n=cn(12,s,i,p|2),n.elementType=w,n.lanes=g,n;case A:return n=cn(13,s,i,p),n.elementType=A,n.lanes=g,n;case _:return n=cn(19,s,i,p),n.elementType=_,n.lanes=g,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case E:case k:T=10;break t;case O:T=9;break t;case R:T=11;break t;case $:T=14;break t;case I:T=16,c=null;break t}T=29,s=Error(a(130,n===null?"null":typeof n,"")),c=null}return i=cn(T,s,i,p),i.elementType=n,i.type=c,i.lanes=g,i}function Ri(n,i,s,c){return n=cn(7,n,c,i),n.lanes=s,n}function Qf(n,i,s){return n=cn(6,n,null,i),n.lanes=s,n}function Ff(n,i,s){return i=cn(4,n.children!==null?n.children:[],n.key,i),i.lanes=s,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}var Ca=[],wa=0,ql=null,Vl=0,An=[],En=0,Oi=null,mr=1,gr="";function Di(n,i){Ca[wa++]=Vl,Ca[wa++]=ql,ql=n,Vl=i}function v0(n,i,s){An[En++]=mr,An[En++]=gr,An[En++]=Oi,Oi=n;var c=mr;n=gr;var p=32-Ie(c)-1;c&=~(1<<p),s+=1;var g=32-Ie(i)+p;if(30<g){var T=p-p%5;g=(c&(1<<T)-1).toString(32),c>>=T,p-=T,mr=1<<32-Ie(i)+p|s<<p|c,gr=g+n}else mr=1<<g|s<<p|c,gr=n}function Wf(n){n.return!==null&&(Di(n,1),v0(n,1,0))}function Jf(n){for(;n===ql;)ql=Ca[--wa],Ca[wa]=null,Vl=Ca[--wa],Ca[wa]=null;for(;n===Oi;)Oi=An[--En],An[En]=null,gr=An[--En],An[En]=null,mr=An[--En],An[En]=null}var Ze=null,le=null,Ut=!1,_i=null,Qn=!1,td=Error(a(519));function zi(n){var i=Error(a(418,""));throw Xo(Cn(i,n)),td}function b0(n){var i=n.stateNode,s=n.type,c=n.memoizedProps;switch(i[Ge]=n,i[We]=c,s){case"dialog":Dt("cancel",i),Dt("close",i);break;case"iframe":case"object":case"embed":Dt("load",i);break;case"video":case"audio":for(s=0;s<ys.length;s++)Dt(ys[s],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,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0),_l(i);break;case"select":Dt("invalid",i);break;case"textarea":Dt("invalid",i),jg(i,c.value,c.defaultValue,c.children),_l(i)}s=c.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||i.textContent===""+s||c.suppressHydrationWarning===!0||jv(i.textContent,s)?(c.popover!=null&&(Dt("beforetoggle",i),Dt("toggle",i)),c.onScroll!=null&&Dt("scroll",i),c.onScrollEnd!=null&&Dt("scrollend",i),c.onClick!=null&&(i.onclick=Ec),i=!0):i=!1,i||zi(n)}function x0(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 x0(n),Ut=!0,!1;var i=n.tag,s;if((s=i!==3&&i!==27)&&((s=i===5)&&(s=n.type,s=!(s!=="form"&&s!=="button")||gh(n.type,n.memoizedProps)),s=!s),s&&le&&zi(n),x0(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(s=n.data,s==="/$"){if(i===0){le=Yn(n.nextSibling);break t}i--}else s!=="$"&&s!=="$!"&&s!=="$?"||i++;n=n.nextSibling}le=null}}else i===27?(i=le,ui(n.type)?(n=xh,xh=null,le=n):le=i):le=Ze?Yn(n.stateNode.nextSibling):null;return!0}function Vo(){le=Ze=null,Ut=!1}function S0(){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 ed=Z(null),$i=null,yr=null;function Zr(n,i,s){ot(ed,i._currentValue),i._currentValue=s}function vr(n){n._currentValue=ed.current,at(ed)}function nd(n,i,s){for(;n!==null;){var c=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),n===s)break;n=n.return}}function rd(n,i,s,c){var p=n.child;for(p!==null&&(p.return=n);p!==null;){var g=p.dependencies;if(g!==null){var T=p.child;g=g.firstContext;t:for(;g!==null;){var M=g;g=p;for(var B=0;B<i.length;B++)if(M.context===i[B]){g.lanes|=s,M=g.alternate,M!==null&&(M.lanes|=s),nd(g.return,s,n),c||(T=null);break t}g=M.next}}else if(p.tag===18){if(T=p.return,T===null)throw Error(a(341));T.lanes|=s,g=T.alternate,g!==null&&(g.lanes|=s),nd(T,s,n),T=null}else T=p.child;if(T!==null)T.return=p;else for(T=p;T!==null;){if(T===n){T=null;break}if(p=T.sibling,p!==null){p.return=T.return,T=p;break}T=T.return}p=T}}function Ko(n,i,s,c){n=null;for(var p=i,g=!1;p!==null;){if(!g){if((p.flags&524288)!==0)g=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var T=p.alternate;if(T===null)throw Error(a(387));if(T=T.memoizedProps,T!==null){var M=p.type;ln(p.pendingProps.value,T.value)||(n!==null?n.push(M):n=[M])}}else if(p===At.current){if(T=p.alternate,T===null)throw Error(a(387));T.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(n!==null?n.push(Cs):n=[Cs])}p=p.return}n!==null&&rd(i,n,s,c),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 T0($i,n)}function Kl(n,i){return $i===null&&Ni(n),T0(n,i)}function T0(n,i){var s=i._currentValue;if(i={context:i,memoizedValue:s,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 s}var JC=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:function(s,c){n.push(c)}};this.abort=function(){i.aborted=!0,n.forEach(function(s){return s()})}},tw=t.unstable_scheduleCallback,ew=t.unstable_NormalPriority,be={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function id(){return{controller:new JC,data:new Map,refCount:0}}function Zo(n){n.refCount--,n.refCount===0&&tw(ew,function(){n.controller.abort()})}var Qo=null,ad=0,Aa=0,Ea=null;function nw(n,i){if(Qo===null){var s=Qo=[];ad=0,Aa=sh(),Ea={status:"pending",value:void 0,then:function(c){s.push(c)}}}return ad++,i.then(C0,C0),i}function C0(){if(--ad===0&&Qo!==null){Ea!==null&&(Ea.status="fulfilled");var n=Qo;Qo=null,Aa=0,Ea=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function rw(n,i){var s=[],c={status:"pending",value:null,reason:null,then:function(p){s.push(p)}};return n.then(function(){c.status="fulfilled",c.value=i;for(var p=0;p<s.length;p++)(0,s[p])(i)},function(p){for(c.status="rejected",c.reason=p,p=0;p<s.length;p++)(0,s[p])(void 0)}),c}var w0=U.S;U.S=function(n,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&nw(n,i),w0!==null&&w0(n,i)};var ji=Z(null);function od(){var n=ji.current;return n!==null?n:ee.pooledCache}function Zl(n,i){i===null?ot(ji,ji.current):ot(ji,i.pool)}function A0(){var n=od();return n===null?null:{parent:be._currentValue,pool:n}}var Fo=Error(a(460)),E0=Error(a(474)),Ql=Error(a(542)),sd={then:function(){}};function M0(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Fl(){}function k0(n,i,s){switch(s=n[s],s===void 0?n.push(i):s!==i&&(i.then(Fl,Fl),i=s),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(c){if(i.status==="pending"){var p=i;p.status="fulfilled",p.value=c}},function(c){if(i.status==="pending"){var p=i;p.status="rejected",p.reason=c}})}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 R0(){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 ld(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cd(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,s){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(Pt&2)!==0){var p=c.pending;return p===null?i.next=i:(i.next=p.next,p.next=i),c.pending=i,i=Gl(n),g0(n,null,s),i}return Pl(n,c,i,s),Gl(n)}function Jo(n,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194048)!==0)){var c=i.lanes;c&=n.pendingLanes,s|=c,i.lanes=s,Cg(n,s)}}function ud(n,i){var s=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var p=null,g=null;if(s=s.firstBaseUpdate,s!==null){do{var T={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};g===null?p=g=T:g=g.next=T,s=s.next}while(s!==null);g===null?p=g=i:g=g.next=i}else p=g=i;s={baseState:c.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:c.shared,callbacks:c.callbacks},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=i:n.next=i,s.lastBaseUpdate=i}var fd=!1;function ts(){if(fd){var n=Ea;if(n!==null)throw n}}function es(n,i,s,c){fd=!1;var p=n.updateQueue;Qr=!1;var g=p.firstBaseUpdate,T=p.lastBaseUpdate,M=p.shared.pending;if(M!==null){p.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=p.baseState;T=0,et=K=B=null,M=g;do{var Q=M.lane&-536870913,F=Q!==M.lane;if(F?(_t&Q)===Q:(c&Q)===Q){Q!==0&&Q===Aa&&(fd=!0),et!==null&&(et=et.next={lane:0,tag:M.tag,payload:M.payload,callback:null,next:null});t:{var wt=n,xt=M;Q=i;var Xt=s;switch(xt.tag){case 1:if(wt=xt.payload,typeof wt=="function"){st=wt.call(Xt,st,Q);break t}st=wt;break t;case 3:wt.flags=wt.flags&-65537|128;case 0:if(wt=xt.payload,Q=typeof wt=="function"?wt.call(Xt,st,Q):wt,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=p.callbacks,F===null?p.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=p.shared.pending,M===null)break;F=M,M=F.next,F.next=null,p.lastBaseUpdate=F,p.shared.pending=null}}while(!0);et===null&&(B=st),p.baseState=B,p.firstBaseUpdate=K,p.lastBaseUpdate=et,g===null&&(p.shared.lanes=0),oi|=T,n.lanes=T,n.memoizedState=st}}function D0(n,i){if(typeof n!="function")throw Error(a(191,n));n.call(i)}function _0(n,i){var s=n.callbacks;if(s!==null)for(n.callbacks=null,n=0;n<s.length;n++)D0(s[n],i)}var Ma=Z(null),Wl=Z(0);function z0(n,i){n=Ar,ot(Wl,n),ot(Ma,i),Ar=n|i.baseLanes}function dd(){ot(Wl,Ar),ot(Ma,Ma.current)}function hd(){Ar=Wl.current,at(Ma),at(Wl)}var Jr=0,kt=null,qt=null,me=null,Jl=!1,ka=!1,Li=!1,tc=0,ns=0,Ra=null,iw=0;function de(){throw Error(a(321))}function pd(n,i){if(i===null)return!1;for(var s=0;s<i.length&&s<n.length;s++)if(!ln(n[s],i[s]))return!1;return!0}function md(n,i,s,c,p,g){return Jr=g,kt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,U.H=n===null||n.memoizedState===null?gy:yy,Li=!1,g=s(c,p),Li=!1,ka&&(g=N0(i,s,c,p)),$0(n),g}function $0(n){U.H=oc;var i=qt!==null&&qt.next!==null;if(Jr=0,me=qt=kt=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 N0(n,i,s,c){kt=n;var p=0;do{if(ka&&(Ra=null),ns=0,ka=!1,25<=p)throw Error(a(301));if(p+=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)}U.H=fw,g=i(s,c)}while(ka);return g}function aw(){var n=U.H,i=n.useState()[0];return i=typeof i.then=="function"?rs(i):i,n=n.useState()[0],(qt!==null?qt.memoizedState:null)!==n&&(kt.flags|=1024),i}function gd(){var n=tc!==0;return tc=0,n}function yd(n,i,s){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~s}function vd(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=kt=null,ka=!1,ns=tc=0,Ra=null}function tn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return me===null?kt.memoizedState=me=n:me=me.next=n,me}function ge(){if(qt===null){var n=kt.alternate;n=n!==null?n.memoizedState:null}else n=qt.next;var i=me===null?kt.memoizedState:me.next;if(i!==null)me=i,qt=n;else{if(n===null)throw kt.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?kt.memoizedState=me=n:me=me.next=n}return me}function bd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function rs(n){var i=ns;return ns+=1,Ra===null&&(Ra=[]),n=k0(Ra,n,i),i=kt,(me===null?i.memoizedState:me.next)===null&&(i=i.alternate,U.H=i===null||i.memoizedState===null?gy:yy),n}function ec(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return rs(n);if(n.$$typeof===k)return Ye(n)}throw Error(a(438,String(n)))}function xd(n){var i=null,s=kt.updateQueue;if(s!==null&&(i=s.memoCache),i==null){var c=kt.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(i={data:c.data.map(function(p){return p.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),s===null&&(s=bd(),kt.updateQueue=s),s.memoCache=i,s=i.data[i.index],s===void 0)for(s=i.data[i.index]=Array(n),c=0;c<n;c++)s[c]=C;return i.index++,s}function br(n,i){return typeof i=="function"?i(n):i}function nc(n){var i=ge();return Sd(i,qt,n)}function Sd(n,i,s){var c=n.queue;if(c===null)throw Error(a(311));c.lastRenderedReducer=s;var p=n.baseQueue,g=c.pending;if(g!==null){if(p!==null){var T=p.next;p.next=g.next,g.next=T}i.baseQueue=p=g,c.pending=null}if(g=n.baseState,p===null)n.memoizedState=g;else{i=p.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===Aa&&(et=!0);else if((Jr&Q)===Q){K=K.next,Q===Aa&&(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,kt.lanes|=Q,oi|=Q;st=K.action,Li&&s(g,st),g=K.hasEagerState?K.eagerState:s(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,kt.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&&(s=Ea,s!==null)))throw s;n.memoizedState=g,n.baseState=T,n.baseQueue=B,c.lastRenderedState=g}return p===null&&(c.lanes=0),[n.memoizedState,c.dispatch]}function Td(n){var i=ge(),s=i.queue;if(s===null)throw Error(a(311));s.lastRenderedReducer=n;var c=s.dispatch,p=s.pending,g=i.memoizedState;if(p!==null){s.pending=null;var T=p=p.next;do g=n(g,T.action),T=T.next;while(T!==p);ln(g,i.memoizedState)||(Me=!0),i.memoizedState=g,i.baseQueue===null&&(i.baseState=g),s.lastRenderedState=g}return[g,c]}function j0(n,i,s){var c=kt,p=ge(),g=Ut;if(g){if(s===void 0)throw Error(a(407));s=s()}else s=i();var T=!ln((qt||p).memoizedState,s);T&&(p.memoizedState=s,Me=!0),p=p.queue;var M=B0.bind(null,c,p,n);if(is(2048,8,M,[n]),p.getSnapshot!==i||T||me!==null&&me.memoizedState.tag&1){if(c.flags|=2048,Oa(9,rc(),U0.bind(null,c,p,s,i),null),ee===null)throw Error(a(349));g||(Jr&124)!==0||L0(c,i,s)}return s}function L0(n,i,s){n.flags|=16384,n={getSnapshot:i,value:s},i=kt.updateQueue,i===null?(i=bd(),kt.updateQueue=i,i.stores=[n]):(s=i.stores,s===null?i.stores=[n]:s.push(n))}function U0(n,i,s,c){i.value=s,i.getSnapshot=c,I0(i)&&H0(n)}function B0(n,i,s){return s(function(){I0(i)&&H0(n)})}function I0(n){var i=n.getSnapshot;n=n.value;try{var s=i();return!ln(n,s)}catch{return!0}}function H0(n){var i=Sa(n,2);i!==null&&pn(i,n,2)}function Cd(n){var i=tn();if(typeof n=="function"){var s=n;if(n=s(),Li){Fe(!0);try{s()}finally{Fe(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:br,lastRenderedState:n},i}function P0(n,i,s,c){return n.baseState=s,Sd(n,qt,typeof c=="function"?c:br)}function ow(n,i,s,c,p){if(ac(n))throw Error(a(485));if(n=i.action,n!==null){var g={payload:p,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){g.listeners.push(T)}};U.T!==null?s(!0):g.isTransition=!1,c(g),s=i.pending,s===null?(g.next=i.pending=g,G0(i,g)):(g.next=s.next,i.pending=s.next=g)}}function G0(n,i){var s=i.action,c=i.payload,p=n.state;if(i.isTransition){var g=U.T,T={};U.T=T;try{var M=s(p,c),B=U.S;B!==null&&B(T,M),Y0(n,i,M)}catch(K){wd(n,i,K)}finally{U.T=g}}else try{g=s(p,c),Y0(n,i,g)}catch(K){wd(n,i,K)}}function Y0(n,i,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(c){q0(n,i,c)},function(c){return wd(n,i,c)}):q0(n,i,s)}function q0(n,i,s){i.status="fulfilled",i.value=s,V0(i),n.state=s,i=n.pending,i!==null&&(s=i.next,s===i?n.pending=null:(s=s.next,i.next=s,G0(n,s)))}function wd(n,i,s){var c=n.pending;if(n.pending=null,c!==null){c=c.next;do i.status="rejected",i.reason=s,V0(i),i=i.next;while(i!==c)}n.action=null}function V0(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function X0(n,i){return i}function K0(n,i){if(Ut){var s=ee.formState;if(s!==null){t:{var c=kt;if(Ut){if(le){e:{for(var p=le,g=Qn;p.nodeType!==8;){if(!g){p=null;break e}if(p=Yn(p.nextSibling),p===null){p=null;break e}}g=p.data,p=g==="F!"||g==="F"?p:null}if(p){le=Yn(p.nextSibling),c=p.data==="F!";break t}}zi(c)}c=!1}c&&(i=s[0])}}return s=tn(),s.memoizedState=s.baseState=i,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:X0,lastRenderedState:i},s.queue=c,s=hy.bind(null,kt,c),c.dispatch=s,c=Cd(!1),g=Rd.bind(null,kt,!1,c.queue),c=tn(),p={state:i,dispatch:null,action:n,pending:null},c.queue=p,s=ow.bind(null,kt,p,g,s),p.dispatch=s,c.memoizedState=n,[i,s,!1]}function Z0(n){var i=ge();return Q0(i,qt,n)}function Q0(n,i,s){if(i=Sd(n,i,X0)[0],n=nc(br)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var c=rs(i)}catch(T){throw T===Fo?Ql:T}else c=i;i=ge();var p=i.queue,g=p.dispatch;return s!==i.memoizedState&&(kt.flags|=2048,Oa(9,rc(),sw.bind(null,p,s),null)),[c,g,n]}function sw(n,i){n.action=i}function F0(n){var i=ge(),s=qt;if(s!==null)return Q0(i,s,n);ge(),i=i.memoizedState,s=ge();var c=s.queue.dispatch;return s.memoizedState=n,[i,c,!1]}function Oa(n,i,s,c){return n={tag:n,create:s,deps:c,inst:i,next:null},i=kt.updateQueue,i===null&&(i=bd(),kt.updateQueue=i),s=i.lastEffect,s===null?i.lastEffect=n.next=n:(c=s.next,s.next=n,n.next=c,i.lastEffect=n),n}function rc(){return{destroy:void 0,resource:void 0}}function W0(){return ge().memoizedState}function ic(n,i,s,c){var p=tn();c=c===void 0?null:c,kt.flags|=n,p.memoizedState=Oa(1|i,rc(),s,c)}function is(n,i,s,c){var p=ge();c=c===void 0?null:c;var g=p.memoizedState.inst;qt!==null&&c!==null&&pd(c,qt.memoizedState.deps)?p.memoizedState=Oa(i,g,s,c):(kt.flags|=n,p.memoizedState=Oa(1|i,g,s,c))}function J0(n,i){ic(8390656,8,n,i)}function ty(n,i){is(2048,8,n,i)}function ey(n,i){return is(4,2,n,i)}function ny(n,i){return is(4,4,n,i)}function ry(n,i){if(typeof i=="function"){n=n();var s=i(n);return function(){typeof s=="function"?s():i(null)}}if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function iy(n,i,s){s=s!=null?s.concat([n]):null,is(4,4,ry.bind(null,i,n),s)}function Ad(){}function ay(n,i){var s=ge();i=i===void 0?null:i;var c=s.memoizedState;return i!==null&&pd(i,c[1])?c[0]:(s.memoizedState=[n,i],n)}function oy(n,i){var s=ge();i=i===void 0?null:i;var c=s.memoizedState;if(i!==null&&pd(i,c[1]))return c[0];if(c=n(),Li){Fe(!0);try{n()}finally{Fe(!1)}}return s.memoizedState=[c,i],c}function Ed(n,i,s){return s===void 0||(Jr&1073741824)!==0?n.memoizedState=i:(n.memoizedState=s,n=cv(),kt.lanes|=n,oi|=n,s)}function sy(n,i,s,c){return ln(s,i)?s:Ma.current!==null?(n=Ed(n,s,c),ln(n,i)||(Me=!0),n):(Jr&42)===0?(Me=!0,n.memoizedState=s):(n=cv(),kt.lanes|=n,oi|=n,i)}function ly(n,i,s,c,p){var g=Y.p;Y.p=g!==0&&8>g?g:8;var T=U.T,M={};U.T=M,Rd(n,!1,i,s);try{var B=p(),K=U.S;if(K!==null&&K(M,B),B!==null&&typeof B=="object"&&typeof B.then=="function"){var et=rw(B,c);as(n,i,et,hn(n))}else as(n,i,c,hn(n))}catch(st){as(n,i,{then:function(){},status:"rejected",reason:st},hn())}finally{Y.p=g,U.T=T}}function lw(){}function Md(n,i,s,c){if(n.tag!==5)throw Error(a(476));var p=cy(n).queue;ly(n,p,i,W,s===null?lw:function(){return uy(n),s(c)})}function cy(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 s={};return i.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:br,lastRenderedState:s},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}function uy(n){var i=cy(n).next.queue;as(n,i,{},hn())}function kd(){return Ye(Cs)}function fy(){return ge().memoizedState}function dy(){return ge().memoizedState}function cw(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var s=hn();n=Fr(s);var c=Wr(i,n,s);c!==null&&(pn(c,i,s),Jo(c,i,s)),i={cache:id()},n.payload=i;return}i=i.return}}function uw(n,i,s){var c=hn();s={lane:c,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null},ac(n)?py(i,s):(s=Kf(n,i,s,c),s!==null&&(pn(s,n,c),my(s,i,c)))}function hy(n,i,s){var c=hn();as(n,i,s,c)}function as(n,i,s,c){var p={lane:c,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};if(ac(n))py(i,p);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,s);if(p.hasEagerState=!0,p.eagerState=M,ln(M,T))return Pl(n,i,p,0),ee===null&&Hl(),!1}catch{}finally{}if(s=Kf(n,i,p,c),s!==null)return pn(s,n,c),my(s,i,c),!0}return!1}function Rd(n,i,s,c){if(c={lane:2,revertLane:sh(),action:c,hasEagerState:!1,eagerState:null,next:null},ac(n)){if(i)throw Error(a(479))}else i=Kf(n,s,c,2),i!==null&&pn(i,n,2)}function ac(n){var i=n.alternate;return n===kt||i!==null&&i===kt}function py(n,i){ka=Jl=!0;var s=n.pending;s===null?i.next=i:(i.next=s.next,s.next=i),n.pending=i}function my(n,i,s){if((s&4194048)!==0){var c=i.lanes;c&=n.pendingLanes,s|=c,i.lanes=s,Cg(n,s)}}var oc={readContext:Ye,use:ec,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},gy={readContext:Ye,use:ec,useCallback:function(n,i){return tn().memoizedState=[n,i===void 0?null:i],n},useContext:Ye,useEffect:J0,useImperativeHandle:function(n,i,s){s=s!=null?s.concat([n]):null,ic(4194308,4,ry.bind(null,i,n),s)},useLayoutEffect:function(n,i){return ic(4194308,4,n,i)},useInsertionEffect:function(n,i){ic(4,2,n,i)},useMemo:function(n,i){var s=tn();i=i===void 0?null:i;var c=n();if(Li){Fe(!0);try{n()}finally{Fe(!1)}}return s.memoizedState=[c,i],c},useReducer:function(n,i,s){var c=tn();if(s!==void 0){var p=s(i);if(Li){Fe(!0);try{s(i)}finally{Fe(!1)}}}else p=i;return c.memoizedState=c.baseState=p,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:p},c.queue=n,n=n.dispatch=uw.bind(null,kt,n),[c.memoizedState,n]},useRef:function(n){var i=tn();return n={current:n},i.memoizedState=n},useState:function(n){n=Cd(n);var i=n.queue,s=hy.bind(null,kt,i);return i.dispatch=s,[n.memoizedState,s]},useDebugValue:Ad,useDeferredValue:function(n,i){var s=tn();return Ed(s,n,i)},useTransition:function(){var n=Cd(!1);return n=ly.bind(null,kt,n.queue,!0,!1),tn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,s){var c=kt,p=tn();if(Ut){if(s===void 0)throw Error(a(407));s=s()}else{if(s=i(),ee===null)throw Error(a(349));(_t&124)!==0||L0(c,i,s)}p.memoizedState=s;var g={value:s,getSnapshot:i};return p.queue=g,J0(B0.bind(null,c,g,n),[n]),c.flags|=2048,Oa(9,rc(),U0.bind(null,c,g,s,i),null),s},useId:function(){var n=tn(),i=ee.identifierPrefix;if(Ut){var s=gr,c=mr;s=(c&~(1<<32-Ie(c)-1)).toString(32)+s,i="«"+i+"R"+s,s=tc++,0<s&&(i+="H"+s.toString(32)),i+="»"}else s=iw++,i="«"+i+"r"+s.toString(32)+"»";return n.memoizedState=i},useHostTransitionStatus:kd,useFormState:K0,useActionState:K0,useOptimistic:function(n){var i=tn();i.memoizedState=i.baseState=n;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=s,i=Rd.bind(null,kt,!0,s),s.dispatch=i,[n,i]},useMemoCache:xd,useCacheRefresh:function(){return tn().memoizedState=cw.bind(null,kt)}},yy={readContext:Ye,use:ec,useCallback:ay,useContext:Ye,useEffect:ty,useImperativeHandle:iy,useInsertionEffect:ey,useLayoutEffect:ny,useMemo:oy,useReducer:nc,useRef:W0,useState:function(){return nc(br)},useDebugValue:Ad,useDeferredValue:function(n,i){var s=ge();return sy(s,qt.memoizedState,n,i)},useTransition:function(){var n=nc(br)[0],i=ge().memoizedState;return[typeof n=="boolean"?n:rs(n),i]},useSyncExternalStore:j0,useId:fy,useHostTransitionStatus:kd,useFormState:Z0,useActionState:Z0,useOptimistic:function(n,i){var s=ge();return P0(s,qt,n,i)},useMemoCache:xd,useCacheRefresh:dy},fw={readContext:Ye,use:ec,useCallback:ay,useContext:Ye,useEffect:ty,useImperativeHandle:iy,useInsertionEffect:ey,useLayoutEffect:ny,useMemo:oy,useReducer:Td,useRef:W0,useState:function(){return Td(br)},useDebugValue:Ad,useDeferredValue:function(n,i){var s=ge();return qt===null?Ed(s,n,i):sy(s,qt.memoizedState,n,i)},useTransition:function(){var n=Td(br)[0],i=ge().memoizedState;return[typeof n=="boolean"?n:rs(n),i]},useSyncExternalStore:j0,useId:fy,useHostTransitionStatus:kd,useFormState:F0,useActionState:F0,useOptimistic:function(n,i){var s=ge();return qt!==null?P0(s,qt,n,i):(s.baseState=n,[n,s.queue.dispatch])},useMemoCache:xd,useCacheRefresh:dy},Da=null,os=0;function sc(n){var i=os;return os+=1,Da===null&&(Da=[]),k0(Da,n,i)}function ss(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function lc(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 vy(n){var i=n._init;return i(n._payload)}function by(n){function i(V,P){if(n){var X=V.deletions;X===null?(V.deletions=[P],V.flags|=16):X.push(P)}}function s(V,P){if(!n)return null;for(;P!==null;)i(V,P),P=P.sibling;return null}function c(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 p(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=Qf(X,V.mode,rt),P.return=V,P):(P=p(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===I&&vy(mt)===P.type)?(P=p(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=Ff(X,V.mode,rt),P.return=V,P):(P=p(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=p(P,X),P.return=V,P)}function st(V,P,X){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return P=Qf(""+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=Ff(P,V.mode,X),P.return=V,P;case I:var rt=P._init;return P=rt(P._payload),st(V,P,X)}if(lt(P)||H(P))return P=Ri(P,V.mode,X,null),P.return=V,P;if(typeof P.then=="function")return st(V,sc(P),X);if(P.$$typeof===k)return st(V,Kl(V,P),X);lc(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 I:return mt=X._init,X=mt(X._payload),Q(V,P,X,rt)}if(lt(X)||H(X))return mt!==null?null:et(V,P,X,rt,null);if(typeof X.then=="function")return Q(V,P,sc(X),rt);if(X.$$typeof===k)return Q(V,P,Kl(V,X),rt);lc(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 I:var Rt=rt._init;return rt=Rt(rt._payload),F(V,P,X,rt,mt)}if(lt(rt)||H(rt))return V=V.get(X)||null,et(P,V,rt,mt,null);if(typeof rt.then=="function")return F(V,P,X,sc(rt),mt);if(rt.$$typeof===k)return F(V,P,X,Kl(P,rt),mt);lc(P,rt)}return null}function wt(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 s(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=c(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 s(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=c(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(dA){return i(V,dA)}),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){s(V,P.sibling),rt=p(P,X.props.children),rt.return=V,V=rt;break t}}else if(P.elementType===mt||typeof mt=="object"&&mt!==null&&mt.$$typeof===I&&vy(mt)===P.type){s(V,P.sibling),rt=p(P,X.props),ss(rt,X),rt.return=V,V=rt;break t}s(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){s(V,P.sibling),rt=p(P,X.children||[]),rt.return=V,V=rt;break t}else{s(V,P);break}else i(V,P);P=P.sibling}rt=Ff(X,V.mode,rt),rt.return=V,V=rt}return T(V);case I:return mt=X._init,X=mt(X._payload),Xt(V,P,X,rt)}if(lt(X))return wt(V,P,X,rt);if(H(X)){if(mt=H(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,sc(X),rt);if(X.$$typeof===k)return Xt(V,P,Kl(V,X),rt);lc(V,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,P!==null&&P.tag===6?(s(V,P.sibling),rt=p(P,X),rt.return=V,V=rt):(s(V,P),rt=Qf(X,V.mode,rt),rt.return=V,V=rt),T(V)):s(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=cn(29,yt,null,V.mode);return Rt.lanes=rt,Rt.return=V,Rt}finally{}}}var _a=by(!0),xy=by(!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 Sy(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 cc(n){for(var i=n;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||bh(s)))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 Od(n,i,s,c){i=n.memoizedState,s=s(c,i),s=s==null?i:m({},i,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}var Dd={enqueueSetState:function(n,i,s){n=n._reactInternals;var c=hn(),p=Fr(c);p.payload=i,s!=null&&(p.callback=s),i=Wr(n,p,c),i!==null&&(pn(i,n,c),Jo(i,n,c))},enqueueReplaceState:function(n,i,s){n=n._reactInternals;var c=hn(),p=Fr(c);p.tag=1,p.payload=i,s!=null&&(p.callback=s),i=Wr(n,p,c),i!==null&&(pn(i,n,c),Jo(i,n,c))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var s=hn(),c=Fr(s);c.tag=2,i!=null&&(c.callback=i),i=Wr(n,c,s),i!==null&&(pn(i,n,s),Jo(i,n,s))}};function Ty(n,i,s,c,p,g,T){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,g,T):i.prototype&&i.prototype.isPureReactComponent?!Go(s,c)||!Go(p,g):!0}function Cy(n,i,s,c){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,c),i.state!==n&&Dd.enqueueReplaceState(i,i.state,null)}function Ui(n,i){var s=i;if("ref"in i){s={};for(var c in i)c!=="ref"&&(s[c]=i[c])}if(n=n.defaultProps){s===i&&(s=m({},s));for(var p in n)s[p]===void 0&&(s[p]=n[p])}return s}var uc=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 wy(n){uc(n)}function Ay(n){console.error(n)}function Ey(n){uc(n)}function fc(n,i){try{var s=n.onUncaughtError;s(i.value,{componentStack:i.stack})}catch(c){setTimeout(function(){throw c})}}function My(n,i,s){try{var c=n.onCaughtError;c(s.value,{componentStack:s.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function _d(n,i,s){return s=Fr(s),s.tag=3,s.payload={element:null},s.callback=function(){fc(n,i)},s}function ky(n){return n=Fr(n),n.tag=3,n}function Ry(n,i,s,c){var p=s.type.getDerivedStateFromError;if(typeof p=="function"){var g=c.value;n.payload=function(){return p(g)},n.callback=function(){My(i,s,c)}}var T=s.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(n.callback=function(){My(i,s,c),typeof p!="function"&&(si===null?si=new Set([this]):si.add(this));var M=c.stack;this.componentDidCatch(c.value,{componentStack:M!==null?M:""})})}function dw(n,i,s,c,p){if(s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(i=s.alternate,i!==null&&Ko(i,s,p,!0),s=Mn.current,s!==null){switch(s.tag){case 13:return Fn===null?nh():s.alternate===null&&ce===0&&(ce=3),s.flags&=-257,s.flags|=65536,s.lanes=p,c===sd?s.flags|=16384:(i=s.updateQueue,i===null?s.updateQueue=new Set([c]):i.add(c),ih(n,c,p)),!1;case 22:return s.flags|=65536,c===sd?s.flags|=16384:(i=s.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([c])},s.updateQueue=i):(s=i.retryQueue,s===null?i.retryQueue=new Set([c]):s.add(c)),ih(n,c,p)),!1}throw Error(a(435,s.tag))}return ih(n,c,p),nh(),!1}if(Ut)return i=Mn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=p,c!==td&&(n=Error(a(422),{cause:c}),Xo(Cn(n,s)))):(c!==td&&(i=Error(a(423),{cause:c}),Xo(Cn(i,s))),n=n.current.alternate,n.flags|=65536,p&=-p,n.lanes|=p,c=Cn(c,s),p=_d(n.stateNode,c,p),ud(n,p),ce!==4&&(ce=2)),!1;var g=Error(a(520),{cause:c});if(g=Cn(g,s),ps===null?ps=[g]:ps.push(g),ce!==4&&(ce=2),i===null)return!0;c=Cn(c,s),s=i;do{switch(s.tag){case 3:return s.flags|=65536,n=p&-p,s.lanes|=n,n=_d(s.stateNode,c,n),ud(s,n),!1;case 1:if(i=s.type,g=s.stateNode,(s.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(si===null||!si.has(g))))return s.flags|=65536,p&=-p,s.lanes|=p,p=ky(p),Ry(p,n,s,c),ud(s,p),!1}s=s.return}while(s!==null);return!1}var Oy=Error(a(461)),Me=!1;function _e(n,i,s,c){i.child=n===null?xy(i,null,s,c):_a(i,n.child,s,c)}function Dy(n,i,s,c,p){s=s.render;var g=i.ref;if("ref"in c){var T={};for(var M in c)M!=="ref"&&(T[M]=c[M])}else T=c;return Ni(i),c=md(n,i,s,T,g,p),M=gd(),n!==null&&!Me?(yd(n,i,p),Sr(n,i,p)):(Ut&&M&&Wf(i),i.flags|=1,_e(n,i,c,p),i.child)}function _y(n,i,s,c,p){if(n===null){var g=s.type;return typeof g=="function"&&!Zf(g)&&g.defaultProps===void 0&&s.compare===null?(i.tag=15,i.type=g,zy(n,i,g,c,p)):(n=Yl(s.type,null,c,i,i.mode,p),n.ref=i.ref,n.return=i,i.child=n)}if(g=n.child,!Id(n,p)){var T=g.memoizedProps;if(s=s.compare,s=s!==null?s:Go,s(T,c)&&n.ref===i.ref)return Sr(n,i,p)}return i.flags|=1,n=pr(g,c),n.ref=i.ref,n.return=i,i.child=n}function zy(n,i,s,c,p){if(n!==null){var g=n.memoizedProps;if(Go(g,c)&&n.ref===i.ref)if(Me=!1,i.pendingProps=c=g,Id(n,p))(n.flags&131072)!==0&&(Me=!0);else return i.lanes=n.lanes,Sr(n,i,p)}return zd(n,i,s,c,p)}function $y(n,i,s){var c=i.pendingProps,p=c.children,g=n!==null?n.memoizedState:null;if(c.mode==="hidden"){if((i.flags&128)!==0){if(c=g!==null?g.baseLanes|s:s,n!==null){for(p=i.child=n.child,g=0;p!==null;)g=g|p.lanes|p.childLanes,p=p.sibling;i.childLanes=g&~c}else i.childLanes=0,i.child=null;return Ny(n,i,c,s)}if((s&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&Zl(i,g!==null?g.cachePool:null),g!==null?z0(i,g):dd(),Sy(i);else return i.lanes=i.childLanes=536870912,Ny(n,i,g!==null?g.baseLanes|s:s,s)}else g!==null?(Zl(i,g.cachePool),z0(i,g),ei(),i.memoizedState=null):(n!==null&&Zl(i,null),dd(),ei());return _e(n,i,p,s),i.child}function Ny(n,i,s,c){var p=od();return p=p===null?null:{parent:be._currentValue,pool:p},i.memoizedState={baseLanes:s,cachePool:p},n!==null&&Zl(i,null),dd(),Sy(i),n!==null&&Ko(n,i,c,!0),null}function dc(n,i){var s=i.ref;if(s===null)n!==null&&n.ref!==null&&(i.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(a(284));(n===null||n.ref!==s)&&(i.flags|=4194816)}}function zd(n,i,s,c,p){return Ni(i),s=md(n,i,s,c,void 0,p),c=gd(),n!==null&&!Me?(yd(n,i,p),Sr(n,i,p)):(Ut&&c&&Wf(i),i.flags|=1,_e(n,i,s,p),i.child)}function jy(n,i,s,c,p,g){return Ni(i),i.updateQueue=null,s=N0(i,c,s,p),$0(n),c=gd(),n!==null&&!Me?(yd(n,i,g),Sr(n,i,g)):(Ut&&c&&Wf(i),i.flags|=1,_e(n,i,s,g),i.child)}function Ly(n,i,s,c,p){if(Ni(i),i.stateNode===null){var g=Ta,T=s.contextType;typeof T=="object"&&T!==null&&(g=Ye(T)),g=new s(c,g),i.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=Dd,i.stateNode=g,g._reactInternals=i,g=i.stateNode,g.props=c,g.state=i.memoizedState,g.refs={},ld(i),T=s.contextType,g.context=typeof T=="object"&&T!==null?Ye(T):Ta,g.state=i.memoizedState,T=s.getDerivedStateFromProps,typeof T=="function"&&(Od(i,s,T,c),g.state=i.memoizedState),typeof s.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&&Dd.enqueueReplaceState(g,g.state,null),es(i,c,g,p),ts(),g.state=i.memoizedState),typeof g.componentDidMount=="function"&&(i.flags|=4194308),c=!0}else if(n===null){g=i.stateNode;var M=i.memoizedProps,B=Ui(s,M);g.props=B;var K=g.context,et=s.contextType;T=Ta,typeof et=="object"&&et!==null&&(T=Ye(et));var st=s.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)&&Cy(i,g,c,T),Qr=!1;var Q=i.memoizedState;g.state=Q,es(i,c,g,p),ts(),K=i.memoizedState,M||Q!==K||Qr?(typeof st=="function"&&(Od(i,s,st,c),K=i.memoizedState),(B=Qr||Ty(i,s,B,c,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=c,i.memoizedState=K),g.props=c,g.state=K,g.context=T,c=B):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{g=i.stateNode,cd(n,i),T=i.memoizedProps,et=Ui(s,T),g.props=et,st=i.pendingProps,Q=g.context,K=s.contextType,B=Ta,typeof K=="object"&&K!==null&&(B=Ye(K)),M=s.getDerivedStateFromProps,(K=typeof M=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(T!==st||Q!==B)&&Cy(i,g,c,B),Qr=!1,Q=i.memoizedState,g.state=Q,es(i,c,g,p),ts();var F=i.memoizedState;T!==st||Q!==F||Qr||n!==null&&n.dependencies!==null&&Xl(n.dependencies)?(typeof M=="function"&&(Od(i,s,M,c),F=i.memoizedState),(et=Qr||Ty(i,s,et,c,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(c,F,B),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(c,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=c,i.memoizedState=F),g.props=c,g.state=F,g.context=B,c=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),c=!1)}return g=c,dc(n,i),c=(i.flags&128)!==0,g||c?(g=i.stateNode,s=c&&typeof s.getDerivedStateFromError!="function"?null:g.render(),i.flags|=1,n!==null&&c?(i.child=_a(i,n.child,null,p),i.child=_a(i,null,s,p)):_e(n,i,s,p),i.memoizedState=g.state,n=i.child):n=Sr(n,i,p),n}function Uy(n,i,s,c){return Vo(),i.flags|=256,_e(n,i,s,c),i.child}var $d={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nd(n){return{baseLanes:n,cachePool:A0()}}function jd(n,i,s){return n=n!==null?n.childLanes&~s:0,i&&(n|=kn),n}function By(n,i,s){var c=i.pendingProps,p=!1,g=(i.flags&128)!==0,T;if((T=g)||(T=n!==null&&n.memoizedState===null?!1:(xe.current&2)!==0),T&&(p=!0,i.flags&=-129),T=(i.flags&32)!==0,i.flags&=-33,n===null){if(Ut){if(p?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:Oi!==null?{id:mr,overflow:gr}:null,retryLane:536870912,hydrationErrors:null},B=cn(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 bh(M)?i.lanes=32:i.lanes=536870912,null;xr(i)}return M=c.children,c=c.fallback,p?(ei(),p=i.mode,M=hc({mode:"hidden",children:M},p),c=Ri(c,p,s,null),M.return=i,c.return=i,M.sibling=c,i.child=M,p=i.child,p.memoizedState=Nd(s),p.childLanes=jd(n,T,s),i.memoizedState=$d,c):(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=Ud(n,i,s)):i.memoizedState!==null?(ei(),i.child=n.child,i.flags|=128,i=null):(ei(),p=c.fallback,M=i.mode,c=hc({mode:"visible",children:c.children},M),p=Ri(p,M,s,null),p.flags|=2,c.return=i,p.return=i,c.sibling=p,i.child=c,_a(i,n.child,null,s),c=i.child,c.memoizedState=Nd(s),c.childLanes=jd(n,T,s),i.memoizedState=$d,i=p);else if(ti(i),bh(M)){if(T=M.nextSibling&&M.nextSibling.dataset,T)var K=T.dgst;T=K,c=Error(a(419)),c.stack="",c.digest=T,Xo({value:c,source:null,stack:null}),i=Ud(n,i,s)}else if(Me||Ko(n,i,s,!1),T=(s&n.childLanes)!==0,Me||T){if(T=ee,T!==null&&(c=s&-s,c=(c&42)!==0?1:xf(c),c=(c&(T.suspendedLanes|s))!==0?0:c,c!==0&&c!==B.retryLane))throw B.retryLane=c,Sa(n,c),pn(T,n,c),Oy;M.data==="$?"||nh(),i=Ud(n,i,s)}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&&(An[En++]=mr,An[En++]=gr,An[En++]=Oi,mr=n.id,gr=n.overflow,Oi=i),i=Ld(i,c.children),i.flags|=4096);return i}return p?(ei(),p=c.fallback,M=i.mode,B=n.child,K=B.sibling,c=pr(B,{mode:"hidden",children:c.children}),c.subtreeFlags=B.subtreeFlags&65011712,K!==null?p=pr(K,p):(p=Ri(p,M,s,null),p.flags|=2),p.return=i,c.return=i,c.sibling=p,i.child=c,c=p,p=i.child,M=n.child.memoizedState,M===null?M=Nd(s):(B=M.cachePool,B!==null?(K=be._currentValue,B=B.parent!==K?{parent:K,pool:K}:B):B=A0(),M={baseLanes:M.baseLanes|s,cachePool:B}),p.memoizedState=M,p.childLanes=jd(n,T,s),i.memoizedState=$d,c):(ti(i),s=n.child,n=s.sibling,s=pr(s,{mode:"visible",children:c.children}),s.return=i,s.sibling=null,n!==null&&(T=i.deletions,T===null?(i.deletions=[n],i.flags|=16):T.push(n)),i.child=s,i.memoizedState=null,s)}function Ld(n,i){return i=hc({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function hc(n,i){return n=cn(22,n,null,i),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function Ud(n,i,s){return _a(i,n.child,null,s),n=Ld(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function Iy(n,i,s){n.lanes|=i;var c=n.alternate;c!==null&&(c.lanes|=i),nd(n.return,i,s)}function Bd(n,i,s,c,p){var g=n.memoizedState;g===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:p}:(g.isBackwards=i,g.rendering=null,g.renderingStartTime=0,g.last=c,g.tail=s,g.tailMode=p)}function Hy(n,i,s){var c=i.pendingProps,p=c.revealOrder,g=c.tail;if(_e(n,i,c.children,s),c=xe.current,(c&2)!==0)c=c&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&&Iy(n,s,i);else if(n.tag===19)Iy(n,s,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}c&=1}switch(ot(xe,c),p){case"forwards":for(s=i.child,p=null;s!==null;)n=s.alternate,n!==null&&cc(n)===null&&(p=s),s=s.sibling;s=p,s===null?(p=i.child,i.child=null):(p=s.sibling,s.sibling=null),Bd(i,!1,p,s,g);break;case"backwards":for(s=null,p=i.child,i.child=null;p!==null;){if(n=p.alternate,n!==null&&cc(n)===null){i.child=p;break}n=p.sibling,p.sibling=s,s=p,p=n}Bd(i,!0,s,null,g);break;case"together":Bd(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Sr(n,i,s){if(n!==null&&(i.dependencies=n.dependencies),oi|=i.lanes,(s&i.childLanes)===0)if(n!==null){if(Ko(n,i,s,!1),(s&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,s=pr(n,n.pendingProps),i.child=s,s.return=i;n.sibling!==null;)n=n.sibling,s=s.sibling=pr(n,n.pendingProps),s.return=i;s.sibling=null}return i.child}function Id(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&Xl(n)))}function hw(n,i,s){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 c=i.memoizedState;if(c!==null)return c.dehydrated!==null?(ti(i),i.flags|=128,null):(s&i.child.childLanes)!==0?By(n,i,s):(ti(i),n=Sr(n,i,s),n!==null?n.sibling:null);ti(i);break;case 19:var p=(n.flags&128)!==0;if(c=(s&i.childLanes)!==0,c||(Ko(n,i,s,!1),c=(s&i.childLanes)!==0),p){if(c)return Hy(n,i,s);i.flags|=128}if(p=i.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),ot(xe,xe.current),c)break;return null;case 22:case 23:return i.lanes=0,$y(n,i,s);case 24:Zr(i,be,n.memoizedState.cache)}return Sr(n,i,s)}function Py(n,i,s){if(n!==null)if(n.memoizedProps!==i.pendingProps)Me=!0;else{if(!Id(n,s)&&(i.flags&128)===0)return Me=!1,hw(n,i,s);Me=(n.flags&131072)!==0}else Me=!1,Ut&&(i.flags&1048576)!==0&&v0(i,Vl,i.index);switch(i.lanes=0,i.tag){case 16:t:{n=i.pendingProps;var c=i.elementType,p=c._init;if(c=p(c._payload),i.type=c,typeof c=="function")Zf(c)?(n=Ui(c,n),i.tag=1,i=Ly(null,i,c,n,s)):(i.tag=0,i=zd(null,i,c,n,s));else{if(c!=null){if(p=c.$$typeof,p===R){i.tag=11,i=Dy(null,i,c,n,s);break t}else if(p===$){i.tag=14,i=_y(null,i,c,n,s);break t}}throw i=it(c)||c,Error(a(306,i,""))}}return i;case 0:return zd(n,i,i.type,i.pendingProps,s);case 1:return c=i.type,p=Ui(c,i.pendingProps),Ly(n,i,c,p,s);case 3:t:{if(bt(i,i.stateNode.containerInfo),n===null)throw Error(a(387));c=i.pendingProps;var g=i.memoizedState;p=g.element,cd(n,i),es(i,c,null,s);var T=i.memoizedState;if(c=T.cache,Zr(i,be,c),c!==g.cache&&rd(i,[be],s,!0),ts(),c=T.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:T.cache},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){i=Uy(n,i,c,s);break t}else if(c!==p){p=Cn(Error(a(424)),i),Xo(p),i=Uy(n,i,c,s);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,s=xy(i,null,c,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(Vo(),c===p){i=Sr(n,i,s);break t}_e(n,i,c,s)}i=i.child}return i;case 26:return dc(n,i),n===null?(s=Vv(i.type,null,i.pendingProps,null))?i.memoizedState=s:Ut||(s=i.type,n=i.pendingProps,c=Mc(ft.current).createElement(s),c[Ge]=i,c[We]=n,$e(c,s,n),Ee(c),i.stateNode=c):i.memoizedState=Vv(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return ht(i),n===null&&Ut&&(c=i.stateNode=Gv(i.type,i.pendingProps,ft.current),Ze=i,Qn=!0,p=le,ui(i.type)?(xh=p,le=Yn(c.firstChild)):le=p),_e(n,i,i.pendingProps.children,s),dc(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&Ut&&((p=c=le)&&(c=Hw(c,i.type,i.pendingProps,Qn),c!==null?(i.stateNode=c,Ze=i,le=Yn(c.firstChild),Qn=!1,p=!0):p=!1),p||zi(i)),ht(i),p=i.type,g=i.pendingProps,T=n!==null?n.memoizedProps:null,c=g.children,gh(p,g)?c=null:T!==null&&gh(p,T)&&(i.flags|=32),i.memoizedState!==null&&(p=md(n,i,aw,null,null,s),Cs._currentValue=p),dc(n,i),_e(n,i,c,s),i.child;case 6:return n===null&&Ut&&((n=s=le)&&(s=Pw(s,i.pendingProps,Qn),s!==null?(i.stateNode=s,Ze=i,le=null,n=!0):n=!1),n||zi(i)),null;case 13:return By(n,i,s);case 4:return bt(i,i.stateNode.containerInfo),c=i.pendingProps,n===null?i.child=_a(i,null,c,s):_e(n,i,c,s),i.child;case 11:return Dy(n,i,i.type,i.pendingProps,s);case 7:return _e(n,i,i.pendingProps,s),i.child;case 8:return _e(n,i,i.pendingProps.children,s),i.child;case 12:return _e(n,i,i.pendingProps.children,s),i.child;case 10:return c=i.pendingProps,Zr(i,i.type,c.value),_e(n,i,c.children,s),i.child;case 9:return p=i.type._context,c=i.pendingProps.children,Ni(i),p=Ye(p),c=c(p),i.flags|=1,_e(n,i,c,s),i.child;case 14:return _y(n,i,i.type,i.pendingProps,s);case 15:return zy(n,i,i.type,i.pendingProps,s);case 19:return Hy(n,i,s);case 31:return c=i.pendingProps,s=i.mode,c={mode:c.mode,children:c.children},n===null?(s=hc(c,s),s.ref=i.ref,i.child=s,s.return=i,i=s):(s=pr(n.child,c),s.ref=i.ref,i.child=s,s.return=i,i=s),i;case 22:return $y(n,i,s);case 24:return Ni(i),c=Ye(be),n===null?(p=od(),p===null&&(p=ee,g=id(),p.pooledCache=g,g.refCount++,g!==null&&(p.pooledCacheLanes|=s),p=g),i.memoizedState={parent:c,cache:p},ld(i),Zr(i,be,p)):((n.lanes&s)!==0&&(cd(n,i),es(i,null,null,s),ts()),p=n.memoizedState,g=i.memoizedState,p.parent!==c?(p={parent:c,cache:c},i.memoizedState=p,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=p),Zr(i,be,c)):(c=g.cache,Zr(i,be,c),c!==p.cache&&rd(i,[be],s,!0))),_e(n,i,i.pendingProps.children,s),i.child;case 29:throw i.pendingProps}throw Error(a(156,i.tag))}function Tr(n){n.flags|=4}function Gy(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Fv(i)){if(i=Mn.current,i!==null&&((_t&4194048)===_t?Fn!==null:(_t&62914560)!==_t&&(_t&536870912)===0||i!==Fn))throw Wo=sd,E0;n.flags|=8192}}function pc(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?Sg():536870912,n.lanes|=i,ja|=i)}function ls(n,i){if(!Ut)switch(n.tailMode){case"hidden":i=n.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null}}function se(n){var i=n.alternate!==null&&n.alternate.child===n.child,s=0,c=0;if(i)for(var p=n.child;p!==null;)s|=p.lanes|p.childLanes,c|=p.subtreeFlags&65011712,c|=p.flags&65011712,p.return=n,p=p.sibling;else for(p=n.child;p!==null;)s|=p.lanes|p.childLanes,c|=p.subtreeFlags,c|=p.flags,p.return=n,p=p.sibling;return n.subtreeFlags|=c,n.childLanes=s,i}function pw(n,i,s){var c=i.pendingProps;switch(Jf(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 s=i.stateNode,c=null,n!==null&&(c=n.memoizedState.cache),i.memoizedState.cache!==c&&(i.flags|=2048),vr(be),nt(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(n===null||n.child===null)&&(qo(i)?Tr(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,S0())),se(i),null;case 26:return s=i.memoizedState,n===null?(Tr(i),s!==null?(se(i),Gy(i,s)):(se(i),i.flags&=-16777217)):s?s!==n.memoizedState?(Tr(i),se(i),Gy(i,s)):(se(i),i.flags&=-16777217):(n.memoizedProps!==c&&Tr(i),se(i),i.flags&=-16777217),null;case 27:vt(i),s=ft.current;var p=i.type;if(n!==null&&i.stateNode!=null)n.memoizedProps!==c&&Tr(i);else{if(!c){if(i.stateNode===null)throw Error(a(166));return se(i),null}n=ut.current,qo(i)?b0(i):(n=Gv(p,c,s),i.stateNode=n,Tr(i))}return se(i),null;case 5:if(vt(i),s=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==c&&Tr(i);else{if(!c){if(i.stateNode===null)throw Error(a(166));return se(i),null}if(n=ut.current,qo(i))b0(i);else{switch(p=Mc(ft.current),n){case 1:n=p.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:n=p.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":n=p.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":n=p.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":n=p.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof c.is=="string"?p.createElement("select",{is:c.is}):p.createElement("select"),c.multiple?n.multiple=!0:c.size&&(n.size=c.size);break;default:n=typeof c.is=="string"?p.createElement(s,{is:c.is}):p.createElement(s)}}n[Ge]=i,n[We]=c;t:for(p=i.child;p!==null;){if(p.tag===5||p.tag===6)n.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===i)break t;for(;p.sibling===null;){if(p.return===null||p.return===i)break t;p=p.return}p.sibling.return=p.return,p=p.sibling}i.stateNode=n;t:switch($e(n,s,c),s){case"button":case"input":case"select":case"textarea":n=!!c.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!==c&&Tr(i);else{if(typeof c!="string"&&i.stateNode===null)throw Error(a(166));if(n=ft.current,qo(i)){if(n=i.stateNode,s=i.memoizedProps,c=null,p=Ze,p!==null)switch(p.tag){case 27:case 5:c=p.memoizedProps}n[Ge]=i,n=!!(n.nodeValue===s||c!==null&&c.suppressHydrationWarning===!0||jv(n.nodeValue,s)),n||zi(i)}else n=Mc(n).createTextNode(c),n[Ge]=i,i.stateNode=n}return se(i),null;case 13:if(c=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(p=qo(i),c!==null&&c.dehydrated!==null){if(n===null){if(!p)throw Error(a(318));if(p=i.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(a(317));p[Ge]=i}else Vo(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;se(i),p=!1}else p=S0(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=p),p=!0;if(!p)return i.flags&256?(xr(i),i):(xr(i),null)}if(xr(i),(i.flags&128)!==0)return i.lanes=s,i;if(s=c!==null,n=n!==null&&n.memoizedState!==null,s){c=i.child,p=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(p=c.alternate.memoizedState.cachePool.pool);var g=null;c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(g=c.memoizedState.cachePool.pool),g!==p&&(c.flags|=2048)}return s!==n&&s&&(i.child.flags|=8192),pc(i,i.updateQueue),se(i),null;case 4:return nt(),n===null&&fh(i.stateNode.containerInfo),se(i),null;case 10:return vr(i.type),se(i),null;case 19:if(at(xe),p=i.memoizedState,p===null)return se(i),null;if(c=(i.flags&128)!==0,g=p.rendering,g===null)if(c)ls(p,!1);else{if(ce!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(g=cc(n),g!==null){for(i.flags|=128,ls(p,!1),n=g.updateQueue,i.updateQueue=n,pc(i,n),i.subtreeFlags=0,n=s,s=i.child;s!==null;)y0(s,n),s=s.sibling;return ot(xe,xe.current&1|2),i.child}n=n.sibling}p.tail!==null&&Lt()>yc&&(i.flags|=128,c=!0,ls(p,!1),i.lanes=4194304)}else{if(!c)if(n=cc(g),n!==null){if(i.flags|=128,c=!0,n=n.updateQueue,i.updateQueue=n,pc(i,n),ls(p,!0),p.tail===null&&p.tailMode==="hidden"&&!g.alternate&&!Ut)return se(i),null}else 2*Lt()-p.renderingStartTime>yc&&s!==536870912&&(i.flags|=128,c=!0,ls(p,!1),i.lanes=4194304);p.isBackwards?(g.sibling=i.child,i.child=g):(n=p.last,n!==null?n.sibling=g:i.child=g,p.last=g)}return p.tail!==null?(i=p.tail,p.rendering=i,p.tail=i.sibling,p.renderingStartTime=Lt(),i.sibling=null,n=xe.current,ot(xe,c?n&1|2:n&1),i):(se(i),null);case 22:case 23:return xr(i),hd(),c=i.memoizedState!==null,n!==null?n.memoizedState!==null!==c&&(i.flags|=8192):c&&(i.flags|=8192),c?(s&536870912)!==0&&(i.flags&128)===0&&(se(i),i.subtreeFlags&6&&(i.flags|=8192)):se(i),s=i.updateQueue,s!==null&&pc(i,s.retryQueue),s=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==s&&(i.flags|=2048),n!==null&&at(ji),null;case 24:return s=null,n!==null&&(s=n.memoizedState.cache),i.memoizedState.cache!==s&&(i.flags|=2048),vr(be),se(i),null;case 25:return null;case 30:return null}throw Error(a(156,i.tag))}function mw(n,i){switch(Jf(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),hd(),n!==null&&at(ji),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 Yy(n,i){switch(Jf(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),hd(),n!==null&&at(ji);break;case 24:vr(be)}}function cs(n,i){try{var s=i.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var p=c.next;s=p;do{if((s.tag&n)===n){c=void 0;var g=s.create,T=s.inst;c=g(),T.destroy=c}s=s.next}while(s!==p)}}catch(M){Zt(i,i.return,M)}}function ni(n,i,s){try{var c=i.updateQueue,p=c!==null?c.lastEffect:null;if(p!==null){var g=p.next;c=g;do{if((c.tag&n)===n){var T=c.inst,M=T.destroy;if(M!==void 0){T.destroy=void 0,p=i;var B=s,K=M;try{K()}catch(et){Zt(p,B,et)}}}c=c.next}while(c!==g)}}catch(et){Zt(i,i.return,et)}}function qy(n){var i=n.updateQueue;if(i!==null){var s=n.stateNode;try{_0(i,s)}catch(c){Zt(n,n.return,c)}}}function Vy(n,i,s){s.props=Ui(n.type,n.memoizedProps),s.state=n.memoizedState;try{s.componentWillUnmount()}catch(c){Zt(n,i,c)}}function us(n,i){try{var s=n.ref;if(s!==null){switch(n.tag){case 26:case 27:case 5:var c=n.stateNode;break;case 30:c=n.stateNode;break;default:c=n.stateNode}typeof s=="function"?n.refCleanup=s(c):s.current=c}}catch(p){Zt(n,i,p)}}function Wn(n,i){var s=n.ref,c=n.refCleanup;if(s!==null)if(typeof c=="function")try{c()}catch(p){Zt(n,i,p)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(p){Zt(n,i,p)}else s.current=null}function Xy(n){var i=n.type,s=n.memoizedProps,c=n.stateNode;try{t:switch(i){case"button":case"input":case"select":case"textarea":s.autoFocus&&c.focus();break t;case"img":s.src?c.src=s.src:s.srcSet&&(c.srcset=s.srcSet)}}catch(p){Zt(n,n.return,p)}}function Hd(n,i,s){try{var c=n.stateNode;jw(c,n.type,s,i),c[We]=i}catch(p){Zt(n,n.return,p)}}function Ky(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&ui(n.type)||n.tag===4}function Pd(n){t:for(;;){for(;n.sibling===null;){if(n.return===null||Ky(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&&ui(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 Gd(n,i,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(n,i):(i=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,i.appendChild(n),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=Ec));else if(c!==4&&(c===27&&ui(n.type)&&(s=n.stateNode,i=null),n=n.child,n!==null))for(Gd(n,i,s),n=n.sibling;n!==null;)Gd(n,i,s),n=n.sibling}function mc(n,i,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?s.insertBefore(n,i):s.appendChild(n);else if(c!==4&&(c===27&&ui(n.type)&&(s=n.stateNode),n=n.child,n!==null))for(mc(n,i,s),n=n.sibling;n!==null;)mc(n,i,s),n=n.sibling}function Zy(n){var i=n.stateNode,s=n.memoizedProps;try{for(var c=n.type,p=i.attributes;p.length;)i.removeAttributeNode(p[0]);$e(i,c,s),i[Ge]=n,i[We]=s}catch(g){Zt(n,n.return,g)}}var Cr=!1,he=!1,Yd=!1,Qy=typeof WeakSet=="function"?WeakSet:Set,ke=null;function gw(n,i){if(n=n.containerInfo,ph=zc,n=s0(n),Pf(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else t:{s=(s=n.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var p=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{s.nodeType,g.nodeType}catch{s=null;break t}var T=0,M=-1,B=-1,K=0,et=0,st=n,Q=null;e:for(;;){for(var F;st!==s||p!==0&&st.nodeType!==3||(M=T+p),st!==g||c!==0&&st.nodeType!==3||(B=T+c),st.nodeType===3&&(T+=st.nodeValue.length),(F=st.firstChild)!==null;)Q=st,st=F;for(;;){if(st===n)break e;if(Q===s&&++K===p&&(M=T),Q===g&&++et===c&&(B=T),(F=st.nextSibling)!==null)break;st=Q,Q=st.parentNode}st=F}s=M===-1||B===-1?null:{start:M,end:B}}else s=null}s=s||{start:0,end:0}}else s=null;for(mh={focusedElem:n,selectionRange:s},zc=!1,ke=i;ke!==null;)if(i=ke,n=i.child,(i.subtreeFlags&1024)!==0&&n!==null)n.return=i,ke=n;else for(;ke!==null;){switch(i=ke,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,s=i,p=g.memoizedProps,g=g.memoizedState,c=s.stateNode;try{var wt=Ui(s.type,p,s.elementType===s.type);n=c.getSnapshotBeforeUpdate(wt,g),c.__reactInternalSnapshotBeforeUpdate=n}catch(xt){Zt(s,s.return,xt)}}break;case 3:if((n&1024)!==0){if(n=i.stateNode.containerInfo,s=n.nodeType,s===9)vh(n);else if(s===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":vh(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,ke=n;break}ke=i.return}}function Fy(n,i,s){var c=s.flags;switch(s.tag){case 0:case 11:case 15:ri(n,s),c&4&&cs(5,s);break;case 1:if(ri(n,s),c&4)if(n=s.stateNode,i===null)try{n.componentDidMount()}catch(T){Zt(s,s.return,T)}else{var p=Ui(s.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(p,i,n.__reactInternalSnapshotBeforeUpdate)}catch(T){Zt(s,s.return,T)}}c&64&&qy(s),c&512&&us(s,s.return);break;case 3:if(ri(n,s),c&64&&(n=s.updateQueue,n!==null)){if(i=null,s.child!==null)switch(s.child.tag){case 27:case 5:i=s.child.stateNode;break;case 1:i=s.child.stateNode}try{_0(n,i)}catch(T){Zt(s,s.return,T)}}break;case 27:i===null&&c&4&&Zy(s);case 26:case 5:ri(n,s),i===null&&c&4&&Xy(s),c&512&&us(s,s.return);break;case 12:ri(n,s);break;case 13:ri(n,s),c&4&&tv(n,s),c&64&&(n=s.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(s=Aw.bind(null,s),Gw(n,s))));break;case 22:if(c=s.memoizedState!==null||Cr,!c){i=i!==null&&i.memoizedState!==null||he,p=Cr;var g=he;Cr=c,(he=i)&&!g?ii(n,s,(s.subtreeFlags&8772)!==0):ri(n,s),Cr=p,he=g}break;case 30:break;default:ri(n,s)}}function Wy(n){var i=n.alternate;i!==null&&(n.alternate=null,Wy(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&Cf(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 wr(n,i,s){for(s=s.child;s!==null;)Jy(n,i,s),s=s.sibling}function Jy(n,i,s){if(ve&&typeof ve.onCommitFiberUnmount=="function")try{ve.onCommitFiberUnmount(Hn,s)}catch{}switch(s.tag){case 26:he||Wn(s,i),wr(n,i,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:he||Wn(s,i);var c=ie,p=en;ui(s.type)&&(ie=s.stateNode,en=!1),wr(n,i,s),bs(s.stateNode),ie=c,en=p;break;case 5:he||Wn(s,i);case 6:if(c=ie,p=en,ie=null,wr(n,i,s),ie=c,en=p,ie!==null)if(en)try{(ie.nodeType===9?ie.body:ie.nodeName==="HTML"?ie.ownerDocument.body:ie).removeChild(s.stateNode)}catch(g){Zt(s,i,g)}else try{ie.removeChild(s.stateNode)}catch(g){Zt(s,i,g)}break;case 18:ie!==null&&(en?(n=ie,Hv(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,s.stateNode),Ms(n)):Hv(ie,s.stateNode));break;case 4:c=ie,p=en,ie=s.stateNode.containerInfo,en=!0,wr(n,i,s),ie=c,en=p;break;case 0:case 11:case 14:case 15:he||ni(2,s,i),he||ni(4,s,i),wr(n,i,s);break;case 1:he||(Wn(s,i),c=s.stateNode,typeof c.componentWillUnmount=="function"&&Vy(s,i,c)),wr(n,i,s);break;case 21:wr(n,i,s);break;case 22:he=(c=he)||s.memoizedState!==null,wr(n,i,s),he=c;break;default:wr(n,i,s)}}function tv(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(s){Zt(i,i.return,s)}}function yw(n){switch(n.tag){case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new Qy),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new Qy),i;default:throw Error(a(435,n.tag))}}function qd(n,i){var s=yw(n);i.forEach(function(c){var p=Ew.bind(null,n,c);s.has(c)||(s.add(c),c.then(p,p))})}function un(n,i){var s=i.deletions;if(s!==null)for(var c=0;c<s.length;c++){var p=s[c],g=n,T=i,M=T;t:for(;M!==null;){switch(M.tag){case 27:if(ui(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));Jy(g,T,p),ie=null,en=!1,g=p.alternate,g!==null&&(g.return=null),p.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)ev(i,n),i=i.sibling}var Gn=null;function ev(n,i){var s=n.alternate,c=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:un(i,n),fn(n),c&4&&(ni(3,n,n.return),cs(3,n),ni(5,n,n.return));break;case 1:un(i,n),fn(n),c&512&&(he||s===null||Wn(s,s.return)),c&64&&Cr&&(n=n.updateQueue,n!==null&&(c=n.callbacks,c!==null&&(s=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=s===null?c:s.concat(c))));break;case 26:var p=Gn;if(un(i,n),fn(n),c&512&&(he||s===null||Wn(s,s.return)),c&4){var g=s!==null?s.memoizedState:null;if(c=n.memoizedState,s===null)if(c===null)if(n.stateNode===null){t:{c=n.type,s=n.memoizedProps,p=p.ownerDocument||p;e:switch(c){case"title":g=p.getElementsByTagName("title")[0],(!g||g[$o]||g[Ge]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=p.createElement(c),p.head.insertBefore(g,p.querySelector("head > title"))),$e(g,c,s),g[Ge]=n,Ee(g),c=g;break t;case"link":var T=Zv("link","href",p).get(c+(s.href||""));if(T){for(var M=0;M<T.length;M++)if(g=T[M],g.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&g.getAttribute("rel")===(s.rel==null?null:s.rel)&&g.getAttribute("title")===(s.title==null?null:s.title)&&g.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){T.splice(M,1);break e}}g=p.createElement(c),$e(g,c,s),p.head.appendChild(g);break;case"meta":if(T=Zv("meta","content",p).get(c+(s.content||""))){for(M=0;M<T.length;M++)if(g=T[M],g.getAttribute("content")===(s.content==null?null:""+s.content)&&g.getAttribute("name")===(s.name==null?null:s.name)&&g.getAttribute("property")===(s.property==null?null:s.property)&&g.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&g.getAttribute("charset")===(s.charSet==null?null:s.charSet)){T.splice(M,1);break e}}g=p.createElement(c),$e(g,c,s),p.head.appendChild(g);break;default:throw Error(a(468,c))}g[Ge]=n,Ee(g),c=g}n.stateNode=c}else Qv(p,n.type,n.stateNode);else n.stateNode=Kv(p,c,n.memoizedProps);else g!==c?(g===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):g.count--,c===null?Qv(p,n.type,n.stateNode):Kv(p,c,n.memoizedProps)):c===null&&n.stateNode!==null&&Hd(n,n.memoizedProps,s.memoizedProps)}break;case 27:un(i,n),fn(n),c&512&&(he||s===null||Wn(s,s.return)),s!==null&&c&4&&Hd(n,n.memoizedProps,s.memoizedProps);break;case 5:if(un(i,n),fn(n),c&512&&(he||s===null||Wn(s,s.return)),n.flags&32){p=n.stateNode;try{pa(p,"")}catch(F){Zt(n,n.return,F)}}c&4&&n.stateNode!=null&&(p=n.memoizedProps,Hd(n,p,s!==null?s.memoizedProps:p)),c&1024&&(Yd=!0);break;case 6:if(un(i,n),fn(n),c&4){if(n.stateNode===null)throw Error(a(162));c=n.memoizedProps,s=n.stateNode;try{s.nodeValue=c}catch(F){Zt(n,n.return,F)}}break;case 3:if(Oc=null,p=Gn,Gn=kc(i.containerInfo),un(i,n),Gn=p,fn(n),c&4&&s!==null&&s.memoizedState.isDehydrated)try{Ms(i.containerInfo)}catch(F){Zt(n,n.return,F)}Yd&&(Yd=!1,nv(n));break;case 4:c=Gn,Gn=kc(n.stateNode.containerInfo),un(i,n),fn(n),Gn=c;break;case 12:un(i,n),fn(n);break;case 13:un(i,n),fn(n),n.child.flags&8192&&n.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Fd=Lt()),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,qd(n,c)));break;case 22:p=n.memoizedState!==null;var B=s!==null&&s.memoizedState!==null,K=Cr,et=he;if(Cr=K||p,he=et||B,un(i,n),he=et,Cr=K,fn(n),c&8192)t:for(i=n.stateNode,i._visibility=p?i._visibility&-2:i._visibility|1,p&&(s===null||B||Cr||he||Bi(n)),s=null,i=n;;){if(i.tag===5||i.tag===26){if(s===null){B=s=i;try{if(g=B.stateNode,p)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(s===null){B=i;try{B.stateNode.nodeValue=p?"":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;s===i&&(s=null),i=i.return}s===i&&(s=null),i.sibling.return=i.return,i=i.sibling}c&4&&(c=n.updateQueue,c!==null&&(s=c.retryQueue,s!==null&&(c.retryQueue=null,qd(n,s))));break;case 19:un(i,n),fn(n),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,qd(n,c)));break;case 30:break;case 21:break;default:un(i,n),fn(n)}}function fn(n){var i=n.flags;if(i&2){try{for(var s,c=n.return;c!==null;){if(Ky(c)){s=c;break}c=c.return}if(s==null)throw Error(a(160));switch(s.tag){case 27:var p=s.stateNode,g=Pd(n);mc(n,g,p);break;case 5:var T=s.stateNode;s.flags&32&&(pa(T,""),s.flags&=-33);var M=Pd(n);mc(n,M,T);break;case 3:case 4:var B=s.stateNode.containerInfo,K=Pd(n);Gd(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 nv(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;nv(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;)Fy(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 s=i.stateNode;typeof s.componentWillUnmount=="function"&&Vy(i,i.return,s),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,s){for(s=s&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var c=i.alternate,p=n,g=i,T=g.flags;switch(g.tag){case 0:case 11:case 15:ii(p,g,s),cs(4,g);break;case 1:if(ii(p,g,s),c=g,p=c.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(K){Zt(c,c.return,K)}if(c=g,p=c.updateQueue,p!==null){var M=c.stateNode;try{var B=p.shared.hiddenCallbacks;if(B!==null)for(p.shared.hiddenCallbacks=null,p=0;p<B.length;p++)D0(B[p],M)}catch(K){Zt(c,c.return,K)}}s&&T&64&&qy(g),us(g,g.return);break;case 27:Zy(g);case 26:case 5:ii(p,g,s),s&&c===null&&T&4&&Xy(g),us(g,g.return);break;case 12:ii(p,g,s);break;case 13:ii(p,g,s),s&&T&4&&tv(p,g);break;case 22:g.memoizedState===null&&ii(p,g,s),us(g,g.return);break;case 30:break;default:ii(p,g,s)}i=i.sibling}}function Vd(n,i){var s=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),n=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(n=i.memoizedState.cachePool.pool),n!==s&&(n!=null&&n.refCount++,s!=null&&Zo(s))}function Xd(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,s,c){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)rv(n,i,s,c),i=i.sibling}function rv(n,i,s,c){var p=i.flags;switch(i.tag){case 0:case 11:case 15:Jn(n,i,s,c),p&2048&&cs(9,i);break;case 1:Jn(n,i,s,c);break;case 3:Jn(n,i,s,c),p&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(p&2048){Jn(n,i,s,c),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,s,c);break;case 13:Jn(n,i,s,c);break;case 23:break;case 22:g=i.stateNode,T=i.alternate,i.memoizedState!==null?g._visibility&2?Jn(n,i,s,c):fs(n,i):g._visibility&2?Jn(n,i,s,c):(g._visibility|=2,za(n,i,s,c,(i.subtreeFlags&10256)!==0)),p&2048&&Vd(T,i);break;case 24:Jn(n,i,s,c),p&2048&&Xd(i.alternate,i);break;default:Jn(n,i,s,c)}}function za(n,i,s,c,p){for(p=p&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var g=n,T=i,M=s,B=c,K=T.flags;switch(T.tag){case 0:case 11:case 15:za(g,T,M,B,p),cs(8,T);break;case 23:break;case 22:var et=T.stateNode;T.memoizedState!==null?et._visibility&2?za(g,T,M,B,p):fs(g,T):(et._visibility|=2,za(g,T,M,B,p)),p&&K&2048&&Vd(T.alternate,T);break;case 24:za(g,T,M,B,p),p&&K&2048&&Xd(T.alternate,T);break;default:za(g,T,M,B,p)}i=i.sibling}}function fs(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var s=n,c=i,p=c.flags;switch(c.tag){case 22:fs(s,c),p&2048&&Vd(c.alternate,c);break;case 24:fs(s,c),p&2048&&Xd(c.alternate,c);break;default:fs(s,c)}i=i.sibling}}var ds=8192;function $a(n){if(n.subtreeFlags&ds)for(n=n.child;n!==null;)iv(n),n=n.sibling}function iv(n){switch(n.tag){case 26:$a(n),n.flags&ds&&n.memoizedState!==null&&nA(Gn,n.memoizedState,n.memoizedProps);break;case 5:$a(n);break;case 3:case 4:var i=Gn;Gn=kc(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 av(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 s=0;s<i.length;s++){var c=i[s];ke=c,sv(c,n)}av(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)ov(n),n=n.sibling}function ov(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,gc(n)):hs(n);break;default:hs(n)}}function gc(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var c=i[s];ke=c,sv(c,n)}av(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:ni(8,i,i.return),gc(i);break;case 22:s=i.stateNode,s._visibility&2&&(s._visibility&=-3,gc(i));break;default:gc(i)}n=n.sibling}}function sv(n,i){for(;ke!==null;){var s=ke;switch(s.tag){case 0:case 11:case 15:ni(8,s,i);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var c=s.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Zo(s.memoizedState.cache)}if(c=s.child,c!==null)c.return=s,ke=c;else t:for(s=n;ke!==null;){c=ke;var p=c.sibling,g=c.return;if(Wy(c),c===s){ke=null;break t}if(p!==null){p.return=g,ke=p;break t}ke=g}}}var vw={getCacheForType:function(n){var i=Ye(be),s=i.data.get(n);return s===void 0&&(s=n(),i.data.set(n,s)),s}},bw=typeof WeakMap=="function"?WeakMap:Map,Pt=0,ee=null,Ot=null,_t=0,Gt=0,dn=null,ai=!1,Na=!1,Kd=!1,Ar=0,ce=0,oi=0,Ii=0,Zd=0,kn=0,ja=0,ps=null,nn=null,Qd=!1,Fd=0,yc=1/0,vc=null,si=null,ze=0,li=null,La=null,Ua=0,Wd=0,Jd=null,lv=null,ms=0,th=null;function hn(){if((Pt&2)!==0&&_t!==0)return _t&-_t;if(U.T!==null){var n=Aa;return n!==0?n:sh()}return wg()}function cv(){kn===0&&(kn=(_t&536870912)===0||Ut?xg():536870912);var n=Mn.current;return n!==null&&(n.flags|=32),kn}function pn(n,i,s){(n===ee&&(Gt===2||Gt===9)||n.cancelPendingCommit!==null)&&(Ba(n,0),ci(n,_t,kn,!1)),zo(n,s),((Pt&2)===0||n!==ee)&&(n===ee&&((Pt&2)===0&&(Ii|=s),ce===4&&ci(n,_t,kn,!1)),tr(n))}function uv(n,i,s){if((Pt&6)!==0)throw Error(a(327));var c=!s&&(i&124)===0&&(i&n.expiredLanes)===0||_o(n,i),p=c?Tw(n,i):rh(n,i,!0),g=c;do{if(p===0){Na&&!c&&ci(n,i,0,!1);break}else{if(s=n.current.alternate,g&&!xw(s)){p=rh(n,i,!1),g=!1;continue}if(p===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;p=ps;var B=M.current.memoizedState.isDehydrated;if(B&&(Ba(M,T).flags|=256),T=rh(M,T,!1),T!==2){if(Kd&&!B){M.errorRecoveryDisabledLanes|=g,Ii|=g,p=4;break t}g=nn,nn=p,g!==null&&(nn===null?nn=g:nn.push.apply(nn,g))}p=T}if(g=!1,p!==2)continue}}if(p===1){Ba(n,0),ci(n,i,0,!0);break}t:{switch(c=n,g=p,g){case 0:case 1:throw Error(a(345));case 4:if((i&4194048)!==i)break;case 6:ci(c,i,kn,!ai);break t;case 2:nn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((i&62914560)===i&&(p=Fd+300-Lt(),10<p)){if(ci(c,i,kn,!ai),Rl(c,0,!0)!==0)break t;c.timeoutHandle=Bv(fv.bind(null,c,s,nn,vc,Qd,i,kn,Ii,ja,ai,g,2,-0,0),p);break t}fv(c,s,nn,vc,Qd,i,kn,Ii,ja,ai,g,0,-0,0)}}break}while(!0);tr(n)}function fv(n,i,s,c,p,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:eA},iv(i),st=rA(),st!==null)){n.cancelPendingCommit=st(vv.bind(null,n,i,g,s,c,p,T,M,B,et,1,Q,F)),ci(n,g,T,!K);return}vv(n,i,g,s,c,p,T,M,B)}function xw(n){for(var i=n;;){var s=i.tag;if((s===0||s===11||s===15)&&i.flags&16384&&(s=i.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var c=0;c<s.length;c++){var p=s[c],g=p.getSnapshot;p=p.value;try{if(!ln(g(),p))return!1}catch{return!1}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;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 ci(n,i,s,c){i&=~Zd,i&=~Ii,n.suspendedLanes|=i,n.pingedLanes&=~i,c&&(n.warmLanes|=i),c=n.expirationTimes;for(var p=i;0<p;){var g=31-Ie(p),T=1<<g;c[g]=-1,p&=~T}s!==0&&Tg(n,s,i)}function bc(){return(Pt&6)===0?(gs(0),!1):!0}function eh(){if(Ot!==null){if(Gt===0)var n=Ot.return;else n=Ot,yr=$i=null,vd(n),Da=null,os=0,n=Ot;for(;n!==null;)Yy(n.alternate,n),n=n.return;Ot=null}}function Ba(n,i){var s=n.timeoutHandle;s!==-1&&(n.timeoutHandle=-1,Uw(s)),s=n.cancelPendingCommit,s!==null&&(n.cancelPendingCommit=null,s()),eh(),ee=n,Ot=s=pr(n.current,null),_t=i,Gt=0,dn=null,ai=!1,Na=_o(n,i),Kd=!1,ja=kn=Zd=Ii=oi=ce=0,nn=ps=null,Qd=!1,(i&8)!==0&&(i|=i&32);var c=n.entangledLanes;if(c!==0)for(n=n.entanglements,c&=i;0<c;){var p=31-Ie(c),g=1<<p;i|=n[p],c&=~g}return Ar=i,Hl(),s}function dv(n,i){kt=null,U.H=oc,i===Fo||i===Ql?(i=R0(),Gt=3):i===E0?(i=R0(),Gt=4):Gt=i===Oy?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,dn=i,Ot===null&&(ce=1,fc(n,Cn(i,n.current)))}function hv(){var n=U.H;return U.H=oc,n===null?oc:n}function pv(){var n=U.A;return U.A=vw,n}function nh(){ce=4,ai||(_t&4194048)!==_t&&Mn.current!==null||(Na=!0),(oi&134217727)===0&&(Ii&134217727)===0||ee===null||ci(ee,_t,kn,!1)}function rh(n,i,s){var c=Pt;Pt|=2;var p=hv(),g=pv();(ee!==n||_t!==i)&&(vc=null,Ba(n,i)),i=!1;var T=ce;t:do try{if(Gt!==0&&Ot!==null){var M=Ot,B=dn;switch(Gt){case 8:eh(),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,Ia(n,M,B,K),s&&Na){T=0;break t}break;default:K=Gt,Gt=0,dn=null,Ia(n,M,B,K)}}Sw(),T=ce;break}catch(et){dv(n,et)}while(!0);return i&&n.shellSuspendCounter++,yr=$i=null,Pt=c,U.H=p,U.A=g,Ot===null&&(ee=null,_t=0,Hl()),T}function Sw(){for(;Ot!==null;)mv(Ot)}function Tw(n,i){var s=Pt;Pt|=2;var c=hv(),p=pv();ee!==n||_t!==i?(vc=null,yc=Lt()+500,Ba(n,i)):Na=_o(n,i);t:do try{if(Gt!==0&&Ot!==null){i=Ot;var g=dn;e:switch(Gt){case 1:Gt=0,dn=null,Ia(n,i,g,1);break;case 2:case 9:if(M0(g)){Gt=0,dn=null,gv(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:M0(g)?(Gt=0,dn=null,gv(i)):(Gt=0,dn=null,Ia(n,i,g,7));break;case 5:var T=null;switch(Ot.tag){case 26:T=Ot.memoizedState;case 5:case 27:var M=Ot;if(!T||Fv(T)){Gt=0,dn=null;var B=M.sibling;if(B!==null)Ot=B;else{var K=M.return;K!==null?(Ot=K,xc(K)):Ot=null}break e}}Gt=0,dn=null,Ia(n,i,g,5);break;case 6:Gt=0,dn=null,Ia(n,i,g,6);break;case 8:eh(),ce=6;break t;default:throw Error(a(462))}}Cw();break}catch(et){dv(n,et)}while(!0);return yr=$i=null,U.H=c,U.A=p,Pt=s,Ot!==null?0:(ee=null,_t=0,Hl(),ce)}function Cw(){for(;Ot!==null&&!Yt();)mv(Ot)}function mv(n){var i=Py(n.alternate,n,Ar);n.memoizedProps=n.pendingProps,i===null?xc(n):Ot=i}function gv(n){var i=n,s=i.alternate;switch(i.tag){case 15:case 0:i=jy(s,i,i.pendingProps,i.type,void 0,_t);break;case 11:i=jy(s,i,i.pendingProps,i.type.render,i.ref,_t);break;case 5:vd(i);default:Yy(s,i),i=Ot=y0(i,Ar),i=Py(s,i,Ar)}n.memoizedProps=n.pendingProps,i===null?xc(n):Ot=i}function Ia(n,i,s,c){yr=$i=null,vd(i),Da=null,os=0;var p=i.return;try{if(dw(n,p,i,s,_t)){ce=1,fc(n,Cn(s,n.current)),Ot=null;return}}catch(g){if(p!==null)throw Ot=p,g;ce=1,fc(n,Cn(s,n.current)),Ot=null;return}i.flags&32768?(Ut||c===1?n=!0:Na||(_t&536870912)!==0?n=!1:(ai=n=!0,(c===2||c===9||c===3||c===6)&&(c=Mn.current,c!==null&&c.tag===13&&(c.flags|=16384))),yv(i,n)):xc(i)}function xc(n){var i=n;do{if((i.flags&32768)!==0){yv(i,ai);return}n=i.return;var s=pw(i.alternate,i,Ar);if(s!==null){Ot=s;return}if(i=i.sibling,i!==null){Ot=i;return}Ot=i=n}while(i!==null);ce===0&&(ce=5)}function yv(n,i){do{var s=mw(n.alternate,n);if(s!==null){s.flags&=32767,Ot=s;return}if(s=n.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!i&&(n=n.sibling,n!==null)){Ot=n;return}Ot=n=s}while(n!==null);ce=6,Ot=null}function vv(n,i,s,c,p,g,T,M,B){n.cancelPendingCommit=null;do Sc();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|=Xf,eC(n,s,g,T,M,B),n===ee&&(Ot=ee=null,_t=0),La=i,li=n,Ua=s,Wd=g,Jd=p,lv=c,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,Mw(De,function(){return Cv(),null})):(n.callbackNode=null,n.callbackPriority=0),c=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||c){c=U.T,U.T=null,p=Y.p,Y.p=2,T=Pt,Pt|=4;try{gw(n,i,s)}finally{Pt=T,Y.p=p,U.T=c}}ze=1,bv(),xv(),Sv()}}function bv(){if(ze===1){ze=0;var n=li,i=La,s=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||s){s=U.T,U.T=null;var c=Y.p;Y.p=2;var p=Pt;Pt|=4;try{ev(i,n);var g=mh,T=s0(n.containerInfo),M=g.focusedElem,B=g.selectionRange;if(T!==M&&M&&M.ownerDocument&&o0(M.ownerDocument.documentElement,M)){if(B!==null&&Pf(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(),wt=M.textContent.length,xt=Math.min(B.start,wt),Xt=B.end===void 0?xt:Math.min(B.end,wt);!F.extend&&xt>Xt&&(T=Xt,Xt=xt,xt=T);var V=a0(M,xt),P=a0(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}}zc=!!ph,mh=ph=null}finally{Pt=p,Y.p=c,U.T=s}}n.current=i,ze=2}}function xv(){if(ze===2){ze=0;var n=li,i=La,s=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||s){s=U.T,U.T=null;var c=Y.p;Y.p=2;var p=Pt;Pt|=4;try{Fy(n,i.alternate,i)}finally{Pt=p,Y.p=c,U.T=s}}ze=3}}function Sv(){if(ze===4||ze===3){ze=0,re();var n=li,i=La,s=Ua,c=lv;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?ze=5:(ze=0,La=li=null,Tv(n,n.pendingLanes));var p=n.pendingLanes;if(p===0&&(si=null),Sf(s),i=i.stateNode,ve&&typeof ve.onCommitFiberRoot=="function")try{ve.onCommitFiberRoot(Hn,i,void 0,(i.current.flags&128)===128)}catch{}if(c!==null){i=U.T,p=Y.p,Y.p=2,U.T=null;try{for(var g=n.onRecoverableError,T=0;T<c.length;T++){var M=c[T];g(M.value,{componentStack:M.stack})}}finally{U.T=i,Y.p=p}}(Ua&3)!==0&&Sc(),tr(n),p=n.pendingLanes,(s&4194090)!==0&&(p&42)!==0?n===th?ms++:(ms=0,th=n):ms=0,gs(0)}}function Tv(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,Zo(i)))}function Sc(n){return bv(),xv(),Sv(),Cv()}function Cv(){if(ze!==5)return!1;var n=li,i=Wd;Wd=0;var s=Sf(Ua),c=U.T,p=Y.p;try{Y.p=32>s?32:s,U.T=null,s=Jd,Jd=null;var g=li,T=Ua;if(ze=0,La=li=null,Ua=0,(Pt&6)!==0)throw Error(a(331));var M=Pt;if(Pt|=4,ov(g.current),rv(g,g.current,T,s),Pt=M,gs(0,!1),ve&&typeof ve.onPostCommitFiberRoot=="function")try{ve.onPostCommitFiberRoot(Hn,g)}catch{}return!0}finally{Y.p=p,U.T=c,Tv(n,i)}}function wv(n,i,s){i=Cn(s,i),i=_d(n.stateNode,i,2),n=Wr(n,i,2),n!==null&&(zo(n,2),tr(n))}function Zt(n,i,s){if(n.tag===3)wv(n,n,s);else for(;i!==null;){if(i.tag===3){wv(i,n,s);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(si===null||!si.has(c))){n=Cn(s,n),s=ky(2),c=Wr(i,s,2),c!==null&&(Ry(s,c,i,n),zo(c,2),tr(c));break}}i=i.return}}function ih(n,i,s){var c=n.pingCache;if(c===null){c=n.pingCache=new bw;var p=new Set;c.set(i,p)}else p=c.get(i),p===void 0&&(p=new Set,c.set(i,p));p.has(s)||(Kd=!0,p.add(s),n=ww.bind(null,n,i,s),i.then(n,n))}function ww(n,i,s){var c=n.pingCache;c!==null&&c.delete(i),n.pingedLanes|=n.suspendedLanes&s,n.warmLanes&=~s,ee===n&&(_t&s)===s&&(ce===4||ce===3&&(_t&62914560)===_t&&300>Lt()-Fd?(Pt&2)===0&&Ba(n,0):Zd|=s,ja===_t&&(ja=0)),tr(n)}function Av(n,i){i===0&&(i=Sg()),n=Sa(n,i),n!==null&&(zo(n,i),tr(n))}function Aw(n){var i=n.memoizedState,s=0;i!==null&&(s=i.retryLane),Av(n,s)}function Ew(n,i){var s=0;switch(n.tag){case 13:var c=n.stateNode,p=n.memoizedState;p!==null&&(s=p.retryLane);break;case 19:c=n.stateNode;break;case 22:c=n.stateNode._retryCache;break;default:throw Error(a(314))}c!==null&&c.delete(i),Av(n,s)}function Mw(n,i){return $t(n,i)}var Tc=null,Ha=null,ah=!1,Cc=!1,oh=!1,Hi=0;function tr(n){n!==Ha&&n.next===null&&(Ha===null?Tc=Ha=n:Ha=Ha.next=n),Cc=!0,ah||(ah=!0,Rw())}function gs(n,i){if(!oh&&Cc){oh=!0;do for(var s=!1,c=Tc;c!==null;){if(n!==0){var p=c.pendingLanes;if(p===0)var g=0;else{var T=c.suspendedLanes,M=c.pingedLanes;g=(1<<31-Ie(42|n)+1)-1,g&=p&~(T&~M),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(s=!0,Rv(c,g))}else g=_t,g=Rl(c,c===ee?g:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(g&3)===0||_o(c,g)||(s=!0,Rv(c,g));c=c.next}while(s);oh=!1}}function kw(){Ev()}function Ev(){Cc=ah=!1;var n=0;Hi!==0&&(Lw()&&(n=Hi),Hi=0);for(var i=Lt(),s=null,c=Tc;c!==null;){var p=c.next,g=Mv(c,i);g===0?(c.next=null,s===null?Tc=p:s.next=p,p===null&&(Ha=s)):(s=c,(n!==0||(g&3)!==0)&&(Cc=!0)),c=p}gs(n)}function Mv(n,i){for(var s=n.suspendedLanes,c=n.pingedLanes,p=n.expirationTimes,g=n.pendingLanes&-62914561;0<g;){var T=31-Ie(g),M=1<<T,B=p[T];B===-1?((M&s)===0||(M&c)!==0)&&(p[T]=tC(M,i)):B<=i&&(n.expiredLanes|=M),g&=~M}if(i=ee,s=_t,s=Rl(n,n===i?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c=n.callbackNode,s===0||n===i&&(Gt===2||Gt===9)||n.cancelPendingCommit!==null)return c!==null&&c!==null&&gt(c),n.callbackNode=null,n.callbackPriority=0;if((s&3)===0||_o(n,s)){if(i=s&-s,i===n.callbackPriority)return i;switch(c!==null&&gt(c),Sf(s)){case 2:case 8:s=Ae;break;case 32:s=De;break;case 268435456:s=Ci;break;default:s=De}return c=kv.bind(null,n),s=$t(s,c),n.callbackPriority=i,n.callbackNode=s,i}return c!==null&&c!==null&&gt(c),n.callbackPriority=2,n.callbackNode=null,2}function kv(n,i){if(ze!==0&&ze!==5)return n.callbackNode=null,n.callbackPriority=0,null;var s=n.callbackNode;if(Sc()&&n.callbackNode!==s)return null;var c=_t;return c=Rl(n,n===ee?c:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c===0?null:(uv(n,c,i),Mv(n,Lt()),n.callbackNode!=null&&n.callbackNode===s?kv.bind(null,n):null)}function Rv(n,i){if(Sc())return null;uv(n,i,!0)}function Rw(){Bw(function(){(Pt&6)!==0?$t(we,kw):Ev()})}function sh(){return Hi===0&&(Hi=xg()),Hi}function Ov(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:$l(""+n)}function Dv(n,i){var s=i.ownerDocument.createElement("input");return s.name=i.name,s.value=i.value,n.id&&s.setAttribute("form",n.id),i.parentNode.insertBefore(s,i),n=new FormData(n),s.parentNode.removeChild(s),n}function Ow(n,i,s,c,p){if(i==="submit"&&s&&s.stateNode===p){var g=Ov((p[We]||null).action),T=c.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,c,p);n.push({event:M,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Hi!==0){var B=T?Dv(p,T):new FormData(p);Md(s,{pending:!0,data:B,method:p.method,action:g},null,B)}}else typeof g=="function"&&(M.preventDefault(),B=T?Dv(p,T):new FormData(p),Md(s,{pending:!0,data:B,method:p.method,action:g},g,B))},currentTarget:p}]})}}for(var lh=0;lh<Vf.length;lh++){var ch=Vf[lh],Dw=ch.toLowerCase(),_w=ch[0].toUpperCase()+ch.slice(1);Pn(Dw,"on"+_w)}Pn(u0,"onAnimationEnd"),Pn(f0,"onAnimationIteration"),Pn(d0,"onAnimationStart"),Pn("dblclick","onDoubleClick"),Pn("focusin","onFocus"),Pn("focusout","onBlur"),Pn(ZC,"onTransitionRun"),Pn(QC,"onTransitionStart"),Pn(FC,"onTransitionCancel"),Pn(h0,"onTransitionEnd"),fa("onMouseEnter",["mouseout","mouseover"]),fa("onMouseLeave",["mouseout","mouseover"]),fa("onPointerEnter",["pointerout","pointerover"]),fa("onPointerLeave",["pointerout","pointerover"]),Ai("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ai("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ai("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ai("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ai("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ai("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(" "),zw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ys));function _v(n,i){i=(i&4)!==0;for(var s=0;s<n.length;s++){var c=n[s],p=c.event;c=c.listeners;t:{var g=void 0;if(i)for(var T=c.length-1;0<=T;T--){var M=c[T],B=M.instance,K=M.currentTarget;if(M=M.listener,B!==g&&p.isPropagationStopped())break t;g=M,p.currentTarget=K;try{g(p)}catch(et){uc(et)}p.currentTarget=null,g=B}else for(T=0;T<c.length;T++){if(M=c[T],B=M.instance,K=M.currentTarget,M=M.listener,B!==g&&p.isPropagationStopped())break t;g=M,p.currentTarget=K;try{g(p)}catch(et){uc(et)}p.currentTarget=null,g=B}}}}function Dt(n,i){var s=i[Tf];s===void 0&&(s=i[Tf]=new Set);var c=n+"__bubble";s.has(c)||(zv(i,n,2,!1),s.add(c))}function uh(n,i,s){var c=0;i&&(c|=4),zv(s,n,c,i)}var wc="_reactListening"+Math.random().toString(36).slice(2);function fh(n){if(!n[wc]){n[wc]=!0,Eg.forEach(function(s){s!=="selectionchange"&&(zw.has(s)||uh(s,!1,n),uh(s,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[wc]||(i[wc]=!0,uh("selectionchange",!1,i))}}function zv(n,i,s,c){switch(rb(i)){case 2:var p=oA;break;case 8:p=sA;break;default:p=Ah}s=p.bind(null,i,s,n),p=void 0,!zf||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(p=!0),c?p!==void 0?n.addEventListener(i,s,{capture:!0,passive:p}):n.addEventListener(i,s,!0):p!==void 0?n.addEventListener(i,s,{passive:p}):n.addEventListener(i,s,!1)}function dh(n,i,s,c,p){var g=c;if((i&1)===0&&(i&2)===0&&c!==null)t:for(;;){if(c===null)return;var T=c.tag;if(T===3||T===4){var M=c.stateNode.containerInfo;if(M===p)break;if(T===4)for(T=c.return;T!==null;){var B=T.tag;if((B===3||B===4)&&T.stateNode.containerInfo===p)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){c=g=T;continue t}M=M.parentNode}}c=c.return}Ig(function(){var K=g,et=Df(s),st=[];t:{var Q=p0.get(n);if(Q!==void 0){var F=Ul,wt=n;switch(n){case"keypress":if(jl(s)===0)break t;case"keydown":case"keyup":F=MC;break;case"focusin":wt="focus",F=Lf;break;case"focusout":wt="blur",F=Lf;break;case"beforeblur":case"afterblur":F=Lf;break;case"click":if(s.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=Gg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=mC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=OC;break;case u0:case f0:case d0:F=vC;break;case h0:F=_C;break;case"scroll":case"scrollend":F=hC;break;case"wheel":F=$C;break;case"copy":case"cut":case"paste":F=xC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=qg;break;case"toggle":case"beforetoggle":F=jC}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=jo(P,V),rt!=null&&xt.push(vs(P,rt,X))),Xt)break;P=P.return}0<xt.length&&(Q=new F(Q,wt,null,s,et),st.push({event:Q,listeners:xt}))}}if((i&7)===0){t:{if(Q=n==="mouseover"||n==="pointerover",F=n==="mouseout"||n==="pointerout",Q&&s!==Of&&(wt=s.relatedTarget||s.fromElement)&&(la(wt)||wt[sa]))break t;if((F||Q)&&(Q=et.window===et?et:(Q=et.ownerDocument)?Q.defaultView||Q.parentWindow:window,F?(wt=s.relatedTarget||s.toElement,F=K,wt=wt?la(wt):null,wt!==null&&(Xt=l(wt),xt=wt.tag,wt!==Xt||xt!==5&&xt!==27&&xt!==6)&&(wt=null)):(F=null,wt=K),F!==wt)){if(xt=Gg,rt="onMouseLeave",V="onMouseEnter",P="mouse",(n==="pointerout"||n==="pointerover")&&(xt=qg,rt="onPointerLeave",V="onPointerEnter",P="pointer"),Xt=F==null?Q:No(F),X=wt==null?Q:No(wt),Q=new xt(rt,P+"leave",F,s,et),Q.target=Xt,Q.relatedTarget=X,rt=null,la(et)===K&&(xt=new xt(V,P+"enter",wt,s,et),xt.target=X,xt.relatedTarget=Xt,rt=xt),Xt=rt,F&&wt)e:{for(xt=F,V=wt,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),wt!==null&&Xt!==null&&$v(st,Xt,wt,xt,!0)}}t:{if(Q=K?No(K):window,F=Q.nodeName&&Q.nodeName.toLowerCase(),F==="select"||F==="input"&&Q.type==="file")var mt=Jg;else if(Fg(Q))if(t0)mt=VC;else{mt=YC;var Rt=GC}else F=Q.nodeName,!F||F.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?K&&Rf(K.elementType)&&(mt=Jg):mt=qC;if(mt&&(mt=mt(n,K))){Wg(st,mt,s,et);break t}Rt&&Rt(n,Q,K),n==="focusout"&&K&&Q.type==="number"&&K.memoizedProps.value!=null&&kf(Q,"number",Q.value)}switch(Rt=K?No(K):window,n){case"focusin":(Fg(Rt)||Rt.contentEditable==="true")&&(va=Rt,Gf=K,Yo=null);break;case"focusout":Yo=Gf=va=null;break;case"mousedown":Yf=!0;break;case"contextmenu":case"mouseup":case"dragend":Yf=!1,l0(st,s,et);break;case"selectionchange":if(KC)break;case"keydown":case"keyup":l0(st,s,et)}var yt;if(Bf)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?Zg(n,s)&&(Tt="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(Tt="onCompositionStart");Tt&&(Vg&&s.locale!=="ko"&&(ya||Tt!=="onCompositionStart"?Tt==="onCompositionEnd"&&ya&&(yt=Hg()):(Kr=et,$f="value"in Kr?Kr.value:Kr.textContent,ya=!0)),Rt=Ac(K,Tt),0<Rt.length&&(Tt=new Yg(Tt,n,null,s,et),st.push({event:Tt,listeners:Rt}),yt?Tt.data=yt:(yt=Qg(s),yt!==null&&(Tt.data=yt)))),(yt=UC?BC(n,s):IC(n,s))&&(Tt=Ac(K,"onBeforeInput"),0<Tt.length&&(Rt=new Yg("onBeforeInput","beforeinput",null,s,et),st.push({event:Rt,listeners:Tt}),Rt.data=yt)),Ow(st,n,K,s,et)}_v(st,i)})}function vs(n,i,s){return{instance:n,listener:i,currentTarget:s}}function Ac(n,i){for(var s=i+"Capture",c=[];n!==null;){var p=n,g=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||g===null||(p=jo(n,s),p!=null&&c.unshift(vs(n,p,g)),p=jo(n,i),p!=null&&c.push(vs(n,p,g))),n.tag===3)return c;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,s,c,p){for(var g=i._reactName,T=[];s!==null&&s!==c;){var M=s,B=M.alternate,K=M.stateNode;if(M=M.tag,B!==null&&B===c)break;M!==5&&M!==26&&M!==27||K===null||(B=K,p?(K=jo(s,g),K!=null&&T.unshift(vs(s,K,B))):p||(K=jo(s,g),K!=null&&T.push(vs(s,K,B)))),s=s.return}T.length!==0&&n.push({event:i,listeners:T})}var $w=/\r\n?/g,Nw=/\u0000|\uFFFD/g;function Nv(n){return(typeof n=="string"?n:""+n).replace($w,` 49 + `).replace(Nw,"")}function jv(n,i){return i=Nv(i),Nv(n)===i}function Ec(){}function Vt(n,i,s,c,p,g){switch(s){case"children":typeof c=="string"?i==="body"||i==="textarea"&&c===""||pa(n,c):(typeof c=="number"||typeof c=="bigint")&&i!=="body"&&pa(n,""+c);break;case"className":Dl(n,"class",c);break;case"tabIndex":Dl(n,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Dl(n,s,c);break;case"style":Ug(n,c,g);break;case"data":if(i!=="object"){Dl(n,"data",c);break}case"src":case"href":if(c===""&&(i!=="a"||s!=="href")){n.removeAttribute(s);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(s);break}c=$l(""+c),n.setAttribute(s,c);break;case"action":case"formAction":if(typeof c=="function"){n.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof g=="function"&&(s==="formAction"?(i!=="input"&&Vt(n,i,"name",p.name,p,null),Vt(n,i,"formEncType",p.formEncType,p,null),Vt(n,i,"formMethod",p.formMethod,p,null),Vt(n,i,"formTarget",p.formTarget,p,null)):(Vt(n,i,"encType",p.encType,p,null),Vt(n,i,"method",p.method,p,null),Vt(n,i,"target",p.target,p,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(s);break}c=$l(""+c),n.setAttribute(s,c);break;case"onClick":c!=null&&(n.onclick=Ec);break;case"onScroll":c!=null&&Dt("scroll",n);break;case"onScrollEnd":c!=null&&Dt("scrollend",n);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(a(61));if(s=c.__html,s!=null){if(p.children!=null)throw Error(a(60));n.innerHTML=s}}break;case"multiple":n.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":n.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){n.removeAttribute("xlink:href");break}s=$l(""+c),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(s,""+c):n.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(s,""):n.removeAttribute(s);break;case"capture":case"download":c===!0?n.setAttribute(s,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(s,c):n.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?n.setAttribute(s,c):n.removeAttribute(s);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?n.removeAttribute(s):n.setAttribute(s,c);break;case"popover":Dt("beforetoggle",n),Dt("toggle",n),Ol(n,"popover",c);break;case"xlinkActuate":dr(n,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":dr(n,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":dr(n,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":dr(n,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":dr(n,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":dr(n,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":dr(n,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":dr(n,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":dr(n,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Ol(n,"is",c);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=fC.get(s)||s,Ol(n,s,c))}}function hh(n,i,s,c,p,g){switch(s){case"style":Ug(n,c,g);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(a(61));if(s=c.__html,s!=null){if(p.children!=null)throw Error(a(60));n.innerHTML=s}}break;case"children":typeof c=="string"?pa(n,c):(typeof c=="number"||typeof c=="bigint")&&pa(n,""+c);break;case"onScroll":c!=null&&Dt("scroll",n);break;case"onScrollEnd":c!=null&&Dt("scrollend",n);break;case"onClick":c!=null&&(n.onclick=Ec);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Mg.hasOwnProperty(s))t:{if(s[0]==="o"&&s[1]==="n"&&(p=s.endsWith("Capture"),i=s.slice(2,p?s.length-7:void 0),g=n[We]||null,g=g!=null?g[s]:null,typeof g=="function"&&n.removeEventListener(i,g,p),typeof c=="function")){typeof g!="function"&&g!==null&&(s in n?n[s]=null:n.hasAttribute(s)&&n.removeAttribute(s)),n.addEventListener(i,c,p);break t}s in n?n[s]=c:c===!0?n.setAttribute(s,""):Ol(n,s,c)}}}function $e(n,i,s){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 c=!1,p=!1,g;for(g in s)if(s.hasOwnProperty(g)){var T=s[g];if(T!=null)switch(g){case"src":c=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:Vt(n,i,g,T,s,null)}}p&&Vt(n,i,"srcSet",s.srcSet,s,null),c&&Vt(n,i,"src",s.src,s,null);return;case"input":Dt("invalid",n);var M=g=T=p=null,B=null,K=null;for(c in s)if(s.hasOwnProperty(c)){var et=s[c];if(et!=null)switch(c){case"name":p=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,c,et,s,null)}}$g(n,g,M,B,K,T,p,!1),_l(n);return;case"select":Dt("invalid",n),c=T=g=null;for(p in s)if(s.hasOwnProperty(p)&&(M=s[p],M!=null))switch(p){case"value":g=M;break;case"defaultValue":T=M;break;case"multiple":c=M;default:Vt(n,i,p,M,s,null)}i=g,s=T,n.multiple=!!c,i!=null?ha(n,!!c,i,!1):s!=null&&ha(n,!!c,s,!0);return;case"textarea":Dt("invalid",n),g=p=c=null;for(T in s)if(s.hasOwnProperty(T)&&(M=s[T],M!=null))switch(T){case"value":c=M;break;case"defaultValue":p=M;break;case"children":g=M;break;case"dangerouslySetInnerHTML":if(M!=null)throw Error(a(91));break;default:Vt(n,i,T,M,s,null)}jg(n,c,p,g),_l(n);return;case"option":for(B in s)if(s.hasOwnProperty(B)&&(c=s[B],c!=null))switch(B){case"selected":n.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:Vt(n,i,B,c,s,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(c=0;c<ys.length;c++)Dt(ys[c],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 s)if(s.hasOwnProperty(K)&&(c=s[K],c!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:Vt(n,i,K,c,s,null)}return;default:if(Rf(i)){for(et in s)s.hasOwnProperty(et)&&(c=s[et],c!==void 0&&hh(n,i,et,c,s,void 0));return}}for(M in s)s.hasOwnProperty(M)&&(c=s[M],c!=null&&Vt(n,i,M,c,s,null))}function jw(n,i,s,c){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,g=null,T=null,M=null,B=null,K=null,et=null;for(F in s){var st=s[F];if(s.hasOwnProperty(F)&&st!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":B=st;default:c.hasOwnProperty(F)||Vt(n,i,F,null,c,st)}}for(var Q in c){var F=c[Q];if(st=s[Q],c.hasOwnProperty(Q)&&(F!=null||st!=null))switch(Q){case"type":g=F;break;case"name":p=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,c,st)}}Mf(n,T,M,B,K,et,g,p);return;case"select":F=T=M=Q=null;for(g in s)if(B=s[g],s.hasOwnProperty(g)&&B!=null)switch(g){case"value":break;case"multiple":F=B;default:c.hasOwnProperty(g)||Vt(n,i,g,null,c,B)}for(p in c)if(g=c[p],B=s[p],c.hasOwnProperty(p)&&(g!=null||B!=null))switch(p){case"value":Q=g;break;case"defaultValue":M=g;break;case"multiple":T=g;default:g!==B&&Vt(n,i,p,g,c,B)}i=M,s=T,c=F,Q!=null?ha(n,!!s,Q,!1):!!c!=!!s&&(i!=null?ha(n,!!s,i,!0):ha(n,!!s,s?[]:"",!1));return;case"textarea":F=Q=null;for(M in s)if(p=s[M],s.hasOwnProperty(M)&&p!=null&&!c.hasOwnProperty(M))switch(M){case"value":break;case"children":break;default:Vt(n,i,M,null,c,p)}for(T in c)if(p=c[T],g=s[T],c.hasOwnProperty(T)&&(p!=null||g!=null))switch(T){case"value":Q=p;break;case"defaultValue":F=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(a(91));break;default:p!==g&&Vt(n,i,T,p,c,g)}Ng(n,Q,F);return;case"option":for(var wt in s)if(Q=s[wt],s.hasOwnProperty(wt)&&Q!=null&&!c.hasOwnProperty(wt))switch(wt){case"selected":n.selected=!1;break;default:Vt(n,i,wt,null,c,Q)}for(B in c)if(Q=c[B],F=s[B],c.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,c,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 s)Q=s[xt],s.hasOwnProperty(xt)&&Q!=null&&!c.hasOwnProperty(xt)&&Vt(n,i,xt,null,c,Q);for(K in c)if(Q=c[K],F=s[K],c.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,c,F)}return;default:if(Rf(i)){for(var Xt in s)Q=s[Xt],s.hasOwnProperty(Xt)&&Q!==void 0&&!c.hasOwnProperty(Xt)&&hh(n,i,Xt,void 0,c,Q);for(et in c)Q=c[et],F=s[et],!c.hasOwnProperty(et)||Q===F||Q===void 0&&F===void 0||hh(n,i,et,Q,c,F);return}}for(var V in s)Q=s[V],s.hasOwnProperty(V)&&Q!=null&&!c.hasOwnProperty(V)&&Vt(n,i,V,null,c,Q);for(st in c)Q=c[st],F=s[st],!c.hasOwnProperty(st)||Q===F||Q==null&&F==null||Vt(n,i,st,Q,c,F)}var ph=null,mh=null;function Mc(n){return n.nodeType===9?n:n.ownerDocument}function Lv(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 Uv(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 gh(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 yh=null;function Lw(){var n=window.event;return n&&n.type==="popstate"?n===yh?!1:(yh=n,!0):(yh=null,!1)}var Bv=typeof setTimeout=="function"?setTimeout:void 0,Uw=typeof clearTimeout=="function"?clearTimeout:void 0,Iv=typeof Promise=="function"?Promise:void 0,Bw=typeof queueMicrotask=="function"?queueMicrotask:typeof Iv<"u"?function(n){return Iv.resolve(null).then(n).catch(Iw)}:Bv;function Iw(n){setTimeout(function(){throw n})}function ui(n){return n==="head"}function Hv(n,i){var s=i,c=0,p=0;do{var g=s.nextSibling;if(n.removeChild(s),g&&g.nodeType===8)if(s=g.data,s==="/$"){if(0<c&&8>c){s=c;var T=n.ownerDocument;if(s&1&&bs(T.documentElement),s&2&&bs(T.body),s&4)for(s=T.head,bs(s),T=s.firstChild;T;){var M=T.nextSibling,B=T.nodeName;T[$o]||B==="SCRIPT"||B==="STYLE"||B==="LINK"&&T.rel.toLowerCase()==="stylesheet"||s.removeChild(T),T=M}}if(p===0){n.removeChild(g),Ms(i);return}p--}else s==="$"||s==="$?"||s==="$!"?p++:c=s.charCodeAt(0)-48;else c=0;s=g}while(s);Ms(i)}function vh(n){var i=n.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var s=i;switch(i=i.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":vh(s),Cf(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}n.removeChild(s)}}function Hw(n,i,s,c){for(;n.nodeType===1;){var p=s;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!c&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(c){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!==p.rel||n.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||n.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||n.getAttribute("title")!==(p.title==null?null:p.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(g=n.getAttribute("src"),(g!==(p.src==null?null:p.src)||n.getAttribute("type")!==(p.type==null?null:p.type)||n.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&g&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var g=p.name==null?null:""+p.name;if(p.type==="hidden"&&n.getAttribute("name")===g)return n}else return n;if(n=Yn(n.nextSibling),n===null)break}return null}function Pw(n,i,s){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!s||(n=Yn(n.nextSibling),n===null))return null;return n}function bh(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function Gw(n,i){var s=n.ownerDocument;if(n.data!=="$?"||s.readyState==="complete")i();else{var c=function(){i(),s.removeEventListener("DOMContentLoaded",c)};s.addEventListener("DOMContentLoaded",c),n._reactRetry=c}}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 xh=null;function Pv(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"){if(i===0)return n;i--}else s==="/$"&&i++}n=n.previousSibling}return null}function Gv(n,i,s){switch(i=Mc(s),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]);Cf(n)}var Rn=new Map,Yv=new Set;function kc(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Er=Y.d;Y.d={f:Yw,r:qw,D:Vw,C:Xw,L:Kw,m:Zw,X:Fw,S:Qw,M:Ww};function Yw(){var n=Er.f(),i=bc();return n||i}function qw(n){var i=ca(n);i!==null&&i.tag===5&&i.type==="form"?uy(i):Er.r(n)}var Ga=typeof document>"u"?null:document;function qv(n,i,s){var c=Ga;if(c&&typeof i=="string"&&i){var p=Tn(i);p='link[rel="'+n+'"][href="'+p+'"]',typeof s=="string"&&(p+='[crossorigin="'+s+'"]'),Yv.has(p)||(Yv.add(p),n={rel:n,crossOrigin:s,href:i},c.querySelector(p)===null&&(i=c.createElement("link"),$e(i,"link",n),Ee(i),c.head.appendChild(i)))}}function Vw(n){Er.D(n),qv("dns-prefetch",n,null)}function Xw(n,i){Er.C(n,i),qv("preconnect",n,i)}function Kw(n,i,s){Er.L(n,i,s);var c=Ga;if(c&&n&&i){var p='link[rel="preload"][as="'+Tn(i)+'"]';i==="image"&&s&&s.imageSrcSet?(p+='[imagesrcset="'+Tn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(p+='[imagesizes="'+Tn(s.imageSizes)+'"]')):p+='[href="'+Tn(n)+'"]';var g=p;switch(i){case"style":g=Ya(n);break;case"script":g=qa(n)}Rn.has(g)||(n=m({rel:"preload",href:i==="image"&&s&&s.imageSrcSet?void 0:n,as:i},s),Rn.set(g,n),c.querySelector(p)!==null||i==="style"&&c.querySelector(xs(g))||i==="script"&&c.querySelector(Ss(g))||(i=c.createElement("link"),$e(i,"link",n),Ee(i),c.head.appendChild(i)))}}function Zw(n,i){Er.m(n,i);var s=Ga;if(s&&n){var c=i&&typeof i.as=="string"?i.as:"script",p='link[rel="modulepreload"][as="'+Tn(c)+'"][href="'+Tn(n)+'"]',g=p;switch(c){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),s.querySelector(p)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Ss(g)))return}c=s.createElement("link"),$e(c,"link",n),Ee(c),s.head.appendChild(c)}}}function Qw(n,i,s){Er.S(n,i,s);var c=Ga;if(c&&n){var p=ua(c).hoistableStyles,g=Ya(n);i=i||"default";var T=p.get(g);if(!T){var M={loading:0,preload:null};if(T=c.querySelector(xs(g)))M.loading=5;else{n=m({rel:"stylesheet",href:n,"data-precedence":i},s),(s=Rn.get(g))&&Sh(n,s);var B=T=c.createElement("link");Ee(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,Rc(T,i,c)}T={type:"stylesheet",instance:T,count:1,state:M},p.set(g,T)}}}function Fw(n,i){Er.X(n,i);var s=Ga;if(s&&n){var c=ua(s).hoistableScripts,p=qa(n),g=c.get(p);g||(g=s.querySelector(Ss(p)),g||(n=m({src:n,async:!0},i),(i=Rn.get(p))&&Th(n,i),g=s.createElement("script"),Ee(g),$e(g,"link",n),s.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(p,g))}}function Ww(n,i){Er.M(n,i);var s=Ga;if(s&&n){var c=ua(s).hoistableScripts,p=qa(n),g=c.get(p);g||(g=s.querySelector(Ss(p)),g||(n=m({src:n,async:!0,type:"module"},i),(i=Rn.get(p))&&Th(n,i),g=s.createElement("script"),Ee(g),$e(g,"link",n),s.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(p,g))}}function Vv(n,i,s,c){var p=(p=ft.current)?kc(p):null;if(!p)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(i=Ya(s.href),s=ua(p).hoistableStyles,c=s.get(i),c||(c={type:"style",instance:null,count:0,state:null},s.set(i,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){n=Ya(s.href);var g=ua(p).hoistableStyles,T=g.get(n);if(T||(p=p.ownerDocument||p,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(n,T),(g=p.querySelector(xs(n)))&&!g._p&&(T.instance=g,T.state.loading=5),Rn.has(n)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Rn.set(n,s),g||Jw(p,n,s,T.state))),i&&c===null)throw Error(a(528,""));return T}if(i&&c!==null)throw Error(a(529,""));return null;case"script":return i=s.async,s=s.src,typeof s=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=qa(s),s=ua(p).hoistableScripts,c=s.get(i),c||(c={type:"script",instance:null,count:0,state:null},s.set(i,c)),c):{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 Xv(n){return m({},n,{"data-precedence":n.precedence,precedence:null})}function Jw(n,i,s,c){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?c.loading=1:(i=n.createElement("link"),c.preload=i,i.addEventListener("load",function(){return c.loading|=1}),i.addEventListener("error",function(){return c.loading|=2}),$e(i,"link",s),Ee(i),n.head.appendChild(i))}function qa(n){return'[src="'+Tn(n)+'"]'}function Ss(n){return"script[async]"+n}function Kv(n,i,s){if(i.count++,i.instance===null)switch(i.type){case"style":var c=n.querySelector('style[data-href~="'+Tn(s.href)+'"]');if(c)return i.instance=c,Ee(c),c;var p=m({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return c=(n.ownerDocument||n).createElement("style"),Ee(c),$e(c,"style",p),Rc(c,s.precedence,n),i.instance=c;case"stylesheet":p=Ya(s.href);var g=n.querySelector(xs(p));if(g)return i.state.loading|=4,i.instance=g,Ee(g),g;c=Xv(s),(p=Rn.get(p))&&Sh(c,p),g=(n.ownerDocument||n).createElement("link"),Ee(g);var T=g;return T._p=new Promise(function(M,B){T.onload=M,T.onerror=B}),$e(g,"link",c),i.state.loading|=4,Rc(g,s.precedence,n),i.instance=g;case"script":return g=qa(s.src),(p=n.querySelector(Ss(g)))?(i.instance=p,Ee(p),p):(c=s,(p=Rn.get(g))&&(c=m({},s),Th(c,p)),n=n.ownerDocument||n,p=n.createElement("script"),Ee(p),$e(p,"link",c),n.head.appendChild(p),i.instance=p);case"void":return null;default:throw Error(a(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(c=i.instance,i.state.loading|=4,Rc(c,s.precedence,n));return i.instance}function Rc(n,i,s){for(var c=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=c.length?c[c.length-1]:null,g=p,T=0;T<c.length;T++){var M=c[T];if(M.dataset.precedence===i)g=M;else if(g!==p)break}g?g.parentNode.insertBefore(n,g.nextSibling):(i=s.nodeType===9?s.head:s,i.insertBefore(n,i.firstChild))}function Sh(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function Th(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}var Oc=null;function Zv(n,i,s){if(Oc===null){var c=new Map,p=Oc=new Map;p.set(s,c)}else p=Oc,c=p.get(s),c||(c=new Map,p.set(s,c));if(c.has(n))return c;for(c.set(n,null),s=s.getElementsByTagName(n),p=0;p<s.length;p++){var g=s[p];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=c.get(T);M?M.push(g):c.set(T,[g])}}return c}function Qv(n,i,s){n=n.ownerDocument||n,n.head.insertBefore(s,i==="title"?n.querySelector("head > title"):null)}function tA(n,i,s){if(s===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 Fv(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var Ts=null;function eA(){}function nA(n,i,s){if(Ts===null)throw Error(a(475));var c=Ts;if(i.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var p=Ya(s.href),g=n.querySelector(xs(p));if(g){n=g._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(c.count++,c=Dc.bind(c),n.then(c,c)),i.state.loading|=4,i.instance=g,Ee(g);return}g=n.ownerDocument||n,s=Xv(s),(p=Rn.get(p))&&Sh(s,p),g=g.createElement("link"),Ee(g);var T=g;T._p=new Promise(function(M,B){T.onload=M,T.onerror=B}),$e(g,"link",s),i.instance=g}c.stylesheets===null&&(c.stylesheets=new Map),c.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(c.count++,i=Dc.bind(c),n.addEventListener("load",i),n.addEventListener("error",i))}}function rA(){if(Ts===null)throw Error(a(475));var n=Ts;return n.stylesheets&&n.count===0&&Ch(n,n.stylesheets),0<n.count?function(i){var s=setTimeout(function(){if(n.stylesheets&&Ch(n,n.stylesheets),n.unsuspend){var c=n.unsuspend;n.unsuspend=null,c()}},6e4);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(s)}}:null}function Dc(){if(this.count--,this.count===0){if(this.stylesheets)Ch(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var _c=null;function Ch(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,_c=new Map,i.forEach(iA,n),_c=null,Dc.call(n))}function iA(n,i){if(!(i.state.loading&4)){var s=_c.get(n);if(s)var c=s.get(null);else{s=new Map,_c.set(n,s);for(var p=n.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<p.length;g++){var T=p[g];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(s.set(T.dataset.precedence,T),c=T)}c&&s.set(null,c)}p=i.instance,T=p.getAttribute("data-precedence"),g=s.get(T)||c,g===c&&s.set(null,p),s.set(T,p),this.count++,c=Dc.bind(this),p.addEventListener("load",c),p.addEventListener("error",c),g?g.parentNode.insertBefore(p,g.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(p,n.firstChild)),i.state.loading|=4}}var Cs={$$typeof:k,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function aA(n,i,s,c,p,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=bf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bf(0),this.hiddenUpdates=bf(null),this.identifierPrefix=c,this.onUncaughtError=p,this.onCaughtError=g,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function Wv(n,i,s,c,p,g,T,M,B,K,et,st){return n=new aA(n,i,s,T,M,B,K,st),i=1,g===!0&&(i|=24),g=cn(3,null,null,i),n.current=g,g.stateNode=n,i=id(),i.refCount++,n.pooledCache=i,i.refCount++,g.memoizedState={element:c,isDehydrated:s,cache:i},ld(g),n}function Jv(n){return n?(n=Ta,n):Ta}function tb(n,i,s,c,p,g){p=Jv(p),c.context===null?c.context=p:c.pendingContext=p,c=Fr(i),c.payload={element:s},g=g===void 0?null:g,g!==null&&(c.callback=g),s=Wr(n,c,i),s!==null&&(pn(s,n,i),Jo(s,n,i))}function eb(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<i?s:i}}function wh(n,i){eb(n,i),(n=n.alternate)&&eb(n,i)}function nb(n){if(n.tag===13){var i=Sa(n,67108864);i!==null&&pn(i,n,67108864),wh(n,67108864)}}var zc=!0;function oA(n,i,s,c){var p=U.T;U.T=null;var g=Y.p;try{Y.p=2,Ah(n,i,s,c)}finally{Y.p=g,U.T=p}}function sA(n,i,s,c){var p=U.T;U.T=null;var g=Y.p;try{Y.p=8,Ah(n,i,s,c)}finally{Y.p=g,U.T=p}}function Ah(n,i,s,c){if(zc){var p=Eh(c);if(p===null)dh(n,i,c,$c,s),ib(n,c);else if(cA(p,n,i,s,c))c.stopPropagation();else if(ib(n,c),i&4&&-1<lA.indexOf(n)){for(;p!==null;){var g=ca(p);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-Ie(T);M.entanglements[1]|=B,T&=~B}tr(g),(Pt&6)===0&&(yc=Lt()+500,gs(0))}}break;case 13:M=Sa(g,2),M!==null&&pn(M,g,2),bc(),wh(g,2)}if(g=Eh(c),g===null&&dh(n,i,c,$c,s),g===p)break;p=g}p!==null&&c.stopPropagation()}else dh(n,i,c,null,s)}}function Eh(n){return n=Df(n),Mh(n)}var $c=null;function Mh(n){if($c=null,n=la(n),n!==null){var i=l(n);if(i===null)n=null;else{var s=i.tag;if(s===13){if(n=u(i),n!==null)return n;n=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return $c=n,null}function rb(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 we:return 2;case Ae:return 8;case De:case St:return 32;case Ci:return 268435456;default:return 32}default:return 32}}var kh=!1,fi=null,di=null,hi=null,ws=new Map,As=new Map,pi=[],lA="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 ib(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":ws.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":As.delete(i.pointerId)}}function Es(n,i,s,c,p,g){return n===null||n.nativeEvent!==g?(n={blockedOn:i,domEventName:s,eventSystemFlags:c,nativeEvent:g,targetContainers:[p]},i!==null&&(i=ca(i),i!==null&&nb(i)),n):(n.eventSystemFlags|=c,i=n.targetContainers,p!==null&&i.indexOf(p)===-1&&i.push(p),n)}function cA(n,i,s,c,p){switch(i){case"focusin":return fi=Es(fi,n,i,s,c,p),!0;case"dragenter":return di=Es(di,n,i,s,c,p),!0;case"mouseover":return hi=Es(hi,n,i,s,c,p),!0;case"pointerover":var g=p.pointerId;return ws.set(g,Es(ws.get(g)||null,n,i,s,c,p)),!0;case"gotpointercapture":return g=p.pointerId,As.set(g,Es(As.get(g)||null,n,i,s,c,p)),!0}return!1}function ab(n){var i=la(n.target);if(i!==null){var s=l(i);if(s!==null){if(i=s.tag,i===13){if(i=u(s),i!==null){n.blockedOn=i,nC(n.priority,function(){if(s.tag===13){var c=hn();c=xf(c);var p=Sa(s,c);p!==null&&pn(p,s,c),wh(s,c)}});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Nc(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var s=Eh(n.nativeEvent);if(s===null){s=n.nativeEvent;var c=new s.constructor(s.type,s);Of=c,s.target.dispatchEvent(c),Of=null}else return i=ca(s),i!==null&&nb(i),n.blockedOn=s,!1;i.shift()}return!0}function ob(n,i,s){Nc(n)&&s.delete(i)}function uA(){kh=!1,fi!==null&&Nc(fi)&&(fi=null),di!==null&&Nc(di)&&(di=null),hi!==null&&Nc(hi)&&(hi=null),ws.forEach(ob),As.forEach(ob)}function jc(n,i){n.blockedOn===i&&(n.blockedOn=null,kh||(kh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,uA)))}var Lc=null;function sb(n){Lc!==n&&(Lc=n,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Lc===n&&(Lc=null);for(var i=0;i<n.length;i+=3){var s=n[i],c=n[i+1],p=n[i+2];if(typeof c!="function"){if(Mh(c||s)===null)continue;break}var g=ca(s);g!==null&&(n.splice(i,3),i-=3,Md(g,{pending:!0,data:p,method:s.method,action:c},c,p))}}))}function Ms(n){function i(B){return jc(B,n)}fi!==null&&jc(fi,n),di!==null&&jc(di,n),hi!==null&&jc(hi,n),ws.forEach(i),As.forEach(i);for(var s=0;s<pi.length;s++){var c=pi[s];c.blockedOn===n&&(c.blockedOn=null)}for(;0<pi.length&&(s=pi[0],s.blockedOn===null);)ab(s),s.blockedOn===null&&pi.shift();if(s=(n.ownerDocument||n).$$reactFormReplay,s!=null)for(c=0;c<s.length;c+=3){var p=s[c],g=s[c+1],T=p[We]||null;if(typeof g=="function")T||sb(s);else if(T){var M=null;if(g&&g.hasAttribute("formAction")){if(p=g,T=g[We]||null)M=T.formAction;else if(Mh(p)!==null)continue}else M=T.action;typeof M=="function"?s[c+1]=M:(s.splice(c,3),c-=3),sb(s)}}}function Rh(n){this._internalRoot=n}Uc.prototype.render=Rh.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(a(409));var s=i.current,c=hn();tb(s,c,n,i,null,null)},Uc.prototype.unmount=Rh.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;tb(n.current,2,null,n,null,null),bc(),i[sa]=null}};function Uc(n){this._internalRoot=n}Uc.prototype.unstable_scheduleHydration=function(n){if(n){var i=wg();n={blockedOn:null,target:n,priority:i};for(var s=0;s<pi.length&&i!==0&&i<pi[s].priority;s++);pi.splice(s,0,n),s===0&&ab(n)}};var lb=e.version;if(lb!=="19.1.0")throw Error(a(527,lb,"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=h(i),n=n!==null?d(n):null,n=n===null?null:n.stateNode,n};var fA={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Bc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bc.isDisabled&&Bc.supportsFiber)try{Hn=Bc.inject(fA),ve=Bc}catch{}}return Rs.createRoot=function(n,i){if(!o(n))throw Error(a(299));var s=!1,c="",p=wy,g=Ay,T=Ey,M=null;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(p=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=Wv(n,1,!1,null,null,s,c,p,g,T,M,null),n[sa]=i.current,fh(n),new Rh(i)},Rs.hydrateRoot=function(n,i,s){if(!o(n))throw Error(a(299));var c=!1,p="",g=wy,T=Ay,M=Ey,B=null,K=null;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(p=s.identifierPrefix),s.onUncaughtError!==void 0&&(g=s.onUncaughtError),s.onCaughtError!==void 0&&(T=s.onCaughtError),s.onRecoverableError!==void 0&&(M=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(B=s.unstable_transitionCallbacks),s.formState!==void 0&&(K=s.formState)),i=Wv(n,1,!0,i,s??null,c,p,g,T,M,B,K),i.context=Jv(null),s=i.current,c=hn(),c=xf(c),p=Fr(c),p.callback=null,Wr(s,p,c),s=c,i.current.lanes=s,zo(i,s),tr(i),n[sa]=i.current,fh(n),new Uc(i)},Rs.version="19.1.0",Rs}var vb;function CA(){if(vb)return Dh.exports;vb=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(),Dh.exports=TA(),Dh.exports}var wA=CA();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 j=ol();const io=Hx(j),cu=mA({__proto__:null,default:io},[j]);function AA(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 EA(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 Gx=function(){function t(r){var a=this;this._insertTag=function(o){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(o,l),a.tags.push(o)},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(EA(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var l=AA(o);try{l.insertRule(a,l.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(a));this.ctr++},e.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}(),Xe="-ms-",uu="-moz-",Bt="-webkit-",Yx="comm",Zp="rule",Qp="decl",MA="@import",qx="@keyframes",kA="@layer",RA=Math.abs,Lu=String.fromCharCode,OA=Object.assign;function DA(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 Vx(t){return t.trim()}function _A(t,e){return(t=e.exec(t))?t[0]:t}function It(t,e,r){return t.replace(e,r)}function gp(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 Fp(t){return t.length}function Ic(t,e){return e.push(t),t}function zA(t,e){return t.map(e).join("")}var Uu=1,fo=1,Xx=0,sn=0,ye=0,Eo="";function Bu(t,e,r,a,o,l,u){return{value:t,root:e,parent:r,type:a,props:o,children:l,line:Uu,column:fo,length:u,return:""}}function Os(t,e){return OA(Bu("",null,null,"",null,null,0),t,{length:-t.length},e)}function $A(){return ye}function NA(){return ye=sn>0?Ne(Eo,--sn):0,fo--,ye===10&&(fo=1,Uu--),ye}function gn(){return ye=sn<Xx?Ne(Eo,sn++):0,fo++,ye===10&&(fo=1,Uu++),ye}function or(){return Ne(Eo,sn)}function nu(){return sn}function sl(t,e){return Ks(Eo,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 Kx(t){return Uu=fo=1,Xx=nr(Eo=t),sn=0,[]}function Zx(t){return Eo="",t}function ru(t){return Vx(sl(sn-1,yp(t===91?t+2:t===40?t+1:t)))}function jA(t){for(;(ye=or())&&ye<33;)gn();return Zs(t)>2||Zs(ye)>3?"":" "}function LA(t,e){for(;--e&&gn()&&!(ye<48||ye>102||ye>57&&ye<65||ye>70&&ye<97););return sl(t,nu()+(e<6&&or()==32&&gn()==32))}function yp(t){for(;gn();)switch(ye){case t:return sn;case 34:case 39:t!==34&&t!==39&&yp(ye);break;case 40:t===41&&yp(t);break;case 92:gn();break}return sn}function UA(t,e){for(;gn()&&t+ye!==57;)if(t+ye===84&&or()===47)break;return"/*"+sl(e,sn-1)+"*"+Lu(t===47?t:gn())}function BA(t){for(;!Zs(or());)gn();return sl(t,sn)}function IA(t){return Zx(iu("",null,null,null,[""],t=Kx(t),0,[0],t))}function iu(t,e,r,a,o,l,u,f,h){for(var d=0,m=0,y=u,v=0,b=0,x=0,S=1,w=1,E=1,O=0,k="",R=o,A=l,_=a,$=k;w;)switch(x=O,O=gn()){case 40:if(x!=108&&Ne($,y-1)==58){gp($+=It(ru(O),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:$+=ru(O);break;case 9:case 10:case 13:case 32:$+=jA(x);break;case 92:$+=LA(nu()-1,7);continue;case 47:switch(or()){case 42:case 47:Ic(HA(UA(gn(),nu()),e,r),h);break;default:$+="/"}break;case 123*S:f[d++]=nr($)*E;case 125*S:case 59:case 0:switch(O){case 0:case 125:w=0;case 59+m:E==-1&&($=It($,/\f/g,"")),b>0&&nr($)-y&&Ic(b>32?xb($+";",a,r,y-1):xb(It($," ","")+";",a,r,y-2),h);break;case 59:$+=";";default:if(Ic(_=bb($,e,r,d,m,o,f,k,R=[],A=[],y),l),O===123)if(m===0)iu($,e,_,_,R,l,y,f,A);else switch(v===99&&Ne($,3)===110?100:v){case 100:case 108:case 109:case 115:iu(t,_,_,a&&Ic(bb(t,_,_,0,0,o,f,k,o,R=[],y),A),o,A,y,f,a?R:A);break;default:iu($,_,_,_,[""],A,0,f,A)}}d=m=b=0,S=E=1,k=$="",y=u;break;case 58:y=1+nr($),b=x;default:if(S<1){if(O==123)--S;else if(O==125&&S++==0&&NA()==125)continue}switch($+=Lu(O),O*S){case 38:E=m>0?1:($+="\f",-1);break;case 44:f[d++]=(nr($)-1)*E,E=1;break;case 64:or()===45&&($+=ru(gn())),v=or(),m=y=nr(k=$+=BA(nu())),O++;break;case 45:x===45&&nr($)==2&&(S=0)}}return l}function bb(t,e,r,a,o,l,u,f,h,d,m){for(var y=o-1,v=o===0?l:[""],b=Fp(v),x=0,S=0,w=0;x<a;++x)for(var E=0,O=Ks(t,y+1,y=RA(S=u[x])),k=t;E<b;++E)(k=Vx(S>0?v[E]+" "+O:It(O,/&\f/g,v[E])))&&(h[w++]=k);return Bu(t,e,r,o===0?Zp:f,h,d,m)}function HA(t,e,r){return Bu(t,e,r,Yx,Lu($A()),Ks(t,2,-2),0)}function xb(t,e,r,a){return Bu(t,e,r,Qp,Ks(t,0,a),Ks(t,a+1,-1),a)}function so(t,e){for(var r="",a=Fp(t),o=0;o<a;o++)r+=e(t[o],o,t,e)||"";return r}function PA(t,e,r,a){switch(t.type){case kA:if(t.children.length)break;case MA:case Qp:return t.return=t.return||t.value;case Yx:return"";case qx:return t.return=t.value+"{"+so(t.children,a)+"}";case Zp:t.value=t.props.join(",")}return nr(r=so(t.children,a))?t.return=t.value+"{"+r+"}":""}function GA(t){var e=Fp(t);return function(r,a,o,l){for(var u="",f=0;f<e;f++)u+=t[f](r,a,o,l)||"";return u}}function YA(t){return function(e){e.root||(e=e.return)&&t(e)}}function Qx(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var qA=function(e,r,a){for(var o=0,l=0;o=l,l=or(),o===38&&l===12&&(r[a]=1),!Zs(l);)gn();return sl(e,sn)},VA=function(e,r){var a=-1,o=44;do switch(Zs(o)){case 0:o===38&&or()===12&&(r[a]=1),e[a]+=qA(sn-1,r,a);break;case 2:e[a]+=ru(o);break;case 4:if(o===44){e[++a]=or()===58?"&\f":"",r[a]=e[a].length;break}default:e[a]+=Lu(o)}while(o=gn());return e},XA=function(e,r){return Zx(VA(Kx(e),r))},Sb=new WeakMap,KA=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,a=e.parent,o=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&&!Sb.get(a))&&!o){Sb.set(e,!0);for(var l=[],u=XA(r,l),f=a.props,h=0,d=0;h<u.length;h++)for(var m=0;m<f.length;m++,d++)e.props[d]=l[h]?u[h].replace(/&\f/g,f[m]):f[m]+" "+u[h]}}},ZA=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};function Fx(t,e){switch(DA(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+uu+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+It(t,/(\w+).+(:[^]+)/,Bt+"box-$1$2"+Xe+"flex-$1$2")+t;case 5443:return Bt+t+Xe+"flex-item-"+It(t,/flex-|-self/,"")+t;case 4675:return Bt+t+Xe+"flex-line-pack"+It(t,/align-content|flex-|-self/,"")+t;case 5548:return Bt+t+Xe+It(t,"shrink","negative")+t;case 5292:return Bt+t+Xe+It(t,"basis","preferred-size")+t;case 6060:return Bt+"box-"+It(t,"-grow","")+Bt+t+Xe+It(t,"grow","positive")+t;case 4554:return Bt+It(t,/([^-])(transform)/g,"$1"+Bt+"$2")+t;case 6187:return It(It(It(t,/(zoom-|grab)/,Bt+"$1"),/(image-set)/,Bt+"$1"),t,"")+t;case 5495:case 3959:return It(t,/(image-set\([^]*)/,Bt+"$1$`$1");case 4968:return It(It(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 It(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 It(t,/(.+:)(.+)-([^]+)/,"$1"+Bt+"$2-$3$1"+uu+(Ne(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~gp(t,"stretch")?Fx(It(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-(~gp(t,"!important")&&10))){case 107:return It(t,":",":"+Bt)+t;case 101:return It(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+It(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Bt+t+Xe+It(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Bt+t+Xe+It(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Bt+t+Xe+t+t}return t}var QA=function(e,r,a,o){if(e.length>-1&&!e.return)switch(e.type){case Qp:e.return=Fx(e.value,e.length);break;case qx:return so([Os(e,{value:It(e.value,"@","@"+Bt)})],o);case Zp:if(e.length)return zA(e.props,function(l){switch(_A(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return so([Os(e,{props:[It(l,/:(read-\w+)/,":"+uu+"$1")]})],o);case"::placeholder":return so([Os(e,{props:[It(l,/:(plac\w+)/,":"+Bt+"input-$1")]}),Os(e,{props:[It(l,/:(plac\w+)/,":"+uu+"$1")]}),Os(e,{props:[It(l,/:(plac\w+)/,Xe+"input-$1")]})],o)}return""})}},FA=[QA],Wx=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 w=S.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=e.stylisPlugins||FA,l={},u,f=[];u=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(S){for(var w=S.getAttribute("data-emotion").split(" "),E=1;E<w.length;E++)l[w[E]]=!0;f.push(S)});var h,d=[KA,ZA];{var m,y=[PA,YA(function(S){m.insert(S)})],v=GA(d.concat(o,y)),b=function(w){return so(IA(w),v)};h=function(w,E,O,k){m=O,b(w?w+"{"+E.styles+"}":E.styles),k&&(x.inserted[E.name]=!0)}}var x={key:r,sheet:new Gx({key:r,container:u,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:h};return x.sheet.hydrate(f),x},jh={exports:{}},Ht={};/** @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 Tb;function WA(){if(Tb)return Ht;Tb=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,o=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,u=t?Symbol.for("react.provider"):60109,f=t?Symbol.for("react.context"):60110,h=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,w=t?Symbol.for("react.fundamental"):60117,E=t?Symbol.for("react.responder"):60118,O=t?Symbol.for("react.scope"):60119;function k(A){if(typeof A=="object"&&A!==null){var _=A.$$typeof;switch(_){case e:switch(A=A.type,A){case h:case d:case a:case l:case o:case y:return A;default:switch(A=A&&A.$$typeof,A){case f:case m:case x:case b:case u:return A;default:return _}}case r:return _}}}function R(A){return k(A)===d}return Ht.AsyncMode=h,Ht.ConcurrentMode=d,Ht.ContextConsumer=f,Ht.ContextProvider=u,Ht.Element=e,Ht.ForwardRef=m,Ht.Fragment=a,Ht.Lazy=x,Ht.Memo=b,Ht.Portal=r,Ht.Profiler=l,Ht.StrictMode=o,Ht.Suspense=y,Ht.isAsyncMode=function(A){return R(A)||k(A)===h},Ht.isConcurrentMode=R,Ht.isContextConsumer=function(A){return k(A)===f},Ht.isContextProvider=function(A){return k(A)===u},Ht.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===e},Ht.isForwardRef=function(A){return k(A)===m},Ht.isFragment=function(A){return k(A)===a},Ht.isLazy=function(A){return k(A)===x},Ht.isMemo=function(A){return k(A)===b},Ht.isPortal=function(A){return k(A)===r},Ht.isProfiler=function(A){return k(A)===l},Ht.isStrictMode=function(A){return k(A)===o},Ht.isSuspense=function(A){return k(A)===y},Ht.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===a||A===d||A===l||A===o||A===y||A===v||typeof A=="object"&&A!==null&&(A.$$typeof===x||A.$$typeof===b||A.$$typeof===u||A.$$typeof===f||A.$$typeof===m||A.$$typeof===w||A.$$typeof===E||A.$$typeof===O||A.$$typeof===S)},Ht.typeOf=k,Ht}var Cb;function JA(){return Cb||(Cb=1,jh.exports=WA()),jh.exports}var Lh,wb;function tE(){if(wb)return Lh;wb=1;var t=JA(),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},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[t.ForwardRef]=a,l[t.Memo]=o;function u(x){return t.isMemo(x)?o:l[x.$$typeof]||e}var f=Object.defineProperty,h=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,v=Object.prototype;function b(x,S,w){if(typeof S!="string"){if(v){var E=y(S);E&&E!==v&&b(x,E,w)}var O=h(S);d&&(O=O.concat(d(S)));for(var k=u(x),R=u(S),A=0;A<O.length;++A){var _=O[A];if(!r[_]&&!(w&&w[_])&&!(R&&R[_])&&!(k&&k[_])){var $=m(S,_);try{f(x,_,$)}catch{}}}}return x}return Lh=b,Lh}tE();var eE=!0;function Jx(t,e,r){var a="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):o&&(a+=o+" ")}),a}var Wp=function(e,r,a){var o=e.key+"-"+r.name;(a===!1||eE===!1)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},Jp=function(e,r,a){Wp(e,r,a);var o=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var l=r;do e.insert(r===l?"."+o:"",l,e.sheet,!0),l=l.next;while(l!==void 0)}};function nE(t){for(var e=0,r,a=0,o=t.length;o>=4;++a,o-=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(o){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 rE={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},iE=/[A-Z]|^ms/g,aE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,tS=function(e){return e.charCodeAt(1)===45},Ab=function(e){return e!=null&&typeof e!="boolean"},Uh=Qx(function(t){return tS(t)?t:t.replace(iE,"-$&").toLowerCase()}),Eb=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(aE,function(a,o,l){return rr={name:o,styles:l,next:rr},o})}return rE[e]!==1&&!tS(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 o=r;if(o.anim===1)return rr={name:o.name,styles:o.styles,next:rr},o.name;var l=r;if(l.styles!==void 0){var u=l.next;if(u!==void 0)for(;u!==void 0;)rr={name:u.name,styles:u.styles,next:rr},u=u.next;var f=l.styles+";";return f}return oE(t,e,r)}case"function":{if(t!==void 0){var h=rr,d=r(t);return rr=h,Qs(t,e,d)}break}}var m=r;if(e==null)return m;var y=e[m];return y!==void 0?y:m}function oE(t,e,r){var a="";if(Array.isArray(r))for(var o=0;o<r.length;o++)a+=Qs(t,e,r[o])+";";else for(var l in r){var u=r[l];if(typeof u!="object"){var f=u;e!=null&&e[f]!==void 0?a+=l+"{"+e[f]+"}":Ab(f)&&(a+=Uh(l)+":"+Eb(l,f)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(e==null||e[u[0]]===void 0))for(var h=0;h<u.length;h++)Ab(u[h])&&(a+=Uh(l)+":"+Eb(l,u[h])+";");else{var d=Qs(t,e,u);switch(l){case"animation":case"animationName":{a+=Uh(l)+":"+d+";";break}default:a+=l+"{"+d+"}"}}}return a}var Mb=/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,o="";rr=void 0;var l=t[0];if(l==null||l.raw===void 0)a=!1,o+=Qs(r,e,l);else{var u=l;o+=u[0]}for(var f=1;f<t.length;f++)if(o+=Qs(r,e,t[f]),a){var h=l;o+=h[f]}Mb.lastIndex=0;for(var d="",m;(m=Mb.exec(o))!==null;)d+="-"+m[1];var y=nE(o)+d;return{name:y,styles:o,next:rr}}var sE=function(e){return e()},eS=cu.useInsertionEffect?cu.useInsertionEffect:!1,nS=eS||sE,kb=eS||j.useLayoutEffect,rS=j.createContext(typeof HTMLElement<"u"?Wx({key:"css"}):null),lE=rS.Provider,tm=function(e){return j.forwardRef(function(r,a){var o=j.useContext(rS);return e(r,o,a)})},cl=j.createContext({}),em={}.hasOwnProperty,vp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",cE=function(e,r){var a={};for(var o in r)em.call(r,o)&&(a[o]=r[o]);return a[vp]=e,a},uE=function(e){var r=e.cache,a=e.serialized,o=e.isStringTag;return Wp(r,a,o),nS(function(){return Jp(r,a,o)}),null},fE=tm(function(t,e,r){var a=t.css;typeof a=="string"&&e.registered[a]!==void 0&&(a=e.registered[a]);var o=t[vp],l=[a],u="";typeof t.className=="string"?u=Jx(e.registered,l,t.className):t.className!=null&&(u=t.className+" ");var f=ll(l,void 0,j.useContext(cl));u+=e.key+"-"+f.name;var h={};for(var d in t)em.call(t,d)&&d!=="css"&&d!==vp&&(h[d]=t[d]);return h.className=u,r&&(h.ref=r),j.createElement(j.Fragment,null,j.createElement(uE,{cache:e,serialized:f,isStringTag:typeof o=="string"}),j.createElement(o,h))}),dE=fE,Rb=function(e,r){var a=arguments;if(r==null||!em.call(r,"css"))return j.createElement.apply(void 0,a);var o=a.length,l=new Array(o);l[0]=dE,l[1]=cE(e,r);for(var u=2;u<o;u++)l[u]=a[u];return j.createElement.apply(null,l)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(Rb||(Rb={}));var hE=tm(function(t,e){var r=t.styles,a=ll([r],void 0,j.useContext(cl)),o=j.useRef();return kb(function(){var l=e.key+"-global",u=new e.sheet.constructor({key:l,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),f=!1,h=document.querySelector('style[data-emotion="'+l+" "+a.name+'"]');return e.sheet.tags.length&&(u.before=e.sheet.tags[0]),h!==null&&(f=!0,h.setAttribute("data-emotion",l),u.hydrate([h])),o.current=[u,f],function(){u.flush()}},[e]),kb(function(){var l=o.current,u=l[0],f=l[1];if(f){l[1]=!1;return}if(a.next!==void 0&&Jp(e,a.next,!0),u.tags.length){var h=u.tags[u.tags.length-1].nextElementSibling;u.before=h,u.flush()}e.insert("",a,u,!1)},[e,a.name]),null});function nm(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return ll(e)}function ul(){var t=nm.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 pE=/^((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)-.*))$/,mE=Qx(function(t){return pE.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),gE=mE,yE=function(e){return e!=="theme"},Ob=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?gE:yE},Db=function(e,r,a){var o;if(r){var l=r.shouldForwardProp;o=e.__emotion_forwardProp&&l?function(u){return e.__emotion_forwardProp(u)&&l(u)}:l}return typeof o!="function"&&a&&(o=e.__emotion_forwardProp),o},vE=function(e){var r=e.cache,a=e.serialized,o=e.isStringTag;return Wp(r,a,o),nS(function(){return Jp(r,a,o)}),null},bE=function t(e,r){var a=e.__emotion_real===e,o=a&&e.__emotion_base||e,l,u;r!==void 0&&(l=r.label,u=r.target);var f=Db(e,r,a),h=f||Ob(o),d=!h("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=tm(function(w,E,O){var k=d&&w.as||o,R="",A=[],_=w;if(w.theme==null){_={};for(var $ in w)_[$]=w[$];_.theme=j.useContext(cl)}typeof w.className=="string"?R=Jx(E.registered,A,w.className):w.className!=null&&(R=w.className+" ");var I=ll(y.concat(A),E.registered,_);R+=E.key+"-"+I.name,u!==void 0&&(R+=" "+u);var L=d&&f===void 0?Ob(k):h,C={};for(var z in w)d&&z==="as"||L(z)&&(C[z]=w[z]);return C.className=R,O&&(C.ref=O),j.createElement(j.Fragment,null,j.createElement(vE,{cache:E,serialized:I,isStringTag:typeof k=="string"}),j.createElement(k,C))});return S.displayName=l!==void 0?l:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",S.defaultProps=e.defaultProps,S.__emotion_real=S,S.__emotion_base=o,S.__emotion_styles=y,S.__emotion_forwardProp=f,Object.defineProperty(S,"toString",{value:function(){return"."+u}}),S.withComponent=function(w,E){var O=t(w,G({},r,E,{shouldForwardProp:Db(S,E,!0)}));return O.apply(void 0,y)},S}},xE=["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"],bp=bE.bind(null);xE.forEach(function(t){bp[t]=bp(t)});const Bh=new Map,SE=(t,e)=>{const r=Wx(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 TE(t,e){if(t||e){class r extends Gx{insert(l,u){return this.key&&this.key.endsWith("global")&&(this.before=vi),super.insert(l,u)}}const a=SE({key:"css",insertionPoint:t?vi:void 0},r);if(e){const o=a.insert;a.insert=(...l)=>(l[1].styles.startsWith("@layer")||(l[1].styles=`@layer mui {${l[1].styles}}`),o(...l))}return a}}function CE(t){const{injectFirst:e,enableCssLayer:r,children:a}=t,o=j.useMemo(()=>{const l=`${e}-${r}`;if(Bh.has(l))return Bh.get(l);const u=TE(e,r);return Bh.set(l,u),u},[e,r]);return o?D.jsx(lE,{value:o,children:a}):a}function wE(t){return t==null||Object.keys(t).length===0}function AE(t){const{styles:e,defaultTheme:r={}}=t,a=typeof e=="function"?o=>e(wE(o)?r:o):e;return D.jsx(hE,{styles:a})}function EE(t,e){return bp(t,e)}function ME(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const _b=[];function zb(t){return _b[0]=t,ll(_b)}var Ih={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 kE(){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"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=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 w=S.$$typeof;switch(w){case t:switch(S=S.type,S){case r:case o:case a:case h:case d:case v:return S;default:switch(S=S&&S.$$typeof,S){case u:case f:case y:case m:return S;case l:return S;default:return w}}case e:return w}}}return Kt.ContextConsumer=l,Kt.ContextProvider=u,Kt.Element=t,Kt.ForwardRef=f,Kt.Fragment=r,Kt.Lazy=y,Kt.Memo=m,Kt.Portal=e,Kt.Profiler=o,Kt.StrictMode=a,Kt.Suspense=h,Kt.SuspenseList=d,Kt.isContextConsumer=function(S){return x(S)===l},Kt.isContextProvider=function(S){return x(S)===u},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)===o},Kt.isStrictMode=function(S){return x(S)===a},Kt.isSuspense=function(S){return x(S)===h},Kt.isSuspenseList=function(S){return x(S)===d},Kt.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===o||S===a||S===h||S===d||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===m||S.$$typeof===u||S.$$typeof===l||S.$$typeof===f||S.$$typeof===b||S.getModuleId!==void 0)},Kt.typeOf=x,Kt}var Nb;function RE(){return Nb||(Nb=1,Ih.exports=kE()),Ih.exports}var iS=RE();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 aS(t){if(j.isValidElement(t)||iS.isValidElementType(t)||!ir(t))return t;const e={};return Object.keys(t).forEach(r=>{e[r]=aS(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(o=>{j.isValidElement(e[o])||iS.isValidElementType(e[o])?a[o]=e[o]:ir(e[o])&&Object.prototype.hasOwnProperty.call(t,o)&&ir(t[o])?a[o]=yn(t[o],e[o],r):r.clone?a[o]=ir(e[o])?aS(e[o]):e[o]:a[o]=e[o]}),a}const OE=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 DE(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:a=5,...o}=t,l=OE(e),u=Object.keys(l);function f(v){return`@media (min-width:${typeof e[v]=="number"?e[v]:v}${r})`}function h(v){return`@media (max-width:${(typeof e[v]=="number"?e[v]:v)-a/100}${r})`}function d(v,b){const x=u.indexOf(b);return`@media (min-width:${typeof e[v]=="number"?e[v]:v}${r}) and (max-width:${(x!==-1&&typeof e[u[x]]=="number"?e[u[x]]:b)-a/100}${r})`}function m(v){return u.indexOf(v)+1<u.length?d(v,u[u.indexOf(v)+1]):f(v)}function y(v){const b=u.indexOf(v);return b===0?f(u[1]):b===u.length-1?h(u[b]):d(v,u[u.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:u,values:l,up:f,down:h,between:d,only:m,not:y,unit:r,...o}}function _E(t,e){if(!t.containerQueries)return e;const r=Object.keys(e).filter(a=>a.startsWith("@container")).sort((a,o)=>{var u,f;const l=/min-width:\s*([0-9.]+)/;return+(((u=a.match(l))==null?void 0:u[1])||0)-+(((f=o.match(l))==null?void 0:f[1])||0)});return r.length?r.reduce((a,o)=>{const l=e[o];return delete a[o],a[o]=l,a},{...e}):e}function zE(t,e){return e==="@"||e.startsWith("@")&&(t.some(r=>e.startsWith(`@${r}`))||!!e.match(/^@\d/))}function $E(t,e){const r=e.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,a,o]=r,l=Number.isNaN(+a)?a||0:+a;return t.containerQueries(o).up(l)}function NE(t){const e=(l,u)=>l.replace("@media",u?`@container ${u}`:"@container");function r(l,u){l.up=(...f)=>e(t.breakpoints.up(...f),u),l.down=(...f)=>e(t.breakpoints.down(...f),u),l.between=(...f)=>e(t.breakpoints.between(...f),u),l.only=(...f)=>e(t.breakpoints.only(...f),u),l.not=(...f)=>{const h=e(t.breakpoints.not(...f),u);return h.includes("not all and")?h.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):h}}const a={},o=l=>(r(a,l),a);return r(o),{...t,containerQueries:o}}const jE={borderRadius:4};function qs(t,e){return e?yn(t,e,{clone:!1}):t}const Iu={xs:0,sm:600,md:900,lg:1200,xl:1536},jb={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${Iu[t]}px)`},LE={containerQueries:t=>({up:e=>{let r=typeof e=="number"?e:Iu[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||jb;return e.reduce((u,f,h)=>(u[l.up(l.keys[h])]=r(e[h]),u),{})}if(typeof e=="object"){const l=a.breakpoints||jb;return Object.keys(e).reduce((u,f)=>{if(zE(l.keys,f)){const h=$E(a.containerQueries?a:LE,f);h&&(u[h]=r(e[f],f))}else if(Object.keys(l.values||Iu).includes(f)){const h=l.up(f);u[h]=r(e[f],f)}else{const h=f;u[h]=e[h]}return u},{})}return r(e)}function UE(t={}){var r;return((r=t.keys)==null?void 0:r.reduce((a,o)=>{const l=t.up(o);return a[l]={},a},{}))||{}}function BE(t,e){return t.reduce((r,a)=>{const o=r[a];return(!o||Object.keys(o).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 Hu(t,e,r=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&r){const a=`vars.${e}`.split(".").reduce((o,l)=>o&&o[l]?o[l]:null,t);if(a!=null)return a}return e.split(".").reduce((a,o)=>a&&a[o]!=null?a[o]:null,t)}function fu(t,e,r,a=r){let o;return typeof t=="function"?o=t(r):Array.isArray(t)?o=t[r]||a:o=Hu(t,r)||a,e&&(o=e(o,a,t)),o}function pe(t){const{prop:e,cssProperty:r=t.prop,themeKey:a,transform:o}=t,l=u=>{if(u[e]==null)return null;const f=u[e],h=u.theme,d=Hu(h,a)||{};return $r(u,f,y=>{let v=fu(d,o,y);return y===v&&typeof y=="string"&&(v=fu(d,o,`${e}${y==="default"?"":Wt(y)}`,y)),r===!1?v:{[r]:v}})};return l.propTypes={},l.filterProps=[e],l}function IE(t){const e={};return r=>(e[r]===void 0&&(e[r]=t(r)),e[r])}const HE={m:"margin",p:"padding"},PE={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Lb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},GE=IE(t=>{if(t.length>2)if(Lb[t])t=Lb[t];else return[t];const[e,r]=t.split(""),a=HE[e],o=PE[r]||"";return Array.isArray(o)?o.map(l=>a+l):[a+o]}),rm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],im=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...rm,...im];function fl(t,e,r,a){const o=Hu(t,e,!0)??r;return typeof o=="number"||typeof o=="string"?l=>typeof l=="string"?l:typeof o=="string"?o.startsWith("var(")&&l===0?0:o.startsWith("var(")&&l===1?o:`calc(${l} * ${o})`:o*l:Array.isArray(o)?l=>{if(typeof l=="string")return l;const u=Math.abs(l),f=o[u];return l>=0?f:typeof f=="number"?-f:typeof f=="string"&&f.startsWith("var(")?`calc(-1 * ${f})`:`-${f}`}:typeof o=="function"?o:()=>{}}function am(t){return fl(t,"spacing",8)}function dl(t,e){return typeof e=="string"||e==null?e:t(e)}function YE(t,e){return r=>t.reduce((a,o)=>(a[o]=dl(e,r),a),{})}function qE(t,e,r,a){if(!e.includes(r))return null;const o=GE(r),l=YE(o,a),u=t[r];return $r(t,u,l)}function oS(t,e){const r=am(t.theme);return Object.keys(t).map(a=>qE(t,e,a,r)).reduce(qs,{})}function ue(t){return oS(t,rm)}ue.propTypes={};ue.filterProps=rm;function fe(t){return oS(t,im)}fe.propTypes={};fe.filterProps=im;function sS(t=8,e=am({spacing:t})){if(t.mui)return t;const r=(...a)=>(a.length===0?[1]:a).map(l=>{const u=e(l);return typeof u=="number"?`${u}px`:u}).join(" ");return r.mui=!0,r}function Pu(...t){const e=t.reduce((a,o)=>(o.filterProps.forEach(l=>{a[l]=o}),a),{}),r=a=>Object.keys(a).reduce((o,l)=>e[l]?qs(o,e[l](a)):o,{});return r.propTypes={},r.filterProps=t.reduce((a,o)=>a.concat(o.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 VE=Un("border",Dn),XE=Un("borderTop",Dn),KE=Un("borderRight",Dn),ZE=Un("borderBottom",Dn),QE=Un("borderLeft",Dn),FE=Un("borderColor"),WE=Un("borderTopColor"),JE=Un("borderRightColor"),tM=Un("borderBottomColor"),eM=Un("borderLeftColor"),nM=Un("outline",Dn),rM=Un("outlineColor"),Gu=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};Gu.propTypes={};Gu.filterProps=["borderRadius"];Pu(VE,XE,KE,ZE,QE,FE,WE,JE,tM,eM,Gu,nM,rM);const Yu=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};Yu.propTypes={};Yu.filterProps=["gap"];const qu=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};qu.propTypes={};qu.filterProps=["columnGap"];const Vu=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};Vu.propTypes={};Vu.filterProps=["rowGap"];const iM=pe({prop:"gridColumn"}),aM=pe({prop:"gridRow"}),oM=pe({prop:"gridAutoFlow"}),sM=pe({prop:"gridAutoColumns"}),lM=pe({prop:"gridAutoRows"}),cM=pe({prop:"gridTemplateColumns"}),uM=pe({prop:"gridTemplateRows"}),fM=pe({prop:"gridTemplateAreas"}),dM=pe({prop:"gridArea"});Pu(Yu,qu,Vu,iM,aM,oM,sM,lM,cM,uM,fM,dM);function lo(t,e){return e==="grey"?e:t}const hM=pe({prop:"color",themeKey:"palette",transform:lo}),pM=pe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:lo}),mM=pe({prop:"backgroundColor",themeKey:"palette",transform:lo});Pu(hM,pM,mM);function mn(t){return t<=1&&t!==0?`${t*100}%`:t}const gM=pe({prop:"width",transform:mn}),om=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=r=>{var o,l,u,f,h;const a=((u=(l=(o=t.theme)==null?void 0:o.breakpoints)==null?void 0:l.values)==null?void 0:u[r])||Iu[r];return a?((h=(f=t.theme)==null?void 0:f.breakpoints)==null?void 0:h.unit)!=="px"?{maxWidth:`${a}${t.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:mn(r)}};return $r(t,t.maxWidth,e)}return null};om.filterProps=["maxWidth"];const yM=pe({prop:"minWidth",transform:mn}),vM=pe({prop:"height",transform:mn}),bM=pe({prop:"maxHeight",transform:mn}),xM=pe({prop:"minHeight",transform:mn});pe({prop:"size",cssProperty:"width",transform:mn});pe({prop:"size",cssProperty:"height",transform:mn});const SM=pe({prop:"boxSizing"});Pu(gM,om,yM,vM,bM,xM,SM);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:Gu},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:ue},mt:{style:ue},mr:{style:ue},mb:{style:ue},ml:{style:ue},mx:{style:ue},my:{style:ue},margin:{style:ue},marginTop:{style:ue},marginRight:{style:ue},marginBottom:{style:ue},marginLeft:{style:ue},marginX:{style:ue},marginY:{style:ue},marginInline:{style:ue},marginInlineStart:{style:ue},marginInlineEnd:{style:ue},marginBlock:{style:ue},marginBlockStart:{style:ue},marginBlockEnd:{style:ue},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:Yu},rowGap:{style:Vu},columnGap:{style:qu},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:om},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 TM(...t){const e=t.reduce((a,o)=>a.concat(Object.keys(o)),[]),r=new Set(e);return t.every(a=>r.size===Object.keys(a).length)}function CM(t,e){return typeof t=="function"?t(e):t}function wM(){function t(r,a,o,l){const u={[r]:a,theme:o},f=l[r];if(!f)return{[r]:a};const{cssProperty:h=r,themeKey:d,transform:m,style:y}=f;if(a==null)return null;if(d==="typography"&&a==="inherit")return{[r]:a};const v=Hu(o,d)||{};return y?y(u):$r(u,a,x=>{let S=fu(v,m,x);return x===S&&typeof x=="string"&&(S=fu(v,m,`${r}${x==="default"?"":Wt(x)}`,x)),h===!1?S:{[h]:S}})}function e(r){const{sx:a,theme:o={}}=r||{};if(!a)return null;const l=o.unstable_sxConfig??hl;function u(f){let h=f;if(typeof f=="function")h=f(o);else if(typeof f!="object")return f;if(!h)return null;const d=UE(o.breakpoints),m=Object.keys(d);let y=d;return Object.keys(h).forEach(v=>{const b=CM(h[v],o);if(b!=null)if(typeof b=="object")if(l[v])y=qs(y,t(v,b,o,l));else{const x=$r({theme:o},b,S=>({[v]:S}));TM(x,b)?y[v]=e({sx:b,theme:o}):y=qs(y,x)}else y=qs(y,t(v,b,o,l))}),_E(o,BE(m,y))}return Array.isArray(a)?a.map(u):u(a)}return e}const Wi=wM();Wi.filterProps=["sx"];function AM(t,e){var a;const r=this;if(r.vars){if(!((a=r.colorSchemes)!=null&&a[t])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(t);return o==="&"?e:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:e})}return r.palette.mode===t?e:{}}function sm(t={},...e){const{breakpoints:r={},palette:a={},spacing:o,shape:l={},...u}=t,f=DE(r),h=sS(o);let d=yn({breakpoints:f,direction:"ltr",components:{},palette:{mode:"light",...a},spacing:h,shape:{...jE,...l}},u);return d=NE(d),d.applyStyles=AM,d=e.reduce((m,y)=>yn(m,y),d),d.unstable_sxConfig={...hl,...u==null?void 0:u.unstable_sxConfig},d.unstable_sx=function(y){return Wi({sx:y,theme:this})},d}function EM(t){return Object.keys(t).length===0}function lm(t=null){const e=j.useContext(cl);return!e||EM(e)?t:e}const MM=sm();function lS(t=MM){return lm(t)}const kM=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(o=>{r[o]?e.systemProps[o]=t[o]:e.otherProps[o]=t[o]}),e};function RM(t){const{sx:e,...r}=t,{systemProps:a,otherProps:o}=kM(r);let l;return Array.isArray(e)?l=[a,...e]:typeof e=="function"?l=(...u)=>{const f=e(...u);return ir(f)?{...a,...f}:a}:l={...a,...e},{...o,sx:l}}const Ub=t=>t,OM=()=>{let t=Ub;return{configure(e){t=e},generate(e){return t(e)},reset(){t=Ub}}},DM=OM();function cS(t){var e,r,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=cS(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="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=cS(t))&&(a&&(a+=" "),a+=e);return a}const _M={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 je(t,e,r="Mui"){const a=_M[e];return a?`${r}-${a}`:`${DM.generate(t)}-${e}`}function Le(t,e,r="Mui"){const a={};return e.forEach(o=>{a[o]=je(t,o,r)}),a}function uS(t){const{variants:e,...r}=t,a={variants:e,style:zb(r),isProcessed:!0};return a.style===r||e&&e.forEach(o=>{typeof o.style!="function"&&(o.style=zb(o.style))}),a}const zM=sm();function au(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function $M(t){return t?(e,r)=>r[t]:null}function NM(t,e,r){t.theme=UM(t.theme)?r:t.theme[e]||t.theme}function ou(t,e){const r=typeof e=="function"?e(t):e;if(Array.isArray(r))return r.flatMap(a=>ou(t,a));if(Array.isArray(r==null?void 0:r.variants)){let a;if(r.isProcessed)a=r.style;else{const{variants:o,...l}=r;a=l}return fS(t,r.variants,[a])}return r!=null&&r.isProcessed?r.style:r}function fS(t,e,r=[]){var o;let a;t:for(let l=0;l<e.length;l+=1){const u=e[l];if(typeof u.props=="function"){if(a??(a={...t,...t.ownerState,ownerState:t.ownerState}),!u.props(a))continue}else for(const f in u.props)if(t[f]!==u.props[f]&&((o=t.ownerState)==null?void 0:o[f])!==u.props[f])continue t;typeof u.style=="function"?(a??(a={...t,...t.ownerState,ownerState:t.ownerState}),r.push(u.style(a))):r.push(u.style)}return r}function jM(t={}){const{themeId:e,defaultTheme:r=zM,rootShouldForwardProp:a=au,slotShouldForwardProp:o=au}=t;function l(f){NM(f,e,r)}return(f,h={})=>{ME(f,A=>A.filter(_=>_!==Wi));const{name:d,slot:m,skipVariantsResolver:y,skipSx:v,overridesResolver:b=$M(IM(m)),...x}=h,S=y!==void 0?y:m&&m!=="Root"&&m!=="root"||!1,w=v||!1;let E=au;m==="Root"||m==="root"?E=a:m?E=o:BM(f)&&(E=void 0);const O=EE(f,{shouldForwardProp:E,label:LM(),...x}),k=A=>{if(typeof A=="function"&&A.__emotion_real!==A)return function($){return ou($,A)};if(ir(A)){const _=uS(A);return _.variants?function(I){return ou(I,_)}:_.style}return A},R=(...A)=>{const _=[],$=A.map(k),I=[];if(_.push(l),d&&b&&I.push(function(H){var U,Y;const it=(Y=(U=H.theme.components)==null?void 0:U[d])==null?void 0:Y.styleOverrides;if(!it)return null;const lt={};for(const W in it)lt[W]=ou(H,it[W]);return b(H,lt)}),d&&!S&&I.push(function(H){var lt,U;const q=H.theme,it=(U=(lt=q==null?void 0:q.components)==null?void 0:lt[d])==null?void 0:U.variants;return it?fS(H,it):null}),w||I.push(Wi),Array.isArray($[0])){const z=$.shift(),H=new Array(_.length).fill(""),q=new Array(I.length).fill("");let it;it=[...H,...z,...q],it.raw=[...H,...z.raw,...q],_.unshift(it)}const L=[..._,...$,...I],C=O(...L);return f.muiName&&(C.muiName=f.muiName),C};return O.withConfig&&(R.withConfig=O.withConfig),R}}function LM(t,e){return void 0}function UM(t){for(const e in t)return!1;return!0}function BM(t){return typeof t=="string"&&t.charCodeAt(0)>96}function IM(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}function Ji(t,e,r=!1){const a={...e};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)){const l=o;if(l==="components"||l==="slots")a[l]={...t[l],...a[l]};else if(l==="componentsProps"||l==="slotProps"){const u=t[l],f=e[l];if(!f)a[l]=u||{};else if(!u)a[l]=f;else{a[l]={...f};for(const h in u)if(Object.prototype.hasOwnProperty.call(u,h)){const d=h;a[l][d]=Ji(u[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 dS(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 HM({props:t,name:e,defaultTheme:r,themeId:a}){let o=lS(r);return o=o[a]||o,dS({theme:o,name:e,props:t})}const Te=typeof window<"u"?j.useLayoutEffect:j.useEffect;function PM(t,e,r,a,o){const[l,u]=j.useState(()=>o&&r?r(t).matches:a?a(t).matches:e);return Te(()=>{if(!r)return;const f=r(t),h=()=>{u(f.matches)};return h(),f.addEventListener("change",h),()=>{f.removeEventListener("change",h)}},[t,r]),l}const GM={...cu},hS=GM.useSyncExternalStore;function YM(t,e,r,a,o){const l=j.useCallback(()=>e,[e]),u=j.useMemo(()=>{if(o&&r)return()=>r(t).matches;if(a!==null){const{matches:m}=a(t);return()=>m}return l},[l,t,a,o,r]),[f,h]=j.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 hS(h,f,u)}function pS(t={}){const{themeId:e}=t;return function(a,o={}){let l=lm();l&&e&&(l=l[e]||l);const u=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:f=!1,matchMedia:h=u?window.matchMedia:null,ssrMatchMedia:d=null,noSsr:m=!1}=dS({name:"MuiUseMediaQuery",props:o,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 + `)),(hS!==void 0?YM:PM)(y,f,h,d,m)}}pS();function qM(t,e=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,r))}function cm(t,e=0,r=1){return qM(t,e,r)}function VM(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,o)=>o<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(VM(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),o;if(r==="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(Fi(10,o))}else a=a.split(",");return a=a.map(l=>parseFloat(l)),{type:r,values:a,colorSpace:o}}const XM=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 XM(t)}catch{return t}};function Xu(t){const{type:e,colorSpace:r}=t;let{values:a}=t;return e.includes("rgb")?a=a.map((o,l)=>l<3?parseInt(o,10):o):e.includes("hsl")&&(a[1]=`${a[1]}%`,a[2]=`${a[2]}%`),e.includes("color")?a=`${r} ${a.join(" ")}`:a=`${a.join(", ")}`,`${e}(${a})`}function mS(t){t=xi(t);const{values:e}=t,r=e[0],a=e[1]/100,o=e[2]/100,l=a*Math.min(o,1-o),u=(d,m=(d+r/30)%12)=>o-l*Math.max(Math.min(m-3,9-m,1),-1);let f="rgb";const h=[Math.round(u(0)*255),Math.round(u(8)*255),Math.round(u(4)*255)];return t.type==="hsla"&&(f+="a",h.push(e[3])),Xu({type:f,values:h})}function xp(t){t=xi(t);let e=t.type==="hsl"||t.type==="hsla"?xi(mS(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 KM(t,e){const r=xp(t),a=xp(e);return(Math.max(r,a)+.05)/(Math.min(r,a)+.05)}function bi(t,e){return t=xi(t),e=cm(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,Xu(t)}function Hc(t,e,r){try{return bi(t,e)}catch{return t}}function um(t,e){if(t=xi(t),e=cm(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 Xu(t)}function Qt(t,e,r){try{return um(t,e)}catch{return t}}function fm(t,e){if(t=xi(t),e=cm(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 Xu(t)}function Ft(t,e,r){try{return fm(t,e)}catch{return t}}function ZM(t,e=.15){return xp(t)>.5?um(t,e):fm(t,e)}function Pc(t,e,r){try{return ZM(t,e)}catch{return t}}const gS=j.createContext(null);function dm(){return j.useContext(gS)}const QM=typeof Symbol=="function"&&Symbol.for,FM=QM?Symbol.for("mui.nested"):"__THEME_NESTED__";function WM(t,e){return typeof e=="function"?e(t):{...t,...e}}function JM(t){const{children:e,theme:r}=t,a=dm(),o=j.useMemo(()=>{const l=a===null?{...r}:WM(a,r);return l!=null&&(l[FM]=a!==null),l},[r,a]);return D.jsx(gS.Provider,{value:o,children:e})}const yS=j.createContext();function tk({value:t,...e}){return D.jsx(yS.Provider,{value:t??!0,...e})}const hm=()=>j.useContext(yS)??!1,vS=j.createContext(void 0);function ek({value:t,children:e}){return D.jsx(vS.Provider,{value:t,children:e})}function nk(t){const{theme:e,name:r,props:a}=t;if(!e||!e.components||!e.components[r])return a;const o=e.components[r];return o.defaultProps?Ji(o.defaultProps,a):!o.styleOverrides&&!o.variants?Ji(o,a):a}function rk({props:t,name:e}){const r=j.useContext(vS);return nk({props:t,name:e,theme:{components:r}})}const Bb={};function Ib(t,e,r,a=!1){return j.useMemo(()=>{const o=t&&e[t]||e;if(typeof r=="function"){const l=r(o),u=t?{...e,[t]:l}:l;return a?()=>u:u}return t?{...e,[t]:r}:{...e,...r}},[t,e,r,a])}function bS(t){const{children:e,theme:r,themeId:a}=t,o=lm(Bb),l=dm()||Bb,u=Ib(a,o,r),f=Ib(a,l,r,!0),h=(a?u[a]:u).direction==="rtl";return D.jsx(JM,{theme:f,children:D.jsx(cl.Provider,{value:u,children:D.jsx(tk,{value:h,children:D.jsx(ek,{value:a?u[a].components:u.components,children:e})})})})}const Hb={theme:void 0};function ik(t){let e,r;return function(o){let l=e;return(l===void 0||o.theme!==r)&&(Hb.theme=o.theme,l=uS(t(Hb)),e=l,r=o.theme),l}}const pm="mode",mm="color-scheme",ak="data-color-scheme";function ok(t){const{defaultMode:e="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:a="dark",modeStorageKey:o=pm,colorSchemeStorageKey:l=mm,attribute:u=ak,colorSchemeNode:f="document.documentElement",nonce:h}=t||{};let d="",m=u;if(u==="class"&&(m=".%s"),u==="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 D.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?h:"",dangerouslySetInnerHTML:{__html:`(function() { 69 + try { 70 + let colorScheme = ''; 71 + const mode = localStorage.getItem('${o}') || '${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 sk(){}const lk=({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 sk;const a=o=>{const l=o.newValue;o.key===t&&r(l)};return e.addEventListener("storage",a),()=>{e.removeEventListener("storage",a)}}});function Hh(){}function Pb(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function xS(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 ck(t){return xS(t,e=>{if(e==="light")return t.lightColorScheme;if(e==="dark")return t.darkColorScheme})}function uk(t){const{defaultMode:e="light",defaultLightColorScheme:r,defaultDarkColorScheme:a,supportedColorSchemes:o=[],modeStorageKey:l=pm,colorSchemeStorageKey:u=mm,storageWindow:f=typeof window>"u"?void 0:window,storageManager:h=lk,noSsr:d=!1}=t,m=o.join(","),y=o.length>1,v=j.useMemo(()=>h==null?void 0:h({key:l,storageWindow:f}),[h,l,f]),b=j.useMemo(()=>h==null?void 0:h({key:`${u}-light`,storageWindow:f}),[h,u,f]),x=j.useMemo(()=>h==null?void 0:h({key:`${u}-dark`,storageWindow:f}),[h,u,f]),[S,w]=j.useState(()=>{const I=(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:I,systemMode:Pb(I),lightColorScheme:L,darkColorScheme:C}}),[E,O]=j.useState(d||!y);j.useEffect(()=>{O(!0)},[]);const k=ck(S),R=j.useCallback(I=>{w(L=>{if(I===L.mode)return L;const C=I??e;return v==null||v.set(C),{...L,mode:C,systemMode:Pb(C)}})},[v,e]),A=j.useCallback(I=>{I?typeof I=="string"?I&&!m.includes(I)?console.error(`\`${I}\` does not exist in \`theme.colorSchemes\`.`):w(L=>{const C={...L};return xS(L,z=>{z==="light"&&(b==null||b.set(I),C.lightColorScheme=I),z==="dark"&&(x==null||x.set(I),C.darkColorScheme=I)}),C}):w(L=>{const C={...L},z=I.light===null?r:I.light,H=I.dark===null?a:I.dark;return z&&(m.includes(z)?(C.lightColorScheme=z,b==null||b.set(z)):console.error(`\`${z}\` does not exist in \`theme.colorSchemes\`.`)),H&&(m.includes(H)?(C.darkColorScheme=H,x==null||x.set(H)):console.error(`\`${H}\` does not exist in \`theme.colorSchemes\`.`)),C}):w(L=>(b==null||b.set(r),x==null||x.set(a),{...L,lightColorScheme:r,darkColorScheme:a}))},[m,b,x,r,a]),_=j.useCallback(I=>{S.mode==="system"&&w(L=>{const C=I!=null&&I.matches?"dark":"light";return L.systemMode===C?L:{...L,systemMode:C}})},[S.mode]),$=j.useRef(_);return $.current=_,j.useEffect(()=>{if(typeof window.matchMedia!="function"||!y)return;const I=(...C)=>$.current(...C),L=window.matchMedia("(prefers-color-scheme: dark)");return L.addListener(I),I(L),()=>{L.removeListener(I)}},[y]),j.useEffect(()=>{if(y){const I=(v==null?void 0:v.subscribe(z=>{(!z||["light","dark","system"].includes(z))&&R(z||e)}))||Hh,L=(b==null?void 0:b.subscribe(z=>{(!z||m.match(z))&&A({light:z})}))||Hh,C=(x==null?void 0:x.subscribe(z=>{(!z||m.match(z))&&A({dark:z})}))||Hh;return()=>{I(),L(),C()}}},[A,R,m,e,f,y,v,b,x]),{...S,mode:E?S.mode:void 0,systemMode:E?S.systemMode:void 0,colorScheme:E?k:void 0,setMode:R,setColorScheme:A}}const fk="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function dk(t){const{themeId:e,theme:r={},modeStorageKey:a=pm,colorSchemeStorageKey:o=mm,disableTransitionOnChange:l=!1,defaultColorScheme:u,resolveTheme:f}=t,h={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},d=j.createContext(void 0),m=()=>j.useContext(d)||h,y={},v={};function b(E){var Hn,ve,Fe,Ie;const{children:O,theme:k,modeStorageKey:R=a,colorSchemeStorageKey:A=o,disableTransitionOnChange:_=l,storageManager:$,storageWindow:I=typeof window>"u"?void 0:window,documentNode:L=typeof document>"u"?void 0:document,colorSchemeNode:C=typeof document>"u"?void 0:document.documentElement,disableNestedContext:z=!1,disableStyleSheetGeneration:H=!1,defaultMode:q="system",forceThemeRerender:it=!1,noSsr:lt}=E,U=j.useRef(!1),Y=dm(),W=j.useContext(d),J=!!W&&!z,N=j.useMemo(()=>k||(typeof r=="function"?r():r),[k]),Z=N[e],at=Z||N,{colorSchemes:ot=y,components:ut=v,cssVarPrefix:dt}=at,ft=Object.keys(ot).filter(He=>!!ot[He]).join(","),At=j.useMemo(()=>ft.split(","),[ft]),bt=typeof u=="string"?u:u.light,nt=typeof u=="string"?u:u.dark,ht=ot[bt]&&ot[nt]?q:((ve=(Hn=ot[at.defaultColorScheme])==null?void 0:Hn.palette)==null?void 0:ve.mode)||((Fe=at.palette)==null?void 0:Fe.mode),{mode:vt,setMode:ct,systemMode:$t,lightColorScheme:gt,darkColorScheme:Yt,colorScheme:re,setColorScheme:Lt}=uk({supportedColorSchemes:At,defaultLightColorScheme:bt,defaultDarkColorScheme:nt,modeStorageKey:R,colorSchemeStorageKey:A,defaultMode:ht,storageManager:$,storageWindow:I,noSsr:lt});let Be=vt,we=re;J&&(Be=W.mode,we=W.colorScheme);let Ae=we||at.defaultColorScheme;at.vars&&!it&&(Ae=at.defaultColorScheme);const De=j.useMemo(()=>{var ur;const He=((ur=at.generateThemeVars)==null?void 0:ur.call(at))||at.vars,oe={...at,components:ut,colorSchemes:ot,cssVarPrefix:dt,vars:He};if(typeof oe.generateSpacing=="function"&&(oe.spacing=oe.generateSpacing()),Ae){const Ke=ot[Ae];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,Ae,ut,ot,dt]),St=at.colorSchemeSelector;Te(()=>{if(we&&C&&St&&St!=="media"){const He=St;let oe=St;if(He==="class"&&(oe=".%s"),He==="data"&&(oe="[data-%s]"),He!=null&&He.startsWith("data-")&&!He.includes("%s")&&(oe=`[${He}="%s"]`),oe.startsWith("."))C.classList.remove(...At.map(ur=>oe.substring(1).replace("%s",ur))),C.classList.add(oe.substring(1).replace("%s",we));else{const ur=oe.replace("%s",we).match(/\[([^\]]+)\]/);if(ur){const[Ke,Pe]=ur[1].split("=");Pe||At.forEach(fr=>{C.removeAttribute(Ke.replace(we,fr))}),C.setAttribute(Ke,Pe?Pe.replace(/"|'/g,""):"")}else C.setAttribute(oe,we)}}},[we,St,C,At]),j.useEffect(()=>{let He;if(_&&U.current&&L){const oe=L.createElement("style");oe.appendChild(L.createTextNode(fk)),L.head.appendChild(oe),window.getComputedStyle(L.body),He=setTimeout(()=>{L.head.removeChild(oe)},1)}return()=>{clearTimeout(He)}},[we,_,L]),j.useEffect(()=>(U.current=!0,()=>{U.current=!1}),[]);const Ci=j.useMemo(()=>({allColorSchemes:At,colorScheme:we,darkColorScheme:Yt,lightColorScheme:gt,mode:Be,setColorScheme:Lt,setMode:ct,systemMode:$t}),[At,we,Yt,gt,Be,Lt,ct,$t,De.colorSchemeSelector]);let Vr=!0;(H||at.cssVariables===!1||J&&(Y==null?void 0:Y.cssVarPrefix)===dt)&&(Vr=!1);const wi=D.jsxs(j.Fragment,{children:[D.jsx(bS,{themeId:Z?e:void 0,theme:De,children:O}),Vr&&D.jsx(AE,{styles:((Ie=De.generateStyleSheets)==null?void 0:Ie.call(De))||[]})]});return J?wi:D.jsx(d.Provider,{value:Ci,children:wi})}const x=typeof u=="string"?u:u.light,S=typeof u=="string"?u:u.dark;return{CssVarsProvider:b,useColorScheme:m,getInitColorSchemeScript:E=>ok({colorSchemeStorageKey:o,defaultLightColorScheme:x,defaultDarkColorScheme:S,modeStorageKey:a,...E})}}function hk(t=""){function e(...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}${e(...a.slice(1))})`:`, ${o}`}return(a,...o)=>`var(--${t?`${t}-`:""}${a}${e(...o)})`}const Gb=(t,e,r,a=[])=>{let o=t;e.forEach((l,u)=>{u===e.length-1?Array.isArray(o)?o[Number(l)]=r:o&&typeof o=="object"&&(o[l]=r):o&&typeof o=="object"&&(o[l]||(o[l]=a.includes(l)?[]:{}),o=o[l])})},pk=(t,e,r)=>{function a(o,l=[],u=[]){Object.entries(o).forEach(([f,h])=>{(!r||r&&!r([...l,f]))&&h!=null&&(typeof h=="object"&&Object.keys(h).length>0?a(h,[...l,f],Array.isArray(h)?[...u,f]:u):e([...l,f],h,u))})}a(t)},mk=(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 Ph(t,e){const{prefix:r,shouldSkipGeneratingVar:a}=e||{},o={},l={},u={};return pk(t,(f,h,d)=>{if((typeof h=="string"||typeof h=="number")&&(!a||!a(f,h))){const m=`--${r?`${r}-`:""}${f.join("-")}`,y=mk(f,h);Object.assign(o,{[m]:y}),Gb(l,f,`var(${m})`,d),Gb(u,f,`var(${m}, ${y})`,d)}},f=>f[0]==="vars"),{css:o,vars:l,varsWithDefaults:u}}function gk(t,e={}){const{getSelector:r=w,disableCssColorScheme:a,colorSchemeSelector:o}=e,{colorSchemes:l={},components:u,defaultColorScheme:f="light",...h}=t,{vars:d,css:m,varsWithDefaults:y}=Ph(h,e);let v=y;const b={},{[f]:x,...S}=l;if(Object.entries(S||{}).forEach(([k,R])=>{const{vars:A,css:_,varsWithDefaults:$}=Ph(R,e);v=yn(v,$),b[k]={css:_,vars:A}}),x){const{css:k,vars:R,varsWithDefaults:A}=Ph(x,e);v=yn(v,A),b[f]={css:k,vars:R}}function w(k,R){var _,$;let A=o;if(o==="class"&&(A=".%s"),o==="data"&&(A="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(A=`[${o}="%s"]`),k){if(A==="media")return t.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${(($=(_=l[k])==null?void 0:_.palette)==null?void 0:$.mode)||k})`]:{":root":R}};if(A)return t.defaultColorScheme===k?`:root, ${A.replace("%s",String(k))}`:A.replace("%s",String(k))}return":root"}return{vars:v,generateThemeVars:()=>{let k={...d};return Object.entries(b).forEach(([,{vars:R}])=>{k=yn(k,R)}),k},generateStyleSheets:()=>{var I,L;const k=[],R=t.defaultColorScheme||"light";function A(C,z){Object.keys(z).length&&k.push(typeof C=="string"?{[C]:{...z}}:C)}A(r(void 0,{...m}),m);const{[R]:_,...$}=b;if(_){const{css:C}=_,z=(L=(I=l[R])==null?void 0:I.palette)==null?void 0:L.mode,H=!a&&z?{colorScheme:z,...C}:{...C};A(r(R,{...H}),H)}return Object.entries($).forEach(([C,{css:z}])=>{var it,lt;const H=(lt=(it=l[C])==null?void 0:it.palette)==null?void 0:lt.mode,q=!a&&H?{colorScheme:H,...z}:{...z};A(r(C,{...q}),q)}),k}}}function yk(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 o in t){const l=t[o];let u="",f=!0;for(let h=0;h<l.length;h+=1){const d=l[h];d&&(u+=(f===!0?"":" ")+e(d),f=!1,r&&r[d]&&(u+=" "+r[d]))}a[o]=u}return a}const Fs={black:"#000",white:"#fff"},vk={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 SS(){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 bk=SS();function TS(){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 Yb=TS();function qb(t,e,r,a){const o=a.light||a,l=a.dark||a*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=fm(t.main,o):e==="dark"&&(t.dark=um(t.main,l)))}function xk(t="light"){return t==="dark"?{main:Ka[200],light:Ka[50],dark:Ka[400]}:{main:Ka[700],light:Ka[400],dark:Ka[800]}}function Sk(t="light"){return t==="dark"?{main:Va[200],light:Va[50],dark:Va[400]}:{main:Va[500],light:Va[300],dark:Va[700]}}function Tk(t="light"){return t==="dark"?{main:Xa[500],light:Xa[300],dark:Xa[700]}:{main:Xa[700],light:Xa[400],dark:Xa[800]}}function Ck(t="light"){return t==="dark"?{main:Za[400],light:Za[300],dark:Za[700]}:{main:Za[700],light:Za[500],dark:Za[900]}}function wk(t="light"){return t==="dark"?{main:Qa[400],light:Qa[300],dark:Qa[700]}:{main:Qa[800],light:Qa[500],dark:Qa[900]}}function Ak(t="light"){return t==="dark"?{main:Ds[400],light:Ds[300],dark:Ds[700]}:{main:"#ed6c02",light:Ds[500],dark:Ds[900]}}function gm(t){const{mode:e="light",contrastThreshold:r=3,tonalOffset:a=.2,...o}=t,l=t.primary||xk(e),u=t.secondary||Sk(e),f=t.error||Tk(e),h=t.info||Ck(e),d=t.success||wk(e),m=t.warning||Ak(e);function y(S){return KM(S,Yb.text.primary)>=r?Yb.text.primary:bk.text.primary}const v=({color:S,name:w,mainShade:E=500,lightShade:O=300,darkShade:k=700})=>{if(S={...S},!S.main&&S[E]&&(S.main=S[E]),!S.hasOwnProperty("main"))throw new Error(Fi(11,w?` (${w})`:"",E));if(typeof S.main!="string")throw new Error(Fi(12,w?` (${w})`:"",JSON.stringify(S.main)));return qb(S,"light",O,a),qb(S,"dark",k,a),S.contrastText||(S.contrastText=y(S.main)),S};let b;return e==="light"?b=SS():e==="dark"&&(b=TS()),yn({common:{...Fs},mode:e,primary:v({color:l,name:"primary"}),secondary:v({color:u,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:f,name:"error"}),warning:v({color:m,name:"warning"}),info:v({color:h,name:"info"}),success:v({color:d,name:"success"}),grey:vk,contrastThreshold:r,getContrastText:y,augmentColor:v,tonalOffset:a,...b},o)}function Ek(t){const e={};return Object.entries(t).forEach(a=>{const[o,l]=a;typeof l=="object"&&(e[o]=`${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 Mk(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function kk(t){return Math.round(t*1e5)/1e5}const Vb={textTransform:"uppercase"},Xb='"Roboto", "Helvetica", "Arial", sans-serif';function CS(t,e){const{fontFamily:r=Xb,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:l=400,fontWeightMedium:u=500,fontWeightBold:f=700,htmlFontSize:h=16,allVariants:d,pxToRem:m,...y}=typeof e=="function"?e(t):e,v=a/14,b=m||(w=>`${w/h*v}rem`),x=(w,E,O,k,R)=>({fontFamily:r,fontWeight:w,fontSize:b(E),lineHeight:O,...r===Xb?{letterSpacing:`${kk(k/E)}em`}:{},...R,...d}),S={h1:x(o,96,1.167,-1.5),h2:x(o,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(u,20,1.6,.15),subtitle1:x(l,16,1.75,.15),subtitle2:x(u,14,1.57,.1),body1:x(l,16,1.5,.15),body2:x(l,14,1.43,.15),button:x(u,14,1.75,.4,Vb),caption:x(l,12,1.66,.4),overline:x(l,12,2.66,1,Vb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return yn({htmlFontSize:h,pxToRem:b,fontFamily:r,fontSize:a,fontWeightLight:o,fontWeightRegular:l,fontWeightMedium:u,fontWeightBold:f,...S},y,{clone:!1})}const Rk=.2,Ok=.14,Dk=.12;function ae(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${Rk})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${Ok})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${Dk})`].join(",")}const _k=["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)],zk={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)"},$k={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Kb(t){return`${Math.round(t)}ms`}function Nk(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function jk(t){const e={...zk,...t.easing},r={...$k,...t.duration};return{getAutoHeightDuration:Nk,create:(o=["all"],l={})=>{const{duration:u=r.standard,easing:f=e.easeInOut,delay:h=0,...d}=l;return(Array.isArray(o)?o:[o]).map(m=>`${m} ${typeof u=="string"?u:Kb(u)} ${f} ${typeof h=="string"?h:Kb(h)}`).join(",")},...t,easing:e,duration:r}}const Lk={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Uk(t){return ir(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function wS(t={}){const e={...t};function r(a){const o=Object.entries(a);for(let l=0;l<o.length;l++){const[u,f]=o[l];!Uk(f)||u.startsWith("unstable_")?delete a[u]:ir(f)&&(a[u]={...f},r(a[u]))}}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 Sp(t={},...e){const{breakpoints:r,mixins:a={},spacing:o,palette:l={},transitions:u={},typography:f={},shape:h,...d}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(Fi(20));const m=gm(l),y=sm(t);let v=yn(y,{mixins:Mk(y.breakpoints,a),palette:m,shadows:_k.slice(),typography:CS(m,f),transitions:jk(u),zIndex:{...Lk}});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=wS,v}function Bk(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 Ik=[...Array(25)].map((t,e)=>{if(e===0)return"none";const r=Bk(e);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function AS(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function ES(t){return t==="dark"?Ik:[]}function Hk(t){const{palette:e={mode:"light"},opacity:r,overlays:a,...o}=t,l=gm(e);return{palette:l,opacity:{...AS(l.mode),...r},overlays:a||ES(l.mode),...o}}function Pk(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 Gk=t=>[...[...Array(25)].map((e,r)=>`--${t?`${t}-`:""}overlays-${r}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],Yk=t=>(e,r)=>{const a=t.rootSelector||":root",o=t.colorSchemeSelector;let l=o;if(o==="class"&&(l=".%s"),o==="data"&&(l="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(l=`[${o}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const u={};return Gk(t.cssVarPrefix).forEach(f=>{u[f]=r[f],delete r[f]}),l==="media"?{[a]:r,"@media (prefers-color-scheme: dark)":{[a]:u}}:l?{[l.replace("%s",e)]:u,[`${a}, ${l.replace("%s",e)}`]:r}:{[a]:{...r,...u}}}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 qk(t,e){e.forEach(r=>{t[r]||(t[r]={})})}function tt(t,e,r){!t[e]&&r&&(t[e]=r)}function Is(t){return typeof t!="string"||!t.startsWith("hsl")?t:mS(t)}function Mr(t,e){`${e}Channel`in t||(t[`${e}Channel`]=Bs(Is(t[e])))}function Vk(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{}},Xk=(t="mui")=>hk(t);function Gh(t,e,r,a){if(!e)return;e=e===!0?{}:e;const o=a==="dark"?"dark":"light";if(!r){t[a]=Hk({...e,palette:{mode:o,...e==null?void 0:e.palette}});return}const{palette:l,...u}=Sp({...r,palette:{mode:o,...e==null?void 0:e.palette}});return t[a]={...e,palette:l,opacity:{...AS(o),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||ES(o)},u}function Kk(t={},...e){const{colorSchemes:r={light:!0},defaultColorScheme:a,disableCssColorScheme:o=!1,cssVarPrefix:l="mui",shouldSkipGeneratingVar:u=Pk,colorSchemeSelector:f=r.light&&r.dark?"media":void 0,rootSelector:h=":root",...d}=t,m=Object.keys(r)[0],y=a||(r.light&&m!=="light"?"light":m),v=Xk(l),{[y]:b,light:x,dark:S,...w}=r,E={...w};let O=b;if((y==="dark"&&!("dark"in r)||y==="light"&&!("light"in r))&&(O=!0),!O)throw new Error(Fi(21,y));const k=Gh(E,O,d,y);x&&!E.light&&Gh(E,x,void 0,"light"),S&&!E.dark&&Gh(E,S,void 0,"dark");let R={defaultColorScheme:y,...k,cssVarPrefix:l,colorSchemeSelector:f,rootSelector:h,getCssVar:v,colorSchemes:E,font:{...Ek(k.typography),...k.font},spacing:Vk(d.spacing)};Object.keys(R.colorSchemes).forEach(L=>{const C=R.colorSchemes[L].palette,z=H=>{const q=H.split("-"),it=q[1],lt=q[2];return v(H,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")),qk(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",z("palette-error-main")),tt(C.Alert,"infoFilledBg",z("palette-info-main")),tt(C.Alert,"successFilledBg",z("palette-success-main")),tt(C.Alert,"warningFilledBg",z("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",z("palette-error-main")),tt(C.Alert,"infoIconColor",z("palette-info-main")),tt(C.Alert,"successIconColor",z("palette-success-main")),tt(C.Alert,"warningIconColor",z("palette-warning-main")),tt(C.AppBar,"defaultBg",z("palette-grey-100")),tt(C.Avatar,"defaultBg",z("palette-grey-400")),tt(C.Button,"inheritContainedBg",z("palette-grey-300")),tt(C.Button,"inheritContainedHoverBg",z("palette-grey-A100")),tt(C.Chip,"defaultBorder",z("palette-grey-400")),tt(C.Chip,"defaultAvatarColor",z("palette-grey-700")),tt(C.Chip,"defaultIconColor",z("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(${z("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 H=Pc(C.background.default,.8);tt(C.SnackbarContent,"bg",H),tt(C.SnackbarContent,"color",er(()=>C.getContrastText(H))),tt(C.SpeedDialAction,"fabHoverBg",Pc(C.background.paper,.15)),tt(C.StepConnector,"border",z("palette-grey-400")),tt(C.StepContent,"border",z("palette-grey-400")),tt(C.Switch,"defaultColor",z("palette-common-white")),tt(C.Switch,"defaultDisabledColor",z("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(Hc(C.divider,1),.88)),tt(C.Tooltip,"bg",Hc(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",z("palette-error-dark")),tt(C.Alert,"infoFilledBg",z("palette-info-dark")),tt(C.Alert,"successFilledBg",z("palette-success-dark")),tt(C.Alert,"warningFilledBg",z("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",z("palette-error-main")),tt(C.Alert,"infoIconColor",z("palette-info-main")),tt(C.Alert,"successIconColor",z("palette-success-main")),tt(C.Alert,"warningIconColor",z("palette-warning-main")),tt(C.AppBar,"defaultBg",z("palette-grey-900")),tt(C.AppBar,"darkBg",z("palette-background-paper")),tt(C.AppBar,"darkColor",z("palette-text-primary")),tt(C.Avatar,"defaultBg",z("palette-grey-600")),tt(C.Button,"inheritContainedBg",z("palette-grey-800")),tt(C.Button,"inheritContainedHoverBg",z("palette-grey-700")),tt(C.Chip,"defaultBorder",z("palette-grey-700")),tt(C.Chip,"defaultAvatarColor",z("palette-grey-300")),tt(C.Chip,"defaultIconColor",z("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(${z("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 H=Pc(C.background.default,.98);tt(C.SnackbarContent,"bg",H),tt(C.SnackbarContent,"color",er(()=>C.getContrastText(H))),tt(C.SpeedDialAction,"fabHoverBg",Pc(C.background.paper,.15)),tt(C.StepConnector,"border",z("palette-grey-600")),tt(C.StepContent,"border",z("palette-grey-600")),tt(C.Switch,"defaultColor",z("palette-grey-300")),tt(C.Switch,"defaultDisabledColor",z("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(Hc(C.divider,1),.68)),tt(C.Tooltip,"bg",Hc(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(H=>{const q=C[H];H!=="tonalOffset"&&q&&typeof q=="object"&&(q.main&&tt(C[H],"mainChannel",Bs(Is(q.main))),q.light&&tt(C[H],"lightChannel",Bs(Is(q.light))),q.dark&&tt(C[H],"darkChannel",Bs(Is(q.dark))),q.contrastText&&tt(C[H],"contrastTextChannel",Bs(Is(q.contrastText))),H==="text"&&(Mr(C[H],"primary"),Mr(C[H],"secondary")),H==="action"&&(q.active&&Mr(C[H],"active"),q.selected&&Mr(C[H],"selected")))})}),R=e.reduce((L,C)=>yn(L,C),R);const A={prefix:l,disableCssColorScheme:o,shouldSkipGeneratingVar:u,getSelector:Yk(R)},{vars:_,generateThemeVars:$,generateStyleSheets:I}=gk(R,A);return R.vars=_,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([L,C])=>{R[L]=C}),R.generateThemeVars=$,R.generateStyleSheets=I,R.generateSpacing=function(){return sS(d.spacing,am(this))},R.getColorSchemeSelector=yk(f),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=u,R.unstable_sxConfig={...hl,...d==null?void 0:d.unstable_sxConfig},R.unstable_sx=function(C){return Wi({sx:C,theme:this})},R.toRuntimeSource=wS,R}function Zb(t,e,r){t.colorSchemes&&r&&(t.colorSchemes[e]={...r!==!0&&r,palette:gm({...r===!0?{}:r.palette,mode:e})})}function ym(t={},...e){const{palette:r,cssVariables:a=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:l=r==null?void 0:r.mode,...u}=t,f=l||"light",h=o==null?void 0:o[f],d={...o,...r?{[f]:{...typeof h!="boolean"&&h,palette:r}}:void 0};if(a===!1){if(!("colorSchemes"in t))return Sp(t,...e);let m=r;"palette"in t||d[f]&&(d[f]!==!0?m=d[f].palette:f==="dark"&&(m={mode:"dark"}));const y=Sp({...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},Zb(y,"dark",d.dark)),y.palette.mode==="dark"&&(y.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:y.palette},Zb(y,"light",d.light)),y}return!r&&!("light"in d)&&f==="light"&&(d.light=!0),Kk({...u,colorSchemes:d,defaultColorScheme:f,...typeof a!="boolean"&&a},...e)}const vm=ym();function pl(){const t=lS(vm);return t[ar]||t}function Kn({props:t,name:e}){return HM({props:t,name:e,defaultTheme:vm,themeId:ar})}function Zk(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const MS=t=>Zk(t)&&t!=="classes",zt=jM({themeId:ar,defaultTheme:vm,rootShouldForwardProp:MS});function Qk({theme:t,...e}){const r=ar in t?t[ar]:void 0;return D.jsx(bS,{...e,themeId:r?ar:void 0,theme:r||t})}const Gc={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:Fk}=dk({themeId:ar,theme:()=>ym({cssVariables:!0}),colorSchemeStorageKey:Gc.colorSchemeStorageKey,modeStorageKey:Gc.modeStorageKey,defaultColorScheme:{light:Gc.defaultLightColorScheme,dark:Gc.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:CS(t.palette,t.typography)};return e.unstable_sx=function(a){return Wi({sx:a,theme:this})},e}}),Wk=Fk;function Jk({theme:t,...e}){const r=j.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?D.jsx(Qk,{theme:r,...e}):D.jsx(Wk,{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 tR(t){return je("MuiBarElement",t)}const eR=Le("MuiBarElement",["root","highlighted","faded","series"]),nR=t=>{const{classes:e,id:r,isHighlighted:a,isFaded:o}=t,l={root:["root",`series-${r}`,a&&"highlighted",o&&"faded"]};return Ue(l,tR,e)};function Si(...t){const e=j.useRef(void 0),r=j.useCallback(a=>{const o=t.map(l=>{if(l==null)return null;if(typeof l=="function"){const u=l,f=u(a);return typeof f=="function"?f:()=>{u(null)}}return l.current=a,()=>{l.current=null}});return()=>{o.forEach(l=>l==null?void 0:l())}},t);return j.useMemo(()=>t.every(a=>a==null)?null:a=>{e.current&&(e.current(),e.current=void 0),a!=null&&(e.current=r(a))},t)}function rR(t){return typeof t=="string"}function iR(t,e,r){return t===void 0||rR(t)?e:{...e,ownerState:{...e.ownerState,...r}}}function aR(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 Qb(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 oR(t){const{getSlotProps:e,additionalProps:r,externalSlotProps:a,externalForwardedProps:o,className:l}=t;if(!e){const b=Jt(r==null?void 0:r.className,l,o==null?void 0:o.className,a==null?void 0:a.className),x={...r==null?void 0:r.style,...o==null?void 0:o.style,...a==null?void 0:a.style},S={...r,...o,...a};return b.length>0&&(S.className=b),Object.keys(x).length>0&&(S.style=x),{props:S,internalRef:void 0}}const u=aR({...o,...a}),f=Qb(a),h=Qb(o),d=e(u),m=Jt(d==null?void 0:d.className,r==null?void 0:r.className,l,o==null?void 0:o.className,a==null?void 0:a.className),y={...d==null?void 0:d.style,...r==null?void 0:r.style,...o==null?void 0:o.style,...a==null?void 0:a.style},v={...d,...r,...h,...f};return m.length>0&&(v.className=m),Object.keys(y).length>0&&(v.style=y),{props:v,internalRef:d.ref}}function sR(t,e,r){return typeof t=="function"?t(e,r):t}function _r(t){var y;const{elementType:e,externalSlotProps:r,ownerState:a,skipResolvingSlotProps:o=!1,...l}=t,u=o?{}:sR(r,a),{props:f,internalRef:h}=oR({...l,externalSlotProps:u}),d=Si(h,u==null?void 0:u.ref,(y=t.additionalProps)==null?void 0:y.ref);return iR(e,{...f,ref:d},a)}let Fb=0;function lR(t){const[e,r]=j.useState(t),a=t||e;return j.useEffect(()=>{e==null&&(Fb+=1,r(`mui-${Fb}`))},[e]),a}const cR={...cu},Wb=cR.useId;function Ku(t){if(Wb!==void 0){const e=Wb();return t??e}return lR(t)}class uR{constructor(e){Ct(this,"subscribe",e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}));Ct(this,"getSnapshot",()=>this.value);Ct(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 Zu=({params:t,store:e})=>{j.useEffect(()=>{e.update(a=>G({},a,{animation:G({},a.animation,{skip:t.skipAnimation})}))},[e,t.skipAnimation]);const r=j.useCallback(()=>{let a=!1;return e.update(o=>G({},o,{animation:G({},o.animation,{skipAnimationRequests:o.animation.skipAnimationRequests+1})})),()=>{a||(a=!0,e.update(o=>G({},o,{animation:G({},o.animation,{skipAnimationRequests:o.animation.skipAnimationRequests-1})})))}},[e]);return Te(()=>{if(typeof window>"u"||!(window!=null&&window.matchMedia))return;let o;const l=f=>{f.matches?o=r():o==null||o()},u=window.matchMedia("(prefers-reduced-motion)");return l(u),u.addEventListener("change",l),()=>{u.removeEventListener("change",l)}},[r,e]),{instance:{disableAnimation:r}}};Zu.params={skipAnimation:!0};Zu.getDefaultizedParams=({params:t})=>G({},t,{skipAnimation:t.skipAnimation??!1});Zu.getInitialState=({skipAnimation:t})=>({animation:{skip:t,skipAnimationRequests:0}});var du=Symbol("NOT_FOUND");function fR(t,e=`expected a function, instead received ${typeof t}`){if(typeof t!="function")throw new TypeError(e)}function dR(t,e=`expected an object, instead received ${typeof t}`){if(typeof t!="object")throw new TypeError(e)}function hR(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 Jb=t=>Array.isArray(t)?t:[t];function pR(t){const e=Array.isArray(t[0])?t[0]:t;return hR(e,"createSelector expects all input-selectors to be functions, but received the following types: "),e}function mR(t,e){const r=[],{length:a}=t;for(let o=0;o<a;o++)r.push(t[o].apply(null,e));return r}function gR(t){let e;return{get(r){return e&&t(e.key,r)?e.value:du},put(r,a){e={key:r,value:a}},getEntries(){return e?[e]:[]},clear(){e=void 0}}}function yR(t,e){let r=[];function a(f){const h=r.findIndex(d=>e(f,d.key));if(h>-1){const d=r[h];return h>0&&(r.splice(h,1),r.unshift(d)),d.value}return du}function o(f,h){a(f)===du&&(r.unshift({key:f,value:h}),r.length>t&&r.pop())}function l(){return r}function u(){r=[]}return{get:a,put:o,getEntries:l,clear:u}}var vR=(t,e)=>t===e;function bR(t){return function(r,a){if(r===null||a===null||r.length!==a.length)return!1;const{length:o}=r;for(let l=0;l<o;l++)if(!t(r[l],a[l]))return!1;return!0}}function xR(t,e){const r=typeof e=="object"?e:{equalityCheck:e},{equalityCheck:a=vR,maxSize:o=1,resultEqualityCheck:l}=r,u=bR(a);let f=0;const h=o<=1?gR(u):yR(o,u);function d(){let m=h.get(arguments);if(m===du){if(m=t.apply(null,arguments),f++,l){const v=h.getEntries().find(b=>l(b.value,m));v&&(m=v.value,f!==0&&f--)}h.put(arguments,m)}return m}return d.clearCache=()=>{h.clear(),d.resetResultsCount()},d.resultsCount=()=>f,d.resetResultsCount=()=>{f=0},d}var SR=class{constructor(t){this.value=t}deref(){return this.value}},TR=typeof WeakRef<"u"?WeakRef:SR,CR=0,t1=1;function Yc(){return{s:CR,v:void 0,o:null,p:null}}function kS(t,e={}){let r=Yc();const{resultEqualityCheck:a}=e;let o,l=0;function u(){var y;let f=r;const{length:h}=arguments;for(let v=0,b=h;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 w=S.get(x);w===void 0?(f=Yc(),S.set(x,f)):f=w}else{let S=f.p;S===null&&(f.p=S=new Map);const w=S.get(x);w===void 0?(f=Yc(),S.set(x,f)):f=w}}const d=f;let m;if(f.s===t1)m=f.v;else if(m=t.apply(null,arguments),l++,a){const v=((y=o==null?void 0:o.deref)==null?void 0:y.call(o))??o;v!=null&&a(v,m)&&(m=v,l!==0&&l--),o=typeof m=="object"&&m!==null||typeof m=="function"?new TR(m):m}return d.s=t1,d.v=m,m}return u.clearCache=()=>{r=Yc(),u.resetResultsCount()},u.resultsCount=()=>l,u.resetResultsCount=()=>{l=0},u}function RS(t,...e){const r=typeof t=="function"?{memoize:t,memoizeOptions:e}:t,a=(...o)=>{let l=0,u=0,f,h={},d=o.pop();typeof d=="object"&&(h=d,d=o.pop()),fR(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const m={...r,...h},{memoize:y,memoizeOptions:v=[],argsMemoize:b=kS,argsMemoizeOptions:x=[]}=m,S=Jb(v),w=Jb(x),E=pR(o),O=y(function(){return l++,d.apply(null,arguments)},...S),k=b(function(){u++;const A=mR(E,arguments);return f=O.apply(null,A),f},...w);return Object.assign(k,{resultFunc:d,memoizedResultFunc:O,dependencies:E,dependencyRecomputations:()=>u,resetDependencyRecomputations:()=>{u=0},lastResult:()=>f,recomputations:()=>l,resetRecomputations:()=>{l=0},memoize:y,argsMemoize:b})};return Object.assign(a,{withTypes:()=>a}),a}var wR=RS(kS),AR=Object.assign((t,e=wR)=>{dR(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((u,f,h)=>(u[r[h]]=f,u),{}))},{withTypes:()=>AR});const ER=RS({memoize:xR,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),e1=new WeakMap,pt=(...t)=>(r,...a)=>{const o=r.cacheKey;let l=e1.get(o);l||(l=new Map,e1.set(o,l));const u=l.get(t);if(u)return u(r,...a);const f=ER(...t);return l.set(t,f),f(r,...a)},MR=t=>t.animation,kR=pt([MR],t=>t.skip||t.skipAnimationRequests>0);function Tp(t){return t&&t.ownerDocument||document}function RR(t){return Tp(t).defaultView||window}var Yh={exports:{}},qh={},Vh={exports:{}},Xh={};/** 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 n1;function OR(){if(n1)return Xh;n1=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,o=t.useEffect,l=t.useLayoutEffect,u=t.useDebugValue;function f(y,v){var b=v(),x=a({inst:{value:b,getSnapshot:v}}),S=x[0].inst,w=x[1];return l(function(){S.value=b,S.getSnapshot=v,h(S)&&w({inst:S})},[y,b,v]),o(function(){return h(S)&&w({inst:S}),y(function(){h(S)&&w({inst:S})})},[y]),u(b),b}function h(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 Xh.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:m,Xh}var r1;function DR(){return r1||(r1=1,Vh.exports=OR()),Vh.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 i1;function _R(){if(i1)return qh;i1=1;var t=ol(),e=DR();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,o=e.useSyncExternalStore,l=t.useRef,u=t.useEffect,f=t.useMemo,h=t.useDebugValue;return qh.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 E(_){if(!O){if(O=!0,k=_,_=v(_),b!==void 0&&S.hasValue){var $=S.value;if(b($,_))return R=$}return R=_}if($=R,a(k,_))return $;var I=v(_);return b!==void 0&&b($,I)?(k=_,$):(k=_,R=I)}var O=!1,k,R,A=y===void 0?null:y;return[function(){return E(m())},A===null?void 0:function(){return E(A())}]},[m,y,v,b]);var w=o(d,x[0],x[1]);return u(function(){S.hasValue=!0,S.value=w},[w]),h(w),w},qh}var a1;function zR(){return a1||(a1=1,Yh.exports=_R()),Yh.exports}var $R=zR();const NR=Object.is,Et=(t,e,r=[],a=NR)=>{const o=l=>e(l,...r);return $R.useSyncExternalStoreWithSelector(t.subscribe,t.getSnapshot,t.getSnapshot,o,a)},bm="DEFAULT_X_AXIS_KEY",xm="DEFAULT_Y_AXIS_KEY",jR={top:20,bottom:20,left:20,right:20},LR=45,UR=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},BR=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)),IR=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)),HR=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)),PR=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)),GR=t=>t.dimensions,DS=t=>t.dimensions.width,_S=t=>t.dimensions.height,YR=t=>t.dimensions.margin.top,qR=t=>t.dimensions.margin.right,VR=t=>t.dimensions.margin.bottom,XR=t=>t.dimensions.margin.left,Ir=pt([DS,_S,YR,qR,VR,XR,HR,IR,PR,BR],(t,e,r,a,o,l,u,f,h,d)=>({width:t-l-a-d-f,left:l+d,right:a+f,height:e-r-o-u-h,top:r+u,bottom:o+h})),zS=pt([GR],t=>({width:t.propsWidth,height:t.propsHeight})),KR=pt([DS,_S],(t,e)=>({width:t,height:e}));function ZR(t,e){return typeof t=="number"?{top:t,bottom:t,left:t,right:t}:e?G({},e,t):t}const QR=10,Qu=({params:t,store:e,svgRef:r})=>{const a=t.width!==void 0&&t.height!==void 0,o=j.useRef({displayError:!1,initialCompute:!0,computeRun:0}),[l,u]=j.useState(0),[f,h]=j.useState(0),d=j.useCallback(()=>{const x=r==null?void 0:r.current;if(!x)return{};const w=RR(x).getComputedStyle(x),E=Math.floor(parseFloat(w.height))||0,O=Math.floor(parseFloat(w.width))||0;return e.update(k=>k.dimensions.width===O&&k.dimensions.height===E?k:G({},k,{dimensions:{margin:{top:t.margin.top,right:t.margin.right,bottom:t.margin.bottom,left:t.margin.left},width:t.width??O,height:t.height??E,propsWidth:t.width,propsHeight:t.height}})),{height:E,width:O}},[e,r,t.height,t.width,t.margin.left,t.margin.right,t.margin.top,t.margin.bottom]);j.useEffect(()=>{e.update(x=>{const S=t.width??x.dimensions.width,w=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:w,propsHeight:t.height,propsWidth:t.width}})})},[e,t.height,t.width,t.margin.left,t.margin.right,t.margin.top,t.margin.bottom]),j.useEffect(()=>{o.current.displayError=!0},[]),Te(()=>{if(a||!o.current.initialCompute||o.current.computeRun>QR)return;const x=d();x.width!==l||x.height!==f?(o.current.computeRun+=1,x.width!==void 0&&u(x.width),x.height!==void 0&&h(x.height)):o.current.initialCompute&&(o.current.initialCompute=!1)},[f,l,d,a]),Te(()=>{if(a)return()=>{};d();const x=r.current;if(typeof ResizeObserver>"u")return()=>{};let S;const w=new ResizeObserver(()=>{S=requestAnimationFrame(()=>{d()})});return x&&w.observe(x),()=>{S&&cancelAnimationFrame(S),x&&w.unobserve(x)}},[d,a,r]);const m=Et(e,Ir),y=j.useCallback(x=>x>=m.left-1&&x<=m.left+m.width,[m.left,m.width]),v=j.useCallback(x=>x>=m.top-1&&x<=m.top+m.height,[m.height,m.top]);return{instance:{isPointInside:j.useCallback((x,S,w)=>w&&"closest"in w&&w.closest("[data-drawing-container]")?!0:y(x)&&v(S),[y,v]),isXInside:y,isYInside:v}}};Qu.params={width:!0,height:!0,margin:!0};Qu.getDefaultizedParams=({params:t})=>G({},t,{margin:ZR(t.margin,jR)});Qu.getInitialState=({width:t,height:e,margin:r})=>({dimensions:{margin:r,width:t??0,height:e??0,propsWidth:t,propsHeight:e}});const Sm=({params:t,store:e})=>(Te(()=>{e.update(r=>G({},r,{experimentalFeatures:t.experimentalFeatures}))},[e,t.experimentalFeatures]),{});Sm.params={experimentalFeatures:!0};Sm.getInitialState=({experimentalFeatures:t})=>({experimentalFeatures:t});const FR=t=>t.experimentalFeatures,$S=pt([FR],t=>!!(t!=null&&t.preferStrictDomainInLineCharts));let o1=0;const WR=()=>(o1+=1,`mui-chart-${o1}`),Tm=({params:t,store:e})=>(j.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??WR()})}))},[e,t.id]),{});Tm.params={id:!0};Tm.getInitialState=({id:t})=>({id:{chartId:t,providedChartId:t}});const JR=t=>t.id,tO=pt([JR],t=>t.chartId),eO=["#4254FB","#FFB422","#FA4F58","#0DBEFF","#22BF75","#FA83B4","#FF7511"],nO=["#495AFB","#FFC758","#F35865","#30C8FF","#44CE8D","#F286B3","#FF8C39"],NS=t=>t==="dark"?nO:eO,jS=({series:t,colors:e,seriesConfig:r,dataset:a})=>{const o={};t.forEach((u,f)=>{var m;const h=r[u.type].getSeriesWithDefaultValues(u,f,e),d=h.id;if(o[u.type]===void 0&&(o[u.type]={series:{},seriesOrder:[]}),((m=o[u.type])==null?void 0:m.series[d])!==void 0)throw new Error(`MUI X Charts: series' id "${d}" is not unique.`);o[u.type].series[d]=h,o[u.type].seriesOrder.push(d)});const l={};return Object.keys(r).forEach(u=>{var h,d;const f=o[u];f!==void 0&&(l[u]=((d=(h=r[u])==null?void 0:h.seriesProcessor)==null?void 0:d.call(h,f,a))??o[u])}),l},Fu=({params:t,store:e,seriesConfig:r})=>{const{series:a,dataset:o,theme:l,colors:u}=t,f=j.useRef(!0);return j.useEffect(()=>{if(f.current){f.current=!1;return}e.update(h=>G({},h,{series:G({},h.series,{processedSeries:jS({series:a,colors:typeof u=="function"?u(l):u,seriesConfig:r,dataset:o})})}))},[u,o,a,l,r,e]),{}};Fu.params={dataset:!0,series:!0,colors:!0,theme:!0};const rO=[];Fu.getDefaultizedParams=({params:t})=>{var e;return G({},t,{series:(e=t.series)!=null&&e.length?t.series:rO,colors:t.colors??NS,theme:t.theme??"light"})};Fu.getInitialState=({series:t=[],colors:e,theme:r,dataset:a},o,l)=>({series:{seriesConfig:l,processedSeries:jS({series:t,colors:typeof e=="function"?e(r):e,seriesConfig:l,dataset:a})}});const LS=t=>t.series,Zn=pt([LS],t=>t.processedSeries),Hr=pt([LS],t=>t.seriesConfig),iO={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 US{constructor(e){Ct(this,"customData",{});if(!e||!e.name)throw new Error("Gesture must be initialized with a valid name.");if(e.name in iO)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,o){this.element=e,this.pointerManager=r,this.gesturesRegistry=a,this.keyboardManager=o;const l=`${this.name}ChangeOptions`;this.element.addEventListener(l,this.handleOptionsChange.bind(this));const u=`${this.name}ChangeState`;this.element.addEventListener(u,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 aO{constructor(){Ct(this,"activeGestures",new Map)}registerActiveGesture(e,r){this.activeGestures.has(e)||this.activeGestures.set(e,new Set);const a=this.activeGestures.get(e),o={gesture:r,element:e};a.add(o)}unregisterActiveGesture(e,r){const a=this.activeGestures.get(e);a&&(a.forEach(o=>{o.gesture===r&&a.delete(o)}),a.size===0&&this.activeGestures.delete(e))}getActiveGestures(e){const r=this.activeGestures.get(e);return r?Array.from(r).reduce((a,o)=>(a[o.gesture.name]=!0,a),{}):{}}isGestureActive(e,r){const a=this.activeGestures.get(e);return a?Array.from(a).some(o=>o.gesture===r):!1}destroy(){this.activeGestures.clear()}unregisterElement(e){this.activeGestures.delete(e)}}class oO{constructor(){Ct(this,"pressedKeys",new Set);Ct(this,"handleKeyDown",e=>{this.pressedKeys.add(e.key)});Ct(this,"handleKeyUp",e=>{this.pressedKeys.delete(e.key)});Ct(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 sO{constructor(e){Ct(this,"preventEventInterruption",!0);Ct(this,"pointers",new Map);Ct(this,"gestureHandlers",new Set);Ct(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[o,l]of this.pointers.entries()){const u=G({},l,{type:"forceCancel"});this.pointers.set(o,u)}}this.notifyHandlers(r),this.pointers.clear()});Ct(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 lO{constructor(e){Ct(this,"gestureTemplates",new Map);Ct(this,"elementGestureMap",new Map);Ct(this,"activeGesturesRegistry",new aO);Ct(this,"keyboardManager",new oO);this.pointerManager=new sO({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 o=this.elementGestureMap.get(r);if(!o||!o.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 o=this.elementGestureMap.get(r);if(!o||!o.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(o=>{const l=a==null?void 0:a[o];this.registerSingleGesture(o,r,l)}),r}registerSingleGesture(e,r,a){const o=this.gestureTemplates.get(e);if(!o)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 u=o.clone(a);return u.init(r,this.pointerManager,this.activeGesturesRegistry,this.keyboardManager),l.set(e,u),!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 US{constructor(r){super(r);Ct(this,"unregisterHandler",null);Ct(this,"originalTarget",null);this.minPointers=r.minPointers??1,this.maxPointers=r.maxPointers??1/0}init(r,a,o,l){super.init(r,a,o,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(o=>this.isPointerTypeAllowed(o.pointerType)&&(a===o.target||o.target===this.originalTarget||a===this.originalTarget||"contains"in a&&a.contains(o.target))||"getRootNode"in a&&a.getRootNode()instanceof ShadowRoot&&o.srcEvent.composedPath().includes(a))}destroy(){this.unregisterHandler&&(this.unregisterHandler(),this.unregisterHandler=null),super.destroy()}}function cO(t,e){const r=e.x-t.x,a=e.y-t.y;return Math.sqrt(r*r+a*a)}function Kh(t){if(t.length<2)return 0;let e=0,r=0;for(let a=0;a<t.length;a+=1)for(let o=a+1;o<t.length;o+=1)e+=cO({x:t[a].clientX,y:t[a].clientY},{x:t[o].clientX,y:t[o].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 ko(t,e){return`${t}${e==="ongoing"?"":e.charAt(0).toUpperCase()+e.slice(1)}`}const qc=1e-5,gi=1e-5,s1=.15;function uO(t,e){const r=e.x-t.x,a=e.y-t.y,o={vertical:null,horizontal:null,mainAxis:null},l=fO(e,t),u=Math.abs(r)>Math.abs(a)?"horizontal":"vertical",f=l||u==="horizontal"?qc:s1,h=l?qc:u==="horizontal"?s1:qc;return Math.abs(r)>f&&(o.horizontal=r>0?"right":"left"),Math.abs(a)>h&&(o.vertical=a>0?"down":"up"),o.mainAxis=l?"diagonal":u,o}function fO(t,e){const r=e.x-t.x,a=e.y-t.y,o=Math.atan2(a,r)*180/Math.PI;return o>=-45+gi&&o<=-22.5+gi||o>=22.5+gi&&o<=45+gi||o>=135+gi&&o<=157.5+gi||o>=-157.5+gi&&o<=-135+gi}function dO(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 hO=0,pO=t=>t>hO?1:t<-0?-1:0;class Cm extends ml{constructor(r){super(r);Ct(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 Cm(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,o,l){super.init(r,a,o,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,o=Array.from(a.values());if(o.length>=this.minPointers&&o.length<=this.maxPointers){this.isActive=!0;const l={x:r.clientX,y:r.clientY};this.state.lastPosition=l,this.emitMoveEvent(this.element,"start",o,r),this.emitMoveEvent(this.element,"ongoing",o,r)}}handleElementLeave(r){if(r.pointerType!=="mouse"&&r.pointerType!=="pen"||!this.isActive)return;const a=this.pointerManager.getPointers()||new Map,o=Array.from(a.values());this.emitMoveEvent(this.element,"end",o,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 o=Array.from(r.values()),l=this.getTargetElement(a);if(!l||o.length<this.minPointers||o.length>this.maxPointers)return;if(this.shouldPreventGesture(l)){if(!this.isActive)return;this.resetState(),this.emitMoveEvent(l,"end",o,a);return}const u={x:a.clientX,y:a.clientY};this.state.lastPosition=u,this.isActive||(this.isActive=!0,this.emitMoveEvent(l,"start",o,a)),this.emitMoveEvent(l,"ongoing",o,a)}emitMoveEvent(r,a,o,l){const u=this.state.lastPosition||Nr(o),f=this.gesturesRegistry.getActiveGestures(r),h={gestureName:this.name,centroid:u,target:l.target,srcEvent:l,phase:a,pointers:o,timeStamp:l.timeStamp,activeGestures:f,customData:this.customData},d=ko(this.name,a),m=new CustomEvent(d,{bubbles:!0,cancelable:!0,composed:!0,detail:h});r.dispatchEvent(m)}}class wm extends ml{constructor(r){super(r);Ct(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 wm(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 o=Array.from(r.values());if(a.type==="forceCancel"){this.cancel(a.target,o,a);return}const l=this.getTargetElement(a);if(!l)return;if(this.shouldPreventGesture(l)){this.cancel(l,o,a);return}const u=this.getRelevantPointers(o,l);if(u.length<this.minPointers||u.length>this.maxPointers){this.cancel(l,u,a);return}switch(a.type){case"pointerdown":!this.isActive&&!this.state.startCentroid&&(u.forEach(f=>{this.state.startPointers.set(f.pointerId,f)}),this.originalTarget=l,this.state.startCentroid=Nr(u),this.state.lastCentroid=G({},this.state.startCentroid));break;case"pointermove":if(this.state.startCentroid&&u.length>=this.minPointers){const f=Nr(u),h=f.x-this.state.startCentroid.x,d=f.y-this.state.startCentroid.y,m=Math.sqrt(h*h+d*d),y=uO(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&&dO(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",u,a,f),this.emitPanEvent(l,"ongoing",u,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",u,a,f)),this.state.lastCentroid=f,this.state.lastDirection=y}break;case"pointerup":case"pointercancel":case"forceCancel":if(this.isActive&&this.state.movementThresholdReached){if(u.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",u,a,f),this.emitPanEvent(l,"end",u,a,f),this.resetState()}}else this.resetState();break}}emitPanEvent(r,a,o,l,u){var O,k;if(!this.state.startCentroid)return;const f=((O=this.state.lastDeltas)==null?void 0:O.x)??0,h=((k=this.state.lastDeltas)==null?void 0:k.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?h/m:0,b=Math.sqrt(y*y+v*v),x=this.gesturesRegistry.getActiveGestures(r),S={gestureName:this.name,initialCentroid:this.state.startCentroid,centroid:u,target:l.target,srcEvent:l,phase:a,pointers:o,timeStamp:l.timeStamp,deltaX:f,deltaY:h,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},w=ko(this.name,a),E=new CustomEvent(w,{bubbles:!0,cancelable:!0,composed:!0,detail:S});r.dispatchEvent(E),this.preventDefault&&l.preventDefault(),this.stopPropagation&&l.stopPropagation()}cancel(r,a,o){if(this.isActive){const l=r??this.element;this.emitPanEvent(l,"cancel",a,o,this.state.lastCentroid),this.emitPanEvent(l,"end",a,o,this.state.lastCentroid)}this.resetState()}}class Am extends ml{constructor(r){super(G({},r,{minPointers:r.minPointers??2}));Ct(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 o=Array.from(r.values()),l=this.getTargetElement(a);if(!l)return;if(this.shouldPreventGesture(l)){this.isActive&&(this.emitPinchEvent(l,"cancel",o,a),this.resetState());return}const u=this.getRelevantPointers(o,l);switch(a.type){case"pointerdown":if(u.length>=2&&!this.isActive){const f=Kh(u);this.state.startDistance=f,this.state.lastDistance=f,this.state.lastTime=a.timeStamp,this.originalTarget=l}break;case"pointermove":if(this.state.startDistance&&u.length>=this.minPointers){const f=Kh(u),h=Math.abs(f-this.state.lastDistance);if(h!==0&&h>=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",u,a):(this.isActive=!0,this.emitPinchEvent(l,"start",u,a),this.emitPinchEvent(l,"ongoing",u,a))}}break;case"pointerup":case"pointercancel":case"forceCancel":if(this.isActive){const f=u.filter(h=>h.type!=="pointerup"&&h.type!=="pointercancel");if(f.length<this.minPointers)a.type==="pointercancel"&&this.emitPinchEvent(l,"cancel",u,a),this.emitPinchEvent(l,"end",u,a),this.resetState();else if(f.length>=2){const h=Kh(f);this.state.startDistance=h/this.state.lastScale}}break}}emitPinchEvent(r,a,o,l){const u=Nr(o),f=this.state.lastDistance,h=this.state.lastScale,d=this.gesturesRegistry.getActiveGestures(r),m={gestureName:this.name,centroid:u,target:l.target,srcEvent:l,phase:a,pointers:o,timeStamp:l.timeStamp,scale:h,deltaScale:this.state.deltaScale,totalScale:this.state.totalScale,distance:f,velocity:this.state.velocity,activeGestures:d,direction:pO(this.state.velocity),customData:this.customData};this.preventDefault&&l.preventDefault(),this.stopPropagation&&l.stopPropagation();const y=ko(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);Ct(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 o=Array.from(r.values());if(a.type==="forceCancel"){this.cancelPress(a.target,o,a);return}const l=this.getTargetElement(a);if(!l)return;if(this.shouldPreventGesture(l)){this.isActive&&this.cancelPress(l,o,a);return}const u=this.getRelevantPointers(o,l);if(u.length<this.minPointers||u.length>this.maxPointers){this.isActive&&this.cancelPress(l,u,a);return}switch(a.type){case"pointerdown":!this.isActive&&!this.state.startCentroid&&(this.state.startCentroid=Nr(u),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",u,a,f),this.emitPressEvent(l,"ongoing",u,a,f)}},this.duration));break;case"pointermove":if(this.isActive&&this.state.startCentroid){const f=Nr(u);this.state.lastPosition=f;const h=f.x-this.state.startCentroid.x,d=f.y-this.state.startCentroid.y;Math.sqrt(h*h+d*d)>this.maxDistance&&this.cancelPress(l,u,a)}break;case"pointerup":if(this.isActive){if(this.state.pressThresholdReached){const f=this.state.lastPosition||this.state.startCentroid;this.emitPressEvent(l,"end",u,a,f)}this.resetState()}break;case"pointercancel":case"forceCancel":this.cancelPress(l,u,a);break}}emitPressEvent(r,a,o,l,u){const f=this.gesturesRegistry.getActiveGestures(r),h=l.timeStamp-this.state.startTime,d={gestureName:this.name,centroid:u,target:l.target,srcEvent:l,phase:a,pointers:o,timeStamp:l.timeStamp,x:u.x,y:u.y,duration:h,activeGestures:f,customData:this.customData},m=ko(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,o){if(this.isActive&&this.state.pressThresholdReached){const l=this.state.lastPosition||this.state.startCentroid;this.emitPressEvent(r??this.element,"cancel",a,o,l),this.emitPressEvent(r??this.element,"end",a,o,l)}this.resetState()}}class Mm extends ml{constructor(r){super(r);Ct(this,"state",{startCentroid:null,currentTapCount:0,lastTapTime:0,lastPosition:null});this.maxDistance=r.maxDistance??10,this.taps=r.taps??1}clone(r){return new Mm(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 o=Array.from(r.values()),l=this.getTargetElement(a);if(!l)return;const u=this.getRelevantPointers(o,l);if(this.shouldPreventGesture(l)||u.length<this.minPointers||u.length>this.maxPointers){this.isActive&&this.cancelTap(l,u,a);return}switch(a.type){case"pointerdown":this.isActive||(this.state.startCentroid=Nr(u),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(u);this.state.lastPosition=f;const h=f.x-this.state.startCentroid.x,d=f.y-this.state.startCentroid.y;Math.sqrt(h*h+d*d)>this.maxDistance&&this.cancelTap(l,u,a)}break;case"pointerup":if(this.isActive){this.state.currentTapCount+=1;const f=this.state.lastPosition||this.state.startCentroid;if(!f){this.cancelTap(l,u,a);return}this.state.currentTapCount>=this.taps?(this.fireTapEvent(l,u,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,u,a);break}}fireTapEvent(r,a,o,l){const u=this.gesturesRegistry.getActiveGestures(r),f={gestureName:this.name,centroid:l,target:o.target,srcEvent:o,phase:"end",pointers:a,timeStamp:o.timeStamp,x:l.x,y:l.y,tapCount:this.state.currentTapCount,activeGestures:u,customData:this.customData},h=new CustomEvent(this.name,{bubbles:!0,cancelable:!0,composed:!0,detail:f});r.dispatchEvent(h),this.preventDefault&&o.preventDefault(),this.stopPropagation&&o.stopPropagation()}cancelTap(r,a,o){if(this.state.startCentroid||this.state.lastPosition){const l=this.state.lastPosition||this.state.startCentroid,u=this.gesturesRegistry.getActiveGestures(r),f={gestureName:this.name,centroid:l,target:o.target,srcEvent:o,phase:"cancel",pointers:a,timeStamp:o.timeStamp,x:l.x,y:l.y,tapCount:this.state.currentTapCount,activeGestures:u,customData:this.customData},h=ko(this.name,"cancel"),d=new CustomEvent(h,{bubbles:!0,cancelable:!0,composed:!0,detail:f});r.dispatchEvent(d)}this.resetState()}}class km extends US{constructor(r){super(r);Ct(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 km(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,o,l){super.init(r,a,o,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,o=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(o,r)}emitWheelEvent(r,a){const o=r.length>0?Nr(r):{x:a.clientX,y:a.clientY},l=this.gesturesRegistry.getActiveGestures(this.element),u={gestureName:this.name,centroid:o,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=ko(this.name,"ongoing"),h=new CustomEvent(f,{bubbles:!0,cancelable:!0,composed:!0,detail:u});this.element.dispatchEvent(h)}}const Fa=t=>t.preventDefault(),Rm=({svgRef:t})=>{j.useEffect(()=>{const r=t.current;if(!r)return;const a=new lO({gestures:[new wm({name:"pan",threshold:0,maxPointers:1}),new Cm({name:"move",preventIf:["pan","pinch"]}),new Am({name:"pinch",threshold:5,preventIf:["pan"]}),new km({name:"turnWheel",sensitivity:.01,initialDelta:1}),new Mm({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=j.useCallback((r,a,o)=>{const l=t.current;return l==null||l.addEventListener(r,a,o),{cleanup:()=>l==null?void 0:l.removeEventListener(r,a)}},[t]);return j.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}}};Rm.params={};Rm.getInitialState=()=>({});const mO=[Tm,Sm,Qu,Fu,Rm,Zu],gO=["apiRef"],yO=t=>{let{plugins:e}=t,r=te(t.props,gO);const a={};e.forEach(u=>{Object.assign(a,u.params)});const o={};return Object.keys(r).forEach(u=>{const f=r[u];a[u]&&(o[u]=f)}),e.reduce((u,f)=>f.getDefaultizedParams?f.getDefaultizedParams({params:u}):u,o)};let l1=0;function vO(t,e,r){const a=Ku(),o=j.useMemo(()=>[...mO,...t],[t]),l=yO({plugins:o,props:e});l.id=l.id??a;const f=j.useRef({}).current,h=xO(e.apiRef),d=j.useRef(null),m=j.useRef(null),y=j.useRef(null);if(y.current==null){l1+=1;const x={cacheKey:{id:l1}};o.forEach(S=>{S.getInitialState&&Object.assign(x,S.getInitialState(l,x,r))}),y.current=new uR(x)}const v=x=>{const S=x({instance:f,params:l,plugins:o,store:y.current,svgRef:m,chartRootRef:d,seriesConfig:r});S.publicAPI&&Object.assign(h.current,S.publicAPI),S.instance&&Object.assign(f,S.instance)};return o.forEach(v),{contextValue:j.useMemo(()=>({store:y.current,publicAPI:h.current,instance:f,svgRef:m,chartRootRef:d}),[f,h])}}function bO(t){return t.current==null&&(t.current={}),t}function xO(t){const e=j.useRef({});return t?bO(t):e}const BS=j.createContext(null),IS=()=>{},HS=4,PS=20+2*HS,SO=40+2*HS,TO="hover",Vc={minStart:0,maxEnd:100,step:5,minSpan:10,maxSpan:100,panning:!0,filterMode:"keep",slider:{enabled:!1,preview:!1,size:PS,showTooltip:TO}},Om=(t,e,r)=>{var a;if(t)return t===!0?G({axisId:e,axisDirection:r},Vc):G({axisId:e,axisDirection:r},Vc,t,{slider:G({},Vc.slider,{size:((a=t.slider)==null?void 0:a.preview)??Vc.slider.preview?SO:PS},t.slider)})};function GS(t,e){const r={top:0,bottom:0,none:0};return(t&&t.length>0?t:[{id:bm,scaleType:"linear"}]).map((l,u)=>{var b;const f=l.dataKey,h=u===0?"bottom":"none",d=l.position??h,m=UR+(l.label?OS:0),y=l.id??`defaultized-x-axis-${u}`,v=G({offset:r[d]},l,{id:y,position:d,height:l.height??m,zoom:Om(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 YS(t,e){const r={right:0,left:0,none:0};return(t&&t.length>0?t:[{id:xm,scaleType:"linear"}]).map((l,u)=>{var b;const f=l.dataKey,h=u===0?"left":"none",d=l.position??h,m=LR+(l.label?OS:0),y=l.id??`defaultized-y-axis-${u}`,v=G({offset:r[d]},l,{id:y,position:d,width:l.width??m,zoom:Om(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 su(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function CO(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Dm(t){let e,r,a;t.length!==2?(e=su,r=(f,h)=>su(t(f),h),a=(f,h)=>t(f)-h):(e=t===su||t===CO?t:wO,r=t,a=t);function o(f,h,d=0,m=f.length){if(d<m){if(e(h,h)!==0)return m;do{const y=d+m>>>1;r(f[y],h)<0?d=y+1:m=y}while(d<m)}return d}function l(f,h,d=0,m=f.length){if(d<m){if(e(h,h)!==0)return m;do{const y=d+m>>>1;r(f[y],h)<=0?d=y+1:m=y}while(d<m)}return d}function u(f,h,d=0,m=f.length){const y=o(f,h,d,m-1);return y>d&&a(f[y-1],h)>-a(f[y],h)?y-1:y}return{left:o,center:u,right:l}}function wO(){return 0}function AO(t){return t===null?NaN:+t}const EO=Dm(su),qS=EO.right;Dm(AO).center;class c1 extends Map{constructor(e,r=RO){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[a,o]of e)this.set(a,o)}get(e){return super.get(u1(this,e))}has(e){return super.has(u1(this,e))}set(e,r){return super.set(MO(this,e),r)}delete(e){return super.delete(kO(this,e))}}function u1({_intern:t,_key:e},r){const a=e(r);return t.has(a)?t.get(a):r}function MO({_intern:t,_key:e},r){const a=e(r);return t.has(a)?t.get(a):(t.set(a,r),r)}function kO({_intern:t,_key:e},r){const a=e(r);return t.has(a)&&(r=t.get(a),t.delete(a)),r}function RO(t){return t!==null&&typeof t=="object"?t.valueOf():t}const OO=Math.sqrt(50),DO=Math.sqrt(10),_O=Math.sqrt(2);function hu(t,e,r){const a=(e-t)/Math.max(0,r),o=Math.floor(Math.log10(a)),l=a/Math.pow(10,o),u=l>=OO?10:l>=DO?5:l>=_O?2:1;let f,h,d;return o<0?(d=Math.pow(10,-o)/u,f=Math.round(t*d),h=Math.round(e*d),f/d<t&&++f,h/d>e&&--h,d=-d):(d=Math.pow(10,o)*u,f=Math.round(t/d),h=Math.round(e/d),f*d<t&&++f,h*d>e&&--h),h<f&&.5<=r&&r<2?hu(t,e,r*2):[f,h,d]}function Cp(t,e,r){if(e=+e,t=+t,r=+r,!(r>0))return[];if(t===e)return[t];const a=e<t,[o,l,u]=a?hu(e,t,r):hu(t,e,r);if(!(l>=o))return[];const f=l-o+1,h=new Array(f);if(a)if(u<0)for(let d=0;d<f;++d)h[d]=(l-d)/-u;else for(let d=0;d<f;++d)h[d]=(l-d)*u;else if(u<0)for(let d=0;d<f;++d)h[d]=(o+d)/-u;else for(let d=0;d<f;++d)h[d]=(o+d)*u;return h}function wp(t,e,r){return e=+e,t=+t,r=+r,hu(t,e,r)[2]}function Ap(t,e,r){e=+e,t=+t,r=+r;const a=e<t,o=a?wp(e,t,r):wp(t,e,r);return(a?-1:1)*(o<0?1/-o:o)}function zO(t,e,r){t=+t,e=+e,r=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+r;for(var a=-1,o=Math.max(0,Math.ceil((e-t)/r))|0,l=new Array(o);++a<o;)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 $O(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 f1=Symbol("implicit");function pu(){var t=new c1,e=[],r=[],a=f1;function o(l){let u=t.get(l);if(u===void 0){if(a!==f1)return a;t.set(l,u=e.push(l)-1)}return r[u%r.length]}return o.domain=function(l){if(!arguments.length)return e.slice();e=[],t=new c1;for(const u of l)t.has(u)||t.set(u,e.push(u)-1);return o},o.range=function(l){return arguments.length?(r=Array.from(l),o):r.slice()},o.unknown=function(l){return arguments.length?(a=l,o):a},o.copy=function(){return pu(e,r).unknown(a)},Pr.apply(o,arguments),o}function Wu(){var t=pu().unknown(void 0),e=t.domain,r=t.range,a=0,o=1,l,u,f=!1,h=0,d=0,m=.5;delete t.unknown;function y(){var v=e().length,b=o<a,x=b?o:a,S=b?a:o;l=(S-x)/Math.max(1,v-h+d*2),f&&(l=Math.floor(l)),x+=(S-x-l*(v-h))*m,u=l*(1-h),f&&(x=Math.round(x),u=Math.round(u));var w=zO(v).map(function(E){return x+l*E});return r(b?w.reverse():w)}return t.domain=function(v){return arguments.length?(e(v),y()):e()},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 u},t.step=function(){return l},t.round=function(v){return arguments.length?(f=!!v,y()):f},t.padding=function(v){return arguments.length?(h=Math.min(1,d=+v),y()):h},t.paddingInner=function(v){return arguments.length?(h=Math.min(1,v),y()):h},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 Wu(e(),[a,o]).round(f).paddingInner(h).paddingOuter(d).align(m)},Pr.apply(y(),arguments)}function VS(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return VS(e())},t}function XS(){return VS(Wu.apply(null,arguments).paddingInner(1))}function _m(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function KS(t,e){var r=Object.create(t.prototype);for(var a in e)r[a]=e[a];return r}function gl(){}var Ws=.7,mu=1/Ws,co="\\s*([+-]?\\d+)\\s*",Js="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",sr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",NO=/^#([0-9a-f]{3,8})$/,jO=new RegExp(`^rgb\\(${co},${co},${co}\\)$`),LO=new RegExp(`^rgb\\(${sr},${sr},${sr}\\)$`),UO=new RegExp(`^rgba\\(${co},${co},${co},${Js}\\)$`),BO=new RegExp(`^rgba\\(${sr},${sr},${sr},${Js}\\)$`),IO=new RegExp(`^hsl\\(${Js},${sr},${sr}\\)$`),HO=new RegExp(`^hsla\\(${Js},${sr},${sr},${Js}\\)$`),d1={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(gl,tl,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:h1,formatHex:h1,formatHex8:PO,formatHsl:GO,formatRgb:p1,toString:p1});function h1(){return this.rgb().formatHex()}function PO(){return this.rgb().formatHex8()}function GO(){return ZS(this).formatHsl()}function p1(){return this.rgb().formatRgb()}function tl(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=NO.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?m1(e):r===3?new rn(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?Xc(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?Xc(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=jO.exec(t))?new rn(e[1],e[2],e[3],1):(e=LO.exec(t))?new rn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=UO.exec(t))?Xc(e[1],e[2],e[3],e[4]):(e=BO.exec(t))?Xc(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=IO.exec(t))?v1(e[1],e[2]/100,e[3]/100,1):(e=HO.exec(t))?v1(e[1],e[2]/100,e[3]/100,e[4]):d1.hasOwnProperty(t)?m1(d1[t]):t==="transparent"?new rn(NaN,NaN,NaN,0):null}function m1(t){return new rn(t>>16&255,t>>8&255,t&255,1)}function Xc(t,e,r,a){return a<=0&&(t=e=r=NaN),new rn(t,e,r,a)}function YO(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?YO(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}_m(rn,Ep,KS(gl,{brighter(t){return t=t==null?mu:Math.pow(mu,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),gu(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:g1,formatHex:g1,formatHex8:qO,formatRgb:y1,toString:y1}));function g1(){return`#${Yi(this.r)}${Yi(this.g)}${Yi(this.b)}`}function qO(){return`#${Yi(this.r)}${Yi(this.g)}${Yi(this.b)}${Yi((isNaN(this.opacity)?1:this.opacity)*255)}`}function y1(){const t=gu(this.opacity);return`${t===1?"rgb(":"rgba("}${Ki(this.r)}, ${Ki(this.g)}, ${Ki(this.b)}${t===1?")":`, ${t})`}`}function gu(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 v1(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 ZS(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,o=Math.min(e,r,a),l=Math.max(e,r,a),u=NaN,f=l-o,h=(l+o)/2;return f?(e===l?u=(r-a)/f+(r<a)*6:r===l?u=(a-e)/f+2:u=(e-r)/f+4,f/=h<.5?l+o:2-l-o,u*=60):f=h>0&&h<1?0:u,new Vn(u,f,h,t.opacity)}function VO(t,e,r,a){return arguments.length===1?ZS(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}_m(Vn,VO,KS(gl,{brighter(t){return t=t==null?mu:Math.pow(mu,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,o=2*r-a;return new rn(Zh(t>=240?t-240:t+120,o,a),Zh(t,o,a),Zh(t<120?t+240:t-120,o,a),this.opacity)},clamp(){return new Vn(b1(this.h),Kc(this.s),Kc(this.l),gu(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=gu(this.opacity);return`${t===1?"hsl(":"hsla("}${b1(this.h)}, ${Kc(this.s)*100}%, ${Kc(this.l)*100}%${t===1?")":`, ${t})`}`}}));function b1(t){return t=(t||0)%360,t<0?t+360:t}function Kc(t){return Math.max(0,Math.min(1,t||0))}function Zh(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 zm=t=>()=>t;function XO(t,e){return function(r){return t+r*e}}function KO(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 ZO(t){return(t=+t)==1?QS:function(e,r){return r-e?KO(e,r,t):zm(isNaN(e)?r:e)}}function QS(t,e){var r=e-t;return r?XO(t,r):zm(isNaN(t)?e:t)}const x1=function t(e){var r=ZO(e);function a(o,l){var u=r((o=Ep(o)).r,(l=Ep(l)).r),f=r(o.g,l.g),h=r(o.b,l.b),d=QS(o.opacity,l.opacity);return function(m){return o.r=u(m),o.g=f(m),o.b=h(m),o.opacity=d(m),o+""}}return a.gamma=t,a}(1);function QO(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,a=e.slice(),o;return function(l){for(o=0;o<r;++o)a[o]=t[o]*(1-l)+e[o]*l;return a}}function FO(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function WO(t,e){var r=e?e.length:0,a=t?Math.min(r,t.length):0,o=new Array(a),l=new Array(r),u;for(u=0;u<a;++u)o[u]=Ju(t[u],e[u]);for(;u<r;++u)l[u]=e[u];return function(f){for(u=0;u<a;++u)l[u]=o[u](f);return l}}function $m(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 JO(t,e){var r={},a={},o;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(o in e)o in t?r[o]=Ju(t[o],e[o]):a[o]=e[o];return function(l){for(o in r)a[o]=r[o](l);return a}}var Mp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qh=new RegExp(Mp.source,"g");function t3(t){return function(){return t}}function e3(t){return function(e){return t(e)+""}}function n3(t,e){var r=Mp.lastIndex=Qh.lastIndex=0,a,o,l,u=-1,f=[],h=[];for(t=t+"",e=e+"";(a=Mp.exec(t))&&(o=Qh.exec(e));)(l=o.index)>r&&(l=e.slice(r,l),f[u]?f[u]+=l:f[++u]=l),(a=a[0])===(o=o[0])?f[u]?f[u]+=o:f[++u]=o:(f[++u]=null,h.push({i:u,x:Se(a,o)})),r=Qh.lastIndex;return r<e.length&&(l=e.slice(r),f[u]?f[u]+=l:f[++u]=l),f.length<2?h[0]?e3(h[0].x):t3(e):(e=h.length,function(d){for(var m=0,y;m<e;++m)f[(y=h[m]).i]=y.x(d);return f.join("")})}function Ju(t,e){var r=typeof e,a;return e==null||r==="boolean"?zm(e):(r==="number"?Se:r==="string"?(a=tl(e))?(e=a,x1):n3:e instanceof tl?x1:e instanceof Date?$m:FO(e)?QO:Array.isArray(e)?WO:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?JO:Se)(t,e)}function FS(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function r3(t){return function(){return t}}function i3(t){return+t}var S1=[0,1];function _n(t){return t}function kp(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:r3(isNaN(e)?NaN:.5)}function a3(t,e){var r;return t>e&&(r=t,t=e,e=r),function(a){return Math.max(t,Math.min(e,a))}}function o3(t,e,r){var a=t[0],o=t[1],l=e[0],u=e[1];return o<a?(a=kp(o,a),l=r(u,l)):(a=kp(a,o),l=r(l,u)),function(f){return l(a(f))}}function s3(t,e,r){var a=Math.min(t.length,e.length)-1,o=new Array(a),l=new Array(a),u=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++u<a;)o[u]=kp(t[u],t[u+1]),l[u]=r(e[u],e[u+1]);return function(f){var h=qS(t,f,1,a)-1;return l[h](o[h](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=S1,e=S1,r=Ju,a,o,l,u=_n,f,h,d;function m(){var v=Math.min(t.length,e.length);return u!==_n&&(u=a3(t[0],t[v-1])),f=v>2?s3:o3,h=d=null,y}function y(v){return v==null||isNaN(v=+v)?l:(h||(h=f(t.map(a),e,r)))(a(u(v)))}return y.invert=function(v){return u(o((d||(d=f(e,t.map(a),Se)))(v)))},y.domain=function(v){return arguments.length?(t=Array.from(v,i3),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=FS,m()},y.clamp=function(v){return arguments.length?(u=v?!0:_n,m()):u!==_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,o=b,m()}}function WS(){return tf()(_n,_n)}function l3(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function yu(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=yu(Math.abs(t)),t?t[1]:NaN}function c3(t,e){return function(r,a){for(var o=r.length,l=[],u=0,f=t[0],h=0;o>0&&f>0&&(h+f+1>a&&(f=Math.max(1,a-h)),l.push(r.substring(o-=f,o+f)),!((h+=f+1)>a));)f=t[u=(u+1)%t.length];return l.reverse().join(e)}}function u3(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var f3=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function el(t){if(!(e=f3.exec(t)))throw new Error("invalid format: "+t);var e;return new Nm({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=Nm.prototype;function Nm(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+""}Nm.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 d3(t){t:for(var e=t.length,r=1,a=-1,o;r<e;++r)switch(t[r]){case".":a=o=r;break;case"0":a===0&&(a=r),o=r;break;default:if(!+t[r])break t;a>0&&(a=0);break}return a>0?t.slice(0,a)+t.slice(o+1):t}var JS;function h3(t,e){var r=yu(t,e);if(!r)return t+"";var a=r[0],o=r[1],l=o-(JS=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,u=a.length;return l===u?a:l>u?a+new Array(l-u+1).join("0"):l>0?a.slice(0,l)+"."+a.slice(l):"0."+new Array(1-l).join("0")+yu(t,Math.max(0,e+l-1))[0]}function T1(t,e){var r=yu(t,e);if(!r)return t+"";var a=r[0],o=r[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 C1={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:l3,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)=>T1(t*100,e),r:T1,s:h3,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function w1(t){return t}var A1=Array.prototype.map,E1=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function p3(t){var e=t.grouping===void 0||t.thousands===void 0?w1:c3(A1.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",a=t.currency===void 0?"":t.currency[1]+"",o=t.decimal===void 0?".":t.decimal+"",l=t.numerals===void 0?w1:u3(A1.call(t.numerals,String)),u=t.percent===void 0?"%":t.percent+"",f=t.minus===void 0?"−":t.minus+"",h=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,w=y.zero,E=y.width,O=y.comma,k=y.precision,R=y.trim,A=y.type;A==="n"?(O=!0,A="g"):C1[A]||(k===void 0&&(k=12),R=!0,A="g"),(w||v==="0"&&b==="=")&&(w=!0,v="0",b="=");var _=S==="$"?r:S==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():"",$=S==="$"?a:/[%p]/.test(A)?u:"",I=C1[A],L=/[defgprs%]/.test(A);k=k===void 0?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,k)):Math.max(0,Math.min(20,k));function C(z){var H=_,q=$,it,lt,U;if(A==="c")q=I(z)+q,z="";else{z=+z;var Y=z<0||1/z<0;if(z=isNaN(z)?h:I(Math.abs(z),k),R&&(z=d3(z)),Y&&+z==0&&x!=="+"&&(Y=!1),H=(Y?x==="("?x:f:x==="-"||x==="("?"":x)+H,q=(A==="s"?E1[8+JS/3]:"")+q+(Y&&x==="("?")":""),L){for(it=-1,lt=z.length;++it<lt;)if(U=z.charCodeAt(it),48>U||U>57){q=(U===46?o+z.slice(it+1):z.slice(it))+q,z=z.slice(0,it);break}}}O&&!w&&(z=e(z,1/0));var W=H.length+z.length+q.length,J=W<E?new Array(E-W+1).join(v):"";switch(O&&w&&(z=e(J+z,J.length?E-q.length:1/0),J=""),b){case"<":z=H+z+q+J;break;case"=":z=H+J+z+q;break;case"^":z=J.slice(0,W=J.length>>1)+H+z+q+J.slice(W);break;default:z=J+H+z+q;break}return l(z)}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),w=E1[8+x/3];return function(E){return b(S*E)+w}}return{format:d,formatPrefix:m}}var Zc,jm,t2;m3({thousands:",",grouping:[3],currency:["$",""]});function m3(t){return Zc=p3(t),jm=Zc.format,t2=Zc.formatPrefix,Zc}function g3(t){return Math.max(0,-ho(Math.abs(t)))}function y3(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ho(e)/3)))*3-ho(Math.abs(t)))}function v3(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ho(e)-ho(t))+1}function b3(t,e,r,a){var o=Ap(t,e,r),l;switch(a=el(a??",f"),a.type){case"s":{var u=Math.max(Math.abs(t),Math.abs(e));return a.precision==null&&!isNaN(l=y3(o,u))&&(a.precision=l),t2(a,u)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(l=v3(o,Math.max(Math.abs(t),Math.abs(e))))&&(a.precision=l-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(l=g3(o))&&(a.precision=l-(a.type==="%")*2);break}}return jm(a)}function ef(t){var e=t.domain;return t.ticks=function(r){var a=e();return Cp(a[0],a[a.length-1],r??10)},t.tickFormat=function(r,a){var o=e();return b3(o[0],o[o.length-1],r??10,a)},t.nice=function(r){r==null&&(r=10);var a=e(),o=0,l=a.length-1,u=a[o],f=a[l],h,d,m=10;for(f<u&&(d=u,u=f,f=d,d=o,o=l,l=d);m-- >0;){if(d=wp(u,f,r),d===h)return a[o]=u,a[l]=f,e(a);if(d>0)u=Math.floor(u/d)*d,f=Math.ceil(f/d)*d;else if(d<0)u=Math.ceil(u*d)/d,f=Math.floor(f*d)/d;else break;h=d}return t},t}function Lm(){var t=WS();return t.copy=function(){return yl(t,Lm())},Pr.apply(t,arguments),ef(t)}function e2(t,e){t=t.slice();var r=0,a=t.length-1,o=t[r],l=t[a],u;return l<o&&(u=r,r=a,a=u,u=o,o=l,l=u),t[r]=e.floor(o),t[a]=e.ceil(l),t}function M1(t){return Math.log(t)}function k1(t){return Math.exp(t)}function x3(t){return-Math.log(-t)}function S3(t){return-Math.exp(-t)}function T3(t){return isFinite(t)?+("1e"+t):t<0?0:t}function C3(t){return t===10?T3:t===Math.E?Math.exp:e=>Math.pow(t,e)}function w3(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 R1(t){return(e,r)=>-t(-e,r)}function A3(t){const e=t(M1,k1),r=e.domain;let a=10,o,l;function u(){return o=w3(a),l=C3(a),r()[0]<0?(o=R1(o),l=R1(l),t(x3,S3)):t(M1,k1),e}return e.base=function(f){return arguments.length?(a=+f,u()):a},e.domain=function(f){return arguments.length?(r(f),u()):r()},e.ticks=f=>{const h=r();let d=h[0],m=h[h.length-1];const y=m<d;y&&([d,m]=[m,d]);let v=o(d),b=o(m),x,S;const w=f==null?10:+f;let E=[];if(!(a%1)&&b-v<w){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;E.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;E.push(S)}E.length*2<w&&(E=Cp(d,m,w))}else E=Cp(v,b,Math.min(b-v,w)).map(l);return y?E.reverse():E},e.tickFormat=(f,h)=>{if(f==null&&(f=10),h==null&&(h=a===10?"s":","),typeof h!="function"&&(!(a%1)&&(h=el(h)).precision==null&&(h.trim=!0),h=jm(h)),f===1/0)return h;const d=Math.max(1,a*f/e.ticks().length);return m=>{let y=m/l(Math.round(o(m)));return y*a<a-.5&&(y*=a),y<=d?h(m):""}},e.nice=()=>r(e2(r(),{floor:f=>l(Math.floor(o(f))),ceil:f=>l(Math.ceil(o(f)))})),e}function vu(){const t=A3(tf()).domain([1,10]);return t.copy=()=>yl(t,vu()).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 D1(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function E3(t){var e=1,r=t(O1(e),D1(e));return r.constant=function(a){return arguments.length?t(O1(e=+a),D1(e)):e},ef(r)}function n2(){var t=E3(tf());return t.copy=function(){return yl(t,n2()).constant(t.constant())},Pr.apply(t,arguments)}function _1(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function M3(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function k3(t){return t<0?-t*t:t*t}function R3(t){var e=t(_n,_n),r=1;function a(){return r===1?t(_n,_n):r===.5?t(M3,k3):t(_1(r),_1(1/r))}return e.exponent=function(o){return arguments.length?(r=+o,a()):r},ef(e)}function Um(){var t=R3(tf());return t.copy=function(){return yl(t,Um()).exponent(t.exponent())},Pr.apply(t,arguments),t}function O3(){return Um.apply(null,arguments).exponent(.5)}function r2(){var t=[.5],e=[0,1],r,a=1;function o(l){return l!=null&&l<=l?e[qS(t,l,0,a)]:r}return o.domain=function(l){return arguments.length?(t=Array.from(l),a=Math.min(t.length,e.length-1),o):t.slice()},o.range=function(l){return arguments.length?(e=Array.from(l),a=Math.min(t.length,e.length-1),o):e.slice()},o.invertExtent=function(l){var u=e.indexOf(l);return[t[u-1],t[u]]},o.unknown=function(l){return arguments.length?(r=l,o):r},o.copy=function(){return r2().domain(t).range(e).unknown(r)},Pr.apply(o,arguments)}const Fh=new Date,Wh=new Date;function Ce(t,e,r,a){function o(l){return t(l=arguments.length===0?new Date:new Date(+l)),l}return o.floor=l=>(t(l=new Date(+l)),l),o.ceil=l=>(t(l=new Date(l-1)),e(l,1),t(l),l),o.round=l=>{const u=o(l),f=o.ceil(l);return l-u<f-l?u:f},o.offset=(l,u)=>(e(l=new Date(+l),u==null?1:Math.floor(u)),l),o.range=(l,u,f)=>{const h=[];if(l=o.ceil(l),f=f==null?1:Math.floor(f),!(l<u)||!(f>0))return h;let d;do h.push(d=new Date(+l)),e(l,f),t(l);while(d<l&&l<u);return h},o.filter=l=>Ce(u=>{if(u>=u)for(;t(u),!l(u);)u.setTime(u-1)},(u,f)=>{if(u>=u)if(f<0)for(;++f<=0;)for(;e(u,-1),!l(u););else for(;--f>=0;)for(;e(u,1),!l(u););}),r&&(o.count=(l,u)=>(Fh.setTime(+l),Wh.setTime(+u),t(Fh),t(Wh),Math.floor(r(Fh,Wh))),o.every=l=>(l=Math.floor(l),!isFinite(l)||!(l>0)?null:l>1?o.filter(a?u=>a(u)%l===0:u=>o.count(0,u)%l===0):o)),o}const bu=Ce(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);bu.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):bu);bu.range;const Or=1e3,zn=Or*60,Dr=zn*60,jr=Dr*24,Bm=jr*7,z1=jr*30,Jh=jr*365,qi=Ce(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Or)},(t,e)=>(e-t)/Or,t=>t.getUTCSeconds());qi.range;const Im=Ce(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Or)},(t,e)=>{t.setTime(+t+e*zn)},(t,e)=>(e-t)/zn,t=>t.getMinutes());Im.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 Pm=Ce(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Or-t.getMinutes()*zn)},(t,e)=>{t.setTime(+t+e*Dr)},(t,e)=>(e-t)/Dr,t=>t.getHours());Pm.range;const Gm=Ce(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Dr)},(t,e)=>(e-t)/Dr,t=>t.getUTCHours());Gm.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)/jr,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)/jr,t=>t.getUTCDate()-1);nf.range;const i2=Ce(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/jr,t=>Math.floor(t/jr));i2.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)/Bm)}const rf=ra(0),xu=ra(1),D3=ra(2),_3=ra(3),po=ra(4),z3=ra(5),$3=ra(6);rf.range;xu.range;D3.range;_3.range;po.range;z3.range;$3.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)/Bm)}const af=ia(0),Su=ia(1),N3=ia(2),j3=ia(3),mo=ia(4),L3=ia(5),U3=ia(6);af.range;Su.range;N3.range;j3.range;mo.range;L3.range;U3.range;const Ym=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());Ym.range;const qm=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());qm.range;const Lr=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());Lr.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)});Lr.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 a2(t,e,r,a,o,l){const u=[[qi,1,Or],[qi,5,5*Or],[qi,15,15*Or],[qi,30,30*Or],[l,1,zn],[l,5,5*zn],[l,15,15*zn],[l,30,30*zn],[o,1,Dr],[o,3,3*Dr],[o,6,6*Dr],[o,12,12*Dr],[a,1,jr],[a,2,2*jr],[r,1,Bm],[e,1,z1],[e,3,3*z1],[t,1,Jh]];function f(d,m,y){const v=m<d;v&&([d,m]=[m,d]);const b=y&&typeof y.range=="function"?y:h(d,m,y),x=b?b.range(d,+m+1):[];return v?x.reverse():x}function h(d,m,y){const v=Math.abs(m-d)/y,b=Dm(([,,w])=>w).right(u,v);if(b===u.length)return t.every(Ap(d/Jh,m/Jh,y));if(b===0)return bu.every(Math.max(Ap(d,m,y),1));const[x,S]=u[v/u[b-1][2]<u[b][2]/v?b-1:b];return x.every(S)}return[f,h]}const[B3,I3]=a2(Ur,qm,af,i2,Gm,Hm),[H3,P3]=a2(Lr,Ym,rf,vl,Pm,Im);function tp(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 ep(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 G3(t){var e=t.dateTime,r=t.date,a=t.time,o=t.periods,l=t.days,u=t.shortDays,f=t.months,h=t.shortMonths,d=zs(o),m=$s(o),y=zs(l),v=$s(l),b=zs(u),x=$s(u),S=zs(f),w=$s(f),E=zs(h),O=$s(h),k={a:Y,A:W,b:J,B:N,c:null,d:B1,e:B1,f:dD,g:TD,G:wD,H:cD,I:uD,j:fD,L:o2,m:hD,M:pD,p:Z,q:at,Q:P1,s:G1,S:mD,u:gD,U:yD,V:vD,w:bD,W:xD,x:null,X:null,y:SD,Y:CD,Z:AD,"%":H1},R={a:ot,A:ut,b:dt,B:ft,c:null,d:I1,e:I1,f:RD,g:BD,G:HD,H:ED,I:MD,j:kD,L:l2,m:OD,M:DD,p:At,q:bt,Q:P1,s:G1,S:_D,u:zD,U:$D,V:ND,w:jD,W:LD,x:null,X:null,y:UD,Y:ID,Z:PD,"%":H1},A={a:C,A:z,b:H,B:q,c:it,d:L1,e:L1,f:aD,g:j1,G:N1,H:U1,I:U1,j:eD,L:iD,m:tD,M:nD,p:L,q:J3,Q:sD,s:lD,S:rD,u:K3,U:Z3,V:Q3,w:X3,W:F3,x:lt,X:U,y:j1,Y:N1,Z:W3,"%":oD};k.x=_(r,k),k.X=_(a,k),k.c=_(e,k),R.x=_(r,R),R.X=_(a,R),R.c=_(e,R);function _(nt,ht){return function(vt){var ct=[],$t=-1,gt=0,Yt=nt.length,re,Lt,Be;for(vt instanceof Date||(vt=new Date(+vt));++$t<Yt;)nt.charCodeAt($t)===37&&(ct.push(nt.slice(gt,$t)),(Lt=$1[re=nt.charAt(++$t)])!=null?re=nt.charAt(++$t):Lt=re==="e"?" ":"0",(Be=ht[re])&&(re=Be(vt,Lt)),ct.push(re),gt=$t+1);return ct.push(nt.slice(gt,$t)),ct.join("")}}function $(nt,ht){return function(vt){var ct=_s(1900,void 0,1),$t=I(ct,nt,vt+="",0),gt,Yt;if($t!=vt.length)return null;if("Q"in ct)return new Date(ct.Q);if("s"in ct)return new Date(ct.s*1e3+("L"in ct?ct.L:0));if(ht&&!("Z"in ct)&&(ct.Z=0),"p"in ct&&(ct.H=ct.H%12+ct.p*12),ct.m===void 0&&(ct.m="q"in ct?ct.q:0),"V"in ct){if(ct.V<1||ct.V>53)return null;"w"in ct||(ct.w=1),"Z"in ct?(gt=ep(_s(ct.y,0,1)),Yt=gt.getUTCDay(),gt=Yt>4||Yt===0?Su.ceil(gt):Su(gt),gt=nf.offset(gt,(ct.V-1)*7),ct.y=gt.getUTCFullYear(),ct.m=gt.getUTCMonth(),ct.d=gt.getUTCDate()+(ct.w+6)%7):(gt=tp(_s(ct.y,0,1)),Yt=gt.getDay(),gt=Yt>4||Yt===0?xu.ceil(gt):xu(gt),gt=vl.offset(gt,(ct.V-1)*7),ct.y=gt.getFullYear(),ct.m=gt.getMonth(),ct.d=gt.getDate()+(ct.w+6)%7)}else("W"in ct||"U"in ct)&&("w"in ct||(ct.w="u"in ct?ct.u%7:"W"in ct?1:0),Yt="Z"in ct?ep(_s(ct.y,0,1)).getUTCDay():tp(_s(ct.y,0,1)).getDay(),ct.m=0,ct.d="W"in ct?(ct.w+6)%7+ct.W*7-(Yt+5)%7:ct.w+ct.U*7-(Yt+6)%7);return"Z"in ct?(ct.H+=ct.Z/100|0,ct.M+=ct.Z%100,ep(ct)):tp(ct)}}function I(nt,ht,vt,ct){for(var $t=0,gt=ht.length,Yt=vt.length,re,Lt;$t<gt;){if(ct>=Yt)return-1;if(re=ht.charCodeAt($t++),re===37){if(re=ht.charAt($t++),Lt=A[re in $1?ht.charAt($t++):re],!Lt||(ct=Lt(nt,vt,ct))<0)return-1}else if(re!=vt.charCodeAt(ct++))return-1}return ct}function L(nt,ht,vt){var ct=d.exec(ht.slice(vt));return ct?(nt.p=m.get(ct[0].toLowerCase()),vt+ct[0].length):-1}function C(nt,ht,vt){var ct=b.exec(ht.slice(vt));return ct?(nt.w=x.get(ct[0].toLowerCase()),vt+ct[0].length):-1}function z(nt,ht,vt){var ct=y.exec(ht.slice(vt));return ct?(nt.w=v.get(ct[0].toLowerCase()),vt+ct[0].length):-1}function H(nt,ht,vt){var ct=E.exec(ht.slice(vt));return ct?(nt.m=O.get(ct[0].toLowerCase()),vt+ct[0].length):-1}function q(nt,ht,vt){var ct=S.exec(ht.slice(vt));return ct?(nt.m=w.get(ct[0].toLowerCase()),vt+ct[0].length):-1}function it(nt,ht,vt){return I(nt,e,ht,vt)}function lt(nt,ht,vt){return I(nt,r,ht,vt)}function U(nt,ht,vt){return I(nt,a,ht,vt)}function Y(nt){return u[nt.getDay()]}function W(nt){return l[nt.getDay()]}function J(nt){return h[nt.getMonth()]}function N(nt){return f[nt.getMonth()]}function Z(nt){return o[+(nt.getHours()>=12)]}function at(nt){return 1+~~(nt.getMonth()/3)}function ot(nt){return u[nt.getUTCDay()]}function ut(nt){return l[nt.getUTCDay()]}function dt(nt){return h[nt.getUTCMonth()]}function ft(nt){return f[nt.getUTCMonth()]}function At(nt){return o[+(nt.getUTCHours()>=12)]}function bt(nt){return 1+~~(nt.getUTCMonth()/3)}return{format:function(nt){var ht=_(nt+="",k);return ht.toString=function(){return nt},ht},parse:function(nt){var ht=$(nt+="",!1);return ht.toString=function(){return nt},ht},utcFormat:function(nt){var ht=_(nt+="",R);return ht.toString=function(){return nt},ht},utcParse:function(nt){var ht=$(nt+="",!0);return ht.toString=function(){return nt},ht}}}var $1={"-":"",_:" ",0:"0"},Oe=/^\s*\d+/,Y3=/^%/,q3=/[\\^$*+?|[\]().{}]/g;function jt(t,e,r){var a=t<0?"-":"",o=(a?-t:t)+"",l=o.length;return a+(l<r?new Array(r-l+1).join(e)+o:o)}function V3(t){return t.replace(q3,"\\$&")}function zs(t){return new RegExp("^(?:"+t.map(V3).join("|")+")","i")}function $s(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function X3(t,e,r){var a=Oe.exec(e.slice(r,r+1));return a?(t.w=+a[0],r+a[0].length):-1}function K3(t,e,r){var a=Oe.exec(e.slice(r,r+1));return a?(t.u=+a[0],r+a[0].length):-1}function Z3(t,e,r){var a=Oe.exec(e.slice(r,r+2));return a?(t.U=+a[0],r+a[0].length):-1}function Q3(t,e,r){var a=Oe.exec(e.slice(r,r+2));return a?(t.V=+a[0],r+a[0].length):-1}function F3(t,e,r){var a=Oe.exec(e.slice(r,r+2));return a?(t.W=+a[0],r+a[0].length):-1}function N1(t,e,r){var a=Oe.exec(e.slice(r,r+4));return a?(t.y=+a[0],r+a[0].length):-1}function j1(t,e,r){var a=Oe.exec(e.slice(r,r+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function W3(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 J3(t,e,r){var a=Oe.exec(e.slice(r,r+1));return a?(t.q=a[0]*3-3,r+a[0].length):-1}function tD(t,e,r){var a=Oe.exec(e.slice(r,r+2));return a?(t.m=a[0]-1,r+a[0].length):-1}function L1(t,e,r){var a=Oe.exec(e.slice(r,r+2));return a?(t.d=+a[0],r+a[0].length):-1}function eD(t,e,r){var a=Oe.exec(e.slice(r,r+3));return a?(t.m=0,t.d=+a[0],r+a[0].length):-1}function U1(t,e,r){var a=Oe.exec(e.slice(r,r+2));return a?(t.H=+a[0],r+a[0].length):-1}function nD(t,e,r){var a=Oe.exec(e.slice(r,r+2));return a?(t.M=+a[0],r+a[0].length):-1}function rD(t,e,r){var a=Oe.exec(e.slice(r,r+2));return a?(t.S=+a[0],r+a[0].length):-1}function iD(t,e,r){var a=Oe.exec(e.slice(r,r+3));return a?(t.L=+a[0],r+a[0].length):-1}function aD(t,e,r){var a=Oe.exec(e.slice(r,r+6));return a?(t.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function oD(t,e,r){var a=Y3.exec(e.slice(r,r+1));return a?r+a[0].length:-1}function sD(t,e,r){var a=Oe.exec(e.slice(r));return a?(t.Q=+a[0],r+a[0].length):-1}function lD(t,e,r){var a=Oe.exec(e.slice(r));return a?(t.s=+a[0],r+a[0].length):-1}function B1(t,e){return jt(t.getDate(),e,2)}function cD(t,e){return jt(t.getHours(),e,2)}function uD(t,e){return jt(t.getHours()%12||12,e,2)}function fD(t,e){return jt(1+vl.count(Lr(t),t),e,3)}function o2(t,e){return jt(t.getMilliseconds(),e,3)}function dD(t,e){return o2(t,e)+"000"}function hD(t,e){return jt(t.getMonth()+1,e,2)}function pD(t,e){return jt(t.getMinutes(),e,2)}function mD(t,e){return jt(t.getSeconds(),e,2)}function gD(t){var e=t.getDay();return e===0?7:e}function yD(t,e){return jt(rf.count(Lr(t)-1,t),e,2)}function s2(t){var e=t.getDay();return e>=4||e===0?po(t):po.ceil(t)}function vD(t,e){return t=s2(t),jt(po.count(Lr(t),t)+(Lr(t).getDay()===4),e,2)}function bD(t){return t.getDay()}function xD(t,e){return jt(xu.count(Lr(t)-1,t),e,2)}function SD(t,e){return jt(t.getFullYear()%100,e,2)}function TD(t,e){return t=s2(t),jt(t.getFullYear()%100,e,2)}function CD(t,e){return jt(t.getFullYear()%1e4,e,4)}function wD(t,e){var r=t.getDay();return t=r>=4||r===0?po(t):po.ceil(t),jt(t.getFullYear()%1e4,e,4)}function AD(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+jt(e/60|0,"0",2)+jt(e%60,"0",2)}function I1(t,e){return jt(t.getUTCDate(),e,2)}function ED(t,e){return jt(t.getUTCHours(),e,2)}function MD(t,e){return jt(t.getUTCHours()%12||12,e,2)}function kD(t,e){return jt(1+nf.count(Ur(t),t),e,3)}function l2(t,e){return jt(t.getUTCMilliseconds(),e,3)}function RD(t,e){return l2(t,e)+"000"}function OD(t,e){return jt(t.getUTCMonth()+1,e,2)}function DD(t,e){return jt(t.getUTCMinutes(),e,2)}function _D(t,e){return jt(t.getUTCSeconds(),e,2)}function zD(t){var e=t.getUTCDay();return e===0?7:e}function $D(t,e){return jt(af.count(Ur(t)-1,t),e,2)}function c2(t){var e=t.getUTCDay();return e>=4||e===0?mo(t):mo.ceil(t)}function ND(t,e){return t=c2(t),jt(mo.count(Ur(t),t)+(Ur(t).getUTCDay()===4),e,2)}function jD(t){return t.getUTCDay()}function LD(t,e){return jt(Su.count(Ur(t)-1,t),e,2)}function UD(t,e){return jt(t.getUTCFullYear()%100,e,2)}function BD(t,e){return t=c2(t),jt(t.getUTCFullYear()%100,e,2)}function ID(t,e){return jt(t.getUTCFullYear()%1e4,e,4)}function HD(t,e){var r=t.getUTCDay();return t=r>=4||r===0?mo(t):mo.ceil(t),jt(t.getUTCFullYear()%1e4,e,4)}function PD(){return"+0000"}function H1(){return"%"}function P1(t){return+t}function G1(t){return Math.floor(+t/1e3)}var Wa,u2,f2;GD({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 GD(t){return Wa=G3(t),u2=Wa.format,Wa.parse,f2=Wa.utcFormat,Wa.utcParse,Wa}function YD(t){return new Date(t)}function qD(t){return t instanceof Date?+t:+new Date(+t)}function Vm(t,e,r,a,o,l,u,f,h,d){var m=WS(),y=m.invert,v=m.domain,b=d(".%L"),x=d(":%S"),S=d("%I:%M"),w=d("%I %p"),E=d("%a %d"),O=d("%b %d"),k=d("%B"),R=d("%Y");function A(_){return(h(_)<_?b:f(_)<_?x:u(_)<_?S:l(_)<_?w:a(_)<_?o(_)<_?E:O:r(_)<_?k:R)(_)}return m.invert=function(_){return new Date(y(_))},m.domain=function(_){return arguments.length?v(Array.from(_,qD)):v().map(YD)},m.ticks=function(_){var $=v();return t($[0],$[$.length-1],_??10)},m.tickFormat=function(_,$){return $==null?A:d($)},m.nice=function(_){var $=v();return(!_||typeof _.range!="function")&&(_=e($[0],$[$.length-1],_??10)),_?v(e2($,_)):m},m.copy=function(){return yl(m,Vm(t,e,r,a,o,l,u,f,h,d))},m}function d2(){return Pr.apply(Vm(H3,P3,Lr,Ym,rf,vl,Pm,Im,qi,u2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function VD(){return Pr.apply(Vm(B3,I3,Ur,qm,af,nf,Gm,Hm,qi,f2).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function XD(){var t=0,e=1,r,a,o,l,u=_n,f=!1,h;function d(y){return y==null||isNaN(y=+y)?h:u(o===0?.5:(y=(l(y)-r)*o,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),o=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?(u=y,d):u};function m(y){return function(v){var b,x;return arguments.length?([b,x]=v,u=y(b,x),d):[u(0),u(1)]}}return d.range=m(Ju),d.rangeRound=m(FS),d.unknown=function(y){return arguments.length?(h=y,d):h},function(y){return l=y,r=y(t),a=y(e),o=r===a?0:1/(a-r),d}}function KD(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function h2(){var t=ef(XD()(_n));return t.copy=function(){return KD(t,h2())},$O.apply(t,arguments)}function ZD(t,e){return function(a,o){return o.location==="tick"?o.scale.tickFormat(t)(a):o.location==="zoom-slider-tooltip"?e.tickFormat(2)(a):`${a}`}}function Tu(t){return t.scaleType==="band"}function Xm(t){return t.scaleType==="point"}function QD(t){return t.scaleType==="symlog"}function FD(t){return t.type==="piecewise"?r2(t.thresholds,t.colors):h2([t.min??0,t.max??100],t.color)}function go(t){return t.values?pu(t.values,t.colors).unknown(t.unknownColor??null):pu(t.colors.map((e,r)=>r),t.colors).unknown(t.unknownColor??null)}function Zi(t){return t.type==="ordinal"?go(t):FD(t)}function p2(t){const{tickMaxStep:e,tickMinStep:r,tickNumber:a,range:o,domain:l}=t,u=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),h=a??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(u,Math.max(f,h))}function m2(t,e){return e[1]-e[0]===0?1:t/((e[1]-e[0])/100)}function WD(t,e){const r=n2(t,e),a=r.ticks,{negativeScale:o,linearScale:l,positiveScale:u}=JD(r);return r.ticks=f=>{const h=a(f),d=r.constant();let m=0,y=0,v=0;h.forEach(x=>{x>-d&&x<d&&(y+=1),x<=-d&&(m+=1),x>=d&&(v+=1)});const b=[];if(m>0&&b.push(...o.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=u.ticks(v);b.at(-1)===x[0]?b.push(...x.slice(1)):b.push(...x)}return b},r.tickFormat=(f=10,h)=>{const d=r.constant(),[m,y]=r.domain(),v=y-m,b=o.domain(),x=b[1]-b[0],w=(v===0?0:x/v)*f,E=l.domain(),O=E[1]-E[0],R=(v===0?0:O/v)*f,A=u.domain(),_=A[1]-A[0],I=(v===0?0:_/v)*f,L=o.tickFormat(w,h),C=l.tickFormat(R,h),z=u.tickFormat(I,h);return H=>(H.valueOf()<=-d?L:H.valueOf()>=d?z:C)(H)},r}function JD(t){const e=t.constant(),r=t.domain(),a=[r[0],Math.min(r[1],-e)],o=vu(a,t.range()),l=[Math.max(r[0],-e),Math.min(r[1],e)],u=Lm(l,t.range()),f=[Math.max(r[0],e),r[1]],h=vu(f,t.range());return{negativeScale:o,linearScale:u,positiveScale:h}}function Cu(t,e,r){switch(t){case"log":return vu(e,r);case"pow":return Um(e,r);case"sqrt":return O3(e,r);case"time":return d2(e,r);case"utc":return VD(e,r);case"symlog":return WD(e,r);default:return Lm(e,r)}}const wu=t=>(t==null?void 0:t[0])instanceof Date;function Au(t,e){const r=d2(t.data,e);return(a,{location:o})=>o==="tick"?r.tickFormat(t.tickNumber)(a):`${a.toLocaleString()}`}const np=(t,e)=>{const r=t[1]-t[0],a=e[1]-e[0],o=t[0]-e[0]*r/a,l=t[1]+(100-e[1])*r/a;return[o,l]};let Y1,q1;class t_{constructor(){Ct(this,"types",new Set);if(Y1)throw new Error("You can only create one instance!");Y1=this.types}addType(e){this.types.add(e)}getTypes(){return this.types}}class e_{constructor(){Ct(this,"types",new Set);if(q1)throw new Error("You can only create one instance!");q1=this.types}addType(e){this.types.add(e)}getTypes(){return this.types}}const of=new t_;of.addType("bar");of.addType("line");of.addType("scatter");const g2=new e_;g2.addType("radar");function Km(t){return of.getTypes().has(t)}const n_=(t,e,r,a,o,l,u,f)=>{var x;const h=a==="x"?o[e].xExtremumGetter:o[e].yExtremumGetter,d=((x=u[e])==null?void 0:x.series)??{},[m,y]=(h==null?void 0:h({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)]},y2=(t,e,r,a,o,l)=>{const f=Object.keys(r).filter(Km).reduce((h,d)=>n_(h,d,t,e,r,a,o,l),[1/0,-1/0]);return Number.isNaN(f[0])||Number.isNaN(f[1])?[1/0,-1/0]:f},r_=(t,e,r,a)=>{const o=new Set;return Object.keys(e).filter(Km).forEach(u=>{var d,m,y;const f=((d=r[u])==null?void 0:d.series)??{},h=(y=(m=e[u]).axisTooltipGetter)==null?void 0:y.call(m,f);h!==void 0&&h.forEach(({axisId:v,direction:b})=>{b===t&&o.add(v??a)})}),o},i_=(t,e,r,a)=>{var o;if(t.domainLimit!==void 0)return t.domainLimit;if(e==="x")for(const l of((o=a.line)==null?void 0:o.seriesOrder)??[]){const u=a.line.series[l];if(u.xAxisId===t.id||u.xAxisId===void 0&&r===0)return"strict"}return"nice"};function a_(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 o_=.2,s_=.1;function v2({drawingArea:t,formattedSeries:e,axis:r,seriesConfig:a,axisDirection:o,zoomMap:l,zoomOptions:u,getFilters:f,preferStrictDomainInLineCharts:h}){if(r===void 0)return{axis:{},axisIds:[]};const d=r_(o,a,e,r[0].id),m={};return r.forEach((y,v)=>{const b=y,x=u==null?void 0:u[b.id],S=l==null?void 0:l.get(b.id),w=S?[S.start,S.end]:[0,100],E=a_(t,o,b),[O,k]=y2(b,o,a,v,e,S===void 0&&!x?f:void 0),R=!b.ignoreTooltip&&d.has(b.id),A=b.data??[];if(Tu(b)){const Y=b.categoryGapRatio??o_,W=b.barGapRatio??s_,J=o==="y"?[E[1],E[0]]:E,N=np(J,w);if(m[b.id]=G({offset:0,height:0,categoryGapRatio:Y,barGapRatio:W,triggerTooltip:R},b,{data:A,scale:Wu(b.data,N).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))}),wu(b.data)){const Z=Au(b,J);m[b.id].valueFormatter=b.valueFormatter??Z}}if(Xm(b)){const Y=o==="y"?[...E].reverse():E,W=np(Y,w);if(m[b.id]=G({offset:0,height:0,triggerTooltip:R},b,{data:A,scale:XS(b.data,W),tickNumber:b.data.length,colorScale:b.colorMap&&(b.colorMap.type==="ordinal"?go(G({values:b.data},b.colorMap)):Zi(b.colorMap))}),wu(b.data)){const J=Au(b,Y);m[b.id].valueFormatter=b.valueFormatter??J}}if(b.scaleType==="band"||b.scaleType==="point")return;const _=b.scaleType??"linear",$=h?i_(b,o,v,e):b.domainLimit??"nice",I=[b.min??O,b.max??k];if(typeof $=="function"){const{min:Y,max:W}=$(O,k);I[0]=Y,I[1]=W}const L=p2(G({},b,{range:E,domain:I})),C=m2(L,w),z=np(E,w),H=Cu(_,I,z);QD(b)&&b.constant!=null&&H.constant(b.constant);const q=$==="nice"?H.nice(L):H,[it,lt]=q.domain(),U=[b.min??it,b.max??lt];m[b.id]=G({offset:0,height:0,triggerTooltip:R},b,{data:A,scaleType:_,scale:q.domain(U),tickNumber:C,colorScale:b.colorMap&&Zi(b.colorMap),valueFormatter:b.valueFormatter??ZD(C,Cu(_,E.map(Y=>H.invert(Y)),E))})}),{axis:m,axisIds:r.map(({id:y})=>y)}}function l_(t){return t!=null}function b2({zoomMap:t,zoomOptions:e,seriesConfig:r,formattedSeries:a,direction:o}){return(l,u)=>{const f=e[l.id];if(!f||f.filterMode!=="discard")return null;const h=t==null?void 0:t.get(l.id);if(h===void 0||h.start<=0&&h.end>=100)return null;const d=l.scaleType;return d==="point"||d==="band"?c_(l.data,h.start,h.end,o):u_(d,y2(l,o,r,u,a),h.start,h.end,o,l.data)}}function c_(t,e,r,a){const o=(t==null?void 0:t.length)??0,l=Math.floor(e*o/100),u=Math.ceil(r*o/100);return function(h,d){return(h[a]??(t==null?void 0:t[d]))==null?!0:d>=l&&d<u}}function u_(t,e,r,a,o,l){let u,f;[u,f]=Cu(t??"linear",e,[0,100]).nice().domain(),u=u instanceof Date?u.getTime():u,f=f instanceof Date?f.getTime():f;const h=u+r*(f-u)/100,d=u+a*(f-u)/100;return function(y,v){const b=y[o]??(l==null?void 0:l[v]);return b==null?!0:b>=h&&b<=d}}const f_=t=>({currentAxisId:e,seriesXAxisId:r,seriesYAxisId:a,isDefaultAxis:o})=>(l,u)=>{var d,m;return!(e===r?a:r)||o?((m=(d=Object.values(t??{}))[0])==null?void 0:m.call(d,l,u))??!0:[a,r].filter(y=>y!==e).map(y=>t[y??""]).filter(l_).every(y=>y(l,u))},V1=t=>(e=[])=>e.reduce((r,a)=>{const{zoom:o,id:l}=a,u=Om(o,l,t);return u&&(r[l]=u),r},{}),d_=t=>{const e=new Map;return t.forEach(r=>{e.set(r.axisId,r)}),e},x2=t=>t.zoom,S2=pt([x2],t=>t==null?void 0:t.isInteracting),sf=pt([x2],t=>(t==null?void 0:t.zoomData)&&d_(t==null?void 0:t.zoomData)),bl=pt([na,Mo],(t,e)=>G({},V1("x")(t),V1("y")(e)));pt([bl,(t,e)=>e],(t,e)=>t[e]);const h_=pt([sf,bl,Hr,Zn],(t,e,r,a)=>t&&e&&b2({zoomMap:t,zoomOptions:e,seriesConfig:r,formattedSeries:a,direction:"x"})),p_=pt([sf,bl,Hr,Zn],(t,e,r,a)=>t&&e&&b2({zoomMap:t,zoomOptions:e,seriesConfig:r,formattedSeries:a,direction:"y"})),T2=pt([h_,p_,na,Mo],(t,e,r,a)=>{if(t===void 0||e===void 0)return;const o=r==null?void 0:r.reduce((u,f,h)=>{const d=t(f,h);return d!==null&&(u[f.id]=d),u},{}),l=a==null?void 0:a.reduce((u,f,h)=>{const d=e(f,h);return d!==null&&(u[f.id]=d),u},{});if(!(Object.keys(o??{}).length===0&&Object.keys(l??{}).length===0))return f_(G({},o,l))}),bn=pt([na,Ir,Zn,Hr,sf,bl,T2,$S],(t,e,r,a,o,l,u,f)=>v2({drawingArea:e,formattedSeries:r,axis:t,seriesConfig:a,axisDirection:"x",zoomMap:o,zoomOptions:l,getFilters:u,preferStrictDomainInLineCharts:f})),xn=pt([Mo,Ir,Zn,Hr,sf,bl,T2,$S],(t,e,r,a,o,l,u,f)=>v2({drawingArea:e,formattedSeries:r,axis:t,seriesConfig:a,axisDirection:"y",zoomMap:o,zoomOptions:l,getFilters:u,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(o=>o.id===r))??(e==null?void 0:e.find(o=>o.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:o}=t;if(!Bn(r)){const u=r.invert(e);if(a===void 0)return-1;const f=Ja(u);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(u)-y)<Math.abs(Ja(u)-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:o?a.length-1-l:l}function X1(t,e,r){const{scale:a,data:o}=t;return Bn(a)?r===null||r<0||r>=o.length?null:o[r]:r===null?a.invert(e):o[r]}function Rp(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=j.useRef(t);return Te(()=>{e.current=t}),j.useRef((...r)=>(0,e.current)(...r)).current}const m_=Object.is;function C2(t,e){if(t===e)return!0;if(!(t instanceof Object)||!(e instanceof Object))return!1;let r=0,a=0;for(const o in t)if(r+=1,!m_(t[o],e[o])||!(o in e))return!1;for(const o in e)a+=1;return r===a}const xl=({store:t})=>{const e=$n(function(){t.update(u=>G({},u,{interaction:{pointer:null,item:null}}))}),r=$n(function(u){t.update(f=>{const h=f.interaction.item;return u?h===null||Object.keys(u).some(d=>u[d]!==h[d])?f:G({},f,{interaction:G({},f.interaction,{item:null})}):h===null?f:G({},f,{interaction:G({},f.interaction,{item:null})})})}),a=$n(function(u){t.update(f=>C2(f.interaction.item,u)?f:G({},f,{interaction:G({},f.interaction,{item:u})}))}),o=$n(function(u){t.update(f=>G({},f,{interaction:G({},f.interaction,{pointer:u})}))});return{instance:{cleanInteraction:e,setItemInteraction:a,removeItemInteraction:r,setPointerCoordinate:o}}};xl.getInitialState=()=>({interaction:{item:null,pointer:null}});xl.params={};const Zm=t=>t.interaction,g_=pt([Zm],t=>t!==void 0),w2=pt([Zm],t=>(t==null?void 0:t.item)??null),A2=pt([Zm],t=>(t==null?void 0:t.pointer)??null),Sl=pt([A2],t=>t&&t.x),Tl=pt([A2],t=>t&&t.y),y_=pt([w2],t=>t!==null);function uo(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 o=t.length;if(o!==e.length)return!1;for(let l=0;l<o;l+=1)if(!uo(t[l],e[l]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;const o=Array.from(t.entries());for(let l=0;l<o.length;l+=1)if(!e.has(o[l][0]))return!1;for(let l=0;l<o.length;l+=1){const u=o[l];if(!uo(u[1],e.get(u[0])))return!1}return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;const o=Array.from(t.entries());for(let l=0;l<o.length;l+=1)if(!e.has(o[l][0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){const o=t.length;if(o!==e.length)return!1;for(let l=0;l<o;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 o=0;o<a;o+=1)if(!Object.prototype.hasOwnProperty.call(e,r[o]))return!1;for(let o=0;o<a;o+=1){const l=r[o];if(!uo(t[l],e[l]))return!1}return!0}return t!==t&&e!==e}const lf=(t,e)=>e;function Op(t,e,r=e.axisIds[0]){return Array.isArray(r)?r.map(a=>yo(e.axis[a],t)):yo(e.axis[r],t)}const E2=(t,e,r)=>{if(t===null)return null;const a=Op(t,e,r);return a===-1?null:a},Qm=pt([Sl,bn,lf],E2),Fm=pt([Tl,xn,lf],E2),v_=pt([Sl,Tl,bn,xn],(t,e,r,a)=>[...t===null?[]:r.axisIds.map(o=>({axisId:o,dataIndex:Op(t,r,o)})),...e===null?[]:a.axisIds.map(o=>({axisId:o,dataIndex:Op(e,a,o)}))].filter(o=>o.dataIndex!==null&&o.dataIndex>=0));function M2(t,e,r,a=e.axisIds[0]){return Array.isArray(a)?a.map((o,l)=>X1(e.axis[o],t,r[l])):X1(e.axis[a],t,r)}const b_=pt([Sl,bn,Qm,lf],(t,e,r,a)=>t===null||e.axisIds.length===0?null:M2(t,e,r,a)),x_=pt([Tl,xn,Fm,lf],(t,e,r,a)=>t===null||e.axisIds.length===0?null:M2(t,e,r,a)),k2=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:uo}}),R2=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:uo}}),S_=pt([k2,R2],(t,e)=>t.length>0||e.length>0),K1={};function cf(t,e){const r=j.useRef(K1);return r.current===K1&&(r.current=t(e)),r}const T_=()=>{};function C_(t,e,r,a){const o=cf(w_,{store:t,selector:e,skip:a}).current;o.effect=r,j.useEffect(o.onMount(a),[a])}function w_(t){const{store:e,selector:r,skip:a}=t;let o=!1,l;const u=()=>{f.dispose??(f.dispose=e.subscribe(h=>{const d=r(h);f.effect(l,d),l=d}))},f={effect:T_,dispose:null,onMount:h=>()=>{if(!h)return o||(o=!0,l=r(e.value)),u(),()=>{var d;(d=f.dispose)==null||d.call(f),f.dispose=null}}};return a||(o=!0,l=r(e.value),u()),f}const Ro=({params:t,store:e,seriesConfig:r,svgRef:a,instance:o})=>{const{xAxis:l,yAxis:u,dataset:f,onHighlightedAxisChange:h}=t,d=Et(e,Ir),m=Et(e,Zn),y=Et(e,g_),{axis:v,axisIds:b}=Et(e,bn),{axis:x,axisIds:S}=Et(e,xn);IS({controlled:t.highlightedAxis}),Te(()=>{t.highlightedAxis!==void 0&&e.update(k=>k.controlledCartesianAxisHighlight===t.highlightedAxis?k:G({},k,{controlledCartesianAxisHighlight:t.highlightedAxis}))},[e,t.highlightedAxis]);const w=j.useRef(!0);j.useEffect(()=>{if(w.current){w.current=!1;return}e.update(k=>G({},k,{cartesianAxis:G({},k.cartesianAxis,{x:GS(l,f),y:YS(u,f)})}))},[r,d,l,u,f,e]);const E=b[0],O=S[0];return C_(e,v_,(k,R)=>{if(!Object.is(k,R)){if(k.length!==R.length){h(R);return}k!=null&&k.some(({axisId:A,dataIndex:_},$)=>R[$].axisId!==A||R[$].dataIndex!==_)&&h(R)}},!h),j.useEffect(()=>{const k=a.current;if(!y||!k||t.disableAxisListener)return()=>{};const R=o.addInteractionListener("moveEnd",z=>{var H;z.detail.activeGestures.pan||(H=o.cleanInteraction)==null||H.call(o)}),A=o.addInteractionListener("panEnd",z=>{var H;z.detail.activeGestures.move||(H=o.cleanInteraction)==null||H.call(o)}),_=o.addInteractionListener("quickPressEnd",z=>{var H;!z.detail.activeGestures.move&&!z.detail.activeGestures.pan&&((H=o.cleanInteraction)==null||H.call(o))}),$=z=>{var lt,U;const H=z.detail.srcEvent,q=z.detail.target,it=Rp(k,H);if(z.detail.srcEvent.buttons>=1&&(q!=null&&q.hasPointerCapture(z.detail.srcEvent.pointerId))&&!(q!=null&&q.closest("[data-charts-zoom-slider]"))&&(q==null||q.releasePointerCapture(z.detail.srcEvent.pointerId)),!o.isPointInside(it.x,it.y,q)){(lt=o.cleanInteraction)==null||lt.call(o);return}(U=o.setPointerCoordinate)==null||U.call(o,it)},I=o.addInteractionListener("move",$),L=o.addInteractionListener("pan",$),C=o.addInteractionListener("quickPress",$);return()=>{I.cleanup(),R.cleanup(),L.cleanup(),A.cleanup(),C.cleanup(),_.cleanup()}},[a,e,v,E,x,O,o,t.disableAxisListener,y]),j.useEffect(()=>{const k=a.current,R=t.onAxisClick;if(k===null||!R)return()=>{};const A=o.addInteractionListener("tap",_=>{let $=null,I=!1;const L=Rp(k,_.detail.srcEvent),C=yo(v[E],L.x);I=C!==-1,$=I?C:yo(x[O],L.y);const z=I?b[0]:S[0];if($==null||$===-1)return;const H=(I?v:x)[z].data[$],q={};Object.keys(m).filter(it=>["bar","line"].includes(it)).forEach(it=>{var lt;(lt=m[it])==null||lt.seriesOrder.forEach(U=>{const Y=m[it].series[U],W=Y.xAxisId,J=Y.yAxisId,N=I?W:J;(N===void 0||N===z)&&(q[U]=Y.data[$])})}),R(_.detail.srcEvent,{dataIndex:$,axisValue:H,seriesValues:q})});return()=>{A.cleanup()}},[t.onAxisClick,m,a,v,b,x,S,E,O,o]),{}};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??NS,theme:t.theme??"light",defaultizedXAxis:GS(t.xAxis,t.dataset),defaultizedYAxis:YS(t.yAxis,t.dataset)});Ro.getInitialState=t=>G({cartesianAxis:{x:t.defaultizedXAxis,y:t.defaultizedYAxis}},t.highlightedAxis===void 0?{}:{controlledCartesianAxisHighlight:t.highlightedAxis});const Oo=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([Qm,bn,Oo],O2);pt([Fm,xn,Oo],O2);const D2=(t,e,r,a)=>a!==void 0?a.map(o=>{var l,u;return G({},o,{value:(u=(l=r.axis[o.axisId])==null?void 0:l.data)==null?void 0:u[o.dataIndex]})}).filter(({value:o})=>o!==void 0):e===null?[]:[{axisId:r.axisIds[0],dataIndex:t,value:e}],A_=pt([Qm,b_,bn,Oo],D2),E_=pt([Fm,x_,xn,Oo],D2),_2=(t,e)=>t===void 0?[e.axis[e.axisIds[0]]]:t.map(a=>e.axis[a.axisId]??null).filter(a=>a!==null);pt([Oo,bn],_2);pt([Oo,xn],_2);function Z1(t,e){return t.id!==void 0?t:G({id:e},t)}function Q1(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 z2(t,e){if(!t||t.length===0)return{axis:{},axisIds:[]};const r={},a=[];return t.forEach((o,l)=>{const u=o.dataKey,f=o.id??`defaultized-z-axis-${l}`;if(u===void 0||o.data!==void 0){r[f]=Q1(Z1(o,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]=Q1(Z1(G({},o,{data:e.map(h=>h[u])}),f)),a.push(f)}),{axis:r,axisIds:a}}const Cl=({params:t,store:e})=>{const{zAxis:r,dataset:a}=t,o=j.useRef(!0);return j.useEffect(()=>{if(o.current){o.current=!1;return}e.update(l=>G({},l,{zAxis:z2(r,a)}))},[r,a,e]),{}};Cl.params={zAxis:!0,dataset:!0};Cl.getInitialState=t=>({zAxis:z2(t.zAxis,t.dataset)});const M_=t=>t,k_=pt([M_],t=>t.zAxis),Do=({store:t,params:e})=>{IS({controlled:e.highlightedItem}),Te(()=>{t.update(o=>o.highlight.item===e.highlightedItem?o:G({},o,{highlight:G({},o.highlight,{item:e.highlightedItem})}))},[t,e.highlightedItem]);const r=$n(()=>{var o;(o=e.onHighlightChange)==null||o.call(e,null),t.update(l=>G({},l,{highlight:{item:null}}))}),a=$n(o=>{var u;const l=t.getSnapshot().highlight.item;C2(l,o)||((u=e.onHighlightChange)==null||u.call(e,o),t.update(f=>G({},f,{highlight:{item:o}})))});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 F1=(t,e)=>e==="x"?{x:t,y:null}:{x:null,y:t},N2=t=>{var u;const{axis:e,getFilters:r,isDefaultAxis:a}=t,o=r==null?void 0:r({currentAxisId:e.id,isDefaultAxis:a}),l=o?(u=e.data)==null?void 0:u.filter((f,h)=>o({x:null,y:null},h)):e.data;return $2(l??[])},j2=t=>e=>{const{series:r,axis:a,getFilters:o,isDefaultAxis:l}=e;return Object.keys(r).filter(u=>{const f=t==="x"?r[u].xAxisId:r[u].yAxisId;return f===a.id||l&&f===void 0}).reduce((u,f)=>{const{stackedData:h}=r[f],d=o==null?void 0:o({currentAxisId:a.id,isDefaultAxis:l,seriesXAxisId:r[f].xAxisId,seriesYAxisId:r[f].yAxisId}),[m,y]=(h==null?void 0:h.reduce((v,b,x)=>d&&(!d(F1(b[0],t),x)||!d(F1(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,u[0]),Math.max(y,u[1])]},[1/0,-1/0])},R_=t=>Object.keys(t.series).some(r=>t.series[r].layout==="horizontal")?j2("x")(t):N2(t),O_=t=>Object.keys(t.series).some(r=>t.series[r].layout==="horizontal")?N2(t):j2("y")(t);function qn(t){return function(){return t}}const D_=Math.PI,rp=2*D_;function L2(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function __(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function z_(t){return t}function $_(){var t=z_,e=__,r=null,a=qn(0),o=qn(rp),l=qn(0);function u(f){var h,d=(f=L2(f)).length,m,y,v=0,b=new Array(d),x=new Array(d),S=+a.apply(this,arguments),w=Math.min(rp,Math.max(-rp,o.apply(this,arguments)-S)),E,O=Math.min(Math.abs(w)/d,l.apply(this,arguments)),k=O*(w<0?-1:1),R;for(h=0;h<d;++h)(R=x[b[h]=h]=+t(f[h],h,f))>0&&(v+=R);for(e!=null?b.sort(function(A,_){return e(x[A],x[_])}):r!=null&&b.sort(function(A,_){return r(f[A],f[_])}),h=0,y=v?(w-d*k)/v:0;h<d;++h,S=E)m=b[h],R=x[m],E=S+(R>0?R*y:0)+k,x[m]={data:f[m],index:h,value:R,startAngle:S,endAngle:E,padAngle:O};return x}return u.value=function(f){return arguments.length?(t=typeof f=="function"?f:qn(+f),u):t},u.sortValues=function(f){return arguments.length?(e=f,r=null,u):e},u.sort=function(f){return arguments.length?(r=f,e=null,u):r},u.startAngle=function(f){return arguments.length?(a=typeof f=="function"?f:qn(+f),u):a},u.endAngle=function(f){return arguments.length?(o=typeof f=="function"?f:qn(+f),u):o},u.padAngle=function(f){return arguments.length?(l=typeof f=="function"?f:qn(+f),u):l},u}function vo(t,e){if((u=t.length)>1)for(var r=1,a,o,l=t[e[0]],u,f=l.length;r<u;++r)for(o=l,l=t[e[r]],a=0;a<f;++a)l[a][1]+=l[a][0]=isNaN(o[a][1])?o[a][0]:o[a][1]}function bo(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function N_(t,e){return t[e]}function j_(t){const e=[];return e.key=t,e}function U2(){var t=qn([]),e=bo,r=vo,a=N_;function o(l){var u=Array.from(t.apply(this,arguments),j_),f,h=u.length,d=-1,m;for(const y of l)for(f=0,++d;f<h;++f)(u[f][d]=[0,+a(y,u[f].key,d,l)]).data=y;for(f=0,m=L2(e(u));f<h;++f)u[m[f]].index=f;return r(u,m),u}return o.keys=function(l){return arguments.length?(t=typeof l=="function"?l:qn(Array.from(l)),o):t},o.value=function(l){return arguments.length?(a=typeof l=="function"?l:qn(+l),o):a},o.order=function(l){return arguments.length?(e=l==null?bo:typeof l=="function"?l:qn(Array.from(l)),o):e},o.offset=function(l){return arguments.length?(r=l??vo,o):r},o}function L_(t,e){if((a=t.length)>0){for(var r,a,o=0,l=t[0].length,u;o<l;++o){for(u=r=0;r<a;++r)u+=t[r][o][1]||0;if(u)for(r=0;r<a;++r)t[r][o][1]/=u}vo(t,e)}}function U_(t,e){if((h=t.length)>0)for(var r,a=0,o,l,u,f,h,d=t[e[0]].length;a<d;++a)for(u=f=0,r=0;r<h;++r)(l=(o=t[e[r]][a])[1]-o[0])>0?(o[0]=u,o[1]=u+=l):l<0?(o[1]=f,o[0]=f+=l):(o[0]=0,o[1]=l)}function B_(t,e){if((o=t.length)>0){for(var r=0,a=t[e[0]],o,l=a.length;r<l;++r){for(var u=0,f=0;u<o;++u)f+=t[u][r][1]||0;a[r][1]+=a[r][0]=-f/2}vo(t,e)}}function I_(t,e){if(!(!((u=t.length)>0)||!((l=(o=t[e[0]]).length)>0))){for(var r=0,a=1,o,l,u;a<l;++a){for(var f=0,h=0,d=0;f<u;++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]],w=S[a][1]||0,E=S[a-1][1]||0;b+=w-E}h+=y,d+=b*y}o[a-1][1]+=o[a-1][0]=r,h&&(r-=d/h)}o[a-1][1]+=o[a-1][0]=r,vo(t,e)}}function B2(t){var e=t.map(H_);return bo(t).sort(function(r,a){return e[r]-e[a]})}function H_(t){for(var e=-1,r=0,a=t.length,o,l=-1/0;++e<a;)(o=+t[e][1])>l&&(l=o,r=e);return r}function I2(t){var e=t.map(H2);return bo(t).sort(function(r,a){return e[r]-e[a]})}function H2(t){for(var e=0,r=-1,a=t.length,o;++r<a;)(o=+t[r][1])&&(e+=o);return e}function P_(t){return I2(t).reverse()}function G_(t){var e=t.length,r,a,o=t.map(H2),l=B2(t),u=0,f=0,h=[],d=[];for(r=0;r<e;++r)a=l[r],u<f?(u+=o[a],h.push(a)):(f+=o[a],d.push(a));return d.reverse().concat(h)}function Y_(t){return bo(t).reverse()}const ip={appearance:B2,ascending:I2,descending:P_,insideOut:G_,none:bo,reverse:Y_},ap={expand:L_,diverging:U_,none:vo,silhouette:B_,wiggle:I_},P2=t=>{const{series:e,seriesOrder:r,defaultStrategy:a}=t,o=[],l={};return r.forEach(u=>{const{stack:f,stackOrder:h,stackOffset:d}=e[u];f===void 0?o.push({ids:[u],stackingOrder:ip.none,stackingOffset:ap.none}):l[f]===void 0?(l[f]=o.length,o.push({ids:[u],stackingOrder:ip[h??(a==null?void 0:a.stackOrder)??"none"],stackingOffset:ap[d??(a==null?void 0:a.stackOffset)??"diverging"]})):(o[l[f]].ids.push(u),h!==void 0&&(o[l[f]].stackingOrder=ip[h]),d!==void 0&&(o[l[f]].stackingOffset=ap[d]))}),o},q_=t=>t==null?"":t.toLocaleString(),V_=(t,e)=>{const{seriesOrder:r,series:a}=t,o=P2(t),l=e??[];r.forEach(f=>{const h=a[f].data;if(h!==void 0)h.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 u={};return o.forEach(f=>{const{ids:h,stackingOffset:d,stackingOrder:m}=f,y=U2().keys(h.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);h.forEach((v,b)=>{const x=a[v].dataKey;u[v]=G({layout:"vertical",labelMarkType:"square",minBarSize:0,valueFormatter:a[v].valueFormatter??q_},a[v],{data:x?e.map(S=>{const w=S[x];return typeof w!="number"?null:w}):a[v].data,stackedData:y[b].map(([S,w])=>[S,w])})})}),{seriesOrder:r,stackingGroups:o,series:u}};function Xn(t,e){return typeof t=="function"?t(e):t}const X_=t=>{const{seriesOrder:e,series:r}=t;return e.reduce((a,o)=>{const l=Xn(r[o].label,"legend");return l===void 0||a.push({markType:r[o].labelMarkType,id:o,seriesId:o,color:r[o].color,label:l}),a},[])},G2=(t,e,r)=>{const a=t.layout==="vertical",o=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,u=a?e==null?void 0:e.data:r==null?void 0:r.data;return l?f=>{if(f===void 0)return t.color;const h=t.data[f],d=h===null?t.color:l(h);return d===null?t.color:d}:o&&u?f=>{if(f===void 0)return t.color;const h=u[f],d=h===null?t.color:o(h);return d===null?t.color:d}:()=>t.color},K_=t=>{const{series:e,getColor:r,identifier:a}=t;if(!a||a.dataIndex===void 0)return null;const o=Xn(e.label,"tooltip"),l=e.data[a.dataIndex];if(l==null)return null;const u=e.valueFormatter(l,{dataIndex:a.dataIndex});return{identifier:a,color:r(a.dataIndex),label:o,value:l,formattedValue:u,markType:e.labelMarkType}},Z_=t=>Object.values(t).map(e=>e.layout==="horizontal"?{direction:"y",axisId:e.yAxisId}:{direction:"x",axisId:e.xAxisId}),Q_=(t,e,r)=>G({id:t.id??`auto-generated-id-${e}`,color:r[e%r.length]},t),F_={seriesProcessor:V_,colorProcessor:G2,legendGetter:X_,tooltipGetter:K_,axisTooltipGetter:Z_,xExtremumGetter:R_,yExtremumGetter:O_,getSeriesWithDefaultValues:Q_},W_=t=>{const{series:e,axis:r,isDefaultAxis:a,getFilters:o}=t;let l=1/0,u=-1/0;for(const f in e){if(!Object.hasOwn(e,f))continue;const h=e[f].xAxisId;if(!(h===r.id||h===void 0&&a))continue;const d=o==null?void 0:o({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>u&&(u=v.x))}}return[l,u]},J_=t=>{const{series:e,axis:r,isDefaultAxis:a,getFilters:o}=t;let l=1/0,u=-1/0;for(const f in e){if(!Object.hasOwn(e,f))continue;const h=e[f].yAxisId;if(!(h===r.id||h===void 0&&a))continue;const d=o==null?void 0:o({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>u&&(u=v.y))}}return[l,u]},t5=({series:t,seriesOrder:e},r)=>({series:Object.fromEntries(Object.entries(t).map(([o,l])=>{const u=l==null?void 0:l.datasetKeys,f=["x","y","id"].filter(d=>typeof(u==null?void 0:u[d])!="string");if(l!=null&&l.datasetKeys&&f.length>0)throw new Error([`MUI X Charts: scatter series with id='${o}' has incomplete datasetKeys.`,`Properties ${f.map(d=>`"${d}"`).join(", ")} are missing.`].join(` 117 + `));const h=u?(r==null?void 0:r.map(d=>({x:d[u.x]??null,y:d[u.y]??null,z:u.z&&d[u.z],id:u.id&&d[u.id]})))??[]:l.data??[];return[o,G({labelMarkType:"circle",markerSize:4},l,{preview:G({markerSize:1},l==null?void 0:l.preview),data:h,valueFormatter:l.valueFormatter??(d=>d&&`(${d.x}, ${d.y})`)})]})),seriesOrder:e}),e5=(t,e,r,a)=>{const o=a==null?void 0:a.colorScale,l=r==null?void 0:r.colorScale,u=e==null?void 0:e.colorScale;return o?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=o((y=a==null?void 0:a.data)==null?void 0:y[f]);if(v!==null)return v}const h=t.data[f],d=h===null?t.color:o(h.z);return d===null?t.color:d}:l?f=>{if(f===void 0)return t.color;const h=t.data[f],d=h===null?t.color:l(h.y);return d===null?t.color:d}:u?f=>{if(f===void 0)return t.color;const h=t.data[f],d=h===null?t.color:u(h.x);return d===null?t.color:d}:()=>t.color},n5=t=>{const{seriesOrder:e,series:r}=t;return e.reduce((a,o)=>{const l=Xn(r[o].label,"legend");return l===void 0||a.push({markType:r[o].labelMarkType,id:o,seriesId:o,color:r[o].color,label:l}),a},[])},r5=t=>{const{series:e,getColor:r,identifier:a}=t;if(!a||a.dataIndex===void 0)return null;const o=Xn(e.label,"tooltip"),l=e.data[a.dataIndex],u=e.valueFormatter(l,{dataIndex:a.dataIndex});return{identifier:a,color:r(a.dataIndex),label:o,value:l,formattedValue:u,markType:e.labelMarkType}},i5=(t,e,r)=>G({id:t.id??`auto-generated-id-${e}`,color:r[e%r.length]},t),a5={seriesProcessor:t5,colorProcessor:e5,legendGetter:n5,tooltipGetter:r5,xExtremumGetter:W_,yExtremumGetter:J_,getSeriesWithDefaultValues:i5},o5=t=>{const{axis:e}=t;return $2(e.data??[])};function s5(t,e,r,a){return r.reduce((o,l,u)=>{if(e[u]===null)return o;const[f,h]=t(l);return a&&(!a({y:f,x:null},u)||!a({y:h,x:null},u))?o:[Math.min(f,h,o[0]),Math.max(f,h,o[1])]},[1/0,-1/0])}const l5=t=>{const{series:e,axis:r,isDefaultAxis:a,getFilters:o}=t;return Object.keys(e).filter(l=>{const u=e[l].yAxisId;return u===r.id||a&&u===void 0}).reduce((l,u)=>{const{area:f,stackedData:h,data:d}=e[u],m=f!==void 0,y=o==null?void 0:o({currentAxisId:r.id,isDefaultAxis:a,seriesXAxisId:e[u].xAxisId,seriesYAxisId:e[u].yAxisId}),v=m&&r.scaleType!=="log"&&typeof e[u].baseline!="string"?w=>w:w=>[w[1],w[1]],b=s5(v,d,h,y),[x,S]=b;return[Math.min(x,l[0]),Math.max(S,l[1])]},[1/0,-1/0])};function c5(t,e){const r={};return Object.keys(t).forEach(a=>{r[a]=G({},t[a],{valueFormatter:t[a].valueFormatter??e})}),r}const u5=(t,e)=>{const{seriesOrder:r,series:a}=t,o=P2(G({},t,{defaultStrategy:{stackOffset:"none"}})),l=e??[];r.forEach(f=>{const h=a[f].data;h!==void 0&&h.forEach((d,m)=>{l.length<=m?l.push({[f]:d}):l[m][f]=d})});const u={};return o.forEach(f=>{const{ids:h,stackingOrder:d,stackingOffset:m}=f,y=U2().keys(h.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);h.forEach((v,b)=>{const x=a[v].dataKey;u[v]=G({labelMarkType:"line"},a[v],{data:x?e.map(S=>{const w=S[x];return typeof w!="number"?null:w}):a[v].data,stackedData:y[b].map(([S,w])=>[S,w])})})}),{seriesOrder:r,stackingGroups:o,series:c5(u,f=>f==null?"":f.toLocaleString())}},f5=(t,e,r)=>{const a=r==null?void 0:r.colorScale,o=e==null?void 0:e.colorScale;return a?l=>{if(l===void 0)return t.color;const u=t.data[l],f=u===null?t.color:a(u);return f===null?t.color:f}:o?l=>{var h;if(l===void 0)return t.color;const u=(h=e.data)==null?void 0:h[l],f=u===null?t.color:o(u);return f===null?t.color:f}:()=>t.color},d5=t=>{const{seriesOrder:e,series:r}=t;return e.reduce((a,o)=>{const l=Xn(r[o].label,"legend");return l===void 0||a.push({markType:r[o].labelMarkType,id:o,seriesId:o,color:r[o].color,label:l}),a},[])},h5=t=>{const{series:e,getColor:r,identifier:a}=t;if(!a||a.dataIndex===void 0)return null;const o=Xn(e.label,"tooltip"),l=e.data[a.dataIndex],u=e.valueFormatter(l,{dataIndex:a.dataIndex});return{identifier:a,color:r(a.dataIndex),label:o,value:l,formattedValue:u,markType:e.labelMarkType}},p5=t=>Object.values(t).map(e=>({direction:"x",axisId:e.xAxisId})),m5=(t,e,r)=>G({id:t.id??`auto-generated-id-${e}`,color:r[e%r.length]},t),g5={colorProcessor:f5,seriesProcessor:u5,legendGetter:d5,tooltipGetter:h5,axisTooltipGetter:p5,xExtremumGetter:o5,yExtremumGetter:l5,getSeriesWithDefaultValues:m5},y5=(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}},v5=t=>{const{seriesOrder:e,series:r}=t,a={};return e.forEach(o=>{const l=$_().startAngle(2*Math.PI*(r[o].startAngle??0)/360).endAngle(2*Math.PI*(r[o].endAngle??360)/360).padAngle(2*Math.PI*(r[o].paddingAngle??0)/360).sortValues(y5(r[o].sortingValues??"none"))(r[o].data.map(u=>u.value));a[o]=G({labelMarkType:"circle",valueFormatter:u=>u.value.toLocaleString()},r[o],{data:r[o].data.map((u,f)=>G({},u,{id:u.id??`auto-generated-pie-id-${o}-${f}`},l[f])).map((u,f)=>{var h,d;return G({labelMarkType:"circle"},u,{formattedValue:((d=(h=r[o]).valueFormatter)==null?void 0:d.call(h,G({},u,{label:Xn(u.label,"arc")}),{dataIndex:f}))??u.value.toLocaleString()})})})}),{seriesOrder:e,series:a}},b5=t=>e=>t.data[e].color,x5=t=>{const{seriesOrder:e,series:r}=t;return e.reduce((a,o)=>(r[o].data.forEach((l,u)=>{const f=Xn(l.label,"legend");f!==void 0&&a.push({markType:l.labelMarkType??r[o].labelMarkType,id:l.id??u,seriesId:o,color:l.color,label:f,itemId:l.id??u})}),a),[])},S5=t=>{const{series:e,getColor:r,identifier:a}=t;if(!a||a.dataIndex===void 0)return null;const o=e.data[a.dataIndex];if(o==null)return null;const l=Xn(o.label,"tooltip"),u=G({},o,{label:l}),f=e.valueFormatter(u,{dataIndex:a.dataIndex});return{identifier:a,color:r(a.dataIndex),label:l,value:u,formattedValue:f,markType:o.labelMarkType??e.labelMarkType}},T5=(t,e,r)=>G({id:t.id??`auto-generated-id-${e}`},t,{data:t.data.map((a,o)=>G({color:r[o%r.length]},a))}),C5={colorProcessor:b5,seriesProcessor:v5,legendGetter:x5,tooltipGetter:S5,getSeriesWithDefaultValues:T5},w5={bar:F_,scatter:a5,line:g5,pie:C5},A5=[Cl,Ro,xl,Do];function E5(t){const{children:e,plugins:r=A5,pluginParams:a={},seriesConfig:o=w5}=t,{contextValue:l}=vO(r,a,o);return D.jsx(BS.Provider,{value:l,children:e})}const Gr=()=>{const t=j.useContext(BS);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 M5(t){"hasPointerCapture"in t.currentTarget&&t.currentTarget.hasPointerCapture(t.pointerId)&&t.currentTarget.releasePointerCapture(t.pointerId)}const k5=(t,e)=>{const{instance:r}=Gr(),a=j.useRef(!1),o=j.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=j.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 j.useEffect(()=>()=>{a.current&&l()},[l]),{onPointerEnter:o,onPointerLeave:l,onPointerDown:M5}};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 R5(){return!1}function Y2(t,e){return!t||!e?R5: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 O5(){return!1}function q2(t,e){return!t||!e?O5: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 D5=t=>t.highlight,_5=t=>t.series,z5=pt([_5],t=>{const e=new Map;return Object.keys(t.processedSeries).forEach(r=>{var o;const a=t.processedSeries[r];(o=a==null?void 0:a.seriesOrder)==null||o.forEach(l=>{const u=a==null?void 0:a.series[l];e.set(l,u==null?void 0:u.highlightScope)})}),e}),wl=pt([D5],function(e){return e.item}),uf=pt([z5,wl],function(e,r){if(!r)return null;const a=e.get(r.seriesId);return a===void 0?null:a});pt([uf,wl],Y2);pt([uf,wl],q2);const $5=pt([uf,wl,(t,e)=>e],function(e,r,a){return Y2(e,r)(a)}),N5=pt([uf,wl,(t,e)=>e],function(e,r,a){return q2(e,r)(a)});function V2(t){const e=ne(),r=Et(e,$5,[t]),a=Et(e,N5,[t]);return{isHighlighted:r,isFaded:!r&&a}}var op,W1;function j5(){if(W1)return op;W1=1;var t=4,e=.001,r=1e-7,a=10,o=11,l=1/(o-1),u=typeof Float32Array=="function";function f(S,w){return 1-3*w+3*S}function h(S,w){return 3*w-6*S}function d(S){return 3*S}function m(S,w,E){return((f(w,E)*S+h(w,E))*S+d(w))*S}function y(S,w,E){return 3*f(w,E)*S*S+2*h(w,E)*S+d(w)}function v(S,w,E,O,k){var R,A,_=0;do A=w+(E-w)/2,R=m(A,O,k)-S,R>0?E=A:w=A;while(Math.abs(R)>r&&++_<a);return A}function b(S,w,E,O){for(var k=0;k<t;++k){var R=y(w,E,O);if(R===0)return w;var A=m(w,E,O)-S;w-=A/R}return w}function x(S){return S}return op=function(w,E,O,k){if(!(0<=w&&w<=1&&0<=O&&O<=1))throw new Error("bezier x values must be in [0, 1] range");if(w===E&&O===k)return x;for(var R=u?new Float32Array(o):new Array(o),A=0;A<o;++A)R[A]=m(A*l,w,O);function _($){for(var I=0,L=1,C=o-1;L!==C&&R[L]<=$;++L)I+=l;--L;var z=($-R[L])/(R[L+1]-R[L]),H=I+z*l,q=y(H,w,O);return q>=e?b($,H,w,O):q===0?H:v($,I,I+l,w,O)}return function(I){return I===0?0:I===1?1:m(_(I),E,k)}},op}var L5=j5();const U5=Hx(L5),B5=300,I5=U5(.66,0,.34,1);var xo=0,Hs=0,Ns=0,X2=1e3,Eu,Ps,Mu=0,ta=0,ff=0,nl=typeof performance=="object"&&performance.now?performance:Date,K2=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Wm(){return ta||(K2(H5),ta=nl.now()+ff)}function H5(){ta=0}function ku(){this._call=this._time=this._next=null}ku.prototype=Z2.prototype={constructor:ku,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?Wm():+r)+(e==null?0:+e),!this._next&&Ps!==this&&(Ps?Ps._next=this:Eu=this,Ps=this),this._call=t,this._time=r,_p()},stop:function(){this._call&&(this._call=null,this._time=1/0,_p())}};function Z2(t,e,r){var a=new ku;return a.restart(t,e,r),a}function Dp(){Wm(),++xo;for(var t=Eu,e;t;)(e=ta-t._time)>=0&&t._call.call(void 0,e),t=t._next;--xo}function J1(){ta=(Mu=nl.now())+ff,xo=Hs=0;try{Dp()}finally{xo=0,G5(),ta=0}}function P5(){var t=nl.now(),e=t-Mu;e>X2&&(ff-=e,Mu=t)}function G5(){for(var t,e=Eu,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:Eu=r);Ps=t,_p(a)}function _p(t){if(!xo){Hs&&(Hs=clearTimeout(Hs));var e=t-ta;e>24?(t<1/0&&(Hs=setTimeout(J1,t-nl.now()-ff)),Ns&&(Ns=clearInterval(Ns))):(Ns||(Mu=nl.now(),Ns=setInterval(P5,X2)),xo=1,K2(J1))}}function Y5(t,e,r){var a=new ku;return e=e==null?0:+e,a.restart(o=>{a.stop(),t(o+e)},e,r),a}class q5{constructor(e,r,a){Ct(this,"elapsed",0);Ct(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=Wm()-this.elapsed;return this.timer=Z2(r=>this.timerCallback(r),0,e),Dp(),this}stop(){return this.running?(this.timer&&(this.timer.stop(),this.timer=null),this):this}finish(){return this.stop(),Y5(()=>this.timerCallback(this.duration)),Dp(),this}}function V5(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 o=0;o<r.length;o+=1){const l=r[o];if(!Object.prototype.hasOwnProperty.call(e,l)||!Object.is(t[l],e[l]))return!1}return!0}function X5(t,{createInterpolator:e,applyProps:r,skip:a,initialProps:o=t}){const l=j.useRef(o),u=j.useRef(null),f=j.useRef(null),h=j.useRef(t);Te(()=>{h.current=t},[t]),Te(()=>{var y;a&&((y=u.current)==null||y.finish(),u.current=null,f.current=null,l.current=t)},[t,a]);const d=j.useCallback(y=>{const v=l.current,b=e(v,t);u.current=new q5(B5,I5,x=>{const S=b(x);l.current=S,r(y,S)})},[r,e,t]);return j.useCallback(y=>{var b,x,S,w;if(y===null){(b=u.current)==null||b.stop();return}const v=f.current;if(v===y){if(V5(h.current,t)){(x=u.current)==null||x.resume();return}(S=u.current)==null||S.stop()}v&&((w=u.current)==null||w.stop()),f.current=y,(u.current||!a)&&d(y)},[d,t,a])}function Jm(t,{createInterpolator:e,transformProps:r,applyProps:a,skip:o,initialProps:l=t,ref:u}){const f=r??(m=>m),h=X5(t,{initialProps:l,createInterpolator:e,applyProps:(m,y)=>a(m,f(y)),skip:o});return G({},r(o?t:l),{ref:Si(h,u)})}function K5(t,e){const r=Se(t.x,e.x),a=Se(t.y,e.y),o=Se(t.width,e.width),l=Se(t.height,e.height);return u=>({x:r(u),y:a(u),width:o(u),height:l(u)})}function Z5(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 Jm({x:t.x,y:t.y,width:t.width,height:t.height},{createInterpolator:K5,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 Q5=["ownerState","skipAnimation","id","dataIndex","xOrigin","yOrigin"];function F5(t){const{ownerState:e}=t,r=te(t,Q5),a=Z5(t);return D.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 W5=["id","dataIndex","classes","color","slots","slotProps","style","onClick","skipAnimation","layout","x","xOrigin","y","yOrigin","width","height"];function J5(t){const{id:e,dataIndex:r,classes:a,color:o,slots:l,slotProps:u,style:f,onClick:h,skipAnimation:d,layout:m,x:y,xOrigin:v,y:b,yOrigin:x,width:S,height:w}=t,E=te(t,W5),O=k5({type:"bar",seriesId:e,dataIndex:r}),{isFaded:k,isHighlighted:R}=V2({seriesId:e,dataIndex:r}),A={id:e,dataIndex:r,classes:a,color:o,isFaded:k,isHighlighted:R},_=nR(A),$=(l==null?void 0:l.bar)??F5,I=_r({elementType:$,externalSlotProps:u==null?void 0:u.bar,externalForwardedProps:E,additionalProps:G({},O,{id:e,dataIndex:r,color:o,x:y,xOrigin:v,y:b,yOrigin:x,width:S,height:w,style:f,onClick:h,cursor:h?"pointer":"unset",stroke:"none",fill:o,skipAnimation:d,layout:m}),className:_.root,ownerState:A});return D.jsx($,G({},I))}function In(){const t=ne();return Et(t,Ir)}function tg(){const t=ne();return Et(t,tO)}function eg(t){return g2.getTypes().has(t)}const t4=(t,e,r,a,o,l,u)=>{var b;const f=a==="rotation"?o[e].rotationExtremumGetter:o[e].radiusExtremumGetter,h=((b=u[e])==null?void 0:b.series)??{},[d,m]=(f==null?void 0:f({series:h,axis:r,axisIndex:l,isDefaultAxis:l===0}))??[1/0,-1/0],[y,v]=t;return[Math.min(d,y),Math.max(m,v)]},e4=(t,e,r,a,o)=>{const u=Object.keys(r).filter(eg).reduce((f,h)=>t4(f,h,t,e,r,a,o),[1/0,-1/0]);return Number.isNaN(u[0])||Number.isNaN(u[1])?[1/0,-1/0]:u},Gs=(t,e)=>t===void 0?e:Math.PI*t/180,n4=(t,e,r,a)=>{const o=new Set;return Object.keys(e).filter(eg).forEach(u=>{var d,m,y;const f=((d=r[u])==null?void 0:d.series)??{},h=(y=(m=e[u]).axisTooltipGetter)==null?void 0:y.call(m,f);h!==void 0&&h.forEach(({axisId:v,direction:b})=>{b===t&&o.add(v??a)})}),o};function r4(t,e,r){if(e==="rotation"){if(r.scaleType==="point"){const a=[Gs(r.startAngle,0),Gs(r.endAngle,2*Math.PI)],o=a[1]-a[0];return o>Math.PI*2-.1&&(a[1]-=o/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 i4=.2,a4=.1;function Q2({drawingArea:t,formattedSeries:e,axis:r,seriesConfig:a,axisDirection:o}){if(r===void 0)return{axis:{},axisIds:[]};const l=n4(o,a,e,r[0].id),u={};return r.forEach((f,h)=>{const d=f,m=r4(t,o,d),[y,v]=e4(d,o,a,h,e),b=!d.ignoreTooltip&&l.has(d.id),x=d.data??[];if(Tu(d)){const L=d.categoryGapRatio??i4,C=d.barGapRatio??a4;if(u[d.id]=G({offset:0,categoryGapRatio:L,barGapRatio:C,triggerTooltip:b},d,{data:x,scale:Wu(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))}),wu(d.data)){const z=Au(d,m);u[d.id].valueFormatter=d.valueFormatter??z}}if(Xm(d)&&(u[d.id]=G({offset:0,triggerTooltip:b},d,{data:x,scale:XS(d.data,m),tickNumber:d.data.length,colorScale:d.colorMap&&(d.colorMap.type==="ordinal"?go(G({values:d.data},d.colorMap)):Zi(d.colorMap))}),wu(d.data))){const L=Au(d,m);u[d.id].valueFormatter=d.valueFormatter??L}if(d.scaleType==="band"||d.scaleType==="point")return;const S=d.scaleType??"linear",w=d.domainLimit??"nice",E=[d.min??y,d.max??v];if(typeof w=="function"){const{min:L,max:C}=w(y,v);E[0]=L,E[1]=C}const O=p2(G({},d,{range:m,domain:E})),k=m2(O,m),R=Cu(S,E,m),A=w==="nice"?R.nice(O):R,[_,$]=A.domain(),I=[d.min??_,d.max??$];u[d.id]=G({offset:0,triggerTooltip:b},d,{data:x,scaleType:S,scale:A.domain(I),tickNumber:k,colorScale:d.colorMap&&Zi(d.colorMap)})}),{axis:u,axisIds:r.map(({id:f})=>f)}}const F2=t=>t.polarAxis,W2=pt([F2],t=>t==null?void 0:t.rotation),o4=pt([F2],t=>t==null?void 0:t.radius),aa=pt([W2,Ir,Zn,Hr],(t,e,r,a)=>Q2({drawingArea:e,formattedSeries:r,axis:t,seriesConfig:a,axisDirection:"rotation"})),s4=pt([o4,Ir,Zn,Hr],(t,e,r,a)=>Q2({drawingArea:e,formattedSeries:r,axis:t,seriesConfig:a,axisDirection:"radius"})),l4=pt([Ir],t=>({cx:t.left+t.width/2,cy:t.top+t.height/2})),c4=t=>(e,r)=>Math.atan2(e-t.cx,t.cy-r);function df(t){return(t%360+360)%360}const sp=2*Math.PI;function u4(t){return(t%sp+sp)%sp}function tx(t,e){const{scale:r,data:a,reverse:o}=t;if(!Bn(r))throw new Error("MUI X Charts: getAxisValue is not implemented for polare continuous axes.");if(!a)return-1;const l=u4(e-Math.min(...r.range())),u=r.bandwidth()===0?Math.floor((l+r.step()/2)/r.step())%a.length:Math.floor(l/r.step());return u<0||u>=a.length?-1:o?a.length-1-u:u}function Yr(){const t=ne(),{axis:e,axisIds:r}=Et(t,bn);return{xAxis:e,xAxisIds:r}}function qr(){const t=ne(),{axis:e,axisIds:r}=Et(t,xn);return{yAxis:e,yAxisIds:r}}function f4(t){const e=ne(),{axis:r,axisIds:a}=Et(e,bn),o=a[0];return r[o]}function d4(t){const e=ne(),{axis:r,axisIds:a}=Et(e,xn),o=a[0];return r[o]}function J2(){const t=ne(),{axis:e,axisIds:r}=Et(t,aa);return{rotationAxis:e,rotationAxisIds:r}}function h4(){const t=ne(),{axis:e,axisIds:r}=Et(t,s4);return{radiusAxis:e,radiusAxisIds:r}}function p4(t){const e=ne(),{axis:r,axisIds:a}=Et(e,aa),o=a[0];return r[o]}function Ru(t){return Bn(t)?e=>(t(e)??0)+t.bandwidth()/2:e=>t(e)}function ng(){const t=ne(),{axis:e,axisIds:r}=Et(t,k_)??{axis:{},axisIds:[]};return{zAxis:e,zAxisIds:r}}function rg(){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 Et(t,Zn)}function m4(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 g4(t){const e=pt([Zn,(r,a)=>a],(r,a)=>{var l,u,f,h,d,m;if(!a||Array.isArray(a)&&a.length===0)return((u=(l=r[t])==null?void 0:l.seriesOrder)==null?void 0:u.map(y=>{var v;return(v=r[t])==null?void 0:v.series[y]}))??[];if(!Array.isArray(a))return(h=(f=r[t])==null?void 0:f.series)==null?void 0:h[a];const o=[];for(const y of a){const v=(m=(d=r[t])==null?void 0:d.series)==null?void 0:m[y];v&&o.push(v)}return o});return r=>{const a=ne();return Et(a,e,[r],m4)}}function y4(t){const e=pt([Zn],r=>r[t]);return()=>{const r=ne();return Et(r,e)}}g4("bar");const v4=y4("bar");function b4(){return v4()}function x4(t,e){return Object.keys(t).flatMap(r=>{const a=e[r].legendGetter;return a===void 0?[]:a(t[r])})}function S4(){const t=hf(),e=ne(),r=Et(e,Hr);return{items:x4(t,r)}}function T4(){const t=tg();return j.useCallback(e=>`${t}-gradient-${e}`,[t])}function C4(){const t=tg();return j.useCallback(e=>`${t}-gradient-${e}-object-bound`,[t])}function w4(t,e){const r=Se(t.x,e.x),a=Se(t.y,e.y),o=Se(t.width,e.width),l=Se(t.height,e.height);return u=>({x:r(u),y:a(u),width:o(u),height:l(u)})}function A4(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 Jm(r,{createInterpolator:w4,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:e,skip:t.skipAnimation,ref:t.ref})}function E4(){return Gr().chartRootRef}const M4={"image/png":"PNG","image/jpeg":"JPEG","image/webp":"WebP"},k4=t=>({components:{MuiChartsLocalizationProvider:{defaultProps:{localeText:G({},t)}}}}),tT={loading:"Loading data…",noData:"No data to display",zoomIn:"Zoom in",zoomOut:"Zoom out",toolbarExport:"Export",toolbarExportPrint:"Print",toolbarExportImage:t=>`Export as ${M4[t]??t}`},R4=tT;k4(tT);const O4=["localeText"],zp=j.createContext(null);function D4(t){const{localeText:e}=t,r=te(t,O4),{localeText:a}=j.useContext(zp)??{localeText:void 0},o=Kn({props:r,name:"MuiChartsLocalizationProvider"}),{children:l,localeText:u}=o,f=j.useMemo(()=>G({},R4,u,a,e),[u,a,e]),h=j.useMemo(()=>({localeText:f}),[f]);return D.jsx(zp.Provider,{value:h,children:l})}const eT=()=>{const t=j.useContext(zp);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 _4(t,e){const r=Se(t.x,e.x),a=Se(t.y,e.y),o=Se(t.width,e.width),l=Se(t.height,e.height),u=Se(t.borderRadius,e.borderRadius);return f=>({x:r(f),y:a(f),width:o(f),height:l(f),borderRadius:u(f)})}function z4(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 Jm({x:t.x,y:t.y,width:t.width,height:t.height,borderRadius:t.borderRadius},{createInterpolator:_4,transformProps:r=>({d:N4(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 $4(t){const{maskId:e,x:r,y:a,width:o,height:l,skipAnimation:u}=t,{ref:f,d:h}=z4({layout:t.layout??"vertical",hasNegative:t.hasNegative,hasPositive:t.hasPositive,xOrigin:t.xOrigin,yOrigin:t.yOrigin,x:r,y:a,width:o,height:l,borderRadius:t.borderRadius??0,skipAnimation:u});return!t.borderRadius||t.borderRadius<=0?null:D.jsx("clipPath",{id:e,children:D.jsx("path",{ref:f,d:h})})}function N4(t,e,r,a,o,l,u,f,h,d){if(r==="vertical"){if(e&&t){const y=Math.min(d,l/2,u/2);return`M${a},${o+u/2} v${-(u/2-y)} a${y},${y} 0 0 1 ${y},${-y} h${l-y*2} a${y},${y} 0 0 1 ${y},${y} v${u-2*y} a${y},${y} 0 0 1 ${-y},${y} h${-(l-y*2)} a${y},${y} 0 0 1 ${-y},${-y} v${-(u/2-y)}`}const m=Math.min(d,l/2);if(e)return`M${a},${Math.max(h,o+m)} v${Math.min(0,-(h-o-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,h-o-m)} Z`;if(t)return`M${a},${Math.min(h,o+u-m)} v${Math.max(0,u-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,u-m)} Z`}if(r==="horizontal"){if(e&&t){const y=Math.min(d,l/2,u/2);return`M${a+l/2},${o} h${l/2-y} a${y},${y} 0 0 1 ${y},${y} v${u-y*2} a${y},${y} 0 0 1 ${-y},${y} h${-(l-2*y)} a${y},${y} 0 0 1 ${-y},${-y} v${-(u-y*2)} a${y},${y} 0 0 1 ${y},${-y} h${l/2-y}`}const m=Math.min(d,u/2);if(e)return`M${Math.min(f,a-m)},${o} h${l} a${m},${m} 0 0 1 ${m},${m} v${u-m*2} a${m},${m} 0 0 1 ${-m},${m} h${-l} Z`;if(t)return`M${Math.max(f,a+l+m)},${o} h${-l} a${m},${m} 0 0 0 ${-m},${m} v${u-m*2} a${m},${m} 0 0 0 ${m},${m} h${l} Z`}}function j4(t){return je("MuiBarLabel",t)}const lp=Le("MuiBarLabel",["root","highlighted","faded","animate"]),L4=t=>{const{classes:e,seriesId:r,isFaded:a,isHighlighted:o,skipAnimation:l}=t,u={root:["root",`series-${r}`,o&&"highlighted",a&&"faded",!l&&"animate"]};return Ue(u,j4,e)},U4=t=>{const{barLabel:e,value:r,dataIndex:a,seriesId:o,height:l,width:u}=t;return e==="value"?r?r==null?void 0:r.toString():null:e({seriesId:o,dataIndex:a,value:r},{bar:{height:l,width:u}})},B4=["seriesId","dataIndex","color","isFaded","isHighlighted","classes","skipAnimation","layout","xOrigin","yOrigin"],I4=zt("text",{name:"MuiBarLabel",slot:"Root",overridesResolver:(t,e)=>[{[`&.${lp.faded}`]:e.faded},{[`&.${lp.highlighted}`]:e.highlighted},e.root]})(({theme:t})=>{var e,r,a,o;return G({},(e=t==null?void 0:t.typography)==null?void 0:e.body2,{stroke:"none",fill:(o=(a=(r=t.vars||t)==null?void 0:r.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,[`&.${lp.faded}`]:{opacity:.3}})});function H4(t){const e=Kn({props:t,name:"MuiBarLabel"}),r=te(e,B4),a=A4(e);return D.jsx(I4,G({},r,a))}const P4=["seriesId","classes","color","dataIndex","barLabel","slots","slotProps","xOrigin","yOrigin","x","y","width","height","value","skipAnimation","layout"],G4=["ownerState"];function Y4(t){const{seriesId:e,classes:r,color:a,dataIndex:o,barLabel:l,slots:u,slotProps:f,xOrigin:h,yOrigin:d,x:m,y,width:v,height:b,value:x,skipAnimation:S,layout:w}=t,E=te(t,P4),{isFaded:O,isHighlighted:k}=V2({seriesId:e,dataIndex:o}),R={seriesId:e,classes:r,color:a,isFaded:O,isHighlighted:k,dataIndex:o,skipAnimation:S,layout:w},A=L4(R),_=(u==null?void 0:u.barLabel)??H4,$=_r({elementType:_,externalSlotProps:f==null?void 0:f.barLabel,additionalProps:G({},E,{xOrigin:h,yOrigin:d,x:m,y,width:v,height:b,className:A.root}),ownerState:R}),{ownerState:I}=$,L=te($,G4);if(!l)return null;const C=U4({barLabel:l,value:x,dataIndex:o,seriesId:e,height:b,width:v});return C?D.jsx(_,G({},L,I,{children:C})):null}function q4(t){return je("MuiBar",t)}Le("MuiBar",["root","series","seriesLabels"]);const nT=t=>Ue({root:["root"],series:["series"],seriesLabels:["seriesLabels"]},q4,t),V4=["bars","skipAnimation"];function X4(t){const{bars:e,skipAnimation:r}=t,a=te(t,V4),o=nT();return D.jsx(j.Fragment,{children:e.flatMap(({seriesId:l,data:u})=>D.jsx("g",{className:o.seriesLabels,"data-series":l,children:u.map(({xOrigin:f,yOrigin:h,x:d,y:m,dataIndex:y,color:v,value:b,width:x,height:S,layout:w})=>D.jsx(Y4,G({seriesId:l,dataIndex:y,value:b,color:v,xOrigin:f,yOrigin:h,x:d,y:m,width:x,height:S,skipAnimation:r??!1,layout:w??"vertical"},a),y))},l))})}function K4(t){const e=ne(),r=Et(e,kR);return t||r}function Z4(){const t=ne();return Et(t,S2)}const cp=(t,e)=>{const r=`${t}-axis`,a=`${t}Axis`;return e===(t==="x"?bm:xm)?`The first \`${a}\``:`The ${r} with id "${e}"`};function Q4(t,e,r,a,o,l,u){const f=o[a],h=u[l],d=t?f:h,m=t?h:f,y=t?a:l,v=t?l:a,b=t?"x":"y",x=t?"y":"x";if(!Tu(d))throw new Error(`MUI X Charts: ${cp(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: ${cp(b,y)} should have data property.`);if(Tu(m)||Xm(m))throw new Error(`MUI X Charts: ${cp(x,v)} should be a continuous type to display the bar series of id "${e}".`)}function F4(t,e,r){const a=b4()??{series:{},stackingGroups:[]},o=Yr().xAxisIds[0],l=qr().yAxisIds[0],u=tg(),{series:f,stackingGroups:h}=a,d={};return{completedData:h.flatMap(({ids:y},v)=>{const b=t.left,x=t.left+t.width,S=t.top,w=t.top+t.height;return y.map(E=>{const O=f[E].xAxisId??o,k=f[E].yAxisId??l,R=e[O],A=r[k],_=f[E].layout==="vertical";Q4(_,E,f[E],O,e,k,r);const $=_?R:A,I=R.scale,L=A.scale,C=G2(f[E],e[O],r[k]),z=$.scale.bandwidth(),{barWidth:H,offset:q}=W4({bandWidth:z,numberOfGroups:h.length,gapRatio:$.barGapRatio}),it=v*(H+q),{stackedData:lt,data:U,layout:Y,minBarSize:W}=f[E],J=$.data.map((N,Z)=>{if(U[Z]==null)return null;const ot=lt[Z].map(vt=>_?L(vt):I(vt)),ut=Math.round(Math.min(...ot)),dt=Math.round(Math.max(...ot)),ft=f[E].stack,{barSize:At,startCoordinate:bt}=J4(_,ut,dt,U[Z],W),nt={seriesId:E,dataIndex:Z,layout:Y,x:_?I(N)+it:bt,y:_?bt:L(N)+it,xOrigin:I(0)??0,yOrigin:L(0)??0,height:_?At:H,width:_?H:At,color:C(Z),value:U[Z],maskId:`${u}_${ft||E}_${v}_${Z}`};if(nt.x>x||nt.x+nt.width<b||nt.y>w||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:I(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(N=>N!==null);return{seriesId:E,data:J}})}),masksData:Object.values(d)}}function W4({bandWidth:t,numberOfGroups:e,gapRatio:r}){if(r===0)return{barWidth:t/e,offset:0};const a=t/(e+(e-1)*r),o=r*a;return{barWidth:a,offset:o}}function J4(t,e,r,a,o){if(a===0||a==null)return{barSize:0,startCoordinate:e};const l=r-e<o,u=l?o:r-e,f=t&&a>=0,h=!t&&a<0;return l&&(f||h)?{barSize:u,startCoordinate:r-u}:{barSize:u,startCoordinate:e}}const tz=["skipAnimation","onItemClick","borderRadius","barLabel"],ez=zt("g",{name:"MuiBarPlot",slot:"Root"})({[`& .${eR.root}`]:{transition:"opacity 0.2s ease-in, fill 0.2s ease-in"}});function nz(t){const{skipAnimation:e,onItemClick:r,borderRadius:a,barLabel:o}=t,l=te(t,tz),u=Z4(),f=K4(u||e),{xAxis:h}=Yr(),{yAxis:d}=qr(),{completedData:m,masksData:y}=F4(In(),h,d),v=!a||a<=0,b=nT();return D.jsxs(ez,{className:b.root,children:[!v&&y.map(({id:x,x:S,y:w,xOrigin:E,yOrigin:O,width:k,height:R,hasPositive:A,hasNegative:_,layout:$})=>D.jsx($4,{maskId:x,borderRadius:a,hasNegative:_,hasPositive:A,layout:$,x:S,y:w,xOrigin:E,yOrigin:O,width:k,height:R,skipAnimation:f??!1},x)),m.map(({seriesId:x,data:S})=>D.jsx("g",{"data-series":x,className:b.series,children:S.map(({dataIndex:w,color:E,maskId:O,layout:k,x:R,xOrigin:A,y:_,yOrigin:$,width:I,height:L})=>{const C=D.jsx(J5,G({id:x,dataIndex:w,color:E,skipAnimation:f??!1,layout:k??"vertical",x:R,xOrigin:A,y:_,yOrigin:$,width:I,height:L},l,{onClick:r&&(z=>{r(z,{type:"bar",seriesId:x,dataIndex:w})})}),w);return v?C:D.jsx("g",{clipPath:`url(#${O})`,children:C},w)})},x)),o&&D.jsx(X4,G({bars:m,skipAnimation:f,barLabel:o},l))]})}function ig(){const[t,e]=j.useState(typeof window<"u"||!1);return j.useEffect(()=>{e(!0)},[]),t}function rz(){return typeof window>"u"}const Qc=new Map,iz=2e3,az={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},oz=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],ex="mui_measurement_span";function rT(t,e){return oz.indexOf(t)>=0&&e===+e?`${e}px`:e}function iT(t){return t.split("").reduce((a,o)=>o===o.toUpperCase()?[...a,"-",o.toLowerCase()]:[...a,o],[]).join("")}const sz=t=>Object.keys(t).sort().reduce((e,r)=>`${e}${iT(r)}:${rT(r,t[r])};`,"");let up;const Al=(t,e={})=>{if(t==null||rz())return{width:0,height:0};const r=`${t}`,a=sz(e),o=`${r}-${a}`,l=Qc.get(o);if(l)return l;try{let u=document.getElementById(ex);u===null&&(u=document.createElement("span"),u.setAttribute("id",ex),u.setAttribute("aria-hidden","true"),document.body.appendChild(u));const f=G({},az,e);Object.keys(f).map(m=>(u.style[iT(m)]=rT(m,f[m]),m)),u.textContent=r;const h=u.getBoundingClientRect(),d={width:h.width,height:h.height};return Qc.set(o,d),Qc.size+1>iz&&Qc.clear(),up&&clearTimeout(up),up=setTimeout(()=>{u.textContent=""},0),d}catch{return{width:0,height:0}}};function ag(t){return typeof t=="number"&&!Number.isFinite(t)}const fp={start:0,extremities:0,end:1,middle:.5};function lz(t){const{scale:e,tickNumber:r,valueFormatter:a,tickInterval:o,tickPlacement:l="extremities",tickLabelPlacement:u,isInside:f}=t;if(Bn(e)){const v=e.domain(),b=u??"middle";return e.bandwidth()>0?[...(typeof o=="function"&&v.filter(o)||typeof o=="object"&&o||v).map(w=>{const E=`${w}`;return{value:w,formattedValue:(a==null?void 0:a(w,{location:"tick",scale:e,tickNumber:r,defaultTickLabel:E}))??E,offset:e(w)-(e.step()-e.bandwidth())/2+fp[l]*e.step(),labelOffset:b==="tick"?0:e.step()*(fp[b]-fp[l])}}),...l==="extremities"?[{formattedValue:void 0,offset:e.range()[1],labelOffset:0}]:[]]:(typeof o=="function"&&v.filter(o)||typeof o=="object"&&o||v).map(S=>{const w=`${S}`;return{value:S,formattedValue:(a==null?void 0:a(S,{location:"tick",scale:e,tickNumber:r,defaultTickLabel:w}))??w,offset:e(S),labelOffset:0}})}if(e.domain().some(ag))return[];const d=u,m=typeof o=="object"?o: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:o,tickPlacement:l="extremities",tickLabelPlacement:u,direction:f}=t,{instance:h}=Gr(),d=f==="x"?h.isXInside:h.isYInside;return j.useMemo(()=>lz({scale:e,tickNumber:r,tickPlacement:l,tickInterval:o,tickLabelPlacement:u,valueFormatter:a,isInside:d}),[e,r,l,o,u,a,d])}function cz(t=!1){const[e,r]=j.useState(!1);return Te(()=>{t||r(!0)},[t]),j.useEffect(()=>{t&&r(!0)},[t]),e}const aT=typeof window<"u"&&"Intl"in window&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function uz(t){return t.length}function fz(t){const e=aT.segment(t);let r=0;for(const a of e)r+=1;return r}const dz=aT?fz:uz;function hz(t){return t*(Math.PI/180)}const oT=typeof window<"u"&&"Intl"in window&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function pz(t,e){return t.slice(0,e)}function mz(t,e){const r=oT.segment(t);let a="",o=0;for(const l of r)if(a+=l.segment,o+=1,o>=e)break;return a}const gz=oT?mz:pz,nx="…";function sT(t,e){const{width:r,height:a,measureText:o}=e,l=hz(e.angle),u=o(t),f=Math.abs(u.width*Math.cos(l))+Math.abs(u.height*Math.sin(l)),h=Math.abs(u.width*Math.sin(l))+Math.abs(u.height*Math.cos(l));return f<=r&&h<=a}function lT(t,e){if(e(t))return t;let r=t,a=1,o=1/2;const l=dz(t);let u=l,f=l,h=null;do{if(f=u,u=Math.floor(l*o),u===0)break;r=gz(t,u).trim();const d=e(r+nx);a+=1,d?(h=r,o+=1/2**a):o-=1/2**a}while(Math.abs(u-f)!==1);return h?h+nx:""}function yz(t,e,r,a,o){const l=new Map,u=df((o==null?void 0:o.angle)??0);let f=1,h=1;(o==null?void 0:o.textAnchor)==="start"?(f=1/0,h=1):(o==null?void 0:o.textAnchor)==="end"?(f=1,h=1/0):(f=2,h=2),u>90&&u<270&&([f,h]=[h,f]),a&&([f,h]=[h,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)*h),y=v=>sT(v,{width:m,height:r,angle:u,measureText:b=>Al(b,o)});l.set(d,lT(d.formattedValue.toString(),y))}return l}const rx=5;function vz(t,e,r=0){const a=Math.min(Math.abs(r)%180,Math.abs(Math.abs(r)%180-180)%180);if(a<rx)return t;if(a>90-rx)return e;const o=Gs(a),l=Math.atan2(e,t);return o<l?t/Math.cos(o):e/Math.sin(o)}function cT({style:t,needsComputation:e,text:r}){return r.split(` 122 + `).map(a=>G({text:a},e?Al(a,t):{width:0,height:0}))}function bz(t,{tickLabelStyle:e,tickLabelInterval:r,tickLabelMinGap:a,reverse:o,isMounted:l,isXInside:u}){const f=m=>{if(!l||m.formattedValue===void 0)return{width:0,height:0};const y=cT({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 h=0;const d=o?-1:1;return new Set(t.filter((m,y)=>{const{offset:v,labelOffset:b}=m,x=v+b;if(y>0&&d*x<d*(h+a)||!u(x))return!1;const{width:S,height:w}=f(m),E=vz(S,w,e==null?void 0:e.angle),O=x-d*E/2;return y>0&&d*O<d*(h+a)?!1:(h=x+d*E/2,!0)}))}function uT(t){return je("MuiChartsAxis",t)}const Fc=Le("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right","id"]),fT=zt("g",{name:"MuiChartsAxis",slot:"Root"})(({theme:t})=>({[`& .${Fc.tickLabel}`]:G({},t.typography.caption,{fill:(t.vars||t).palette.text.primary}),[`& .${Fc.label}`]:{fill:(t.vars||t).palette.text.primary},[`& .${Fc.line}`]:{stroke:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${Fc.tick}`]:{stroke:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges"}})),xz=t=>{const{classes:e,position:r,id:a}=t,o={root:["root","directionX",r,`id-${a}`],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]};return Ue(o,uT,e)},$p=3,Sz=4,dT=zt(fT,{name:"MuiChartsXAxis",slot:"Root"})({}),Tz={disableLine:!1,disableTicks:!1,tickSize:6,tickLabelMinGap:4},Cz=["x","y","style","text","ownerState"],wz=["angle","textAnchor","dominantBaseline"];function Ou(t){const{x:e,y:r,style:a,text:o}=t,l=te(t,Cz),u=a??{},{angle:f,textAnchor:h,dominantBaseline:d}=u,m=te(u,wz),y=ig(),v=j.useMemo(()=>cT({style:m,needsComputation:y&&o.includes(` 123 + `),text:o}),[m,o,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 D.jsx("text",G({},l,{transform:f?`rotate(${f}, ${e}, ${r})`:void 0,x:e,y:r,textAnchor:h,dominantBaseline:d,style:m,children:v.map((x,S)=>D.jsx("tspan",{x:e,dy:`${S===0?b:v[0].height}px`,dominantBaseline:d,children:x.text},S))}))}function hT(t){const e=df(t);return e<=30||e>=330||e<=210&&e>=150?"middle":e<=180?"end":"start"}function pT(t){const e=df(t);return e<=30||e>=330?"hanging":e<=210&&e>=150?"auto":"central"}function mT(t){switch(t){case"start":return"end";case"end":return"start";default:return t}}const Az=["scale","tickNumber","reverse"],gT=t=>{const{xAxis:e,xAxisIds:r}=Yr(),a=e[t.axisId??r[0]],{scale:o,tickNumber:l,reverse:u}=a,f=te(a,Az),h=Kn({props:G({},f,t),name:"MuiChartsXAxis"}),d=G({},Tz,h),{position:m,tickLabelStyle:y,labelStyle:v,slots:b,slotProps:x}=d,S=pl(),w=hm(),E=xz(d),O=m==="bottom"?1:-1,k=(b==null?void 0:b.axisLine)??"line",R=(b==null?void 0:b.axisTick)??"line",A=(b==null?void 0:b.axisTickLabel)??Ou,_=(b==null?void 0:b.axisLabel)??Ou,$=hT((m==="bottom"?0:180)-((y==null?void 0:y.angle)??0)),I=pT((m==="bottom"?0:180)-((y==null?void 0:y.angle)??0)),L=_r({elementType:A,externalSlotProps:x==null?void 0:x.axisTickLabel,additionalProps:{style:G({},S.typography.caption,{fontSize:12,lineHeight:1.25,textAnchor:w?mT($):$,dominantBaseline:I},y)},className:E.tickLabel,ownerState:{}}),C=_r({elementType:_,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:{}}),z=o.domain(),H=Bn(o),q=H&&z.length===0||!H&&z.some(ag)||m==="none";return{xScale:o,defaultizedProps:d,tickNumber:l,positionSign:O,skipAxisRendering:q,classes:E,Line:k,Tick:R,TickLabel:A,Label:_,axisTickLabelProps:L,axisLabelProps:C,reverse:u,isRtl:w}};function Ez(t){const{xScale:e,defaultizedProps:r,tickNumber:a,positionSign:o,skipAxisRendering:l,classes:u,Line:f,Tick:h,TickLabel:d,Label:m,axisTickLabelProps:y,axisLabelProps:v,reverse:b,isRtl:x}=gT(t),S=cz(),{position:w,disableLine:E,disableTicks:O,label:k,tickSize:R,valueFormatter:A,slotProps:_,tickInterval:$,tickLabelInterval:I,tickPlacement:L,tickLabelPlacement:C,tickLabelMinGap:z,sx:H,offset:q,height:it}=r,lt=In(),{left:U,top:Y,width:W,height:J}=lt,{instance:N}=Gr(),Z=ig(),at=O?4:R,ot=pf({scale:e,tickNumber:a,valueFormatter:A,tickInterval:$,tickPlacement:L,tickLabelPlacement:C,direction:"x"}),ut=bz(ot,{tickLabelStyle:y.style,tickLabelInterval:I,tickLabelMinGap:z,reverse:b,isMounted:S,isXInside:N.isXInside});if(l)return null;const dt=k?Al(k,v.style).height:0,ft={x:U+W/2,y:o*it},At=Math.max(0,it-(k?dt+Sz:0)-at-$p),bt=Z?yz(ut,lt,At,x,y.style):new Map(Array.from(ut).map(nt=>[nt,nt.formattedValue]));return D.jsxs(dT,{transform:`translate(0, ${w==="bottom"?Y+J+q:Y-q})`,className:u.root,sx:H,children:[!E&&D.jsx(f,G({x1:U,x2:U+W,className:u.line},_==null?void 0:_.axisLine)),ot.map((nt,ht)=>{const{offset:vt,labelOffset:ct}=nt,$t=ct??0,gt=o*(at+$p),Yt=N.isXInside(vt),re=bt.get(nt),Lt=ut.has(nt);return D.jsxs("g",{transform:`translate(${vt}, 0)`,className:u.tickContainer,children:[!O&&Yt&&D.jsx(h,G({y2:o*at,className:u.tick},_==null?void 0:_.axisTick)),re!==void 0&&Lt&&D.jsx(d,G({x:$t,y:gt},y,{text:re}))]},ht)}),k&&D.jsx("g",{className:u.label,children:D.jsx(m,G({},ft,v,{text:k}))})]})}const js={start:0,extremities:0,end:1,middle:.5,tick:0};function yT(t){const{scale:e,tickInterval:r,tickLabelPlacement:a="middle",tickPlacement:o="extremities",groups:l}=t;return j.useMemo(()=>{const u=e.domain(),f=typeof r=="function"&&u.filter(r)||typeof r=="object"&&r||u;if(e.bandwidth()>0){const h=ix(f,l,o,a,e);return h[0]&&(h[0].ignoreTick=!0),[{formattedValue:void 0,offset:e.range()[0],labelOffset:0,groupIndex:l.length-1},...h,{formattedValue:void 0,offset:e.range()[1],labelOffset:0,groupIndex:l.length-1}]}return ix(f,l,o,a,e)},[e,r,l,o,a])}function ix(t,e,r,a,o){const l=[],u=new Map;let f=0;for(let h=0;h<e.length;h+=1)for(let d=0;d<t.length;d+=1){const m=t[d],y=e[h].getValue(m,d),v=l[l.length-1];if((v==null?void 0:v.value)!==y||(v==null?void 0:v.groupIndex)!==h){f=1;const x=Bn(o)?o(m)-(o.step()-o.bandwidth())/2+js[r]*o.step():o(m),S=o.step()*f*(js[a]-js[r]);l.push({value:y,formattedValue:`${y}`,offset:x,groupIndex:h,dataIndex:d,ignoreTick:!1,labelOffset:S}),u.has(d)||u.set(d,new Set);const w=u.get(d);for(const E of w.values())l[E].ignoreTick=!0;w.add(l.length-1)}else{f+=1;const x=o.step()*f*(js[a]-js[r]);v.labelOffset=x}}return l}const ax={tickSize:6},Mz=(t,e,r)=>{const a=t[e]??{},o=r??ax.tickSize,l=o*e*2+o;return G({},ax,a,{tickSize:a.tickSize??l})};function kz(t){const{xScale:e,defaultizedProps:r,positionSign:a,skipAxisRendering:o,classes:l,Line:u,Tick:f,TickLabel:h,Label:d,axisTickLabelProps:m,axisLabelProps:y}=gT(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:w,valueFormatter:E,slotProps:O,tickInterval:k,tickPlacement:R,tickLabelPlacement:A,sx:_,offset:$,height:I}=r,L=r.groups,C=In(),{left:z,top:H,width:q,height:it}=C,{instance:lt}=Gr(),U={x:z+q/2,y:a*I},Y=yT({scale:e,tickInterval:k,tickPlacement:R,tickLabelPlacement:A,groups:L});return o?null:D.jsxs(dT,{transform:`translate(0, ${v==="bottom"?H+it+$:H-$})`,className:l.root,sx:_,children:[!b&&D.jsx(u,G({x1:z,x2:z+q,className:l.line},O==null?void 0:O.axisLine)),Y.map((W,J)=>{const{offset:N,labelOffset:Z}=W,at=Z??0,ot=lt.isXInside(N),ut=W.formattedValue,dt=W.ignoreTick??!1,ft=W.groupIndex??0,At=Mz(L,ft,w),bt=a*At.tickSize,nt=a*(At.tickSize+$p);return D.jsxs("g",{transform:`translate(${N}, 0)`,className:l.tickContainer,"data-group-index":ft,children:[!x&&!dt&&ot&&D.jsx(f,G({y2:bt,className:l.tick},O==null?void 0:O.axisTick)),ut!==void 0&&D.jsx(h,G({x:at,y:nt},m,{style:G({},m.style,At.tickLabelStyle),text:ut}))]},J)}),S&&D.jsx("g",{className:l.label,children:D.jsx(d,G({},U,y,{text:S}))})]})}function Rz(t){const{xAxis:e,xAxisIds:r}=Yr(),a=e[t.axisId??r[0]];return"groups"in a&&Array.isArray(a.groups)?D.jsx(kz,G({},t)):D.jsx(Ez,G({},t))}function Oz(t,e,r,a,o){const l=new Map,u=df((o==null?void 0:o.angle)??0);let f=1,h=1;(o==null?void 0:o.textAnchor)==="start"?(f=1/0,h=1):(o==null?void 0:o.textAnchor)==="end"?(f=1,h=1/0):(f=2,h=2),u>180&&([f,h]=[h,f]),a&&([f,h]=[h,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)*h),y=v=>sT(v,{width:r,height:m,angle:u,measureText:b=>Al(b,o)});l.set(d,lT(d.formattedValue.toString(),y))}return l}const Dz=t=>{const{classes:e,position:r,id:a}=t,o={root:["root","directionY",r,`id-${a}`],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]};return Ue(o,uT,e)},Np=2,_z=2,vT=zt(fT,{name:"MuiChartsYAxis",slot:"Root"})({}),zz={disableLine:!1,disableTicks:!1,tickSize:6},$z=["scale","tickNumber","reverse"],bT=t=>{const{yAxis:e,yAxisIds:r}=qr(),a=e[t.axisId??r[0]],{scale:o,tickNumber:l,reverse:u}=a,f=te(a,$z),h=Kn({props:G({},f,t),name:"MuiChartsYAxis"}),d=G({},zz,h),{position:m,tickLabelStyle:y,labelStyle:v,slots:b,slotProps:x}=d,S=pl(),w=hm(),E=Dz(d),O=m==="right"?1:-1,k=typeof(y==null?void 0:y.fontSize)=="number"?y.fontSize:12,R=(b==null?void 0:b.axisLine)??"line",A=(b==null?void 0:b.axisTick)??"line",_=(b==null?void 0:b.axisTickLabel)??Ou,$=(b==null?void 0:b.axisLabel)??Ou,I=hT((m==="right"?-90:90)-((y==null?void 0:y.angle)??0)),L=pT((m==="right"?-90:90)-((y==null?void 0:y.angle)??0)),C=_r({elementType:_,externalSlotProps:x==null?void 0:x.axisTickLabel,additionalProps:{style:G({},S.typography.caption,{fontSize:k,textAnchor:w?mT(I):I,dominantBaseline:L},y)},className:E.tickLabel,ownerState:{}}),z=_r({elementType:$,externalSlotProps:x==null?void 0:x.axisLabel,additionalProps:{style:G({},S.typography.body1,{lineHeight:1,fontSize:14,angle:O*90,textAnchor:"middle",dominantBaseline:"text-before-edge"},v)},ownerState:{}}),H=_r({elementType:R,externalSlotProps:x==null?void 0:x.axisLine,additionalProps:{strokeLinecap:"square"},ownerState:{}}),q=o.domain(),it=Bn(o),lt=it&&q.length===0||!it&&q.some(ag)||m==="none";return{yScale:o,defaultizedProps:d,tickNumber:l,positionSign:O,skipAxisRendering:lt,classes:E,Line:R,Tick:A,TickLabel:_,Label:$,axisTickLabelProps:C,axisLabelProps:z,lineProps:H,reverse:u,isRtl:w}};function Nz(t){const{yScale:e,defaultizedProps:r,tickNumber:a,positionSign:o,skipAxisRendering:l,classes:u,Line:f,Tick:h,TickLabel:d,Label:m,axisTickLabelProps:y,axisLabelProps:v,lineProps:b,isRtl:x}=bT(t),{position:S,disableLine:w,disableTicks:E,label:O,tickSize:k,valueFormatter:R,slotProps:A,tickPlacement:_,tickLabelPlacement:$,tickInterval:I,tickLabelInterval:L,sx:C,offset:z,width:H}=r,q=In(),{left:it,top:lt,width:U,height:Y}=q,{instance:W}=Gr(),J=ig(),N=E?4:k,Z=pf({scale:e,tickNumber:a,valueFormatter:R,tickPlacement:_,tickLabelPlacement:$,tickInterval:I,direction:"y"});if(l)return null;const at={x:o*H,y:lt+Y/2},ot=Math.max(0,H-(O?Al(O,v.style).height+_z:0)-N-Np),ut=J?Oz(Z,q,ot,x,y.style):new Map(Array.from(Z).map(dt=>[dt,dt.formattedValue]));return D.jsxs(vT,{transform:`translate(${S==="right"?it+U+z:it-z}, 0)`,className:u.root,sx:C,children:[!w&&D.jsx(f,G({y1:lt,y2:lt+Y,className:u.line},b)),Z.map((dt,ft)=>{const{offset:At,labelOffset:bt,value:nt}=dt,ht=o*(N+Np),vt=bt,ct=typeof L=="function"&&!(L!=null&&L(nt,ft)),$t=W.isYInside(At),gt=ut.get(dt);return $t?D.jsxs("g",{transform:`translate(0, ${At})`,className:u.tickContainer,children:[!E&&D.jsx(h,G({x2:o*N,className:u.tick},A==null?void 0:A.axisTick)),gt!==void 0&&!ct&&D.jsx(d,G({x:ht,y:vt,text:gt},y))]},ft):null}),O&&J&&D.jsx("g",{className:u.label,children:D.jsx(m,G({},at,v,{text:O}))})]})}const ox={tickSize:6},jz=(t,e,r)=>{const a=t[e]??{},o=r??ox.tickSize,l=o*e*2+o;return G({},ox,a,{tickSize:a.tickSize??l})};function Lz(t){const{yScale:e,defaultizedProps:r,positionSign:a,skipAxisRendering:o,classes:l,Line:u,Tick:f,TickLabel:h,Label:d,axisTickLabelProps:m,axisLabelProps:y,lineProps:v}=bT(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:w,tickSize:E,valueFormatter:O,slotProps:k,tickInterval:R,tickPlacement:A,tickLabelPlacement:_,sx:$,offset:I,width:L}=r,C=r.groups,z=In(),{left:H,top:q,width:it,height:lt}=z,{instance:U}=Gr(),Y={x:a*L,y:q+lt/2},W=yT({scale:e,tickInterval:R,tickPlacement:A,tickLabelPlacement:_,groups:C});return o?null:D.jsxs(vT,{transform:`translate(${b==="right"?H+it+I:H-I}, 0)`,className:l.root,sx:$,children:[!x&&D.jsx(u,G({y1:q,y2:q+lt,className:l.line},v)),W.map((J,N)=>{const{offset:Z,labelOffset:at}=J,ot=at??0,ut=U.isYInside(Z),dt=J.formattedValue,ft=J.ignoreTick??!1,At=J.groupIndex??0,bt=jz(C,At,E),nt=a*bt.tickSize,ht=a*(bt.tickSize+Np);return D.jsxs("g",{transform:`translate(0, ${Z})`,className:l.tickContainer,"data-group-index":At,children:[!S&&!ft&&ut&&D.jsx(f,G({x2:nt,className:l.tick},k==null?void 0:k.axisTick)),dt!==void 0&&D.jsx(h,G({x:ht,y:ot},m,{style:G({},m.style,bt.tickLabelStyle),text:dt}))]},N)}),w&&D.jsx("g",{className:l.label,children:D.jsx(d,G({},Y,y,{text:w}))})]})}function Uz(t){const{yAxis:e,yAxisIds:r}=qr(),a=e[t.axisId??r[0]];return"groups"in a&&Array.isArray(a.groups)?D.jsx(Lz,G({},t)):D.jsx(Nz,G({},t))}function Bz(t){const{slots:e,slotProps:r}=t,{xAxisIds:a,xAxis:o}=Yr(),{yAxisIds:l,yAxis:u}=qr();return D.jsxs(j.Fragment,{children:[a.map(f=>!o[f].position||o[f].position==="none"?null:D.jsx(Rz,{slots:e,slotProps:r,axisId:f},f)),l.map(f=>!u[f].position||u[f].position==="none"?null:D.jsx(Uz,{slots:e,slotProps:r,axisId:f},f))]})}function Iz(){return RM}const So=ik;function oa(t){return rk(t)}function Hz(t){return typeof t.main=="string"}function Pz(t,e=[]){if(!Hz(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&&Pz(e,t)}function Gz(t){return je("MuiTypography",t)}Le("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Yz={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},qz=Iz(),Vz=t=>{const{align:e,gutterBottom:r,noWrap:a,paragraph:o,variant:l,classes:u}=t,f={root:["root",l,t.align!=="inherit"&&`align${Wt(e)}`,r&&"gutterBottom",a&&"noWrap",o&&"paragraph"]};return Ue(f,Gz,u)},Xz=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}}]}})),sx={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},og=j.forwardRef(function(e,r){const{color:a,...o}=oa({props:e,name:"MuiTypography"}),l=!Yz[a],u=qz({...o,...l&&{color:a}}),{align:f="inherit",className:h,component:d,gutterBottom:m=!1,noWrap:y=!1,paragraph:v=!1,variant:b="body1",variantMapping:x=sx,...S}=u,w={...u,align:f,color:a,className:h,component:d,gutterBottom:m,noWrap:y,paragraph:v,variant:b,variantMapping:x},E=d||(v?"p":x[b]||sx[b])||"span",O=Vz(w);return D.jsx(Xz,{as:E,ref:r,className:Jt(O.root,h),...S,ownerState:w,style:{...f!=="inherit"&&{"--Typography-textAlign":f},...S.style}})});function Kz(t){return je("MuiChartsTooltip",t)}const ro=Le("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"]},Kz,t);function Zz(){var _,$,I;const t=ne(),e=Et(t,w2),r=Et(t,Hr),a=hf(),{xAxis:o,xAxisIds:l}=Yr(),{yAxis:u,yAxisIds:f}=qr(),{zAxis:h,zAxisIds:d}=ng(),{rotationAxis:m,rotationAxisIds:y}=J2(),{radiusAxis:v,radiusAxisIds:b}=h4(),x=a.xAxisId??l[0],S=a.yAxisId??f[0],w=a.zAxisId??d[0],E=a.rotationAxisId??y[0],O=a.radiusAxisId??b[0];if(!e)return null;const k=(_=a[e.type])==null?void 0:_.series[e.seriesId];if(!k)return null;const R=((I=($=r[k.type]).colorProcessor)==null?void 0:I.call($,k,x&&o[x],S&&u[S],w&&h[w]))??(()=>""),A={};return x!==void 0&&(A.x=o[x]),S!==void 0&&(A.y=u[S]),E!==void 0&&(A.rotation=m[E]),O!==void 0&&(A.radius=v[O]),r[k.type].tooltipGetter({series:k,axesConfig:A,getColor:R,identifier:e})}const jp=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)}}})),Up=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(og,{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 Qz(t){return je("MuiChartsLabelMark",t)}const to=Le("MuiChartsLabelMark",["root","line","square","circle","mask","fill"]),Fz=t=>{const{type:e}=t;return Ue({root:typeof e=="function"?["root"]:["root",e],mask:["mask"],fill:["fill"]},Qz,t.classes)},xT=(t,e,r)=>j.forwardRef(function(o,l){var v;const u=Kn({props:o,name:t}),f=typeof e.defaultProps=="function"?e.defaultProps(u):e.defaultProps??{},h=Ji(f,u),d=pl(),m=(v=e.classesResolver)==null?void 0:v.call(e,h,d),y=j.forwardRef(r);return D.jsx(y,G({},h,{classes:m,ref:l}))}),Wz=["type","color","className","classes"],Jz=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%"}})),Du=xT("MuiChartsLabelMark",{defaultProps:{type:"square"},classesResolver:Fz},function(e,r){const{type:a,color:o,className:l,classes:u}=e,f=te(e,Wz),h=a;return D.jsx(Jz,G({className:Jt(u==null?void 0:u.root,l),ownerState:e,"aria-hidden":"true",ref:r},f,{children:D.jsx("div",{className:u==null?void 0:u.mask,children:typeof h=="function"?D.jsx(h,{className:u==null?void 0:u.fill,color:o}):D.jsx("svg",{viewBox:"0 0 24 24",preserveAspectRatio:a==="line"?"none":void 0,children:a==="circle"?D.jsx("circle",{className:u==null?void 0:u.fill,r:"12",cx:"12",cy:"12",fill:o}):D.jsx("rect",{className:u==null?void 0:u.fill,width:"24",height:"24",fill:o})})})}))});function t6(t){const{classes:e,sx:r}=t,a=Zz(),o=mf(e);if(!a)return null;if("values"in a){const{label:d,color:m,markType:y}=a;return D.jsx(jp,{sx:r,className:o.paper,children:D.jsxs(Lp,{className:o.table,children:[D.jsxs(og,{component:"caption",children:[D.jsx("div",{className:o.markContainer,children:D.jsx(Du,{type:y,color:m,className:o.mark})}),d]}),D.jsx("tbody",{children:a.values.map(({formattedValue:v,label:b})=>D.jsxs(Up,{className:o.row,children:[D.jsx(ao,{className:Jt(o.labelCell,o.cell),component:"th",children:b}),D.jsx(ao,{className:Jt(o.valueCell,o.cell),component:"td",children:v})]},b))})]})})}const{color:l,label:u,formattedValue:f,markType:h}=a;return D.jsx(jp,{sx:r,className:o.paper,children:D.jsx(Lp,{className:o.table,children:D.jsx("tbody",{children:D.jsxs(Up,{className:o.row,children:[D.jsxs(ao,{className:Jt(o.labelCell,o.cell),component:"th",children:[D.jsx("div",{className:o.markContainer,children:D.jsx(Du,{type:h,color:l,className:o.mark})}),u]}),D.jsx(ao,{className:Jt(o.valueCell,o.cell),component:"td",children:f})]})})})})}function e6(t){const e=ne(),r=Et(e,Hr);return j.useMemo(()=>{const o={};return Object.keys(r).forEach(l=>{o[l]=r[l].colorProcessor}),o},[r])}const n6=pS({themeId:ar});function r6(){const t=rg(),[e,r]=j.useState(null);return j.useEffect(()=>{const a=t.current;if(a===null)return()=>{};const o=u=>{u.pointerType!=="mouse"&&r(null)},l=u=>{r({pointerType:u.pointerType})};return a.addEventListener("pointerenter",l),a.addEventListener("pointerup",o),()=>{a.removeEventListener("pointerenter",l),a.removeEventListener("pointerup",o)}},[t]),e}function i6(t){return t instanceof Date?t.toUTCString():t.toLocaleString()}const a6="@media (pointer: fine)",o6=()=>n6(a6,{defaultMatches:!0}),ST=(t,e)=>e,TT=(t,e)=>e;function CT(t,e,r){return Array.isArray(r)?r.map(a=>tx(e.axis[a],t)):tx(e.axis[r],t)}const wT=pt([Sl,Tl,l4],(t,e,r)=>t===null||e===null?null:c4(r)(t,e)),s6=pt([wT,aa,ST],(t,e,r=e.axisIds[0])=>t===null?null:CT(t,e,r)),AT=pt([wT,aa,TT],(t,e,r=e.axisIds)=>t===null?null:CT(t,e,r));pt([aa,s6,ST],(t,e,r=t.axisIds[0])=>{var o;if(e===null||e===-1||t.axisIds.length===0)return null;const a=(o=t.axis[r])==null?void 0:o.data;return a?a[e]:null});pt([aa,AT,TT],(t,e,r=t.axisIds)=>e===null?null:r.map((a,o)=>{var u;const l=e[o];return l===-1?null:(u=t.axis[a].data)==null?void 0:u[l]}));const ET=pt([AT,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:uo}});pt([],()=>[]);const l6=pt([ET],t=>t.length>0);function dp(t,e,r){var u;const a=((u=t.data)==null?void 0:u[e])??null,l=(t.valueFormatter??(f=>t.scaleType==="utc"?i6(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 c6(t={}){const{multipleAxes:e,directions:r}=t,a=f4(),o=d4(),l=p4(),u=ne(),f=Et(u,k2),h=Et(u,R2),d=Et(u,ET),m=hf(),{xAxis:y}=Yr(),{yAxis:v}=qr(),{zAxis:b,zAxisIds:x}=ng(),{rotationAxis:S}=J2(),w=e6();if(f.length===0&&h.length===0&&d.length===0)return null;const E=[];return(r===void 0||r.includes("x"))&&f.forEach(({axisId:O,dataIndex:k})=>{!e&&E.length>1||E.push(dp(y[O],k,"x"))}),(r===void 0||r.includes("y"))&&h.forEach(({axisId:O,dataIndex:k})=>{!e&&E.length>1||E.push(dp(v[O],k,"y"))}),(r===void 0||r.includes("rotation"))&&d.forEach(({axisId:O,dataIndex:k})=>{!e&&E.length>1||E.push(dp(S[O],k,"rotation"))}),Object.keys(m).filter(Km).forEach(O=>{const k=m[O];return k?k.seriesOrder.forEach(R=>{var L;const A=k.series[R],_=A.xAxisId??a.id,$=A.yAxisId??o.id,I=E.findIndex(({axisDirection:C,axisId:z})=>C==="x"&&z===_||C==="y"&&z===$);if(I>=0){const C="zAxisId"in A?A.zAxisId:x[0],{dataIndex:z}=E[I],H=((L=w[O])==null?void 0:L.call(w,A,y[_],v[$],C?b[C]:void 0)(z))??"",q=A.data[z]??null,it=A.valueFormatter(q,{dataIndex:z}),lt=Xn(A.label,"tooltip")??null;E[I].seriesItems.push({seriesId:R,color:H,value:q,formattedValue:it,formattedLabel:lt,markType:A.labelMarkType})}}):[]}),Object.keys(m).filter(eg).forEach(O=>{const k=m[O];return k?k.seriesOrder.forEach(R=>{var I;const A=k.series[R],_=A.rotationAxisId??(l==null?void 0:l.id),$=E.findIndex(({axisDirection:L,axisId:C})=>L==="rotation"&&C===_);if($>=0){const{dataIndex:L}=E[$],C=((I=w[O])==null?void 0:I.call(w,A)(L))??"",z=A.data[L]??null,H=A.valueFormatter(z,{dataIndex:L}),q=Xn(A.label,"tooltip")??null;E[$].seriesItems.push({seriesId:R,color:C,value:z,formattedValue:H,formattedLabel:q,markType:A.labelMarkType})}}):[]}),e?E:E.length===0?E[0]:null}function u6(t){return c6(G({},t,{multipleAxes:!0}))}function f6(t){const e=mf(t.classes),r=u6();return r===null?null:D.jsx(jp,{sx:t.sx,className:e.paper,children:r.map(({axisId:a,mainAxis:o,axisValue:l,axisFormattedValue:u,seriesItems:f})=>D.jsxs(Lp,{className:e.table,children:[l!=null&&!o.hideTooltip&&D.jsx(og,{component:"caption",children:u}),D.jsx("tbody",{children:f.map(({seriesId:h,color:d,formattedValue:m,formattedLabel:y,markType:v})=>m==null?null:D.jsxs(Up,{className:e.row,children:[D.jsxs(ao,{className:Jt(e.labelCell,e.cell),component:"th",children:[D.jsx("div",{className:e.markContainer,children:D.jsx(Du,{type:v,color:d,className:e.mark})}),y||null]}),D.jsx(ao,{className:Jt(e.valueCell,e.cell),component:"td",children:m})]},h))})]},a))})}var an="top",jn="bottom",Ln="right",on="left",sg="auto",El=[an,jn,Ln,on],To="start",il="end",d6="clippingParents",MT="viewport",Ls="popper",h6="reference",lx=El.reduce(function(t,e){return t.concat([e+"-"+To,e+"-"+il])},[]),kT=[].concat(El,[sg]).reduce(function(t,e){return t.concat([e,e+"-"+To,e+"-"+il])},[]),p6="beforeRead",m6="read",g6="afterRead",y6="beforeMain",v6="main",b6="afterMain",x6="beforeWrite",S6="write",T6="afterWrite",C6=[p6,m6,g6,y6,v6,b6,x6,S6,T6];function cr(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 lg(t){if(typeof ShadowRoot>"u")return!1;var e=vn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function w6(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var a=e.styles[r]||{},o=e.attributes[r]||{},l=e.elements[r];!Nn(l)||!cr(l)||(Object.assign(l.style,a),Object.keys(o).forEach(function(u){var f=o[u];f===!1?l.removeAttribute(u):l.setAttribute(u,f===!0?"":f)}))})}function A6(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 o=e.elements[a],l=e.attributes[a]||{},u=Object.keys(e.styles.hasOwnProperty(a)?e.styles[a]:r[a]),f=u.reduce(function(h,d){return h[d]="",h},{});!Nn(o)||!cr(o)||(Object.assign(o.style,f),Object.keys(l).forEach(function(h){o.removeAttribute(h)}))})}}const E6={name:"applyStyles",enabled:!0,phase:"write",fn:w6,effect:A6,requires:["computeStyles"]};function lr(t){return t.split("-")[0]}var Qi=Math.max,_u=Math.min,Co=Math.round;function Bp(){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 RT(){return!/^((?!chrome|android).)*safari/i.test(Bp())}function wo(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var a=t.getBoundingClientRect(),o=1,l=1;e&&Nn(t)&&(o=t.offsetWidth>0&&Co(a.width)/t.offsetWidth||1,l=t.offsetHeight>0&&Co(a.height)/t.offsetHeight||1);var u=ea(t)?vn(t):window,f=u.visualViewport,h=!RT()&&r,d=(a.left+(h&&f?f.offsetLeft:0))/o,m=(a.top+(h&&f?f.offsetTop:0))/l,y=a.width/o,v=a.height/l;return{width:y,height:v,top:m,right:d+y,bottom:m+v,left:d,x:d,y:m}}function cg(t){var e=wo(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&&lg(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 M6(t){return["table","td","th"].indexOf(cr(t))>=0}function Ti(t){return((ea(t)?t.ownerDocument:t.document)||window.document).documentElement}function gf(t){return cr(t)==="html"?t:t.assignedSlot||t.parentNode||(lg(t)?t.host:null)||Ti(t)}function cx(t){return!Nn(t)||Br(t).position==="fixed"?null:t.offsetParent}function k6(t){var e=/firefox/i.test(Bp()),r=/Trident/i.test(Bp());if(r&&Nn(t)){var a=Br(t);if(a.position==="fixed")return null}var o=gf(t);for(lg(o)&&(o=o.host);Nn(o)&&["html","body"].indexOf(cr(o))<0;){var l=Br(o);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 o;o=o.parentNode}return null}function Ml(t){for(var e=vn(t),r=cx(t);r&&M6(r)&&Br(r).position==="static";)r=cx(r);return r&&(cr(r)==="html"||cr(r)==="body"&&Br(r).position==="static")?e:r||k6(t)||e}function ug(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Vs(t,e,r){return Qi(t,_u(e,r))}function R6(t,e,r){var a=Vs(t,e,r);return a>r?r:a}function DT(){return{top:0,right:0,bottom:0,left:0}}function _T(t){return Object.assign({},DT(),t)}function zT(t,e){return e.reduce(function(r,a){return r[a]=t,r},{})}var O6=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,_T(typeof e!="number"?e:zT(e,El))};function D6(t){var e,r=t.state,a=t.name,o=t.options,l=r.elements.arrow,u=r.modifiersData.popperOffsets,f=lr(r.placement),h=ug(f),d=[on,Ln].indexOf(f)>=0,m=d?"height":"width";if(!(!l||!u)){var y=O6(o.padding,r),v=cg(l),b=h==="y"?an:on,x=h==="y"?jn:Ln,S=r.rects.reference[m]+r.rects.reference[h]-u[h]-r.rects.popper[m],w=u[h]-r.rects.reference[h],E=Ml(l),O=E?h==="y"?E.clientHeight||0:E.clientWidth||0:0,k=S/2-w/2,R=y[b],A=O-v[m]-y[x],_=O/2-v[m]/2+k,$=Vs(R,_,A),I=h;r.modifiersData[a]=(e={},e[I]=$,e.centerOffset=$-_,e)}}function _6(t){var e=t.state,r=t.options,a=r.element,o=a===void 0?"[data-popper-arrow]":a;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||OT(e.elements.popper,o)&&(e.elements.arrow=o))}const z6={name:"arrow",enabled:!0,phase:"main",fn:D6,effect:_6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ao(t){return t.split("-")[1]}var $6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function N6(t,e){var r=t.x,a=t.y,o=e.devicePixelRatio||1;return{x:Co(r*o)/o||0,y:Co(a*o)/o||0}}function ux(t){var e,r=t.popper,a=t.popperRect,o=t.placement,l=t.variation,u=t.offsets,f=t.position,h=t.gpuAcceleration,d=t.adaptive,m=t.roundOffsets,y=t.isFixed,v=u.x,b=v===void 0?0:v,x=u.y,S=x===void 0?0:x,w=typeof m=="function"?m({x:b,y:S}):{x:b,y:S};b=w.x,S=w.y;var E=u.hasOwnProperty("x"),O=u.hasOwnProperty("y"),k=on,R=an,A=window;if(d){var _=Ml(r),$="clientHeight",I="clientWidth";if(_===vn(r)&&(_=Ti(r),Br(_).position!=="static"&&f==="absolute"&&($="scrollHeight",I="scrollWidth")),_=_,o===an||(o===on||o===Ln)&&l===il){R=jn;var L=y&&_===A&&A.visualViewport?A.visualViewport.height:_[$];S-=L-a.height,S*=h?1:-1}if(o===on||(o===an||o===jn)&&l===il){k=Ln;var C=y&&_===A&&A.visualViewport?A.visualViewport.width:_[I];b-=C-a.width,b*=h?1:-1}}var z=Object.assign({position:f},d&&$6),H=m===!0?N6({x:b,y:S},vn(r)):{x:b,y:S};if(b=H.x,S=H.y,h){var q;return Object.assign({},z,(q={},q[R]=O?"0":"",q[k]=E?"0":"",q.transform=(A.devicePixelRatio||1)<=1?"translate("+b+"px, "+S+"px)":"translate3d("+b+"px, "+S+"px, 0)",q))}return Object.assign({},z,(e={},e[R]=O?S+"px":"",e[k]=E?b+"px":"",e.transform="",e))}function j6(t){var e=t.state,r=t.options,a=r.gpuAcceleration,o=a===void 0?!0:a,l=r.adaptive,u=l===void 0?!0:l,f=r.roundOffsets,h=f===void 0?!0:f,d={placement:lr(e.placement),variation:Ao(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ux(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:u,roundOffsets:h})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ux(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:h})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const L6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:j6,data:{}};var Wc={passive:!0};function U6(t){var e=t.state,r=t.instance,a=t.options,o=a.scroll,l=o===void 0?!0:o,u=a.resize,f=u===void 0?!0:u,h=vn(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return l&&d.forEach(function(m){m.addEventListener("scroll",r.update,Wc)}),f&&h.addEventListener("resize",r.update,Wc),function(){l&&d.forEach(function(m){m.removeEventListener("scroll",r.update,Wc)}),f&&h.removeEventListener("resize",r.update,Wc)}}const B6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:U6,data:{}};var I6={left:"right",right:"left",bottom:"top",top:"bottom"};function lu(t){return t.replace(/left|right|bottom|top/g,function(e){return I6[e]})}var H6={start:"end",end:"start"};function fx(t){return t.replace(/start|end/g,function(e){return H6[e]})}function fg(t){var e=vn(t),r=e.pageXOffset,a=e.pageYOffset;return{scrollLeft:r,scrollTop:a}}function dg(t){return wo(Ti(t)).left+fg(t).scrollLeft}function P6(t,e){var r=vn(t),a=Ti(t),o=r.visualViewport,l=a.clientWidth,u=a.clientHeight,f=0,h=0;if(o){l=o.width,u=o.height;var d=RT();(d||!d&&e==="fixed")&&(f=o.offsetLeft,h=o.offsetTop)}return{width:l,height:u,x:f+dg(t),y:h}}function G6(t){var e,r=Ti(t),a=fg(t),o=(e=t.ownerDocument)==null?void 0:e.body,l=Qi(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),u=Qi(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),f=-a.scrollLeft+dg(t),h=-a.scrollTop;return Br(o||r).direction==="rtl"&&(f+=Qi(r.clientWidth,o?o.clientWidth:0)-l),{width:l,height:u,x:f,y:h}}function hg(t){var e=Br(t),r=e.overflow,a=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+a)}function $T(t){return["html","body","#document"].indexOf(cr(t))>=0?t.ownerDocument.body:Nn(t)&&hg(t)?t:$T(gf(t))}function Xs(t,e){var r;e===void 0&&(e=[]);var a=$T(t),o=a===((r=t.ownerDocument)==null?void 0:r.body),l=vn(a),u=o?[l].concat(l.visualViewport||[],hg(a)?a:[]):a,f=e.concat(u);return o?f:f.concat(Xs(gf(u)))}function Ip(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Y6(t,e){var r=wo(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 dx(t,e,r){return e===MT?Ip(P6(t,r)):ea(e)?Y6(e,r):Ip(G6(Ti(t)))}function q6(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(o){return ea(o)&&OT(o,a)&&cr(o)!=="body"}):[]}function V6(t,e,r,a){var o=e==="clippingParents"?q6(t):[].concat(e),l=[].concat(o,[r]),u=l[0],f=l.reduce(function(h,d){var m=dx(t,d,a);return h.top=Qi(m.top,h.top),h.right=_u(m.right,h.right),h.bottom=_u(m.bottom,h.bottom),h.left=Qi(m.left,h.left),h},dx(t,u,a));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function NT(t){var e=t.reference,r=t.element,a=t.placement,o=a?lr(a):null,l=a?Ao(a):null,u=e.x+e.width/2-r.width/2,f=e.y+e.height/2-r.height/2,h;switch(o){case an:h={x:u,y:e.y-r.height};break;case jn:h={x:u,y:e.y+e.height};break;case Ln:h={x:e.x+e.width,y:f};break;case on:h={x:e.x-r.width,y:f};break;default:h={x:e.x,y:e.y}}var d=o?ug(o):null;if(d!=null){var m=d==="y"?"height":"width";switch(l){case To:h[d]=h[d]-(e[m]/2-r[m]/2);break;case il:h[d]=h[d]+(e[m]/2-r[m]/2);break}}return h}function al(t,e){e===void 0&&(e={});var r=e,a=r.placement,o=a===void 0?t.placement:a,l=r.strategy,u=l===void 0?t.strategy:l,f=r.boundary,h=f===void 0?d6:f,d=r.rootBoundary,m=d===void 0?MT:d,y=r.elementContext,v=y===void 0?Ls:y,b=r.altBoundary,x=b===void 0?!1:b,S=r.padding,w=S===void 0?0:S,E=_T(typeof w!="number"?w:zT(w,El)),O=v===Ls?h6:Ls,k=t.rects.popper,R=t.elements[x?O:v],A=V6(ea(R)?R:R.contextElement||Ti(t.elements.popper),h,m,u),_=wo(t.elements.reference),$=NT({reference:_,element:k,placement:o}),I=Ip(Object.assign({},k,$)),L=v===Ls?I:_,C={top:A.top-L.top+E.top,bottom:L.bottom-A.bottom+E.bottom,left:A.left-L.left+E.left,right:L.right-A.right+E.right},z=t.modifiersData.offset;if(v===Ls&&z){var H=z[o];Object.keys(C).forEach(function(q){var it=[Ln,jn].indexOf(q)>=0?1:-1,lt=[an,jn].indexOf(q)>=0?"y":"x";C[q]+=H[lt]*it})}return C}function X6(t,e){e===void 0&&(e={});var r=e,a=r.placement,o=r.boundary,l=r.rootBoundary,u=r.padding,f=r.flipVariations,h=r.allowedAutoPlacements,d=h===void 0?kT:h,m=Ao(a),y=m?f?lx:lx.filter(function(x){return Ao(x)===m}):El,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:o,rootBoundary:l,padding:u})[lr(S)],x},{});return Object.keys(b).sort(function(x,S){return b[x]-b[S]})}function K6(t){if(lr(t)===sg)return[];var e=lu(t);return[fx(t),e,fx(e)]}function Z6(t){var e=t.state,r=t.options,a=t.name;if(!e.modifiersData[a]._skip){for(var o=r.mainAxis,l=o===void 0?!0:o,u=r.altAxis,f=u===void 0?!0:u,h=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,w=e.options.placement,E=lr(w),O=E===w,k=h||(O||!x?[lu(w)]:K6(w)),R=[w].concat(k).reduce(function(ut,dt){return ut.concat(lr(dt)===sg?X6(e,{placement:dt,boundary:m,rootBoundary:y,padding:d,flipVariations:x,allowedAutoPlacements:S}):dt)},[]),A=e.rects.reference,_=e.rects.popper,$=new Map,I=!0,L=R[0],C=0;C<R.length;C++){var z=R[C],H=lr(z),q=Ao(z)===To,it=[an,jn].indexOf(H)>=0,lt=it?"width":"height",U=al(e,{placement:z,boundary:m,rootBoundary:y,altBoundary:v,padding:d}),Y=it?q?Ln:on:q?jn:an;A[lt]>_[lt]&&(Y=lu(Y));var W=lu(Y),J=[];if(l&&J.push(U[H]<=0),f&&J.push(U[Y]<=0,U[W]<=0),J.every(function(ut){return ut})){L=z,I=!1;break}$.set(z,J)}if(I)for(var N=x?3:1,Z=function(dt){var ft=R.find(function(At){var bt=$.get(At);if(bt)return bt.slice(0,dt).every(function(nt){return nt})});if(ft)return L=ft,"break"},at=N;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 Q6={name:"flip",enabled:!0,phase:"main",fn:Z6,requiresIfExists:["offset"],data:{_skip:!1}};function hx(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 px(t){return[an,Ln,jn,on].some(function(e){return t[e]>=0})}function F6(t){var e=t.state,r=t.name,a=e.rects.reference,o=e.rects.popper,l=e.modifiersData.preventOverflow,u=al(e,{elementContext:"reference"}),f=al(e,{altBoundary:!0}),h=hx(u,a),d=hx(f,o,l),m=px(h),y=px(d);e.modifiersData[r]={referenceClippingOffsets:h,popperEscapeOffsets:d,isReferenceHidden:m,hasPopperEscaped:y},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":y})}const W6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:F6};function J6(t,e,r){var a=lr(t),o=[on,an].indexOf(a)>=0?-1:1,l=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,u=l[0],f=l[1];return u=u||0,f=(f||0)*o,[on,Ln].indexOf(a)>=0?{x:f,y:u}:{x:u,y:f}}function t$(t){var e=t.state,r=t.options,a=t.name,o=r.offset,l=o===void 0?[0,0]:o,u=kT.reduce(function(m,y){return m[y]=J6(y,e.rects,l),m},{}),f=u[e.placement],h=f.x,d=f.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=h,e.modifiersData.popperOffsets.y+=d),e.modifiersData[a]=u}const e$={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:t$};function n$(t){var e=t.state,r=t.name;e.modifiersData[r]=NT({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const r$={name:"popperOffsets",enabled:!0,phase:"read",fn:n$,data:{}};function i$(t){return t==="x"?"y":"x"}function a$(t){var e=t.state,r=t.options,a=t.name,o=r.mainAxis,l=o===void 0?!0:o,u=r.altAxis,f=u===void 0?!1:u,h=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,w=al(e,{boundary:h,rootBoundary:d,padding:y,altBoundary:m}),E=lr(e.placement),O=Ao(e.placement),k=!O,R=ug(E),A=i$(R),_=e.modifiersData.popperOffsets,$=e.rects.reference,I=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),z=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,H={x:0,y:0};if(_){if(l){var q,it=R==="y"?an:on,lt=R==="y"?jn:Ln,U=R==="y"?"height":"width",Y=_[R],W=Y+w[it],J=Y-w[lt],N=b?-I[U]/2:0,Z=O===To?$[U]:I[U],at=O===To?-I[U]:-$[U],ot=e.elements.arrow,ut=b&&ot?cg(ot):{width:0,height:0},dt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:DT(),ft=dt[it],At=dt[lt],bt=Vs(0,$[U],ut[U]),nt=k?$[U]/2-N-bt-ft-C.mainAxis:Z-bt-ft-C.mainAxis,ht=k?-$[U]/2+N+bt+At+C.mainAxis:at+bt+At+C.mainAxis,vt=e.elements.arrow&&Ml(e.elements.arrow),ct=vt?R==="y"?vt.clientTop||0:vt.clientLeft||0:0,$t=(q=z==null?void 0:z[R])!=null?q:0,gt=Y+nt-$t-ct,Yt=Y+ht-$t,re=Vs(b?_u(W,gt):W,Y,b?Qi(J,Yt):J);_[R]=re,H[R]=re-Y}if(f){var Lt,Be=R==="x"?an:on,we=R==="x"?jn:Ln,Ae=_[A],De=A==="y"?"height":"width",St=Ae+w[Be],Ci=Ae-w[we],Vr=[an,on].indexOf(E)!==-1,wi=(Lt=z==null?void 0:z[A])!=null?Lt:0,Hn=Vr?St:Ae-$[De]-I[De]-wi+C.altAxis,ve=Vr?Ae+$[De]+I[De]-wi-C.altAxis:Ci,Fe=b&&Vr?R6(Hn,Ae,ve):Vs(b?Hn:St,Ae,b?ve:Ci);_[A]=Fe,H[A]=Fe-Ae}e.modifiersData[a]=H}}const o$={name:"preventOverflow",enabled:!0,phase:"main",fn:a$,requiresIfExists:["offset"]};function s$(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function l$(t){return t===vn(t)||!Nn(t)?fg(t):s$(t)}function c$(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 u$(t,e,r){r===void 0&&(r=!1);var a=Nn(e),o=Nn(e)&&c$(e),l=Ti(e),u=wo(t,o,r),f={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(a||!a&&!r)&&((cr(e)!=="body"||hg(l))&&(f=l$(e)),Nn(e)?(h=wo(e,!0),h.x+=e.clientLeft,h.y+=e.clientTop):l&&(h.x=dg(l))),{x:u.left+f.scrollLeft-h.x,y:u.top+f.scrollTop-h.y,width:u.width,height:u.height}}function f$(t){var e=new Map,r=new Set,a=[];t.forEach(function(l){e.set(l.name,l)});function o(l){r.add(l.name);var u=[].concat(l.requires||[],l.requiresIfExists||[]);u.forEach(function(f){if(!r.has(f)){var h=e.get(f);h&&o(h)}}),a.push(l)}return t.forEach(function(l){r.has(l.name)||o(l)}),a}function d$(t){var e=f$(t);return C6.reduce(function(r,a){return r.concat(e.filter(function(o){return o.phase===a}))},[])}function h$(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function p$(t){var e=t.reduce(function(r,a){var o=r[a.name];return r[a.name]=o?Object.assign({},o,a,{options:Object.assign({},o.options,a.options),data:Object.assign({},o.data,a.data)}):a,r},{});return Object.keys(e).map(function(r){return e[r]})}var mx={placement:"bottom",modifiers:[],strategy:"absolute"};function gx(){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 m$(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,a=r===void 0?[]:r,o=e.defaultOptions,l=o===void 0?mx:o;return function(f,h,d){d===void 0&&(d=l);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},mx,l),modifiersData:{},elements:{reference:f,popper:h},attributes:{},styles:{}},y=[],v=!1,b={state:m,setOptions:function(E){var O=typeof E=="function"?E(m.options):E;S(),m.options=Object.assign({},l,m.options,O),m.scrollParents={reference:ea(f)?Xs(f):f.contextElement?Xs(f.contextElement):[],popper:Xs(h)};var k=d$(p$([].concat(a,m.options.modifiers)));return m.orderedModifiers=k.filter(function(R){return R.enabled}),x(),b.update()},forceUpdate:function(){if(!v){var E=m.elements,O=E.reference,k=E.popper;if(gx(O,k)){m.rects={reference:u$(O,Ml(k),m.options.strategy==="fixed"),popper:cg(k)},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 A=m.orderedModifiers[R],_=A.fn,$=A.options,I=$===void 0?{}:$,L=A.name;typeof _=="function"&&(m=_({state:m,options:I,name:L,instance:b})||m)}}}},update:h$(function(){return new Promise(function(w){b.forceUpdate(),w(m)})}),destroy:function(){S(),v=!0}};if(!gx(f,h))return b;b.setOptions(d).then(function(w){!v&&d.onFirstUpdate&&d.onFirstUpdate(w)});function x(){m.orderedModifiers.forEach(function(w){var E=w.name,O=w.options,k=O===void 0?{}:O,R=w.effect;if(typeof R=="function"){var A=R({state:m,name:E,instance:b,options:k}),_=function(){};y.push(A||_)}})}function S(){y.forEach(function(w){return w()}),y=[]}return b}}var g$=[B6,r$,L6,E6,e$,Q6,o$,z6,W6],y$=m$({defaultModifiers:g$}),v$=Px();function yx(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function b$(t){var e;return parseInt(j.version,10)>=19?((e=t==null?void 0:t.props)==null?void 0:e.ref)||null:(t==null?void 0:t.ref)||null}function x$(t){return typeof t=="function"?t():t}const S$=j.forwardRef(function(e,r){const{children:a,container:o,disablePortal:l=!1}=e,[u,f]=j.useState(null),h=Si(j.isValidElement(a)?b$(a):null,r);if(Te(()=>{l||f(x$(o)||document.body)},[o,l]),Te(()=>{if(u&&!l)return yx(r,u),()=>{yx(r,null)}},[r,u,l]),l){if(j.isValidElement(a)){const d={ref:h};return j.cloneElement(a,d)}return a}return u&&v$.createPortal(a,u)});function T$(t){return je("MuiPopper",t)}Le("MuiPopper",["root"]);function C$(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 w$(t){return t.nodeType!==void 0}const A$=t=>{const{classes:e}=t;return Ue({root:["root"]},T$,e)},E$={},M$=j.forwardRef(function(e,r){const{anchorEl:a,children:o,direction:l,disablePortal:u,modifiers:f,open:h,placement:d,popperOptions:m,popperRef:y,slotProps:v={},slots:b={},TransitionProps:x,ownerState:S,...w}=e,E=j.useRef(null),O=Si(E,r),k=j.useRef(null),R=Si(k,y),A=j.useRef(R);Te(()=>{A.current=R},[R]),j.useImperativeHandle(y,()=>k.current,[]);const _=C$(d,l),[$,I]=j.useState(_),[L,C]=j.useState(Hp(a));j.useEffect(()=>{k.current&&k.current.forceUpdate()}),j.useEffect(()=>{a&&C(Hp(a))},[a]),Te(()=>{if(!L||!h)return;const lt=W=>{I(W.placement)};let U=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{lt(W)}}];f!=null&&(U=U.concat(f)),m&&m.modifiers!=null&&(U=U.concat(m.modifiers));const Y=y$(L,E.current,{placement:_,...m,modifiers:U});return A.current(Y),()=>{Y.destroy(),A.current(null)}},[L,u,f,h,m,_]);const z={placement:$};x!==null&&(z.TransitionProps=x);const H=A$(e),q=b.root??"div",it=_r({elementType:q,externalSlotProps:v.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:O},ownerState:e,className:H.root});return D.jsx(q,{...it,children:typeof o=="function"?o(z):o})}),k$=j.forwardRef(function(e,r){const{anchorEl:a,children:o,container:l,direction:u="ltr",disablePortal:f=!1,keepMounted:h=!1,modifiers:d,open:m,placement:y="bottom",popperOptions:v=E$,popperRef:b,style:x,transition:S=!1,slotProps:w={},slots:E={},...O}=e,[k,R]=j.useState(!0),A=()=>{R(!1)},_=()=>{R(!0)};if(!h&&!m&&(!S||k))return null;let $;if(l)$=l;else if(a){const C=Hp(a);$=C&&w$(C)?Tp(C).body:Tp(null).body}const I=!m&&h&&(!S||k)?"none":void 0,L=S?{in:m,onEnter:A,onExited:_}:void 0;return D.jsx(S$,{disablePortal:f,container:$,children:D.jsx(M$,{anchorEl:a,direction:u,disablePortal:f,modifiers:d,ref:r,open:S?!k:m,placement:y,popperOptions:v,popperRef:b,slotProps:w,slots:E,...O,style:{position:"fixed",top:0,left:0,display:I,...x},TransitionProps:L,children:o})})}),R$=zt(k$,{name:"MuiPopper",slot:"Root"})({}),O$=j.forwardRef(function(e,r){const a=hm(),o=oa({props:e,name:"MuiPopper"}),{anchorEl:l,component:u,components:f,componentsProps:h,container:d,disablePortal:m,keepMounted:y,modifiers:v,open:b,placement:x,popperOptions:S,popperRef:w,transition:E,slots:O,slotProps:k,...R}=o,A=(O==null?void 0:O.root)??(f==null?void 0:f.Root),_={anchorEl:l,container:d,disablePortal:m,keepMounted:y,modifiers:v,open:b,placement:x,popperOptions:S,popperRef:w,transition:E,...R};return D.jsx(R$,{as:u,direction:a?"rtl":"ltr",slots:{root:A},slotProps:k??h,..._,ref:r})});function D$(t){const{children:e,defer:r=!1,fallback:a=null}=t,[o,l]=j.useState(!1);return Te(()=>{r||l(!0)},[r]),j.useEffect(()=>{r&&l(!0)},[r]),o?e:a}function _$(t){let e,r;const a=()=>{r=null,t(...e)};function o(...l){e=l,r||(r=requestAnimationFrame(a))}return o.clear=()=>{r&&(cancelAnimationFrame(r),r=null)},o}function z$(){const t=ne(),e=Et(t,W2),r=Et(t,na);return e!==void 0?"polar":r!==void 0?"cartesian":"none"}const $$=["trigger","classes","children"],N$=()=>!1,j$=zt(O$,{name:"MuiChartsTooltip",slot:"Root"})(({theme:t})=>({pointerEvents:"none",zIndex:t.zIndex.modal}));function L$(t){const e=Kn({props:t,name:"MuiChartsTooltipContainer"}),{trigger:r="axis",classes:a,children:o}=e,l=te(e,$$),u=rg(),f=mf(a),h=r6(),d=o6(),m=j.useRef(null),y=cf(()=>({x:0,y:0})),v=z$(),b=ne(),x=Et(b,r==="axis"?v==="polar"&&l6||v==="cartesian"&&S_||N$:y_);j.useEffect(()=>{const k=u.current;if(k===null)return()=>{};const R=_$(()=>{var _;return(_=m.current)==null?void 0:_.update()}),A=_=>{y.current={x:_.clientX,y:_.clientY},R()};return k.addEventListener("pointerdown",A),k.addEventListener("pointermove",A),()=>{k.removeEventListener("pointerdown",A),k.removeEventListener("pointermove",A),R.clear()}},[u,y]);const S=j.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]),w=(h==null?void 0:h.pointerType)==="mouse"||d,E=(h==null?void 0:h.pointerType)==="touch"||!d,O=j.useMemo(()=>[{name:"offset",options:{offset:()=>E?[0,64]:[0,8]}},...w?[]:[{name:"flip",options:{fallbackPlacements:["top-end","top-start","bottom-end","bottom"]}}],{name:"preventOverflow",options:{altAxis:!0}}],[w,E]);return r==="none"?null:D.jsx(D$,{children:x&&D.jsx(j$,G({className:f==null?void 0:f.root,open:x,placement:w?"right-start":"top",popperRef:m,anchorEl:S,modifiers:O},l,{children:o}))})}function U$(t){const{classes:e,trigger:r="axis"}=t,a=mf(e);return D.jsx(L$,G({},t,{classes:e,children:r==="axis"?D.jsx(f6,{classes:a}):D.jsx(t6,{classes:a})}))}const B$=t=>({type:"series",color:t.color,label:t.label,seriesId:t.seriesId,itemId:t.itemId});function I$(t){return je("MuiChartsLegend",t)}const H$=t=>{const{classes:e,direction:r}=t;return Ue({root:["root",r],item:["item"],mark:["mark"],label:["label"],series:["series"]},I$,e)},vx=Le("MuiChartsLegend",["root","item","series","mark","label","vertical","horizontal"]),P$=["slots","slotProps"],G$=["ownerState"],Y$=(t,e,r,a)=>{function o(l,u){var A;const f=Kn({props:l,name:t}),h=typeof r.defaultProps=="function"?r.defaultProps(f):r.defaultProps??{},d=Ji(h,f),m=d,{slots:y,slotProps:v}=m,b=te(m,P$),x=pl(),S=(A=r.classesResolver)==null?void 0:A.call(r,d,x),w=(y==null?void 0:y[e])??a,E=r.propagateSlots&&!(y!=null&&y[e]),O=_r({elementType:w,externalSlotProps:v==null?void 0:v[e],additionalProps:G({},b,{classes:S},E&&{slots:y,slotProps:v}),ownerState:{}}),k=te(O,G$),R=G({},k);for(const _ of r.omitProps??[])delete R[_];return D.jsx(w,G({},R,{ref:u}))}return j.forwardRef(o)};function q$(t){return je("MuiChartsLabel",t)}Le("MuiChartsLabel",["root"]);const V$=t=>Ue({root:["root"]},q$,t.classes),X$=["children","className","classes"],K$=xT("MuiChartsLabel",{classesResolver:V$},function(e,r){const{children:a,className:o,classes:l}=e,u=te(e,X$);return D.jsx("span",G({className:Jt(l==null?void 0:l.root,o),ref:r},u,{children:a}))}),Z$=["direction","onItemClick","className","classes"],Q$=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.${vx.series}`]:{background:"none",border:"none",padding:0,fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",letterSpacing:"inherit",color:"inherit"},[`& .${vx.series}`]:{display:t.direction==="vertical"?"flex":"inline-flex",alignItems:"center",gap:e.spacing(1)}})),F$=Y$("MuiChartsLegend","legend",{defaultProps:{direction:"horizontal"},omitProps:["position"],classesResolver:H$},j.forwardRef(function(e,r){const a=S4(),{onItemClick:o,className:l,classes:u}=e,f=te(e,Z$);if(a.items.length===0)return null;const h=o?"button":"div";return D.jsx(Q$,G({className:Jt(u==null?void 0:u.root,l),ref:r},f,{ownerState:e,children:a.items.map((d,m)=>D.jsx("li",{className:u==null?void 0:u.item,"data-series":d.id,children:D.jsxs(h,{className:u==null?void 0:u.series,role:o?"button":void 0,type:o?"button":void 0,onClick:o?y=>o(y,B$(d),m):void 0,children:[D.jsx(Du,{className:u==null?void 0:u.mark,color:d.color,type:d.markType}),D.jsx(K$,{className:u==null?void 0:u.label,children:d.label})]})},d.id))}))}));function W$(t){return je("MuiChartsAxisHighlight",t)}Le("MuiChartsAxisHighlight",["root"]);const zu=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 J$(t){const{type:e,classes:r}=t,{left:a,width:o}=In(),l=ne(),u=Et(l,E_),f=Et(l,xn);return u.length===0?null:u.map(({axisId:h,value:d})=>{const y=f.axis[h].scale,v=Ru(y),b=e==="band"&&d!==null&&Bn(y);return D.jsxs(j.Fragment,{children:[b&&y(d)!==void 0&&D.jsx(zu,{d:`M ${a} ${y(d)-(y.step()-y.bandwidth())/2} l 0 ${y.step()} l ${o} 0 l 0 ${-y.step()} Z`,className:r.root,ownerState:{axisHighlight:"band"}}),e==="line"&&d!==null&&D.jsx(zu,{d:`M ${a} ${v(d)} L ${a+o} ${v(d)}`,className:r.root,ownerState:{axisHighlight:"line"}})]},`${h}-${d}`)})}function tN(t){const{type:e,classes:r}=t,{top:a,height:o}=In(),l=ne(),u=Et(l,A_),f=Et(l,bn);return u.length===0?null:u.map(({axisId:h,value:d})=>{const y=f.axis[h].scale,v=Ru(y),b=e==="band"&&d!==null&&Bn(y);return D.jsxs(j.Fragment,{children:[b&&y(d)!==void 0&&D.jsx(zu,{d:`M ${y(d)-(y.step()-y.bandwidth())/2} ${a} l ${y.step()} 0 l 0 ${o} l ${-y.step()} 0 Z`,className:r.root,ownerState:{axisHighlight:"band"}}),e==="line"&&d!==null&&D.jsx(zu,{d:`M ${v(d)} ${a} L ${v(d)} ${a+o}`,className:r.root,ownerState:{axisHighlight:"line"}})]},`${h}-${d}`)})}const eN=()=>Ue({root:["root"]},W$);function nN(t){const{x:e,y:r}=t,a=eN();return D.jsxs(j.Fragment,{children:[e&&e!=="none"&&D.jsx(tN,{type:e,classes:a}),r&&r!=="none"&&D.jsx(J$,{type:r,classes:a})]})}function rN(t){const{id:e,offset:r}=t,{left:a,top:o,width:l,height:u}=In(),f=G({top:0,right:0,bottom:0,left:0},r);return D.jsx("clipPath",{id:e,children:D.jsx("rect",{x:a-f.left,y:o-f.top,width:l+f.left+f.right,height:u+f.top+f.bottom})})}function iN(t){return je("MuiChartsGrid",t)}const bx=Le("MuiChartsGrid",["root","line","horizontalLine","verticalLine"]),aN=zt("g",{name:"MuiChartsGrid",slot:"Root",overridesResolver:(t,e)=>[{[`&.${bx.verticalLine}`]:e.verticalLine},{[`&.${bx.horizontalLine}`]:e.horizontalLine},e.root]})({}),jT=zt("line",{name:"MuiChartsGrid",slot:"Line"})(({theme:t})=>({stroke:(t.vars||t).palette.divider,shapeRendering:"crispEdges",strokeWidth:1}));function oN(t){const{axis:e,start:r,end:a,classes:o}=t,{scale:l,tickNumber:u,tickInterval:f}=e,h=pf({scale:l,tickNumber:u,tickInterval:f,direction:"x"});return D.jsx(j.Fragment,{children:h.map(({value:d,offset:m})=>{var y;return D.jsx(jT,{y1:r,y2:a,x1:m,x2:m,className:o.verticalLine},`vertical-${((y=d==null?void 0:d.getTime)==null?void 0:y.call(d))??d}`)})})}function sN(t){const{axis:e,start:r,end:a,classes:o}=t,{scale:l,tickNumber:u,tickInterval:f}=e,h=pf({scale:l,tickNumber:u,tickInterval:f,direction:"y"});return D.jsx(j.Fragment,{children:h.map(({value:d,offset:m})=>{var y;return D.jsx(jT,{y1:m,y2:m,x1:r,x2:a,className:o.horizontalLine},`horizontal-${((y=d==null?void 0:d.getTime)==null?void 0:y.call(d))??d}`)})})}const lN=["vertical","horizontal"],cN=({classes:t})=>Ue({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},iN,t);function uN(t){const e=Kn({props:t,name:"MuiChartsGrid"}),r=In(),{vertical:a,horizontal:o}=e,l=te(e,lN),{xAxis:u,xAxisIds:f}=Yr(),{yAxis:h,yAxisIds:d}=qr(),m=cN(e),y=h[d[0]],v=u[f[0]];return D.jsxs(aN,G({},l,{className:m.root,children:[a&&D.jsx(oN,{axis:v,start:r.top,end:r.height+r.top,classes:m}),o&&D.jsx(sN,{axis:y,start:r.left,end:r.width+r.left,classes:m})]}))}const fN=["message"],dN=zt("text")(({theme:t})=>G({},t.typography.body2,{stroke:"none",fill:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function hN(t){const{message:e}=t,r=te(t,fN),{top:a,left:o,height:l,width:u}=In(),{localeText:f}=eT();return D.jsx(dN,G({x:o+u/2,y:a+l/2},r,{children:e??f.loading}))}const pN=["message"],mN=zt("text")(({theme:t})=>G({},t.typography.body2,{stroke:"none",fill:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function gN(t){const{message:e}=t,r=te(t,pN),{top:a,left:o,height:l,width:u}=In(),{localeText:f}=eT();return D.jsx(mN,G({x:o+u/2,y:a+l/2},r,{children:e??f.noData}))}function yN(){const t=hf();return Object.values(t).every(e=>{if(!e)return!0;const{series:r,seriesOrder:a}=e;return a.every(o=>r[o].data.length===0)})}function vN(t){var r,a,o,l;const e=yN();if(t.loading){const u=((r=t.slots)==null?void 0:r.loadingOverlay)??hN;return D.jsx(u,G({},(a=t.slotProps)==null?void 0:a.loadingOverlay))}if(e){const u=((o=t.slots)==null?void 0:o.noDataOverlay)??gN;return D.jsx(u,G({},(l=t.slotProps)==null?void 0:l.noDataOverlay))}return null}const bN=[Cl,Ro,xl,Do],xN=["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"],SN=t=>{var nt,ht,vt,ct,$t;const{xAxis:e,yAxis:r,series:a,width:o,height:l,margin:u,colors:f,dataset:h,sx:d,axisHighlight:m,grid:y,children:v,slots:b,slotProps:x,skipAnimation:S,loading:w,layout:E,onItemClick:O,highlightedItem:k,onHighlightChange:R,borderRadius:A,barLabel:_,className:$}=t,I=te(t,xN),C=`${Ku()}-clip-path`,z=E==="horizontal"||E===void 0&&a.some(gt=>gt.layout==="horizontal"),H=j.useMemo(()=>[{id:bm,scaleType:"band",data:Array.from({length:Math.max(...a.map(gt=>(gt.data??h??[]).length))},(gt,Yt)=>Yt)}],[h,a]),q=j.useMemo(()=>[{id:xm,scaleType:"band",data:Array.from({length:Math.max(...a.map(gt=>(gt.data??h??[]).length))},(gt,Yt)=>Yt)}],[h,a]),it=j.useMemo(()=>a.map(gt=>G({type:"bar"},gt,{layout:z?"horizontal":"vertical"})),[z,a]),lt=z?void 0:H,U=j.useMemo(()=>e?z?e:e.map(gt=>G({scaleType:"band"},gt)):lt,[lt,z,e]),Y=z?q:void 0,W=j.useMemo(()=>r?z?r.map(gt=>G({scaleType:"band"},gt)):r:Y,[Y,z,r]),J=G({},I,{series:it,width:o,height:l,margin:u,colors:f,dataset:h,xAxis:U,yAxis:W,highlightedItem:k,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:$,skipAnimation:S,plugins:bN}),N={onItemClick:O,slots:b,slotProps:x,borderRadius:A,barLabel:_},Z={vertical:y==null?void 0:y.vertical,horizontal:y==null?void 0:y.horizontal},at={clipPath:`url(#${C})`},ot={id:C},ut={slots:b,slotProps:x,loading:w},dt={slots:b,slotProps:x},ft=G({},z?{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=(ct=t.slotProps)==null?void 0:ct.legend)==null?void 0:$t.direction},chartContainerProps:J,barPlotProps:N,gridProps:Z,clipPathProps:ot,clipPathGroupProps:at,overlayProps:ut,chartsAxisProps:dt,axisHighlightProps:ft,legendProps:At,children:v}};function xx(t){try{return t.matches(":focus-visible")}catch{}return!1}class $u{constructor(){Ct(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 $u}static use(){const e=cf($u.create).current,[r,a]=j.useState(!1);return e.shouldMount=r,e.setShouldMount=a,j.useEffect(e.mountEffect,[r]),e}mount(){return this.mounted||(this.mounted=CN(),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 TN(){return $u.use()}function CN(){let t,e;const r=new Promise((a,o)=>{t=a,e=o});return r.resolve=t,r.reject=e,r}function Pp(t,e){return Pp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Pp(t,e)}function wN(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Pp(t,e)}const Sx=io.createContext(null);function AN(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pg(t,e){var r=function(l){return e&&j.isValidElement(l)?e(l):l},a=Object.create(null);return t&&j.Children.map(t,function(o){return o}).forEach(function(o){a[o.key]=r(o)}),a}function EN(t,e){t=t||{},e=e||{};function r(m){return m in e?e[m]:t[m]}var a=Object.create(null),o=[];for(var l in t)l in e?o.length&&(a[l]=o,o=[]):o.push(l);var u,f={};for(var h in e){if(a[h])for(u=0;u<a[h].length;u++){var d=a[h][u];f[a[h][u]]=r(d)}f[h]=r(h)}for(u=0;u<o.length;u++)f[o[u]]=r(o[u]);return f}function Vi(t,e,r){return r[e]!=null?r[e]:t.props[e]}function MN(t,e){return pg(t.children,function(r){return j.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 kN(t,e,r){var a=pg(t.children),o=EN(e,a);return Object.keys(o).forEach(function(l){var u=o[l];if(j.isValidElement(u)){var f=l in e,h=l in a,d=e[l],m=j.isValidElement(d)&&!d.props.in;h&&(!f||m)?o[l]=j.cloneElement(u,{onExited:r.bind(null,u),in:!0,exit:Vi(u,"exit",t),enter:Vi(u,"enter",t)}):!h&&f&&!m?o[l]=j.cloneElement(u,{in:!1}):h&&f&&j.isValidElement(d)&&(o[l]=j.cloneElement(u,{onExited:r.bind(null,u),in:d.props.in,exit:Vi(u,"exit",t),enter:Vi(u,"enter",t)}))}}),o}var RN=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},ON={component:"div",childFactory:function(e){return e}},mg=function(t){wN(e,t);function e(a,o){var l;l=t.call(this,a,o)||this;var u=l.handleExited.bind(AN(l));return l.state={contextValue:{isMounting:!0},handleExited:u,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(o,l){var u=l.children,f=l.handleExited,h=l.firstRender;return{children:h?MN(o,f):kN(o,u,f),firstRender:!1}},r.handleExited=function(o,l){var u=pg(this.props.children);o.key in u||(o.props.onExited&&o.props.onExited(l),this.mounted&&this.setState(function(f){var h=G({},f.children);return delete h[o.key],{children:h}}))},r.render=function(){var o=this.props,l=o.component,u=o.childFactory,f=te(o,["component","childFactory"]),h=this.state.contextValue,d=RN(this.state.children).map(u);return delete f.appear,delete f.enter,delete f.exit,l===null?io.createElement(Sx.Provider,{value:h},d):io.createElement(Sx.Provider,{value:h},io.createElement(l,f,d))},e}(io.Component);mg.propTypes={};mg.defaultProps=ON;const DN=[];function _N(t){j.useEffect(t,DN)}class gg{constructor(){Ct(this,"currentId",null);Ct(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Ct(this,"disposeEffect",()=>this.clear)}static create(){return new gg}start(e,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},e)}}function zN(){const t=cf(gg.create).current;return _N(t.disposeEffect),t}function $N(t){const{className:e,classes:r,pulsate:a=!1,rippleX:o,rippleY:l,rippleSize:u,in:f,onExited:h,timeout:d}=t,[m,y]=j.useState(!1),v=Jt(e,r.ripple,r.rippleVisible,a&&r.ripplePulsate),b={width:u,height:u,top:-(u/2)+l,left:-(u/2)+o},x=Jt(r.child,m&&r.childLeaving,a&&r.childPulsate);return!f&&!m&&y(!0),j.useEffect(()=>{if(!f&&h!=null){const S=setTimeout(h,d);return()=>{clearTimeout(S)}}},[h,f,d]),D.jsx("span",{className:v,style:b,children:D.jsx("span",{className:x})})}const On=Le("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Gp=550,NN=80,jN=ul` 124 + 0% { 125 + transform: scale(0); 126 + opacity: 0.1; 127 + } 128 + 129 + 100% { 130 + transform: scale(1); 131 + opacity: 0.3; 132 + } 133 + `,LN=ul` 134 + 0% { 135 + opacity: 1; 136 + } 137 + 138 + 100% { 139 + opacity: 0; 140 + } 141 + `,UN=ul` 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 + `,BN=zt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),IN=zt($N,{name:"MuiTouchRipple",slot:"Ripple"})` 154 + opacity: 0; 155 + position: absolute; 156 + 157 + &.${On.rippleVisible} { 158 + opacity: 0.3; 159 + transform: scale(1); 160 + animation-name: ${jN}; 161 + animation-duration: ${Gp}ms; 162 + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; 163 + } 164 + 165 + &.${On.ripplePulsate} { 166 + animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms; 167 + } 168 + 169 + & .${On.child} { 170 + opacity: 1; 171 + display: block; 172 + width: 100%; 173 + height: 100%; 174 + border-radius: 50%; 175 + background-color: currentColor; 176 + } 177 + 178 + & .${On.childLeaving} { 179 + opacity: 0; 180 + animation-name: ${LN}; 181 + animation-duration: ${Gp}ms; 182 + animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; 183 + } 184 + 185 + & .${On.childPulsate} { 186 + position: absolute; 187 + /* @noflip */ 188 + left: 0px; 189 + top: 0; 190 + animation-name: ${UN}; 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 + `,HN=j.forwardRef(function(e,r){const a=oa({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:l={},className:u,...f}=a,[h,d]=j.useState([]),m=j.useRef(0),y=j.useRef(null);j.useEffect(()=>{y.current&&(y.current(),y.current=null)},[h]);const v=j.useRef(!1),b=zN(),x=j.useRef(null),S=j.useRef(null),w=j.useCallback(R=>{const{pulsate:A,rippleX:_,rippleY:$,rippleSize:I,cb:L}=R;d(C=>[...C,D.jsx(IN,{classes:{ripple:Jt(l.ripple,On.ripple),rippleVisible:Jt(l.rippleVisible,On.rippleVisible),ripplePulsate:Jt(l.ripplePulsate,On.ripplePulsate),child:Jt(l.child,On.child),childLeaving:Jt(l.childLeaving,On.childLeaving),childPulsate:Jt(l.childPulsate,On.childPulsate)},timeout:Gp,pulsate:A,rippleX:_,rippleY:$,rippleSize:I},m.current)]),m.current+=1,y.current=L},[l]),E=j.useCallback((R={},A={},_=()=>{})=>{const{pulsate:$=!1,center:I=o||A.pulsate,fakeElement:L=!1}=A;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,z=C?C.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,q,it;if(I||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)H=Math.round(z.width/2),q=Math.round(z.height/2);else{const{clientX:lt,clientY:U}=R.touches&&R.touches.length>0?R.touches[0]:R;H=Math.round(lt-z.left),q=Math.round(U-z.top)}if(I)it=Math.sqrt((2*z.width**2+z.height**2)/3),it%2===0&&(it+=1);else{const lt=Math.max(Math.abs((C?C.clientWidth:0)-H),H)*2+2,U=Math.max(Math.abs((C?C.clientHeight:0)-q),q)*2+2;it=Math.sqrt(lt**2+U**2)}R!=null&&R.touches?x.current===null&&(x.current=()=>{w({pulsate:$,rippleX:H,rippleY:q,rippleSize:it,cb:_})},b.start(NN,()=>{x.current&&(x.current(),x.current=null)})):w({pulsate:$,rippleX:H,rippleY:q,rippleSize:it,cb:_})},[o,w,b]),O=j.useCallback(()=>{E({},{pulsate:!0})},[E]),k=j.useCallback((R,A)=>{if(b.clear(),(R==null?void 0:R.type)==="touchend"&&x.current){x.current(),x.current=null,b.start(0,()=>{k(R,A)});return}x.current=null,d(_=>_.length>0?_.slice(1):_),y.current=A},[b]);return j.useImperativeHandle(r,()=>({pulsate:O,start:E,stop:k}),[O,E,k]),D.jsx(BN,{className:Jt(On.root,l.root,u),ref:S,...f,children:D.jsx(mg,{component:null,exit:!0,children:h})})});function PN(t){return je("MuiButtonBase",t)}const GN=Le("MuiButtonBase",["root","disabled","focusVisible"]),YN=t=>{const{disabled:e,focusVisible:r,focusVisibleClassName:a,classes:o}=t,u=Ue({root:["root",e&&"disabled",r&&"focusVisible"]},PN,o);return r&&a&&(u.root+=` ${a}`),u},qN=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"},[`&.${GN.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),LT=j.forwardRef(function(e,r){const a=oa({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:l=!1,children:u,className:f,component:h="button",disabled:d=!1,disableRipple:m=!1,disableTouchRipple:y=!1,focusRipple:v=!1,focusVisibleClassName:b,LinkComponent:x="a",onBlur:S,onClick:w,onContextMenu:E,onDragLeave:O,onFocus:k,onFocusVisible:R,onKeyDown:A,onKeyUp:_,onMouseDown:$,onMouseLeave:I,onMouseUp:L,onTouchEnd:C,onTouchMove:z,onTouchStart:H,tabIndex:q=0,TouchRippleProps:it,touchRippleRef:lt,type:U,...Y}=a,W=j.useRef(null),J=TN(),N=Si(J.ref,lt),[Z,at]=j.useState(!1);d&&Z&&at(!1),j.useImperativeHandle(o,()=>({focusVisible:()=>{at(!0),W.current.focus()}}),[]);const ot=J.shouldMount&&!m&&!d;j.useEffect(()=>{Z&&v&&!m&&J.pulsate()},[m,v,Z,J]);const ut=kr(J,"start",$,y),dt=kr(J,"stop",E,y),ft=kr(J,"stop",O,y),At=kr(J,"stop",L,y),bt=kr(J,"stop",St=>{Z&&St.preventDefault(),I&&I(St)},y),nt=kr(J,"start",H,y),ht=kr(J,"stop",C,y),vt=kr(J,"stop",z,y),ct=kr(J,"stop",St=>{xx(St.target)||at(!1),S&&S(St)},!1),$t=$n(St=>{W.current||(W.current=St.currentTarget),xx(St.target)&&(at(!0),R&&R(St)),k&&k(St)}),gt=()=>{const St=W.current;return h&&h!=="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(),A&&A(St),St.target===St.currentTarget&&gt()&&St.key==="Enter"&&!d&&(St.preventDefault(),w&&w(St))}),re=$n(St=>{v&&St.key===" "&&Z&&!St.defaultPrevented&&J.stop(St,()=>{J.pulsate(St)}),_&&_(St),w&&St.target===St.currentTarget&&gt()&&St.key===" "&&!St.defaultPrevented&&w(St)});let Lt=h;Lt==="button"&&(Y.href||Y.to)&&(Lt=x);const Be={};Lt==="button"?(Be.type=U===void 0?"button":U,Be.disabled=d):(!Y.href&&!Y.to&&(Be.role="button"),d&&(Be["aria-disabled"]=d));const we=Si(r,W),Ae={...a,centerRipple:l,component:h,disabled:d,disableRipple:m,disableTouchRipple:y,focusRipple:v,tabIndex:q,focusVisible:Z},De=YN(Ae);return D.jsxs(qN,{as:Lt,className:Jt(De.root,f),ownerState:Ae,onBlur:ct,onClick:w,onContextMenu:dt,onFocus:$t,onKeyDown:Yt,onKeyUp:re,onMouseDown:ut,onMouseLeave:bt,onMouseUp:At,onDragLeave:ft,onTouchEnd:ht,onTouchMove:vt,onTouchStart:nt,ref:we,tabIndex:d?-1:q,type:U,...Be,...Y,children:[u,ot?D.jsx(HN,{ref:N,center:l,...it}):null]})});function kr(t,e,r,a=!1){return $n(o=>(r&&r(o),a||t[e](o),!0))}function VN(t){return je("MuiCircularProgress",t)}Le("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const yi=44,Yp=ul` 197 + 0% { 198 + transform: rotate(0deg); 199 + } 200 + 201 + 100% { 202 + transform: rotate(360deg); 203 + } 204 + `,qp=ul` 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 + `,XN=typeof Yp!="string"?nm` 220 + animation: ${Yp} 1.4s linear infinite; 221 + `:null,KN=typeof qp!="string"?nm` 222 + animation: ${qp} 1.4s ease-in-out infinite; 223 + `:null,ZN=t=>{const{classes:e,variant:r,color:a,disableShrink:o}=t,l={root:["root",r,`color${Wt(a)}`],svg:["svg"],circle:["circle",`circle${Wt(r)}`,o&&"circleDisableShrink"]};return Ue(l,VN,e)},QN=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:XN||{animation:`${Yp} 1.4s linear infinite`}},...Object.entries(t.palette).filter(rl()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),FN=zt("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),WN=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:KN||{animation:`${qp} 1.4s ease-in-out infinite`}}]}))),UT=j.forwardRef(function(e,r){const a=oa({props:e,name:"MuiCircularProgress"}),{className:o,color:l="primary",disableShrink:u=!1,size:f=40,style:h,thickness:d=3.6,value:m=0,variant:y="indeterminate",...v}=a,b={...a,color:l,disableShrink:u,size:f,thickness:d,value:m,variant:y},x=ZN(b),S={},w={},E={};if(y==="determinate"){const O=2*Math.PI*((yi-d)/2);S.strokeDasharray=O.toFixed(3),E["aria-valuenow"]=Math.round(m),S.strokeDashoffset=`${((100-m)/100*O).toFixed(3)}px`,w.transform="rotate(-90deg)"}return D.jsx(QN,{className:Jt(x.root,o),style:{width:f,height:f,...w,...h},ownerState:b,ref:r,role:"progressbar",...E,...v,children:D.jsx(FN,{className:x.svg,ownerState:b,viewBox:`${yi/2} ${yi/2} ${yi} ${yi}`,children:D.jsx(WN,{className:x.circle,style:S,ownerState:b,cx:yi,cy:yi,r:(yi-d)/2,fill:"none",strokeWidth:d})})})});function JN(t){return je("MuiIconButton",t)}const Tx=Le("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),tj=t=>{const{classes:e,disabled:r,color:a,edge:o,size:l,loading:u}=t,f={root:["root",u&&"loading",r&&"disabled",a!=="default"&&`color${Wt(a)}`,o&&`edge${Wt(o)}`,`size${Wt(l)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ue(f,JN,e)},ej=zt(LT,{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)}}],[`&.${Tx.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${Tx.loading}`]:{color:"transparent"}}))),nj=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"}}]})),rj=j.forwardRef(function(e,r){const a=oa({props:e,name:"MuiIconButton"}),{edge:o=!1,children:l,className:u,color:f="default",disabled:h=!1,disableFocusRipple:d=!1,size:m="medium",id:y,loading:v=null,loadingIndicator:b,...x}=a,S=Ku(y),w=b??D.jsx(UT,{"aria-labelledby":S,color:"inherit",size:16}),E={...a,edge:o,color:f,disabled:h,disableFocusRipple:d,loading:v,loadingIndicator:w,size:m},O=tj(E);return D.jsxs(ej,{id:v?S:y,className:Jt(O.root,u),centerRipple:!0,focusRipple:!d,disabled:h||v,ref:r,...x,ownerState:E,children:[typeof v=="boolean"&&D.jsx("span",{className:O.loadingWrapper,style:{display:"contents"},children:D.jsx(nj,{className:O.loadingIndicator,ownerState:E,children:v&&w})}),l]})});function ij(t){return je("MuiButton",t)}const Pi=Le("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"]),aj=j.createContext({}),oj=j.createContext(void 0),sj=t=>{const{color:e,disableElevation:r,fullWidth:a,size:o,variant:l,loading:u,loadingPosition:f,classes:h}=t,d={root:["root",u&&"loading",l,`${l}${Wt(e)}`,`size${Wt(o)}`,`${l}Size${Wt(o)}`,`color${Wt(e)}`,r&&"disableElevation",a&&"fullWidth",u&&`loadingPosition${Wt(f)}`],startIcon:["icon","startIcon",`iconSize${Wt(o)}`],endIcon:["icon","endIcon",`iconSize${Wt(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},m=Ue(d,ij,h);return{...h,...m}},BT=[{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}}}],lj=zt(LT,{shouldForwardProp:t=>MS(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"}}}]}})),cj=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}},...BT]})),uj=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}},...BT]})),fj=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}}]})),Cx=zt("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),dj=j.forwardRef(function(e,r){const a=j.useContext(aj),o=j.useContext(oj),l=Ji(a,e),u=oa({props:l,name:"MuiButton"}),{children:f,color:h="primary",component:d="button",className:m,disabled:y=!1,disableElevation:v=!1,disableFocusRipple:b=!1,endIcon:x,focusVisibleClassName:S,fullWidth:w=!1,id:E,loading:O=null,loadingIndicator:k,loadingPosition:R="center",size:A="medium",startIcon:_,type:$,variant:I="text",...L}=u,C=Ku(E),z=k??D.jsx(UT,{"aria-labelledby":C,color:"inherit",size:16}),H={...u,color:h,component:d,disabled:y,disableElevation:v,disableFocusRipple:b,fullWidth:w,loading:O,loadingIndicator:z,loadingPosition:R,size:A,type:$,variant:I},q=sj(H),it=(_||O&&R==="start")&&D.jsx(cj,{className:q.startIcon,ownerState:H,children:_||D.jsx(Cx,{className:q.loadingIconPlaceholder,ownerState:H})}),lt=(x||O&&R==="end")&&D.jsx(uj,{className:q.endIcon,ownerState:H,children:x||D.jsx(Cx,{className:q.loadingIconPlaceholder,ownerState:H})}),U=o||"",Y=typeof O=="boolean"?D.jsx("span",{className:q.loadingWrapper,style:{display:"contents"},children:O&&D.jsx(fj,{className:q.loadingIndicator,ownerState:H,children:z})}):null;return D.jsxs(lj,{ownerState:H,className:Jt(a.className,q.root,m,U),component:d,disabled:y||O,focusRipple:!b,focusVisibleClassName:Jt(q.focusVisible,S),ref:r,type:$,id:O?C:E,...L,classes:q,children:[it,R!=="end"&&Y,f,R==="end"&&Y,lt]})}),hj={baseButton:dj,baseIconButton:rj},pj={},mj=G({},hj,pj),gj=j.createContext(null);function yj(t){const{slots:e,slotProps:r={},defaultSlots:a,children:o}=t,l=j.useMemo(()=>({slots:G({},a,e),slotProps:r}),[a,e,r]);return D.jsx(gj.Provider,{value:l,children:o})}const zr=11102230246251565e-32,Ve=134217729,vj=(3+8*zr)*zr;function hp(t,e,r,a,o){let l,u,f,h,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?(u=d+l,f=l-(u-d),d=e[++y]):(u=m+l,f=l-(u-m),m=a[++v]),l=u,f!==0&&(o[b++]=f);y<t&&v<r;)m>d==m>-d?(u=l+d,h=u-l,f=l-(u-h)+(d-h),d=e[++y]):(u=l+m,h=u-l,f=l-(u-h)+(m-h),m=a[++v]),l=u,f!==0&&(o[b++]=f);for(;y<t;)u=l+d,h=u-l,f=l-(u-h)+(d-h),d=e[++y],l=u,f!==0&&(o[b++]=f);for(;v<r;)u=l+m,h=u-l,f=l-(u-h)+(m-h),m=a[++v],l=u,f!==0&&(o[b++]=f);return(l!==0||b===0)&&(o[b++]=l),b}function bj(t,e){let r=e[0];for(let a=1;a<t;a++)r+=e[a];return r}function kl(t){return new Float64Array(t)}const xj=(3+16*zr)*zr,Sj=(2+12*zr)*zr,Tj=(9+64*zr)*zr*zr,eo=kl(4),wx=kl(8),Ax=kl(12),Ex=kl(16),Qe=kl(4);function Cj(t,e,r,a,o,l,u){let f,h,d,m,y,v,b,x,S,w,E,O,k,R,A,_,$,I;const L=t-o,C=r-o,z=e-l,H=a-l;R=L*H,v=Ve*L,b=v-(v-L),x=L-b,v=Ve*H,S=v-(v-H),w=H-S,A=x*w-(R-b*S-x*S-b*w),_=z*C,v=Ve*z,b=v-(v-z),x=z-b,v=Ve*C,S=v-(v-C),w=C-S,$=x*w-(_-b*S-x*S-b*w),E=A-$,y=A-E,eo[0]=A-(E+y)+(y-$),O=R+E,y=O-R,k=R-(O-y)+(E-y),E=k-_,y=k-E,eo[1]=k-(E+y)+(y-_),I=O+E,y=I-O,eo[2]=O-(I-y)+(E-y),eo[3]=I;let q=bj(4,eo),it=Sj*u;if(q>=it||-q>=it||(y=t-L,f=t-(L+y)+(y-o),y=r-C,d=r-(C+y)+(y-o),y=e-z,h=e-(z+y)+(y-l),y=a-H,m=a-(H+y)+(y-l),f===0&&h===0&&d===0&&m===0)||(it=Tj*u+vj*Math.abs(q),q+=L*m+H*f-(z*d+C*h),q>=it||-q>=it))return q;R=f*H,v=Ve*f,b=v-(v-f),x=f-b,v=Ve*H,S=v-(v-H),w=H-S,A=x*w-(R-b*S-x*S-b*w),_=h*C,v=Ve*h,b=v-(v-h),x=h-b,v=Ve*C,S=v-(v-C),w=C-S,$=x*w-(_-b*S-x*S-b*w),E=A-$,y=A-E,Qe[0]=A-(E+y)+(y-$),O=R+E,y=O-R,k=R-(O-y)+(E-y),E=k-_,y=k-E,Qe[1]=k-(E+y)+(y-_),I=O+E,y=I-O,Qe[2]=O-(I-y)+(E-y),Qe[3]=I;const lt=hp(4,eo,4,Qe,wx);R=L*m,v=Ve*L,b=v-(v-L),x=L-b,v=Ve*m,S=v-(v-m),w=m-S,A=x*w-(R-b*S-x*S-b*w),_=z*d,v=Ve*z,b=v-(v-z),x=z-b,v=Ve*d,S=v-(v-d),w=d-S,$=x*w-(_-b*S-x*S-b*w),E=A-$,y=A-E,Qe[0]=A-(E+y)+(y-$),O=R+E,y=O-R,k=R-(O-y)+(E-y),E=k-_,y=k-E,Qe[1]=k-(E+y)+(y-_),I=O+E,y=I-O,Qe[2]=O-(I-y)+(E-y),Qe[3]=I;const U=hp(lt,wx,4,Qe,Ax);R=f*m,v=Ve*f,b=v-(v-f),x=f-b,v=Ve*m,S=v-(v-m),w=m-S,A=x*w-(R-b*S-x*S-b*w),_=h*d,v=Ve*h,b=v-(v-h),x=h-b,v=Ve*d,S=v-(v-d),w=d-S,$=x*w-(_-b*S-x*S-b*w),E=A-$,y=A-E,Qe[0]=A-(E+y)+(y-$),O=R+E,y=O-R,k=R-(O-y)+(E-y),E=k-_,y=k-E,Qe[1]=k-(E+y)+(y-_),I=O+E,y=I-O,Qe[2]=O-(I-y)+(E-y),Qe[3]=I;const Y=hp(U,Ax,4,Qe,Ex);return Ex[Y-1]}function Jc(t,e,r,a,o,l){const u=(e-l)*(r-o),f=(t-o)*(a-l),h=u-f,d=Math.abs(u+f);return Math.abs(h)>=xj*d?h:-Cj(t,e,r,a,o,l,d)}const Mx=Math.pow(2,-52),tu=new Uint32Array(512);class Nu{static from(e,r=kj,a=Rj){const o=e.length,l=new Float64Array(o*2);for(let u=0;u<o;u++){const f=e[u];l[2*u]=r(f),l[2*u+1]=a(f)}return new Nu(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:o,_hullHash:l}=this,u=e.length>>1;let f=1/0,h=1/0,d=-1/0,m=-1/0;for(let L=0;L<u;L++){const C=e[2*L],z=e[2*L+1];C<f&&(f=C),z<h&&(h=z),C>d&&(d=C),z>m&&(m=z),this._ids[L]=L}const y=(f+d)/2,v=(h+m)/2;let b,x,S;for(let L=0,C=1/0;L<u;L++){const z=pp(y,v,e[2*L],e[2*L+1]);z<C&&(b=L,C=z)}const w=e[2*b],E=e[2*b+1];for(let L=0,C=1/0;L<u;L++){if(L===b)continue;const z=pp(w,E,e[2*L],e[2*L+1]);z<C&&z>0&&(x=L,C=z)}let O=e[2*x],k=e[2*x+1],R=1/0;for(let L=0;L<u;L++){if(L===b||L===x)continue;const C=Ej(w,E,O,k,e[2*L],e[2*L+1]);C<R&&(S=L,R=C)}let A=e[2*S],_=e[2*S+1];if(R===1/0){for(let z=0;z<u;z++)this._dists[z]=e[2*z]-e[0]||e[2*z+1]-e[1];oo(this._ids,this._dists,0,u-1);const L=new Uint32Array(u);let C=0;for(let z=0,H=-1/0;z<u;z++){const q=this._ids[z],it=this._dists[q];it>H&&(L[C++]=q,H=it)}this.hull=L.subarray(0,C),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(Jc(w,E,O,k,A,_)<0){const L=x,C=O,z=k;x=S,O=A,k=_,S=L,A=C,_=z}const $=Mj(w,E,O,k,A,_);this._cx=$.x,this._cy=$.y;for(let L=0;L<u;L++)this._dists[L]=pp(e[2*L],e[2*L+1],$.x,$.y);oo(this._ids,this._dists,0,u-1),this._hullStart=b;let I=3;a[b]=r[S]=x,a[x]=r[b]=S,a[S]=r[x]=b,o[b]=0,o[x]=1,o[S]=2,l.fill(-1),l[this._hashKey(w,E)]=b,l[this._hashKey(O,k)]=x,l[this._hashKey(A,_)]=S,this.trianglesLen=0,this._addTriangle(b,x,S,-1,-1,-1);for(let L=0,C,z;L<this._ids.length;L++){const H=this._ids[L],q=e[2*H],it=e[2*H+1];if(L>0&&Math.abs(q-C)<=Mx&&Math.abs(it-z)<=Mx||(C=q,z=it,H===b||H===x||H===S))continue;let lt=0;for(let N=0,Z=this._hashKey(q,it);N<this._hashSize&&(lt=l[(Z+N)%this._hashSize],!(lt!==-1&&lt!==a[lt]));N++);lt=r[lt];let U=lt,Y;for(;Y=a[U],Jc(q,it,e[2*U],e[2*U+1],e[2*Y],e[2*Y+1])>=0;)if(U=Y,U===lt){U=-1;break}if(U===-1)continue;let W=this._addTriangle(U,H,a[U],-1,-1,o[U]);o[H]=this._legalize(W+2),o[U]=W,I++;let J=a[U];for(;Y=a[J],Jc(q,it,e[2*J],e[2*J+1],e[2*Y],e[2*Y+1])<0;)W=this._addTriangle(J,H,Y,o[H],-1,o[J]),o[H]=this._legalize(W+2),a[J]=J,I--,J=Y;if(U===lt)for(;Y=r[U],Jc(q,it,e[2*Y],e[2*Y+1],e[2*U],e[2*U+1])<0;)W=this._addTriangle(Y,H,U,-1,o[U],o[Y]),this._legalize(W+2),o[Y]=W,a[U]=U,I--,U=Y;this._hullStart=r[H]=U,a[U]=r[J]=H,a[H]=J,l[this._hashKey(q,it)]=H,l[this._hashKey(e[2*U],e[2*U+1])]=U}this.hull=new Uint32Array(I);for(let L=0,C=this._hullStart;L<I;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(wj(e-this._cx,r-this._cy)*this._hashSize)%this._hashSize}_legalize(e){const{_triangles:r,_halfedges:a,coords:o}=this;let l=0,u=0;for(;;){const f=a[e],h=e-e%3;if(u=h+(e+2)%3,f===-1){if(l===0)break;e=tu[--l];continue}const d=f-f%3,m=h+(e+1)%3,y=d+(f+2)%3,v=r[u],b=r[e],x=r[m],S=r[y];if(Aj(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])){r[e]=S,r[f]=v;const E=a[y];if(E===-1){let k=this._hullStart;do{if(this._hullTri[k]===y){this._hullTri[k]=e;break}k=this._hullPrev[k]}while(k!==this._hullStart)}this._link(e,E),this._link(f,a[u]),this._link(u,y);const O=d+(f+1)%3;l<tu.length&&(tu[l++]=O)}else{if(l===0)break;e=tu[--l]}}return u}_link(e,r){this._halfedges[e]=r,r!==-1&&(this._halfedges[r]=e)}_addTriangle(e,r,a,o,l,u){const f=this.trianglesLen;return this._triangles[f]=e,this._triangles[f+1]=r,this._triangles[f+2]=a,this._link(f,o),this._link(f+1,l),this._link(f+2,u),this.trianglesLen+=3,f}}function wj(t,e){const r=t/(Math.abs(t)+Math.abs(e));return(e>0?3-r:1+r)/4}function pp(t,e,r,a){const o=t-r,l=e-a;return o*o+l*l}function Aj(t,e,r,a,o,l,u,f){const h=t-u,d=e-f,m=r-u,y=a-f,v=o-u,b=l-f,x=h*h+d*d,S=m*m+y*y,w=v*v+b*b;return h*(y*w-S*b)-d*(m*w-S*v)+x*(m*b-y*v)<0}function Ej(t,e,r,a,o,l){const u=r-t,f=a-e,h=o-t,d=l-e,m=u*u+f*f,y=h*h+d*d,v=.5/(u*d-f*h),b=(d*m-f*y)*v,x=(u*y-h*m)*v;return b*b+x*x}function Mj(t,e,r,a,o,l){const u=r-t,f=a-e,h=o-t,d=l-e,m=u*u+f*f,y=h*h+d*d,v=.5/(u*d-f*h),b=t+(d*m-f*y)*v,x=e+(u*y-h*m)*v;return{x:b,y:x}}function oo(t,e,r,a){if(a-r<=20)for(let o=r+1;o<=a;o++){const l=t[o],u=e[l];let f=o-1;for(;f>=r&&e[t[f]]>u;)t[f+1]=t[f--];t[f+1]=l}else{const o=r+a>>1;let l=r+1,u=a;Us(t,o,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],h=e[f];for(;;){do l++;while(e[t[l]]<h);do u--;while(e[t[u]]>h);if(u<l)break;Us(t,l,u)}t[r+1]=t[u],t[u]=f,a-l+1>=u-r?(oo(t,e,l,a),oo(t,e,r,u-1)):(oo(t,e,r,u-1),oo(t,e,l,a))}}function Us(t,e,r){const a=t[e];t[e]=t[r],t[r]=a}function kj(t){return t[0]}function Rj(t){return t[1]}const kx=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 o=e+a,l=r;if(a<0)throw new Error("negative radius");this._x1===null?this._+=`M${o},${l}`:(Math.abs(this._x1-o)>kx||Math.abs(this._y1-l)>kx)&&(this._+="L"+o+","+l),a&&(this._+=`A${a},${a},0,1,1,${e-a},${r}A${a},${a},0,1,1,${this._x1=o},${this._y1=l}`)}rect(e,r,a,o){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${+a}v${+o}h${-a}Z`}value(){return this._||null}}class Vp{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 Oj{constructor(e,[r,a,o,l]=[0,0,960,500]){if(!((o=+o)>=(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=o,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:o}=this;let l,u;const f=this.circumcenters=this._circumcenters.subarray(0,a.length/3*2);for(let S=0,w=0,E=a.length,O,k;S<E;S+=3,w+=2){const R=a[S]*2,A=a[S+1]*2,_=a[S+2]*2,$=e[R],I=e[R+1],L=e[A],C=e[A+1],z=e[_],H=e[_+1],q=L-$,it=C-I,lt=z-$,U=H-I,Y=(q*U-it*lt)*2;if(Math.abs(Y)<1e-9){if(l===void 0){l=u=0;for(const J of r)l+=e[J*2],u+=e[J*2+1];l/=r.length,u/=r.length}const W=1e9*Math.sign((l-$)*U-(u-I)*lt);O=($+z)/2-W*U,k=(I+H)/2+W*lt}else{const W=1/Y,J=q*q+it*it,N=lt*lt+U*U;O=$+(U*J-it*N)*W,k=I+(q*N-lt*J)*W}f[w]=O,f[w+1]=k}let h=r[r.length-1],d,m=h*4,y,v=e[2*h],b,x=e[2*h+1];o.fill(0);for(let S=0;S<r.length;++S)h=r[S],d=m,y=v,b=x,m=h*4,v=e[2*h],x=e[2*h+1],o[d+2]=o[m]=b-x,o[d+3]=o[m+1]=v-y}render(e){const r=e==null?e=new Xi:void 0,{delaunay:{halfedges:a,inedges:o,hull:l},circumcenters:u,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=u[b],w=u[b+1],E=u[x],O=u[x+1];this._renderSegment(S,w,E,O,e)}let h,d=l[l.length-1];for(let m=0;m<l.length;++m){h=d,d=l[m];const y=Math.floor(o[d]/3)*2,v=u[y],b=u[y+1],x=h*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,o=this._clip(e);if(o===null||!o.length)return;r.moveTo(o[0],o[1]);let l=o.length;for(;o[0]===o[l-2]&&o[1]===o[l-1]&&l>1;)l-=2;for(let u=2;u<l;u+=2)(o[u]!==o[u-2]||o[u+1]!==o[u-1])&&r.lineTo(o[u],o[u+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 o=this.cellPolygon(r);o&&(o.index=r,yield o)}}cellPolygon(e){const r=new Vp;return this.renderCell(e,r),r.value()}_renderSegment(e,r,a,o,l){let u;const f=this._regioncode(e,r),h=this._regioncode(a,o);f===0&&h===0?(l.moveTo(e,r),l.lineTo(a,o)):(u=this._clipSegment(e,r,a,o,f,h))&&(l.moveTo(u[0],u[1]),l.lineTo(u[2],u[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 o=this._clip(a);if(o){t:for(let l=0,u=r.length;l<u;l+=2)for(let f=0,h=o.length;f<h;f+=2)if(r[l]===o[f]&&r[l+1]===o[f+1]&&r[(l+2)%u]===o[(f+h-2)%h]&&r[(l+3)%u]===o[(f+h-1)%h]){yield a;break t}}}}_cell(e){const{circumcenters:r,delaunay:{inedges:a,halfedges:o,triangles:l}}=this,u=a[e];if(u===-1)return null;const f=[];let h=u;do{const d=Math.floor(h/3);if(f.push(r[d*2],r[d*2+1]),h=h%3===2?h-2:h+1,l[h]!==e)break;h=o[h]}while(h!==u&&h!==-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,o=e*4;return this._simplify(a[o]||a[o+1]?this._clipInfinite(e,r,a[o],a[o+1],a[o+2],a[o+3]):this._clipFinite(e,r))}_clipFinite(e,r){const a=r.length;let o=null,l,u,f=r[a-2],h=r[a-1],d,m=this._regioncode(f,h),y,v=0;for(let b=0;b<a;b+=2)if(l=f,u=h,f=r[b],h=r[b+1],d=m,m=this._regioncode(f,h),d===0&&m===0)y=v,v=0,o?o.push(f,h):o=[f,h];else{let x,S,w,E,O;if(d===0){if((x=this._clipSegment(l,u,f,h,d,m))===null)continue;[S,w,E,O]=x}else{if((x=this._clipSegment(f,h,l,u,m,d))===null)continue;[E,O,S,w]=x,y=v,v=this._edgecode(S,w),y&&v&&this._edge(e,y,v,o,o.length),o?o.push(S,w):o=[S,w]}y=v,v=this._edgecode(E,O),y&&v&&this._edge(e,y,v,o,o.length),o?o.push(E,O):o=[E,O]}if(o)y=v,v=this._edgecode(o[0],o[1]),y&&v&&this._edge(e,y,v,o,o.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 o}_clipSegment(e,r,a,o,l,u){const f=l<u;for(f&&([e,r,a,o,l,u]=[a,o,e,r,u,l]);;){if(l===0&&u===0)return f?[a,o,e,r]:[e,r,a,o];if(l&u)return null;let h,d,m=l||u;m&8?(h=e+(a-e)*(this.ymax-r)/(o-r),d=this.ymax):m&4?(h=e+(a-e)*(this.ymin-r)/(o-r),d=this.ymin):m&2?(d=r+(o-r)*(this.xmax-e)/(a-e),h=this.xmax):(d=r+(o-r)*(this.xmin-e)/(a-e),h=this.xmin),l?(e=h,r=d,l=this._regioncode(e,r)):(a=h,o=d,u=this._regioncode(a,o))}}_clipInfinite(e,r,a,o,l,u){let f=Array.from(r),h;if((h=this._project(f[0],f[1],a,o))&&f.unshift(h[0],h[1]),(h=this._project(f[f.length-2],f[f.length-1],l,u))&&f.push(h[0],h[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,o,l){for(;r!==a;){let u,f;switch(r){case 5:r=4;continue;case 4:r=6,u=this.xmax,f=this.ymin;break;case 6:r=2;continue;case 2:r=10,u=this.xmax,f=this.ymax;break;case 10:r=8;continue;case 8:r=9,u=this.xmin,f=this.ymax;break;case 9:r=1;continue;case 1:r=5,u=this.xmin,f=this.ymin;break}(o[l]!==u||o[l+1]!==f)&&this.contains(e,u,f)&&(o.splice(l,0,u,f),l+=2)}return l}_project(e,r,a,o){let l=1/0,u,f,h;if(o<0){if(r<=this.ymin)return null;(u=(this.ymin-r)/o)<l&&(h=this.ymin,f=e+(l=u)*a)}else if(o>0){if(r>=this.ymax)return null;(u=(this.ymax-r)/o)<l&&(h=this.ymax,f=e+(l=u)*a)}if(a>0){if(e>=this.xmax)return null;(u=(this.xmax-e)/a)<l&&(f=this.xmax,h=r+(l=u)*o)}else if(a<0){if(e<=this.xmin)return null;(u=(this.xmin-e)/a)<l&&(f=this.xmin,h=r+(l=u)*o)}return[f,h]}_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,o=(r+4)%e.length;(e[r]===e[a]&&e[a]===e[o]||e[r+1]===e[a+1]&&e[a+1]===e[o+1])&&(e.splice(a,2),r-=2)}e.length||(e=null)}return e}}const Dj=2*Math.PI,no=Math.pow;function _j(t){return t[0]}function zj(t){return t[1]}function $j(t){const{triangles:e,coords:r}=t;for(let a=0;a<e.length;a+=3){const o=2*e[a],l=2*e[a+1],u=2*e[a+2];if((r[u]-r[o])*(r[l+1]-r[o+1])-(r[l]-r[o])*(r[u+1]-r[o+1])>1e-10)return!1}return!0}function Nj(t,e,r){return[t+Math.sin(t+e)*r,e+Math.cos(t-e)*r]}class yg{static from(e,r=_j,a=zj,o){return new yg("length"in e?jj(e,r,a,o):Float64Array.from(Lj(e,r,a,o)))}constructor(e){this._delaunator=new Nu(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&&$j(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 h=this.collinear[0],d=this.collinear[this.collinear.length-1],m=[r[2*h],r[2*h+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=Nj(r[2*v],r[2*v+1],y);r[2*v]=x[0],r[2*v+1]=x[1]}this._delaunator=new Nu(r)}else delete this.collinear;const a=this.halfedges=this._delaunator.halfedges,o=this.hull=this._delaunator.hull,l=this.triangles=this._delaunator.triangles,u=this.inedges.fill(-1),f=this._hullIndex.fill(-1);for(let h=0,d=a.length;h<d;++h){const m=l[h%3===2?h-2:h+1];(a[h]===-1||u[m]===-1)&&(u[m]=h)}for(let h=0,d=o.length;h<d;++h)f[o[h]]=h;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],u[o[0]]=1,o.length===2&&(u[o[1]]=0,this.triangles[1]=o[1],this.triangles[2]=o[1]))}voronoi(e){return new Oj(this,e)}*neighbors(e){const{inedges:r,hull:a,_hullIndex:o,halfedges:l,triangles:u,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 h=r[e];if(h===-1)return;let d=h,m=-1;do{if(yield m=u[d],d=d%3===2?d-2:d+1,u[d]!==e)return;if(d=l[d],d===-1){const y=a[(o[e]+1)%a.length];y!==m&&(yield y);return}}while(d!==h)}find(e,r,a=0){if(e=+e,e!==e||(r=+r,r!==r))return-1;const o=a;let l;for(;(l=this._step(a,e,r))>=0&&l!==a&&l!==o;)a=l;return l}_step(e,r,a){const{inedges:o,hull:l,_hullIndex:u,halfedges:f,triangles:h,points:d}=this;if(o[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=o[e];let b=v;do{let x=h[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,h[b]!==e)break;if(b=f[b],b===-1){if(b=l[(u[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:o,triangles:l}=this;for(let u=0,f=o.length;u<f;++u){const h=o[u];if(h<u)continue;const d=l[u]*2,m=l[h]*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:o}=this;for(let l=0,u=o.length;l<u;l+=2){const f=o[l],h=o[l+1];e.moveTo(f+r,h),e.arc(f,h,r,0,Dj)}return a&&a.value()}renderHull(e){const r=e==null?e=new Xi:void 0,{hull:a,points:o}=this,l=a[0]*2,u=a.length;e.moveTo(o[l],o[l+1]);for(let f=1;f<u;++f){const h=2*a[f];e.lineTo(o[h],o[h+1])}return e.closePath(),r&&r.value()}hullPolygon(){const e=new Vp;return this.renderHull(e),e.value()}renderTriangle(e,r){const a=r==null?r=new Xi:void 0,{points:o,triangles:l}=this,u=l[e*=3]*2,f=l[e+1]*2,h=l[e+2]*2;return r.moveTo(o[u],o[u+1]),r.lineTo(o[f],o[f+1]),r.lineTo(o[h],o[h+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 Vp;return this.renderTriangle(e,r),r.value()}}function jj(t,e,r,a){const o=t.length,l=new Float64Array(o*2);for(let u=0;u<o;++u){const f=t[u];l[u*2]=e.call(a,f,u,t),l[u*2+1]=r.call(a,f,u,t)}return l}function*Lj(t,e,r,a){let o=0;for(const l of t)yield e.call(a,l,o,t),yield r.call(a,l,o,t),++o}const yf=({svgRef:t,params:e,store:r,instance:a})=>{var _;const{disableVoronoi:o,voronoiMaxRadius:l,onItemClick:u}=e,f=Et(r,Ir),{axis:h,axisIds:d}=Et(r,bn),{axis:m,axisIds:y}=Et(r,xn),v=Et(r,S2),{series:b,seriesOrder:x}=((_=Et(r,Zn))==null?void 0:_.scatter)??{},S=j.useRef({}),w=j.useRef(void 0),E=j.useRef(void 0),O=d[0],k=y[0];Te(()=>{r.update($=>$.voronoi.isVoronoiEnabled===!o?$:G({},$,{voronoi:{isVoronoiEnabled:!o}}))},[r,o]),Te(()=>{if(v||x===void 0||b===void 0||o)return;S.current={};let $=[];x.forEach(I=>{const{data:L,xAxisId:C,yAxisId:z}=b[I],H=h[C??O].scale,q=m[z??k].scale,it=Ru(H),lt=Ru(q),U=[],Y=[];for(let W=0;W<L.length;W+=1){const{x:J,y:N}=L[W],Z=it(J),at=lt(N);a.isPointInside(Z,at)&&(U.push(Z),U.push(at),Y.push(W))}S.current[I]={seriesId:I,seriesIndexes:Y,startIndex:$.length,endIndex:$.length+U.length},$=$.concat(U)}),w.current=new yg($),E.current=void 0},[v,O,k,b,x,h,m,f,a,o]),j.useEffect(()=>{if(t.current===null||o)return;const $=t.current;function I(Y){const W=Rp($,Y);if(!a.isPointInside(W.x,W.y))return E.current=void 0,"outside-chart";if(!w.current)return"no-point-found";const J=w.current.find(W.x,W.y,E.current);if(J===void 0)return"no-point-found";E.current=J;const N=Object.values(S.current).find(ot=>2*J>=ot.startIndex&&2*J<ot.endIndex);if(N===void 0)return"no-point-found";const Z=(2*J-S.current[N.seriesId].startIndex)/2,at=S.current[N.seriesId].seriesIndexes[Z];if(l!==void 0){const ot=w.current.points[2*J],ut=w.current.points[2*J+1];if((ot-W.x)**2+(ut-W.y)**2>l**2)return"outside-voronoi-max-radius"}return{seriesId:N.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))}),z=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))}),H=Y=>{var Z,at,ot,ut,dt,ft;const W=I(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),(ut=a.clearHighlight)==null||ut.call(a);return}const{seriesId:J,dataIndex:N}=W;(dt=a.setItemInteraction)==null||dt.call(a,{type:"scatter",seriesId:J,dataIndex:N}),(ft=a.setHighlight)==null||ft.call(a,{seriesId:J,dataIndex:N})},q=a.addInteractionListener("tap",Y=>{const W=I(Y.detail.srcEvent);if(typeof W!="string"&&u){const{seriesId:J,dataIndex:N}=W;u(Y.detail.srcEvent,{type:"scatter",seriesId:J,dataIndex:N})}}),it=a.addInteractionListener("move",H),lt=a.addInteractionListener("pan",H),U=a.addInteractionListener("quickPress",H);return()=>{q.cleanup(),it.cleanup(),L.cleanup(),lt.cleanup(),C.cleanup(),U.cleanup(),z.cleanup()}},[t,m,h,l,u,o,f,a]);const R=$n(()=>{r.update($=>G({},$,{voronoi:G({},$.voronoi,{isVoronoiEnabled:!0})}))}),A=$n(()=>{r.update($=>G({},$,{voronoi:G({},$.voronoi,{isVoronoiEnabled:!1})}))});return{instance:{enableVoronoi:R,disableVoronoi:A}}};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 IT=[Cl,Ro,xl,Do,yf],Uj=["children","localeText","plugins","seriesConfig","slots","slotProps"],Bj=t=>{const e=Kn({props:t,name:"MuiChartDataProvider"}),{children:r,localeText:a,plugins:o=IT,seriesConfig:l,slots:u,slotProps:f}=e,h=te(e,Uj),d=pl(),m={plugins:o,seriesConfig:l,pluginParams:G({theme:d.palette.mode},h)};return{children:r,localeText:a,chartProviderProps:m,slots:u,slotProps:f}};function Ij(t){const{children:e,localeText:r,chartProviderProps:a,slots:o,slotProps:l}=Bj(t);return D.jsx(E5,G({},a,{children:D.jsx(D4,{localeText:r,children:D.jsx(yj,{slots:o,slotProps:l,defaultSlots:mj,children:e})})}))}function Rx(t){const{isReversed:e,gradientId:r,size:a,direction:o,scale:l,colorMap:u}=t;return a<=0?null:D.jsx("linearGradient",{id:r,x1:"0",x2:"0",y1:"0",y2:"0",[`${o}${e?1:2}`]:`${a}px`,gradientUnits:"userSpaceOnUse",children:u.thresholds.map((f,h)=>{const d=l(f);if(d===void 0)return null;const m=e?1-d/a:d/a;return Number.isNaN(m)?null:D.jsxs(j.Fragment,{children:[D.jsx("stop",{offset:m,stopColor:u.colors[h],stopOpacity:1}),D.jsx("stop",{offset:m,stopColor:u.colors[h+1],stopOpacity:1})]},f.toString()+h)})})}const Hj=10;function Ox(t){const{gradientUnits:e,isReversed:r,gradientId:a,size:o,direction:l,scale:u,colorScale:f,colorMap:h}=t,d=[h.min??0,h.max??100],m=d.map(u).filter(x=>x!==void 0);if(m.length!==2)return null;const y=typeof d[0]=="number"?Se(d[0],d[1]):$m(d[0],d[1]),v=Math.round((Math.max(...m)-Math.min(...m))/Hj),b=`${d[0]}-${d[1]}-`;return D.jsx("linearGradient",{id:a,x1:"0",x2:"0",y1:"0",y2:"0",[`${l}${r?1:2}`]:e==="objectBoundingBox"?1:`${o}px`,gradientUnits:e??"userSpaceOnUse",children:Array.from({length:v+1},(x,S)=>{const w=y(S/v);if(w===void 0)return null;const E=u(w);if(E===void 0)return null;const O=r?1-E/o:E/o,k=f(w);return k===null?null:D.jsx("stop",{offset:O,stopColor:k,stopOpacity:1},b+S)})})}const Pj=10,Gj=t=>t?{x1:"1",x2:"0",y1:"0",y2:"0"}:{x1:"0",x2:"1",y1:"0",y2:"0"};function mp(t){const{isReversed:e,gradientId:r,colorScale:a,colorMap:o}=t,l=[o.min??0,o.max??100],u=typeof l[0]=="number"?Se(l[0],l[1]):$m(l[0],l[1]),f=Pj,h=`${l[0]}-${l[1]}-`;return D.jsx("linearGradient",G({id:r},Gj(e),{gradientUnits:"objectBoundingBox",children:Array.from({length:f+1},(d,m)=>{const y=m/f,v=u(y);if(v===void 0)return null;const b=a(v);return b===null?null:D.jsx("stop",{offset:y,stopColor:b,stopOpacity:1},h+m)})}))}function Yj(){const{top:t,height:e,bottom:r,left:a,width:o,right:l}=In(),u=t+e+r,f=a+o+l,h=T4(),d=C4(),{xAxis:m,xAxisIds:y}=Yr(),{yAxis:v,yAxisIds:b}=qr(),{zAxis:x,zAxisIds:S}=ng(),w=b.filter(k=>v[k].colorMap!==void 0),E=y.filter(k=>m[k].colorMap!==void 0),O=S.filter(k=>x[k].colorMap!==void 0);return w.length===0&&E.length===0&&O.length===0?null:D.jsxs("defs",{children:[w.map(k=>{const R=h(k),A=d(k),{colorMap:_,scale:$,colorScale:I,reverse:L}=v[k];return(_==null?void 0:_.type)==="piecewise"?D.jsx(Rx,{isReversed:!L,scale:$,colorMap:_,size:u,gradientId:R,direction:"y"},R):(_==null?void 0:_.type)==="continuous"?D.jsxs(j.Fragment,{children:[D.jsx(Ox,{isReversed:!L,scale:$,colorScale:I,colorMap:_,size:u,gradientId:R,direction:"y"}),D.jsx(mp,{isReversed:L,colorScale:I,colorMap:_,gradientId:A})]},R):null}),E.map(k=>{const R=h(k),A=d(k),{colorMap:_,scale:$,reverse:I,colorScale:L}=m[k];return(_==null?void 0:_.type)==="piecewise"?D.jsx(Rx,{isReversed:I,scale:$,colorMap:_,size:f,gradientId:R,direction:"x"},R):(_==null?void 0:_.type)==="continuous"?D.jsxs(j.Fragment,{children:[D.jsx(Ox,{isReversed:I,scale:$,colorScale:L,colorMap:_,size:f,gradientId:R,direction:"x"}),D.jsx(mp,{isReversed:I,colorScale:L,colorMap:_,gradientId:A})]},R):null}),O.map(k=>{const R=d(k),{colorMap:A,colorScale:_}=x[k];return(A==null?void 0:A.type)==="continuous"?D.jsx(mp,{colorScale:_,colorMap:A,gradientId:R},R):null})]})}const qj=["children","className","title","desc"],Vj=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"})),Xj=j.forwardRef(function(e,r){const a=ne(),{width:o,height:l}=Et(a,KR),{width:u,height:f}=Et(a,zS),h=rg(),d=Si(h,r),m=Kn({props:e,name:"MuiChartsSurface"}),{children:y,className:v,title:b,desc:x}=m,S=te(m,qj),w=l>0&&o>0;return D.jsxs(Vj,G({ownerState:{width:u,height:f},viewBox:`0 0 ${o} ${l}`,className:v},S,{ref:d,children:[b&&D.jsx("title",{children:b}),x&&D.jsx("desc",{children:x}),D.jsx(Yj,{}),w&&y]}))}),Kj=["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"],Zj=(t,e)=>{const r=t,{width:a,height:o,margin:l,children:u,series:f,colors:h,dataset:d,desc:m,onAxisClick:y,highlightedAxis:v,onHighlightedAxisChange:b,disableVoronoi:x,voronoiMaxRadius:S,onItemClick:w,disableAxisListener:E,highlightedItem:O,onHighlightChange:k,sx:R,title:A,xAxis:_,yAxis:$,zAxis:I,rotationAxis:L,radiusAxis:C,skipAnimation:z,seriesConfig:H,plugins:q,localeText:it,slots:lt,slotProps:U,experimentalFeatures:Y}=r,W=te(r,Kj),J=G({title:A,desc:m,sx:R,ref:e},W);return{chartDataProviderProps:{margin:l,series:f,colors:h,dataset:d,disableAxisListener:E,highlightedItem:O,onHighlightChange:k,onAxisClick:y,highlightedAxis:v,onHighlightedAxisChange:b,disableVoronoi:x,voronoiMaxRadius:S,onItemClick:w,xAxis:_,yAxis:$,zAxis:I,rotationAxis:L,radiusAxis:C,skipAnimation:z,width:a,height:o,localeText:it,seriesConfig:H,experimentalFeatures:Y,plugins:q??IT,slots:lt,slotProps:U},chartsSurfaceProps:J,children:u}},Qj=(t,e)=>t==="vertical"?(e==null?void 0:e.horizontal)==="start"?"row":"row-reverse":(e==null?void 0:e.vertical)==="bottom"?"column-reverse":"column",Fj=(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"},Wj=zt("div",{name:"MuiChartsWrapper",slot:"Root",shouldForwardProp:t=>au(t)&&t!=="extendVertically"})(({ownerState:t})=>({display:"flex",flexDirection:Qj(t.legendDirection,t.legendPosition),flex:1,justifyContent:"center",alignItems:Fj(t.legendDirection,t.legendPosition),variants:[{props:{extendVertically:!0},style:{height:"100%"}}]}));function Jj(t){const{children:e,sx:r,extendVertically:a}=t,o=E4(),l=ne(),{height:u}=Et(l,zS);return D.jsx(Wj,{ref:o,ownerState:t,sx:r,extendVertically:a??u===void 0,children:e})}const Xp=j.forwardRef(function(e,r){var k,R,A,_;const a=Kn({props:e,name:"MuiBarChart"}),{chartsWrapperProps:o,chartContainerProps:l,barPlotProps:u,gridProps:f,clipPathProps:h,clipPathGroupProps:d,overlayProps:m,chartsAxisProps:y,axisHighlightProps:v,legendProps:b,children:x}=SN(a),{chartDataProviderProps:S,chartsSurfaceProps:w}=Zj(l,r),E=((k=a.slots)==null?void 0:k.tooltip)??U$,O=(R=a.slots)==null?void 0:R.toolbar;return D.jsx(Ij,G({},S,{children:D.jsxs(Jj,G({},o,{children:[a.showToolbar&&O?D.jsx(O,G({},(A=a.slotProps)==null?void 0:A.toolbar)):null,!a.hideLegend&&D.jsx(F$,G({},b)),D.jsxs(Xj,G({},w,{children:[D.jsx(uN,G({},f)),D.jsxs("g",G({},d,{children:[D.jsx(nz,G({},u)),D.jsx(vN,G({},m)),D.jsx(nN,G({},v))]})),D.jsx(Bz,G({},y)),D.jsx(rN,G({},h)),x]})),!a.loading&&D.jsx(E,G({},(_=a.slotProps)==null?void 0:_.tooltip))]}))}))});new TextEncoder;const tL=new TextDecoder,eL=t=>new Uint8Array(t),nL=eL,rL=(t,e,r)=>{let a;return e===void 0?a=t:r===void 0?a=t.subarray(e):a=t.subarray(e,e+r),tL.decode(a)},HT=(t,e,r)=>a=>{const o=(1<<e)-1;let l="",u=0,f=0;for(let h=0;h<a.length;++h)for(f=f<<8|a[h],u+=8;u>e;)u-=e,l+=t[o&f>>u];if(u!==0&&(l+=t[o&f<<e-u]),r)for(;(l.length*e&7)!==0;)l+="=";return l},iL=(t,e,r)=>{const a={};for(let o=0;o<t.length;++o)a[t[o]]=o;return o=>{let l=o.length;for(;r&&o[l-1]==="=";)--l;const u=nL(l*e/8|0);let f=0,h=0,d=0;for(let m=0;m<l;++m){const y=a[o[m]];if(y===void 0)throw new SyntaxError("invalid base string");h=h<<e|y,f+=e,f>=8&&(f-=8,u[d++]=255&h>>f)}if(f>=e||(255&h<<8-f)!==0)throw new SyntaxError("unexpected end of data");return u}},PT="fromBase64"in Uint8Array,GT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",aL=iL(GT,6,!1),oL=HT(GT,6,!1),sL=t=>Uint8Array.fromBase64(t,{alphabet:"base64",lastChunkHandling:"loose"}),lL=t=>t.toBase64({alphabet:"base64",omitPadding:!0}),cL=PT?sL:aL,uL=PT?lL:oL,fL="abcdefghijklmnopqrstuvwxyz234567",dL=HT(fL,5,!1),hL=1,pL=18,mL=85,gL=113,yL=Symbol.for("@atcute/cid-link-wrapper");var Bx;Bx=yL;class vg{constructor(e){Ct(this,"bytes");Ct(this,Bx,!0);this.bytes=e}get $link(){return`b${dL(this.bytes)}`}toJSON(){return{$link:this.$link}}}const vL=t=>new vg(t.bytes),bL=Symbol.for("@atcute/bytes-wrapper");var Ix;Ix=bL;class YT{constructor(e){Ct(this,"buf");Ct(this,Ix,!0);this.buf=e}get $bytes(){return uL(this.buf)}toJSON(){return{$bytes:this.$bytes}}}const xL=t=>new YT(t),Dx=t=>t instanceof YT?t.buf:cL(t.$bytes),Rr=(t,e)=>{if(e<24)return e;switch(e){case 24:return ju(t);case 25:return TL(t);case 26:return CL(t);case 27:return wL(t)}throw new Error(`invalid argument encoding; got ${e}`)},SL=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},ju=t=>t.b[t.p++],TL=t=>{let e=t.p;const r=t.b,a=r[e++]<<8|r[e++];return t.p=e,a},CL=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},wL=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 o=(r[e++]<<24|r[e++]<<16|r[e++]<<8|r[e++])>>>0,l=a*2**32+o;return t.p=e,l},qT=(t,e)=>{const r=rL(t.b,t.p,e);return t.p+=e,r},AL=(t,e)=>{const r=t.b.subarray(t.p,t.p+=e);return xL(r)},EL=(t,e)=>{const r=t.b.subarray(t.p+1,t.p+=e);return new vg(r)},_x=t=>{const e=ju(t),r=e>>5;if(r!==3)throw new TypeError(`expected map to only have string keys; got type ${r}`);const a=e&31,o=Rr(t,a);return qT(t,o)},Kp=t=>{const e=t.length,r={b:t,v:null,p:0};let a=null,o;t:for(;r.p<e;){const l=ju(r),u=l>>5,f=l&31;switch(u){case 0:{o=Rr(r,f);break}case 1:{o=-1-Rr(r,f);break}case 2:{o=AL(r,Rr(r,f));break}case 3:{o=qT(r,Rr(r,f));break}case 4:{const h=Rr(r,f),d=new Array(h);if(o=d,h>0){a={t:1,c:d,k:null,r:h,n:a};continue t}break}case 5:{const h=Rr(r,f),d={};if(o=d,h>0){const m=_x(r);a={t:0,c:d,k:m,r:h,n:a};continue t}break}case 6:{const h=Rr(r,f);switch(h){case 42:{const d=ju(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);o=EL(r,v);break}default:throw new TypeError(`unsupported tag; got ${h}`)}break}case 7:{switch(f){case 20:case 21:{o=f===21;break}case 22:{o=null;break}case 27:{o=SL(r);break}default:throw new Error(`invalid simple value; got ${f}`)}break}default:throw new TypeError(`invalid type; got ${u}`)}for(;a!==null;){switch(a.t){case 0:{const h=a.c,d=a.k;d==="__proto__"&&Object.defineProperty(h,d,{enumerable:!0,configurable:!0,writable:!0}),h[d]=o;break}case 1:{const h=a.c,d=h.length-a.r;h[d]=o;break}}if(--a.r!==0){a.t===0&&(a.k=_x(r));continue t}o=a.c,a=a.n}break}return[o,t.subarray(r.p)]},VT=t=>{const[e,r]=Kp(t);if(r.length!==0)throw new Error("decoded value contains remainder");return e},ML=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 o=t.subarray(e,e+r);return a&&(e+=r),o}}},kL=128,zx=127,RL=(t,e=0)=>{let r=t.length,a=0,o=0,l=e,u;do{if(l>=r)throw new RangeError("could not decode varint");u=t[l++],a+=o<28?(u&zx)<<o:(u&zx)*Math.pow(2,o),o+=7}while(u>=kL);return[a,l-e]},OL=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 vg)},XT=(t,e)=>{const r=t.upto(e);if(r.length===0)throw new RangeError("unexpected end of data");const[a,o]=RL(r);return t.seek(o),a},DL=t=>{const e=t.pos,r=XT(t,8);if(r===0)throw new RangeError("invalid car header; length=0");const a=t.pos,o=t.exactly(r,!0),l=VT(o);if(!OL(l))throw new TypeError("expected a car v1 archive");const u=t.pos;return{data:l,headerStart:e,headerEnd:u,dataStart:a,dataEnd:u}},_L=t=>{const e=t.exactly(4,!1),r=e[0],a=e[1],o=e[2],l=e[3];if(r!==hL)throw new RangeError(`incorrect cid version (got v${r})`);if(a!==gL&&a!==mL)throw new RangeError(`incorrect cid codec (got 0x${a.toString(16)})`);if(o!==pL)throw new RangeError(`incorrect cid digest type (got 0x${o.toString(16)})`);if(l!==32&&l!==0)throw new RangeError(`incorrect cid digest size (got ${l})`);const u=t.exactly(4+l,!0),f=u.subarray(4,4+l);return{version:r,codec:a,digest:{codec:o,contents:f},bytes:u}},zL=t=>({header:DL(t),*iterate(){for(;t.upto(44).length>0;){const r=t.pos,a=XT(t,8),o=t.pos,l=_L(t),u=t.pos,f=a-(u-o),h=t.exactly(f,!0),d=u,m=t.pos;yield{cid:l,bytes:h,entryStart:r,entryEnd:m,cidStart:o,cidEnd:d,bytesStart:u,bytesEnd:m}}}}),$L=t=>{const e=ML(t);return zL(e)};let NL=()=>({emit(t,...e){for(let r=this.events[t]||[],a=0,o=r.length;a<o;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(o=>e!==o)}}});class jL{constructor(e={}){Ct(this,"relay");Ct(this,"ws");Ct(this,"cursor","");Ct(this,"emitter",NL());Ct(this,"autoReconnect");Ct(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,o]=Kp(r),[l,u]=Kp(o);if(u.length>0)throw new Error("Excess bytes in message");const{t:f,op:h}=LL(a);if(h===-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:w,ops:E,prevData:O,time:k}=l;if(!((d=w==null?void 0:w.$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:[],...O?{prevData:O.$link}:{},time:k};const R=Dx(w),A=UL(R),_=[];for(const $ of E){const I=$.action;if(I==="create"){if(!$.cid)continue;const L=A.get($.cid.$link);if(!L)continue;_.push({action:I,path:$.path,cid:$.cid.$link,record:L})}else if(I==="update"){if(!$.cid)continue;const L=A.get($.cid.$link);if(!L)continue;_.push({action:I,path:$.path,cid:$.cid.$link,...$.prev?{prev:$.prev.$link}:{},record:L})}else if(I==="delete")_.push({action:I,path:$.path,...$.prev?{prev:$.prev.$link}:{}});else throw new Error(`Unknown action: ${I}`)}return{$type:"com.atproto.sync.subscribeRepos#commit",seq:y,repo:v,commit:b.$link,rev:x,since:S,blocks:R,ops:_,...O?{prevData:O.$link}:{},time:k}}else if(f==="#sync"){const{seq:y,did:v,blocks:b,rev:x,time:S}=l,w=(m=b==null?void 0:b.$bytes)!=null&&m.length?Dx(b):new Uint8Array;return{$type:"com.atproto.sync.subscribeRepos#sync",seq:y,did:v,blocks:w,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 LL(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 UL(t){const e=new Map;for(const{cid:r,bytes:a}of $L(t).iterate())e.set(vL(r).$link,VT(a));return e}const BL="234567abcdefghijklmnopqrstuvwxyz",$x=t=>{let e=0;for(const r of t)e=e*32+BL.indexOf(r);return e},IL=/^[234567abcdefghij][234567abcdefghijklmnopqrstuvwxyz]{12}$/,HL=t=>{if(!PL(t))throw new Error("invalid TID");const e=$x(t.slice(0,11)),r=$x(t.slice(11,13));return{timestamp:e,clockid:r}},PL=t=>t.length===13&&IL.test(t),GL="app.bsky.feed.like",Ys=32,Gi=32,eu=Ys*Gi;function YL({url:t,desc:e,includeEvents:r,onRecieveEvent:a}){const[o,l]=j.useState("connecting"),[u,f]=j.useState(0),[h,d]=j.useState(0),[m,y]=j.useState({idx:Array.from({length:Gi+2}).map(()=>0),recv:Array.from({length:Gi+2}).map(()=>0)});return j.useEffect(()=>{const v=(x,S)=>{if(r.has(x)&&(a(x,S),f(w=>w+1),x==="commit"&&S.ops.length===1)){const w=S.ops[0];try{const[E,O]=w.path.split("/");if(E===GL){const k=HL(O).timestamp/1e3,R=Date.parse(S.time),A=R-k,_=+new Date-R;let $,I;A<0?$=-1:A>=eu?$=Gi:$=Math.min(Math.floor(A/Ys),eu),_<0?I=-1:_>=eu?I=Gi:I=Math.min(Math.floor(_/Ys),eu),y(({idx:L,recv:C})=>(L=L.slice(),C=C.slice(),L[$+1]+=1,C[I+1]+=1,{idx:L,recv:C}))}}catch{}}},b=new jL({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]),D.jsxs("div",{className:"relay",children:[D.jsx("h2",{children:e}),D.jsx("p",{children:D.jsx("code",{children:t})}),D.jsxs("p",{children:["[",D.jsx("code",{children:o}),"] (",D.jsx("code",{children:u.toLocaleString()})," events)"]}),h>0&&D.jsxs("p",{children:["reconnects: ",D.jsx("code",{children:h})]}),D.jsx(Xp,{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}]}),D.jsx(Xp,{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 Nx=[{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.upcloud.world",desc:"UpCloud relay"},{url:"wss://relay.hayescmd.net",desc:"@edavis.dev's relay"},{url:"wss://relay.xero.systems",desc:"@dane.is.extraordinarily.cool's relay"}],jx=1600,qL=6,Lx=10*60*1e3,Ux=(t,e,r)=>{};function VL(){const[t,e]=j.useState([]),[r,a]=j.useState(["commit","sync","account","identity","unknown"]),[o,l]=j.useState(new Set(r)),[u,f]=j.useState(()=>Ux),[h,d]=j.useState(()=>()=>{}),[m,y]=j.useState({series:[]}),[v,b]=j.useState(!1),[x,S]=j.useState("");j.useEffect(()=>{let O=performance.now(),k={},R=[],A=requestAnimationFrame(L),_=setTimeout($,Lx);f(()=>(C,z,H)=>{k[C]||(k[C]=0),k[C]+=1}),d(()=>()=>{clearTimeout(_),_=setTimeout($,Lx),b(!1),console.info("keepalive: disconnection timer reset")});function $(){console.info("disconnecting due to inactivity"),e([]),b(!0)}const I=setInterval(()=>{let C=performance.now(),z=C-O;R.length>=qL-1&&R.shift(),R.push({t:C,dt:z,counts:k}),O=C,k={}},jx);function L(){var H;let C=performance.now();const z=Object.keys(((H=R.at(-1))==null?void 0:H.counts)||{}).toSorted();y({xAxis:[{data:R.map(({t:q})=>(-(C-q)/1e3).toFixed(1)).concat(["now"]),label:"bucket (seconds ago)"}],series:z.map(q=>({label:q,data:R.map(({dt:it,counts:lt})=>lt[q]?(lt[q]/(it/1e3)).toFixed(1):null).concat([k[q]?(k[q]/(jx/1e3)).toFixed(1):null])}))}),A=requestAnimationFrame(L)}return()=>{f(()=>Ux),d(()=>()=>null),clearInterval(I),cancelAnimationFrame(A)}},[]);function w(O,k){b(!1),e(k?R=>R.includes(O)?R:[...R,O]:R=>R.includes(O)?R.filter(A=>A!==O):R),h()}function E(){if(!x)return"";try{let O;return x.includes("://")?O=new URL(x):O=new URL("https://"+x),O.protocol==="https:"?O.protocol="wss:":O.protocol==="http:"&&(O.protocol="ws:"),O.origin}catch{return""}}return D.jsxs(D.Fragment,{children:[D.jsx("h1",{children:"compare hoses"}),D.jsx("p",{children:D.jsxs("em",{children:["warning: enabling many relay connections requires a ",D.jsx("strong",{children:"lot"})," of bandwidth"]})}),D.jsxs("form",{style:{display:"block",textAlign:"left"},children:[Nx.map(({url:O,desc:k})=>D.jsx("p",{style:{margin:0},children:D.jsxs("label",{children:[D.jsx("input",{type:"checkbox",onChange:R=>w(O,R.target.checked),checked:t.includes(O)}),` ${k} `,"(",D.jsx("code",{children:O.slice(6)}),")"]})},O)),D.jsx("p",{style:{margin:0},children:D.jsxs("label",{children:[D.jsx("input",{type:"checkbox",onChange:O=>{const k=E();k&&w(k,O.target.checked)},checked:t.includes(E())})," ",D.jsx("input",{type:"text",placeholder:"wss://…",value:x,onChange:O=>{const k=E();e(R=>R.includes(k)?R.filter(A=>A!==k):R),S(O.target.value)},onKeyDown:O=>{if(O.key!=="Enter")return;O.preventDefault();const k=E();k&&w(k,!0)}})," ",x&&D.jsx("code",{children:E()})]})})]}),D.jsxs("form",{style:{display:"block",margin:"1rem 0"},children:[D.jsx("span",{children:"events: "}),r.map(O=>D.jsxs("label",{children:[D.jsx("input",{type:"checkbox",checked:o.has(O),onChange:k=>{l(R=>{const A=new Set(R);return k.target.checked?A.add(O):A.delete(O),A})}})," ",O]},O))]}),D.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"2em",textAlign:"left"},children:t.map(O=>{const{desc:k}=Nx.find(R=>R.url===O)??{desc:"custom relay"};return D.jsx("div",{children:D.jsx(YL,{url:O,desc:k,includeEvents:o,onRecieveEvent:(R,A)=>u(O,R,A)})},O)})}),v&&D.jsx("p",{children:D.jsx("em",{children:"disconnected to save bandwidth due to inactivity"})}),D.jsx("div",{className:"throughputs",children:D.jsx(Xp,{height:300,yAxis:[{label:"events / sec"}],skipAnimation:!0,...m})})]})}class vf{constructor(e){Ct(this,"val");this.val=e}}class XL extends vf{}class KL extends vf{}class KT extends vf{}class ZL extends vf{}class QL{constructor(e,r,a){Ct(this,"did");Ct(this,"handle");Ct(this,"pds");this.did=e,this.handle=r,this.pds=a}}const ZT="https://slingshot.microcosm.blue";async function QT(t){const e=new URLSearchParams;e.set("identifier",t);const r=await fetch(`${ZT}/xrpc/com.bad-example.identity.resolveMiniDoc?${e}`);if(!r.ok)return r.text().then(h=>console.warn(`slingshot failed to resolve ${t} (${r.status})`,h)),null;const a=await r.json(),o=new XL(a.did),l=new KL(a.handle),u=new URL(a.pds);return new QL(o,l,u)}async function FT(t,e){const r=new URLSearchParams;r.set("did",e.val);const a=await fetch(`${t}xrpc/com.atproto.sync.getRepoStatus?${r}`);if(a.status===404)try{if((await a.json()).error==="RepoNotFound")return"notfound"}catch{}return a.ok?await a.json():(a.text().then(o=>console.warn(`slingshot failed to getRepoStatus ${t} / ${e} (${a.status})`,o)),null)}async function FL(t,e,r){const a=new URLSearchParams;a.set("repo",t.val),a.set("collection",e.val),a.set("rkey",r.val);const o=await fetch(`${ZT}/xrpc/com.atproto.repo.getRecord?${a}`);return o.ok?(await o.json()).value:(o.text().then(u=>console.warn(`slingshot failed to getRecord ${t}/${e}/${r} (${o.status})`,u)),null)}async function*WL(t,e,r){let a=null;do{const o=new URLSearchParams;o.set("repo",e.val),o.set("collection",r.val),o.set("limit","100"),a&&o.set("cursor",a);const l=await fetch(`${t}xrpc/com.atproto.repo.listRecords?${o}`);if(!l.ok)return l.text().then(f=>console.warn(`slingshot failed to listRecords ${e} / ${r} (${l.status})`,f)),null;const u=await l.json();for(const{value:f}of u.records)yield f;a=u.cursor}while(a)}function JL({did:t,link:e}){const a=`https://cdn.bsky.app/img/avatar_thumbnail/plain/${t.val}/${e}@jpeg`;return D.jsx("img",{alt:"avatar",src:a,style:{display:"block",width:"100%",height:"100%"}})}function bg({doc:t,children:e}){const[r,a]=j.useState(null),[o,l]=j.useState(null);return j.useEffect(()=>{let u=!1;return(async()=>{var m,y;`${t.did.val}`;const f=await FL(t.did,new KT("app.bsky.actor.profile"),new ZL("self")),h=(y=(m=f==null?void 0:f.avatar)==null?void 0:m.ref)==null?void 0:y.$link;h&&!u&&a(h);const d=f==null?void 0:f.displayName;d&&!u&&l(d)})(),()=>u=!0},[t.did.val]),D.jsxs("div",{style:{display:"flex",textAlign:"left",alignItems:"center",background:"#333",padding:"0.5em 0.6em",gap:"0.6em",borderRadius:"0.3em"},children:[D.jsx("div",{style:{background:"#000",height:"42px",width:"42px",display:"flex",justifyContent:"center",alignItems:"center",color:"#858",fontSize:"0.8em",borderRadius:"100%",flexShrink:"0",overflow:"hidden"},children:r?D.jsx(JL,{did:t.did,link:r}):D.jsx(D.Fragment,{children:"…"})}),D.jsxs("div",{style:{flexGrow:"1"},children:[D.jsx("h3",{style:{margin:0,fontSize:"1em"},children:o||t.handle.val}),D.jsxs("p",{style:{fontSize:"1em",margin:0,lineHeight:"1",opacity:"0.8"},children:[o&&D.jsxs(D.Fragment,{children:[D.jsx("code",{children:t.handle.val}),D.jsx("br",{})]}),D.jsx("code",{children:t.did.val})]})]}),e&&D.jsx("div",{children:e})]})}function t8(t,e,r){let a=null,o=null;function l(...u){o=u,a===null&&(a=setTimeout(async()=>{r(await e(...o)),a=null},t))}return l}function e8({onSet:t,children:e}){const[r,a]=j.useState(""),[o,l]=j.useState(null),[u,f]=j.useState(null),h=j.useCallback(t8(300,QT,l),[]),d=j.useCallback(y=>{a(y.target.value),h(y.target.value)}),m=j.useCallback(()=>{o?t(o):f(+new Date)});return j.useEffect(()=>{u&&o&&(new Date-u>500||t(o))},[o,u]),D.jsxs("form",{style:{maxWidth:"420px",margin:"0 auto",display:"block"},onSubmit:m,children:[D.jsxs("label",{style:{display:"block"},children:["Your handle or DID:"," ",D.jsx("input",{style:{margin:"0.5em 0",padding:"0.3em 0.5em",font:"inherit",borderRadius:"0.3em",border:"1px solid #444"},placeholder:"bad-example.com",value:r,onChange:d})]}),o?D.jsx(bg,{doc:o,children:D.jsx("button",{onClick:()=>t(o),children:"check"})}):D.jsx("br",{})]})}const WT=["wss://relay.xero.systems","wss://relay1.us-east.bsky.network","wss://relay1.us-west.bsky.network"];async function n8(t){const e=[],r=[],a=[];for(const o of WT){const l=new URL(o);l.protocol=l.protocol.replace("ws","http");let u;try{u=await FT(l,t)}catch{}if(u==="notfound"){r.push(l.hostname);continue}if(!u){a.push(l.hostname);continue}u.active||(console.log("rs",u),e.push(l.hostname))}return{deactivateds:e,missings:r,fails:a}}function r8({oof:t,children:e}){const r={},{deactivateds:a,missings:o,fails:l}=t;return a.forEach(u=>r[u]="deactivated"),o.forEach(u=>r[u]="not crawling"),l.forEach(u=>r[u]="check failed"),D.jsxs("p",{style:{fontSize:"0.8em",textAlign:"right",margin:"0"},children:[Object.keys(r).map(u=>D.jsxs(D.Fragment,{children:[D.jsx("code",{children:u}),": ",D.jsx("span",{style:{color:"#f64"},children:r[u]}),D.jsx("br",{})]})),D.jsx("strong",{children:"pds:"})," ",D.jsx("code",{children:t.doc.pds.hostname})," (",D.jsx("span",{style:{color:"#7f6"},children:"active"}),")",D.jsx("br",{})]})}function i8({actives:t}){const e=[];let r=0;return t.forEach(a=>{a.deactivateds.length>0||a.missings.length>0||a.fails.length>0?e.push(a):r+=1}),D.jsxs(D.Fragment,{children:[D.jsxs("p",{children:[r," account",r!==1&&"s"," on alternative PDSs checked out ok."]}),e.length>0&&D.jsxs(D.Fragment,{children:[D.jsxs("h3",{children:[e.length," account",e.length!==1&&"s"," found with relay problems"]}),e.map(a=>D.jsx("div",{style:{margin:"0.5rem 0"},children:D.jsx(bg,{doc:a.doc,children:D.jsx(r8,{oof:a})})},a.doc.did.val))]})]})}function a8({doc:t}){const[e,r]=j.useState({}),[a,o]=j.useState([]),[l,u]=j.useState([]),[f,h]=j.useState([]),[d,m]=j.useState([]),y=j.useCallback(async v=>{if(e[v])return;r(O=>({...O,[v]:!0}));let b;try{b=await QT(v)}catch{}if(!b){m(O=>[...O,{subject:v,reason:"resolution"}]);return}if(b.pds.hostname.endsWith(".host.bsky.network")){h(O=>[...O,b]);return}let x;try{x=await FT(b.pds,b.did)}catch{}if(x==="notfound"){m(O=>[...O,{subject:v,reason:"notfound"}]);return}if(!x){m(O=>[...O,{subject:v,reason:"pds getRepoStatus"}]);return}if(!x.active){u(O=>[...O,b]);return}const{deactivateds:S,missings:w,fails:E}=await n8(b.did);o(O=>[...O,{doc:b,deactivateds:S,missings:w,fails:E}])},[]);return j.useEffect(()=>{let v=!1;return(async()=>{y(t.did.val);const b=WL(t.pds,t.did,new KT("app.bsky.graph.follow"));for await(const x of b){if(v)break;y(x.subject)}})(),()=>v=!0},[t.did.val,t.pds]),D.jsxs("div",{style:{marginBottom:"4em"},children:[D.jsxs("h2",{children:["Checking following (",Object.keys(e).length,")…"]}),D.jsxs("p",{children:["Of your follows, ",d.length," failed resolution, ",f.length," are on bsky mushroom PDSs, and ",l.length," are actually deactivated."]}),D.jsx(i8,{actives:a}),D.jsxs("div",{style:{textAlign:"left"},children:[D.jsx("h3",{style:{margin:"3em 0 0"},children:"What these results mean"}),D.jsx("h4",{style:{marginBottom:"0",color:"#f64"},children:"Deactivated"}),D.jsxs("p",{children:["The relay has become desynchronized with this account, incorrectly marking it as not ",D.jsx("code",{children:"active"}),". All commits from this account will be blocked by the relay; none will be broadcast to relay consumers."]}),D.jsx("h4",{style:{marginBottom:"0",color:"#f64"},children:"Not crawling"}),D.jsx("p",{children:"The relay doesn't know about this account—perhaps it as never crawled its PDS. No content from this account will be discovered by the relay, so relay consumers won't see it."}),D.jsx("h4",{style:{marginBottom:"0",color:"#f64"},children:"Check failed"}),D.jsx("p",{children:"This account seems active, but something went wrong when checking its status with the relay. It might be fine!"}),D.jsx("h3",{style:{margin:"3em 0 0"},children:"Which relays are checked?"}),D.jsx("ul",{children:WT.map(v=>D.jsx("li",{children:D.jsx("code",{children:new URL(v).hostname})},v))}),D.jsx("h4",{style:{marginBottom:"0"},children:"Excluded relays"}),D.jsxs("ul",{children:[D.jsxs("li",{children:[D.jsx("code",{children:"atproto.africa"})," does not store repo status, so it can't get desynchronized, and won't drop commits."]}),D.jsxs("li",{children:[D.jsx("code",{children:"bsky.network"}),", running the old BGS code, does not implement ",D.jsx("code",{children:"com.atproto.sync.getRepoStatus"}),"."]}),D.jsx("li",{children:"All other known relays do not allow CORS XRPC requests, so we can't check from your browser."})]}),D.jsx("p",{children:"Accounts on Bluesky's mushroom PDSs are not checked because accounts seem to mainly desynchronize when migrating PDSs. Since accounts can now be migrated into the mushrooms, perhaps they should be checked too?"})]})]})}function o8(){const[t,e]=j.useState(null);return D.jsxs("div",{style:{maxWidth:"800px"},children:[D.jsx("h1",{children:"Oops deactivated checker"}),D.jsxs("p",{children:["This is a relay debugging tool to check if relays are blocking accounts you follow due to desynchronized ",D.jsx("code",{children:"active"})," state. This can happen when accounts migrate to an alternative PDS host."]}),t?D.jsx(bg,{doc:t,children:D.jsx("button",{style:{color:"#f90"},title:"clear",onClick:()=>e(null),children:"×"})}):D.jsx(e8,{onSet:e}),t&&D.jsx(a8,{doc:t}),D.jsx("p",{children:D.jsxs("small",{children:["False positive note: it's possible for a relay to set an account as ",D.jsx("code",{children:"deactivated"})," on purpose, but this moderation action is extremely rare."]})})]})}const s8=ym({colorSchemes:{dark:!0}}),JT=location.search.includes("deactivated");JT&&(document.title="Oops deactivated checker");wA.createRoot(document.getElementById("root")).render(D.jsx(CE,{injectFirst:!0,children:D.jsx(Jk,{theme:s8,children:JT?D.jsx(o8,{}):D.jsx(VL,{})})}));
+2 -2
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-TkW73U8w.js"></script> 8 - <link rel="stylesheet" crossorigin href="/assets/index-Br90oyGg.css"> 7 + <script type="module" crossorigin src="/assets/index-f73U_Nfl.js"></script> 8 + <link rel="stylesheet" crossorigin href="/assets/index-Dv-8fvSG.css"> 9 9 </head> 10 10 <body> 11 11 <div id="root"></div>