function CN(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const l in r)if(l!=="default"&&!(l in e)){const a=Object.getOwnPropertyDescriptor(r,l);a&&Object.defineProperty(e,l,a.get?a:{enumerable:!0,get:()=>r[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const a of l)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(l){const a={};return l.integrity&&(a.integrity=l.integrity),l.referrerPolicy&&(a.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?a.credentials="include":l.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(l){if(l.ep)return;l.ep=!0;const a=n(l);fetch(l.href,a)}})();var sg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function SN(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var l=!1;try{l=this instanceof r}catch{}return l?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}),n}var my={exports:{}},xf={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var AP;function wN(){if(AP)return xf;AP=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,l,a){var s=null;if(a!==void 0&&(s=""+a),l.key!==void 0&&(s=""+l.key),"key"in l){a={};for(var u in l)u!=="key"&&(a[u]=l[u])}else a=l;return l=a.ref,{$$typeof:e,type:r,key:s,ref:l!==void 0?l:null,props:a}}return xf.Fragment=t,xf.jsx=n,xf.jsxs=n,xf}var OP;function xN(){return OP||(OP=1,my.exports=wN()),my.exports}var x=xN(),by={exports:{}},$t={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var IP;function MN(){if(IP)return $t;IP=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.iterator;function b(D){return D===null||typeof D!="object"?null:(D=g&&D[g]||D["@@iterator"],typeof D=="function"?D:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,S={};function w(D,G,W){this.props=D,this.context=G,this.refs=S,this.updater=W||y}w.prototype.isReactComponent={},w.prototype.setState=function(D,G){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,G,"setState")},w.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function M(){}M.prototype=w.prototype;function E(D,G,W){this.props=D,this.context=G,this.refs=S,this.updater=W||y}var O=E.prototype=new M;O.constructor=E,C(O,w.prototype),O.isPureReactComponent=!0;var P=Array.isArray,R={H:null,A:null,T:null,S:null,V:null},A=Object.prototype.hasOwnProperty;function z(D,G,W,Z,te,ne){return W=ne.ref,{$$typeof:e,type:D,key:G,ref:W!==void 0?W:null,props:ne}}function k(D,G){return z(D.type,G,void 0,void 0,void 0,D.props)}function L(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function H(D){var G={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(W){return G[W]})}var $=/\/+/g;function I(D,G){return typeof D=="object"&&D!==null&&D.key!=null?H(""+D.key):G.toString(36)}function j(){}function q(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(j,j):(D.status="pending",D.then(function(G){D.status==="pending"&&(D.status="fulfilled",D.value=G)},function(G){D.status==="pending"&&(D.status="rejected",D.reason=G)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function F(D,G,W,Z,te){var ne=typeof D;(ne==="undefined"||ne==="boolean")&&(D=null);var oe=!1;if(D===null)oe=!0;else switch(ne){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(D.$$typeof){case e:case t:oe=!0;break;case h:return oe=D._init,F(oe(D._payload),G,W,Z,te)}}if(oe)return te=te(D),oe=Z===""?"."+I(D,0):Z,P(te)?(W="",oe!=null&&(W=oe.replace($,"$&/")+"/"),F(te,G,W,"",function(be){return be})):te!=null&&(L(te)&&(te=k(te,W+(te.key==null||D&&D.key===te.key?"":(""+te.key).replace($,"$&/")+"/")+oe)),G.push(te)),1;oe=0;var se=Z===""?".":Z+":";if(P(D))for(var Se=0;Se<D.length;Se++)Z=D[Se],ne=se+I(Z,Se),oe+=F(Z,G,W,ne,te);else if(Se=b(D),typeof Se=="function")for(D=Se.call(D),Se=0;!(Z=D.next()).done;)Z=Z.value,ne=se+I(Z,Se++),oe+=F(Z,G,W,ne,te);else if(ne==="object"){if(typeof D.then=="function")return F(q(D),G,W,Z,te);throw G=String(D),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return oe}function _(D,G,W){if(D==null)return D;var Z=[],te=0;return F(D,Z,"","",function(ne){return G.call(W,ne,te++)}),Z}function B(D){if(D._status===-1){var G=D._result;G=G(),G.then(function(W){(D._status===0||D._status===-1)&&(D._status=1,D._result=W)},function(W){(D._status===0||D._status===-1)&&(D._status=2,D._result=W)}),D._status===-1&&(D._status=0,D._result=G)}if(D._status===1)return D._result.default;throw D._result}var J=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)};function Q(){}return $t.Children={map:_,forEach:function(D,G,W){_(D,function(){G.apply(this,arguments)},W)},count:function(D){var G=0;return _(D,function(){G++}),G},toArray:function(D){return _(D,function(G){return G})||[]},only:function(D){if(!L(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},$t.Component=w,$t.Fragment=n,$t.Profiler=l,$t.PureComponent=E,$t.StrictMode=r,$t.Suspense=d,$t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,$t.__COMPILER_RUNTIME={__proto__:null,c:function(D){return R.H.useMemoCache(D)}},$t.cache=function(D){return function(){return D.apply(null,arguments)}},$t.cloneElement=function(D,G,W){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var Z=C({},D.props),te=D.key,ne=void 0;if(G!=null)for(oe in G.ref!==void 0&&(ne=void 0),G.key!==void 0&&(te=""+G.key),G)!A.call(G,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&G.ref===void 0||(Z[oe]=G[oe]);var oe=arguments.length-2;if(oe===1)Z.children=W;else if(1<oe){for(var se=Array(oe),Se=0;Se<oe;Se++)se[Se]=arguments[Se+2];Z.children=se}return z(D.type,te,void 0,void 0,ne,Z)},$t.createContext=function(D){return D={$$typeof:s,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:a,_context:D},D},$t.createElement=function(D,G,W){var Z,te={},ne=null;if(G!=null)for(Z in G.key!==void 0&&(ne=""+G.key),G)A.call(G,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(te[Z]=G[Z]);var oe=arguments.length-2;if(oe===1)te.children=W;else if(1<oe){for(var se=Array(oe),Se=0;Se<oe;Se++)se[Se]=arguments[Se+2];te.children=se}if(D&&D.defaultProps)for(Z in oe=D.defaultProps,oe)te[Z]===void 0&&(te[Z]=oe[Z]);return z(D,ne,void 0,void 0,null,te)},$t.createRef=function(){return{current:null}},$t.forwardRef=function(D){return{$$typeof:u,render:D}},$t.isValidElement=L,$t.lazy=function(D){return{$$typeof:h,_payload:{_status:-1,_result:D},_init:B}},$t.memo=function(D,G){return{$$typeof:f,type:D,compare:G===void 0?null:G}},$t.startTransition=function(D){var G=R.T,W={};R.T=W;try{var Z=D(),te=R.S;te!==null&&te(W,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(Q,J)}catch(ne){J(ne)}finally{R.T=G}},$t.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},$t.use=function(D){return R.H.use(D)},$t.useActionState=function(D,G,W){return R.H.useActionState(D,G,W)},$t.useCallback=function(D,G){return R.H.useCallback(D,G)},$t.useContext=function(D){return R.H.useContext(D)},$t.useDebugValue=function(){},$t.useDeferredValue=function(D,G){return R.H.useDeferredValue(D,G)},$t.useEffect=function(D,G,W){var Z=R.H;if(typeof W=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Z.useEffect(D,G)},$t.useId=function(){return R.H.useId()},$t.useImperativeHandle=function(D,G,W){return R.H.useImperativeHandle(D,G,W)},$t.useInsertionEffect=function(D,G){return R.H.useInsertionEffect(D,G)},$t.useLayoutEffect=function(D,G){return R.H.useLayoutEffect(D,G)},$t.useMemo=function(D,G){return R.H.useMemo(D,G)},$t.useOptimistic=function(D,G){return R.H.useOptimistic(D,G)},$t.useReducer=function(D,G,W){return R.H.useReducer(D,G,W)},$t.useRef=function(D){return R.H.useRef(D)},$t.useState=function(D){return R.H.useState(D)},$t.useSyncExternalStore=function(D,G,W){return R.H.useSyncExternalStore(D,G,W)},$t.useTransition=function(){return R.H.useTransition()},$t.version="19.1.1",$t}var kP;function id(){return kP||(kP=1,by.exports=MN()),by.exports}var m=id();const nl=xp(m),qg=CN({__proto__:null,default:nl},[m]);function va(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const si="$$material";function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(null,arguments)}function TN(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function EN(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var hD=function(){function e(n){var r=this;this._insertTag=function(l){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(l,a),r.tags.push(l)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(EN(this));var l=this.tags[this.tags.length-1];if(this.isSpeedy){var a=TN(l);try{a.insertRule(r,a.cssRules.length)}catch{}}else l.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var l;return(l=r.parentNode)==null?void 0:l.removeChild(r)}),this.tags=[],this.ctr=0},e}(),mo="-ms-",Wg="-moz-",dn="-webkit-",gD="comm",Q1="rule",Z1="decl",PN="@import",mD="@keyframes",RN="@layer",AN=Math.abs,ym=String.fromCharCode,ON=Object.assign;function IN(e,t){return ao(e,0)^45?(((t<<2^ao(e,0))<<2^ao(e,1))<<2^ao(e,2))<<2^ao(e,3):0}function bD(e){return e.trim()}function kN(e,t){return(e=t.exec(e))?e[0]:e}function fn(e,t,n){return e.replace(t,n)}function Xw(e,t){return e.indexOf(t)}function ao(e,t){return e.charCodeAt(t)|0}function ap(e,t,n){return e.slice(t,n)}function Ai(e){return e.length}function J1(e){return e.length}function cg(e,t){return t.push(e),e}function _N(e,t){return e.map(t).join("")}var Cm=1,ju=1,vD=0,Ho=0,Ar=0,ad="";function Sm(e,t,n,r,l,a,s){return{value:e,root:t,parent:n,type:r,props:l,children:a,line:Cm,column:ju,length:s,return:""}}function Mf(e,t){return ON(Sm("",null,null,"",null,null,0),e,{length:-e.length},t)}function DN(){return Ar}function LN(){return Ar=Ho>0?ao(ad,--Ho):0,ju--,Ar===10&&(ju=1,Cm--),Ar}function ol(){return Ar=Ho<vD?ao(ad,Ho++):0,ju++,Ar===10&&(ju=1,Cm++),Ar}function Li(){return ao(ad,Ho)}function Rg(){return Ho}function Mp(e,t){return ap(ad,e,t)}function sp(e){switch(e){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 yD(e){return Cm=ju=1,vD=Ai(ad=e),Ho=0,[]}function CD(e){return ad="",e}function Ag(e){return bD(Mp(Ho-1,Qw(e===91?e+2:e===40?e+1:e)))}function $N(e){for(;(Ar=Li())&&Ar<33;)ol();return sp(e)>2||sp(Ar)>3?"":" "}function zN(e,t){for(;--t&&ol()&&!(Ar<48||Ar>102||Ar>57&&Ar<65||Ar>70&&Ar<97););return Mp(e,Rg()+(t<6&&Li()==32&&ol()==32))}function Qw(e){for(;ol();)switch(Ar){case e:return Ho;case 34:case 39:e!==34&&e!==39&&Qw(Ar);break;case 40:e===41&&Qw(e);break;case 92:ol();break}return Ho}function FN(e,t){for(;ol()&&e+Ar!==57;)if(e+Ar===84&&Li()===47)break;return"/*"+Mp(t,Ho-1)+"*"+ym(e===47?e:ol())}function HN(e){for(;!sp(Li());)ol();return Mp(e,Ho)}function NN(e){return CD(Og("",null,null,null,[""],e=yD(e),0,[0],e))}function Og(e,t,n,r,l,a,s,u,d){for(var f=0,h=0,g=s,b=0,y=0,C=0,S=1,w=1,M=1,E=0,O="",P=l,R=a,A=r,z=O;w;)switch(C=E,E=ol()){case 40:if(C!=108&&ao(z,g-1)==58){Xw(z+=fn(Ag(E),"&","&\f"),"&\f")!=-1&&(M=-1);break}case 34:case 39:case 91:z+=Ag(E);break;case 9:case 10:case 13:case 32:z+=$N(C);break;case 92:z+=zN(Rg()-1,7);continue;case 47:switch(Li()){case 42:case 47:cg(jN(FN(ol(),Rg()),t,n),d);break;default:z+="/"}break;case 123*S:u[f++]=Ai(z)*M;case 125*S:case 59:case 0:switch(E){case 0:case 125:w=0;case 59+h:M==-1&&(z=fn(z,/\f/g,"")),y>0&&Ai(z)-g&&cg(y>32?DP(z+";",r,n,g-1):DP(fn(z," ","")+";",r,n,g-2),d);break;case 59:z+=";";default:if(cg(A=_P(z,t,n,f,h,l,u,O,P=[],R=[],g),a),E===123)if(h===0)Og(z,t,A,A,P,a,g,u,R);else switch(b===99&&ao(z,3)===110?100:b){case 100:case 108:case 109:case 115:Og(e,A,A,r&&cg(_P(e,A,A,0,0,l,u,O,l,P=[],g),R),l,R,g,u,r?P:R);break;default:Og(z,A,A,A,[""],R,0,u,R)}}f=h=y=0,S=M=1,O=z="",g=s;break;case 58:g=1+Ai(z),y=C;default:if(S<1){if(E==123)--S;else if(E==125&&S++==0&&LN()==125)continue}switch(z+=ym(E),E*S){case 38:M=h>0?1:(z+="\f",-1);break;case 44:u[f++]=(Ai(z)-1)*M,M=1;break;case 64:Li()===45&&(z+=Ag(ol())),b=Li(),h=g=Ai(O=z+=HN(Rg())),E++;break;case 45:C===45&&Ai(z)==2&&(S=0)}}return a}function _P(e,t,n,r,l,a,s,u,d,f,h){for(var g=l-1,b=l===0?a:[""],y=J1(b),C=0,S=0,w=0;C<r;++C)for(var M=0,E=ap(e,g+1,g=AN(S=s[C])),O=e;M<y;++M)(O=bD(S>0?b[M]+" "+E:fn(E,/&\f/g,b[M])))&&(d[w++]=O);return Sm(e,t,n,l===0?Q1:u,d,f,h)}function jN(e,t,n){return Sm(e,t,n,gD,ym(DN()),ap(e,2,-2),0)}function DP(e,t,n,r){return Sm(e,t,n,Z1,ap(e,0,r),ap(e,r+1,-1),r)}function ku(e,t){for(var n="",r=J1(e),l=0;l<r;l++)n+=t(e[l],l,e,t)||"";return n}function BN(e,t,n,r){switch(e.type){case RN:if(e.children.length)break;case PN:case Z1:return e.return=e.return||e.value;case gD:return"";case mD:return e.return=e.value+"{"+ku(e.children,r)+"}";case Q1:e.value=e.props.join(",")}return Ai(n=ku(e.children,r))?e.return=e.value+"{"+n+"}":""}function GN(e){var t=J1(e);return function(n,r,l,a){for(var s="",u=0;u<t;u++)s+=e[u](n,r,l,a)||"";return s}}function VN(e){return function(t){t.root||(t=t.return)&&e(t)}}function SD(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var UN=function(t,n,r){for(var l=0,a=0;l=a,a=Li(),l===38&&a===12&&(n[r]=1),!sp(a);)ol();return Mp(t,Ho)},qN=function(t,n){var r=-1,l=44;do switch(sp(l)){case 0:l===38&&Li()===12&&(n[r]=1),t[r]+=UN(Ho-1,n,r);break;case 2:t[r]+=Ag(l);break;case 4:if(l===44){t[++r]=Li()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ym(l)}while(l=ol());return t},WN=function(t,n){return CD(qN(yD(t),n))},LP=new WeakMap,KN=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,l=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!LP.get(r))&&!l){LP.set(t,!0);for(var a=[],s=WN(n,a),u=r.props,d=0,f=0;d<s.length;d++)for(var h=0;h<u.length;h++,f++)t.props[f]=a[d]?s[d].replace(/&\f/g,u[h]):u[h]+" "+s[d]}}},YN=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function wD(e,t){switch(IN(e,t)){case 5103:return dn+"print-"+e+e;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 dn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return dn+e+Wg+e+mo+e+e;case 6828:case 4268:return dn+e+mo+e+e;case 6165:return dn+e+mo+"flex-"+e+e;case 5187:return dn+e+fn(e,/(\w+).+(:[^]+)/,dn+"box-$1$2"+mo+"flex-$1$2")+e;case 5443:return dn+e+mo+"flex-item-"+fn(e,/flex-|-self/,"")+e;case 4675:return dn+e+mo+"flex-line-pack"+fn(e,/align-content|flex-|-self/,"")+e;case 5548:return dn+e+mo+fn(e,"shrink","negative")+e;case 5292:return dn+e+mo+fn(e,"basis","preferred-size")+e;case 6060:return dn+"box-"+fn(e,"-grow","")+dn+e+mo+fn(e,"grow","positive")+e;case 4554:return dn+fn(e,/([^-])(transform)/g,"$1"+dn+"$2")+e;case 6187:return fn(fn(fn(e,/(zoom-|grab)/,dn+"$1"),/(image-set)/,dn+"$1"),e,"")+e;case 5495:case 3959:return fn(e,/(image-set\([^]*)/,dn+"$1$`$1");case 4968:return fn(fn(e,/(.+:)(flex-)?(.*)/,dn+"box-pack:$3"+mo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dn+e+e;case 4095:case 3583:case 4068:case 2532:return fn(e,/(.+)-inline(.+)/,dn+"$1$2")+e;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(Ai(e)-1-t>6)switch(ao(e,t+1)){case 109:if(ao(e,t+4)!==45)break;case 102:return fn(e,/(.+:)(.+)-([^]+)/,"$1"+dn+"$2-$3$1"+Wg+(ao(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Xw(e,"stretch")?wD(fn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ao(e,t+1)!==115)break;case 6444:switch(ao(e,Ai(e)-3-(~Xw(e,"!important")&&10))){case 107:return fn(e,":",":"+dn)+e;case 101:return fn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dn+(ao(e,14)===45?"inline-":"")+"box$3$1"+dn+"$2$3$1"+mo+"$2box$3")+e}break;case 5936:switch(ao(e,t+11)){case 114:return dn+e+mo+fn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dn+e+mo+fn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dn+e+mo+fn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dn+e+mo+e+e}return e}var XN=function(t,n,r,l){if(t.length>-1&&!t.return)switch(t.type){case Z1:t.return=wD(t.value,t.length);break;case mD:return ku([Mf(t,{value:fn(t.value,"@","@"+dn)})],l);case Q1:if(t.length)return _N(t.props,function(a){switch(kN(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ku([Mf(t,{props:[fn(a,/:(read-\w+)/,":"+Wg+"$1")]})],l);case"::placeholder":return ku([Mf(t,{props:[fn(a,/:(plac\w+)/,":"+dn+"input-$1")]}),Mf(t,{props:[fn(a,/:(plac\w+)/,":"+Wg+"$1")]}),Mf(t,{props:[fn(a,/:(plac\w+)/,mo+"input-$1")]})],l)}return""})}},QN=[XN],xD=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var w=S.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var l=t.stylisPlugins||QN,a={},s,u=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var w=S.getAttribute("data-emotion").split(" "),M=1;M<w.length;M++)a[w[M]]=!0;u.push(S)});var d,f=[KN,YN];{var h,g=[BN,VN(function(S){h.insert(S)})],b=GN(f.concat(l,g)),y=function(w){return ku(NN(w),b)};d=function(w,M,E,O){h=E,y(w?w+"{"+M.styles+"}":M.styles),O&&(C.inserted[M.name]=!0)}}var C={key:n,sheet:new hD({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:d};return C.sheet.hydrate(u),C},vy={exports:{}},bn={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var $P;function ZN(){if($P)return bn;$P=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,M=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function O(R){if(typeof R=="object"&&R!==null){var A=R.$$typeof;switch(A){case t:switch(R=R.type,R){case d:case f:case r:case a:case l:case g:return R;default:switch(R=R&&R.$$typeof,R){case u:case h:case C:case y:case s:return R;default:return A}}case n:return A}}}function P(R){return O(R)===f}return bn.AsyncMode=d,bn.ConcurrentMode=f,bn.ContextConsumer=u,bn.ContextProvider=s,bn.Element=t,bn.ForwardRef=h,bn.Fragment=r,bn.Lazy=C,bn.Memo=y,bn.Portal=n,bn.Profiler=a,bn.StrictMode=l,bn.Suspense=g,bn.isAsyncMode=function(R){return P(R)||O(R)===d},bn.isConcurrentMode=P,bn.isContextConsumer=function(R){return O(R)===u},bn.isContextProvider=function(R){return O(R)===s},bn.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===t},bn.isForwardRef=function(R){return O(R)===h},bn.isFragment=function(R){return O(R)===r},bn.isLazy=function(R){return O(R)===C},bn.isMemo=function(R){return O(R)===y},bn.isPortal=function(R){return O(R)===n},bn.isProfiler=function(R){return O(R)===a},bn.isStrictMode=function(R){return O(R)===l},bn.isSuspense=function(R){return O(R)===g},bn.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===r||R===f||R===a||R===l||R===g||R===b||typeof R=="object"&&R!==null&&(R.$$typeof===C||R.$$typeof===y||R.$$typeof===s||R.$$typeof===u||R.$$typeof===h||R.$$typeof===w||R.$$typeof===M||R.$$typeof===E||R.$$typeof===S)},bn.typeOf=O,bn}var zP;function JN(){return zP||(zP=1,vy.exports=ZN()),vy.exports}var yy,FP;function ej(){if(FP)return yy;FP=1;var e=JN(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=r,a[e.Memo]=l;function s(C){return e.isMemo(C)?l:a[C.$$typeof]||t}var u=Object.defineProperty,d=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,b=Object.prototype;function y(C,S,w){if(typeof S!="string"){if(b){var M=g(S);M&&M!==b&&y(C,M,w)}var E=d(S);f&&(E=E.concat(f(S)));for(var O=s(C),P=s(S),R=0;R<E.length;++R){var A=E[R];if(!n[A]&&!(w&&w[A])&&!(P&&P[A])&&!(O&&O[A])){var z=h(S,A);try{u(C,A,z)}catch{}}}}return C}return yy=y,yy}ej();var tj=!0;function MD(e,t,n){var r="";return n.split(" ").forEach(function(l){e[l]!==void 0?t.push(e[l]+";"):l&&(r+=l+" ")}),r}var ex=function(t,n,r){var l=t.key+"-"+n.name;(r===!1||tj===!1)&&t.registered[l]===void 0&&(t.registered[l]=n.styles)},tx=function(t,n,r){ex(t,n,r);var l=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+l:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function nj(e){for(var t=0,n,r=0,l=e.length;l>=4;++r,l-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var rj={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},oj=/[A-Z]|^ms/g,lj=/_EMO_([^_]+?)_([^]*?)_EMO_/g,TD=function(t){return t.charCodeAt(1)===45},HP=function(t){return t!=null&&typeof t!="boolean"},Cy=SD(function(e){return TD(e)?e:e.replace(oj,"-$&").toLowerCase()}),NP=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(lj,function(r,l,a){return Oi={name:l,styles:a,next:Oi},l})}return rj[t]!==1&&!TD(t)&&typeof n=="number"&&n!==0?n+"px":n};function cp(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var l=n;if(l.anim===1)return Oi={name:l.name,styles:l.styles,next:Oi},l.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)Oi={name:s.name,styles:s.styles,next:Oi},s=s.next;var u=a.styles+";";return u}return ij(e,t,n)}case"function":{if(e!==void 0){var d=Oi,f=n(e);return Oi=d,cp(e,t,f)}break}}var h=n;if(t==null)return h;var g=t[h];return g!==void 0?g:h}function ij(e,t,n){var r="";if(Array.isArray(n))for(var l=0;l<n.length;l++)r+=cp(e,t,n[l])+";";else for(var a in n){var s=n[a];if(typeof s!="object"){var u=s;t!=null&&t[u]!==void 0?r+=a+"{"+t[u]+"}":HP(u)&&(r+=Cy(a)+":"+NP(a,u)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var d=0;d<s.length;d++)HP(s[d])&&(r+=Cy(a)+":"+NP(a,s[d])+";");else{var f=cp(e,t,s);switch(a){case"animation":case"animationName":{r+=Cy(a)+":"+f+";";break}default:r+=a+"{"+f+"}"}}}return r}var jP=/label:\s*([^\s;{]+)\s*(;|$)/g,Oi;function Tp(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,l="";Oi=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,l+=cp(n,t,a);else{var s=a;l+=s[0]}for(var u=1;u<e.length;u++)if(l+=cp(n,t,e[u]),r){var d=a;l+=d[u]}jP.lastIndex=0;for(var f="",h;(h=jP.exec(l))!==null;)f+="-"+h[1];var g=nj(l)+f;return{name:g,styles:l,next:Oi}}var aj=function(t){return t()},ED=qg.useInsertionEffect?qg.useInsertionEffect:!1,PD=ED||aj,BP=ED||m.useLayoutEffect,RD=m.createContext(typeof HTMLElement<"u"?xD({key:"css"}):null),sj=RD.Provider,nx=function(t){return m.forwardRef(function(n,r){var l=m.useContext(RD);return t(n,l,r)})},Ep=m.createContext({}),rx={}.hasOwnProperty,Zw="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",cj=function(t,n){var r={};for(var l in n)rx.call(n,l)&&(r[l]=n[l]);return r[Zw]=t,r},uj=function(t){var n=t.cache,r=t.serialized,l=t.isStringTag;return ex(n,r,l),PD(function(){return tx(n,r,l)}),null},dj=nx(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var l=e[Zw],a=[r],s="";typeof e.className=="string"?s=MD(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var u=Tp(a,void 0,m.useContext(Ep));s+=t.key+"-"+u.name;var d={};for(var f in e)rx.call(e,f)&&f!=="css"&&f!==Zw&&(d[f]=e[f]);return d.className=s,n&&(d.ref=n),m.createElement(m.Fragment,null,m.createElement(uj,{cache:t,serialized:u,isStringTag:typeof l=="string"}),m.createElement(l,d))}),fj=dj,GP=function(t,n){var r=arguments;if(n==null||!rx.call(n,"css"))return m.createElement.apply(void 0,r);var l=r.length,a=new Array(l);a[0]=fj,a[1]=cj(t,n);for(var s=2;s<l;s++)a[s]=r[s];return m.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(GP||(GP={}));var pj=nx(function(e,t){var n=e.styles,r=Tp([n],void 0,m.useContext(Ep)),l=m.useRef();return BP(function(){var a=t.key+"-global",s=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,d=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),d!==null&&(u=!0,d.setAttribute("data-emotion",a),s.hydrate([d])),l.current=[s,u],function(){s.flush()}},[t]),BP(function(){var a=l.current,s=a[0],u=a[1];if(u){a[1]=!1;return}if(r.next!==void 0&&tx(t,r.next,!0),s.tags.length){var d=s.tags[s.tags.length-1].nextElementSibling;s.before=d,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function Ss(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Tp(t)}function Fl(){var e=Ss.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var hj=/^((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)-.*))$/,gj=SD(function(e){return hj.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),mj=gj,bj=function(t){return t!=="theme"},VP=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?mj:bj},UP=function(t,n,r){var l;if(n){var a=n.shouldForwardProp;l=t.__emotion_forwardProp&&a?function(s){return t.__emotion_forwardProp(s)&&a(s)}:a}return typeof l!="function"&&r&&(l=t.__emotion_forwardProp),l},vj=function(t){var n=t.cache,r=t.serialized,l=t.isStringTag;return ex(n,r,l),PD(function(){return tx(n,r,l)}),null},yj=function e(t,n){var r=t.__emotion_real===t,l=r&&t.__emotion_base||t,a,s;n!==void 0&&(a=n.label,s=n.target);var u=UP(t,n,r),d=u||VP(l),f=!d("as");return function(){var h=arguments,g=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&g.push("label:"+a+";"),h[0]==null||h[0].raw===void 0)g.push.apply(g,h);else{var b=h[0];g.push(b[0]);for(var y=h.length,C=1;C<y;C++)g.push(h[C],b[C])}var S=nx(function(w,M,E){var O=f&&w.as||l,P="",R=[],A=w;if(w.theme==null){A={};for(var z in w)A[z]=w[z];A.theme=m.useContext(Ep)}typeof w.className=="string"?P=MD(M.registered,R,w.className):w.className!=null&&(P=w.className+" ");var k=Tp(g.concat(R),M.registered,A);P+=M.key+"-"+k.name,s!==void 0&&(P+=" "+s);var L=f&&u===void 0?VP(O):d,H={};for(var $ in w)f&&$==="as"||L($)&&(H[$]=w[$]);return H.className=P,E&&(H.ref=E),m.createElement(m.Fragment,null,m.createElement(vj,{cache:M,serialized:k,isStringTag:typeof O=="string"}),m.createElement(O,H))});return S.displayName=a!==void 0?a:"Styled("+(typeof l=="string"?l:l.displayName||l.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=l,S.__emotion_styles=g,S.__emotion_forwardProp=u,Object.defineProperty(S,"toString",{value:function(){return"."+s}}),S.withComponent=function(w,M){var E=e(w,N({},n,M,{shouldForwardProp:UP(S,M,!0)}));return E.apply(void 0,g)},S}},Cj=["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"],Jw=yj.bind(null);Cj.forEach(function(e){Jw[e]=Jw(e)});var Sy={exports:{}},wy,qP;function Sj(){if(qP)return wy;qP=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return wy=e,wy}var xy,WP;function wj(){if(WP)return xy;WP=1;var e=Sj();function t(){}function n(){}return n.resetWarningCache=t,xy=function(){function r(s,u,d,f,h,g){if(g!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}r.isRequired=r;function l(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:l,element:r,elementType:r,instanceOf:l,node:r,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},xy}var KP;function xj(){return KP||(KP=1,Sy.exports=wj()()),Sy.exports}var Mj=xj();const ce=xp(Mj),My=new Map,Tj=(e,t)=>{const n=xD(e);return n.sheet=new t({key:n.key,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy,prepend:n.sheet.prepend,insertionPoint:n.sheet.insertionPoint}),n};let ls;if(typeof document=="object"&&(ls=document.querySelector('[name="emotion-insertion-point"]'),!ls)){ls=document.createElement("meta"),ls.setAttribute("name","emotion-insertion-point"),ls.setAttribute("content","");const e=document.querySelector("head");e&&e.prepend(ls)}function Ej(e,t){if(e||t){class n extends hD{insert(a,s){return this.key&&this.key.endsWith("global")&&(this.before=ls),super.insert(a,s)}}const r=Tj({key:"css",insertionPoint:e?ls:void 0},n);if(t){const l=r.insert;r.insert=(...a)=>(a[1].styles.match(/^@layer\s+[^{]*$/)||(a[1].styles=`@layer mui {${a[1].styles}}`),l(...a))}return r}}function Pj(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,l=m.useMemo(()=>{const a=`${t}-${n}`;if(typeof document=="object"&&My.has(a))return My.get(a);const s=Ej(t,n);return My.set(a,s),s},[t,n]);return l?x.jsx(sj,{value:l,children:r}):r}function Rj(e){return e==null||Object.keys(e).length===0}function AD(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?l=>t(Rj(l)?n:l):t;return x.jsx(pj,{styles:r})}function OD(e,t){return Jw(e,t)}function Aj(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const YP=[];function gs(e){return YP[0]=e,Tp(YP)}var Ty={exports:{}},_n={};/**
 * @license React
 * react-is.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var XP;function Oj(){if(XP)return _n;XP=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function C(S){if(typeof S=="object"&&S!==null){var w=S.$$typeof;switch(w){case e:switch(S=S.type,S){case n:case l:case r:case d:case f:case b:return S;default:switch(S=S&&S.$$typeof,S){case s:case u:case g:case h:return S;case a:return S;default:return w}}case t:return w}}}return _n.ContextConsumer=a,_n.ContextProvider=s,_n.Element=e,_n.ForwardRef=u,_n.Fragment=n,_n.Lazy=g,_n.Memo=h,_n.Portal=t,_n.Profiler=l,_n.StrictMode=r,_n.Suspense=d,_n.SuspenseList=f,_n.isContextConsumer=function(S){return C(S)===a},_n.isContextProvider=function(S){return C(S)===s},_n.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},_n.isForwardRef=function(S){return C(S)===u},_n.isFragment=function(S){return C(S)===n},_n.isLazy=function(S){return C(S)===g},_n.isMemo=function(S){return C(S)===h},_n.isPortal=function(S){return C(S)===t},_n.isProfiler=function(S){return C(S)===l},_n.isStrictMode=function(S){return C(S)===r},_n.isSuspense=function(S){return C(S)===d},_n.isSuspenseList=function(S){return C(S)===f},_n.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===l||S===r||S===d||S===f||typeof S=="object"&&S!==null&&(S.$$typeof===g||S.$$typeof===h||S.$$typeof===s||S.$$typeof===a||S.$$typeof===u||S.$$typeof===y||S.getModuleId!==void 0)},_n.typeOf=C,_n}var QP;function Ij(){return QP||(QP=1,Ty.exports=Oj()),Ty.exports}var ID=Ij();function Ii(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function kD(e){if(m.isValidElement(e)||ID.isValidElementType(e)||!Ii(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=kD(e[n])}),t}function vo(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Ii(e)&&Ii(t)&&Object.keys(t).forEach(l=>{m.isValidElement(t[l])||ID.isValidElementType(t[l])?r[l]=t[l]:Ii(t[l])&&Object.prototype.hasOwnProperty.call(e,l)&&Ii(e[l])?r[l]=vo(e[l],t[l],n):n.clone?r[l]=Ii(t[l])?kD(t[l]):t[l]:r[l]=t[l]}),r}const kj=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function _j(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...l}=e,a=kj(t),s=Object.keys(a);function u(b){return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${n})`}function d(b){return`@media (max-width:${(typeof t[b]=="number"?t[b]:b)-r/100}${n})`}function f(b,y){const C=s.indexOf(y);return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${n}) and (max-width:${(C!==-1&&typeof t[s[C]]=="number"?t[s[C]]:y)-r/100}${n})`}function h(b){return s.indexOf(b)+1<s.length?f(b,s[s.indexOf(b)+1]):u(b)}function g(b){const y=s.indexOf(b);return y===0?u(s[1]):y===s.length-1?d(s[y]):f(b,s[s.indexOf(b)+1]).replace("@media","@media not all and")}return{keys:s,values:a,up:u,down:d,between:f,only:h,not:g,unit:n,...l}}function ZP(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,l)=>{const a=/min-width:\s*([0-9.]+)/;return+(r.match(a)?.[1]||0)-+(l.match(a)?.[1]||0)});return n.length?n.reduce((r,l)=>{const a=t[l];return delete r[l],r[l]=a,r},{...t}):t}function Dj(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Lj(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,l]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(l).up(a)}function $j(e){const t=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function n(a,s){a.up=(...u)=>t(e.breakpoints.up(...u),s),a.down=(...u)=>t(e.breakpoints.down(...u),s),a.between=(...u)=>t(e.breakpoints.between(...u),s),a.only=(...u)=>t(e.breakpoints.only(...u),s),a.not=(...u)=>{const d=t(e.breakpoints.not(...u),s);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const r={},l=a=>(n(r,a),r);return n(l),{...e,containerQueries:l}}const zj={borderRadius:4};function Yf(e,t){return t?vo(e,t,{clone:!1}):e}const wm={xs:0,sm:600,md:900,lg:1200,xl:1536},JP={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${wm[e]}px)`},Fj={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:wm[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ya(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||JP;return t.reduce((s,u,d)=>(s[a.up(a.keys[d])]=n(t[d]),s),{})}if(typeof t=="object"){const a=r.breakpoints||JP;return Object.keys(t).reduce((s,u)=>{if(Dj(a.keys,u)){const d=Lj(r.containerQueries?r:Fj,u);d&&(s[d]=n(t[u],u))}else if(Object.keys(a.values||wm).includes(u)){const d=a.up(u);s[d]=n(t[u],u)}else{const d=u;s[d]=t[d]}return s},{})}return n(t)}function Hj(e={}){return e.keys?.reduce((n,r)=>{const l=e.up(r);return n[l]={},n},{})||{}}function eR(e,t){return e.reduce((n,r)=>{const l=n[r];return(!l||Object.keys(l).length===0)&&delete n[r],n},t)}function we(e){if(typeof e!="string")throw new Error(va(7));return e.charAt(0).toUpperCase()+e.slice(1)}function xm(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((l,a)=>l&&l[a]?l[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,l)=>r&&r[l]!=null?r[l]:null,e)}function Kg(e,t,n,r=n){let l;return typeof e=="function"?l=e(n):Array.isArray(e)?l=e[n]||r:l=xm(e,n)||r,t&&(l=t(l,r,e)),l}function yr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:l}=e,a=s=>{if(s[t]==null)return null;const u=s[t],d=s.theme,f=xm(d,r)||{};return ya(s,u,g=>{let b=Kg(f,l,g);return g===b&&typeof g=="string"&&(b=Kg(f,l,`${t}${g==="default"?"":we(g)}`,g)),n===!1?b:{[n]:b}})};return a.propTypes={},a.filterProps=[t],a}function Nj(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const jj={m:"margin",p:"padding"},Bj={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},tR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Gj=Nj(e=>{if(e.length>2)if(tR[e])e=tR[e];else return[e];const[t,n]=e.split(""),r=jj[t],l=Bj[n]||"";return Array.isArray(l)?l.map(a=>r+a):[r+l]}),ox=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],lx=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...ox,...lx];function Pp(e,t,n,r){const l=xm(e,t,!0)??n;return typeof l=="number"||typeof l=="string"?a=>typeof a=="string"?a:typeof l=="string"?l.startsWith("var(")&&a===0?0:l.startsWith("var(")&&a===1?l:`calc(${a} * ${l})`:l*a:Array.isArray(l)?a=>{if(typeof a=="string")return a;const s=Math.abs(a),u=l[s];return a>=0?u:typeof u=="number"?-u:typeof u=="string"&&u.startsWith("var(")?`calc(-1 * ${u})`:`-${u}`}:typeof l=="function"?l:()=>{}}function ix(e){return Pp(e,"spacing",8)}function Rp(e,t){return typeof t=="string"||t==null?t:e(t)}function Vj(e,t){return n=>e.reduce((r,l)=>(r[l]=Rp(t,n),r),{})}function Uj(e,t,n,r){if(!t.includes(n))return null;const l=Gj(n),a=Vj(l,r),s=e[n];return ya(e,s,a)}function _D(e,t){const n=ix(e.theme);return Object.keys(e).map(r=>Uj(e,t,r,n)).reduce(Yf,{})}function hr(e){return _D(e,ox)}hr.propTypes={};hr.filterProps=ox;function gr(e){return _D(e,lx)}gr.propTypes={};gr.filterProps=lx;function DD(e=8,t=ix({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Mm(...e){const t=e.reduce((r,l)=>(l.filterProps.forEach(a=>{r[a]=l}),r),{}),n=r=>Object.keys(r).reduce((l,a)=>t[a]?Yf(l,t[a](r)):l,{});return n.propTypes={},n.filterProps=e.reduce((r,l)=>r.concat(l.filterProps),[]),n}function Rl(e){return typeof e!="number"?e:`${e}px solid`}function Hl(e,t){return yr({prop:e,themeKey:"borders",transform:t})}const qj=Hl("border",Rl),Wj=Hl("borderTop",Rl),Kj=Hl("borderRight",Rl),Yj=Hl("borderBottom",Rl),Xj=Hl("borderLeft",Rl),Qj=Hl("borderColor"),Zj=Hl("borderTopColor"),Jj=Hl("borderRightColor"),eB=Hl("borderBottomColor"),tB=Hl("borderLeftColor"),nB=Hl("outline",Rl),rB=Hl("outlineColor"),Tm=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Pp(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Rp(t,r)});return ya(e,e.borderRadius,n)}return null};Tm.propTypes={};Tm.filterProps=["borderRadius"];Mm(qj,Wj,Kj,Yj,Xj,Qj,Zj,Jj,eB,tB,Tm,nB,rB);const Em=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Pp(e.theme,"spacing",8),n=r=>({gap:Rp(t,r)});return ya(e,e.gap,n)}return null};Em.propTypes={};Em.filterProps=["gap"];const Pm=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Pp(e.theme,"spacing",8),n=r=>({columnGap:Rp(t,r)});return ya(e,e.columnGap,n)}return null};Pm.propTypes={};Pm.filterProps=["columnGap"];const Rm=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Pp(e.theme,"spacing",8),n=r=>({rowGap:Rp(t,r)});return ya(e,e.rowGap,n)}return null};Rm.propTypes={};Rm.filterProps=["rowGap"];const oB=yr({prop:"gridColumn"}),lB=yr({prop:"gridRow"}),iB=yr({prop:"gridAutoFlow"}),aB=yr({prop:"gridAutoColumns"}),sB=yr({prop:"gridAutoRows"}),cB=yr({prop:"gridTemplateColumns"}),uB=yr({prop:"gridTemplateRows"}),dB=yr({prop:"gridTemplateAreas"}),fB=yr({prop:"gridArea"});Mm(Em,Pm,Rm,oB,lB,iB,aB,sB,cB,uB,dB,fB);function _u(e,t){return t==="grey"?t:e}const pB=yr({prop:"color",themeKey:"palette",transform:_u}),hB=yr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_u}),gB=yr({prop:"backgroundColor",themeKey:"palette",transform:_u});Mm(pB,hB,gB);function el(e){return e<=1&&e!==0?`${e*100}%`:e}const mB=yr({prop:"width",transform:el}),ax=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||wm[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:el(n)}};return ya(e,e.maxWidth,t)}return null};ax.filterProps=["maxWidth"];const bB=yr({prop:"minWidth",transform:el}),vB=yr({prop:"height",transform:el}),yB=yr({prop:"maxHeight",transform:el}),CB=yr({prop:"minHeight",transform:el});yr({prop:"size",cssProperty:"width",transform:el});yr({prop:"size",cssProperty:"height",transform:el});const SB=yr({prop:"boxSizing"});Mm(mB,ax,bB,vB,yB,CB,SB);const Ap={border:{themeKey:"borders",transform:Rl},borderTop:{themeKey:"borders",transform:Rl},borderRight:{themeKey:"borders",transform:Rl},borderBottom:{themeKey:"borders",transform:Rl},borderLeft:{themeKey:"borders",transform:Rl},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Rl},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Tm},color:{themeKey:"palette",transform:_u},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_u},backgroundColor:{themeKey:"palette",transform:_u},p:{style:gr},pt:{style:gr},pr:{style:gr},pb:{style:gr},pl:{style:gr},px:{style:gr},py:{style:gr},padding:{style:gr},paddingTop:{style:gr},paddingRight:{style:gr},paddingBottom:{style:gr},paddingLeft:{style:gr},paddingX:{style:gr},paddingY:{style:gr},paddingInline:{style:gr},paddingInlineStart:{style:gr},paddingInlineEnd:{style:gr},paddingBlock:{style:gr},paddingBlockStart:{style:gr},paddingBlockEnd:{style:gr},m:{style:hr},mt:{style:hr},mr:{style:hr},mb:{style:hr},ml:{style:hr},mx:{style:hr},my:{style:hr},margin:{style:hr},marginTop:{style:hr},marginRight:{style:hr},marginBottom:{style:hr},marginLeft:{style:hr},marginX:{style:hr},marginY:{style:hr},marginInline:{style:hr},marginInlineStart:{style:hr},marginInlineEnd:{style:hr},marginBlock:{style:hr},marginBlockStart:{style:hr},marginBlockEnd:{style:hr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Em},rowGap:{style:Rm},columnGap:{style:Pm},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:el},maxWidth:{style:ax},minWidth:{transform:el},height:{transform:el},maxHeight:{transform:el},minHeight:{transform:el},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 wB(...e){const t=e.reduce((r,l)=>r.concat(Object.keys(l)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function xB(e,t){return typeof e=="function"?e(t):e}function MB(){function e(n,r,l,a){const s={[n]:r,theme:l},u=a[n];if(!u)return{[n]:r};const{cssProperty:d=n,themeKey:f,transform:h,style:g}=u;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const b=xm(l,f)||{};return g?g(s):ya(s,r,C=>{let S=Kg(b,h,C);return C===S&&typeof C=="string"&&(S=Kg(b,h,`${n}${C==="default"?"":we(C)}`,C)),d===!1?S:{[d]:S}})}function t(n){const{sx:r,theme:l={},nested:a}=n||{};if(!r)return null;const s=l.unstable_sxConfig??Ap;function u(d){let f=d;if(typeof d=="function")f=d(l);else if(typeof d!="object")return d;if(!f)return null;const h=Hj(l.breakpoints),g=Object.keys(h);let b=h;return Object.keys(f).forEach(y=>{const C=xB(f[y],l);if(C!=null)if(typeof C=="object")if(s[y])b=Yf(b,e(y,C,l,s));else{const S=ya({theme:l},C,w=>({[y]:w}));wB(S,C)?b[y]=t({sx:C,theme:l,nested:!0}):b=Yf(b,S)}else b=Yf(b,e(y,C,l,s))}),!a&&l.modularCssLayers?{"@layer sx":ZP(l,eR(g,b))}:ZP(l,eR(g,b))}return Array.isArray(r)?r.map(u):u(r)}return t}const bs=MB();bs.filterProps=["sx"];function TB(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Am(e={},...t){const{breakpoints:n={},palette:r={},spacing:l,shape:a={},...s}=e,u=_j(n),d=DD(l);let f=vo({breakpoints:u,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...zj,...a}},s);return f=$j(f),f.applyStyles=TB,f=t.reduce((h,g)=>vo(h,g),f),f.unstable_sxConfig={...Ap,...s?.unstable_sxConfig},f.unstable_sx=function(g){return bs({sx:g,theme:this})},f}function EB(e){return Object.keys(e).length===0}function Om(e=null){const t=m.useContext(Ep);return!t||EB(t)?e:t}const PB=Am();function Op(e=PB){return Om(e)}function Ey(e){const t=gs(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function LD({styles:e,themeId:t,defaultTheme:n={}}){const r=Op(n),l=t&&r[t]||r;let a=typeof e=="function"?e(l):e;return l.modularCssLayers&&(Array.isArray(a)?a=a.map(s=>Ey(typeof s=="function"?s(l):s)):a=Ey(a)),x.jsx(AD,{styles:a})}const RB=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Ap;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function sx(e){const{sx:t,...n}=e,{systemProps:r,otherProps:l}=RB(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const u=t(...s);return Ii(u)?{...r,...u}:r}:a={...r,...t},{...l,sx:a}}const nR=e=>e,AB=()=>{let e=nR;return{configure(t){e=t},generate(t){return e(t)},reset(){e=nR}}},$D=AB();function zD(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(n=zD(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Oe(){for(var e,t,n=0,r="",l=arguments.length;n<l;n++)(e=arguments[n])&&(t=zD(e))&&(r&&(r+=" "),r+=t);return r}function OB(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:l}=e,a=OD("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(bs);return m.forwardRef(function(d,f){const h=Op(n),{className:g,component:b="div",...y}=sx(d);return x.jsx(a,{as:b,ref:f,className:Oe(g,l?l(r):r),theme:t&&h[t]||h,...y})})}const IB={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 St(e,t,n="Mui"){const r=IB[t];return r?`${n}-${r}`:`${$D.generate(e)}-${t}`}function vt(e,t,n="Mui"){const r={};return t.forEach(l=>{r[l]=St(e,l,n)}),r}function FD(e){const{variants:t,...n}=e,r={variants:t,style:gs(n),isProcessed:!0};return r.style===n||t&&t.forEach(l=>{typeof l.style!="function"&&(l.style=gs(l.style))}),r}const kB=Am();function Py(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function oc(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function _B(e){return e?(t,n)=>n[e]:null}function DB(e,t,n){e.theme=$B(e.theme)?n:e.theme[t]||e.theme}function Ig(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(l=>Ig(e,l,n));if(Array.isArray(r?.variants)){let l;if(r.isProcessed)l=n?oc(r.style,n):r.style;else{const{variants:a,...s}=r;l=n?oc(gs(s),n):s}return HD(e,r.variants,[l],n)}return r?.isProcessed?n?oc(gs(r.style),n):r.style:n?oc(gs(r),n):r}function HD(e,t,n=[],r=void 0){let l;e:for(let a=0;a<t.length;a+=1){const s=t[a];if(typeof s.props=="function"){if(l??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(l))continue}else for(const u in s.props)if(e[u]!==s.props[u]&&e.ownerState?.[u]!==s.props[u])continue e;typeof s.style=="function"?(l??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?oc(gs(s.style(l)),r):s.style(l))):n.push(r?oc(gs(s.style),r):s.style)}return n}function ND(e={}){const{themeId:t,defaultTheme:n=kB,rootShouldForwardProp:r=Py,slotShouldForwardProp:l=Py}=e;function a(u){DB(u,t,n)}return(u,d={})=>{Aj(u,A=>A.filter(z=>z!==bs));const{name:f,slot:h,skipVariantsResolver:g,skipSx:b,overridesResolver:y=_B(FB(h)),...C}=d,S=f&&f.startsWith("Mui")||h?"components":"custom",w=g!==void 0?g:h&&h!=="Root"&&h!=="root"||!1,M=b||!1;let E=Py;h==="Root"||h==="root"?E=r:h?E=l:zB(u)&&(E=void 0);const O=OD(u,{shouldForwardProp:E,label:LB(),...C}),P=A=>{if(A.__emotion_real===A)return A;if(typeof A=="function")return function(k){return Ig(k,A,k.theme.modularCssLayers?S:void 0)};if(Ii(A)){const z=FD(A);return function(L){return z.variants?Ig(L,z,L.theme.modularCssLayers?S:void 0):L.theme.modularCssLayers?oc(z.style,S):z.style}}return A},R=(...A)=>{const z=[],k=A.map(P),L=[];if(z.push(a),f&&y&&L.push(function(j){const F=j.theme.components?.[f]?.styleOverrides;if(!F)return null;const _={};for(const B in F)_[B]=Ig(j,F[B],j.theme.modularCssLayers?"theme":void 0);return y(j,_)}),f&&!w&&L.push(function(j){const F=j.theme?.components?.[f]?.variants;return F?HD(j,F,[],j.theme.modularCssLayers?"theme":void 0):null}),M||L.push(bs),Array.isArray(k[0])){const I=k.shift(),j=new Array(z.length).fill(""),q=new Array(L.length).fill("");let F;F=[...j,...I,...q],F.raw=[...j,...I.raw,...q],z.unshift(F)}const H=[...z,...k,...L],$=O(...H);return u.muiName&&($.muiName=u.muiName),$};return O.withConfig&&(R.withConfig=O.withConfig),R}}function LB(e,t){return void 0}function $B(e){for(const t in e)return!1;return!0}function zB(e){return typeof e=="string"&&e.charCodeAt(0)>96}function FB(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Xt=ND();function Bu(e,t,n=!1){const r={...t};for(const l in e)if(Object.prototype.hasOwnProperty.call(e,l)){const a=l;if(a==="components"||a==="slots")r[a]={...e[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const s=e[a],u=t[a];if(!u)r[a]=s||{};else if(!s)r[a]=u;else{r[a]={...u};for(const d in s)if(Object.prototype.hasOwnProperty.call(s,d)){const f=d;r[a][f]=Bu(s[f],u[f],n)}}}else a==="className"&&n&&t.className?r.className=Oe(e?.className,t?.className):a==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}function cx(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Bu(t.components[n].defaultProps,r)}function HB({props:e,name:t,defaultTheme:n,themeId:r}){let l=Op(n);return r&&(l=l[r]||l),cx({theme:l,name:t,props:e})}const gn=typeof window<"u"?m.useLayoutEffect:m.useEffect;function NB(e,t,n,r,l){const[a,s]=m.useState(()=>l&&n?n(e).matches:r?r(e).matches:t);return gn(()=>{if(!n)return;const u=n(e),d=()=>{s(u.matches)};return d(),u.addEventListener("change",d),()=>{u.removeEventListener("change",d)}},[e,n]),a}const jB={...qg},jD=jB.useSyncExternalStore;function BB(e,t,n,r,l){const a=m.useCallback(()=>t,[t]),s=m.useMemo(()=>{if(l&&n)return()=>n(e).matches;if(r!==null){const{matches:h}=r(e);return()=>h}return a},[a,e,r,l,n]),[u,d]=m.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const h=n(e);return[()=>h.matches,g=>(h.addEventListener("change",g),()=>{h.removeEventListener("change",g)})]},[a,n,e]);return jD(d,u,s)}function BD(e={}){const{themeId:t}=e;return function(r,l={}){let a=Om();a&&t&&(a=a[t]||a);const s=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:u=!1,matchMedia:d=s?window.matchMedia:null,ssrMatchMedia:f=null,noSsr:h=!1}=cx({name:"MuiUseMediaQuery",props:l,theme:a});let g=typeof r=="function"?r(a):r;return g=g.replace(/^@media( ?)/m,""),g.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(`
`)),(jD!==void 0?BB:NB)(g,u,d,f,h)}}BD();function GB(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function ux(e,t=0,n=1){return GB(e,t,n)}function VB(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,l)=>l<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function vs(e){if(e.type)return e;if(e.charAt(0)==="#")return vs(VB(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(va(9,e));let r=e.substring(t+1,e.length-1),l;if(n==="color"){if(r=r.split(" "),l=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(l))throw new Error(va(10,l))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:l}}const UB=e=>{const t=vs(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Hf=(e,t)=>{try{return UB(e)}catch{return e}};function Im(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((l,a)=>a<3?parseInt(l,10):l):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function GD(e){e=vs(e);const{values:t}=e,n=t[0],r=t[1]/100,l=t[2]/100,a=r*Math.min(l,1-l),s=(f,h=(f+n/30)%12)=>l-a*Math.max(Math.min(h-3,9-h,1),-1);let u="rgb";const d=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(u+="a",d.push(t[3])),Im({type:u,values:d})}function e1(e){e=vs(e);let t=e.type==="hsl"||e.type==="hsla"?vs(GD(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function qB(e,t){const n=e1(e),r=e1(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ca(e,t){return e=vs(e),t=ux(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Im(e)}function Ks(e,t,n){try{return Ca(e,t)}catch{return e}}function Ip(e,t){if(e=vs(e),t=ux(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Im(e)}function Mn(e,t,n){try{return Ip(e,t)}catch{return e}}function kp(e,t){if(e=vs(e),t=ux(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Im(e)}function Tn(e,t,n){try{return kp(e,t)}catch{return e}}function t1(e,t=.15){return e1(e)>.5?Ip(e,t):kp(e,t)}function ug(e,t,n){try{return t1(e,t)}catch{return e}}const VD=m.createContext(null);function dx(){return m.useContext(VD)}const WB=typeof Symbol=="function"&&Symbol.for,KB=WB?Symbol.for("mui.nested"):"__THEME_NESTED__";function YB(e,t){return typeof t=="function"?t(e):{...e,...t}}function XB(e){const{children:t,theme:n}=e,r=dx(),l=m.useMemo(()=>{const a=r===null?{...n}:YB(r,n);return a!=null&&(a[KB]=r!==null),a},[n,r]);return x.jsx(VD.Provider,{value:l,children:t})}const UD=m.createContext();function QB({value:e,...t}){return x.jsx(UD.Provider,{value:e??!0,...t})}const Po=()=>m.useContext(UD)??!1,qD=m.createContext(void 0);function ZB({value:e,children:t}){return x.jsx(qD.Provider,{value:e,children:t})}function JB(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const l=t.components[n];return l.defaultProps?Bu(l.defaultProps,r,t.components.mergeClassNameAndStyle):!l.styleOverrides&&!l.variants?Bu(l,r,t.components.mergeClassNameAndStyle):r}function e5({props:e,name:t}){const n=m.useContext(qD);return JB({props:e,name:t,theme:{components:n}})}let rR=0;function t5(e){const[t,n]=m.useState(e),r=e||t;return m.useEffect(()=>{t==null&&(rR+=1,n(`mui-${rR}`))},[t]),r}const n5={...qg},oR=n5.useId;function Nt(e){if(oR!==void 0){const t=oR();return e??t}return t5(e)}function r5(e){const t=Om(),n=Nt()||"",{modularCssLayers:r}=e;let l="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!r||t!==null?l="":typeof r=="string"?l=r.replace(/mui(?!\.)/g,l):l=`@layer ${l};`,gn(()=>{const a=document.querySelector("head");if(!a)return;const s=a.firstChild;if(l){if(s&&s.hasAttribute?.("data-mui-layer-order")&&s.getAttribute("data-mui-layer-order")===n)return;const u=document.createElement("style");u.setAttribute("data-mui-layer-order",n),u.textContent=l,a.prepend(u)}else a.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[l,n]),l?x.jsx(LD,{styles:l}):null}const lR={};function iR(e,t,n,r=!1){return m.useMemo(()=>{const l=e&&t[e]||t;if(typeof n=="function"){const a=n(l),s=e?{...t,[e]:a}:a;return r?()=>s:s}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function WD(e){const{children:t,theme:n,themeId:r}=e,l=Om(lR),a=dx()||lR,s=iR(r,l,n),u=iR(r,a,n,!0),d=(r?s[r]:s).direction==="rtl",f=r5(s);return x.jsx(XB,{theme:u,children:x.jsx(Ep.Provider,{value:s,children:x.jsx(QB,{value:d,children:x.jsxs(ZB,{value:r?s[r].components:s.components,children:[f,t]})})})})}const aR={theme:void 0};function o5(e){let t,n;return function(l){let a=t;return(a===void 0||l.theme!==n)&&(aR.theme=l.theme,a=FD(e(aR)),t=a,n=l.theme),a}}const fx="mode",px="color-scheme",l5="data-color-scheme";function i5(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:l=fx,colorSchemeStorageKey:a=px,attribute:s=l5,colorSchemeNode:u="document.documentElement",nonce:d}=e||{};let f="",h=s;if(s==="class"&&(h=".%s"),s==="data"&&(h="[data-%s]"),h.startsWith(".")){const b=h.substring(1);f+=`${u}.classList.remove('${b}'.replace('%s', light), '${b}'.replace('%s', dark));
      ${u}.classList.add('${b}'.replace('%s', colorScheme));`}const g=h.match(/\[([^\]]+)\]/);if(g){const[b,y]=g[1].split("=");y||(f+=`${u}.removeAttribute('${b}'.replace('%s', light));
      ${u}.removeAttribute('${b}'.replace('%s', dark));`),f+=`
      ${u}.setAttribute('${b}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else f+=`${u}.setAttribute('${h}', colorScheme);`;return x.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(function() {
try {
  let colorScheme = '';
  const mode = localStorage.getItem('${l}') || '${t}';
  const dark = localStorage.getItem('${a}-dark') || '${r}';
  const light = localStorage.getItem('${a}-light') || '${n}';
  if (mode === 'system') {
    // handle system mode
    const mql = window.matchMedia('(prefers-color-scheme: dark)');
    if (mql.matches) {
      colorScheme = dark
    } else {
      colorScheme = light
    }
  }
  if (mode === 'light') {
    colorScheme = light;
  }
  if (mode === 'dark') {
    colorScheme = dark;
  }
  if (colorScheme) {
    ${f}
  }
} catch(e){}})();`}},"mui-color-scheme-init")}function a5(){}const s5=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return a5;const r=l=>{const a=l.newValue;l.key===e&&n(a)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function Ry(){}function sR(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function KD(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function c5(e){return KD(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function u5(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:l=[],modeStorageKey:a=fx,colorSchemeStorageKey:s=px,storageWindow:u=typeof window>"u"?void 0:window,storageManager:d=s5,noSsr:f=!1}=e,h=l.join(","),g=l.length>1,b=m.useMemo(()=>d?.({key:a,storageWindow:u}),[d,a,u]),y=m.useMemo(()=>d?.({key:`${s}-light`,storageWindow:u}),[d,s,u]),C=m.useMemo(()=>d?.({key:`${s}-dark`,storageWindow:u}),[d,s,u]),[S,w]=m.useState(()=>{const k=b?.get(t)||t,L=y?.get(n)||n,H=C?.get(r)||r;return{mode:k,systemMode:sR(k),lightColorScheme:L,darkColorScheme:H}}),[M,E]=m.useState(f||!g);m.useEffect(()=>{E(!0)},[]);const O=c5(S),P=m.useCallback(k=>{w(L=>{if(k===L.mode)return L;const H=k??t;return b?.set(H),{...L,mode:H,systemMode:sR(H)}})},[b,t]),R=m.useCallback(k=>{k?typeof k=="string"?k&&!h.includes(k)?console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`):w(L=>{const H={...L};return KD(L,$=>{$==="light"&&(y?.set(k),H.lightColorScheme=k),$==="dark"&&(C?.set(k),H.darkColorScheme=k)}),H}):w(L=>{const H={...L},$=k.light===null?n:k.light,I=k.dark===null?r:k.dark;return $&&(h.includes($)?(H.lightColorScheme=$,y?.set($)):console.error(`\`${$}\` does not exist in \`theme.colorSchemes\`.`)),I&&(h.includes(I)?(H.darkColorScheme=I,C?.set(I)):console.error(`\`${I}\` does not exist in \`theme.colorSchemes\`.`)),H}):w(L=>(y?.set(n),C?.set(r),{...L,lightColorScheme:n,darkColorScheme:r}))},[h,y,C,n,r]),A=m.useCallback(k=>{S.mode==="system"&&w(L=>{const H=k?.matches?"dark":"light";return L.systemMode===H?L:{...L,systemMode:H}})},[S.mode]),z=m.useRef(A);return z.current=A,m.useEffect(()=>{if(typeof window.matchMedia!="function"||!g)return;const k=(...H)=>z.current(...H),L=window.matchMedia("(prefers-color-scheme: dark)");return L.addListener(k),k(L),()=>{L.removeListener(k)}},[g]),m.useEffect(()=>{if(g){const k=b?.subscribe($=>{(!$||["light","dark","system"].includes($))&&P($||t)})||Ry,L=y?.subscribe($=>{(!$||h.match($))&&R({light:$})})||Ry,H=C?.subscribe($=>{(!$||h.match($))&&R({dark:$})})||Ry;return()=>{k(),L(),H()}}},[R,P,h,t,u,g,b,y,C]),{...S,mode:M?S.mode:void 0,systemMode:M?S.systemMode:void 0,colorScheme:M?O:void 0,setMode:P,setColorScheme:R}}const d5="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function f5(e){const{themeId:t,theme:n={},modeStorageKey:r=fx,colorSchemeStorageKey:l=px,disableTransitionOnChange:a=!1,defaultColorScheme:s,resolveTheme:u}=e,d={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},f=m.createContext(void 0),h=()=>m.useContext(f)||d,g={},b={};function y(M){const{children:E,theme:O,modeStorageKey:P=r,colorSchemeStorageKey:R=l,disableTransitionOnChange:A=a,storageManager:z,storageWindow:k=typeof window>"u"?void 0:window,documentNode:L=typeof document>"u"?void 0:document,colorSchemeNode:H=typeof document>"u"?void 0:document.documentElement,disableNestedContext:$=!1,disableStyleSheetGeneration:I=!1,defaultMode:j="system",forceThemeRerender:q=!1,noSsr:F}=M,_=m.useRef(!1),B=dx(),J=m.useContext(f),Q=!!J&&!$,D=m.useMemo(()=>O||(typeof n=="function"?n():n),[O]),G=D[t],W=G||D,{colorSchemes:Z=g,components:te=b,cssVarPrefix:ne}=W,oe=Object.keys(Z).filter(Ke=>!!Z[Ke]).join(","),se=m.useMemo(()=>oe.split(","),[oe]),Se=typeof s=="string"?s:s.light,be=typeof s=="string"?s:s.dark,de=Z[Se]&&Z[be]?j:Z[W.defaultColorScheme]?.palette?.mode||W.palette?.mode,{mode:ke,setMode:Ae,systemMode:Ne,lightColorScheme:$e,darkColorScheme:Ve,colorScheme:nt,setColorScheme:lt}=u5({supportedColorSchemes:se,defaultLightColorScheme:Se,defaultDarkColorScheme:be,modeStorageKey:P,colorSchemeStorageKey:R,defaultMode:de,storageManager:z,storageWindow:k,noSsr:F});let me=ke,tt=nt;Q&&(me=J.mode,tt=J.colorScheme);let ze=tt||W.defaultColorScheme;W.vars&&!q&&(ze=W.defaultColorScheme);const et=m.useMemo(()=>{const Ke=W.generateThemeVars?.()||W.vars,Xe={...W,components:te,colorSchemes:Z,cssVarPrefix:ne,vars:Ke};if(typeof Xe.generateSpacing=="function"&&(Xe.spacing=Xe.generateSpacing()),ze){const mt=Z[ze];mt&&typeof mt=="object"&&Object.keys(mt).forEach(_e=>{mt[_e]&&typeof mt[_e]=="object"?Xe[_e]={...Xe[_e],...mt[_e]}:Xe[_e]=mt[_e]})}return u?u(Xe):Xe},[W,ze,te,Z,ne]),He=W.colorSchemeSelector;gn(()=>{if(tt&&H&&He&&He!=="media"){const Ke=He;let Xe=He;if(Ke==="class"&&(Xe=".%s"),Ke==="data"&&(Xe="[data-%s]"),Ke?.startsWith("data-")&&!Ke.includes("%s")&&(Xe=`[${Ke}="%s"]`),Xe.startsWith("."))H.classList.remove(...se.map(mt=>Xe.substring(1).replace("%s",mt))),H.classList.add(Xe.substring(1).replace("%s",tt));else{const mt=Xe.replace("%s",tt).match(/\[([^\]]+)\]/);if(mt){const[_e,Je]=mt[1].split("=");Je||se.forEach(Fe=>{H.removeAttribute(_e.replace(tt,Fe))}),H.setAttribute(_e,Je?Je.replace(/"|'/g,""):"")}else H.setAttribute(Xe,tt)}}},[tt,He,H,se]),m.useEffect(()=>{let Ke;if(A&&_.current&&L){const Xe=L.createElement("style");Xe.appendChild(L.createTextNode(d5)),L.head.appendChild(Xe),window.getComputedStyle(L.body),Ke=setTimeout(()=>{L.head.removeChild(Xe)},1)}return()=>{clearTimeout(Ke)}},[tt,A,L]),m.useEffect(()=>(_.current=!0,()=>{_.current=!1}),[]);const yt=m.useMemo(()=>({allColorSchemes:se,colorScheme:tt,darkColorScheme:Ve,lightColorScheme:$e,mode:me,setColorScheme:lt,setMode:Ae,systemMode:Ne}),[se,tt,Ve,$e,me,lt,Ae,Ne,et.colorSchemeSelector]);let Le=!0;(I||W.cssVariables===!1||Q&&B?.cssVarPrefix===ne)&&(Le=!1);const Pe=x.jsxs(m.Fragment,{children:[x.jsx(WD,{themeId:G?t:void 0,theme:et,children:E}),Le&&x.jsx(AD,{styles:et.generateStyleSheets?.()||[]})]});return Q?Pe:x.jsx(f.Provider,{value:yt,children:Pe})}const C=typeof s=="string"?s:s.light,S=typeof s=="string"?s:s.dark;return{CssVarsProvider:y,useColorScheme:h,getInitColorSchemeScript:M=>i5({colorSchemeStorageKey:l,defaultLightColorScheme:C,defaultDarkColorScheme:S,modeStorageKey:r,...M})}}function p5(e=""){function t(...r){if(!r.length)return"";const l=r[0];return typeof l=="string"&&!l.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${l}${t(...r.slice(1))})`:`, ${l}`}return(r,...l)=>`var(--${e?`${e}-`:""}${r}${t(...l)})`}const cR=(e,t,n,r=[])=>{let l=e;t.forEach((a,s)=>{s===t.length-1?Array.isArray(l)?l[Number(a)]=n:l&&typeof l=="object"&&(l[a]=n):l&&typeof l=="object"&&(l[a]||(l[a]=r.includes(a)?[]:{}),l=l[a])})},h5=(e,t,n)=>{function r(l,a=[],s=[]){Object.entries(l).forEach(([u,d])=>{(!n||n&&!n([...a,u]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?r(d,[...a,u],Array.isArray(d)?[...s,u]:s):t([...a,u],d,s))})}r(e)},g5=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Ay(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},l={},a={},s={};return h5(e,(u,d,f)=>{if((typeof d=="string"||typeof d=="number")&&(!r||!r(u,d))){const h=`--${n?`${n}-`:""}${u.join("-")}`,g=g5(u,d);Object.assign(l,{[h]:g}),cR(a,u,`var(${h})`,f),cR(s,u,`var(${h}, ${g})`,f)}},u=>u[0]==="vars"),{css:l,vars:a,varsWithDefaults:s}}function m5(e,t={}){const{getSelector:n=M,disableCssColorScheme:r,colorSchemeSelector:l,enableContrastVars:a}=t,{colorSchemes:s={},components:u,defaultColorScheme:d="light",...f}=e,{vars:h,css:g,varsWithDefaults:b}=Ay(f,t);let y=b;const C={},{[d]:S,...w}=s;if(Object.entries(w||{}).forEach(([P,R])=>{const{vars:A,css:z,varsWithDefaults:k}=Ay(R,t);y=vo(y,k),C[P]={css:z,vars:A}}),S){const{css:P,vars:R,varsWithDefaults:A}=Ay(S,t);y=vo(y,A),C[d]={css:P,vars:R}}function M(P,R){let A=l;if(l==="class"&&(A=".%s"),l==="data"&&(A="[data-%s]"),l?.startsWith("data-")&&!l.includes("%s")&&(A=`[${l}="%s"]`),P){if(A==="media")return e.defaultColorScheme===P?":root":{[`@media (prefers-color-scheme: ${s[P]?.palette?.mode||P})`]:{":root":R}};if(A)return e.defaultColorScheme===P?`:root, ${A.replace("%s",String(P))}`:A.replace("%s",String(P))}return":root"}return{vars:y,generateThemeVars:()=>{let P={...h};return Object.entries(C).forEach(([,{vars:R}])=>{P=vo(P,R)}),P},generateStyleSheets:()=>{const P=[],R=e.defaultColorScheme||"light";function A(L,H){Object.keys(H).length&&P.push(typeof L=="string"?{[L]:{...H}}:L)}A(n(void 0,{...g}),g);const{[R]:z,...k}=C;if(z){const{css:L}=z,H=s[R]?.palette?.mode,$=!r&&H?{colorScheme:H,...L}:{...L};A(n(R,{...$}),$)}return Object.entries(k).forEach(([L,{css:H}])=>{const $=s[L]?.palette?.mode,I=!r&&$?{colorScheme:$,...H}:{...H};A(n(L,{...I}),I)}),a&&P.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),P}}}function b5(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Be(e,t,n=void 0){const r={};for(const l in e){const a=e[l];let s="",u=!0;for(let d=0;d<a.length;d+=1){const f=a[d];f&&(s+=(u===!0?"":" ")+t(f),u=!1,n&&n[f]&&(s+=" "+n[f]))}r[l]=s}return r}function kg(e,t){return m.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const v5=(e,t)=>e.filter(n=>t.includes(n)),sd=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((l,a)=>{n((s,u)=>{a<=e.keys.length-1&&(a===0?Object.assign(s,u):s[e.up(e.keys[a])]=u)},l)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:v5(e.keys,Object.keys(t))).forEach(a=>{if(e.keys.includes(a)){const s=t[a];s!==void 0&&n((u,d)=>{r===a?Object.assign(u,d):u[e.up(a)]=d},s)}}):(typeof t=="number"||typeof t=="string")&&n((l,a)=>{Object.assign(l,a)},t)};function Yg(e){return`--Grid-${e}Spacing`}function km(e){return`--Grid-parent-${e}Spacing`}const uR="--Grid-columns",Du="--Grid-parent-columns",y5=({theme:e,ownerState:t})=>{const n={};return sd(e.breakpoints,t.size,(r,l)=>{let a={};l==="grow"&&(a={flexBasis:0,flexGrow:1,maxWidth:"100%"}),l==="auto"&&(a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof l=="number"&&(a={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${l} / var(${Du}) - (var(${Du}) - ${l}) * (var(${km("column")}) / var(${Du})))`}),r(n,a)}),n},C5=({theme:e,ownerState:t})=>{const n={};return sd(e.breakpoints,t.offset,(r,l)=>{let a={};l==="auto"&&(a={marginLeft:"auto"}),typeof l=="number"&&(a={marginLeft:l===0?"0px":`calc(100% * ${l} / var(${Du}) + var(${km("column")}) * ${l} / var(${Du}))`}),r(n,a)}),n},S5=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[uR]:12};return sd(e.breakpoints,t.columns,(r,l)=>{const a=l??12;r(n,{[uR]:a,"> *":{[Du]:a}})}),n},w5=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return sd(e.breakpoints,t.rowSpacing,(r,l)=>{const a=typeof l=="string"?l:e.spacing?.(l);r(n,{[Yg("row")]:a,"> *":{[km("row")]:a}})}),n},x5=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return sd(e.breakpoints,t.columnSpacing,(r,l)=>{const a=typeof l=="string"?l:e.spacing?.(l);r(n,{[Yg("column")]:a,"> *":{[km("column")]:a}})}),n},M5=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return sd(e.breakpoints,t.direction,(r,l)=>{r(n,{flexDirection:l})}),n},T5=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${Yg("row")}) var(${Yg("column")})`}}),E5=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},P5=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([l,a])=>{n(a)&&r.push(`spacing-${l}-${String(a)}`)}),r}return[]},R5=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];function A5(e,t){e.item!==void 0&&delete e.item,e.zeroMinWidth!==void 0&&delete e.zeroMinWidth,t.keys.forEach(n=>{e[n]!==void 0&&delete e[n]})}const O5=Am(),I5=Xt("div",{name:"MuiGrid",slot:"Root"});function k5(e){return HB({props:e,name:"MuiGrid",defaultTheme:O5})}function _5(e={}){const{createStyledComponent:t=I5,useThemeProps:n=k5,useTheme:r=Op,componentName:l="MuiGrid"}=e,a=(f,h)=>{const{container:g,direction:b,spacing:y,wrap:C,size:S}=f,w={root:["root",g&&"container",C!=="wrap"&&`wrap-xs-${String(C)}`,...R5(b),...E5(S),...g?P5(y,h.breakpoints.keys[0]):[]]};return Be(w,M=>St(l,M),{})};function s(f,h,g=()=>!0){const b={};return f===null||(Array.isArray(f)?f.forEach((y,C)=>{y!==null&&g(y)&&h.keys[C]&&(b[h.keys[C]]=y)}):typeof f=="object"?Object.keys(f).forEach(y=>{const C=f[y];C!=null&&g(C)&&(b[y]=C)}):b[h.keys[0]]=f),b}const u=t(S5,x5,w5,y5,M5,T5,C5),d=m.forwardRef(function(h,g){const b=r(),y=n(h),C=sx(y);A5(C,b.breakpoints);const{className:S,children:w,columns:M=12,container:E=!1,component:O="div",direction:P="row",wrap:R="wrap",size:A={},offset:z={},spacing:k=0,rowSpacing:L=k,columnSpacing:H=k,unstable_level:$=0,...I}=C,j=s(A,b.breakpoints,G=>G!==!1),q=s(z,b.breakpoints),F=h.columns??($?void 0:M),_=h.spacing??($?void 0:k),B=h.rowSpacing??h.spacing??($?void 0:L),J=h.columnSpacing??h.spacing??($?void 0:H),Q={...C,level:$,columns:F,container:E,direction:P,wrap:R,spacing:_,rowSpacing:B,columnSpacing:J,size:j,offset:q},D=a(Q,b);return x.jsx(u,{ref:g,as:O,ownerState:Q,className:Oe(D.root,S),...I,children:m.Children.map(w,G=>m.isValidElement(G)&&kg(G,["Grid"])&&E&&G.props.container?m.cloneElement(G,{unstable_level:G.props?.unstable_level??$+1}):G)})});return d.muiName="Grid",d}const up={black:"#000",white:"#fff"},D5={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"},pu={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},hu={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Tf={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},gu={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},mu={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},bu={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function YD(){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:up.white,default:up.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 XD=YD();function QD(){return{text:{primary:up.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:up.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 n1=QD();function dR(e,t,n,r){const l=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=kp(e.main,l):t==="dark"&&(e.dark=Ip(e.main,a)))}function fR(e,t,n,r,l){const a=l.light||l,s=l.dark||l*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(s*100).toFixed(0)}%)`))}function L5(e="light"){return e==="dark"?{main:gu[200],light:gu[50],dark:gu[400]}:{main:gu[700],light:gu[400],dark:gu[800]}}function $5(e="light"){return e==="dark"?{main:pu[200],light:pu[50],dark:pu[400]}:{main:pu[500],light:pu[300],dark:pu[700]}}function z5(e="light"){return e==="dark"?{main:hu[500],light:hu[300],dark:hu[700]}:{main:hu[700],light:hu[400],dark:hu[800]}}function F5(e="light"){return e==="dark"?{main:mu[400],light:mu[300],dark:mu[700]}:{main:mu[700],light:mu[500],dark:mu[900]}}function H5(e="light"){return e==="dark"?{main:bu[400],light:bu[300],dark:bu[700]}:{main:bu[800],light:bu[500],dark:bu[900]}}function N5(e="light"){return e==="dark"?{main:Tf[400],light:Tf[300],dark:Tf[700]}:{main:"#ed6c02",light:Tf[500],dark:Tf[900]}}function j5(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function hx(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:l,...a}=e,s=e.primary||L5(t),u=e.secondary||$5(t),d=e.error||z5(t),f=e.info||F5(t),h=e.success||H5(t),g=e.warning||N5(t);function b(w){return l?j5(w):qB(w,n1.text.primary)>=n?n1.text.primary:XD.text.primary}const y=({color:w,name:M,mainShade:E=500,lightShade:O=300,darkShade:P=700})=>{if(w={...w},!w.main&&w[E]&&(w.main=w[E]),!w.hasOwnProperty("main"))throw new Error(va(11,M?` (${M})`:"",E));if(typeof w.main!="string")throw new Error(va(12,M?` (${M})`:"",JSON.stringify(w.main)));return l?(fR(l,w,"light",O,r),fR(l,w,"dark",P,r)):(dR(w,"light",O,r),dR(w,"dark",P,r)),w.contrastText||(w.contrastText=b(w.main)),w};let C;return t==="light"?C=YD():t==="dark"&&(C=QD()),vo({common:{...up},mode:t,primary:y({color:s,name:"primary"}),secondary:y({color:u,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:d,name:"error"}),warning:y({color:g,name:"warning"}),info:y({color:f,name:"info"}),success:y({color:h,name:"success"}),grey:D5,contrastThreshold:n,getContrastText:b,augmentColor:y,tonalOffset:r,...C},a)}function B5(e){const t={};return Object.entries(e).forEach(r=>{const[l,a]=r;typeof a=="object"&&(t[l]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function G5(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function V5(e){return Math.round(e*1e5)/1e5}const pR={textTransform:"uppercase"},hR='"Roboto", "Helvetica", "Arial", sans-serif';function ZD(e,t){const{fontFamily:n=hR,fontSize:r=14,fontWeightLight:l=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:d=16,allVariants:f,pxToRem:h,...g}=typeof t=="function"?t(e):t,b=r/14,y=h||(w=>`${w/d*b}rem`),C=(w,M,E,O,P)=>({fontFamily:n,fontWeight:w,fontSize:y(M),lineHeight:E,...n===hR?{letterSpacing:`${V5(O/M)}em`}:{},...P,...f}),S={h1:C(l,96,1.167,-1.5),h2:C(l,60,1.2,-.5),h3:C(a,48,1.167,0),h4:C(a,34,1.235,.25),h5:C(a,24,1.334,0),h6:C(s,20,1.6,.15),subtitle1:C(a,16,1.75,.15),subtitle2:C(s,14,1.57,.1),body1:C(a,16,1.5,.15),body2:C(a,14,1.43,.15),button:C(s,14,1.75,.4,pR),caption:C(a,12,1.66,.4),overline:C(a,12,2.66,1,pR),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return vo({htmlFontSize:d,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:l,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:u,...S},g,{clone:!1})}const U5=.2,q5=.14,W5=.12;function rr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${U5})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${q5})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${W5})`].join(",")}const K5=["none",rr(0,2,1,-1,0,1,1,0,0,1,3,0),rr(0,3,1,-2,0,2,2,0,0,1,5,0),rr(0,3,3,-2,0,3,4,0,0,1,8,0),rr(0,2,4,-1,0,4,5,0,0,1,10,0),rr(0,3,5,-1,0,5,8,0,0,1,14,0),rr(0,3,5,-1,0,6,10,0,0,1,18,0),rr(0,4,5,-2,0,7,10,1,0,2,16,1),rr(0,5,5,-3,0,8,10,1,0,3,14,2),rr(0,5,6,-3,0,9,12,1,0,3,16,2),rr(0,6,6,-3,0,10,14,1,0,4,18,3),rr(0,6,7,-4,0,11,15,1,0,4,20,3),rr(0,7,8,-4,0,12,17,2,0,5,22,4),rr(0,7,8,-4,0,13,19,2,0,5,24,4),rr(0,7,9,-4,0,14,21,2,0,5,26,4),rr(0,8,9,-5,0,15,22,2,0,6,28,5),rr(0,8,10,-5,0,16,24,2,0,6,30,5),rr(0,8,11,-5,0,17,26,2,0,6,32,5),rr(0,9,11,-5,0,18,28,2,0,7,34,6),rr(0,9,12,-6,0,19,29,2,0,7,36,6),rr(0,10,13,-6,0,20,31,3,0,8,38,7),rr(0,10,13,-6,0,21,33,3,0,8,40,7),rr(0,10,14,-6,0,22,35,3,0,8,42,7),rr(0,11,14,-7,0,23,36,3,0,9,44,8),rr(0,11,15,-7,0,24,38,3,0,9,46,8)],Y5={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)"},X5={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function gR(e){return`${Math.round(e)}ms`}function Q5(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Z5(e){const t={...Y5,...e.easing},n={...X5,...e.duration};return{getAutoHeightDuration:Q5,create:(l=["all"],a={})=>{const{duration:s=n.standard,easing:u=t.easeInOut,delay:d=0,...f}=a;return(Array.isArray(l)?l:[l]).map(h=>`${h} ${typeof s=="string"?s:gR(s)} ${u} ${typeof d=="string"?d:gR(d)}`).join(",")},...e,easing:t,duration:n}}const J5={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function eG(e){return Ii(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function JD(e={}){const t={...e};function n(r){const l=Object.entries(r);for(let a=0;a<l.length;a++){const[s,u]=l[a];!eG(u)||s.startsWith("unstable_")?delete r[s]:Ii(u)&&(r[s]={...u},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';

const theme = ${JSON.stringify(t,null,2)};

theme.breakpoints = createBreakpoints(theme.breakpoints || {});
theme.transitions = createTransitions(theme.transitions || {});

export default theme;`}function mR(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const tG=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function nG(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Ca(t,tG(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${mR(n)})`:kp(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${mR(n)})`:Ip(t,n)}})}function r1(e={},...t){const{breakpoints:n,mixins:r={},spacing:l,palette:a={},transitions:s={},typography:u={},shape:d,colorSpace:f,...h}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(va(20));const g=hx({...a,colorSpace:f}),b=Am(e);let y=vo(b,{mixins:G5(b.breakpoints,r),palette:g,shadows:K5.slice(),typography:ZD(g,u),transitions:Z5(s),zIndex:{...J5}});return y=vo(y,h),y=t.reduce((C,S)=>vo(C,S),y),y.unstable_sxConfig={...Ap,...h?.unstable_sxConfig},y.unstable_sx=function(S){return bs({sx:S,theme:this})},y.toRuntimeSource=JD,nG(y),y}function o1(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const rG=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=o1(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function eL(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function tL(e){return e==="dark"?rG:[]}function oG(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:l,...a}=e,s=hx({...t,colorSpace:l});return{palette:s,opacity:{...eL(s.mode),...n},overlays:r||tL(s.mode),...a}}function lG(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const iG=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],aG=e=>(t,n)=>{const r=e.rootSelector||":root",l=e.colorSchemeSelector;let a=l;if(l==="class"&&(a=".%s"),l==="data"&&(a="[data-%s]"),l?.startsWith("data-")&&!l.includes("%s")&&(a=`[${l}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return iG(e.cssVarPrefix).forEach(u=>{s[u]=n[u],delete n[u]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:a?{[a.replace("%s",t)]:s,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}return r};function sG(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Me(e,t,n){!e[t]&&n&&(e[t]=n)}function Nf(e){return typeof e!="string"||!e.startsWith("hsl")?e:GD(e)}function pa(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Hf(Nf(e[t])))}function cG(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ei=e=>{try{return e()}catch{}},uG=(e="mui")=>p5(e);function Oy(e,t,n,r,l){if(!n)return;n=n===!0?{}:n;const a=l==="dark"?"dark":"light";if(!r){t[l]=oG({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}const{palette:s,...u}=r1({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[l]={...n,palette:s,opacity:{...eL(a),...n?.opacity},overlays:n?.overlays||tL(a)},u}function dG(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:l=!1,cssVarPrefix:a="mui",nativeColor:s=!1,shouldSkipGeneratingVar:u=lG,colorSchemeSelector:d=n.light&&n.dark?"media":void 0,rootSelector:f=":root",...h}=e,g=Object.keys(n)[0],b=r||(n.light&&g!=="light"?"light":g),y=uG(a),{[b]:C,light:S,dark:w,...M}=n,E={...M};let O=C;if((b==="dark"&&!("dark"in n)||b==="light"&&!("light"in n))&&(O=!0),!O)throw new Error(va(21,b));let P;s&&(P="oklch");const R=Oy(P,E,O,h,b);S&&!E.light&&Oy(P,E,S,void 0,"light"),w&&!E.dark&&Oy(P,E,w,void 0,"dark");let A={defaultColorScheme:b,...R,cssVarPrefix:a,colorSchemeSelector:d,rootSelector:f,getCssVar:y,colorSchemes:E,font:{...B5(R.typography),...R.font},spacing:cG(h.spacing)};Object.keys(A.colorSchemes).forEach($=>{const I=A.colorSchemes[$].palette,j=F=>{const _=F.split("-"),B=_[1],J=_[2];return y(F,I[B][J])};I.mode==="light"&&(Me(I.common,"background","#fff"),Me(I.common,"onBackground","#000")),I.mode==="dark"&&(Me(I.common,"background","#000"),Me(I.common,"onBackground","#fff"));function q(F,_,B){if(P){let J;return F===Ks&&(J=`transparent ${((1-B)*100).toFixed(0)}%`),F===Mn&&(J=`#000 ${(B*100).toFixed(0)}%`),F===Tn&&(J=`#fff ${(B*100).toFixed(0)}%`),`color-mix(in ${P}, ${_}, ${J})`}return F(_,B)}if(sG(I,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),I.mode==="light"){Me(I.Alert,"errorColor",q(Mn,I.error.light,.6)),Me(I.Alert,"infoColor",q(Mn,I.info.light,.6)),Me(I.Alert,"successColor",q(Mn,I.success.light,.6)),Me(I.Alert,"warningColor",q(Mn,I.warning.light,.6)),Me(I.Alert,"errorFilledBg",j("palette-error-main")),Me(I.Alert,"infoFilledBg",j("palette-info-main")),Me(I.Alert,"successFilledBg",j("palette-success-main")),Me(I.Alert,"warningFilledBg",j("palette-warning-main")),Me(I.Alert,"errorFilledColor",Ei(()=>I.getContrastText(I.error.main))),Me(I.Alert,"infoFilledColor",Ei(()=>I.getContrastText(I.info.main))),Me(I.Alert,"successFilledColor",Ei(()=>I.getContrastText(I.success.main))),Me(I.Alert,"warningFilledColor",Ei(()=>I.getContrastText(I.warning.main))),Me(I.Alert,"errorStandardBg",q(Tn,I.error.light,.9)),Me(I.Alert,"infoStandardBg",q(Tn,I.info.light,.9)),Me(I.Alert,"successStandardBg",q(Tn,I.success.light,.9)),Me(I.Alert,"warningStandardBg",q(Tn,I.warning.light,.9)),Me(I.Alert,"errorIconColor",j("palette-error-main")),Me(I.Alert,"infoIconColor",j("palette-info-main")),Me(I.Alert,"successIconColor",j("palette-success-main")),Me(I.Alert,"warningIconColor",j("palette-warning-main")),Me(I.AppBar,"defaultBg",j("palette-grey-100")),Me(I.Avatar,"defaultBg",j("palette-grey-400")),Me(I.Button,"inheritContainedBg",j("palette-grey-300")),Me(I.Button,"inheritContainedHoverBg",j("palette-grey-A100")),Me(I.Chip,"defaultBorder",j("palette-grey-400")),Me(I.Chip,"defaultAvatarColor",j("palette-grey-700")),Me(I.Chip,"defaultIconColor",j("palette-grey-700")),Me(I.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Me(I.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Me(I.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Me(I.LinearProgress,"primaryBg",q(Tn,I.primary.main,.62)),Me(I.LinearProgress,"secondaryBg",q(Tn,I.secondary.main,.62)),Me(I.LinearProgress,"errorBg",q(Tn,I.error.main,.62)),Me(I.LinearProgress,"infoBg",q(Tn,I.info.main,.62)),Me(I.LinearProgress,"successBg",q(Tn,I.success.main,.62)),Me(I.LinearProgress,"warningBg",q(Tn,I.warning.main,.62)),Me(I.Skeleton,"bg",P?q(Ks,I.text.primary,.11):`rgba(${j("palette-text-primaryChannel")} / 0.11)`),Me(I.Slider,"primaryTrack",q(Tn,I.primary.main,.62)),Me(I.Slider,"secondaryTrack",q(Tn,I.secondary.main,.62)),Me(I.Slider,"errorTrack",q(Tn,I.error.main,.62)),Me(I.Slider,"infoTrack",q(Tn,I.info.main,.62)),Me(I.Slider,"successTrack",q(Tn,I.success.main,.62)),Me(I.Slider,"warningTrack",q(Tn,I.warning.main,.62));const F=P?q(Mn,I.background.default,.6825):ug(I.background.default,.8);Me(I.SnackbarContent,"bg",F),Me(I.SnackbarContent,"color",Ei(()=>P?n1.text.primary:I.getContrastText(F))),Me(I.SpeedDialAction,"fabHoverBg",ug(I.background.paper,.15)),Me(I.StepConnector,"border",j("palette-grey-400")),Me(I.StepContent,"border",j("palette-grey-400")),Me(I.Switch,"defaultColor",j("palette-common-white")),Me(I.Switch,"defaultDisabledColor",j("palette-grey-100")),Me(I.Switch,"primaryDisabledColor",q(Tn,I.primary.main,.62)),Me(I.Switch,"secondaryDisabledColor",q(Tn,I.secondary.main,.62)),Me(I.Switch,"errorDisabledColor",q(Tn,I.error.main,.62)),Me(I.Switch,"infoDisabledColor",q(Tn,I.info.main,.62)),Me(I.Switch,"successDisabledColor",q(Tn,I.success.main,.62)),Me(I.Switch,"warningDisabledColor",q(Tn,I.warning.main,.62)),Me(I.TableCell,"border",q(Tn,q(Ks,I.divider,1),.88)),Me(I.Tooltip,"bg",q(Ks,I.grey[700],.92))}if(I.mode==="dark"){Me(I.Alert,"errorColor",q(Tn,I.error.light,.6)),Me(I.Alert,"infoColor",q(Tn,I.info.light,.6)),Me(I.Alert,"successColor",q(Tn,I.success.light,.6)),Me(I.Alert,"warningColor",q(Tn,I.warning.light,.6)),Me(I.Alert,"errorFilledBg",j("palette-error-dark")),Me(I.Alert,"infoFilledBg",j("palette-info-dark")),Me(I.Alert,"successFilledBg",j("palette-success-dark")),Me(I.Alert,"warningFilledBg",j("palette-warning-dark")),Me(I.Alert,"errorFilledColor",Ei(()=>I.getContrastText(I.error.dark))),Me(I.Alert,"infoFilledColor",Ei(()=>I.getContrastText(I.info.dark))),Me(I.Alert,"successFilledColor",Ei(()=>I.getContrastText(I.success.dark))),Me(I.Alert,"warningFilledColor",Ei(()=>I.getContrastText(I.warning.dark))),Me(I.Alert,"errorStandardBg",q(Mn,I.error.light,.9)),Me(I.Alert,"infoStandardBg",q(Mn,I.info.light,.9)),Me(I.Alert,"successStandardBg",q(Mn,I.success.light,.9)),Me(I.Alert,"warningStandardBg",q(Mn,I.warning.light,.9)),Me(I.Alert,"errorIconColor",j("palette-error-main")),Me(I.Alert,"infoIconColor",j("palette-info-main")),Me(I.Alert,"successIconColor",j("palette-success-main")),Me(I.Alert,"warningIconColor",j("palette-warning-main")),Me(I.AppBar,"defaultBg",j("palette-grey-900")),Me(I.AppBar,"darkBg",j("palette-background-paper")),Me(I.AppBar,"darkColor",j("palette-text-primary")),Me(I.Avatar,"defaultBg",j("palette-grey-600")),Me(I.Button,"inheritContainedBg",j("palette-grey-800")),Me(I.Button,"inheritContainedHoverBg",j("palette-grey-700")),Me(I.Chip,"defaultBorder",j("palette-grey-700")),Me(I.Chip,"defaultAvatarColor",j("palette-grey-300")),Me(I.Chip,"defaultIconColor",j("palette-grey-300")),Me(I.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Me(I.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Me(I.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Me(I.LinearProgress,"primaryBg",q(Mn,I.primary.main,.5)),Me(I.LinearProgress,"secondaryBg",q(Mn,I.secondary.main,.5)),Me(I.LinearProgress,"errorBg",q(Mn,I.error.main,.5)),Me(I.LinearProgress,"infoBg",q(Mn,I.info.main,.5)),Me(I.LinearProgress,"successBg",q(Mn,I.success.main,.5)),Me(I.LinearProgress,"warningBg",q(Mn,I.warning.main,.5)),Me(I.Skeleton,"bg",P?q(Ks,I.text.primary,.13):`rgba(${j("palette-text-primaryChannel")} / 0.13)`),Me(I.Slider,"primaryTrack",q(Mn,I.primary.main,.5)),Me(I.Slider,"secondaryTrack",q(Mn,I.secondary.main,.5)),Me(I.Slider,"errorTrack",q(Mn,I.error.main,.5)),Me(I.Slider,"infoTrack",q(Mn,I.info.main,.5)),Me(I.Slider,"successTrack",q(Mn,I.success.main,.5)),Me(I.Slider,"warningTrack",q(Mn,I.warning.main,.5));const F=P?q(Tn,I.background.default,.985):ug(I.background.default,.98);Me(I.SnackbarContent,"bg",F),Me(I.SnackbarContent,"color",Ei(()=>P?XD.text.primary:I.getContrastText(F))),Me(I.SpeedDialAction,"fabHoverBg",ug(I.background.paper,.15)),Me(I.StepConnector,"border",j("palette-grey-600")),Me(I.StepContent,"border",j("palette-grey-600")),Me(I.Switch,"defaultColor",j("palette-grey-300")),Me(I.Switch,"defaultDisabledColor",j("palette-grey-600")),Me(I.Switch,"primaryDisabledColor",q(Mn,I.primary.main,.55)),Me(I.Switch,"secondaryDisabledColor",q(Mn,I.secondary.main,.55)),Me(I.Switch,"errorDisabledColor",q(Mn,I.error.main,.55)),Me(I.Switch,"infoDisabledColor",q(Mn,I.info.main,.55)),Me(I.Switch,"successDisabledColor",q(Mn,I.success.main,.55)),Me(I.Switch,"warningDisabledColor",q(Mn,I.warning.main,.55)),Me(I.TableCell,"border",q(Mn,q(Ks,I.divider,1),.68)),Me(I.Tooltip,"bg",q(Ks,I.grey[700],.92))}pa(I.background,"default"),pa(I.background,"paper"),pa(I.common,"background"),pa(I.common,"onBackground"),pa(I,"divider"),Object.keys(I).forEach(F=>{const _=I[F];F!=="tonalOffset"&&_&&typeof _=="object"&&(_.main&&Me(I[F],"mainChannel",Hf(Nf(_.main))),_.light&&Me(I[F],"lightChannel",Hf(Nf(_.light))),_.dark&&Me(I[F],"darkChannel",Hf(Nf(_.dark))),_.contrastText&&Me(I[F],"contrastTextChannel",Hf(Nf(_.contrastText))),F==="text"&&(pa(I[F],"primary"),pa(I[F],"secondary")),F==="action"&&(_.active&&pa(I[F],"active"),_.selected&&pa(I[F],"selected")))})}),A=t.reduce(($,I)=>vo($,I),A);const z={prefix:a,disableCssColorScheme:l,shouldSkipGeneratingVar:u,getSelector:aG(A),enableContrastVars:s},{vars:k,generateThemeVars:L,generateStyleSheets:H}=m5(A,z);return A.vars=k,Object.entries(A.colorSchemes[A.defaultColorScheme]).forEach(([$,I])=>{A[$]=I}),A.generateThemeVars=L,A.generateStyleSheets=H,A.generateSpacing=function(){return DD(h.spacing,ix(this))},A.getColorSchemeSelector=b5(d),A.spacing=A.generateSpacing(),A.shouldSkipGeneratingVar=u,A.unstable_sxConfig={...Ap,...h?.unstable_sxConfig},A.unstable_sx=function(I){return bs({sx:I,theme:this})},A.toRuntimeSource=JD,A}function bR(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:hx({...n===!0?{}:n.palette,mode:t})})}function _m(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:l=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...s}=e,u=a||"light",d=l?.[u],f={...l,...n?{[u]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return r1(e,...t);let h=n;"palette"in e||f[u]&&(f[u]!==!0?h=f[u].palette:u==="dark"&&(h={mode:"dark"}));const g=r1({...e,palette:h},...t);return g.defaultColorScheme=u,g.colorSchemes=f,g.palette.mode==="light"&&(g.colorSchemes.light={...f.light!==!0&&f.light,palette:g.palette},bR(g,"dark",f.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:g.palette},bR(g,"light",f.light)),g}return!n&&!("light"in f)&&u==="light"&&(f.light=!0),dG({...s,colorSchemes:f,defaultColorScheme:u,...typeof r!="boolean"&&r},...t)}function fG(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function pG(e){return parseFloat(e)}const gx=_m();function ws(){const e=Op(gx);return e[si]||e}function nL(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Co=e=>nL(e)&&e!=="classes",ge=ND({themeId:si,defaultTheme:gx,rootShouldForwardProp:Co});function hG({theme:e,...t}){const n=si in e?e[si]:void 0;return x.jsx(WD,{...t,themeId:n?si:void 0,theme:n||e})}const dg={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:gG}=f5({themeId:si,theme:()=>_m({cssVariables:!0}),colorSchemeStorageKey:dg.colorSchemeStorageKey,modeStorageKey:dg.modeStorageKey,defaultColorScheme:{light:dg.defaultLightColorScheme,dark:dg.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:ZD(e.palette,e.typography)};return t.unstable_sx=function(r){return bs({sx:r,theme:this})},t}}),mG=gG;function bG({theme:e,...t}){const n=m.useMemo(()=>{if(typeof e=="function")return e;const r=si in e?e[si]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?x.jsx(hG,{theme:n,...t}):x.jsx(mG,{theme:e,...t})}const Ys="/api";class vG{getAuthors=()=>this.doGet("authors");getLanguages=()=>this.doGet("languages");getYears=()=>this.doGet("years");getAudioTypes=()=>this.doGet("audiotypes");getContentTypes=()=>this.doGet("contenttypes");getMeta=()=>this.doGet("meta");getVersion=()=>this.doGet("version");doGet=async(t,n=1)=>{const r=await fetch(`${Ys}/${n}/${t}`,{method:"GET"});if(!r.ok)throw new Error(`EzBeq.get${t} failed, HTTP status ${r.status}`);return r.json()};appendTo=(t,n,r)=>{if(r&&r.length>0){const l=r.map(a=>`${n}=${a}`).join("&");return`${t}${t.indexOf("?")===-1?"?":"&"}${l}`}return t};search=async(t=null,n=null,r=null)=>{const l=this.appendTo(this.appendTo(this.appendTo(`${Ys}/1/search`,"authors",t),"years",n),"audioTypes",r),a=await fetch(l,{method:"GET"});if(!a.ok)throw new Error(`EzBeq.search failed, HTTP status ${a.status}`);return a.json()};load=async()=>this.search();sendFilter=async(t,n,r,l=null)=>{if(l)return await this.doPatch(t,this.createPatchPayload(r,l,n));{const a=await fetch(`${Ys}/1/devices/${t}/filter/${r}`,{method:"PUT",body:JSON.stringify({entryId:n}),headers:{"Content-Type":"application/json",Accept:"application/json"}});if(!a.ok)throw new Error(`EzBeq.sendFilter failed, HTTP status ${a.status}`);return a.json()}};sendTextCommands=async(t,n,r,l,a,s,u)=>{const d=await fetch(`${Ys}/1/devices/${t}/commands`,{method:"PUT",body:JSON.stringify({overwrite:u,slot:`${n}`,inputs:r,outputs:l,commandType:a,commands:s}),headers:{"Content-Type":"application/json",Accept:"application/json"}});if(!d.ok)throw new Error(`EzBeq.sendTextCommands failed, HTTP status ${d.status}`);return d.json()};clearSlot=async(t,n)=>{const r=await fetch(`${Ys}/1/devices/${t}/filter/${n}`,{method:"DELETE"});if(!r.ok)throw new Error(`EzBeq.clearSlot failed, HTTP status ${r.status}`);return r.json()};activateSlot=async(t,n)=>{const r=await fetch(`${Ys}/1/devices/${t}/config/${n}/active`,{method:"PUT"});return this._parse_resp(r)};_parse_resp=async t=>{if(!t.ok)if(t.status>=500){const n=await t.json(),r=n&&"message"in n?n.message:t.status;throw new Error(`EzBeq.activateSlot failed, review ezbeq.log for full details - ${r}`)}else throw new Error(`EzBeq.activateSlot failed, invalid request (${t.status})`);return t.json()};setGains=async(t,n,r)=>await this.doPatch(t,this.createPatchPayload(n,r));doPatch=async(t,n)=>{const r=await fetch(`${Ys}/3/devices/${t}`,{method:"PATCH",body:JSON.stringify(n),headers:{"Content-Type":"application/json",Accept:"application/json"}});return this._parse_resp(r)};createPatchPayload=(t,n,r=null)=>{const l={};n.hasOwnProperty("master_mv")&&(l.masterVolume=parseFloat(n.master_mv)),n.hasOwnProperty("master_mute")&&(l.mute=n.master_mute);const a={id:String(t)};return n.hasOwnProperty("gains")&&(a.gains=n.gains.map(s=>({id:String(s.id),value:parseFloat(s.value)}))),n.hasOwnProperty("mutes")&&(a.mutes=n.mutes.map(s=>({id:String(s.id),value:!!s.value}))),r?l.slots=[Object.assign({},a,{entry:r})]:l.slots=[a],l};loadWithMV=async(t,n,r,l)=>await this.sendFilter(t,n,r,l);getDevices=async()=>this.doGet("devices",2);getLevels=async t=>this.doGet(`devices/${t}/levels`)}const tl=new vG,vR=BD({themeId:si});function yG(e){return x.jsx(LD,{...e,defaultTheme:gx,themeId:si})}function mx(e){return function(n){return x.jsx(yG,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function CG(){return sx}function xt(e){return e5(e)}const l1=typeof mx({})=="function",SG=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),wG=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),rL=(e,t=!1)=>{const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([a,s])=>{const u=e.getColorSchemeSelector(a);u.startsWith("@")?n[u]={":root":{colorScheme:s.palette?.mode}}:n[u.replace(/\s*&/,"")]={colorScheme:s.palette?.mode}});let r={html:SG(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...wG(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const l=e.components?.MuiCssBaseline?.styleOverrides;return l&&(r=[r,l]),r},_g="mui-ecs",xG=e=>{const t=rL(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${_g})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,l])=>{const a=e.getColorSchemeSelector(r);a.startsWith("@")?n[a]={[`:root:not(:has(.${_g}))`]:{colorScheme:l.palette?.mode}}:n[a.replace(/\s*&/,"")]={[`&:not(:has(.${_g}))`]:{colorScheme:l.palette?.mode}}}),t},MG=mx(l1?({theme:e,enableColorScheme:t})=>rL(e,t):({theme:e})=>xG(e));function TG(e){const t=xt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return x.jsxs(m.Fragment,{children:[l1&&x.jsx(MG,{enableColorScheme:r}),!l1&&!r&&x.jsx("span",{className:_g,style:{display:"none"}}),n]})}const Ml=async(e,t,n)=>{try{const r=await t();e(r)}catch(r){n(r)}},Xf=(e,t)=>{const[n,r]=m.useState(()=>{try{const a=window.localStorage.getItem(e);return a?JSON.parse(a).value:t}catch(a){return console.log(a),t}});return[n,a=>{try{const s=a instanceof Function?a(n):a;r(s),window.localStorage.setItem(e,JSON.stringify({value:s}))}catch(s){console.log(s)}}]};function wt(e){const t=m.useRef(e);return gn(()=>{t.current=e}),m.useRef((...n)=>(0,t.current)(...n)).current}const yR={};function Nl(e,t){const n=m.useRef(yR);return n.current===yR&&(n.current=e(t)),n}const EG=[];function Dm(e){m.useEffect(e,EG)}class Lm{static create(){return new Lm}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function $o(){const e=Nl(Lm.create).current;return Dm(e.disposeEffect),e}function Xg(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function PG(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:l,resumeHideDuration:a}=e,s=$o();m.useEffect(()=>{if(!l)return;function M(E){E.defaultPrevented||E.key==="Escape"&&r?.(E,"escapeKeyDown")}return document.addEventListener("keydown",M),()=>{document.removeEventListener("keydown",M)}},[l,r]);const u=wt((M,E)=>{r?.(M,E)}),d=wt(M=>{!r||M==null||s.start(M,()=>{u(null,"timeout")})});m.useEffect(()=>(l&&d(t),s.clear),[l,t,d,s]);const f=M=>{r?.(M,"clickaway")},h=s.clear,g=m.useCallback(()=>{t!=null&&d(a??t*.5)},[t,a,d]),b=M=>E=>{const O=M.onBlur;O?.(E),g()},y=M=>E=>{const O=M.onFocus;O?.(E),h()},C=M=>E=>{const O=M.onMouseEnter;O?.(E),h()},S=M=>E=>{const O=M.onMouseLeave;O?.(E),g()};return m.useEffect(()=>{if(!n&&l)return window.addEventListener("focus",g),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",h)}},[n,l,g,h]),{getRootProps:(M={})=>{const E={...Xg(e),...Xg(M)};return{role:"presentation",...M,...E,onBlur:b(E),onFocus:y(E),onMouseEnter:C(E),onMouseLeave:S(E)}},onClickAway:f}}function sr(e){return e&&e.ownerDocument||document}function tn(...e){const t=m.useRef(void 0),n=m.useCallback(r=>{const l=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,u=s(r);return typeof u=="function"?u:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{l.forEach(a=>a?.())}},e);return m.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function xc(e){return parseInt(m.version,10)>=19?e?.props?.ref||null:e?.ref||null}function CR(e){return e.substring(2).toLowerCase()}function RG(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function oL(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:l,touchEvent:a="onTouchEnd"}=e,s=m.useRef(!1),u=m.useRef(null),d=m.useRef(!1),f=m.useRef(!1);m.useEffect(()=>(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const h=tn(xc(t),u),g=wt(C=>{const S=f.current;f.current=!1;const w=sr(u.current);if(!d.current||!u.current||"clientX"in C&&RG(C,w))return;if(s.current){s.current=!1;return}let M;C.composedPath?M=C.composedPath().includes(u.current):M=!w.documentElement.contains(C.target)||u.current.contains(C.target),!M&&(n||!S)&&l(C)}),b=C=>S=>{f.current=!0;const w=t.props[C];w&&w(S)},y={ref:h};return a!==!1&&(y[a]=b(a)),m.useEffect(()=>{if(a!==!1){const C=CR(a),S=sr(u.current),w=()=>{s.current=!0};return S.addEventListener(C,g),S.addEventListener("touchmove",w),()=>{S.removeEventListener(C,g),S.removeEventListener("touchmove",w)}}},[g,a]),r!==!1&&(y[r]=b(r)),m.useEffect(()=>{if(r!==!1){const C=CR(r),S=sr(u.current);return S.addEventListener(C,g),()=>{S.removeEventListener(C,g)}}},[g,r]),m.cloneElement(t,y)}const ft=o5;function Ge(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function i1(e,t){return i1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},i1(e,t)}function lL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i1(e,t)}var Iy={exports:{}},go={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var SR;function AG(){if(SR)return go;SR=1;var e=id();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)f+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},l=Symbol.for("react.portal");function a(d,f,h){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:g==null?null:""+g,children:d,containerInfo:f,implementation:h}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return go.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,go.createPortal=function(d,f){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return a(d,f,null,h)},go.flushSync=function(d){var f=s.T,h=r.p;try{if(s.T=null,r.p=2,d)return d()}finally{s.T=f,r.p=h,r.d.f()}},go.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},go.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},go.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var h=f.as,g=u(h,f.crossOrigin),b=typeof f.integrity=="string"?f.integrity:void 0,y=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;h==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:y}):h==="script"&&r.d.X(d,{crossOrigin:g,integrity:b,fetchPriority:y,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},go.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var h=u(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},go.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var h=f.as,g=u(h,f.crossOrigin);r.d.L(d,h,{crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},go.preloadModule=function(d,f){if(typeof d=="string")if(f){var h=u(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},go.requestFormReset=function(d){r.d.r(d)},go.unstable_batchedUpdates=function(d,f){return d(f)},go.useFormState=function(d,f,h){return s.H.useFormState(d,f,h)},go.useFormStatus=function(){return s.H.useHostTransitionStatus()},go.version="19.1.1",go}var wR;function iL(){if(wR)return Iy.exports;wR=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Iy.exports=AG(),Iy.exports}var bx=iL();const fg=xp(bx),xR={disabled:!1},Qg=nl.createContext(null);var OG=function(t){return t.scrollTop},jf="unmounted",Zs="exited",Js="entering",Eu="entered",a1="exiting",Ni=function(e){lL(t,e);function t(r,l){var a;a=e.call(this,r,l)||this;var s=l,u=s&&!s.isMounting?r.enter:r.appear,d;return a.appearStatus=null,r.in?u?(d=Zs,a.appearStatus=Js):d=Eu:r.unmountOnExit||r.mountOnEnter?d=jf:d=Zs,a.state={status:d},a.nextCallback=null,a}t.getDerivedStateFromProps=function(l,a){var s=l.in;return s&&a.status===jf?{status:Zs}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(l){var a=null;if(l!==this.props){var s=this.state.status;this.props.in?s!==Js&&s!==Eu&&(a=Js):(s===Js||s===Eu)&&(a=a1)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var l=this.props.timeout,a,s,u;return a=s=u=l,l!=null&&typeof l!="number"&&(a=l.exit,s=l.enter,u=l.appear!==void 0?l.appear:s),{exit:a,enter:s,appear:u}},n.updateStatus=function(l,a){if(l===void 0&&(l=!1),a!==null)if(this.cancelNextCallback(),a===Js){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:fg.findDOMNode(this);s&&OG(s)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Zs&&this.setState({status:jf})},n.performEnter=function(l){var a=this,s=this.props.enter,u=this.context?this.context.isMounting:l,d=this.props.nodeRef?[u]:[fg.findDOMNode(this),u],f=d[0],h=d[1],g=this.getTimeouts(),b=u?g.appear:g.enter;if(!l&&!s||xR.disabled){this.safeSetState({status:Eu},function(){a.props.onEntered(f)});return}this.props.onEnter(f,h),this.safeSetState({status:Js},function(){a.props.onEntering(f,h),a.onTransitionEnd(b,function(){a.safeSetState({status:Eu},function(){a.props.onEntered(f,h)})})})},n.performExit=function(){var l=this,a=this.props.exit,s=this.getTimeouts(),u=this.props.nodeRef?void 0:fg.findDOMNode(this);if(!a||xR.disabled){this.safeSetState({status:Zs},function(){l.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:a1},function(){l.props.onExiting(u),l.onTransitionEnd(s.exit,function(){l.safeSetState({status:Zs},function(){l.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(l,a){a=this.setNextCallback(a),this.setState(l,a)},n.setNextCallback=function(l){var a=this,s=!0;return this.nextCallback=function(u){s&&(s=!1,a.nextCallback=null,l(u))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(l,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:fg.findDOMNode(this),u=l==null&&!this.props.addEndListener;if(!s||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],f=d[0],h=d[1];this.props.addEndListener(f,h)}l!=null&&setTimeout(this.nextCallback,l)},n.render=function(){var l=this.state.status;if(l===jf)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var u=Ge(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return nl.createElement(Qg.Provider,{value:null},typeof s=="function"?s(l,u):nl.cloneElement(nl.Children.only(s),u))},t}(nl.Component);Ni.contextType=Qg;Ni.propTypes={};function vu(){}Ni.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:vu,onEntering:vu,onEntered:vu,onExit:vu,onExiting:vu,onExited:vu};Ni.UNMOUNTED=jf;Ni.EXITED=Zs;Ni.ENTERING=Js;Ni.ENTERED=Eu;Ni.EXITING=a1;function IG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vx(e,t){var n=function(a){return t&&m.isValidElement(a)?t(a):a},r=Object.create(null);return e&&m.Children.map(e,function(l){return l}).forEach(function(l){r[l.key]=n(l)}),r}function kG(e,t){e=e||{},t=t||{};function n(h){return h in t?t[h]:e[h]}var r=Object.create(null),l=[];for(var a in e)a in t?l.length&&(r[a]=l,l=[]):l.push(a);var s,u={};for(var d in t){if(r[d])for(s=0;s<r[d].length;s++){var f=r[d][s];u[r[d][s]]=n(f)}u[d]=n(d)}for(s=0;s<l.length;s++)u[l[s]]=n(l[s]);return u}function lc(e,t,n){return n[t]!=null?n[t]:e.props[t]}function _G(e,t){return vx(e.children,function(n){return m.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:lc(n,"appear",e),enter:lc(n,"enter",e),exit:lc(n,"exit",e)})})}function DG(e,t,n){var r=vx(e.children),l=kG(t,r);return Object.keys(l).forEach(function(a){var s=l[a];if(m.isValidElement(s)){var u=a in t,d=a in r,f=t[a],h=m.isValidElement(f)&&!f.props.in;d&&(!u||h)?l[a]=m.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:lc(s,"exit",e),enter:lc(s,"enter",e)}):!d&&u&&!h?l[a]=m.cloneElement(s,{in:!1}):d&&u&&m.isValidElement(f)&&(l[a]=m.cloneElement(s,{onExited:n.bind(null,s),in:f.props.in,exit:lc(s,"exit",e),enter:lc(s,"enter",e)}))}}),l}var LG=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},$G={component:"div",childFactory:function(t){return t}},yx=function(e){lL(t,e);function t(r,l){var a;a=e.call(this,r,l)||this;var s=a.handleExited.bind(IG(a));return a.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(l,a){var s=a.children,u=a.handleExited,d=a.firstRender;return{children:d?_G(l,u):DG(l,s,u),firstRender:!1}},n.handleExited=function(l,a){var s=vx(this.props.children);l.key in s||(l.props.onExited&&l.props.onExited(a),this.mounted&&this.setState(function(u){var d=N({},u.children);return delete d[l.key],{children:d}}))},n.render=function(){var l=this.props,a=l.component,s=l.childFactory,u=Ge(l,["component","childFactory"]),d=this.state.contextValue,f=LG(this.state.children).map(s);return delete u.appear,delete u.enter,delete u.exit,a===null?nl.createElement(Qg.Provider,{value:d},f):nl.createElement(Qg.Provider,{value:d},nl.createElement(a,u,f))},t}(nl.Component);yx.propTypes={};yx.defaultProps=$G;const aL=e=>e.scrollTop;function Zg(e,t){const{timeout:n,easing:r,style:l={}}=e;return{duration:l.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:l.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:l.transitionDelay}}function s1(e){return`scale(${e}, ${e**2})`}const zG={entering:{opacity:1,transform:s1(1)},entered:{opacity:1,transform:"none"}},ky=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Gu=m.forwardRef(function(t,n){const{addEndListener:r,appear:l=!0,children:a,easing:s,in:u,onEnter:d,onEntered:f,onEntering:h,onExit:g,onExited:b,onExiting:y,style:C,timeout:S="auto",TransitionComponent:w=Ni,...M}=t,E=$o(),O=m.useRef(),P=ws(),R=m.useRef(null),A=tn(R,xc(a),n),z=F=>_=>{if(F){const B=R.current;_===void 0?F(B):F(B,_)}},k=z(h),L=z((F,_)=>{aL(F);const{duration:B,delay:J,easing:Q}=Zg({style:C,timeout:S,easing:s},{mode:"enter"});let D;S==="auto"?(D=P.transitions.getAutoHeightDuration(F.clientHeight),O.current=D):D=B,F.style.transition=[P.transitions.create("opacity",{duration:D,delay:J}),P.transitions.create("transform",{duration:ky?D:D*.666,delay:J,easing:Q})].join(","),d&&d(F,_)}),H=z(f),$=z(y),I=z(F=>{const{duration:_,delay:B,easing:J}=Zg({style:C,timeout:S,easing:s},{mode:"exit"});let Q;S==="auto"?(Q=P.transitions.getAutoHeightDuration(F.clientHeight),O.current=Q):Q=_,F.style.transition=[P.transitions.create("opacity",{duration:Q,delay:B}),P.transitions.create("transform",{duration:ky?Q:Q*.666,delay:ky?B:B||Q*.333,easing:J})].join(","),F.style.opacity=0,F.style.transform=s1(.75),g&&g(F)}),j=z(b),q=F=>{S==="auto"&&E.start(O.current||0,F),r&&r(R.current,F)};return x.jsx(w,{appear:l,in:u,nodeRef:R,onEnter:L,onEntered:H,onEntering:k,onExit:I,onExited:j,onExiting:$,addEndListener:q,timeout:S==="auto"?null:S,...M,children:(F,{ownerState:_,...B})=>m.cloneElement(a,{style:{opacity:0,transform:s1(.75),visibility:F==="exited"&&!u?"hidden":void 0,...zG[F],...C,...a.props.style},ref:A,...B})})});Gu&&(Gu.muiSupportAuto=!0);function FG(e){return St("MuiPaper",e)}vt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const HG=e=>{const{square:t,elevation:n,variant:r,classes:l}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Be(a,FG,l)},NG=ge("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(ft(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),xs=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiPaper"}),l=ws(),{className:a,component:s="div",elevation:u=1,square:d=!1,variant:f="elevation",...h}=r,g={...r,component:s,elevation:u,square:d,variant:f},b=HG(g);return x.jsx(NG,{as:s,ownerState:g,className:Oe(b.root,a),ref:n,...h,style:{...f==="elevation"&&{"--Paper-shadow":(l.vars||l).shadows[u],...l.vars&&{"--Paper-overlay":l.vars.overlays?.[u]},...!l.vars&&l.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ca("#fff",o1(u))}, ${Ca("#fff",o1(u))})`}},...h.style}})});function jG(e){return St("MuiSnackbarContent",e)}vt("MuiSnackbarContent",["root","message","action"]);const BG=e=>{const{classes:t}=e;return Be({root:["root"],action:["action"],message:["message"]},jG,t)},GG=ge(xs,{name:"MuiSnackbarContent",slot:"Root"})(ft(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(t1(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:t1(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),VG=ge("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),UG=ge("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),qG=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiSnackbarContent"}),{action:l,className:a,message:s,role:u="alert",...d}=r,f=r,h=BG(f);return x.jsxs(GG,{role:u,elevation:6,className:Oe(h.root,a),ownerState:f,ref:n,...d,children:[x.jsx(VG,{className:h.message,ownerState:f,children:s}),l?x.jsx(UG,{className:h.action,ownerState:f,children:l}):null]})});function WG(e){return St("MuiSnackbar",e)}vt("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);function KG(e){return typeof e=="string"}function sL(e,t,n){return e===void 0||KG(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function cL(e,t,n){return typeof e=="function"?e(t,n):e}function MR(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function uL(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:l,className:a}=e;if(!t){const y=Oe(n?.className,a,l?.className,r?.className),C={...n?.style,...l?.style,...r?.style},S={...n,...l,...r};return y.length>0&&(S.className=y),Object.keys(C).length>0&&(S.style=C),{props:S,internalRef:void 0}}const s=Xg({...l,...r}),u=MR(r),d=MR(l),f=t(s),h=Oe(f?.className,n?.className,a,l?.className,r?.className),g={...f?.style,...n?.style,...l?.style,...r?.style},b={...f,...n,...d,...u};return h.length>0&&(b.className=h),Object.keys(g).length>0&&(b.style=g),{props:b,internalRef:f.ref}}function Rt(e,t){const{className:n,elementType:r,ownerState:l,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:u=!1,...d}=t,{component:f,slots:h={[e]:void 0},slotProps:g={[e]:void 0},...b}=a,y=h[e]||r,C=cL(g[e],l),{props:{component:S,...w},internalRef:M}=uL({className:n,...d,externalForwardedProps:e==="root"?b:void 0,externalSlotProps:C}),E=tn(M,C?.ref,t.ref),O=e==="root"?S||f:S,P=sL(y,{...e==="root"&&!f&&!h[e]&&s,...e!=="root"&&!h[e]&&s,...w,...O&&!u&&{as:O},...O&&u&&{component:O},ref:E},l);return[y,P]}const YG=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${we(n.vertical)}${we(n.horizontal)}`]};return Be(r,WG,t)},XG=ge("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${we(n.anchorOrigin.vertical)}${we(n.anchorOrigin.horizontal)}`]]}})(ft(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),QG=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiSnackbar"}),l=ws(),a={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:u,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:f=null,children:h,className:g,ClickAwayListenerProps:b,ContentProps:y,disableWindowBlurListener:C=!1,message:S,onBlur:w,onClose:M,onFocus:E,onMouseEnter:O,onMouseLeave:P,open:R,resumeHideDuration:A,slots:z={},slotProps:k={},TransitionComponent:L,transitionDuration:H=a,TransitionProps:{onEnter:$,onExited:I,...j}={},...q}=r,F={...r,anchorOrigin:{vertical:u,horizontal:d},autoHideDuration:f,disableWindowBlurListener:C,TransitionComponent:L,transitionDuration:H},_=YG(F),{getRootProps:B,onClickAway:J}=PG({...F}),[Q,D]=m.useState(!0),G=Ne=>{D(!0),I&&I(Ne)},W=(Ne,$e)=>{D(!1),$&&$(Ne,$e)},Z={slots:{transition:L,...z},slotProps:{content:y,clickAwayListener:b,transition:j,...k}},[te,ne]=Rt("root",{ref:n,className:[_.root,g],elementType:XG,getSlotProps:B,externalForwardedProps:{...Z,...q},ownerState:F}),[oe,{ownerState:se,...Se}]=Rt("clickAwayListener",{elementType:oL,externalForwardedProps:Z,getSlotProps:Ne=>({onClickAway:(...$e)=>{const Ve=$e[0];Ne.onClickAway?.(...$e),!Ve?.defaultMuiPrevented&&J(...$e)}}),ownerState:F}),[be,de]=Rt("content",{elementType:qG,shouldForwardComponentProp:!0,externalForwardedProps:Z,additionalProps:{message:S,action:s},ownerState:F}),[ke,Ae]=Rt("transition",{elementType:Gu,externalForwardedProps:Z,getSlotProps:Ne=>({onEnter:(...$e)=>{Ne.onEnter?.(...$e),W(...$e)},onExited:(...$e)=>{Ne.onExited?.(...$e),G(...$e)}}),additionalProps:{appear:!0,in:R,timeout:H,direction:u==="top"?"down":"up"},ownerState:F});return!R&&Q?null:x.jsx(oe,{...Se,...z.clickAwayListener&&{ownerState:se},children:x.jsx(te,{...ne,children:x.jsx(ke,{...Ae,children:h||x.jsx(be,{...de})})})})});function c1(...e){return e.reduce((t,n)=>n==null?t:function(...l){t.apply(this,l),n.apply(this,l)},()=>{})}function ZG(e){return St("MuiSvgIcon",e)}vt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const JG=e=>{const{color:t,fontSize:n,classes:r}=e,l={root:["root",t!=="inherit"&&`color${we(t)}`,`fontSize${we(n)}`]};return Be(l,ZG,r)},e4=ge("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${we(n.color)}`],t[`fontSize${we(n.fontSize)}`]]}})(ft(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),u1=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiSvgIcon"}),{children:l,className:a,color:s="inherit",component:u="svg",fontSize:d="medium",htmlColor:f,inheritViewBox:h=!1,titleAccess:g,viewBox:b="0 0 24 24",...y}=r,C=m.isValidElement(l)&&l.type==="svg",S={...r,color:s,component:u,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:b,hasSvgAsChild:C},w={};h||(w.viewBox=b);const M=JG(S);return x.jsxs(e4,{as:u,className:Oe(M.root,a),focusable:"false",color:f,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:n,...w,...y,...C&&l.props,ownerState:S,children:[C?l.props.children:l,g?x.jsx("title",{children:g}):null]})});u1.muiName="SvgIcon";function Bn(e,t){function n(r,l){return x.jsx(u1,{"data-testid":void 0,ref:l,...r,children:e})}return n.muiName=u1.muiName,m.memo(m.forwardRef(n))}function _p(e,t=166){let n;function r(...l){const a=()=>{e.apply(this,l)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Sa(e){return sr(e).defaultView||window}function d1(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function ms(e){const{controlled:t,default:n,name:r,state:l="value"}=e,{current:a}=m.useRef(t!==void 0),[s,u]=m.useState(n),d=a?t:s,f=m.useCallback(h=>{a||u(h)},[]);return[d,f]}function t4(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function dL(e,t){if(!e)return t;function n(s,u){const d={};return Object.keys(u).forEach(f=>{t4(f,u[f])&&typeof s[f]=="function"&&(d[f]=(...h)=>{s[f](...h),u[f](...h)})}),d}if(typeof e=="function"||typeof t=="function")return s=>{const u=typeof t=="function"?t(s):t,d=typeof e=="function"?e({...s,...u}):e,f=Oe(s?.className,u?.className,d?.className),h=n(d,u);return{...u,...d,...h,...!!f&&{className:f},...u?.style&&d?.style&&{style:{...u.style,...d.style}},...u?.sx&&d?.sx&&{sx:[...Array.isArray(u.sx)?u.sx:[u.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const r=t,l=n(e,r),a=Oe(r?.className,e?.className);return{...t,...e,...l,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function n4(e){return typeof e.main=="string"}function r4(e,t=[]){if(!n4(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Zn(e=[]){return([,t])=>t&&r4(t,e)}function Jg(e){try{return e.matches(":focus-visible")}catch{}return!1}class em{static create(){return new em}static use(){const t=Nl(em.create).current,[n,r]=m.useState(!1);return t.shouldMount=n,t.setShouldMount=r,m.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=l4(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function o4(){return em.use()}function l4(){let e,t;const n=new Promise((r,l)=>{e=r,t=l});return n.resolve=e,n.reject=t,n}function i4(e){const{className:t,classes:n,pulsate:r=!1,rippleX:l,rippleY:a,rippleSize:s,in:u,onExited:d,timeout:f}=e,[h,g]=m.useState(!1),b=Oe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:s,height:s,top:-(s/2)+a,left:-(s/2)+l},C=Oe(n.child,h&&n.childLeaving,r&&n.childPulsate);return!u&&!h&&g(!0),m.useEffect(()=>{if(!u&&d!=null){const S=setTimeout(d,f);return()=>{clearTimeout(S)}}},[d,u,f]),x.jsx("span",{className:b,style:y,children:x.jsx("span",{className:C})})}const El=vt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),f1=550,a4=80,s4=Fl`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`,c4=Fl`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`,u4=Fl`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`,d4=ge("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),f4=ge(i4,{name:"MuiTouchRipple",slot:"Ripple"})`
  opacity: 0;
  position: absolute;

  &.${El.rippleVisible} {
    opacity: 0.3;
    transform: scale(1);
    animation-name: ${s4};
    animation-duration: ${f1}ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
  }

  &.${El.ripplePulsate} {
    animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
  }

  & .${El.child} {
    opacity: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
  }

  & .${El.childLeaving} {
    opacity: 0;
    animation-name: ${c4};
    animation-duration: ${f1}ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
  }

  & .${El.childPulsate} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${u4};
    animation-duration: 2500ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`,p4=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiTouchRipple"}),{center:l=!1,classes:a={},className:s,...u}=r,[d,f]=m.useState([]),h=m.useRef(0),g=m.useRef(null);m.useEffect(()=>{g.current&&(g.current(),g.current=null)},[d]);const b=m.useRef(!1),y=$o(),C=m.useRef(null),S=m.useRef(null),w=m.useCallback(P=>{const{pulsate:R,rippleX:A,rippleY:z,rippleSize:k,cb:L}=P;f(H=>[...H,x.jsx(f4,{classes:{ripple:Oe(a.ripple,El.ripple),rippleVisible:Oe(a.rippleVisible,El.rippleVisible),ripplePulsate:Oe(a.ripplePulsate,El.ripplePulsate),child:Oe(a.child,El.child),childLeaving:Oe(a.childLeaving,El.childLeaving),childPulsate:Oe(a.childPulsate,El.childPulsate)},timeout:f1,pulsate:R,rippleX:A,rippleY:z,rippleSize:k},h.current)]),h.current+=1,g.current=L},[a]),M=m.useCallback((P={},R={},A=()=>{})=>{const{pulsate:z=!1,center:k=l||R.pulsate,fakeElement:L=!1}=R;if(P?.type==="mousedown"&&b.current){b.current=!1;return}P?.type==="touchstart"&&(b.current=!0);const H=L?null:S.current,$=H?H.getBoundingClientRect():{width:0,height:0,left:0,top:0};let I,j,q;if(k||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)I=Math.round($.width/2),j=Math.round($.height/2);else{const{clientX:F,clientY:_}=P.touches&&P.touches.length>0?P.touches[0]:P;I=Math.round(F-$.left),j=Math.round(_-$.top)}if(k)q=Math.sqrt((2*$.width**2+$.height**2)/3),q%2===0&&(q+=1);else{const F=Math.max(Math.abs((H?H.clientWidth:0)-I),I)*2+2,_=Math.max(Math.abs((H?H.clientHeight:0)-j),j)*2+2;q=Math.sqrt(F**2+_**2)}P?.touches?C.current===null&&(C.current=()=>{w({pulsate:z,rippleX:I,rippleY:j,rippleSize:q,cb:A})},y.start(a4,()=>{C.current&&(C.current(),C.current=null)})):w({pulsate:z,rippleX:I,rippleY:j,rippleSize:q,cb:A})},[l,w,y]),E=m.useCallback(()=>{M({},{pulsate:!0})},[M]),O=m.useCallback((P,R)=>{if(y.clear(),P?.type==="touchend"&&C.current){C.current(),C.current=null,y.start(0,()=>{O(P,R)});return}C.current=null,f(A=>A.length>0?A.slice(1):A),g.current=R},[y]);return m.useImperativeHandle(n,()=>({pulsate:E,start:M,stop:O}),[E,M,O]),x.jsx(d4,{className:Oe(El.root,a.root,s),ref:S,...u,children:x.jsx(yx,{component:null,exit:!0,children:d})})});function h4(e){return St("MuiButtonBase",e)}const g4=vt("MuiButtonBase",["root","disabled","focusVisible"]),m4=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:l}=e,s=Be({root:["root",t&&"disabled",n&&"focusVisible"]},h4,l);return n&&r&&(s.root+=` ${r}`),s},b4=ge("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"},[`&.${g4.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Vu=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiButtonBase"}),{action:l,centerRipple:a=!1,children:s,className:u,component:d="button",disabled:f=!1,disableRipple:h=!1,disableTouchRipple:g=!1,focusRipple:b=!1,focusVisibleClassName:y,LinkComponent:C="a",onBlur:S,onClick:w,onContextMenu:M,onDragLeave:E,onFocus:O,onFocusVisible:P,onKeyDown:R,onKeyUp:A,onMouseDown:z,onMouseLeave:k,onMouseUp:L,onTouchEnd:H,onTouchMove:$,onTouchStart:I,tabIndex:j=0,TouchRippleProps:q,touchRippleRef:F,type:_,...B}=r,J=m.useRef(null),Q=o4(),D=tn(Q.ref,F),[G,W]=m.useState(!1);f&&G&&W(!1),m.useImperativeHandle(l,()=>({focusVisible:()=>{W(!0),J.current.focus()}}),[]);const Z=Q.shouldMount&&!h&&!f;m.useEffect(()=>{G&&b&&!h&&Q.pulsate()},[h,b,G,Q]);const te=ha(Q,"start",z,g),ne=ha(Q,"stop",M,g),oe=ha(Q,"stop",E,g),se=ha(Q,"stop",L,g),Se=ha(Q,"stop",He=>{G&&He.preventDefault(),k&&k(He)},g),be=ha(Q,"start",I,g),de=ha(Q,"stop",H,g),ke=ha(Q,"stop",$,g),Ae=ha(Q,"stop",He=>{Jg(He.target)||W(!1),S&&S(He)},!1),Ne=wt(He=>{J.current||(J.current=He.currentTarget),Jg(He.target)&&(W(!0),P&&P(He)),O&&O(He)}),$e=()=>{const He=J.current;return d&&d!=="button"&&!(He.tagName==="A"&&He.href)},Ve=wt(He=>{b&&!He.repeat&&G&&He.key===" "&&Q.stop(He,()=>{Q.start(He)}),He.target===He.currentTarget&&$e()&&He.key===" "&&He.preventDefault(),R&&R(He),He.target===He.currentTarget&&$e()&&He.key==="Enter"&&!f&&(He.preventDefault(),w&&w(He))}),nt=wt(He=>{b&&He.key===" "&&G&&!He.defaultPrevented&&Q.stop(He,()=>{Q.pulsate(He)}),A&&A(He),w&&He.target===He.currentTarget&&$e()&&He.key===" "&&!He.defaultPrevented&&w(He)});let lt=d;lt==="button"&&(B.href||B.to)&&(lt=C);const me={};lt==="button"?(me.type=_===void 0?"button":_,me.disabled=f):(!B.href&&!B.to&&(me.role="button"),f&&(me["aria-disabled"]=f));const tt=tn(n,J),ze={...r,centerRipple:a,component:d,disabled:f,disableRipple:h,disableTouchRipple:g,focusRipple:b,tabIndex:j,focusVisible:G},et=m4(ze);return x.jsxs(b4,{as:lt,className:Oe(et.root,u),ownerState:ze,onBlur:Ae,onClick:w,onContextMenu:ne,onFocus:Ne,onKeyDown:Ve,onKeyUp:nt,onMouseDown:te,onMouseLeave:Se,onMouseUp:se,onDragLeave:oe,onTouchEnd:de,onTouchMove:ke,onTouchStart:be,ref:tt,tabIndex:f?-1:j,type:_,...me,...B,children:[s,Z?x.jsx(p4,{ref:D,center:a,...q}):null]})});function ha(e,t,n,r=!1){return wt(l=>(n&&n(l),r||e[t](l),!0))}function v4(e){return St("MuiCircularProgress",e)}vt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ts=44,p1=Fl`
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
`,h1=Fl`
  0% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -15px;
  }

  100% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: -126px;
  }
`,y4=typeof p1!="string"?Ss`
        animation: ${p1} 1.4s linear infinite;
      `:null,C4=typeof h1!="string"?Ss`
        animation: ${h1} 1.4s ease-in-out infinite;
      `:null,S4=e=>{const{classes:t,variant:n,color:r,disableShrink:l}=e,a={root:["root",n,`color${we(r)}`],svg:["svg"],circle:["circle",`circle${we(n)}`,l&&"circleDisableShrink"]};return Be(a,v4,t)},w4=ge("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${we(n.color)}`]]}})(ft(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:y4||{animation:`${p1} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Zn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),x4=ge("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),M4=ge("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${we(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(ft(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:C4||{animation:`${h1} 1.4s ease-in-out infinite`}}]}))),Mc=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiCircularProgress"}),{className:l,color:a="primary",disableShrink:s=!1,size:u=40,style:d,thickness:f=3.6,value:h=0,variant:g="indeterminate",...b}=r,y={...r,color:a,disableShrink:s,size:u,thickness:f,value:h,variant:g},C=S4(y),S={},w={},M={};if(g==="determinate"){const E=2*Math.PI*((ts-f)/2);S.strokeDasharray=E.toFixed(3),M["aria-valuenow"]=Math.round(h),S.strokeDashoffset=`${((100-h)/100*E).toFixed(3)}px`,w.transform="rotate(-90deg)"}return x.jsx(w4,{className:Oe(C.root,l),style:{width:u,height:u,...w,...d},ownerState:y,ref:n,role:"progressbar",...M,...b,children:x.jsx(x4,{className:C.svg,ownerState:y,viewBox:`${ts/2} ${ts/2} ${ts} ${ts}`,children:x.jsx(M4,{className:C.circle,style:S,ownerState:y,cx:ts,cy:ts,r:(ts-f)/2,fill:"none",strokeWidth:f})})})});function T4(e){return St("MuiIconButton",e)}const g1=vt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),E4=e=>{const{classes:t,disabled:n,color:r,edge:l,size:a,loading:s}=e,u={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${we(r)}`,l&&`edge${we(l)}`,`size${we(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Be(u,T4,t)},P4=ge(Vu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${we(n.color)}`],n.edge&&t[`edge${we(n.edge)}`],t[`size${we(n.size)}`]]}})(ft(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).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}}]})),ft(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Zn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Zn()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${g1.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${g1.loading}`]:{color:"transparent"}}))),R4=ge("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),rl=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiIconButton"}),{edge:l=!1,children:a,className:s,color:u="default",disabled:d=!1,disableFocusRipple:f=!1,size:h="medium",id:g,loading:b=null,loadingIndicator:y,...C}=r,S=Nt(g),w=y??x.jsx(Mc,{"aria-labelledby":S,color:"inherit",size:16}),M={...r,edge:l,color:u,disabled:d,disableFocusRipple:f,loading:b,loadingIndicator:w,size:h},E=E4(M);return x.jsxs(P4,{id:b?S:g,className:Oe(E.root,s),centerRipple:!0,focusRipple:!f,disabled:d||b,ref:n,...C,ownerState:M,children:[typeof b=="boolean"&&x.jsx("span",{className:E.loadingWrapper,style:{display:"contents"},children:x.jsx(R4,{className:E.loadingIndicator,ownerState:M,children:b&&w})}),a]})}),A4=Bn(x.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),O4=({err:e,setErr:t})=>{const[n,r]=m.useState(null);m.useEffect(()=>{e?(console.error(e),r(e.message)):r(null)},[e,r]);const l=(a,s)=>{t(null)};return x.jsx(QG,{open:n!==null,autoHideDuration:1e4,onClose:l,message:e?e.message:null,action:x.jsx(x.Fragment,{children:x.jsx(rl,{size:"small","aria-label":"close",color:"inherit",onClick:l,children:x.jsx(A4,{fontSize:"small"})})})})};function I4(e){return St("MuiAppBar",e)}vt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const k4=e=>{const{color:t,position:n,classes:r}=e,l={root:["root",`color${we(t)}`,`position${we(n)}`]};return Be(l,I4,r)},TR=(e,t)=>e?`${e?.replace(")","")}, ${t})`:t,_4=ge(xs,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${we(n.position)}`],t[`color${we(n.color)}`]]}})(ft(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Zn(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?TR(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?TR(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),D4=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiAppBar"}),{className:l,color:a="primary",enableColorOnDark:s=!1,position:u="fixed",...d}=r,f={...r,color:a,position:u,enableColorOnDark:s},h=k4(f);return x.jsx(_4,{square:!0,component:"header",ownerState:f,elevation:4,className:Oe(h.root,l,u==="fixed"&&"mui-fixed"),ref:n,...d})});function L4(e){return St("MuiToolbar",e)}vt("MuiToolbar",["root","gutters","regular","dense"]);const $4=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Be({root:["root",!n&&"gutters",r]},L4,t)},z4=ge("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(ft(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),fL=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiToolbar"}),{className:l,component:a="div",disableGutters:s=!1,variant:u="regular",...d}=r,f={...r,component:a,disableGutters:s,variant:u},h=$4(f);return x.jsx(z4,{as:a,className:Oe(h.root,l),ref:n,ownerState:f,...d})}),F4=Bn(x.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));function H4(e){return St("MuiTypography",e)}const ER=vt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),N4={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},j4=CG(),B4=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:l,variant:a,classes:s}=e,u={root:["root",a,e.align!=="inherit"&&`align${we(t)}`,n&&"gutterBottom",r&&"noWrap",l&&"paragraph"]};return Be(u,H4,s)},G4=ge("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${we(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(ft(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(Zn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${we(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),PR={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},bo=m.forwardRef(function(t,n){const{color:r,...l}=xt({props:t,name:"MuiTypography"}),a=!N4[r],s=j4({...l,...a&&{color:r}}),{align:u="inherit",className:d,component:f,gutterBottom:h=!1,noWrap:g=!1,paragraph:b=!1,variant:y="body1",variantMapping:C=PR,...S}=s,w={...s,align:u,color:r,className:d,component:f,gutterBottom:h,noWrap:g,paragraph:b,variant:y,variantMapping:C},M=f||(b?"p":C[y]||PR[y])||"span",E=B4(w);return x.jsx(G4,{as:M,ref:n,className:Oe(E.root,d),...S,ownerState:w,style:{...u!=="inherit"&&{"--Typography-textAlign":u},...S.style}})}),Cx=e=>{const t=m.useRef({});return m.useEffect(()=>{t.current=e}),t.current};function RR({array1:e,array2:t,parser:n=r=>r}){return e&&t&&e.length===t.length&&e.every((r,l)=>n(r)===n(t[l]))}function AR(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function V4(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:l="any",stringify:a,trim:s=!1}=e;return(u,{inputValue:d,getOptionLabel:f})=>{let h=s?d.trim():d;n&&(h=h.toLowerCase()),t&&(h=AR(h));const g=h?u.filter(b=>{let y=(a||f)(b);return n&&(y=y.toLowerCase()),t&&(y=AR(y)),l==="start"?y.startsWith(h):y.includes(h)}):u;return typeof r=="number"?g.slice(0,r):g}}const U4=V4(),OR=5,q4=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),W4=[];function IR(e,t,n,r){if(t||e==null||r)return"";const l=n(e);return typeof l=="string"?l:""}function K4(e){const{unstable_isActiveElementInListbox:t=q4,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:l=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:u=!e.freeSolo,clearOnEscape:d=!1,componentName:f="useAutocomplete",defaultValue:h=e.multiple?W4:null,disableClearable:g=!1,disableCloseOnSelect:b=!1,disabled:y,disabledItemsFocusable:C=!1,disableListWrap:S=!1,filterOptions:w=U4,filterSelectedOptions:M=!1,freeSolo:E=!1,getOptionDisabled:O,getOptionKey:P,getOptionLabel:R=xe=>xe.label??xe,groupBy:A,handleHomeEndKeys:z=!e.freeSolo,id:k,includeInputInList:L=!1,inputValue:H,isOptionEqualToValue:$=(xe,Ce)=>xe===Ce,multiple:I=!1,onChange:j,onClose:q,onHighlightChange:F,onInputChange:_,onOpen:B,open:J,openOnFocus:Q=!1,options:D,readOnly:G=!1,renderValue:W,selectOnFocus:Z=!e.freeSolo,value:te}=e,ne=Nt(k);let oe=R;oe=xe=>{const Ce=R(xe);return typeof Ce!="string"?String(Ce):Ce};const se=m.useRef(!1),Se=m.useRef(!0),be=m.useRef(null),de=m.useRef(null),[ke,Ae]=m.useState(null),[Ne,$e]=m.useState(-1),Ve=l?0:-1,nt=m.useRef(Ve),lt=m.useRef(IR(h??te,I,oe)).current,[me,tt]=ms({controlled:te,default:h,name:f}),[ze,et]=ms({controlled:H,default:lt,name:f,state:"inputValue"}),[He,yt]=m.useState(!1),Le=m.useCallback((xe,Ce,Ue)=>{if(!(I?me.length<Ce.length:Ce!==null)&&!u)return;const At=IR(Ce,I,oe,W);ze!==At&&(et(At),_&&_(xe,At,Ue))},[oe,ze,I,_,et,u,me,W]),[Pe,Ke]=ms({controlled:J,default:!1,name:f,state:"open"}),[Xe,mt]=m.useState(!0),_e=!I&&me!=null&&ze===oe(me),Je=Pe&&!G,Fe=Je?w(D.filter(xe=>!(M&&(I?me:[me]).some(Ce=>Ce!==null&&$(xe,Ce)))),{inputValue:_e&&Xe?"":ze,getOptionLabel:oe}):[],Qe=Cx({filteredOptions:Fe,value:me,inputValue:ze});m.useEffect(()=>{const xe=me!==Qe.value;He&&!xe||E&&!xe||Le(null,me,"reset")},[me,Le,He,Qe.value,E]);const st=Pe&&Fe.length>0&&!G,pt=wt(xe=>{if(xe===-1)be.current.focus();else{const Ce=W?"data-item-index":"data-tag-index";ke.querySelector(`[${Ce}="${xe}"]`).focus()}});m.useEffect(()=>{I&&Ne>me.length-1&&($e(-1),pt(-1))},[me,I,Ne,pt]);function Ze(xe,Ce){if(!de.current||xe<0||xe>=Fe.length)return-1;let Ue=xe;for(;;){const it=de.current.querySelector(`[data-option-index="${Ue}"]`),At=C?!1:!it||it.disabled||it.getAttribute("aria-disabled")==="true";if(it&&it.hasAttribute("tabindex")&&!At)return Ue;if(Ce==="next"?Ue=(Ue+1)%Fe.length:Ue=(Ue-1+Fe.length)%Fe.length,Ue===xe)return-1}}const Tt=wt(({event:xe,index:Ce,reason:Ue})=>{if(nt.current=Ce,Ce===-1?be.current.removeAttribute("aria-activedescendant"):be.current.setAttribute("aria-activedescendant",`${ne}-option-${Ce}`),F&&["mouse","keyboard","touch"].includes(Ue)&&F(xe,Ce===-1?null:Fe[Ce],Ue),!de.current)return;const it=de.current.querySelector(`[role="option"].${n}-focused`);it&&(it.classList.remove(`${n}-focused`),it.classList.remove(`${n}-focusVisible`));let At=de.current;if(de.current.getAttribute("role")!=="listbox"&&(At=de.current.parentElement.querySelector('[role="listbox"]')),!At)return;if(Ce===-1){At.scrollTop=0;return}const nn=de.current.querySelector(`[data-option-index="${Ce}"]`);if(nn&&(nn.classList.add(`${n}-focused`),Ue==="keyboard"&&nn.classList.add(`${n}-focusVisible`),At.scrollHeight>At.clientHeight&&Ue!=="mouse"&&Ue!=="touch")){const mn=nn,co=At.clientHeight+At.scrollTop,jo=mn.offsetTop+mn.offsetHeight;jo>co?At.scrollTop=jo-At.clientHeight:mn.offsetTop-mn.offsetHeight*(A?1.3:0)<At.scrollTop&&(At.scrollTop=mn.offsetTop-mn.offsetHeight*(A?1.3:0))}}),_t=wt(({event:xe,diff:Ce,direction:Ue="next",reason:it})=>{if(!Je)return;const nn=Ze((()=>{const mn=Fe.length-1;if(Ce==="reset")return Ve;if(Ce==="start")return 0;if(Ce==="end")return mn;const co=nt.current+Ce;return co<0?co===-1&&L?-1:S&&nt.current!==-1||Math.abs(Ce)>1?0:mn:co>mn?co===mn+1&&L?-1:S||Math.abs(Ce)>1?mn:0:co})(),Ue);if(Tt({index:nn,reason:it,event:xe}),r&&Ce!=="reset")if(nn===-1)be.current.value=ze;else{const mn=oe(Fe[nn]);be.current.value=mn,mn.toLowerCase().indexOf(ze.toLowerCase())===0&&ze.length>0&&be.current.setSelectionRange(ze.length,mn.length)}}),cn=!RR({array1:Qe.filteredOptions,array2:Fe,parser:oe}),qn=()=>{const xe=(Ce,Ue)=>{const it=Ce?oe(Ce):"",At=Ue?oe(Ue):"";return it===At};if(nt.current!==-1&&!RR({array1:Qe.filteredOptions,array2:Fe,parser:oe})&&Qe.inputValue===ze&&(I?me.length===Qe.value.length&&Qe.value.every((Ce,Ue)=>oe(me[Ue])===oe(Ce)):xe(Qe.value,me))){const Ce=Qe.filteredOptions[nt.current];if(Ce)return Fe.findIndex(Ue=>oe(Ue)===oe(Ce))}return-1},cr=m.useCallback(()=>{if(!Je)return;const xe=qn();if(xe!==-1){nt.current=xe;return}const Ce=I?me[0]:me;if(Fe.length===0||Ce==null){_t({diff:"reset"});return}if(de.current){if(Ce!=null){const Ue=Fe[nt.current];if(I&&Ue&&me.findIndex(At=>$(Ue,At))!==-1)return;const it=Fe.findIndex(At=>$(At,Ce));it===-1?_t({diff:"reset"}):Tt({index:it});return}if(nt.current>=Fe.length-1){Tt({index:Fe.length-1});return}Tt({index:nt.current})}},[Fe.length,I?!1:me,M,_t,Tt,Je,ze,I]),on=wt(xe=>{d1(de,xe),xe&&cr()});m.useEffect(()=>{cn&&cr()},[cr,cn]);const Wn=xe=>{Pe||(Ke(!0),mt(!0),B&&B(xe))},Gr=(xe,Ce)=>{Pe&&(Ke(!1),q&&q(xe,Ce))},Cr=(xe,Ce,Ue,it)=>{if(I){if(me.length===Ce.length&&me.every((At,nn)=>At===Ce[nn]))return}else if(me===Ce)return;j&&j(xe,Ce,Ue,it),tt(Ce)},Vr=m.useRef(!1),Ur=(xe,Ce,Ue="selectOption",it="options")=>{let At=Ue,nn=Ce;if(I){nn=Array.isArray(me)?me.slice():[];const mn=nn.findIndex(co=>$(Ce,co));mn===-1?nn.push(Ce):it!=="freeSolo"&&(nn.splice(mn,1),At="removeOption")}Le(xe,nn,At),Cr(xe,nn,At,{option:Ce}),!b&&(!xe||!xe.ctrlKey&&!xe.metaKey)&&Gr(xe,At),(s===!0||s==="touch"&&Vr.current||s==="mouse"&&!Vr.current)&&be.current.blur()};function Et(xe,Ce){if(xe===-1)return-1;let Ue=xe;for(;;){if(Ce==="next"&&Ue===me.length||Ce==="previous"&&Ue===-1)return-1;const it=W?"data-item-index":"data-tag-index",At=ke.querySelector(`[${it}="${Ue}"]`);if(!At||!At.hasAttribute("tabindex")||At.disabled||At.getAttribute("aria-disabled")==="true")Ue+=Ce==="next"?1:-1;else return Ue}}const Kn=(xe,Ce)=>{if(!I)return;ze===""&&Gr(xe,"toggleInput");let Ue=Ne;Ne===-1?ze===""&&Ce==="previous"&&(Ue=me.length-1):(Ue+=Ce==="next"?1:-1,Ue<0&&(Ue=0),Ue===me.length&&(Ue=-1)),Ue=Et(Ue,Ce),$e(Ue),pt(Ue)},to=xe=>{se.current=!0,et(""),_&&_(xe,"","clear"),Cr(xe,I?[]:null,"clear")},yn=xe=>Ce=>{if(xe.onKeyDown&&xe.onKeyDown(Ce),!Ce.defaultMuiPrevented&&(Ne!==-1&&!["ArrowLeft","ArrowRight"].includes(Ce.key)&&($e(-1),pt(-1)),Ce.which!==229))switch(Ce.key){case"Home":Je&&z&&(Ce.preventDefault(),_t({diff:"start",direction:"next",reason:"keyboard",event:Ce}));break;case"End":Je&&z&&(Ce.preventDefault(),_t({diff:"end",direction:"previous",reason:"keyboard",event:Ce}));break;case"PageUp":Ce.preventDefault(),_t({diff:-OR,direction:"previous",reason:"keyboard",event:Ce}),Wn(Ce);break;case"PageDown":Ce.preventDefault(),_t({diff:OR,direction:"next",reason:"keyboard",event:Ce}),Wn(Ce);break;case"ArrowDown":Ce.preventDefault(),_t({diff:1,direction:"next",reason:"keyboard",event:Ce}),Wn(Ce);break;case"ArrowUp":Ce.preventDefault(),_t({diff:-1,direction:"previous",reason:"keyboard",event:Ce}),Wn(Ce);break;case"ArrowLeft":!I&&W?pt(0):Kn(Ce,"previous");break;case"ArrowRight":!I&&W?pt(-1):Kn(Ce,"next");break;case"Enter":if(nt.current!==-1&&Je){const Ue=Fe[nt.current],it=O?O(Ue):!1;if(Ce.preventDefault(),it)return;Ur(Ce,Ue,"selectOption"),r&&be.current.setSelectionRange(be.current.value.length,be.current.value.length)}else E&&ze!==""&&_e===!1&&(I&&Ce.preventDefault(),Ur(Ce,ze,"createOption","freeSolo"));break;case"Escape":Je?(Ce.preventDefault(),Ce.stopPropagation(),Gr(Ce,"escape")):d&&(ze!==""||I&&me.length>0||W)&&(Ce.preventDefault(),Ce.stopPropagation(),to(Ce));break;case"Backspace":if(I&&!G&&ze===""&&me.length>0){const Ue=Ne===-1?me.length-1:Ne,it=me.slice();it.splice(Ue,1),Cr(Ce,it,"removeOption",{option:me[Ue]})}!I&&W&&!G&&(tt(null),pt(-1));break;case"Delete":if(I&&!G&&ze===""&&me.length>0&&Ne!==-1){const Ue=Ne,it=me.slice();it.splice(Ue,1),Cr(Ce,it,"removeOption",{option:me[Ue]})}!I&&W&&!G&&(tt(null),pt(-1));break}},Jt=xe=>{yt(!0),Q&&!se.current&&Wn(xe)},Pn=xe=>{if(t(de)){be.current.focus();return}yt(!1),Se.current=!0,se.current=!1,a&&nt.current!==-1&&Je?Ur(xe,Fe[nt.current],"blur"):a&&E&&ze!==""?Ur(xe,ze,"blur","freeSolo"):u&&Le(xe,me,"blur"),Gr(xe,"blur")},Or=xe=>{const Ce=xe.target.value;ze!==Ce&&(et(Ce),mt(!1),_&&_(xe,Ce,"input")),Ce===""?!g&&!I&&Cr(xe,null,"clear"):Wn(xe)},Sr=xe=>{const Ce=Number(xe.currentTarget.getAttribute("data-option-index"));nt.current!==Ce&&Tt({event:xe,index:Ce,reason:"mouse"})},cl=xe=>{Tt({event:xe,index:Number(xe.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Vr.current=!0},ul=xe=>{const Ce=Number(xe.currentTarget.getAttribute("data-option-index"));Ur(xe,Fe[Ce],"selectOption"),Vr.current=!1},Gi=xe=>Ce=>{const Ue=me.slice();Ue.splice(xe,1),Cr(Ce,Ue,"removeOption",{option:me[xe]})},Ro=xe=>{Cr(xe,null,"removeOption",{option:me})},Yn=xe=>{Pe?Gr(xe,"toggleInput"):Wn(xe)},$n=xe=>{xe.currentTarget.contains(xe.target)&&xe.target.getAttribute("id")!==ne&&xe.preventDefault()},ir=xe=>{xe.currentTarget.contains(xe.target)&&(be.current.focus(),Z&&Se.current&&be.current.selectionEnd-be.current.selectionStart===0&&be.current.select(),Se.current=!1)},jl=xe=>{!y&&(ze===""||!Pe)&&Yn(xe)};let qr=E&&ze.length>0;qr=qr||(I?me.length>0:me!==null);let Vn=Fe;return A&&(Vn=Fe.reduce((xe,Ce,Ue)=>{const it=A(Ce);return xe.length>0&&xe[xe.length-1].group===it?xe[xe.length-1].options.push(Ce):xe.push({key:Ue,index:Ue,group:it,options:[Ce]}),xe},[])),y&&He&&Pn(),{getRootProps:(xe={})=>({...xe,onKeyDown:yn(xe),onMouseDown:$n,onClick:ir}),getInputLabelProps:()=>({id:`${ne}-label`,htmlFor:ne}),getInputProps:()=>({id:ne,value:ze,onBlur:Pn,onFocus:Jt,onChange:Or,onMouseDown:jl,"aria-activedescendant":Je?"":null,"aria-autocomplete":r?"both":"list","aria-controls":st?`${ne}-listbox`:void 0,"aria-expanded":st,autoComplete:"off",ref:be,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:y}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:to}),getItemProps:({index:xe=0}={})=>({...I&&{key:xe},...W?{"data-item-index":xe}:{"data-tag-index":xe},tabIndex:-1,...!G&&{onDelete:I?Gi(xe):Ro}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Yn}),getTagProps:({index:xe})=>({key:xe,"data-tag-index":xe,tabIndex:-1,...!G&&{onDelete:Gi(xe)}}),getListboxProps:()=>({role:"listbox",id:`${ne}-listbox`,"aria-labelledby":`${ne}-label`,ref:on,onMouseDown:xe=>{xe.preventDefault()}}),getOptionProps:({index:xe,option:Ce})=>{const Ue=(I?me:[me]).some(At=>At!=null&&$(Ce,At)),it=O?O(Ce):!1;return{key:P?.(Ce)??oe(Ce),tabIndex:-1,role:"option",id:`${ne}-option-${xe}`,onMouseMove:Sr,onClick:ul,onTouchStart:cl,"data-option-index":xe,"aria-disabled":it,"aria-selected":Ue}},id:ne,inputValue:ze,value:me,dirty:qr,expanded:Je&&ke,popupOpen:Je,focused:He||Ne!==-1,anchorEl:ke,setAnchorEl:Ae,focusedItem:Ne,focusedTag:Ne,groupedOptions:Vn}}var zo="top",$l="bottom",zl="right",Fo="left",Sx="auto",Dp=[zo,$l,zl,Fo],Uu="start",dp="end",Y4="clippingParents",pL="viewport",Ef="popper",X4="reference",kR=Dp.reduce(function(e,t){return e.concat([t+"-"+Uu,t+"-"+dp])},[]),hL=[].concat(Dp,[Sx]).reduce(function(e,t){return e.concat([t,t+"-"+Uu,t+"-"+dp])},[]),Q4="beforeRead",Z4="read",J4="afterRead",e3="beforeMain",t3="main",n3="afterMain",r3="beforeWrite",o3="write",l3="afterWrite",i3=[Q4,Z4,J4,e3,t3,n3,r3,o3,l3];function Fi(e){return e?(e.nodeName||"").toLowerCase():null}function il(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function mc(e){var t=il(e).Element;return e instanceof t||e instanceof Element}function _l(e){var t=il(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function wx(e){if(typeof ShadowRoot>"u")return!1;var t=il(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function a3(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},l=t.attributes[n]||{},a=t.elements[n];!_l(a)||!Fi(a)||(Object.assign(a.style,r),Object.keys(l).forEach(function(s){var u=l[s];u===!1?a.removeAttribute(s):a.setAttribute(s,u===!0?"":u)}))})}function s3(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var l=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=s.reduce(function(d,f){return d[f]="",d},{});!_l(l)||!Fi(l)||(Object.assign(l.style,u),Object.keys(a).forEach(function(d){l.removeAttribute(d)}))})}}const c3={name:"applyStyles",enabled:!0,phase:"write",fn:a3,effect:s3,requires:["computeStyles"]};function $i(e){return e.split("-")[0]}var cc=Math.max,tm=Math.min,qu=Math.round;function m1(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function gL(){return!/^((?!chrome|android).)*safari/i.test(m1())}function Wu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),l=1,a=1;t&&_l(e)&&(l=e.offsetWidth>0&&qu(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&qu(r.height)/e.offsetHeight||1);var s=mc(e)?il(e):window,u=s.visualViewport,d=!gL()&&n,f=(r.left+(d&&u?u.offsetLeft:0))/l,h=(r.top+(d&&u?u.offsetTop:0))/a,g=r.width/l,b=r.height/a;return{width:g,height:b,top:h,right:f+g,bottom:h+b,left:f,x:f,y:h}}function xx(e){var t=Wu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function mL(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wx(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function wa(e){return il(e).getComputedStyle(e)}function u3(e){return["table","td","th"].indexOf(Fi(e))>=0}function Ms(e){return((mc(e)?e.ownerDocument:e.document)||window.document).documentElement}function $m(e){return Fi(e)==="html"?e:e.assignedSlot||e.parentNode||(wx(e)?e.host:null)||Ms(e)}function _R(e){return!_l(e)||wa(e).position==="fixed"?null:e.offsetParent}function d3(e){var t=/firefox/i.test(m1()),n=/Trident/i.test(m1());if(n&&_l(e)){var r=wa(e);if(r.position==="fixed")return null}var l=$m(e);for(wx(l)&&(l=l.host);_l(l)&&["html","body"].indexOf(Fi(l))<0;){var a=wa(l);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return l;l=l.parentNode}return null}function Lp(e){for(var t=il(e),n=_R(e);n&&u3(n)&&wa(n).position==="static";)n=_R(n);return n&&(Fi(n)==="html"||Fi(n)==="body"&&wa(n).position==="static")?t:n||d3(e)||t}function Mx(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qf(e,t,n){return cc(e,tm(t,n))}function f3(e,t,n){var r=Qf(e,t,n);return r>n?n:r}function bL(){return{top:0,right:0,bottom:0,left:0}}function vL(e){return Object.assign({},bL(),e)}function yL(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var p3=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,vL(typeof t!="number"?t:yL(t,Dp))};function h3(e){var t,n=e.state,r=e.name,l=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,u=$i(n.placement),d=Mx(u),f=[Fo,zl].indexOf(u)>=0,h=f?"height":"width";if(!(!a||!s)){var g=p3(l.padding,n),b=xx(a),y=d==="y"?zo:Fo,C=d==="y"?$l:zl,S=n.rects.reference[h]+n.rects.reference[d]-s[d]-n.rects.popper[h],w=s[d]-n.rects.reference[d],M=Lp(a),E=M?d==="y"?M.clientHeight||0:M.clientWidth||0:0,O=S/2-w/2,P=g[y],R=E-b[h]-g[C],A=E/2-b[h]/2+O,z=Qf(P,A,R),k=d;n.modifiersData[r]=(t={},t[k]=z,t.centerOffset=z-A,t)}}function g3(e){var t=e.state,n=e.options,r=n.element,l=r===void 0?"[data-popper-arrow]":r;l!=null&&(typeof l=="string"&&(l=t.elements.popper.querySelector(l),!l)||mL(t.elements.popper,l)&&(t.elements.arrow=l))}const m3={name:"arrow",enabled:!0,phase:"main",fn:h3,effect:g3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ku(e){return e.split("-")[1]}var b3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function v3(e,t){var n=e.x,r=e.y,l=t.devicePixelRatio||1;return{x:qu(n*l)/l||0,y:qu(r*l)/l||0}}function DR(e){var t,n=e.popper,r=e.popperRect,l=e.placement,a=e.variation,s=e.offsets,u=e.position,d=e.gpuAcceleration,f=e.adaptive,h=e.roundOffsets,g=e.isFixed,b=s.x,y=b===void 0?0:b,C=s.y,S=C===void 0?0:C,w=typeof h=="function"?h({x:y,y:S}):{x:y,y:S};y=w.x,S=w.y;var M=s.hasOwnProperty("x"),E=s.hasOwnProperty("y"),O=Fo,P=zo,R=window;if(f){var A=Lp(n),z="clientHeight",k="clientWidth";if(A===il(n)&&(A=Ms(n),wa(A).position!=="static"&&u==="absolute"&&(z="scrollHeight",k="scrollWidth")),A=A,l===zo||(l===Fo||l===zl)&&a===dp){P=$l;var L=g&&A===R&&R.visualViewport?R.visualViewport.height:A[z];S-=L-r.height,S*=d?1:-1}if(l===Fo||(l===zo||l===$l)&&a===dp){O=zl;var H=g&&A===R&&R.visualViewport?R.visualViewport.width:A[k];y-=H-r.width,y*=d?1:-1}}var $=Object.assign({position:u},f&&b3),I=h===!0?v3({x:y,y:S},il(n)):{x:y,y:S};if(y=I.x,S=I.y,d){var j;return Object.assign({},$,(j={},j[P]=E?"0":"",j[O]=M?"0":"",j.transform=(R.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",j))}return Object.assign({},$,(t={},t[P]=E?S+"px":"",t[O]=M?y+"px":"",t.transform="",t))}function y3(e){var t=e.state,n=e.options,r=n.gpuAcceleration,l=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,u=n.roundOffsets,d=u===void 0?!0:u,f={placement:$i(t.placement),variation:Ku(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:l,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,DR(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,DR(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const C3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:y3,data:{}};var pg={passive:!0};function S3(e){var t=e.state,n=e.instance,r=e.options,l=r.scroll,a=l===void 0?!0:l,s=r.resize,u=s===void 0?!0:s,d=il(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(h){h.addEventListener("scroll",n.update,pg)}),u&&d.addEventListener("resize",n.update,pg),function(){a&&f.forEach(function(h){h.removeEventListener("scroll",n.update,pg)}),u&&d.removeEventListener("resize",n.update,pg)}}const w3={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:S3,data:{}};var x3={left:"right",right:"left",bottom:"top",top:"bottom"};function Dg(e){return e.replace(/left|right|bottom|top/g,function(t){return x3[t]})}var M3={start:"end",end:"start"};function LR(e){return e.replace(/start|end/g,function(t){return M3[t]})}function Tx(e){var t=il(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ex(e){return Wu(Ms(e)).left+Tx(e).scrollLeft}function T3(e,t){var n=il(e),r=Ms(e),l=n.visualViewport,a=r.clientWidth,s=r.clientHeight,u=0,d=0;if(l){a=l.width,s=l.height;var f=gL();(f||!f&&t==="fixed")&&(u=l.offsetLeft,d=l.offsetTop)}return{width:a,height:s,x:u+Ex(e),y:d}}function E3(e){var t,n=Ms(e),r=Tx(e),l=(t=e.ownerDocument)==null?void 0:t.body,a=cc(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),s=cc(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),u=-r.scrollLeft+Ex(e),d=-r.scrollTop;return wa(l||n).direction==="rtl"&&(u+=cc(n.clientWidth,l?l.clientWidth:0)-a),{width:a,height:s,x:u,y:d}}function Px(e){var t=wa(e),n=t.overflow,r=t.overflowX,l=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+l+r)}function CL(e){return["html","body","#document"].indexOf(Fi(e))>=0?e.ownerDocument.body:_l(e)&&Px(e)?e:CL($m(e))}function Zf(e,t){var n;t===void 0&&(t=[]);var r=CL(e),l=r===((n=e.ownerDocument)==null?void 0:n.body),a=il(r),s=l?[a].concat(a.visualViewport||[],Px(r)?r:[]):r,u=t.concat(s);return l?u:u.concat(Zf($m(s)))}function b1(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function P3(e,t){var n=Wu(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function $R(e,t,n){return t===pL?b1(T3(e,n)):mc(t)?P3(t,n):b1(E3(Ms(e)))}function R3(e){var t=Zf($m(e)),n=["absolute","fixed"].indexOf(wa(e).position)>=0,r=n&&_l(e)?Lp(e):e;return mc(r)?t.filter(function(l){return mc(l)&&mL(l,r)&&Fi(l)!=="body"}):[]}function A3(e,t,n,r){var l=t==="clippingParents"?R3(e):[].concat(t),a=[].concat(l,[n]),s=a[0],u=a.reduce(function(d,f){var h=$R(e,f,r);return d.top=cc(h.top,d.top),d.right=tm(h.right,d.right),d.bottom=tm(h.bottom,d.bottom),d.left=cc(h.left,d.left),d},$R(e,s,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function SL(e){var t=e.reference,n=e.element,r=e.placement,l=r?$i(r):null,a=r?Ku(r):null,s=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,d;switch(l){case zo:d={x:s,y:t.y-n.height};break;case $l:d={x:s,y:t.y+t.height};break;case zl:d={x:t.x+t.width,y:u};break;case Fo:d={x:t.x-n.width,y:u};break;default:d={x:t.x,y:t.y}}var f=l?Mx(l):null;if(f!=null){var h=f==="y"?"height":"width";switch(a){case Uu:d[f]=d[f]-(t[h]/2-n[h]/2);break;case dp:d[f]=d[f]+(t[h]/2-n[h]/2);break}}return d}function fp(e,t){t===void 0&&(t={});var n=t,r=n.placement,l=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,u=n.boundary,d=u===void 0?Y4:u,f=n.rootBoundary,h=f===void 0?pL:f,g=n.elementContext,b=g===void 0?Ef:g,y=n.altBoundary,C=y===void 0?!1:y,S=n.padding,w=S===void 0?0:S,M=vL(typeof w!="number"?w:yL(w,Dp)),E=b===Ef?X4:Ef,O=e.rects.popper,P=e.elements[C?E:b],R=A3(mc(P)?P:P.contextElement||Ms(e.elements.popper),d,h,s),A=Wu(e.elements.reference),z=SL({reference:A,element:O,placement:l}),k=b1(Object.assign({},O,z)),L=b===Ef?k:A,H={top:R.top-L.top+M.top,bottom:L.bottom-R.bottom+M.bottom,left:R.left-L.left+M.left,right:L.right-R.right+M.right},$=e.modifiersData.offset;if(b===Ef&&$){var I=$[l];Object.keys(H).forEach(function(j){var q=[zl,$l].indexOf(j)>=0?1:-1,F=[zo,$l].indexOf(j)>=0?"y":"x";H[j]+=I[F]*q})}return H}function O3(e,t){t===void 0&&(t={});var n=t,r=n.placement,l=n.boundary,a=n.rootBoundary,s=n.padding,u=n.flipVariations,d=n.allowedAutoPlacements,f=d===void 0?hL:d,h=Ku(r),g=h?u?kR:kR.filter(function(C){return Ku(C)===h}):Dp,b=g.filter(function(C){return f.indexOf(C)>=0});b.length===0&&(b=g);var y=b.reduce(function(C,S){return C[S]=fp(e,{placement:S,boundary:l,rootBoundary:a,padding:s})[$i(S)],C},{});return Object.keys(y).sort(function(C,S){return y[C]-y[S]})}function I3(e){if($i(e)===Sx)return[];var t=Dg(e);return[LR(e),t,LR(t)]}function k3(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var l=n.mainAxis,a=l===void 0?!0:l,s=n.altAxis,u=s===void 0?!0:s,d=n.fallbackPlacements,f=n.padding,h=n.boundary,g=n.rootBoundary,b=n.altBoundary,y=n.flipVariations,C=y===void 0?!0:y,S=n.allowedAutoPlacements,w=t.options.placement,M=$i(w),E=M===w,O=d||(E||!C?[Dg(w)]:I3(w)),P=[w].concat(O).reduce(function(te,ne){return te.concat($i(ne)===Sx?O3(t,{placement:ne,boundary:h,rootBoundary:g,padding:f,flipVariations:C,allowedAutoPlacements:S}):ne)},[]),R=t.rects.reference,A=t.rects.popper,z=new Map,k=!0,L=P[0],H=0;H<P.length;H++){var $=P[H],I=$i($),j=Ku($)===Uu,q=[zo,$l].indexOf(I)>=0,F=q?"width":"height",_=fp(t,{placement:$,boundary:h,rootBoundary:g,altBoundary:b,padding:f}),B=q?j?zl:Fo:j?$l:zo;R[F]>A[F]&&(B=Dg(B));var J=Dg(B),Q=[];if(a&&Q.push(_[I]<=0),u&&Q.push(_[B]<=0,_[J]<=0),Q.every(function(te){return te})){L=$,k=!1;break}z.set($,Q)}if(k)for(var D=C?3:1,G=function(ne){var oe=P.find(function(se){var Se=z.get(se);if(Se)return Se.slice(0,ne).every(function(be){return be})});if(oe)return L=oe,"break"},W=D;W>0;W--){var Z=G(W);if(Z==="break")break}t.placement!==L&&(t.modifiersData[r]._skip=!0,t.placement=L,t.reset=!0)}}const _3={name:"flip",enabled:!0,phase:"main",fn:k3,requiresIfExists:["offset"],data:{_skip:!1}};function zR(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function FR(e){return[zo,zl,$l,Fo].some(function(t){return e[t]>=0})}function D3(e){var t=e.state,n=e.name,r=t.rects.reference,l=t.rects.popper,a=t.modifiersData.preventOverflow,s=fp(t,{elementContext:"reference"}),u=fp(t,{altBoundary:!0}),d=zR(s,r),f=zR(u,l,a),h=FR(d),g=FR(f);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:f,isReferenceHidden:h,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":g})}const L3={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:D3};function $3(e,t,n){var r=$i(e),l=[Fo,zo].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],u=a[1];return s=s||0,u=(u||0)*l,[Fo,zl].indexOf(r)>=0?{x:u,y:s}:{x:s,y:u}}function z3(e){var t=e.state,n=e.options,r=e.name,l=n.offset,a=l===void 0?[0,0]:l,s=hL.reduce(function(h,g){return h[g]=$3(g,t.rects,a),h},{}),u=s[t.placement],d=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=s}const F3={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:z3};function H3(e){var t=e.state,n=e.name;t.modifiersData[n]=SL({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const N3={name:"popperOffsets",enabled:!0,phase:"read",fn:H3,data:{}};function j3(e){return e==="x"?"y":"x"}function B3(e){var t=e.state,n=e.options,r=e.name,l=n.mainAxis,a=l===void 0?!0:l,s=n.altAxis,u=s===void 0?!1:s,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,g=n.padding,b=n.tether,y=b===void 0?!0:b,C=n.tetherOffset,S=C===void 0?0:C,w=fp(t,{boundary:d,rootBoundary:f,padding:g,altBoundary:h}),M=$i(t.placement),E=Ku(t.placement),O=!E,P=Mx(M),R=j3(P),A=t.modifiersData.popperOffsets,z=t.rects.reference,k=t.rects.popper,L=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,H=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(A){if(a){var j,q=P==="y"?zo:Fo,F=P==="y"?$l:zl,_=P==="y"?"height":"width",B=A[P],J=B+w[q],Q=B-w[F],D=y?-k[_]/2:0,G=E===Uu?z[_]:k[_],W=E===Uu?-k[_]:-z[_],Z=t.elements.arrow,te=y&&Z?xx(Z):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:bL(),oe=ne[q],se=ne[F],Se=Qf(0,z[_],te[_]),be=O?z[_]/2-D-Se-oe-H.mainAxis:G-Se-oe-H.mainAxis,de=O?-z[_]/2+D+Se+se+H.mainAxis:W+Se+se+H.mainAxis,ke=t.elements.arrow&&Lp(t.elements.arrow),Ae=ke?P==="y"?ke.clientTop||0:ke.clientLeft||0:0,Ne=(j=$?.[P])!=null?j:0,$e=B+be-Ne-Ae,Ve=B+de-Ne,nt=Qf(y?tm(J,$e):J,B,y?cc(Q,Ve):Q);A[P]=nt,I[P]=nt-B}if(u){var lt,me=P==="x"?zo:Fo,tt=P==="x"?$l:zl,ze=A[R],et=R==="y"?"height":"width",He=ze+w[me],yt=ze-w[tt],Le=[zo,Fo].indexOf(M)!==-1,Pe=(lt=$?.[R])!=null?lt:0,Ke=Le?He:ze-z[et]-k[et]-Pe+H.altAxis,Xe=Le?ze+z[et]+k[et]-Pe-H.altAxis:yt,mt=y&&Le?f3(Ke,ze,Xe):Qf(y?Ke:He,ze,y?Xe:yt);A[R]=mt,I[R]=mt-ze}t.modifiersData[r]=I}}const G3={name:"preventOverflow",enabled:!0,phase:"main",fn:B3,requiresIfExists:["offset"]};function V3(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function U3(e){return e===il(e)||!_l(e)?Tx(e):V3(e)}function q3(e){var t=e.getBoundingClientRect(),n=qu(t.width)/e.offsetWidth||1,r=qu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function W3(e,t,n){n===void 0&&(n=!1);var r=_l(t),l=_l(t)&&q3(t),a=Ms(t),s=Wu(e,l,n),u={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&((Fi(t)!=="body"||Px(a))&&(u=U3(t)),_l(t)?(d=Wu(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=Ex(a))),{x:s.left+u.scrollLeft-d.x,y:s.top+u.scrollTop-d.y,width:s.width,height:s.height}}function K3(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function l(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(u){if(!n.has(u)){var d=t.get(u);d&&l(d)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||l(a)}),r}function Y3(e){var t=K3(e);return i3.reduce(function(n,r){return n.concat(t.filter(function(l){return l.phase===r}))},[])}function X3(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Q3(e){var t=e.reduce(function(n,r){var l=n[r.name];return n[r.name]=l?Object.assign({},l,r,{options:Object.assign({},l.options,r.options),data:Object.assign({},l.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var HR={placement:"bottom",modifiers:[],strategy:"absolute"};function NR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Z3(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,l=t.defaultOptions,a=l===void 0?HR:l;return function(u,d,f){f===void 0&&(f=a);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},HR,a),modifiersData:{},elements:{reference:u,popper:d},attributes:{},styles:{}},g=[],b=!1,y={state:h,setOptions:function(M){var E=typeof M=="function"?M(h.options):M;S(),h.options=Object.assign({},a,h.options,E),h.scrollParents={reference:mc(u)?Zf(u):u.contextElement?Zf(u.contextElement):[],popper:Zf(d)};var O=Y3(Q3([].concat(r,h.options.modifiers)));return h.orderedModifiers=O.filter(function(P){return P.enabled}),C(),y.update()},forceUpdate:function(){if(!b){var M=h.elements,E=M.reference,O=M.popper;if(NR(E,O)){h.rects={reference:W3(E,Lp(O),h.options.strategy==="fixed"),popper:xx(O)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(H){return h.modifiersData[H.name]=Object.assign({},H.data)});for(var P=0;P<h.orderedModifiers.length;P++){if(h.reset===!0){h.reset=!1,P=-1;continue}var R=h.orderedModifiers[P],A=R.fn,z=R.options,k=z===void 0?{}:z,L=R.name;typeof A=="function"&&(h=A({state:h,options:k,name:L,instance:y})||h)}}}},update:X3(function(){return new Promise(function(w){y.forceUpdate(),w(h)})}),destroy:function(){S(),b=!0}};if(!NR(u,d))return y;y.setOptions(f).then(function(w){!b&&f.onFirstUpdate&&f.onFirstUpdate(w)});function C(){h.orderedModifiers.forEach(function(w){var M=w.name,E=w.options,O=E===void 0?{}:E,P=w.effect;if(typeof P=="function"){var R=P({state:h,name:M,instance:y,options:O}),A=function(){};g.push(R||A)}})}function S(){g.forEach(function(w){return w()}),g=[]}return y}}var J3=[w3,N3,C3,c3,F3,_3,G3,m3,L3],eV=Z3({defaultModifiers:J3});function wL(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:l=!1,...a}=e,s=l?{}:cL(n,r),{props:u,internalRef:d}=uL({...a,externalSlotProps:s}),f=tn(d,s?.ref,e.additionalProps?.ref);return sL(t,{...u,ref:f},r)}function tV(e){return typeof e=="function"?e():e}const xL=m.forwardRef(function(t,n){const{children:r,container:l,disablePortal:a=!1}=t,[s,u]=m.useState(null),d=tn(m.isValidElement(r)?xc(r):null,n);if(gn(()=>{a||u(tV(l)||document.body)},[l,a]),gn(()=>{if(s&&!a)return d1(n,s),()=>{d1(n,null)}},[n,s,a]),a){if(m.isValidElement(r)){const f={ref:d};return m.cloneElement(r,f)}return r}return s&&bx.createPortal(r,s)});function nV(e){return St("MuiPopper",e)}vt("MuiPopper",["root"]);function rV(e,t){if(t==="ltr")return e;switch(e){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 e}}function v1(e){return typeof e=="function"?e():e}function oV(e){return e.nodeType!==void 0}const lV=e=>{const{classes:t}=e;return Be({root:["root"]},nV,t)},iV={},aV=m.forwardRef(function(t,n){const{anchorEl:r,children:l,direction:a,disablePortal:s,modifiers:u,open:d,placement:f,popperOptions:h,popperRef:g,slotProps:b={},slots:y={},TransitionProps:C,ownerState:S,...w}=t,M=m.useRef(null),E=tn(M,n),O=m.useRef(null),P=tn(O,g),R=m.useRef(P);gn(()=>{R.current=P},[P]),m.useImperativeHandle(g,()=>O.current,[]);const A=rV(f,a),[z,k]=m.useState(A),[L,H]=m.useState(v1(r));m.useEffect(()=>{O.current&&O.current.forceUpdate()}),m.useEffect(()=>{r&&H(v1(r))},[r]),gn(()=>{if(!L||!d)return;const F=J=>{k(J.placement)};let _=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:J})=>{F(J)}}];u!=null&&(_=_.concat(u)),h&&h.modifiers!=null&&(_=_.concat(h.modifiers));const B=eV(L,M.current,{placement:A,...h,modifiers:_});return R.current(B),()=>{B.destroy(),R.current(null)}},[L,s,u,d,h,A]);const $={placement:z};C!==null&&($.TransitionProps=C);const I=lV(t),j=y.root??"div",q=wL({elementType:j,externalSlotProps:b.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:E},ownerState:t,className:I.root});return x.jsx(j,{...q,children:typeof l=="function"?l($):l})}),sV=m.forwardRef(function(t,n){const{anchorEl:r,children:l,container:a,direction:s="ltr",disablePortal:u=!1,keepMounted:d=!1,modifiers:f,open:h,placement:g="bottom",popperOptions:b=iV,popperRef:y,style:C,transition:S=!1,slotProps:w={},slots:M={},...E}=t,[O,P]=m.useState(!0),R=()=>{P(!1)},A=()=>{P(!0)};if(!d&&!h&&(!S||O))return null;let z;if(a)z=a;else if(r){const H=v1(r);z=H&&oV(H)?sr(H).body:sr(null).body}const k=!h&&d&&(!S||O)?"none":void 0,L=S?{in:h,onEnter:R,onExited:A}:void 0;return x.jsx(xL,{disablePortal:u,container:z,children:x.jsx(aV,{anchorEl:r,direction:s,disablePortal:u,modifiers:f,ref:n,open:S?!O:h,placement:g,popperOptions:b,popperRef:y,slotProps:w,slots:M,...E,style:{position:"fixed",top:0,left:0,display:k,...C},TransitionProps:L,children:l})})}),cV=ge(sV,{name:"MuiPopper",slot:"Root"})({}),$p=m.forwardRef(function(t,n){const r=Po(),l=xt({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:u,componentsProps:d,container:f,disablePortal:h,keepMounted:g,modifiers:b,open:y,placement:C,popperOptions:S,popperRef:w,transition:M,slots:E,slotProps:O,...P}=l,R=E?.root??u?.Root,A={anchorEl:a,container:f,disablePortal:h,keepMounted:g,modifiers:b,open:y,placement:C,popperOptions:S,popperRef:w,transition:M,...P};return x.jsx(cV,{as:s,direction:r?"rtl":"ltr",slots:{root:R},slotProps:O??d,...A,ref:n})});function uV(e){return St("MuiListSubheader",e)}vt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const dV=e=>{const{classes:t,color:n,disableGutters:r,inset:l,disableSticky:a}=e,s={root:["root",n!=="default"&&`color${we(n)}`,!r&&"gutters",l&&"inset",!a&&"sticky"]};return Be(s,uV,t)},fV=ge("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${we(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(ft(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),y1=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiListSubheader"}),{className:l,color:a="default",component:s="li",disableGutters:u=!1,disableSticky:d=!1,inset:f=!1,...h}=r,g={...r,color:a,component:s,disableGutters:u,disableSticky:d,inset:f},b=dV(g);return x.jsx(fV,{as:s,className:Oe(b.root,l),ref:n,ownerState:g,...h})});y1&&(y1.muiSkipListHighlight=!0);const pV=Bn(x.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function hV(e){return St("MuiChip",e)}const Kt=vt("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),gV=e=>{const{classes:t,disabled:n,size:r,color:l,iconColor:a,onDelete:s,clickable:u,variant:d}=e,f={root:["root",d,n&&"disabled",`size${we(r)}`,`color${we(l)}`,u&&"clickable",u&&`clickableColor${we(l)}`,s&&"deletable",s&&`deletableColor${we(l)}`,`${d}${we(l)}`],label:["label",`label${we(r)}`],avatar:["avatar",`avatar${we(r)}`,`avatarColor${we(l)}`],icon:["icon",`icon${we(r)}`,`iconColor${we(a)}`],deleteIcon:["deleteIcon",`deleteIcon${we(r)}`,`deleteIconColor${we(l)}`,`deleteIcon${we(d)}Color${we(l)}`]};return Be(f,hV,t)},mV=ge("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:l,clickable:a,onDelete:s,size:u,variant:d}=n;return[{[`& .${Kt.avatar}`]:t.avatar},{[`& .${Kt.avatar}`]:t[`avatar${we(u)}`]},{[`& .${Kt.avatar}`]:t[`avatarColor${we(r)}`]},{[`& .${Kt.icon}`]:t.icon},{[`& .${Kt.icon}`]:t[`icon${we(u)}`]},{[`& .${Kt.icon}`]:t[`iconColor${we(l)}`]},{[`& .${Kt.deleteIcon}`]:t.deleteIcon},{[`& .${Kt.deleteIcon}`]:t[`deleteIcon${we(u)}`]},{[`& .${Kt.deleteIcon}`]:t[`deleteIconColor${we(r)}`]},{[`& .${Kt.deleteIcon}`]:t[`deleteIcon${we(d)}Color${we(r)}`]},t.root,t[`size${we(u)}`],t[`color${we(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${we(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${we(r)}`],t[d],t[`${d}${we(r)}`]]}})(ft(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Kt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Kt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Kt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Kt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Kt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Kt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Kt.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Kt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Kt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Zn(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Kt.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Kt.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Kt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Kt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Zn(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Kt.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${Kt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Zn(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Kt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Kt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Kt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Kt.avatar}`]:{marginLeft:4},[`& .${Kt.avatarSmall}`]:{marginLeft:2},[`& .${Kt.icon}`]:{marginLeft:4},[`& .${Kt.iconSmall}`]:{marginLeft:2},[`& .${Kt.deleteIcon}`]:{marginRight:5},[`& .${Kt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Zn()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${Kt.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Kt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Kt.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),bV=ge("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${we(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function jR(e){return e.key==="Backspace"||e.key==="Delete"}const zm=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiChip"}),{avatar:l,className:a,clickable:s,color:u="default",component:d,deleteIcon:f,disabled:h=!1,icon:g,label:b,onClick:y,onDelete:C,onKeyDown:S,onKeyUp:w,size:M="medium",variant:E="filled",tabIndex:O,skipFocusWhenDisabled:P=!1,slots:R={},slotProps:A={},...z}=r,k=m.useRef(null),L=tn(k,n),H=oe=>{oe.stopPropagation(),C&&C(oe)},$=oe=>{oe.currentTarget===oe.target&&jR(oe)&&oe.preventDefault(),S&&S(oe)},I=oe=>{oe.currentTarget===oe.target&&C&&jR(oe)&&C(oe),w&&w(oe)},j=s!==!1&&y?!0:s,q=j||C?Vu:d||"div",F={...r,component:q,disabled:h,size:M,color:u,iconColor:m.isValidElement(g)&&g.props.color||u,onDelete:!!C,clickable:j,variant:E},_=gV(F),B=q===Vu?{component:d||"div",focusVisibleClassName:_.focusVisible,...C&&{disableRipple:!0}}:{};let J=null;C&&(J=f&&m.isValidElement(f)?m.cloneElement(f,{className:Oe(f.props.className,_.deleteIcon),onClick:H}):x.jsx(pV,{className:_.deleteIcon,onClick:H}));let Q=null;l&&m.isValidElement(l)&&(Q=m.cloneElement(l,{className:Oe(_.avatar,l.props.className)}));let D=null;g&&m.isValidElement(g)&&(D=m.cloneElement(g,{className:Oe(_.icon,g.props.className)}));const G={slots:R,slotProps:A},[W,Z]=Rt("root",{elementType:mV,externalForwardedProps:{...G,...z},ownerState:F,shouldForwardComponentProp:!0,ref:L,className:Oe(_.root,a),additionalProps:{disabled:j&&h?!0:void 0,tabIndex:P&&h?-1:O,...B},getSlotProps:oe=>({...oe,onClick:se=>{oe.onClick?.(se),y?.(se)},onKeyDown:se=>{oe.onKeyDown?.(se),$?.(se)},onKeyUp:se=>{oe.onKeyUp?.(se),I?.(se)}})}),[te,ne]=Rt("label",{elementType:bV,externalForwardedProps:G,ownerState:F,className:_.label});return x.jsxs(W,{as:q,...Z,children:[Q||D,x.jsx(te,{...ne,children:b}),J]})});function hg(e){return parseInt(e,10)||0}const vV={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function yV(e){for(const t in e)return!1;return!0}function BR(e){return yV(e)||e.outerHeightStyle===0&&!e.overflowing}const CV=m.forwardRef(function(t,n){const{onChange:r,maxRows:l,minRows:a=1,style:s,value:u,...d}=t,{current:f}=m.useRef(u!=null),h=m.useRef(null),g=tn(n,h),b=m.useRef(null),y=m.useRef(null),C=m.useCallback(()=>{const O=h.current,P=y.current;if(!O||!P)return;const A=Sa(O).getComputedStyle(O);if(A.width==="0px")return{outerHeightStyle:0,overflowing:!1};P.style.width=A.width,P.value=O.value||t.placeholder||"x",P.value.slice(-1)===`
`&&(P.value+=" ");const z=A.boxSizing,k=hg(A.paddingBottom)+hg(A.paddingTop),L=hg(A.borderBottomWidth)+hg(A.borderTopWidth),H=P.scrollHeight;P.value="x";const $=P.scrollHeight;let I=H;a&&(I=Math.max(Number(a)*$,I)),l&&(I=Math.min(Number(l)*$,I)),I=Math.max(I,$);const j=I+(z==="border-box"?k+L:0),q=Math.abs(I-H)<=1;return{outerHeightStyle:j,overflowing:q}},[l,a,t.placeholder]),S=wt(()=>{const O=h.current,P=C();if(!O||!P||BR(P))return!1;const R=P.outerHeightStyle;return b.current!=null&&b.current!==R}),w=m.useCallback(()=>{const O=h.current,P=C();if(!O||!P||BR(P))return;const R=P.outerHeightStyle;b.current!==R&&(b.current=R,O.style.height=`${R}px`),O.style.overflow=P.overflowing?"hidden":""},[C]),M=m.useRef(-1);gn(()=>{const O=_p(w),P=h?.current;if(!P)return;const R=Sa(P);R.addEventListener("resize",O);let A;return typeof ResizeObserver<"u"&&(A=new ResizeObserver(()=>{S()&&(A.unobserve(P),cancelAnimationFrame(M.current),w(),M.current=requestAnimationFrame(()=>{A.observe(P)}))}),A.observe(P)),()=>{O.clear(),cancelAnimationFrame(M.current),R.removeEventListener("resize",O),A&&A.disconnect()}},[C,w,S]),gn(()=>{w()});const E=O=>{f||w();const P=O.target,R=P.value.length,A=P.value.endsWith(`
`),z=P.selectionStart===R;A&&z&&P.setSelectionRange(R,R),r&&r(O)};return x.jsxs(m.Fragment,{children:[x.jsx("textarea",{value:u,onChange:E,ref:g,rows:a,style:s,...d}),x.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...vV.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function C1(e){return typeof e=="string"}function Ts({props:e,states:t,muiFormControl:n}){return t.reduce((r,l)=>(r[l]=e[l],n&&typeof e[l]>"u"&&(r[l]=n[l]),r),{})}const Fm=m.createContext(void 0);function fi(){return m.useContext(Fm)}function GR(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function nm(e,t=!1){return e&&(GR(e.value)&&e.value!==""||t&&GR(e.defaultValue)&&e.defaultValue!=="")}function SV(e){return e.startAdornment}function wV(e){return St("MuiInputBase",e)}const so=vt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var VR;const Hm=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${we(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Nm=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},xV=e=>{const{classes:t,color:n,disabled:r,error:l,endAdornment:a,focused:s,formControl:u,fullWidth:d,hiddenLabel:f,multiline:h,readOnly:g,size:b,startAdornment:y,type:C}=e,S={root:["root",`color${we(n)}`,r&&"disabled",l&&"error",d&&"fullWidth",s&&"focused",u&&"formControl",b&&b!=="medium"&&`size${we(b)}`,h&&"multiline",y&&"adornedStart",a&&"adornedEnd",f&&"hiddenLabel",g&&"readOnly"],input:["input",r&&"disabled",C==="search"&&"inputTypeSearch",h&&"inputMultiline",b==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",y&&"inputAdornedStart",a&&"inputAdornedEnd",g&&"readOnly"]};return Be(S,wV,t)},jm=ge("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Hm})(ft(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${so.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Bm=ge("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Nm})(ft(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},l=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${so.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":l,"&:focus::-moz-placeholder":l,"&:focus::-ms-input-placeholder":l},[`&.${so.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),UR=mx({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),cd=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiInputBase"}),{"aria-describedby":l,autoComplete:a,autoFocus:s,className:u,color:d,components:f={},componentsProps:h={},defaultValue:g,disabled:b,disableInjectingGlobalStyles:y,endAdornment:C,error:S,fullWidth:w=!1,id:M,inputComponent:E="input",inputProps:O={},inputRef:P,margin:R,maxRows:A,minRows:z,multiline:k=!1,name:L,onBlur:H,onChange:$,onClick:I,onFocus:j,onKeyDown:q,onKeyUp:F,placeholder:_,readOnly:B,renderSuffix:J,rows:Q,size:D,slotProps:G={},slots:W={},startAdornment:Z,type:te="text",value:ne,...oe}=r,se=O.value!=null?O.value:ne,{current:Se}=m.useRef(se!=null),be=m.useRef(),de=m.useCallback(Fe=>{},[]),ke=tn(be,P,O.ref,de),[Ae,Ne]=m.useState(!1),$e=fi(),Ve=Ts({props:r,muiFormControl:$e,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ve.focused=$e?$e.focused:Ae,m.useEffect(()=>{!$e&&b&&Ae&&(Ne(!1),H&&H())},[$e,b,Ae,H]);const nt=$e&&$e.onFilled,lt=$e&&$e.onEmpty,me=m.useCallback(Fe=>{nm(Fe)?nt&&nt():lt&&lt()},[nt,lt]);gn(()=>{Se&&me({value:se})},[se,me,Se]);const tt=Fe=>{j&&j(Fe),O.onFocus&&O.onFocus(Fe),$e&&$e.onFocus?$e.onFocus(Fe):Ne(!0)},ze=Fe=>{H&&H(Fe),O.onBlur&&O.onBlur(Fe),$e&&$e.onBlur?$e.onBlur(Fe):Ne(!1)},et=(Fe,...Qe)=>{if(!Se){const st=Fe.target||be.current;if(st==null)throw new Error(va(1));me({value:st.value})}O.onChange&&O.onChange(Fe,...Qe),$&&$(Fe,...Qe)};m.useEffect(()=>{me(be.current)},[]);const He=Fe=>{be.current&&Fe.currentTarget===Fe.target&&be.current.focus(),I&&I(Fe)};let yt=E,Le=O;k&&yt==="input"&&(Q?Le={type:void 0,minRows:Q,maxRows:Q,...Le}:Le={type:void 0,maxRows:A,minRows:z,...Le},yt=CV);const Pe=Fe=>{me(Fe.animationName==="mui-auto-fill-cancel"?be.current:{value:"x"})};m.useEffect(()=>{$e&&$e.setAdornedStart(!!Z)},[$e,Z]);const Ke={...r,color:Ve.color||"primary",disabled:Ve.disabled,endAdornment:C,error:Ve.error,focused:Ve.focused,formControl:$e,fullWidth:w,hiddenLabel:Ve.hiddenLabel,multiline:k,size:Ve.size,startAdornment:Z,type:te},Xe=xV(Ke),mt=W.root||f.Root||jm,_e=G.root||h.root||{},Je=W.input||f.Input||Bm;return Le={...Le,...G.input??h.input},x.jsxs(m.Fragment,{children:[!y&&typeof UR=="function"&&(VR||(VR=x.jsx(UR,{}))),x.jsxs(mt,{..._e,ref:n,onClick:He,...oe,...!C1(mt)&&{ownerState:{...Ke,..._e.ownerState}},className:Oe(Xe.root,_e.className,u,B&&"MuiInputBase-readOnly"),children:[Z,x.jsx(Fm.Provider,{value:null,children:x.jsx(Je,{"aria-invalid":Ve.error,"aria-describedby":l,autoComplete:a,autoFocus:s,defaultValue:g,disabled:Ve.disabled,id:M,onAnimationStart:Pe,name:L,placeholder:_,readOnly:B,required:Ve.required,rows:Q,value:se,onKeyDown:q,onKeyUp:F,type:te,...Le,...!C1(Je)&&{as:yt,ownerState:{...Ke,...Le.ownerState}},ref:ke,className:Oe(Xe.input,Le.className,B&&"MuiInputBase-readOnly"),onBlur:ze,onChange:et,onFocus:tt})}),C,J?J({...Ve,startAdornment:Z}):null]})]})});function MV(e){return St("MuiInput",e)}const cs={...so,...vt("MuiInput",["root","underline","input"])};function TV(e){return St("MuiOutlinedInput",e)}const xl={...so,...vt("MuiOutlinedInput",["root","notchedOutline","input"])};function EV(e){return St("MuiFilledInput",e)}const Jo={...so,...vt("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},ML=Bn(x.jsx("path",{d:"M7 10l5 5 5-5z"}));function PV(e){return St("MuiAutocomplete",e)}const Ht=vt("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var qR,WR;const RV=e=>{const{classes:t,disablePortal:n,expanded:r,focused:l,fullWidth:a,hasClearIcon:s,hasPopupIcon:u,inputFocused:d,popupOpen:f,size:h}=e,g={root:["root",r&&"expanded",l&&"focused",a&&"fullWidth",s&&"hasClearIcon",u&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",d&&"inputFocused"],tag:["tag",`tagSize${we(h)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",f&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Be(g,PV,t)},AV=ge("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:l,hasPopupIcon:a,inputFocused:s,size:u}=n;return[{[`& .${Ht.tag}`]:t.tag},{[`& .${Ht.tag}`]:t[`tagSize${we(u)}`]},{[`& .${Ht.inputRoot}`]:t.inputRoot},{[`& .${Ht.input}`]:t.input},{[`& .${Ht.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,l&&t.hasClearIcon]}})({[`&.${Ht.focused} .${Ht.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Ht.clearIndicator}`]:{visibility:"visible"}},[`& .${Ht.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Ht.inputRoot}`]:{[`.${Ht.hasPopupIcon}&, .${Ht.hasClearIcon}&`]:{paddingRight:30},[`.${Ht.hasPopupIcon}.${Ht.hasClearIcon}&`]:{paddingRight:56},[`& .${Ht.input}`]:{width:0,minWidth:30}},[`& .${cs.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${cs.root}.${so.sizeSmall}`]:{[`& .${cs.input}`]:{padding:"2px 4px 3px 0"}},[`& .${xl.root}`]:{padding:9,[`.${Ht.hasPopupIcon}&, .${Ht.hasClearIcon}&`]:{paddingRight:39},[`.${Ht.hasPopupIcon}.${Ht.hasClearIcon}&`]:{paddingRight:65},[`& .${Ht.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Ht.endAdornment}`]:{right:9}},[`& .${xl.root}.${so.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Ht.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Jo.root}`]:{paddingTop:19,paddingLeft:8,[`.${Ht.hasPopupIcon}&, .${Ht.hasClearIcon}&`]:{paddingRight:39},[`.${Ht.hasPopupIcon}.${Ht.hasClearIcon}&`]:{paddingRight:65},[`& .${Jo.input}`]:{padding:"7px 4px"},[`& .${Ht.endAdornment}`]:{right:9}},[`& .${Jo.root}.${so.sizeSmall}`]:{paddingBottom:1,[`& .${Jo.input}`]:{padding:"2.5px 4px"}},[`& .${so.hiddenLabel}`]:{paddingTop:8},[`& .${Jo.root}.${so.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Ht.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Jo.root}.${so.hiddenLabel}.${so.sizeSmall}`]:{[`& .${Ht.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Ht.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Ht.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Ht.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Ht.inputRoot}`]:{flexWrap:"wrap"}}}]}),OV=ge("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),IV=ge(rl,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),kV=ge(rl,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),_V=ge($p,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ht.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(ft(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),DV=ge(xs,{name:"MuiAutocomplete",slot:"Paper"})(ft(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),LV=ge("div",{name:"MuiAutocomplete",slot:"Loading"})(ft(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),$V=ge("div",{name:"MuiAutocomplete",slot:"NoOptions"})(ft(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),zV=ge("ul",{name:"MuiAutocomplete",slot:"Listbox"})(ft(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Ht.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Ht.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Ht.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ht.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ht.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),FV=ge(y1,{name:"MuiAutocomplete",slot:"GroupLabel"})(ft(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),HV=ge("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Ht.option}`]:{paddingLeft:24}}),TL=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:a=!1,autoSelect:s=!1,blurOnSelect:u=!1,ChipProps:d,className:f,clearIcon:h=qR||(qR=x.jsx(F4,{fontSize:"small"})),clearOnBlur:g=!r.freeSolo,clearOnEscape:b=!1,clearText:y="Clear",closeText:C="Close",componentsProps:S,defaultValue:w=r.multiple?[]:null,disableClearable:M=!1,disableCloseOnSelect:E=!1,disabled:O=!1,disabledItemsFocusable:P=!1,disableListWrap:R=!1,disablePortal:A=!1,filterOptions:z,filterSelectedOptions:k=!1,forcePopupIcon:L="auto",freeSolo:H=!1,fullWidth:$=!1,getLimitTagsText:I=jt=>`+${jt}`,getOptionDisabled:j,getOptionKey:q,getOptionLabel:F,isOptionEqualToValue:_,groupBy:B,handleHomeEndKeys:J=!r.freeSolo,id:Q,includeInputInList:D=!1,inputValue:G,limitTags:W=-1,ListboxComponent:Z,ListboxProps:te,loading:ne=!1,loadingText:oe="Loading…",multiple:se=!1,noOptionsText:Se="No options",onChange:be,onClose:de,onHighlightChange:ke,onInputChange:Ae,onOpen:Ne,open:$e,openOnFocus:Ve=!1,openText:nt="Open",options:lt,PaperComponent:me,PopperComponent:tt,popupIcon:ze=WR||(WR=x.jsx(ML,{})),readOnly:et=!1,renderGroup:He,renderInput:yt,renderOption:Le,renderTags:Pe,renderValue:Ke,selectOnFocus:Xe=!r.freeSolo,size:mt="medium",slots:_e={},slotProps:Je={},value:Fe,...Qe}=r,{getRootProps:st,getInputProps:pt,getInputLabelProps:Ze,getPopupIndicatorProps:Tt,getClearProps:_t,getItemProps:cn,getListboxProps:qn,getOptionProps:cr,value:on,dirty:Wn,expanded:Gr,id:Cr,popupOpen:Vr,focused:Ur,focusedItem:Et,anchorEl:Kn,setAnchorEl:to,inputValue:yn,groupedOptions:Jt}=K4({...r,componentName:"Autocomplete"}),Pn=!M&&!O&&Wn&&!et,Or=(!H||L===!0)&&L!==!1,{onMouseDown:Sr}=pt(),{ref:cl,...ul}=qn(),Ro=F||(jt=>jt.label??jt),Yn={...r,disablePortal:A,expanded:Gr,focused:Ur,fullWidth:$,getOptionLabel:Ro,hasClearIcon:Pn,hasPopupIcon:Or,inputFocused:Et===-1,popupOpen:Vr,size:mt},$n=RV(Yn),ir={slots:{paper:me,popper:tt,..._e},slotProps:{chip:d,listbox:te,...S,...Je}},[jl,qr]=Rt("listbox",{elementType:zV,externalForwardedProps:ir,ownerState:Yn,className:$n.listbox,additionalProps:ul,ref:cl}),[Vn,xe]=Rt("paper",{elementType:xs,externalForwardedProps:ir,ownerState:Yn,className:$n.paper}),[Ce,Ue]=Rt("popper",{elementType:$p,externalForwardedProps:ir,ownerState:Yn,className:$n.popper,additionalProps:{disablePortal:A,style:{width:Kn?Kn.clientWidth:null},role:"presentation",anchorEl:Kn,open:Vr}});let it;const At=jt=>({className:$n.tag,disabled:O,...cn(jt)});if(se?on.length>0&&(Pe?it=Pe(on,At,Yn):Ke?it=Ke(on,At,Yn):it=on.map((jt,kr)=>{const{key:uo,...Bo}=At({index:kr});return x.jsx(zm,{label:Ro(jt),size:mt,...Bo,...ir.slotProps.chip},uo)})):Ke&&on!=null&&(it=Ke(on,At,Yn)),W>-1&&Array.isArray(it)){const jt=it.length-W;!Ur&&jt>0&&(it=it.splice(0,W),it.push(x.jsx("span",{className:$n.tag,children:I(jt)},it.length)))}const mn=He||(jt=>x.jsxs("li",{children:[x.jsx(FV,{className:$n.groupLabel,ownerState:Yn,component:"div",children:jt.group}),x.jsx(HV,{className:$n.groupUl,ownerState:Yn,children:jt.children})]},jt.key)),jo=Le||((jt,kr)=>{const{key:uo,...Bo}=jt;return x.jsx("li",{...Bo,children:Ro(kr)},uo)}),dl=(jt,kr)=>{const uo=cr({option:jt,index:kr});return jo({...uo,className:$n.option},jt,{selected:uo["aria-selected"],index:kr,inputValue:yn},Yn)},Ir=ir.slotProps.clearIndicator,gi=ir.slotProps.popupIndicator;return x.jsxs(m.Fragment,{children:[x.jsx(AV,{ref:n,className:Oe($n.root,f),ownerState:Yn,...st(Qe),children:yt({id:Cr,disabled:O,fullWidth:!0,size:mt==="small"?"small":void 0,InputLabelProps:Ze(),InputProps:{ref:to,className:$n.inputRoot,startAdornment:it,onMouseDown:jt=>{jt.target===jt.currentTarget&&Sr(jt)},...(Pn||Or)&&{endAdornment:x.jsxs(OV,{className:$n.endAdornment,ownerState:Yn,children:[Pn?x.jsx(IV,{..._t(),"aria-label":y,title:y,ownerState:Yn,...Ir,className:Oe($n.clearIndicator,Ir?.className),children:h}):null,Or?x.jsx(kV,{...Tt(),disabled:O,"aria-label":Vr?C:nt,title:Vr?C:nt,ownerState:Yn,...gi,className:Oe($n.popupIndicator,gi?.className),children:ze}):null]})}},inputProps:{className:$n.input,disabled:O,readOnly:et,...pt()}})}),Kn?x.jsx(_V,{as:Ce,...Ue,children:x.jsxs(DV,{as:Vn,...xe,children:[ne&&Jt.length===0?x.jsx(LV,{className:$n.loading,ownerState:Yn,children:oe}):null,Jt.length===0&&!H&&!ne?x.jsx($V,{className:$n.noOptions,ownerState:Yn,role:"presentation",onMouseDown:jt=>{jt.preventDefault()},children:Se}):null,Jt.length>0?x.jsx(jl,{as:Z,...qr,children:Jt.map((jt,kr)=>B?mn({key:jt.key,group:jt.group,children:jt.options.map((uo,Bo)=>dl(uo,jt.index+Bo))}):dl(jt,kr))}):null]})}):null]})}),NV=Bn(x.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));function jV(e){return St("MuiAvatar",e)}vt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const BV=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Be({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},jV,t)},GV=ge("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(ft(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),VV=ge("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),UV=ge(NV,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function qV({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[l,a]=m.useState(!1);return m.useEffect(()=>{if(!n&&!r)return;a(!1);let s=!0;const u=new Image;return u.onload=()=>{s&&a("loaded")},u.onerror=()=>{s&&a("error")},u.crossOrigin=e,u.referrerPolicy=t,u.src=n,r&&(u.srcset=r),()=>{s=!1}},[e,t,n,r]),l}const EL=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiAvatar"}),{alt:l,children:a,className:s,component:u="div",slots:d={},slotProps:f={},imgProps:h,sizes:g,src:b,srcSet:y,variant:C="circular",...S}=r;let w=null;const M={...r,component:u,variant:C},E=qV({...h,...typeof f.img=="function"?f.img(M):f.img,src:b,srcSet:y}),O=b||y,P=O&&E!=="error";M.colorDefault=!P,delete M.ownerState;const R=BV(M),[A,z]=Rt("root",{ref:n,className:Oe(R.root,s),elementType:GV,externalForwardedProps:{slots:d,slotProps:f,component:u,...S},ownerState:M}),[k,L]=Rt("img",{className:R.img,elementType:VV,externalForwardedProps:{slots:d,slotProps:{img:{...h,...f.img}}},additionalProps:{alt:l,src:b,srcSet:y,sizes:g},ownerState:M}),[H,$]=Rt("fallback",{className:R.fallback,elementType:UV,externalForwardedProps:{slots:d,slotProps:f},shouldForwardComponentProp:!0,ownerState:M});return P?w=x.jsx(k,{...L}):a||a===0?w=a:O&&l?w=l[0]:w=x.jsx(H,{...$}),x.jsx(A,{...z,children:w})}),WV={entering:{opacity:1},entered:{opacity:1}},KV=m.forwardRef(function(t,n){const r=ws(),l={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:u,easing:d,in:f,onEnter:h,onEntered:g,onEntering:b,onExit:y,onExited:C,onExiting:S,style:w,timeout:M=l,TransitionComponent:E=Ni,...O}=t,P=m.useRef(null),R=tn(P,xc(u),n),A=q=>F=>{if(q){const _=P.current;F===void 0?q(_):q(_,F)}},z=A(b),k=A((q,F)=>{aL(q);const _=Zg({style:w,timeout:M,easing:d},{mode:"enter"});q.style.webkitTransition=r.transitions.create("opacity",_),q.style.transition=r.transitions.create("opacity",_),h&&h(q,F)}),L=A(g),H=A(S),$=A(q=>{const F=Zg({style:w,timeout:M,easing:d},{mode:"exit"});q.style.webkitTransition=r.transitions.create("opacity",F),q.style.transition=r.transitions.create("opacity",F),y&&y(q)}),I=A(C),j=q=>{a&&a(P.current,q)};return x.jsx(E,{appear:s,in:f,nodeRef:P,onEnter:k,onEntered:L,onEntering:z,onExit:$,onExited:I,onExiting:H,addEndListener:j,timeout:M,...O,children:(q,{ownerState:F,..._})=>m.cloneElement(u,{style:{opacity:0,visibility:q==="exited"&&!f?"hidden":void 0,...WV[q],...w,...u.props.style},ref:R,..._})})});function YV(e){return St("MuiBackdrop",e)}vt("MuiBackdrop",["root","invisible"]);const XV=e=>{const{classes:t,invisible:n}=e;return Be({root:["root",n&&"invisible"]},YV,t)},QV=ge("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),ZV=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiBackdrop"}),{children:l,className:a,component:s="div",invisible:u=!1,open:d,components:f={},componentsProps:h={},slotProps:g={},slots:b={},TransitionComponent:y,transitionDuration:C,...S}=r,w={...r,component:s,invisible:u},M=XV(w),E={transition:y,root:f.Root,...b},O={...h,...g},P={component:s,slots:E,slotProps:O},[R,A]=Rt("root",{elementType:QV,externalForwardedProps:P,className:Oe(M.root,a),ownerState:w}),[z,k]=Rt("transition",{elementType:KV,externalForwardedProps:P,ownerState:w});return x.jsx(z,{in:d,timeout:C,...S,...k,children:x.jsx(R,{"aria-hidden":!0,...A,classes:M,ref:n,children:l})})});function JV(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:l=!1}=e,a=Cx({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!l&&(s=!0);const{badgeContent:u,max:d=r}=s?a:e,f=u&&Number(u)>d?`${d}+`:u;return{badgeContent:u,invisible:s,max:d,displayValue:f}}function e6(e){return St("MuiBadge",e)}const ns=vt("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),_y=10,Dy=4,t6=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:l,variant:a,classes:s={}}=e,u={root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${we(n.vertical)}${we(n.horizontal)}`,`anchorOrigin${we(n.vertical)}${we(n.horizontal)}${we(l)}`,`overlap${we(l)}`,t!=="default"&&`color${we(t)}`]};return Be(u,e6,s)},n6=ge("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),r6=ge("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${we(n.anchorOrigin.vertical)}${we(n.anchorOrigin.horizontal)}${we(n.overlap)}`],n.color!=="default"&&t[`color${we(n.color)}`],n.invisible&&t.invisible]}})(ft(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:_y*2,lineHeight:1,padding:"0 6px",height:_y*2,borderRadius:_y,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Zn(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Dy,height:Dy*2,minWidth:Dy*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ns.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ns.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ns.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ns.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ns.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ns.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ns.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ns.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function KR(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const o6=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiBadge"}),{anchorOrigin:l,className:a,classes:s,component:u,components:d={},componentsProps:f={},children:h,overlap:g="rectangular",color:b="default",invisible:y=!1,max:C=99,badgeContent:S,slots:w,slotProps:M,showZero:E=!1,variant:O="standard",...P}=r,{badgeContent:R,invisible:A,max:z,displayValue:k}=JV({max:C,invisible:y,badgeContent:S,showZero:E}),L=Cx({anchorOrigin:KR(l),color:b,overlap:g,variant:O,badgeContent:S}),H=A||R==null&&O!=="dot",{color:$=b,overlap:I=g,anchorOrigin:j,variant:q=O}=H?L:r,F=KR(j),_=q!=="dot"?k:void 0,B={...r,badgeContent:R,invisible:H,max:z,displayValue:_,showZero:E,anchorOrigin:F,color:$,overlap:I,variant:q},J=t6(B),Q={slots:{root:w?.root??d.Root,badge:w?.badge??d.Badge},slotProps:{root:M?.root??f.root,badge:M?.badge??f.badge}},[D,G]=Rt("root",{elementType:n6,externalForwardedProps:{...Q,...P},ownerState:B,className:Oe(J.root,a),ref:n,additionalProps:{as:u}}),[W,Z]=Rt("badge",{elementType:r6,externalForwardedProps:Q,ownerState:B,className:J.badge});return x.jsxs(D,{...G,children:[h,x.jsx(W,{...Z,children:_})]})}),l6=vt("MuiBox",["root"]),i6=_m(),us=OB({themeId:si,defaultTheme:i6,defaultClassName:l6.root,generateClassName:$D.generate});function a6(e){return St("MuiButton",e)}const Xs=vt("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"]),s6=m.createContext({}),c6=m.createContext(void 0),u6=e=>{const{color:t,disableElevation:n,fullWidth:r,size:l,variant:a,loading:s,loadingPosition:u,classes:d}=e,f={root:["root",s&&"loading",a,`${a}${we(t)}`,`size${we(l)}`,`${a}Size${we(l)}`,`color${we(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${we(u)}`],startIcon:["icon","startIcon",`iconSize${we(l)}`],endIcon:["icon","endIcon",`iconSize${we(l)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},h=Be(f,a6,d);return{...d,...h}},PL=[{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}}}],d6=ge(Vu,{shouldForwardProp:e=>Co(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${we(n.color)}`],t[`size${we(n.size)}`],t[`${n.variant}Size${we(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(ft(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Xs.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Xs.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Xs.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).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)",[`&.${Xs.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Zn()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Xs.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Xs.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Xs.loading}`]:{color:"transparent"}}}]}})),f6=ge("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${we(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...PL]})),p6=ge("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${we(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...PL]})),h6=ge("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({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:(e.vars||e).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}}]})),YR=ge("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),uc=m.forwardRef(function(t,n){const r=m.useContext(s6),l=m.useContext(c6),a=Bu(r,t),s=xt({props:a,name:"MuiButton"}),{children:u,color:d="primary",component:f="button",className:h,disabled:g=!1,disableElevation:b=!1,disableFocusRipple:y=!1,endIcon:C,focusVisibleClassName:S,fullWidth:w=!1,id:M,loading:E=null,loadingIndicator:O,loadingPosition:P="center",size:R="medium",startIcon:A,type:z,variant:k="text",...L}=s,H=Nt(M),$=O??x.jsx(Mc,{"aria-labelledby":H,color:"inherit",size:16}),I={...s,color:d,component:f,disabled:g,disableElevation:b,disableFocusRipple:y,fullWidth:w,loading:E,loadingIndicator:$,loadingPosition:P,size:R,type:z,variant:k},j=u6(I),q=(A||E&&P==="start")&&x.jsx(f6,{className:j.startIcon,ownerState:I,children:A||x.jsx(YR,{className:j.loadingIconPlaceholder,ownerState:I})}),F=(C||E&&P==="end")&&x.jsx(p6,{className:j.endIcon,ownerState:I,children:C||x.jsx(YR,{className:j.loadingIconPlaceholder,ownerState:I})}),_=l||"",B=typeof E=="boolean"?x.jsx("span",{className:j.loadingWrapper,style:{display:"contents"},children:E&&x.jsx(h6,{className:j.loadingIndicator,ownerState:I,children:$})}):null;return x.jsxs(d6,{ownerState:I,className:Oe(r.className,j.root,h,_),component:f,disabled:g||E,focusRipple:!y,focusVisibleClassName:Oe(j.focusVisible,S),ref:n,type:z,id:E?H:M,...L,classes:j,children:[q,P!=="end"&&B,u,P==="end"&&B,F]})});function g6(e){return St("MuiCard",e)}vt("MuiCard",["root"]);const m6=e=>{const{classes:t}=e;return Be({root:["root"]},g6,t)},b6=ge(xs,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),XR=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiCard"}),{className:l,raised:a=!1,...s}=r,u={...r,raised:a},d=m6(u);return x.jsx(b6,{className:Oe(d.root,l),elevation:a?8:void 0,ref:n,ownerState:u,...s})});function v6(e){return St("MuiCardContent",e)}vt("MuiCardContent",["root"]);const y6=e=>{const{classes:t}=e;return Be({root:["root"]},v6,t)},C6=ge("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),QR=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiCardContent"}),{className:l,component:a="div",...s}=r,u={...r,component:a},d=y6(u);return x.jsx(C6,{as:a,className:Oe(d.root,l),ownerState:u,ref:n,...s})});function S6(e){return St("MuiCardMedia",e)}vt("MuiCardMedia",["root","media","img"]);const w6=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return Be({root:["root",n&&"media",r&&"img"]},S6,t)},x6=ge("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:l}=n;return[t.root,r&&t.media,l&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),M6=["video","audio","picture","iframe","img"],T6=["picture","img"],E6=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiCardMedia"}),{children:l,className:a,component:s="div",image:u,src:d,style:f,...h}=r,g=M6.includes(s),b=!g&&u?{backgroundImage:`url("${u}")`,...f}:f,y={...r,component:s,isMediaComponent:g,isImageComponent:T6.includes(s)},C=w6(y);return x.jsx(x6,{className:Oe(C.root,a),as:s,role:!g&&u?"img":void 0,ref:n,style:b,ownerState:y,src:g?u||d:void 0,...h,children:l})});function P6(e){return St("PrivateSwitchBase",e)}vt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const R6=e=>{const{classes:t,checked:n,disabled:r,edge:l}=e,a={root:["root",n&&"checked",r&&"disabled",l&&`edge${we(l)}`],input:["input"]};return Be(a,P6,t)},A6=ge(Vu,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),O6=ge("input",{name:"MuiSwitchBase",shouldForwardProp:Co})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Rx=m.forwardRef(function(t,n){const{autoFocus:r,checked:l,checkedIcon:a,defaultChecked:s,disabled:u,disableFocusRipple:d=!1,edge:f=!1,icon:h,id:g,inputProps:b,inputRef:y,name:C,onBlur:S,onChange:w,onFocus:M,readOnly:E,required:O=!1,tabIndex:P,type:R,value:A,slots:z={},slotProps:k={},...L}=t,[H,$]=ms({controlled:l,default:!!s,name:"SwitchBase",state:"checked"}),I=fi(),j=ne=>{M&&M(ne),I&&I.onFocus&&I.onFocus(ne)},q=ne=>{S&&S(ne),I&&I.onBlur&&I.onBlur(ne)},F=ne=>{if(ne.nativeEvent.defaultPrevented)return;const oe=ne.target.checked;$(oe),w&&w(ne,oe)};let _=u;I&&typeof _>"u"&&(_=I.disabled);const B=R==="checkbox"||R==="radio",J={...t,checked:H,disabled:_,disableFocusRipple:d,edge:f},Q=R6(J),D={slots:z,slotProps:{input:b,...k}},[G,W]=Rt("root",{ref:n,elementType:A6,className:Q.root,shouldForwardComponentProp:!0,externalForwardedProps:{...D,component:"span",...L},getSlotProps:ne=>({...ne,onFocus:oe=>{ne.onFocus?.(oe),j(oe)},onBlur:oe=>{ne.onBlur?.(oe),q(oe)}}),ownerState:J,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:_,role:void 0,tabIndex:null}}),[Z,te]=Rt("input",{ref:y,elementType:O6,className:Q.input,externalForwardedProps:D,getSlotProps:ne=>({...ne,onChange:oe=>{ne.onChange?.(oe),F(oe)}}),ownerState:J,additionalProps:{autoFocus:r,checked:l,defaultChecked:s,disabled:_,id:B?g:void 0,name:C,readOnly:E,required:O,tabIndex:P,type:R,...R==="checkbox"&&A===void 0?{}:{value:A}}});return x.jsxs(G,{...W,children:[x.jsx(Z,{...te}),H?a:h]})}),I6=Bn(x.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),k6=Bn(x.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),_6=Bn(x.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function D6(e){return St("MuiCheckbox",e)}const Ly=vt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),L6=e=>{const{classes:t,indeterminate:n,color:r,size:l}=e,a={root:["root",n&&"indeterminate",`color${we(r)}`,`size${we(l)}`]},s=Be(a,D6,t);return{...t,...s}},$6=ge(Rx,{shouldForwardProp:e=>Co(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${we(n.size)}`],n.color!=="default"&&t[`color${we(n.color)}`]]}})(ft(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Zn()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Zn()).map(([t])=>({props:{color:t},style:{[`&.${Ly.checked}, &.${Ly.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Ly.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),z6=x.jsx(k6,{}),F6=x.jsx(I6,{}),H6=x.jsx(_6,{}),Ax=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiCheckbox"}),{checkedIcon:l=z6,color:a="primary",icon:s=F6,indeterminate:u=!1,indeterminateIcon:d=H6,inputProps:f,size:h="medium",disableRipple:g=!1,className:b,slots:y={},slotProps:C={},...S}=r,w=u?d:s,M=u?d:l,E={...r,disableRipple:g,color:a,indeterminate:u,size:h},O=L6(E),P=C.input??f,[R,A]=Rt("root",{ref:n,elementType:$6,className:Oe(O.root,b),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:C,...S},ownerState:E,additionalProps:{type:"checkbox",icon:m.cloneElement(w,{fontSize:w.props.fontSize??h}),checkedIcon:m.cloneElement(M,{fontSize:M.props.fontSize??h}),disableRipple:g,slots:y,slotProps:{input:dL(typeof P=="function"?P(E):P,{"data-indeterminate":u})}}});return x.jsx(R,{...A,classes:O})});function RL(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function N6(e){const t=sr(e);return t.body===e?Sa(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Jf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ZR(e){return parseInt(Sa(e).getComputedStyle(e).paddingRight,10)||0}function j6(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function JR(e,t,n,r,l){const a=[t,n,...r];[].forEach.call(e.children,s=>{const u=!a.includes(s),d=!j6(s);u&&d&&Jf(s,l)})}function $y(e,t){let n=-1;return e.some((r,l)=>t(r)?(n=l,!0):!1),n}function B6(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(N6(r)){const s=RL(Sa(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ZR(r)+s}px`;const u=sr(r).querySelectorAll(".mui-fixed");[].forEach.call(u,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${ZR(d)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=sr(r).body;else{const s=r.parentElement,u=Sa(r);a=s?.nodeName==="HTML"&&u.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:u})=>{a?s.style.setProperty(u,a):s.style.removeProperty(u)})}}function G6(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class V6{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Jf(t.modalRef,!1);const l=G6(n);JR(n,t.mount,t.modalRef,l,!0);const a=$y(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:l}),r)}mount(t,n){const r=$y(this.containers,a=>a.modals.includes(t)),l=this.containers[r];l.restore||(l.restore=B6(l,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const l=$y(this.containers,s=>s.modals.includes(t)),a=this.containers[l];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Jf(t.modalRef,n),JR(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(l,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&Jf(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const U6=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function q6(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function W6(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function K6(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||W6(e))}function Y6(e){const t=[],n=[];return Array.from(e.querySelectorAll(U6)).forEach((r,l)=>{const a=q6(r);a===-1||!K6(r)||(a===0?t.push(r):n.push({documentOrder:l,tabIndex:a,node:r}))}),n.sort((r,l)=>r.tabIndex===l.tabIndex?r.documentOrder-l.documentOrder:r.tabIndex-l.tabIndex).map(r=>r.node).concat(t)}function X6(){return!0}function AL(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:l=!1,getTabbable:a=Y6,isEnabled:s=X6,open:u}=e,d=m.useRef(!1),f=m.useRef(null),h=m.useRef(null),g=m.useRef(null),b=m.useRef(null),y=m.useRef(!1),C=m.useRef(null),S=tn(xc(t),C),w=m.useRef(null);m.useEffect(()=>{!u||!C.current||(y.current=!n)},[n,u]),m.useEffect(()=>{if(!u||!C.current)return;const O=sr(C.current);return C.current.contains(O.activeElement)||(C.current.hasAttribute("tabIndex")||C.current.setAttribute("tabIndex","-1"),y.current&&C.current.focus()),()=>{l||(g.current&&g.current.focus&&(d.current=!0,g.current.focus()),g.current=null)}},[u]),m.useEffect(()=>{if(!u||!C.current)return;const O=sr(C.current),P=z=>{w.current=z,!(r||!s()||z.key!=="Tab")&&O.activeElement===C.current&&z.shiftKey&&(d.current=!0,h.current&&h.current.focus())},R=()=>{const z=C.current;if(z===null)return;if(!O.hasFocus()||!s()||d.current){d.current=!1;return}if(z.contains(O.activeElement)||r&&O.activeElement!==f.current&&O.activeElement!==h.current)return;if(O.activeElement!==b.current)b.current=null;else if(b.current!==null)return;if(!y.current)return;let k=[];if((O.activeElement===f.current||O.activeElement===h.current)&&(k=a(C.current)),k.length>0){const L=!!(w.current?.shiftKey&&w.current?.key==="Tab"),H=k[0],$=k[k.length-1];typeof H!="string"&&typeof $!="string"&&(L?$.focus():H.focus())}else z.focus()};O.addEventListener("focusin",R),O.addEventListener("keydown",P,!0);const A=setInterval(()=>{O.activeElement&&O.activeElement.tagName==="BODY"&&R()},50);return()=>{clearInterval(A),O.removeEventListener("focusin",R),O.removeEventListener("keydown",P,!0)}},[n,r,l,s,u,a]);const M=O=>{g.current===null&&(g.current=O.relatedTarget),y.current=!0,b.current=O.target;const P=t.props.onFocus;P&&P(O)},E=O=>{g.current===null&&(g.current=O.relatedTarget),y.current=!0};return x.jsxs(m.Fragment,{children:[x.jsx("div",{tabIndex:u?0:-1,onFocus:E,ref:f,"data-testid":"sentinelStart"}),m.cloneElement(t,{ref:S,onFocus:M}),x.jsx("div",{tabIndex:u?0:-1,onFocus:E,ref:h,"data-testid":"sentinelEnd"})]})}function Q6(e){return typeof e=="function"?e():e}function Z6(e){return e?e.props.hasOwnProperty("in"):!1}const eA=()=>{},gg=new V6;function J6(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:l=!1,onTransitionEnter:a,onTransitionExited:s,children:u,onClose:d,open:f,rootRef:h}=e,g=m.useRef({}),b=m.useRef(null),y=m.useRef(null),C=tn(y,h),[S,w]=m.useState(!f),M=Z6(u);let E=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(E=!1);const O=()=>sr(b.current),P=()=>(g.current.modalRef=y.current,g.current.mount=b.current,g.current),R=()=>{gg.mount(P(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},A=wt(()=>{const F=Q6(t)||O().body;gg.add(P(),F),y.current&&R()}),z=()=>gg.isTopModal(P()),k=wt(F=>{b.current=F,F&&(f&&z()?R():y.current&&Jf(y.current,E))}),L=m.useCallback(()=>{gg.remove(P(),E)},[E]);m.useEffect(()=>()=>{L()},[L]),m.useEffect(()=>{f?A():(!M||!l)&&L()},[f,L,M,l,A]);const H=F=>_=>{F.onKeyDown?.(_),!(_.key!=="Escape"||_.which===229||!z())&&(n||(_.stopPropagation(),d&&d(_,"escapeKeyDown")))},$=F=>_=>{F.onClick?.(_),_.target===_.currentTarget&&d&&d(_,"backdropClick")};return{getRootProps:(F={})=>{const _=Xg(e);delete _.onTransitionEnter,delete _.onTransitionExited;const B={..._,...F};return{role:"presentation",...B,onKeyDown:H(B),ref:C}},getBackdropProps:(F={})=>{const _=F;return{"aria-hidden":!0,..._,onClick:$(_),open:f}},getTransitionProps:()=>{const F=()=>{w(!1),a&&a()},_=()=>{w(!0),s&&s(),l&&L()};return{onEnter:c1(F,u?.props.onEnter??eA),onExited:c1(_,u?.props.onExited??eA)}},rootRef:C,portalRef:k,isTopModal:z,exited:S,hasTransition:M}}function eU(e){return St("MuiModal",e)}vt("MuiModal",["root","hidden","backdrop"]);const tU=e=>{const{open:t,exited:n,classes:r}=e;return Be({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},eU,r)},nU=ge("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ft(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),rU=ge(ZV,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),oU=m.forwardRef(function(t,n){const r=xt({name:"MuiModal",props:t}),{BackdropComponent:l=rU,BackdropProps:a,classes:s,className:u,closeAfterTransition:d=!1,children:f,container:h,component:g,components:b={},componentsProps:y={},disableAutoFocus:C=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:w=!1,disablePortal:M=!1,disableRestoreFocus:E=!1,disableScrollLock:O=!1,hideBackdrop:P=!1,keepMounted:R=!1,onClose:A,onTransitionEnter:z,onTransitionExited:k,open:L,slotProps:H={},slots:$={},theme:I,...j}=r,q={...r,closeAfterTransition:d,disableAutoFocus:C,disableEnforceFocus:S,disableEscapeKeyDown:w,disablePortal:M,disableRestoreFocus:E,disableScrollLock:O,hideBackdrop:P,keepMounted:R},{getRootProps:F,getBackdropProps:_,getTransitionProps:B,portalRef:J,isTopModal:Q,exited:D,hasTransition:G}=J6({...q,rootRef:n}),W={...q,exited:D},Z=tU(W),te={};if(f.props.tabIndex===void 0&&(te.tabIndex="-1"),G){const{onEnter:de,onExited:ke}=B();te.onEnter=de,te.onExited=ke}const ne={slots:{root:b.Root,backdrop:b.Backdrop,...$},slotProps:{...y,...H}},[oe,se]=Rt("root",{ref:n,elementType:nU,externalForwardedProps:{...ne,...j,component:g},getSlotProps:F,ownerState:W,className:Oe(u,Z?.root,!W.open&&W.exited&&Z?.hidden)}),[Se,be]=Rt("backdrop",{ref:a?.ref,elementType:l,externalForwardedProps:ne,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:de=>_({...de,onClick:ke=>{de?.onClick&&de.onClick(ke)}}),className:Oe(a?.className,Z?.backdrop),ownerState:W});return!R&&!L&&(!G||D)?null:x.jsx(xL,{ref:J,container:h,disablePortal:M,children:x.jsxs(oe,{...se,children:[!P&&l?x.jsx(Se,{...be}):null,x.jsx(AL,{disableEnforceFocus:S,disableAutoFocus:C,disableRestoreFocus:E,isEnabled:Q,open:L,children:m.cloneElement(f,te)})]})})});function lU(e){return St("MuiDivider",e)}const tA=vt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),iU=e=>{const{absolute:t,children:n,classes:r,flexItem:l,light:a,orientation:s,textAlign:u,variant:d}=e;return Be({root:["root",t&&"absolute",d,a&&"light",s==="vertical"&&"vertical",l&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",u==="right"&&s!=="vertical"&&"textAlignRight",u==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},lU,r)},aU=ge("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(ft(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),sU=ge("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(ft(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),pp=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiDivider"}),{absolute:l=!1,children:a,className:s,orientation:u="horizontal",component:d=a||u==="vertical"?"div":"hr",flexItem:f=!1,light:h=!1,role:g=d!=="hr"?"separator":void 0,textAlign:b="center",variant:y="fullWidth",...C}=r,S={...r,absolute:l,component:d,flexItem:f,light:h,orientation:u,role:g,textAlign:b,variant:y},w=iU(S);return x.jsx(aU,{as:d,className:Oe(w.root,s),role:g,ref:n,ownerState:S,"aria-orientation":g==="separator"&&(d!=="hr"||u==="vertical")?u:void 0,...C,children:a?x.jsx(sU,{className:w.wrapper,ownerState:S,children:a}):null})});pp&&(pp.muiSkipListHighlight=!0);const cU=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:l,size:a,hiddenLabel:s,multiline:u}=e,d={root:["root",!n&&"underline",r&&"adornedStart",l&&"adornedEnd",a==="small"&&`size${we(a)}`,s&&"hiddenLabel",u&&"multiline"],input:["input"]},f=Be(d,EV,t);return{...t,...f}},uU=ge(jm,{shouldForwardProp:e=>Co(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Hm(e,t),!n.disableUnderline&&t.underline]}})(ft(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Jo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Jo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Jo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Jo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Jo.disabled}, .${Jo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Jo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Zn()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:u})=>s.multiline&&u==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),dU=ge(Bm,{name:"MuiFilledInput",slot:"Input",overridesResolver:Nm})(ft(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Ox=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiFilledInput"}),{disableUnderline:l=!1,components:a={},componentsProps:s,fullWidth:u=!1,hiddenLabel:d,inputComponent:f="input",multiline:h=!1,slotProps:g,slots:b={},type:y="text",...C}=r,S={...r,disableUnderline:l,fullWidth:u,inputComponent:f,multiline:h,type:y},w=cU(r),M={root:{ownerState:S},input:{ownerState:S}},E=g??s?vo(M,g??s):M,O=b.root??a.Root??uU,P=b.input??a.Input??dU;return x.jsx(cd,{slots:{root:O,input:P},slotProps:E,fullWidth:u,inputComponent:f,multiline:h,ref:n,type:y,...C,classes:w})});Ox.muiName="Input";function fU(e){return St("MuiFormControl",e)}vt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const pU=e=>{const{classes:t,margin:n,fullWidth:r}=e,l={root:["root",n!=="none"&&`margin${we(n)}`,r&&"fullWidth"]};return Be(l,fU,t)},hU=ge("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${we(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Yu=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiFormControl"}),{children:l,className:a,color:s="primary",component:u="div",disabled:d=!1,error:f=!1,focused:h,fullWidth:g=!1,hiddenLabel:b=!1,margin:y="none",required:C=!1,size:S="medium",variant:w="outlined",...M}=r,E={...r,color:s,component:u,disabled:d,error:f,fullWidth:g,hiddenLabel:b,margin:y,required:C,size:S,variant:w},O=pU(E),[P,R]=m.useState(()=>{let F=!1;return l&&m.Children.forEach(l,_=>{if(!kg(_,["Input","Select"]))return;const B=kg(_,["Select"])?_.props.input:_;B&&SV(B.props)&&(F=!0)}),F}),[A,z]=m.useState(()=>{let F=!1;return l&&m.Children.forEach(l,_=>{kg(_,["Input","Select"])&&(nm(_.props,!0)||nm(_.props.inputProps,!0))&&(F=!0)}),F}),[k,L]=m.useState(!1);d&&k&&L(!1);const H=h!==void 0&&!d?h:k;let $;m.useRef(!1);const I=m.useCallback(()=>{z(!0)},[]),j=m.useCallback(()=>{z(!1)},[]),q=m.useMemo(()=>({adornedStart:P,setAdornedStart:R,color:s,disabled:d,error:f,filled:A,focused:H,fullWidth:g,hiddenLabel:b,size:S,onBlur:()=>{L(!1)},onFocus:()=>{L(!0)},onEmpty:j,onFilled:I,registerEffect:$,required:C,variant:w}),[P,s,d,f,A,H,g,b,$,j,I,C,S,w]);return x.jsx(Fm.Provider,{value:q,children:x.jsx(hU,{as:u,ownerState:E,className:Oe(O.root,a),ref:n,...M,children:l})})});function gU(e){return St("MuiFormControlLabel",e)}const Au=vt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),mU=e=>{const{classes:t,disabled:n,labelPlacement:r,error:l,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${we(r)}`,l&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",l&&"error"]};return Be(s,gU,t)},bU=ge("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Au.label}`]:t.label},t.root,t[`labelPlacement${we(n.labelPlacement)}`]]}})(ft(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Au.disabled}`]:{cursor:"default"},[`& .${Au.label}`]:{[`&.${Au.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),vU=ge("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(ft(({theme:e})=>({[`&.${Au.error}`]:{color:(e.vars||e).palette.error.main}}))),Xu=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiFormControlLabel"}),{checked:l,className:a,componentsProps:s={},control:u,disabled:d,disableTypography:f,inputRef:h,label:g,labelPlacement:b="end",name:y,onChange:C,required:S,slots:w={},slotProps:M={},value:E,...O}=r,P=fi(),R=d??u.props.disabled??P?.disabled,A=S??u.props.required,z={disabled:R,required:A};["checked","name","onChange","value","inputRef"].forEach(F=>{typeof u.props[F]>"u"&&typeof r[F]<"u"&&(z[F]=r[F])});const k=Ts({props:r,muiFormControl:P,states:["error"]}),L={...r,disabled:R,labelPlacement:b,required:A,error:k.error},H=mU(L),$={slots:w,slotProps:{...s,...M}},[I,j]=Rt("typography",{elementType:bo,externalForwardedProps:$,ownerState:L});let q=g;return q!=null&&q.type!==bo&&!f&&(q=x.jsx(I,{component:"span",...j,className:Oe(H.label,j?.className),children:q})),x.jsxs(bU,{className:Oe(H.root,a),ownerState:L,ref:n,...O,children:[m.cloneElement(u,z),A?x.jsxs("div",{children:[q,x.jsxs(vU,{ownerState:L,"aria-hidden":!0,className:H.asterisk,children:[" ","*"]})]}):q]})});function yU(e){return St("MuiFormGroup",e)}vt("MuiFormGroup",["root","row","error"]);const CU=e=>{const{classes:t,row:n,error:r}=e;return Be({root:["root",n&&"row",r&&"error"]},yU,t)},SU=ge("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Gm=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiFormGroup"}),{className:l,row:a=!1,...s}=r,u=fi(),d=Ts({props:r,muiFormControl:u,states:["error"]}),f={...r,row:a,error:d.error},h=CU(f);return x.jsx(SU,{className:Oe(h.root,l),ownerState:f,ref:n,...s})});function wU(e){return St("MuiFormHelperText",e)}const nA=vt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var rA;const xU=e=>{const{classes:t,contained:n,size:r,disabled:l,error:a,filled:s,focused:u,required:d}=e,f={root:["root",l&&"disabled",a&&"error",r&&`size${we(r)}`,n&&"contained",u&&"focused",s&&"filled",d&&"required"]};return Be(f,wU,t)},MU=ge("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${we(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(ft(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${nA.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${nA.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),TU=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiFormHelperText"}),{children:l,className:a,component:s="p",disabled:u,error:d,filled:f,focused:h,margin:g,required:b,variant:y,...C}=r,S=fi(),w=Ts({props:r,muiFormControl:S,states:["variant","size","disabled","error","filled","focused","required"]}),M={...r,component:s,contained:w.variant==="filled"||w.variant==="outlined",variant:w.variant,size:w.size,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required};delete M.ownerState;const E=xU(M);return x.jsx(MU,{as:s,className:Oe(E.root,a),ref:n,...C,ownerState:M,children:l===" "?rA||(rA=x.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):l})});function EU(e){return St("MuiFormLabel",e)}const ep=vt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),PU=e=>{const{classes:t,color:n,focused:r,disabled:l,error:a,filled:s,required:u}=e,d={root:["root",`color${we(n)}`,l&&"disabled",a&&"error",s&&"filled",r&&"focused",u&&"required"],asterisk:["asterisk",a&&"error"]};return Be(d,EU,t)},RU=ge("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(ft(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Zn()).map(([t])=>({props:{color:t},style:{[`&.${ep.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ep.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ep.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),AU=ge("span",{name:"MuiFormLabel",slot:"Asterisk"})(ft(({theme:e})=>({[`&.${ep.error}`]:{color:(e.vars||e).palette.error.main}}))),OU=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiFormLabel"}),{children:l,className:a,color:s,component:u="label",disabled:d,error:f,filled:h,focused:g,required:b,...y}=r,C=fi(),S=Ts({props:r,muiFormControl:C,states:["color","required","focused","disabled","error","filled"]}),w={...r,color:S.color||"primary",component:u,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required},M=PU(w);return x.jsxs(RU,{as:u,ownerState:w,className:Oe(M.root,a),ref:n,...y,children:[l,S.required&&x.jsxs(AU,{ownerState:w,"aria-hidden":!0,className:M.asterisk,children:[" ","*"]})]})}),En=_5({createStyledComponent:ge("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>xt({props:e,name:"MuiGrid"}),useTheme:ws}),IU=e=>{const{classes:t,disableUnderline:n}=e,l=Be({root:["root",!n&&"underline"],input:["input"]},MV,t);return{...t,...l}},kU=ge(jm,{shouldForwardProp:e=>Co(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Hm(e,t),!n.disableUnderline&&t.underline]}})(ft(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${cs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${cs.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${cs.disabled}, .${cs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${cs.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Zn()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),_U=ge(Bm,{name:"MuiInput",slot:"Input",overridesResolver:Nm})({}),Vm=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiInput"}),{disableUnderline:l=!1,components:a={},componentsProps:s,fullWidth:u=!1,inputComponent:d="input",multiline:f=!1,slotProps:h,slots:g={},type:b="text",...y}=r,C=IU(r),w={root:{ownerState:{disableUnderline:l}}},M=h??s?vo(h??s,w):w,E=g.root??a.Root??kU,O=g.input??a.Input??_U;return x.jsx(cd,{slots:{root:E,input:O},slotProps:M,fullWidth:u,inputComponent:d,multiline:f,ref:n,type:b,...y,classes:C})});Vm.muiName="Input";function DU(e){return St("MuiInputAdornment",e)}const S1=vt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var oA;const LU=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${we(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},$U=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:l,size:a,variant:s}=e,u={root:["root",n&&"disablePointerEvents",l&&`position${we(l)}`,s,r&&"hiddenLabel",a&&`size${we(a)}`]};return Be(u,DU,t)},zU=ge("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:LU})(ft(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${S1.positionStart}&:not(.${S1.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),OL=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiInputAdornment"}),{children:l,className:a,component:s="div",disablePointerEvents:u=!1,disableTypography:d=!1,position:f,variant:h,...g}=r,b=fi()||{};let y=h;h&&b.variant,b&&!y&&(y=b.variant);const C={...r,hiddenLabel:b.hiddenLabel,size:b.size,disablePointerEvents:u,position:f,variant:y},S=$U(C);return x.jsx(Fm.Provider,{value:null,children:x.jsx(zU,{as:s,ownerState:C,className:Oe(S.root,a),ref:n,...g,children:typeof l=="string"&&!d?x.jsx(bo,{color:"textSecondary",children:l}):x.jsxs(m.Fragment,{children:[f==="start"?oA||(oA=x.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,l]})})})});function FU(e){return St("MuiInputLabel",e)}vt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const HU=e=>{const{classes:t,formControl:n,size:r,shrink:l,disableAnimation:a,variant:s,required:u}=e,d={root:["root",n&&"formControl",!a&&"animated",l&&"shrink",r&&r!=="medium"&&`size${we(r)}`,s],asterisk:[u&&"asterisk"]},f=Be(d,FU,t);return{...t,...f}},NU=ge(OU,{shouldForwardProp:e=>Co(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ep.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(ft(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),hp=m.forwardRef(function(t,n){const r=xt({name:"MuiInputLabel",props:t}),{disableAnimation:l=!1,margin:a,shrink:s,variant:u,className:d,...f}=r,h=fi();let g=s;typeof g>"u"&&h&&(g=h.filled||h.focused||h.adornedStart);const b=Ts({props:r,muiFormControl:h,states:["size","variant","required","focused"]}),y={...r,disableAnimation:l,formControl:h,shrink:g,size:b.size,variant:b.variant,required:b.required,focused:b.focused},C=HU(y);return x.jsx(NU,{"data-shrink":g,ref:n,className:Oe(C.root,d),...f,ownerState:y,classes:C})});function jU(e){return St("MuiLinearProgress",e)}vt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const w1=4,x1=Fl`
  0% {
    left: -35%;
    right: 100%;
  }

  60% {
    left: 100%;
    right: -90%;
  }

  100% {
    left: 100%;
    right: -90%;
  }
`,BU=typeof x1!="string"?Ss`
        animation: ${x1} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
      `:null,M1=Fl`
  0% {
    left: -200%;
    right: 100%;
  }

  60% {
    left: 107%;
    right: -8%;
  }

  100% {
    left: 107%;
    right: -8%;
  }
`,GU=typeof M1!="string"?Ss`
        animation: ${M1} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
      `:null,T1=Fl`
  0% {
    opacity: 1;
    background-position: 0 -23px;
  }

  60% {
    opacity: 0;
    background-position: 0 -23px;
  }

  100% {
    opacity: 1;
    background-position: -200px -23px;
  }
`,VU=typeof T1!="string"?Ss`
        animation: ${T1} 3s infinite linear;
      `:null,UU=e=>{const{classes:t,variant:n,color:r}=e,l={root:["root",`color${we(r)}`,n],dashed:["dashed",`dashedColor${we(r)}`],bar1:["bar","bar1",`barColor${we(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${we(r)}`,n==="buffer"&&`color${we(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Be(l,jU,t)},Ix=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),qU=ge("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${we(n.color)}`],t[n.variant]]}})(ft(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Zn()).map(([t])=>({props:{color:t},style:{backgroundColor:Ix(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),WU=ge("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${we(n.color)}`]]}})(ft(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(Zn()).map(([t])=>{const n=Ix(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),VU||{animation:`${T1} 3s infinite linear`}),KU=ge("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${we(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(ft(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(Zn()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${w1}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${w1}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:BU||{animation:`${x1} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),YU=ge("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${we(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(ft(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(Zn()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(Zn()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:Ix(e,t),transition:`transform .${w1}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:GU||{animation:`${M1} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),XU=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiLinearProgress"}),{className:l,color:a="primary",value:s,valueBuffer:u,variant:d="indeterminate",...f}=r,h={...r,color:a,variant:d},g=UU(h),b=Po(),y={},C={bar1:{},bar2:{}};if((d==="determinate"||d==="buffer")&&s!==void 0){y["aria-valuenow"]=Math.round(s),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let S=s-100;b&&(S=-S),C.bar1.transform=`translateX(${S}%)`}if(d==="buffer"&&u!==void 0){let S=(u||0)-100;b&&(S=-S),C.bar2.transform=`translateX(${S}%)`}return x.jsxs(qU,{className:Oe(g.root,l),ownerState:h,role:"progressbar",...y,ref:n,...f,children:[d==="buffer"?x.jsx(WU,{className:g.dashed,ownerState:h}):null,x.jsx(KU,{className:g.bar1,ownerState:h,style:C.bar1}),d==="determinate"?null:x.jsx(YU,{className:g.bar2,ownerState:h,style:C.bar2})]})}),gp=m.createContext({});function QU(e){return St("MuiList",e)}vt("MuiList",["root","padding","dense","subheader"]);const ZU=e=>{const{classes:t,disablePadding:n,dense:r,subheader:l}=e;return Be({root:["root",!n&&"padding",r&&"dense",l&&"subheader"]},QU,t)},JU=ge("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),eq=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiList"}),{children:l,className:a,component:s="ul",dense:u=!1,disablePadding:d=!1,subheader:f,...h}=r,g=m.useMemo(()=>({dense:u}),[u]),b={...r,component:s,dense:u,disablePadding:d},y=ZU(b);return x.jsx(gp.Provider,{value:g,children:x.jsxs(JU,{as:s,className:Oe(y.root,a),ref:n,ownerState:b,...h,children:[f,l]})})});function tq(e){return St("MuiListItemIcon",e)}const lA=vt("MuiListItemIcon",["root","alignItemsFlexStart"]),nq=e=>{const{alignItems:t,classes:n}=e;return Be({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},tq,n)},rq=ge("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(ft(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),rm=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiListItemIcon"}),{className:l,...a}=r,s=m.useContext(gp),u={...r,alignItems:s.alignItems},d=nq(u);return x.jsx(rq,{className:Oe(d.root,l),ownerState:u,ref:n,...a})});function oq(e){return St("MuiListItemText",e)}const ic=vt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),lq=e=>{const{classes:t,inset:n,primary:r,secondary:l,dense:a}=e;return Be({root:["root",n&&"inset",a&&"dense",r&&l&&"multiline"],primary:["primary"],secondary:["secondary"]},oq,t)},iq=ge("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ic.primary}`]:t.primary},{[`& .${ic.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${ER.root}:where(& .${ic.primary})`]:{display:"block"},[`.${ER.root}:where(& .${ic.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),E1=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiListItemText"}),{children:l,className:a,disableTypography:s=!1,inset:u=!1,primary:d,primaryTypographyProps:f,secondary:h,secondaryTypographyProps:g,slots:b={},slotProps:y={},...C}=r,{dense:S}=m.useContext(gp);let w=d??l,M=h;const E={...r,disableTypography:s,inset:u,primary:!!w,secondary:!!M,dense:S},O=lq(E),P={slots:b,slotProps:{primary:f,secondary:g,...y}},[R,A]=Rt("root",{className:Oe(O.root,a),elementType:iq,externalForwardedProps:{...P,...C},ownerState:E,ref:n}),[z,k]=Rt("primary",{className:O.primary,elementType:bo,externalForwardedProps:P,ownerState:E}),[L,H]=Rt("secondary",{className:O.secondary,elementType:bo,externalForwardedProps:P,ownerState:E});return w!=null&&w.type!==bo&&!s&&(w=x.jsx(z,{variant:S?"body2":"body1",component:k?.variant?void 0:"span",...k,children:w})),M!=null&&M.type!==bo&&!s&&(M=x.jsx(L,{variant:"body2",color:"textSecondary",...H,children:M})),x.jsxs(R,{...A,children:[w,M]})});function zy(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function iA(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function IL(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Pf(e,t,n,r,l,a){let s=!1,u=l(e,t,t?n:!1);for(;u;){if(u===e.firstChild){if(s)return!1;s=!0}const d=r?!1:u.disabled||u.getAttribute("aria-disabled")==="true";if(!u.hasAttribute("tabindex")||!IL(u,a)||d)u=l(e,u,n);else return u.focus(),!0}return!1}const kL=m.forwardRef(function(t,n){const{actions:r,autoFocus:l=!1,autoFocusItem:a=!1,children:s,className:u,disabledItemsFocusable:d=!1,disableListWrap:f=!1,onKeyDown:h,variant:g="selectedMenu",...b}=t,y=m.useRef(null),C=m.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});gn(()=>{l&&y.current.focus()},[l]),m.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(O,{direction:P})=>{const R=!y.current.style.width;if(O.clientHeight<y.current.clientHeight&&R){const A=`${RL(Sa(O))}px`;y.current.style[P==="rtl"?"paddingLeft":"paddingRight"]=A,y.current.style.width=`calc(100% + ${A})`}return y.current}}),[]);const S=O=>{const P=y.current,R=O.key;if(O.ctrlKey||O.metaKey||O.altKey){h&&h(O);return}const z=sr(P).activeElement;if(R==="ArrowDown")O.preventDefault(),Pf(P,z,f,d,zy);else if(R==="ArrowUp")O.preventDefault(),Pf(P,z,f,d,iA);else if(R==="Home")O.preventDefault(),Pf(P,null,f,d,zy);else if(R==="End")O.preventDefault(),Pf(P,null,f,d,iA);else if(R.length===1){const k=C.current,L=R.toLowerCase(),H=performance.now();k.keys.length>0&&(H-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&L!==k.keys[0]&&(k.repeating=!1)),k.lastTime=H,k.keys.push(L);const $=z&&!k.repeating&&IL(z,k);k.previousKeyMatched&&($||Pf(P,z,!1,d,zy,k))?O.preventDefault():k.previousKeyMatched=!1}h&&h(O)},w=tn(y,n);let M=-1;m.Children.forEach(s,(O,P)=>{if(!m.isValidElement(O)){M===P&&(M+=1,M>=s.length&&(M=-1));return}O.props.disabled||(g==="selectedMenu"&&O.props.selected||M===-1)&&(M=P),M===P&&(O.props.disabled||O.props.muiSkipListHighlight||O.type.muiSkipListHighlight)&&(M+=1,M>=s.length&&(M=-1))});const E=m.Children.map(s,(O,P)=>{if(P===M){const R={};return a&&(R.autoFocus=!0),O.props.tabIndex===void 0&&g==="selectedMenu"&&(R.tabIndex=0),m.cloneElement(O,R)}return O});return x.jsx(eq,{role:"menu",ref:w,className:u,onKeyDown:S,tabIndex:l?0:-1,...b,children:E})});function aq(e){return St("MuiPopover",e)}vt("MuiPopover",["root","paper"]);function aA(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function sA(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function cA(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function mg(e){return typeof e=="function"?e():e}const sq=e=>{const{classes:t}=e;return Be({root:["root"],paper:["paper"]},aq,t)},cq=ge(oU,{name:"MuiPopover",slot:"Root"})({}),_L=ge(xs,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),uq=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiPopover"}),{action:l,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:f,className:h,container:g,elevation:b=8,marginThreshold:y=16,open:C,PaperProps:S={},slots:w={},slotProps:M={},transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:O,transitionDuration:P="auto",TransitionProps:R={},disableScrollLock:A=!1,...z}=r,k=m.useRef(),L={...r,anchorOrigin:s,anchorReference:d,elevation:b,marginThreshold:y,transformOrigin:E,TransitionComponent:O,transitionDuration:P,TransitionProps:R},H=sq(L),$=m.useCallback(()=>{if(d==="anchorPosition")return u;const de=mg(a),Ae=(de&&de.nodeType===1?de:sr(k.current).body).getBoundingClientRect();return{top:Ae.top+aA(Ae,s.vertical),left:Ae.left+sA(Ae,s.horizontal)}},[a,s.horizontal,s.vertical,u,d]),I=m.useCallback(de=>({vertical:aA(de,E.vertical),horizontal:sA(de,E.horizontal)}),[E.horizontal,E.vertical]),j=m.useCallback(de=>{const ke={width:de.offsetWidth,height:de.offsetHeight},Ae=I(ke);if(d==="none")return{top:null,left:null,transformOrigin:cA(Ae)};const Ne=$();let $e=Ne.top-Ae.vertical,Ve=Ne.left-Ae.horizontal;const nt=$e+ke.height,lt=Ve+ke.width,me=Sa(mg(a)),tt=me.innerHeight-y,ze=me.innerWidth-y;if(y!==null&&$e<y){const et=$e-y;$e-=et,Ae.vertical+=et}else if(y!==null&&nt>tt){const et=nt-tt;$e-=et,Ae.vertical+=et}if(y!==null&&Ve<y){const et=Ve-y;Ve-=et,Ae.horizontal+=et}else if(lt>ze){const et=lt-ze;Ve-=et,Ae.horizontal+=et}return{top:`${Math.round($e)}px`,left:`${Math.round(Ve)}px`,transformOrigin:cA(Ae)}},[a,d,$,I,y]),[q,F]=m.useState(C),_=m.useCallback(()=>{const de=k.current;if(!de)return;const ke=j(de);ke.top!==null&&de.style.setProperty("top",ke.top),ke.left!==null&&(de.style.left=ke.left),de.style.transformOrigin=ke.transformOrigin,F(!0)},[j]);m.useEffect(()=>(A&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_)),[a,A,_]);const B=()=>{_()},J=()=>{F(!1)};m.useEffect(()=>{C&&_()}),m.useImperativeHandle(l,()=>C?{updatePosition:()=>{_()}}:null,[C,_]),m.useEffect(()=>{if(!C)return;const de=_p(()=>{_()}),ke=Sa(mg(a));return ke.addEventListener("resize",de),()=>{de.clear(),ke.removeEventListener("resize",de)}},[a,C,_]);let Q=P;const D={slots:{transition:O,...w},slotProps:{transition:R,paper:S,...M}},[G,W]=Rt("transition",{elementType:Gu,externalForwardedProps:D,ownerState:L,getSlotProps:de=>({...de,onEntering:(ke,Ae)=>{de.onEntering?.(ke,Ae),B()},onExited:ke=>{de.onExited?.(ke),J()}}),additionalProps:{appear:!0,in:C}});P==="auto"&&!G.muiSupportAuto&&(Q=void 0);const Z=g||(a?sr(mg(a)).body:void 0),[te,{slots:ne,slotProps:oe,...se}]=Rt("root",{ref:n,elementType:cq,externalForwardedProps:{...D,...z},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:w.backdrop},slotProps:{backdrop:dL(typeof M.backdrop=="function"?M.backdrop(L):M.backdrop,{invisible:!0})},container:Z,open:C},ownerState:L,className:Oe(H.root,h)}),[Se,be]=Rt("paper",{ref:k,className:H.paper,elementType:_L,externalForwardedProps:D,shouldForwardComponentProp:!0,additionalProps:{elevation:b,style:q?void 0:{opacity:0}},ownerState:L});return x.jsx(te,{...se,...!C1(te)&&{slots:ne,slotProps:oe,disableScrollLock:A},children:x.jsx(G,{...W,timeout:Q,children:x.jsx(Se,{...be,children:f})})})});function dq(e){return St("MuiMenu",e)}vt("MuiMenu",["root","paper","list"]);const fq={vertical:"top",horizontal:"right"},pq={vertical:"top",horizontal:"left"},hq=e=>{const{classes:t}=e;return Be({root:["root"],paper:["paper"],list:["list"]},dq,t)},gq=ge(uq,{shouldForwardProp:e=>Co(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),mq=ge(_L,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),bq=ge(kL,{name:"MuiMenu",slot:"List"})({outline:0}),P1=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiMenu"}),{autoFocus:l=!0,children:a,className:s,disableAutoFocusItem:u=!1,MenuListProps:d={},onClose:f,open:h,PaperProps:g={},PopoverClasses:b,transitionDuration:y="auto",TransitionProps:{onEntering:C,...S}={},variant:w="selectedMenu",slots:M={},slotProps:E={},...O}=r,P=Po(),R={...r,autoFocus:l,disableAutoFocusItem:u,MenuListProps:d,onEntering:C,PaperProps:g,transitionDuration:y,TransitionProps:S,variant:w},A=hq(R),z=l&&!u&&h,k=m.useRef(null),L=(Q,D)=>{k.current&&k.current.adjustStyleForScrollbar(Q,{direction:P?"rtl":"ltr"}),C&&C(Q,D)},H=Q=>{Q.key==="Tab"&&(Q.preventDefault(),f&&f(Q,"tabKeyDown"))};let $=-1;m.Children.map(a,(Q,D)=>{m.isValidElement(Q)&&(Q.props.disabled||(w==="selectedMenu"&&Q.props.selected||$===-1)&&($=D))});const I={slots:M,slotProps:{list:d,transition:S,paper:g,...E}},j=wL({elementType:M.root,externalSlotProps:E.root,ownerState:R,className:[A.root,s]}),[q,F]=Rt("paper",{className:A.paper,elementType:mq,externalForwardedProps:I,shouldForwardComponentProp:!0,ownerState:R}),[_,B]=Rt("list",{className:Oe(A.list,d.className),elementType:bq,shouldForwardComponentProp:!0,externalForwardedProps:I,getSlotProps:Q=>({...Q,onKeyDown:D=>{H(D),Q.onKeyDown?.(D)}}),ownerState:R}),J=typeof I.slotProps.transition=="function"?I.slotProps.transition(R):I.slotProps.transition;return x.jsx(gq,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?fq:pq,slots:{root:M.root,paper:q,backdrop:M.backdrop,...M.transition&&{transition:M.transition}},slotProps:{root:j,paper:F,backdrop:typeof E.backdrop=="function"?E.backdrop(R):E.backdrop,transition:{...J,onEntering:(...Q)=>{L(...Q),J?.onEntering?.(...Q)}}},open:h,ref:n,transitionDuration:y,ownerState:R,...O,classes:b,children:x.jsx(_,{actions:k,autoFocus:l&&($===-1||u),autoFocusItem:z,variant:w,...B,children:a})})});function vq(e){return St("MuiMenuItem",e)}const Rf=vt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),yq=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Cq=e=>{const{disabled:t,dense:n,divider:r,disableGutters:l,selected:a,classes:s}=e,d=Be({root:["root",n&&"dense",t&&"disabled",!l&&"gutters",r&&"divider",a&&"selected"]},vq,s);return{...s,...d}},Sq=ge(Vu,{shouldForwardProp:e=>Co(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:yq})(ft(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Rf.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Rf.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Rf.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Rf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Rf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${tA.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${tA.inset}`]:{marginLeft:52},[`& .${ic.root}`]:{marginTop:0,marginBottom:0},[`& .${ic.inset}`]:{paddingLeft:36},[`& .${lA.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${lA.root} svg`]:{fontSize:"1.25rem"}}}]}))),ki=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiMenuItem"}),{autoFocus:l=!1,component:a="li",dense:s=!1,divider:u=!1,disableGutters:d=!1,focusVisibleClassName:f,role:h="menuitem",tabIndex:g,className:b,...y}=r,C=m.useContext(gp),S=m.useMemo(()=>({dense:s||C.dense||!1,disableGutters:d}),[C.dense,s,d]),w=m.useRef(null);gn(()=>{l&&w.current&&w.current.focus()},[l]);const M={...r,dense:S.dense,divider:u,disableGutters:d},E=Cq(r),O=tn(w,n);let P;return r.disabled||(P=g!==void 0?g:-1),x.jsx(gp.Provider,{value:S,children:x.jsx(Sq,{ref:O,role:h,tabIndex:P,component:a,focusVisibleClassName:Oe(E.focusVisible,f),className:Oe(E.root,b),...y,ownerState:M,classes:E})})});function wq(e){return St("MuiNativeSelect",e)}const kx=vt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),xq=e=>{const{classes:t,variant:n,disabled:r,multiple:l,open:a,error:s}=e,u={select:["select",n,r&&"disabled",l&&"multiple",s&&"error"],icon:["icon",`icon${we(n)}`,a&&"iconOpen",r&&"disabled"]};return Be(u,wq,t)},DL=ge("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${kx.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Mq=ge(DL,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Co,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${kx.multiple}`]:t.multiple}]}})({}),LL=ge("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${kx.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),Tq=ge(LL,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${we(n.variant)}`],n.open&&t.iconOpen]}})({}),Eq=m.forwardRef(function(t,n){const{className:r,disabled:l,error:a,IconComponent:s,inputRef:u,variant:d="standard",...f}=t,h={...t,disabled:l,variant:d,error:a},g=xq(h);return x.jsxs(m.Fragment,{children:[x.jsx(Mq,{ownerState:h,className:Oe(g.select,r),disabled:l,ref:u||n,...f}),t.multiple?null:x.jsx(Tq,{as:s,ownerState:h,className:g.icon})]})});var uA;const Pq=ge("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Co})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Rq=ge("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Co})(ft(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Aq(e){const{children:t,classes:n,className:r,label:l,notched:a,...s}=e,u=l!=null&&l!=="",d={...e,notched:a,withLabel:u};return x.jsx(Pq,{"aria-hidden":!0,className:r,ownerState:d,...s,children:x.jsx(Rq,{ownerState:d,children:u?x.jsx("span",{children:l}):uA||(uA=x.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const Oq=e=>{const{classes:t}=e,r=Be({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},TV,t);return{...t,...r}},Iq=ge(jm,{shouldForwardProp:e=>Co(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Hm})(ft(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${xl.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${xl.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${xl.focused} .${xl.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Zn()).map(([n])=>({props:{color:n},style:{[`&.${xl.focused} .${xl.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${xl.error} .${xl.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${xl.disabled} .${xl.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),kq=ge(Aq,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(ft(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),_q=ge(Bm,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Nm})(ft(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),_x=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiOutlinedInput"}),{components:l={},fullWidth:a=!1,inputComponent:s="input",label:u,multiline:d=!1,notched:f,slots:h={},slotProps:g={},type:b="text",...y}=r,C=Oq(r),S=fi(),w=Ts({props:r,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),M={...r,color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:S,fullWidth:a,hiddenLabel:w.hiddenLabel,multiline:d,size:w.size,type:b},E=h.root??l.Root??Iq,O=h.input??l.Input??_q,[P,R]=Rt("notchedOutline",{elementType:kq,className:C.notchedOutline,shouldForwardComponentProp:!0,ownerState:M,externalForwardedProps:{slots:h,slotProps:g},additionalProps:{label:u!=null&&u!==""&&w.required?x.jsxs(m.Fragment,{children:[u," ","*"]}):u}});return x.jsx(cd,{slots:{root:E,input:O},slotProps:g,renderSuffix:A=>x.jsx(P,{...R,notched:typeof f<"u"?f:!!(A.startAdornment||A.filled||A.focused)}),fullWidth:a,inputComponent:s,multiline:d,ref:n,type:b,...y,classes:{...C,notchedOutline:null}})});_x.muiName="Input";const Dq=Bn(x.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),Lq=Bn(x.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),$q=Bn(x.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),zq=Bn(x.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"})),Fq=ge("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Co})({position:"relative",display:"flex"}),Hq=ge($q,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),Nq=ge(zq,{name:"MuiRadioButtonIcon"})(ft(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function $L(e){const{checked:t=!1,classes:n={},fontSize:r}=e,l={...e,checked:t};return x.jsxs(Fq,{className:n.root,ownerState:l,children:[x.jsx(Hq,{fontSize:r,className:n.background,ownerState:l}),x.jsx(Nq,{fontSize:r,className:n.dot,ownerState:l})]})}const zL=m.createContext(void 0);function jq(){return m.useContext(zL)}function Bq(e){return St("MuiRadio",e)}const dA=vt("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Gq=e=>{const{classes:t,color:n,size:r}=e,l={root:["root",`color${we(n)}`,r!=="medium"&&`size${we(r)}`]};return{...t,...Be(l,Bq,t)}},Vq=ge(Rx,{shouldForwardProp:e=>Co(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${we(n.size)}`],t[`color${we(n.color)}`]]}})(ft(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${dA.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Zn()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Zn()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${dA.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function Uq(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const qq=x.jsx($L,{checked:!0}),Wq=x.jsx($L,{}),Kq=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiRadio"}),{checked:l,checkedIcon:a=qq,color:s="primary",icon:u=Wq,name:d,onChange:f,size:h="medium",className:g,disabled:b,disableRipple:y=!1,slots:C={},slotProps:S={},inputProps:w,...M}=r,E=fi();let O=b;E&&typeof O>"u"&&(O=E.disabled),O??=!1;const P={...r,disabled:O,disableRipple:y,color:s,size:h},R=Gq(P),A=jq();let z=l;const k=c1(f,A&&A.onChange);let L=d;A&&(typeof z>"u"&&(z=Uq(A.value,r.value)),typeof L>"u"&&(L=A.name));const H=S.input??w,[$,I]=Rt("root",{ref:n,elementType:Vq,className:Oe(R.root,g),shouldForwardComponentProp:!0,externalForwardedProps:{slots:C,slotProps:S,...M},getSlotProps:j=>({...j,onChange:(q,...F)=>{j.onChange?.(q,...F),k(q,...F)}}),ownerState:P,additionalProps:{type:"radio",icon:m.cloneElement(u,{fontSize:u.props.fontSize??h}),checkedIcon:m.cloneElement(a,{fontSize:a.props.fontSize??h}),disabled:O,name:L,checked:z,slots:C,slotProps:{input:typeof H=="function"?H(P):H}}});return x.jsx($,{...I,classes:R})});function Yq(e){return St("MuiRadioGroup",e)}vt("MuiRadioGroup",["root","row","error"]);const Xq=e=>{const{classes:t,row:n,error:r}=e;return Be({root:["root",n&&"row",r&&"error"]},Yq,t)},Qq=m.forwardRef(function(t,n){const{actions:r,children:l,className:a,defaultValue:s,name:u,onChange:d,value:f,...h}=t,g=m.useRef(null),b=Xq(t),[y,C]=ms({controlled:f,default:s,name:"RadioGroup"});m.useImperativeHandle(r,()=>({focus:()=>{let E=g.current.querySelector("input:not(:disabled):checked");E||(E=g.current.querySelector("input:not(:disabled)")),E&&E.focus()}}),[]);const S=tn(n,g),w=Nt(u),M=m.useMemo(()=>({name:w,onChange(E){C(E.target.value),d&&d(E,E.target.value)},value:y}),[w,d,C,y]);return x.jsx(zL.Provider,{value:M,children:x.jsx(Gm,{role:"radiogroup",ref:S,className:Oe(b.root,a),...h,children:l})})});function FL(e){return St("MuiSelect",e)}const Af=vt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var fA;const Zq=ge(DL,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Af.select}`]:t.select},{[`&.${Af.select}`]:t[n.variant]},{[`&.${Af.error}`]:t.error},{[`&.${Af.multiple}`]:t.multiple}]}})({[`&.${Af.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Jq=ge(LL,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${we(n.variant)}`],n.open&&t.iconOpen]}})({}),e9=ge("input",{shouldForwardProp:e=>nL(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function pA(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function t9(e){return e==null||typeof e=="string"&&!e.trim()}const n9=e=>{const{classes:t,variant:n,disabled:r,multiple:l,open:a,error:s}=e,u={select:["select",n,r&&"disabled",l&&"multiple",s&&"error"],icon:["icon",`icon${we(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Be(u,FL,t)},r9=m.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":l,autoFocus:a,autoWidth:s,children:u,className:d,defaultOpen:f,defaultValue:h,disabled:g,displayEmpty:b,error:y=!1,IconComponent:C,inputRef:S,labelId:w,MenuProps:M={},multiple:E,name:O,onBlur:P,onChange:R,onClose:A,onFocus:z,onOpen:k,open:L,readOnly:H,renderValue:$,required:I,SelectDisplayProps:j={},tabIndex:q,type:F,value:_,variant:B="standard",...J}=t,[Q,D]=ms({controlled:_,default:h,name:"Select"}),[G,W]=ms({controlled:L,default:f,name:"Select"}),Z=m.useRef(null),te=m.useRef(null),[ne,oe]=m.useState(null),{current:se}=m.useRef(L!=null),[Se,be]=m.useState(),de=tn(n,S),ke=m.useCallback(Ze=>{te.current=Ze,Ze&&oe(Ze)},[]),Ae=ne?.parentNode;m.useImperativeHandle(de,()=>({focus:()=>{te.current.focus()},node:Z.current,value:Q}),[Q]),m.useEffect(()=>{f&&G&&ne&&!se&&(be(s?null:Ae.clientWidth),te.current.focus())},[ne,s]),m.useEffect(()=>{a&&te.current.focus()},[a]),m.useEffect(()=>{if(!w)return;const Ze=sr(te.current).getElementById(w);if(Ze){const Tt=()=>{getSelection().isCollapsed&&te.current.focus()};return Ze.addEventListener("click",Tt),()=>{Ze.removeEventListener("click",Tt)}}},[w]);const Ne=(Ze,Tt)=>{Ze?k&&k(Tt):A&&A(Tt),se||(be(s?null:Ae.clientWidth),W(Ze))},$e=Ze=>{Ze.button===0&&(Ze.preventDefault(),te.current.focus(),Ne(!0,Ze))},Ve=Ze=>{Ne(!1,Ze)},nt=m.Children.toArray(u),lt=Ze=>{const Tt=nt.find(_t=>_t.props.value===Ze.target.value);Tt!==void 0&&(D(Tt.props.value),R&&R(Ze,Tt))},me=Ze=>Tt=>{let _t;if(Tt.currentTarget.hasAttribute("tabindex")){if(E){_t=Array.isArray(Q)?Q.slice():[];const cn=Q.indexOf(Ze.props.value);cn===-1?_t.push(Ze.props.value):_t.splice(cn,1)}else _t=Ze.props.value;if(Ze.props.onClick&&Ze.props.onClick(Tt),Q!==_t&&(D(_t),R)){const cn=Tt.nativeEvent||Tt,qn=new cn.constructor(cn.type,cn);Object.defineProperty(qn,"target",{writable:!0,value:{value:_t,name:O}}),R(qn,Ze)}E||Ne(!1,Tt)}},tt=Ze=>{H||[" ","ArrowUp","ArrowDown","Enter"].includes(Ze.key)&&(Ze.preventDefault(),Ne(!0,Ze))},ze=ne!==null&&G,et=Ze=>{!ze&&P&&(Object.defineProperty(Ze,"target",{writable:!0,value:{value:Q,name:O}}),P(Ze))};delete J["aria-invalid"];let He,yt;const Le=[];let Pe=!1;(nm({value:Q})||b)&&($?He=$(Q):Pe=!0);const Ke=nt.map(Ze=>{if(!m.isValidElement(Ze))return null;let Tt;if(E){if(!Array.isArray(Q))throw new Error(va(2));Tt=Q.some(_t=>pA(_t,Ze.props.value)),Tt&&Pe&&Le.push(Ze.props.children)}else Tt=pA(Q,Ze.props.value),Tt&&Pe&&(yt=Ze.props.children);return m.cloneElement(Ze,{"aria-selected":Tt?"true":"false",onClick:me(Ze),onKeyUp:_t=>{_t.key===" "&&_t.preventDefault(),Ze.props.onKeyUp&&Ze.props.onKeyUp(_t)},role:"option",selected:Tt,value:void 0,"data-value":Ze.props.value})});Pe&&(E?Le.length===0?He=null:He=Le.reduce((Ze,Tt,_t)=>(Ze.push(Tt),_t<Le.length-1&&Ze.push(", "),Ze),[]):He=yt);let Xe=Se;!s&&se&&ne&&(Xe=Ae.clientWidth);let mt;typeof q<"u"?mt=q:mt=g?null:0;const _e=j.id||(O?`mui-component-select-${O}`:void 0),Je={...t,variant:B,value:Q,open:ze,error:y},Fe=n9(Je),Qe={...M.PaperProps,...typeof M.slotProps?.paper=="function"?M.slotProps.paper(Je):M.slotProps?.paper},st={...M.MenuListProps,...typeof M.slotProps?.list=="function"?M.slotProps.list(Je):M.slotProps?.list},pt=Nt();return x.jsxs(m.Fragment,{children:[x.jsx(Zq,{as:"div",ref:ke,tabIndex:mt,role:"combobox","aria-controls":ze?pt:void 0,"aria-disabled":g?"true":void 0,"aria-expanded":ze?"true":"false","aria-haspopup":"listbox","aria-label":l,"aria-labelledby":[w,_e].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":I?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:tt,onMouseDown:g||H?null:$e,onBlur:et,onFocus:z,...j,ownerState:Je,className:Oe(j.className,Fe.select,d),id:_e,children:t9(He)?fA||(fA=x.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):He}),x.jsx(e9,{"aria-invalid":y,value:Array.isArray(Q)?Q.join(","):Q,name:O,ref:Z,"aria-hidden":!0,onChange:lt,tabIndex:-1,disabled:g,className:Fe.nativeInput,autoFocus:a,required:I,...J,ownerState:Je}),x.jsx(Jq,{as:C,className:Fe.icon,ownerState:Je}),x.jsx(P1,{id:`menu-${O||""}`,anchorEl:Ae,open:ze,onClose:Ve,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...M,slotProps:{...M.slotProps,list:{"aria-labelledby":w,role:"listbox","aria-multiselectable":E?"true":void 0,disableListWrap:!0,id:pt,...st},paper:{...Qe,style:{minWidth:Xe,...Qe!=null?Qe.style:null}}},children:Ke})]})}),o9=e=>{const{classes:t}=e,r=Be({root:["root"]},FL,t);return{...t,...r}},Dx={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Co(e)&&e!=="variant"},l9=ge(Vm,Dx)(""),i9=ge(_x,Dx)(""),a9=ge(Ox,Dx)(""),bc=m.forwardRef(function(t,n){const r=xt({name:"MuiSelect",props:t}),{autoWidth:l=!1,children:a,classes:s={},className:u,defaultOpen:d=!1,displayEmpty:f=!1,IconComponent:h=ML,id:g,input:b,inputProps:y,label:C,labelId:S,MenuProps:w,multiple:M=!1,native:E=!1,onClose:O,onOpen:P,open:R,renderValue:A,SelectDisplayProps:z,variant:k="outlined",...L}=r,H=E?Eq:r9,$=fi(),I=Ts({props:r,muiFormControl:$,states:["variant","error"]}),j=I.variant||k,q={...r,variant:j,classes:s},F=o9(q),{root:_,...B}=F,J=b||{standard:x.jsx(l9,{ownerState:q}),outlined:x.jsx(i9,{label:C,ownerState:q}),filled:x.jsx(a9,{ownerState:q})}[j],Q=tn(n,xc(J));return x.jsx(m.Fragment,{children:m.cloneElement(J,{inputComponent:H,inputProps:{children:a,error:I.error,IconComponent:h,variant:j,type:void 0,multiple:M,...E?{id:g}:{autoWidth:l,defaultOpen:d,displayEmpty:f,labelId:S,MenuProps:w,onClose:O,onOpen:P,open:R,renderValue:A,SelectDisplayProps:{id:g,...z}},...y,classes:y?vo(B,y.classes):B,...b?b.props.inputProps:{}},...(M&&E||f)&&j==="outlined"?{notched:!0}:{},ref:Q,className:Oe(J.props.className,u,F.root),...!b&&{variant:j},...L})})});bc.muiName="Select";function s9(e){return St("MuiSkeleton",e)}vt("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const c9=e=>{const{classes:t,variant:n,animation:r,hasChildren:l,width:a,height:s}=e;return Be({root:["root",n,r,l&&"withChildren",l&&!a&&"fitContent",l&&!s&&"heightAuto"]},s9,t)},R1=Fl`
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
`,A1=Fl`
  0% {
    transform: translateX(-100%);
  }

  50% {
    /* +0.5s of delay between each loop */
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
`,u9=typeof R1!="string"?Ss`
        animation: ${R1} 2s ease-in-out 0.5s infinite;
      `:null,d9=typeof A1!="string"?Ss`
        &::after {
          animation: ${A1} 2s linear 0.5s infinite;
        }
      `:null,f9=ge("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(ft(({theme:e})=>{const t=fG(e.shape.borderRadius)||"px",n=pG(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:u9||{animation:`${R1} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
                90deg,
                transparent,
                ${(e.vars||e).palette.action.hover},
                transparent
              )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:d9||{"&::after":{animation:`${A1} 2s linear 0.5s infinite`}}}]}})),p9=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiSkeleton"}),{animation:l="pulse",className:a,component:s="span",height:u,style:d,variant:f="text",width:h,...g}=r,b={...r,animation:l,component:s,variant:f,hasChildren:!!g.children},y=c9(b);return x.jsx(f9,{as:s,ref:n,className:Oe(y.root,a),ownerState:b,...g,style:{width:h,height:u,...d}})});function h9(e){return St("MuiTooltip",e)}const mr=vt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function g9(e){return Math.round(e*1e5)/1e5}const m9=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:l,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",l&&"touch",`tooltipPlacement${we(a.split("-")[0])}`],arrow:["arrow"]};return Be(s,h9,t)},b9=ge($p,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(ft(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${mr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${mr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${mr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${mr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${mr.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${mr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${mr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${mr.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),v9=ge("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${we(n.placement.split("-")[0])}`]]}})(ft(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${mr.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${mr.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${mr.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${mr.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${g9(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${mr.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${mr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${mr.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${mr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${mr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${mr.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${mr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${mr.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${mr.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${mr.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),y9=ge("span",{name:"MuiTooltip",slot:"Arrow"})(ft(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let bg=!1;const hA=new Lm;let Of={x:0,y:0};function vg(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const C9=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiTooltip"}),{arrow:l=!1,children:a,classes:s,components:u={},componentsProps:d={},describeChild:f=!1,disableFocusListener:h=!1,disableHoverListener:g=!1,disableInteractive:b=!1,disableTouchListener:y=!1,enterDelay:C=100,enterNextDelay:S=0,enterTouchDelay:w=700,followCursor:M=!1,id:E,leaveDelay:O=0,leaveTouchDelay:P=1500,onClose:R,onOpen:A,open:z,placement:k="bottom",PopperComponent:L,PopperProps:H={},slotProps:$={},slots:I={},title:j,TransitionComponent:q,TransitionProps:F,..._}=r,B=m.isValidElement(a)?a:x.jsx("span",{children:a}),J=ws(),Q=Po(),[D,G]=m.useState(),[W,Z]=m.useState(null),te=m.useRef(!1),ne=b||M,oe=$o(),se=$o(),Se=$o(),be=$o(),[de,ke]=ms({controlled:z,default:!1,name:"Tooltip",state:"open"});let Ae=de;const Ne=Nt(E),$e=m.useRef(),Ve=wt(()=>{$e.current!==void 0&&(document.body.style.WebkitUserSelect=$e.current,$e.current=void 0),be.clear()});m.useEffect(()=>Ve,[Ve]);const nt=Et=>{hA.clear(),bg=!0,ke(!0),A&&!Ae&&A(Et)},lt=wt(Et=>{hA.start(800+O,()=>{bg=!1}),ke(!1),R&&Ae&&R(Et),oe.start(J.transitions.duration.shortest,()=>{te.current=!1})}),me=Et=>{te.current&&Et.type!=="touchstart"||(D&&D.removeAttribute("title"),se.clear(),Se.clear(),C||bg&&S?se.start(bg?S:C,()=>{nt(Et)}):nt(Et))},tt=Et=>{se.clear(),Se.start(O,()=>{lt(Et)})},[,ze]=m.useState(!1),et=Et=>{Jg(Et.target)||(ze(!1),tt(Et))},He=Et=>{D||G(Et.currentTarget),Jg(Et.target)&&(ze(!0),me(Et))},yt=Et=>{te.current=!0;const Kn=B.props;Kn.onTouchStart&&Kn.onTouchStart(Et)},Le=Et=>{yt(Et),Se.clear(),oe.clear(),Ve(),$e.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",be.start(w,()=>{document.body.style.WebkitUserSelect=$e.current,me(Et)})},Pe=Et=>{B.props.onTouchEnd&&B.props.onTouchEnd(Et),Ve(),Se.start(P,()=>{lt(Et)})};m.useEffect(()=>{if(!Ae)return;function Et(Kn){Kn.key==="Escape"&&lt(Kn)}return document.addEventListener("keydown",Et),()=>{document.removeEventListener("keydown",Et)}},[lt,Ae]);const Ke=tn(xc(B),G,n);!j&&j!==0&&(Ae=!1);const Xe=m.useRef(),mt=Et=>{const Kn=B.props;Kn.onMouseMove&&Kn.onMouseMove(Et),Of={x:Et.clientX,y:Et.clientY},Xe.current&&Xe.current.update()},_e={},Je=typeof j=="string";f?(_e.title=!Ae&&Je&&!g?j:null,_e["aria-describedby"]=Ae?Ne:null):(_e["aria-label"]=Je?j:null,_e["aria-labelledby"]=Ae&&!Je?Ne:null);const Fe={..._e,..._,...B.props,className:Oe(_.className,B.props.className),onTouchStart:yt,ref:Ke,...M?{onMouseMove:mt}:{}},Qe={};y||(Fe.onTouchStart=Le,Fe.onTouchEnd=Pe),g||(Fe.onMouseOver=vg(me,Fe.onMouseOver),Fe.onMouseLeave=vg(tt,Fe.onMouseLeave),ne||(Qe.onMouseOver=me,Qe.onMouseLeave=tt)),h||(Fe.onFocus=vg(He,Fe.onFocus),Fe.onBlur=vg(et,Fe.onBlur),ne||(Qe.onFocus=He,Qe.onBlur=et));const st={...r,isRtl:Q,arrow:l,disableInteractive:ne,placement:k,PopperComponentProp:L,touch:te.current},pt=typeof $.popper=="function"?$.popper(st):$.popper,Ze=m.useMemo(()=>{let Et=[{name:"arrow",enabled:!!W,options:{element:W,padding:4}}];return H.popperOptions?.modifiers&&(Et=Et.concat(H.popperOptions.modifiers)),pt?.popperOptions?.modifiers&&(Et=Et.concat(pt.popperOptions.modifiers)),{...H.popperOptions,...pt?.popperOptions,modifiers:Et}},[W,H.popperOptions,pt?.popperOptions]),Tt=m9(st),_t=typeof $.transition=="function"?$.transition(st):$.transition,cn={slots:{popper:u.Popper,transition:u.Transition??q,tooltip:u.Tooltip,arrow:u.Arrow,...I},slotProps:{arrow:$.arrow??d.arrow,popper:{...H,...pt??d.popper},tooltip:$.tooltip??d.tooltip,transition:{...F,..._t??d.transition}}},[qn,cr]=Rt("popper",{elementType:b9,externalForwardedProps:cn,ownerState:st,className:Oe(Tt.popper,H?.className)}),[on,Wn]=Rt("transition",{elementType:Gu,externalForwardedProps:cn,ownerState:st}),[Gr,Cr]=Rt("tooltip",{elementType:v9,className:Tt.tooltip,externalForwardedProps:cn,ownerState:st}),[Vr,Ur]=Rt("arrow",{elementType:y9,className:Tt.arrow,externalForwardedProps:cn,ownerState:st,ref:Z});return x.jsxs(m.Fragment,{children:[m.cloneElement(B,Fe),x.jsx(qn,{as:L??$p,placement:k,anchorEl:M?{getBoundingClientRect:()=>({top:Of.y,left:Of.x,right:Of.x,bottom:Of.y,width:0,height:0})}:D,popperRef:Xe,open:D?Ae:!1,id:Ne,transition:!0,...Qe,...cr,popperOptions:Ze,children:({TransitionProps:Et})=>x.jsx(on,{timeout:J.transitions.duration.shorter,...Et,...Wn,children:x.jsxs(Gr,{...Cr,children:[j,l?x.jsx(Vr,{...Ur}):null]})})})]})});function S9(e){return St("MuiSwitch",e)}const xo=vt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),w9=e=>{const{classes:t,edge:n,size:r,color:l,checked:a,disabled:s}=e,u={root:["root",n&&`edge${we(n)}`,`size${we(r)}`],switchBase:["switchBase",`color${we(l)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=Be(u,S9,t);return{...t,...d}},x9=ge("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${we(n.edge)}`],t[`size${we(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${xo.thumb}`]:{width:16,height:16},[`& .${xo.switchBase}`]:{padding:4,[`&.${xo.checked}`]:{transform:"translateX(16px)"}}}}]}),M9=ge(Rx,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${xo.input}`]:t.input},n.color!=="default"&&t[`color${we(n.color)}`]]}})(ft(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${xo.checked}`]:{transform:"translateX(20px)"},[`&.${xo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${xo.checked} + .${xo.track}`]:{opacity:.5},[`&.${xo.disabled} + .${xo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${xo.input}`]:{left:"-100%",width:"300%"}})),ft(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Zn(["light"])).map(([t])=>({props:{color:t},style:{[`&.${xo.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${xo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${xo.checked} + .${xo.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),T9=ge("span",{name:"MuiSwitch",slot:"Track"})(ft(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),E9=ge("span",{name:"MuiSwitch",slot:"Thumb"})(ft(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),mp=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiSwitch"}),{className:l,color:a="primary",edge:s=!1,size:u="medium",sx:d,slots:f={},slotProps:h={},...g}=r,b={...r,color:a,edge:s,size:u},y=w9(b),C={slots:f,slotProps:h},[S,w]=Rt("root",{className:Oe(y.root,l),elementType:x9,externalForwardedProps:C,ownerState:b,additionalProps:{sx:d}}),[M,E]=Rt("thumb",{className:y.thumb,elementType:E9,externalForwardedProps:C,ownerState:b}),O=x.jsx(M,{...E}),[P,R]=Rt("track",{className:y.track,elementType:T9,externalForwardedProps:C,ownerState:b});return x.jsxs(S,{...w,children:[x.jsx(M9,{type:"checkbox",icon:O,checkedIcon:O,ref:n,ownerState:b,...g,classes:{...y,root:y.switchBase},slots:{...f.switchBase&&{root:f.switchBase},...f.input&&{input:f.input}},slotProps:{...h.switchBase&&{root:typeof h.switchBase=="function"?h.switchBase(b):h.switchBase},input:{role:"switch"},...h.input&&{input:typeof h.input=="function"?h.input(b):h.input}}}),x.jsx(P,{...R})]})}),P9=m.createContext(),R9=m.createContext();function A9(e){return St("MuiTableCell",e)}const O9=vt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),I9=e=>{const{classes:t,variant:n,align:r,padding:l,size:a,stickyHeader:s}=e,u={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${we(r)}`,l!=="normal"&&`padding${we(l)}`,`size${we(a)}`]};return Be(u,A9,t)},k9=ge("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${we(n.size)}`],n.padding!=="normal"&&t[`padding${we(n.padding)}`],n.align!=="inherit"&&t[`align${we(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(ft(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
    ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${O9.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),O1=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiTableCell"}),{align:l="inherit",className:a,component:s,padding:u,scope:d,size:f,sortDirection:h,variant:g,...b}=r,y=m.useContext(P9),C=m.useContext(R9),S=C&&C.variant==="head";let w;s?w=s:w=S?"th":"td";let M=d;w==="td"?M=void 0:!M&&S&&(M="col");const E=g||C&&C.variant,O={...r,align:l,component:w,padding:u||(y&&y.padding?y.padding:"normal"),size:f||(y&&y.size?y.size:"medium"),sortDirection:h,stickyHeader:E==="head"&&y&&y.stickyHeader,variant:E},P=I9(O);let R=null;return h&&(R=h==="asc"?"ascending":"descending"),x.jsx(k9,{as:w,ref:n,className:Oe(P.root,a),"aria-sort":R,scope:M,ownerState:O,...b})}),_9=Bn(x.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),D9=Bn(x.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function L9(e){return St("MuiTablePaginationActions",e)}vt("MuiTablePaginationActions",["root"]);const $9=e=>{const{classes:t}=e;return Be({root:["root"]},L9,t)},z9=ge("div",{name:"MuiTablePaginationActions",slot:"Root"})({}),F9=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiTablePaginationActions"}),{backIconButtonProps:l,className:a,count:s,disabled:u=!1,getItemAriaLabel:d,nextIconButtonProps:f,onPageChange:h,page:g,rowsPerPage:b,showFirstButton:y,showLastButton:C,slots:S={},slotProps:w={},...M}=r,E=Po(),P=$9(r),R=ne=>{h(ne,0)},A=ne=>{h(ne,g-1)},z=ne=>{h(ne,g+1)},k=ne=>{h(ne,Math.max(0,Math.ceil(s/b)-1))},L=S.firstButton??rl,H=S.lastButton??rl,$=S.nextButton??rl,I=S.previousButton??rl,j=S.firstButtonIcon??Dq,q=S.lastButtonIcon??Lq,F=S.nextButtonIcon??D9,_=S.previousButtonIcon??_9,B=E?H:L,J=E?$:I,Q=E?I:$,D=E?L:H,G=E?w.lastButton:w.firstButton,W=E?w.nextButton:w.previousButton,Z=E?w.previousButton:w.nextButton,te=E?w.firstButton:w.lastButton;return x.jsxs(z9,{ref:n,className:Oe(P.root,a),...M,children:[y&&x.jsx(B,{onClick:R,disabled:u||g===0,"aria-label":d("first",g),title:d("first",g),...G,children:E?x.jsx(q,{...w.lastButtonIcon}):x.jsx(j,{...w.firstButtonIcon})}),x.jsx(J,{onClick:A,disabled:u||g===0,color:"inherit","aria-label":d("previous",g),title:d("previous",g),...W??l,children:E?x.jsx(F,{...w.nextButtonIcon}):x.jsx(_,{...w.previousButtonIcon})}),x.jsx(Q,{onClick:z,disabled:u||(s!==-1?g>=Math.ceil(s/b)-1:!1),color:"inherit","aria-label":d("next",g),title:d("next",g),...Z??f,children:E?x.jsx(_,{...w.previousButtonIcon}):x.jsx(F,{...w.nextButtonIcon})}),C&&x.jsx(D,{onClick:k,disabled:u||g>=Math.ceil(s/b)-1,"aria-label":d("last",g),title:d("last",g),...te,children:E?x.jsx(j,{...w.firstButtonIcon}):x.jsx(q,{...w.lastButtonIcon})})]})});function H9(e){return St("MuiTablePagination",e)}const dc=vt("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var gA;const N9=ge(O1,{name:"MuiTablePagination",slot:"Root"})(ft(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),j9=ge(fL,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${dc.actions}`]:t.actions,...t.toolbar})})(ft(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${dc.actions}`]:{flexShrink:0,marginLeft:20}}))),B9=ge("div",{name:"MuiTablePagination",slot:"Spacer"})({flex:"1 1 100%"}),G9=ge("p",{name:"MuiTablePagination",slot:"SelectLabel"})(ft(({theme:e})=>({...e.typography.body2,flexShrink:0}))),V9=ge(bc,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${dc.selectIcon}`]:t.selectIcon,[`& .${dc.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${dc.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),U9=ge(ki,{name:"MuiTablePagination",slot:"MenuItem"})({}),q9=ge("p",{name:"MuiTablePagination",slot:"DisplayedRows"})(ft(({theme:e})=>({...e.typography.body2,flexShrink:0})));function W9({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function K9(e){return`Go to ${e} page`}const Y9=e=>{const{classes:t}=e;return Be({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},H9,t)},X9=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiTablePagination"}),{ActionsComponent:l=F9,backIconButtonProps:a,colSpan:s,component:u=O1,count:d,disabled:f=!1,getItemAriaLabel:h=K9,labelDisplayedRows:g=W9,labelRowsPerPage:b="Rows per page:",nextIconButtonProps:y,onPageChange:C,onRowsPerPageChange:S,page:w,rowsPerPage:M,rowsPerPageOptions:E=[10,25,50,100],SelectProps:O={},showFirstButton:P=!1,showLastButton:R=!1,slotProps:A={},slots:z={},...k}=r,L=r,H=Y9(L),$=A?.select??O,I=$.native?"option":U9;let j;(u===O1||u==="td")&&(j=s||1e3);const q=Nt($.id),F=Nt($.labelId),_=()=>d===-1?(w+1)*M:M===-1?d:Math.min(d,(w+1)*M),B={slots:z,slotProps:A},[J,Q]=Rt("root",{ref:n,className:H.root,elementType:N9,externalForwardedProps:{...B,component:u,...k},ownerState:L,additionalProps:{colSpan:j}}),[D,G]=Rt("toolbar",{className:H.toolbar,elementType:j9,externalForwardedProps:B,ownerState:L}),[W,Z]=Rt("spacer",{className:H.spacer,elementType:B9,externalForwardedProps:B,ownerState:L}),[te,ne]=Rt("selectLabel",{className:H.selectLabel,elementType:G9,externalForwardedProps:B,ownerState:L,additionalProps:{id:F}}),[oe,se]=Rt("select",{className:H.select,elementType:V9,externalForwardedProps:B,ownerState:L}),[Se,be]=Rt("menuItem",{className:H.menuItem,elementType:I,externalForwardedProps:B,ownerState:L}),[de,ke]=Rt("displayedRows",{className:H.displayedRows,elementType:q9,externalForwardedProps:B,ownerState:L});return x.jsx(J,{...Q,children:x.jsxs(D,{...G,children:[x.jsx(W,{...Z}),E.length>1&&x.jsx(te,{...ne,children:b}),E.length>1&&x.jsx(oe,{variant:"standard",...!$.variant&&{input:gA||(gA=x.jsx(cd,{}))},value:M,onChange:S,id:q,labelId:F,...$,classes:{...$.classes,root:Oe(H.input,H.selectRoot,($.classes||{}).root),select:Oe(H.select,($.classes||{}).select),icon:Oe(H.selectIcon,($.classes||{}).icon)},disabled:f,...se,children:E.map(Ae=>m.createElement(Se,{...be,key:Ae.label?Ae.label:Ae,value:Ae.value?Ae.value:Ae},Ae.label?Ae.label:Ae))}),x.jsx(de,{...ke,children:g({from:d===0?0:w*M+1,to:_(),count:d===-1?-1:d,page:w})}),x.jsx(l,{className:H.actions,backIconButtonProps:a,count:d,nextIconButtonProps:y,onPageChange:C,page:w,rowsPerPage:M,showFirstButton:P,showLastButton:R,slotProps:A.actions,slots:z.actions,getItemAriaLabel:h,disabled:f})]})})});function Q9(e){return St("MuiTextField",e)}vt("MuiTextField",["root"]);const Z9={standard:Vm,filled:Ox,outlined:_x},J9=e=>{const{classes:t}=e;return Be({root:["root"]},Q9,t)},e8=ge(Yu,{name:"MuiTextField",slot:"Root"})({}),ud=m.forwardRef(function(t,n){const r=xt({props:t,name:"MuiTextField"}),{autoComplete:l,autoFocus:a=!1,children:s,className:u,color:d="primary",defaultValue:f,disabled:h=!1,error:g=!1,FormHelperTextProps:b,fullWidth:y=!1,helperText:C,id:S,InputLabelProps:w,inputProps:M,InputProps:E,inputRef:O,label:P,maxRows:R,minRows:A,multiline:z=!1,name:k,onBlur:L,onChange:H,onFocus:$,placeholder:I,required:j=!1,rows:q,select:F=!1,SelectProps:_,slots:B={},slotProps:J={},type:Q,value:D,variant:G="outlined",...W}=r,Z={...r,autoFocus:a,color:d,disabled:h,error:g,fullWidth:y,multiline:z,required:j,select:F,variant:G},te=J9(Z),ne=Nt(S),oe=C&&ne?`${ne}-helper-text`:void 0,se=P&&ne?`${ne}-label`:void 0,Se=Z9[G],be={slots:B,slotProps:{input:E,inputLabel:w,htmlInput:M,formHelperText:b,select:_,...J}},de={},ke=be.slotProps.inputLabel;G==="outlined"&&(ke&&typeof ke.shrink<"u"&&(de.notched=ke.shrink),de.label=P),F&&((!_||!_.native)&&(de.id=void 0),de["aria-describedby"]=void 0);const[Ae,Ne]=Rt("root",{elementType:e8,shouldForwardComponentProp:!0,externalForwardedProps:{...be,...W},ownerState:Z,className:Oe(te.root,u),ref:n,additionalProps:{disabled:h,error:g,fullWidth:y,required:j,color:d,variant:G}}),[$e,Ve]=Rt("input",{elementType:Se,externalForwardedProps:be,additionalProps:de,ownerState:Z}),[nt,lt]=Rt("inputLabel",{elementType:hp,externalForwardedProps:be,ownerState:Z}),[me,tt]=Rt("htmlInput",{elementType:"input",externalForwardedProps:be,ownerState:Z}),[ze,et]=Rt("formHelperText",{elementType:TU,externalForwardedProps:be,ownerState:Z}),[He,yt]=Rt("select",{elementType:bc,externalForwardedProps:be,ownerState:Z}),Le=x.jsx($e,{"aria-describedby":oe,autoComplete:l,autoFocus:a,defaultValue:f,fullWidth:y,multiline:z,name:k,rows:q,maxRows:R,minRows:A,type:Q,value:D,id:ne,inputRef:O,onBlur:L,onChange:H,onFocus:$,placeholder:I,inputProps:tt,slots:{input:B.htmlInput?me:void 0},...Ve});return x.jsxs(Ae,{...Ne,children:[P!=null&&P!==""&&x.jsx(nt,{htmlFor:ne,id:se,...lt,children:P}),F?x.jsx(He,{"aria-describedby":oe,id:ne,labelId:se,value:D,input:Le,...yt,children:s}):Le,C&&x.jsx(ze,{id:oe,...et,children:C})]})}),t8="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAHmUExURRUoRhsuTgQUKAIGEwcTJwkUKDhCUgAAABUnRRcqSxMnRAoVKhcoRRYpSQUNHBEeNCIRIgcSJBIkRBwoPRQoRwsVJwEGKRgrTBIfPa8ABf+gLFw5JhUiOK7XAP+lKwwaMQIDBsUDAxEkRgoiSPudLE5pEz6uyM8DAwYKGmeCCwUIDRAiQRgkORxjihcpRwwlQwMQIDosXf+rLJZq2QsfODUQHx0uQd4CAAsaJxxWa0C0ztICAj9UGbQABEO61LjjACAlLiYsNxYmISUzVlULGEZiFbsCBAEWKgsZLLXfAC0pTAEOKAoqSlU6KL3pAC80P8w0c8h3Lh0SJBpJYE01KE45Kb1yLl5GKWd9A22HBi5BGz9PaotaKj1LY0dUax8yUSUwQyAoScgCAmomT8IzcLstZNg3eVtDjY1lzSdifxQTJXVMpjqivBdAVJ8GCseAMsuDMismKcEDBGILFyp1jC4RIXORC9kDAowDDJi8AjYrKOQDAYEIER1okNOFLKDIAt6QKxceKZZmKrlvLjFBXzBBX1ENGqgxaSQeNUIfN4soVyVeeoFev5gtYLAsYmRMmVkaMDo5Qp5x4wYRKjwgOWVQPgwrPG5JnlhHP1I8MxxWgFduG7huLhE2U5ZiOjhVLcJ0LjyqxOcUrVYAAAJzSURBVDjLhdP3V9pQFAfwEPNqyECCIEsQmYIaREBExAoiInXvvbd111FX1e699/pXe2MYaj3t94d7cl8+eUlOcrHc/wQTiqv9xjVpN6VBZOzhuOSvjD8YqxdBZFhRqqAoiqTcbjeVCSwO1wvANVqK8RiGMcrJZDIpHKXCk4pRE4BIg0JcZR53zHRMu7OEVzTUA5hQk+enqcmZuY65Z01sdg9SPQGgSkqmLng5+2p2uqJImQXSKgD5KcBQDR6PJ4/jsoKU5l8ApPSFd8E7L6Oz4hJQUpIFr/fdaxmNQEhZlr26A4bNL39e9lTQCIQGQqZAWRoouoPB4CcOIUQkgouLzyUkKS27AEj17Rp73Z0SGtGylRq7vaZbw14GEhEkqqtlK3V2e103IYLC9C3Ib0flRz8LhPjKIT6uSH0JmL8PDgwODe0M7tiiA07nQPQ95ysEkCcC3lx1r9nQ5nS2GZrv1jYbDDdrC1RIlQI8z/DKawAtEwFjtpjNFstvW6MtGoUyhDfabI3VBJECjOXt2vr6Wvuvzvudra1QRjZ+9PX1beAoAz4arTpj/4nRWnl2Vmk1nvQbddbK/luqDPiis+p0vccARkYAHPfqYKE3A+Ahv+r1Pfi+vlV/egplH++BHj5KeoeWD2GtVru9F9bGY7G4Nry3DW3Yj4s7JNRMy5uAIxSIxXcdB4eHB47deCwQcgQeNanoEgAyAE+niouL/auOzdDWVmjTseqHdsrfhBIuYS4YllQ+kcu78CW5XI4QlCW8S+gJxJ0PTg4PwofjCIcQhFBVQoEfwySOnkvDs2oNfTWowpQe3twcDt4o50pM2en+V/4ADiuBy0gwQ9YAAABXelRYdFJhdyBwcm9maWxlIHR5cGUgaXB0YwAAeJzj8gwIcVYoKMpPy8xJ5VIAAyMLLmMLEyMTS5MUAxMgRIA0w2QDI7NUIMvY1MjEzMQcxAfLgEigSi4A6hcRdPJCNZUAAAAASUVORK5CYII=",mA=Bn(x.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),n8=Bn(x.jsx("path",{d:"M12 11.55C9.64 9.35 6.48 8 3 8v11c3.48 0 6.64 1.35 9 3.55 2.36-2.19 5.52-3.55 9-3.55V8c-3.48 0-6.64 1.35-9 3.55M12 8c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3"})),r8=Bn(x.jsx("path",{d:"M10 20h4V4h-4zm-6 0h4v-8H4zM16 9v11h4V9z"})),o8=Bn(x.jsx("path",{d:"M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m7-7H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-1.75 9c0 .23-.02.46-.05.68l1.48 1.16c.13.11.17.3.08.45l-1.4 2.42c-.09.15-.27.21-.43.15l-1.74-.7c-.36.28-.76.51-1.18.69l-.26 1.85c-.03.17-.18.3-.35.3h-2.8c-.17 0-.32-.13-.35-.29l-.26-1.85c-.43-.18-.82-.41-1.18-.69l-1.74.7c-.16.06-.34 0-.43-.15l-1.4-2.42c-.09-.15-.05-.34.08-.45l1.48-1.16c-.03-.23-.05-.46-.05-.69s.02-.46.05-.68l-1.48-1.16c-.13-.11-.17-.3-.08-.45l1.4-2.42c.09-.15.27-.21.43-.15l1.74.7c.36-.28.76-.51 1.18-.69l.26-1.85c.03-.17.18-.3.35-.3h2.8c.17 0 .32.13.35.29l.26 1.85c.43.18.82.41 1.18.69l1.74-.7c.16-.06.34 0 .43.15l1.4 2.42c.09.15.05.34-.08.45l-1.48 1.16c.03.23.05.46.05.69"})),bA=Bn(x.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),l8=Bn(x.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),i8=Bn(x.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"})),HL=Bn(x.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Lx=Bn(x.jsx("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"})),a8=Bn(x.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"})),s8=Bn(x.jsx("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"})),c8=Bn(x.jsx("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"})),$x=({availableDevices:e,setSelectedDeviceName:t,selectedDeviceName:n,selectedNav:r,setSelectedNav:l,children:a})=>{const s="mobile-menu",[u,d]=nl.useState(null),f=!!u,h=()=>{d(null)},g=k=>{d(k.currentTarget)},[b,y]=nl.useState(null),C=!!b,S=k=>{y(k.currentTarget)},w=()=>{y(null)},M=["Catalogue"];n&&e&&(e[n].type==="minidsp"||e[n].type==="camilladsp")&&M.push("Levels"),n&&e&&e[n].type==="minidsp"&&M.push("Control");const E={Catalogue:x.jsx(n8,{}),Levels:x.jsx(r8,{}),Control:x.jsx(o8,{})},O=M.map(k=>x.jsxs(ki,{onClick:L=>l(k.toLowerCase()),children:[r===k.toLowerCase()?x.jsx(rm,{children:x.jsx(bA,{})}):null,x.jsx(E1,{inset:r!==k.toLowerCase(),children:k}),E[k]]},k)),P=e&&Object.keys(e).length>1?Object.keys(e).map(k=>x.jsxs(ki,{value:k,onClick:L=>t(e[k].name),children:[n&&k===n?x.jsx(rm,{children:x.jsx(bA,{})}):null,x.jsx(E1,{inset:!n||k!==n,children:k})]},k)):null,R=x.jsxs(P1,{id:s,anchorEl:u,anchorOrigin:{vertical:"top",horizontal:"right"},keepMounted:!0,transformOrigin:{vertical:"top",horizontal:"right"},open:f,onClose:h,children:[O,P?x.jsx(pp,{}):null,P]}),A=x.jsxs(P1,{id:"main-menu",anchorEl:b,open:C,onClose:w,onClick:w,PaperProps:{elevation:0,sx:{overflow:"visible",filter:"drop-shadow(0px 2px 8px rgba(0,0,0,0.32))",mt:1.5,"& .MuiAvatar-root":{width:32,height:32,ml:-.5,mr:1},"&:before":{content:'""',display:"block",position:"absolute",top:0,right:14,width:10,height:10,bgcolor:"background.paper",transform:"translateY(-50%) rotate(45deg)",zIndex:0}}},transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},children:[O,P?x.jsx(pp,{}):null,P]}),z=e&&Object.keys(e).length>1||M.length>1;return x.jsxs(us,{sx:{flexGrow:1},children:[x.jsx(D4,{position:"static",sx:{marginLeft:"0px",marginTop:"0px"},children:x.jsxs(fL,{disableGutters:!0,children:[x.jsx(EL,{alt:"beqcatalogue",variant:"rounded",src:t8,sx:{width:32,height:32,marginLeft:"12px"}}),x.jsx(us,{sx:{flexGrow:.5}}),a,x.jsx(us,{sx:{flexGrow:.5,flexShrink:2}}),x.jsx(us,{sx:{display:{xs:"none",md:"flex"},marginRight:"8px"},children:z?x.jsx(rl,{onClick:S,size:"small",sx:{ml:2},"aria-controls":C?"device-menu":void 0,"aria-haspopup":"true","aria-expanded":C?"true":void 0,children:x.jsx(mA,{})}):null}),x.jsx(us,{sx:{display:{xs:"flex",md:"none"},marginRight:"8px"},children:z?x.jsx(rl,{size:"large","aria-label":"show more","aria-controls":s,"aria-haspopup":"true",onClick:g,children:x.jsx(mA,{})}):null})]})}),R,A]})},ec=({items:e,selectedValues:t,label:n,placeholder:r="",noOptionsText:l,limitTags:a,onToggleOption:s,onCreateOption:u,onClearOptions:d,getOptionLabel:f=g=>g,isInView:h=g=>!0})=>{const g=(S,w,M)=>{M==="selectOption"||M==="removeOption"?s&&s(w):M==="clear"?d&&d():M==="createOption"?u&&u(w):console.log(`Event: ${S} Value: ${w} Reason: ${M}`)},b=S=>({textDecoration:h(S)?"none":"line-through"}),y=(S,w,{selected:M})=>x.jsxs("li",{...S,children:[x.jsx(Ax,{color:"primary",icon:x.jsx(i8,{fontSize:"small"}),checkedIcon:x.jsx(l8,{fontSize:"small"}),style:{marginRight:8},checked:M}),x.jsx("div",{style:b(w),children:f(w)})]}),C=S=>x.jsx(ud,{variant:"standard",...S,label:n,placeholder:r});return x.jsx(TL,{multiple:!0,size:"small",disableCloseOnSelect:!0,freeSolo:typeof d<"u",selectOnFocus:!0,handleHomeEndKeys:!0,limitTags:a,options:e,value:t,noOptionsText:l,onChange:g,renderOption:y,renderInput:C,getOptionLabel:f})};ec.defaultProps={limitTags:5,items:[],selectedValues:[]};const u8=({visible:e,selectedAudioTypes:t,setSelectedAudioTypes:n,selectedFreshness:r,setSelectedFreshness:l,selectedYears:a,setSelectedYears:s,selectedLanguages:u,setSelectedLanguages:d,selectedAuthors:f,setSelectedAuthors:h,selectedContentTypes:g,setSelectedContentTypes:b,filteredEntries:y,setError:C})=>{const S=["Fresh","Updated","Stale"],[w,M]=m.useState([]),[E,O]=m.useState([]),[P,R]=m.useState([]),[A,z]=m.useState([]),[k,L]=m.useState([]),[H,$]=m.useState([]),[I,j]=m.useState([]),[q,F]=m.useState([]),[_,B]=m.useState([]);m.useEffect(()=>{Ml(M,tl.getAuthors,C)},[C]),m.useEffect(()=>{Ml(O,tl.getLanguages,C)},[C]),m.useEffect(()=>{Ml(R,tl.getYears,C)},[C]),m.useEffect(()=>{Ml(z,tl.getAudioTypes,C)},[C]),m.useEffect(()=>{Ml(L,tl.getContentTypes,C)},[C]),m.useEffect(()=>{Ml($,()=>[...new Set(y.map(W=>W.year))],C),Ml(j,()=>[...new Set(y.map(W=>W.audioTypes).flat())],C),Ml(B,()=>[...new Set(y.map(W=>W.freshness).flat())],C),Ml(F,()=>[...new Set(y.map(W=>W.language))],C)},[y,C]);const J=W=>{const Z=A.filter(te=>W.some(ne=>ne===te||te.toLowerCase().indexOf(ne.toLowerCase())>-1));n(Z)},Q=W=>{const Z=S.filter(te=>W.some(ne=>ne===te||te.toLowerCase().indexOf(ne.toLowerCase())>-1));l(Z)},D=W=>{const Z=P.filter(te=>W.some(ne=>ne===te||`${te}`.indexOf(ne)>-1));s(Z)},G=W=>{const Z=E.filter(te=>W.some(ne=>ne===te||te.toLowerCase().indexOf(ne.toLowerCase())>-1));d(Z)};return e?x.jsxs(us,{sx:{margin:"8px"},children:[x.jsx(ec,{items:k,selectedValues:g,label:"Content Types",onToggleOption:W=>b(W),onClearOptions:()=>b([])}),x.jsx(ec,{items:w,selectedValues:f,label:"Author",onToggleOption:W=>h(W),onClearOptions:()=>h([])}),x.jsx(ec,{items:P,selectedValues:a,label:"Year",onToggleOption:W=>s(W),onCreateOption:W=>D(W),onClearOptions:()=>s([]),getOptionLabel:W=>`${W}`,isInView:W=>H.length===0||H.indexOf(W)>-1}),x.jsx(ec,{items:A,selectedValues:t,label:"Audio Types",onToggleOption:W=>n(W),onCreateOption:W=>J(W),onClearOptions:()=>n([]),isInView:W=>I.length===0||I.indexOf(W)>-1}),x.jsx(ec,{items:S,selectedValues:r,label:"Fresh",onToggleOption:W=>l(W),onCreateOption:W=>Q(W),onClearOptions:()=>l([]),isInView:W=>_.length===0||_.indexOf(W)>-1}),x.jsx(ec,{items:E,selectedValues:u,label:"Language",onToggleOption:W=>d(W),onCreateOption:W=>G(W),onClearOptions:()=>d([]),isInView:W=>q.length===0||q.indexOf(W)>-1})]}):null},yu="Gain",Il={root:`${yu}-root`,padTop:`${yu}-padTop`,withoutLabel:`${yu}-withoutLabel`,sized:`${yu}-sized`,zeroPad:`${yu}-zeroPad`,tightPad:`${yu}-tightPad`};ge("div/")(({theme:e})=>({[`& .${Il.padTop}`]:{paddingTop:e.spacing(1),width:"100%"},[`& .${Il.withoutLabel}`]:{marginTop:e.spacing(1)},[`& .${Il.sized}`]:{margin:e.spacing(.5),width:"22.5%"},[`& .${Il.zeroPad}`]:{padding:0},[`& .${Il.tightPad}`]:{paddingRight:0}}));const d8=ud,vA=({fieldName:e,helpText:t,minGain:n,maxGain:r,step:l,dp:a,savedValues:s,values:u,setMV:d,setMute:f})=>{const h=1.1.toLocaleString().substring(1,2),g="^[0-9]$",b=h==="."?/\./g:new RegExp(h,"g"),y=1/l,C=parseFloat(u.mv)!==parseFloat(s.mv)||u.mute!==s.mute,S=(M,E)=>{const O=Math.round(M*y)/y;O>r?d(r.toFixed(E)):O<n?d(n.toFixed(E)):d(O.toFixed(E))},w=M=>{if(M)if(M==="-")d(M);else if(r===0&&M.match(g))d(`-${M}`);else{const E=(M.match(b)||[]).length;if(E===0){const O=parseFloat(M);isNaN(O)||S(O,0)}else if(E===1)if(M.charAt(M.length-1)===h)d(M);else{const O=parseFloat(M);if(!isNaN(O))if(a>1){const P=u.mv;Math.abs(O)<Math.abs(P)||M.length<P.toString().length?d(M):S(O,a)}else S(O,a)}}else d("")};return x.jsx(d8,{className:Oe(Il.sized,Il.withoutLabel,Il.tightPad),variant:"outlined",id:e,value:u.mv,onChange:M=>w(M.target.value),"aria-describedby":`${e}-helper-text`,InputProps:{endAdornment:x.jsx(OL,{position:"end",children:x.jsx(rl,{"aria-label":"mute channel",onClick:M=>f(!u.mute),className:Il.zeroPad,color:C?"secondary":"default",size:"large",children:u.mute?x.jsx(s8,{fontSize:"small"}):x.jsx(c8,{fontSize:"small"})})})},inputProps:{"aria-label":e,pattern:"",inputMode:"numeric"},margin:"dense",size:"small",label:t,classes:{root:Il.root}})},f8=({selectedSlotId:e,deviceGains:t,gains:n,updateGain:r,sendGains:l,isActive:a})=>{const[s,u]=m.useState(!0);return m.useEffect(()=>{u(isNaN(n.master_mv)||n.gains.some(d=>isNaN(d.value)))},[n]),e!==null?x.jsx("div",{className:Il.padTop,children:x.jsx(Yu,{variant:"standard",component:"fieldset",children:x.jsxs(Gm,{row:!0,children:[x.jsx(vA,{fieldName:"master-gain",helpText:"Master",minGain:-127,maxGain:0,step:.5,dp:1,savedValues:{mv:t.master_mv,mute:t.master_mute},values:{mv:n.master_mv,mute:n.master_mute},setMV:d=>r("master","mv",d),setMute:d=>r("master","mute",d)}),n.gains.map((d,f)=>x.jsx(vA,{fieldName:`input${d.id}-gain`,helpText:`Input ${d.id}`,minGain:-72,maxGain:12,step:.25,dp:2,savedValues:{mv:t.gains[f].value,mute:t.mutes[f].value},values:{mv:n.gains[f].value,mute:n.mutes[f].value},setMV:h=>r(d.id,"mv",h),setMute:h=>r(d.id,"mute",h)},`input${d.id}`)),x.jsx(uc,{variant:"outlined",size:"small",color:"primary",className:Il.sized,onClick:()=>l(e,n),disabled:s,startIcon:a()?x.jsx(Mc,{size:24}):x.jsx(Lx,{fontSize:"small"}),children:"Apply"})]})})}):x.jsx("div",{})},Fy="Slots",fc={root:`${Fy}-root`,container:`${Fy}-container`,fullWidth:`${Fy}-fullWidth`},p8=ge(En)(({theme:e})=>({[`& .${fc.root}`]:{display:"flex",width:"100%"},[`& .${fc.container}`]:{paddingLeft:4,paddingRight:4},[`& .${fc.fullWidth}`]:{marginRight:0}})),h8=ge(xs,{shouldForwardProp:e=>e!=="slotIsSelected"})(({theme:e,slotIsSelected:t})=>({margin:`${e.spacing(.5)} auto`,padding:e.spacing(.5),flexGrow:1,backgroundColor:t?e.palette.action.selected:e.palette.background.default,display:"flex"})),g8=ge(En)(({theme:e})=>({padding:4,paddingLeft:8,"&:last-child":{paddingBottom:4}})),m8=ge(rl)(({theme:e})=>({float:"right"})),Hy=(e,t,n)=>{const r=e.find(l=>l.slotId===n&&l.action===t);return r?r.state:-1},b8=(e,t)=>e.reduce((n,r,l)=>(l%t?n[n.length-1].push(r):n.push([r]))&&n,[]),yA={master_mv:0,master_mute:!1,gains:[],mutes:[]},v8=({selected:e,slot:t,onSelect:n,isPending:r,onClear:l})=>{const a=t.author?` (${t.author})`:"";return x.jsx(h8,{slotIsSelected:e,children:x.jsxs(p8,{container:!0,justifyContent:"space-between",alignItems:"center",children:[x.jsx(g8,{onClick:n,size:{xs:8},className:`${fc.content}`,children:x.jsxs(bo,{component:"p",variant:"body2",children:[t.name?t.name:t.id,": ",t.last,a]})}),x.jsx(En,{size:{xs:4},children:x.jsx(m8,{onClick:l,disabled:r,className:fc.right,size:"large",children:r?x.jsx(Mc,{size:32}):x.jsx(HL,{fontSize:"large"})})})]})})},y8=({selectedDevice:e,selectedSlotId:t,useWide:n,setDevice:r,setUserDriven:l,setError:a})=>{const[s,u]=m.useState([]),[d,f]=m.useState(yA),[h,g]=m.useState({}),b=m.useCallback((P,R,A)=>{const z=JSON.parse(JSON.stringify(d));let k=!0;if(R==="mv")if(P==="master")z.master_mv=A;else{const L=z.gains.find(H=>H.id===P);L?L.value=A:k=!1}else if(R==="mute")if(P==="master")z.master_mute=A;else{const L=z.mutes.find(H=>H.id===P);L?L.value=A:k=!1}else k=!1;k?f(z):console.warn(`Ignoring unknown update : ${P}.${R}=${A}`)},[d,f]);m.useEffect(()=>{if(e){const P={...yA};if(P.master_mv=e.masterVolume,P.master_mute=e.mute,t&&e&&e.hasOwnProperty("slots")){const R=e.slots.find(A=>A.id===t);P.gains=R.hasOwnProperty("gains")?R.gains:[],P.mutes=R.hasOwnProperty("mutes")?R.mutes:[]}g(P),f(P)}},[e,t]);const y=async(P,R,A,z=null)=>{u(k=>[{slotId:R,action:P,state:1}].concat(k));try{const k=await A();u(L=>L.filter(H=>!(H.slotId===R&&H.action===P))),r(k),z&&z()}catch(k){a(k),u(L=>L.map(H=>H.slotId===R&&H.action===P?{slotId:R,action:P,state:2}:H))}},C=(P,R)=>{y("gain",P,()=>tl.setGains(e.name,P,R))},S=P=>{y("clear",P,()=>tl.clearSlot(e.name,P))},w=P=>{y("activate",P,()=>tl.activateSlot(e.name,P),()=>l(!0))},M=P=>Hy(s,"clear",P)===1||Hy(s,"activate",P)===1,O=b8(e&&e.hasOwnProperty("slots")?e.slots:[],2).map((P,R)=>x.jsx(En,{container:!0,className:fc.root,children:P.map((A,z)=>x.jsx(En,{container:!0,size:{xs:P.length===1?12:6},className:fc.container,children:x.jsx(v8,{selected:A.id===t,slot:A,onSelect:()=>w(A.id),onClear:()=>S(A.id),isPending:M(A.id)})},z))},R));if(e&&e.hasOwnProperty("masterVolume")){const P=x.jsx(f8,{selectedSlotId:t,deviceGains:h,gains:d,updateGain:b,sendGains:C,isActive:()=>Hy(s,"gain",t)===1});return n?x.jsxs(us,{sx:{flexGrow:1},children:[O,x.jsx(En,{container:!0,children:P})]}):x.jsxs(us,{sx:{flexGrow:1},children:[x.jsx(En,{container:!0,direction:"column",children:O}),x.jsx(En,{container:!0,direction:"column",children:P})]})}else return n?x.jsx(En,{container:!0,children:O}):x.jsx(En,{container:!0,direction:"column",children:O})},C8=parseInt(m.version,10),ht=e=>{if(C8>=19){const t=n=>e(n,n.ref??null);return t.displayName=e.displayName??e.name,t}return m.forwardRef(e)},Ln=Bn,CA=Ln(x.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"})),SA=Ln(x.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"})),wA=Ln(x.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),xA=Ln(x.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),S8=Ln(x.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"})),MA=Ln(x.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"})),w8=Ln(x.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}));Ln(x.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}));Ln(x.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}));const x8=Ln(x.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"})),M8=Ln(x.jsx("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"})),T8=Ln(x.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"})),E8=Ln(x.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"})),P8=Ln(x.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"})),R8=Ln(x.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),TA=Ln(x.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),EA=Ln(x.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})),A8=Ln(x.jsx("path",{d:"M19 13H5v-2h14v2z"})),O8=Ln(x.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"})),PA=Ln(x.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),RA=Ln(x.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),I8=Ln(x.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),k8=Ln(x.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"})),_8=Ln(x.jsx("g",{children:x.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})})),AA=Ln(x.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}));Ln(x.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}));const D8=Ln(x.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"})),L8=Ln(x.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"})),NL=m.createContext(void 0);function Mt(){const e=m.useContext(NL);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
`));return e}const jL=m.createContext(void 0),We=()=>{const e=m.useContext(jL);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},$8=new TextEncoder;let Lg=2*1024,tp=new ArrayBuffer(Lg),Ny=new Uint8Array(tp),Qs=new Int32Array(tp);const z8=F8;function F8(e){const t=e.length*2;t>Lg&&(Lg=t+(4-t%4),tp=new ArrayBuffer(Lg),Ny=new Uint8Array(tp),Qs=new Int32Array(tp));const n=$8.encodeInto(e,Ny).written,r=0,l=n|0;let a=0,s=(r+l|0)+374761393|0;if(l<16)for(;(a+3|0)<l;a=a+4|0)s=Math.imul(Zl(s+Math.imul(Qs[a]|0,3266489917)|0,17)|0,668265263);else{let u=r+606290984|0,d=r+2246822519|0,f=r,h=r-2654435761|0;for(;(a+15|0)<l;a=a+16|0)u=Math.imul(Zl(u+Math.imul(Qs[a+0|0]|0,2246822519)|0,13)|0,2654435761),d=Math.imul(Zl(d+Math.imul(Qs[a+4|0]|0,2246822519)|0,13)|0,2654435761),f=Math.imul(Zl(f+Math.imul(Qs[a+8|0]|0,2246822519)|0,13)|0,2654435761),h=Math.imul(Zl(h+Math.imul(Qs[a+12|0]|0,2246822519)|0,13)|0,2654435761);for(s=(((Zl(u,1)|0+Zl(d,7)|0)+Zl(f,12)|0)+Zl(h,18)|0)+l|0;(a+3|0)<l;a=a+4|0)s=Math.imul(Zl(s+Math.imul(Qs[a]|0,3266489917)|0,17)|0,668265263)}for(;a<l;a=a+1|0)s=Math.imul(Zl(s+Math.imul(Ny[a]|0,374761393)|0,11)|0,2654435761);return s=Math.imul(s^s>>>15,2246822519),s=Math.imul(s^s>>>13,3266489917),((s^s>>>16)>>>0).toString()}function Zl(e,t){return e<<t|e>>>32-t}function H8(e){const t=new WeakSet;return JSON.stringify(e,(n,r)=>{if(typeof window<"u"&&r===window||typeof document<"u"&&r===document)return r.toString();if(r!==null&&typeof r=="object"){if(t.has(r))return null;t.add(r)}return r})}const BL={values:{xs:0,sm:600,md:900,lg:1200,xl:1536},up:e=>{const t=BL.values;return`@media (min-width:${typeof t[e]=="number"?t[e]:e}px)`}},GL={spacingUnit:"--DataGrid-t-spacing-unit",colors:{border:{base:"--DataGrid-t-color-border-base"},foreground:{base:"--DataGrid-t-color-foreground-base",muted:"--DataGrid-t-color-foreground-muted",accent:"--DataGrid-t-color-foreground-accent",disabled:"--DataGrid-t-color-foreground-disabled",error:"--DataGrid-t-color-foreground-error"},background:{base:"--DataGrid-t-color-background-base",overlay:"--DataGrid-t-color-background-overlay",backdrop:"--DataGrid-t-color-background-backdrop"},interactive:{hover:"--DataGrid-t-color-interactive-hover",hoverOpacity:"--DataGrid-t-color-interactive-hover-opacity",focus:"--DataGrid-t-color-interactive-focus",focusOpacity:"--DataGrid-t-color-interactive-focus-opacity",disabled:"--DataGrid-t-color-interactive-disabled",disabledOpacity:"--DataGrid-t-color-interactive-disabled-opacity",selected:"--DataGrid-t-color-interactive-selected",selectedOpacity:"--DataGrid-t-color-interactive-selected-opacity"}},header:{background:{base:"--DataGrid-t-header-background-base"}},cell:{background:{pinned:"--DataGrid-t-cell-background-pinned"}},radius:{base:"--DataGrid-t-radius-base"},typography:{font:{body:"--DataGrid-t-typography-font-body",small:"--DataGrid-t-typography-font-small",large:"--DataGrid-t-typography-font-large"},fontFamily:{base:"--DataGrid-t-typography-font-family-base"},fontWeight:{light:"--DataGrid-t-typography-font-weight-light",regular:"--DataGrid-t-typography-font-weight-regular",medium:"--DataGrid-t-typography-font-weight-medium",bold:"--DataGrid-t-typography-font-weight-bold"}},transitions:{easing:{easeIn:"--DataGrid-t-transition-easing-ease-in",easeOut:"--DataGrid-t-transition-easing-ease-out",easeInOut:"--DataGrid-t-transition-easing-ease-in-out"},duration:{short:"--DataGrid-t-transition-duration-short",base:"--DataGrid-t-transition-duration-base",long:"--DataGrid-t-transition-duration-long"}},shadows:{base:"--DataGrid-t-shadow-base",overlay:"--DataGrid-t-shadow-overlay"},zIndex:{panel:"--DataGrid-t-z-index-panel",menu:"--DataGrid-t-z-index-menu"}},N8=VL(GL),Ye=N({breakpoints:BL,spacing:j8,transition:B8,keys:GL},N8);function j8(e,t,n,r){return e===void 0?Jl(1):t===void 0?Jl(e):n===void 0?Jl(e)+" "+Jl(t):r===void 0?Jl(e)+" "+Jl(t)+" "+Jl(n):Jl(e)+" "+Jl(t)+" "+Jl(n)+" "+Jl(r)}function Jl(e){return e===0?"0":`calc(var(--DataGrid-t-spacing-unit) * ${e})`}function B8(e,t){const{duration:n=Ye.transitions.duration.base,easing:r=Ye.transitions.easing.easeInOut,delay:l=0}=t??{};return e.map(a=>`${a} ${n} ${r} ${l}ms`).join(", ")}function VL(e){if(typeof e=="string")return`var(${e})`;const t={};for(const n in e)Object.hasOwn(e,n)&&(t[n]=VL(e[n]));return t}function G8(){const e=ws();return m.useMemo(()=>{const t=z8(H8(e)),n=V8(e);return{id:t,variables:n}},[e])}function V8(e){const t=q8(e),n=(e.vars||e).palette.DataGrid,r=n?.bg??(e.vars||e).palette.background.default,l=n?.headerBg??r,a=n?.pinnedBg??r,s=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:Ca(e.palette.background.default,e.palette.action.disabledOpacity),u=e.palette.mode==="dark"?`color-mix(in srgb, ${(e.vars||e).palette.background.paper} 95%, #fff)`:(e.vars||e).palette.background.paper,d=e.vars?`rgb(${e.vars.palette.primary.mainChannel})`:e.palette.primary.main,f=U8(e),h=e.vars?.font?.body2??jy(e.typography.body2),g=e.vars?.font?.caption??jy(e.typography.caption),b=e.vars?.font?.body1??jy(e.typography.body1),y=Ye.keys;return{[y.spacingUnit]:e.vars?e.vars.spacing??e.spacing(1):e.spacing(1),[y.colors.border.base]:t,[y.colors.background.base]:r,[y.colors.background.overlay]:u,[y.colors.background.backdrop]:s,[y.colors.foreground.base]:(e.vars||e).palette.text.primary,[y.colors.foreground.muted]:(e.vars||e).palette.text.secondary,[y.colors.foreground.accent]:(e.vars||e).palette.primary.dark,[y.colors.foreground.disabled]:(e.vars||e).palette.text.disabled,[y.colors.foreground.error]:(e.vars||e).palette.error.dark,[y.colors.interactive.hover]:(e.vars||e).palette.action.hover,[y.colors.interactive.hoverOpacity]:(e.vars||e).palette.action.hoverOpacity,[y.colors.interactive.focus]:OA((e.vars||e).palette.primary.main),[y.colors.interactive.focusOpacity]:(e.vars||e).palette.action.focusOpacity,[y.colors.interactive.disabled]:OA((e.vars||e).palette.action.disabled),[y.colors.interactive.disabledOpacity]:(e.vars||e).palette.action.disabledOpacity,[y.colors.interactive.selected]:d,[y.colors.interactive.selectedOpacity]:(e.vars||e).palette.action.selectedOpacity,[y.header.background.base]:l,[y.cell.background.pinned]:a,[y.radius.base]:f,[y.typography.fontFamily.base]:e.typography.fontFamily,[y.typography.fontWeight.light]:e.typography.fontWeightLight,[y.typography.fontWeight.regular]:e.typography.fontWeightRegular,[y.typography.fontWeight.medium]:e.typography.fontWeightMedium,[y.typography.fontWeight.bold]:e.typography.fontWeightBold,[y.typography.font.body]:h,[y.typography.font.small]:g,[y.typography.font.large]:b,[y.transitions.easing.easeIn]:e.transitions.easing.easeIn,[y.transitions.easing.easeOut]:e.transitions.easing.easeOut,[y.transitions.easing.easeInOut]:e.transitions.easing.easeInOut,[y.transitions.duration.short]:`${e.transitions.duration.shorter}ms`,[y.transitions.duration.base]:`${e.transitions.duration.short}ms`,[y.transitions.duration.long]:`${e.transitions.duration.standard}ms`,[y.shadows.base]:(e.vars||e).shadows[2],[y.shadows.overlay]:(e.vars||e).shadows[8],[y.zIndex.panel]:(e.vars||e).zIndex.modal,[y.zIndex.menu]:(e.vars||e).zIndex.modal}}function U8(e){return e.vars?e.vars.shape.borderRadius:typeof e.shape.borderRadius=="number"?`${e.shape.borderRadius}px`:e.shape.borderRadius}function q8(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?kp(Ca(e.palette.divider,1),.88):Ip(Ca(e.palette.divider,1),.68)}function W8(e,t){return`rgba(from ${e} r g b / ${t})`}function OA(e){return W8(e,1)}function jy(e){if(e)return`${e.fontWeight} ${e.fontSize} / ${e.lineHeight} ${e.fontFamily}`}const K8=["id","label","labelId","material","disabled","slotProps","onChange","onKeyDown","onOpen","onClose","size","style","fullWidth"],Y8=["onRowsPerPageChange","material","disabled"],X8=["material"],Q8=["autoFocus","label","fullWidth","slotProps","className","material"],Z8=["material"],J8=["material"],e7=["material"],t7=["material"],n7=["material"],r7=["material"],o7=["material"],l7=["material"],i7=["material","label","className"],a7=["material"],s7=["inert","iconStart","iconEnd","children","material"],c7=["slotProps","material"],u7=["id","multiple","freeSolo","options","getOptionLabel","isOptionEqualToValue","value","onChange","label","placeholder","slotProps","material"],d7=["key"],f7=["inputProps","InputProps","InputLabelProps"],p7=["slotProps","material"],h7=["ref","open","children","className","clickAwayTouchEvent","clickAwayMouseEvent","flip","focusTrap","onExited","onClickAway","onDidShow","onDidHide","id","target","transition","placement","material"],g7=["native"],IA=ge(OL)(({theme:e})=>({[`&.${S1.positionEnd} .${g1.sizeSmall}`]:{marginRight:e.spacing(-.75)}})),UL=ge(Xu,{shouldForwardProp:e=>e!=="fullWidth"})(({theme:e})=>({gap:e.spacing(.5),margin:0,overflow:"hidden",[`& .${Au.label}`]:{fontSize:e.typography.pxToRem(14),overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),kA=ge(Ax,{shouldForwardProp:e=>e!=="density"})(({theme:e})=>({variants:[{props:{density:"compact"},style:{padding:e.spacing(.5)}}]})),m7=ge(E1)({[`& .${ic.primary}`]:{overflowX:"clip",textOverflow:"ellipsis",maxWidth:"300px"}}),b7=ht(function(t,n){const{id:r,label:l,labelId:a,material:s,disabled:u,slotProps:d,onChange:f,onKeyDown:h,onOpen:g,onClose:b,size:y,style:C,fullWidth:S}=t,w=Ge(t,K8),M={PaperProps:{onKeyDown:h}};return b&&(M.onClose=b),x.jsxs(Yu,{size:y,fullWidth:S,style:C,disabled:u,ref:n,children:[x.jsx(hp,{id:a,htmlFor:r,shrink:!0,variant:"outlined",children:l}),x.jsx(bc,N({id:r,labelId:a,label:l,displayEmpty:!0,onChange:f,variant:"outlined"},w,{notched:!0,inputProps:d?.htmlInput,onOpen:g,MenuProps:M,size:y},s))]})}),v7=ge(X9)(({theme:e})=>({[`& .${dc.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${dc.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),y7=ht(function(t,n){const{onRowsPerPageChange:r,material:l,disabled:a}=t,s=Ge(t,Y8),u=m.useMemo(()=>{if(a)return{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}},[a]),d=Mt(),f=We(),{estimatedRowCount:h}=f;return x.jsx(v7,N({component:"div",onRowsPerPageChange:wt(g=>{r?.(Number(g.target.value))}),labelRowsPerPage:d.current.getLocaleText("paginationRowsPerPage"),labelDisplayedRows:g=>d.current.getLocaleText("paginationDisplayedRows")(N({},g,{estimated:h})),getItemAriaLabel:d.current.getLocaleText("paginationItemAriaLabel")},u,s,l,{ref:n}))}),C7=ht(function(t,n){const{material:r}=t,l=Ge(t,X8);return x.jsx(o6,N({},l,r,{ref:n}))}),S7=ht(function(t,n){const{autoFocus:r,label:l,fullWidth:a,slotProps:s,className:u,material:d}=t,f=Ge(t,Q8),h=m.useRef(null),g=tn(h,n),b=m.useRef(null);return m.useEffect(()=>{r?h.current?.querySelector("input")?.focus({preventScroll:!0}):r===!1&&b.current&&b.current.stop({})},[r]),l?x.jsx(UL,{className:u,control:x.jsx(kA,N({},f,d,{inputProps:s?.htmlInput,ref:g,touchRippleRef:b})),label:l,fullWidth:a}):x.jsx(kA,N({},f,d,{className:Oe(u,d?.className),inputProps:s?.htmlInput,ref:g,touchRippleRef:b}))}),w7=ht(function(t,n){const{material:r}=t,l=Ge(t,Z8);return x.jsx(Mc,N({},l,r,{ref:n}))}),x7=ht(function(t,n){const{material:r}=t,l=Ge(t,J8);return x.jsx(pp,N({},l,r,{ref:n}))}),M7=ht(function(t,n){const{material:r}=t,l=Ge(t,e7);return x.jsx(XU,N({},l,r,{ref:n}))}),T7=ht(function(t,n){const{material:r}=t,l=Ge(t,t7);return x.jsx(uc,N({},l,r,{ref:n}))}),E7=ht(function(t,n){const{material:r}=t,l=Ge(t,n7);return x.jsx(zm,N({},l,r,{ref:n}))}),P7=ht(function(t,n){const{material:r}=t,l=Ge(t,r7);return x.jsx(rl,N({},l,r,{ref:n}))}),R7=ht(function(t,n){const{material:r}=t,l=Ge(t,o7);return x.jsx(C9,N({},l,r,{ref:n}))}),A7=ht(function(t,n){const{material:r}=t,l=Ge(t,l7);return x.jsx(p9,N({},l,r,{ref:n}))}),O7=ht(function(t,n){const{material:r,label:l,className:a}=t,s=Ge(t,i7);return l?x.jsx(UL,{className:a,control:x.jsx(mp,N({},s,r,{ref:n})),label:l}):x.jsx(mp,N({},s,r,{className:a,ref:n}))}),I7=ht(function(t,n){const{material:r}=t,l=Ge(t,a7);return x.jsx(kL,N({},l,r,{ref:n}))});function k7(e){const{inert:t,iconStart:n,iconEnd:r,children:l,material:a}=e,s=Ge(e,s7);return t&&(s.disableRipple=!0),m.createElement(ki,N({},s,a),[n&&x.jsx(rm,{children:n},"1"),x.jsx(m7,{children:l},"2"),r&&x.jsx(rm,{children:r},"3")])}function _7(e){const{slotProps:t,material:n}=e,r=Ge(e,c7);return x.jsx(ud,N({variant:"outlined"},r,n,{inputProps:t?.htmlInput,InputProps:zx(t?.input),InputLabelProps:N({shrink:!0},t?.inputLabel)}))}function D7(e){const t=We(),{id:n,multiple:r,freeSolo:l,options:a,getOptionLabel:s,isOptionEqualToValue:u,value:d,onChange:f,label:h,placeholder:g,slotProps:b,material:y}=e,C=Ge(e,u7);return x.jsx(TL,N({id:n,multiple:r,freeSolo:l,options:a,getOptionLabel:s,isOptionEqualToValue:u,value:d,onChange:f,renderTags:(S,w)=>S.map((M,E)=>{const O=w({index:E}),{key:P}=O,R=Ge(O,d7);return x.jsx(zm,N({variant:"outlined",size:"small",label:typeof M=="string"?M:s?.(M)},R),P)}),renderInput:S=>{const{inputProps:w,InputProps:M,InputLabelProps:E}=S,O=Ge(S,f7);return x.jsx(ud,N({},O,{label:h,placeholder:g,inputProps:w,InputProps:zx(M,!1),InputLabelProps:N({shrink:!0},E)},b?.textField,t.slotProps?.baseTextField))}},C,y))}function L7(e){return x.jsx(cd,N({},zx(e)))}function zx(e,t=!0){if(!e)return;const{slotProps:n,material:r}=e,a=Ge(e,p7);t&&(a.startAdornment&&(a.startAdornment=x.jsx(IA,{position:"start",children:a.startAdornment})),a.endAdornment&&(a.endAdornment=x.jsx(IA,{position:"end",children:a.endAdornment})));for(const s in r)Object.hasOwn(r,s)&&(a[s]=r[s]);return n?.htmlInput&&(a.inputProps?a.inputProps=N({},a.inputProps,n?.htmlInput):a.inputProps=n?.htmlInput),a}const $7={"bottom-start":"top left","bottom-end":"top right"};function z7(e){const{open:t,children:n,className:r,flip:l,onExited:a,onDidShow:s,onDidHide:u,id:d,target:f,transition:h,placement:g,material:b}=e,y=Ge(e,h7),C=m.useMemo(()=>{const w=[{name:"preventOverflow",options:{padding:8}}];return l&&w.push({name:"flip",enabled:!0,options:{rootBoundary:"document"}}),(s||u)&&w.push({name:"isPlaced",enabled:!0,phase:"main",fn:()=>{s?.()},effect:()=>()=>{u?.()}}),w},[l,s,u]);let S;if(!h)S=_A(e,n);else{const w=M=>E=>{M&&M(),a&&a(E)};S=M=>_A(e,x.jsx(Gu,N({},M.TransitionProps,{style:{transformOrigin:$7[M.placement]},onExited:w(M.TransitionProps?.onExited),children:x.jsx(xs,{children:n})})))}return x.jsx($p,N({id:d,className:r,open:t,anchorEl:f,transition:h,placement:g,modifiers:C},y,b,{children:S}))}function _A(e,t){return H7(e,F7(e,t))}function F7(e,t){return e.onClickAway===void 0?t:x.jsx(oL,{onClickAway:e.onClickAway,touchEvent:e.clickAwayTouchEvent,mouseEvent:e.clickAwayMouseEvent,children:t})}function H7(e,t){return e.focusTrap===void 0?t:x.jsx(AL,{open:!0,disableEnforceFocus:!0,disableAutoFocus:!0,children:x.jsx("div",{tabIndex:-1,children:t})})}function N7(e){let{native:t}=e,n=Ge(e,g7);return t?x.jsx("option",N({},n)):x.jsx(ki,N({},n))}const j7={booleanCellTrueIcon:RA,booleanCellFalseIcon:TA,columnMenuIcon:R8,openFilterButtonIcon:S8,filterPanelDeleteIcon:TA,columnFilteredIcon:MA,columnSelectorIcon:x8,columnSortedAscendingIcon:CA,columnSortedDescendingIcon:SA,columnResizeIcon:M8,densityCompactIcon:T8,densityStandardIcon:E8,densityComfortableIcon:P8,exportIcon:L8,moreActionsIcon:I8,treeDataCollapseIcon:xA,treeDataExpandIcon:wA,groupingCriteriaCollapseIcon:xA,groupingCriteriaExpandIcon:wA,detailPanelExpandIcon:EA,detailPanelCollapseIcon:A8,rowReorderIcon:PA,quickFilterIcon:w8,quickFilterClearIcon:AA,columnMenuHideIcon:k8,columnMenuSortAscendingIcon:CA,columnMenuSortDescendingIcon:SA,columnMenuUnsortIcon:null,columnMenuFilterIcon:MA,columnMenuManageColumnsIcon:_8,columnMenuClearIcon:AA,loadIcon:O8,filterPanelAddIcon:EA,filterPanelRemoveAllIcon:D8,columnReorderIcon:PA,menuItemCheckIcon:RA},B7={baseAutocomplete:D7,baseBadge:C7,baseCheckbox:S7,baseChip:E7,baseCircularProgress:w7,baseDivider:x7,baseInput:L7,baseLinearProgress:M7,baseMenuList:I7,baseMenuItem:k7,baseTextField:_7,baseButton:T7,baseIconButton:P7,baseTooltip:R7,basePagination:y7,basePopper:z7,baseSelect:b7,baseSelectOption:N7,baseSkeleton:A7,baseSwitch:O7},G7=N({},B7,j7);var om=Symbol("NOT_FOUND");function V7(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function U7(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function q7(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var DA=e=>Array.isArray(e)?e:[e];function W7(e){const t=Array.isArray(e[0])?e[0]:e;return q7(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function K7(e,t){const n=[],{length:r}=e;for(let l=0;l<r;l++)n.push(e[l].apply(null,t));return n}function Y7(e){let t;return{get(n){return t&&e(t.key,n)?t.value:om},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function X7(e,t){let n=[];function r(u){const d=n.findIndex(f=>t(u,f.key));if(d>-1){const f=n[d];return d>0&&(n.splice(d,1),n.unshift(f)),f.value}return om}function l(u,d){r(u)===om&&(n.unshift({key:u,value:d}),n.length>e&&n.pop())}function a(){return n}function s(){n=[]}return{get:r,put:l,getEntries:a,clear:s}}var Q7=(e,t)=>e===t;function Z7(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:l}=n;for(let a=0;a<l;a++)if(!e(n[a],r[a]))return!1;return!0}}function qL(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=Q7,maxSize:l=1,resultEqualityCheck:a}=n,s=Z7(r);let u=0;const d=l<=1?Y7(s):X7(l,s);function f(){let h=d.get(arguments);if(h===om){if(h=e.apply(null,arguments),u++,a){const b=d.getEntries().find(y=>a(y.value,h));b&&(h=b.value,u!==0&&u--)}d.put(arguments,h)}return h}return f.clearCache=()=>{d.clear(),f.resetResultsCount()},f.resultsCount=()=>u,f.resetResultsCount=()=>{u=0},f}var J7=class{constructor(e){this.value=e}deref(){return this.value}},eW=typeof WeakRef<"u"?WeakRef:J7,tW=0,LA=1;function yg(){return{s:tW,v:void 0,o:null,p:null}}function WL(e,t={}){let n=yg();const{resultEqualityCheck:r}=t;let l,a=0;function s(){let u=n;const{length:d}=arguments;for(let g=0,b=d;g<b;g++){const y=arguments[g];if(typeof y=="function"||typeof y=="object"&&y!==null){let C=u.o;C===null&&(u.o=C=new WeakMap);const S=C.get(y);S===void 0?(u=yg(),C.set(y,u)):u=S}else{let C=u.p;C===null&&(u.p=C=new Map);const S=C.get(y);S===void 0?(u=yg(),C.set(y,u)):u=S}}const f=u;let h;if(u.s===LA)h=u.v;else if(h=e.apply(null,arguments),a++,r){const g=l?.deref?.()??l;g!=null&&r(g,h)&&(h=g,a!==0&&a--),l=typeof h=="object"&&h!==null||typeof h=="function"?new eW(h):h}return f.s=LA,f.v=h,h}return s.clearCache=()=>{n=yg(),s.resetResultsCount()},s.resultsCount=()=>a,s.resetResultsCount=()=>{a=0},s}function KL(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...l)=>{let a=0,s=0,u,d={},f=l.pop();typeof f=="object"&&(d=f,f=l.pop()),V7(f,`createSelector expects an output function after the inputs, but received: [${typeof f}]`);const h={...n,...d},{memoize:g,memoizeOptions:b=[],argsMemoize:y=WL,argsMemoizeOptions:C=[]}=h,S=DA(b),w=DA(C),M=W7(l),E=g(function(){return a++,f.apply(null,arguments)},...S),O=y(function(){s++;const R=K7(M,arguments);return u=E.apply(null,R),u},...w);return Object.assign(O,{resultFunc:f,memoizedResultFunc:E,dependencies:M,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>u,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:g,argsMemoize:y})};return Object.assign(r,{withTypes:()=>r}),r}var nW=KL(WL),rW=Object.assign((e,t=nW)=>{U7(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(a=>e[a]);return t(r,(...a)=>a.reduce((s,u,d)=>(s[n[d]]=u,s),{}))},{withTypes:()=>rW});const oW=KL({memoize:qL,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),$g=(e,t,n,r,l,a,...s)=>{if(s.length>0)throw new Error("Unsupported number of selectors");let u;if(e&&t&&n&&r&&l&&a)u=(d,f,h,g)=>{const b=e(d,f,h,g),y=t(d,f,h,g),C=n(d,f,h,g),S=r(d,f,h,g),w=l(d,f,h,g);return a(b,y,C,S,w,f,h,g)};else if(e&&t&&n&&r&&l)u=(d,f,h,g)=>{const b=e(d,f,h,g),y=t(d,f,h,g),C=n(d,f,h,g),S=r(d,f,h,g);return l(b,y,C,S,f,h,g)};else if(e&&t&&n&&r)u=(d,f,h,g)=>{const b=e(d,f,h,g),y=t(d,f,h,g),C=n(d,f,h,g);return r(b,y,C,f,h,g)};else if(e&&t&&n)u=(d,f,h,g)=>{const b=e(d,f,h,g),y=t(d,f,h,g);return n(b,y,f,h,g)};else if(e&&t)u=(d,f,h,g)=>{const b=e(d,f,h,g);return t(b,f,h,g)};else if(e)u=e;else throw new Error("Missing arguments");return u},YL=(...e)=>{const t=new WeakMap;let n=1;const r=e[e.length-1],l=e.length-1||1,a=Math.max(r.length-l,0);if(a>3)throw new Error("Unsupported number of arguments");return(u,d,f,h)=>{let g=u.__cacheKey__;g||(g={id:n},u.__cacheKey__=g,n+=1);let b=t.get(g);if(!b){const y=e.length===1?[w=>w,r]:e;let C=e;const S=[void 0,void 0,void 0];switch(a){case 0:break;case 1:{C=[...y.slice(0,-1),()=>S[0],r];break}case 2:{C=[...y.slice(0,-1),()=>S[0],()=>S[1],r];break}case 3:{C=[...y.slice(0,-1),()=>S[0],()=>S[1],()=>S[2],r];break}default:throw new Error("Unsupported number of arguments")}b=oW(...C),b.selectorArgs=S,t.set(g,b)}switch(a){case 3:b.selectorArgs[2]=h;case 2:b.selectorArgs[1]=f;case 1:b.selectorArgs[0]=d}switch(a){case 0:return b(u);case 1:return b(u,d);case 2:return b(u,d,f);case 3:return b(u,d,f,h);default:throw new Error("unreachable")}}};var By={exports:{}},Gy={},Vy={exports:{}},Uy={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var $A;function lW(){if($A)return Uy;$A=1;var e=id();function t(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,l=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function u(g,b){var y=b(),C=r({inst:{value:y,getSnapshot:b}}),S=C[0].inst,w=C[1];return a(function(){S.value=y,S.getSnapshot=b,d(S)&&w({inst:S})},[g,y,b]),l(function(){return d(S)&&w({inst:S}),g(function(){d(S)&&w({inst:S})})},[g]),s(y),y}function d(g){var b=g.getSnapshot;g=g.value;try{var y=b();return!n(g,y)}catch{return!0}}function f(g,b){return b()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return Uy.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,Uy}var zA;function XL(){return zA||(zA=1,Vy.exports=lW()),Vy.exports}/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var FA;function iW(){if(FA)return Gy;FA=1;var e=id(),t=XL();function n(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var r=typeof Object.is=="function"?Object.is:n,l=t.useSyncExternalStore,a=e.useRef,s=e.useEffect,u=e.useMemo,d=e.useDebugValue;return Gy.useSyncExternalStoreWithSelector=function(f,h,g,b,y){var C=a(null);if(C.current===null){var S={hasValue:!1,value:null};C.current=S}else S=C.current;C=u(function(){function M(A){if(!E){if(E=!0,O=A,A=b(A),y!==void 0&&S.hasValue){var z=S.value;if(y(z,A))return P=z}return P=A}if(z=P,r(O,A))return z;var k=b(A);return y!==void 0&&y(z,k)?(O=A,z):(O=A,P=k)}var E=!1,O,P,R=g===void 0?null:g;return[function(){return M(h())},R===null?void 0:function(){return M(R())}]},[h,g,b,y]);var w=l(f,C[0],C[1]);return s(function(){S.hasValue=!0,S.value=w},[w]),d(w),w},Gy}var HA;function aW(){return HA||(HA=1,By.exports=iW()),By.exports}var sW=aW();function ds(e,t,n,r,l){const a=s=>t(s,n,r,l);return sW.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,a)}const cW=()=>{};function Um(e,t,n){const r=Nl(uW,{store:e,selector:t}).current;r.effect=n,Dm(r.onMount)}function uW(e){const{store:t,selector:n}=e;let r=n(t.state);const l={effect:cW,dispose:null,subscribe:()=>{l.dispose??=t.subscribe(a=>{const s=n(a);l.effect(r,s),r=s})},onMount:()=>(l.subscribe(),()=>{l.dispose?.(),l.dispose=null})};return l.subscribe(),l}class qm{static create(t){return new qm(t)}constructor(t){this.state=void 0,this.listeners=void 0,this.isUpdating=void 0,this.needsReset=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.state,this.state=t,this.listeners=new Set,this.isUpdating=!1,this.needsReset=!1}setState(t){if(this.state=t,this.isUpdating){this.needsReset=!0;return}this.isUpdating=!0;let n=this.listeners.values(),r;for(;r=n.next(),!r.done;){if(this.needsReset){this.needsReset=!1,n=this.listeners.values();continue}const l=r.value;l(t)}this.isUpdating=!1}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState(N({},this.state,t));return}}set(t,n){Object.is(this.state[t],n)||this.setState(N({},this.state,{[t]:n}))}}const ot=(...e)=>{const t=$g(...e);return(r,l,a,s)=>t(Fx(r),l,a,s)},Zt=(...e)=>{const t=YL(...e);return(r,l,a,s)=>t(Fx(r),l,a,s)},Gn=e=>(t,n)=>e(Fx(t),n);function Fx(e){return"current"in e?e.current.state:e}const lr=Gn(e=>e.dimensions),Hx=ot(lr,e=>e.columnsTotalWidth),dW=ot(lr,e=>e.rowHeight),fW=ot(lr,e=>e.contentSize.height),pW=ot(lr,e=>e.hasScrollX),hW=ot(lr,e=>e.hasScrollY),QL=ot(lr,e=>e.columnsTotalWidth<e.viewportOuterSize.width),gW=ot(lr,e=>e.headerHeight),mW=ot(lr,e=>e.groupHeaderHeight);ot(lr,e=>e.headerFilterHeight);const bW=ot(lr,e=>e.hasScrollX?e.scrollbarSize:0),ZL=ot(lr,e=>e.hasScrollY?e.scrollbarSize:0),vW=ot(lr,bW,(e,t)=>{const n=e.viewportOuterSize.height-e.minimumSize.height>0;return!(t===0&&!n)}),Wm=Gn(e=>e.rowsMeta),pi=Gn(e=>e.rows),dd=ot(pi,e=>e.totalRowCount),yW=ot(pi,e=>e.loading),CW=ot(pi,e=>e.totalTopLevelRowCount),kl=ot(pi,e=>e.dataRowIdToModelLookup);ot(kl,(e,t)=>e[t]);const eo=ot(pi,e=>e.tree),_i=ot(eo,(e,t)=>e[t]),SW=ot(pi,e=>e.groupsToFetch),wW=ot(pi,e=>e.groupingName),NA=ot(pi,e=>e.treeDepths),fd=Zt(pi,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:(t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]??0)+1}),ac=ot(pi,e=>e.dataRowIds),xW=Zt(ac,kl,(e,t)=>e.reduce((n,r)=>(t[r]&&n.push(t[r]),n),[])),MW=ot(pi,e=>e?.additionalRowGroups),zp=Zt(MW,e=>{const t=e?.pinnedRows;return{bottom:t?.bottom?.map(n=>({id:n.id,model:n.model??{}}))??[],top:t?.top?.map(n=>({id:n.id,model:n.model??{}}))??[]}}),JL=ot(zp,e=>(e?.top?.length||0)+(e?.bottom?.length||0)),Nr="auto-generated-group-node-root",Qu=Symbol("mui.id_autogenerated"),TW=()=>({type:"group",id:Nr,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function EW(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI X: The Data Grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(`
`))}const Km=(e,t,n)=>{const r=t?t(e):e.id;return EW(r,e,n),r},PW=(e,t,n)=>{const r=t.field;if(!t||!t.valueGetter)return e[r];const l=e[t.field];return t.valueGetter(l,e,t,n)},zg=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const l={type:"full",rows:[]},a={};for(let s=0;s<e.length;s+=1){const u=e[s],d=Km(u,t);a[d]=u,l.rows.push(d)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:l,dataRowIdToModelLookup:a}},e$=({tree:e,rowCountProp:t=0})=>{const n=e[Nr];return Math.max(t,n.children.length+(n.footerId==null?0:1))},t$=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:l,previousGroupsToFetch:a})=>{const s=e.current.caches.rows,{tree:u,treeDepths:d,dataRowIds:f,groupingName:h,groupsToFetch:g=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:l,updates:s.updates,dataRowIdToModelLookup:s.dataRowIdToModelLookup,previousGroupsToFetch:a}),b=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:u,treeDepths:d,dataRowIds:f,dataRowIdToModelLookup:s.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},N({},b,{totalRowCount:Math.max(t,b.dataRowIds.length),totalTopLevelRowCount:e$({tree:b.tree,rowCountProp:t}),groupingName:h,loading:n,groupsToFetch:g})},Zu=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,Nx=(e,t,n,r)=>{const l=e[t];if(l.type!=="group")return[];const a=[];for(let s=0;s<l.children.length;s+=1){const u=l.children[s];if((!n||!Zu(e[u]))&&a.push(u),r)continue;const d=Nx(e,u,n,r);for(let f=0;f<d.length;f+=1)a.push(d[f])}return!n&&l.footerId!=null&&a.push(l.footerId),a},jA=({previousCache:e,getRowId:t,updates:n,groupKeys:r})=>{if(e.updates.type==="full")throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const l=new Map;n.forEach(f=>{const h=Km(f,t,"A row was provided without id when calling updateRows():");l.has(h)?l.set(h,N({},l.get(h),f)):l.set(h,f)});const a={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:N({},e.updates.idToActionLookup),groupKeys:r},s=N({},e.dataRowIdToModelLookup),u={insert:{},modify:{},remove:{}};l.forEach((f,h)=>{const g=a.idToActionLookup[h];if(f._action==="delete"){if(g==="remove"||!s[h])return;g!=null&&(u[g][h]=!0),a.actions.remove.push(h),delete s[h];return}const b=s[h];if(b){g==="remove"?(u.remove[h]=!0,a.actions.modify.push(h)):g==null&&a.actions.modify.push(h),s[h]=N({},b,f);return}g==="remove"?(u.remove[h]=!0,a.actions.insert.push(h)):g==null&&a.actions.insert.push(h),s[h]=f});const d=Object.keys(u);for(let f=0;f<d.length;f+=1){const h=d[f],g=u[h];Object.keys(g).length>0&&(a.actions[h]=a.actions[h].filter(b=>!g[b]))}return{dataRowIdToModelLookup:s,updates:a,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}},n$="var(--DataGrid-overlayHeight, calc(var(--height) * 2))";function BA(e,t,n){const r=[];return t.forEach(l=>{const a=Km(l,n,"A row was provided without id when calling updateRows():");if(_i(e,a)?.type==="pinnedRow"){const u=e.current.caches.pinnedRows,d=u.idLookup[a];d&&(u.idLookup[a]=N({},d,l))}else r.push(l)}),r}const r$=(e,t,n)=>typeof e=="number"&&e>0?e:t,RW=Object.is;function o$(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const l in e)if(n+=1,!RW(e[l],t[l])||!(l in t))return!1;for(const l in t)r+=1;return n===r}function xa(e){return m.memo(e,o$)}const AW={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",noColumnsOverlayLabel:"No columns",noColumnsOverlayManageColumns:"Manage columns",emptyPivotOverlayLabel:"Add fields to rows, columns, and values to create a pivot table",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",toolbarPivot:"Pivot",toolbarAssistant:"AI Assistant",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",columnsManagementDeleteIconLabel:"Clear",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorDoesNotContain:"does not contain",filterOperatorEquals:"equals",filterOperatorDoesNotEqual:"does not equal",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorDoesNotContain:"Does not contain",headerFilterOperatorEquals:"Equals",headerFilterOperatorDoesNotEqual:"Does not equal",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",headerFilterClear:"Clear filter",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuAriaLabel:e=>`${e} column menu`,columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnMenuManagePivot:"Manage pivot",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",paginationRowsPerPage:"Rows per page:",paginationDisplayedRows:({from:e,to:t,count:n,estimated:r})=>{if(!r)return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`;const l=r&&r>t?`around ${r}`:`more than ${t}`;return`${e}–${t} of ${n!==-1?n:l}`},paginationItemAriaLabel:e=>e==="first"?"Go to first page":e==="last"?"Go to last page":e==="next"?"Go to next page":"Go to previous page",rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size",pivotToggleLabel:"Pivot",pivotRows:"Rows",pivotColumns:"Columns",pivotValues:"Values",pivotCloseButton:"Close pivot settings",pivotSearchButton:"Search fields",pivotSearchControlPlaceholder:"Search fields",pivotSearchControlLabel:"Search fields",pivotSearchControlClear:"Clear search",pivotNoFields:"No fields",pivotMenuMoveUp:"Move up",pivotMenuMoveDown:"Move down",pivotMenuMoveToTop:"Move to top",pivotMenuMoveToBottom:"Move to bottom",pivotMenuRows:"Rows",pivotMenuColumns:"Columns",pivotMenuValues:"Values",pivotMenuOptions:"Field options",pivotMenuAddToRows:"Add to Rows",pivotMenuAddToColumns:"Add to Columns",pivotMenuAddToValues:"Add to Values",pivotMenuRemove:"Remove",pivotDragToRows:"Drag here to create rows",pivotDragToColumns:"Drag here to create columns",pivotDragToValues:"Drag here to create values",pivotYearColumnHeaderName:"(Year)",pivotQuarterColumnHeaderName:"(Quarter)",aiAssistantPanelTitle:"AI Assistant",aiAssistantPanelClose:"Close AI Assistant",aiAssistantPanelNewConversation:"New conversation",aiAssistantPanelConversationHistory:"Conversation history",aiAssistantPanelEmptyConversation:"No prompt history",aiAssistantSuggestions:"Suggestions",promptFieldLabel:"Prompt",promptFieldPlaceholder:"Type a prompt…",promptFieldPlaceholderWithRecording:"Type or record a prompt…",promptFieldPlaceholderListening:"Listening for prompt…",promptFieldSpeechRecognitionNotSupported:"Speech recognition is not supported in this browser",promptFieldSend:"Send",promptFieldRecord:"Record",promptFieldStopRecording:"Stop recording",promptRerun:"Run again",promptProcessing:"Processing…",promptAppliedChanges:"Applied changes",promptChangeGroupDescription:e=>`Group by ${e}`,promptChangeAggregationLabel:(e,t)=>`${e} (${t})`,promptChangeAggregationDescription:(e,t)=>`Aggregate ${e} (${t})`,promptChangeFilterLabel:(e,t,n)=>t==="is any of"?`${e} is any of: ${n}`:`${e} ${t} ${n}`,promptChangeFilterDescription:(e,t,n)=>t==="is any of"?`Filter where ${e} is any of: ${n}`:`Filter where ${e} ${t} ${n}`,promptChangeSortDescription:(e,t)=>`Sort by ${e} (${t})`,promptChangePivotEnableLabel:"Pivot",promptChangePivotEnableDescription:"Enable pivot",promptChangePivotColumnsLabel:e=>`Columns (${e})`,promptChangePivotColumnsDescription:(e,t)=>`${e}${t?` (${t})`:""}`,promptChangePivotRowsLabel:e=>`Rows (${e})`,promptChangePivotValuesLabel:e=>`Values (${e})`,promptChangePivotValuesDescription:(e,t)=>`${e} (${t})`};function Lt(e){return St("MuiDataGrid",e)}const K=vt("MuiDataGrid",["aiAssistantPanel","aiAssistantPanelHeader","aiAssistantPanelTitleContainer","aiAssistantPanelTitle","aiAssistantPanelBody","aiAssistantPanelEmptyText","aiAssistantPanelFooter","aiAssistantPanelConversation","aiAssistantPanelConversationList","aiAssistantPanelConversationTitle","aiAssistantPanelSuggestions","aiAssistantPanelSuggestionsList","aiAssistantPanelSuggestionsItem","aiAssistantPanelSuggestionsLabel","actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","aggregationRowOverlayWrapper","autoHeight","autosizing","mainContent","withSidePanel","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","collapsible","collapsibleTrigger","collapsibleIcon","collapsiblePanel","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeader--lastUnpinned","columnHeader--siblingFocused","columnHeader--filter","columnHeaderFilterInput","columnHeaderFilterOperatorLabel","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementSearchInput","columnsManagementFooter","columnsManagementScrollArea","columnsManagementEmptyText","container--top","container--bottom","detailPanel","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hiddenContent","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dropAbove","row--dropBelow","row--beingDragged","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowReorderIcon","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea--up","scrollArea--down","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--borderBottom","scrollbarFiller--pinnedRight","selectedRowCount","sortButton","sortIcon","shadowScrollArea","sidebar","sidebarHeader","toolbarContainer","toolbar","toolbarLabel","toolbarDivider","toolbarFilterList","toolbarQuickFilter","toolbarQuickFilterTrigger","toolbarQuickFilterControl","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","groupingCriteriaCellLoadingContainer","pinnedRows","pinnedRows--top","pinnedRows--bottom","pivotPanelAvailableFields","pivotPanelField","pivotPanelField--sorted","pivotPanelFieldActionContainer","pivotPanelFieldCheckbox","pivotPanelFieldDragIcon","pivotPanelFieldList","pivotPanelFieldName","pivotPanelHeader","pivotPanelPlaceholder","pivotPanelScrollArea","pivotPanelSearchContainer","pivotPanelSection","pivotPanelSectionTitle","pivotPanelSections","pivotPanelSwitch","pivotPanelSwitchLabel","prompt","promptContent","promptText","promptFeedback","promptChangeList","promptChangesToggle","promptChangesToggleIcon","promptIcon","promptIconContainer","promptError","promptAction"]);let ci=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e}({});const GA=1e3;class OW{constructor(t=GA){this.timeouts=new Map,this.cleanupTimeout=GA,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const l=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,l)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class IW{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}class jx{static create(){return new jx}}const Cg={current:_W()};let VA=0;function rt(e,t,n,r){const l=m.useState(jx.create)[0],a=m.useRef(null),s=m.useRef(null);s.current=n;const u=m.useRef(null);if(!a.current&&s.current){const d=(f,h,g)=>{h.defaultMuiPrevented||s.current?.(f,h,g)};a.current=e.current.subscribeEvent(t,d,r),VA+=1,u.current={cleanupToken:VA},Cg.current.register(l,()=>{a.current?.(),a.current=null,u.current=null},u.current)}else!s.current&&a.current&&(a.current(),a.current=null,u.current&&(Cg.current.unregister(u.current),u.current=null));m.useEffect(()=>{if(!a.current&&s.current){const d=(f,h,g)=>{h.defaultMuiPrevented||s.current?.(f,h,g)};a.current=e.current.subscribeEvent(t,d,r)}return u.current&&Cg.current&&(Cg.current.unregister(u.current),u.current=null),()=>{a.current?.(),a.current=null}},[e,t,r])}const kW={isFirst:!0};function pn(e,t,n){rt(e,t,n,kW)}function _W(){return typeof FinalizationRegistry<"u"?new IW:new OW}var l$=XL();const DW=Object.is,i$=o$,LW=(e,t)=>e===t?!0:e.length===t.length&&e.every((n,r)=>n===t[r]),$W=(e,t)=>{let n=Object.is;return t instanceof Array?n=LW:t instanceof Object&&(n=i$),n(e,t)},zW=()=>({state:null,equals:null,selector:null,args:void 0}),UA=[],FW=()=>null;function Te(e,t,n=void 0,r=DW){const l=Nl(zW),a=l.current.selector!==null,[s,u]=m.useState(a?null:t(e,n));l.current.state=s,l.current.equals=r,l.current.selector=t;const d=l.current.args;if(l.current.args=n,a&&!$W(d,n)){const g=l.current.selector(e,l.current.args);l.current.equals(l.current.state,g)||(l.current.state=g,u(g))}const f=m.useCallback(()=>(l.current.subscription||(l.current.subscription=e.current.store.subscribe(()=>{const g=l.current.selector(e,l.current.args);l.current.equals(l.current.state,g)||(l.current.state=g,u(g))})),null),UA),h=m.useCallback(()=>(l.current.subscription||f(),()=>{l.current.subscription&&(l.current.subscription(),l.current.subscription=void 0)}),UA);return l$.useSyncExternalStore(h,f,FW),s}const HW=.7,NW=1.3,jW={compact:HW,comfortable:NW,standard:1},Ou=Gn(e=>e.density),Fp=ot(Ou,e=>jW[e]);function Ma(e){throw new Error("Failed assertion: should not be rendered")}const BW=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange","slotProps"],GW=e=>{const{classes:t}=e;return Be({root:["editInputCell"]},Lt,t)},VW=ge(Ma,{name:"MuiDataGrid",slot:"EditInputCell"})({font:Ye.typography.font.body,padding:"1px 0","& input":{padding:"0 16px",height:"100%"}}),UW=ht((e,t)=>{const n=We(),{id:r,value:l,field:a,colDef:s,hasFocus:u,debounceMs:d=200,isProcessingProps:f,onValueChange:h,slotProps:g}=e,b=Ge(e,BW),y=Mt(),C=m.useRef(null),[S,w]=m.useState(l),M=GW(n),E=m.useCallback(async P=>{const R=P.target.value,A=y.current.getColumn(a);let z=R;A.valueParser&&(z=A.valueParser(R,y.current.getRow(r),A,y)),w(z),y.current.setEditCellValue({id:r,field:a,value:z,debounceMs:d,unstable_skipValueParser:!0},P),h&&await h(P,R)},[y,d,a,r,h]),O=y.current.unstable_getEditCellMeta(r,a);return m.useEffect(()=>{O?.changeReason!=="debouncedSetEditCellValue"&&w(l)},[O,l]),gn(()=>{u&&C.current.focus()},[u]),x.jsx(VW,N({as:n.slots.baseInput,inputRef:C,className:M.root,ownerState:n,fullWidth:!0,type:s.type==="number"?s.type:"text",value:S??"",onChange:E,endAdornment:f?x.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},b,g?.root,{ref:t}))}),qW=e=>x.jsx(UW,N({},e)),a$=(e,t)=>t&&e.length>1?[e[0]]:e,qA=(e,t)=>n=>N({},n,{sorting:N({},n.sorting,{sortModel:a$(e,t)})}),WW=e=>e==="desc",KW=(e,t)=>{const n=t.current.getColumn(e.field);if(!n||e.sort===null)return null;let r;return n.getSortComparator?r=n.getSortComparator(e.sort):r=WW(e.sort)?(...a)=>-1*n.sortComparator(...a):n.sortComparator,r?{getSortCellParams:a=>({id:a,field:n.field,rowNode:_i(t,a),value:t.current.getCellValue(a,n.field),api:t.current}),comparator:r}:null},YW=(e,t,n)=>e.reduce((r,l,a)=>{if(r!==0)return r;const s=t.params[a],u=n.params[a];return r=l.comparator(s.value,u.value,s,u),r},0),XW=(e,t)=>{const n=e.map(r=>KW(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(l=>({node:l,params:n.map(a=>a.getSortCellParams(l.id))})).sort((l,a)=>YW(n,l,a)).map(l=>l.node.id)},WA=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},Bx=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,QW=new Intl.Collator,ZW=(e,t)=>{const n=Bx(e,t);return n!==null?n:typeof e=="string"?QW.compare(e.toString(),t.toString()):e-t},s$=(e,t)=>{const n=Bx(e,t);return n!==null?n:Number(e)-Number(t)},c$=(e,t)=>{const n=Bx(e,t);return n!==null?n:e>t?1:e<t?-1:0},JW=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","slotProps","clearButton","headerFilterMenu"];function Al(e){const{item:t,applyValue:n,type:r,apiRef:l,focusElementRef:a,tabIndex:s,disabled:u,slotProps:d,clearButton:f,headerFilterMenu:h}=e,g=Ge(e,JW),b=d?.root,y=$o(),[C,S]=m.useState(qy(t.value)),[w,M]=m.useState(!1),E=Nt(),O=We(),P=m.useCallback(R=>{const A=qy(R.target.value);S(A),M(!0),y.start(O.filterDebounceMs,()=>{const z=N({},t,{value:r==="number"&&!Number.isNaN(Number(A))?Number(A):A,fromInput:E});n(z),M(!1)})},[y,O.filterDebounceMs,t,r,E,n]);return m.useEffect(()=>{(t.fromInput!==E||t.value==null)&&S(qy(t.value))},[E,t]),x.jsxs(m.Fragment,{children:[x.jsx(O.slots.baseTextField,N({id:E,label:l.current.getLocaleText("filterPanelInputLabel"),placeholder:l.current.getLocaleText("filterPanelInputPlaceholder"),value:C??"",onChange:P,type:r||"text",disabled:u,slotProps:N({},b?.slotProps,{input:N({endAdornment:w?x.jsx(O.slots.loadIcon,{fontSize:"small",color:"action"}):null},b?.slotProps?.input),htmlInput:N({tabIndex:s},b?.slotProps?.htmlInput)}),inputRef:a},O.slotProps?.baseTextField,g,b)),h,f]})}function qy(e){if(!(e==null||e===""))return String(e)}function eK(e){return typeof e=="number"&&!Number.isNaN(e)}function tK(e){return typeof e=="function"}function Gx(e){return typeof e=="object"&&e!==null}function nK(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}function lm(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const pc=(e,t,n)=>Math.max(t,Math.min(n,e));function rK(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function oK(e){const t=rK(e);return(n,r)=>n+(r-n)*t()}function u$(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const fs=(e,t)=>n=>{e&&t(n)};function d$(e){const{item:t,applyValue:n,type:r,apiRef:l,focusElementRef:a,slotProps:s}=e,u=Nt(),[d,f]=m.useState([]),[h,g]=m.useState(t.value||[]),b=We();m.useEffect(()=>{const w=t.value??[];g(w.map(String))},[t.value]);const y=m.useCallback((w,M)=>{g(M.map(String)),n(N({},t,{value:[...M.map(E=>r==="number"?Number(E):E)]}))},[n,t,r]),C=m.useCallback((w,M)=>{f(M===""?[]:[M])},[f]),S=b.slots.baseAutocomplete;return x.jsx(S,N({multiple:!0,freeSolo:!0,options:d,id:u,value:h,onChange:y,onInputChange:C,label:l.current.getLocaleText("filterPanelInputLabel"),placeholder:l.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:r||"text",inputRef:a}}},s?.root))}var Hi=function(e){return e.Cell="cell",e.Row="row",e}(Hi||{}),rn=function(e){return e.Edit="edit",e.View="view",e}(rn||{}),Dn=function(e){return e.Edit="edit",e.View="view",e}(Dn||{}),Mo=function(e){return e.And="and",e.Or="or",e}(Mo||{});class lK{constructor(t){this.data=void 0,this.data=t.ids}has(t){return this.data.has(t)}select(t){this.data.add(t)}unselect(t){this.data.delete(t)}}class iK{constructor(t){this.data=void 0,this.data=t.ids}has(t){return!this.data.has(t)}select(t){this.data.delete(t)}unselect(t){this.data.add(t)}}const ps=e=>e.type==="include"?new lK(e):new iK(e);var ga=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(ga||{}),ni=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(ni||{}),os=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(os||{}),Ri=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Ri||{});function f$(e){return e.field!==void 0}const p$={filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},bp=()=>({items:[],logicOperator:Mo.And,quickFilterValues:[],quickFilterLogicOperator:Mo.And});function h$(e){return{current:e.current.getPublicApi()}}let is=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const im={left:[],right:[]},g$=Gn(e=>e.isRtl),m$=Gn(e=>e.props.listView??!1),b$=Gn(e=>e.listViewColumn),ui=Gn(e=>e.columns),zi=ot(ui,e=>e.orderedFields),Ta=ot(ui,e=>e.lookup),Dl=Zt(zi,Ta,(e,t)=>e.map(n=>t[n])),ai=ot(ui,e=>e.columnVisibilityModel),aK=ot(ui,e=>e.initialColumnVisibilityModel),or=Zt(Dl,ai,m$,b$,(e,t,n,r)=>n&&r?[r]:e.filter(l=>t[l.field]!==!1)),pd=Zt(or,e=>e.map(t=>t.field)),v$=Gn(e=>e.pinnedColumns);Zt(v$,zi,g$,(e,t,n)=>y$(e,t,n));const Ym=Zt(ui,v$,pd,g$,m$,(e,t,n,r,l)=>{if(l)return im;const a=y$(t,n,r);return{left:a.left.map(u=>e.lookup[u]),right:a.right.map(u=>e.lookup[u])}});function y$(e,t,n){if(!Array.isArray(e.left)&&!Array.isArray(e.right)||e.left?.length===0&&e.right?.length===0)return im;const r=(u,d)=>Array.isArray(u)?u.filter(f=>d.includes(f)):[],l=r(e.left,t),a=t.filter(u=>!l.includes(u)),s=r(e.right,a);return n?{left:s,right:l}:{left:l,right:s}}const Tc=Zt(or,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),C$=Zt(Dl,e=>e.filter(t=>t.filterable)),sK=Zt(Dl,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),cK=Zt(Dl,e=>e.some(t=>t.colSpan!==void 0));let If;function uK(){if(If!==void 0)return If;try{If=new Function("return true")()}catch{If=!1}return If}const I1=(e,t)=>{const n=N({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=Ta(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},Vx=(e,t,n)=>{const r=e.items.length>1;let l;r&&t?l=[e.items[0]]:l=e.items;const a=r&&l.some(u=>u.id==null);return l.some(u=>u.operator==null)||a?N({},e,{items:l.map(u=>I1(u,n))}):e.items!==l?N({},e,{items:l}):e},KA=(e,t,n)=>r=>N({},r,{filterModel:Vx(e,t,n)}),vp=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,S$=(e,t)=>{if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){const h=n.valueParser;r=Array.isArray(e.value)?e.value?.map(g=>h(g,void 0,n,t)):h(e.value,void 0,n,t)}else r=e.value;const{ignoreDiacritics:l}=t.current.rootProps;l&&(r=vp(r));const a=N({},e,{value:r}),s=n.filterOperators;if(!s?.length)throw new Error(`MUI X: No filter operators found for column '${n.field}'.`);const u=s.find(h=>h.value===a.operator);if(!u)throw new Error(`MUI X: No filter operator found for column '${n.field}' and operator value '${a.operator}'.`);const d=h$(t),f=u.getApplyFilterFn(a,n);return typeof f!="function"?null:{item:a,fn:h=>{let g=t.current.getRowValue(h,n);return l&&(g=vp(g)),f(g,h,n,d)}}};let YA=1;const dK=(e,t,n)=>{const{items:r}=e,l=r.map(u=>S$(u,t)).filter(u=>!!u);if(l.length===0)return null;if(n||!uK())return(u,d)=>{const f={};for(let h=0;h<l.length;h+=1){const g=l[h];(!d||d(g.item.field))&&(f[g.item.id]=g.fn(u))}return f};const a=new Function("appliers","row","shouldApplyFilter",`"use strict";
${l.map((u,d)=>`const shouldApply${d} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(u.item.field)});`).join(`
`)}

const result$$ = {
${l.map((u,d)=>`  ${JSON.stringify(String(u.item.id))}: !shouldApply${d} ? false : appliers[${d}].fn(row),`).join(`
`)}
};

return result$$;`.replaceAll("$$",String(YA)));return YA+=1,(u,d)=>a(l,u,d)},w$=e=>e.quickFilterExcludeHiddenColumns??!0,fK=(e,t)=>{const n=e.quickFilterValues?.filter(Boolean)??[];if(n.length===0)return null;const r=w$(e)?pd(t):zi(t),l=[],{ignoreDiacritics:a}=t.current.rootProps,s=h$(t);return r.forEach(u=>{const d=t.current.getColumn(u),f=d?.getApplyQuickFilterFn;f&&l.push({column:d,appliers:n.map(h=>{const g=a?vp(h):h;return{fn:f(g,d,s)}})})}),function(d,f){const h={};e:for(let g=0;g<n.length;g+=1){const b=n[g];for(let y=0;y<l.length;y+=1){const{column:C,appliers:S}=l[y],{field:w}=C;if(f&&!f(w))continue;const M=S[g];let E=t.current.getRowValue(d,C);if(M.fn===null)continue;if(a&&(E=vp(E)),M.fn(E,d,C,s)){h[b]=!0;continue e}}h[b]=!1}return h}},pK=(e,t,n)=>{const r=dK(e,t,n),l=fK(e,t);return function(s,u,d){d.passingFilterItems=r?.(s,u)??null,d.passingQuickFilterValues=l?.(s,u)??null}},XA=e=>e!=null,hK=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>S$(r,t)!==null)),e.cleanedFilterItems),gK=(e,t,n,r,l)=>{const a=hK(l,r,n.items),s=e.filter(XA),u=t.filter(XA);if(s.length>0){const d=h=>s.some(g=>g[h.id]);if((n.logicOperator??bp().logicOperator)===Mo.And){if(!a.every(d))return!1}else if(!a.some(d))return!1}if(u.length>0&&n.quickFilterValues!=null){const d=h=>u.some(g=>g[h]);if((n.quickFilterLogicOperator??bp().quickFilterLogicOperator)===Mo.And){if(!n.quickFilterValues.every(d))return!1}else if(!n.quickFilterValues.some(d))return!1}return!0},mK=e=>{if(!e)return null;const t=new RegExp(lm(e),"i");return(n,r,l,a)=>{let s=a.current.getRowFormattedValue(r,l);return a.current.ignoreDiacritics&&(s=vp(s)),s!=null?t.test(s.toString()):!1}},QA=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),l=new RegExp(lm(r),"i");return a=>{if(a==null)return t;const s=l.test(String(a));return t?!s:s}},ZA=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),l=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return a=>{if(a==null)return t;const s=l.compare(r,a.toString())===0;return t?!s:s}},JA=e=>()=>t=>{const n=t===""||t==null;return e?!n:n},bK=(e=!1)=>[{value:"contains",getApplyFilterFn:QA(e,!1),InputComponent:Al},{value:"doesNotContain",getApplyFilterFn:QA(e,!0),InputComponent:Al},{value:"equals",getApplyFilterFn:ZA(e,!1),InputComponent:Al},{value:"doesNotEqual",getApplyFilterFn:ZA(e,!0),InputComponent:Al},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${lm(n)}.*$`,"i");return l=>l!=null?r.test(l.toString()):!1},InputComponent:Al},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${lm(n)}$`,"i");return l=>l!=null?r.test(l.toString()):!1},InputComponent:Al},{value:"isEmpty",getApplyFilterFn:JA(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:JA(!0),requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(l=>l.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return l=>l!=null?n.some(a=>r.compare(a,l.toString()||"")===0):!1},InputComponent:d$}],di={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:ZW,type:"string",align:"left",filterOperators:bK(),renderEditCell:qW,getApplyQuickFilterFn:mK};function x$(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const am=e=>e.indexOf("Arrow")===0||e.indexOf("Page")===0||e===" "||e==="Home"||e==="End",vK=e=>!!e.key,M$=e=>e==="Tab"||e==="Escape";function T$(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="V"&&!e.shiftKey&&!e.altKey}function yK(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="C"&&!e.shiftKey&&!e.altKey}const E$=m.createContext(void 0),Xm=()=>{const e=m.useContext(E$);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid configuration context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
`));return e},CK="MuiDataGridVariables",Ux=m.createContext({className:"unset",tag:x.jsx("style",{href:"/unset"})});function P$(){return m.useContext(Ux).className}function SK(){return m.useContext(Ux)}function wK(e){const t=Xm(),n=We(),r=t.hooks.useCSSVariables(),l=m.useMemo(()=>{const a=`${CK}-${r.id}`,s=`.${a}{${xK(r.variables)}}`,u=x.jsx("style",{href:`/${a}`,nonce:n.nonce,children:s});return{className:a,tag:u}},[n.nonce,r]);return x.jsx(Ux.Provider,{value:l,children:e.children})}function xK(e){let t="";for(const n in e)Object.hasOwn(e,n)&&e[n]!==void 0&&(t+=`${n}:${e[n]};`);return t}const MK=["open","target","onClose","children","position","className","onExited"],TK=e=>{const{classes:t}=e;return Be({root:["menu"]},Lt,t)},EK=ge(Ma,{name:"MuiDataGrid",slot:"Menu"})({zIndex:Ye.zIndex.menu,[`& .${K.menuList}`]:{outline:0}});function Qm(e){const{open:t,target:n,onClose:r,children:l,position:a,className:s,onExited:u}=e,d=Ge(e,MK),f=Mt(),h=We(),g=TK(h),b=P$(),y=m.useRef(null);gn(()=>{t?y.current=document.activeElement instanceof HTMLElement?document.activeElement:null:(y.current?.focus?.(),y.current=null)},[t]),m.useEffect(()=>{const w=t?"menuOpen":"menuClose";f.current.publishEvent(w,{target:n})},[f,t,n]);const C=w=>{w.target&&(n===w.target||n?.contains(w.target))||r(w)},S=w=>{M$(w.key)&&r(w)};return x.jsx(EK,N({as:h.slots.basePopper,className:Oe(g.root,s,b),ownerState:h,open:t,target:n,transition:!0,placement:a,onClickAway:C,onExited:u,clickAwayMouseEvent:"onMouseDown",onKeyDown:S},d,h.slotProps?.basePopper,{children:l}))}const PK=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],RK=e=>typeof e.getActions=="function";function AK(e){const{colDef:t,id:n,hasFocus:r,tabIndex:l,position:a="bottom-end",focusElementRef:s}=e,u=Ge(e,PK),[d,f]=m.useState(-1),[h,g]=m.useState(!1),b=Mt(),y=m.useRef(null),C=m.useRef(null),S=m.useRef(!1),w=m.useRef({}),M=Po(),E=Nt(),O=Nt(),P=We();if(!RK(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const R=t.getActions(b.current.getRowParams(n)),A=R.filter(F=>!F.props.showInMenu),z=R.filter(F=>F.props.showInMenu),k=A.length+(z.length?1:0);m.useLayoutEffect(()=>{r||Object.entries(w.current).forEach(([F,_])=>{_?.stop({},()=>{delete w.current[F]})})},[r]),m.useEffect(()=>{if(d<0||!y.current||d>=y.current.children.length)return;y.current.children[d].focus({preventScroll:!0})},[d]),m.useEffect(()=>{r||(f(-1),S.current=!1)},[r]),m.useImperativeHandle(s,()=>({focus(){if(!S.current){const F=R.findIndex(_=>!_.props.disabled);f(F)}}}),[R]),m.useEffect(()=>{d>=k&&f(k-1)},[d,k]);const L=()=>{g(!0),f(k-1),S.current=!0},H=()=>{g(!1)},$=F=>{F.stopPropagation(),F.preventDefault(),h?H():L()},I=F=>_=>{w.current[F]=_},j=(F,_)=>B=>{f(F),S.current=!0,_&&_(B)},q=F=>{if(k<=1)return;const _=(J,Q)=>{if(J<0||J>R.length)return J;const G=(Q==="left"?-1:1)*(M?-1:1);return R[J+G]?.props.disabled?_(J+G,Q):J+G};let B=d;F.key==="ArrowRight"?B=_(d,"right"):F.key==="ArrowLeft"&&(B=_(d,"left")),!(B<0||B>=k)&&B!==d&&(F.preventDefault(),F.stopPropagation(),f(B))};return x.jsxs("div",N({role:"menu",ref:y,tabIndex:-1,className:K.actionsCell,onKeyDown:q},u,{children:[A.map((F,_)=>m.cloneElement(F,{key:_,touchRippleRef:I(_),onClick:j(_,F.props.onClick),tabIndex:d===_?l:-1})),z.length>0&&O&&x.jsx(P.slots.baseIconButton,N({ref:C,id:O,"aria-label":b.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":h,"aria-controls":h?E:void 0,role:"menuitem",size:"small",onClick:$,touchRippleRef:I(O),tabIndex:d===A.length?l:-1},P.slotProps?.baseIconButton,{children:x.jsx(P.slots.moreActionsIcon,{fontSize:"small"})})),z.length>0&&x.jsx(Qm,{open:h,target:C.current,position:a,onClose:H,children:x.jsx(P.slots.baseMenuList,{id:E,className:K.menuList,"aria-labelledby":O,autoFocusItem:!0,children:z.map((F,_)=>m.cloneElement(F,{key:_,closeMenu:H}))})})]}))}const OK=e=>x.jsx(AK,N({},e)),Zm="actions",IK=N({},di,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:OK,getApplyQuickFilterFn:()=>null}),kK="__tree_data_group__",R$="__row_group_by_columns_group__",qx="__detail_panel_toggle__";let zt=function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e}({});const _K=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],DK=e=>{const{classes:t}=e;return Be({root:["booleanCell"]},Lt,t)};function LK(e){const{value:t,rowNode:n}=e,r=Ge(e,_K),l=Mt(),a=We(),s={classes:a.classes},u=DK(s),f=Te(l,fd)>0&&n.type==="group"&&a.treeData===!1,h=m.useMemo(()=>t?a.slots.booleanCellTrueIcon:a.slots.booleanCellFalseIcon,[a.slots.booleanCellFalseIcon,a.slots.booleanCellTrueIcon,t]);return f&&t===void 0?null:x.jsx(h,N({fontSize:"small",className:u.root,titleAccess:l.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},r))}const $K=m.memo(LK),zK=e=>e.field!==R$&&Zu(e.rowNode)?"":x.jsx($K,N({},e)),FK=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],HK=e=>{const{classes:t}=e;return Be({root:["editBooleanCell"]},Lt,t)};function NK(e){const{id:t,value:n,field:r,className:l,hasFocus:a,onValueChange:s}=e,u=Ge(e,FK),d=Mt(),f=m.useRef(null),h=Nt(),[g,b]=m.useState(n),y=We(),C={classes:y.classes},S=HK(C),w=m.useCallback(async M=>{const E=M.target.checked;s&&await s(M,E),b(E),await d.current.setEditCellValue({id:t,field:r,value:E},M)},[d,r,t,s]);return m.useEffect(()=>{b(n)},[n]),gn(()=>{a&&f.current.focus()},[a]),x.jsx("label",N({htmlFor:h,className:Oe(S.root,l)},u,{children:x.jsx(y.slots.baseCheckbox,N({id:h,inputRef:f,checked:!!g,onChange:w,size:"small"},y.slotProps?.baseCheckbox))}))}const jK=e=>x.jsx(NK,N({},e)),BK=["item","applyValue","apiRef","focusElementRef","isFilterActive","headerFilterMenu","clearButton","tabIndex","slotProps"];function GK(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:l,headerFilterMenu:a,clearButton:s,tabIndex:u,slotProps:d}=e,f=Ge(e,BK),[h,g]=m.useState(Fg(t.value)),b=We(),y=Nt(),C=Nt(),S=b.slotProps?.baseSelect||{},w=S.native??!1,M=b.slotProps?.baseSelectOption||{},E=m.useCallback(R=>{const A=Fg(R.target.value);g(A),n(N({},t,{value:A}))},[n,t]);m.useEffect(()=>{g(Fg(t.value))},[t.value]);const O=d?.root.label??r.current.getLocaleText("filterPanelInputLabel"),P=d?.root.slotProps;return x.jsxs(m.Fragment,{children:[x.jsxs(b.slots.baseSelect,N({fullWidth:!0,labelId:y,id:C,label:O,value:h===void 0?"":String(h),onChange:E,native:w,slotProps:{htmlInput:N({ref:l,tabIndex:u},P?.htmlInput)}},S,f,d?.root,{children:[x.jsx(b.slots.baseSelectOption,N({},M,{native:w,value:"",children:r.current.getLocaleText("filterValueAny")})),x.jsx(b.slots.baseSelectOption,N({},M,{native:w,value:"true",children:r.current.getLocaleText("filterValueTrue")})),x.jsx(b.slots.baseSelectOption,N({},M,{native:w,value:"false",children:r.current.getLocaleText("filterValueFalse")}))]})),a,s]})}function Fg(e){if(String(e).toLowerCase()==="true")return!0;if(String(e).toLowerCase()==="false")return!1}const VK=()=>[{value:"is",getApplyFilterFn:e=>{const t=Fg(e.value);return t===void 0?null:n=>!!n===t},InputComponent:GK}],UK=(e,t,n,r)=>e?r.current.getLocaleText("booleanCellTrueLabel"):r.current.getLocaleText("booleanCellFalseLabel"),qK=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},A$=N({},di,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:zK,renderEditCell:jK,sortComparator:s$,valueFormatter:UK,filterOperators:VK(),getApplyQuickFilterFn:()=>null,aggregable:!1,pastedValueParser:e=>qK(e)});function Jm(e){for(const t in e)return!1;return!0}const O$=Gn(e=>e.sorting),Hp=ot(O$,e=>e.sortedRows),Wx=Zt(Hp,kl,eo,(e,t,n)=>e.reduce((r,l)=>{const a=t[l];if(a)r.push({id:l,model:a});else{const s=n[l];s&&Zu(s)&&r.push({id:l,model:{[Qu]:l}})}return r},[])),Tl=ot(O$,e=>e.sortModel),WK=Zt(Tl,e=>e.reduce((n,r,l)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?l+1:void 0},n),{}));Zt(Hp,e=>e.reduce((t,n,r)=>(t[n]=r,t),Object.create(null)));const eb=Gn(e=>e.filter),zr=ot(eb,e=>e.filterModel),I$=ot(zr,e=>e.quickFilterValues),KK=Gn(e=>e.visibleRowsLookup),hd=ot(eb,e=>e.filteredRowsLookup);ot(eb,e=>e.filteredChildrenCountLookup);ot(eb,e=>e.filteredDescendantCountLookup);const Es=Zt(KK,Wx,(e,t)=>Jm(e)?t:t.filter(n=>e[n.id]!==!1)),Lu=Zt(Es,e=>e.map(t=>t.id)),k$=Zt(hd,Wx,(e,t)=>Jm(e)?t:t.filter(n=>e[n.id]!==!1)),_$=Zt(k$,e=>e.map(t=>t.id));Zt(Lu,eo,(e,t)=>{const n={};let r=0;return e.reduce((l,a)=>{const s=t[a];return n[s.depth]||(n[s.depth]=0),s.depth>r&&(n[s.depth]=0),r=s.depth,n[s.depth]+=1,l[a]=n[s.depth],l},{})});const D$=Zt(Es,eo,fd,(e,t,n)=>n<2?e:e.filter(r=>t[r.id]?.depth===0)),Kx=ot(Es,e=>e.length),Yx=ot(D$,e=>e.length),L$=ot(k$,e=>e.length);ot(L$,Yx,(e,t)=>e-t);const Xx=Zt(zr,Ta,(e,t)=>e.items?.filter(n=>{if(!n.field)return!1;const r=t[n.field];if(!r?.filterOperators||r?.filterOperators?.length===0)return!1;const l=r.filterOperators.find(a=>a.value===n.operator);return l?!l.InputComponent||n.value!=null&&n.value?.toString()!=="":!1})),YK=Zt(Xx,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),ri=Gn(e=>e.rowSelection),Np=Zt(ri,ps),tb=ot(ri,L$,(e,t)=>e.type==="include"?e.ids.size:t-e.ids.size),$$=Zt(ri,kl,ac,(e,t,n)=>{const r=new Map;if(e.type==="include")for(const l of e.ids)r.set(l,t[l]);else for(let l=0;l<n.length;l+=1){const a=n[l];e.ids.has(a)||r.set(a,t[a])}return r});function z$(e,t){const n=eo(e),r=Hp(e),l=hd(e),a=n[t];if(!a||a.type!=="group")return[];const s=[],u=r.findIndex(d=>d===t)+1;for(let d=u;d<r.length&&n[r[d]]?.depth>a.depth;d+=1){const f=r[d];l[f]!==!1&&e.current.isRowSelectable(f)&&s.push(f)}return s}const XK=ot(eo,hd,Np,(e,t,n,{groupId:r,autoSelectParents:l})=>{const a=e[r];if(!a||a.type!=="group"||n.has(r))return{isIndeterminate:!1,isChecked:n.has(r)};let s=!1,u=!1;const d=f=>{if(t[f]===!1||s&&u)return;const h=e[f];h?.type==="group"&&h.children.forEach(d),n.has(f)?s=!0:u=!0};return d(r),{isIndeterminate:s&&u,isChecked:l?s&&!u:!1}});function Qx(e){return e.signature===ci.DataGrid?e.checkboxSelection&&e.disableMultipleRowSelection!==!0:!e.disableMultipleRowSelection}const QK=(e,t)=>{const n=[];let r=t;for(;r!=null&&r!==Nr;){const l=e[r];if(!l)return n;n.push(r),r=l.parent}return n},ZK=(e,t,n)=>{const r=e[n];if(!r)return[];const l=r.parent;return l==null?[]:e[l].children.filter(s=>s!==n&&t[s]!==!1)},kf=(e,t,n,r,l,a,s=Np(e))=>{const u=hd(e),d=new Set([]);if(!(!r&&!l||u[n]===!1)&&(r&&t[n]?.type==="group"&&z$(e,n).forEach(g=>{a(g),d.add(g)}),l)){const f=b=>{if(!s.has(b)&&!d.has(b))return!1;const y=t[b];return y?y.type!=="group"?!0:y.children.every(f):!1},h=b=>{const y=ZK(t,u,b);if(y.length===0||y.every(f)){const S=t[b]?.parent;S!=null&&S!==Nr&&e.current.isRowSelectable(S)&&(a(S),d.add(S),h(S))}},g=t[n];if(!g||g.parent===Nr)return;h(n)}},eO=(e,t,n,r,l,a)=>{const s=Np(e);!l&&!r||(l&&QK(t,n).forEach(d=>{s.has(d)&&a(d)}),r&&t[n]?.type==="group"&&z$(e,n).forEach(f=>{a(f)}))},JK=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],eY=e=>{const{classes:t}=e;return Be({root:["checkboxInput"]},Lt,t)},tY=ht(function(t,n){const{field:r,id:l,rowNode:a,tabIndex:s}=t,u=Ge(t,JK),d=Mt(),f=We(),h={classes:f.classes},g=eY(h),b=E=>{const O={value:E.target.checked,id:l};d.current.publishEvent("rowSelectionCheckboxChange",O,E)};m.useLayoutEffect(()=>{if(s===0){const E=d.current.getCellElement(l,r);E&&(E.tabIndex=-1)}},[d,s,l,r]);const y=m.useCallback(E=>{E.key===" "&&E.stopPropagation()},[]),C=d.current.isRowSelectable(l),{isIndeterminate:S,isChecked:w}=Te(d,XK,{groupId:l,autoSelectParents:f.rowSelectionPropagation?.parents??!1});if(a.type==="footer"||a.type==="pinnedRow")return null;const M=d.current.getLocaleText(w&&!S?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return x.jsx(f.slots.baseCheckbox,N({tabIndex:s,checked:w&&!S,onChange:b,className:g.root,slotProps:{htmlInput:{"aria-label":M,name:"select_row"}},onKeyDown:y,indeterminate:S,disabled:!C},f.slotProps?.baseCheckbox,u,{ref:n}))}),nY=tY,nb=Gn(e=>e.focus),Lo=ot(nb,e=>e.cell),rY=ot(nb,e=>e.columnHeader);ot(nb,e=>e.columnHeaderFilter);const sm=ot(nb,e=>e.columnGroupHeader),rb=Gn(e=>e.tabIndex),Zx=ot(rb,e=>e.cell),F$=ot(rb,e=>e.columnHeader);ot(rb,e=>e.columnHeaderFilter);const oY=ot(rb,e=>e.columnGroupHeader),lY=100,iY=e=>e?0:100,H$=(e,t,n)=>t>0&&e>0?Math.ceil(e/t):e===-1?n+2:0,N$=e=>({page:0,pageSize:e?0:100}),aY=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),j$=(e,t)=>{if(t===ci.DataGrid&&e>lY)throw new Error(["MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
`))},sY=-1,gd=Gn(e=>e.pagination),B$=ot(gd,e=>e.enabled&&e.paginationMode==="client"),Jr=ot(gd,e=>e.paginationModel),Iu=ot(gd,e=>e.rowCount),Bf=ot(gd,e=>e.meta),cY=ot(Jr,e=>e.page),G$=ot(Jr,e=>e.pageSize),V$=ot(Jr,Iu,(e,t)=>H$(t,e.pageSize,e.page)),Jx=Zt(B$,Jr,eo,fd,Es,D$,(e,t,n,r,l,a)=>{if(!e)return null;const s=a.length,u=Math.min(t.pageSize*t.page,s-1),d=t.pageSize===sY?s-1:Math.min(u+t.pageSize-1,s-1);if(u===-1||d===-1)return null;if(r<2)return{firstRowIndex:u,lastRowIndex:d};const f=a[u],h=d-u+1,g=l.findIndex(C=>C.id===f.id);let b=g,y=0;for(;b<l.length&&y<=h;){const C=l[b],S=n[C.id]?.depth;S===void 0?b+=1:((y<h||S>0)&&(b+=1),S===0&&(y+=1))}return{firstRowIndex:g,lastRowIndex:b-1}}),uY=Zt(Es,Jx,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),U$=Zt(Lu,Jx,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),jp=Zt(B$,Jx,uY,Es,(e,t,n,r)=>e?{rows:n,range:t,rowIdToIndexMap:n.reduce((l,a,s)=>(l.set(a.id,s),l),new Map)}:{rows:r,range:r.length===0?null:{firstRowIndex:0,lastRowIndex:r.length-1},rowIdToIndexMap:r.reduce((l,a,s)=>(l.set(a.id,s),l),new Map)}),dY=["field","colDef"],fY=e=>{const{classes:t}=e;return Be({root:["checkboxInput"]},Lt,t)},pY=ht(function(t,n){const r=Ge(t,dY),[,l]=m.useState(!1),a=Mt(),s=We(),u={classes:s.classes},d=fY(u),f=Te(a,F$),h=Te(a,ri),g=Te(a,Lu),b=Te(a,U$),y=m.useMemo(()=>{const z=s.isRowSelectable;if(typeof z!="function"||h.type==="exclude")return h;const k={type:"include",ids:new Set};for(const L of h.ids)s.keepNonExistentRowsSelected&&k.ids.add(L),a.current.getRow(L)&&z(a.current.getRowParams(L))&&k.ids.add(L);return k},[a,s.isRowSelectable,s.keepNonExistentRowsSelected,h]),C=m.useMemo(()=>{const z=!s.pagination||!s.checkboxSelectionVisibleOnly||s.paginationMode==="server"?g:b,k=new Set;for(let L=0;L<z.length;L+=1){const H=z[L];a.current.getRow(H)&&a.current.isRowSelectable(H)&&k.add(H)}return k},[a,s.pagination,s.paginationMode,s.checkboxSelectionVisibleOnly,b,g]),S=m.useMemo(()=>{const z=ps(y);let k=0;for(const L of C)z.has(L)&&(k+=1);return k},[y,C]),w=m.useMemo(()=>{if(y.ids.size===0)return!1;const z=ps(y);for(const k of C)if(!z.has(k))return!0;return!1},[y,C]),M=S>0,E=z=>{const k={value:z.target.checked};a.current.publishEvent("headerSelectionCheckboxChange",k)},O=f!==null&&f.field===t.field?0:-1;m.useLayoutEffect(()=>{const z=a.current.getColumnHeaderElement(t.field);O===0&&z&&(z.tabIndex=-1)},[O,a,t.field]);const P=m.useCallback(z=>{z.key===" "&&a.current.publishEvent("headerSelectionCheckboxChange",{value:!M})},[a,M]),R=m.useCallback(()=>{l(z=>!z)},[]);m.useEffect(()=>a.current.subscribeEvent("rowSelectionChange",R),[a,R]);const A=a.current.getLocaleText(M&&!w?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return x.jsx(s.slots.baseCheckbox,N({indeterminate:w,checked:M&&!w,onChange:E,className:d.root,slotProps:{htmlInput:{"aria-label":A,name:"select_all_rows"}},tabIndex:O,onKeyDown:P,disabled:!Qx(s)},s.slotProps?.baseCheckbox,r,{ref:n}))}),Ju=Gn((e,t)=>Qu in t?t[Qu]:e.props.getRowId?e.props.getRowId(t):t.id),ei="__check__",md=N({},A$,{type:"custom",field:ei,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:()=>null,display:"flex",valueGetter:(e,t,n,r)=>{const l=Ju(r,t);return r.current.isRowSelected(l)},rowSpanValueGetter:(e,t,n,r)=>Ju(r,t),renderHeader:e=>x.jsx(pY,N({},e)),renderCell:e=>x.jsx(nY,N({},e))}),hY=["item","applyValue","type","apiRef","focusElementRef","slotProps","isFilterActive","headerFilterMenu","clearButton","tabIndex","disabled"];function tO(e,t){if(e==null)return"";const n=new Date(e);return Number.isNaN(n.getTime())?"":t==="date"?n.toISOString().substring(0,10):t==="datetime-local"?(n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n.toISOString().substring(0,19)):n.toISOString().substring(0,10)}function Cu(e){const{item:t,applyValue:n,type:r,apiRef:l,focusElementRef:a,slotProps:s,headerFilterMenu:u,clearButton:d,tabIndex:f,disabled:h}=e,g=Ge(e,hY),b=s?.root.slotProps,y=$o(),[C,S]=m.useState(()=>tO(t.value,r)),[w,M]=m.useState(!1),E=Nt(),O=We(),P=m.useCallback(R=>{y.clear();const A=R.target.value;S(A),M(!0),y.start(O.filterDebounceMs,()=>{const z=new Date(A);n(N({},t,{value:Number.isNaN(z.getTime())?void 0:z})),M(!1)})},[n,t,O.filterDebounceMs,y]);return m.useEffect(()=>{const R=tO(t.value,r);S(R)},[t.value,r]),x.jsxs(m.Fragment,{children:[x.jsx(O.slots.baseTextField,N({fullWidth:!0,id:E,label:l.current.getLocaleText("filterPanelInputLabel"),placeholder:l.current.getLocaleText("filterPanelInputPlaceholder"),value:C,onChange:P,type:r||"text",disabled:h,inputRef:a,slotProps:N({},b,{input:N({endAdornment:w?x.jsx(O.slots.loadIcon,{fontSize:"small",color:"action"}):null},b?.input),htmlInput:N({max:r==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:f},b?.htmlInput)})},O.slotProps?.baseTextField,g,s?.root)),u,d]})}function Su(e,t,n,r){if(!e.value)return null;const l=new Date(e.value);n?l.setSeconds(0,0):(l.setMinutes(l.getMinutes()+l.getTimezoneOffset()),l.setHours(0,0,0,0));const a=l.getTime();return s=>{if(!s)return!1;if(r)return t(s.getTime(),a);const u=new Date(s);return n?u.setSeconds(0,0):u.setHours(0,0,0,0),t(u.getTime(),a)}}const q$=e=>[{value:"is",getApplyFilterFn:t=>Su(t,(n,r)=>n===r,e),InputComponent:Cu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>Su(t,(n,r)=>n!==r,e),InputComponent:Cu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>Su(t,(n,r)=>n>r,e),InputComponent:Cu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>Su(t,(n,r)=>n>=r,e),InputComponent:Cu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>Su(t,(n,r)=>n<r,e,!e),InputComponent:Cu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>Su(t,(n,r)=>n<=r,e),InputComponent:Cu,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>t=>t!=null,requiresFilterValue:!1}],gY=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange","slotProps"],mY=ge(Ma)({fontSize:"inherit"}),bY=e=>{const{classes:t}=e;return Be({root:["editInputCell"]},Lt,t)};function vY(e){const{id:t,value:n,field:r,colDef:l,hasFocus:a,onValueChange:s,slotProps:u}=e,d=Ge(e,gY),f=l.type==="dateTime",h=Mt(),g=m.useRef(null),b=m.useMemo(()=>{let P;n==null?P=null:n instanceof Date?P=n:P=new Date((n??"").toString());let R;return P==null||Number.isNaN(P.getTime())?R="":R=new Date(P.getTime()-P.getTimezoneOffset()*60*1e3).toISOString().substr(0,f?16:10),{parsed:P,formatted:R}},[n,f]),[y,C]=m.useState(b),S=We(),w={classes:S.classes},M=bY(w),E=m.useCallback(P=>{if(P==="")return null;const[R,A]=P.split("T"),[z,k,L]=R.split("-"),H=new Date;if(H.setFullYear(Number(z),Number(k)-1,Number(L)),H.setHours(0,0,0,0),A){const[$,I]=A.split(":");H.setHours(Number($),Number(I),0,0)}return H},[]),O=m.useCallback(async P=>{const R=P.target.value,A=E(R);s&&await s(P,A),C({parsed:A,formatted:R}),h.current.setEditCellValue({id:t,field:r,value:A},P)},[h,r,t,s,E]);return m.useEffect(()=>{C(P=>b.parsed!==P.parsed&&b.parsed?.getTime()!==P.parsed?.getTime()?b:P)},[b]),gn(()=>{a&&g.current.focus()},[a]),x.jsx(mY,N({as:S.slots.baseInput,inputRef:g,fullWidth:!0,className:M.root,type:f?"datetime-local":"date",value:y.formatted,onChange:O},d,u?.root,{slotProps:{htmlInput:N({max:f?"9999-12-31T23:59":"9999-12-31"},u?.root?.slotProps?.htmlInput)}}))}const W$=e=>x.jsx(vY,N({},e));function K$({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI X: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(`
`))}const yY=(e,t,n,r)=>{if(!e)return"";const l=Ju(r,t);return K$({value:e,columnType:"date",rowId:l,field:n.field}),e.toLocaleDateString()},CY=(e,t,n,r)=>{if(!e)return"";const l=Ju(r,t);return K$({value:e,columnType:"dateTime",rowId:l,field:n.field}),e.toLocaleString()},SY=N({},di,{type:"date",sortComparator:c$,valueFormatter:yY,filterOperators:q$(),renderEditCell:W$,pastedValueParser:e=>new Date(e)}),wY=N({},di,{type:"dateTime",sortComparator:c$,valueFormatter:CY,filterOperators:q$(!0),renderEditCell:W$,pastedValueParser:e=>new Date(e)}),as=e=>e==null?null:Number(e),xY=e=>e==null||Number.isNaN(e)||e===""?null:t=>as(t)===as(e),MY=()=>[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>as(t)===e.value,InputComponent:Al,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>as(t)!==e.value,InputComponent:Al,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:as(t)>e.value,InputComponent:Al,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:as(t)>=e.value,InputComponent:Al,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:as(t)<e.value,InputComponent:Al,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:as(t)<=e.value,InputComponent:Al,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:d$,InputComponentProps:{type:"number"}}],TY=N({},di,{type:"number",align:"right",headerAlign:"right",sortComparator:s$,valueParser:e=>e===""?null:Number(e),valueFormatter:e=>eK(e)?e.toLocaleString():e||"",filterOperators:MY(),getApplyQuickFilterFn:xY});function ed(e){return e?.type==="singleSelect"}function vc(e,t){if(e)return typeof e.valueOptions=="function"?e.valueOptions(N({field:e.field},t)):e.valueOptions}function cm(e,t,n){if(t===void 0)return;const r=t.find(l=>{const a=n(l);return String(a)===String(e)});return n(r)}const EY=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","slotProps"];function PY(e){return"key"in e&&!!e.key}function RY(e){const t=We(),{id:n,value:r,field:l,row:a,colDef:s,hasFocus:u,error:d,onValueChange:f,initialOpen:h=t.editMode===Hi.Cell,slotProps:g}=e,b=Ge(e,EY),y=Mt(),C=m.useRef(null),S=m.useRef(null),[w,M]=m.useState(h),O=(t.slotProps?.baseSelect||{}).native??!1;if(gn(()=>{u&&S.current?.focus()},[u]),!ed(s))return null;const P=vc(s,{id:n,row:a});if(!P)return null;const R=s.getOptionValue,A=s.getOptionLabel,z=async H=>{if(!ed(s)||!P)return;M(!1);const $=H.target,I=cm($.value,P,R);f&&await f(H,I),await y.current.setEditCellValue({id:n,field:l,value:I},H)},k=(H,$)=>{if(t.editMode===Hi.Row){M(!1);return}if($==="backdropClick"||H.key==="Escape"){const I=y.current.getCellParams(n,l);y.current.publishEvent("cellEditStop",N({},I,{reason:H.key==="Escape"?ni.escapeKeyDown:ni.cellFocusOut}))}},L=H=>{PY(H)&&H.key==="Enter"||M(!0)};return!P||!s?null:x.jsx(t.slots.baseSelect,N({ref:C,value:r,onChange:z,open:w,onOpen:L,onClose:k,error:d,native:O,fullWidth:!0,slotProps:{htmlInput:{ref:S}}},b,g?.root,t.slotProps?.baseSelect,{children:P.map(H=>{const $=R(H);return m.createElement(t.slots.baseSelectOption,N({},t.slotProps?.baseSelectOption||{},{native:O,key:$,value:$}),A(H))})}))}const AY=e=>x.jsx(RY,N({},e)),OY=["item","applyValue","type","apiRef","focusElementRef","tabIndex","isFilterActive","clearButton","headerFilterMenu","slotProps"],IY=({column:e,OptionComponent:t,getOptionLabel:n,getOptionValue:r,isSelectNative:l,baseSelectOptionProps:a})=>["",...vc(e)||[]].map(u=>{const d=r(u);let f=n(u);return f===""&&(f=" "),m.createElement(t,N({},a,{native:l,key:d,value:d}),f)});function nO(e){const{item:t,applyValue:n,type:r,apiRef:l,focusElementRef:a,tabIndex:s,clearButton:u,headerFilterMenu:d,slotProps:f}=e,h=Ge(e,OY),g=t.value??"",b=Nt(),y=Nt(),C=We(),S=C.slotProps?.baseSelect?.native??!1;let w=null;if(t.field){const A=l.current.getColumn(t.field);ed(A)&&(w=A)}const M=w?.getOptionValue,E=w?.getOptionLabel,O=m.useMemo(()=>vc(w),[w]),P=m.useCallback(A=>{let z=A.target.value;z=cm(z,O,M),n(N({},t,{value:z}))},[O,M,n,t]);if(!ed(w))return null;const R=f?.root.label??l.current.getLocaleText("filterPanelInputLabel");return x.jsxs(m.Fragment,{children:[x.jsx(C.slots.baseSelect,N({fullWidth:!0,id:b,label:R,labelId:y,value:g,onChange:P,slotProps:{htmlInput:N({tabIndex:s,ref:a,type:r||"text",placeholder:f?.root.placeholder??l.current.getLocaleText("filterPanelInputPlaceholder")},f?.root.slotProps?.htmlInput)},native:S},C.slotProps?.baseSelect,h,f?.root,{children:IY({column:w,OptionComponent:C.slots.baseSelectOption,getOptionLabel:E,getOptionValue:M,isSelectNative:S,baseSelectOptionProps:C.slotProps?.baseSelectOption})})),d,u]})}const kY=["item","applyValue","type","apiRef","focusElementRef","slotProps"];function _Y(e){const{item:t,applyValue:n,type:r,apiRef:l,focusElementRef:a,slotProps:s}=e,u=Ge(e,kY),d=Nt(),f=We();let h=null;if(t.field){const E=l.current.getColumn(t.field);ed(E)&&(h=E)}const g=h?.getOptionValue,b=h?.getOptionLabel,y=m.useCallback((E,O)=>g(E)===g(O),[g]),C=m.useMemo(()=>vc(h)||[],[h]),S=m.useMemo(()=>Array.isArray(t.value)?t.value.reduce((E,O)=>{const P=C.find(R=>g(R)===O);return P!=null&&E.push(P),E},[]):[],[g,t.value,C]),w=m.useCallback((E,O)=>{n(N({},t,{value:O.map(g)}))},[n,t,g]),M=f.slots.baseAutocomplete;return x.jsx(M,N({multiple:!0,options:C,isOptionEqualToValue:y,id:d,value:S,onChange:w,getOptionLabel:b,label:l.current.getLocaleText("filterPanelInputLabel"),placeholder:l.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:r||"text",inputRef:a}}},u,s?.root))}const wu=e=>e==null||!Gx(e)?e:e.value,DY=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>wu(t)===wu(e.value),InputComponent:nO},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>wu(t)!==wu(e.value),InputComponent:nO},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(wu);return n=>t.includes(wu(n))},InputComponent:_Y}],LY=e=>typeof e[0]=="object",$Y=e=>Gx(e)?e.value:e,zY=e=>Gx(e)?e.label:String(e),FY=N({},di,{type:"singleSelect",getOptionLabel:zY,getOptionValue:$Y,valueFormatter(e,t,n,r){const l=Ju(r,t);if(!ed(n))return"";const a=vc(n,{id:l,row:t});if(e==null)return"";if(!a)return e;if(!LY(a))return n.getOptionLabel(e);const s=a.find(u=>n.getOptionValue(u)===e);return s?n.getOptionLabel(s):""},renderEditCell:AY,filterOperators:DY(),pastedValueParser:(e,t,n)=>{const r=n,l=vc(r)||[],a=r.getOptionValue;if(l.find(u=>a(u)===e))return e}}),HY="string",NY=()=>({string:di,number:TY,date:SY,dateTime:wY,boolean:A$,singleSelect:FY,[Zm]:IK,custom:di}),eM=Gn(e=>e.headerFiltering),jY=ot(eM,e=>e?.enabled??!1),BY=ot(eM,e=>e.editing),GY=ot(eM,e=>e.menuOpen),ob=Gn(e=>e.columnGrouping),Y$=Zt(ob,e=>e?.unwrappedGroupingModel??{}),X$=Zt(ob,e=>e?.lookup??{}),VY=Zt(ob,e=>e?.headerStructure??[]),Bp=ot(ob,e=>e?.maxDepth??0),Q$=["maxWidth","minWidth","width","flex"],Wy=NY();function UY({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(s=>s.field)),l={all:{},frozenFields:[],freeze:s=>{const u=l.all[s];u&&u.frozen!==!0&&(l.all[s].frozen=!0,l.frozenFields.push(s))}};function a(){if(l.frozenFields.length===r.size)return;const s={min:{},max:{}};let u=e,d=t,f=0;l.frozenFields.forEach(h=>{u-=l.all[h].computedWidth,d-=l.all[h].flex});for(let h=0;h<n.length;h+=1){const g=n[h];if(l.all[g.field]&&l.all[g.field].frozen===!0)continue;let y=u/d*g.flex;y<g.minWidth?(f+=g.minWidth-y,y=g.minWidth,s.min[g.field]=!0):y>g.maxWidth&&(f+=g.maxWidth-y,y=g.maxWidth,s.max[g.field]=!0),l.all[g.field]={frozen:!1,computedWidth:y,flex:g.flex}}f<0?Object.keys(s.max).forEach(h=>{l.freeze(h)}):f>0?Object.keys(s.min).forEach(h=>{l.freeze(h)}):n.forEach(({field:h})=>{l.freeze(h)}),a()}return a(),l.all}const k1=(e,t)=>{const n={};let r=0,l=0;const a=[];e.orderedFields.forEach(d=>{let f=e.lookup[d],h=0,g=!1;e.columnVisibilityModel[d]!==!1&&(f.flex&&f.flex>0?(r+=f.flex,g=!0):h=pc(f.width||di.width,f.minWidth||di.minWidth,f.maxWidth||di.maxWidth),l+=h),f.computedWidth!==h&&(f=N({},f,{computedWidth:h})),g&&a.push(f),n[d]=f});const s=t===void 0?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),u=Math.max(s-l,0);if(r>0&&s>0){const d=UY({initialFreeSpace:u,totalFlexUnits:r,flexColumns:a});Object.keys(d).forEach(f=>{n[f]=N({},n[f],{computedWidth:d[f].computedWidth})})}return N({},e,{lookup:n})},qY=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,l=Object.keys(r);if(l.length===0&&n.length===0)return e;const a={},s=[];for(let h=0;h<n.length;h+=1){const g=n[h];e.lookup[g]&&(a[g]=!0,s.push(g))}const u=s.length===0?e.orderedFields:[...s,...e.orderedFields.filter(h=>!a[h])],d=N({},e.lookup);for(let h=0;h<l.length;h+=1){const g=l[h],b=N({},d[g],{hasBeenResized:!0});Object.entries(r[g]).forEach(([y,C])=>{b[y]=C===-1?1/0:C}),d[g]=b}return N({},e,{orderedFields:u,lookup:d})};function Ky(e){let t=Wy[HY];return e&&Wy[e]&&(t=Wy[e]),t}const Pu=({apiRef:e,columnsToUpsert:t,initialState:n,columnVisibilityModel:r=ai(e),keepOnlyColumnsToUpsert:l=!1,updateInitialVisibilityModel:a=!1})=>{const s=!e.current.state.columns;let u;if(s)u={orderedFields:[],lookup:{},columnVisibilityModel:r,initialColumnVisibilityModel:r};else{const g=ui(e);u={orderedFields:l?[]:[...g.orderedFields],lookup:N({},g.lookup),columnVisibilityModel:r,initialColumnVisibilityModel:a?r:g.initialColumnVisibilityModel}}const d={};if(l&&!s)for(const g in u.lookup)Object.prototype.hasOwnProperty.call(u.lookup,g)&&(d[g]=!1);t.forEach(g=>{const{field:b}=g;d[b]=!0;let y=u.lookup[b];y==null?(y=N({},Ky(g.type),{field:b,hasBeenResized:!1}),u.orderedFields.push(b)):l&&u.orderedFields.push(b),y&&y.type!==g.type&&(y=N({},Ky(g.type),{field:b}));let C=y.hasBeenResized;Q$.forEach(S=>{g[S]!==void 0&&(C=!0,g[S]===-1&&(g[S]=1/0))}),u.lookup[b]=Bu(y,N({},Ky(g.type),g,{hasBeenResized:C}))}),l&&!s&&Object.keys(u.lookup).forEach(g=>{d[g]||delete u.lookup[g]});const f=e.current.unstable_applyPipeProcessors("hydrateColumns",u),h=qY(f,n);return k1(h,e.current.getRootDimensions?.()??void 0)};function Gp(e,t){if(t.listView)return 0;const n=Fp(e),r=Bp(e),l=jY(e),a=Math.floor(t.columnHeaderHeight*n),s=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*n),u=l?Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*n):0;return a+s*r+u}const um=1,Z$=1.5,WY=e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return Be(r,Lt,n)},KY=Xt("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${K["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${K["scrollArea--right"]}`]:t["scrollArea--right"]},{[`&.${K["scrollArea--up"]}`]:t["scrollArea--up"]},{[`&.${K["scrollArea--down"]}`]:t["scrollArea--down"]},t.scrollArea]})(()=>({position:"absolute",zIndex:101,[`&.${K["scrollArea--left"]}`]:{top:0,left:0,width:20,bottom:0},[`&.${K["scrollArea--right"]}`]:{top:0,right:0,width:20,bottom:0},[`&.${K["scrollArea--up"]}`]:{top:0,left:0,right:0,height:20},[`&.${K["scrollArea--down"]}`]:{bottom:0,left:0,right:0,height:20}})),YY=ot(lr,(e,t)=>t==="left"?e.leftPinnedWidth:t==="right"?e.rightPinnedWidth+(e.hasScrollX?e.scrollbarSize:0):0);function XY(e){const t=Mt(),[n,r]=m.useState("none");return rt(t,"columnHeaderDragStart",()=>r("horizontal")),rt(t,"columnHeaderDragEnd",()=>r("none")),rt(t,"rowDragStart",()=>r("vertical")),rt(t,"rowDragEnd",()=>r("none")),n==="none"?null:n==="horizontal"?x.jsx(QY,N({},e)):x.jsx(ZY,N({},e))}function QY(e){const{scrollDirection:t,scrollPosition:n}=e,r=m.useRef(null),l=Mt(),a=$o(),s=Te(l,Fp),u=Te(l,Hx),d=Te(l,YY,t),f=()=>{const S=lr(l);if(t==="left")return n.current.left>0;if(t==="right"){const w=u-S.viewportInnerSize.width;return n.current.left<w}return!1},h=We(),g=Gp(l,h),b=Math.floor(h.columnHeaderHeight*s),y=N({height:b,top:g-b},t==="left"?{left:d}:{},t==="right"?{right:d}:{}),C=wt(S=>{let w;if(S.preventDefault(),t==="left")w=S.clientX-r.current.getBoundingClientRect().right;else if(t==="right")w=Math.max(1,S.clientX-r.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");w=(w-um)*Z$+um,a.start(0,()=>{l.current.scroll({left:n.current.left+w,top:n.current.top})})});return x.jsx(J$,N({},e,{ref:r,getCanScrollMore:f,style:y,handleDragOver:C}))}function ZY(e){const{scrollDirection:t,scrollPosition:n}=e,r=m.useRef(null),l=Mt(),a=$o(),s=Te(l,Wm),u=()=>{const b=lr(l);if(t==="up")return n.current.top>0;if(t==="down"){const C=(s.currentPageTotalHeight||0)-b.viewportInnerSize.height-(b.hasScrollX?b.scrollbarSize:0);return n.current.top<C}return!1},d=We(),f=Gp(l,d),h={top:t==="up"?f:void 0,bottom:t==="down"?0:void 0},g=wt(b=>{let y;if(b.preventDefault(),t==="up")y=b.clientY-r.current.getBoundingClientRect().bottom;else if(t==="down")y=Math.max(1,b.clientY-r.current.getBoundingClientRect().top);else throw new Error("MUI X: Wrong drag direction");y=(y-um)*Z$+um,a.start(0,()=>{l.current.scroll({left:n.current.left,top:n.current.top+y})})});return x.jsx(J$,N({},e,{ref:r,getCanScrollMore:u,style:h,handleDragOver:g}))}const J$=ht(function(t,n){const{scrollDirection:r,getCanScrollMore:l,style:a,handleDragOver:s}=t,u=Mt(),[d,f]=m.useState(l),h=We(),g=N({},h,{scrollDirection:r}),b=WY(g);return rt(u,"scrollPositionChange",()=>{f(l)}),d?x.jsx(KY,{ref:n,className:b.root,ownerState:g,onDragOver:s,style:a}):null}),Sg=xa(XY),ez=m.createContext(void 0);function al(){const e=m.useContext(ez);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
`));return e}const JY=()=>{},eX=(e,t)=>{const n=m.useRef(!1);gn(()=>n.current||!e?JY:(n.current=!0,t()),[n.current||e])};function Dt(e,t,n){const r=m.useRef(!0);gn(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}function jr(e,t){const n=m.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}const tz=(e,t,n,r,l)=>{const a=jr(e,"useNativeEventListener");pn(e,"rootMount",()=>{const s=t();if(!(!s||!n))return a.debug(`Binding native ${n} event`),s.addEventListener(n,r,l),()=>{a.debug(`Clearing native ${n} event`),s.removeEventListener(n,r,l)}})};function Ec(e){const t=m.useRef(!0);t.current&&(t.current=!1,e())}const tX=Xt("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant"&&e!=="right"})(({overlayType:e,loadingOverlayVariant:t,right:n})=>t!=="skeleton"?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,right:`${n}px`,width:0,height:0,zIndex:e==="loadingOverlay"?5:4}:{}),nX=Xt("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant"})({}),rX=e=>{const{classes:t}=e;return Be({root:["overlayWrapper"],inner:["overlayWrapperInner"]},Lt,t)};function oX(e){const t=Mt(),n=We(),r=Te(t,lr);let l=Math.max(r.viewportOuterSize.height-r.topContainerHeight-r.bottomContainerHeight-(r.hasScrollX?r.scrollbarSize:0),0);l===0&&(l=n$);const a=rX(N({},e,{classes:n.classes}));return x.jsx(tX,N({className:a.root},e,{right:r.columnsTotalWidth-r.viewportOuterSize.width,children:x.jsx(nX,N({className:a.inner,style:{height:l,width:r.viewportOuterSize.width}},e))}))}const nz=Gn(e=>e.pivoting),yc=ot(nz,e=>e?.active),lX=new Map,rz=ot(nz,e=>e?.initialColumns||lX),iX=()=>{const e=Mt(),t=We(),n=Te(e,dd),r=Te(e,Kx),l=Te(e,JL),a=Te(e,or),s=n===0&&l===0,u=Te(e,yW),d=Te(e,yc),f=!u&&s,h=!u&&n>0&&r===0,g=!u&&a.length===0,b=f&&d;let y=null,C=null;f&&(y="noRowsOverlay"),g&&(y="noColumnsOverlay"),b&&(y="emptyPivotOverlay"),h&&(y="noResultsOverlay"),u&&(y="loadingOverlay",C=t.slotProps?.loadingOverlay?.[s?"noRowsVariant":"variant"]??(s?"skeleton":"linear-progress"));const S={overlayType:y,loadingOverlayVariant:C};return{getOverlay:()=>{if(!y)return null;const M=t.slots?.[y],E=t.slotProps?.[y];return x.jsx(oX,N({},S,{children:x.jsx(M,N({},E))}))},overlaysProps:S}},Hg=Gn(e=>e.columnMenu);function aX(){const e=al(),t=We(),n=Te(e,or),r=Te(e,YK),l=Te(e,WK),a=Te(e,F$),s=Te(e,()=>Zx(e)===null),u=Te(e,oY),d=Te(e,rY),f=Te(e,sm),h=Te(e,Bp),g=Te(e,Hg),b=Te(e,ai),y=Te(e,VY),C=!(u===null&&a===null&&s),S=e.current.columnHeadersContainerRef;return x.jsx(t.slots.columnHeaders,N({ref:S,visibleColumns:n,filterColumnLookup:r,sortColumnLookup:l,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:u,columnHeaderFocus:d,columnGroupHeaderFocus:f,headerGroupingMaxDepth:h,columnMenuState:g,columnVisibility:b,columnGroupsHeaderStructure:y,hasOtherElementInTabSequence:C},t.slotProps?.columnHeaders))}const sX=xa(aX),cX=Xt("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),uX=Xt("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>{const{ownerState:n,loadingOverlayVariant:r,overlayType:l}=e,a=r==="skeleton"||l==="noColumnsOverlay";return[t.main,n.hasPinnedRight&&t["main--hasPinnedRight"],a&&t["main--hiddenContent"]]}})({flexGrow:1,position:"relative",overflow:"hidden",display:"flex",flexDirection:"column"}),dX=ht((e,t)=>{const{ownerState:n}=e,r=We(),a=Xm().hooks.useGridAriaAttributes();return x.jsxs(uX,N({ownerState:n,className:e.className,tabIndex:-1},a,r.slotProps?.main,{ref:t,children:[x.jsx(cX,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))}),fX=()=>Be({root:["topContainer"]},Lt,{}),pX=Xt("div")({position:"sticky",zIndex:40,top:0});function hX(e){const t=fX();return x.jsx(pX,N({},e,{className:Oe(t.root,K["container--top"]),role:"presentation"}))}const gX=(e,t)=>{const{classes:n}=e;return Be({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},Lt,n)},mX=Xt("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScrollerContent,n.overflowedContent&&t["virtualScrollerContent--overflowed"]]}})({}),bX=ht(function(t,n){const r=We(),l=!r.autoHeight&&t.style?.minHeight==="auto",a=gX(r,l),s={classes:r.classes,overflowedContent:l};return x.jsx(mX,N({},t,{ownerState:s,className:Oe(a.root,t.className),ref:n}))}),vX=Xt("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),oz=Xt("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:Ye.cell.background.pinned}),yX=Xt(oz)({left:0,borderRight:"1px solid var(--rowBorderColor)"}),CX=Xt(oz)({right:0,borderLeft:"1px solid var(--rowBorderColor)"}),SX=Xt("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});function wX({rowsLength:e}){const t=Mt(),{viewportOuterSize:n,minimumSize:r,hasScrollX:l,hasScrollY:a,scrollbarSize:s,leftPinnedWidth:u,rightPinnedWidth:d}=Te(t,lr),f=l?s:0,h=n.height-r.height>0;return f===0&&!h?null:x.jsxs(vX,{className:K.filler,role:"presentation",style:{height:f,"--rowBorderColor":e===0?"transparent":"var(--DataGrid-rowBorderColor)"},children:[u>0&&x.jsx(yX,{className:K["filler--pinnedLeft"],style:{width:u}}),x.jsx(SX,{}),d>0&&x.jsx(CX,{className:K["filler--pinnedRight"],style:{width:d+(a?s:0)}})]})}const xX=xa(wX),MX={},TX={initialize:EX,use:PX,selectors:MX};function EX(e){return{colspanMap:new Map}}function PX(e,t,n){const r=()=>{e.state.colspanMap=new Map},l=(s,u)=>e.state.colspanMap.get(s)?.[u],a=wt((s,u,d,f)=>{for(let h=u;h<d;h+=1){const g=RX(e.state.colspanMap,h,s,u,d,f,t.getColspan);g.colSpan>1&&(h+=g.colSpan-1)}});return n.calculateColSpan=a,{resetColSpan:r,getCellColSpanInfo:l,calculateColSpan:a}}function RX(e,t,n,r,l,a,s){const u=a.length,d=a[t],f=s(n,d,t);if(!f||f===1)return Yy(e,n,t,{spannedByColSpan:!1,cellProps:{colSpan:1,width:d.computedWidth}}),{colSpan:1};let h=d.computedWidth;for(let g=1;g<f;g+=1){const b=t+g;if(b>=r&&b<l){const y=a[b];h+=y.computedWidth,Yy(e,n,t+g,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(t+f,u-1),leftVisibleCellIndex:t})}Yy(e,n,t,{spannedByColSpan:!1,cellProps:{colSpan:f,width:h}})}return{colSpan:f}}function Yy(e,t,n,r){let l=e.get(t);l||(l={},e.set(t,l)),l[n]=r}function AX(e,t=166){let n,r;const l=()=>{n=void 0,e(...r)};function a(...s){r=s,n===void 0&&(n=setTimeout(l,t))}return a.clear=()=>{clearTimeout(n),n=void 0},a}function Ll(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const l=e.length;if(l!==t.length)return!1;for(let a=0;a<l;a+=1)if(!Ll(e[a],t[a]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const l=Array.from(e.entries());for(let a=0;a<l.length;a+=1)if(!t.has(l[a][0]))return!1;for(let a=0;a<l.length;a+=1){const s=l[a];if(!Ll(s[1],t.get(s[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const l=Array.from(e.entries());for(let a=0;a<l.length;a+=1)if(!t.has(l[a][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const l=e.length;if(l!==t.length)return!1;for(let a=0;a<l;a+=1)if(e[a]!==t[a])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let l=0;l<r;l+=1)if(!Object.prototype.hasOwnProperty.call(t,n[l]))return!1;for(let l=0;l<r;l+=1){const a=n[l];if(!Ll(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function sc(e,t){return Math.round(e*10**t)/10**t}let li;(function(e){e.EMPTY={width:0,height:0};function t(n,r){return n.width===r.width&&n.height===r.height}e.equals=t})(li||(li={}));let Hn=function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT",e[e.RIGHT=4]="RIGHT",e}({});(function(e){function t(n,r){return n===0&&r===0?Hn.NONE:Math.abs(r)>=Math.abs(n)?r>0?Hn.DOWN:Hn.UP:n>0?Hn.RIGHT:Hn.LEFT}e.forDelta=t})(Hn||(Hn={}));const OX={isReady:!1,root:li.EMPTY,viewportOuterSize:li.EMPTY,viewportInnerSize:li.EMPTY,contentSize:li.EMPTY,minimumSize:li.EMPTY,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,groupHeaderHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0},hc={rootSize:e=>e.rootSize,dimensions:e=>e.dimensions,rowHeight:e=>e.dimensions.rowHeight,rowsMeta:e=>e.rowsMeta,columnPositions:YL((e,t)=>{const n=[];let r=0;for(let l=0;l<t.length;l+=1)n.push(r),r+=t[l].computedWidth;return n}),needsHorizontalScrollbar:e=>e.dimensions.viewportOuterSize.width>0&&e.dimensions.columnsTotalWidth>e.dimensions.viewportOuterSize.width},Ol={initialize:IX,use:kX,selectors:hc};function IX(e){const t=N({},OX,e.dimensions),{rowCount:n}=e,{rowHeight:r}=t,l={currentPageTotalHeight:n*r,positions:Array.from({length:n},(s,u)=>u*r),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0},a=new Map;return{rootSize:li.EMPTY,dimensions:t,rowsMeta:l,rowHeights:a}}function kX(e,t,n){const r=m.useRef(!0),{refs:l,dimensions:{rowHeight:a,headerHeight:s,columnsTotalWidth:u,groupHeaderHeight:d,headerFilterHeight:f,headersTotalHeight:h,leftPinnedWidth:g,rightPinnedWidth:b}}=t,y=m.useCallback(()=>{if(r.current)return;const O=hc.rootSize(e.state),P=hc.rowsMeta(e.state),R=LX(t.refs.container.current,t.scrollbarSize),A=h+P.pinnedTopRowsTotalHeight,z=P.pinnedBottomRowsTotalHeight,k={width:u,height:sc(P.currentPageTotalHeight,1)};let L,H,$=!1,I=!1;if(t.autoHeight)I=!1,$=Math.round(u)>Math.round(O.width),L={width:O.width,height:A+z+k.height},H={width:Math.max(0,L.width-(I?R:0)),height:Math.max(0,L.height-($?R:0))};else{L={width:O.width,height:O.height},H={width:Math.max(0,L.width),height:Math.max(0,L.height-A-z)};const B=k,J=H,Q=B.width>J.width,D=B.height>J.height;(Q||D)&&(I=D,$=B.width+(I?R:0)>J.width,$&&(I=B.height+R>J.height)),I&&(H.width-=R),$&&(H.height-=R)}const j=Math.max(L.width,u+(I?R:0)),q={width:u,height:A+k.height+z},F={isReady:!0,root:O,viewportOuterSize:L,viewportInnerSize:H,contentSize:k,minimumSize:q,hasScrollX:$,hasScrollY:I,scrollbarSize:R,headerHeight:s,groupHeaderHeight:d,headerFilterHeight:f,rowWidth:j,rowHeight:a,columnsTotalWidth:u,leftPinnedWidth:g,rightPinnedWidth:b,headersTotalHeight:h,topContainerHeight:A,bottomContainerHeight:z},_=e.state.dimensions;Ll(_,F)||e.update({dimensions:F})},[e,t.refs.container,t.scrollbarSize,t.autoHeight,a,s,d,f,u,h,g,b]),{resizeThrottleMs:C,onResize:S}=t,w=wt(y),M=m.useMemo(()=>C>0?AX(()=>{w(),S?.(e.state.rootSize)},C):void 0,[C,S,e,w]);m.useEffect(()=>M?.clear,[M]),gn(()=>DX(l.container.current,e),[l,e]),gn(y,[y]),Um(e,hc.rootSize,(O,P)=>{t.onResize?.(P),r.current||!M?(r.current=!1,y()):M()});const E=_X(e,t,y);return{updateDimensions:y,debouncedUpdateDimensions:M,rowsMeta:E}}function _X(e,t,n){const r=e.state.rowHeights,{rows:l,getRowHeight:a,getRowSpacing:s,getEstimatedRowHeight:u}=t,d=m.useRef(-1),f=m.useRef(!1),h=m.useRef(!1),g=t.pinnedRows,b=ds(e,hc.rowHeight),y=wt($=>{let I=r.get($);return I===void 0&&(I={content:e.state.dimensions.rowHeight,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},r.set($,I)),I}),{rowIdToIndexMap:C,applyRowHeight:S}=t,w=m.useCallback($=>{const I=hc.dimensions(e.state),j=I.rowHeight,q=y($.id);if(!a)q.content=j,q.needsFirstMeasurement=!1;else{const F=a($);if(F==="auto"){if(q.needsFirstMeasurement){const _=u?u($):j;q.content=_??j}f.current=!0,q.autoHeight=!0}else q.content=F??I.rowHeight,q.needsFirstMeasurement=!1,q.autoHeight=!1}if(s){const F=C.get($.id)??-1,_=s($,{isFirstVisible:F===0,isLastVisible:F===l.length-1,indexRelativeToCurrentPage:F});q.spacingTop=_.top??0,q.spacingBottom=_.bottom??0}else q.spacingTop=0,q.spacingBottom=0;return S?.(q,$),q},[e,l,a,y,u,b,s,C,S]),M=m.useCallback(()=>{f.current=!1;const $=g.top.reduce((B,J)=>{const Q=w(J);return B+Q.content+Q.spacingTop+Q.spacingBottom+Q.detail},0),I=g.bottom.reduce((B,J)=>{const Q=w(J);return B+Q.content+Q.spacingTop+Q.spacingBottom+Q.detail},0),j=[],q=l.reduce((B,J)=>{j.push(B);const Q=w(J),D=Q.content+Q.spacingTop+Q.spacingBottom+Q.detail;return B+D},0);f.current||(d.current=1/0);const F=$!==e.state.rowsMeta.pinnedTopRowsTotalHeight||I!==e.state.rowsMeta.pinnedBottomRowsTotalHeight||q!==e.state.rowsMeta.currentPageTotalHeight,_={currentPageTotalHeight:q,positions:j,pinnedTopRowsTotalHeight:$,pinnedBottomRowsTotalHeight:I};e.set("rowsMeta",_),F&&n(),h.current=!0},[e,g,l,w,n]),E=wt(M),O=$=>r.get($)?.content??hc.rowHeight(e.state),P=($,I)=>{const j=y($),q=j.content!==I;j.needsFirstMeasurement=!1,j.content=I,h.current&&=!q},R=$=>r.get($)?.autoHeight??!1,A=()=>d.current,z=$=>{f.current&&$>d.current&&(d.current=$)},k=()=>{r.clear(),M()},L=Nl(()=>typeof ResizeObserver>"u"?void 0:new ResizeObserver($=>{for(let I=0;I<$.length;I+=1){const j=$[I],q=j.borderBoxSize&&j.borderBoxSize.length>0?j.borderBoxSize[0].blockSize:j.contentRect.height,F=j.target.__mui_id;if(t.focusedVirtualCell()?.id===F&&q===0)return;P(F,q)}h.current||requestAnimationFrame(()=>{E()})})).current,H=($,I)=>($.__mui_id=I,L?.observe($),()=>L?.unobserve($));return gn(()=>{M()},[M]),{getRowHeight:O,setLastMeasuredRowIndex:z,storeRowHeightMeasurement:P,hydrateRowsMeta:M,observeRowHeight:H,rowHasAutoHeight:R,getRowHeightEntry:y,getLastMeasuredRowIndex:A,resetRowHeights:k}}function DX(e,t){if(!e)return;const n=e.getBoundingClientRect(),r={width:sc(n.width,1),height:sc(n.height,1)};if((t.state.rootSize===li.EMPTY||!li.equals(r,t.state.rootSize))&&t.update({rootSize:r}),typeof ResizeObserver>"u")return;const l=new ResizeObserver(([a])=>{if(!a)return;const s={width:sc(a.contentRect.width,1),height:sc(a.contentRect.height,1)};li.equals(s,t.state.rootSize)||t.update({rootSize:s})});return l.observe(e),()=>{l.disconnect()}}const rO=new WeakMap;function LX(e,t){if(t!==void 0)return t;if(e===null)return 0;const n=rO.get(e);if(n!==void 0)return n;const l=sr(e).createElement("div");l.style.width="99px",l.style.height="99px",l.style.position="absolute",l.style.overflow="scroll",l.className="scrollDiv",e.appendChild(l);const a=l.offsetWidth-l.clientWidth;return e.removeChild(l),rO.set(e,a),a}const $X=typeof navigator<"u"?navigator.userAgent.toLowerCase():"empty",zX=$X.includes("firefox"),Xy=typeof window<"u"&&/jsdom|HappyDOM/.test(window.navigator.userAgent),$u=(e,t,n)=>Math.max(t,Math.min(n,e)),Qy=50,oO={top:0,left:0},FX=Object.freeze(new Map),dm={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},Ng={renderContext:$g(e=>e.virtualization.renderContext),enabledForRows:$g(e=>e.virtualization.enabledForRows),enabledForColumns:$g(e=>e.virtualization.enabledForColumns)},lz={initialize:HX,use:NX,selectors:Ng};function HX(e){return{virtualization:N({enabled:!Xy,enabledForRows:!Xy,enabledForColumns:!Xy,renderContext:dm},e.initialState?.virtualization),getters:null}}function NX(e,t,n){const{initialState:r,isRtl:l,rows:a,range:s,columns:u,pinnedRows:d,pinnedColumns:f,refs:h,hasColSpan:g,dimensions:{rowHeight:b,columnsTotalWidth:y},contentHeight:C,minimalContentHeight:S,autoHeight:w,onWheel:M,onTouchMove:E,onRenderContextChange:O,onScrollChange:P,rowBufferPx:R,columnBufferPx:A,scrollReset:z,renderRow:k,renderInfiniteLoadingTrigger:L}=t,H=ds(e,Ol.selectors.needsHorizontalScrollbar),$=d.bottom.length>0,[I,j]=m.useState(FX),q=m.useRef(!1),F=ds(e,Ng.renderContext),_=ds(e,Ng.enabledForRows),B=ds(e,Ng.enabledForColumns),J=m.useRef(r?.scroll??oO),Q=m.useRef(!1),D=m.useRef(oO),G=m.useRef(dm),W=$o(),Z=m.useRef(void 0),te=Nl(()=>VX(l,R,A,b*15,Qy*6)).current,ne=m.useCallback(me=>{if(sO(me,e.state.virtualization.renderContext))return;const tt=me.firstRowIndex!==G.current.firstRowIndex||me.lastRowIndex!==G.current.lastRowIndex;e.set("virtualization",N({},e.state.virtualization,{renderContext:me})),Ol.selectors.dimensions(e.state).isReady&&tt&&(G.current=me,O?.(me)),D.current=J.current},[e,O]),oe=wt(()=>{const me=h.scroller.current;if(!me)return;const tt=Ol.selectors.dimensions(e.state),ze=Math.ceil(tt.minimumSize.height-tt.viewportOuterSize.height),et=Math.ceil(tt.minimumSize.width-tt.viewportInnerSize.width),He={top:$u(me.scrollTop,0,ze),left:l?$u(me.scrollLeft,-et,0):$u(me.scrollLeft,0,et)},yt=He.left-J.current.left,Le=He.top-J.current.top,Pe=yt!==0||Le!==0;J.current=He;const Ke=Pe?GX(yt,Le):Hn.NONE,Xe=Math.abs(J.current.top-D.current.top),mt=Math.abs(J.current.left-D.current.left),_e=Xe>=b||mt>=Qy,Je=te.direction!==Ke;if(!(_e||Je))return F;if(Je)switch(Ke){case Hn.NONE:case Hn.LEFT:case Hn.RIGHT:Z.current=void 0;break;default:Z.current=F;break}te.direction=Ke,te.buffer=az(l,Ke,R,A,b*15,Qy*6);const Qe=lO(e,t,n,_,B),st=iO(Qe,J.current,te);return sO(st,F)||(bx.flushSync(()=>{ne(st)}),W.start(1e3,oe)),st}),se=wt(()=>{if(!Ol.selectors.dimensions(e.state).isReady&&(_||B))return;const me=lO(e,t,n,_,B),tt=iO(me,J.current,te);Z.current=void 0,ne(tt)}),Se=wt(()=>{if(Q.current){Q.current=!1;return}const me=oe();me&&P?.(J.current,me)}),be=(me={},tt)=>{if(!me.rows&&!s)return[];let ze=F;me.renderContext&&(ze=me.renderContext,ze.firstColumnIndex=F.firstColumnIndex,ze.lastColumnIndex=F.lastColumnIndex);const et=!$&&me.position===void 0||$&&me.position==="bottom",He=me.position!==void 0;let yt;switch(me.position){case"top":yt=0;break;case"bottom":yt=d.top.length+a.length;break;case void 0:default:yt=d.top.length;break}const Le=me.rows??a,Pe=ze.firstRowIndex,Ke=Math.min(ze.lastRowIndex,Le.length),Xe=me.rows?cO(0,me.rows.length):cO(Pe,Ke);let mt=-1;const _e=t.focusedVirtualCell();!He&&_e&&(_e.rowIndex<Pe&&(Xe.unshift(_e.rowIndex),mt=_e.rowIndex),_e.rowIndex>Ke&&(Xe.push(_e.rowIndex),mt=_e.rowIndex));const Je=[],Fe=Ol.selectors.columnPositions(e.state,u);return Xe.forEach(Qe=>{const{id:st,model:pt}=Le[Qe];if(!tt[st])return;const Ze=(s?.firstRowIndex||0)+yt+Qe;if(g){const Kn=f.left.length,to=u.length-f.right.length;n.calculateColSpan(st,Kn,to,u),f.left.length>0&&n.calculateColSpan(st,0,f.left.length,u),f.right.length>0&&n.calculateColSpan(st,u.length-f.right.length,u.length,u)}const Tt=n.rowsMeta.rowHasAutoHeight(st)?"auto":n.rowsMeta.getRowHeight(st);let _t=!1;me.position===void 0&&(_t=Qe===0);let cn=!1;const qn=Qe===Le.length-1;if(et)if(He)cn=qn;else{const Kn=a.length-1;Qe===Kn&&(cn=!0)}let cr=ze;Z.current&&Qe>=Z.current.firstRowIndex&&Qe<Z.current.lastRowIndex&&(cr=Z.current);const on=Qe===mt,Wn=_e?.rowIndex===Ze,Gr=iz(Fe,cr,f.left.length),Cr=qn&&me.position==="top",Vr=cr.firstColumnIndex,Ur=cr.lastColumnIndex;if(Je.push(k({id:st,model:pt,rowIndex:Ze,offsetLeft:Gr,columnsTotalWidth:y,baseRowHeight:Tt,columns:u,firstColumnIndex:Vr,lastColumnIndex:Ur,focusedColumnIndex:Wn?_e.columnIndex:void 0,isFirstVisible:_t,isLastVisible:cn,isVirtualFocusRow:on,showBottomBorder:Cr})),on)return;const Et=I.get(st);Et&&Je.push(Et),me.position===void 0&&qn&&Je.push(L(st))}),Je},de=m.useMemo(()=>({overflowX:H?void 0:"hidden",overflowY:w?"hidden":void 0}),[H,w]),ke=m.useMemo(()=>{const me={width:H?y:"auto",flexBasis:C,flexShrink:0};return me.flexBasis===0&&(me.flexBasis=S),me},[y,C,H,S]),Ae=m.useRef(null),Ne=m.useCallback(me=>{me&&Ae.current?.(y,C)},[y,C]);gn(()=>{q.current&&se()},[B,_,se]),gn(()=>{h.scroller.current&&(h.scroller.current.scrollLeft=0)},[h.scroller,z]),eX(F!==dm,()=>{if(P?.(J.current,F),q.current=!0,r?.scroll&&h.scroller.current){const me=h.scroller.current,{top:tt,left:ze}=r.scroll,et={top:!(tt>0),left:!(ze>0)};!et.left&&y&&(me.scrollLeft=ze,Q.current=!0,et.left=!0),!et.top&&C&&(me.scrollTop=tt,Q.current=!0,et.top=!0),(!et.top||!et.left)&&(Ae.current=(He,yt)=>{!et.left&&He&&(me.scrollLeft=ze,Q.current=!0,et.left=!0),!et.top&&yt&&(me.scrollTop=tt,Q.current=!0,et.top=!0),et.left&&et.top&&(Ae.current=null)})}}),Um(e,Ol.selectors.dimensions,se);const $e={setPanels:j,getRows:be,getContainerProps:()=>({ref:t.refs.container}),getScrollerProps:()=>({ref:h.scroller,onScroll:Se,onWheel:M,onTouchMove:E,style:de,role:"presentation",tabIndex:zX?-1:void 0}),getContentProps:()=>({style:ke,role:"presentation",ref:Ne}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:h.scrollbarVertical,scrollPosition:J}),getScrollbarHorizontalProps:()=>({ref:h.scrollbarHorizontal,scrollPosition:J}),getScrollAreaProps:()=>({scrollPosition:J})};return Ec(()=>{e.state=N({},e.state,{getters:$e})}),m.useEffect(()=>{e.update(N({},e.state,{getters:$e}))},Object.values($e)),{getters:$e,useVirtualization:()=>ds(e,me=>me),setPanels:j,forceUpdateRenderContext:se,getCellColSpanInfo:()=>{throw new Error("Unimplemented: colspan feature is required")},calculateColSpan:()=>{throw new Error("Unimplemented: colspan feature is required")},getHiddenCellsOrigin:()=>{throw new Error("Unimplemented: rowspan feature is required")}}}function lO(e,t,n,r,l){const a=Ol.selectors.dimensions(e.state),s=t.rows,u=t.range,d=t.columns,f=n.getHiddenCellsOrigin(),h=t.rows.at(-1)?.id,g=d.at(-1);return{api:n,enabledForRows:r,enabledForColumns:l,autoHeight:t.autoHeight,rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx,leftPinnedWidth:a.leftPinnedWidth,columnsTotalWidth:a.columnsTotalWidth,viewportInnerWidth:a.viewportInnerSize.width,viewportInnerHeight:a.viewportInnerSize.height,lastRowHeight:h!==void 0?n.rowsMeta.getRowHeight(h):0,lastColumnWidth:g?.computedWidth??0,rowsMeta:Ol.selectors.rowsMeta(e.state),columnPositions:Ol.selectors.columnPositions(e.state,t.columns),rows:s,range:u,pinnedColumns:t.pinnedColumns,columns:d,hiddenCellsOriginMap:f,virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight}}function iO(e,t,n){const r={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.columns.length},{top:l,left:a}=t,s=Math.abs(a)+e.leftPinnedWidth;if(e.enabledForRows){let d=Math.min(aO(e,l,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1);const f=e.hiddenCellsOriginMap[d];if(f){const g=Math.min(...Object.values(f));d=Math.min(d,g)}const h=e.autoHeight?d+e.rows.length:aO(e,l+e.viewportInnerHeight);r.firstRowIndex=d,r.lastRowIndex=h}if(e.enabledForColumns){let d=0,f=e.columnPositions.length,h=!1;const[g,b]=_1({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});if(!e.virtualizeColumnsWithAutoRowHeight)for(let y=g;y<b&&!h;y+=1){const C=e.rows[y];h=e.api.rowsMeta.rowHasAutoHeight(C.id)}(!h||e.virtualizeColumnsWithAutoRowHeight)&&(d=ys(s,e.columnPositions,{atStart:!0,lastPosition:e.columnsTotalWidth}),f=ys(s+e.viewportInnerWidth,e.columnPositions)),r.firstColumnIndex=d,r.lastColumnIndex=f}return jX(e,r,n)}function aO(e,t,n){const r=e.api.rowsMeta.getLastMeasuredRowIndex();let l=r===1/0;e.range?.lastRowIndex&&!l&&(l=r>=e.range.lastRowIndex);const a=$u(r-(e.range?.firstRowIndex||0),0,e.rowsMeta.positions.length);return l||e.rowsMeta.positions[a]>=t?ys(t,e.rowsMeta.positions,n):BX(t,e.rowsMeta.positions,a,n)}function jX(e,t,n){const[r,l]=_1({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight}),[a,s]=_1({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:e.pinnedColumns.left.length,maxLastIndex:e.columns.length-e.pinnedColumns.right.length,bufferBefore:n.buffer.columnBefore,bufferAfter:n.buffer.columnAfter,positions:e.columnPositions,lastSize:e.lastColumnWidth}),u=UX({api:e.api,firstColumnToRender:a,firstRowToRender:r,lastRowToRender:l,visibleRows:e.rows});return{firstRowIndex:r,lastRowIndex:l,firstColumnIndex:u,lastColumnIndex:s}}function ys(e,t,n=void 0,r=0,l=t.length){if(t.length<=0)return-1;if(r>=l)return r;const a=r+Math.floor((l-r)/2),s=t[a];let u;if(n?.atStart){const d=(a===t.length-1?n.lastPosition:t[a+1])-s;u=e-d<s}else u=e<=s;return u?ys(e,t,n,r,a):ys(e,t,n,a+1,l)}function BX(e,t,n,r=void 0){let l=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=l,l*=2;return ys(e,t,r,Math.floor(n/2),Math.min(n,t.length))}function _1({firstIndex:e,lastIndex:t,bufferBefore:n,bufferAfter:r,minFirstIndex:l,maxLastIndex:a,positions:s,lastSize:u}){const d=s[e]-n,f=s[t]+r,h=ys(d,s,{atStart:!0,lastPosition:s[s.length-1]+u}),g=ys(f,s);return[$u(h,l,a),$u(g,l,a)]}function sO(e,t){return e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex}function iz(e,t,n){const r=(e[t.firstColumnIndex]??0)-(e[n]??0);return Math.abs(r)}function GX(e,t){return e===0&&t===0?Hn.NONE:Math.abs(t)>=Math.abs(e)?t>0?Hn.DOWN:Hn.UP:e>0?Hn.RIGHT:Hn.LEFT}function az(e,t,n,r,l,a){if(e)switch(t){case Hn.LEFT:t=Hn.RIGHT;break;case Hn.RIGHT:t=Hn.LEFT;break}switch(t){case Hn.NONE:return{rowAfter:n,rowBefore:n,columnAfter:r,columnBefore:r};case Hn.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:a};case Hn.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:a,columnBefore:0};case Hn.UP:return{rowAfter:0,rowBefore:l,columnAfter:0,columnBefore:0};case Hn.DOWN:return{rowAfter:l,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}function VX(e,t,n,r,l){return{direction:Hn.NONE,buffer:az(e,Hn.NONE,t,n,r,l)}}function cO(e,t){return Array.from({length:t-e}).map((n,r)=>e+r)}function UX({api:e,firstColumnToRender:t,firstRowToRender:n,lastRowToRender:r,visibleRows:l}){let a=t,s=!1;for(;!s&&a>=0;){s=!0;for(let u=n;u<r;u+=1)if(l[u]){const f=l[u].id,h=e.getCellColSpanInfo(f,a);if(h&&h.spannedByColSpan&&h.leftVisibleCellIndex<a){a=h.leftVisibleCellIndex,s=!1;break}}}return a}const qX={},WX={initialize:KX,use:YX,selectors:qX};function KX(e){return{}}function YX(e,t,n){return{getViewportPageSize:()=>{const l=Ol.selectors.dimensions(e.state);if(!l.isReady)return 0;if(t.getRowHeight){const s=lz.selectors.renderContext(e.state),u=s.lastRowIndex-s.firstRowIndex;return Math.min(u-1,t.rows.length)}const a=Math.floor(l.viewportInnerSize.height/l.rowHeight);return Math.min(a,t.rows.length)}}}const XX={firstRowIndex:0,lastRowIndex:0},QX={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},sz={state:e=>e.rowSpanning,hiddenCells:e=>e.rowSpanning.caches.hiddenCells,spannedCells:e=>e.rowSpanning.caches.spannedCells,hiddenCellsOriginMap:e=>e.rowSpanning.caches.hiddenCellOriginMap},td={initialize:ZX,use:JX,selectors:sz};function ZX(e){return{rowSpanning:e.initialState?.rowSpanning??{caches:QX,processedRange:XX}}}function JX(e,t,n){return{getHiddenCellsOrigin:()=>sz.hiddenCellsOriginMap(e.state)}}const uO=[Ol,lz,TX,td,WX],eQ=e=>{const t=Nl(()=>new qm(uO.map(r=>r.initialize(e)).reduce((r,l)=>Object.assign(r,l),{}))).current,n={};for(const r of uO)Object.assign(n,r.use(t,e,n));return{store:t,api:n}},D1=typeof window<"u"&&/jsdom|HappyDOM/.test(window.navigator.userAgent),np=!D1,tQ=(e,t)=>{const{disableVirtualization:n,autoHeight:r}=t;return N({},e,{virtualization:{enabled:!n&&np,enabledForColumns:!n&&np,enabledForRows:!n&&!r&&np,renderContext:dm}})};function nQ(e,t){const{virtualizer:n}=e.current,{autoHeight:r,disableVirtualization:l}=t,a=f=>{f&&=np,n.store.set("virtualization",N({},n.store.state.virtualization,{enabled:f,enabledForColumns:f,enabledForRows:f&&!r}))};Dt(e,{unstable_setVirtualization:a,unstable_setColumnVirtualization:f=>{f&&=np,n.store.set("virtualization",N({},n.store.state.virtualization,{enabledForColumns:f}))}},"public");const d=n.api.forceUpdateRenderContext;e.current.register("private",{updateRenderContext:d}),pn(e,"sortedRowsSet",d),pn(e,"paginationModelChange",d),pn(e,"columnsChange",d),m.useEffect(()=>{a(!t.disableVirtualization)},[l,r])}const lb=Gn(e=>e.virtualization);ot(lb,e=>e.enabled);const rQ=ot(lb,e=>e.enabledForColumns);ot(lb,e=>e.enabledForRows);const tM=ot(lb,e=>e.renderContext),oQ=Gn(e=>e.virtualization.renderContext.firstColumnIndex),lQ=Gn(e=>e.virtualization.renderContext.lastColumnIndex),iQ=Zt(oQ,lQ,(e,t)=>({firstColumnIndex:e,lastColumnIndex:t})),aQ=["className"],sQ=e=>{const{classes:t}=e;return Be({root:["virtualScrollerRenderZone"]},Lt,t)},cQ=Xt("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone"})({position:"absolute",display:"flex",flexDirection:"column"}),uQ=ht(function(t,n){const{className:r}=t,l=Ge(t,aQ),a=Mt(),s=We(),u=sQ(s),d=Te(a,()=>{const f=tM(a);return Wm(a).positions[f.firstRowIndex]??0});return x.jsx(cQ,N({className:Oe(u.root,r),ownerState:s,style:{transform:`translate3d(0, ${d}px, 0)`}},l,{ref:n}))}),dQ={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1,disableColumnVirtualization:!0},Fr=Gn(e=>e.editRows),cz=ot(Fr,(e,{rowId:t,editMode:n})=>n===Hi.Row&&!!e[t]),fQ=ot(Fr,(e,{rowId:t,field:n})=>e[t]?.[n]??null),Cc=Gn(e=>e.preferencePanel),pQ=ot(Cc,(e,t)=>!!(e.open&&e.labelId===t));var To=function(e){return e.filters="filters",e.columns="columns",e.aiAssistant="aiAssistant",e}(To||{});function hQ(e){return JSON.stringify([e.filterModel,e.sortModel,e.start,e.end])}class gQ{constructor({ttl:t=3e5,getKey:n=hQ}){this.cache=void 0,this.ttl=void 0,this.getKey=void 0,this.cache={},this.ttl=t,this.getKey=n}set(t,n){const r=this.getKey(t),l=Date.now()+this.ttl;this.cache[r]={value:n,expiry:l}}get(t){const n=this.getKey(t),r=this.cache[n];if(r){if(Date.now()>r.expiry){delete this.cache[n];return}return r.value}}clear(){this.cache={}}}class mQ extends Error{constructor(t){super(t.message),this.params=void 0,this.cause=void 0,this.name="GridGetRowsError",this.params=t.params,this.cause=t.cause}}class bQ extends Error{constructor(t){super(t.message),this.params=void 0,this.cause=void 0,this.name="GridUpdateRowError",this.params=t.params,this.cause=t.cause}}const vQ=(e,t)=>{const{classes:n}=e,r={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return Be(r,Lt,n)},uz=Xt("div")({position:"absolute",display:"inline-block",zIndex:60,"&:hover":{zIndex:70},"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),yQ=Xt(uz)({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-topContainerHeight) - var(--DataGrid-bottomContainerHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-topContainerHeight)",right:"0px"}),CQ=Xt(uz)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),dO=ht(function(t,n){const r=al(),l=We(),a=m.useRef(!1),s=m.useRef(0),u=m.useRef(null),d=m.useRef(null),f=vQ(l,t.position),h=Te(r,lr),g=t.position==="vertical"?"height":"width",b=t.position==="vertical"?"scrollTop":"scrollLeft",y=t.position==="vertical"?"top":"left",C=t.position==="vertical"?h.hasScrollX:h.hasScrollY,S=h.minimumSize[g]+(C?h.scrollbarSize:0),M=(t.position==="vertical"?h.viewportInnerSize.height:h.viewportOuterSize.width)*(S/h.viewportOuterSize[g]),E=wt(()=>{const R=u.current,A=t.scrollPosition.current;if(!R||A[y]===s.current)return;if(s.current=A[y],a.current){a.current=!1;return}a.current=!0;const z=A[y]/S;R[b]=z*M}),O=wt(()=>{const R=r.current.virtualScrollerRef.current,A=u.current;if(!A)return;if(a.current){a.current=!1;return}a.current=!0;const z=A[b]/M;R[b]=z*S});Dm(()=>{const R=r.current.virtualScrollerRef.current,A=u.current,z={passive:!0};return R.addEventListener("scroll",E,z),A.addEventListener("scroll",O,z),()=>{R.removeEventListener("scroll",E,z),A.removeEventListener("scroll",O,z)}}),m.useEffect(()=>{d.current.style.setProperty(g,`${M}px`)},[M,g]);const P=t.position==="vertical"?yQ:CQ;return x.jsx(P,{ref:tn(n,u),className:f.root,style:t.position==="vertical"&&l.listView?{height:"100%",top:0}:void 0,tabIndex:-1,"aria-hidden":"true",onFocus:R=>{R.target.blur()},children:x.jsx("div",{ref:d,className:f.content})})}),SQ=e=>{const{classes:t,hasScrollX:n,hasPinnedRight:r,loadingOverlayVariant:l,overlayType:a}=e;return Be({root:["main",r&&"main--hasPinnedRight",(l==="skeleton"||a==="noColumnsOverlay")&&"main--hiddenContent"],scroller:["virtualScroller",n&&"virtualScroller--hasScrollX"]},Lt,t)},wQ=Xt("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScroller,n.hasScrollX&&t["virtualScroller--hasScrollX"]]}})({position:"relative",height:"100%",flexGrow:1,overflow:"scroll",scrollbarWidth:"none",display:"flex",flexDirection:"column","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0}),xQ=e=>e.current.state.dimensions.rightPinnedWidth>0;function MQ(e){const t=al(),n=We(),r=Te(t,hW),l=Te(t,pW),a=Te(t,xQ),s=Te(t,vW),{getOverlay:u,overlaysProps:d}=iX(),f=N({classes:n.classes,hasScrollX:l,hasPinnedRight:a},d),h=SQ(f),g=t.current.virtualizer.api.useVirtualization().getters,{getContainerProps:b,getScrollerProps:y,getContentProps:C,getRenderZoneProps:S,getScrollbarVerticalProps:w,getScrollbarHorizontalProps:M,getRows:E,getScrollAreaProps:O}=g,P=E(void 0,eo(t));return x.jsxs(dX,N({className:h.root},b(),{ownerState:f,children:[x.jsx(Sg,N({scrollDirection:"left"},O())),x.jsx(Sg,N({scrollDirection:"right"},O())),x.jsx(Sg,N({scrollDirection:"up"},O())),x.jsx(Sg,N({scrollDirection:"down"},O())),x.jsxs(wQ,N({className:h.scroller},y(),{ownerState:f,children:[x.jsxs(hX,{children:[!n.listView&&x.jsx(sX,{}),x.jsx(n.slots.pinnedRows,{position:"top",virtualScroller:g})]}),u(),x.jsx(bX,N({},C(),{children:x.jsxs(uQ,N({},S(),{children:[P,x.jsx(n.slots.detailPanels,{virtualScroller:g})]}))})),s&&x.jsx(xX,{rowsLength:P.length}),x.jsx(n.slots.bottomContainer,{children:x.jsx(n.slots.pinnedRows,{position:"bottom",virtualScroller:g})})]})),l&&!n.listView&&x.jsx(dO,N({position:"horizontal"},M())),r&&x.jsx(dO,N({position:"vertical"},w())),e.children]}))}function TQ(){const e=We();return e.hideFooter?null:x.jsx(e.slots.footer,N({},e.slotProps?.footer))}let Zy;function EQ(){return Zy===void 0&&document.createElement("div").focus({get preventScroll(){return Zy=!0,!1}}),Zy}function PQ({defaultSlots:e,slots:t}){const n=t;if(!n||Object.keys(n).length===0)return e;const r=N({},e);return Object.keys(n).forEach(l=>{const a=l;n[a]!==void 0&&(r[a]=n[a])}),r}const RQ=e=>{const t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null},AQ=e=>e===R$||RQ(e)!==null,dz=(e,t)=>{if(e)if(t){if(e===zt.LEFT)return"right";if(e===zt.RIGHT)return"left"}else{if(e===zt.LEFT)return"left";if(e===zt.RIGHT)return"right"}};function ib(e,t,n,r){const l=dz(n,t);return!l||r===void 0||(e[l]=r),e}const OQ=["column","row","rowId","rowNode","align","children","colIndex","width","className","style","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","showRightBorder","showLeftBorder","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],IQ=["changeReason","unstable_updateValueOnRender"];zt.LEFT+"",is.LEFT,zt.RIGHT+"",is.RIGHT,zt.NONE+"",zt.VIRTUAL+"";const kQ=e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:l,isEditable:a,isSelected:s,isSelectionMode:u,classes:d}=e,f={root:["cell",`cell--text${we(t)}`,s&&"selected",a&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",l===zt.LEFT&&"cell--pinnedLeft",l===zt.RIGHT&&"cell--pinnedRight",u&&!a&&"cell--selectionMode"]};return Be(f,Lt,d)},_Q=ht(function(t,n){const{column:r,row:l,rowId:a,rowNode:s,align:u,colIndex:d,width:f,className:h,style:g,colSpan:b,disableDragEvents:y,isNotVisible:C,pinnedOffset:S,pinnedPosition:w,showRightBorder:M,showLeftBorder:E,onClick:O,onDoubleClick:P,onMouseDown:R,onMouseUp:A,onMouseOver:z,onKeyDown:k,onKeyUp:L,onDragEnter:H,onDragOver:$}=t,I=Ge(t,OQ),j=al(),q=We(),F=Po(),_=r.field,B=Te(j,fQ,{rowId:a,field:_}),Q=Xm().hooks.useCellAggregationResult(a,_),D=B?rn.Edit:rn.View,G=j.current.getCellParamsForRow(a,_,l,{colDef:r,cellMode:D,rowNode:s,tabIndex:Te(j,()=>{const Qe=Zx(j);return Qe&&Qe.field===_&&Qe.id===a?0:-1}),hasFocus:Te(j,()=>{const Qe=Lo(j);return Qe?.id===a&&Qe.field===_})});G.api=j.current,Q&&(G.value=Q.value,G.formattedValue=r.valueFormatter?r.valueFormatter(G.value,l,r,j):G.value);const W=Te(j,()=>j.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:a,field:_})),Z=j.current.virtualizer.store,te=ds(Z,td.selectors.hiddenCells),ne=ds(Z,td.selectors.spannedCells),{hasFocus:oe,isEditable:se=!1,value:Se}=G,be=r.type==="actions"&&r.getActions?.(j.current.getRowParams(a)).some(Qe=>!Qe.props.disabled),de=(D==="view"||!se)&&!be?G.tabIndex:-1,{classes:ke,getCellClassName:Ae}=q,$e=[Te(j,()=>j.current.unstable_applyPipeProcessors("cellClassName",[],{id:a,field:_}).filter(Boolean).join(" "))];r.cellClassName&&$e.push(typeof r.cellClassName=="function"?r.cellClassName(G):r.cellClassName),r.display==="flex"&&$e.push(K["cell--flex"]),Ae&&$e.push(Ae(G));const Ve=G.formattedValue??Se,nt=m.useRef(null),lt=tn(n,nt),me=m.useRef(null),tt=q.cellSelection??!1,ze={align:u,showLeftBorder:E,showRightBorder:M,isEditable:se,classes:q.classes,pinnedPosition:w,isSelected:W,isSelectionMode:tt},et=kQ(ze),He=m.useCallback(Qe=>st=>{const pt=j.current.getCellParams(a,_||"");j.current.publishEvent(Qe,pt,st),A&&A(st)},[j,_,A,a]),yt=m.useCallback(Qe=>st=>{const pt=j.current.getCellParams(a,_||"");j.current.publishEvent(Qe,pt,st),R&&R(st)},[j,_,R,a]),Le=m.useCallback((Qe,st)=>pt=>{if(!j.current.getRow(a))return;const Ze=j.current.getCellParams(a,_||"");j.current.publishEvent(Qe,Ze,pt),st&&st(pt)},[j,_,a]),Pe=te[a]?.[d]??!1,Ke=ne[a]?.[d]??1,Xe=m.useMemo(()=>{if(C)return{padding:0,opacity:0,width:0,height:0,border:0};const Qe=ib(N({"--width":`${f}px`},g),F,w,S),st=w===zt.LEFT,pt=w===zt.RIGHT;return Ke>1&&(Qe.height=`calc(var(--height) * ${Ke})`,Qe.zIndex=10,(st||pt)&&(Qe.zIndex=40)),Qe},[f,C,g,S,w,F,Ke]);if(m.useEffect(()=>{if(!oe||D===rn.Edit)return;const Qe=sr(j.current.rootElementRef.current);if(nt.current&&!nt.current.contains(Qe.activeElement)){const st=nt.current.querySelector('[tabindex="0"]'),pt=me.current||st||nt.current;if(EQ())pt.focus({preventScroll:!0});else{const Ze=j.current.getScrollPosition();pt.focus(),j.current.scroll(Ze)}}},[oe,D,j]),Pe)return x.jsx("div",{"data-colindex":d,role:"presentation",style:N({width:"var(--width)"},Xe)});let mt=I.onFocus,_e,Je;if(B===null&&r.renderCell&&(_e=r.renderCell(G)),B!==null&&r.renderEditCell){const Qe=j.current.getRowWithUpdatedValues(a,r.field),st=Ge(B,IQ),pt=r.valueFormatter?r.valueFormatter(B.value,Qe,r,j):G.formattedValue,Ze=N({},G,{row:Qe,formattedValue:pt},st);_e=r.renderEditCell(Ze),$e.push(K["cell--editing"]),$e.push(ke?.["cell--editing"])}if(_e===void 0){const Qe=Ve?.toString();_e=Qe,Je=Qe}m.isValidElement(_e)&&be&&(_e=m.cloneElement(_e,{focusElementRef:me}));const Fe=y?null:{onDragEnter:Le("cellDragEnter",H),onDragOver:Le("cellDragOver",$)};return x.jsx("div",N({className:Oe(et.root,$e,h),role:"gridcell","data-field":_,"data-colindex":d,"aria-colindex":d+1,"aria-colspan":b,"aria-rowspan":Ke,style:Xe,title:Je,tabIndex:de,onClick:Le("cellClick",O),onDoubleClick:Le("cellDoubleClick",P),onMouseOver:Le("cellMouseOver",z),onMouseDown:yt("cellMouseDown"),onMouseUp:He("cellMouseUp"),onKeyDown:Le("cellKeyDown",k),onKeyUp:Le("cellKeyUp",L)},Fe,I,{onFocus:mt,ref:lt,children:_e}))}),DQ=xa(_Q),LQ=["field","type","align","width","height","empty","style","className"],fO="1.3em",$Q="1.2em",pO=[40,80],zQ={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},FQ=e=>{const{align:t,classes:n,empty:r}=e,l={root:["cell","cellSkeleton",`cell--text${t?we(t):"Left"}`,r&&"cellEmpty"]};return Be(l,Lt,n)},HQ=oK(12345);function NQ(e){const{field:t,type:n,align:r,width:l,height:a,empty:s=!1,style:u,className:d}=e,f=Ge(e,LQ),h=We(),g={classes:h.classes,align:r,empty:s},b=FQ(g),y=m.useMemo(()=>{if(n==="boolean"||n==="actions")return{variant:"circular",width:fO,height:fO};const[S,w]=n?zQ[n]??pO:pO;return{variant:"text",width:`${Math.round(HQ(S,w))}%`,height:$Q}},[n]);return x.jsx("div",N({"data-field":t,className:Oe(b.root,d),style:N({height:a,maxWidth:l,minWidth:l},u)},f,{children:!s&&x.jsx(h.slots.baseSkeleton,N({},y))}))}const jQ=xa(NQ),BQ=10,wg=-5,xu=1,hO={width:3,rx:1.5,x:10.5},GQ="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",VQ=e=>e.current.state.dimensions.hasScrollX&&(!e.current.state.dimensions.hasScrollY||e.current.state.dimensions.scrollbarSize===0),UQ=ge("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${K.autoHeight}`]:t.autoHeight},{[`&.${K.autosizing}`]:t.autosizing},{[`&.${K["root--densityStandard"]}`]:t["root--densityStandard"]},{[`&.${K["root--densityComfortable"]}`]:t["root--densityComfortable"]},{[`&.${K["root--densityCompact"]}`]:t["root--densityCompact"]},{[`&.${K["root--disableUserSelection"]}`]:t["root--disableUserSelection"]},{[`&.${K["root--noToolbar"]}`]:t["root--noToolbar"]},{[`&.${K.withVerticalBorder}`]:t.withVerticalBorder},{[`& .${K.actionsCell}`]:t.actionsCell},{[`& .${K.booleanCell}`]:t.booleanCell},{[`& .${K.cell}`]:t.cell},{[`& .${K["cell--editable"]}`]:t["cell--editable"]},{[`& .${K["cell--editing"]}`]:t["cell--editing"]},{[`& .${K["cell--flex"]}`]:t["cell--flex"]},{[`& .${K["cell--pinnedLeft"]}`]:t["cell--pinnedLeft"]},{[`& .${K["cell--pinnedRight"]}`]:t["cell--pinnedRight"]},{[`& .${K["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${K["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${K["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${K["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${K["cell--selectionMode"]}`]:t["cell--selectionMode"]},{[`& .${K["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${K["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${K["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${K["cell--withLeftBorder"]}`]:t["cell--withLeftBorder"]},{[`& .${K["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${K.cellCheckbox}`]:t.cellCheckbox},{[`& .${K.cellEmpty}`]:t.cellEmpty},{[`& .${K.cellOffsetLeft}`]:t.cellOffsetLeft},{[`& .${K.cellSkeleton}`]:t.cellSkeleton},{[`& .${K.checkboxInput}`]:t.checkboxInput},{[`& .${K.columnHeader}`]:t.columnHeader},{[`& .${K["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${K["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${K["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${K["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${K["columnHeader--emptyGroup"]}`]:t["columnHeader--emptyGroup"]},{[`& .${K["columnHeader--filledGroup"]}`]:t["columnHeader--filledGroup"]},{[`& .${K["columnHeader--filtered"]}`]:t["columnHeader--filtered"]},{[`& .${K["columnHeader--last"]}`]:t["columnHeader--last"]},{[`& .${K["columnHeader--lastUnpinned"]}`]:t["columnHeader--lastUnpinned"]},{[`& .${K["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${K["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${K["columnHeader--pinnedLeft"]}`]:t["columnHeader--pinnedLeft"]},{[`& .${K["columnHeader--pinnedRight"]}`]:t["columnHeader--pinnedRight"]},{[`& .${K["columnHeader--siblingFocused"]}`]:t["columnHeader--siblingFocused"]},{[`& .${K["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${K["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${K["columnHeader--withLeftBorder"]}`]:t["columnHeader--withLeftBorder"]},{[`& .${K["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${K.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${K.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${K.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${K.columnHeaderTitleContainerContent}`]:t.columnHeaderTitleContainerContent},{[`& .${K.columnSeparator}`]:t.columnSeparator},{[`& .${K["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${K["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${K["columnSeparator--sideLeft"]}`]:t["columnSeparator--sideLeft"]},{[`& .${K["columnSeparator--sideRight"]}`]:t["columnSeparator--sideRight"]},{[`& .${K["container--bottom"]}`]:t["container--bottom"]},{[`& .${K["container--top"]}`]:t["container--top"]},{[`& .${K.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${K["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},{[`& .${K.editBooleanCell}`]:t.editBooleanCell},{[`& .${K.filterIcon}`]:t.filterIcon},{[`& .${K["filler--borderBottom"]}`]:t["filler--borderBottom"]},{[`& .${K["filler--pinnedLeft"]}`]:t["filler--pinnedLeft"]},{[`& .${K["filler--pinnedRight"]}`]:t["filler--pinnedRight"]},{[`& .${K.groupingCriteriaCell}`]:t.groupingCriteriaCell},{[`& .${K.groupingCriteriaCellLoadingContainer}`]:t.groupingCriteriaCellLoadingContainer},{[`& .${K.groupingCriteriaCellToggle}`]:t.groupingCriteriaCellToggle},{[`& .${K.headerFilterRow}`]:t.headerFilterRow},{[`& .${K.iconSeparator}`]:t.iconSeparator},{[`& .${K.menuIcon}`]:t.menuIcon},{[`& .${K.menuIconButton}`]:t.menuIconButton},{[`& .${K.menuList}`]:t.menuList},{[`& .${K.menuOpen}`]:t.menuOpen},{[`& .${K.overlayWrapperInner}`]:t.overlayWrapperInner},{[`& .${K.pinnedRows}`]:t.pinnedRows},{[`& .${K["pinnedRows--bottom"]}`]:t["pinnedRows--bottom"]},{[`& .${K["pinnedRows--top"]}`]:t["pinnedRows--top"]},{[`& .${K.row}`]:t.row},{[`& .${K["row--borderBottom"]}`]:t["row--borderBottom"]},{[`& .${K["row--detailPanelExpanded"]}`]:t["row--detailPanelExpanded"]},{[`& .${K["row--dragging"]}`]:t["row--dragging"]},{[`& .${K["row--dynamicHeight"]}`]:t["row--dynamicHeight"]},{[`& .${K["row--editable"]}`]:t["row--editable"]},{[`& .${K["row--editing"]}`]:t["row--editing"]},{[`& .${K["row--firstVisible"]}`]:t["row--firstVisible"]},{[`& .${K["row--lastVisible"]}`]:t["row--lastVisible"]},{[`& .${K.rowReorderCell}`]:t.rowReorderCell},{[`& .${K["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${K.rowReorderCellContainer}`]:t.rowReorderCellContainer},{[`& .${K.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${K.rowSkeleton}`]:t.rowSkeleton},{[`& .${K.scrollbar}`]:t.scrollbar},{[`& .${K["scrollbar--horizontal"]}`]:t["scrollbar--horizontal"]},{[`& .${K["scrollbar--vertical"]}`]:t["scrollbar--vertical"]},{[`& .${K.scrollbarFiller}`]:t.scrollbarFiller},{[`& .${K["scrollbarFiller--borderBottom"]}`]:t["scrollbarFiller--borderBottom"]},{[`& .${K["scrollbarFiller--borderTop"]}`]:t["scrollbarFiller--borderTop"]},{[`& .${K["scrollbarFiller--header"]}`]:t["scrollbarFiller--header"]},{[`& .${K["scrollbarFiller--pinnedRight"]}`]:t["scrollbarFiller--pinnedRight"]},{[`& .${K.sortIcon}`]:t.sortIcon},{[`& .${K.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${K.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${K.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${K.withBorderColor}`]:t.withBorderColor},{[`& .${K["row--dropAbove"]}`]:t["row--dropAbove"]},{[`& .${K["row--dropBelow"]}`]:t["row--dropBelow"]},{[`& .${K["row--beingDragged"]}`]:t["row--beingDragged"]}]})(()=>{const e=al(),t=Te(e,VQ),n=Ye.colors.background.base,r=Ye.header.background.base,l=Ye.cell.background.pinned,a=qQ(Ye.colors.interactive.hover),s=Ye.colors.interactive.hoverOpacity,u=Ye.colors.interactive.selected,d=Ye.colors.interactive.selectedOpacity,f=u,h=`calc(${d} + ${s})`,g=rs(n,a,s),b=rs(n,u,d),y=rs(n,f,h),C=rs(l,a,s),S=rs(l,u,d),w=rs(l,f,h),M=z=>({[`& .${K["cell--pinnedLeft"]}, & .${K["cell--pinnedRight"]}`]:{backgroundColor:z,"&.Mui-selected":{backgroundColor:rs(z,b,d),"&:hover":{backgroundColor:rs(z,y,h)}}}}),E=M(C),O=M(S),P=M(w),R={backgroundColor:b,"&:hover":{backgroundColor:y,"@media (hover: none)":{backgroundColor:b}}};return{"--unstable_DataGrid-radius":Ye.radius.base,"--unstable_DataGrid-headWeight":Ye.typography.fontWeight.medium,"--DataGrid-rowBorderColor":Ye.colors.border.base,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:Ye.colors.border.base,borderRadius:"var(--unstable_DataGrid-radius)",backgroundColor:Ye.colors.background.base,color:Ye.colors.foreground.base,font:Ye.typography.font.body,outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflow:"hidden",overflowAnchor:"none",transform:"translate(0, 0)",[`.${K.main} > *:first-child${GQ}`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${K.autoHeight}`]:{height:"auto"},[`&.${K.autosizing}`]:{[`& .${K.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${K.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${K.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${K.groupingCriteriaCell}`]:{width:"unset"},[`& .${K.treeDataGroupingCell}`]:{width:"unset"}},[`&.${K.withSidePanel}`]:{flexDirection:"row"},[`& .${K.mainContent}`]:{display:"flex",flexDirection:"column",overflow:"hidden",flex:1},[`& .${K.columnHeader}, & .${K.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${K.columnHeader}:focus-within, & .${K.cell}:focus-within`]:{outline:`solid ${fz(Ye.colors.interactive.focus,.5)} ${xu}px`,outlineOffset:xu*-1},[`& .${K.columnHeader}:focus, & .${K.cell}:focus`]:{outline:`solid ${Ye.colors.interactive.focus} ${xu}px`,outlineOffset:xu*-1},[`& .${K.columnHeader}:focus,
      & .${K["columnHeader--withLeftBorder"]},
      & .${K["columnHeader--withRightBorder"]},
      & .${K["columnHeader--siblingFocused"]},
      & .${K["virtualScroller--hasScrollX"]} .${K["columnHeader--lastUnpinned"]},
      & .${K["virtualScroller--hasScrollX"]} .${K["columnHeader--last"]}
      `]:{[`& .${K.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${K["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${K["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${K["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${K["root--noToolbar"]} [aria-rowindex="1"] .${K["columnHeader--last"]}`]:{borderTopRightRadius:t?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${K.columnHeaderCheckbox}, & .${K.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${K.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center",backgroundColor:r},[`& .${K["columnHeader--filter"]}`]:{paddingTop:8,paddingBottom:8,paddingRight:5,minHeight:"min-content",overflow:"hidden"},[`& .${K["virtualScroller--hasScrollX"]} .${K["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${K["pivotPanelField--sorted"]} .${K.iconButtonContainer},
      & .${K["columnHeader--sorted"]} .${K.iconButtonContainer},
      & .${K["columnHeader--filtered"]} .${K.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${K.pivotPanelField}:not(.${K["pivotPanelField--sorted"]}) .${K.sortButton},
      & .${K.columnHeader}:not(.${K["columnHeader--sorted"]}) .${K.sortButton}`]:{opacity:0,transition:Ye.transition(["opacity"],{duration:Ye.transitions.duration.short})},[`& .${K.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:Ye.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${K.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${K["columnHeader--filledGroup"]} .${K.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${K.sortIcon}, & .${K.filterIcon}`]:{fontSize:"inherit"},[`& .${K["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${K["columnHeader--alignCenter"]} .${K.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${K["columnHeader--alignRight"]} .${K.columnHeaderDraggableContainer}, & .${K["columnHeader--alignRight"]} .${K.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${K["columnHeader--alignCenter"]} .${K.menuIcon}`]:{marginLeft:"auto"},[`& .${K["columnHeader--alignRight"]} .${K.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${K["columnHeader--moving"]}`]:{backgroundColor:g},[`& .${K["columnHeader--pinnedLeft"]}, & .${K["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:40,background:Ye.header.background.base},[`& .${K.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:30,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:BQ,color:Ye.colors.border.base},[`& .${K.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)",backgroundColor:r},"@media (hover: hover)":{[`& .${K.columnHeader}:hover`]:{[`& .${K.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${K.iconButtonContainer}`]:{visibility:"visible",width:"auto"}},[`& .${K.columnHeader}:not(.${K["columnHeader--sorted"]}):hover .${K.sortButton},
        & .${K.pivotPanelField}:not(.${K["pivotPanelField--sorted"]}):hover .${K.sortButton},
        & .${K.pivotPanelField}:not(.${K["pivotPanelField--sorted"]}) .${K.sortButton}:focus-visible`]:{opacity:.5}},"@media (hover: none)":{[`& .${K.columnHeader} .${K.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${K.columnHeader}:focus,
        & .${K["columnHeader--siblingFocused"]}`]:{[`.${K["columnSeparator--resizable"]}`]:{color:Ye.colors.foreground.accent}},[`& .${K.pivotPanelField}:not(.${K["pivotPanelField--sorted"]}) .${K.sortButton}`]:{opacity:.5}},[`& .${K["columnSeparator--sideLeft"]}`]:{left:wg},[`& .${K["columnSeparator--sideRight"]}`]:{right:wg},[`& .${K["columnHeader--withRightBorder"]} .${K["columnSeparator--sideLeft"]}`]:{left:wg-.5},[`& .${K["columnHeader--withRightBorder"]} .${K["columnSeparator--sideRight"]}`]:{right:wg-.5},[`& .${K["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${K["columnSeparator--resizing"]}`]:{color:Ye.colors.foreground.accent},"@media (hover: none)":{[`& .${K.iconSeparator} rect`]:hO},"@media (hover: hover)":{"&:hover":{color:Ye.colors.foreground.accent,[`& .${K.iconSeparator} rect`]:hO}},"& svg":{pointerEvents:"none"}},[`& .${K.iconSeparator}`]:{color:"inherit",transition:Ye.transition(["color","width"],{duration:Ye.transitions.duration.short})},[`& .${K.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${K.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${K.headerFilterRow}`]:{[`& .${K.columnHeader}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${K["row--borderBottom"]} .${K.columnHeader},
      & .${K["row--borderBottom"]} .${K.filler},
      & .${K["row--borderBottom"]} .${K.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${K["row--borderBottom"]} .${K.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${K.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${K["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:g,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${K.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":R},[`& .${K.cell}`]:{flex:"0 0 auto",height:"var(--height)",width:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":R},[`& .${K["virtualScrollerContent--overflowed"]} .${K["row--lastVisible"]} .${K.cell}`]:{borderTopColor:"transparent"},[`& .${K.pinnedRows} .${K.row}, .${K.aggregationRowOverlayWrapper} .${K.row}`]:{backgroundColor:l,"&:hover":{backgroundColor:C}},[`& .${K["pinnedRows--top"]} :first-of-type`]:{[`& .${K.cell}, .${K.scrollbarFiller}`]:{borderTop:"none"}},[`&.${K["root--disableUserSelection"]}`]:{userSelect:"none"},[`& .${K["row--dynamicHeight"]} > .${K.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${K.cellEmpty}`]:{flex:1,padding:0,height:"unset"},[`& .${K.cell}.${K["cell--selectionMode"]}`]:{cursor:"default"},[`& .${K.cell}.${K["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:Ye.shadows.base,backgroundColor:Ye.colors.background.overlay,"&:focus-within":{outline:`${xu}px solid ${Ye.colors.interactive.focus}`,outlineOffset:xu*-1}},[`& .${K["row--editing"]}`]:{boxShadow:Ye.shadows.base},[`& .${K["row--editing"]} .${K.cell}`]:{boxShadow:"none",backgroundColor:Ye.colors.background.overlay},[`& .${K.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${K.booleanCell}[data-value="true"]`]:{color:Ye.colors.foreground.muted},[`& .${K.booleanCell}[data-value="false"]`]:{color:Ye.colors.foreground.disabled},[`& .${K.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:Ye.spacing(1)},[`& .${K.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:Ye.colors.interactive.disabledOpacity},[`& .${K["rowReorderCell--draggable"]}`]:{cursor:"grab",opacity:1},[`& .${K.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${K.withBorderColor}`]:{borderColor:Ye.colors.border.base},[`& .${K["cell--withLeftBorder"]}, & .${K["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${K["cell--withRightBorder"]}, & .${K["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${K["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${K["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${K["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${K["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${K["cell--pinnedLeft"]}, & .${K["cell--pinnedRight"]}`]:{position:"sticky",zIndex:30,background:Ye.cell.background.pinned,"&.Mui-selected":{backgroundColor:S}},[`& .${K.row}`]:{"&:hover":E,"&.Mui-selected":O,"&.Mui-selected:hover":P},[`& .${K.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${K.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${K.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${K.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${K["columnHeader--dragging"]}, & .${K["row--dragging"]}`]:{background:Ye.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:Ye.colors.interactive.disabledOpacity},[`& .${K["row--dragging"]}`]:{background:Ye.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:Ye.colors.interactive.disabledOpacity,[`& .${K.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${K.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${K.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:Ye.spacing(2)},[`& .${K.treeDataGroupingCellLoadingContainer}, .${K.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${K.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${K.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:Ye.spacing(2)},[`& .${K.columnHeaders} .${K.scrollbarFiller}`]:{backgroundColor:r},[`.${K.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${K["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${K["scrollbarFiller--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${K["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:Ye.cell.background.pinned,position:"sticky",zIndex:40,right:0}},[`& .${K.filler}`]:{flex:"1 0 auto"},[`& .${K["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${K.columnHeaders} .${K.filler}`]:{backgroundColor:r},[`& .${K["main--hiddenContent"]}`]:{[`& .${K.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${K["scrollbar--vertical"]}, & .${K.pinnedRows}, & .${K.virtualScroller} > .${K.filler}`]:{display:"none"}},[`& .${K["row--dropAbove"]}`]:{position:"relative","&::before":{content:'""',position:"absolute",top:0,left:0,width:"100%",height:"2px",backgroundColor:Ye.colors.interactive.selected}},[`& .${K["row--dropBelow"]}`]:{position:"relative","&::before":{content:'""',position:"absolute",bottom:"-2px",left:0,width:"100%",height:"2px",backgroundColor:Ye.colors.interactive.selected},[`&.${K["row--lastVisible"]}`]:{"&::before":{bottom:"calc(var(--DataGrid-hasScrollY) * 0px + (1 - var(--DataGrid-hasScrollY)) * -2px)"}}},[`& .${K["row--beingDragged"]}`]:{backgroundColor:Ye.colors.background.overlay,color:Ye.colors.foreground.disabled}}});function fz(e,t){return`rgba(from ${e} r g b / ${t})`}function qQ(e){return fz(e,1)}function rs(e,t,n){return`color-mix(in srgb,${e}, ${t} calc(${n} * 100%))`}const WQ=()=>()=>{},KQ=()=>!1,YQ=()=>!0,XQ=()=>l$.useSyncExternalStore(WQ,KQ,YQ),pz=m.createContext(void 0);function nM(){const e=m.useContext(pz);if(e===void 0)throw new Error("MUI X: Missing context.");return e}function QQ({children:e}){const t=m.useRef(null),n=m.useRef(null),r=m.useRef(null),l=m.useMemo(()=>({columnsPanelTriggerRef:t,filterPanelTriggerRef:n,aiAssistantPanelTriggerRef:r}),[]);return x.jsx(pz.Provider,{value:l,children:e})}function ZQ(){const e=Mt(),t=Te(e,Dl),n=We(),r=Te(e,Cc),{columnsPanelTriggerRef:l,filterPanelTriggerRef:a,aiAssistantPanelTriggerRef:s}=nM(),u=e.current.unstable_applyPipeProcessors("preferencePanel",null,r.openedPanelValue??To.filters);let d=null;switch(r.openedPanelValue){case To.filters:d=a.current;break;case To.columns:d=l.current;break;case To.aiAssistant:d=s.current;break}return x.jsx(n.slots.panel,N({id:r.panelId,open:t.length>0&&r.open,"aria-labelledby":r.labelId,target:d,onClose:()=>e.current.hidePreferences()},n.slotProps?.panel,{children:u}))}function JQ(){const e=We();return x.jsxs(m.Fragment,{children:[x.jsx(ZQ,{}),e.showToolbar&&x.jsx(e.slots.toolbar,N({},e.slotProps?.toolbar))]})}const eZ=["className","children","sidePanel"],tZ=(e,t)=>{const{autoHeight:n,classes:r,showCellVerticalBorder:l}=e,a={root:["root",n&&"autoHeight",`root--density${we(t)}`,e.slots.toolbar===null&&"root--noToolbar","withBorderColor",l&&"withVerticalBorder"]};return Be(a,Lt,r)},nZ=ht(function(t,n){const r=We(),{className:l,children:a,sidePanel:s}=t,u=Ge(t,eZ),d=al(),f=Te(d,Ou),h=d.current.rootElementRef,g=m.useCallback(M=>{M!==null&&d.current.publishEvent("rootMount",M)},[d]),b=tn(h,n,g),y=r,C=tZ(y,f),S=SK();return XQ()?null:x.jsxs(UQ,N({className:Oe(C.root,l,S.className,s&&K.withSidePanel),ownerState:y},u,{ref:b,children:[x.jsxs("div",{className:K.mainContent,role:"presentation",children:[x.jsx(JQ,{}),x.jsx(MQ,{children:a}),x.jsx(TQ,{})]}),s,S.tag]}))}),rZ=xa(nZ),oZ=["className"],lZ=e=>{const{classes:t}=e;return Be({root:["footerContainer","withBorderColor"]},Lt,t)},iZ=Xt("div",{name:"MuiDataGrid",slot:"FooterContainer"})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),aZ=ht(function(t,n){const{className:r}=t,l=Ge(t,oZ),a=We(),s=lZ(a);return x.jsx(iZ,N({className:Oe(s.root,r),ownerState:a},l,{ref:n}))}),sZ=["className"],cZ=e=>{const{classes:t}=e;return Be({root:["overlay"]},Lt,t)},uZ=Xt("div",{name:"MuiDataGrid",slot:"Overlay"})({width:"100%",height:"100%",display:"flex",gap:Ye.spacing(1),flexDirection:"column",alignSelf:"center",alignItems:"center",justifyContent:"center",textAlign:"center",textWrap:"balance",backgroundColor:Ye.colors.background.backdrop}),ab=ht(function(t,n){const{className:r}=t,l=Ge(t,sZ),a=We(),s=cZ(a);return x.jsx(uZ,N({className:Oe(s.root,r),ownerState:a},l,{ref:n}))});function ji(e,t,n,r={}){return typeof t=="function"?t(n,r):t?(t.props.className&&(n.className=dZ(t.props.className,n.className)),(t.props.style||n.style)&&(n.style=N({},n.style,t.props.style)),m.cloneElement(t,n)):m.createElement(e,n)}function dZ(e,t){return!e||!t?e||t:`${e} ${t}`}const hz=m.createContext(void 0);function fZ(){const e=m.useContext(hz);if(e===void 0)throw new Error("MUI X: Missing context. Toolbar subcomponents must be placed within a <Toolbar /> component.");return e}function pZ(e,t){if(!e.ref.current||!t.ref.current)return 0;const n=e.ref.current.compareDocumentPosition(t.ref.current);return n?n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0:0}const hZ=["render","className"],gZ=e=>{const{classes:t}=e;return Be({root:["toolbar"]},Lt,t)},mZ=Xt("div",{name:"MuiDataGrid",slot:"Toolbar"})({flex:0,display:"flex",alignItems:"center",justifyContent:"end",gap:Ye.spacing(.25),padding:Ye.spacing(.75),minHeight:52,boxSizing:"border-box",borderBottom:`1px solid ${Ye.colors.border.base}`}),bZ=ht(function(t,n){const{render:r,className:l}=t,a=Ge(t,hZ),s=We(),u=gZ(s),[d,f]=m.useState(null),[h,g]=m.useState([]),b=m.useCallback(()=>h.sort(pZ),[h]),y=m.useCallback((R,A,z=!0)=>{let k=R;const L=b(),H=L.length;for(let $=0;$<H;$+=1){if(k+=A,k>=H){if(!z)return-1;k=0}else if(k<0){if(!z)return-1;k=H-1}if(!L[k].ref.current?.disabled&&L[k].ref.current?.ariaDisabled!=="true")return k}return-1},[b]),C=m.useCallback((R,A)=>{g(z=>[...z,{id:R,ref:A}])},[]),S=m.useCallback(R=>{g(A=>A.filter(z=>z.id!==R))},[]),w=m.useCallback(R=>{if(!d)return;const A=b(),z=A.findIndex(L=>L.id===d);let k=-1;if(R.key==="ArrowRight"?(R.preventDefault(),k=y(z,1)):R.key==="ArrowLeft"?(R.preventDefault(),k=y(z,-1)):R.key==="Home"?(R.preventDefault(),k=y(-1,1,!1)):R.key==="End"&&(R.preventDefault(),k=y(A.length,-1,!1)),k>=0&&k<A.length){const L=A[k];f(L.id),L.ref.current?.focus()}},[b,d,y]),M=m.useCallback(R=>{d!==R&&f(R)},[d,f]),E=m.useCallback(R=>{const A=b(),z=A.findIndex(L=>L.id===R),k=y(z,1);if(k>=0&&k<A.length){const L=A[k];f(L.id),L.ref.current?.focus()}},[b,y]);m.useEffect(()=>{const R=b();if(R.length>0){if(!d){f(R[0].id);return}const A=R.findIndex(z=>z.id===d);if(R[A]){if(A===-1){const z=R[A];z&&(f(z.id),z.ref.current?.focus())}}else{const z=R[R.length-1];z&&(f(z.id),z.ref.current?.focus())}}},[b,y]);const O=m.useMemo(()=>({focusableItemId:d,registerItem:C,unregisterItem:S,onItemKeyDown:w,onItemFocus:M,onItemDisabled:E}),[d,C,S,w,M,E]),P=ji(mZ,r,N({role:"toolbar","aria-orientation":"horizontal","aria-label":s.label||void 0,className:Oe(u.root,l)},a,{ref:n}));return x.jsx(hz.Provider,{value:O,children:P})}),vZ=["render","onKeyDown","onFocus","disabled","aria-disabled"],jg=ht(function(t,n){const{render:r,onKeyDown:l,onFocus:a,disabled:s,"aria-disabled":u}=t,d=Ge(t,vZ),f=Nt(),h=We(),g=m.useRef(null),b=tn(g,n),{focusableItemId:y,registerItem:C,unregisterItem:S,onItemKeyDown:w,onItemFocus:M,onItemDisabled:E}=fZ(),O=k=>{w(k),l?.(k)},P=k=>{M(f),a?.(k)};m.useEffect(()=>(C(f,g),()=>S(f)),[]);const R=m.useRef(s);m.useEffect(()=>{R.current!==s&&s===!0&&E(f,s),R.current=s},[s,f,E]);const A=m.useRef(u);m.useEffect(()=>{A.current!==u&&u===!0&&E(f,!0),A.current=u},[u,f,E]);const z=ji(h.slots.baseIconButton,r,N({},h.slotProps?.baseIconButton,{tabIndex:y===f?0:-1},d,{disabled:s,"aria-disabled":u,onKeyDown:O,onFocus:P,ref:b}));return x.jsx(m.Fragment,{children:z})}),yZ=e=>{const{classes:t,open:n}=e;return Be({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Lt,t)},CZ=m.memo(e=>{const{colDef:t,open:n,columnMenuId:r,columnMenuButtonId:l,iconButtonRef:a}=e,s=Mt(),u=We(),d=N({},e,{classes:u.classes}),f=yZ(d),h=m.useCallback(b=>{b.preventDefault(),b.stopPropagation(),s.current.toggleColumnMenu(t.field)},[s,t.field]),g=t.headerName??t.field;return x.jsx("div",{className:f.root,children:x.jsx(u.slots.baseTooltip,N({title:s.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},u.slotProps?.baseTooltip,{children:x.jsx(u.slots.baseIconButton,N({ref:a,tabIndex:-1,className:f.button,"aria-label":s.current.getLocaleText("columnMenuAriaLabel")(g),size:"small",onClick:h,"aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?r:void 0,id:l},u.slotProps?.baseIconButton,{children:x.jsx(u.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})});function SZ({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:l,open:a,target:s,onExited:u}){const d=Mt(),f=d.current.getColumn(l),h=wt(g=>{g&&(g.stopPropagation(),s?.contains(g.target))||d.current.hideColumnMenu()});return!s||!f?null:x.jsx(Qm,{position:`bottom-${f.align==="right"?"start":"end"}`,open:a,target:s,onClose:h,onExited:u,children:x.jsx(n,N({colDef:f,hideMenu:h,open:a,id:e,labelledby:t},r))})}function wZ(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function fm(e,t){return e.closest(`.${t}`)}function Ea(e){return e.replace(/["\\]/g,"\\$&")}function xZ(e,t){return e.querySelector(`[role="columnheader"][data-field="${Ea(t)}"]`)}function gz(e){return`.${K.row}[data-id="${Ea(String(e))}"]`}function MZ(e,t){return e.querySelector(gz(t))}function TZ(e,{id:t,field:n}){const r=gz(t),l=`.${K.cell}[data-field="${Ea(n)}"]`,a=`${r} ${l}`;return e.querySelector(a)}function Vp(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function EZ(e){return e.getAttribute("data-field")}function PZ(e,t){return e.querySelector(`[data-field="${Ea(t)}"]`)}function RZ(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function AZ(e,t){return Array.from(e.querySelectorAll(`[data-fields*="|-${Ea(t)}-|"]`)??[])}function OZ(e,t){if(!fm(e,K.root))throw new Error("MUI X: The root element is not found.");const r=e.getAttribute("aria-colindex");if(!r)return[];const l=Number(r)-1,a=[];return t.virtualScrollerRef?.current?(vz(t).forEach(s=>{const u=s.getAttribute("data-id");if(!u)return;let d=l;const f=t.unstable_getCellColSpanInfo(u,l);f&&f.spannedByColSpan&&(d=f.leftVisibleCellIndex);const h=s.querySelector(`[data-colindex="${d}"]`);h&&a.push(h)}),a):[]}function gO(e,t){return e.rootElementRef.current.querySelector(`.${K[t]}`)}const mz=({api:e,colIndex:t,position:n,filterFn:r})=>{if(t===null)return[];const l=[];return vz(e).forEach(a=>{a.getAttribute("data-id")&&a.querySelectorAll(`.${K[n==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(u=>{const d=bd(u);d!==null&&r(d)&&l.push(u)})}),l};function IZ(e,t,n){const r=bd(t);return mz({api:e,colIndex:r,position:n?"right":"left",filterFn:l=>n?l<r:l>r})}function kZ(e,t,n){const r=bd(t);return mz({api:e,colIndex:r,position:n?"left":"right",filterFn:l=>n?l>r:l<r})}const bz=({api:e,colIndex:t,position:n,filterFn:r})=>{if(!e.columnHeadersContainerRef?.current)return[];if(t===null)return[];const l=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${K[n==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(a=>{const s=bd(a);s!==null&&r(s,a)&&l.push(a)}),l};function _Z(e,t,n){const r=bd(t);return bz({api:e,position:n?"right":"left",colIndex:r,filterFn:l=>n?l<r:l>r})}function DZ(e,t,n){const r=bd(t);return bz({api:e,position:n?"left":"right",colIndex:r,filterFn:(l,a)=>a.classList.contains(K["columnHeader--last"])?!1:n?l>r:l<r})}function LZ(e,t){return e.columnHeadersContainerRef.current.querySelector(`:scope > div > [data-field="${Ea(t)}"][role="columnheader"]`)}function $Z(e,t){const n=e.virtualScrollerRef.current;return Array.from(n.querySelectorAll(`:scope > div > div > div > [data-field="${Ea(t)}"][role="gridcell"]`))}function vz(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${K.row}`)}function bd(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}const zZ=["className","aria-label"],FZ=e=>{const{classes:t}=e;return Be({root:["columnHeaderTitle"]},Lt,t)},HZ=Xt("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle"})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),NZ=ht(function(t,n){const{className:r}=t,l=Ge(t,zZ),a=We(),s=FZ(a);return x.jsx(HZ,N({className:Oe(s.root,r),ownerState:a},l,{ref:n}))});function jZ(e){const{label:t,description:n}=e,r=We(),l=m.useRef(null),[a,s]=m.useState(""),u=m.useCallback(()=>{if(!n&&l?.current){const d=wZ(l.current);s(d?t:"")}},[n,t]);return x.jsx(r.slots.baseTooltip,N({title:n||a},r.slotProps?.baseTooltip,{children:x.jsx(NZ,{onMouseOver:u,ref:l,children:t})}))}const BZ=["resizable","resizing","height","side"];var rM=function(e){return e.Left="left",e.Right="right",e}(rM||{});const GZ=e=>{const{resizable:t,resizing:n,classes:r,side:l}=e,a={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",l&&`columnSeparator--side${we(l)}`],icon:["iconSeparator"]};return Be(a,Lt,r)};function VZ(e){const{height:t,side:n=rM.Right}=e,r=Ge(e,BZ),l=We(),a=N({},e,{side:n,classes:l.classes}),s=GZ(a),u=m.useCallback(d=>{d.preventDefault(),d.stopPropagation()},[]);return x.jsx("div",N({className:s.root,style:{minHeight:t}},r,{onClick:u,children:x.jsx(l.slots.columnResizeIcon,{className:s.icon})}))}const UZ=m.memo(VZ),qZ=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],yz=ht(function(t,n){const{classes:r,colIndex:l,height:a,isResizing:s,sortDirection:u,hasFocus:d,tabIndex:f,separatorSide:h,isDraggable:g,headerComponent:b,description:y,width:C,columnMenuIconButton:S=null,columnMenu:w=null,columnTitleIconButtons:M=null,headerClassName:E,label:O,resizable:P,draggableContainerProps:R,columnHeaderSeparatorProps:A,style:z}=t,k=Ge(t,qZ),L=al(),H=We(),$=m.useRef(null),I=tn($,n);let j="none";return u!=null&&(j=u==="asc"?"ascending":"descending"),m.useLayoutEffect(()=>{const q=L.current.state.columnMenu;d&&!q.open&&(($.current.querySelector('[tabindex="0"]')||$.current)?.focus(),L.current.columnHeadersContainerRef?.current&&(L.current.columnHeadersContainerRef.current.scrollLeft=0))},[L,d]),x.jsxs("div",N({className:Oe(r.root,E),style:N({},z,{width:C}),role:"columnheader",tabIndex:f,"aria-colindex":l+1,"aria-sort":j},k,{ref:I,children:[x.jsxs("div",N({className:r.draggableContainer,draggable:g,role:"presentation"},R,{children:[x.jsxs("div",{className:r.titleContainer,role:"presentation",children:[x.jsx("div",{className:r.titleContainerContent,children:b!==void 0?b:x.jsx(jZ,{label:O,description:y,columnWidth:C})}),M]}),S]})),x.jsx(UZ,N({resizable:!H.disableColumnResize&&!!P,resizing:s,height:a,side:h},A)),w]}))}),WZ=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:l,showRightBorder:a,showLeftBorder:s,filterItemsCounter:u,pinnedPosition:d,isLastUnpinned:f,isSiblingFocused:h}=e,g=l!=null,b=u!=null&&u>0,y=t.type==="number",C={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",g&&"columnHeader--sorted",b&&"columnHeader--filtered",y&&"columnHeader--numeric","withBorderColor",a&&"columnHeader--withRightBorder",s&&"columnHeader--withLeftBorder",d===zt.LEFT&&"columnHeader--pinnedLeft",d===zt.RIGHT&&"columnHeader--pinnedRight",f&&"columnHeader--lastUnpinned",h&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return Be(C,Lt,n)};function KZ(e){const{colDef:t,columnMenuOpen:n,colIndex:r,headerHeight:l,isResizing:a,isLast:s,sortDirection:u,sortIndex:d,filterItemsCounter:f,hasFocus:h,tabIndex:g,disableReorder:b,separatorSide:y,showLeftBorder:C,showRightBorder:S,pinnedPosition:w,pinnedOffset:M}=e,E=al(),O=We(),P=Po(),R=m.useRef(null),A=Nt(),z=Nt(),k=m.useRef(null),[L,H]=m.useState(n),$=m.useMemo(()=>!O.disableColumnReorder&&!b&&!t.disableReorder,[O.disableColumnReorder,b,t.disableReorder]);let I;t.renderHeader&&(I=t.renderHeader(E.current.getColumnHeaderParams(t.field)));const j=N({},e,{classes:O.classes,showRightBorder:S,showLeftBorder:C}),q=WZ(j),F=m.useCallback(Se=>be=>{Vp(be)||E.current.publishEvent(Se,E.current.getColumnHeaderParams(t.field),be)},[E,t.field]),_=m.useMemo(()=>({onClick:F("columnHeaderClick"),onContextMenu:F("columnHeaderContextMenu"),onDoubleClick:F("columnHeaderDoubleClick"),onMouseOver:F("columnHeaderOver"),onMouseOut:F("columnHeaderOut"),onMouseEnter:F("columnHeaderEnter"),onMouseLeave:F("columnHeaderLeave"),onKeyDown:F("columnHeaderKeyDown"),onFocus:F("columnHeaderFocus"),onBlur:F("columnHeaderBlur")}),[F]),B=m.useMemo(()=>$?{onDragStart:F("columnHeaderDragStart"),onDragEnter:F("columnHeaderDragEnter"),onDragOver:F("columnHeaderDragOver"),onDragEndCapture:F("columnHeaderDragEnd")}:{},[$,F]),J=m.useMemo(()=>({onMouseDown:F("columnSeparatorMouseDown"),onDoubleClick:F("columnSeparatorDoubleClick")}),[F]);m.useEffect(()=>{L||H(n)},[L,n]);const Q=m.useCallback(()=>{H(!1)},[]),D=!O.disableColumnMenu&&!t.disableColumnMenu&&x.jsx(CZ,{colDef:t,columnMenuId:A,columnMenuButtonId:z,open:L,iconButtonRef:k}),G=x.jsx(SZ,{columnMenuId:A,columnMenuButtonId:z,field:t.field,open:n,target:k.current,ContentComponent:O.slots.columnMenu,contentComponentProps:O.slotProps?.columnMenu,onExited:Q}),W=t.sortingOrder??O.sortingOrder,Z=(t.sortable||u!=null)&&!t.hideSortIcons&&!O.disableColumnSorting,te=x.jsxs(m.Fragment,{children:[!O.disableColumnFilter&&x.jsx(O.slots.columnHeaderFilterIconButton,N({field:t.field,counter:f},O.slotProps?.columnHeaderFilterIconButton)),Z&&x.jsx(O.slots.columnHeaderSortIcon,N({field:t.field,direction:u,index:d,sortingOrder:W,disabled:!t.sortable},O.slotProps?.columnHeaderSortIcon))]});m.useLayoutEffect(()=>{const Se=E.current.state.columnMenu;h&&!Se.open&&((R.current.querySelector('[tabindex="0"]')||R.current)?.focus(),E.current.columnHeadersContainerRef?.current&&(E.current.columnHeadersContainerRef.current.scrollLeft=0))},[E,h]);const ne=typeof t.headerClassName=="function"?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,oe=t.headerName??t.field,se=m.useMemo(()=>ib(N({},e.style),P,w,M),[w,M,e.style,P]);return x.jsx(yz,N({ref:R,classes:q,columnMenuOpen:n,colIndex:r,height:l,isResizing:a,sortDirection:u,hasFocus:h,tabIndex:g,separatorSide:y,isDraggable:$,headerComponent:I,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:D,columnTitleIconButtons:te,headerClassName:Oe(ne,s&&K["columnHeader--last"]),label:oe,resizable:!O.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:G,draggableContainerProps:B,columnHeaderSeparatorProps:J,style:se},_))}const YZ=xa(KZ),XZ=["className"],QZ=e=>{const{classes:t}=e;return Be({root:["iconButtonContainer"]},Lt,t)},ZZ=Xt("div",{name:"MuiDataGrid",slot:"IconButtonContainer"})(()=>({display:"flex",visibility:"hidden",width:0})),Cz=ht(function(t,n){const{className:r}=t,l=Ge(t,XZ),a=We(),s=QZ(a);return x.jsx(ZZ,N({className:Oe(s.root,r),ownerState:a},l,{ref:n}))}),JZ=["sortingOrder"],eJ=m.memo(function(t){const{sortingOrder:n}=t,r=Ge(t,JZ),l=We(),[a]=n,s=a==="asc"?l.slots.columnSortedAscendingIcon:l.slots.columnSortedDescendingIcon;return s?x.jsx(s,N({},r)):null}),tJ=["direction","index","sortingOrder","disabled","className"],nJ=e=>{const{classes:t}=e;return Be({root:["sortButton"],icon:["sortIcon"]},Lt,t)},rJ=Xt(Ma,{name:"MuiDataGrid",slot:"SortButton"})({transition:Ye.transition(["opacity"],{duration:Ye.transitions.duration.short,easing:Ye.transitions.easing.easeInOut})});function oJ(e,t,n,r){let l;const a={};return t==="asc"?l=e.columnSortedAscendingIcon:t==="desc"?l=e.columnSortedDescendingIcon:(l=eJ,a.sortingOrder=r),l?x.jsx(l,N({fontSize:"small",className:n},a)):null}function lJ(e){const{direction:t,index:n,sortingOrder:r,disabled:l,className:a}=e,s=Ge(e,tJ),u=Mt(),d=We(),f=N({},e,{classes:d.classes}),h=nJ(f),g=oJ(d.slots,t,h.icon,r);if(!g)return null;const b=x.jsx(rJ,N({as:d.slots.baseIconButton,ownerState:f,"aria-label":u.current.getLocaleText("columnHeaderSortIconLabel"),title:u.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:l,className:Oe(h.root,a)},d.slotProps?.baseIconButton,s,{children:g}));return x.jsxs(m.Fragment,{children:[n!=null&&x.jsx(d.slots.baseBadge,{badgeContent:n,color:"default",overlap:"circular",children:b}),n==null&&b]})}function iJ(e){return x.jsx(Cz,{children:x.jsx(lJ,N({},e,{tabIndex:-1}))})}const aJ=m.memo(iJ),sJ=e=>{const{classes:t}=e;return Be({icon:["filterIcon"]},Lt,t)};function cJ(e){return e.counter?x.jsx(uJ,N({},e)):null}function uJ(e){const{counter:t,field:n,onClick:r}=e,l=Mt(),a=We(),s=N({},e,{classes:a.classes}),u=sJ(s),d=Nt(),f=Te(l,pQ,d),h=Nt(),g=m.useCallback(y=>{y.preventDefault(),y.stopPropagation();const{open:C,openedPanelValue:S}=Cc(l);C&&S===To.filters?l.current.hideFilterPanel():l.current.showFilterPanel(void 0,h,d),r&&r(l.current.getColumnHeaderParams(n),y)},[l,n,r,h,d]);if(!t)return null;const b=x.jsx(a.slots.baseIconButton,N({id:d,onClick:g,"aria-label":l.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":f,"aria-controls":f?h:void 0},a.slotProps?.baseIconButton,{children:x.jsx(a.slots.columnFilteredIcon,{className:u.icon,fontSize:"small"})}));return x.jsx(a.slots.baseTooltip,N({title:l.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},a.slotProps?.baseTooltip,{children:x.jsxs(Cz,{children:[t>1&&x.jsx(a.slots.baseBadge,{badgeContent:t,color:"default",children:b}),t===1&&b]})}))}const dJ=["hideMenu","colDef","id","labelledby","className","children","open"],fJ=ge(Ma)(()=>({minWidth:248}));function mO(e){e.currentTarget.contains(e.target)&&e.stopPropagation()}const pJ=ht(function(t,n){const{hideMenu:r,id:l,labelledby:a,className:s,children:u,open:d}=t,f=Ge(t,dJ),h=We(),g=m.useCallback(b=>{b.key==="Tab"&&b.preventDefault(),M$(b.key)&&r(b)},[r]);return x.jsx(fJ,N({as:h.slots.baseMenuList,id:l,className:Oe(K.menuList,s),"aria-labelledby":a,onKeyDown:g,onWheel:mO,onTouchMove:mO,autoFocus:d},f,{ref:n,children:u}))}),hJ=["displayOrder"],gJ=e=>{const t=al(),n=We(),{defaultSlots:r,defaultSlotProps:l,slots:a={},slotProps:s={},hideMenu:u,colDef:d,addDividers:f=!0}=e,h=m.useMemo(()=>N({},r,a),[r,a]),g=m.useMemo(()=>{if(!s||Object.keys(s).length===0)return l;const C=N({},s);return Object.entries(l).forEach(([S,w])=>{C[S]=N({},w,s[S]||{})}),C},[l,s]),b=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),y=m.useMemo(()=>{const C=Object.keys(r);return Object.keys(a).filter(S=>!C.includes(S))},[a,r]);return m.useMemo(()=>{const w=Array.from(new Set([...b,...y])).filter(M=>h[M]!=null).sort((M,E)=>{const O=g[M],P=g[E],R=Number.isFinite(O?.displayOrder)?O.displayOrder:100,A=Number.isFinite(P?.displayOrder)?P.displayOrder:100;return R-A});return w.reduce((M,E,O)=>{let P={colDef:d,onClick:u};const R=g[E];if(R){const A=Ge(R,hJ);P=N({},P,A)}return f&&O!==w.length-1?[...M,[h[E],P],[n.slots.baseDivider,{}]]:[...M,[h[E],P]]},[])},[f,d,b,u,h,g,y,n.slots.baseDivider])};function mJ(e){const{colDef:t,onClick:n}=e,r=Mt(),l=We(),u=or(r).filter(f=>f.disableColumnMenu!==!0).length===1,d=m.useCallback(f=>{u||(r.current.setColumnVisibility(t.field,!1),n(f))},[r,t.field,n,u]);return l.disableColumnSelector||t.hideable===!1?null:x.jsx(l.slots.baseMenuItem,{onClick:d,disabled:u,iconStart:x.jsx(l.slots.columnMenuHideIcon,{fontSize:"small"}),children:r.current.getLocaleText("columnMenuHideColumn")})}function bJ(e){const{onClick:t}=e,n=Mt(),r=We(),l=m.useCallback(a=>{t(a),n.current.showPreferences(To.columns)},[n,t]);return r.disableColumnSelector?null:x.jsx(r.slots.baseMenuItem,{onClick:l,iconStart:x.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"}),children:n.current.getLocaleText("columnMenuManageColumns")})}function vJ(e){return x.jsxs(m.Fragment,{children:[x.jsx(mJ,N({},e)),x.jsx(bJ,N({},e))]})}function yJ(e){const{colDef:t,onClick:n}=e,r=Mt(),l=We(),a=m.useCallback(s=>{n(s),r.current.showFilterPanel(t.field)},[r,t.field,n]);return l.disableColumnFilter||!t.filterable?null:x.jsx(l.slots.baseMenuItem,{onClick:a,iconStart:x.jsx(l.slots.columnMenuFilterIcon,{fontSize:"small"}),children:r.current.getLocaleText("columnMenuFilter")})}function CJ(e){const{colDef:t,onClick:n}=e,r=Mt(),l=Te(r,Tl),a=We(),s=m.useMemo(()=>t?l.find(g=>g.field===t.field)?.sort:null,[t,l]),u=t.sortingOrder??a.sortingOrder,d=m.useCallback(h=>{n(h);const g=h.currentTarget.getAttribute("data-value")||null;r.current.sortColumn(t.field,g===s?null:g)},[r,t,n,s]);if(a.disableColumnSorting||!t||!t.sortable||!u.some(h=>!!h))return null;const f=h=>{const g=r.current.getLocaleText(h);return typeof g=="function"?g(t):g};return x.jsxs(m.Fragment,{children:[u.includes("asc")&&s!=="asc"?x.jsx(a.slots.baseMenuItem,{onClick:d,"data-value":"asc",iconStart:x.jsx(a.slots.columnMenuSortAscendingIcon,{fontSize:"small"}),children:f("columnMenuSortAsc")}):null,u.includes("desc")&&s!=="desc"?x.jsx(a.slots.baseMenuItem,{onClick:d,"data-value":"desc",iconStart:x.jsx(a.slots.columnMenuSortDescendingIcon,{fontSize:"small"}),children:f("columnMenuSortDesc")}):null,u.includes(null)&&s!=null?x.jsx(a.slots.baseMenuItem,{onClick:d,iconStart:a.slots.columnMenuUnsortIcon?x.jsx(a.slots.columnMenuUnsortIcon,{fontSize:"small"}):x.jsx("span",{}),children:r.current.getLocaleText("columnMenuUnsort")}):null]})}const SJ=["defaultSlots","defaultSlotProps","slots","slotProps"],wJ={columnMenuSortItem:CJ,columnMenuFilterItem:yJ,columnMenuColumnsItem:vJ},xJ={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},MJ=ht(function(t,n){const{defaultSlots:r,defaultSlotProps:l,slots:a,slotProps:s}=t,u=Ge(t,SJ),d=gJ(N({},u,{defaultSlots:r,defaultSlotProps:l,slots:a,slotProps:s}));return x.jsx(pJ,N({},u,{ref:n,children:d.map(([f,h],g)=>x.jsx(f,N({},h),g))}))}),TJ=ht(function(t,n){return x.jsx(MJ,N({},t,{ref:n,defaultSlots:wJ,defaultSlotProps:xJ}))}),EJ=["className"],PJ=e=>{const{classes:t}=e;return Be({root:["panelWrapper"]},Lt,t)},RJ=ge("div",{name:"MuiDataGrid",slot:"PanelWrapper"})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),Sz=ht(function(t,n){const{className:r}=t,l=Ge(t,EJ),a=We(),s=PJ(a);return x.jsx(RJ,N({tabIndex:-1,className:Oe(s.root,r),ownerState:a},l,{ref:n}))});function AJ(e){const t=We();return x.jsx(Sz,N({},e,{children:x.jsx(t.slots.columnsManagement,N({},t.slotProps?.columnsManagement))}))}const OJ=["children","className","classes","onClose"],IJ=vt("MuiDataGrid",["panel","paper"]),kJ=ge(Ma,{name:"MuiDataGrid",slot:"panel"})({zIndex:Ye.zIndex.panel}),_J=ge("div",{name:"MuiDataGrid",slot:"panelContent"})({backgroundColor:Ye.colors.background.overlay,borderRadius:Ye.radius.base,boxShadow:Ye.shadows.overlay,display:"flex",maxWidth:`calc(100vw - ${Ye.spacing(2)})`,overflow:"auto"}),DJ=ht((e,t)=>{const{children:n,className:r,onClose:l}=e,a=Ge(e,OJ),s=Mt(),u=We(),d=IJ,[f,h]=m.useState(!1),g=P$(),b=wt(()=>h(!0)),y=wt(()=>h(!1)),C=wt(()=>{l?.()}),S=wt(E=>{E.key==="Escape"&&l?.()}),[w,M]=m.useState(null);return m.useEffect(()=>{const E=s.current.rootElementRef?.current?.querySelector('[data-id="gridPanelAnchor"]');E&&M(E)},[s]),w?x.jsx(kJ,N({as:u.slots.basePopper,ownerState:u,placement:"bottom-end",className:Oe(d.panel,r,g),flip:!0,onDidShow:b,onDidHide:y,onClickAway:C,clickAwayMouseEvent:"onPointerUp",clickAwayTouchEvent:!1,focusTrap:!0},a,u.slotProps?.basePopper,{target:e.target??w,ref:t,children:x.jsx(_J,{className:d.paper,ownerState:u,onKeyDown:S,children:f&&n})})):null}),LJ=["className"],$J=e=>{const{classes:t}=e;return Be({root:["panelContent"]},Lt,t)},zJ=Xt("div",{name:"MuiDataGrid",slot:"PanelContent"})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,padding:Ye.spacing(2.5,1.5,2,1),gap:Ye.spacing(2.5)});function FJ(e){const{className:t}=e,n=Ge(e,LJ),r=We(),l=$J(r);return x.jsx(zJ,N({className:Oe(l.root,t),ownerState:r},n))}const HJ=["className"],NJ=e=>{const{classes:t}=e;return Be({root:["panelFooter"]},Lt,t)},jJ=ge("div",{name:"MuiDataGrid",slot:"PanelFooter"})({padding:Ye.spacing(1),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${Ye.colors.border.base}`});function BJ(e){const{className:t}=e,n=Ge(e,HJ),r=We(),l=NJ(r);return x.jsx(jJ,N({className:Oe(l.root,t),ownerState:r},n))}const GJ=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],VJ=["InputComponentProps"],UJ=e=>{const{classes:t}=e;return Be({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Lt,t)},qJ=ge("div",{name:"MuiDataGrid",slot:"FilterForm"})({display:"flex",gap:Ye.spacing(1.5)}),WJ=ge("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon"})({flexShrink:0,display:"flex",justifyContent:"center",alignItems:"center"}),KJ=ge("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput"})({minWidth:75,justifyContent:"end"}),YJ=ge("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput"})({width:150}),XJ=ge("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput"})({width:150}),QJ=ge("div",{name:"MuiDataGrid",slot:"FilterFormValueInput"})({width:190}),ZJ=e=>{switch(e){case Mo.And:return"filterPanelOperatorAnd";case Mo.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},_f=e=>e.headerName||e.field,bO=new Intl.Collator,vO=ht(function(t,n){const{item:r,hasMultipleFilters:l,deleteFilter:a,applyFilterChanges:s,showMultiFilterOperators:u,disableMultiFilterOperator:d,applyMultiFilterOperatorChanges:f,focusElementRef:h,logicOperators:g=[Mo.And,Mo.Or],columnsSort:b,filterColumns:y,deleteIconProps:C={},logicOperatorInputProps:S={},operatorInputProps:w={},columnInputProps:M={},valueInputProps:E={},readOnly:O}=t,P=Ge(t,GJ),R=Mt(),A=Te(R,Ta),z=Te(R,C$),k=Te(R,zr),L=Nt(),H=Nt(),$=Nt(),I=Nt(),j=We(),q=UJ(j),F=m.useRef(null),_=m.useRef(null),B=k.logicOperator??Mo.And,J=l&&g.length>0,D=(j.slotProps?.baseSelect||{}).native??!1,G=j.slotProps?.baseSelectOption||{},{InputComponentProps:W}=E,Z=Ge(E,VJ),te=Te(R,yc),ne=Te(R,rz),{filteredColumns:oe,selectedField:se}=m.useMemo(()=>{let Ve=r.field;const nt=A[r.field].filterable===!1?A[r.field]:null;if(nt)return{filteredColumns:[nt],selectedField:Ve};if(te)return{filteredColumns:z.filter(me=>ne.get(me.field)!==void 0),selectedField:Ve};if(y===void 0||typeof y!="function")return{filteredColumns:z,selectedField:Ve};const lt=y({field:r.field,columns:z,currentFilters:k?.items||[]});return{filteredColumns:z.filter(me=>{const tt=lt.includes(me.field);return me.field===r.field&&!tt&&(Ve=void 0),tt}),selectedField:Ve}},[r.field,A,te,y,z,k?.items,ne]),Se=m.useMemo(()=>{switch(b){case"asc":return oe.sort((Ve,nt)=>bO.compare(_f(Ve),_f(nt)));case"desc":return oe.sort((Ve,nt)=>-bO.compare(_f(Ve),_f(nt)));default:return oe}},[oe,b]),be=r.field?R.current.getColumn(r.field):null,de=m.useMemo(()=>!r.operator||!be?null:be.filterOperators?.find(Ve=>Ve.value===r.operator),[r,be]),ke=m.useCallback(Ve=>{const nt=Ve.target.value,lt=R.current.getColumn(nt);if(lt.field===be.field)return;const me=lt.filterOperators.find(et=>et.value===r.operator)||lt.filterOperators[0];let ze=!me.InputComponent||me.InputComponent!==de?.InputComponent||lt.type!==be.type?void 0:r.value;if(lt.type==="singleSelect"&&ze!==void 0){const et=lt,He=vc(et);Array.isArray(ze)?ze=ze.filter(yt=>cm(yt,He,et?.getOptionValue)!==void 0):cm(r.value,He,et?.getOptionValue)===void 0&&(ze=void 0)}s(N({},r,{field:nt,operator:me.value,value:ze}))},[R,s,r,be,de]),Ae=m.useCallback(Ve=>{const nt=Ve.target.value,lt=be?.filterOperators.find(tt=>tt.value===nt),me=!lt?.InputComponent||lt?.InputComponent!==de?.InputComponent;s(N({},r,{operator:nt,value:me?void 0:r.value}))},[s,r,be,de]),Ne=m.useCallback(Ve=>{const nt=Ve.target.value===Mo.And.toString()?Mo.And:Mo.Or;f(nt)},[f]),$e=()=>{a(r)};return m.useImperativeHandle(h,()=>({focus:()=>{de?.InputComponent?F?.current?.focus():_.current.focus()}}),[de]),x.jsxs(qJ,N({className:q.root,"data-id":r.id,ownerState:j},P,{ref:n,children:[x.jsx(WJ,N({},C,{className:Oe(q.deleteIcon,C.className),ownerState:j,children:x.jsx(j.slots.baseIconButton,N({"aria-label":R.current.getLocaleText("filterPanelDeleteIconLabel"),title:R.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:$e,size:"small",disabled:O},j.slotProps?.baseIconButton,{children:x.jsx(j.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),x.jsx(KJ,N({as:j.slots.baseSelect,sx:[J?{display:"flex"}:{display:"none"},u?{visibility:"visible"}:{visibility:"hidden"},S.sx],className:Oe(q.logicOperatorInput,S.className),ownerState:j},S,{size:"small",slotProps:{htmlInput:{"aria-label":R.current.getLocaleText("filterPanelLogicOperator")}},value:B??"",onChange:Ne,disabled:!!d||g.length===1,native:D},j.slotProps?.baseSelect,{children:g.map(Ve=>m.createElement(j.slots.baseSelectOption,N({},G,{native:D,key:Ve.toString(),value:Ve.toString()}),R.current.getLocaleText(ZJ(Ve))))})),x.jsx(YJ,N({as:j.slots.baseSelect},M,{className:Oe(q.columnInput,M.className),ownerState:j,size:"small",labelId:H,id:L,label:R.current.getLocaleText("filterPanelColumns"),value:se??"",onChange:ke,native:D,disabled:O},j.slotProps?.baseSelect,{children:Se.map(Ve=>m.createElement(j.slots.baseSelectOption,N({},G,{native:D,key:Ve.field,value:Ve.field}),_f(Ve)))})),x.jsx(XJ,N({as:j.slots.baseSelect,size:"small"},w,{className:Oe(q.operatorInput,w.className),ownerState:j,labelId:I,label:R.current.getLocaleText("filterPanelOperator"),id:$,value:r.operator,onChange:Ae,native:D,inputRef:_,disabled:O},j.slotProps?.baseSelect,{children:be?.filterOperators?.map(Ve=>m.createElement(j.slots.baseSelectOption,N({},G,{native:D,key:Ve.value,value:Ve.value}),Ve.label||R.current.getLocaleText(`filterOperator${we(Ve.value)}`)))})),x.jsx(QJ,N({},Z,{className:Oe(q.valueInput,Z.className),ownerState:j,children:de?.InputComponent?x.jsx(de.InputComponent,N({apiRef:R,item:r,applyValue:s,focusElementRef:F,disabled:O,slotProps:{root:{size:"small"}}},de.InputComponentProps,W),r.field):null}))]}))}),JJ=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],yO=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),eee=ht(function(t,n){const r=Mt(),l=We(),a=Te(r,zr),s=Te(r,C$),u=Te(r,sK),d=m.useRef(null),f=m.useRef(null),{logicOperators:h=[Mo.And,Mo.Or],columnsSort:g,filterFormProps:b,getColumnForNewFilter:y,disableAddFilterButton:C=!1,disableRemoveAllButton:S=!1}=t,w=Ge(t,JJ),M=r.current.upsertFilterItem,E=m.useCallback(I=>{r.current.setFilterLogicOperator(I)},[r]),O=m.useCallback(()=>{let I;if(y&&typeof y=="function"){const j=y({currentFilters:a?.items||[],columns:s});if(j===null)return null;I=s.find(({field:q})=>q===j)}else I=s.find(j=>j.filterOperators?.length);return I?yO(I):null},[a?.items,s,y]),P=m.useCallback(()=>{if(y===void 0||typeof y!="function")return O();const I=a.items.length?a.items:[O()].filter(Boolean),j=y({currentFilters:I,columns:s});if(j===null)return null;const q=s.find(({field:F})=>F===j);return q?yO(q):null},[a.items,s,y,O]),R=m.useMemo(()=>a.items.length?a.items:(f.current||(f.current=O()),f.current?[f.current]:[]),[a.items,O]),A=R.length>1,{readOnlyFilters:z,validFilters:k}=m.useMemo(()=>R.reduce((I,j)=>(u[j.field]?I.validFilters.push(j):I.readOnlyFilters.push(j),I),{readOnlyFilters:[],validFilters:[]}),[R,u]),L=m.useCallback(()=>{const I=P();I&&r.current.upsertFilterItems([...R,I])},[r,P,R]),H=m.useCallback(I=>{const j=k.length===1;r.current.deleteFilterItem(I),j&&r.current.hideFilterPanel()},[r,k.length]),$=m.useCallback(()=>k.length===1&&k[0].value===void 0?(r.current.deleteFilterItem(k[0]),r.current.hideFilterPanel()):r.current.setFilterModel(N({},a,{items:z}),"removeAllFilterItems"),[r,z,a,k]);return m.useEffect(()=>{h.length>0&&a.logicOperator&&!h.includes(a.logicOperator)&&E(h[0])},[h,E,a.logicOperator]),m.useEffect(()=>{k.length>0&&d.current.focus()},[k.length]),x.jsxs(Sz,N({},w,{ref:n,children:[x.jsxs(FJ,{children:[z.map((I,j)=>x.jsx(vO,N({item:I,applyFilterChanges:M,deleteFilter:H,hasMultipleFilters:A,showMultiFilterOperators:j>0,disableMultiFilterOperator:j!==1,applyMultiFilterOperatorChanges:E,focusElementRef:null,readOnly:!0,logicOperators:h,columnsSort:g},b),I.id==null?j:I.id)),k.map((I,j)=>x.jsx(vO,N({item:I,applyFilterChanges:M,deleteFilter:H,hasMultipleFilters:A,showMultiFilterOperators:z.length+j>0,disableMultiFilterOperator:z.length+j!==1,applyMultiFilterOperatorChanges:E,focusElementRef:j===k.length-1?d:null,logicOperators:h,columnsSort:g},b),I.id==null?j+z.length:I.id))]}),!l.disableMultipleColumnsFiltering&&!(C&&S)?x.jsxs(BJ,{children:[C?x.jsx("span",{}):x.jsx(l.slots.baseButton,N({onClick:L,startIcon:x.jsx(l.slots.filterPanelAddIcon,{})},l.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!S&&k.length>0?x.jsx(l.slots.baseButton,N({onClick:$,startIcon:x.jsx(l.slots.filterPanelRemoveAllIcon,{})},l.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))}),tee=(e,t)=>{const n=new Set(Object.keys(e).filter(a=>e[a]===!1)),r=new Set(Object.keys(t).filter(a=>t[a]===!1));if(n.size!==r.size)return!1;let l=!0;return n.forEach(a=>{r.has(a)||(l=!1)}),l},nee=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,ree=["children"],oee=Fl({from:{opacity:0},to:{opacity:1}}),lee=Fl({"from, to":{"--scrollable":'" "'}}),iee=Xt("div",{name:"MuiDataGrid",slot:"ShadowScrollArea"})`
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: ${lee};
  animation-timeline: --scroll-timeline;
  animation-fill-mode: none;
  box-sizing: border-box;
  overflow: auto;
  scrollbar-width: thin;
  scroll-timeline: --scroll-timeline block;

  &::before,
  &::after {
    content: '';
    flex-shrink: 0;
    display: block;
    position: sticky;
    left: 0;
    width: 100%;
    height: 4px;
    animation: ${oee} linear both;
    animation-timeline: --scroll-timeline;

    // Custom property toggle trick:
    // - Detects if the element is scrollable
    // - https://css-tricks.com/the-css-custom-property-toggle-trick/
    --visibility-scrollable: var(--scrollable) visible;
    --visibility-not-scrollable: hidden;
    visibility: var(--visibility-scrollable, var(--visibility-not-scrollable));
  }

  &::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0, transparent 100%);
    animation-range: 0 4px;
  }

  &::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.05) 0, transparent 100%);
    animation-direction: reverse;
    animation-range: calc(100% - 4px) 100%;
  }
`,aee=ht(function(t,n){const{children:r}=t,l=Ge(t,ree);return x.jsx(iee,N({},l,{ref:n,children:r}))}),see=e=>{const{classes:t}=e;return Be({root:["columnsManagement"],header:["columnsManagementHeader"],searchInput:["columnsManagementSearchInput"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},Lt,t)},CO=new Intl.Collator;function cee(e){const t=Mt(),n=m.useRef(null),r=Te(t,aK),l=Te(t,ai),a=We(),[s,u]=m.useState(""),d=see(a),f=Te(t,Dl),h=Te(t,yc),g=Te(t,rz),b=m.useMemo(()=>h?Array.from(g.values()):f,[h,g,f]),{sort:y,searchPredicate:C=nee,autoFocusSearchField:S=!0,disableShowHideToggle:w=!1,disableResetButton:M=!1,toggleAllMode:E="all",getTogglableColumns:O,searchInputProps:P,searchDebounceMs:R=a.columnFilterDebounceMs}=e,A=m.useMemo(()=>_p(D=>{u(D)},R??150),[R]),z=m.useMemo(()=>tee(l,r),[l,r]),k=m.useMemo(()=>{switch(y){case"asc":return[...b].sort((D,G)=>CO.compare(D.headerName||D.field,G.headerName||G.field));case"desc":return[...b].sort((D,G)=>-CO.compare(D.headerName||D.field,G.headerName||G.field));default:return b}},[b,y]),L=D=>{const{name:G}=D.target;t.current.setColumnVisibility(G,l[G]===!1)},H=m.useMemo(()=>{const D=O?O(k):null,G=D?k.filter(({field:W})=>D.includes(W)):k;return s?G.filter(W=>C(W,s.toLowerCase())):G},[k,s,C,O]),$=m.useCallback(D=>{const G=ai(t),W=N({},G),Z=O?O(b):null;return(E==="filteredOnly"?H:b).forEach(te=>{te.hideable&&(Z==null||Z.includes(te.field))&&(D?delete W[te.field]:W[te.field]=!1)}),t.current.setColumnVisibilityModel(W)},[t,b,O,E,H]),I=m.useCallback(D=>{A(D.target.value)},[A]),j=m.useMemo(()=>H.filter(D=>D.hideable),[H]),q=m.useMemo(()=>j.every(D=>l[D.field]==null||l[D.field]!==!1),[l,j]),F=m.useMemo(()=>j.every(D=>l[D.field]===!1),[l,j]),_=m.useRef(null);m.useEffect(()=>{S?n.current?.focus():_.current&&typeof _.current.focus=="function"&&_.current.focus()},[S]);let B=!1;const J=D=>B===!1&&D.hideable!==!1?(B=!0,!0):!1,Q=m.useCallback(()=>{u(""),n.current&&(n.current.value="",n.current.focus())},[]);return x.jsxs(m.Fragment,{children:[x.jsx(fee,{className:d.header,ownerState:a,children:x.jsx(pee,N({as:a.slots.baseTextField,ownerState:a,placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:n,className:d.searchInput,onChange:I,size:"small",type:"search",slotProps:{input:{startAdornment:x.jsx(a.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:x.jsx(a.slots.baseIconButton,N({size:"small","aria-label":t.current.getLocaleText("columnsManagementDeleteIconLabel"),style:s?{visibility:"visible"}:{visibility:"hidden"},tabIndex:-1,onClick:Q,edge:"end"},a.slotProps?.baseIconButton,{children:x.jsx(a.slots.quickFilterClearIcon,{fontSize:"small"})}))},htmlInput:{"aria-label":t.current.getLocaleText("columnsManagementSearchTitle")}},autoComplete:"off",fullWidth:!0},a.slotProps?.baseTextField,P))}),x.jsx(dee,{ownerState:a,children:x.jsxs(uee,{className:d.root,ownerState:a,children:[H.map(D=>x.jsx(a.slots.baseCheckbox,N({className:d.row,disabled:D.hideable===!1||h,checked:l[D.field]!==!1,onChange:L,name:D.field,inputRef:J(D)?_:void 0,label:D.headerName||D.field,density:"compact",fullWidth:!0},a.slotProps?.baseCheckbox),D.field)),H.length===0&&x.jsx(gee,{ownerState:a,children:t.current.getLocaleText("columnsManagementNoColumns")})]})}),!w||!M?x.jsxs(hee,{ownerState:a,className:d.footer,children:[w?x.jsx("span",{}):x.jsx(a.slots.baseCheckbox,N({disabled:j.length===0||h,checked:q,indeterminate:!q&&!F,onChange:()=>$(!q),name:t.current.getLocaleText("columnsManagementShowHideAllText"),label:t.current.getLocaleText("columnsManagementShowHideAllText"),density:"compact"},a.slotProps?.baseCheckbox)),M?null:x.jsx(a.slots.baseButton,N({onClick:()=>t.current.setColumnVisibilityModel(r),disabled:z||h},a.slotProps?.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]}):null]})}const uee=ge("div",{name:"MuiDataGrid",slot:"ColumnsManagement"})({display:"flex",flexDirection:"column",padding:Ye.spacing(.5,1.5)}),dee=ge(aee,{name:"MuiDataGrid",slot:"ColumnsManagementScrollArea"})({maxHeight:300}),fee=ge("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader"})({padding:Ye.spacing(1.5,2),borderBottom:`1px solid ${Ye.colors.border.base}`}),pee=ge(Ma,{name:"MuiDataGrid",slot:"ColumnsManagementSearchInput"})({[`& .${so.input}::-webkit-search-decoration,
      & .${so.input}::-webkit-search-cancel-button,
      & .${so.input}::-webkit-search-results-button,
      & .${so.input}::-webkit-search-results-decoration`]:{display:"none"}}),hee=ge("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter"})({padding:Ye.spacing(1,1,1,1.5),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${Ye.colors.border.base}`}),gee=ge("div",{name:"MuiDataGrid",slot:"ColumnsManagementEmptyText"})({padding:Ye.spacing(1,0),alignSelf:"center",font:Ye.typography.font.body}),mee=ht(function(t,n){const{children:r,slotProps:l={}}=t,a=l.button||{},s=l.tooltip||{},u=Mt(),d=We(),f=Nt(),h=Nt(),[g,b]=m.useState(!1),y=m.useRef(null),C=tn(n,y),S=M=>{b(E=>!E),a.onClick?.(M)},w=()=>b(!1);return r==null?null:x.jsxs(m.Fragment,{children:[x.jsx(d.slots.baseTooltip,N({title:u.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},d.slotProps?.baseTooltip,s,{children:x.jsx(d.slots.baseButton,N({size:"small",startIcon:x.jsx(d.slots.exportIcon,{}),"aria-expanded":g,"aria-label":u.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":g?h:void 0,id:f},d.slotProps?.baseButton,a,{onClick:S,ref:C,children:u.current.getLocaleText("toolbarExport")}))})),x.jsx(Qm,{open:g,target:y.current,onClose:w,position:"bottom-end",children:x.jsx(d.slots.baseMenuList,{id:h,className:K.menuList,"aria-labelledby":f,autoFocusItem:g,children:m.Children.map(r,M=>m.isValidElement(M)?m.cloneElement(M,{hideMenu:w}):M)})})]})}),bee=["hideMenu","options"],vee=["hideMenu","options"],yee=["csvOptions","printOptions","excelOptions"];function Cee(e){const t=Mt(),n=We(),{hideMenu:r,options:l}=e,a=Ge(e,bee);return x.jsx(n.slots.baseMenuItem,N({onClick:()=>{t.current.exportDataAsCsv(l),r?.()}},a,{children:t.current.getLocaleText("toolbarExportCSV")}))}function See(e){const t=Mt(),n=We(),{hideMenu:r,options:l}=e,a=Ge(e,vee);return x.jsx(n.slots.baseMenuItem,N({onClick:()=>{t.current.exportDataAsPrint(l),r?.()}},a,{children:t.current.getLocaleText("toolbarExportPrint")}))}ht(function(t,n){const r=t,{csvOptions:l={},printOptions:a={},excelOptions:s}=r,u=Ge(r,yee),f=Mt().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:s,csvOptions:l,printOptions:a}).sort((h,g)=>h.componentName>g.componentName?1:-1);return f.length===0?null:x.jsx(mee,N({},u,{ref:n,children:f.map((h,g)=>m.cloneElement(h.component,{key:g}))}))});const wz=m.createContext(void 0);function oM(){const e=m.useContext(wz);if(e===void 0)throw new Error("MUI X: Missing context. Quick Filter subcomponents must be placed within a <QuickFilter /> component.");return e}const wee=["render","className","parser","formatter","debounceMs","defaultExpanded","expanded","onExpandedChange"],xee=e=>e.split(" ").filter(t=>t!==""),Mee=e=>e.join(" ");function Tee(e){const t=We(),{render:n,className:r,parser:l=xee,formatter:a=Mee,debounceMs:s=t.filterDebounceMs,defaultExpanded:u,expanded:d,onExpandedChange:f}=e,h=Ge(e,wee),g=Mt(),b=m.useRef(null),y=m.useRef(null),C=Te(g,I$),[S,w]=m.useState(a(C??[])),[M,E]=m.useState(u??S.length>0),O=d??M,P=m.useMemo(()=>({value:S,expanded:O}),[S,O]),R=typeof r=="function"?r(P):r,A=m.useRef(null),z=Nt(),k=m.useCallback(B=>{f&&f(B),d===void 0&&E(B)},[f,d]),L=m.useRef(C);m.useEffect(()=>{Ll(L.current,C)||(L.current=C,w(B=>Ll(l(B),C)?B:a(C??[])))},[C,a,l]);const H=m.useRef(!0),$=m.useRef(O);m.useEffect(()=>{if(H.current){H.current=!1;return}$.current!==O&&(O?requestAnimationFrame(()=>{b.current?.focus({preventScroll:!0})}):y.current?.focus({preventScroll:!0}),$.current=O)},[O]);const I=m.useMemo(()=>_p(B=>{const J=l(B);L.current=J,g.current.setQuickFilterValues(J)},s),[g,s,l]);m.useEffect(()=>I.clear,[I]);const j=m.useCallback(B=>{const J=B.target.value;w(J),I(J)},[I]),q=m.useCallback(()=>{w(""),g.current.setQuickFilterValues([]),b.current?.focus()},[g,b]),F=m.useMemo(()=>({controlRef:b,triggerRef:y,state:P,controlId:z,clearValue:q,onValueChange:j,onExpandedChange:k}),[z,P,j,q,k]);gn(()=>{A.current&&y.current&&A.current.style.setProperty("--trigger-width",`${y.current?.offsetWidth}px`)},[]);const _=ji("div",n,N({className:R},h,{ref:A}),P);return x.jsx(wz.Provider,{value:F,children:_})}const Eee=["render","className","slotProps","onKeyDown","onChange"],Pee=ht(function(t,n){const{render:r,className:l,slotProps:a,onKeyDown:s,onChange:u}=t,d=Ge(t,Eee),f=We(),{state:h,controlId:g,controlRef:b,onValueChange:y,onExpandedChange:C,clearValue:S}=oM(),w=typeof l=="function"?l(h):l,M=tn(b,n),E=A=>{A.key==="Escape"&&(h.value===""?C(!1):S()),s?.(A)},O=A=>{h.value===""&&C(!1),a?.htmlInput?.onBlur?.(A)},P=A=>{h.expanded||C(!0),y(A),u?.(A)},R=ji(f.slots.baseTextField,r,N({},f.slotProps?.baseTextField,{slotProps:N({htmlInput:N({role:"searchbox",id:g,tabIndex:h.expanded?void 0:-1},a?.htmlInput,{onBlur:O})},a),value:h.value,className:w},d,{onChange:P,onKeyDown:E,ref:M}),h);return x.jsx(m.Fragment,{children:R})}),Ree=["render","className","onClick"],Aee=ht(function(t,n){const{render:r,className:l,onClick:a}=t,s=Ge(t,Ree),u=We(),{state:d,clearValue:f}=oM(),h=typeof l=="function"?l(d):l,g=y=>{f(),a?.(y)},b=ji(u.slots.baseIconButton,r,N({},u.slotProps?.baseIconButton,{className:h,tabIndex:-1},s,{onClick:g,ref:n}),d);return x.jsx(m.Fragment,{children:b})}),Oee=["render","className","onClick"],Iee=ht(function(t,n){const{render:r,className:l,onClick:a}=t,s=Ge(t,Oee),u=We(),{state:d,controlId:f,onExpandedChange:h,triggerRef:g}=oM(),b=typeof l=="function"?l(d):l,y=tn(g,n),C=w=>{h(!d.expanded),a?.(w)},S=ji(u.slots.baseButton,r,N({},u.slotProps?.baseButton,{className:b,"aria-controls":f,"aria-expanded":d.expanded},s,{onClick:C,ref:y}),d);return x.jsx(m.Fragment,{children:S})}),kee=["quickFilterParser","quickFilterFormatter","debounceMs","className","slotProps"],_ee=["ref","slotProps"],Dee=e=>{const{classes:t}=e;return Be({root:["toolbarQuickFilter"],trigger:["toolbarQuickFilterTrigger"],control:["toolbarQuickFilterControl"]},Lt,t)},Lee=Xt("div",{name:"MuiDataGrid",slot:"ToolbarQuickFilter"})({display:"grid",alignItems:"center"}),$ee=Xt(jg,{name:"MuiDataGrid",slot:"ToolbarQuickFilterTrigger"})(({ownerState:e})=>({gridArea:"1 / 1",width:"min-content",height:"min-content",zIndex:1,opacity:e.expanded?0:1,pointerEvents:e.expanded?"none":"auto",transition:Ye.transition(["opacity"])})),zee=Xt(e=>{throw new Error("Failed assertion: should not be rendered")},{name:"MuiDataGrid",slot:"ToolbarQuickFilterControl"})(({ownerState:e})=>({gridArea:"1 / 1",overflowX:"clip",width:e.expanded?260:"var(--trigger-width)",opacity:e.expanded?1:0,transition:Ye.transition(["width","opacity"])}));function Fee(e){const t=Mt(),n=We(),r={classes:n.classes,expanded:!1},l=Dee(r),{quickFilterParser:a,quickFilterFormatter:s,debounceMs:u,className:d,slotProps:f}=e,h=Ge(e,kee);return x.jsx(Tee,{parser:a,formatter:s,debounceMs:u,render:(g,b)=>{const y=N({},r,{expanded:b.expanded});return x.jsxs(Lee,N({},g,{className:Oe(l.root,d),children:[x.jsx(Iee,{render:C=>x.jsx(n.slots.baseTooltip,{title:t.current.getLocaleText("toolbarQuickFilterLabel"),enterDelay:0,children:x.jsx($ee,N({className:l.trigger},C,{ownerState:y,color:"default","aria-disabled":b.expanded,children:x.jsx(n.slots.quickFilterIcon,{fontSize:"small"})}))})}),x.jsx(Pee,{render:C=>{let{ref:S,slotProps:w}=C,M=Ge(C,_ee);return x.jsx(zee,N({as:n.slots.baseTextField,className:l.control,ownerState:y,inputRef:S,"aria-label":t.current.getLocaleText("toolbarQuickFilterLabel"),placeholder:t.current.getLocaleText("toolbarQuickFilterPlaceholder"),size:"small",slotProps:N({input:N({startAdornment:x.jsx(n.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:M.value?x.jsx(Aee,{render:x.jsx(n.slots.baseIconButton,{size:"small",edge:"end","aria-label":t.current.getLocaleText("toolbarQuickFilterDeleteIconLabel"),children:x.jsx(n.slots.quickFilterClearIcon,{fontSize:"small"})})}):null},w?.input)},w)},n.slotProps?.baseTextField,M,f?.root,h))}})]}))}})}const Hee=["render","className","onClick","onPointerUp"],Nee=ht(function(t,n){const{render:r,className:l,onClick:a,onPointerUp:s}=t,u=Ge(t,Hee),d=We(),f=Nt(),h=Nt(),g=Mt(),b=Te(g,Cc),y=b.open&&b.openedPanelValue===To.filters,S=Te(g,Xx).length,w={open:y,filterCount:S},M=typeof l=="function"?l(w):l,{filterPanelTriggerRef:E}=nM(),O=tn(n,E),P=z=>{y?g.current.hidePreferences():g.current.showPreferences(To.filters,h,f),a?.(z)},R=z=>{y&&z.stopPropagation(),s?.(z)},A=ji(d.slots.baseButton,r,N({},d.slotProps?.baseButton,{id:f,"aria-haspopup":"true","aria-expanded":y?"true":void 0,"aria-controls":y?h:void 0,onClick:P,onPointerUp:R,className:M},u,{ref:O}),w);return x.jsx(m.Fragment,{children:A})}),jee=["render","className","onClick","onPointerUp"],Bee=ht(function(t,n){const{render:r,className:l,onClick:a,onPointerUp:s}=t,u=Ge(t,jee),d=We(),f=Nt(),h=Nt(),g=Mt(),b=Te(g,Cc),y=b.open&&b.openedPanelValue===To.columns,C={open:y},S=typeof l=="function"?l(C):l,{columnsPanelTriggerRef:w}=nM(),M=tn(n,w),E=R=>{y?g.current.hidePreferences():g.current.showPreferences(To.columns,h,f),a?.(R)},O=R=>{y&&R.stopPropagation(),s?.(R)},P=ji(d.slots.baseButton,r,N({},d.slotProps?.baseButton,{id:f,"aria-haspopup":"true","aria-expanded":y?"true":void 0,"aria-controls":y?h:void 0,className:S},u,{onPointerUp:O,onClick:E,ref:M}),C);return x.jsx(m.Fragment,{children:P})}),Gee=["render","options","onClick"],Vee=ht(function(t,n){const{render:r,options:l,onClick:a}=t,s=Ge(t,Gee),u=We(),d=Mt(),f=g=>{d.current.exportDataAsCsv(l),a?.(g)},h=ji(u.slots.baseButton,r,N({},u.slotProps?.baseButton,{onClick:f},s,{ref:n}));return x.jsx(m.Fragment,{children:h})}),Uee=["render","options","onClick"],qee=ht(function(t,n){const{render:r,options:l,onClick:a}=t,s=Ge(t,Uee),u=We(),d=Mt(),f=g=>{d.current.exportDataAsPrint(l),a?.(g)},h=ji(u.slots.baseButton,r,N({},u.slotProps?.baseButton,{onClick:f},s,{ref:n}));return x.jsx(m.Fragment,{children:h})}),Wee=["className"],Kee=["className"],xz=e=>{const{classes:t}=e;return Be({divider:["toolbarDivider"],label:["toolbarLabel"]},Lt,t)},Yee=Xt(Ma,{name:"MuiDataGrid",slot:"ToolbarDivider"})({height:"50%",margin:Ye.spacing(0,.5)}),Xee=Xt("span",{name:"MuiDataGrid",slot:"ToolbarLabel"})({flex:1,font:Ye.typography.font.large,fontWeight:Ye.typography.fontWeight.medium,margin:Ye.spacing(0,.5),textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"});function SO(e){const t=Ge(e,Wee),n=We(),r=xz(n);return x.jsx(Yee,N({as:n.slots.baseDivider,orientation:"vertical",className:r.divider},t))}function Qee(e){const t=Ge(e,Kee),n=We(),r=xz(n);return x.jsx(Xee,N({className:r.label},t))}function Zee(e){const{showQuickFilter:t=!0,quickFilterProps:n,csvOptions:r,printOptions:l,additionalItems:a,additionalExportMenuItems:s}=e,u=Mt(),d=We(),[f,h]=m.useState(!1),g=m.useRef(null),b=Nt(),y=Nt(),C=!r?.disableToolbarButton||!l?.disableToolbarButton||s,S=()=>h(!1);return x.jsxs(bZ,{children:[d.label&&x.jsx(Qee,{children:d.label}),!d.disableColumnSelector&&x.jsx(d.slots.baseTooltip,{title:u.current.getLocaleText("toolbarColumns"),children:x.jsx(Bee,{render:x.jsx(jg,{}),children:x.jsx(d.slots.columnSelectorIcon,{fontSize:"small"})})}),!d.disableColumnFilter&&x.jsx(d.slots.baseTooltip,{title:u.current.getLocaleText("toolbarFilters"),children:x.jsx(Nee,{render:(w,M)=>x.jsx(jg,N({},w,{color:M.filterCount>0?"primary":"default",children:x.jsx(d.slots.baseBadge,{badgeContent:M.filterCount,color:"primary",variant:"dot",children:x.jsx(d.slots.openFilterButtonIcon,{fontSize:"small"})})}))})}),a,C&&(!d.disableColumnFilter||!d.disableColumnSelector)&&x.jsx(SO,{}),C&&x.jsxs(m.Fragment,{children:[x.jsx(d.slots.baseTooltip,{title:u.current.getLocaleText("toolbarExport"),disableInteractive:f,children:x.jsx(jg,{ref:g,id:y,"aria-controls":b,"aria-haspopup":"true","aria-expanded":f?"true":void 0,onClick:()=>h(!f),children:x.jsx(d.slots.exportIcon,{fontSize:"small"})})}),x.jsx(Qm,{target:g.current,open:f,onClose:S,position:"bottom-end",children:x.jsxs(d.slots.baseMenuList,N({id:b,"aria-labelledby":y,autoFocusItem:!0},d.slotProps?.baseMenuList,{children:[!l?.disableToolbarButton&&x.jsx(qee,{render:x.jsx(d.slots.baseMenuItem,N({},d.slotProps?.baseMenuItem)),options:l,onClick:S,children:u.current.getLocaleText("toolbarExportPrint")}),!r?.disableToolbarButton&&x.jsx(Vee,{render:x.jsx(d.slots.baseMenuItem,N({},d.slotProps?.baseMenuItem)),options:r,onClick:S,children:u.current.getLocaleText("toolbarExportCSV")}),s?.(S)]}))})]}),t&&x.jsxs(m.Fragment,{children:[x.jsx(SO,{}),x.jsx(Fee,N({},n))]})]})}const Jee=["className","selectedRowCount"],ete=e=>{const{classes:t}=e;return Be({root:["selectedRowCount"]},Lt,t)},tte=Xt("div",{name:"MuiDataGrid",slot:"SelectedRowCount"})({alignItems:"center",display:"flex",margin:Ye.spacing(0,2),visibility:"hidden",width:0,height:0,[Ye.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}}),nte=ht(function(t,n){const{className:r,selectedRowCount:l}=t,a=Ge(t,Jee),s=Mt(),u=We(),d=ete(u),f=s.current.getLocaleText("footerRowSelected")(l);return x.jsx(tte,N({className:Oe(d.root,r),ownerState:u},a,{ref:n,children:f}))}),rte=ht(function(t,n){const r=Mt(),l=We(),a=Te(r,CW),s=Te(r,tb),u=Te(r,Yx),d=!l.hideFooterSelectedRowCount&&s>0?x.jsx(nte,{selectedRowCount:s}):x.jsx("div",{}),f=!l.hideFooterRowCount&&!l.pagination?x.jsx(l.slots.footerRowCount,N({},l.slotProps?.footerRowCount,{rowCount:a,visibleRowCount:u})):null,h=l.pagination&&!l.hideFooterPagination&&l.slots.pagination&&x.jsx(l.slots.pagination,N({},l.slotProps?.pagination));return x.jsxs(aZ,N({},t,{ref:n,children:[d,f,h]}))}),rp=(e,t,n,r,l,a)=>{let s;switch(e){case zt.LEFT:s=r[n];break;case zt.RIGHT:s=l-r[n]-t+a;break;default:s=void 0;break}return Number.isNaN(s)&&(s=void 0),s},pm=(e,t,n,r,l)=>{const a=t===n-1;return e===zt.LEFT&&a?!0:r?e===zt.LEFT?!0:e===zt.RIGHT?!a:!a||l:!1},hm=(e,t)=>e===zt.RIGHT&&t===0,Df={root:K.scrollbarFiller,header:K["scrollbarFiller--header"],borderTop:K["scrollbarFiller--borderTop"],borderBottom:K["scrollbarFiller--borderBottom"],pinnedRight:K["scrollbarFiller--pinnedRight"]};function lM({header:e,borderTop:t=!0,borderBottom:n,pinnedRight:r}){return x.jsx("div",{role:"presentation",className:Oe(Df.root,e&&Df.header,t&&Df.borderTop,n&&Df.borderBottom,r&&Df.pinnedRight)})}const ote=["skeletonRowsCount","visibleColumns","showFirstRowBorder"],lte=Xt("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay"})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),ite=e=>{const{classes:t}=e;return Be({root:["skeletonLoadingOverlay"]},Lt,t)},wO=e=>parseInt(e.getAttribute("data-colindex"),10),ate=ht(function(t,n){const r=We(),{slots:l}=r,a=Po(),s=ite({classes:r.classes}),u=m.useRef(null),d=tn(u,n),f=Mt(),h=Te(f,lr),g=Te(f,Hx),b=Te(f,Tc),y=m.useMemo(()=>b.filter(k=>k<=g).length,[g,b]),{skeletonRowsCount:C,visibleColumns:S,showFirstRowBorder:w}=t,M=Ge(t,ote),E=Te(f,or),O=m.useMemo(()=>E.slice(0,y),[E,y]),P=Te(f,Ym),R=m.useCallback(k=>{if(P.left.findIndex(L=>L.field===k)!==-1)return zt.LEFT;if(P.right.findIndex(L=>L.field===k)!==-1)return zt.RIGHT},[P.left,P.right]),A=m.useMemo(()=>{const k=[];for(let L=0;L<C;L+=1){const H=[];for(let $=0;$<O.length;$+=1){const I=O[$],j=R(I.field),q=j===zt.LEFT,F=j===zt.RIGHT,_=dz(j,a),B=_?P[_].length:O.length-P.left.length-P.right.length,J=_?P[_].findIndex(Ae=>Ae.field===I.field):$-P.left.length,Q=h.hasScrollY?h.scrollbarSize:0,D=ib({},a,j,rp(j,I.computedWidth,$,b,h.columnsTotalWidth,Q)),G=h.columnsTotalWidth<h.viewportOuterSize.width,W=pm(j,J,B,r.showCellVerticalBorder,G),Z=hm(j,J),te=$===O.length-1,ne=F&&J===0,oe=ne&&G,se=te&&!ne&&G,Se=h.viewportOuterSize.width-h.columnsTotalWidth,be=Math.max(0,Se),de=x.jsx(l.skeletonCell,{width:be,empty:!0},`skeleton-filler-column-${L}`),ke=te&&Q!==0;oe&&H.push(de),H.push(x.jsx(l.skeletonCell,{field:I.field,type:I.type,align:I.align,width:"var(--width)",height:h.rowHeight,"data-colindex":$,empty:S&&!S.has(I.field),className:Oe(q&&K["cell--pinnedLeft"],F&&K["cell--pinnedRight"],W&&K["cell--withRightBorder"],Z&&K["cell--withLeftBorder"]),style:N({"--width":`${I.computedWidth}px`},D)},`skeleton-column-${L}-${I.field}`)),se&&H.push(de),ke&&H.push(x.jsx(lM,{pinnedRight:P.right.length>0},`skeleton-scrollbar-filler-${L}`))}k.push(x.jsx("div",{className:Oe(K.row,K.rowSkeleton,L===0&&!w&&K["row--firstVisible"]),children:H},`skeleton-row-${L}`))}return k},[C,O,R,a,P,h.hasScrollY,h.scrollbarSize,h.columnsTotalWidth,h.viewportOuterSize.width,h.rowHeight,b,r.showCellVerticalBorder,l,S,w]);return rt(f,"columnResize",k=>{const{colDef:L,width:H}=k,$=u.current?.querySelectorAll(`[data-field="${Ea(L.field)}"]`);if(!$)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const I=O.findIndex(J=>J.field===L.field),j=R(L.field),q=j===zt.LEFT,F=j===zt.RIGHT,_=getComputedStyle($[0]).getPropertyValue("--width"),B=parseInt(_,10)-H;$&&$.forEach(J=>{J.style.setProperty("--width",`${H}px`)}),q&&u.current?.querySelectorAll(`.${K["cell--pinnedLeft"]}`)?.forEach(Q=>{wO(Q)>I&&(Q.style.left=`${parseInt(getComputedStyle(Q).left,10)-B}px`)}),F&&u.current?.querySelectorAll(`.${K["cell--pinnedRight"]}`)?.forEach(Q=>{wO(Q)<I&&(Q.style.right=`${parseInt(getComputedStyle(Q).right,10)+B}px`)})}),x.jsx(lte,N({className:s.root},M,{ref:d,children:A}))}),ste=ht(function(t,n){const r=Mt(),l=Te(r,lr),a=l?.viewportInnerSize.height??0,s=Math.ceil(a/l.rowHeight);return x.jsx(ate,N({},t,{skeletonRowsCount:s,ref:n}))}),cte=["variant","noRowsVariant","style"],ute={"circular-progress":{component:e=>e.slots.baseCircularProgress,style:{}},"linear-progress":{component:e=>e.slots.baseLinearProgress,style:{display:"block"}},skeleton:{component:()=>ste,style:{display:"block"}}},dte=ht(function(t,n){const{variant:r="linear-progress",noRowsVariant:l="skeleton",style:a}=t,s=Ge(t,cte),u=Mt(),d=We(),f=Te(u,dd),h=ute[f===0?l:r],g=h.component(d);return x.jsx(ab,N({style:N({},h.style,a)},s,{ref:n,children:x.jsx(g,{})}))}),fte=ht(function(t,n){const l=Mt().current.getLocaleText("noRowsLabel");return x.jsx(ab,N({},t,{ref:n,children:l}))}),pte=ht(function(t,n){const r=We(),l=Mt(),a=Te(l,zi),s=()=>{l.current.showPreferences(To.columns)},u=!r.disableColumnSelector&&a.length>0;return x.jsxs(ab,N({},t,{ref:n,children:[l.current.getLocaleText("noColumnsOverlayLabel"),u&&x.jsx(r.slots.baseButton,N({size:"small"},r.slotProps?.baseButton,{onClick:s,children:l.current.getLocaleText("noColumnsOverlayManageColumns")}))]}))}),hte=ge(Ma)({maxHeight:"calc(100% + 1px)",flexGrow:1});function gte(){const e=Mt(),t=We(),n=Te(e,Jr),r=Te(e,Iu),l=Te(e,V$),{paginationMode:a,loading:s}=t,u=r===-1&&a==="server"&&s,d=m.useMemo(()=>Math.max(0,l-1),[l]),f=m.useMemo(()=>r===-1||n.page<=d?n.page:d,[d,n.page,r]),h=m.useCallback(C=>{e.current.setPageSize(C)},[e]),g=m.useCallback((C,S)=>{e.current.setPage(S)},[e]),y=(C=>{for(let S=0;S<t.pageSizeOptions.length;S+=1){const w=t.pageSizeOptions[S];if(typeof w=="number"){if(w===C)return!0}else if(w.value===C)return!0}return!1})(n.pageSize)?t.pageSizeOptions:[];return x.jsx(hte,N({as:t.slots.basePagination,count:r,page:f,rowsPerPageOptions:y,rowsPerPage:n.pageSize,onPageChange:g,onRowsPerPageChange:h,disabled:u},t.slotProps?.basePagination))}const mte=["className","rowCount","visibleRowCount"],bte=e=>{const{classes:t}=e;return Be({root:["rowCount"]},Lt,t)},vte=Xt("div",{name:"MuiDataGrid",slot:"RowCount"})({alignItems:"center",display:"flex",margin:Ye.spacing(0,2)}),yte=ht(function(t,n){const{className:r,rowCount:l,visibleRowCount:a}=t,s=Ge(t,mte),u=Mt(),d=We(),f=bte(d);if(l===0)return null;const h=a<l?u.current.getLocaleText("footerTotalVisibleRows")(a,l):l.toLocaleString();return x.jsxs(vte,N({className:Oe(f.root,r),ownerState:d},s,{ref:n,children:[u.current.getLocaleText("footerTotalRows")," ",h]}))});function Cte(e,t){return Be(t,Lt,e)}const zu=(e,t)=>jp(e),Mz=(e,t)=>Te(e,jp),Ste=Gn(e=>e.rowReorder),wte=ot(Ste,e=>e?.isActive??!1),xte=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetLeft","columnsTotalWidth","firstColumnIndex","lastColumnIndex","focusedColumnIndex","isFirstVisible","isLastVisible","isNotVisible","showBottomBorder","scrollbarWidth","gridHasFiller","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],Mte=ot(Fr,(e,t)=>t?!!Jm(e):!1),Tte=ht(function(t,n){const{selected:r,rowId:l,row:a,index:s,style:u,rowHeight:d,className:f,visibleColumns:h,pinnedColumns:g,offsetLeft:b,columnsTotalWidth:y,firstColumnIndex:C,lastColumnIndex:S,focusedColumnIndex:w,isFirstVisible:M,isLastVisible:E,isNotVisible:O,showBottomBorder:P,scrollbarWidth:R,gridHasFiller:A,onClick:z,onDoubleClick:k,onMouseEnter:L,onMouseLeave:H,onMouseOut:$,onMouseOver:I}=t,j=Ge(t,xte),q=al(),F=Xm(),_=m.useRef(null),B=We(),J=Mz(q),Q=Te(q,Tl),D=Te(q,fd),G=Te(q,Tc),W=B.rowReordering,Z=Te(q,Mte,W),te=Te(q,wte),ne=tn(_,n),oe=_i(q,l),se=Te(q,cz,{rowId:l,editMode:B.editMode}),Se=B.editMode===Hi.Row,be=w!==void 0,de=be&&w>=g.left.length&&w<C,ke=be&&w<h.length-g.right.length&&w>=S,Ae=Cte(B.classes,{root:["row",r&&"selected",Se&&"row--editable",se&&"row--editing",M&&"row--firstVisible",E&&"row--lastVisible",P&&"row--borderBottom",d==="auto"&&"row--dynamicHeight"]}),Ne=F.hooks.useGridRowAriaAttributes();m.useLayoutEffect(()=>{if(J.range){const _e=q.current.getRowIndexRelativeToVisibleRows(l);_e!==void 0&&q.current.unstable_setLastMeasuredRowIndex(_e)}if(_.current&&d==="auto")return q.current.observeRowHeight(_.current,l)},[q,J.range,d,l]);const $e=m.useCallback((_e,Je)=>Fe=>{Vp(Fe)||q.current.getRow(l)&&(q.current.publishEvent(_e,q.current.getRowParams(l),Fe),Je&&Je(Fe))},[q,l]),Ve=m.useCallback(_e=>{const Fe=fm(_e.target,K.cell)?.getAttribute("data-field");Fe&&(Fe===md.field||Fe===qx||Fe==="__reorder__"||q.current.getCellMode(l,Fe)===rn.Edit||q.current.getColumn(Fe)?.type===Zm)||$e("rowClick",z)(_e)},[q,z,$e,l]),{slots:nt,slotProps:lt,disableColumnReorder:me}=B,tt=Te(q,()=>N({},q.current.getRowHeightEntry(l)),void 0,i$),ze=m.useMemo(()=>{if(O)return{opacity:0,width:0,height:0};const _e=N({},u,{maxHeight:d==="auto"?"none":d,minHeight:d,"--height":typeof d=="number"?`${d}px`:d});if(tt.spacingTop){const Je=B.rowSpacingType==="border"?"borderTopWidth":"marginTop";_e[Je]=tt.spacingTop}if(tt.spacingBottom){const Je=B.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let Fe=_e[Je];typeof Fe!="number"&&(Fe=parseInt(Fe||"0",10)),Fe+=tt.spacingBottom,_e[Je]=Fe}return _e},[O,d,u,tt,B.rowSpacingType]),et=q.current.unstable_applyPipeProcessors("rowClassName",[],l),He=Ne(oe,s);if(typeof B.getRowClassName=="function"){const _e=s-(J.range?.firstRowIndex||0),Je=N({},q.current.getRowParams(l),{isFirstVisible:_e===0,isLastVisible:_e===J.rows.length-1,indexRelativeToCurrentPage:_e});et.push(B.getRowClassName(Je))}if(!oe)return null;const yt=(_e,Je,Fe,Qe,st=zt.NONE)=>{const pt=q.current.unstable_getCellColSpanInfo(l,Fe);if(pt?.spannedByColSpan)return null;const Ze=pt?.cellProps.width??_e.computedWidth,Tt=pt?.cellProps.colSpan??1,_t=rp(st,_e.computedWidth,Fe,G,y,R);if(oe.type==="skeletonRow")return x.jsx(nt.skeletonCell,{type:_e.type,width:Ze,height:d,field:_e.field,align:_e.align},_e.field);const cn=_e.field==="__reorder__",qn=!(me||_e.disableReorder),cr=Z&&!Q.length&&D<=1,on=!(qn||cn&&cr||te),Wn=st===zt.VIRTUAL,Gr=hm(st,Je),Cr=pm(st,Je,Qe,B.showCellVerticalBorder,A);return x.jsx(nt.cell,N({column:_e,width:Ze,rowId:l,align:_e.align||"left",colIndex:Fe,colSpan:Tt,disableDragEvents:on,isNotVisible:Wn,pinnedOffset:_t,pinnedPosition:st,showLeftBorder:Gr,showRightBorder:Cr,row:a,rowNode:oe},lt?.cell),_e.field)},Le=g.left.map((_e,Je)=>yt(_e,Je,Je,g.left.length,zt.LEFT)),Pe=g.right.map((_e,Je)=>{const Fe=h.length-g.right.length+Je;return yt(_e,Je,Fe,g.right.length,zt.RIGHT)}),Ke=h.length-g.left.length-g.right.length,Xe=[];de&&Xe.push(yt(h[w],w-g.left.length,w,Ke,zt.VIRTUAL));for(let _e=C;_e<S;_e+=1){const Je=h[_e],Fe=_e-g.left.length;Je&&Xe.push(yt(Je,Fe,_e,Ke))}ke&&Xe.push(yt(h[w],w-g.left.length,w,Ke,zt.VIRTUAL));const mt=a?{onClick:Ve,onDoubleClick:$e("rowDoubleClick",k),onMouseEnter:$e("rowMouseEnter",L),onMouseLeave:$e("rowMouseLeave",H),onMouseOut:$e("rowMouseOut",$),onMouseOver:$e("rowMouseOver",I)}:null;return x.jsxs("div",N({"data-id":l,"data-rowindex":s,role:"row",className:Oe(...et,Ae.root,f),style:ze},He,mt,j,{ref:ne,children:[Le,x.jsx("div",{role:"presentation",className:K.cellOffsetLeft,style:{width:b}}),Xe,x.jsx("div",{role:"presentation",className:Oe(K.cell,K.cellEmpty)}),Pe,R!==0&&x.jsx(lM,{pinnedRight:g.right.length>0,borderTop:!M})]}))}),Ete=xa(Tte),Pte=()=>{const e=al(),t=We(),n=Te(e,or),r=Te(e,Kx),l=Te(e,Bp),a=Te(e,JL),s=t["aria-label"],u=t["aria-labelledby"];return{role:"grid","aria-label":!s&&!u&&t.label?t.label:s,"aria-labelledby":u,"aria-colcount":n.length,"aria-rowcount":l+1+a+r,"aria-multiselectable":Qx(t)}},Rte=()=>{const e=al(),t=Te(e,Bp);return m.useCallback((n,r)=>{const l={},a=r+t+2;return l["aria-rowindex"]=a,n&&e.current.isRowSelectable(n.id)&&(l["aria-selected"]=e.current.isRowSelected(n.id)),l},[e,t])};function Ate({privateApiRef:e,configuration:t,props:n,children:r}){const l=m.useRef(e.current.getPublicApi());return x.jsx(E$.Provider,{value:t,children:x.jsx(jL.Provider,{value:n,children:x.jsx(ez.Provider,{value:e,children:x.jsx(NL.Provider,{value:l,children:x.jsx(QQ,{children:x.jsx(wK,{children:r})})})})})})}const Ote=e=>{const t=m.useRef(null),n=m.useRef(null),r=m.useRef(null),l=m.useRef(null),a=m.useRef(null),s=m.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:n,virtualScrollerRef:r,virtualScrollbarVerticalRef:l,virtualScrollbarHorizontalRef:a,columnHeadersContainerRef:s})},Ite=e=>{const t=Po();e.current.state.isRtl===void 0&&(e.current.state.isRtl=t);const n=m.useRef(!0);m.useEffect(()=>{n.current?n.current=!1:e.current.setState(r=>N({},r,{isRtl:t}))},[e,t])},kte=nK()&&window.localStorage.getItem("DEBUG")!=null,Gf=()=>{},_te={debug:Gf,info:Gf,warn:Gf,error:Gf},xO=["debug","info","warn","error"];function MO(e,t,n=console){const r=xO.indexOf(t);if(r===-1)throw new Error(`MUI X: Log level ${t} not recognized.`);return xO.reduce((a,s,u)=>(u>=r?a[s]=(...d)=>{const[f,...h]=d;n[s](`MUI X: ${e} - ${f}`,...h)}:a[s]=Gf,a),{})}const Dte=(e,t)=>{const n=m.useCallback(r=>kte?MO(r,"debug",t.logger):t.logLevel?MO(r,t.logLevel.toString(),t.logger):_te,[t.logLevel,t.logger]);Dt(e,{getLogger:n},"private")},Lte=(e,t)=>{const n=m.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})};function yp(e){"@babel/helpers - typeof";return yp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yp(e)}function $te(e,t){if(yp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Cp(e){var t=$te(e,"string");return yp(t)=="symbol"?t:t+""}const zte=e=>{const t=m.useRef({}),n=m.useRef(!1),r=m.useCallback(g=>{n.current||!g||(n.current=!0,Object.values(g.appliers).forEach(b=>{b()}),n.current=!1)},[]),l=m.useCallback((g,b,y)=>{t.current[g]||(t.current[g]={processors:new Map,processorsAsArray:[],appliers:{},processorsUpdated:!1});const C=t.current[g];return C.processors.get(b)!==y&&(C.processors.set(b,y),C.processorsAsArray=Array.from(t.current[g].processors.values()).filter(w=>w!==null),C.processorsUpdated=!0),()=>{t.current[g].processors.set(b,null),t.current[g].processorsAsArray=Array.from(t.current[g].processors.values()).filter(w=>w!==null)}},[]),a=m.useCallback((g,b,y)=>(t.current[g]||(t.current[g]={processors:new Map,processorsAsArray:[],appliers:{},processorsUpdated:!1}),t.current[g].appliers[b]=y,()=>{const C=t.current[g].appliers,S=Ge(C,[b].map(Cp));t.current[g].appliers=S}),[]),s=m.useCallback(g=>{r(t.current[g])},[r]),u=m.useCallback(()=>{for(const g in t.current){if(!Object.prototype.hasOwnProperty.call(t.current,g))continue;const b=t.current[g];b.processorsUpdated&&(b.processorsUpdated=!1,r(b))}},[r]),d=m.useCallback((...g)=>{const[b,y,C]=g;if(!t.current[b])return y;const S=t.current[b].processorsAsArray;let w=y;for(let M=0;M<S.length;M+=1)w=S[M](w,C);return w},[]),f={registerPipeProcessor:l,registerPipeApplier:a,requestPipeProcessorsApplication:s,runAppliersForPendingProcessors:u},h={unstable_applyPipeProcessors:d};Dt(e,f,"private"),Dt(e,h,"public")},Jn=(e,t,n,r=!0)=>{const l=m.useRef(null),a=m.useRef(`mui-${Math.round(Math.random()*1e9)}`),s=m.useCallback(()=>{l.current=e.current.registerPipeProcessor(t,a.current,n)},[e,n,t]);Ec(()=>{r&&s()});const u=m.useRef(!0);m.useEffect(()=>(u.current?u.current=!1:r&&s(),()=>{l.current&&(l.current(),l.current=null)}),[s,r])},iM=(e,t,n)=>{const r=m.useRef(null),l=m.useRef(`mui-${Math.round(Math.random()*1e9)}`),a=m.useCallback(()=>{r.current=e.current.registerPipeApplier(t,l.current,n)},[e,n,t]);Ec(()=>{a()});const s=m.useRef(!0);m.useEffect(()=>(s.current?s.current=!1:a(),()=>{r.current&&(r.current(),r.current=null)}),[a])};let hs=function(e){return e.DataSource="dataSource",e.RowTree="rowTree",e}({});const Sp=(e,t,n,r)=>{const l=m.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);Ec(()=>{l()});const a=m.useRef(!0);m.useEffect(()=>{a.current?a.current=!1:l()},[l])},Sc="none",TO={dataSourceRowsUpdate:hs.DataSource,rowTreeCreation:hs.RowTree,filtering:hs.RowTree,sorting:hs.RowTree,visibleRowsLookupCreation:hs.RowTree},Fte=e=>{const t=m.useRef(new Map),n=m.useRef({}),r=m.useCallback((d,f,h)=>{const g=()=>{const C=n.current[f],S=Ge(C,[d].map(Cp));n.current[f]=S};n.current[f]||(n.current[f]={});const b=n.current[f],y=b[d];return b[d]=h,!y||y===h||d===e.current.getActiveStrategy(TO[f])&&e.current.publishEvent("activeStrategyProcessorChange",f),g},[e]),l=m.useCallback((d,f)=>{const h=e.current.getActiveStrategy(TO[d]);if(h==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const g=n.current[d];if(!g||!g[h])throw new Error(`No processor found for processor "${d}" on strategy "${h}"`);const b=g[h];return b(f)},[e]),a=m.useCallback(d=>Array.from(t.current.entries()).find(([,g])=>g.group!==d?!1:g.isAvailable())?.[0]??Sc,[]),s=m.useCallback((d,f,h)=>{t.current.set(f,{group:d,isAvailable:h}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Dt(e,{registerStrategyProcessor:r,applyStrategyProcessor:l,getActiveStrategy:a,setStrategyAvailability:s},"private")},Hte=e=>{const t=m.useRef({}),n=m.useCallback(u=>{t.current[u.stateId]=u},[]),r=m.useCallback((u,d)=>{let f;if(tK(u)?f=u(e.current.state):f=u,e.current.state===f)return!1;const h={current:{state:f}};let g=!1;const b=[];if(Object.keys(t.current).forEach(y=>{const C=t.current[y],S=C.stateSelector(e),w=C.stateSelector(h);w!==S&&(b.push({stateId:C.stateId,hasPropChanged:w!==C.propModel}),C.propModel!==void 0&&w!==C.propModel&&(g=!0))}),b.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${b[0].stateId}, therefore, you're not allowed to update ${b.map(y=>y.stateId).join(", ")} in the same transaction.`);if(g||(e.current.state=f,e.current.publishEvent("stateChange",f),e.current.store.update(f)),b.length===1){const{stateId:y,hasPropChanged:C}=b[0],S=t.current[y],w=S.stateSelector(h);S.propOnChange&&C&&S.propOnChange(w,{reason:d,api:e.current}),g||e.current.publishEvent(S.changeEvent,w,{reason:d})}return!g},[e]),l=m.useCallback((u,d,f)=>e.current.setState(h=>N({},h,{[u]:d(h[u])}),f),[e]),a={setState:r},s={updateControlState:l,registerControlState:n};Dt(e,a,"public"),Dt(e,s,"private")},Nte=(e,t)=>N({},e,{props:{listView:t.listView,getRowId:t.getRowId}}),jte=(e,t)=>{m.useEffect(()=>{e.current.setState(n=>N({},n,{props:{listView:t.listView,getRowId:t.getRowId}}))},[e,t.listView,t.getRowId])},Bte=(e,t)=>{Ote(e),jte(e,t),Ite(e),Dte(e,t),Hte(e),zte(e),Fte(e),Lte(e,t),e.current.register("private",{rootProps:t})},Gte=ot(Lo,tM,jp,or,(e,t,n,r)=>{if(!e)return!1;const l=n.rowIdToIndexMap.get(e.id),a=r.slice(t.firstColumnIndex,t.lastColumnIndex).findIndex(u=>u.field===e.field);return!(l!==void 0&&a!==-1&&l>=t.firstRowIndex&&l<=t.lastRowIndex)}),Vte=Zt(Gte,or,jp,Lo,(e,t,n,r)=>{if(!e)return null;const l=n.rowIdToIndexMap.get(r.id);if(l===void 0)return null;const a=t.findIndex(s=>s.field===r.field);return a===-1?null:N({},r,{rowIndex:l,columnIndex:a})}),gm={autoHeight:!1,autoPageSize:!1,autosizeOnMount:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,clipboardCopyCellDelimiter:"	",columnBufferPx:150,columnFilterDebounceMs:150,columnHeaderHeight:56,disableAutosize:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnReorder:!1,disableColumnResize:!1,disableColumnSelector:!1,disableColumnSorting:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleColumnsSorting:!1,disableMultipleRowSelection:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:Hi.Cell,filterDebounceMs:150,filterMode:"client",hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,ignoreValueFormatterDuringExport:!1,keepColumnPositionIfDraggedOutside:!1,keepNonExistentRowsSelected:!1,loading:!1,logger:console,logLevel:"error",pageSizeOptions:[25,50,100],pagination:!1,paginationMode:"client",resizeThrottleMs:60,rowBufferPx:150,rowHeight:52,rows:[],rowSelection:!0,rowSpacingType:"margin",rowSpanning:!1,showCellVerticalBorder:!1,showColumnVerticalBorder:!1,showToolbar:!1,sortingMode:"client",sortingOrder:["asc","desc",null],throttleRowsMs:0,virtualizeColumnsWithAutoRowHeight:!1};function Ute(e){return e}const qte=ot(or,Tc,(e,t)=>{const n=e.length;return n===0?0:sc(t[n-1]+e[n-1].computedWidth,1)});function Wte(e,t){const n=Po(),{listView:r}=t,l=Te(e,or),a=Te(e,zp),s=Ym(e),u=Te(e,Np),d=Q=>u.has(Q)&&e.current.isRowSelectable(Q),f=Mz(e),h=Te(e,cK),g=Te(e,fW),b=Te(e,ZL),y=Te(e,QL),{autoHeight:C}=t,S=r,w=Te(e,Fp),M=r$(t.rowHeight,gm.rowHeight),E=Math.floor(M*w),O=Math.floor(t.columnHeaderHeight*w),P=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*w),R=Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*w),A=Te(e,qte),z=Gp(e,t),k=s.left.reduce((Q,D)=>Q+D.computedWidth,0),L=s.right.reduce((Q,D)=>Q+D.computedWidth,0),H={rowHeight:E,headerHeight:O,groupHeaderHeight:P,headerFilterHeight:R,columnsTotalWidth:A,headersTotalHeight:z,leftPinnedWidth:k,rightPinnedWidth:L},$=Te(e,dd),I=Te(e,gd),j=Math.min(I.enabled?I.paginationModel.pageSize:$,$),{getRowHeight:q,getEstimatedRowHeight:F,getRowSpacing:_}=t,B=Te(e,Vte),J=eQ({scrollbarSize:t.scrollbarSize,dimensions:H,initialState:{scroll:t.initialState?.scroll,dimensions:e.current.state.dimensions,rowSpanning:e.current.state.rowSpanning,virtualization:e.current.state.virtualization},isRtl:n,rows:f.rows,range:f.range,rowIdToIndexMap:f.rowIdToIndexMap,rowCount:j,columns:l,pinnedRows:a,pinnedColumns:s,refs:{container:e.current.mainElementRef,scroller:e.current.virtualScrollerRef,scrollbarVertical:e.current.virtualScrollbarVerticalRef,scrollbarHorizontal:e.current.virtualScrollbarHorizontalRef},hasColSpan:h,contentHeight:g,minimalContentHeight:n$,autoHeight:C,getRowHeight:m.useMemo(()=>{if(q)return Q=>q(N({},Q,{densityFactor:w}))},[q,w]),getEstimatedRowHeight:m.useMemo(()=>F?Q=>F(N({},Q,{densityFactor:w})):void 0,[F,w]),getRowSpacing:m.useMemo(()=>_?(Q,D)=>_(N({},Q,D,{indexRelativeToCurrentPage:e.current.getRowIndexRelativeToVisibleRows(Q.id)})):void 0,[e,_]),applyRowHeight:wt((Q,D)=>e.current.unstable_applyPipeProcessors("rowHeight",Q,D)),virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight,focusedVirtualCell:wt(()=>B),rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx,resizeThrottleMs:t.resizeThrottleMs,onResize:wt(Q=>e.current.publishEvent("resize",Q)),onWheel:wt(Q=>{e.current.publishEvent("virtualScrollerWheel",{},Q)}),onTouchMove:wt(Q=>{e.current.publishEvent("virtualScrollerTouchMove",{},Q)}),onRenderContextChange:wt(Q=>{e.current.publishEvent("renderedRowsIntervalChange",Q)}),onScrollChange:(Q,D)=>{e.current.publishEvent("scrollPositionChange",{top:Q.top,left:Q.left,renderContext:D})},scrollReset:S,getColspan:(Q,D)=>{if(typeof D.colSpan=="function"){const G=e.current.getRow(Q),W=e.current.getRowValue(G,D);return D.colSpan(W,G,D,e)??0}return D.colSpan??0},renderRow:Q=>x.jsx(t.slots.row,N({row:Q.model,rowId:Q.id,index:Q.rowIndex,selected:d(Q.id),offsetLeft:Q.offsetLeft,columnsTotalWidth:A,rowHeight:Q.baseRowHeight,pinnedColumns:s,visibleColumns:Q.columns,firstColumnIndex:Q.firstColumnIndex,lastColumnIndex:Q.lastColumnIndex,focusedColumnIndex:Q.focusedColumnIndex,isFirstVisible:Q.isFirstVisible,isLastVisible:Q.isLastVisible,isNotVisible:Q.isVirtualFocusRow,showBottomBorder:Q.showBottomBorder,scrollbarWidth:b,gridHasFiller:y},t.slotProps?.row),Q.id),renderInfiniteLoadingTrigger:Q=>e.current.getInfiniteLoadingTriggerElement?.({lastRowId:Q})});Ec(()=>{e.current.store.state.dimensions=J.store.state.dimensions,e.current.store.state.rowsMeta=J.store.state.rowsMeta,e.current.store.state.virtualization=J.store.state.virtualization}),Um(J.store,Ute,(Q,D)=>{D.dimensions!==e.current.state.dimensions&&e.current.setState(G=>N({},G,{dimensions:D.dimensions})),D.rowsMeta!==e.current.state.rowsMeta&&e.current.setState(G=>N({},G,{rowsMeta:D.rowsMeta})),D.virtualization!==e.current.state.virtualization&&e.current.setState(G=>N({},G,{virtualization:D.virtualization}))}),e.current.register("private",{virtualizer:J})}const Lr=(e,t,n,r)=>{const l=m.useRef(r),a=m.useRef(!1);r!==l.current&&(a.current=!1,l.current=r),a.current||(t.current.state=e(t.current.state,n,t),a.current=!0)};function L1(e,t){if(e==null)return"";const n=typeof e=="string"?e:`${e}`;if(t.shouldAppendQuotes||t.escapeFormulas){const r=n.replace(/"/g,'""');return t.escapeFormulas&&["=","+","-","@","	","\r"].includes(r[0])?`"'${r}"`:[t.delimiter,`
`,"\r",'"'].some(l=>n.includes(l))?`"${r}"`:r}return n}const Tz=(e,t)=>{const{csvOptions:n,ignoreValueFormatter:r}=t;let l;if(r){const a=e.colDef.type;a==="number"?l=String(e.value):a==="date"||a==="dateTime"?l=e.value?.toISOString():typeof e.value?.toString=="function"?l=e.value.toString():l=e.value}else l=e.formattedValue;return L1(l,n)};class $1{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.csvOptions):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const Kte=({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:l})=>{const a=new $1({csvOptions:r});return t.forEach(s=>{const u=n(e,s.field);a.addValue(Tz(u,{ignoreValueFormatter:l,csvOptions:r}))}),a.getRowString()};function Yte(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:l,apiRef:a}=e,s=n.reduce((g,b)=>`${g}${Kte({id:b,columns:t,getCellParams:a.current.getCellParams,ignoreValueFormatter:l,csvOptions:r})}\r
`,"").trim();if(!r.includeHeaders)return s;const u=t.filter(g=>g.field!==md.field),d=[];if(r.includeColumnGroupsHeaders){const g=a.current.getAllGroupDetails();let b=0;const y=u.reduce((C,S)=>{const w=a.current.getColumnGroupPath(S.field);return C[S.field]=w,b=Math.max(b,w.length),C},{});for(let C=0;C<b;C+=1){const S=new $1({csvOptions:r,sanitizeCellValue:L1});d.push(S),u.forEach(w=>{const M=(y[w.field]||[])[C],E=g[M];S.addValue(E?E.headerName||E.groupId:"")})}}const f=new $1({csvOptions:r,sanitizeCellValue:L1});return u.forEach(g=>{f.addValue(g.headerName||g.field)}),d.push(f),`${`${d.map(g=>g.getRowString()).join(`\r
`)}\r
`}${s}`.trim()}function EO(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function Xte(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{EO(e)}):EO(e)}function Qte(e){return!!(window.getSelection()?.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const Zte=(e,t)=>{const n=t.ignoreValueFormatterDuringExport,r=(typeof n=="object"?n?.clipboardExport:n)||!1,l=t.clipboardCopyCellDelimiter,a=m.useCallback(s=>{if(!yK(s)||Qte(s.target))return;let u="";if(tb(e)>0)u=e.current.getDataAsCsv({includeHeaders:!1,delimiter:l,shouldAppendQuotes:!1,escapeFormulas:!1});else{const f=Lo(e);if(f){const h=e.current.getCellParams(f.id,f.field);u=Tz(h,{csvOptions:{delimiter:l,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}u=e.current.unstable_applyPipeProcessors("clipboardCopy",u),u&&(Xte(u),e.current.publishEvent("clipboardCopy",u))},[e,r,l]);tz(e,()=>e.current.rootElementRef.current,"keydown",a),pn(e,"clipboardCopy",t.onClipboardCopy)},Jte=e=>N({},e,{columnMenu:{open:!1}}),ene=e=>{const t=jr(e,"useGridColumnMenu"),n=m.useCallback(s=>{const u=Hg(e),d={open:!0,field:s};(d.open!==u.open||d.field!==u.field)&&(e.current.setState(h=>h.columnMenu.open&&h.columnMenu.field===s?h:(t.debug("Opening Column Menu"),N({},h,{columnMenu:{open:!0,field:s}}))),e.current.hidePreferences())},[e,t]),r=m.useCallback(()=>{const s=Hg(e);if(s.field){const f=Ta(e),h=ai(e),g=zi(e);let b=s.field;if(f[b]||(b=g[0]),h[b]===!1){const y=g.filter(S=>S===b?!0:h[S]!==!1),C=y.indexOf(b);b=y[C+1]||y[C-1]}e.current.setColumnHeaderFocus(b)}const u={open:!1,field:void 0};(u.open!==s.open||u.field!==s.field)&&e.current.setState(f=>(t.debug("Hiding Column Menu"),N({},f,{columnMenu:u})))},[e,t]),l=m.useCallback(s=>{t.debug("Toggle Column Menu");const u=Hg(e);!u.open||u.field!==s?n(s):r()},[e,t,n,r]);Dt(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:l},"public"),rt(e,"columnResizeStart",r),rt(e,"virtualScrollerWheel",e.current.hideColumnMenu),rt(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},tne=(e,t,n)=>{n.current.caches.columns={lastColumnsProp:t.columns};const r=Pu({apiRef:n,columnsToUpsert:t.columns,initialState:t.initialState?.columns,columnVisibilityModel:t.columnVisibilityModel??t.initialState?.columns?.columnVisibilityModel??{},keepOnlyColumnsToUpsert:!0});return N({},e,{columns:r,pinnedColumns:e.pinnedColumns??im})};function nne(e,t){const n=jr(e,"useGridColumns");e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:ai,changeEvent:"columnVisibilityModelChange"});const r=m.useCallback(k=>{n.debug("Updating columns state."),e.current.setState(rne(k)),e.current.publishEvent("columnsChange",k.orderedFields)},[n,e]),l=m.useCallback(k=>Ta(e)[k],[e]),a=m.useCallback(()=>Dl(e),[e]),s=m.useCallback(()=>or(e),[e]),u=m.useCallback((k,L=!0)=>(L?or(e):Dl(e)).findIndex($=>$.field===k),[e]),d=m.useCallback(k=>{const L=u(k);return Tc(e)[L]},[e,u]),f=m.useCallback(k=>{ai(e)!==k&&(e.current.setState(H=>N({},H,{columns:Pu({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:k,keepOnlyColumnsToUpsert:!1})})),e.current.updateRenderContext?.())},[e]),h=m.useCallback(k=>{if(yc(e)){e.current.updateNonPivotColumns(k);return}const L=Pu({apiRef:e,columnsToUpsert:k,initialState:void 0,keepOnlyColumnsToUpsert:!1,updateInitialVisibilityModel:!0});r(L)},[e,r]),g=m.useCallback((k,L)=>{const H=ai(e),$=H[k]??!0;if(L!==$){const I=N({},H,{[k]:L});e.current.setColumnVisibilityModel(I)}},[e]),b=m.useCallback(k=>zi(e).findIndex(H=>H===k),[e]),y=m.useCallback((k,L)=>{const H=zi(e),$=b(k);if($===L)return;n.debug(`Moving column ${k} to index ${L}`);const I=[...H],j=I.splice($,1)[0];I.splice(L,0,j),r(N({},ui(e),{orderedFields:I}));const q={column:e.current.getColumn(k),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(k),oldIndex:$};e.current.publishEvent("columnIndexChange",q)},[e,n,r,b]),C=m.useCallback((k,L)=>{n.debug(`Updating column ${k} width to ${L}`);const H=ui(e),$=H.lookup[k],I=N({},$,{width:L,hasBeenResized:!0});r(k1(N({},H,{lookup:N({},H.lookup,{[k]:I})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(k),colDef:I,width:L})},[e,n,r]),S={getColumn:l,getAllColumns:a,getColumnIndex:u,getColumnPosition:d,getVisibleColumns:s,getColumnIndexRelativeToVisibleColumns:b,updateColumns:h,setColumnVisibilityModel:f,setColumnVisibility:g,setColumnWidth:C},w={setColumnIndex:y};Dt(e,S,"public"),Dt(e,w,t.signature===ci.DataGrid?"private":"public");const M=m.useCallback((k,L)=>{const H={},$=ai(e);(!L.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys(t.initialState?.columns?.columnVisibilityModel??{}).length>0||Object.keys($).length>0)&&(H.columnVisibilityModel=$),H.orderedFields=zi(e);const j=Dl(e),q={};return j.forEach(F=>{if(F.hasBeenResized){const _={};Q$.forEach(B=>{let J=F[B];J===1/0&&(J=-1),_[B]=J}),q[F.field]=_}}),Object.keys(q).length>0&&(H.dimensions=q),N({},k,{columns:H})},[e,t.columnVisibilityModel,t.initialState?.columns]),E=m.useCallback((k,L)=>{const H=L.stateToRestore.columns,$=H?.columnVisibilityModel;if(H==null)return k;const I=Pu({apiRef:e,columnsToUpsert:[],initialState:H,columnVisibilityModel:$,keepOnlyColumnsToUpsert:!1});return H!=null&&e.current.setState(j=>N({},j,{columns:N({},j.columns,{lookup:I.lookup,orderedFields:I.orderedFields,initialColumnVisibilityModel:I.initialColumnVisibilityModel})})),$!=null&&e.current.setState(j=>N({},j,{columns:N({},j.columns,{columnVisibilityModel:$})})),H!=null&&e.current.publishEvent("columnsChange",I.orderedFields),k},[e]),O=m.useCallback((k,L)=>{if(L===To.columns){const H=t.slots.columnsPanel;return x.jsx(H,N({},t.slotProps?.columnsPanel))}return k},[t.slots.columnsPanel,t.slotProps?.columnsPanel]),P=m.useCallback(k=>{const L=yc(e);return t.disableColumnSelector||L?k:[...k,"columnMenuColumnsItem"]},[t.disableColumnSelector,e]);Jn(e,"columnMenu",P),Jn(e,"exportState",M),Jn(e,"restoreState",E),Jn(e,"preferencePanel",O);const R=m.useRef(null);rt(e,"viewportInnerSizeChange",k=>{if(R.current!==k.width){if(R.current=k.width,!or(e).some(H=>H.flex&&H.flex>0))return;r(k1(ui(e),e.current.getRootDimensions()))}});const z=m.useCallback(()=>{n.info("Columns pipe processing have changed, regenerating the columns");const k=Pu({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});r(k)},[e,n,r]);iM(e,"hydrateColumns",z),m.useEffect(()=>{if(e.current.caches.columns.lastColumnsProp===t.columns)return;e.current.caches.columns.lastColumnsProp=t.columns,n.info(`GridColumns have changed, new length ${t.columns.length}`);const k=Pu({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0,updateInitialVisibilityModel:!0,columnVisibilityModel:t.columnVisibilityModel});r(k)},[n,e,r,t.columns,t.columnVisibilityModel]),m.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,n,t.columnVisibilityModel])}function rne(e){return t=>N({},t,{columns:e})}const one=(e,t)=>N({},e,{density:t.initialState?.density??t.density??"standard"}),lne=(e,t)=>{const n=jr(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:Ou,changeEvent:"densityChange"});const l={setDensity:wt(u=>{Ou(e)!==u&&(n.debug(`Set grid density to ${u}`),e.current.setState(f=>N({},f,{density:u})))})};Dt(e,l,"public");const a=m.useCallback((u,d)=>{const f=Ou(e);return!d.exportOnlyDirtyModels||t.density!=null||t.initialState?.density!=null?N({},u,{density:f}):u},[e,t.density,t.initialState?.density]),s=m.useCallback((u,d)=>{const f=d.stateToRestore?.density?d.stateToRestore.density:Ou(e);return e.current.setState(h=>N({},h,{density:f})),u},[e]);Jn(e,"exportState",a),Jn(e,"restoreState",s),m.useEffect(()=>{t.density&&e.current.setDensity(t.density)},[e,t.density])};function ine(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const l=URL.createObjectURL(e),a=document.createElement("a");a.href=l,a.download=r,a.click(),setTimeout(()=>{URL.revokeObjectURL(l)});return}throw new Error("MUI X: exportAs not supported.")}const Ez=({apiRef:e,options:t})=>{const n=Dl(e);return t.fields?t.fields.reduce((l,a)=>{const s=n.find(u=>u.field===a);return s&&l.push(s),l},[]):(t.allColumns?n:or(e)).filter(l=>l.disableExport!==!0)},Pz=({apiRef:e})=>{const t=_$(e),n=eo(e),r=tb(e),l=t.filter(d=>n[d].type!=="footer"),a=zp(e),s=a?.top?.map(d=>d.id)||[],u=a?.bottom?.map(d=>d.id)||[];if(l.unshift(...s),l.push(...u),r>0){const d=$$(e);return l.filter(f=>d.has(f))}return l},ane=(e,t)=>{const n=jr(e,"useGridCsvExport"),r=t.ignoreValueFormatterDuringExport,l=(typeof r=="object"?r?.csvExport:r)||!1,a=m.useCallback((f={})=>{n.debug("Get data as CSV");const h=Ez({apiRef:e,options:f}),b=(f.getRowsToExport??Pz)({apiRef:e});return Yte({columns:h,rowIds:b,csvOptions:{delimiter:f.delimiter||",",shouldAppendQuotes:f.shouldAppendQuotes??!0,includeHeaders:f.includeHeaders??!0,includeColumnGroupsHeaders:f.includeColumnGroupsHeaders??!0,escapeFormulas:f.escapeFormulas??!0},ignoreValueFormatter:l,apiRef:e})},[n,e,l]),s=m.useCallback(f=>{n.debug("Export data as CSV");const h=a(f),g=new Blob([f?.utf8WithBom?new Uint8Array([239,187,191]):"",h],{type:"text/csv"});ine(g,"csv",f?.fileName)},[n,a]);Dt(e,{getDataAsCsv:a,exportDataAsCsv:s},"public");const d=m.useCallback((f,h)=>h.csvOptions?.disableToolbarButton?f:[...f,{component:x.jsx(Cee,{options:h.csvOptions}),componentName:"csvExport"}],[]);Jn(e,"exportMenu",d)};function sne(e,t){const n=[],r=t.querySelectorAll("style, link[rel='stylesheet']");for(let l=0;l<r.length;l+=1){const a=r[l];if(a.tagName==="STYLE"){const s=e.createElement(a.tagName),u=a.sheet;if(u){let d="";for(let f=0;f<u.cssRules.length;f+=1)typeof u.cssRules[f].cssText=="string"&&(d+=`${u.cssRules[f].cssText}\r
`);s.appendChild(e.createTextNode(d)),e.head.appendChild(s)}}else if(a.getAttribute("href")){const s=e.createElement(a.tagName);for(let u=0;u<a.attributes.length;u+=1){const d=a.attributes[u];d&&s.setAttribute(d.nodeName,d.nodeValue||"")}n.push(new Promise(u=>{s.addEventListener("load",()=>u())})),e.head.appendChild(s)}}return n}const Bg=(e,t,n)=>{let r=e.paginationModel;const l=e.rowCount,a=n?.pageSize??r.pageSize,s=n?.page??r.page,u=H$(l,a,s);n&&(n?.page!==r.page||n?.pageSize!==r.pageSize)&&(r=n);const d=a===-1?0:aY(r.page,u);return d!==r.page&&(r=N({},r,{page:d})),j$(r.pageSize,t),r},cne=(e,t)=>{const n=jr(e,"useGridPaginationModel"),r=Te(e,Fp),l=m.useRef(zr(e)),a=Math.floor(t.rowHeight*r);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:Jr,changeEvent:"paginationModelChange"});const s=m.useCallback(E=>{const O=Jr(e);E!==O.page&&(n.debug(`Setting page to ${E}`),e.current.setPaginationModel({page:E,pageSize:O.pageSize}))},[e,n]),u=m.useCallback(E=>{const O=Jr(e);E!==O.pageSize&&(n.debug(`Setting page size to ${E}`),e.current.setPaginationModel({pageSize:E,page:O.page}))},[e,n]),d=m.useCallback(E=>{const O=Jr(e);E!==O&&(n.debug("Setting 'paginationModel' to",E),e.current.setState(P=>N({},P,{pagination:N({},P.pagination,{paginationModel:Bg(P.pagination,t.signature,E)})}),"setPaginationModel"))},[e,n,t.signature]);Dt(e,{setPage:s,setPageSize:u,setPaginationModel:d},"public");const h=m.useCallback((E,O)=>{const P=Jr(e);return!O.exportOnlyDirtyModels||t.paginationModel!=null||t.initialState?.pagination?.paginationModel!=null||P.page!==0&&P.pageSize!==iY(t.autoPageSize)?N({},E,{pagination:N({},E.pagination,{paginationModel:P})}):E},[e,t.paginationModel,t.initialState?.pagination?.paginationModel,t.autoPageSize]),g=m.useCallback((E,O)=>{const P=O.stateToRestore.pagination?.paginationModel?N({},N$(t.autoPageSize),O.stateToRestore.pagination?.paginationModel):Jr(e);return e.current.setState(R=>N({},R,{pagination:N({},R.pagination,{paginationModel:Bg(R.pagination,t.signature,P)})}),"stateRestorePreProcessing"),E},[e,t.autoPageSize,t.signature]);Jn(e,"exportState",h),Jn(e,"restoreState",g);const b=()=>{const E=Jr(e);e.current.virtualScrollerRef?.current&&e.current.scrollToIndexes({rowIndex:E.page*E.pageSize})},y=m.useCallback(()=>{if(!t.autoPageSize)return;const E=e.current.getRootDimensions(),O=Math.max(1,Math.floor(E.viewportInnerSize.height/a));e.current.setPageSize(O)},[e,t.autoPageSize,a]),C=m.useCallback(E=>{if(E==null)return;const O=Jr(e);if(O.page===0)return;const P=V$(e);O.page>P-1&&e.current.setPage(Math.max(0,P-1))},[e]),S=m.useCallback(()=>{Jr(e).page!==0&&e.current.setPage(0),e.current.getScrollPosition().top!==0&&e.current.scroll({top:0})},[e]),w=m.useCallback(E=>{const O=N({},E,{items:Xx(e)});Ll(O,l.current)||(l.current=O,S())},[e,S]);rt(e,"viewportInnerSizeChange",y),rt(e,"paginationModelChange",b),rt(e,"rowCountChange",C),rt(e,"sortModelChange",S),rt(e,"filterModelChange",w);const M=m.useRef(!0);m.useEffect(()=>{if(M.current){M.current=!1;return}t.pagination&&e.current.setState(E=>N({},E,{pagination:N({},E.pagination,{paginationModel:Bg(E.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.signature,t.pagination]),m.useEffect(()=>{e.current.setState(E=>{const O=t.pagination===!0;return E.pagination.paginationMode===t.paginationMode||E.pagination.enabled===O?E:N({},E,{pagination:N({},E.pagination,{paginationMode:t.paginationMode,enabled:t.pagination===!0})})})},[e,t.paginationMode,t.pagination]),m.useEffect(y,[y])};function une(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function dne(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const fne=(e,t)=>{const n=e.current.rootElementRef.current!==null,r=jr(e,"useGridPrintExport"),l=m.useRef(null),a=m.useRef(null),s=m.useRef({}),u=m.useRef([]),d=m.useRef(null);m.useEffect(()=>{l.current=sr(e.current.rootElementRef.current)},[e,n]);const f=m.useCallback((w,M,E)=>new Promise(O=>{const P=Ez({apiRef:e,options:{fields:w,allColumns:M}}).map(z=>z.field),R=Dl(e),A={};R.forEach(z=>{A[z.field]=P.includes(z.field)}),E&&(A[md.field]=!0),e.current.setColumnVisibilityModel(A),O()}),[e]),h=m.useCallback(w=>{const E=w({apiRef:e}).reduce((O,P)=>{const R=e.current.getRow(P);return R[Qu]||O.push(R),O},[]);e.current.setRows(E)},[e]),g=m.useCallback((w,M)=>{const E=N({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},M),O=w.contentDocument;if(!O)return;const P=Wm(e),R=e.current.rootElementRef.current,A=R.cloneNode(!0),z=A.querySelector(`.${K.main}`);z.style.overflow="visible",A.style.contain="size";let k=R.querySelector(`.${K.toolbarContainer}`)?.offsetHeight||0,L=R.querySelector(`.${K.footerContainer}`)?.offsetHeight||0;const H=A.querySelector(`.${K.footerContainer}`);E.hideToolbar&&(A.querySelector(`.${K.toolbarContainer}`)?.remove(),k=0),E.hideFooter&&H&&(H.remove(),L=0);const $=P.currentPageTotalHeight+Gp(e,t)+k+L;A.style.height=`${$}px`,A.style.boxSizing="content-box",!E.hideFooter&&H&&(H.style.position="absolute",H.style.width="100%",H.style.top=`${$-L}px`);const I=document.createElement("div");I.appendChild(A),O.body.style.marginTop="0px",O.body.innerHTML=I.innerHTML;const j=typeof E.pageStyle=="function"?E.pageStyle():E.pageStyle;if(typeof j=="string"){const F=O.createElement("style");F.appendChild(O.createTextNode(j)),O.head.appendChild(F)}E.bodyClassName&&O.body.classList.add(...E.bodyClassName.split(" "));let q=[];if(E.copyStyles){const F=R.getRootNode(),_=F.constructor.name==="ShadowRoot"?F:l.current;q=sne(O,_)}Promise.all(q).then(()=>{w.contentWindow.print()})},[e,l,t]),b=m.useCallback(w=>{l.current.body.removeChild(w),e.current.restoreState(a.current||{}),a.current?.columns?.columnVisibilityModel||e.current.setColumnVisibilityModel(s.current),e.current.setState(M=>N({},M,{virtualization:d.current})),e.current.setRows(u.current),a.current=null,s.current={},u.current=[]},[e]),C={exportDataAsPrint:m.useCallback(async w=>{if(r.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(a.current=e.current.exportState(),s.current=ai(e),u.current=e.current.getSortedRows().filter(E=>!E[Qu]),t.pagination){const O={page:0,pageSize:Kx(e)};e.current.setState(P=>N({},P,{pagination:N({},P.pagination,{paginationModel:Bg(P.pagination,"DataGridPro",O)})}))}d.current=e.current.state.virtualization,e.current.setState(E=>N({},E,{virtualization:N({},E.virtualization,{enabled:!1,enabledForColumns:!1})})),await f(w?.fields,w?.allColumns,w?.includeCheckboxes),h(w?.getRowsToExport??Pz),await une();const M=dne(w?.fileName);M.onload=()=>{g(M,w),M.contentWindow.matchMedia("print").addEventListener("change",O=>{O.matches===!1&&b(M)})},l.current.body.appendChild(M)},[t,r,e,g,b,f,h])};Dt(e,C,"public");const S=m.useCallback((w,M)=>M.printOptions?.disableToolbarButton?w:[...w,{component:x.jsx(See,{options:M.printOptions}),componentName:"printExport"}],[]);Jn(e,"exportMenu",S)},pne=(e,t,n)=>{const r=t.filterModel??t.initialState?.filter?.filterModel??bp();return N({},e,{filter:N({filterModel:Vx(r,t.disableMultipleColumnsFiltering,n)},p$),visibleRowsLookup:{}})},hne=e=>e.filteredRowsLookup;function PO(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function gne(){return qL(Object.values)}const mne=(e,t)=>{const n=jr(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:zr,changeEvent:"filterModelChange"});const r=m.useCallback(()=>{e.current.setState(k=>{const L=zr(e),H=e.current.getFilterState(L),$=N({},k,{filter:N({},k.filter,H)}),I=PO(e,$);return N({},$,{visibleRowsLookup:I})}),e.current.publishEvent("filteredRowsSet")},[e]),l=m.useCallback((k,L)=>L==null||L.filterable===!1||t.disableColumnFilter?k:[...k,"columnMenuFilterItem"],[t.disableColumnFilter]),a=m.useCallback(k=>{const L=zr(e),H=[...L.items],$=H.findIndex(I=>I.id===k.id);$===-1?H.push(k):H[$]=k,e.current.setFilterModel(N({},L,{items:H}),"upsertFilterItem")},[e]),s=m.useCallback(k=>{const L=zr(e),H=[...L.items];k.forEach($=>{const I=H.findIndex(j=>j.id===$.id);I===-1?H.push($):H[I]=$}),e.current.setFilterModel(N({},L,{items:H}),"upsertFilterItems")},[e]),u=m.useCallback(k=>{const L=zr(e),H=L.items.filter($=>$.id!==k.id);H.length!==L.items.length&&e.current.setFilterModel(N({},L,{items:H}),"deleteFilterItem")},[e]),d=m.useCallback((k,L,H)=>{if(n.debug("Displaying filter panel"),k){const $=zr(e),I=$.items.filter(_=>{if(_.value!==void 0)return!(Array.isArray(_.value)&&_.value.length===0);const J=e.current.getColumn(_.field).filterOperators?.find(D=>D.value===_.operator);return!(typeof J?.requiresFilterValue>"u"?!0:J?.requiresFilterValue)});let j;const q=I.find(_=>_.field===k),F=e.current.getColumn(k);q?j=I:t.disableMultipleColumnsFiltering?j=[I1({field:k,operator:F.filterOperators[0].value},e)]:j=[...I,I1({field:k,operator:F.filterOperators[0].value},e)],e.current.setFilterModel(N({},$,{items:j}))}e.current.showPreferences(To.filters,L,H)},[e,n,t.disableMultipleColumnsFiltering]),f=m.useCallback(()=>{n.debug("Hiding filter panel"),e.current.hidePreferences()},[e,n]),h=m.useCallback(k=>{const L=zr(e);L.logicOperator!==k&&e.current.setFilterModel(N({},L,{logicOperator:k}),"changeLogicOperator")},[e]),g=m.useCallback(k=>{const L=zr(e);Ll(L.quickFilterValues,k)||e.current.setFilterModel(N({},L,{quickFilterValues:[...k]}))},[e]),b=m.useCallback((k,L)=>{zr(e)!==k&&(n.debug("Setting filter model"),e.current.updateControlState("filter",KA(k,t.disableMultipleColumnsFiltering,e),L),e.current.unstable_applyFilters())},[e,n,t.disableMultipleColumnsFiltering]),y=m.useCallback(k=>{const L=Vx(k,t.disableMultipleColumnsFiltering,e),H=t.filterMode==="client"?pK(L,e,t.disableEval):null,$=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:H,filterModel:L??bp()});return N({},$,{filterModel:L})},[t.disableMultipleColumnsFiltering,t.filterMode,t.disableEval,e]),C={setFilterLogicOperator:h,unstable_applyFilters:r,deleteFilterItem:u,upsertFilterItem:a,upsertFilterItems:s,setFilterModel:b,showFilterPanel:d,hideFilterPanel:f,setQuickFilterValues:g,ignoreDiacritics:t.ignoreDiacritics,getFilterState:y};Dt(e,C,"public");const S=m.useCallback((k,L)=>{const H=zr(e);return H.items.forEach(I=>{delete I.fromInput}),!L.exportOnlyDirtyModels||t.filterModel!=null||t.initialState?.filter?.filterModel!=null||!Ll(H,bp())?N({},k,{filter:{filterModel:H}}):k},[e,t.filterModel,t.initialState?.filter?.filterModel]),w=m.useCallback((k,L)=>{const H=L.stateToRestore.filter?.filterModel;return H==null?k:(e.current.updateControlState("filter",KA(H,t.disableMultipleColumnsFiltering,e),"restoreState"),N({},k,{callbacks:[...k.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),M=m.useCallback((k,L)=>{if(L===To.filters){const H=t.slots.filterPanel;return x.jsx(H,N({},t.slotProps?.filterPanel))}return k},[t.slots.filterPanel,t.slotProps?.filterPanel]),{getRowId:E}=t,O=Nl(gne),P=m.useCallback(k=>{if(t.filterMode!=="client"||!k.isRowMatchingFilters||!k.filterModel.items.length&&!k.filterModel.quickFilterValues?.length)return p$;const L=kl(e),H={},{isRowMatchingFilters:$}=k,I={},j={passingFilterItems:null,passingQuickFilterValues:null},q=O.current(e.current.state.rows.dataRowIdToModelLookup);for(let B=0;B<q.length;B+=1){const J=q[B],Q=E?E(J):J.id;$(J,void 0,j);const D=gK([j.passingFilterItems],[j.passingQuickFilterValues],k.filterModel,e,I);D||(H[Q]=D)}const F="auto-generated-group-footer-root";return L[F]&&(H[F]=!0),{filteredRowsLookup:H,filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode,E,O]);Jn(e,"columnMenu",l),Jn(e,"exportState",S),Jn(e,"restoreState",w),Jn(e,"preferencePanel",M),Sp(e,Sc,"filtering",P),Sp(e,Sc,"visibleRowsLookupCreation",hne);const R=m.useCallback(()=>{n.debug("onColUpdated - GridColumns changed, applying filters");const k=zr(e),L=Ta(e),H=k.items.filter($=>$.field&&L[$.field]);H.length<k.items.length&&e.current.setFilterModel(N({},k,{items:H}))},[e,n]),A=m.useCallback(k=>{k==="filtering"&&e.current.unstable_applyFilters()},[e]),z=m.useCallback(()=>{e.current.setState(k=>N({},k,{visibleRowsLookup:PO(e,k)}))},[e]);rt(e,"rowsSet",r),rt(e,"columnsChange",R),rt(e,"activeStrategyProcessorChange",A),rt(e,"rowExpansionChange",z),rt(e,"columnVisibilityModelChange",()=>{const k=zr(e);k.quickFilterValues?.length&&w$(k)&&r()}),Ec(()=>{r()}),gn(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,n,t.filterModel])},bne=e=>N({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),vne=(e,t)=>{const n=jr(e,"useGridFocus"),r=m.useRef(null),l=e.current.rootElementRef.current!==null,a=m.useCallback((k,L)=>{k&&e.current.getRow(k.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(k.id,k.field),L)},[e]),s=m.useCallback((k,L)=>{const H=Lo(e);H?.id===k&&H?.field===L||(e.current.setState($=>(n.debug(`Focusing on cell with id=${k} and field=${L}`),N({},$,{tabIndex:{cell:{id:k,field:L},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:k,field:L},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.getRow(k)&&(H&&a(H,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(k,L))))},[e,n,a]),u=m.useCallback((k,L={})=>{const H=Lo(e);a(H,L),e.current.setState($=>(n.debug(`Focusing on column header with colIndex=${k}`),N({},$,{tabIndex:{columnHeader:{field:k},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:k},columnHeaderFilter:null,cell:null,columnGroupHeader:null}})))},[e,n,a]),d=m.useCallback((k,L={})=>{const H=Lo(e);a(H,L),e.current.setState($=>(n.debug(`Focusing on column header filter with colIndex=${k}`),N({},$,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:k},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:k},cell:null,columnGroupHeader:null}})))},[e,n,a]),f=m.useCallback((k,L,H={})=>{const $=Lo(e);$&&e.current.publishEvent("cellFocusOut",e.current.getCellParams($.id,$.field),H),e.current.setState(I=>N({},I,{tabIndex:{columnGroupHeader:{field:k,depth:L},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:k,depth:L},columnHeader:null,columnHeaderFilter:null,cell:null}}))},[e]),h=m.useCallback(()=>sm(e),[e]),g=m.useCallback((k,L,H)=>{let $=e.current.getColumnIndex(L);const I=or(e),j=zu(e,{pagination:t.pagination,paginationMode:t.paginationMode}),q=zp(e),F=[].concat(q.top||[],j.rows,q.bottom||[]);let _=F.findIndex(D=>D.id===k);H==="right"?$+=1:H==="left"?$-=1:_+=1,$>=I.length?(_+=1,_<F.length&&($=0)):$<0&&(_-=1,_>=0&&($=I.length-1)),_=pc(_,0,F.length-1);const B=F[_];if(!B)return;const J=e.current.unstable_getCellColSpanInfo(B.id,$);J&&J.spannedByColSpan&&(H==="left"||H==="below"?$=J.leftVisibleCellIndex:H==="right"&&($=J.rightVisibleCellIndex)),$=pc($,0,I.length-1);const Q=I[$];e.current.setCellFocus(B.id,Q.field)},[e,t.pagination,t.paginationMode]),b=m.useCallback(({id:k,field:L})=>{e.current.setCellFocus(k,L)},[e]),y=m.useCallback((k,L)=>{L.key==="Enter"||L.key==="Tab"||L.key==="Shift"||am(L.key)||e.current.setCellFocus(k.id,k.field)},[e]),C=m.useCallback(({field:k},L)=>{L.target===L.currentTarget&&e.current.setColumnHeaderFocus(k,L)},[e]),S=m.useCallback(({fields:k,depth:L},H)=>{if(H.target!==H.currentTarget)return;const $=sm(e);$!==null&&$.depth===L&&k.includes($.field)||e.current.setColumnGroupHeaderFocus(k[0],L,H)},[e]),w=m.useCallback((k,L)=>{L.relatedTarget?.getAttribute("class")?.includes(K.columnHeader)||(n.debug("Clearing focus"),e.current.setState(H=>N({},H,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),M=m.useCallback(k=>{r.current=k},[]),E=m.useCallback(k=>{const L=r.current;r.current=null;const H=Lo(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:k,cell:L}))return;if(!H){L&&e.current.setCellFocus(L.id,L.field);return}L?.id===H.id&&L?.field===H.field||e.current.getCellElement(H.id,H.field)?.contains(k.target)||(L?e.current.setCellFocus(L.id,L.field):(e.current.setState(j=>N({},j,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),a(H,k)))},[e,a]),O=m.useCallback(k=>{if(k.cellMode==="view")return;const L=Lo(e);(L?.id!==k.id||L?.field!==k.field)&&e.current.setCellFocus(k.id,k.field)},[e]),P=m.useCallback(()=>{const k=Lo(e);if(k&&!e.current.getRow(k.id)){const L=k.id;let H=null;if(typeof L<"u"){const $=e.current.getRowElement(L),I=$?.dataset.rowindex?Number($?.dataset.rowindex):0,j=zu(e,{pagination:t.pagination,paginationMode:t.paginationMode});H=j.rows[pc(I,0,j.rows.length-1)]?.id??null}e.current.setState($=>N({},$,{focus:{cell:H===null?null:{id:H,field:k.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))}},[e,t.pagination,t.paginationMode]),R=wt(()=>{const k=Lo(e);if(!k)return;const L=zu(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(L.rows.find(I=>I.id===k.id)||L.rows.length===0)return;const $=or(e);e.current.setState(I=>N({},I,{tabIndex:{cell:{id:L.rows[0].id,field:$[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),A={setCellFocus:s,setColumnHeaderFocus:u,setColumnHeaderFilterFocus:d},z={moveFocusToRelativeCell:g,setColumnGroupHeaderFocus:f,getColumnGroupHeaderFocus:h};Dt(e,A,"public"),Dt(e,z,"private"),m.useEffect(()=>{const k=sr(e.current.rootElementRef.current);return k.addEventListener("mouseup",E),()=>{k.removeEventListener("mouseup",E)}},[e,l,E]),rt(e,"columnHeaderBlur",w),rt(e,"cellDoubleClick",b),rt(e,"cellMouseDown",M),rt(e,"cellKeyDown",y),rt(e,"cellModeChange",O),rt(e,"columnHeaderFocus",C),rt(e,"columnGroupHeaderFocus",S),rt(e,"rowsSet",P),rt(e,"paginationModelChange",R)},Jy=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e<n)return e+1}else if(!r&&e>t)return e-1;return null},e0=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e>t)return e-1}else if(!r&&e<n)return e+1;return null};function yne(e,t,n,r){const l=td.selectors.hiddenCells(e.current.virtualizer.store.state);if(!l[t]?.[n])return t;const a=_$(e);let s=a.indexOf(t)+(r==="down"?1:-1);for(;s>=0&&s<a.length;){const u=a[s];if(!l[u]?.[n])return u;s+=r==="down"?1:-1}return t}const Cne=Zt(jp,zp,(e,t)=>(t.top||[]).concat(e.rows,t.bottom||[])),Sne=(e,t)=>{const n=jr(e,"useGridKeyboardNavigation"),r=Po(),l=m.useCallback(()=>Cne(e),[e]),a=t.signature!=="DataGrid"&&t.headerFilters,s=m.useCallback((w,M,E="left",O="up")=>{const P=Es(e),R=e.current.unstable_getCellColSpanInfo(M,w);R&&R.spannedByColSpan&&(E==="left"?w=R.leftVisibleCellIndex:E==="right"&&(w=R.rightVisibleCellIndex));const A=pd(e)[w],z=yne(e,M,w,O),k=P.findIndex(L=>L.id===z);n.debug(`Navigating to cell row ${k}, col ${w}`),e.current.scrollToIndexes({colIndex:w,rowIndex:k}),e.current.setCellFocus(z,A)},[e,n]),u=m.useCallback((w,M)=>{n.debug(`Navigating to header col ${w}`),e.current.scrollToIndexes({colIndex:w});const E=e.current.getVisibleColumns()[w].field;e.current.setColumnHeaderFocus(E,M)},[e,n]),d=m.useCallback((w,M)=>{n.debug(`Navigating to header filter col ${w}`),e.current.scrollToIndexes({colIndex:w});const E=e.current.getVisibleColumns()[w].field;e.current.setColumnHeaderFilterFocus(E,M)},[e,n]),f=m.useCallback((w,M,E)=>{n.debug(`Navigating to header col ${w}`),e.current.scrollToIndexes({colIndex:w});const{field:O}=e.current.getVisibleColumns()[w];e.current.setColumnGroupHeaderFocus(O,M,E)},[e,n]),h=m.useCallback(w=>l()[w]?.id,[l]),g=m.useCallback((w,M)=>{const E=M.currentTarget.querySelector(`.${K.columnHeaderTitleContainerContent}`);if(!!E&&E.contains(M.target)&&w.field!==md.field)return;const P=l(),R=e.current.getViewportPageSize(),A=w.field?e.current.getColumnIndex(w.field):0,z=P.length>0?0:null,k=P.length-1,L=0,H=or(e).length-1,$=Bp(e);let I=!0;switch(M.key){case"ArrowDown":{a?d(A,M):z!==null&&s(A,h(z));break}case"ArrowRight":{const j=e0({currentColIndex:A,firstColIndex:L,lastColIndex:H,isRtl:r});j!==null&&u(j,M);break}case"ArrowLeft":{const j=Jy({currentColIndex:A,firstColIndex:L,lastColIndex:H,isRtl:r});j!==null&&u(j,M);break}case"ArrowUp":{$>0&&f(A,$-1,M);break}case"PageDown":{z!==null&&k!==null&&s(A,h(Math.min(z+R,k)));break}case"Home":{u(L,M);break}case"End":{u(H,M);break}case"Enter":{(M.ctrlKey||M.metaKey)&&e.current.toggleColumnMenu(w.field);break}case" ":break;default:I=!1}I&&M.preventDefault()},[e,l,a,d,s,h,r,u,f]),b=m.useCallback((w,M)=>{const E=BY(e)===w.field,O=GY(e)===w.field;if(E||O||!am(M.key))return;const P=l(),R=e.current.getViewportPageSize(),A=w.field?e.current.getColumnIndex(w.field):0,z=0,k=P.length-1,L=0,H=or(e).length-1;let $=!0;switch(M.key){case"ArrowDown":{const I=h(z);I!=null&&s(A,I);break}case"ArrowRight":{const I=e0({currentColIndex:A,firstColIndex:L,lastColIndex:H,isRtl:r});I!==null&&d(I,M);break}case"ArrowLeft":{const I=Jy({currentColIndex:A,firstColIndex:L,lastColIndex:H,isRtl:r});I!==null?d(I,M):e.current.setColumnHeaderFilterFocus(w.field,M);break}case"ArrowUp":{u(A,M);break}case"PageDown":{k!==null&&s(A,h(Math.min(z+R,k)));break}case"Home":{d(L,M);break}case"End":{d(H,M);break}case" ":break;default:$=!1}$&&M.preventDefault()},[e,l,d,r,u,s,h]),y=m.useCallback((w,M)=>{const E=sm(e);if(E===null)return;const{field:O,depth:P}=E,{fields:R,depth:A,maxDepth:z}=w,k=l(),L=e.current.getViewportPageSize(),H=e.current.getColumnIndex(O),$=O?e.current.getColumnIndex(O):0,I=0,j=k.length-1,q=0,F=or(e).length-1;let _=!0;switch(M.key){case"ArrowDown":{A===z-1?u(H,M):f(H,P+1,M);break}case"ArrowUp":{A>0&&f(H,P-1,M);break}case"ArrowRight":{const B=R.length-R.indexOf(O)-1;H+B+1<=F&&f(H+B+1,P,M);break}case"ArrowLeft":{const B=R.indexOf(O);H-B-1>=q&&f(H-B-1,P,M);break}case"PageDown":{j!==null&&s($,h(Math.min(I+L,j)));break}case"Home":{f(q,P,M);break}case"End":{f(F,P,M);break}case" ":break;default:_=!1}_&&M.preventDefault()},[e,l,u,f,s,h]),C=m.useCallback((w,M)=>{if(Vp(M))return;const E=e.current.getCellParams(w.id,w.field);if(E.cellMode===rn.Edit||!am(M.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:M,cell:E}))return;const P=l();if(P.length===0)return;const R=e.current.getViewportPageSize(),A=w.field?e.current.getColumnIndex(w.field):0,z=P.findIndex(j=>j.id===w.id),k=0,L=P.length-1,H=0,$=or(e).length-1;let I=!0;switch(M.key){case"ArrowDown":{z<L&&s(A,h(z+1),r?"right":"left","down");break}case"ArrowUp":{z>k?s(A,h(z-1)):a?d(A,M):u(A,M);break}case"ArrowRight":{const j=e0({currentColIndex:A,firstColIndex:H,lastColIndex:$,isRtl:r});j!==null&&s(j,h(z),r?"left":"right");break}case"ArrowLeft":{const j=Jy({currentColIndex:A,firstColIndex:H,lastColIndex:$,isRtl:r});j!==null&&s(j,h(z),r?"right":"left");break}case"Tab":{M.shiftKey&&A>H?s(A-1,h(z),"left"):!M.shiftKey&&A<$&&s(A+1,h(z),"right");break}case" ":{if(w.field===qx)break;const q=w.colDef;if(q&&(q.field===kK||AQ(q.field)))break;!M.shiftKey&&z<L&&s(A,h(Math.min(z+R,L)));break}case"PageDown":{z<L&&s(A,h(Math.min(z+R,L)));break}case"PageUp":{const j=Math.max(z-R,k);j!==z&&j>=k?s(A,h(j)):u(A,M);break}case"Home":{M.ctrlKey||M.metaKey||M.shiftKey?s(H,h(k)):s(H,h(z));break}case"End":{M.ctrlKey||M.metaKey||M.shiftKey?s($,h(L)):s($,h(z));break}default:I=!1}I&&M.preventDefault()},[e,l,r,s,h,a,d,u]),S=m.useCallback((w,{event:M})=>M.key===" "?!1:w,[]);Jn(e,"canStartEditing",S),rt(e,"columnHeaderKeyDown",g),rt(e,"headerFilterKeyDown",b),rt(e,"columnGroupHeaderKeyDown",y),rt(e,"cellKeyDown",C)},wne=(e,t)=>{const n=jr(e,"useGridRowCount"),r=Te(e,Yx),l=Te(e,Iu),a=Te(e,Bf),s=Te(e,Jr),u=Nl(()=>Jr(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:Iu,changeEvent:"rowCountChange"});const f={setRowCount:m.useCallback(C=>{l!==C&&(n.debug("Setting 'rowCount' to",C),e.current.setState(S=>N({},S,{pagination:N({},S.pagination,{rowCount:C})})))},[e,n,l])};Dt(e,f,"public");const h=m.useCallback((C,S)=>{const w=Iu(e);return!S.exportOnlyDirtyModels||t.rowCount!=null||t.initialState?.pagination?.rowCount!=null?N({},C,{pagination:N({},C.pagination,{rowCount:w})}):C},[e,t.rowCount,t.initialState?.pagination?.rowCount]),g=m.useCallback((C,S)=>{const w=S.stateToRestore.pagination?.rowCount?S.stateToRestore.pagination.rowCount:Iu(e);return e.current.setState(M=>N({},M,{pagination:N({},M.pagination,{rowCount:w})})),C},[e]);Jn(e,"exportState",h),Jn(e,"restoreState",g);const b=m.useCallback(C=>{t.paginationMode==="client"||!u.current||C.pageSize!==u.current&&(u.current=C.pageSize,l===-1&&e.current.setPage(0))},[t.paginationMode,u,l,e]);rt(e,"paginationModelChange",b),m.useEffect(()=>{t.paginationMode==="client"?e.current.setRowCount(r):t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,t.paginationMode,r,t.rowCount]);const y=a.hasNextPage===!1;m.useEffect(()=>{y&&l===-1&&e.current.setRowCount(s.pageSize*s.page+r)},[e,r,y,l,s])},xne=(e,t)=>{const n=jr(e,"useGridPaginationMeta"),r=Te(e,Bf);e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:Bf,changeEvent:"paginationMetaChange"});const a={setPaginationMeta:m.useCallback(d=>{r!==d&&(n.debug("Setting 'paginationMeta' to",d),e.current.setState(f=>N({},f,{pagination:N({},f.pagination,{meta:d})})))},[e,n,r])};Dt(e,a,"public");const s=m.useCallback((d,f)=>{const h=Bf(e);return!f.exportOnlyDirtyModels||t.paginationMeta!=null||t.initialState?.pagination?.meta!=null?N({},d,{pagination:N({},d.pagination,{meta:h})}):d},[e,t.paginationMeta,t.initialState?.pagination?.meta]),u=m.useCallback((d,f)=>{const h=f.stateToRestore.pagination?.meta?f.stateToRestore.pagination.meta:Bf(e);return e.current.setState(g=>N({},g,{pagination:N({},g.pagination,{meta:h})})),d},[e]);Jn(e,"exportState",s),Jn(e,"restoreState",u),m.useEffect(()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)},[e,t.paginationMeta])},Mne=(e,t)=>{const n=N({},N$(t.autoPageSize),t.paginationModel??t.initialState?.pagination?.paginationModel);j$(n.pageSize,t.signature);const r=t.rowCount??t.initialState?.pagination?.rowCount??(t.paginationMode==="client"?e.rows?.totalRowCount:void 0),l=t.paginationMeta??t.initialState?.pagination?.meta??{};return N({},e,{pagination:N({},e.pagination,{paginationModel:n,rowCount:r,meta:l,enabled:t.pagination===!0,paginationMode:t.paginationMode})})},Tne=(e,t)=>{xne(e,t),cne(e,t),wne(e,t)},Ene=(e,t)=>N({},e,{preferencePanel:t.initialState?.preferencePanel??{open:!1}}),Pne=(e,t)=>{const n=jr(e,"useGridPreferencesPanel"),r=m.useCallback(()=>{e.current.setState(u=>{if(!u.preferencePanel.open)return u;n.debug("Hiding Preferences Panel");const d=Cc(e);return e.current.publishEvent("preferencePanelClose",{openedPanelValue:d.openedPanelValue}),N({},u,{preferencePanel:{open:!1}})})},[e,n]),l=m.useCallback((u,d,f)=>{n.debug("Opening Preferences Panel"),e.current.setState(h=>N({},h,{preferencePanel:N({},h.preferencePanel,{open:!0,openedPanelValue:u,panelId:d,labelId:f})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:u})},[n,e]);Dt(e,{showPreferences:l,hidePreferences:r},"public");const a=m.useCallback((u,d)=>{const f=Cc(e);return!d.exportOnlyDirtyModels||t.initialState?.preferencePanel!=null||f.open?N({},u,{preferencePanel:f}):u},[e,t.initialState?.preferencePanel]),s=m.useCallback((u,d)=>{const f=d.stateToRestore.preferencePanel;return f!=null&&e.current.setState(h=>N({},h,{preferencePanel:f})),u},[e]);Jn(e,"exportState",a),Jn(e,"restoreState",s)},z1=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;case"string":default:return""}},Rne=["id","field"],Ane=["id","field"],One=(e,t)=>{const[n,r]=m.useState({}),l=m.useRef(n),a=m.useRef({}),{processRowUpdate:s,onProcessRowUpdateError:u,cellModesModel:d,onCellModesModelChange:f}=t,h=F=>(..._)=>{t.editMode===Hi.Cell&&F(..._)},g=m.useCallback((F,_)=>{const B=e.current.getCellParams(F,_);if(!e.current.isCellEditable(B))throw new Error(`MUI X: The cell with id=${F} and field=${_} is not editable.`)},[e]),b=m.useCallback((F,_,B)=>{if(e.current.getCellMode(F,_)!==B)throw new Error(`MUI X: The cell with id=${F} and field=${_} is not in ${B} mode.`)},[e]),y=m.useCallback((F,_)=>{if(!F.isEditable||F.cellMode===rn.Edit)return;const B=N({},F,{reason:ga.cellDoubleClick});e.current.publishEvent("cellEditStart",B,_)},[e]),C=m.useCallback((F,_)=>{if(F.cellMode===rn.View||e.current.getCellMode(F.id,F.field)===rn.View)return;const B=N({},F,{reason:ni.cellFocusOut});e.current.publishEvent("cellEditStop",B,_)},[e]),S=m.useCallback((F,_)=>{if(F.cellMode===rn.Edit){if(_.which===229)return;let B;if(_.key==="Escape"?B=ni.escapeKeyDown:_.key==="Enter"?B=ni.enterKeyDown:_.key==="Tab"&&(B=_.shiftKey?ni.shiftTabKeyDown:ni.tabKeyDown,_.preventDefault()),B){const J=N({},F,{reason:B});e.current.publishEvent("cellEditStop",J,_)}}else if(F.isEditable){let B;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:_,cellParams:F,editMode:"cell"}))return;if(x$(_)?B=ga.printableKeyDown:T$(_)?B=ga.pasteKeyDown:_.key==="Enter"?B=ga.enterKeyDown:(_.key==="Backspace"||_.key==="Delete")&&(B=ga.deleteKeyDown),B){const Q=N({},F,{reason:B,key:_.key});e.current.publishEvent("cellEditStart",Q,_)}}},[e]),w=m.useCallback(F=>{const{id:_,field:B,reason:J}=F,Q={id:_,field:B};(J===ga.printableKeyDown||J===ga.deleteKeyDown||J===ga.pasteKeyDown)&&(Q.deleteValue=!0),e.current.startCellEditMode(Q)},[e]),M=m.useCallback(F=>{const{id:_,field:B,reason:J}=F;e.current.runPendingEditCellValueMutation(_,B);let Q;J===ni.enterKeyDown?Q="below":J===ni.tabKeyDown?Q="right":J===ni.shiftTabKeyDown&&(Q="left");const D=J==="escapeKeyDown";e.current.stopCellEditMode({id:_,field:B,ignoreModifications:D,cellToFocusAfter:Q})},[e]),E=F=>async(..._)=>{if(F){const{id:B,field:J}=_[0];e.current.state.editRows[B][J]?.error||F(..._)}};rt(e,"cellDoubleClick",h(y)),rt(e,"cellFocusOut",h(C)),rt(e,"cellKeyDown",h(S)),rt(e,"cellEditStart",h(w)),rt(e,"cellEditStop",h(M)),pn(e,"cellEditStart",t.onCellEditStart),pn(e,"cellEditStop",E(t.onCellEditStop));const O=m.useCallback((F,_)=>{const B=Fr(e);return B[F]&&B[F][_]?rn.Edit:rn.View},[e]),P=wt(F=>{const _=F!==t.cellModesModel;f&&_&&f(F,{api:e.current}),!(t.cellModesModel&&_)&&(r(F),l.current=F,e.current.publishEvent("cellModesModelChange",F))}),R=m.useCallback((F,_,B)=>{const J=N({},l.current);if(B!==null)J[F]=N({},J[F],{[_]:N({},B)});else{const Q=J[F],D=Ge(Q,[_].map(Cp));J[F]=D,Object.keys(J[F]).length===0&&delete J[F]}P(J)},[P]),A=m.useCallback((F,_,B)=>{e.current.setState(J=>{const Q=N({},J.editRows);return B!==null?Q[F]=N({},Q[F],{[_]:N({},B)}):(delete Q[F][_],Object.keys(Q[F]).length===0&&delete Q[F]),N({},J,{editRows:Q})})},[e]),z=m.useCallback(F=>{const{id:_,field:B}=F,J=Ge(F,Rne);g(_,B),b(_,B,rn.View),R(_,B,N({mode:rn.Edit},J))},[g,b,R]),k=wt(async F=>{const{id:_,field:B,deleteValue:J,initialValue:Q}=F,D=e.current.getCellValue(_,B);let G=D;J?G=z1(e.current.getColumn(B)):Q&&(G=Q);const W=e.current.getColumn(B),Z=!!W.preProcessEditCellProps&&J;let te={value:G,error:!1,isProcessingProps:Z};if(A(_,B,te),e.current.setCellFocus(_,B),Z&&(te=await Promise.resolve(W.preProcessEditCellProps({id:_,row:e.current.getRow(_),props:te,hasChanged:G!==D})),e.current.getCellMode(_,B)===rn.Edit)){const ne=Fr(e);A(_,B,N({},te,{value:ne[_][B].value,isProcessingProps:!1}))}}),L=m.useCallback(F=>{const{id:_,field:B}=F,J=Ge(F,Ane);b(_,B,rn.Edit),R(_,B,N({mode:rn.View},J))},[b,R]),H=wt(async F=>{const{id:_,field:B,ignoreModifications:J,cellToFocusAfter:Q="none"}=F;b(_,B,rn.Edit),e.current.runPendingEditCellValueMutation(_,B);const D=()=>{A(_,B,null),R(_,B,null),Q!=="none"&&e.current.moveFocusToRelativeCell(_,B,Q)};if(J){D();return}const G=Fr(e),{error:W,isProcessingProps:Z}=G[_][B],te=e.current.getRow(_);if(W||Z){a.current[_][B].mode=rn.Edit,R(_,B,{mode:rn.Edit});return}const ne=e.current.getRowWithUpdatedValuesFromCellEditing(_,B);if(t.dataSource?.updateRow){if(Ll(te,ne)){D();return}const oe=()=>{a.current[_][B].mode=rn.Edit,R(_,B,{mode:rn.Edit})},se={rowId:_,updatedRow:ne,previousRow:te};try{await e.current.dataSource.editRow(se),D()}catch{oe()}}else if(s){const oe=se=>{a.current[_][B].mode=rn.Edit,R(_,B,{mode:rn.Edit}),u&&u(se)};try{Promise.resolve(s(ne,te,{rowId:_})).then(se=>{e.current.updateRows([se]),D()}).catch(oe)}catch(se){oe(se)}}else e.current.updateRows([ne]),D()}),$=m.useCallback(async F=>{const{id:_,field:B,value:J,debounceMs:Q,unstable_skipValueParser:D}=F;g(_,B),b(_,B,rn.Edit);const G=e.current.getColumn(B),W=e.current.getRow(_);let Z=J;G.valueParser&&!D&&(Z=G.valueParser(J,W,G,e));let te=Fr(e),ne=N({},te[_][B],{value:Z,changeReason:Q?"debouncedSetEditCellValue":"setEditCellValue"});if(G.preProcessEditCellProps){const oe=J!==te[_][B].value;ne=N({},ne,{isProcessingProps:!0}),A(_,B,ne),ne=await Promise.resolve(G.preProcessEditCellProps({id:_,row:W,props:ne,hasChanged:oe}))}return e.current.getCellMode(_,B)===rn.View?!1:(te=Fr(e),ne=N({},ne,{isProcessingProps:!1}),ne.value=G.preProcessEditCellProps?te[_][B].value:Z,A(_,B,ne),te=Fr(e),!te[_]?.[B]?.error)},[e,g,b,A]),I=m.useCallback((F,_)=>{const B=e.current.getColumn(_),J=Fr(e),Q=e.current.getRow(F);if(!J[F]||!J[F][_])return e.current.getRow(F);const{value:D}=J[F][_];return B.valueSetter?B.valueSetter(D,Q,B,e):N({},Q,{[_]:D})},[e]),j={getCellMode:O,startCellEditMode:z,stopCellEditMode:L},q={setCellEditingEditCellValue:$,getRowWithUpdatedValuesFromCellEditing:I};Dt(e,j,"public"),Dt(e,q,"private"),m.useEffect(()=>{d&&P(d)},[d,P]),gn(()=>{const F=kl(e),_=a.current;a.current=u$(n),Object.entries(n).forEach(([B,J])=>{Object.entries(J).forEach(([Q,D])=>{const G=_[B]?.[Q]?.mode||rn.View,W=F[B]?e.current.getRowId(F[B]):B;D.mode===rn.Edit&&G===rn.View?k(N({id:W,field:Q},D)):D.mode===rn.View&&G===rn.Edit&&H(N({id:W,field:Q},D))})})},[e,n,k,H])},Ine=["id"],kne=["id"],_ne=(e,t)=>{const[n,r]=m.useState({}),l=m.useRef(n),a=m.useRef({}),s=m.useRef({}),u=m.useRef(void 0),d=m.useRef(null),{processRowUpdate:f,onProcessRowUpdateError:h,rowModesModel:g,onRowModesModelChange:b}=t,y=D=>(...G)=>{t.editMode===Hi.Row&&D(...G)},C=m.useCallback((D,G)=>{const W=e.current.getCellParams(D,G);if(!e.current.isCellEditable(W))throw new Error(`MUI X: The cell with id=${D} and field=${G} is not editable.`)},[e]),S=m.useCallback((D,G)=>{if(e.current.getRowMode(D)!==G)throw new Error(`MUI X: The row with id=${D} is not in ${G} mode.`)},[e]),w=m.useCallback(D=>{const G=Fr(e);return Object.values(G[D]).some(W=>W.error)},[e]),M=m.useCallback((D,G)=>{if(!D.isEditable||e.current.getRowMode(D.id)===Dn.Edit)return;const W=e.current.getRowParams(D.id),Z=N({},W,{field:D.field,reason:os.cellDoubleClick});e.current.publishEvent("rowEditStart",Z,G)},[e]),E=m.useCallback(D=>{d.current=D},[]),O=m.useCallback((D,G)=>{D.isEditable&&e.current.getRowMode(D.id)!==Dn.View&&(d.current=null,u.current=setTimeout(()=>{if(d.current?.id!==D.id){if(!e.current.getRow(D.id)||e.current.getRowMode(D.id)===Dn.View||w(D.id))return;const W=e.current.getRowParams(D.id),Z=N({},W,{field:D.field,reason:Ri.rowFocusOut});e.current.publishEvent("rowEditStop",Z,G)}}))},[e,w]);m.useEffect(()=>()=>{clearTimeout(u.current)},[]);const P=m.useCallback((D,G)=>{if(D.cellMode===Dn.Edit){if(G.which===229)return;let W;if(G.key==="Escape")W=Ri.escapeKeyDown;else if(G.key==="Enter")W=Ri.enterKeyDown;else if(G.key==="Tab"){const Z=pd(e).filter(te=>e.current.getColumn(te).type===Zm?!0:e.current.isCellEditable(e.current.getCellParams(D.id,te)));if(G.shiftKey?D.field===Z[0]&&(W=Ri.shiftTabKeyDown):D.field===Z[Z.length-1]&&(W=Ri.tabKeyDown),G.preventDefault(),!W){const te=Z.findIndex(oe=>oe===D.field),ne=Z[G.shiftKey?te-1:te+1];e.current.setCellFocus(D.id,ne)}}if(W){if(W!==Ri.escapeKeyDown&&w(D.id))return;const Z=N({},e.current.getRowParams(D.id),{reason:W,field:D.field});e.current.publishEvent("rowEditStop",Z,G)}}else if(D.isEditable){let W;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:G,cellParams:D,editMode:"row"}))return;if(x$(G)||T$(G)?W=os.printableKeyDown:G.key==="Enter"?W=os.enterKeyDown:(G.key==="Backspace"||G.key==="Delete")&&(W=os.deleteKeyDown),W){const te=e.current.getRowParams(D.id),ne=N({},te,{field:D.field,reason:W});e.current.publishEvent("rowEditStart",ne,G)}}},[e,w]),R=m.useCallback(D=>{const{id:G,field:W,reason:Z}=D,te={id:G,fieldToFocus:W};(Z===os.printableKeyDown||Z===os.deleteKeyDown)&&(te.deleteValue=!!W),e.current.startRowEditMode(te)},[e]),A=m.useCallback(D=>{const{id:G,reason:W,field:Z}=D;e.current.runPendingEditCellValueMutation(G);let te;W===Ri.enterKeyDown?te="below":W===Ri.tabKeyDown?te="right":W===Ri.shiftTabKeyDown&&(te="left");const ne=W==="escapeKeyDown";e.current.stopRowEditMode({id:G,ignoreModifications:ne,field:Z,cellToFocusAfter:te})},[e]);rt(e,"cellDoubleClick",y(M)),rt(e,"cellFocusIn",y(E)),rt(e,"cellFocusOut",y(O)),rt(e,"cellKeyDown",y(P)),rt(e,"rowEditStart",y(R)),rt(e,"rowEditStop",y(A)),pn(e,"rowEditStart",t.onRowEditStart),pn(e,"rowEditStop",t.onRowEditStop);const z=m.useCallback(D=>cz(e,{rowId:D,editMode:t.editMode})?Dn.Edit:Dn.View,[e,t.editMode]),k=wt(D=>{const G=D!==t.rowModesModel;b&&G&&b(D,{api:e.current}),!(t.rowModesModel&&G)&&(r(D),l.current=D,e.current.publishEvent("rowModesModelChange",D))}),L=m.useCallback((D,G)=>{const W=N({},l.current);G!==null?W[D]=N({},G):delete W[D],k(W)},[k]),H=m.useCallback((D,G)=>{e.current.setState(W=>{const Z=N({},W.editRows);return G!==null?Z[D]=G:delete Z[D],N({},W,{editRows:Z})})},[e]),$=m.useCallback((D,G,W)=>{e.current.setState(Z=>{const te=N({},Z.editRows);return W!==null?te[D]=N({},te[D],{[G]:N({},W)}):(delete te[D][G],Object.keys(te[D]).length===0&&delete te[D]),N({},Z,{editRows:te})})},[e]),I=m.useCallback(D=>{const{id:G}=D,W=Ge(D,Ine);S(G,Dn.View),L(G,N({mode:Dn.Edit},W))},[S,L]),j=wt(D=>{const{id:G,fieldToFocus:W,deleteValue:Z,initialValue:te}=D,ne=e.current.getRow(G),oe=Dl(e),se=oe.reduce((Se,be)=>{const de=be.field;if(!e.current.getCellParams(G,de).isEditable)return Se;const Ae=e.current.getColumn(de);let Ne=e.current.getCellValue(G,de);return W===de&&(Z||te)&&(Z?Ne=z1(Ae):te&&(Ne=te)),Se[de]={value:Ne,error:!1,isProcessingProps:Ae.editable&&!!Ae.preProcessEditCellProps&&Z},Se},{});s.current[G]=ne,H(G,se),W&&e.current.setCellFocus(G,W),oe.filter(Se=>e.current.getCellParams(G,Se.field).isEditable&&Se.editable&&!!Se.preProcessEditCellProps&&Z).forEach(Se=>{const be=Se.field,de=e.current.getCellValue(G,be),ke=Z?z1(Se):te??de;Promise.resolve(Se.preProcessEditCellProps({id:G,row:ne,props:se[be],hasChanged:ke!==de})).then(Ae=>{if(e.current.getRowMode(G)===Dn.Edit){const Ne=Fr(e);$(G,be,N({},Ae,{value:Ne[G][be].value,isProcessingProps:!1}))}})})}),q=m.useCallback(D=>{const{id:G}=D,W=Ge(D,kne);S(G,Dn.Edit),L(G,N({mode:Dn.View},W))},[S,L]),F=wt(async D=>{const{id:G,ignoreModifications:W,field:Z,cellToFocusAfter:te="none"}=D;e.current.runPendingEditCellValueMutation(G);const ne=()=>{te!=="none"&&Z&&e.current.moveFocusToRelativeCell(G,Z,te),H(G,null),L(G,null),delete s.current[G]};if(W){ne();return}const oe=Fr(e),se=s.current[G];if(Object.values(oe[G]).some(de=>de.isProcessingProps)){a.current[G].mode=Dn.Edit;return}if(w(G)){a.current[G].mode=Dn.Edit,L(G,{mode:Dn.Edit});return}const be=e.current.getRowWithUpdatedValuesFromRowEditing(G);if(t.dataSource?.updateRow){if(Ll(se,be)){ne();return}const de=()=>{a.current[G].mode=Dn.Edit,L(G,{mode:Dn.Edit})},ke={rowId:G,updatedRow:be,previousRow:se};try{await e.current.dataSource.editRow(ke),ne()}catch{de()}}else if(f){const de=ke=>{a.current[G]&&(a.current[G].mode=Dn.Edit,L(G,{mode:Dn.Edit})),h&&h(ke)};try{Promise.resolve(f(be,se,{rowId:G})).then(ke=>{e.current.updateRows([ke]),ne()}).catch(de)}catch(ke){de(ke)}}else e.current.updateRows([be]),ne()}),_=m.useCallback(D=>{const{id:G,field:W,value:Z,debounceMs:te,unstable_skipValueParser:ne}=D;C(G,W);const oe=e.current.getColumn(W),se=e.current.getRow(G);let Se=Z;oe.valueParser&&!ne&&(Se=oe.valueParser(Z,se,oe,e));let be=Fr(e),de=N({},be[G][W],{value:Se,changeReason:te?"debouncedSetEditCellValue":"setEditCellValue"});return oe.preProcessEditCellProps||$(G,W,de),new Promise(ke=>{const Ae=[];if(oe.preProcessEditCellProps){const Ne=de.value!==be[G][W].value;de=N({},de,{isProcessingProps:!0}),$(G,W,de);const $e=be[G],Ve=Ge($e,[W].map(Cp)),nt=Promise.resolve(oe.preProcessEditCellProps({id:G,row:se,props:de,hasChanged:Ne,otherFieldsProps:Ve})).then(lt=>{if(e.current.getRowMode(G)===Dn.View){ke(!1);return}be=Fr(e),lt=N({},lt,{isProcessingProps:!1}),lt.value=oe.preProcessEditCellProps?be[G][W].value:Se,$(G,W,lt)});Ae.push(nt)}Object.entries(be[G]).forEach(([Ne,$e])=>{if(Ne===W)return;const Ve=e.current.getColumn(Ne);if(!Ve.preProcessEditCellProps)return;$e=N({},$e,{isProcessingProps:!0}),$(G,Ne,$e),be=Fr(e);const nt=be[G],lt=Ge(nt,[Ne].map(Cp)),me=Promise.resolve(Ve.preProcessEditCellProps({id:G,row:se,props:$e,hasChanged:!1,otherFieldsProps:lt})).then(tt=>{if(e.current.getRowMode(G)===Dn.View){ke(!1);return}tt=N({},tt,{isProcessingProps:!1}),$(G,Ne,tt)});Ae.push(me)}),Promise.all(Ae).then(()=>{e.current.getRowMode(G)===Dn.Edit?(be=Fr(e),ke(!be[G][W].error)):ke(!1)})})},[e,C,$]),B=m.useCallback(D=>{const G=Fr(e),W=e.current.getRow(D);if(!G[D])return e.current.getRow(D);let Z=N({},s.current[D],W);return Object.entries(G[D]).forEach(([te,ne])=>{const oe=e.current.getColumn(te);oe?.valueSetter?Z=oe.valueSetter(ne.value,Z,oe,e):Z[te]=ne.value}),Z},[e]),J={getRowMode:z,startRowEditMode:I,stopRowEditMode:q},Q={setRowEditingEditCellValue:_,getRowWithUpdatedValuesFromRowEditing:B};Dt(e,J,"public"),Dt(e,Q,"private"),m.useEffect(()=>{g&&k(g)},[g,k]),gn(()=>{const D=kl(e),G=a.current;a.current=u$(n);const W=new Set([...Object.keys(n),...Object.keys(G)]);Array.from(W).forEach(Z=>{const te=n[Z]??{mode:Dn.View},ne=G[Z]?.mode||Dn.View,oe=D[Z]?e.current.getRowId(D[Z]):Z;te.mode===Dn.Edit&&ne===Dn.View?j(N({id:oe},te)):te.mode===Dn.View&&ne===Dn.Edit&&F(N({id:oe},te))})},[e,n,j,F])},Dne=e=>N({},e,{editRows:{}}),Lne=(e,t)=>{One(e,t),_ne(e,t);const n=m.useRef({}),{isCellEditable:r}=t,l=m.useCallback(b=>Zu(b.rowNode)||!b.colDef.editable||!b.colDef.renderEditCell?!1:r?r(b):!0,[r]),a=(b,y,C,S)=>{if(!C){S();return}if(n.current[b]||(n.current[b]={}),n.current[b][y]){const[E]=n.current[b][y];clearTimeout(E)}const w=()=>{const[E]=n.current[b][y];clearTimeout(E),S(),delete n.current[b][y]},M=setTimeout(()=>{S(),delete n.current[b][y]},C);n.current[b][y]=[M,w]};m.useEffect(()=>{const b=n.current;return()=>{Object.entries(b).forEach(([y,C])=>{Object.keys(C).forEach(S=>{const[w]=b[y][S];clearTimeout(w),delete b[y][S]})})}},[]);const s=m.useCallback((b,y)=>{if(n.current[b]){if(!y)Object.keys(n.current[b]).forEach(C=>{const[,S]=n.current[b][C];S()});else if(n.current[b][y]){const[,C]=n.current[b][y];C()}}},[]),u=m.useCallback(b=>{const{id:y,field:C,debounceMs:S}=b;return new Promise(w=>{a(y,C,S,async()=>{const M=t.editMode===Hi.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(y,C)===rn.Edit){const E=await M(b);w(E)}})})},[e,t.editMode]),d=m.useCallback((b,y)=>t.editMode===Hi.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(b,y):e.current.getRowWithUpdatedValuesFromRowEditing(b),[e,t.editMode]),f=m.useCallback((b,y)=>Fr(e)[b]?.[y]??null,[e]),h={isCellEditable:l,setEditCellValue:u,getRowWithUpdatedValues:d,unstable_getEditCellMeta:f},g={runPendingEditCellValueMutation:s};Dt(e,h,"public"),Dt(e,g,"private")},$ne=(e,t,n)=>{const r=!!t.dataSource;return n.current.caches.rows=zg({rows:r?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),N({},e,{rows:t$({apiRef:n,rowCountProp:t.rowCount,loadingProp:r?!0:t.loading,previousTree:null,previousTreeDepths:null})})},zne=(e,t)=>{const n=jr(e,"useGridRows"),r=m.useRef(Date.now()),l=m.useRef(t.rowCount),a=$o(),s=m.useCallback(F=>{const _=kl(e)[F];if(_)return _;const B=_i(e,F);return B&&Zu(B)?{[Qu]:F}:null},[e]),u=m.useCallback(F=>Ju(e,F),[e]),d=m.useCallback(({cache:F,throttle:_})=>{const B=()=>{r.current=Date.now(),e.current.setState(Q=>N({},Q,{rows:t$({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:eo(e),previousTreeDepths:NA(e),previousGroupsToFetch:SW(e)})})),e.current.publishEvent("rowsSet")};if(a.clear(),e.current.caches.rows=F,!_){B();return}const J=t.throttleRowsMs-(Date.now()-r.current);if(J>0){a.start(J,B);return}B()},[t.throttleRowsMs,t.rowCount,t.loading,e,a]),f=m.useCallback(F=>{if(n.debug(`Updating all rows, new length ${F.length}`),yc(e)){e.current.updateNonPivotRows(F,!1);return}const _=zg({rows:F,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),B=e.current.caches.rows;_.rowsBeforePartialUpdates=B.rowsBeforePartialUpdates,d({cache:_,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,d,e]),h=m.useCallback(F=>{if(t.signature===ci.DataGrid&&F.length>1)throw new Error(["MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
`));if(yc(e)){e.current.updateNonPivotRows(F);return}const _=BA(e,F,t.getRowId),B=jA({updates:_,getRowId:t.getRowId,previousCache:e.current.caches.rows});d({cache:B,throttle:!0})},[t.signature,t.getRowId,d,e]),g=m.useCallback((F,_)=>{const B=BA(e,F,t.getRowId),J=jA({updates:B,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:_??[]});d({cache:J,throttle:!1})},[t.getRowId,d,e]),b=m.useCallback(F=>{n.debug(`Setting loading to ${F}`),e.current.setState(_=>N({},_,{rows:N({},_.rows,{loading:F})})),e.current.caches.rows.loadingPropBeforePartialUpdates=F},[e,n]),y=m.useCallback(()=>{const F=ac(e),_=kl(e);return new Map(F.map(B=>[B,_[B]??{}]))},[e]),C=m.useCallback(()=>dd(e),[e]),S=m.useCallback(()=>ac(e),[e]),w=m.useCallback(F=>{const{rowIdToIndexMap:_}=zu(e);return _.get(F)},[e]),M=m.useCallback((F,_)=>{const B=_i(e,F);if(!B)throw new Error(`MUI X: No row with id #${F} found.`);if(B.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const J=N({},B,{childrenExpanded:_});e.current.setState(Q=>N({},Q,{rows:N({},Q.rows,{tree:N({},Q.rows.tree,{[F]:J})})})),e.current.publishEvent("rowExpansionChange",J)},[e]),E=m.useCallback(F=>_i(e,F)??null,[e]),O=m.useCallback(({skipAutoGeneratedRows:F=!0,groupId:_,applySorting:B,applyFiltering:J,directChildrenOnly:Q=!1})=>{const D=eo(e);let G;if(B){const W=D[_];if(!W)return[];const Z=Hp(e);G=[];const te=Z.findIndex(ne=>ne===_)+1;for(let ne=te;ne<Z.length&&(Q?D[Z[ne]].depth===W.depth+1:D[Z[ne]].depth>W.depth);ne+=1){const oe=Z[ne];(!F||!Zu(D[oe]))&&G.push(oe)}}else G=Nx(D,_,F,Q);if(J){const W=hd(e);G=Jm(W)?G:G.filter(Z=>W[Z]!==!1)}return G},[e]),P=m.useCallback((F,_)=>{const B=_i(e,F);if(!B)throw new Error(`MUI X: No row with id #${F} found.`);if(B.parent!==Nr)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if(B.type!=="leaf")throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState(J=>{const Q=eo(e)[Nr],D=Q.children,G=D.findIndex(Z=>Z===F);if(G===-1||G===_)return J;n.debug(`Moving row ${F} to index ${_}`);const W=[...D];return W.splice(_,0,W.splice(G,1)[0]),N({},J,{rows:N({},J.rows,{tree:N({},J.rows.tree,{[Nr]:N({},Q,{children:W})})})})}),e.current.publishEvent("rowsSet")},[e,n]),R=m.useCallback((F,_)=>{if(t.signature===ci.DataGrid&&_.length>1)throw new Error(["MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
`));if(_.length===0)return;if(fd(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const J=N({},eo(e)),Q=N({},kl(e)),D=J[Nr],G=[...D.children],W=new Set;for(let te=0;te<_.length;te+=1){const ne=_[te],oe=Km(ne,t.getRowId,"A row was provided without id when calling replaceRows()."),[se]=G.splice(F+te,1,oe);W.has(se)||(delete Q[se],delete J[se]);const Se={id:oe,depth:0,parent:Nr,type:"leaf",groupingKey:null};Q[oe]=ne,J[oe]=Se,W.add(oe)}J[Nr]=N({},D,{children:G});const Z=G.filter(te=>J[te]?.type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=Q,e.current.setState(te=>N({},te,{rows:N({},te.rows,{loading:t.loading,totalRowCount:Math.max(t.rowCount||0,G.length),dataRowIdToModelLookup:Q,dataRowIds:Z,tree:J})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId,t.loading,t.rowCount]),A={getRow:s,setLoading:b,getRowId:u,getRowModels:y,getRowsCount:C,getAllRowIds:S,setRows:f,updateRows:h,getRowNode:E,getRowIndexRelativeToVisibleRows:w,unstable_replaceRows:R},z={setRowIndex:P,setRowChildrenExpansion:M,getRowGroupChildren:O},k={updateNestedRows:g},L=m.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let F;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?F=N({},e.current.caches.rows,{updates:{type:"full",rows:ac(e)}}):F=zg({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),d({cache:F,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,d]),H=Nl(()=>t.dataSource),$=m.useCallback(F=>{if(t.dataSource&&t.dataSource!==H.current){H.current=t.dataSource;return}F==="rowTreeCreation"&&L()},[L,H,t.dataSource]),I=m.useCallback(()=>{e.current.getActiveStrategy(hs.RowTree)!==wW(e)&&L()},[e,L]);rt(e,"activeStrategyProcessorChange",$),rt(e,"strategyAvailabilityChange",I);const j=m.useCallback(()=>{e.current.setState(F=>{const _=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:eo(e),treeDepths:NA(e),dataRowIds:ac(e),dataRowIdToModelLookup:kl(e)});return N({},F,{rows:N({},F.rows,_,{totalTopLevelRowCount:e$({tree:_.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet")},[e,t.rowCount]);iM(e,"hydrateRows",j),Dt(e,A,"public"),Dt(e,z,t.signature===ci.DataGrid?"private":"public"),Dt(e,k,"private");const q=m.useRef(!0);m.useEffect(()=>{if(q.current){q.current=!1;return}let F=!1;t.rowCount!==l.current&&(F=!0,l.current=t.rowCount);const _=t.dataSource?xW(e):t.rows,B=e.current.caches.rows.rowsBeforePartialUpdates===_,J=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,Q=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;B&&(J||(e.current.setState(D=>N({},D,{rows:N({},D.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading),Q||(e.current.setState(D=>N({},D,{rows:N({},D.rows,{totalRowCount:Math.max(t.rowCount||0,D.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,D.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount),!F)||(n.debug(`Updating all rows, new length ${_?.length}`),d({cache:zg({rows:_,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))},[t.rows,t.rowCount,t.getRowId,t.loading,t.dataSource,n,d,e])},Fne=e=>{const t={[Nr]:N({},TW(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:Nr,type:"leaf",groupingKey:null}}return{groupingName:Sc,tree:t,treeDepths:{0:e.length},dataRowIds:e}},Hne=({previousTree:e,actions:t})=>{const n=N({},e),r={};for(let s=0;s<t.remove.length;s+=1){const u=t.remove[s];r[u]=!0,delete n[u]}for(let s=0;s<t.insert.length;s+=1){const u=t.insert[s];n[u]={id:u,depth:0,parent:Nr,type:"leaf",groupingKey:null}}const l=n[Nr];let a=[...l.children,...t.insert];return Object.values(r).length&&(a=a.filter(s=>!r[s])),n[Nr]=N({},l,{children:a}),{groupingName:Sc,tree:n,treeDepths:{0:a.length},dataRowIds:a}},Nne=e=>e.updates.type==="full"?Fne(e.updates.rows):Hne({previousTree:e.previousTree,actions:e.updates.actions}),jne=e=>{Sp(e,Sc,"rowTreeCreation",Nne)};class t0 extends Error{}function Bne(e,t){const n=m.useCallback(C=>({field:C,colDef:e.current.getColumn(C)}),[e]),r=m.useCallback(C=>{const S=e.current.getRow(C);if(!S)throw new t0(`No row with id #${C} found`);return{id:C,columns:e.current.getAllColumns(),row:S}},[e]),l=m.useCallback((C,S,w,{cellMode:M,colDef:E,hasFocus:O,rowNode:P,tabIndex:R})=>{const A=w[S],z=E?.valueGetter?E.valueGetter(A,w,E,e):A,k={id:C,field:S,row:w,rowNode:P,colDef:E,cellMode:M,hasFocus:O,tabIndex:R,value:z,formattedValue:z,isEditable:!1,api:e.current};return E&&E.valueFormatter&&(k.formattedValue=E.valueFormatter(z,w,E,e)),k.isEditable=E&&e.current.isCellEditable(k),k},[e]),a=m.useCallback((C,S)=>{const w=e.current.getRow(C),M=_i(e,C);if(!w||!M)throw new t0(`No row with id #${C} found`);const E=Lo(e),O=Zx(e),P=e.current.getCellMode(C,S);return e.current.getCellParamsForRow(C,S,w,{colDef:t.listView&&t.listViewColumn?.field===S?b$(e):e.current.getColumn(S),rowNode:M,hasFocus:E!==null&&E.field===S&&E.id===C,tabIndex:O&&O.field===S&&O.id===C?0:-1,cellMode:P})},[e,t.listView,t.listViewColumn?.field]),s=m.useCallback((C,S)=>{const w=e.current.getColumn(S),M=e.current.getRow(C);if(!M)throw new t0(`No row with id #${C} found`);return!w||!w.valueGetter?M[S]:w.valueGetter(M[w.field],M,w,e)},[e]),u=m.useCallback((C,S)=>PW(C,S,e),[e]),d=m.useCallback((C,S)=>{const w=u(C,S);return!S||!S.valueFormatter?w:S.valueFormatter(w,C,S,e)},[e,u]),f=m.useCallback(C=>e.current.rootElementRef.current?xZ(e.current.rootElementRef.current,C):null,[e]),h=m.useCallback(C=>e.current.rootElementRef.current?MZ(e.current.rootElementRef.current,C):null,[e]),g=m.useCallback((C,S)=>e.current.rootElementRef.current?TZ(e.current.rootElementRef.current,{id:C,field:S}):null,[e]),b={getCellValue:s,getCellParams:a,getCellElement:g,getRowValue:u,getRowFormattedValue:d,getRowParams:r,getRowElement:h,getColumnHeaderParams:n,getColumnHeaderElement:f},y={getCellParamsForRow:l};Dt(e,b,"public"),Dt(e,y,"private")}const op={type:"include",ids:new Set},Gne=(e,t)=>N({},e,{rowSelection:t.rowSelection?t.rowSelectionModel??op:op}),Vne=(e,t)=>{const n=jr(e,"useGridSelection"),r=m.useCallback(D=>(...G)=>{t.rowSelection&&D(...G)},[t.rowSelection]),l=Te(e,fd)>1,a=t.signature!==ci.DataGrid&&(t.rowSelectionPropagation?.parents||t.rowSelectionPropagation?.descendants)&&l,s=m.useMemo(()=>t.rowSelectionModel,[t.rowSelectionModel]),u=m.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:s,propOnChange:t.onRowSelectionModelChange,stateSelector:ri,changeEvent:"rowSelectionChange"});const{checkboxSelection:d,disableRowSelectionOnClick:f,isRowSelectable:h}=t,g=Qx(t),b=Te(e,eo),y=m.useCallback(D=>{let G=D;const W=u.current??D,Z=e.current.isRowSelected(D);if(Z){const te=Lu(e),ne=te.findIndex(se=>se===W),oe=te.findIndex(se=>se===G);if(ne===oe)return;ne>oe?G=te[oe+1]:G=te[oe-1]}u.current=D,e.current.selectRowRange({startId:W,endId:G},!Z)},[e]),C=wt(()=>t.pagination&&t.checkboxSelectionVisibleOnly&&t.paginationMode==="client"?U$(e):Lu(e)),S=m.useCallback((D,G)=>{if(t.signature===ci.DataGrid&&!g&&(D.type!=="include"||D.ids.size>1))throw new Error(["MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(`
`));ri(e)!==D&&(n.debug("Setting selection model"),e.current.setState(Z=>N({},Z,{rowSelection:t.rowSelection?D:op}),G))},[e,n,t.rowSelection,t.signature,g]),w=m.useCallback(D=>Np(e).has(D),[e]),M=m.useCallback(D=>{if(t.rowSelection===!1||h&&!h(e.current.getRowParams(D)))return!1;const G=_i(e,D);return!(G?.type==="footer"||G?.type==="pinnedRow")},[e,t.rowSelection,h]),E=m.useCallback(()=>$$(e),[e]),O=m.useCallback((D,G=!0,W=!1)=>{if(e.current.isRowSelectable(D))if(u.current=D,W){n.debug(`Setting selection for row ${D}`);const Z={type:"include",ids:new Set},te=ne=>{Z.ids.add(ne)};G&&(te(D),a&&kf(e,b,D,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,te)),e.current.setRowSelectionModel(Z,"singleRowSelection")}else{n.debug(`Toggling selection for row ${D}`);const Z=ri(e),te={type:Z.type,ids:new Set(Z.ids)},ne=ps(te);ne.unselect(D);const oe=be=>{ne.select(be)},se=be=>{ne.unselect(be)};G?(oe(D),a&&kf(e,b,D,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,oe)):a&&eO(e,b,D,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,se),(te.type==="include"&&te.ids.size<2||g)&&e.current.setRowSelectionModel(te,"singleRowSelection")}},[e,n,a,b,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,g]),P=m.useCallback((D,G=!0,W=!1)=>{if(n.debug("Setting selection for several rows"),t.rowSelection===!1)return;const Z=new Set;for(let se=0;se<D.length;se+=1){const Se=D[se];e.current.isRowSelectable(Se)&&Z.add(Se)}const te=ri(e);let ne;if(W){if(ne={type:"include",ids:Z},G){const se=ps(ne);if(a){const Se=be=>{se.select(be)};for(const be of Z)kf(e,b,be,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,Se)}}else ne.ids=new Set;if(te.type===ne.type&&ne.ids.size===te.ids.size&&Array.from(ne.ids).every(se=>te.ids.has(se)))return}else{ne={type:te.type,ids:new Set(te.ids)};const se=ps(ne),Se=de=>{se.select(de)},be=de=>{se.unselect(de)};for(const de of Z)G?(se.select(de),a&&kf(e,b,de,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,Se)):(be(de),a&&eO(e,b,de,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,be))}(ne.type==="include"&&ne.ids.size<2||g)&&e.current.setRowSelectionModel(ne,"multipleRowsSelection")},[n,a,g,e,b,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,t.rowSelection]),R=m.useCallback(D=>{if(!l||!a||D.ids.size===0&&D.type==="include")return D;const G={type:D.type,ids:new Set(D.ids)},W=ps(G),Z=te=>{W.select(te)};for(const te of D.ids)kf(e,b,te,t.rowSelectionPropagation?.descendants??!1,t.rowSelectionPropagation?.parents??!1,Z,W);return G},[e,b,t.rowSelectionPropagation?.descendants,t.rowSelectionPropagation?.parents,l,a]),A=m.useCallback(({startId:D,endId:G},W=!0,Z=!1)=>{if(!e.current.getRow(D)||!e.current.getRow(G))return;n.debug(`Expanding selection from row ${D} to row ${G}`);const te=Lu(e),ne=te.indexOf(D),oe=te.indexOf(G),[se,Se]=ne>oe?[oe,ne]:[ne,oe],be=te.slice(se,Se+1);e.current.selectRows(be,W,Z)},[e,n]),z={selectRow:O,setRowSelectionModel:S,getSelectedRows:E,isRowSelected:w,isRowSelectable:M},k={selectRows:P,selectRowRange:A,getPropagatedRowSelectionModel:R};Dt(e,z,"public"),Dt(e,k,t.signature===ci.DataGrid?"private":"public");const L=m.useRef(!0),H=m.useCallback((D=!1)=>{if(L.current)return;const G=ri(e),W=kl(e),Z=eo(e),te=hd(e),ne=de=>t.filterMode==="server"?!W[de]:!Z[de]||te[de]===!1,oe={type:G.type,ids:new Set(G.ids)},se=ps(oe);let Se=!1;for(const de of G.ids){if(ne(de)){if(t.keepNonExistentRowsSelected)continue;se.unselect(de),Se=!0;continue}if(!t.rowSelectionPropagation?.parents)continue;const ke=b[de];if(ke?.type==="group"){if(ke.isAutoGenerated){se.unselect(de),Se=!0;continue}ke.children.every(Ne=>te[Ne]===!1)||(se.unselect(de),Se=!0)}}const be=l&&t.rowSelectionPropagation?.parents&&(oe.ids.size>0||oe.type==="exclude");if(Se||be&&!D)if(be)if(oe.type==="exclude"){const de=C(),ke=[];for(let Ae=0;Ae<de.length;Ae+=1){const Ne=de[Ae];(t.keepNonExistentRowsSelected||!ne(Ne))&&se.has(Ne)&&ke.push(Ne)}e.current.selectRows(ke,!0,!0)}else e.current.selectRows(Array.from(oe.ids),!0,!0);else e.current.setRowSelectionModel(oe,"multipleRowsSelection")},[e,l,t.rowSelectionPropagation?.parents,t.keepNonExistentRowsSelected,t.filterMode,b,C]),$=m.useCallback((D,G)=>{const W=G.metaKey||G.ctrlKey,Z=!d&&!W&&!vK(G),te=!g||Z,ne=e.current.isRowSelected(D),Se=tb(e)>1&&te||!ne;e.current.selectRow(D,Se,te)},[e,g,d]),I=m.useCallback((D,G)=>{if(f)return;const W=G.target.closest(`.${K.cell}`)?.getAttribute("data-field");W===md.field||W===qx||W&&e.current.getColumn(W)?.type===Zm||_i(e,D.id).type==="pinnedRow"||(G.shiftKey&&g?y(D.id):$(D.id,G))},[f,g,e,y,$]),j=m.useCallback((D,G)=>{g&&G.shiftKey&&window.getSelection()?.removeAllRanges()},[g]),q=m.useCallback((D,G)=>{g&&G.nativeEvent.shiftKey?y(D.id):e.current.selectRow(D.id,D.value,!g)},[e,y,g]),F=m.useCallback(D=>{const G=zr(e),W=I$(e),Z=G.items.length>0||W?.some(te=>te.length);!t.isRowSelectable&&!t.checkboxSelectionVisibleOnly&&(!l||t.rowSelectionPropagation?.descendants)&&!Z?e.current.setRowSelectionModel({type:D?"exclude":"include",ids:new Set},"multipleRowsSelection"):e.current.selectRows(C(),D)},[e,C,t.checkboxSelectionVisibleOnly,t.isRowSelectable,t.rowSelectionPropagation?.descendants,l]),_=m.useCallback(D=>{F(D.value)},[F]),B=m.useCallback((D,G)=>{if(e.current.getCellMode(D.id,D.field)!==rn.Edit&&!Vp(G)){if(am(G.key)&&G.shiftKey){const W=Lo(e);if(W&&W.id!==D.id){G.preventDefault();const Z=e.current.isRowSelected(W.id);if(!g){e.current.selectRow(W.id,!Z,!0);return}const te=e.current.getRowIndexRelativeToVisibleRows(W.id),ne=e.current.getRowIndexRelativeToVisibleRows(D.id);let oe,se;te>ne?Z?(oe=ne,se=te-1):(oe=ne,se=te):Z?(oe=te+1,se=ne):(oe=te,se=ne);const Se=zu(e),be=[];for(let de=oe;de<=se;de+=1)be.push(Se.rows[de].id);e.current.selectRows(be,!Z);return}}if(G.key===" "&&G.shiftKey){G.preventDefault(),$(D.id,G);return}String.fromCharCode(G.keyCode)==="A"&&(G.ctrlKey||G.metaKey)&&(G.preventDefault(),F(!0))}},[e,g,$,F]),J=wt(()=>{if(!t.rowSelection){e.current.setRowSelectionModel(op);return}if(s===void 0)return;if(!a||!l||s.type==="include"&&s.ids.size===0){e.current.setRowSelectionModel(s);return}const D=e.current.getPropagatedRowSelectionModel(s);if(D.type!==s.type||D.ids.size!==s.ids.size||!Array.from(s.ids).every(G=>D.ids.has(G))){e.current.setRowSelectionModel(D);return}e.current.setRowSelectionModel(s)});rt(e,"sortedRowsSet",r(()=>H(!0))),rt(e,"filteredRowsSet",r(()=>H())),rt(e,"rowClick",r(I)),rt(e,"rowSelectionCheckboxChange",r(q)),rt(e,"headerSelectionCheckboxChange",_),rt(e,"cellMouseDown",r(j)),rt(e,"cellKeyDown",r(B)),m.useEffect(()=>{J()},[e,s,t.rowSelection,J]);const Q=s!=null;m.useEffect(()=>{if(Q||!t.rowSelection||typeof M!="function")return;const D=ri(e);if(D.type!=="include")return;const G=new Set;for(const W of D.ids)M(W)&&G.add(W);G.size<D.ids.size&&e.current.setRowSelectionModel({type:D.type,ids:G})},[e,M,Q,t.rowSelection]),m.useEffect(()=>{if(!t.rowSelection||Q)return;const D=ri(e);!g&&(D.type==="include"&&D.ids.size>1||D.type==="exclude")&&e.current.setRowSelectionModel(op)},[e,g,d,Q,t.rowSelection]),m.useEffect(()=>{r(H)},[H,r]),m.useEffect(()=>{L.current&&(L.current=!1)},[])},Une=e=>{const{classes:t}=e;return m.useMemo(()=>Be({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Lt,t),[t])},qne=(e,t)=>{const n={classes:t.classes},r=Une(n),l=m.useCallback(a=>{const s=N({},md,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),u=t.checkboxSelection,d=a.lookup[ei]!=null;return u&&!d?(a.lookup[ei]=s,a.orderedFields=[ei,...a.orderedFields]):!u&&d?(delete a.lookup[ei],a.orderedFields=a.orderedFields.filter(f=>f!==ei)):u&&d&&(a.lookup[ei]=N({},s,a.lookup[ei]),t.columns.some(f=>f.field===ei)||(a.orderedFields=[ei,...a.orderedFields.filter(f=>f!==ei)])),a},[e,r,t.columns,t.checkboxSelection]);Jn(e,"hydrateColumns",l)},Wne=(e,t)=>{const n=t.sortModel??t.initialState?.sorting?.sortModel??[];return N({},e,{sorting:{sortModel:a$(n,t.disableMultipleColumnsSorting),sortedRows:[]}})},Kne=(e,t)=>{const n=jr(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Tl,changeEvent:"sortModelChange"});const r=m.useCallback((R,A)=>{const z=Tl(e),k=z.findIndex(H=>H.field===R);let L=[...z];return k>-1?A?.sort==null?L.splice(k,1):L.splice(k,1,A):L=[...z,A],L},[e]),l=m.useCallback((R,A)=>{const k=Tl(e).find(L=>L.field===R.field);if(k){const L=A===void 0?WA(R.sortingOrder??t.sortingOrder,k.sort):A;return L===void 0?void 0:N({},k,{sort:L})}return{field:R.field,sort:A===void 0?WA(R.sortingOrder??t.sortingOrder):A}},[e,t.sortingOrder]),a=m.useCallback((R,A)=>A==null||A.sortable===!1||t.disableColumnSorting?R:(A.sortingOrder||t.sortingOrder).some(k=>!!k)?[...R,"columnMenuSortItem"]:R,[t.sortingOrder,t.disableColumnSorting]),s=m.useCallback(()=>{e.current.setState(R=>{if(t.sortingMode==="server")return n.debug("Skipping sorting rows as sortingMode = server"),N({},R,{sorting:N({},R.sorting,{sortedRows:Nx(eo(e),Nr,!1)})});const A=Tl(e),z=XW(A,e),k=e.current.applyStrategyProcessor("sorting",{sortRowList:z});return N({},R,{sorting:N({},R.sorting,{sortedRows:k})})}),e.current.publishEvent("sortedRowsSet")},[e,n,t.sortingMode]),u=m.useCallback(R=>{Tl(e)!==R&&(n.debug("Setting sort model"),e.current.setState(qA(R,t.disableMultipleColumnsSorting)),e.current.applySorting())},[e,n,t.disableMultipleColumnsSorting]),d=m.useCallback((R,A,z)=>{const k=e.current.getColumn(R),L=l(k,A);let H;!z||t.disableMultipleColumnsSorting?H=L?.sort==null?[]:[L]:H=r(k.field,L),e.current.setSortModel(H)},[e,r,l,t.disableMultipleColumnsSorting]),f=m.useCallback(()=>Tl(e),[e]),h=m.useCallback(()=>Wx(e).map(A=>A.model),[e]),g=m.useCallback(()=>Hp(e),[e]),b=m.useCallback(R=>e.current.getSortedRowIds()[R],[e]);Dt(e,{getSortModel:f,getSortedRows:h,getSortedRowIds:g,getRowIdFromRowIndex:b,setSortModel:u,sortColumn:d,applySorting:s},"public");const C=m.useCallback((R,A)=>{const z=Tl(e);return!A.exportOnlyDirtyModels||t.sortModel!=null||t.initialState?.sorting?.sortModel!=null||z.length>0?N({},R,{sorting:{sortModel:z}}):R},[e,t.sortModel,t.initialState?.sorting?.sortModel]),S=m.useCallback((R,A)=>{const z=A.stateToRestore.sorting?.sortModel;return z==null?R:(e.current.setState(qA(z,t.disableMultipleColumnsSorting)),N({},R,{callbacks:[...R.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),w=m.useCallback(R=>{const A=eo(e),z=A[Nr],k=R.sortRowList?R.sortRowList(z.children.map(L=>A[L])):[...z.children];return z.footerId!=null&&k.push(z.footerId),k},[e]);Jn(e,"exportState",C),Jn(e,"restoreState",S),Sp(e,Sc,"sorting",w);const M=m.useCallback(({field:R,colDef:A},z)=>{if(!A.sortable||t.disableColumnSorting)return;const k=t.multipleColumnsSortingMode==="always"||z.shiftKey||z.metaKey||z.ctrlKey;d(R,void 0,k)},[d,t.disableColumnSorting,t.multipleColumnsSortingMode]),E=m.useCallback(({field:R,colDef:A},z)=>{!A.sortable||t.disableColumnSorting||z.key==="Enter"&&!z.ctrlKey&&!z.metaKey&&d(R,void 0,t.multipleColumnsSortingMode==="always"||z.shiftKey)},[d,t.disableColumnSorting,t.multipleColumnsSortingMode]),O=m.useCallback(()=>{const R=Tl(e),A=Ta(e);if(R.length>0){const z=R.filter(k=>A[k.field]);z.length<R.length&&e.current.setSortModel(z)}},[e]),P=m.useCallback(R=>{R==="sorting"&&e.current.applySorting()},[e]);Jn(e,"columnMenu",a),rt(e,"columnHeaderClick",M),rt(e,"columnHeaderKeyDown",E),rt(e,"rowsSet",e.current.applySorting),rt(e,"columnsChange",O),rt(e,"activeStrategyProcessorChange",P),Ec(()=>{e.current.applySorting()}),gn(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function RO(e){const{containerSize:t,scrollPosition:n,elementSize:r,elementOffset:l}=e,a=l+r;if(r>t)return l;if(a-t>n)return a-t;if(l<n)return l}const Yne=(e,t)=>{const n=Po(),r=jr(e,"useGridScroll"),l=e.current.columnHeadersContainerRef,a=e.current.virtualScrollerRef,s=Te(e,Es),u=m.useCallback(g=>{const b=lr(e),y=dd(e),C=or(e);if(!(g.rowIndex==null)&&y===0||C.length===0)return!1;r.debug(`Scrolling to cell at row ${g.rowIndex}, col: ${g.colIndex} `);let w={};if(g.colIndex!==void 0){const M=Tc(e);let E;if(typeof g.rowIndex<"u"){const O=s[g.rowIndex]?.id,P=e.current.unstable_getCellColSpanInfo(O,g.colIndex);P&&!P.spannedByColSpan&&(E=P.cellProps.width)}typeof E>"u"&&(E=C[g.colIndex].computedWidth),w.left=RO({containerSize:b.viewportOuterSize.width,scrollPosition:Math.abs(a.current.scrollLeft),elementSize:E,elementOffset:M[g.colIndex]})}if(g.rowIndex!==void 0){const M=Wm(e),E=cY(e),O=G$(e),P=t.pagination?g.rowIndex-E*O:g.rowIndex,R=M.positions[P+1]?M.positions[P+1]-M.positions[P]:M.currentPageTotalHeight-M.positions[P];w.top=RO({containerSize:b.viewportInnerSize.height,scrollPosition:a.current.scrollTop,elementSize:R,elementOffset:M.positions[P]})}return w=e.current.unstable_applyPipeProcessors("scrollToIndexes",w,g),typeof w.left!==void 0||typeof w.top!==void 0?(e.current.scroll(w),!0):!1},[r,e,a,t.pagination,s]),d=m.useCallback(g=>{if(a.current&&g.left!==void 0&&l.current){const b=n?-1:1;l.current.scrollLeft=g.left,a.current.scrollLeft=b*g.left,r.debug(`Scrolling left: ${g.left}`)}a.current&&g.top!==void 0&&(a.current.scrollTop=g.top,r.debug(`Scrolling top: ${g.top}`)),r.debug("Scrolling, updating container, and viewport")},[a,n,l,r]),f=m.useCallback(()=>a?.current?{top:a.current.scrollTop,left:a.current.scrollLeft}:{top:0,left:0},[a]);Dt(e,{scroll:d,scrollToIndexes:u,getScrollPosition:f},"public")};function Xne(e,t){pn(e,"columnHeaderClick",t.onColumnHeaderClick),pn(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),pn(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),pn(e,"columnHeaderOver",t.onColumnHeaderOver),pn(e,"columnHeaderOut",t.onColumnHeaderOut),pn(e,"columnHeaderEnter",t.onColumnHeaderEnter),pn(e,"columnHeaderLeave",t.onColumnHeaderLeave),pn(e,"cellClick",t.onCellClick),pn(e,"cellDoubleClick",t.onCellDoubleClick),pn(e,"cellKeyDown",t.onCellKeyDown),pn(e,"preferencePanelClose",t.onPreferencePanelClose),pn(e,"preferencePanelOpen",t.onPreferencePanelOpen),pn(e,"menuOpen",t.onMenuOpen),pn(e,"menuClose",t.onMenuClose),pn(e,"rowDoubleClick",t.onRowDoubleClick),pn(e,"rowClick",t.onRowClick),pn(e,"stateChange",t.onStateChange)}const Lf={width:0,height:0},Qne={isReady:!1,root:Lf,viewportOuterSize:Lf,viewportInnerSize:Lf,contentSize:Lf,minimumSize:Lf,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,groupHeaderHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0},Zne=(e,t,n)=>{const r=Qne,l=Fp(n);return N({},e,{dimensions:N({},r,tre(t,n,l,Ym(n)))})},Jne=ot(or,Tc,(e,t)=>{const n=e.length;return n===0?0:sc(t[n-1]+e[n-1].computedWidth,1)});function ere(e,t){const n=jr(e,"useResizeContainer"),r=m.useRef(!1),l=e.current.virtualizer,a=l.api.updateDimensions,s=l.api.getViewportPageSize,d={getRootDimensions:m.useCallback(()=>lr(e),[e])},f={updateDimensions:a,getViewportPageSize:s};Dt(e,d,"public"),Dt(e,f,"private");const h=b=>{AO(b,lr(e))},g=b=>{b.height===0&&!r.current&&!t.autoHeight&&!D1&&(n.error(["The parent DOM element of the Data Grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
`)),r.current=!0),b.width===0&&!r.current&&!D1&&(n.error(["The parent DOM element of the Data Grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
`)),r.current=!0)};pn(e,"rootMount",h),pn(e,"resize",g),pn(e,"debouncedResize",t.onResize),Um(l.store,Ol.selectors.dimensions,(b,y)=>{e.current.rootElementRef.current&&AO(e.current.rootElementRef.current,y),nre(y.viewportInnerSize,b.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",y.viewportInnerSize),e.current.publishEvent("debouncedResize",y.root)})}function AO(e,t){const n=(r,l)=>e.style.setProperty(r,l);n("--DataGrid-hasScrollX",`${Number(t.hasScrollX)}`),n("--DataGrid-hasScrollY",`${Number(t.hasScrollY)}`),n("--DataGrid-scrollbarSize",`${t.scrollbarSize}px`),n("--DataGrid-rowWidth",`${t.rowWidth}px`),n("--DataGrid-columnsTotalWidth",`${t.columnsTotalWidth}px`),n("--DataGrid-leftPinnedWidth",`${t.leftPinnedWidth}px`),n("--DataGrid-rightPinnedWidth",`${t.rightPinnedWidth}px`),n("--DataGrid-headerHeight",`${t.headerHeight}px`),n("--DataGrid-headersTotalHeight",`${t.headersTotalHeight}px`),n("--DataGrid-topContainerHeight",`${t.topContainerHeight}px`),n("--DataGrid-bottomContainerHeight",`${t.bottomContainerHeight}px`),n("--height",`${t.rowHeight}px`)}function tre(e,t,n,r){const l=r$(e.rowHeight,gm.rowHeight);return{rowHeight:Math.floor(l*n),headerHeight:Math.floor(e.columnHeaderHeight*n),groupHeaderHeight:Math.floor((e.columnGroupHeaderHeight??e.columnHeaderHeight)*n),headerFilterHeight:Math.floor((e.headerFilterHeight??e.columnHeaderHeight)*n),columnsTotalWidth:Jne(t),headersTotalHeight:Gp(t,e),leftPinnedWidth:r.left.reduce((a,s)=>a+s.computedWidth,0),rightPinnedWidth:r.right.reduce((a,s)=>a+s.computedWidth,0)}}function nre(e,t){return e.width===t.width&&e.height===t.height}const rre=(e,t,n)=>{const r=dW(n),l=dd(n),a=gd(n),s=Math.min(a.enabled?a.paginationModel.pageSize:l,l);return N({},e,{rowsMeta:{currentPageTotalHeight:s*r,positions:Array.from({length:s},(u,d)=>d*r),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0}})},ore=(e,t)=>{const n=e.current.virtualizer,{getRowHeight:r,setLastMeasuredRowIndex:l,storeRowHeightMeasurement:a,resetRowHeights:s,hydrateRowsMeta:u,observeRowHeight:d,rowHasAutoHeight:f,getRowHeightEntry:h,getLastMeasuredRowIndex:g}=n.api.rowsMeta;iM(e,"rowHeight",u);const b={unstable_getRowHeight:r,unstable_setLastMeasuredRowIndex:l,unstable_storeRowHeightMeasurement:a,resetRowHeights:s},y={hydrateRowsMeta:u,observeRowHeight:d,rowHasAutoHeight:f,getRowHeightEntry:h,getLastMeasuredRowIndex:g};Dt(e,b,"public"),Dt(e,y,"private")},lre=e=>{const t=m.useCallback((l={})=>e.current.unstable_applyPipeProcessors("exportState",{},l),[e]),n=m.useCallback(l=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:l}).callbacks.forEach(s=>{s()})},[e]);Dt(e,{exportState:t,restoreState:n},"public")},ire=e=>{const t=e.current.virtualizer,n=t.api.resetColSpan,r=t.api.getCellColSpanInfo,l=t.api.calculateColSpan,a={unstable_getCellColSpanInfo:r},s={resetColSpan:n,calculateColSpan:l};Dt(e,a,"public"),Dt(e,s,"private"),rt(e,"columnOrderChange",n)},Rz=(e,t,n)=>{if(f$(e)){if(n[e.field]!==void 0)throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
`));n[e.field]=t;return}const{groupId:r,children:l}=e;l.forEach(a=>{Rz(a,[...t,r],n)})},F1=e=>{if(!e)return{};const t={};return e.forEach(n=>{Rz(n,[],t)}),t},H1=(e,t,n)=>{const r=d=>t[d]??[],l=[],a=Math.max(0,...e.map(d=>r(d).length)),s=(d,f,h)=>{const g=r(d),b=r(f);for(let y=0;y<=h;y+=1)if(g[y]!==b[y])return!1;return!0},u=(d,f)=>{const h=n?.left,g=n?.right,b=!!h?.includes(d),y=!!h?.includes(f),C=!!g?.includes(d),S=!!g?.includes(f);return b!==y||C!==S};for(let d=0;d<a;d+=1){const f=[];for(let h=0;h<e.length;h+=1){const g=e[h],b=r(g)[d]??null;if(f.length===0){f.push({columnFields:[g],groupId:b});continue}const y=f[f.length-1],C=y.columnFields[y.columnFields.length-1];y.groupId!==b||!s(C,g,d)||u(C,g)?f.push({columnFields:[g],groupId:b}):y.columnFields.push(g)}l.push(f)}return l},are=["groupId","children"],aM=e=>{const t={};for(let n=0;n<e.length;n+=1){const r=e[n];if(f$(r))continue;const{groupId:l,children:a}=r,s=Ge(r,are);if(!l)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const u=N({},s,{groupId:l}),d=aM(a);if(d[l]!==void 0||t[l]!==void 0)throw new Error(`MUI X: The groupId ${l} is used multiple times in the columnGroupingModel.`);Object.assign(t,d),t[l]=u}return t},sre=(e,t,n)=>{if(n.current.caches.columnGrouping={lastColumnGroupingModel:t.columnGroupingModel},!t.columnGroupingModel)return e;const r=zi(n),l=pd(n),a=aM(t.columnGroupingModel??[]),s=F1(t.columnGroupingModel??[]),u=H1(r,s,n.current.state.pinnedColumns??{}),d=l.length===0?0:Math.max(...l.map(f=>s[f]?.length??0));return N({},e,{columnGrouping:{lookup:a,unwrappedGroupingModel:s,headerStructure:u,maxDepth:d}})},cre=(e,t)=>{const n=m.useCallback(u=>Y$(e)[u]??[],[e]),r=m.useCallback(()=>X$(e),[e]);Dt(e,{getColumnGroupPath:n,getAllGroupDetails:r},"public");const a=m.useCallback(()=>{const u=F1(t.columnGroupingModel??[]);e.current.setState(d=>{const f=d.columns?.orderedFields??[],h=d.pinnedColumns??{},g=H1(f,u,h);return N({},d,{columnGrouping:N({},d.columnGrouping,{headerStructure:g})})})},[e,t.columnGroupingModel]),s=m.useCallback(u=>{e.current.caches.columnGrouping.lastColumnGroupingModel=u;const d=e.current.getPinnedColumns?.()??{},f=zi(e),h=pd(e),g=aM(u??[]),b=F1(u??[]),y=H1(f,b,d),C=h.length===0?0:Math.max(...h.map(S=>b[S]?.length??0));e.current.setState(S=>N({},S,{columnGrouping:{lookup:g,unwrappedGroupingModel:b,headerStructure:y,maxDepth:C}}))},[e]);rt(e,"columnIndexChange",a),rt(e,"columnsChange",()=>{s(t.columnGroupingModel)}),rt(e,"columnVisibilityModelChange",()=>{s(t.columnGroupingModel)}),m.useEffect(()=>{t.columnGroupingModel!==e.current.caches.columnGrouping.lastColumnGroupingModel&&s(t.columnGroupingModel)},[e,s,t.columnGroupingModel])};function ure(){let e,t;const n=new Promise((r,l)=>{e=r,t=l});return n.resolve=e,n.reject=t,n}function OO(e,t){if(t!==void 0&&e.changedTouches){for(let n=0;n<e.changedTouches.length;n+=1){const r=e.changedTouches[n];if(r.identifier===t)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function IO(e,t,n,r){let l=e;return r==="Right"?l+=t-n.left:l+=n.right-t,l}function dre(e,t,n){return n==="Left"?e-t.left:t.right-e}function fre(e){return e==="Right"?"Left":"Right"}function pre(e,t){const n=e.classList.contains(K["columnSeparator--sideRight"])?"Right":"Left";return t?fre(n):n}function kO(e){e.preventDefault(),e.stopImmediatePropagation()}function hre(e){const t=m.useRef(void 0),n=()=>rQ(e),r=Te(e,n);return m.useEffect(()=>{t.current&&r===!1&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(n()===!1)return Promise.resolve();t.current=ure()}return t.current}}function gre(e,t){if(e.length<4)return e;const n=e.slice();n.sort((u,d)=>u-d);const r=n[Math.floor(n.length*.25)],l=n[Math.floor(n.length*.75)-1],a=l-r,s=a<5?5:a*t;return n.filter(u=>u>r-s&&u<l+s)}function mre(e,t,n){const r={},l=e.current.rootElementRef.current;return l.classList.add(K.autosizing),n.forEach(a=>{const u=$Z(e.current,a.field).map(C=>C.getBoundingClientRect().width??0),d=t.includeOutliers?u:gre(u,t.outliersFactor);if(t.includeHeaders){const C=LZ(e.current,a.field);if(C){const S=C.querySelector(`.${K.columnHeaderTitle}`),w=C.querySelector(`.${K.columnHeaderTitleContainerContent}`),M=C.querySelector(`.${K.iconButtonContainer}`),E=C.querySelector(`.${K.menuIcon}`),O=S??w,P=window.getComputedStyle(C,null),R=parseInt(P.paddingLeft,10)+parseInt(P.paddingRight,10),z=O.scrollWidth+1+R+(M?.clientWidth??0)+(E?.clientWidth??0);d.push(z)}}const f=a.minWidth!==-1/0&&a.minWidth!==void 0,h=a.maxWidth!==1/0&&a.maxWidth!==void 0,g=f?a.minWidth:0,b=h?a.maxWidth:1/0,y=d.length===0?0:Math.max(...d);r[a.field]=pc(y,g,b)}),l.classList.remove(K.autosizing),r}const bre=e=>N({},e,{columnResize:{resizingColumnField:""}});function vre(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const yre=(e,t)=>{const n=Po(),r=jr(e,"useGridColumnResize"),l=Nl(vre).current,a=m.useRef(null),s=m.useRef(null),u=$o(),d=m.useRef(void 0),f=L=>{r.debug(`Updating width to ${L} for col ${l.colDef.field}`);const H=l.columnHeaderElement.offsetWidth,$=L-H,I=L-l.initialColWidth;if(I>0){const F=l.initialTotalWidth+I;e.current.rootElementRef?.current?.style.setProperty("--DataGrid-rowWidth",`${F}px`)}l.colDef.computedWidth=L,l.colDef.width=L,l.colDef.flex=0,l.columnHeaderElement.style.width=`${L}px`;const j=l.headerFilterElement;j&&(j.style.width=`${L}px`),l.groupHeaderElements.forEach(F=>{const _=F;let B;_.getAttribute("aria-colspan")==="1"?B=`${L}px`:B=`${_.offsetWidth+$}px`,_.style.width=B}),l.cellElements.forEach(F=>{const _=F;let B;_.getAttribute("aria-colspan")==="1"?B=`${L}px`:B=`${_.offsetWidth+$}px`,_.style.setProperty("--width",B)});const q=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,l.colDef.field);q===is.LEFT&&(Mu(l.fillerLeft,"width",$),l.leftPinnedCellsAfter.forEach(F=>{Mu(F,"left",$)}),l.leftPinnedHeadersAfter.forEach(F=>{Mu(F,"left",$)})),q===is.RIGHT&&(Mu(l.fillerRight,"width",$),l.rightPinnedCellsBefore.forEach(F=>{Mu(F,"right",$)}),l.rightPinnedHeadersBefore.forEach(F=>{Mu(F,"right",$)}))},h=L=>{if(M(),l.previousMouseClickEvent){const H=l.previousMouseClickEvent,$=H.timeStamp,I=H.clientX,j=H.clientY;if(L.timeStamp-$<300&&L.clientX===I&&L.clientY===j){l.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,L);return}}if(l.colDef){e.current.setColumnWidth(l.colDef.field,l.colDef.width),r.debug(`Updating col ${l.colDef.field} with new width: ${l.colDef.width}`);const H=ui(e);l.groupHeaderElements.forEach($=>{const I=RZ($),j=$,F=`${I.reduce((_,B)=>H.columnVisibilityModel[B]!==!1?_+H.lookup[B].computedWidth:_,0)}px`;j.style.width=F})}u.start(0,()=>{e.current.publishEvent("columnResizeStop",null,L)})},g=(L,H,$)=>{const I=e.current.rootElementRef.current;l.initialColWidth=L.computedWidth,l.initialTotalWidth=e.current.getRootDimensions().rowWidth,l.colDef=L,l.columnHeaderElement=PZ(e.current.columnHeadersContainerRef.current,L.field);const j=I.querySelector(`.${K.headerFilterRow} [data-field="${Ea(L.field)}"]`);j&&(l.headerFilterElement=j),l.groupHeaderElements=AZ(e.current.columnHeadersContainerRef?.current,L.field),l.cellElements=OZ(l.columnHeaderElement,e.current),l.fillerLeft=gO(e.current,n?"filler--pinnedRight":"filler--pinnedLeft"),l.fillerRight=gO(e.current,n?"filler--pinnedLeft":"filler--pinnedRight");const q=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,l.colDef.field);l.leftPinnedCellsAfter=q!==is.LEFT?[]:IZ(e.current,l.columnHeaderElement,n),l.rightPinnedCellsBefore=q!==is.RIGHT?[]:kZ(e.current,l.columnHeaderElement,n),l.leftPinnedHeadersAfter=q!==is.LEFT?[]:_Z(e.current,l.columnHeaderElement,n),l.rightPinnedHeadersBefore=q!==is.RIGHT?[]:DZ(e.current,l.columnHeaderElement,n),s.current=pre(H,n),a.current=dre($,l.columnHeaderElement.getBoundingClientRect(),s.current)},b=wt(h),y=wt(L=>{if(L.buttons===0){b(L);return}let H=IO(a.current,L.clientX,l.columnHeaderElement.getBoundingClientRect(),s.current);H=pc(H,l.colDef.minWidth,l.colDef.maxWidth),f(H);const $={element:l.columnHeaderElement,colDef:l.colDef,width:H};e.current.publishEvent("columnResize",$,L)}),C=wt(L=>{OO(L,d.current)&&h(L)}),S=wt(L=>{const H=OO(L,d.current);if(!H)return;if(L.type==="mousemove"&&L.buttons===0){C(L);return}let $=IO(a.current,H.x,l.columnHeaderElement.getBoundingClientRect(),s.current);$=pc($,l.colDef.minWidth,l.colDef.maxWidth),f($);const I={element:l.columnHeaderElement,colDef:l.colDef,width:$};e.current.publishEvent("columnResize",I,L)}),w=wt(L=>{const H=fm(L.target,K["columnSeparator--resizable"]);if(!H)return;const $=L.changedTouches[0];$!=null&&(d.current=$.identifier);const I=fm(L.target,K.columnHeader),j=EZ(I),q=e.current.getColumn(j);r.debug(`Start Resize on col ${q.field}`),e.current.publishEvent("columnResizeStart",{field:j},L),g(q,H,$.clientX);const F=sr(L.currentTarget);F.addEventListener("touchmove",S),F.addEventListener("touchend",C)}),M=m.useCallback(()=>{const L=sr(e.current.rootElementRef.current);L.body.style.removeProperty("cursor"),L.removeEventListener("mousemove",y),L.removeEventListener("mouseup",b),L.removeEventListener("touchmove",S),L.removeEventListener("touchend",C),setTimeout(()=>{L.removeEventListener("click",kO,!0)},100),l.columnHeaderElement&&(l.columnHeaderElement.style.pointerEvents="unset")},[e,l,y,b,S,C]),E=m.useCallback(({field:L})=>{e.current.setState(H=>N({},H,{columnResize:N({},H.columnResize,{resizingColumnField:L})}))},[e]),O=m.useCallback(()=>{e.current.setState(L=>N({},L,{columnResize:N({},L.columnResize,{resizingColumnField:""})}))},[e]),P=wt(({colDef:L},H)=>{if(H.button!==0||!H.currentTarget.classList.contains(K["columnSeparator--resizable"]))return;H.preventDefault(),r.debug(`Start Resize on col ${L.field}`),e.current.publishEvent("columnResizeStart",{field:L.field},H),g(L,H.currentTarget,H.clientX);const $=sr(e.current.rootElementRef.current);$.body.style.cursor="col-resize",l.previousMouseClickEvent=H.nativeEvent,$.addEventListener("mousemove",y),$.addEventListener("mouseup",b),$.addEventListener("click",kO,!0)}),R=wt((L,H)=>{if(t.disableAutosize||H.button!==0)return;const $=e.current.state.columns.lookup[L.field];$.resizable!==!1&&e.current.autosizeColumns(N({},t.autosizeOptions,{disableColumnVirtualization:!1,columns:[$.field]}))}),A=hre(e),z=m.useRef(!1),k=m.useCallback(async L=>{if(!e.current.rootElementRef?.current||z.current)return;z.current=!0;const $=ui(e),I=N({},dQ,L,{columns:L?.columns??$.orderedFields});I.columns=I.columns.filter(q=>$.columnVisibilityModel[q]!==!1);const j=I.columns.map(q=>e.current.state.columns.lookup[q]);try{!t.disableVirtualization&&I.disableColumnVirtualization&&(e.current.unstable_setColumnVirtualization(!1),await A());const q=mre(e,I,j),F=j.map(_=>N({},_,{width:q[_.field],computedWidth:q[_.field],flex:0}));if(I.expand){const B=$.orderedFields.map(G=>$.lookup[G]).filter(G=>$.columnVisibilityModel[G.field]!==!1).reduce((G,W)=>G+(q[W.field]??W.computedWidth??W.width),0),D=e.current.getRootDimensions().viewportInnerSize.width-B;if(D>0){const G=D/(F.length||1);F.forEach(W=>{W.width+=G,W.computedWidth+=G})}}e.current.updateColumns(F),F.forEach((_,B)=>{if(_.width!==j[B].width){const J=_.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(_.field),colDef:_,width:J})}})}finally{t.disableVirtualization||e.current.unstable_setColumnVirtualization(!0),z.current=!1}},[e,A,t.disableVirtualization]);m.useEffect(()=>M,[M]),Dm(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),tz(e,()=>e.current.columnHeadersContainerRef?.current,"touchstart",w,{passive:!0}),Dt(e,{autosizeColumns:k},"public"),rt(e,"columnResizeStop",O),rt(e,"columnResizeStart",E),rt(e,"columnSeparatorMouseDown",P),rt(e,"columnSeparatorDoubleClick",R),pn(e,"columnResize",t.onColumnResize),pn(e,"columnWidthChange",t.onColumnWidthChange)};function Mu(e,t,n){e&&(e.style[t]=`${parseInt(e.style[t],10)+n}px`)}function Cre(e,t){return e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?null:e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex>t.lastRowIndex?{firstRowIndex:t.lastRowIndex,lastRowIndex:e.lastRowIndex}:e.firstRowIndex<t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?{firstRowIndex:e.firstRowIndex,lastRowIndex:t.firstRowIndex-1}:e}function _O(e){return e.firstRowIndex!==0||e.lastRowIndex!==0}const n0=(e,t,n)=>{if(!e)return null;let r=e[t.field];const l=t.rowSpanValueGetter??t.valueGetter;return l&&(r=l(r,e,t,n)),r},Az={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},Sre={firstRowIndex:0,lastRowIndex:0},Fu={caches:Az,processedRange:Sre},DO=20,Oz=(e,t,n,r,l,a)=>{const s=e.current.virtualizer,u=a?Fu:td.selectors.state(s.store.state),d=N({},u.caches.spannedCells),f=N({},u.caches.hiddenCells),h=N({},u.caches.hiddenCellOriginMap),g={firstRowIndex:Math.min(u.processedRange.firstRowIndex,l.firstRowIndex),lastRowIndex:Math.max(u.processedRange.lastRowIndex,l.lastRowIndex)};return t.forEach((b,y)=>{for(let C=l.firstRowIndex;C<l.lastRowIndex;C+=1){const S=n[C];if(f[S.id]?.[y])continue;const w=n0(S.model,b,e);if(w==null)continue;let M=S.id,E=C,O=0;const P=[];if(C===l.firstRowIndex){let A=C-1,z=n[A];for(;A>=r.firstRowIndex&&z&&n0(z.model,b,e)===w;){const k=n[A+1];f[k.id]?f[k.id][y]=!0:f[k.id]={[y]:!0},P.push(C),O+=1,M=z.id,E=A,A-=1,z=n[A]}}P.forEach(A=>{h[A]?h[A][y]=E:h[A]={[y]:E}});let R=C+1;for(;R<=r.lastRowIndex&&n[R]&&n0(n[R].model,b,e)===w;){const A=n[R];f[A.id]?f[A.id][y]=!0:f[A.id]={[y]:!0},h[R]?h[R][y]=E:h[R]={[y]:E},R+=1,O+=1}O>0&&(d[M]?d[M][y]=O+1:d[M]={[y]:O+1})}}),{caches:{spannedCells:d,hiddenCells:f,hiddenCellOriginMap:h},processedRange:g}},wre=(e,t)=>{const n=ac(t).length;if(e.pagination){const r=G$(t);let l=DO;return r>0&&(l=r-1),{firstRowIndex:0,lastRowIndex:Math.min(l,n)}}return{firstRowIndex:0,lastRowIndex:Math.min(DO,n)}},xre=(e,t,n)=>{if(!t.rowSpanning)return N({},e,{rowSpanning:Fu});const r=e.rows.dataRowIds||[],l=e.columns.orderedFields||[],a=e.rows.dataRowIdToModelLookup,s=e.columns.lookup,u=!!e.filter.filterModel.items.length||!!e.filter.filterModel.quickFilterValues?.length;if(!r.length||!l.length||!a||!s||u)return N({},e,{rowSpanning:Fu});const d=wre(t,n),f=r.map(b=>({id:b,model:a[b]})),h=l.map(b=>s[b]),g=Oz(n,h,f,d,d,!0);return N({},e,{rowSpanning:g})},Mre=(e,t)=>{const n=e.current.virtualizer.store,r=m.useCallback((a,s=!1)=>{const{range:u,rows:d}=zu(e);if(u===null||!_O(a))return;const f=s?Fu:td.selectors.state(n.state),h=Cre({firstRowIndex:a.firstRowIndex,lastRowIndex:Math.min(a.lastRowIndex,u.lastRowIndex-u.firstRowIndex+1)},f.processedRange);if(h===null)return;const g=or(e),b=Oz(e,g,d,u,h,s),y=Object.keys(b.caches.spannedCells).length,C=Object.keys(b.caches.hiddenCells).length,S=Object.keys(f.caches.spannedCells).length,w=Object.keys(f.caches.hiddenCells).length;!(s||y!==S||C!==w)||y===0&&S===0||n.set("rowSpanning",b)},[e,n]),l=m.useCallback(()=>{const a=tM(e);_O(a)&&r(a,!0)},[e,r]);rt(e,"renderedRowsIntervalChange",fs(t.rowSpanning,r)),rt(e,"sortedRowsSet",fs(t.rowSpanning,l)),rt(e,"paginationModelChange",fs(t.rowSpanning,l)),rt(e,"filteredRowsSet",fs(t.rowSpanning,l)),rt(e,"columnsChange",fs(t.rowSpanning,l)),m.useEffect(()=>{t.rowSpanning?n.state.rowSpanning.caches===Az&&l():n.state.rowSpanning!==Fu&&n.set("rowSpanning",Fu)},[e,n,l,t.rowSpanning])},Tre=(e,t,n)=>N({},e,{listViewColumn:t.listViewColumn?N({},t.listViewColumn,{computedWidth:N1(n)}):void 0});function Ere(e,t){const n=()=>{e.current.setState(a=>a.listViewColumn?N({},a,{listViewColumn:N({},a.listViewColumn,{computedWidth:N1(e)})}):a)},r=m.useRef(null);rt(e,"viewportInnerSizeChange",a=>{r.current!==a.width&&(r.current=a.width,n())}),rt(e,"columnVisibilityModelChange",n),gn(()=>{const a=t.listViewColumn;a&&e.current.setState(s=>N({},s,{listViewColumn:N({},a,{computedWidth:N1(e)})}))},[e,t.listViewColumn]),m.useEffect(()=>{t.listView&&t.listViewColumn},[t.listView,t.listViewColumn])}function N1(e){return lr(e).viewportInnerSize.width}const Pre=ot(zr,Tl,Jr,(e,t,n)=>({groupKeys:[],paginationModel:n,sortModel:t,filterModel:e,start:n.page*n.pageSize,end:n.page*n.pageSize+n.pageSize-1}));let r0=function(e){return e.Default="set-new-rows",e.LazyLoading="replace-row-range",e}({});class Gg{constructor(t){this.chunkSize=void 0,this.getCacheKeys=n=>{if(this.chunkSize<1||typeof n.start!="number")return[n];const r=[];for(let l=n.start;l<=n.end;l+=this.chunkSize){const a=Math.min(l+this.chunkSize-1,n.end);r.push(N({},n,{start:l,end:a}))}return r},this.splitResponse=(n,r)=>{const l=this.getCacheKeys(n);if(l.length===1)return new Map([[n,r]]);const a=new Map;return l.forEach(s=>{const u=s.end===n.end,d=N({},r,{pageInfo:N({},r.pageInfo,{hasNextPage:r.pageInfo?.hasNextPage!==void 0&&!u?!0:r.pageInfo?.hasNextPage,nextCursor:r.pageInfo?.nextCursor!==void 0&&!u?r.rows[s.end+1].id:r.pageInfo?.nextCursor}),rows:typeof s.start!="number"||typeof n.start!="number"?r.rows:r.rows.slice(s.start-n.start,s.end-n.start+1)});a.set(s,d)}),a},this.chunkSize=t}}Gg.mergeResponses=e=>e.length===1?e[0]:e.reduce((t,n)=>({rows:[...t.rows,...n.rows],rowCount:n.rowCount,pageInfo:n.pageInfo}),{rows:[],rowCount:0,pageInfo:{}});const Rre=["skipCache"],Are={clear:()=>{},get:()=>{},set:()=>{}};function LO(e,t={}){return e===null?Are:e??new gQ(t)}const Ore=(e,t,n={})=>{const r=m.useCallback(()=>{e.current.setStrategyAvailability(hs.DataSource,r0.Default,t.dataSource?()=>!0:()=>!1)},[e,t.dataSource]),[l,a]=m.useState(!1),s=Te(e,Jr),u=m.useRef(0),d=t.onDataSourceError,f=Nl(()=>{if(!t.pagination)return new Gg(s.pageSize);const R=t.pageSizeOptions.map(z=>typeof z=="number"?z:z.value).sort((z,k)=>z-k),A=Math.min(s.pageSize,R[0]);return new Gg(A)}).current,[h,g]=m.useState(()=>LO(t.dataSourceCache,n.cacheOptions)),b=m.useCallback(async(R,A)=>{const z=t.dataSource?.getRows;if(!z)return;if(R&&R!==Nr&&t.signature!=="DataGrid"){n.fetchRowChildren?.([R]);return}n.clearDataSourceState?.();const k=A||{},{skipCache:L}=k,H=Ge(k,Rre),$=N({},Pre(e),e.current.unstable_applyPipeProcessors("getRowsParams",{}),H),j=f.getCacheKeys($).map(F=>h.get(F));if(!L&&j.every(F=>F!==void 0)){e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:Gg.mergeResponses(j),fetchParams:$});return}(l||e.current.getRowsCount()===0)&&e.current.setLoading(!0);const q=u.current+1;u.current=q;try{const F=await z($);f.splitResponse($,F).forEach((B,J)=>h.set(J,B)),u.current===q&&e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:F,fetchParams:$})}catch(F){u.current===q&&(e.current.applyStrategyProcessor("dataSourceRowsUpdate",{error:F,fetchParams:$}),typeof d=="function"&&d(new mQ({message:F?.message,params:$,cause:F})))}finally{l&&u.current===q&&e.current.setLoading(!1)}},[f,h,e,l,t.dataSource?.getRows,d,n,t.signature]),y=m.useCallback(()=>{a(e.current.getActiveStrategy(hs.DataSource)===r0.Default)},[e]),C=m.useCallback(R=>{if("error"in R){e.current.setRows([]);return}const{response:A}=R;A.rowCount!==void 0&&e.current.setRowCount(A.rowCount),e.current.setRows(A.rows),e.current.unstable_applyPipeProcessors("processDataSourceRows",{params:R.fetchParams,response:A},!0)},[e]),S=t.dataSource?.updateRow,w=n.handleEditRow,M=m.useCallback(async R=>{if(S)try{const A=await S(R);return typeof w=="function"?(w(R,A),A):(e.current.updateNestedRows([A],[]),A&&!Ll(A,R.previousRow)&&e.current.dataSource.cache.clear(),A)}catch(A){throw typeof d=="function"&&d(new bQ({message:A?.message,params:R,cause:A})),A}},[e,S,d,w]),E={dataSource:{fetchRows:b,cache:h,editRow:M}},O=m.useMemo(()=>_p(b,0),[b]),P=m.useRef(!0);return m.useEffect(()=>{if(P.current){P.current=!1;return}if(t.dataSourceCache===void 0)return;const R=LO(t.dataSourceCache,n.cacheOptions);g(A=>A!==R?R:A)},[t.dataSourceCache,n.cacheOptions]),m.useEffect(()=>(t.dataSource&&(e.current.dataSource.cache.clear(),e.current.dataSource.fetchRows()),()=>{u.current+=1}),[e,t.dataSource]),{api:{public:E},debouncedFetchRows:O,strategyProcessor:{strategyName:r0.Default,group:"dataSourceRowsUpdate",processor:C},setStrategyAvailability:r,cacheChunkManager:f,cache:h,events:{strategyAvailabilityChange:y,sortModelChange:fs(l,()=>O()),filterModelChange:fs(l,()=>O()),paginationModelChange:fs(l,()=>O())}}},Ire=(e,t)=>{const{api:n,strategyProcessor:r,events:l,setStrategyAvailability:a}=Ore(e,t);Dt(e,n.public,"public"),Sp(e,r.strategyName,r.group,r.processor),Object.entries(l).forEach(([s,u])=>{rt(e,s,u)}),m.useEffect(()=>{a()},[a])},kre=(e,t)=>{Bte(e,t),qne(e,t),jne(e),Lr(Nte,e,t),Lr(Gne,e,t),Lr(tne,e,t),Lr($ne,e,t),Lr(Mne,e,t),Lr(Dne,e,t),Lr(bne,e,t),Lr(Wne,e,t),Lr(Ene,e,t),Lr(pne,e,t),Lr(xre,e,t),Lr(one,e,t),Lr(bre,e,t),Lr(Jte,e,t),Lr(sre,e,t),Lr(tQ,e,t),Lr(Zne,e,t),Lr(rre,e,t),Lr(Tre,e,t),Wte(e,t),Sne(e,t),Vne(e,t),nne(e,t),zne(e,t),Mre(e,t),Bne(e,t),ire(e),cre(e,t),Lne(e,t),vne(e,t),Pne(e,t),mne(e,t),Kne(e,t),lne(e,t),yre(e,t),Tne(e,t),ore(e),Yne(e,t),ene(e),ane(e,t),fne(e,t),Zte(e,t),ere(e,t),Xne(e,t),lre(e),nQ(e,t),Ere(e,t),Ire(e,t),m.useEffect(()=>{e.current.runAppliersForPendingProcessors()})},_re=e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:l,showLeftBorder:a,showRightBorder:s,groupId:u,pinnedPosition:d}=e,f={root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",s&&"columnHeader--withRightBorder",a&&"columnHeader--withLeftBorder","withBorderColor",u===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",d===zt.LEFT&&"columnHeader--pinnedLeft",d===zt.RIGHT&&"columnHeader--pinnedRight",l&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]};return Be(f,Lt,t)};function Dre(e){const{groupId:t,width:n,depth:r,maxDepth:l,fields:a,height:s,colIndex:u,hasFocus:d,tabIndex:f,isLastColumn:h,pinnedPosition:g,pinnedOffset:b}=e,y=We(),C=Po(),S=m.useRef(null),w=Mt(),M=Te(w,X$),E=t?M[t]:{},{headerName:O=t??"",description:P="",headerAlign:R=void 0}=E;let A;const z=t&&M[t]?.renderHeaderGroup,k=m.useMemo(()=>({groupId:t,headerName:O,description:P,depth:r,maxDepth:l,fields:a,colIndex:u,isLastColumn:h}),[t,O,P,r,l,a,u,h]);t&&z&&(A=z(k));const L=N({},e,{classes:y.classes,headerAlign:R,depth:r,isDragging:!1}),H=O??t,$=Nt(),I=t===null?`empty-group-cell-${$}`:t,j=_re(L);m.useLayoutEffect(()=>{d&&(S.current.querySelector('[tabindex="0"]')||S.current)?.focus()},[w,d]);const q=m.useCallback(J=>Q=>{Vp(Q)||w.current.publishEvent(J,k,Q)},[w,k]),F=m.useMemo(()=>({onKeyDown:q("columnGroupHeaderKeyDown"),onFocus:q("columnGroupHeaderFocus"),onBlur:q("columnGroupHeaderBlur")}),[q]),_=typeof E.headerClassName=="function"?E.headerClassName(k):E.headerClassName,B=m.useMemo(()=>ib(N({},e.style),C,g,b),[g,b,e.style,C]);return x.jsx(yz,N({ref:S,classes:j,columnMenuOpen:!1,colIndex:u,height:s,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:f,isDraggable:!1,headerComponent:A,headerClassName:_,description:P,elementId:I,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:H,"aria-colspan":a.length,"data-fields":`|-${a.join("-|-")}-|`,style:B},F))}const $O=ge("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow"})({display:"flex"}),Lre=e=>{const{visibleColumns:t,sortColumnLookup:n,filterColumnLookup:r,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:s,columnGroupHeaderFocus:u,headerGroupingMaxDepth:d,columnMenuState:f,columnVisibility:h,columnGroupsHeaderStructure:g,hasOtherElementInTabSequence:b}=e,[y,C]=m.useState(""),[S,w]=m.useState(""),M=al(),E=We(),O=Te(M,Y$),P=Te(M,Tc),R=Te(M,iQ),A=Te(M,Ym),z=Te(M,Ta),k=iz(P,R,A.left.length),L=Te(M,Hx),H=Te(M,QL),$=Te(M,gW),I=Te(M,mW),j=Te(M,ZL),q=m.useCallback(oe=>w(oe.field),[]),F=m.useCallback(()=>w(""),[]),_=m.useCallback(oe=>C(oe.field),[]),B=m.useCallback(()=>C(""),[]),J=m.useMemo(()=>A.left.length?{firstColumnIndex:0,lastColumnIndex:A.left.length}:null,[A.left.length]),Q=m.useMemo(()=>A.right.length?{firstColumnIndex:t.length-A.right.length,lastColumnIndex:t.length}:null,[A.right.length,t.length]);rt(M,"columnResizeStart",q),rt(M,"columnResizeStop",F),rt(M,"columnHeaderDragStart",_),rt(M,"columnHeaderDragEndNative",B);const D=oe=>{const{renderContext:se=R}=oe||{},Se=se.firstColumnIndex,be=Math.min(se.lastColumnIndex,t.length);return{renderedColumns:t.slice(Se,be),firstColumnToRender:Se,lastColumnToRender:be}},G=(oe,se,Se,be=!1)=>{const de=oe?.position===zt.RIGHT,ke=oe?.position===void 0,Ae=A.right.length>0&&de||A.right.length===0&&ke,Ne=k-Se;return x.jsxs(m.Fragment,{children:[ke&&x.jsx("div",{role:"presentation",style:{width:Ne}}),se,ke&&x.jsx("div",{role:"presentation",className:Oe(K.filler,be&&K["filler--borderBottom"])}),Ae&&x.jsx(lM,{header:!0,pinnedRight:de,borderBottom:be,borderTop:!1})]})},W=(oe,se={})=>{const{renderedColumns:Se,firstColumnToRender:be}=D(oe),de=[];for(let ke=0;ke<Se.length;ke+=1){const Ae=Se[ke],Ne=be+ke,$e=Ne===0,Ve=l!==null&&l.field===Ae.field||$e&&!b?0:-1,nt=s!==null&&s.field===Ae.field,lt=f.open&&f.field===Ae.field,me=oe?.position,tt=rp(me,Ae.computedWidth,Ne,P,L,j),ze=me===zt.RIGHT?Se[ke-1]:Se[ke+1],et=ze?s!==null&&s.field===ze.field:!1,He=Ne+1===P.length-A.right.length,yt=ke,Le=Se.length,Pe=hm(me,yt),Ke=pm(me,yt,Le,E.showColumnVerticalBorder,H);de.push(x.jsx(YZ,N({},n[Ae.field],{columnMenuOpen:lt,filterItemsCounter:r[Ae.field]&&r[Ae.field].length,headerHeight:$,isDragging:Ae.field===y,colDef:Ae,colIndex:Ne,isResizing:S===Ae.field,isLast:Ne===P.length-1,hasFocus:nt,tabIndex:Ve,pinnedPosition:me,pinnedOffset:tt,isLastUnpinned:He,isSiblingFocused:et,showLeftBorder:Pe,showRightBorder:Ke},se),Ae.field))}return G(oe,de,0)},Z=()=>x.jsxs($O,{role:"row","aria-rowindex":d+1,ownerState:E,className:K["row--borderBottom"],style:{height:$},children:[J&&W({position:zt.LEFT,renderContext:J},{disableReorder:!0}),W({renderContext:R}),Q&&W({position:zt.RIGHT,renderContext:Q},{disableReorder:!0,separatorSide:rM.Left})]}),te=({depth:oe,params:se})=>{const Se=D(se);if(Se.renderedColumns.length===0)return null;const{firstColumnToRender:be,lastColumnToRender:de}=Se,ke=g[oe],Ae=t[be].field,Ne=O[Ae]?.[oe]??null,$e=ke.findIndex(({groupId:Le,columnFields:Pe})=>Le===Ne&&Pe.includes(Ae)),Ve=t[de-1].field,nt=O[Ve]?.[oe]??null,lt=ke.findIndex(({groupId:Le,columnFields:Pe})=>Le===nt&&Pe.includes(Ve)),me=ke.slice($e,lt+1).map(Le=>N({},Le,{columnFields:Le.columnFields.filter(Pe=>h[Pe]!==!1)})).filter(Le=>Le.columnFields.length>0),tt=me[0].columnFields.indexOf(Ae),et=me[0].columnFields.slice(0,tt).reduce((Le,Pe)=>{const Ke=z[Pe];return Le+(Ke.computedWidth??0)},0);let He=be;const yt=me.map(({groupId:Le,columnFields:Pe},Ke)=>{const Xe=u!==null&&u.depth===oe&&Pe.includes(u.field),mt=a!==null&&a.depth===oe&&Pe.includes(a.field)?0:-1,_e={width:Pe.reduce((st,pt)=>st+z[pt].computedWidth,0),fields:Pe,colIndex:He},Je=se.position,Fe=rp(Je,_e.width,He,P,L,j);He+=Pe.length;let Qe=Ke;return Je===zt.LEFT&&(Qe=He-1),x.jsx(Dre,{groupId:Le,width:_e.width,fields:_e.fields,colIndex:_e.colIndex,depth:oe,isLastColumn:Ke===me.length-1,maxDepth:d,height:I,hasFocus:Xe,tabIndex:mt,pinnedPosition:Je,pinnedOffset:Fe,showLeftBorder:hm(Je,Qe),showRightBorder:pm(Je,Qe,me.length,E.showColumnVerticalBorder,H)},Ke)});return G(se,yt,et)};return{renderContext:R,leftRenderContext:J,rightRenderContext:Q,pinnedColumns:A,visibleColumns:t,columnPositions:P,getFillers:G,getColumnHeadersRow:Z,getColumnsToRender:D,getColumnGroupHeadersRows:()=>{if(d===0)return null;const oe=[];for(let se=0;se<d;se+=1)oe.push(x.jsxs($O,{role:"row","aria-rowindex":se+1,ownerState:E,style:{height:I},children:[J&&te({depth:se,params:{position:zt.LEFT,renderContext:J,maxLastColumn:J.lastColumnIndex}}),te({depth:se,params:{renderContext:R}}),Q&&te({depth:se,params:{position:zt.RIGHT,renderContext:Q,maxLastColumn:Q.lastColumnIndex}})]},se));return oe},getPinnedCellOffset:rp,isDragging:!!y,getInnerProps:()=>({role:"rowgroup"})}},$re=["className"],zre=e=>{const{classes:t}=e;return Be({root:["columnHeaders"]},Lt,t)},Fre=Xt("div",{name:"MuiDataGrid",slot:"ColumnHeaders"})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),Hre=ht(function(t,n){const{className:r}=t,l=Ge(t,$re),a=We(),s=zre(a);return x.jsx(Fre,N({className:Oe(s.root,r),ownerState:a},l,{role:"presentation",ref:n}))}),Nre=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],jre=ht(function(t,n){const{visibleColumns:r,sortColumnLookup:l,filterColumnLookup:a,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:u,columnHeaderFocus:d,columnGroupHeaderFocus:f,headerGroupingMaxDepth:h,columnMenuState:g,columnVisibility:b,columnGroupsHeaderStructure:y,hasOtherElementInTabSequence:C}=t,S=Ge(t,Nre),{getInnerProps:w,getColumnHeadersRow:M,getColumnGroupHeadersRows:E}=Lre({visibleColumns:r,sortColumnLookup:l,filterColumnLookup:a,columnHeaderTabIndexState:s,columnGroupHeaderTabIndexState:u,columnHeaderFocus:d,columnGroupHeaderFocus:f,headerGroupingMaxDepth:h,columnMenuState:g,columnVisibility:b,columnGroupsHeaderStructure:y,hasOtherElementInTabSequence:C});return x.jsxs(Hre,N({},S,w(),{ref:n,children:[E(),M()]}))}),Bre=xa(jre);function Gre(e){return null}function Vre(e){return null}const Ure=ht(function(t,n){const l=Mt().current.getLocaleText("noResultsOverlayLabel");return x.jsx(ab,N({},t,{ref:n,children:l}))}),qre=()=>Be({root:["bottomContainer"]},Lt,{}),Wre=Xt("div")({position:"sticky",zIndex:40,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function Kre(e){const t=qre();return x.jsx(Wre,N({},e,{className:Oe(t.root,K["container--bottom"]),role:"presentation"}))}const Yre=N({},G7,{cell:DQ,skeletonCell:jQ,columnHeaderFilterIconButton:cJ,columnHeaderSortIcon:aJ,columnMenu:TJ,columnHeaders:Bre,detailPanels:Gre,bottomContainer:Kre,footer:rte,footerRowCount:yte,toolbar:Zee,pinnedRows:Vre,loadingOverlay:dte,noResultsOverlay:Ure,noRowsOverlay:fte,noColumnsOverlay:pte,pagination:gte,filterPanel:eee,columnsPanel:AJ,columnsManagement:cee,panel:DJ,row:Ete}),Xre={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",listView:!1},Qre=e=>N({},Xre,e.dataSource?{filterMode:"server",sortingMode:"server",paginationMode:"server"}:{}),Zre=Yre,Jre=e=>{const t=ws(),n=m.useMemo(()=>cx({props:e,theme:t,name:"MuiDataGrid"}),[t,e]),r=m.useMemo(()=>N({},AW,n.localeText),[n.localeText]),l=m.useMemo(()=>PQ({defaultSlots:Zre,slots:n.slots}),[n.slots]),a=m.useMemo(()=>Object.keys(gm).reduce((s,u)=>(s[u]=n[u]??gm[u],s),{}),[n]);return m.useMemo(()=>N({},n,a,{localeText:r,slots:l},Qre(n)),[n,r,l,a])};class eoe{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let l=this.events[t];l||(l={highPriority:new Map,regular:new Map},this.events[t]=l),r.isFirst?l.highPriority.set(n,!0):l.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const l=Array.from(r.highPriority.keys()),a=Array.from(r.regular.keys());for(let s=l.length-1;s>=0;s-=1){const u=l[s];r.highPriority.has(u)&&u.apply(this,n)}for(let s=0;s<a.length;s+=1){const u=a[s];r.regular.has(u)&&u.apply(this,n)}}once(t,n){const r=this;this.on(t,function l(...a){r.removeListener(t,l),n.apply(r,a)})}}const Iz=Symbol("mui.api_private"),toe=e=>e.isPropagationStopped!==void 0;let zO=0;function noe(e){const t=e.current?.[Iz];if(t)return t;const n={},r={state:n,store:qm.create(n),instanceId:{id:zO}};return zO+=1,r.getPublicApi=()=>e.current,r.register=(l,a)=>{Object.keys(a).forEach(s=>{const u=a[s],d=r[s];if(d?.spying===!0?d.target=u:r[s]=u,l==="public"){const f=e.current,h=f[s];h?.spying===!0?h.target=u:f[s]=u}})},r.register("private",{caches:{},eventManager:new eoe}),r}function roe(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[Iz]:e.current}}function ooe(e,t){const n=m.useRef(null),r=m.useRef(null);r.current||(r.current=noe(n)),n.current||(n.current=roe(r));const l=m.useCallback((...s)=>{const[u,d,f={}]=s;if(f.defaultMuiPrevented=!1,toe(f)&&f.isPropagationStopped())return;const h=t.signature===ci.DataGridPro||t.signature===ci.DataGridPremium?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(u,d,f,h)},[r,t.signature]),a=m.useCallback((s,u,d)=>{r.current.eventManager.on(s,u,d);const f=r.current;return()=>{f.eventManager.removeListener(s,u)}},[r]);return Dt(r,{subscribeEvent:a,publishEvent:l},"public"),e&&!e.current?.state&&(e.current=n.current),m.useImperativeHandle(e,()=>n.current,[n]),m.useEffect(()=>{const s=r.current;return()=>{s.publishEvent("unmount")}},[r]),r}const loe={hooks:{useCSSVariables:G8,useGridAriaAttributes:Pte,useGridRowAriaAttributes:Rte,useCellAggregationResult:()=>null}},kz=function(t,n){const r=Jre(t),l=ooe(r.apiRef,r);return kre(l,r),x.jsx(Ate,{privateApiRef:l,configuration:loe,props:r,children:x.jsx(rZ,N({className:r.className,style:r.style,sx:r.sx},r.slotProps?.root,{ref:n}))})},ioe=m.memo(ht(kz));kz.propTypes={apiRef:ce.shape({current:ce.object}),"aria-label":ce.string,"aria-labelledby":ce.string,autoHeight:ce.bool,autoPageSize:ce.bool,autosizeOnMount:ce.bool,autosizeOptions:ce.shape({columns:ce.arrayOf(ce.string),disableColumnVirtualization:ce.bool,expand:ce.bool,includeHeaders:ce.bool,includeOutliers:ce.bool,outliersFactor:ce.number}),cellModesModel:ce.object,checkboxSelection:ce.bool,classes:ce.object,className:ce.string,clipboardCopyCellDelimiter:ce.string,columnBufferPx:ce.number,columnFilterDebounceMs:ce.number,columnGroupHeaderHeight:ce.number,columnGroupingModel:ce.arrayOf(ce.object),columnHeaderHeight:ce.number,columns:ce.arrayOf(ce.object).isRequired,columnVisibilityModel:ce.object,dataSource:ce.shape({getRows:ce.func.isRequired,updateRow:ce.func}),dataSourceCache:ce.shape({clear:ce.func.isRequired,get:ce.func.isRequired,set:ce.func.isRequired}),density:ce.oneOf(["comfortable","compact","standard"]),disableAutosize:ce.bool,disableColumnFilter:ce.bool,disableColumnMenu:ce.bool,disableColumnResize:ce.bool,disableColumnSelector:ce.bool,disableColumnSorting:ce.bool,disableDensitySelector:ce.bool,disableEval:ce.bool,disableMultipleRowSelection:ce.bool,disableRowSelectionOnClick:ce.bool,disableVirtualization:ce.bool,editMode:ce.oneOf(["cell","row"]),estimatedRowCount:ce.number,experimentalFeatures:ce.shape({warnIfFocusStateIsNotSynced:ce.bool}),filterDebounceMs:ce.number,filterMode:ce.oneOf(["client","server"]),filterModel:ce.shape({items:ce.arrayOf(ce.shape({field:ce.string.isRequired,id:ce.oneOfType([ce.number,ce.string]),operator:ce.string.isRequired,value:ce.any})).isRequired,logicOperator:ce.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:ce.bool,quickFilterLogicOperator:ce.oneOf(["and","or"]),quickFilterValues:ce.array}),getCellClassName:ce.func,getDetailPanelContent:ce.func,getEstimatedRowHeight:ce.func,getRowClassName:ce.func,getRowHeight:ce.func,getRowId:ce.func,getRowSpacing:ce.func,hideFooter:ce.bool,hideFooterPagination:ce.bool,hideFooterSelectedRowCount:ce.bool,ignoreDiacritics:ce.bool,ignoreValueFormatterDuringExport:ce.oneOfType([ce.shape({clipboardExport:ce.bool,csvExport:ce.bool}),ce.bool]),initialState:ce.object,isCellEditable:ce.func,isRowSelectable:ce.func,keepNonExistentRowsSelected:ce.bool,label:ce.string,loading:ce.bool,localeText:ce.object,logger:ce.shape({debug:ce.func.isRequired,error:ce.func.isRequired,info:ce.func.isRequired,warn:ce.func.isRequired}),logLevel:ce.oneOf(["debug","error","info","warn",!1]),nonce:ce.string,onCellClick:ce.func,onCellDoubleClick:ce.func,onCellEditStart:ce.func,onCellEditStop:ce.func,onCellKeyDown:ce.func,onCellModesModelChange:ce.func,onClipboardCopy:ce.func,onColumnHeaderClick:ce.func,onColumnHeaderContextMenu:ce.func,onColumnHeaderDoubleClick:ce.func,onColumnHeaderEnter:ce.func,onColumnHeaderLeave:ce.func,onColumnHeaderOut:ce.func,onColumnHeaderOver:ce.func,onColumnOrderChange:ce.func,onColumnResize:ce.func,onColumnVisibilityModelChange:ce.func,onColumnWidthChange:ce.func,onDataSourceError:ce.func,onDensityChange:ce.func,onFilterModelChange:ce.func,onMenuClose:ce.func,onMenuOpen:ce.func,onPaginationMetaChange:ce.func,onPaginationModelChange:ce.func,onPreferencePanelClose:ce.func,onPreferencePanelOpen:ce.func,onProcessRowUpdateError:ce.func,onResize:ce.func,onRowClick:ce.func,onRowCountChange:ce.func,onRowDoubleClick:ce.func,onRowEditStart:ce.func,onRowEditStop:ce.func,onRowModesModelChange:ce.func,onRowSelectionModelChange:ce.func,onSortModelChange:ce.func,onStateChange:ce.func,pageSizeOptions:ce.arrayOf(ce.oneOfType([ce.number,ce.shape({label:ce.string.isRequired,value:ce.number.isRequired})]).isRequired),pagination:ce.oneOf([!0]),paginationMeta:ce.shape({hasNextPage:ce.bool}),paginationMode:ce.oneOf(["client","server"]),paginationModel:ce.shape({page:ce.number.isRequired,pageSize:ce.number.isRequired}),processRowUpdate:ce.func,resizeThrottleMs:ce.number,rowBufferPx:ce.number,rowCount:ce.number,rowHeight:ce.number,rowModesModel:ce.object,rows:ce.arrayOf(ce.object),rowSelection:ce.bool,rowSelectionModel:ce.shape({ids:ce.instanceOf(Set).isRequired,type:ce.oneOf(["exclude","include"]).isRequired}),rowSpacingType:ce.oneOf(["border","margin"]),rowSpanning:ce.bool,scrollbarSize:ce.number,showCellVerticalBorder:ce.bool,showColumnVerticalBorder:ce.bool,showToolbar:ce.bool,slotProps:ce.object,slots:ce.object,sortingMode:ce.oneOf(["client","server"]),sortingOrder:ce.arrayOf(ce.oneOf(["asc","desc"])),sortModel:ce.arrayOf(ce.shape({field:ce.string.isRequired,sort:ce.oneOf(["asc","desc"])})),style:ce.object,sx:ce.oneOfType([ce.arrayOf(ce.oneOfType([ce.func,ce.object,ce.bool])),ce.func,ce.object]),virtualizeColumnsWithAutoRowHeight:ce.bool};const FO=e=>e.formattedTitle,aoe=ge(ioe)(({theme:e})=>({".MuiDataGrid-footerContainer":{minHeight:"36px"},".MuiTablePagination-toolbar":{minHeight:"36px"},".MuiTablePagination-displayedRows":{margin:"0px"}})),soe=e=>{let t=0,n;for(n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t);let r="#";for(n=0;n<3;n+=1){const l=t>>n*8&255;r+=`00${l.toString(16)}`.slice(-2)}return r},coe=e=>({sx:{bgcolor:soe(e)},children:`${e.split(" ")[0][0]}`}),uoe=({entries:e,setSelectedEntryId:t,selectedEntryId:n,useWide:r,selectedDevice:l})=>{const a=[{field:"author",headerName:"",flex:.1,renderCell:M=>x.jsx(EL,{...coe(M.row.author),variant:"rounded"}),sortable:!1},{field:"title",headerName:"Title",flex:.6,renderCell:M=>M.row.url?x.jsx("a",{href:M.row.avsUrl,target:"_beq",children:FO(M.row)}):FO(M.row)},{field:"audioTypes",headerName:"Audio Type",flex:.4,sortable:!1},{field:"sortTitle"},{field:"edition",headerName:"Edition",sortable:!1}],s=64,u=56,d=75,f=l&&l.slots?Math.ceil(l.slots.length/2):0,h=l?["minidsp","camilladsp"].indexOf(l.type)===-1?0:u:0,g=s+h+f*d,b=24,y=n!==-1&&!r,C=Math.max(260,(window.innerHeight-g-b)/(y?2:1)),S=new Set(e.map(M=>M.author)),w=x.jsx(En,{style:{height:`${C}px`,width:"100%"},children:x.jsx(aoe,{rows:e,columns:a,pageSize:50,density:"compact",initialState:{sorting:{sortModel:[{field:"sortTitle",sort:"asc"}]}},onRowSelectionModelChange:M=>t(M.ids.values().next().value),columnVisibilityModel:{sortTitle:!1,edition:r,author:S.size>1},sx:{p:0,"& .avatar":{paddingLeft:"0px",paddingRight:"0px"}},disableColumnMenu:!0,getCellClassName:M=>M.field==="author"?"avatar":"",hideFooterSelectedRowCount:!0})});return r?w:x.jsx(En,{container:!0,sx:{ml:0},children:w})},doe=e=>{const t=[];return e.rating&&t.push(e.rating),e.runtime&&t.push(`${Math.floor(e.runtime/60)}h ${e.runtime%60}m`),e.language&&e.language!=="English"&&t.push(e.language),e.genres&&t.push(e.genres.join(", ")),t.push(e.author),t||e.overview?x.jsxs(x.Fragment,{children:[t?x.jsx(bo,{variant:"body1",component:"p",children:t.join(" • ")}):null,e.overview?x.jsx(bo,{variant:"body2",component:"p",children:e.overview}):null]}):null},foe=e=>e&&e.audioTypes?e.audioTypes.map(t=>x.jsxs("span",{children:[x.jsx("br",{}),t]},t)):null,poe=e=>e&&e.mvAdjust?x.jsxs("span",{children:[x.jsx("br",{}),"MV Adjustment: ",e.mvAdjust>0?"+":"",e.mvAdjust," dB"]}):null,hoe=e=>e&&e.note?x.jsxs("span",{children:[x.jsx("br",{}),e.note]}):null,goe=e=>e&&e.warning?x.jsxs("span",{children:[x.jsx("br",{}),x.jsx("b",{children:"Warning:"})," ",e.warning]}):null,moe=e=>e&&e.season?e.episodes?/^\d+$/.test(e.episodes)?`S${e.season} E${e.episodes}`:`S${e.season} ${e.episodes}`:`S${e.season}`:null,boe=({setUploadSlotId:e,slots:t,uploadSlotId:n,sendGain:r,selectedEntry:l,setSendGain:a,pending:s,acceptGain:u,upload:d})=>{const f=t.map(b=>x.jsx(Xu,{value:b.id,control:x.jsx(Kq,{checked:n===b.id,color:"primary"}),label:b.id},b.id)),h=t.length>1?x.jsx(Qq,{row:!0,"aria-label":"slot",name:"slot",onChange:b=>e(b.target.value),children:f}):null,g=u?x.jsx(Xu,{control:x.jsx(Ax,{checked:r,name:"sendMV",color:"primary",disabled:!l.mvAdjust,onChange:b=>a(b.target.checked)}),label:"Set Input Gain"}):null;return x.jsxs(Gm,{row:!0,children:[h,g,x.jsx(uc,{variant:"contained",startIcon:s?x.jsx(Mc,{size:24}):x.jsx(Lx,{fontSize:"small"}),onClick:d,children:"Upload"})]})},voe=({selectedDevice:e,selectedEntry:t,useWide:n,setDevice:r,selectedSlotId:l,setError:a})=>{const[s,u]=m.useState(null),[d,f]=m.useState(!1),[h,g]=m.useState(!1),[b,y]=m.useState(!1);m.useEffect(()=>{f(!1)},[t]),m.useEffect(()=>{const S=e&&e.slots?e.slots.find(M=>M.id===s):null,w=S&&S.gains&&Object.keys(S.gains).length>0;y(w)},[e,s]),m.useEffect(()=>{s||u(l)},[s,l]);const C=async()=>{if(e&&e.slots){const S=e.slots.find(w=>w.id===s);if(S){const w=b?{gains:S.gains.map(M=>({id:M.id,value:d?parseFloat(t.mvAdjust):0})),mutes:d?S.mutes.map(M=>({id:M.id,value:!1})):[]}:null;g(!0);try{const E=await(w?()=>tl.loadWithMV(e.name,t.id,s,w):()=>tl.sendFilter(e.name,t.id,s))();g(!1),r(E)}catch(M){a(M),g(!1)}}}};if(t){const S=t.images?t.images.map((O,P)=>x.jsx(E6,{component:"img",image:O,title:`img${P}`,alt:`${t.title} - ${P}`},`img${P}`)):null,w=x.jsxs(QR,{children:[x.jsxs(bo,{gutterBottom:!0,variant:"h5",component:"h3",children:[t.title,t.year?` (${t.year})`:""]}),t.edition?x.jsx(bo,{variant:"h6",component:"p",children:t.edition}):null,t.altTitle&&t.altTitle!==t.title?x.jsx(bo,{variant:"h6",component:"p",children:t.altTitle}):null,doe(t),x.jsx("br",{}),x.jsxs(bo,{variant:"body2",color:"textSecondary",component:"p",children:[moe(t),foe(t),poe(t),hoe(t),goe(t)]})]}),M=e?x.jsx(QR,{children:x.jsx(boe,{setUploadSlotId:u,uploadSlotId:s,sendGain:d,slots:e.slots,selectedEntry:t,setSendGain:f,pending:h,acceptGain:b,upload:C})}):null,E=x.jsxs(Gm,{row:!0,children:[t.theMovieDB?x.jsx(uc,{size:"small",color:"primary",href:`https://themoviedb.org/${t.contentType==="film"?"movie":"tv"}/${t.theMovieDB}`,target:"_avs",children:"TMDb"}):null,t.avsUrl?x.jsx(uc,{size:"small",color:"primary",href:t.avsUrl,target:"_avs",children:"Discuss"}):null,t.beqcUrl?x.jsx(uc,{size:"small",color:"primary",href:t.beqcUrl,target:"_beq",children:"Catalogue"}):null]});return n?x.jsxs(XR,{children:[w,M,E,S]}):x.jsxs(XR,{children:[M,w,E,S]})}else return null},yoe=ge("div")(({theme:e})=>({position:"relative",borderRadius:e.shape.borderRadius,backgroundColor:Ca(e.palette.common.white,.15),"&:hover":{backgroundColor:Ca(e.palette.common.white,.25)},marginRight:e.spacing(2),marginLeft:0,width:"auto",[e.breakpoints.up("sm")]:{marginLeft:e.spacing(3),width:"auto"}})),Coe=ge("div")(({theme:e})=>({padding:e.spacing(0,2),height:"100%",position:"absolute",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center"})),Soe=ge(cd)(({theme:e})=>({color:"inherit","& .MuiInputBase-input":{padding:e.spacing(1,1,1,0),paddingLeft:`calc(1em + ${e.spacing(4)})`,transition:e.transitions.create("width"),width:"100%",[e.breakpoints.up("sm")]:{width:"33ch"},[e.breakpoints.up("md")]:{width:"60ch"},[e.breakpoints.up("lg")]:{width:"100ch"},[e.breakpoints.up("xl")]:{width:"140ch"}}})),woe=({txtFilter:e,setTxtFilter:t,showFilters:n,toggleShowFilters:r})=>x.jsxs(x.Fragment,{children:[x.jsxs(yoe,{children:[x.jsx(Coe,{children:x.jsx(a8,{})}),x.jsx(Soe,{placeholder:"Search…",inputProps:{"aria-label":"search"},value:e,onChange:l=>t(l.target.value),fullWidth:!0})]}),x.jsx(rl,{onClick:l=>t(""),size:"large",children:x.jsx(HL,{})}),x.jsx(Xu,{sx:{marginLeft:"4px"},control:x.jsx(mp,{checked:n,onChange:r,size:"small",color:"default"})})]}),xoe="Footer",_z={noLeft:`${xoe}-noLeft`},Moe=ge(En)(({theme:e})=>({[`&.${_z.noLeft}`]:{marginLeft:"0px"}})),Toe=({meta:e})=>{const[t,n]=m.useState({}),r=a=>a.toString().padStart(2,"0"),l=a=>{if(a){const s=new Date(0);return s.setUTCSeconds(a),`${s.getFullYear()}${r(s.getMonth()+1)}${r(s.getDate())}_${r(s.getHours())}${r(s.getMinutes())}${r(s.getSeconds())}`}return"?"};if(m.useEffect(()=>{Ml(n,tl.getVersion)},[]),e||t){const a=e&&e.version?e.version.substring(0,7):"";return x.jsxs(Moe,{container:!0,justifyContent:"space-around",className:_z.noLeft,children:[x.jsx(En,{children:x.jsx(bo,{variant:"caption",color:"textSecondary",children:e?`${l(e.loaded)} / ${a}`:""})}),x.jsx(En,{children:x.jsx(bo,{variant:"caption",color:"textSecondary",children:t.version!=="UNKNOWN"?`v${t.version}`:t.version})})]})}else return null},Eoe=({entries:e,availableDevices:t,setErr:n,replaceDevice:r,selectedDeviceName:l,setSelectedDeviceName:a,selectedSlotId:s,setSelectedSlotId:u,useWide:d,setSelectedNav:f,selectedNav:h,meta:g})=>{const[b,y]=Xf("selectedAuthors",[]),[C,S]=m.useState([]),[w,M]=m.useState([]),[E,O]=m.useState([]),[P,R]=m.useState([]),[A,z]=m.useState([]),[k,L]=m.useState(""),[H,$]=m.useState(!1),[I,j]=m.useState(-1),[q,F]=m.useState(!1),[_,B]=m.useState([]),J=()=>{$(Z=>!Z)};m.useEffect(()=>{if(t){const Z=Object.keys(t);Z.length>0&&!l&&a(Z[0])}},[t,l,a]),m.useEffect(()=>{const Z=ne=>{const oe=k.toLowerCase();return!!(ne.formattedTitle.toLowerCase().includes(oe)||ne.hasOwnProperty("altTitle")&&ne.altTitle.toLowerCase().includes(oe)||ne.hasOwnProperty("collection")&&ne.collection.toLowerCase().includes(oe))},te=ne=>!!((!b.length||b.indexOf(ne.author)>-1)&&(!w.length||w.indexOf(ne.year)>-1)&&(!E.length||ne.audioTypes.some(oe=>E.indexOf(oe)>-1))&&(!P.length||P.indexOf(ne.contentType)>-1)&&(!A.length||A.indexOf(ne.freshness)>-1)&&(!C.length||C.indexOf(ne.language)>-1)&&(!k||Z(ne)));Ml(B,()=>e.filter(te),n)},[e,E,w,b,P,A,C,k,n]),m.useEffect(()=>{const Z=t[l];if(Z&&q&&Z.hasOwnProperty("slots")){const te=Z.slots.find(ne=>ne.id===s);te&&te.last&&te.last!=="ERROR"&&te.last!=="Empty"&&L(te.last)}},[t,l,s,L,q]);const Q=x.jsx(y8,{selectedDevice:t[l],selectedEntryId:I,selectedSlotId:s,useWide:d,setSelectedSlotId:u,setUserDriven:F,setDevice:Z=>r(Z),setError:n}),D=x.jsx(uoe,{entries:_,setSelectedEntryId:j,selectedEntryId:I,useWide:d,selectedDevice:t[l]}),G=x.jsx(voe,{selectedDevice:t[l],selectedEntry:I?e.find(Z=>Z.id===I):null,useWide:d,setDevice:Z=>r(Z),selectedSlotId:s,setError:n}),W=x.jsx(Toe,{meta:g});return x.jsxs(x.Fragment,{children:[x.jsx($x,{availableDevices:t,setSelectedDeviceName:a,selectedDeviceName:l,selectedNav:h,setSelectedNav:f,children:x.jsx(woe,{txtFilter:k,setTxtFilter:L,showFilters:H,toggleShowFilters:J})}),x.jsx(u8,{visible:H,selectedAudioTypes:E,setSelectedAudioTypes:O,selectedFreshness:A,setSelectedFreshness:z,selectedYears:w,setSelectedYears:M,selectedLanguages:C,setSelectedLanguages:S,selectedAuthors:b,setSelectedAuthors:y,selectedContentTypes:P,setSelectedContentTypes:R,filteredEntries:_,setError:n}),d?x.jsxs(En,{container:!0,children:[x.jsxs(En,{size:{xs:6,md:6},children:[Q,x.jsx(En,{container:!0,children:D}),x.jsx(En,{container:!0,children:W})]}),x.jsx(En,{size:{xs:6,md:6},children:G})]}):x.jsxs(x.Fragment,{children:[Q,D,G,W]})]})},o0="Controls",Hu={root:`${o0}-root`,margin:`${o0}-margin`,textField:`${o0}-textField`},Poe=ge("form")(({theme:e})=>({[`&.${Hu.root}`]:{display:"flex",flexWrap:"wrap"},[`&.${Hu.margin}`]:{margin:e.spacing(1)},[`& .${Hu.textField}`]:{width:"10ch"}})),Roe=({duration:e,setDuration:t,paused:n,setPaused:r})=>x.jsxs(Poe,{className:Oe(Hu.root,Hu.margin),noValidate:!0,autoComplete:"off",children:[x.jsx(ud,{variant:"standard",id:"duration-seconds",label:"Duration",type:"number",inputProps:{"aria-label":"duration",min:1,step:1,max:7200},value:e,onChange:l=>t(l.target.value),InputLabelProps:{shrink:!0}}),x.jsx(Xu,{className:Hu.margin,control:x.jsx(mp,{checked:n,onChange:l=>r(l.target.checked),name:"paused",color:"primary"}),label:"Pause?"})]});var l0,HO;function Aoe(){if(HO)return l0;HO=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return l0=t,l0}var i0,NO;function Ooe(){if(NO)return i0;NO=1;var e=Aoe(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return i0=n,i0}var a0,jO;function Ps(){if(jO)return a0;jO=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return a0=e,a0}var s0,BO;function Dz(){if(BO)return s0;BO=1;var e=typeof sg=="object"&&sg&&sg.Object===Object&&sg;return s0=e,s0}var c0,GO;function No(){if(GO)return c0;GO=1;var e=Dz(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return c0=n,c0}var u0,VO;function Up(){if(VO)return u0;VO=1;var e=No(),t=e.Symbol;return u0=t,u0}var d0,UO;function Ioe(){if(UO)return d0;UO=1;var e=Up(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,l=e?e.toStringTag:void 0;function a(s){var u=n.call(s,l),d=s[l];try{s[l]=void 0;var f=!0}catch{}var h=r.call(s);return f&&(u?s[l]=d:delete s[l]),h}return d0=a,d0}var f0,qO;function koe(){if(qO)return f0;qO=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return f0=n,f0}var p0,WO;function qp(){if(WO)return p0;WO=1;var e=Up(),t=Ioe(),n=koe(),r="[object Null]",l="[object Undefined]",a=e?e.toStringTag:void 0;function s(u){return u==null?u===void 0?l:r:a&&a in Object(u)?t(u):n(u)}return p0=s,p0}var h0,KO;function vd(){if(KO)return h0;KO=1;function e(t){return t!=null&&typeof t=="object"}return h0=e,h0}var g0,YO;function sb(){if(YO)return g0;YO=1;var e=qp(),t=vd(),n="[object Symbol]";function r(l){return typeof l=="symbol"||t(l)&&e(l)==n}return g0=r,g0}var m0,XO;function sM(){if(XO)return m0;XO=1;var e=Ooe(),t=Ps(),n=sb(),r=NaN,l=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;function d(f){if(typeof f=="number")return f;if(n(f))return r;if(t(f)){var h=typeof f.valueOf=="function"?f.valueOf():f;f=t(h)?h+"":h}if(typeof f!="string")return f===0?f:+f;f=e(f);var g=a.test(f);return g||s.test(f)?u(f.slice(2),g?2:8):l.test(f)?r:+f}return m0=d,m0}var b0,QO;function _oe(){if(QO)return b0;QO=1;var e=sM(),t=1/0,n=17976931348623157e292;function r(l){if(!l)return l===0?l:0;if(l=e(l),l===t||l===-t){var a=l<0?-1:1;return a*n}return l===l?l:0}return b0=r,b0}var v0,ZO;function Wp(){if(ZO)return v0;ZO=1;var e=_oe();function t(n){var r=e(n),l=r%1;return r===r?l?r-l:r:0}return v0=t,v0}var y0,JO;function Doe(){if(JO)return y0;JO=1;var e=Wp(),t="Expected a function";function n(r,l){if(typeof l!="function")throw new TypeError(t);return r=e(r),function(){if(--r<1)return l.apply(this,arguments)}}return y0=n,y0}var C0,eI;function Kp(){if(eI)return C0;eI=1;function e(t){return t}return C0=e,C0}var S0,tI;function Lz(){if(tI)return S0;tI=1;var e=qp(),t=Ps(),n="[object AsyncFunction]",r="[object Function]",l="[object GeneratorFunction]",a="[object Proxy]";function s(u){if(!t(u))return!1;var d=e(u);return d==r||d==l||d==n||d==a}return S0=s,S0}var w0,nI;function Loe(){if(nI)return w0;nI=1;var e=No(),t=e["__core-js_shared__"];return w0=t,w0}var x0,rI;function $oe(){if(rI)return x0;rI=1;var e=Loe(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return x0=n,x0}var M0,oI;function $z(){if(oI)return M0;oI=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return M0=n,M0}var T0,lI;function zoe(){if(lI)return T0;lI=1;var e=Lz(),t=$oe(),n=Ps(),r=$z(),l=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,d=s.toString,f=u.hasOwnProperty,h=RegExp("^"+d.call(f).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g(b){if(!n(b)||t(b))return!1;var y=e(b)?h:a;return y.test(r(b))}return T0=g,T0}var E0,iI;function Foe(){if(iI)return E0;iI=1;function e(t,n){return t?.[n]}return E0=e,E0}var P0,aI;function Pc(){if(aI)return P0;aI=1;var e=zoe(),t=Foe();function n(r,l){var a=t(r,l);return e(a)?a:void 0}return P0=n,P0}var R0,sI;function zz(){if(sI)return R0;sI=1;var e=Pc(),t=No(),n=e(t,"WeakMap");return R0=n,R0}var A0,cI;function Fz(){if(cI)return A0;cI=1;var e=zz(),t=e&&new e;return A0=t,A0}var O0,uI;function Hz(){if(uI)return O0;uI=1;var e=Kp(),t=Fz(),n=t?function(r,l){return t.set(r,l),r}:e;return O0=n,O0}var I0,dI;function cM(){if(dI)return I0;dI=1;var e=Ps(),t=Object.create,n=function(){function r(){}return function(l){if(!e(l))return{};if(t)return t(l);r.prototype=l;var a=new r;return r.prototype=void 0,a}}();return I0=n,I0}var k0,fI;function cb(){if(fI)return k0;fI=1;var e=cM(),t=Ps();function n(r){return function(){var l=arguments;switch(l.length){case 0:return new r;case 1:return new r(l[0]);case 2:return new r(l[0],l[1]);case 3:return new r(l[0],l[1],l[2]);case 4:return new r(l[0],l[1],l[2],l[3]);case 5:return new r(l[0],l[1],l[2],l[3],l[4]);case 6:return new r(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new r(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var a=e(r.prototype),s=r.apply(a,l);return t(s)?s:a}}return k0=n,k0}var _0,pI;function Hoe(){if(pI)return _0;pI=1;var e=cb(),t=No(),n=1;function r(l,a,s){var u=a&n,d=e(l);function f(){var h=this&&this!==t&&this instanceof f?d:l;return h.apply(u?s:this,arguments)}return f}return _0=r,_0}var D0,hI;function Yp(){if(hI)return D0;hI=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return D0=e,D0}var L0,gI;function Nz(){if(gI)return L0;gI=1;var e=Math.max;function t(n,r,l,a){for(var s=-1,u=n.length,d=l.length,f=-1,h=r.length,g=e(u-d,0),b=Array(h+g),y=!a;++f<h;)b[f]=r[f];for(;++s<d;)(y||s<u)&&(b[l[s]]=n[s]);for(;g--;)b[f++]=n[s++];return b}return L0=t,L0}var $0,mI;function jz(){if(mI)return $0;mI=1;var e=Math.max;function t(n,r,l,a){for(var s=-1,u=n.length,d=-1,f=l.length,h=-1,g=r.length,b=e(u-f,0),y=Array(b+g),C=!a;++s<b;)y[s]=n[s];for(var S=s;++h<g;)y[S+h]=r[h];for(;++d<f;)(C||s<u)&&(y[S+l[d]]=n[s++]);return y}return $0=t,$0}var z0,bI;function Noe(){if(bI)return z0;bI=1;function e(t,n){for(var r=t.length,l=0;r--;)t[r]===n&&++l;return l}return z0=e,z0}var F0,vI;function uM(){if(vI)return F0;vI=1;function e(){}return F0=e,F0}var H0,yI;function dM(){if(yI)return H0;yI=1;var e=cM(),t=uM(),n=4294967295;function r(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=n,this.__views__=[]}return r.prototype=e(t.prototype),r.prototype.constructor=r,H0=r,H0}var N0,CI;function joe(){if(CI)return N0;CI=1;function e(){}return N0=e,N0}var j0,SI;function Bz(){if(SI)return j0;SI=1;var e=Fz(),t=joe(),n=e?function(r){return e.get(r)}:t;return j0=n,j0}var B0,wI;function Boe(){if(wI)return B0;wI=1;var e={};return B0=e,B0}var G0,xI;function Goe(){if(xI)return G0;xI=1;var e=Boe(),t=Object.prototype,n=t.hasOwnProperty;function r(l){for(var a=l.name+"",s=e[a],u=n.call(e,a)?s.length:0;u--;){var d=s[u],f=d.func;if(f==null||f==l)return d.name}return a}return G0=r,G0}var V0,MI;function Gz(){if(MI)return V0;MI=1;var e=cM(),t=uM();function n(r,l){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=void 0}return n.prototype=e(t.prototype),n.prototype.constructor=n,V0=n,V0}var U0,TI;function hi(){if(TI)return U0;TI=1;var e=Array.isArray;return U0=e,U0}var q0,EI;function Vz(){if(EI)return q0;EI=1;function e(t,n){var r=-1,l=t.length;for(n||(n=Array(l));++r<l;)n[r]=t[r];return n}return q0=e,q0}var W0,PI;function Voe(){if(PI)return W0;PI=1;var e=dM(),t=Gz(),n=Vz();function r(l){if(l instanceof e)return l.clone();var a=new t(l.__wrapped__,l.__chain__);return a.__actions__=n(l.__actions__),a.__index__=l.__index__,a.__values__=l.__values__,a}return W0=r,W0}var K0,RI;function Uoe(){if(RI)return K0;RI=1;var e=dM(),t=Gz(),n=uM(),r=hi(),l=vd(),a=Voe(),s=Object.prototype,u=s.hasOwnProperty;function d(f){if(l(f)&&!r(f)&&!(f instanceof e)){if(f instanceof t)return f;if(u.call(f,"__wrapped__"))return a(f)}return new t(f)}return d.prototype=n.prototype,d.prototype.constructor=d,K0=d,K0}var Y0,AI;function qoe(){if(AI)return Y0;AI=1;var e=dM(),t=Bz(),n=Goe(),r=Uoe();function l(a){var s=n(a),u=r[s];if(typeof u!="function"||!(s in e.prototype))return!1;if(a===u)return!0;var d=t(u);return!!d&&a===d[0]}return Y0=l,Y0}var X0,OI;function Uz(){if(OI)return X0;OI=1;var e=800,t=16,n=Date.now;function r(l){var a=0,s=0;return function(){var u=n(),d=t-(u-s);if(s=u,d>0){if(++a>=e)return arguments[0]}else a=0;return l.apply(void 0,arguments)}}return X0=r,X0}var Q0,II;function qz(){if(II)return Q0;II=1;var e=Hz(),t=Uz(),n=t(e);return Q0=n,Q0}var Z0,kI;function Woe(){if(kI)return Z0;kI=1;var e=/\{\n\/\* \[wrapped with (.+)\] \*/,t=/,? & /;function n(r){var l=r.match(e);return l?l[1].split(t):[]}return Z0=n,Z0}var J0,_I;function Koe(){if(_I)return J0;_I=1;var e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function t(n,r){var l=r.length;if(!l)return n;var a=l-1;return r[a]=(l>1?"& ":"")+r[a],r=r.join(l>2?", ":" "),n.replace(e,`{
/* [wrapped with `+r+`] */
`)}return J0=t,J0}var eC,DI;function Yoe(){if(DI)return eC;DI=1;function e(t){return function(){return t}}return eC=e,eC}var tC,LI;function Xoe(){if(LI)return tC;LI=1;var e=Pc(),t=function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}}();return tC=t,tC}var nC,$I;function Qoe(){if($I)return nC;$I=1;var e=Yoe(),t=Xoe(),n=Kp(),r=t?function(l,a){return t(l,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:n;return nC=r,nC}var rC,zI;function fM(){if(zI)return rC;zI=1;var e=Qoe(),t=Uz(),n=t(e);return rC=n,rC}var oC,FI;function Zoe(){if(FI)return oC;FI=1;function e(t,n){for(var r=-1,l=t==null?0:t.length;++r<l&&n(t[r],r,t)!==!1;);return t}return oC=e,oC}var lC,HI;function Joe(){if(HI)return lC;HI=1;function e(t,n,r,l){for(var a=t.length,s=r+(l?1:-1);l?s--:++s<a;)if(n(t[s],s,t))return s;return-1}return lC=e,lC}var iC,NI;function ele(){if(NI)return iC;NI=1;function e(t){return t!==t}return iC=e,iC}var aC,jI;function tle(){if(jI)return aC;jI=1;function e(t,n,r){for(var l=r-1,a=t.length;++l<a;)if(t[l]===n)return l;return-1}return aC=e,aC}var sC,BI;function nle(){if(BI)return sC;BI=1;var e=Joe(),t=ele(),n=tle();function r(l,a,s){return a===a?n(l,a,s):e(l,t,s)}return sC=r,sC}var cC,GI;function rle(){if(GI)return cC;GI=1;var e=nle();function t(n,r){var l=n==null?0:n.length;return!!l&&e(n,r,0)>-1}return cC=t,cC}var uC,VI;function ole(){if(VI)return uC;VI=1;var e=Zoe(),t=rle(),n=1,r=2,l=8,a=16,s=32,u=64,d=128,f=256,h=512,g=[["ary",d],["bind",n],["bindKey",r],["curry",l],["curryRight",a],["flip",h],["partial",s],["partialRight",u],["rearg",f]];function b(y,C){return e(g,function(S){var w="_."+S[0];C&S[1]&&!t(y,w)&&y.push(w)}),y.sort()}return uC=b,uC}var dC,UI;function Wz(){if(UI)return dC;UI=1;var e=Woe(),t=Koe(),n=fM(),r=ole();function l(a,s,u){var d=s+"";return n(a,t(d,r(e(d),u)))}return dC=l,dC}var fC,qI;function Kz(){if(qI)return fC;qI=1;var e=qoe(),t=qz(),n=Wz(),r=4,l=8,a=32,s=64;function u(d,f,h,g,b,y,C,S,w,M){var E=f&l,O=E?C:void 0,P=E?void 0:C,R=E?y:void 0,A=E?void 0:y;f|=E?a:s,f&=~(E?s:a),f&r||(f&=-4);var z=[d,f,b,R,O,A,P,S,w,M],k=h.apply(void 0,z);return e(d)&&t(k,z),k.placeholder=g,n(k,d,f)}return fC=u,fC}var pC,WI;function yd(){if(WI)return pC;WI=1;function e(t){var n=t;return n.placeholder}return pC=e,pC}var hC,KI;function pM(){if(KI)return hC;KI=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,l){var a=typeof r;return l=l??e,!!l&&(a=="number"||a!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<l}return hC=n,hC}var gC,YI;function lle(){if(YI)return gC;YI=1;var e=Vz(),t=pM(),n=Math.min;function r(l,a){for(var s=l.length,u=n(a.length,s),d=e(l);u--;){var f=a[u];l[u]=t(f,s)?d[f]:void 0}return l}return gC=r,gC}var mC,XI;function Rc(){if(XI)return mC;XI=1;var e="__lodash_placeholder__";function t(n,r){for(var l=-1,a=n.length,s=0,u=[];++l<a;){var d=n[l];(d===r||d===e)&&(n[l]=e,u[s++]=l)}return u}return mC=t,mC}var bC,QI;function Yz(){if(QI)return bC;QI=1;var e=Nz(),t=jz(),n=Noe(),r=cb(),l=Kz(),a=yd(),s=lle(),u=Rc(),d=No(),f=1,h=2,g=8,b=16,y=128,C=512;function S(w,M,E,O,P,R,A,z,k,L){var H=M&y,$=M&f,I=M&h,j=M&(g|b),q=M&C,F=I?void 0:r(w);function _(){for(var B=arguments.length,J=Array(B),Q=B;Q--;)J[Q]=arguments[Q];if(j)var D=a(_),G=n(J,D);if(O&&(J=e(J,O,P,j)),R&&(J=t(J,R,A,j)),B-=G,j&&B<L){var W=u(J,D);return l(w,M,S,_.placeholder,E,J,W,z,k,L-B)}var Z=$?E:this,te=I?Z[w]:w;return B=J.length,z?J=s(J,z):q&&B>1&&J.reverse(),H&&k<B&&(J.length=k),this&&this!==d&&this instanceof _&&(te=F||r(te)),te.apply(Z,J)}return _}return bC=S,bC}var vC,ZI;function ile(){if(ZI)return vC;ZI=1;var e=Yp(),t=cb(),n=Yz(),r=Kz(),l=yd(),a=Rc(),s=No();function u(d,f,h){var g=t(d);function b(){for(var y=arguments.length,C=Array(y),S=y,w=l(b);S--;)C[S]=arguments[S];var M=y<3&&C[0]!==w&&C[y-1]!==w?[]:a(C,w);if(y-=M.length,y<h)return r(d,f,n,b.placeholder,void 0,C,M,void 0,void 0,h-y);var E=this&&this!==s&&this instanceof b?g:d;return e(E,this,C)}return b}return vC=u,vC}var yC,JI;function ale(){if(JI)return yC;JI=1;var e=Yp(),t=cb(),n=No(),r=1;function l(a,s,u,d){var f=s&r,h=t(a);function g(){for(var b=-1,y=arguments.length,C=-1,S=d.length,w=Array(S+y),M=this&&this!==n&&this instanceof g?h:a;++C<S;)w[C]=d[C];for(;y--;)w[C++]=arguments[++b];return e(M,f?u:this,w)}return g}return yC=l,yC}var CC,e2;function sle(){if(e2)return CC;e2=1;var e=Nz(),t=jz(),n=Rc(),r="__lodash_placeholder__",l=1,a=2,s=4,u=8,d=128,f=256,h=Math.min;function g(b,y){var C=b[1],S=y[1],w=C|S,M=w<(l|a|d),E=S==d&&C==u||S==d&&C==f&&b[7].length<=y[8]||S==(d|f)&&y[7].length<=y[8]&&C==u;if(!(M||E))return b;S&l&&(b[2]=y[2],w|=C&l?0:s);var O=y[3];if(O){var P=b[3];b[3]=P?e(P,O,y[4]):O,b[4]=P?n(b[3],r):y[4]}return O=y[5],O&&(P=b[5],b[5]=P?t(P,O,y[6]):O,b[6]=P?n(b[5],r):y[6]),O=y[7],O&&(b[7]=O),S&d&&(b[8]=b[8]==null?y[8]:h(b[8],y[8])),b[9]==null&&(b[9]=y[9]),b[0]=y[0],b[1]=w,b}return CC=g,CC}var SC,t2;function Pa(){if(t2)return SC;t2=1;var e=Hz(),t=Hoe(),n=ile(),r=Yz(),l=ale(),a=Bz(),s=sle(),u=qz(),d=Wz(),f=Wp(),h="Expected a function",g=1,b=2,y=8,C=16,S=32,w=64,M=Math.max;function E(O,P,R,A,z,k,L,H){var $=P&b;if(!$&&typeof O!="function")throw new TypeError(h);var I=A?A.length:0;if(I||(P&=-97,A=z=void 0),L=L===void 0?L:M(f(L),0),H=H===void 0?H:f(H),I-=z?z.length:0,P&w){var j=A,q=z;A=z=void 0}var F=$?void 0:a(O),_=[O,P,R,A,z,j,q,k,L,H];if(F&&s(_,F),O=_[0],P=_[1],R=_[2],A=_[3],z=_[4],H=_[9]=_[9]===void 0?$?0:O.length:M(_[9]-I,0),!H&&P&(y|C)&&(P&=-25),!P||P==g)var B=t(O,P,R);else P==y||P==C?B=n(O,P,H):(P==S||P==(g|S))&&!z.length?B=l(O,P,R,A):B=r.apply(void 0,_);var J=F?e:u;return d(J(B,_),O,P)}return SC=E,SC}var wC,n2;function Xz(){if(n2)return wC;n2=1;var e=Pa(),t=128;function n(r,l,a){return l=a?void 0:l,l=r&&l==null?r.length:l,e(r,t,void 0,void 0,void 0,void 0,l)}return wC=n,wC}var xC,r2;function Qz(){if(r2)return xC;r2=1;var e=Wp(),t="Expected a function";function n(r,l){var a;if(typeof l!="function")throw new TypeError(t);return r=e(r),function(){return--r>0&&(a=l.apply(this,arguments)),r<=1&&(l=void 0),a}}return xC=n,xC}var MC,o2;function Zz(){if(o2)return MC;o2=1;var e=Yp(),t=Math.max;function n(r,l,a){return l=t(l===void 0?r.length-1:l,0),function(){for(var s=arguments,u=-1,d=t(s.length-l,0),f=Array(d);++u<d;)f[u]=s[l+u];u=-1;for(var h=Array(l+1);++u<l;)h[u]=s[u];return h[l]=a(f),e(r,this,h)}}return MC=n,MC}var TC,l2;function Bi(){if(l2)return TC;l2=1;var e=Kp(),t=Zz(),n=fM();function r(l,a){return n(t(l,a,e),l+"")}return TC=r,TC}var EC,i2;function cle(){if(i2)return EC;i2=1;var e=Bi(),t=Pa(),n=yd(),r=Rc(),l=1,a=32,s=e(function(u,d,f){var h=l;if(f.length){var g=r(f,n(s));h|=a}return t(u,h,d,f,g)});return s.placeholder={},EC=s,EC}var PC,a2;function ule(){if(a2)return PC;a2=1;var e=Bi(),t=Pa(),n=yd(),r=Rc(),l=1,a=2,s=32,u=e(function(d,f,h){var g=l|a;if(h.length){var b=r(h,n(u));g|=s}return t(f,g,d,h,b)});return u.placeholder={},PC=u,PC}var RC,s2;function dle(){if(s2)return RC;s2=1;var e=Pa(),t=8;function n(r,l,a){l=a?void 0:l;var s=e(r,t,void 0,void 0,void 0,void 0,void 0,l);return s.placeholder=n.placeholder,s}return n.placeholder={},RC=n,RC}var AC,c2;function fle(){if(c2)return AC;c2=1;var e=Pa(),t=16;function n(r,l,a){l=a?void 0:l;var s=e(r,t,void 0,void 0,void 0,void 0,void 0,l);return s.placeholder=n.placeholder,s}return n.placeholder={},AC=n,AC}var OC,u2;function ple(){if(u2)return OC;u2=1;var e=No(),t=function(){return e.Date.now()};return OC=t,OC}var IC,d2;function Jz(){if(d2)return IC;d2=1;var e=Ps(),t=ple(),n=sM(),r="Expected a function",l=Math.max,a=Math.min;function s(u,d,f){var h,g,b,y,C,S,w=0,M=!1,E=!1,O=!0;if(typeof u!="function")throw new TypeError(r);d=n(d)||0,e(f)&&(M=!!f.leading,E="maxWait"in f,b=E?l(n(f.maxWait)||0,d):b,O="trailing"in f?!!f.trailing:O);function P(j){var q=h,F=g;return h=g=void 0,w=j,y=u.apply(F,q),y}function R(j){return w=j,C=setTimeout(k,d),M?P(j):y}function A(j){var q=j-S,F=j-w,_=d-q;return E?a(_,b-F):_}function z(j){var q=j-S,F=j-w;return S===void 0||q>=d||q<0||E&&F>=b}function k(){var j=t();if(z(j))return L(j);C=setTimeout(k,A(j))}function L(j){return C=void 0,O&&h?P(j):(h=g=void 0,y)}function H(){C!==void 0&&clearTimeout(C),w=0,h=S=g=C=void 0}function $(){return C===void 0?y:L(t())}function I(){var j=t(),q=z(j);if(h=arguments,g=this,S=j,q){if(C===void 0)return R(S);if(E)return clearTimeout(C),C=setTimeout(k,d),P(S)}return C===void 0&&(C=setTimeout(k,d)),y}return I.cancel=H,I.flush=$,I}return IC=s,IC}var kC,f2;function eF(){if(f2)return kC;f2=1;var e="Expected a function";function t(n,r,l){if(typeof n!="function")throw new TypeError(e);return setTimeout(function(){n.apply(void 0,l)},r)}return kC=t,kC}var _C,p2;function hle(){if(p2)return _C;p2=1;var e=eF(),t=Bi(),n=t(function(r,l){return e(r,1,l)});return _C=n,_C}var DC,h2;function gle(){if(h2)return DC;h2=1;var e=eF(),t=Bi(),n=sM(),r=t(function(l,a,s){return e(l,n(a)||0,s)});return DC=r,DC}var LC,g2;function mle(){if(g2)return LC;g2=1;var e=Pa(),t=512;function n(r){return e(r,t)}return LC=n,LC}var $C,m2;function ub(){if(m2)return $C;m2=1;var e=Pc(),t=e(Object,"create");return $C=t,$C}var zC,b2;function ble(){if(b2)return zC;b2=1;var e=ub();function t(){this.__data__=e?e(null):{},this.size=0}return zC=t,zC}var FC,v2;function vle(){if(v2)return FC;v2=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return FC=e,FC}var HC,y2;function yle(){if(y2)return HC;y2=1;var e=ub(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function l(a){var s=this.__data__;if(e){var u=s[a];return u===t?void 0:u}return r.call(s,a)?s[a]:void 0}return HC=l,HC}var NC,C2;function Cle(){if(C2)return NC;C2=1;var e=ub(),t=Object.prototype,n=t.hasOwnProperty;function r(l){var a=this.__data__;return e?a[l]!==void 0:n.call(a,l)}return NC=r,NC}var jC,S2;function Sle(){if(S2)return jC;S2=1;var e=ub(),t="__lodash_hash_undefined__";function n(r,l){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=e&&l===void 0?t:l,this}return jC=n,jC}var BC,w2;function wle(){if(w2)return BC;w2=1;var e=ble(),t=vle(),n=yle(),r=Cle(),l=Sle();function a(s){var u=-1,d=s==null?0:s.length;for(this.clear();++u<d;){var f=s[u];this.set(f[0],f[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=l,BC=a,BC}var GC,x2;function xle(){if(x2)return GC;x2=1;function e(){this.__data__=[],this.size=0}return GC=e,GC}var VC,M2;function tF(){if(M2)return VC;M2=1;function e(t,n){return t===n||t!==t&&n!==n}return VC=e,VC}var UC,T2;function db(){if(T2)return UC;T2=1;var e=tF();function t(n,r){for(var l=n.length;l--;)if(e(n[l][0],r))return l;return-1}return UC=t,UC}var qC,E2;function Mle(){if(E2)return qC;E2=1;var e=db(),t=Array.prototype,n=t.splice;function r(l){var a=this.__data__,s=e(a,l);if(s<0)return!1;var u=a.length-1;return s==u?a.pop():n.call(a,s,1),--this.size,!0}return qC=r,qC}var WC,P2;function Tle(){if(P2)return WC;P2=1;var e=db();function t(n){var r=this.__data__,l=e(r,n);return l<0?void 0:r[l][1]}return WC=t,WC}var KC,R2;function Ele(){if(R2)return KC;R2=1;var e=db();function t(n){return e(this.__data__,n)>-1}return KC=t,KC}var YC,A2;function Ple(){if(A2)return YC;A2=1;var e=db();function t(n,r){var l=this.__data__,a=e(l,n);return a<0?(++this.size,l.push([n,r])):l[a][1]=r,this}return YC=t,YC}var XC,O2;function fb(){if(O2)return XC;O2=1;var e=xle(),t=Mle(),n=Tle(),r=Ele(),l=Ple();function a(s){var u=-1,d=s==null?0:s.length;for(this.clear();++u<d;){var f=s[u];this.set(f[0],f[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=l,XC=a,XC}var QC,I2;function hM(){if(I2)return QC;I2=1;var e=Pc(),t=No(),n=e(t,"Map");return QC=n,QC}var ZC,k2;function Rle(){if(k2)return ZC;k2=1;var e=wle(),t=fb(),n=hM();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return ZC=r,ZC}var JC,_2;function Ale(){if(_2)return JC;_2=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return JC=e,JC}var eS,D2;function pb(){if(D2)return eS;D2=1;var e=Ale();function t(n,r){var l=n.__data__;return e(r)?l[typeof r=="string"?"string":"hash"]:l.map}return eS=t,eS}var tS,L2;function Ole(){if(L2)return tS;L2=1;var e=pb();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return tS=t,tS}var nS,$2;function Ile(){if($2)return nS;$2=1;var e=pb();function t(n){return e(this,n).get(n)}return nS=t,nS}var rS,z2;function kle(){if(z2)return rS;z2=1;var e=pb();function t(n){return e(this,n).has(n)}return rS=t,rS}var oS,F2;function _le(){if(F2)return oS;F2=1;var e=pb();function t(n,r){var l=e(this,n),a=l.size;return l.set(n,r),this.size+=l.size==a?0:1,this}return oS=t,oS}var lS,H2;function gM(){if(H2)return lS;H2=1;var e=Rle(),t=Ole(),n=Ile(),r=kle(),l=_le();function a(s){var u=-1,d=s==null?0:s.length;for(this.clear();++u<d;){var f=s[u];this.set(f[0],f[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=l,lS=a,lS}var iS,N2;function nF(){if(N2)return iS;N2=1;var e=gM(),t="Expected a function";function n(r,l){if(typeof r!="function"||l!=null&&typeof l!="function")throw new TypeError(t);var a=function(){var s=arguments,u=l?l.apply(this,s):s[0],d=a.cache;if(d.has(u))return d.get(u);var f=r.apply(this,s);return a.cache=d.set(u,f)||d,f};return a.cache=new(n.Cache||e),a}return n.Cache=e,iS=n,iS}var aS,j2;function Dle(){if(j2)return aS;j2=1;var e="Expected a function";function t(n){if(typeof n!="function")throw new TypeError(e);return function(){var r=arguments;switch(r.length){case 0:return!n.call(this);case 1:return!n.call(this,r[0]);case 2:return!n.call(this,r[0],r[1]);case 3:return!n.call(this,r[0],r[1],r[2])}return!n.apply(this,r)}}return aS=t,aS}var sS,B2;function Lle(){if(B2)return sS;B2=1;var e=Qz();function t(n){return e(2,n)}return sS=t,sS}var cS,G2;function rF(){if(G2)return cS;G2=1;function e(t,n){for(var r=-1,l=t==null?0:t.length,a=Array(l);++r<l;)a[r]=n(t[r],r,t);return a}return cS=e,cS}var uS,V2;function mM(){if(V2)return uS;V2=1;function e(t,n){for(var r=-1,l=n.length,a=t.length;++r<l;)t[a+r]=n[r];return t}return uS=e,uS}var dS,U2;function $le(){if(U2)return dS;U2=1;var e=qp(),t=vd(),n="[object Arguments]";function r(l){return t(l)&&e(l)==n}return dS=r,dS}var fS,q2;function bM(){if(q2)return fS;q2=1;var e=$le(),t=vd(),n=Object.prototype,r=n.hasOwnProperty,l=n.propertyIsEnumerable,a=e(function(){return arguments}())?e:function(s){return t(s)&&r.call(s,"callee")&&!l.call(s,"callee")};return fS=a,fS}var pS,W2;function zle(){if(W2)return pS;W2=1;var e=Up(),t=bM(),n=hi(),r=e?e.isConcatSpreadable:void 0;function l(a){return n(a)||t(a)||!!(r&&a&&a[r])}return pS=l,pS}var hS,K2;function oF(){if(K2)return hS;K2=1;var e=mM(),t=zle();function n(r,l,a,s,u){var d=-1,f=r.length;for(a||(a=t),u||(u=[]);++d<f;){var h=r[d];l>0&&a(h)?l>1?n(h,l-1,a,s,u):e(u,h):s||(u[u.length]=h)}return u}return hS=n,hS}var gS,Y2;function Fle(){if(Y2)return gS;Y2=1;var e=fb();function t(){this.__data__=new e,this.size=0}return gS=t,gS}var mS,X2;function Hle(){if(X2)return mS;X2=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return mS=e,mS}var bS,Q2;function Nle(){if(Q2)return bS;Q2=1;function e(t){return this.__data__.get(t)}return bS=e,bS}var vS,Z2;function jle(){if(Z2)return vS;Z2=1;function e(t){return this.__data__.has(t)}return vS=e,vS}var yS,J2;function Ble(){if(J2)return yS;J2=1;var e=fb(),t=hM(),n=gM(),r=200;function l(a,s){var u=this.__data__;if(u instanceof e){var d=u.__data__;if(!t||d.length<r-1)return d.push([a,s]),this.size=++u.size,this;u=this.__data__=new n(d)}return u.set(a,s),this.size=u.size,this}return yS=l,yS}var CS,ek;function lF(){if(ek)return CS;ek=1;var e=fb(),t=Fle(),n=Hle(),r=Nle(),l=jle(),a=Ble();function s(u){var d=this.__data__=new e(u);this.size=d.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=l,s.prototype.set=a,CS=s,CS}var SS,tk;function Gle(){if(tk)return SS;tk=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return SS=t,SS}var wS,nk;function Vle(){if(nk)return wS;nk=1;function e(t){return this.__data__.has(t)}return wS=e,wS}var xS,rk;function Ule(){if(rk)return xS;rk=1;var e=gM(),t=Gle(),n=Vle();function r(l){var a=-1,s=l==null?0:l.length;for(this.__data__=new e;++a<s;)this.add(l[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,xS=r,xS}var MS,ok;function qle(){if(ok)return MS;ok=1;function e(t,n){for(var r=-1,l=t==null?0:t.length;++r<l;)if(n(t[r],r,t))return!0;return!1}return MS=e,MS}var TS,lk;function Wle(){if(lk)return TS;lk=1;function e(t,n){return t.has(n)}return TS=e,TS}var ES,ik;function iF(){if(ik)return ES;ik=1;var e=Ule(),t=qle(),n=Wle(),r=1,l=2;function a(s,u,d,f,h,g){var b=d&r,y=s.length,C=u.length;if(y!=C&&!(b&&C>y))return!1;var S=g.get(s),w=g.get(u);if(S&&w)return S==u&&w==s;var M=-1,E=!0,O=d&l?new e:void 0;for(g.set(s,u),g.set(u,s);++M<y;){var P=s[M],R=u[M];if(f)var A=b?f(R,P,M,u,s,g):f(P,R,M,s,u,g);if(A!==void 0){if(A)continue;E=!1;break}if(O){if(!t(u,function(z,k){if(!n(O,k)&&(P===z||h(P,z,d,f,g)))return O.push(k)})){E=!1;break}}else if(!(P===R||h(P,R,d,f,g))){E=!1;break}}return g.delete(s),g.delete(u),E}return ES=a,ES}var PS,ak;function Kle(){if(ak)return PS;ak=1;var e=No(),t=e.Uint8Array;return PS=t,PS}var RS,sk;function Yle(){if(sk)return RS;sk=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(l,a){r[++n]=[a,l]}),r}return RS=e,RS}var AS,ck;function Xle(){if(ck)return AS;ck=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(l){r[++n]=l}),r}return AS=e,AS}var OS,uk;function Qle(){if(uk)return OS;uk=1;var e=Up(),t=Kle(),n=tF(),r=iF(),l=Yle(),a=Xle(),s=1,u=2,d="[object Boolean]",f="[object Date]",h="[object Error]",g="[object Map]",b="[object Number]",y="[object RegExp]",C="[object Set]",S="[object String]",w="[object Symbol]",M="[object ArrayBuffer]",E="[object DataView]",O=e?e.prototype:void 0,P=O?O.valueOf:void 0;function R(A,z,k,L,H,$,I){switch(k){case E:if(A.byteLength!=z.byteLength||A.byteOffset!=z.byteOffset)return!1;A=A.buffer,z=z.buffer;case M:return!(A.byteLength!=z.byteLength||!$(new t(A),new t(z)));case d:case f:case b:return n(+A,+z);case h:return A.name==z.name&&A.message==z.message;case y:case S:return A==z+"";case g:var j=l;case C:var q=L&s;if(j||(j=a),A.size!=z.size&&!q)return!1;var F=I.get(A);if(F)return F==z;L|=u,I.set(A,z);var _=r(j(A),j(z),L,H,$,I);return I.delete(A),_;case w:if(P)return P.call(A)==P.call(z)}return!1}return OS=R,OS}var IS,dk;function Zle(){if(dk)return IS;dk=1;var e=mM(),t=hi();function n(r,l,a){var s=l(r);return t(r)?s:e(s,a(r))}return IS=n,IS}var kS,fk;function Jle(){if(fk)return kS;fk=1;function e(t,n){for(var r=-1,l=t==null?0:t.length,a=0,s=[];++r<l;){var u=t[r];n(u,r,t)&&(s[a++]=u)}return s}return kS=e,kS}var _S,pk;function eie(){if(pk)return _S;pk=1;function e(){return[]}return _S=e,_S}var DS,hk;function tie(){if(hk)return DS;hk=1;var e=Jle(),t=eie(),n=Object.prototype,r=n.propertyIsEnumerable,l=Object.getOwnPropertySymbols,a=l?function(s){return s==null?[]:(s=Object(s),e(l(s),function(u){return r.call(s,u)}))}:t;return DS=a,DS}var LS,gk;function nie(){if(gk)return LS;gk=1;function e(t,n){for(var r=-1,l=Array(t);++r<t;)l[r]=n(r);return l}return LS=e,LS}var Vf={exports:{}},$S,mk;function rie(){if(mk)return $S;mk=1;function e(){return!1}return $S=e,$S}Vf.exports;var bk;function aF(){return bk||(bk=1,function(e,t){var n=No(),r=rie(),l=t&&!t.nodeType&&t,a=l&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===l,u=s?n.Buffer:void 0,d=u?u.isBuffer:void 0,f=d||r;e.exports=f}(Vf,Vf.exports)),Vf.exports}var zS,vk;function vM(){if(vk)return zS;vk=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return zS=t,zS}var FS,yk;function oie(){if(yk)return FS;yk=1;var e=qp(),t=vM(),n=vd(),r="[object Arguments]",l="[object Array]",a="[object Boolean]",s="[object Date]",u="[object Error]",d="[object Function]",f="[object Map]",h="[object Number]",g="[object Object]",b="[object RegExp]",y="[object Set]",C="[object String]",S="[object WeakMap]",w="[object ArrayBuffer]",M="[object DataView]",E="[object Float32Array]",O="[object Float64Array]",P="[object Int8Array]",R="[object Int16Array]",A="[object Int32Array]",z="[object Uint8Array]",k="[object Uint8ClampedArray]",L="[object Uint16Array]",H="[object Uint32Array]",$={};$[E]=$[O]=$[P]=$[R]=$[A]=$[z]=$[k]=$[L]=$[H]=!0,$[r]=$[l]=$[w]=$[a]=$[M]=$[s]=$[u]=$[d]=$[f]=$[h]=$[g]=$[b]=$[y]=$[C]=$[S]=!1;function I(j){return n(j)&&t(j.length)&&!!$[e(j)]}return FS=I,FS}var HS,Ck;function sF(){if(Ck)return HS;Ck=1;function e(t){return function(n){return t(n)}}return HS=e,HS}var Uf={exports:{}};Uf.exports;var Sk;function lie(){return Sk||(Sk=1,function(e,t){var n=Dz(),r=t&&!t.nodeType&&t,l=r&&!0&&e&&!e.nodeType&&e,a=l&&l.exports===r,s=a&&n.process,u=function(){try{var d=l&&l.require&&l.require("util").types;return d||s&&s.binding&&s.binding("util")}catch{}}();e.exports=u}(Uf,Uf.exports)),Uf.exports}var NS,wk;function cF(){if(wk)return NS;wk=1;var e=oie(),t=sF(),n=lie(),r=n&&n.isTypedArray,l=r?t(r):e;return NS=l,NS}var jS,xk;function iie(){if(xk)return jS;xk=1;var e=nie(),t=bM(),n=hi(),r=aF(),l=pM(),a=cF(),s=Object.prototype,u=s.hasOwnProperty;function d(f,h){var g=n(f),b=!g&&t(f),y=!g&&!b&&r(f),C=!g&&!b&&!y&&a(f),S=g||b||y||C,w=S?e(f.length,String):[],M=w.length;for(var E in f)(h||u.call(f,E))&&!(S&&(E=="length"||y&&(E=="offset"||E=="parent")||C&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||l(E,M)))&&w.push(E);return w}return jS=d,jS}var BS,Mk;function aie(){if(Mk)return BS;Mk=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,l=typeof r=="function"&&r.prototype||e;return n===l}return BS=t,BS}var GS,Tk;function sie(){if(Tk)return GS;Tk=1;function e(t,n){return function(r){return t(n(r))}}return GS=e,GS}var VS,Ek;function cie(){if(Ek)return VS;Ek=1;var e=sie(),t=e(Object.keys,Object);return VS=t,VS}var US,Pk;function uie(){if(Pk)return US;Pk=1;var e=aie(),t=cie(),n=Object.prototype,r=n.hasOwnProperty;function l(a){if(!e(a))return t(a);var s=[];for(var u in Object(a))r.call(a,u)&&u!="constructor"&&s.push(u);return s}return US=l,US}var qS,Rk;function die(){if(Rk)return qS;Rk=1;var e=Lz(),t=vM();function n(r){return r!=null&&t(r.length)&&!e(r)}return qS=n,qS}var WS,Ak;function uF(){if(Ak)return WS;Ak=1;var e=iie(),t=uie(),n=die();function r(l){return n(l)?e(l):t(l)}return WS=r,WS}var KS,Ok;function fie(){if(Ok)return KS;Ok=1;var e=Zle(),t=tie(),n=uF();function r(l){return e(l,n,t)}return KS=r,KS}var YS,Ik;function pie(){if(Ik)return YS;Ik=1;var e=fie(),t=1,n=Object.prototype,r=n.hasOwnProperty;function l(a,s,u,d,f,h){var g=u&t,b=e(a),y=b.length,C=e(s),S=C.length;if(y!=S&&!g)return!1;for(var w=y;w--;){var M=b[w];if(!(g?M in s:r.call(s,M)))return!1}var E=h.get(a),O=h.get(s);if(E&&O)return E==s&&O==a;var P=!0;h.set(a,s),h.set(s,a);for(var R=g;++w<y;){M=b[w];var A=a[M],z=s[M];if(d)var k=g?d(z,A,M,s,a,h):d(A,z,M,a,s,h);if(!(k===void 0?A===z||f(A,z,u,d,h):k)){P=!1;break}R||(R=M=="constructor")}if(P&&!R){var L=a.constructor,H=s.constructor;L!=H&&"constructor"in a&&"constructor"in s&&!(typeof L=="function"&&L instanceof L&&typeof H=="function"&&H instanceof H)&&(P=!1)}return h.delete(a),h.delete(s),P}return YS=l,YS}var XS,kk;function hie(){if(kk)return XS;kk=1;var e=Pc(),t=No(),n=e(t,"DataView");return XS=n,XS}var QS,_k;function gie(){if(_k)return QS;_k=1;var e=Pc(),t=No(),n=e(t,"Promise");return QS=n,QS}var ZS,Dk;function mie(){if(Dk)return ZS;Dk=1;var e=Pc(),t=No(),n=e(t,"Set");return ZS=n,ZS}var JS,Lk;function bie(){if(Lk)return JS;Lk=1;var e=hie(),t=hM(),n=gie(),r=mie(),l=zz(),a=qp(),s=$z(),u="[object Map]",d="[object Object]",f="[object Promise]",h="[object Set]",g="[object WeakMap]",b="[object DataView]",y=s(e),C=s(t),S=s(n),w=s(r),M=s(l),E=a;return(e&&E(new e(new ArrayBuffer(1)))!=b||t&&E(new t)!=u||n&&E(n.resolve())!=f||r&&E(new r)!=h||l&&E(new l)!=g)&&(E=function(O){var P=a(O),R=P==d?O.constructor:void 0,A=R?s(R):"";if(A)switch(A){case y:return b;case C:return u;case S:return f;case w:return h;case M:return g}return P}),JS=E,JS}var ew,$k;function vie(){if($k)return ew;$k=1;var e=lF(),t=iF(),n=Qle(),r=pie(),l=bie(),a=hi(),s=aF(),u=cF(),d=1,f="[object Arguments]",h="[object Array]",g="[object Object]",b=Object.prototype,y=b.hasOwnProperty;function C(S,w,M,E,O,P){var R=a(S),A=a(w),z=R?h:l(S),k=A?h:l(w);z=z==f?g:z,k=k==f?g:k;var L=z==g,H=k==g,$=z==k;if($&&s(S)){if(!s(w))return!1;R=!0,L=!1}if($&&!L)return P||(P=new e),R||u(S)?t(S,w,M,E,O,P):n(S,w,z,M,E,O,P);if(!(M&d)){var I=L&&y.call(S,"__wrapped__"),j=H&&y.call(w,"__wrapped__");if(I||j){var q=I?S.value():S,F=j?w.value():w;return P||(P=new e),O(q,F,M,E,P)}}return $?(P||(P=new e),r(S,w,M,E,O,P)):!1}return ew=C,ew}var tw,zk;function dF(){if(zk)return tw;zk=1;var e=vie(),t=vd();function n(r,l,a,s,u){return r===l?!0:r==null||l==null||!t(r)&&!t(l)?r!==r&&l!==l:e(r,l,a,s,n,u)}return tw=n,tw}var nw,Fk;function yie(){if(Fk)return nw;Fk=1;var e=lF(),t=dF(),n=1,r=2;function l(a,s,u,d){var f=u.length,h=f,g=!d;if(a==null)return!h;for(a=Object(a);f--;){var b=u[f];if(g&&b[2]?b[1]!==a[b[0]]:!(b[0]in a))return!1}for(;++f<h;){b=u[f];var y=b[0],C=a[y],S=b[1];if(g&&b[2]){if(C===void 0&&!(y in a))return!1}else{var w=new e;if(d)var M=d(C,S,y,a,s,w);if(!(M===void 0?t(S,C,n|r,d,w):M))return!1}}return!0}return nw=l,nw}var rw,Hk;function fF(){if(Hk)return rw;Hk=1;var e=Ps();function t(n){return n===n&&!e(n)}return rw=t,rw}var ow,Nk;function Cie(){if(Nk)return ow;Nk=1;var e=fF(),t=uF();function n(r){for(var l=t(r),a=l.length;a--;){var s=l[a],u=r[s];l[a]=[s,u,e(u)]}return l}return ow=n,ow}var lw,jk;function pF(){if(jk)return lw;jk=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return lw=e,lw}var iw,Bk;function Sie(){if(Bk)return iw;Bk=1;var e=yie(),t=Cie(),n=pF();function r(l){var a=t(l);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(s){return s===l||e(s,l,a)}}return iw=r,iw}var aw,Gk;function yM(){if(Gk)return aw;Gk=1;var e=hi(),t=sb(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function l(a,s){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||s!=null&&a in Object(s)}return aw=l,aw}var sw,Vk;function wie(){if(Vk)return sw;Vk=1;var e=nF(),t=500;function n(r){var l=e(r,function(s){return a.size===t&&a.clear(),s}),a=l.cache;return l}return sw=n,sw}var cw,Uk;function xie(){if(Uk)return cw;Uk=1;var e=wie(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(l){var a=[];return l.charCodeAt(0)===46&&a.push(""),l.replace(t,function(s,u,d,f){a.push(d?f.replace(n,"$1"):u||s)}),a});return cw=r,cw}var uw,qk;function Mie(){if(qk)return uw;qk=1;var e=Up(),t=rF(),n=hi(),r=sb(),l=e?e.prototype:void 0,a=l?l.toString:void 0;function s(u){if(typeof u=="string")return u;if(n(u))return t(u,s)+"";if(r(u))return a?a.call(u):"";var d=u+"";return d=="0"&&1/u==-1/0?"-0":d}return uw=s,uw}var dw,Wk;function Tie(){if(Wk)return dw;Wk=1;var e=Mie();function t(n){return n==null?"":e(n)}return dw=t,dw}var fw,Kk;function hF(){if(Kk)return fw;Kk=1;var e=hi(),t=yM(),n=xie(),r=Tie();function l(a,s){return e(a)?a:t(a,s)?[a]:n(r(a))}return fw=l,fw}var pw,Yk;function hb(){if(Yk)return pw;Yk=1;var e=sb();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return pw=t,pw}var hw,Xk;function gF(){if(Xk)return hw;Xk=1;var e=hF(),t=hb();function n(r,l){l=e(l,r);for(var a=0,s=l.length;r!=null&&a<s;)r=r[t(l[a++])];return a&&a==s?r:void 0}return hw=n,hw}var gw,Qk;function Eie(){if(Qk)return gw;Qk=1;var e=gF();function t(n,r,l){var a=n==null?void 0:e(n,r);return a===void 0?l:a}return gw=t,gw}var mw,Zk;function Pie(){if(Zk)return mw;Zk=1;function e(t,n){return t!=null&&n in Object(t)}return mw=e,mw}var bw,Jk;function Rie(){if(Jk)return bw;Jk=1;var e=hF(),t=bM(),n=hi(),r=pM(),l=vM(),a=hb();function s(u,d,f){d=e(d,u);for(var h=-1,g=d.length,b=!1;++h<g;){var y=a(d[h]);if(!(b=u!=null&&f(u,y)))break;u=u[y]}return b||++h!=g?b:(g=u==null?0:u.length,!!g&&l(g)&&r(y,g)&&(n(u)||t(u)))}return bw=s,bw}var vw,e_;function Aie(){if(e_)return vw;e_=1;var e=Pie(),t=Rie();function n(r,l){return r!=null&&t(r,l,e)}return vw=n,vw}var yw,t_;function Oie(){if(t_)return yw;t_=1;var e=dF(),t=Eie(),n=Aie(),r=yM(),l=fF(),a=pF(),s=hb(),u=1,d=2;function f(h,g){return r(h)&&l(g)?a(s(h),g):function(b){var y=t(b,h);return y===void 0&&y===g?n(b,h):e(g,y,u|d)}}return yw=f,yw}var Cw,n_;function Iie(){if(n_)return Cw;n_=1;function e(t){return function(n){return n?.[t]}}return Cw=e,Cw}var Sw,r_;function kie(){if(r_)return Sw;r_=1;var e=gF();function t(n){return function(r){return e(r,n)}}return Sw=t,Sw}var ww,o_;function _ie(){if(o_)return ww;o_=1;var e=Iie(),t=kie(),n=yM(),r=hb();function l(a){return n(a)?e(r(a)):t(a)}return ww=l,ww}var xw,l_;function Die(){if(l_)return xw;l_=1;var e=Sie(),t=Oie(),n=Kp(),r=hi(),l=_ie();function a(s){return typeof s=="function"?s:s==null?n:typeof s=="object"?r(s)?t(s[0],s[1]):e(s):l(s)}return xw=a,xw}var Mw,i_;function Lie(){if(i_)return Mw;i_=1;var e=Bi(),t=e;return Mw=t,Mw}var Tw,a_;function $ie(){if(a_)return Tw;a_=1;var e=Yp(),t=rF(),n=oF(),r=Die(),l=Bi(),a=sF(),s=Lie(),u=hi(),d=Math.min,f=s(function(h,g){g=g.length==1&&u(g[0])?t(g[0],a(r)):t(n(g,1),a(r));var b=g.length;return l(function(y){for(var C=-1,S=d(y.length,b);++C<S;)y[C]=g[C].call(this,y[C]);return e(h,this,y)})});return Tw=f,Tw}var Ew,s_;function mF(){if(s_)return Ew;s_=1;var e=Bi(),t=Pa(),n=yd(),r=Rc(),l=32,a=e(function(s,u){var d=r(u,n(a));return t(s,l,void 0,u,d)});return a.placeholder={},Ew=a,Ew}var Pw,c_;function zie(){if(c_)return Pw;c_=1;var e=Bi(),t=Pa(),n=yd(),r=Rc(),l=64,a=e(function(s,u){var d=r(u,n(a));return t(s,l,void 0,u,d)});return a.placeholder={},Pw=a,Pw}var Rw,u_;function Fie(){if(u_)return Rw;u_=1;var e=oF();function t(n){var r=n==null?0:n.length;return r?e(n,1):[]}return Rw=t,Rw}var Aw,d_;function Hie(){if(d_)return Aw;d_=1;var e=Fie(),t=Zz(),n=fM();function r(l){return n(t(l,void 0,e),l+"")}return Aw=r,Aw}var Ow,f_;function Nie(){if(f_)return Ow;f_=1;var e=Pa(),t=Hie(),n=256,r=t(function(l,a){return e(l,n,void 0,void 0,void 0,a)});return Ow=r,Ow}var Iw,p_;function jie(){if(p_)return Iw;p_=1;var e=Bi(),t=Wp(),n="Expected a function";function r(l,a){if(typeof l!="function")throw new TypeError(n);return a=a===void 0?a:t(a),e(l,a)}return Iw=r,Iw}var kw,h_;function Bie(){if(h_)return kw;h_=1;function e(t,n,r){var l=-1,a=t.length;n<0&&(n=-n>a?0:a+n),r=r>a?a:r,r<0&&(r+=a),a=n>r?0:r-n>>>0,n>>>=0;for(var s=Array(a);++l<a;)s[l]=t[l+n];return s}return kw=e,kw}var _w,g_;function Gie(){if(g_)return _w;g_=1;var e=Bie();function t(n,r,l){var a=n.length;return l=l===void 0?a:l,!r&&l>=a?n:e(n,r,l)}return _w=t,_w}var Dw,m_;function Vie(){if(m_)return Dw;m_=1;var e=Yp(),t=mM(),n=Bi(),r=Gie(),l=Wp(),a="Expected a function",s=Math.max;function u(d,f){if(typeof d!="function")throw new TypeError(a);return f=f==null?0:s(l(f),0),n(function(h){var g=h[f],b=r(h,0,f);return g&&t(b,g),e(d,this,b)})}return Dw=u,Dw}var Lw,b_;function Uie(){if(b_)return Lw;b_=1;var e=Jz(),t=Ps(),n="Expected a function";function r(l,a,s){var u=!0,d=!0;if(typeof l!="function")throw new TypeError(n);return t(s)&&(u="leading"in s?!!s.leading:u,d="trailing"in s?!!s.trailing:d),e(l,a,{leading:u,maxWait:a,trailing:d})}return Lw=r,Lw}var $w,v_;function qie(){if(v_)return $w;v_=1;var e=Xz();function t(n){return e(n,1)}return $w=t,$w}var zw,y_;function Wie(){if(y_)return zw;y_=1;var e=Kp();function t(n){return typeof n=="function"?n:e}return zw=t,zw}var Fw,C_;function Kie(){if(C_)return Fw;C_=1;var e=Wie(),t=mF();function n(r,l){return t(e(l),r)}return Fw=n,Fw}var Hw,S_;function Yie(){return S_||(S_=1,Hw={after:Doe(),ary:Xz(),before:Qz(),bind:cle(),bindKey:ule(),curry:dle(),curryRight:fle(),debounce:Jz(),defer:hle(),delay:gle(),flip:mle(),memoize:nF(),negate:Dle(),once:Lle(),overArgs:$ie(),partial:mF(),partialRight:zie(),rearg:Nie(),rest:jie(),spread:Vie(),throttle:Uie(),unary:qie(),wrap:Kie()}),Hw}var Xie=Yie(),Vg={exports:{}};const Qie=!0,Br="u-",Zie="uplot",Jie=Br+"hz",eae=Br+"vt",tae=Br+"title",nae=Br+"wrap",rae=Br+"under",oae=Br+"over",lae=Br+"axis",rc=Br+"off",iae=Br+"select",aae=Br+"cursor-x",sae=Br+"cursor-y",cae=Br+"cursor-pt",uae=Br+"legend",dae=Br+"live",fae=Br+"inline",pae=Br+"series",hae=Br+"marker",w_=Br+"label",gae=Br+"value",qf="width",Wf="height",$f="top",x_="bottom",Tu="left",Nw="right",CM="#000",M_=CM+"0",jw="mousemove",T_="mousedown",Bw="mouseup",E_="mouseenter",P_="mouseleave",R_="dblclick",mae="resize",bae="scroll",A_="change",mm="dppxchange",SM="--",Cd=typeof window<"u",j1=Cd?document:null,Nu=Cd?window:null,vae=Cd?navigator:null;let hn,xg;function B1(){let e=devicePixelRatio;hn!=e&&(hn=e,xg&&V1(A_,xg,B1),xg=matchMedia(`(min-resolution: ${hn-.001}dppx) and (max-resolution: ${hn+.001}dppx)`),gc(A_,xg,B1),Nu.dispatchEvent(new CustomEvent(mm)))}function Zo(e,t){if(t!=null){let n=e.classList;!n.contains(t)&&n.add(t)}}function G1(e,t){let n=e.classList;n.contains(t)&&n.remove(t)}function Qn(e,t,n){e.style[t]=n+"px"}function ti(e,t,n,r){let l=j1.createElement(e);return t!=null&&Zo(l,t),n?.insertBefore(l,r),l}function wl(e,t){return ti("div",e,t)}const O_=new WeakMap;function Pi(e,t,n,r,l){let a="translate("+t+"px,"+n+"px)",s=O_.get(e);a!=s&&(e.style.transform=a,O_.set(e,a),t<0||n<0||t>r||n>l?Zo(e,rc):G1(e,rc))}const I_=new WeakMap;function k_(e,t,n){let r=t+n,l=I_.get(e);r!=l&&(I_.set(e,r),e.style.background=t,e.style.borderColor=n)}const __=new WeakMap;function D_(e,t,n,r){let l=t+""+n,a=__.get(e);l!=a&&(__.set(e,l),e.style.height=n+"px",e.style.width=t+"px",e.style.marginLeft=r?-t/2+"px":0,e.style.marginTop=r?-n/2+"px":0)}const wM={passive:!0},yae={...wM,capture:!0};function gc(e,t,n,r){t.addEventListener(e,n,r?yae:wM)}function V1(e,t,n,r){t.removeEventListener(e,n,wM)}Cd&&B1();function oi(e,t,n,r){let l;n=n||0,r=r||t.length-1;let a=r<=2147483647;for(;r-n>1;)l=a?n+r>>1:ll((n+r)/2),t[l]<e?n=l:r=l;return e-t[n]<=t[r]-e?n:r}function bF(e){return(n,r,l)=>{let a=-1,s=-1;for(let u=r;u<=l;u++)if(e(n[u])){a=u;break}for(let u=l;u>=r;u--)if(e(n[u])){s=u;break}return[a,s]}}const vF=e=>e!=null,yF=e=>e!=null&&e>0,gb=bF(vF),Cae=bF(yF);function Sae(e,t,n,r=0,l=!1){let a=l?Cae:gb,s=l?yF:vF;[t,n]=a(e,t,n);let u=e[t],d=e[t];if(t>-1)if(r==1)u=e[t],d=e[n];else if(r==-1)u=e[n],d=e[t];else for(let f=t;f<=n;f++){let h=e[f];s(h)&&(h<u?u=h:h>d&&(d=h))}return[u??Nn,d??-Nn]}function mb(e,t,n,r){let l=z_(e),a=z_(t);e==t&&(l==-1?(e*=n,t/=n):(e/=n,t*=n));let s=n==10?ma:CF,u=l==1?ll:Pl,d=a==1?Pl:ll,f=u(s(Hr(e))),h=d(s(Hr(t))),g=nd(n,f),b=nd(n,h);return n==10&&(f<0&&(g=jn(g,-f)),h<0&&(b=jn(b,-h))),r||n==2?(e=g*l,t=b*a):(e=MF(e,g),t=bb(t,b)),[e,t]}function xM(e,t,n,r){let l=mb(e,t,n,r);return e==0&&(l[0]=0),t==0&&(l[1]=0),l}const MM=.1,L_={mode:3,pad:MM},lp={pad:0,soft:null,mode:0},wae={min:lp,max:lp};function bm(e,t,n,r){return vb(n)?$_(e,t,n):(lp.pad=n,lp.soft=r?0:null,lp.mode=r?3:0,$_(e,t,wae))}function sn(e,t){return e??t}function xae(e,t,n){for(t=sn(t,0),n=sn(n,e.length-1);t<=n;){if(e[t]!=null)return!0;t++}return!1}function $_(e,t,n){let r=n.min,l=n.max,a=sn(r.pad,0),s=sn(l.pad,0),u=sn(r.hard,-Nn),d=sn(l.hard,Nn),f=sn(r.soft,Nn),h=sn(l.soft,-Nn),g=sn(r.mode,0),b=sn(l.mode,0),y=t-e,C=ma(y),S=Eo(Hr(e),Hr(t)),w=ma(S),M=Hr(w-C);(y<1e-24||M>10)&&(y=0,(e==0||t==0)&&(y=1e-24,g==2&&f!=Nn&&(a=0),b==2&&h!=-Nn&&(s=0)));let E=y||S||1e3,O=ma(E),P=nd(10,ll(O)),R=E*(y==0?e==0?.1:1:a),A=jn(MF(e-R,P/10),24),z=e>=f&&(g==1||g==3&&A<=f||g==2&&A>=f)?f:Nn,k=Eo(u,A<z&&e>=z?z:ii(z,A)),L=E*(y==0?t==0?.1:1:s),H=jn(bb(t+L,P/10),24),$=t<=h&&(b==1||b==3&&H>=h||b==2&&H<=h)?h:-Nn,I=ii(d,H>$&&t<=$?$:Eo($,H));return k==I&&k==0&&(I=100),[k,I]}const Mae=new Intl.NumberFormat(Cd?vae.language:"en-US"),TM=e=>Mae.format(e),sl=Math,Ug=sl.PI,Hr=sl.abs,ll=sl.floor,$r=sl.round,Pl=sl.ceil,ii=sl.min,Eo=sl.max,nd=sl.pow,z_=sl.sign,ma=sl.log10,CF=sl.log2,Tae=(e,t=1)=>sl.sinh(e)*t,Gw=(e,t=1)=>sl.asinh(e/t),Nn=1/0;function F_(e){return(ma((e^e>>31)-(e>>31))|0)+1}function U1(e,t,n){return ii(Eo(e,t),n)}function SF(e){return typeof e=="function"}function Yt(e){return SF(e)?e:()=>e}const Eae=()=>{},wF=e=>e,xF=(e,t)=>t,Pae=e=>null,H_=e=>!0,N_=(e,t)=>e==t,Rae=/\.\d*?(?=9{6,}|0{6,})/gm,wc=e=>{if(EF(e)||Cs.has(e))return e;const t=`${e}`,n=t.match(Rae);if(n==null)return e;let r=n[0].length-1;if(t.indexOf("e-")!=-1){let[l,a]=t.split("e");return+`${wc(l)}e${a}`}return jn(e,r)};function tc(e,t){return wc(jn(wc(e/t))*t)}function bb(e,t){return wc(Pl(wc(e/t))*t)}function MF(e,t){return wc(ll(wc(e/t))*t)}function jn(e,t=0){if(EF(e))return e;let n=10**t,r=e*n*(1+Number.EPSILON);return $r(r)/n}const Cs=new Map;function TF(e){return((""+e).split(".")[1]||"").length}function wp(e,t,n,r){let l=[],a=r.map(TF);for(let s=t;s<n;s++){let u=Hr(s),d=jn(nd(e,s),u);for(let f=0;f<r.length;f++){let h=e==10?+`${r[f]}e${s}`:r[f]*d,g=(s>=0?0:u)+(s>=a[f]?0:a[f]),b=e==10?h:jn(h,g);l.push(b),Cs.set(b,g)}}return l}const ip={},EM=[],rd=[null,null],ss=Array.isArray,EF=Number.isInteger,Aae=e=>e===void 0;function j_(e){return typeof e=="string"}function vb(e){let t=!1;if(e!=null){let n=e.constructor;t=n==null||n==Object}return t}function Oae(e){return e!=null&&typeof e=="object"}const Iae=Object.getPrototypeOf(Uint8Array),PF="__proto__";function od(e,t=vb){let n;if(ss(e)){let r=e.find(l=>l!=null);if(ss(r)||t(r)){n=Array(e.length);for(let l=0;l<e.length;l++)n[l]=od(e[l],t)}else n=e.slice()}else if(e instanceof Iae)n=e.slice();else if(t(e)){n={};for(let r in e)r!=PF&&(n[r]=od(e[r],t))}else n=e;return n}function Rr(e){let t=arguments;for(let n=1;n<t.length;n++){let r=t[n];for(let l in r)l!=PF&&(vb(e[l])?Rr(e[l],od(r[l])):e[l]=od(r[l]))}return e}const kae=0,_ae=1,Dae=2;function Lae(e,t,n){for(let r=0,l,a=-1;r<t.length;r++){let s=t[r];if(s>a){for(l=s-1;l>=0&&e[l]==null;)e[l--]=null;for(l=s+1;l<n&&e[l]==null;)e[a=l++]=null}}}function $ae(e,t){if(Hae(e)){let s=e[0].slice();for(let u=1;u<e.length;u++)s.push(...e[u].slice(1));return Nae(s[0])||(s=Fae(s)),s}let n=new Set;for(let s=0;s<e.length;s++){let d=e[s][0],f=d.length;for(let h=0;h<f;h++)n.add(d[h])}let r=[Array.from(n).sort((s,u)=>s-u)],l=r[0].length,a=new Map;for(let s=0;s<l;s++)a.set(r[0][s],s);for(let s=0;s<e.length;s++){let u=e[s],d=u[0];for(let f=1;f<u.length;f++){let h=u[f],g=Array(l).fill(void 0),b=t?t[s][f]:_ae,y=[];for(let C=0;C<h.length;C++){let S=h[C],w=a.get(d[C]);S===null?b!=kae&&(g[w]=S,b==Dae&&y.push(w)):g[w]=S}Lae(g,y,l),r.push(g)}}return r}const zae=typeof queueMicrotask>"u"?e=>Promise.resolve().then(e):queueMicrotask;function Fae(e){let t=e[0],n=t.length,r=Array(n);for(let a=0;a<r.length;a++)r[a]=a;r.sort((a,s)=>t[a]-t[s]);let l=[];for(let a=0;a<e.length;a++){let s=e[a],u=Array(n);for(let d=0;d<n;d++)u[d]=s[r[d]];l.push(u)}return l}function Hae(e){let t=e[0][0],n=t.length;for(let r=1;r<e.length;r++){let l=e[r][0];if(l.length!=n)return!1;if(l!=t){for(let a=0;a<n;a++)if(l[a]!=t[a])return!1}}return!0}function Nae(e,t=100){const n=e.length;if(n<=1)return!0;let r=0,l=n-1;for(;r<=l&&e[r]==null;)r++;for(;l>=r&&e[l]==null;)l--;if(l<=r)return!0;const a=Eo(1,ll((l-r+1)/t));for(let s=e[r],u=r+a;u<=l;u+=a){const d=e[u];if(d!=null){if(d<=s)return!1;s=d}}return!0}const RF=["January","February","March","April","May","June","July","August","September","October","November","December"],AF=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function OF(e){return e.slice(0,3)}const jae=AF.map(OF),Bae=RF.map(OF),Gae={MMMM:RF,MMM:Bae,WWWW:AF,WWW:jae};function zf(e){return(e<10?"0":"")+e}function Vae(e){return(e<10?"00":e<100?"0":"")+e}const Uae={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,t)=>t.MMMM[e.getMonth()],MMM:(e,t)=>t.MMM[e.getMonth()],MM:e=>zf(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>zf(e.getDate()),D:e=>e.getDate(),WWWW:(e,t)=>t.WWWW[e.getDay()],WWW:(e,t)=>t.WWW[e.getDay()],HH:e=>zf(e.getHours()),H:e=>e.getHours(),h:e=>{let t=e.getHours();return t==0?12:t>12?t-12:t},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>zf(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>zf(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>Vae(e.getMilliseconds())};function PM(e,t){t=t||Gae;let n=[],r=/\{([a-z]+)\}|[^{]+/gi,l;for(;l=r.exec(e);)n.push(l[0][0]=="{"?Uae[l[1]]:l[0]);return a=>{let s="";for(let u=0;u<n.length;u++)s+=typeof n[u]=="string"?n[u]:n[u](a,t);return s}}const qae=new Intl.DateTimeFormat().resolvedOptions().timeZone;function Wae(e,t){let n;return t=="UTC"||t=="Etc/UTC"?n=new Date(+e+e.getTimezoneOffset()*6e4):t==qae?n=e:(n=new Date(e.toLocaleString("en-US",{timeZone:t})),n.setMilliseconds(e.getMilliseconds())),n}const IF=e=>e%1==0,vm=[1,2,2.5,5],Kae=wp(10,-32,0,vm),kF=wp(10,0,32,vm),Yae=kF.filter(IF),nc=Kae.concat(kF),RM=`
`,_F="{YYYY}",B_=RM+_F,DF="{M}/{D}",Kf=RM+DF,Mg=Kf+"/{YY}",LF="{aa}",Xae="{h}:{mm}",Ru=Xae+LF,G_=RM+Ru,V_=":{ss}",vn=null;function $F(e){let t=e*1e3,n=t*60,r=n*60,l=r*24,a=l*30,s=l*365,d=(e==1?wp(10,0,3,vm).filter(IF):wp(10,-3,0,vm)).concat([t,t*5,t*10,t*15,t*30,n,n*5,n*10,n*15,n*30,r,r*2,r*3,r*4,r*6,r*8,r*12,l,l*2,l*3,l*4,l*5,l*6,l*7,l*8,l*9,l*10,l*15,a,a*2,a*3,a*4,a*6,s,s*2,s*5,s*10,s*25,s*50,s*100]);const f=[[s,_F,vn,vn,vn,vn,vn,vn,1],[l*28,"{MMM}",B_,vn,vn,vn,vn,vn,1],[l,DF,B_,vn,vn,vn,vn,vn,1],[r,"{h}"+LF,Mg,vn,Kf,vn,vn,vn,1],[n,Ru,Mg,vn,Kf,vn,vn,vn,1],[t,V_,Mg+" "+Ru,vn,Kf+" "+Ru,vn,G_,vn,1],[e,V_+".{fff}",Mg+" "+Ru,vn,Kf+" "+Ru,vn,G_,vn,1]];function h(g){return(b,y,C,S,w,M)=>{let E=[],O=w>=s,P=w>=a&&w<s,R=g(C),A=jn(R*e,3),z=Vw(R.getFullYear(),O?0:R.getMonth(),P||O?1:R.getDate()),k=jn(z*e,3);if(P||O){let L=P?w/a:0,H=O?w/s:0,$=A==k?A:jn(Vw(z.getFullYear()+H,z.getMonth()+L,1)*e,3),I=new Date($r($/e)),j=I.getFullYear(),q=I.getMonth();for(let F=0;$<=S;F++){let _=Vw(j+H*F,q+L*F,1),B=_-g(jn(_*e,3));$=jn((+_+B)*e,3),$<=S&&E.push($)}}else{let L=w>=l?l:w,H=ll(C)-ll(A),$=k+H+bb(A-k,L);E.push($);let I=g($),j=I.getHours()+I.getMinutes()/n+I.getSeconds()/r,q=w/r,F=b.axes[y]._space,_=M/F;for(;$=jn($+w,e==1?0:3),!($>S);)if(q>1){let B=ll(jn(j+q,6))%24,D=g($).getHours()-B;D>1&&(D=-1),$-=D*r,j=(j+q)%24;let G=E[E.length-1];jn(($-G)/w,3)*_>=.7&&E.push($)}else E.push($)}return E}}return[d,f,h]}const[Qae,Zae,Jae]=$F(1),[ese,tse,nse]=$F(.001);wp(2,-53,53,[1]);function U_(e,t){return e.map(n=>n.map((r,l)=>l==0||l==8||r==null?r:t(l==1||n[8]==0?r:n[1]+r)))}function q_(e,t){return(n,r,l,a,s)=>{let u=t.find(C=>s>=C[0])||t[t.length-1],d,f,h,g,b,y;return r.map(C=>{let S=e(C),w=S.getFullYear(),M=S.getMonth(),E=S.getDate(),O=S.getHours(),P=S.getMinutes(),R=S.getSeconds(),A=w!=d&&u[2]||M!=f&&u[3]||E!=h&&u[4]||O!=g&&u[5]||P!=b&&u[6]||R!=y&&u[7]||u[1];return d=w,f=M,h=E,g=O,b=P,y=R,A(S)})}}function rse(e,t){let n=PM(t);return(r,l,a,s,u)=>l.map(d=>n(e(d)))}function Vw(e,t,n){return new Date(e,t,n)}function W_(e,t){return t(e)}const ose="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function K_(e,t){return(n,r,l,a)=>a==null?SM:t(e(r))}function lse(e,t){let n=e.series[t];return n.width?n.stroke(e,t):n.points.width?n.points.stroke(e,t):null}function ise(e,t){return e.series[t].fill(e,t)}const ase={show:!0,live:!0,isolate:!1,mount:Eae,markers:{show:!0,width:2,stroke:lse,fill:ise,dash:"solid"},idx:null,idxs:null,values:[]};function sse(e,t){let n=e.cursor.points,r=wl(),l=n.size(e,t);Qn(r,qf,l),Qn(r,Wf,l);let a=l/-2;Qn(r,"marginLeft",a),Qn(r,"marginTop",a);let s=n.width(e,t,l);return s&&Qn(r,"borderWidth",s),r}function cse(e,t){let n=e.series[t].points;return n._fill||n._stroke}function use(e,t){let n=e.series[t].points;return n._stroke||n._fill}function dse(e,t){return e.series[t].points.size}const Uw=[0,0];function fse(e,t,n){return Uw[0]=t,Uw[1]=n,Uw}function Tg(e,t,n,r=!0){return l=>{l.button==0&&(!r||l.target==t)&&n(l)}}function qw(e,t,n,r=!0){return l=>{(!r||l.target==t)&&n(l)}}const pse={show:!0,x:!0,y:!0,lock:!1,move:fse,points:{one:!1,show:sse,size:dse,width:0,stroke:use,fill:cse},bind:{mousedown:Tg,mouseup:Tg,click:Tg,dblclick:Tg,mousemove:qw,mouseleave:qw,mouseenter:qw},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(e,t,n,r,l)=>r-l,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},zF={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},AM=Rr({},zF,{filter:xF}),FF=Rr({},AM,{size:10}),HF=Rr({},zF,{show:!1}),OM='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',NF="bold "+OM,jF=1.5,Y_={show:!0,scale:"x",stroke:CM,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:NF,side:2,grid:AM,ticks:FF,border:HF,font:OM,lineGap:jF,rotate:0},hse="Value",gse="Time",X_={show:!0,scale:"x",auto:!1,sorted:1,min:Nn,max:-Nn,idxs:[]};function mse(e,t,n,r,l){return t.map(a=>a==null?"":TM(a))}function bse(e,t,n,r,l,a,s){let u=[],d=Cs.get(l)||0;n=s?n:jn(bb(n,l),d);for(let f=n;f<=r;f=jn(f+l,d))u.push(Object.is(f,-0)?0:f);return u}function q1(e,t,n,r,l,a,s){const u=[],d=e.scales[e.axes[t].scale].log,f=d==10?ma:CF,h=ll(f(n));l=nd(d,h),d==10&&(l=nc[oi(l,nc)]);let g=n,b=l*d;d==10&&(b=nc[oi(b,nc)]);do u.push(g),g=g+l,d==10&&!Cs.has(g)&&(g=jn(g,Cs.get(l))),g>=b&&(l=g,b=l*d,d==10&&(b=nc[oi(b,nc)]));while(g<=r);return u}function vse(e,t,n,r,l,a,s){let d=e.scales[e.axes[t].scale].asinh,f=r>d?q1(e,t,Eo(d,n),r,l):[d],h=r>=0&&n<=0?[0]:[];return(n<-d?q1(e,t,Eo(d,-r),-n,l):[d]).reverse().map(b=>-b).concat(h,f)}const BF=/./,yse=/[12357]/,Cse=/[125]/,Q_=/1/,W1=(e,t,n,r)=>e.map((l,a)=>t==4&&l==0||a%r==0&&n.test(l.toExponential()[l<0?1:0])?l:null);function Sse(e,t,n,r,l){let a=e.axes[n],s=a.scale,u=e.scales[s],d=e.valToPos,f=a._space,h=d(10,s),g=d(9,s)-h>=f?BF:d(7,s)-h>=f?yse:d(5,s)-h>=f?Cse:Q_;if(g==Q_){let b=Hr(d(1,s)-h);if(b<f)return W1(t.slice().reverse(),u.distr,g,Pl(f/b)).reverse()}return W1(t,u.distr,g,1)}function wse(e,t,n,r,l){let a=e.axes[n],s=a.scale,u=a._space,d=e.valToPos,f=Hr(d(1,s)-d(2,s));return f<u?W1(t.slice().reverse(),3,BF,Pl(u/f)).reverse():t}function xse(e,t,n,r){return r==null?SM:t==null?"":TM(t)}const Z_={show:!0,scale:"y",stroke:CM,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:NF,side:3,grid:AM,ticks:FF,border:HF,font:OM,lineGap:jF,rotate:0};function Mse(e,t){let n=3+(e||1)*2;return jn(n*t,3)}function Tse(e,t){let{scale:n,idxs:r}=e.series[0],l=e._data[0],a=e.valToPos(l[r[0]],n,!0),s=e.valToPos(l[r[1]],n,!0),u=Hr(s-a),d=e.series[t],f=u/(d.points.space*hn);return r[1]-r[0]<=f}const J_={scale:null,auto:!0,sorted:0,min:Nn,max:-Nn},GF=(e,t,n,r,l)=>l,eD={show:!0,auto:!0,sorted:0,gaps:GF,alpha:1,facets:[Rr({},J_,{scale:"x"}),Rr({},J_,{scale:"y"})]},tD={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:GF,alpha:1,points:{show:Tse,filter:null},values:null,min:Nn,max:-Nn,idxs:[],path:null,clip:null};function Ese(e,t,n,r,l){return n/10}const VF={time:Qie,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},Pse=Rr({},VF,{time:!1,ori:1}),nD={};function UF(e,t){let n=nD[e];return n||(n={key:e,plots:[],sub(r){n.plots.push(r)},unsub(r){n.plots=n.plots.filter(l=>l!=r)},pub(r,l,a,s,u,d,f){for(let h=0;h<n.plots.length;h++)n.plots[h]!=l&&n.plots[h].pub(r,l,a,s,u,d,f)}},e!=null&&(nD[e]=n)),n}const ld=1,K1=2;function Ac(e,t,n){const r=e.mode,l=e.series[t],a=r==2?e._data[t]:e._data,s=e.scales,u=e.bbox;let d=a[0],f=r==2?a[1]:a[t],h=r==2?s[l.facets[0].scale]:s[e.series[0].scale],g=r==2?s[l.facets[1].scale]:s[l.scale],b=u.left,y=u.top,C=u.width,S=u.height,w=e.valToPosH,M=e.valToPosV;return h.ori==0?n(l,d,f,h,g,w,M,b,y,C,S,Cb,Sd,wb,WF,YF):n(l,d,f,h,g,M,w,y,b,S,C,Sb,wd,_M,KF,XF)}function IM(e,t){let n=0,r=0,l=sn(e.bands,EM);for(let a=0;a<l.length;a++){let s=l[a];s.series[0]==t?n=s.dir:s.series[1]==t&&(s.dir==1?r|=1:r|=2)}return[n,r==1?-1:r==2?1:r==3?2:0]}function Rse(e,t,n,r,l){let a=e.mode,s=e.series[t],u=a==2?s.facets[1].scale:s.scale,d=e.scales[u];return l==-1?d.min:l==1?d.max:d.distr==3?d.dir==1?d.min:d.max:0}function ba(e,t,n,r,l,a){return Ac(e,t,(s,u,d,f,h,g,b,y,C,S,w)=>{let M=s.pxRound;const E=f.dir*(f.ori==0?1:-1),O=f.ori==0?Sd:wd;let P,R;E==1?(P=n,R=r):(P=r,R=n);let A=M(g(u[P],f,S,y)),z=M(b(d[P],h,w,C)),k=M(g(u[R],f,S,y)),L=M(b(a==1?h.max:h.min,h,w,C)),H=new Path2D(l);return O(H,k,L),O(H,A,L),O(H,A,z),H})}function yb(e,t,n,r,l,a){let s=null;if(e.length>0){s=new Path2D;const u=t==0?wb:_M;let d=n;for(let g=0;g<e.length;g++){let b=e[g];if(b[1]>b[0]){let y=b[0]-d;y>0&&u(s,d,r,y,r+a),d=b[1]}}let f=n+l-d,h=10;f>0&&u(s,d,r-h/2,f,r+a+h)}return s}function Ase(e,t,n){let r=e[e.length-1];r&&r[0]==t?r[1]=n:e.push([t,n])}function kM(e,t,n,r,l,a,s){let u=[],d=e.length;for(let f=l==1?n:r;f>=n&&f<=r;f+=l)if(t[f]===null){let g=f,b=f;if(l==1)for(;++f<=r&&t[f]===null;)b=f;else for(;--f>=n&&t[f]===null;)b=f;let y=a(e[g]),C=b==g?y:a(e[b]),S=g-l;y=s<=0&&S>=0&&S<d?a(e[S]):y;let M=b+l;C=s>=0&&M>=0&&M<d?a(e[M]):C,C>=y&&u.push([y,C])}return u}function rD(e){return e==0?wF:e==1?$r:t=>tc(t,e)}function qF(e){let t=e==0?Cb:Sb,n=e==0?(l,a,s,u,d,f)=>{l.arcTo(a,s,u,d,f)}:(l,a,s,u,d,f)=>{l.arcTo(s,a,d,u,f)},r=e==0?(l,a,s,u,d)=>{l.rect(a,s,u,d)}:(l,a,s,u,d)=>{l.rect(s,a,d,u)};return(l,a,s,u,d,f=0,h=0)=>{f==0&&h==0?r(l,a,s,u,d):(f=ii(f,u/2,d/2),h=ii(h,u/2,d/2),t(l,a+f,s),n(l,a+u,s,a+u,s+d,f),n(l,a+u,s+d,a,s+d,h),n(l,a,s+d,a,s,h),n(l,a,s,a+u,s,f),l.closePath())}}const Cb=(e,t,n)=>{e.moveTo(t,n)},Sb=(e,t,n)=>{e.moveTo(n,t)},Sd=(e,t,n)=>{e.lineTo(t,n)},wd=(e,t,n)=>{e.lineTo(n,t)},wb=qF(0),_M=qF(1),WF=(e,t,n,r,l,a)=>{e.arc(t,n,r,l,a)},KF=(e,t,n,r,l,a)=>{e.arc(n,t,r,l,a)},YF=(e,t,n,r,l,a,s)=>{e.bezierCurveTo(t,n,r,l,a,s)},XF=(e,t,n,r,l,a,s)=>{e.bezierCurveTo(n,t,l,r,s,a)};function QF(e){return(t,n,r,l,a)=>Ac(t,n,(s,u,d,f,h,g,b,y,C,S,w)=>{let{pxRound:M,points:E}=s,O,P;f.ori==0?(O=Cb,P=WF):(O=Sb,P=KF);const R=jn(E.width*hn,3);let A=(E.size-E.width)/2*hn,z=jn(A*2,3),k=new Path2D,L=new Path2D,{left:H,top:$,width:I,height:j}=t.bbox;wb(L,H-z,$-z,I+z*2,j+z*2);const q=F=>{if(d[F]!=null){let _=M(g(u[F],f,S,y)),B=M(b(d[F],h,w,C));O(k,_+A,B),P(k,_,B,A,0,Ug*2)}};if(a)a.forEach(q);else for(let F=r;F<=l;F++)q(F);return{stroke:R>0?k:null,fill:k,clip:L,flags:ld|K1}})}function ZF(e){return(t,n,r,l,a,s)=>{r!=l&&(a!=r&&s!=r&&e(t,n,r),a!=l&&s!=l&&e(t,n,l),e(t,n,s))}}const Ose=ZF(Sd),Ise=ZF(wd);function JF(e){const t=sn(e?.alignGaps,0);return(n,r,l,a)=>Ac(n,r,(s,u,d,f,h,g,b,y,C,S,w)=>{[l,a]=gb(d,l,a);let M=s.pxRound,E=j=>M(g(j,f,S,y)),O=j=>M(b(j,h,w,C)),P,R;f.ori==0?(P=Sd,R=Ose):(P=wd,R=Ise);const A=f.dir*(f.ori==0?1:-1),z={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:ld},k=z.stroke;let L=!1;if(a-l>=S*4){let j=Z=>n.posToVal(Z,f.key,!0),q=null,F=null,_,B,J,Q=E(u[A==1?l:a]),D=E(u[l]),G=E(u[a]),W=j(A==1?D+1:G-1);for(let Z=A==1?l:a;Z>=l&&Z<=a;Z+=A){let te=u[Z],oe=(A==1?te<W:te>W)?Q:E(te),se=d[Z];oe==Q?se!=null?(B=se,q==null?(P(k,oe,O(B)),_=q=F=B):B<q?q=B:B>F&&(F=B)):se===null&&(L=!0):(q!=null&&R(k,Q,O(q),O(F),O(_),O(B)),se!=null?(B=se,P(k,oe,O(B)),q=F=_=B):(q=F=null,se===null&&(L=!0)),Q=oe,W=j(Q+A))}q!=null&&q!=F&&J!=Q&&R(k,Q,O(q),O(F),O(_),O(B))}else for(let j=A==1?l:a;j>=l&&j<=a;j+=A){let q=d[j];q===null?L=!0:q!=null&&P(k,E(u[j]),O(q))}let[$,I]=IM(n,r);if(s.fill!=null||$!=0){let j=z.fill=new Path2D(k),q=s.fillTo(n,r,s.min,s.max,$),F=O(q),_=E(u[l]),B=E(u[a]);A==-1&&([B,_]=[_,B]),P(j,B,F),P(j,_,F)}if(!s.spanGaps){let j=[];L&&j.push(...kM(u,d,l,a,A,E,t)),z.gaps=j=s.gaps(n,r,l,a,j),z.clip=yb(j,f.ori,y,C,S,w)}return I!=0&&(z.band=I==2?[ba(n,r,l,a,k,-1),ba(n,r,l,a,k,1)]:ba(n,r,l,a,k,I)),z})}function kse(e){const t=sn(e.align,1),n=sn(e.ascDesc,!1),r=sn(e.alignGaps,0),l=sn(e.extend,!1);return(a,s,u,d)=>Ac(a,s,(f,h,g,b,y,C,S,w,M,E,O)=>{[u,d]=gb(g,u,d);let P=f.pxRound,{left:R,width:A}=a.bbox,z=D=>P(C(D,b,E,w)),k=D=>P(S(D,y,O,M)),L=b.ori==0?Sd:wd;const H={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:ld},$=H.stroke,I=b.dir*(b.ori==0?1:-1);let j=k(g[I==1?u:d]),q=z(h[I==1?u:d]),F=q,_=q;l&&t==-1&&(_=R,L($,_,j)),L($,q,j);for(let D=I==1?u:d;D>=u&&D<=d;D+=I){let G=g[D];if(G==null)continue;let W=z(h[D]),Z=k(G);t==1?L($,W,j):L($,F,Z),L($,W,Z),j=Z,F=W}let B=F;l&&t==1&&(B=R+A,L($,B,j));let[J,Q]=IM(a,s);if(f.fill!=null||J!=0){let D=H.fill=new Path2D($),G=f.fillTo(a,s,f.min,f.max,J),W=k(G);L(D,B,W),L(D,_,W)}if(!f.spanGaps){let D=[];D.push(...kM(h,g,u,d,I,z,r));let G=f.width*hn/2,W=n||t==1?G:-G,Z=n||t==-1?-G:G;D.forEach(te=>{te[0]+=W,te[1]+=Z}),H.gaps=D=f.gaps(a,s,u,d,D),H.clip=yb(D,b.ori,w,M,E,O)}return Q!=0&&(H.band=Q==2?[ba(a,s,u,d,$,-1),ba(a,s,u,d,$,1)]:ba(a,s,u,d,$,Q)),H})}function oD(e,t,n,r,l,a,s=Nn){if(e.length>1){let u=null;for(let d=0,f=1/0;d<e.length;d++)if(t[d]!==void 0){if(u!=null){let h=Hr(e[d]-e[u]);h<f&&(f=h,s=Hr(n(e[d],r,l,a)-n(e[u],r,l,a)))}u=d}}return s}function _se(e){e=e||ip;const t=sn(e.size,[.6,Nn,1]),n=e.align||0,r=e.gap||0;let l=e.radius;l=l==null?[0,0]:typeof l=="number"?[l,0]:l;const a=Yt(l),s=1-t[0],u=sn(t[1],Nn),d=sn(t[2],1),f=sn(e.disp,ip),h=sn(e.each,y=>{}),{fill:g,stroke:b}=f;return(y,C,S,w)=>Ac(y,C,(M,E,O,P,R,A,z,k,L,H,$)=>{let I=M.pxRound,j=n,q=r*hn,F=u*hn,_=d*hn,B,J;P.ori==0?[B,J]=a(y,C):[J,B]=a(y,C);const Q=P.dir*(P.ori==0?1:-1);let D=P.ori==0?wb:_M,G=P.ori==0?h:(Pe,Ke,Xe,mt,_e,Je,Fe)=>{h(Pe,Ke,Xe,_e,mt,Fe,Je)},W=sn(y.bands,EM).find(Pe=>Pe.series[0]==C),Z=W!=null?W.dir:0,te=M.fillTo(y,C,M.min,M.max,Z),ne=I(z(te,R,$,L)),oe,se,Se,be=H,de=I(M.width*hn),ke=!1,Ae=null,Ne=null,$e=null,Ve=null;g!=null&&(de==0||b!=null)&&(ke=!0,Ae=g.values(y,C,S,w),Ne=new Map,new Set(Ae).forEach(Pe=>{Pe!=null&&Ne.set(Pe,new Path2D)}),de>0&&($e=b.values(y,C,S,w),Ve=new Map,new Set($e).forEach(Pe=>{Pe!=null&&Ve.set(Pe,new Path2D)})));let{x0:nt,size:lt}=f;if(nt!=null&&lt!=null){j=1,E=nt.values(y,C,S,w),nt.unit==2&&(E=E.map(Xe=>y.posToVal(k+Xe*H,P.key,!0)));let Pe=lt.values(y,C,S,w);lt.unit==2?se=Pe[0]*H:se=A(Pe[0],P,H,k)-A(0,P,H,k),be=oD(E,O,A,P,H,k,be),Se=be-se+q}else be=oD(E,O,A,P,H,k,be),Se=be*s+q,se=be-Se;Se<1&&(Se=0),de>=se/2&&(de=0),Se<5&&(I=wF);let me=Se>0,tt=be-Se-(me?de:0);se=I(U1(tt,_,F)),oe=(j==0?se/2:j==Q?0:se)-j*Q*((j==0?q/2:0)+(me?de/2:0));const ze={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},et=ke?null:new Path2D;let He=null;if(W!=null)He=y.data[W.series[1]];else{let{y0:Pe,y1:Ke}=f;Pe!=null&&Ke!=null&&(O=Ke.values(y,C,S,w),He=Pe.values(y,C,S,w))}let yt=B*se,Le=J*se;for(let Pe=Q==1?S:w;Pe>=S&&Pe<=w;Pe+=Q){let Ke=O[Pe];if(Ke==null)continue;if(He!=null){let pt=He[Pe]??0;if(Ke-pt==0)continue;ne=z(pt,R,$,L)}let Xe=P.distr!=2||f!=null?E[Pe]:Pe,mt=A(Xe,P,H,k),_e=z(sn(Ke,te),R,$,L),Je=I(mt-oe),Fe=I(Eo(_e,ne)),Qe=I(ii(_e,ne)),st=Fe-Qe;if(Ke!=null){let pt=Ke<0?Le:yt,Ze=Ke<0?yt:Le;ke?(de>0&&$e[Pe]!=null&&D(Ve.get($e[Pe]),Je,Qe+ll(de/2),se,Eo(0,st-de),pt,Ze),Ae[Pe]!=null&&D(Ne.get(Ae[Pe]),Je,Qe+ll(de/2),se,Eo(0,st-de),pt,Ze)):D(et,Je,Qe+ll(de/2),se,Eo(0,st-de),pt,Ze),G(y,C,Pe,Je-de/2,Qe,se+de,st)}}return de>0?ze.stroke=ke?Ve:et:ke||(ze._fill=M.width==0?M._fill:M._stroke??M._fill,ze.width=0),ze.fill=ke?Ne:et,ze})}function Dse(e,t){const n=sn(t?.alignGaps,0);return(r,l,a,s)=>Ac(r,l,(u,d,f,h,g,b,y,C,S,w,M)=>{[a,s]=gb(f,a,s);let E=u.pxRound,O=B=>E(b(B,h,w,C)),P=B=>E(y(B,g,M,S)),R,A,z;h.ori==0?(R=Cb,z=Sd,A=YF):(R=Sb,z=wd,A=XF);const k=h.dir*(h.ori==0?1:-1);let L=O(d[k==1?a:s]),H=L,$=[],I=[];for(let B=k==1?a:s;B>=a&&B<=s;B+=k)if(f[B]!=null){let Q=d[B],D=O(Q);$.push(H=D),I.push(P(f[B]))}const j={stroke:e($,I,R,z,A,E),fill:null,clip:null,band:null,gaps:null,flags:ld},q=j.stroke;let[F,_]=IM(r,l);if(u.fill!=null||F!=0){let B=j.fill=new Path2D(q),J=u.fillTo(r,l,u.min,u.max,F),Q=P(J);z(B,H,Q),z(B,L,Q)}if(!u.spanGaps){let B=[];B.push(...kM(d,f,a,s,k,O,n)),j.gaps=B=u.gaps(r,l,a,s,B),j.clip=yb(B,h.ori,C,S,w,M)}return _!=0&&(j.band=_==2?[ba(r,l,a,s,q,-1),ba(r,l,a,s,q,1)]:ba(r,l,a,s,q,_)),j})}function Lse(e){return Dse($se,e)}function $se(e,t,n,r,l,a){const s=e.length;if(s<2)return null;const u=new Path2D;if(n(u,e[0],t[0]),s==2)r(u,e[1],t[1]);else{let d=Array(s),f=Array(s-1),h=Array(s-1),g=Array(s-1);for(let b=0;b<s-1;b++)h[b]=t[b+1]-t[b],g[b]=e[b+1]-e[b],f[b]=h[b]/g[b];d[0]=f[0];for(let b=1;b<s-1;b++)f[b]===0||f[b-1]===0||f[b-1]>0!=f[b]>0?d[b]=0:(d[b]=3*(g[b-1]+g[b])/((2*g[b]+g[b-1])/f[b-1]+(g[b]+2*g[b-1])/f[b]),isFinite(d[b])||(d[b]=0));d[s-1]=f[s-2];for(let b=0;b<s-1;b++)l(u,e[b]+g[b]/3,t[b]+d[b]*g[b]/3,e[b+1]-g[b]/3,t[b+1]-d[b+1]*g[b]/3,e[b+1],t[b+1])}return u}const Y1=new Set;function lD(){for(let e of Y1)e.syncRect(!0)}Cd&&(gc(mae,Nu,lD),gc(bae,Nu,lD,!0),gc(mm,Nu,()=>{yo.pxRatio=hn}));const zse=JF(),Fse=QF();function iD(e,t,n,r){return(r?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map((a,s)=>X1(a,s,t,n))}function Hse(e,t){return e.map((n,r)=>r==0?{}:Rr({},t,n))}function X1(e,t,n,r){return Rr({},t==0?n:r,e)}function eH(e,t,n){return t==null?rd:[t,n]}const Nse=eH;function jse(e,t,n){return t==null?rd:bm(t,n,MM,!0)}function tH(e,t,n,r){return t==null?rd:mb(t,n,e.scales[r].log,!1)}const Bse=tH;function nH(e,t,n,r){return t==null?rd:xM(t,n,e.scales[r].log,!1)}const Gse=nH;function Vse(e,t,n,r,l){let a=Eo(F_(e),F_(t)),s=t-e,u=oi(l/r*s,n);do{let d=n[u],f=r*d/s;if(f>=l&&a+(d<5?Cs.get(d):0)<=17)return[d,f]}while(++u<n.length);return[0,0]}function aD(e){let t,n;return e=e.replace(/(\d+)px/,(r,l)=>(t=$r((n=+l)*hn))+"px"),[e,t,n]}function Use(e){e.show&&[e.font,e.labelFont].forEach(t=>{let n=jn(t[2]*hn,1);t[0]=t[0].replace(/[0-9.]+px/,n+"px"),t[1]=n})}function yo(e,t,n){const r={mode:sn(e.mode,1)},l=r.mode;function a(V,Y,ee,re){let ie=Y.valToPct(V);return re+ee*(Y.dir==-1?1-ie:ie)}function s(V,Y,ee,re){let ie=Y.valToPct(V);return re+ee*(Y.dir==-1?ie:1-ie)}function u(V,Y,ee,re){return Y.ori==0?a(V,Y,ee,re):s(V,Y,ee,re)}r.valToPosH=a,r.valToPosV=s;let d=!1;r.status=0;const f=r.root=wl(Zie);if(e.id!=null&&(f.id=e.id),Zo(f,e.class),e.title){let V=wl(tae,f);V.textContent=e.title}const h=ti("canvas"),g=r.ctx=h.getContext("2d"),b=wl(nae,f);gc("click",b,V=>{V.target===C&&(Rn!=Vl||Bt!=Ki)&&ur.click(r,V)},!0);const y=r.under=wl(rae,b);b.appendChild(h);const C=r.over=wl(oae,b);e=od(e);const S=+sn(e.pxAlign,1),w=rD(S);(e.plugins||[]).forEach(V=>{V.opts&&(e=V.opts(r,e)||e)});const M=e.ms||.001,E=r.series=l==1?iD(e.series||[],X_,tD,!1):Hse(e.series||[null],eD),O=r.axes=iD(e.axes||[],Y_,Z_,!0),P=r.scales={},R=r.bands=e.bands||[];R.forEach(V=>{V.fill=Yt(V.fill||null),V.dir=sn(V.dir,-1)});const A=l==2?E[1].facets[0].scale:E[0].scale,z={axes:Tb,series:Ao},k=(e.drawOrder||["axes","series"]).map(V=>z[V]);function L(V){const Y=V.distr==3?ee=>ma(ee>0?ee:V.clamp(r,ee,V.min,V.max,V.key)):V.distr==4?ee=>Gw(ee,V.asinh):V.distr==100?ee=>V.fwd(ee):ee=>ee;return ee=>{let re=Y(ee),{_min:ie,_max:pe}=V,Re=pe-ie;return(re-ie)/Re}}function H(V){let Y=P[V];if(Y==null){let ee=(e.scales||ip)[V]||ip;if(ee.from!=null){H(ee.from);let re=Rr({},P[ee.from],ee,{key:V});re.valToPct=L(re),P[V]=re}else{Y=P[V]=Rr({},V==A?VF:Pse,ee),Y.key=V;let re=Y.time,ie=Y.range,pe=ss(ie);if((V!=A||l==2&&!re)&&(pe&&(ie[0]==null||ie[1]==null)&&(ie={min:ie[0]==null?L_:{mode:1,hard:ie[0],soft:ie[0]},max:ie[1]==null?L_:{mode:1,hard:ie[1],soft:ie[1]}},pe=!1),!pe&&vb(ie))){let Re=ie;ie=(je,qe,at)=>qe==null?rd:bm(qe,at,Re)}Y.range=Yt(ie||(re?Nse:V==A?Y.distr==3?Bse:Y.distr==4?Gse:eH:Y.distr==3?tH:Y.distr==4?nH:jse)),Y.auto=Yt(pe?!1:Y.auto),Y.clamp=Yt(Y.clamp||Ese),Y._min=Y._max=null,Y.valToPct=L(Y)}}}H("x"),H("y"),l==1&&E.forEach(V=>{H(V.scale)}),O.forEach(V=>{H(V.scale)});for(let V in e.scales)H(V);const $=P[A],I=$.distr;let j,q;$.ori==0?(Zo(f,Jie),j=a,q=s):(Zo(f,eae),j=s,q=a);const F={};for(let V in P){let Y=P[V];(Y.min!=null||Y.max!=null)&&(F[V]={min:Y.min,max:Y.max},Y.min=Y.max=null)}const _=e.tzDate||(V=>new Date($r(V/M))),B=e.fmtDate||PM,J=M==1?Jae(_):nse(_),Q=q_(_,U_(M==1?Zae:tse,B)),D=K_(_,W_(ose,B)),G=[],W=r.legend=Rr({},ase,e.legend),Z=r.cursor=Rr({},pse,{drag:{y:l==2}},e.cursor),te=W.show,ne=Z.show,oe=W.markers;W.idxs=G,oe.width=Yt(oe.width),oe.dash=Yt(oe.dash),oe.stroke=Yt(oe.stroke),oe.fill=Yt(oe.fill);let se,Se,be,de=[],ke=[],Ae,Ne=!1,$e={};if(W.live){const V=E[1]?E[1].values:null;Ne=V!=null,Ae=Ne?V(r,1,0):{_:0};for(let Y in Ae)$e[Y]=SM}if(te)if(se=ti("table",uae,f),be=ti("tbody",null,se),W.mount(r,se),Ne){Se=ti("thead",null,se,be);let V=ti("tr",null,Se);ti("th",null,V);for(var Ve in Ae)ti("th",w_,V).textContent=Ve}else Zo(se,fae),W.live&&Zo(se,dae);const nt={show:!0},lt={show:!1};function me(V,Y){if(Y==0&&(Ne||!W.live||l==2))return rd;let ee=[],re=ti("tr",pae,be,be.childNodes[Y]);Zo(re,V.class),V.show||Zo(re,rc);let ie=ti("th",null,re);if(oe.show){let je=wl(hae,ie);if(Y>0){let qe=oe.width(r,Y);qe&&(je.style.border=qe+"px "+oe.dash(r,Y)+" "+oe.stroke(r,Y)),je.style.background=oe.fill(r,Y)}}let pe=wl(w_,ie);V.label instanceof HTMLElement?pe.appendChild(V.label):pe.textContent=V.label,Y>0&&(oe.show||(pe.style.color=V.width>0?oe.stroke(r,Y):oe.fill(r,Y)),ze("click",ie,je=>{if(Z._lock)return;to(je);let qe=E.indexOf(V);if((je.ctrlKey||je.metaKey)!=W.isolate){let at=E.some((ct,ut)=>ut>0&&ut!=qe&&ct.show);E.forEach((ct,ut)=>{ut>0&&pl(ut,at?ut==qe?nt:lt:nt,!0,dr.setSeries)})}else pl(qe,{show:!V.show},!0,dr.setSeries)},!1),Pn&&ze(E_,ie,je=>{Z._lock||(to(je),pl(E.indexOf(V),Ia,!0,dr.setSeries))},!1));for(var Re in Ae){let je=ti("td",gae,re);je.textContent="--",ee.push(je)}return[re,ee]}const tt=new Map;function ze(V,Y,ee,re=!0){const ie=tt.get(Y)||{},pe=Z.bind[V](r,Y,ee,re);pe&&(gc(V,Y,ie[V]=pe),tt.set(Y,ie))}function et(V,Y,ee){const re=tt.get(Y)||{};for(let ie in re)(V==null||ie==V)&&(V1(ie,Y,re[ie]),delete re[ie]);V==null&&tt.delete(Y)}let He=0,yt=0,Le=0,Pe=0,Ke=0,Xe=0,mt=Ke,_e=Xe,Je=Le,Fe=Pe,Qe=0,st=0,pt=0,Ze=0;r.bbox={};let Tt=!1,_t=!1,cn=!1,qn=!1,cr=!1,on=!1;function Wn(V,Y,ee){(ee||V!=r.width||Y!=r.height)&&Gr(V,Y),Aa(!1),cn=!0,_t=!0,Go()}function Gr(V,Y){r.width=He=Le=V,r.height=yt=Pe=Y,Ke=Xe=0,Et(),Kn();let ee=r.bbox;Qe=ee.left=tc(Ke*hn,.5),st=ee.top=tc(Xe*hn,.5),pt=ee.width=tc(Le*hn,.5),Ze=ee.height=tc(Pe*hn,.5)}const Cr=3;function Vr(){let V=!1,Y=0;for(;!V;){Y++;let ee=Qp(Y),re=Rd(Y);V=Y==Cr||ee&&re,V||(Gr(r.width,r.height),_t=!0)}}function Ur({width:V,height:Y}){Wn(V,Y)}r.setSize=Ur;function Et(){let V=!1,Y=!1,ee=!1,re=!1;O.forEach((ie,pe)=>{if(ie.show&&ie._show){let{side:Re,_size:je}=ie,qe=Re%2,at=ie.label!=null?ie.labelSize:0,ct=je+at;ct>0&&(qe?(Le-=ct,Re==3?(Ke+=ct,re=!0):ee=!0):(Pe-=ct,Re==0?(Xe+=ct,V=!0):Y=!0))}}),ir[0]=V,ir[1]=ee,ir[2]=Y,ir[3]=re,Le-=xe[1]+xe[3],Ke+=xe[3],Pe-=xe[2]+xe[0],Xe+=xe[0]}function Kn(){let V=Ke+Le,Y=Xe+Pe,ee=Ke,re=Xe;function ie(pe,Re){switch(pe){case 1:return V+=Re,V-Re;case 2:return Y+=Re,Y-Re;case 3:return ee-=Re,ee+Re;case 0:return re-=Re,re+Re}}O.forEach((pe,Re)=>{if(pe.show&&pe._show){let je=pe.side;pe._pos=ie(je,pe._size),pe.label!=null&&(pe._lpos=ie(je,pe.labelSize))}})}if(Z.dataIdx==null){let V=Z.hover,Y=V.skip=new Set(V.skip??[]);Y.add(void 0);let ee=V.prox=Yt(V.prox),re=V.bias??=0;Z.dataIdx=(ie,pe,Re,je)=>{if(pe==0)return Re;let qe=Re,at=ee(ie,pe,Re,je)??Nn,ct=at>=0&&at<Nn,ut=$.ori==0?Le:Pe,bt=Z.left,Ut=t[0],Qt=t[pe];if(Y.has(Qt[Re])){qe=null;let Ft=null,Pt=null,gt;if(re==0||re==-1)for(gt=Re;Ft==null&&gt-- >0;)Y.has(Qt[gt])||(Ft=gt);if(re==0||re==1)for(gt=Re;Pt==null&&gt++<Qt.length;)Y.has(Qt[gt])||(Pt=gt);if(Ft!=null||Pt!=null)if(ct){let Sn=Ft==null?-1/0:j(Ut[Ft],$,ut,0),tr=Pt==null?1/0:j(Ut[Pt],$,ut,0),Xn=bt-Sn,ln=tr-bt;Xn<=ln?Xn<=at&&(qe=Ft):ln<=at&&(qe=Pt)}else qe=Pt==null?Ft:Ft==null?Pt:Re-Ft<=Pt-Re?Ft:Pt}else ct&&Hr(bt-j(Ut[Re],$,ut,0))>at&&(qe=null);return qe}}const to=V=>{Z.event=V};Z.idxs=G,Z._lock=!1;let yn=Z.points;yn.show=Yt(yn.show),yn.size=Yt(yn.size),yn.stroke=Yt(yn.stroke),yn.width=Yt(yn.width),yn.fill=Yt(yn.fill);const Jt=r.focus=Rr({},e.focus||{alpha:.3},Z.focus),Pn=Jt.prox>=0,Or=Pn&&yn.one;let Sr=[],cl=[],ul=[];function Gi(V,Y){let ee=yn.show(r,Y);if(ee instanceof HTMLElement)return Zo(ee,cae),Zo(ee,V.class),Pi(ee,-10,-10,Le,Pe),C.insertBefore(ee,Sr[Y]),ee}function Ro(V,Y){if(l==1||Y>0){let ee=l==1&&P[V.scale].time,re=V.value;V.value=ee?j_(re)?K_(_,W_(re,B)):re||D:re||xse,V.label=V.label||(ee?gse:hse)}if(Or||Y>0){V.width=V.width==null?1:V.width,V.paths=V.paths||zse||Pae,V.fillTo=Yt(V.fillTo||Rse),V.pxAlign=+sn(V.pxAlign,S),V.pxRound=rD(V.pxAlign),V.stroke=Yt(V.stroke||null),V.fill=Yt(V.fill||null),V._stroke=V._fill=V._paths=V._focus=null;let ee=Mse(Eo(1,V.width),1),re=V.points=Rr({},{size:ee,width:Eo(1,ee*.2),stroke:V.stroke,space:ee*2,paths:Fse,_stroke:null,_fill:null},V.points);re.show=Yt(re.show),re.filter=Yt(re.filter),re.fill=Yt(re.fill),re.stroke=Yt(re.stroke),re.paths=Yt(re.paths),re.pxAlign=V.pxAlign}if(te){let ee=me(V,Y);de.splice(Y,0,ee[0]),ke.splice(Y,0,ee[1]),W.values.push(null)}if(ne){G.splice(Y,0,null);let ee=null;Or?Y==0&&(ee=Gi(V,Y)):Y>0&&(ee=Gi(V,Y)),Sr.splice(Y,0,ee),cl.splice(Y,0,0),ul.splice(Y,0,0)}xr("addSeries",Y)}function Yn(V,Y){Y=Y??E.length,V=l==1?X1(V,Y,X_,tD):X1(V,Y,{},eD),E.splice(Y,0,V),Ro(E[Y],Y)}r.addSeries=Yn;function $n(V){if(E.splice(V,1),te){W.values.splice(V,1),ke.splice(V,1);let Y=de.splice(V,1)[0];et(null,Y.firstChild),Y.remove()}ne&&(G.splice(V,1),Sr.splice(V,1)[0].remove(),cl.splice(V,1),ul.splice(V,1)),xr("delSeries",V)}r.delSeries=$n;const ir=[!1,!1,!1,!1];function jl(V,Y){if(V._show=V.show,V.show){let ee=V.side%2,re=P[V.scale];re==null&&(V.scale=ee?E[1].scale:A,re=P[V.scale]);let ie=re.time;V.size=Yt(V.size),V.space=Yt(V.space),V.rotate=Yt(V.rotate),ss(V.incrs)&&V.incrs.forEach(Re=>{!Cs.has(Re)&&Cs.set(Re,TF(Re))}),V.incrs=Yt(V.incrs||(re.distr==2?Yae:ie?M==1?Qae:ese:nc)),V.splits=Yt(V.splits||(ie&&re.distr==1?J:re.distr==3?q1:re.distr==4?vse:bse)),V.stroke=Yt(V.stroke),V.grid.stroke=Yt(V.grid.stroke),V.ticks.stroke=Yt(V.ticks.stroke),V.border.stroke=Yt(V.border.stroke);let pe=V.values;V.values=ss(pe)&&!ss(pe[0])?Yt(pe):ie?ss(pe)?q_(_,U_(pe,B)):j_(pe)?rse(_,pe):pe||Q:pe||mse,V.filter=Yt(V.filter||(re.distr>=3&&re.log==10?Sse:re.distr==3&&re.log==2?wse:xF)),V.font=aD(V.font),V.labelFont=aD(V.labelFont),V._size=V.size(r,null,Y,0),V._space=V._rotate=V._incrs=V._found=V._splits=V._values=null,V._size>0&&(ir[Y]=!0,V._el=wl(lae,b))}}function qr(V,Y,ee,re){let[ie,pe,Re,je]=ee,qe=Y%2,at=0;return qe==0&&(je||pe)&&(at=Y==0&&!ie||Y==2&&!Re?$r(Y_.size/3):0),qe==1&&(ie||Re)&&(at=Y==1&&!pe||Y==3&&!je?$r(Z_.size/2):0),at}const Vn=r.padding=(e.padding||[qr,qr,qr,qr]).map(V=>Yt(sn(V,qr))),xe=r._padding=Vn.map((V,Y)=>V(r,Y,ir,0));let Ce,Ue=null,it=null;const At=l==1?E[0].idxs:null;let nn=null,mn=!1;function co(V,Y){if(t=V??[],r.data=r._data=t,l==2){Ce=0;for(let ee=1;ee<E.length;ee++)Ce+=t[ee][0].length}else{t.length==0&&(r.data=r._data=t=[[]]),nn=t[0],Ce=nn.length;let ee=t;if(I==2){ee=t.slice();let re=ee[0]=Array(Ce);for(let ie=0;ie<Ce;ie++)re[ie]=ie}r._data=t=ee}if(Aa(!0),xr("setData"),I==2&&(cn=!0),Y!==!1){let ee=$;ee.auto(r,mn)?jo():Ul(A,ee.min,ee.max),qn=qn||Z.left>=0,on=!0,Go()}}r.setData=co;function jo(){mn=!0;let V,Y;l==1&&(Ce>0?(Ue=At[0]=0,it=At[1]=Ce-1,V=t[0][Ue],Y=t[0][it],I==2?(V=Ue,Y=it):V==Y&&(I==3?[V,Y]=mb(V,V,$.log,!1):I==4?[V,Y]=xM(V,V,$.log,!1):$.time?Y=V+$r(86400/M):[V,Y]=bm(V,Y,MM,!0))):(Ue=At[0]=V=null,it=At[1]=Y=null)),Ul(A,V,Y)}let dl,Ir,gi,jt,kr,uo,Bo,xd,Oc,zn;function Md(V,Y,ee,re,ie,pe){V??=M_,ee??=EM,re??="butt",ie??=M_,pe??="round",V!=dl&&(g.strokeStyle=dl=V),ie!=Ir&&(g.fillStyle=Ir=ie),Y!=gi&&(g.lineWidth=gi=Y),pe!=kr&&(g.lineJoin=kr=pe),re!=uo&&(g.lineCap=uo=re),ee!=jt&&g.setLineDash(jt=ee)}function Xp(V,Y,ee,re){Y!=Ir&&(g.fillStyle=Ir=Y),V!=Bo&&(g.font=Bo=V),ee!=xd&&(g.textAlign=xd=ee),re!=Oc&&(g.textBaseline=Oc=re)}function Ra(V,Y,ee,re,ie=0){if(re.length>0&&V.auto(r,mn)&&(Y==null||Y.min==null)){let pe=sn(Ue,0),Re=sn(it,re.length-1),je=ee.min==null?Sae(re,pe,Re,ie,V.distr==3):[ee.min,ee.max];V.min=ii(V.min,ee.min=je[0]),V.max=Eo(V.max,ee.max=je[1])}}const Td={min:null,max:null};function Ic(){for(let re in P){let ie=P[re];F[re]==null&&(ie.min==null||F[A]!=null&&ie.auto(r,mn))&&(F[re]=Td)}for(let re in P){let ie=P[re];F[re]==null&&ie.from!=null&&F[ie.from]!=null&&(F[re]=Td)}F[A]!=null&&Aa(!0);let V={};for(let re in F){let ie=F[re];if(ie!=null){let pe=V[re]=od(P[re],Oae);if(ie.min!=null)Rr(pe,ie);else if(re!=A||l==2)if(Ce==0&&pe.from==null){let Re=pe.range(r,null,null,re);pe.min=Re[0],pe.max=Re[1]}else pe.min=Nn,pe.max=-Nn}}if(Ce>0){E.forEach((re,ie)=>{if(l==1){let pe=re.scale,Re=F[pe];if(Re==null)return;let je=V[pe];if(ie==0){let qe=je.range(r,je.min,je.max,pe);je.min=qe[0],je.max=qe[1],Ue=oi(je.min,t[0]),it=oi(je.max,t[0]),it-Ue>1&&(t[0][Ue]<je.min&&Ue++,t[0][it]>je.max&&it--),re.min=nn[Ue],re.max=nn[it]}else re.show&&re.auto&&Ra(je,Re,re,t[ie],re.sorted);re.idxs[0]=Ue,re.idxs[1]=it}else if(ie>0&&re.show&&re.auto){let[pe,Re]=re.facets,je=pe.scale,qe=Re.scale,[at,ct]=t[ie],ut=V[je],bt=V[qe];ut!=null&&Ra(ut,F[je],pe,at,pe.sorted),bt!=null&&Ra(bt,F[qe],Re,ct,Re.sorted),re.min=Re.min,re.max=Re.max}});for(let re in V){let ie=V[re],pe=F[re];if(ie.from==null&&(pe==null||pe.min==null)){let Re=ie.range(r,ie.min==Nn?null:ie.min,ie.max==-Nn?null:ie.max,re);ie.min=Re[0],ie.max=Re[1]}}}for(let re in V){let ie=V[re];if(ie.from!=null){let pe=V[ie.from];if(pe.min==null)ie.min=ie.max=null;else{let Re=ie.range(r,pe.min,pe.max,re);ie.min=Re[0],ie.max=Re[1]}}}let Y={},ee=!1;for(let re in V){let ie=V[re],pe=P[re];if(pe.min!=ie.min||pe.max!=ie.max){pe.min=ie.min,pe.max=ie.max;let Re=pe.distr;pe._min=Re==3?ma(pe.min):Re==4?Gw(pe.min,pe.asinh):Re==100?pe.fwd(pe.min):pe.min,pe._max=Re==3?ma(pe.max):Re==4?Gw(pe.max,pe.asinh):Re==100?pe.fwd(pe.max):pe.max,Y[re]=ee=!0}}if(ee){E.forEach((re,ie)=>{l==2?ie>0&&Y.y&&(re._paths=null):Y[re.scale]&&(re._paths=null)});for(let re in Y)cn=!0,xr("setScale",re);ne&&Z.left>=0&&(qn=on=!0)}for(let re in F)F[re]=null}function xb(V){let Y=U1(Ue-1,0,Ce-1),ee=U1(it+1,0,Ce-1);for(;V[Y]==null&&Y>0;)Y--;for(;V[ee]==null&&ee<Ce-1;)ee++;return[Y,ee]}function Ao(){if(Ce>0){let V=E.some(Y=>Y._focus)&&zn!=Jt.alpha;V&&(g.globalAlpha=zn=Jt.alpha),E.forEach((Y,ee)=>{if(ee>0&&Y.show&&(kc(ee,!1),kc(ee,!0),Y._paths==null)){let re=zn;zn!=Y.alpha&&(g.globalAlpha=zn=Y.alpha);let ie=l==2?[0,t[ee][0].length-1]:xb(t[ee]);Y._paths=Y.paths(r,ee,ie[0],ie[1]),zn!=re&&(g.globalAlpha=zn=re)}}),E.forEach((Y,ee)=>{if(ee>0&&Y.show){let re=zn;zn!=Y.alpha&&(g.globalAlpha=zn=Y.alpha),Y._paths!=null&&Ed(ee,!1);{let ie=Y._paths!=null?Y._paths.gaps:null,pe=Y.points.show(r,ee,Ue,it,ie),Re=Y.points.filter(r,ee,pe,ie);(pe||Re)&&(Y.points._paths=Y.points.paths(r,ee,Ue,it,Re),Ed(ee,!0))}zn!=re&&(g.globalAlpha=zn=re),xr("drawSeries",ee)}}),V&&(g.globalAlpha=zn=1)}}function kc(V,Y){let ee=Y?E[V].points:E[V];ee._stroke=ee.stroke(r,V),ee._fill=ee.fill(r,V)}function Ed(V,Y){let ee=Y?E[V].points:E[V],{stroke:re,fill:ie,clip:pe,flags:Re,_stroke:je=ee._stroke,_fill:qe=ee._fill,_width:at=ee.width}=ee._paths;at=jn(at*hn,3);let ct=null,ut=at%2/2;Y&&qe==null&&(qe=at>0?"#fff":je);let bt=ee.pxAlign==1&&ut>0;if(bt&&g.translate(ut,ut),!Y){let Ut=Qe-at/2,Qt=st-at/2,Ft=pt+at,Pt=Ze+at;ct=new Path2D,ct.rect(Ut,Qt,Ft,Pt)}Y?_c(je,at,ee.dash,ee.cap,qe,re,ie,Re,pe):Pd(V,je,at,ee.dash,ee.cap,qe,re,ie,Re,ct,pe),bt&&g.translate(-ut,-ut)}function Pd(V,Y,ee,re,ie,pe,Re,je,qe,at,ct){let ut=!1;qe!=0&&R.forEach((bt,Ut)=>{if(bt.series[0]==V){let Qt=E[bt.series[1]],Ft=t[bt.series[1]],Pt=(Qt._paths||ip).band;ss(Pt)&&(Pt=bt.dir==1?Pt[0]:Pt[1]);let gt,Sn=null;Qt.show&&Pt&&xae(Ft,Ue,it)?(Sn=bt.fill(r,Ut)||pe,gt=Qt._paths.clip):Pt=null,_c(Y,ee,re,ie,Sn,Re,je,qe,at,ct,gt,Pt),ut=!0}}),ut||_c(Y,ee,re,ie,pe,Re,je,qe,at,ct)}const Vi=ld|K1;function _c(V,Y,ee,re,ie,pe,Re,je,qe,at,ct,ut){Md(V,Y,ee,re,ie),(qe||at||ut)&&(g.save(),qe&&g.clip(qe),at&&g.clip(at)),ut?(je&Vi)==Vi?(g.clip(ut),ct&&g.clip(ct),Bl(ie,Re),Rs(V,pe,Y)):je&K1?(Bl(ie,Re),g.clip(ut),Rs(V,pe,Y)):je&ld&&(g.save(),g.clip(ut),ct&&g.clip(ct),Bl(ie,Re),g.restore(),Rs(V,pe,Y)):(Bl(ie,Re),Rs(V,pe,Y)),(qe||at||ut)&&g.restore()}function Rs(V,Y,ee){ee>0&&(Y instanceof Map?Y.forEach((re,ie)=>{g.strokeStyle=dl=ie,g.stroke(re)}):Y!=null&&V&&g.stroke(Y))}function Bl(V,Y){Y instanceof Map?Y.forEach((ee,re)=>{g.fillStyle=Ir=re,g.fill(ee)}):Y!=null&&V&&g.fill(Y)}function Mb(V,Y,ee,re){let ie=O[V],pe;if(re<=0)pe=[0,0];else{let Re=ie._space=ie.space(r,V,Y,ee,re),je=ie._incrs=ie.incrs(r,V,Y,ee,re,Re);pe=Vse(Y,ee,je,re,Re)}return ie._found=pe}function Dc(V,Y,ee,re,ie,pe,Re,je,qe,at){let ct=Re%2/2;S==1&&g.translate(ct,ct),Md(je,Re,qe,at,je),g.beginPath();let ut,bt,Ut,Qt,Ft=ie+(re==0||re==3?-pe:pe);ee==0?(bt=ie,Qt=Ft):(ut=ie,Ut=Ft);for(let Pt=0;Pt<V.length;Pt++)Y[Pt]!=null&&(ee==0?ut=Ut=V[Pt]:bt=Qt=V[Pt],g.moveTo(ut,bt),g.lineTo(Ut,Qt));g.stroke(),S==1&&g.translate(-ct,-ct)}function Qp(V){let Y=!0;return O.forEach((ee,re)=>{if(!ee.show)return;let ie=P[ee.scale];if(ie.min==null){ee._show&&(Y=!1,ee._show=!1,Aa(!1));return}else ee._show||(Y=!1,ee._show=!0,Aa(!1));let pe=ee.side,Re=pe%2,{min:je,max:qe}=ie,[at,ct]=Mb(re,je,qe,Re==0?Le:Pe);if(ct==0)return;let ut=ie.distr==2,bt=ee._splits=ee.splits(r,re,je,qe,at,ct,ut),Ut=ie.distr==2?bt.map(gt=>nn[gt]):bt,Qt=ie.distr==2?nn[bt[1]]-nn[bt[0]]:at,Ft=ee._values=ee.values(r,ee.filter(r,Ut,re,ct,Qt),re,ct,Qt);ee._rotate=pe==2?ee.rotate(r,Ft,re,ct):0;let Pt=ee._size;ee._size=Pl(ee.size(r,Ft,re,V)),Pt!=null&&ee._size!=Pt&&(Y=!1)}),Y}function Rd(V){let Y=!0;return Vn.forEach((ee,re)=>{let ie=ee(r,re,ir,V);ie!=xe[re]&&(Y=!1),xe[re]=ie}),Y}function Tb(){for(let V=0;V<O.length;V++){let Y=O[V];if(!Y.show||!Y._show)continue;let ee=Y.side,re=ee%2,ie,pe,Re=Y.stroke(r,V),je=ee==0||ee==3?-1:1,[qe,at]=Y._found;if(Y.label!=null){let Yr=Y.labelGap*je,So=$r((Y._lpos+Yr)*hn);Xp(Y.labelFont[0],Re,"center",ee==2?$f:x_),g.save(),re==1?(ie=pe=0,g.translate(So,$r(st+Ze/2)),g.rotate((ee==3?-Ug:Ug)/2)):(ie=$r(Qe+pt/2),pe=So);let Ji=SF(Y.label)?Y.label(r,V,qe,at):Y.label;g.fillText(Ji,ie,pe),g.restore()}if(at==0)continue;let ct=P[Y.scale],ut=re==0?pt:Ze,bt=re==0?Qe:st,Ut=Y._splits,Qt=ct.distr==2?Ut.map(Yr=>nn[Yr]):Ut,Ft=ct.distr==2?nn[Ut[1]]-nn[Ut[0]]:qe,Pt=Y.ticks,gt=Y.border,Sn=Pt.show?Pt.size:0,tr=$r(Sn*hn),Xn=$r((Y.alignTo==2?Y._size-Sn-Y.gap:Y.gap)*hn),ln=Y._rotate*-Ug/180,An=w(Y._pos*hn),no=(tr+Xn)*je,Wr=An+no;pe=re==0?Wr:0,ie=re==1?Wr:0;let Mr=Y.font[0],Kr=Y.align==1?Tu:Y.align==2?Nw:ln>0?Tu:ln<0?Nw:re==0?"center":ee==3?Nw:Tu,Oo=ln||re==1?"middle":ee==2?$f:x_;Xp(Mr,Re,Kr,Oo);let po=Y.font[1]*Y.lineGap,Tr=Ut.map(Yr=>w(u(Yr,ct,ut,bt))),Io=Y._values;for(let Yr=0;Yr<Io.length;Yr++){let So=Io[Yr];if(So!=null){re==0?ie=Tr[Yr]:pe=Tr[Yr],So=""+So;let Ji=So.indexOf(`
`)==-1?[So]:So.split(/\n/gm);for(let ro=0;ro<Ji.length;ro++){let Fd=Ji[ro];ln?(g.save(),g.translate(ie,pe+ro*po),g.rotate(ln),g.fillText(Fd,0,0),g.restore()):g.fillText(Fd,ie,pe+ro*po)}}}Pt.show&&Dc(Tr,Pt.filter(r,Qt,V,at,Ft),re,ee,An,tr,jn(Pt.width*hn,3),Pt.stroke(r,V),Pt.dash,Pt.cap);let Uo=Y.grid;Uo.show&&Dc(Tr,Uo.filter(r,Qt,V,at,Ft),re,re==0?2:1,re==0?st:Qe,re==0?Ze:pt,jn(Uo.width*hn,3),Uo.stroke(r,V),Uo.dash,Uo.cap),gt.show&&Dc([An],[1],re==0?1:0,re==0?1:2,re==1?st:Qe,re==1?Ze:pt,jn(gt.width*hn,3),gt.stroke(r,V),gt.dash,gt.cap)}xr("drawAxes")}function Aa(V){E.forEach((Y,ee)=>{ee>0&&(Y._paths=null,V&&(l==1?(Y.min=null,Y.max=null):Y.facets.forEach(re=>{re.min=null,re.max=null})))})}let Ui=!1,As=!1,qi=[];function Oa(){As=!1;for(let V=0;V<qi.length;V++)xr(...qi[V]);qi.length=0}function Go(){Ui||(zae(Lc),Ui=!0)}function Zp(V,Y=!1){Ui=!0,As=Y,V(r),Lc(),Y&&qi.length>0&&queueMicrotask(Oa)}r.batch=Zp;function Lc(){if(Tt&&(Ic(),Tt=!1),cn&&(Vr(),cn=!1),_t){if(Qn(y,Tu,Ke),Qn(y,$f,Xe),Qn(y,qf,Le),Qn(y,Wf,Pe),Qn(C,Tu,Ke),Qn(C,$f,Xe),Qn(C,qf,Le),Qn(C,Wf,Pe),Qn(b,qf,He),Qn(b,Wf,yt),h.width=$r(He*hn),h.height=$r(yt*hn),O.forEach(({_el:V,_show:Y,_size:ee,_pos:re,side:ie})=>{if(V!=null)if(Y){let pe=ie===3||ie===0?ee:0,Re=ie%2==1;Qn(V,Re?"left":"top",re-pe),Qn(V,Re?"width":"height",ee),Qn(V,Re?"top":"left",Re?Xe:Ke),Qn(V,Re?"height":"width",Re?Pe:Le),G1(V,rc)}else Zo(V,rc)}),dl=Ir=gi=kr=uo=Bo=xd=Oc=jt=null,zn=1,_s(!0),Ke!=mt||Xe!=_e||Le!=Je||Pe!=Fe){Aa(!1);let V=Le/Je,Y=Pe/Fe;if(ne&&!qn&&Z.left>=0){Z.left*=V,Z.top*=Y,mi&&Pi(mi,$r(Z.left),0,Le,Pe),fl&&Pi(fl,0,$r(Z.top),Le,Pe);for(let ee=0;ee<Sr.length;ee++){let re=Sr[ee];re!=null&&(cl[ee]*=V,ul[ee]*=Y,Pi(re,Pl(cl[ee]),Pl(ul[ee]),Le,Pe))}}if(Cn.show&&!cr&&Cn.left>=0&&Cn.width>0){Cn.left*=V,Cn.width*=V,Cn.top*=Y,Cn.height*=Y;for(let ee in kd)Qn(bi,ee,Cn[ee])}mt=Ke,_e=Xe,Je=Le,Fe=Pe}xr("setSize"),_t=!1}He>0&&yt>0&&(g.clearRect(0,0,h.width,h.height),xr("drawClear"),k.forEach(V=>V()),xr("draw")),Cn.show&&cr&&(vi(Cn),cr=!1),ne&&qn&&(Qi(null,!0,!1),qn=!1),W.show&&W.live&&on&&(Od(),on=!1),d||(d=!0,r.status=1,xr("ready")),mn=!1,Ui=!1}r.redraw=(V,Y)=>{cn=Y||!1,V!==!1?Ul(A,$.min,$.max):Go()};function $c(V,Y){let ee=P[V];if(ee.from==null){if(Ce==0){let re=ee.range(r,Y.min,Y.max,V);Y.min=re[0],Y.max=re[1]}if(Y.min>Y.max){let re=Y.min;Y.min=Y.max,Y.max=re}if(Ce>1&&Y.min!=null&&Y.max!=null&&Y.max-Y.min<1e-16)return;V==A&&ee.distr==2&&Ce>0&&(Y.min=oi(Y.min,t[0]),Y.max=oi(Y.max,t[0]),Y.min==Y.max&&Y.max++),F[V]=Y,Tt=!0,Go()}}r.setScale=$c;let Wi,Vo,mi,fl,Gl,zc,Vl,Ki,Os,Is,Rn,Bt,fo=!1;const ur=Z.drag;let er=ur.x,wr=ur.y;ne&&(Z.x&&(Wi=wl(aae,C)),Z.y&&(Vo=wl(sae,C)),$.ori==0?(mi=Wi,fl=Vo):(mi=Vo,fl=Wi),Rn=Z.left,Bt=Z.top);const Cn=r.select=Rr({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),bi=Cn.show?wl(iae,Cn.over?C:y):null;function vi(V,Y){if(Cn.show){for(let ee in V)Cn[ee]=V[ee],ee in kd&&Qn(bi,ee,V[ee]);Y!==!1&&xr("setSelect")}}r.setSelect=vi;function Fc(V){if(E[V].show)te&&G1(de[V],rc);else if(te&&Zo(de[V],rc),ne){let ee=Or?Sr[0]:Sr[V];ee!=null&&Pi(ee,-10,-10,Le,Pe)}}function Ul(V,Y,ee){$c(V,{min:Y,max:ee})}function pl(V,Y,ee,re){Y.focus!=null&&Jp(V),Y.show!=null&&E.forEach((ie,pe)=>{pe>0&&(V==pe||V==null)&&(ie.show=Y.show,Fc(pe),l==2?(Ul(ie.facets[0].scale,null,null),Ul(ie.facets[1].scale,null,null)):Ul(ie.scale,null,null),Go())}),ee!==!1&&xr("setSeries",V,Y),re&&Kl("setSeries",r,V,Y)}r.setSeries=pl;function Eb(V,Y){Rr(R[V],Y)}function Pb(V,Y){V.fill=Yt(V.fill||null),V.dir=sn(V.dir,-1),Y=Y??R.length,R.splice(Y,0,V)}function Ad(V){V==null?R.length=0:R.splice(V,1)}r.addBand=Pb,r.setBand=Eb,r.delBand=Ad;function Rb(V,Y){E[V].alpha=Y,ne&&Sr[V]!=null&&(Sr[V].style.opacity=Y),te&&de[V]&&(de[V].style.opacity=Y)}let ql,yi,Yi;const Ia={focus:!0};function Jp(V){if(V!=Yi){let Y=V==null,ee=Jt.alpha!=1;E.forEach((re,ie)=>{if(l==1||ie>0){let pe=Y||ie==0||ie==V;re._focus=Y?null:pe,ee&&Rb(ie,pe?1:Jt.alpha)}}),Yi=V,ee&&Go()}}te&&Pn&&ze(P_,se,V=>{Z._lock||(to(V),Yi!=null&&pl(null,Ia,!0,dr.setSeries))});function hl(V,Y,ee){let re=P[Y];ee&&(V=V/hn-(re.ori==1?Xe:Ke));let ie=Le;re.ori==1&&(ie=Pe,V=ie-V),re.dir==-1&&(V=ie-V);let pe=re._min,Re=re._max,je=V/ie,qe=pe+(Re-pe)*je,at=re.distr;return at==3?nd(10,qe):at==4?Tae(qe,re.asinh):at==100?re.bwd(qe):qe}function Ab(V,Y){let ee=hl(V,A,Y);return oi(ee,t[0],Ue,it)}r.valToIdx=V=>oi(V,t[0]),r.posToIdx=Ab,r.posToVal=hl,r.valToPos=(V,Y,ee)=>P[Y].ori==0?a(V,P[Y],ee?pt:Le,ee?Qe:0):s(V,P[Y],ee?Ze:Pe,ee?st:0),r.setCursor=(V,Y,ee)=>{Rn=V.left,Bt=V.top,Qi(null,Y,ee)};function eh(V,Y){Qn(bi,Tu,Cn.left=V),Qn(bi,qf,Cn.width=Y)}function th(V,Y){Qn(bi,$f,Cn.top=V),Qn(bi,Wf,Cn.height=Y)}let Xi=$.ori==0?eh:th,ks=$.ori==1?eh:th;function Ob(){if(te&&W.live)for(let V=l==2?1:0;V<E.length;V++){if(V==0&&Ne)continue;let Y=W.values[V],ee=0;for(let re in Y)ke[V][ee++].firstChild.nodeValue=Y[re]}}function Od(V,Y){if(V!=null&&(V.idxs?V.idxs.forEach((ee,re)=>{G[re]=ee}):Aae(V.idx)||G.fill(V.idx),W.idx=G[0]),te&&W.live){for(let ee=0;ee<E.length;ee++)(ee>0||l==1&&!Ne)&&nh(ee,G[ee]);Ob()}on=!1,Y!==!1&&xr("setLegend")}r.setLegend=Od;function nh(V,Y){let ee=E[V],re=V==0&&I==2?nn:t[V],ie;Ne?ie=ee.values(r,V,Y)??$e:(ie=ee.value(r,Y==null?null:re[Y],V,Y),ie=ie==null?$e:{_:ie}),W.values[V]=ie}function Qi(V,Y,ee){Os=Rn,Is=Bt,[Rn,Bt]=Z.move(r,Rn,Bt),Z.left=Rn,Z.top=Bt,ne&&(mi&&Pi(mi,$r(Rn),0,Le,Pe),fl&&Pi(fl,0,$r(Bt),Le,Pe));let re,ie=Ue>it;ql=Nn,yi=null;let pe=$.ori==0?Le:Pe,Re=$.ori==1?Le:Pe;if(Rn<0||Ce==0||ie){re=Z.idx=null;for(let je=0;je<E.length;je++){let qe=Sr[je];qe!=null&&Pi(qe,-10,-10,Le,Pe)}Pn&&pl(null,Ia,!0,V==null&&dr.setSeries),W.live&&(G.fill(re),on=!0)}else{let je,qe,at;l==1&&(je=$.ori==0?Rn:Bt,qe=hl(je,A),re=Z.idx=oi(qe,t[0],Ue,it),at=j(t[0][re],$,pe,0));let ct=-10,ut=-10,bt=0,Ut=0,Qt=!0,Ft="",Pt="";for(let gt=l==2?1:0;gt<E.length;gt++){let Sn=E[gt],tr=G[gt],Xn=tr==null?null:l==1?t[gt][tr]:t[gt][1][tr],ln=Z.dataIdx(r,gt,re,qe),An=ln==null?null:l==1?t[gt][ln]:t[gt][1][ln];if(on=on||An!=Xn||ln!=tr,G[gt]=ln,gt>0&&Sn.show){let no=ln==null?-10:ln==re?at:j(l==1?t[0][ln]:t[gt][0][ln],$,pe,0),Wr=An==null?-10:q(An,l==1?P[Sn.scale]:P[Sn.facets[1].scale],Re,0);if(Pn&&An!=null){let Mr=$.ori==1?Rn:Bt,Kr=Hr(Jt.dist(r,gt,ln,Wr,Mr));if(Kr<ql){let Oo=Jt.bias;if(Oo!=0){let po=hl(Mr,Sn.scale),Tr=An>=0?1:-1,Io=po>=0?1:-1;Io==Tr&&(Io==1?Oo==1?An>=po:An<=po:Oo==1?An<=po:An>=po)&&(ql=Kr,yi=gt)}else ql=Kr,yi=gt}}if(on||Or){let Mr,Kr;$.ori==0?(Mr=no,Kr=Wr):(Mr=Wr,Kr=no);let Oo,po,Tr,Io,Uo,Yr,So=!0,Ji=yn.bbox;if(Ji!=null){So=!1;let ro=Ji(r,gt);Tr=ro.left,Io=ro.top,Oo=ro.width,po=ro.height}else Tr=Mr,Io=Kr,Oo=po=yn.size(r,gt);if(Yr=yn.fill(r,gt),Uo=yn.stroke(r,gt),Or)gt==yi&&ql<=Jt.prox&&(ct=Tr,ut=Io,bt=Oo,Ut=po,Qt=So,Ft=Yr,Pt=Uo);else{let ro=Sr[gt];ro!=null&&(cl[gt]=Tr,ul[gt]=Io,D_(ro,Oo,po,So),k_(ro,Yr,Uo),Pi(ro,Pl(Tr),Pl(Io),Le,Pe))}}}}if(Or){let gt=Jt.prox,Sn=Yi==null?ql<=gt:ql>gt||yi!=Yi;if(on||Sn){let tr=Sr[0];tr!=null&&(cl[0]=ct,ul[0]=ut,D_(tr,bt,Ut,Qt),k_(tr,Ft,Pt),Pi(tr,Pl(ct),Pl(ut),Le,Pe))}}}if(Cn.show&&fo)if(V!=null){let[je,qe]=dr.scales,[at,ct]=dr.match,[ut,bt]=V.cursor.sync.scales,Ut=V.cursor.drag;if(er=Ut._x,wr=Ut._y,er||wr){let{left:Qt,top:Ft,width:Pt,height:gt}=V.select,Sn=V.scales[ut].ori,tr=V.posToVal,Xn,ln,An,no,Wr,Mr=je!=null&&at(je,ut),Kr=qe!=null&&ct(qe,bt);Mr&&er?(Sn==0?(Xn=Qt,ln=Pt):(Xn=Ft,ln=gt),An=P[je],no=j(tr(Xn,ut),An,pe,0),Wr=j(tr(Xn+ln,ut),An,pe,0),Xi(ii(no,Wr),Hr(Wr-no))):Xi(0,pe),Kr&&wr?(Sn==1?(Xn=Qt,ln=Pt):(Xn=Ft,ln=gt),An=P[qe],no=q(tr(Xn,bt),An,Re,0),Wr=q(tr(Xn+ln,bt),An,Re,0),ks(ii(no,Wr),Hr(Wr-no))):ks(0,Re)}else _d()}else{let je=Hr(Os-Gl),qe=Hr(Is-zc);if($.ori==1){let bt=je;je=qe,qe=bt}er=ur.x&&je>=ur.dist,wr=ur.y&&qe>=ur.dist;let at=ur.uni;at!=null?er&&wr&&(er=je>=at,wr=qe>=at,!er&&!wr&&(qe>je?wr=!0:er=!0)):ur.x&&ur.y&&(er||wr)&&(er=wr=!0);let ct,ut;er&&($.ori==0?(ct=Vl,ut=Rn):(ct=Ki,ut=Bt),Xi(ii(ct,ut),Hr(ut-ct)),wr||ks(0,Re)),wr&&($.ori==1?(ct=Vl,ut=Rn):(ct=Ki,ut=Bt),ks(ii(ct,ut),Hr(ut-ct)),er||Xi(0,pe)),!er&&!wr&&(Xi(0,0),ks(0,0))}if(ur._x=er,ur._y=wr,V==null){if(ee){if(zd!=null){let[je,qe]=dr.scales;dr.values[0]=je!=null?hl($.ori==0?Rn:Bt,je):null,dr.values[1]=qe!=null?hl($.ori==1?Rn:Bt,qe):null}Kl(jw,r,Rn,Bt,Le,Pe,re)}if(Pn){let je=ee&&dr.setSeries,qe=Jt.prox;Yi==null?ql<=qe&&pl(yi,Ia,!0,je):ql>qe?pl(null,Ia,!0,je):yi!=Yi&&pl(yi,Ia,!0,je)}}on&&(W.idx=re,Od()),Y!==!1&&xr("setCursor")}let Ci=null;Object.defineProperty(r,"rect",{get(){return Ci==null&&_s(!1),Ci}});function _s(V=!1){V?Ci=null:(Ci=C.getBoundingClientRect(),xr("syncRect",Ci))}function rh(V,Y,ee,re,ie,pe,Re){Z._lock||fo&&V!=null&&V.movementX==0&&V.movementY==0||(Id(V,Y,ee,re,ie,pe,Re,!1,V!=null),V!=null?Qi(null,!0,!0):Qi(Y,!0,!1))}function Id(V,Y,ee,re,ie,pe,Re,je,qe){if(Ci==null&&_s(!1),to(V),V!=null)ee=V.clientX-Ci.left,re=V.clientY-Ci.top;else{if(ee<0||re<0){Rn=-10,Bt=-10;return}let[at,ct]=dr.scales,ut=Y.cursor.sync,[bt,Ut]=ut.values,[Qt,Ft]=ut.scales,[Pt,gt]=dr.match,Sn=Y.axes[0].side%2==1,tr=$.ori==0?Le:Pe,Xn=$.ori==1?Le:Pe,ln=Sn?pe:ie,An=Sn?ie:pe,no=Sn?re:ee,Wr=Sn?ee:re;if(Qt!=null?ee=Pt(at,Qt)?u(bt,P[at],tr,0):-10:ee=tr*(no/ln),Ft!=null?re=gt(ct,Ft)?u(Ut,P[ct],Xn,0):-10:re=Xn*(Wr/An),$.ori==1){let Mr=ee;ee=re,re=Mr}}qe&&(Y==null||Y.cursor.event.type==jw)&&((ee<=1||ee>=Le-1)&&(ee=tc(ee,Le)),(re<=1||re>=Pe-1)&&(re=tc(re,Pe))),je?(Gl=ee,zc=re,[Vl,Ki]=Z.move(r,ee,re)):(Rn=ee,Bt=re)}const kd={width:0,height:0,left:0,top:0};function _d(){vi(kd,!1)}let oh,lh,Hc,ka;function ih(V,Y,ee,re,ie,pe,Re){fo=!0,er=wr=ur._x=ur._y=!1,Id(V,Y,ee,re,ie,pe,Re,!0,!1),V!=null&&(ze(Bw,j1,Dd,!1),Kl(T_,r,Vl,Ki,Le,Pe,null));let{left:je,top:qe,width:at,height:ct}=Cn;oh=je,lh=qe,Hc=at,ka=ct}function Dd(V,Y,ee,re,ie,pe,Re){fo=ur._x=ur._y=!1,Id(V,Y,ee,re,ie,pe,Re,!1,!0);let{left:je,top:qe,width:at,height:ct}=Cn,ut=at>0||ct>0,bt=oh!=je||lh!=qe||Hc!=at||ka!=ct;if(ut&&bt&&vi(Cn),ur.setScale&&ut&&bt){let Ut=je,Qt=at,Ft=qe,Pt=ct;if($.ori==1&&(Ut=qe,Qt=ct,Ft=je,Pt=at),er&&Ul(A,hl(Ut,A),hl(Ut+Qt,A)),wr)for(let gt in P){let Sn=P[gt];gt!=A&&Sn.from==null&&Sn.min!=Nn&&Ul(gt,hl(Ft+Pt,gt),hl(Ft,gt))}_d()}else Z.lock&&(Z._lock=!Z._lock,Qi(Y,!0,V!=null));V!=null&&(et(Bw,j1),Kl(Bw,r,Rn,Bt,Le,Pe,null))}function ah(V,Y,ee,re,ie,pe,Re){if(Z._lock)return;to(V);let je=fo;if(fo){let qe=!0,at=!0,ct=10,ut,bt;$.ori==0?(ut=er,bt=wr):(ut=wr,bt=er),ut&&bt&&(qe=Rn<=ct||Rn>=Le-ct,at=Bt<=ct||Bt>=Pe-ct),ut&&qe&&(Rn=Rn<Vl?0:Le),bt&&at&&(Bt=Bt<Ki?0:Pe),Qi(null,!0,!0),fo=!1}Rn=-10,Bt=-10,G.fill(null),Qi(null,!0,!0),je&&(fo=je)}function Ld(V,Y,ee,re,ie,pe,Re){Z._lock||(to(V),jo(),_d(),V!=null&&Kl(R_,r,Rn,Bt,Le,Pe,null))}function $d(){O.forEach(Use),Wn(r.width,r.height,!0)}gc(mm,Nu,$d);const Zi={};Zi.mousedown=ih,Zi.mousemove=rh,Zi.mouseup=Dd,Zi.dblclick=Ld,Zi.setSeries=(V,Y,ee,re)=>{let ie=dr.match[2];ee=ie(r,Y,ee),ee!=-1&&pl(ee,re,!0,!1)},ne&&(ze(T_,C,ih),ze(jw,C,rh),ze(E_,C,V=>{to(V),_s(!1)}),ze(P_,C,ah),ze(R_,C,Ld),Y1.add(r),r.syncRect=_s);const Wl=r.hooks=e.hooks||{};function xr(V,Y,ee){As?qi.push([V,Y,ee]):V in Wl&&Wl[V].forEach(re=>{re.call(null,r,Y,ee)})}(e.plugins||[]).forEach(V=>{for(let Y in V.hooks)Wl[Y]=(Wl[Y]||[]).concat(V.hooks[Y])});const sh=(V,Y,ee)=>ee,dr=Rr({key:null,setSeries:!1,filters:{pub:H_,sub:H_},scales:[A,E[1]?E[1].scale:null],match:[N_,N_,sh],values:[null,null]},Z.sync);dr.match.length==2&&dr.match.push(sh),Z.sync=dr;const zd=dr.key,Nc=UF(zd);function Kl(V,Y,ee,re,ie,pe,Re){dr.filters.pub(V,Y,ee,re,ie,pe,Re)&&Nc.pub(V,Y,ee,re,ie,pe,Re)}Nc.sub(r);function Ds(V,Y,ee,re,ie,pe,Re){dr.filters.sub(V,Y,ee,re,ie,pe,Re)&&Zi[V](null,Y,ee,re,ie,pe,Re)}r.pub=Ds;function Ib(){Nc.unsub(r),Y1.delete(r),tt.clear(),V1(mm,Nu,$d),f.remove(),se?.remove(),xr("destroy")}r.destroy=Ib;function _a(){xr("init",e,t),co(t||e.data,!1),F[A]?$c(A,F[A]):jo(),cr=Cn.show&&(Cn.width>0||Cn.height>0),qn=on=!0,Wn(e.width,e.height)}return E.forEach(Ro),O.forEach(jl),n?n instanceof HTMLElement?(n.appendChild(f),_a()):n(r,_a):_a(),r}yo.assign=Rr;yo.fmtNum=TM;yo.rangeNum=bm;yo.rangeLog=mb;yo.rangeAsinh=xM;yo.orient=Ac;yo.pxRatio=hn;yo.join=$ae;yo.fmtDate=PM,yo.tzDate=Wae;yo.sync=UF;{yo.addGap=Ase,yo.clipGaps=yb;let e=yo.paths={points:QF};e.linear=JF,e.stepped=kse,e.bars=_se,e.spline=Lse}const qse=Object.freeze(Object.defineProperty({__proto__:null,default:yo},Symbol.toStringTag,{value:"Module"})),Wse=SN(qse);var Kse=Vg.exports,sD;function Yse(){return sD||(sD=1,function(e,t){(function(r,l){e.exports=l(id(),Wse)})(Kse,(n,r)=>(()=>{var l={"./common/index.ts":(d,f,h)=>{h.r(f),h.d(f,{dataMatch:()=>y,optionsUpdateState:()=>b});var g=function(C,S){var w={};for(var M in C)Object.prototype.hasOwnProperty.call(C,M)&&S.indexOf(M)<0&&(w[M]=C[M]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,M=Object.getOwnPropertySymbols(C);E<M.length;E++)S.indexOf(M[E])<0&&Object.prototype.propertyIsEnumerable.call(C,M[E])&&(w[M[E]]=C[M[E]]);return w};Object.is||Object.defineProperty(Object,"is",{value:function(S,w){return S===w&&(S!==0||1/S===1/w)||S!==S&&w!==w}});var b=function(S,w){var M=S.width,E=S.height,O=g(S,["width","height"]),P=w.width,R=w.height,A=g(w,["width","height"]),z="keep";if((E!==R||M!==P)&&(z="update"),Object.keys(O).length!==Object.keys(A).length)return"create";for(var k=0,L=Object.keys(O);k<L.length;k++){var H=L[k];if(!Object.is(O[H],A[H])){z="create";break}}return z},y=function(S,w){return S.length!==w.length?!1:S.every(function(M,E){var O=w[E];return M.length!==O.length?!1:M.every(function(P,R){return P===O[R]})})}},react:d=>{d.exports=n},uplot:d=>{d.exports=r}},a={};function s(d){var f=a[d];if(f!==void 0)return f.exports;var h=a[d]={exports:{}};return l[d](h,h.exports,s),h.exports}s.n=d=>{var f=d&&d.__esModule?()=>d.default:()=>d;return s.d(f,{a:f}),f},s.d=(d,f)=>{for(var h in f)s.o(f,h)&&!s.o(d,h)&&Object.defineProperty(d,h,{enumerable:!0,get:f[h]})},s.o=(d,f)=>Object.prototype.hasOwnProperty.call(d,f),s.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var u={};return(()=>{/*!*******************************!*\
  !*** ./react/uplot-react.tsx ***!
  \*******************************/s.r(u),s.d(u,{default:()=>y});var d=s("react"),f=s.n(d),h=s("uplot"),g=s.n(h),b=s("./common/index.ts");function y(C){var S=C.options,w=C.data,M=C.target,E=C.onDelete,O=C.onCreate,P=C.resetScales,R=P===void 0?!0:P,A=C.className,z=(0,d.useRef)(null),k=(0,d.useRef)(null),L=(0,d.useRef)(S),H=(0,d.useRef)(M),$=(0,d.useRef)(w),I=(0,d.useRef)(O),j=(0,d.useRef)(E);(0,d.useEffect)(function(){I.current=O,j.current=E});var q=(0,d.useCallback)(function(_){var B;_&&((B=j.current)===null||B===void 0||B.call(j,_),_.destroy(),z.current=null)},[]),F=(0,d.useCallback)(function(){var _,B=new(g())(L.current,$.current,H.current||k.current);z.current=B,(_=I.current)===null||_===void 0||_.call(I,B)},[]);return(0,d.useEffect)(function(){return F(),function(){q(z.current)}},[F,q]),(0,d.useEffect)(function(){if(L.current!==S){var _=(0,b.optionsUpdateState)(L.current,S);L.current=S,!z.current||_==="create"?(q(z.current),F()):_==="update"&&z.current.setSize({width:S.width,height:S.height})}},[S,F,q]),(0,d.useEffect)(function(){$.current!==w&&(z.current?(0,b.dataMatch)($.current,w)||(R?z.current.setData(w,!0):(z.current.setData(w,!1),z.current.redraw())):($.current=w,F()),$.current=w)},[w,R,F]),(0,d.useEffect)(function(){return H.current!==M&&(H.current=M,F()),function(){return q(z.current)}},[M,F,q]),M?null:f().createElement("div",{ref:k,className:A})}})(),u=u.default,u})())}(Vg)),Vg.exports}var Xse=Yse();const Qse=xp(Xse),Zse=({options:e,levelsService:t,devices:n})=>(m.useEffect(()=>(t.loadDevices(n),t.initWebsocket(),()=>{t.close()}),[t]),x.jsx(Qse,{options:e,data:[],onCreate:r=>t.setChart(r),onDelete:r=>t.setChart(null)})),Jse=({availableDevices:e,selectedDeviceName:t,setSelectedDeviceName:n,levelsService:r,setSelectedNav:l,selectedNav:a,theme:s})=>{const[u,d]=m.useState(60),[f,h]=m.useState(!1),[g,b]=Xf("chartDuration",60),y=m.useMemo(()=>Xie.debounce(w=>{d(w)},400),[]),C={series:[{label:"Time"}],axes:[{label:"Time (s)",stroke:s.palette.text.primary,ticks:{stroke:s.palette.divider},grid:{stroke:s.palette.divider}},{scale:"dB",label:"Level (dB)",stroke:s.palette.text.primary,ticks:{stroke:s.palette.divider},grid:{stroke:s.palette.divider}}],scales:{x:{time:!1},dB:{auto:!0}}};m.useEffect(()=>{y(g)},[g,y]),m.useEffect(()=>{r.pause(f)},[r,f]),m.useEffect(()=>{r.setActiveDuration(u)},[r,u]),m.useEffect(()=>{r.setActiveDevice(t)},[r,t]);const S=Object.assign({},C,{width:window.innerWidth-16,height:window.innerHeight-233});return x.jsxs(x.Fragment,{children:[x.jsx($x,{availableDevices:e,setSelectedDeviceName:n,selectedDeviceName:t,selectedNav:a,setSelectedNav:l}),x.jsx(Roe,{duration:g,setDuration:b,paused:f,setPaused:h}),x.jsx(Zse,{options:S,levelsService:r,devices:e})]})},Eg="Minidsp",Di={formControl:`${Eg}-formControl`,chips:`${Eg}-chips`,chip:`${Eg}-chip`,root:`${Eg}-root`},ece=ge("div")(({theme:e})=>({[`& .${Di.formControl}`]:{margin:e.spacing(1),minWidth:120,maxWidth:300},[`& .${Di.chips}`]:{display:"flex",flexWrap:"wrap"},[`& .${Di.chip}`]:{margin:2},[`& .${Di.root}`]:{"& .MuiTextField-root":{margin:e.spacing(1)}}})),tce=48,nce=8,rce={PaperProps:{style:{maxHeight:tce*4.5+nce,width:250}}},oce=(e,t,n)=>({fontWeight:t.indexOf(e)===-1?n.typography.fontWeightRegular:n.typography.fontWeightMedium}),cD=({name:e,values:t,availableValues:n,onChange:r,theme:l})=>x.jsxs(Yu,{variant:"standard",className:Di.formControl,children:[x.jsx(hp,{id:`${e}-label`,children:e}),x.jsx(bc,{variant:"standard",labelId:`${e}-label`,id:e,multiple:!0,value:t,onChange:r,input:x.jsx(Vm,{id:"select-multiple-chip"}),renderValue:a=>x.jsx("div",{className:Di.chips,children:a.map(s=>x.jsx(zm,{label:s,className:Di.chip},s))}),MenuProps:rce,children:n.map(a=>x.jsx(ki,{value:a,style:oce(a,t,l),children:a},`${e}-${a}`))})]}),lce=({availableDevices:e,setSelectedDeviceName:t,selectedDeviceName:n,selectedSlotId:r,setErr:l,setSelectedNav:a,selectedNav:s,theme:u})=>{const[d,f]=Xf(`minidspInputs.${n}.${r}`,[]),[h,g]=Xf(`minidspOutputs.${n}.${r}`,[]),[b,y]=Xf(`minidsp.${n}.commandType`,"bq"),[C,S]=m.useState(r),[w,M]=m.useState(""),[E,O]=m.useState(!0),[P,R]=m.useState(!1),[A,z]=m.useState([]),[k,L]=m.useState([]),H=async()=>{R(!0);try{const $=await tl.sendTextCommands(n,C,d,h,b,w,E);console.debug($)}catch($){l($)}finally{R(!1)}};return m.useEffect(()=>{if(e&&n&&r){const $=e[n].slots.find(I=>I.id===r);z(Array.from(Array($.inputs).keys()).map(I=>I+1)),L(Array.from(Array($.outputs).keys()).map(I=>I+1))}},[e,n,r]),m.useEffect(()=>{d.some($=>!A.includes($))&&f(d.filter($=>A.includes($)))},[f,A,d]),m.useEffect(()=>{h.some($=>!k.includes($))&&g(h.filter($=>k.includes($)))},[g,k,h]),x.jsxs(ece,{children:[x.jsx($x,{availableDevices:e,setSelectedDeviceName:t,selectedDeviceName:n,selectedNav:s,setSelectedNav:a}),x.jsx("form",{className:Di.root,noValidate:!0,autoComplete:"off",children:x.jsxs(En,{container:!0,children:[x.jsxs(En,{container:!0,sx:{flexGrow:1},justifyContent:"space-evenly",alignItems:"center",children:[x.jsx(En,{children:x.jsxs(Yu,{variant:"standard",className:Di.formControl,children:[x.jsx(hp,{id:"config-label",children:"Config"}),x.jsx(bc,{variant:"standard",labelId:"config-label",id:"config",value:C,onChange:$=>S($.target.value),children:[1,2,3,4].map($=>x.jsx(ki,{value:$,children:$},$))})]})}),A.length>0?x.jsx(En,{children:x.jsx(cD,{name:"Input",onChange:$=>f($.target.value.sort()),availableValues:A,values:d,theme:u},"input")}):null,k.length>0?x.jsx(En,{children:x.jsx(cD,{name:"Output",onChange:$=>g($.target.value.sort()),availableValues:k,values:h,theme:u},"output")}):null,x.jsx(En,{children:x.jsx(Xu,{control:x.jsx(mp,{checked:E,onChange:$=>O($.target.checked),color:"default",name:"overwrite"}),labelPlacement:"top",label:"Overwrite?"})}),x.jsx(En,{children:x.jsxs(Yu,{variant:"standard",className:Di.formControl,children:[x.jsx(hp,{id:"mode-label",children:"Mode"}),x.jsxs(bc,{variant:"standard",labelId:"mode-label",id:"mode",value:b,onChange:$=>y($.target.value),children:[x.jsx(ki,{value:"bq",children:"Biquads"},"bq"),x.jsx(ki,{value:"filt",children:"Filters"},"filt"),x.jsx(ki,{value:"rs",children:"RS"},"rs")]})]})}),x.jsx(En,{children:x.jsx(uc,{variant:"outlined",color:"primary",onClick:H,disabled:w.length===0,startIcon:P?x.jsx(Mc,{size:24}):x.jsx(Lx,{fontSize:"small"}),children:"Upload"})})]}),x.jsx(En,{container:!0,sx:{flexGrow:1},children:x.jsx(ud,{id:"commands",label:b==="bq"?"Biquads":b==="filt"?"Filters":"Minidsp RS",multiline:!0,rows:26,fullWidth:!0,value:w,onChange:$=>M($.target.value),variant:"outlined"})})]})})]})},ice=new Error("No data in levels update");class ace{constructor(t,n,r){this.url=n,this.setErr=t,this.first=0,this.chart=null,this.paused=!1,this.devices=[],this.seriesByDeviceName={},this.activeDeviceName=null,this.activeDuration=60,this.dataByDeviceName={},this.seriesDirty=!0,this.colours=[r.palette.primary.light,r.palette.secondary.light,r.palette.error.light,r.palette.warning.light,r.palette.info.light,r.palette.success.light]}createSeriesForDevice=(t,n)=>({label:n,stroke:this.colours[Object.keys(this.seriesByDeviceName[t]).length%this.colours.length],points:{show:!1},scale:"dB"});ensureSeriesForDevice=(t,n)=>{if(this.seriesByDeviceName.hasOwnProperty(t)){const r=Object.keys(this.seriesByDeviceName[t]),l=n.filter(s=>r.indexOf(s)===-1),a=r.filter(s=>n.indexOf(s)===-1);l.forEach(s=>{this.seriesByDeviceName[t][s]=this.createSeriesForDevice(t,s),this.seriesDirty=!0}),a.forEach(s=>{delete this.seriesByDeviceName[t][s],this.seriesDirty=!0})}else this.seriesDirty=!0,this.seriesByDeviceName[t]=[...n]};loadDevices=t=>{Object.keys(t).forEach(n=>{this.devices.indexOf(n)===-1&&(this.devices.push(n),this.dataByDeviceName[n]={payload:[],first:0},this.seriesByDeviceName[n]=[],this.ws&&this.ws.readyState===1&&this.ws.send(`subscribe levels ${n}`))})};pause=t=>{this.paused=t};setActiveDuration=t=>{this.activeDuration=t};setChart=t=>{if(this.chart=t,this.seriesDirty=!0,this.activeDeviceName&&this.chart){this.seriesByDeviceName[this.activeDeviceName]&&this.ensureAllSeriesAreLoadedToChart(this.activeDeviceName);const r=this.dataByDeviceName[this.activeDeviceName];r&&r.payload&&this.chart.setData(r.payload)}};ensureAllSeriesAreLoadedToChart=t=>{if(this.chart&&this.seriesDirty){const n=this.seriesByDeviceName[t],r=Object.keys(n).map(u=>n[u].label),l=this.chart.series.map(u=>u.label),a=l.filter(u=>u!=="Time"&&r.indexOf(u)===-1);r.filter(u=>l.indexOf(u)===-1).forEach(u=>{console.log(`Adding new series ${u}`),this.chart.addSeries(this.seriesByDeviceName[t][u])}),a.forEach(u=>{console.log(`Deleting series ${u}`),this.chart.delSeries(l.indexOf(d=>d.label===u))})}};initWebsocket=()=>{this.ws&&this.ws.readyState<=1?console.warn(`Connection to ${this.url} is already open`):(this.ws=new WebSocket(this.url),this.ws.onerror=t=>{this.setErr(new Error(`Failed to connect to ${this.url}`))},this.ws.onopen=t=>{console.log(`Connected to ${this.url}`),this.devices.forEach(n=>this.ws.send(`subscribe levels ${n}`))},this.ws.onclose=t=>{console.log(`Closed connection to ${this.url} - ${t.code}`)},this.ws.onmessage=t=>{const n=JSON.parse(t.data);if(n.hasOwnProperty("message")&&n.message==="Levels"){const r=n.data;if(r)if(Object.keys(r).length===0)this.setErr(ice);else if(r.hasOwnProperty("levels")&&r.hasOwnProperty("name")){const l=r.name,a=Object.keys(r.levels);this.ensureSeriesForDevice(l,a);const s=[r.ts,...a.map(u=>r.levels[u])];if(this.dataByDeviceName.hasOwnProperty(l)){const u=this.dataByDeviceName[l];u.payload&&u.payload.length>0?u.payload=s.map((d,f)=>f===0?[...u.payload[f],d-u.first]:[...u.payload[f],d]):(u.first=s[0],u.payload=s.map((d,f)=>f===0?[d-u.first]:[d])),this.dataByDeviceName[l]=this.trimToDuration(u,this.activeDuration),this.chart&&l===this.activeDeviceName&&(this.ensureAllSeriesAreLoadedToChart(l),this.paused||this.chart.setData(this.dataByDeviceName[l].payload))}else console.warn(`No cached data for ${l}`)}else this.setErr(new Error(`Unexpected data ${r}`))}})};setActiveDevice=t=>{t&&(this.devices.indexOf(t)>-1?this.activeDeviceName=t:this.setErr(new Error(`Unknown device ${t}`)))};trimToDuration=(t,n)=>{const r=t.payload[0],l=r[0],s=r[r.length-1]-n;if(s>l){const u=r.findIndex(d=>d>=s);return{first:t.first,payload:t.payload.map(d=>d.slice(u))}}else return{first:t.first,payload:t.payload}};close=()=>this.ws&&this.ws.readyState===1?(console.log(`Closing connection to ${this.url}`),this.ws.close(),this.ws=null,!0):(console.info("Ignoring close, ws not ready"),!1)}class sce{constructor(t){this.url=t,this.ws=new WebSocket(t),this.setErr=null,this.replaceDevice=null,this.loadEntries=null,this.setMeta=null,this.ws.onerror=n=>{const r=`Failed to connect to ${this.url}`;this.setErr?this.setErr(new Error(r)):console.error(r)},this.ws.onopen=n=>{console.log(`Connected to ${this.url}`)},this.ws.onclose=n=>{console.log(`Closed connection to ${this.url} - ${n.code}`)},this.ws.onmessage=n=>{const r=JSON.parse(n.data);switch(r.message){case"DeviceState":console.debug(`Replacing Device ${r.data.name}`),this.replaceDevice(r.data);break;case"Error":this.setErr(new Error(r.data));break;case"Catalogue":r.data&&(console.debug(`Updating catalogue to version ${r.data.version}`),this.setMeta(r.data));break;case"CatalogueEntries":r.data&&(console.debug(`Received ${r.data.length} catalogue entries at ${new Date(Date.now()).toISOString()}`),this.loadEntries(Object.assign({},...r.data.map(l=>({[l.id]:l})))));break;default:console.warn(`Unknown ws message ${n.data}`)}}}init=(t,n,r,l)=>{this.setErr=t,this.replaceDevice=n,this.setMeta=r,this.loadEntries=l};isConnected=()=>this.ws.readyState===1;loadCatalogue=()=>this.ws.send("load catalogue");close=()=>{this.ws.close()}}const cce="App",rH={root:`${cce}-root`},uce=ge(Pj)(({theme:e})=>({[`& .${rH.root}`]:{flexGrow:1,width:"100%",height:"100%"}})),dce=({children:e})=>x.jsx("div",{className:rH.root,children:e}),oH=`ws${window.location.protocol==="https:"?"s":""}`,Pg=new sce(`${oH}://${window.location.host}/ws`),fce=()=>{const e=vR("(prefers-color-scheme: dark)"),t=nl.useMemo(()=>_m({palette:{mode:e?"dark":"light"}}),[e]),[n,r]=m.useState(null),[l,a]=m.useState({}),[s,u]=m.useState({}),[d,f]=m.useState(null),[h,g]=m.useState(null),[b,y]=m.useState("catalogue"),[C,S]=m.useState({}),[w,M]=m.useState(null),E=m.useMemo(()=>A=>{S(Object.assign({},C,{[A.name]:A}))},[S,C]),O=m.useMemo(()=>A=>{a(z=>{const k=`${d}_`,L=z?Object.fromEntries(Object.entries(z).filter(([H])=>H.startsWith(k))):{};return Object.assign({},L,A)})},[d,a,l]);m.useEffect(()=>{s&&(!d||s.version!==d)&&f(s.version)},[s,d,f]),m.useEffect(()=>{Pg.init(r,E,u,O)},[r,E,u,O]);const P=m.useMemo(()=>new ace(r,`${oH}://${window.location.host}/ws`,t),[r]);m.useEffect(()=>{d&&Pg.loadCatalogue()},[d]),m.useEffect(()=>{P.loadDevices(Object.keys(C))},[P,C]),m.useEffect(()=>{Ml(S,tl.getDevices,r)},[]),m.useEffect(()=>{if(h&&C[h].hasOwnProperty("slots")){const A=C[h].slots.find(z=>z.active===!0);A&&M(A.id)}},[h,C]);const R=vR("(orientation: landscape) and (min-height: 580px)");return x.jsx(uce,{injectFirst:!0,children:x.jsxs(bG,{theme:t,children:[x.jsx(TG,{}),x.jsxs(dce,{children:[x.jsx(O4,{err:n,setErr:r}),b==="catalogue"?x.jsx(Eoe,{entries:Object.keys(l).map(A=>l[A]),setErr:r,replaceDevice:A=>{Pg&&Pg.isConnected()?console.debug("Discarding update, ws is connected"):(console.debug("Accepting update, ws is disconnected"),E(A))},availableDevices:C,selectedDeviceName:h,setSelectedDeviceName:g,selectedSlotId:w,setSelectedSlotId:M,useWide:R,selectedNav:b,setSelectedNav:y,meta:s}):b==="levels"?x.jsx(Jse,{availableDevices:C,selectedDeviceName:h,setSelectedDeviceName:g,levelsService:P,selectedNav:b,setSelectedNav:y,theme:t}):x.jsx(lce,{availableDevices:C,selectedDeviceName:h,setSelectedDeviceName:g,selectedSlotId:w,setErr:r,selectedNav:b,setSelectedNav:y,theme:t})]})]})})};var Ww={exports:{}},Ff={},Kw={exports:{}},Yw={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var uD;function pce(){return uD||(uD=1,function(e){function t(_,B){var J=_.length;_.push(B);e:for(;0<J;){var Q=J-1>>>1,D=_[Q];if(0<l(D,B))_[Q]=B,_[J]=D,J=Q;else break e}}function n(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var B=_[0],J=_.pop();if(J!==B){_[0]=J;e:for(var Q=0,D=_.length,G=D>>>1;Q<G;){var W=2*(Q+1)-1,Z=_[W],te=W+1,ne=_[te];if(0>l(Z,J))te<D&&0>l(ne,Z)?(_[Q]=ne,_[te]=J,Q=te):(_[Q]=Z,_[W]=J,Q=W);else if(te<D&&0>l(ne,J))_[Q]=ne,_[te]=J,Q=te;else break e}}return B}function l(_,B){var J=_.sortIndex-B.sortIndex;return J!==0?J:_.id-B.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var d=[],f=[],h=1,g=null,b=3,y=!1,C=!1,S=!1,w=!1,M=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function P(_){for(var B=n(f);B!==null;){if(B.callback===null)r(f);else if(B.startTime<=_)r(f),B.sortIndex=B.expirationTime,t(d,B);else break;B=n(f)}}function R(_){if(S=!1,P(_),!C)if(n(d)!==null)C=!0,A||(A=!0,I());else{var B=n(f);B!==null&&F(R,B.startTime-_)}}var A=!1,z=-1,k=5,L=-1;function H(){return w?!0:!(e.unstable_now()-L<k)}function $(){if(w=!1,A){var _=e.unstable_now();L=_;var B=!0;try{e:{C=!1,S&&(S=!1,E(z),z=-1),y=!0;var J=b;try{t:{for(P(_),g=n(d);g!==null&&!(g.expirationTime>_&&H());){var Q=g.callback;if(typeof Q=="function"){g.callback=null,b=g.priorityLevel;var D=Q(g.expirationTime<=_);if(_=e.unstable_now(),typeof D=="function"){g.callback=D,P(_),B=!0;break t}g===n(d)&&r(d),P(_)}else r(d);g=n(d)}if(g!==null)B=!0;else{var G=n(f);G!==null&&F(R,G.startTime-_),B=!1}}break e}finally{g=null,b=J,y=!1}B=void 0}}finally{B?I():A=!1}}}var I;if(typeof O=="function")I=function(){O($)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,q=j.port2;j.port1.onmessage=$,I=function(){q.postMessage(null)}}else I=function(){M($,0)};function F(_,B){z=M(function(){_(e.unstable_now())},B)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(_){_.callback=null},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(_){switch(b){case 1:case 2:case 3:var B=3;break;default:B=b}var J=b;b=B;try{return _()}finally{b=J}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(_,B){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var J=b;b=_;try{return B()}finally{b=J}},e.unstable_scheduleCallback=function(_,B,J){var Q=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?Q+J:Q):J=Q,_){case 1:var D=-1;break;case 2:D=250;break;case 5:D=1073741823;break;case 4:D=1e4;break;default:D=5e3}return D=J+D,_={id:h++,callback:B,priorityLevel:_,startTime:J,expirationTime:D,sortIndex:-1},J>Q?(_.sortIndex=J,t(f,_),n(d)===null&&_===n(f)&&(S?(E(z),z=-1):S=!0,F(R,J-Q))):(_.sortIndex=D,t(d,_),C||y||(C=!0,A||(A=!0,I()))),_},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(_){var B=b;return function(){var J=b;b=B;try{return _.apply(this,arguments)}finally{b=J}}}}(Yw)),Yw}var dD;function hce(){return dD||(dD=1,Kw.exports=pce()),Kw.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var fD;function gce(){if(fD)return Ff;fD=1;var e=hce(),t=id(),n=iL();function r(o){var i="https://react.dev/errors/"+o;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)i+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+o+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function a(o){var i=o,c=o;if(o.alternate)for(;i.return;)i=i.return;else{o=i;do i=o,(i.flags&4098)!==0&&(c=i.return),o=i.return;while(o)}return i.tag===3?c:null}function s(o){if(o.tag===13){var i=o.memoizedState;if(i===null&&(o=o.alternate,o!==null&&(i=o.memoizedState)),i!==null)return i.dehydrated}return null}function u(o){if(a(o)!==o)throw Error(r(188))}function d(o){var i=o.alternate;if(!i){if(i=a(o),i===null)throw Error(r(188));return i!==o?null:o}for(var c=o,p=i;;){var v=c.return;if(v===null)break;var T=v.alternate;if(T===null){if(p=v.return,p!==null){c=p;continue}break}if(v.child===T.child){for(T=v.child;T;){if(T===c)return u(v),o;if(T===p)return u(v),i;T=T.sibling}throw Error(r(188))}if(c.return!==p.return)c=v,p=T;else{for(var U=!1,X=v.child;X;){if(X===c){U=!0,c=v,p=T;break}if(X===p){U=!0,p=v,c=T;break}X=X.sibling}if(!U){for(X=T.child;X;){if(X===c){U=!0,c=T,p=v;break}if(X===p){U=!0,p=T,c=v;break}X=X.sibling}if(!U)throw Error(r(189))}}if(c.alternate!==p)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?o:i}function f(o){var i=o.tag;if(i===5||i===26||i===27||i===6)return o;for(o=o.child;o!==null;){if(i=f(o),i!==null)return i;o=o.sibling}return null}var h=Object.assign,g=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),E=Symbol.for("react.consumer"),O=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function I(o){return o===null||typeof o!="object"?null:(o=$&&o[$]||o["@@iterator"],typeof o=="function"?o:null)}var j=Symbol.for("react.client.reference");function q(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===j?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case C:return"Fragment";case w:return"Profiler";case S:return"StrictMode";case R:return"Suspense";case A:return"SuspenseList";case L:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case y:return"Portal";case O:return(o.displayName||"Context")+".Provider";case E:return(o._context.displayName||"Context")+".Consumer";case P:var i=o.render;return o=o.displayName,o||(o=i.displayName||i.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case z:return i=o.displayName||null,i!==null?i:q(o.type)||"Memo";case k:i=o._payload,o=o._init;try{return q(o(i))}catch{}}return null}var F=Array.isArray,_=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},Q=[],D=-1;function G(o){return{current:o}}function W(o){0>D||(o.current=Q[D],Q[D]=null,D--)}function Z(o,i){D++,Q[D]=o.current,o.current=i}var te=G(null),ne=G(null),oe=G(null),se=G(null);function Se(o,i){switch(Z(oe,i),Z(ne,o),Z(te,null),i.nodeType){case 9:case 11:o=(o=i.documentElement)&&(o=o.namespaceURI)?rP(o):0;break;default:if(o=i.tagName,i=i.namespaceURI)i=rP(i),o=oP(i,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}W(te),Z(te,o)}function be(){W(te),W(ne),W(oe)}function de(o){o.memoizedState!==null&&Z(se,o);var i=te.current,c=oP(i,o.type);i!==c&&(Z(ne,o),Z(te,c))}function ke(o){ne.current===o&&(W(te),W(ne)),se.current===o&&(W(se),vf._currentValue=J)}var Ae=Object.prototype.hasOwnProperty,Ne=e.unstable_scheduleCallback,$e=e.unstable_cancelCallback,Ve=e.unstable_shouldYield,nt=e.unstable_requestPaint,lt=e.unstable_now,me=e.unstable_getCurrentPriorityLevel,tt=e.unstable_ImmediatePriority,ze=e.unstable_UserBlockingPriority,et=e.unstable_NormalPriority,He=e.unstable_LowPriority,yt=e.unstable_IdlePriority,Le=e.log,Pe=e.unstable_setDisableYieldValue,Ke=null,Xe=null;function mt(o){if(typeof Le=="function"&&Pe(o),Xe&&typeof Xe.setStrictMode=="function")try{Xe.setStrictMode(Ke,o)}catch{}}var _e=Math.clz32?Math.clz32:Qe,Je=Math.log,Fe=Math.LN2;function Qe(o){return o>>>=0,o===0?32:31-(Je(o)/Fe|0)|0}var st=256,pt=4194304;function Ze(o){var i=o&42;if(i!==0)return i;switch(o&-o){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 o&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function Tt(o,i,c){var p=o.pendingLanes;if(p===0)return 0;var v=0,T=o.suspendedLanes,U=o.pingedLanes;o=o.warmLanes;var X=p&134217727;return X!==0?(p=X&~T,p!==0?v=Ze(p):(U&=X,U!==0?v=Ze(U):c||(c=X&~o,c!==0&&(v=Ze(c))))):(X=p&~T,X!==0?v=Ze(X):U!==0?v=Ze(U):c||(c=p&~o,c!==0&&(v=Ze(c)))),v===0?0:i!==0&&i!==v&&(i&T)===0&&(T=v&-v,c=i&-i,T>=c||T===32&&(c&4194048)!==0)?i:v}function _t(o,i){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&i)===0}function cn(o,i){switch(o){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 qn(){var o=st;return st<<=1,(st&4194048)===0&&(st=256),o}function cr(){var o=pt;return pt<<=1,(pt&62914560)===0&&(pt=4194304),o}function on(o){for(var i=[],c=0;31>c;c++)i.push(o);return i}function Wn(o,i){o.pendingLanes|=i,i!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function Gr(o,i,c,p,v,T){var U=o.pendingLanes;o.pendingLanes=c,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=c,o.entangledLanes&=c,o.errorRecoveryDisabledLanes&=c,o.shellSuspendCounter=0;var X=o.entanglements,le=o.expirationTimes,he=o.hiddenUpdates;for(c=U&~c;0<c;){var Ee=31-_e(c),De=1<<Ee;X[Ee]=0,le[Ee]=-1;var ve=he[Ee];if(ve!==null)for(he[Ee]=null,Ee=0;Ee<ve.length;Ee++){var ye=ve[Ee];ye!==null&&(ye.lane&=-536870913)}c&=~De}p!==0&&Cr(o,p,0),T!==0&&v===0&&o.tag!==0&&(o.suspendedLanes|=T&~(U&~i))}function Cr(o,i,c){o.pendingLanes|=i,o.suspendedLanes&=~i;var p=31-_e(i);o.entangledLanes|=i,o.entanglements[p]=o.entanglements[p]|1073741824|c&4194090}function Vr(o,i){var c=o.entangledLanes|=i;for(o=o.entanglements;c;){var p=31-_e(c),v=1<<p;v&i|o[p]&i&&(o[p]|=i),c&=~v}}function Ur(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=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:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function Et(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function Kn(){var o=B.p;return o!==0?o:(o=window.event,o===void 0?32:xP(o.type))}function to(o,i){var c=B.p;try{return B.p=o,i()}finally{B.p=c}}var yn=Math.random().toString(36).slice(2),Jt="__reactFiber$"+yn,Pn="__reactProps$"+yn,Or="__reactContainer$"+yn,Sr="__reactEvents$"+yn,cl="__reactListeners$"+yn,ul="__reactHandles$"+yn,Gi="__reactResources$"+yn,Ro="__reactMarker$"+yn;function Yn(o){delete o[Jt],delete o[Pn],delete o[Sr],delete o[cl],delete o[ul]}function $n(o){var i=o[Jt];if(i)return i;for(var c=o.parentNode;c;){if(i=c[Or]||c[Jt]){if(c=i.alternate,i.child!==null||c!==null&&c.child!==null)for(o=sP(o);o!==null;){if(c=o[Jt])return c;o=sP(o)}return i}o=c,c=o.parentNode}return null}function ir(o){if(o=o[Jt]||o[Or]){var i=o.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return o}return null}function jl(o){var i=o.tag;if(i===5||i===26||i===27||i===6)return o.stateNode;throw Error(r(33))}function qr(o){var i=o[Gi];return i||(i=o[Gi]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Vn(o){o[Ro]=!0}var xe=new Set,Ce={};function Ue(o,i){it(o,i),it(o+"Capture",i)}function it(o,i){for(Ce[o]=i,o=0;o<i.length;o++)xe.add(i[o])}var At=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]*$"),nn={},mn={};function co(o){return Ae.call(mn,o)?!0:Ae.call(nn,o)?!1:At.test(o)?mn[o]=!0:(nn[o]=!0,!1)}function jo(o,i,c){if(co(i))if(c===null)o.removeAttribute(i);else{switch(typeof c){case"undefined":case"function":case"symbol":o.removeAttribute(i);return;case"boolean":var p=i.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){o.removeAttribute(i);return}}o.setAttribute(i,""+c)}}function dl(o,i,c){if(c===null)o.removeAttribute(i);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(i);return}o.setAttribute(i,""+c)}}function Ir(o,i,c,p){if(p===null)o.removeAttribute(c);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(c);return}o.setAttributeNS(i,c,""+p)}}var gi,jt;function kr(o){if(gi===void 0)try{throw Error()}catch(c){var i=c.stack.trim().match(/\n( *(at )?)/);gi=i&&i[1]||"",jt=-1<c.stack.indexOf(`
    at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
`+gi+o+jt}var uo=!1;function Bo(o,i){if(!o||uo)return"";uo=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(i){var De=function(){throw Error()};if(Object.defineProperty(De.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(De,[])}catch(ye){var ve=ye}Reflect.construct(o,[],De)}else{try{De.call()}catch(ye){ve=ye}o.call(De.prototype)}}else{try{throw Error()}catch(ye){ve=ye}(De=o())&&typeof De.catch=="function"&&De.catch(function(){})}}catch(ye){if(ye&&ve&&typeof ye.stack=="string")return[ye.stack,ve.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var T=p.DetermineComponentFrameRoot(),U=T[0],X=T[1];if(U&&X){var le=U.split(`
`),he=X.split(`
`);for(v=p=0;p<le.length&&!le[p].includes("DetermineComponentFrameRoot");)p++;for(;v<he.length&&!he[v].includes("DetermineComponentFrameRoot");)v++;if(p===le.length||v===he.length)for(p=le.length-1,v=he.length-1;1<=p&&0<=v&&le[p]!==he[v];)v--;for(;1<=p&&0<=v;p--,v--)if(le[p]!==he[v]){if(p!==1||v!==1)do if(p--,v--,0>v||le[p]!==he[v]){var Ee=`
`+le[p].replace(" at new "," at ");return o.displayName&&Ee.includes("<anonymous>")&&(Ee=Ee.replace("<anonymous>",o.displayName)),Ee}while(1<=p&&0<=v);break}}}finally{uo=!1,Error.prepareStackTrace=c}return(c=o?o.displayName||o.name:"")?kr(c):""}function xd(o){switch(o.tag){case 26:case 27:case 5:return kr(o.type);case 16:return kr("Lazy");case 13:return kr("Suspense");case 19:return kr("SuspenseList");case 0:case 15:return Bo(o.type,!1);case 11:return Bo(o.type.render,!1);case 1:return Bo(o.type,!0);case 31:return kr("Activity");default:return""}}function Oc(o){try{var i="";do i+=xd(o),o=o.return;while(o);return i}catch(c){return`
Error generating stack: `+c.message+`
`+c.stack}}function zn(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Md(o){var i=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Xp(o){var i=Md(o)?"checked":"value",c=Object.getOwnPropertyDescriptor(o.constructor.prototype,i),p=""+o[i];if(!o.hasOwnProperty(i)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var v=c.get,T=c.set;return Object.defineProperty(o,i,{configurable:!0,get:function(){return v.call(this)},set:function(U){p=""+U,T.call(this,U)}}),Object.defineProperty(o,i,{enumerable:c.enumerable}),{getValue:function(){return p},setValue:function(U){p=""+U},stopTracking:function(){o._valueTracker=null,delete o[i]}}}}function Ra(o){o._valueTracker||(o._valueTracker=Xp(o))}function Td(o){if(!o)return!1;var i=o._valueTracker;if(!i)return!0;var c=i.getValue(),p="";return o&&(p=Md(o)?o.checked?"true":"false":o.value),o=p,o!==c?(i.setValue(o),!0):!1}function Ic(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var xb=/[\n"\\]/g;function Ao(o){return o.replace(xb,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function kc(o,i,c,p,v,T,U,X){o.name="",U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"?o.type=U:o.removeAttribute("type"),i!=null?U==="number"?(i===0&&o.value===""||o.value!=i)&&(o.value=""+zn(i)):o.value!==""+zn(i)&&(o.value=""+zn(i)):U!=="submit"&&U!=="reset"||o.removeAttribute("value"),i!=null?Pd(o,U,zn(i)):c!=null?Pd(o,U,zn(c)):p!=null&&o.removeAttribute("value"),v==null&&T!=null&&(o.defaultChecked=!!T),v!=null&&(o.checked=v&&typeof v!="function"&&typeof v!="symbol"),X!=null&&typeof X!="function"&&typeof X!="symbol"&&typeof X!="boolean"?o.name=""+zn(X):o.removeAttribute("name")}function Ed(o,i,c,p,v,T,U,X){if(T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(o.type=T),i!=null||c!=null){if(!(T!=="submit"&&T!=="reset"||i!=null))return;c=c!=null?""+zn(c):"",i=i!=null?""+zn(i):c,X||i===o.value||(o.value=i),o.defaultValue=i}p=p??v,p=typeof p!="function"&&typeof p!="symbol"&&!!p,o.checked=X?o.checked:!!p,o.defaultChecked=!!p,U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"&&(o.name=U)}function Pd(o,i,c){i==="number"&&Ic(o.ownerDocument)===o||o.defaultValue===""+c||(o.defaultValue=""+c)}function Vi(o,i,c,p){if(o=o.options,i){i={};for(var v=0;v<c.length;v++)i["$"+c[v]]=!0;for(c=0;c<o.length;c++)v=i.hasOwnProperty("$"+o[c].value),o[c].selected!==v&&(o[c].selected=v),v&&p&&(o[c].defaultSelected=!0)}else{for(c=""+zn(c),i=null,v=0;v<o.length;v++){if(o[v].value===c){o[v].selected=!0,p&&(o[v].defaultSelected=!0);return}i!==null||o[v].disabled||(i=o[v])}i!==null&&(i.selected=!0)}}function _c(o,i,c){if(i!=null&&(i=""+zn(i),i!==o.value&&(o.value=i),c==null)){o.defaultValue!==i&&(o.defaultValue=i);return}o.defaultValue=c!=null?""+zn(c):""}function Rs(o,i,c,p){if(i==null){if(p!=null){if(c!=null)throw Error(r(92));if(F(p)){if(1<p.length)throw Error(r(93));p=p[0]}c=p}c==null&&(c=""),i=c}c=zn(i),o.defaultValue=c,p=o.textContent,p===c&&p!==""&&p!==null&&(o.value=p)}function Bl(o,i){if(i){var c=o.firstChild;if(c&&c===o.lastChild&&c.nodeType===3){c.nodeValue=i;return}}o.textContent=i}var Mb=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 Dc(o,i,c){var p=i.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?p?o.setProperty(i,""):i==="float"?o.cssFloat="":o[i]="":p?o.setProperty(i,c):typeof c!="number"||c===0||Mb.has(i)?i==="float"?o.cssFloat=c:o[i]=(""+c).trim():o[i]=c+"px"}function Qp(o,i,c){if(i!=null&&typeof i!="object")throw Error(r(62));if(o=o.style,c!=null){for(var p in c)!c.hasOwnProperty(p)||i!=null&&i.hasOwnProperty(p)||(p.indexOf("--")===0?o.setProperty(p,""):p==="float"?o.cssFloat="":o[p]="");for(var v in i)p=i[v],i.hasOwnProperty(v)&&c[v]!==p&&Dc(o,v,p)}else for(var T in i)i.hasOwnProperty(T)&&Dc(o,T,i[T])}function Rd(o){if(o.indexOf("-")===-1)return!1;switch(o){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 Tb=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"]]),Aa=/^[\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 Ui(o){return Aa.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}var As=null;function qi(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Oa=null,Go=null;function Zp(o){var i=ir(o);if(i&&(o=i.stateNode)){var c=o[Pn]||null;e:switch(o=i.stateNode,i.type){case"input":if(kc(o,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),i=c.name,c.type==="radio"&&i!=null){for(c=o;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+Ao(""+i)+'"][type="radio"]'),i=0;i<c.length;i++){var p=c[i];if(p!==o&&p.form===o.form){var v=p[Pn]||null;if(!v)throw Error(r(90));kc(p,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(i=0;i<c.length;i++)p=c[i],p.form===o.form&&Td(p)}break e;case"textarea":_c(o,c.value,c.defaultValue);break e;case"select":i=c.value,i!=null&&Vi(o,!!c.multiple,i,!1)}}}var Lc=!1;function $c(o,i,c){if(Lc)return o(i,c);Lc=!0;try{var p=o(i);return p}finally{if(Lc=!1,(Oa!==null||Go!==null)&&(jh(),Oa&&(i=Oa,o=Go,Go=Oa=null,Zp(i),o)))for(i=0;i<o.length;i++)Zp(o[i])}}function Wi(o,i){var c=o.stateNode;if(c===null)return null;var p=c[Pn]||null;if(p===null)return null;c=p[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(o=o.type,p=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!p;break e;default:o=!1}if(o)return null;if(c&&typeof c!="function")throw Error(r(231,i,typeof c));return c}var Vo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mi=!1;if(Vo)try{var fl={};Object.defineProperty(fl,"passive",{get:function(){mi=!0}}),window.addEventListener("test",fl,fl),window.removeEventListener("test",fl,fl)}catch{mi=!1}var Gl=null,zc=null,Vl=null;function Ki(){if(Vl)return Vl;var o,i=zc,c=i.length,p,v="value"in Gl?Gl.value:Gl.textContent,T=v.length;for(o=0;o<c&&i[o]===v[o];o++);var U=c-o;for(p=1;p<=U&&i[c-p]===v[T-p];p++);return Vl=v.slice(o,1<p?1-p:void 0)}function Os(o){var i=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&i===13&&(o=13)):o=i,o===10&&(o=13),32<=o||o===13?o:0}function Is(){return!0}function Rn(){return!1}function Bt(o){function i(c,p,v,T,U){this._reactName=c,this._targetInst=v,this.type=p,this.nativeEvent=T,this.target=U,this.currentTarget=null;for(var X in o)o.hasOwnProperty(X)&&(c=o[X],this[X]=c?c(T):T[X]);return this.isDefaultPrevented=(T.defaultPrevented!=null?T.defaultPrevented:T.returnValue===!1)?Is:Rn,this.isPropagationStopped=Rn,this}return h(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Is)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Is)},persist:function(){},isPersistent:Is}),i}var fo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ur=Bt(fo),er=h({},fo,{view:0,detail:0}),wr=Bt(er),Cn,bi,vi,Fc=h({},er,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xi,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==vi&&(vi&&o.type==="mousemove"?(Cn=o.screenX-vi.screenX,bi=o.screenY-vi.screenY):bi=Cn=0,vi=o),Cn)},movementY:function(o){return"movementY"in o?o.movementY:bi}}),Ul=Bt(Fc),pl=h({},Fc,{dataTransfer:0}),Eb=Bt(pl),Pb=h({},er,{relatedTarget:0}),Ad=Bt(Pb),Rb=h({},fo,{animationName:0,elapsedTime:0,pseudoElement:0}),ql=Bt(Rb),yi=h({},fo,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),Yi=Bt(yi),Ia=h({},fo,{data:0}),Jp=Bt(Ia),hl={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ab={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"},eh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function th(o){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(o):(o=eh[o])?!!i[o]:!1}function Xi(){return th}var ks=h({},er,{key:function(o){if(o.key){var i=hl[o.key]||o.key;if(i!=="Unidentified")return i}return o.type==="keypress"?(o=Os(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?Ab[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xi,charCode:function(o){return o.type==="keypress"?Os(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Os(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),Ob=Bt(ks),Od=h({},Fc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nh=Bt(Od),Qi=h({},er,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xi}),Ci=Bt(Qi),_s=h({},fo,{propertyName:0,elapsedTime:0,pseudoElement:0}),rh=Bt(_s),Id=h({},Fc,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),kd=Bt(Id),_d=h({},fo,{newState:0,oldState:0}),oh=Bt(_d),lh=[9,13,27,32],Hc=Vo&&"CompositionEvent"in window,ka=null;Vo&&"documentMode"in document&&(ka=document.documentMode);var ih=Vo&&"TextEvent"in window&&!ka,Dd=Vo&&(!Hc||ka&&8<ka&&11>=ka),ah=" ",Ld=!1;function $d(o,i){switch(o){case"keyup":return lh.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zi(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Wl=!1;function xr(o,i){switch(o){case"compositionend":return Zi(i);case"keypress":return i.which!==32?null:(Ld=!0,ah);case"textInput":return o=i.data,o===ah&&Ld?null:o;default:return null}}function sh(o,i){if(Wl)return o==="compositionend"||!Hc&&$d(o,i)?(o=Ki(),Vl=zc=Gl=null,Wl=!1,o):null;switch(o){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 Dd&&i.locale!=="ko"?null:i.data;default:return null}}var dr={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 zd(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i==="input"?!!dr[o.type]:i==="textarea"}function Nc(o,i,c,p){Oa?Go?Go.push(p):Go=[p]:Oa=p,i=Wh(i,"onChange"),0<i.length&&(c=new ur("onChange","change",null,c,p),o.push({event:c,listeners:i}))}var Kl=null,Ds=null;function Ib(o){ZE(o,0)}function _a(o){var i=jl(o);if(Td(i))return o}function V(o,i){if(o==="change")return i}var Y=!1;if(Vo){var ee;if(Vo){var re="oninput"in document;if(!re){var ie=document.createElement("div");ie.setAttribute("oninput","return;"),re=typeof ie.oninput=="function"}ee=re}else ee=!1;Y=ee&&(!document.documentMode||9<document.documentMode)}function pe(){Kl&&(Kl.detachEvent("onpropertychange",Re),Ds=Kl=null)}function Re(o){if(o.propertyName==="value"&&_a(Ds)){var i=[];Nc(i,Ds,o,qi(o)),$c(Ib,i)}}function je(o,i,c){o==="focusin"?(pe(),Kl=i,Ds=c,Kl.attachEvent("onpropertychange",Re)):o==="focusout"&&pe()}function qe(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return _a(Ds)}function at(o,i){if(o==="click")return _a(i)}function ct(o,i){if(o==="input"||o==="change")return _a(i)}function ut(o,i){return o===i&&(o!==0||1/o===1/i)||o!==o&&i!==i}var bt=typeof Object.is=="function"?Object.is:ut;function Ut(o,i){if(bt(o,i))return!0;if(typeof o!="object"||o===null||typeof i!="object"||i===null)return!1;var c=Object.keys(o),p=Object.keys(i);if(c.length!==p.length)return!1;for(p=0;p<c.length;p++){var v=c[p];if(!Ae.call(i,v)||!bt(o[v],i[v]))return!1}return!0}function Qt(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Ft(o,i){var c=Qt(o);o=0;for(var p;c;){if(c.nodeType===3){if(p=o+c.textContent.length,o<=i&&p>=i)return{node:c,offset:i-o};o=p}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=Qt(c)}}function Pt(o,i){return o&&i?o===i?!0:o&&o.nodeType===3?!1:i&&i.nodeType===3?Pt(o,i.parentNode):"contains"in o?o.contains(i):o.compareDocumentPosition?!!(o.compareDocumentPosition(i)&16):!1:!1}function gt(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var i=Ic(o.document);i instanceof o.HTMLIFrameElement;){try{var c=typeof i.contentWindow.location.href=="string"}catch{c=!1}if(c)o=i.contentWindow;else break;i=Ic(o.document)}return i}function Sn(o){var i=o&&o.nodeName&&o.nodeName.toLowerCase();return i&&(i==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||i==="textarea"||o.contentEditable==="true")}var tr=Vo&&"documentMode"in document&&11>=document.documentMode,Xn=null,ln=null,An=null,no=!1;function Wr(o,i,c){var p=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;no||Xn==null||Xn!==Ic(p)||(p=Xn,"selectionStart"in p&&Sn(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),An&&Ut(An,p)||(An=p,p=Wh(ln,"onSelect"),0<p.length&&(i=new ur("onSelect","select",null,i,c),o.push({event:i,listeners:p}),i.target=Xn)))}function Mr(o,i){var c={};return c[o.toLowerCase()]=i.toLowerCase(),c["Webkit"+o]="webkit"+i,c["Moz"+o]="moz"+i,c}var Kr={animationend:Mr("Animation","AnimationEnd"),animationiteration:Mr("Animation","AnimationIteration"),animationstart:Mr("Animation","AnimationStart"),transitionrun:Mr("Transition","TransitionRun"),transitionstart:Mr("Transition","TransitionStart"),transitioncancel:Mr("Transition","TransitionCancel"),transitionend:Mr("Transition","TransitionEnd")},Oo={},po={};Vo&&(po=document.createElement("div").style,"AnimationEvent"in window||(delete Kr.animationend.animation,delete Kr.animationiteration.animation,delete Kr.animationstart.animation),"TransitionEvent"in window||delete Kr.transitionend.transition);function Tr(o){if(Oo[o])return Oo[o];if(!Kr[o])return o;var i=Kr[o],c;for(c in i)if(i.hasOwnProperty(c)&&c in po)return Oo[o]=i[c];return o}var Io=Tr("animationend"),Uo=Tr("animationiteration"),Yr=Tr("animationstart"),So=Tr("transitionrun"),Ji=Tr("transitionstart"),ro=Tr("transitioncancel"),Fd=Tr("transitionend"),DM=new Map,kb="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(" ");kb.push("scrollEnd");function Yl(o,i){DM.set(o,i),Ue(i,[o])}var LM=new WeakMap;function gl(o,i){if(typeof o=="object"&&o!==null){var c=LM.get(o);return c!==void 0?c:(i={value:o,source:i,stack:Oc(i)},LM.set(o,i),i)}return{value:o,source:i,stack:Oc(i)}}var ml=[],jc=0,_b=0;function ch(){for(var o=jc,i=_b=jc=0;i<o;){var c=ml[i];ml[i++]=null;var p=ml[i];ml[i++]=null;var v=ml[i];ml[i++]=null;var T=ml[i];if(ml[i++]=null,p!==null&&v!==null){var U=p.pending;U===null?v.next=v:(v.next=U.next,U.next=v),p.pending=v}T!==0&&$M(c,v,T)}}function uh(o,i,c,p){ml[jc++]=o,ml[jc++]=i,ml[jc++]=c,ml[jc++]=p,_b|=p,o.lanes|=p,o=o.alternate,o!==null&&(o.lanes|=p)}function Db(o,i,c,p){return uh(o,i,c,p),dh(o)}function Bc(o,i){return uh(o,null,null,i),dh(o)}function $M(o,i,c){o.lanes|=c;var p=o.alternate;p!==null&&(p.lanes|=c);for(var v=!1,T=o.return;T!==null;)T.childLanes|=c,p=T.alternate,p!==null&&(p.childLanes|=c),T.tag===22&&(o=T.stateNode,o===null||o._visibility&1||(v=!0)),o=T,T=T.return;return o.tag===3?(T=o.stateNode,v&&i!==null&&(v=31-_e(c),o=T.hiddenUpdates,p=o[v],p===null?o[v]=[i]:p.push(i),i.lane=c|536870912),T):null}function dh(o){if(50<uf)throw uf=0,Nv=null,Error(r(185));for(var i=o.return;i!==null;)o=i,i=o.return;return o.tag===3?o.stateNode:null}var Gc={};function lH(o,i,c,p){this.tag=o,this.key=c,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=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qo(o,i,c,p){return new lH(o,i,c,p)}function Lb(o){return o=o.prototype,!(!o||!o.isReactComponent)}function ea(o,i){var c=o.alternate;return c===null?(c=qo(o.tag,i,o.key,o.mode),c.elementType=o.elementType,c.type=o.type,c.stateNode=o.stateNode,c.alternate=o,o.alternate=c):(c.pendingProps=i,c.type=o.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=o.flags&65011712,c.childLanes=o.childLanes,c.lanes=o.lanes,c.child=o.child,c.memoizedProps=o.memoizedProps,c.memoizedState=o.memoizedState,c.updateQueue=o.updateQueue,i=o.dependencies,c.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},c.sibling=o.sibling,c.index=o.index,c.ref=o.ref,c.refCleanup=o.refCleanup,c}function zM(o,i){o.flags&=65011714;var c=o.alternate;return c===null?(o.childLanes=0,o.lanes=i,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=c.childLanes,o.lanes=c.lanes,o.child=c.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=c.memoizedProps,o.memoizedState=c.memoizedState,o.updateQueue=c.updateQueue,o.type=c.type,i=c.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),o}function fh(o,i,c,p,v,T){var U=0;if(p=o,typeof o=="function")Lb(o)&&(U=1);else if(typeof o=="string")U=aN(o,c,te.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case L:return o=qo(31,c,i,v),o.elementType=L,o.lanes=T,o;case C:return Ls(c.children,v,T,i);case S:U=8,v|=24;break;case w:return o=qo(12,c,i,v|2),o.elementType=w,o.lanes=T,o;case R:return o=qo(13,c,i,v),o.elementType=R,o.lanes=T,o;case A:return o=qo(19,c,i,v),o.elementType=A,o.lanes=T,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case M:case O:U=10;break e;case E:U=9;break e;case P:U=11;break e;case z:U=14;break e;case k:U=16,p=null;break e}U=29,c=Error(r(130,o===null?"null":typeof o,"")),p=null}return i=qo(U,c,i,v),i.elementType=o,i.type=p,i.lanes=T,i}function Ls(o,i,c,p){return o=qo(7,o,p,i),o.lanes=c,o}function $b(o,i,c){return o=qo(6,o,null,i),o.lanes=c,o}function zb(o,i,c){return i=qo(4,o.children!==null?o.children:[],o.key,i),i.lanes=c,i.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},i}var Vc=[],Uc=0,ph=null,hh=0,bl=[],vl=0,$s=null,ta=1,na="";function zs(o,i){Vc[Uc++]=hh,Vc[Uc++]=ph,ph=o,hh=i}function FM(o,i,c){bl[vl++]=ta,bl[vl++]=na,bl[vl++]=$s,$s=o;var p=ta;o=na;var v=32-_e(p)-1;p&=~(1<<v),c+=1;var T=32-_e(i)+v;if(30<T){var U=v-v%5;T=(p&(1<<U)-1).toString(32),p>>=U,v-=U,ta=1<<32-_e(i)+v|c<<v|p,na=T+o}else ta=1<<T|c<<v|p,na=o}function Fb(o){o.return!==null&&(zs(o,1),FM(o,1,0))}function Hb(o){for(;o===ph;)ph=Vc[--Uc],Vc[Uc]=null,hh=Vc[--Uc],Vc[Uc]=null;for(;o===$s;)$s=bl[--vl],bl[vl]=null,na=bl[--vl],bl[vl]=null,ta=bl[--vl],bl[vl]=null}var wo=null,fr=null,un=!1,Fs=null,Si=!1,Nb=Error(r(519));function Hs(o){var i=Error(r(418,""));throw jd(gl(i,o)),Nb}function HM(o){var i=o.stateNode,c=o.type,p=o.memoizedProps;switch(i[Jt]=o,i[Pn]=p,c){case"dialog":Wt("cancel",i),Wt("close",i);break;case"iframe":case"object":case"embed":Wt("load",i);break;case"video":case"audio":for(c=0;c<ff.length;c++)Wt(ff[c],i);break;case"source":Wt("error",i);break;case"img":case"image":case"link":Wt("error",i),Wt("load",i);break;case"details":Wt("toggle",i);break;case"input":Wt("invalid",i),Ed(i,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0),Ra(i);break;case"select":Wt("invalid",i);break;case"textarea":Wt("invalid",i),Rs(i,p.value,p.defaultValue,p.children),Ra(i)}c=p.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||i.textContent===""+c||p.suppressHydrationWarning===!0||nP(i.textContent,c)?(p.popover!=null&&(Wt("beforetoggle",i),Wt("toggle",i)),p.onScroll!=null&&Wt("scroll",i),p.onScrollEnd!=null&&Wt("scrollend",i),p.onClick!=null&&(i.onclick=Kh),i=!0):i=!1,i||Hs(o)}function NM(o){for(wo=o.return;wo;)switch(wo.tag){case 5:case 13:Si=!1;return;case 27:case 3:Si=!0;return;default:wo=wo.return}}function Hd(o){if(o!==wo)return!1;if(!un)return NM(o),un=!0,!1;var i=o.tag,c;if((c=i!==3&&i!==27)&&((c=i===5)&&(c=o.type,c=!(c!=="form"&&c!=="button")||ny(o.type,o.memoizedProps)),c=!c),c&&fr&&Hs(o),NM(o),i===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));e:{for(o=o.nextSibling,i=0;o;){if(o.nodeType===8)if(c=o.data,c==="/$"){if(i===0){fr=Ql(o.nextSibling);break e}i--}else c!=="$"&&c!=="$!"&&c!=="$?"||i++;o=o.nextSibling}fr=null}}else i===27?(i=fr,Ya(o.type)?(o=iy,iy=null,fr=o):fr=i):fr=wo?Ql(o.stateNode.nextSibling):null;return!0}function Nd(){fr=wo=null,un=!1}function jM(){var o=Fs;return o!==null&&(Do===null?Do=o:Do.push.apply(Do,o),Fs=null),o}function jd(o){Fs===null?Fs=[o]:Fs.push(o)}var jb=G(null),Ns=null,ra=null;function Da(o,i,c){Z(jb,i._currentValue),i._currentValue=c}function oa(o){o._currentValue=jb.current,W(jb)}function Bb(o,i,c){for(;o!==null;){var p=o.alternate;if((o.childLanes&i)!==i?(o.childLanes|=i,p!==null&&(p.childLanes|=i)):p!==null&&(p.childLanes&i)!==i&&(p.childLanes|=i),o===c)break;o=o.return}}function Gb(o,i,c,p){var v=o.child;for(v!==null&&(v.return=o);v!==null;){var T=v.dependencies;if(T!==null){var U=v.child;T=T.firstContext;e:for(;T!==null;){var X=T;T=v;for(var le=0;le<i.length;le++)if(X.context===i[le]){T.lanes|=c,X=T.alternate,X!==null&&(X.lanes|=c),Bb(T.return,c,o),p||(U=null);break e}T=X.next}}else if(v.tag===18){if(U=v.return,U===null)throw Error(r(341));U.lanes|=c,T=U.alternate,T!==null&&(T.lanes|=c),Bb(U,c,o),U=null}else U=v.child;if(U!==null)U.return=v;else for(U=v;U!==null;){if(U===o){U=null;break}if(v=U.sibling,v!==null){v.return=U.return,U=v;break}U=U.return}v=U}}function Bd(o,i,c,p){o=null;for(var v=i,T=!1;v!==null;){if(!T){if((v.flags&524288)!==0)T=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var U=v.alternate;if(U===null)throw Error(r(387));if(U=U.memoizedProps,U!==null){var X=v.type;bt(v.pendingProps.value,U.value)||(o!==null?o.push(X):o=[X])}}else if(v===se.current){if(U=v.alternate,U===null)throw Error(r(387));U.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(o!==null?o.push(vf):o=[vf])}v=v.return}o!==null&&Gb(i,o,c,p),i.flags|=262144}function gh(o){for(o=o.firstContext;o!==null;){if(!bt(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function js(o){Ns=o,ra=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function ho(o){return BM(Ns,o)}function mh(o,i){return Ns===null&&js(o),BM(o,i)}function BM(o,i){var c=i._currentValue;if(i={context:i,memoizedValue:c,next:null},ra===null){if(o===null)throw Error(r(308));ra=i,o.dependencies={lanes:0,firstContext:i},o.flags|=524288}else ra=ra.next=i;return c}var iH=typeof AbortController<"u"?AbortController:function(){var o=[],i=this.signal={aborted:!1,addEventListener:function(c,p){o.push(p)}};this.abort=function(){i.aborted=!0,o.forEach(function(c){return c()})}},aH=e.unstable_scheduleCallback,sH=e.unstable_NormalPriority,_r={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vb(){return{controller:new iH,data:new Map,refCount:0}}function Gd(o){o.refCount--,o.refCount===0&&aH(sH,function(){o.controller.abort()})}var Vd=null,Ub=0,qc=0,Wc=null;function cH(o,i){if(Vd===null){var c=Vd=[];Ub=0,qc=Wv(),Wc={status:"pending",value:void 0,then:function(p){c.push(p)}}}return Ub++,i.then(GM,GM),i}function GM(){if(--Ub===0&&Vd!==null){Wc!==null&&(Wc.status="fulfilled");var o=Vd;Vd=null,qc=0,Wc=null;for(var i=0;i<o.length;i++)(0,o[i])()}}function uH(o,i){var c=[],p={status:"pending",value:null,reason:null,then:function(v){c.push(v)}};return o.then(function(){p.status="fulfilled",p.value=i;for(var v=0;v<c.length;v++)(0,c[v])(i)},function(v){for(p.status="rejected",p.reason=v,v=0;v<c.length;v++)(0,c[v])(void 0)}),p}var VM=_.S;_.S=function(o,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&cH(o,i),VM!==null&&VM(o,i)};var Bs=G(null);function qb(){var o=Bs.current;return o!==null?o:Un.pooledCache}function bh(o,i){i===null?Z(Bs,Bs.current):Z(Bs,i.pool)}function UM(){var o=qb();return o===null?null:{parent:_r._currentValue,pool:o}}var Ud=Error(r(460)),qM=Error(r(474)),vh=Error(r(542)),Wb={then:function(){}};function WM(o){return o=o.status,o==="fulfilled"||o==="rejected"}function yh(){}function KM(o,i,c){switch(c=o[c],c===void 0?o.push(i):c!==i&&(i.then(yh,yh),i=c),i.status){case"fulfilled":return i.value;case"rejected":throw o=i.reason,XM(o),o;default:if(typeof i.status=="string")i.then(yh,yh);else{if(o=Un,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=i,o.status="pending",o.then(function(p){if(i.status==="pending"){var v=i;v.status="fulfilled",v.value=p}},function(p){if(i.status==="pending"){var v=i;v.status="rejected",v.reason=p}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw o=i.reason,XM(o),o}throw qd=i,Ud}}var qd=null;function YM(){if(qd===null)throw Error(r(459));var o=qd;return qd=null,o}function XM(o){if(o===Ud||o===vh)throw Error(r(483))}var La=!1;function Kb(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Yb(o,i){o=o.updateQueue,i.updateQueue===o&&(i.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function $a(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function za(o,i,c){var p=o.updateQueue;if(p===null)return null;if(p=p.shared,(wn&2)!==0){var v=p.pending;return v===null?i.next=i:(i.next=v.next,v.next=i),p.pending=i,i=dh(o),$M(o,null,c),i}return uh(o,p,i,c),dh(o)}function Wd(o,i,c){if(i=i.updateQueue,i!==null&&(i=i.shared,(c&4194048)!==0)){var p=i.lanes;p&=o.pendingLanes,c|=p,i.lanes=c,Vr(o,c)}}function Xb(o,i){var c=o.updateQueue,p=o.alternate;if(p!==null&&(p=p.updateQueue,c===p)){var v=null,T=null;if(c=c.firstBaseUpdate,c!==null){do{var U={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};T===null?v=T=U:T=T.next=U,c=c.next}while(c!==null);T===null?v=T=i:T=T.next=i}else v=T=i;c={baseState:p.baseState,firstBaseUpdate:v,lastBaseUpdate:T,shared:p.shared,callbacks:p.callbacks},o.updateQueue=c;return}o=c.lastBaseUpdate,o===null?c.firstBaseUpdate=i:o.next=i,c.lastBaseUpdate=i}var Qb=!1;function Kd(){if(Qb){var o=Wc;if(o!==null)throw o}}function Yd(o,i,c,p){Qb=!1;var v=o.updateQueue;La=!1;var T=v.firstBaseUpdate,U=v.lastBaseUpdate,X=v.shared.pending;if(X!==null){v.shared.pending=null;var le=X,he=le.next;le.next=null,U===null?T=he:U.next=he,U=le;var Ee=o.alternate;Ee!==null&&(Ee=Ee.updateQueue,X=Ee.lastBaseUpdate,X!==U&&(X===null?Ee.firstBaseUpdate=he:X.next=he,Ee.lastBaseUpdate=le))}if(T!==null){var De=v.baseState;U=0,Ee=he=le=null,X=T;do{var ve=X.lane&-536870913,ye=ve!==X.lane;if(ye?(en&ve)===ve:(p&ve)===ve){ve!==0&&ve===qc&&(Qb=!0),Ee!==null&&(Ee=Ee.next={lane:0,tag:X.tag,payload:X.payload,callback:null,next:null});e:{var kt=o,Ot=X;ve=i;var kn=c;switch(Ot.tag){case 1:if(kt=Ot.payload,typeof kt=="function"){De=kt.call(kn,De,ve);break e}De=kt;break e;case 3:kt.flags=kt.flags&-65537|128;case 0:if(kt=Ot.payload,ve=typeof kt=="function"?kt.call(kn,De,ve):kt,ve==null)break e;De=h({},De,ve);break e;case 2:La=!0}}ve=X.callback,ve!==null&&(o.flags|=64,ye&&(o.flags|=8192),ye=v.callbacks,ye===null?v.callbacks=[ve]:ye.push(ve))}else ye={lane:ve,tag:X.tag,payload:X.payload,callback:X.callback,next:null},Ee===null?(he=Ee=ye,le=De):Ee=Ee.next=ye,U|=ve;if(X=X.next,X===null){if(X=v.shared.pending,X===null)break;ye=X,X=ye.next,ye.next=null,v.lastBaseUpdate=ye,v.shared.pending=null}}while(!0);Ee===null&&(le=De),v.baseState=le,v.firstBaseUpdate=he,v.lastBaseUpdate=Ee,T===null&&(v.shared.lanes=0),Ua|=U,o.lanes=U,o.memoizedState=De}}function QM(o,i){if(typeof o!="function")throw Error(r(191,o));o.call(i)}function ZM(o,i){var c=o.callbacks;if(c!==null)for(o.callbacks=null,o=0;o<c.length;o++)QM(c[o],i)}var Kc=G(null),Ch=G(0);function JM(o,i){o=da,Z(Ch,o),Z(Kc,i),da=o|i.baseLanes}function Zb(){Z(Ch,da),Z(Kc,Kc.current)}function Jb(){da=Ch.current,W(Kc),W(Ch)}var Fa=0,Gt=null,On=null,Er=null,Sh=!1,Yc=!1,Gs=!1,wh=0,Xd=0,Xc=null,dH=0;function br(){throw Error(r(321))}function ev(o,i){if(i===null)return!1;for(var c=0;c<i.length&&c<o.length;c++)if(!bt(o[c],i[c]))return!1;return!0}function tv(o,i,c,p,v,T){return Fa=T,Gt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,_.H=o===null||o.memoizedState===null?$T:zT,Gs=!1,T=c(p,v),Gs=!1,Yc&&(T=tT(i,c,p,v)),eT(o),T}function eT(o){_.H=Rh;var i=On!==null&&On.next!==null;if(Fa=0,Er=On=Gt=null,Sh=!1,Xd=0,Xc=null,i)throw Error(r(300));o===null||Xr||(o=o.dependencies,o!==null&&gh(o)&&(Xr=!0))}function tT(o,i,c,p){Gt=o;var v=0;do{if(Yc&&(Xc=null),Xd=0,Yc=!1,25<=v)throw Error(r(301));if(v+=1,Er=On=null,o.updateQueue!=null){var T=o.updateQueue;T.lastEffect=null,T.events=null,T.stores=null,T.memoCache!=null&&(T.memoCache.index=0)}_.H=vH,T=i(c,p)}while(Yc);return T}function fH(){var o=_.H,i=o.useState()[0];return i=typeof i.then=="function"?Qd(i):i,o=o.useState()[0],(On!==null?On.memoizedState:null)!==o&&(Gt.flags|=1024),i}function nv(){var o=wh!==0;return wh=0,o}function rv(o,i,c){i.updateQueue=o.updateQueue,i.flags&=-2053,o.lanes&=~c}function ov(o){if(Sh){for(o=o.memoizedState;o!==null;){var i=o.queue;i!==null&&(i.pending=null),o=o.next}Sh=!1}Fa=0,Er=On=Gt=null,Yc=!1,Xd=wh=0,Xc=null}function ko(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Er===null?Gt.memoizedState=Er=o:Er=Er.next=o,Er}function Pr(){if(On===null){var o=Gt.alternate;o=o!==null?o.memoizedState:null}else o=On.next;var i=Er===null?Gt.memoizedState:Er.next;if(i!==null)Er=i,On=o;else{if(o===null)throw Gt.alternate===null?Error(r(467)):Error(r(310));On=o,o={memoizedState:On.memoizedState,baseState:On.baseState,baseQueue:On.baseQueue,queue:On.queue,next:null},Er===null?Gt.memoizedState=Er=o:Er=Er.next=o}return Er}function lv(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Qd(o){var i=Xd;return Xd+=1,Xc===null&&(Xc=[]),o=KM(Xc,o,i),i=Gt,(Er===null?i.memoizedState:Er.next)===null&&(i=i.alternate,_.H=i===null||i.memoizedState===null?$T:zT),o}function xh(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Qd(o);if(o.$$typeof===O)return ho(o)}throw Error(r(438,String(o)))}function iv(o){var i=null,c=Gt.updateQueue;if(c!==null&&(i=c.memoCache),i==null){var p=Gt.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(i={data:p.data.map(function(v){return v.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),c===null&&(c=lv(),Gt.updateQueue=c),c.memoCache=i,c=i.data[i.index],c===void 0)for(c=i.data[i.index]=Array(o),p=0;p<o;p++)c[p]=H;return i.index++,c}function la(o,i){return typeof i=="function"?i(o):i}function Mh(o){var i=Pr();return av(i,On,o)}function av(o,i,c){var p=o.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=c;var v=o.baseQueue,T=p.pending;if(T!==null){if(v!==null){var U=v.next;v.next=T.next,T.next=U}i.baseQueue=v=T,p.pending=null}if(T=o.baseState,v===null)o.memoizedState=T;else{i=v.next;var X=U=null,le=null,he=i,Ee=!1;do{var De=he.lane&-536870913;if(De!==he.lane?(en&De)===De:(Fa&De)===De){var ve=he.revertLane;if(ve===0)le!==null&&(le=le.next={lane:0,revertLane:0,action:he.action,hasEagerState:he.hasEagerState,eagerState:he.eagerState,next:null}),De===qc&&(Ee=!0);else if((Fa&ve)===ve){he=he.next,ve===qc&&(Ee=!0);continue}else De={lane:0,revertLane:he.revertLane,action:he.action,hasEagerState:he.hasEagerState,eagerState:he.eagerState,next:null},le===null?(X=le=De,U=T):le=le.next=De,Gt.lanes|=ve,Ua|=ve;De=he.action,Gs&&c(T,De),T=he.hasEagerState?he.eagerState:c(T,De)}else ve={lane:De,revertLane:he.revertLane,action:he.action,hasEagerState:he.hasEagerState,eagerState:he.eagerState,next:null},le===null?(X=le=ve,U=T):le=le.next=ve,Gt.lanes|=De,Ua|=De;he=he.next}while(he!==null&&he!==i);if(le===null?U=T:le.next=X,!bt(T,o.memoizedState)&&(Xr=!0,Ee&&(c=Wc,c!==null)))throw c;o.memoizedState=T,o.baseState=U,o.baseQueue=le,p.lastRenderedState=T}return v===null&&(p.lanes=0),[o.memoizedState,p.dispatch]}function sv(o){var i=Pr(),c=i.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=o;var p=c.dispatch,v=c.pending,T=i.memoizedState;if(v!==null){c.pending=null;var U=v=v.next;do T=o(T,U.action),U=U.next;while(U!==v);bt(T,i.memoizedState)||(Xr=!0),i.memoizedState=T,i.baseQueue===null&&(i.baseState=T),c.lastRenderedState=T}return[T,p]}function nT(o,i,c){var p=Gt,v=Pr(),T=un;if(T){if(c===void 0)throw Error(r(407));c=c()}else c=i();var U=!bt((On||v).memoizedState,c);U&&(v.memoizedState=c,Xr=!0),v=v.queue;var X=lT.bind(null,p,v,o);if(Zd(2048,8,X,[o]),v.getSnapshot!==i||U||Er!==null&&Er.memoizedState.tag&1){if(p.flags|=2048,Qc(9,Th(),oT.bind(null,p,v,c,i),null),Un===null)throw Error(r(349));T||(Fa&124)!==0||rT(p,i,c)}return c}function rT(o,i,c){o.flags|=16384,o={getSnapshot:i,value:c},i=Gt.updateQueue,i===null?(i=lv(),Gt.updateQueue=i,i.stores=[o]):(c=i.stores,c===null?i.stores=[o]:c.push(o))}function oT(o,i,c,p){i.value=c,i.getSnapshot=p,iT(i)&&aT(o)}function lT(o,i,c){return c(function(){iT(i)&&aT(o)})}function iT(o){var i=o.getSnapshot;o=o.value;try{var c=i();return!bt(o,c)}catch{return!0}}function aT(o){var i=Bc(o,2);i!==null&&Qo(i,o,2)}function cv(o){var i=ko();if(typeof o=="function"){var c=o;if(o=c(),Gs){mt(!0);try{c()}finally{mt(!1)}}}return i.memoizedState=i.baseState=o,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:o},i}function sT(o,i,c,p){return o.baseState=c,av(o,On,typeof p=="function"?p:la)}function pH(o,i,c,p,v){if(Ph(o))throw Error(r(485));if(o=i.action,o!==null){var T={payload:v,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(U){T.listeners.push(U)}};_.T!==null?c(!0):T.isTransition=!1,p(T),c=i.pending,c===null?(T.next=i.pending=T,cT(i,T)):(T.next=c.next,i.pending=c.next=T)}}function cT(o,i){var c=i.action,p=i.payload,v=o.state;if(i.isTransition){var T=_.T,U={};_.T=U;try{var X=c(v,p),le=_.S;le!==null&&le(U,X),uT(o,i,X)}catch(he){uv(o,i,he)}finally{_.T=T}}else try{T=c(v,p),uT(o,i,T)}catch(he){uv(o,i,he)}}function uT(o,i,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(p){dT(o,i,p)},function(p){return uv(o,i,p)}):dT(o,i,c)}function dT(o,i,c){i.status="fulfilled",i.value=c,fT(i),o.state=c,i=o.pending,i!==null&&(c=i.next,c===i?o.pending=null:(c=c.next,i.next=c,cT(o,c)))}function uv(o,i,c){var p=o.pending;if(o.pending=null,p!==null){p=p.next;do i.status="rejected",i.reason=c,fT(i),i=i.next;while(i!==p)}o.action=null}function fT(o){o=o.listeners;for(var i=0;i<o.length;i++)(0,o[i])()}function pT(o,i){return i}function hT(o,i){if(un){var c=Un.formState;if(c!==null){e:{var p=Gt;if(un){if(fr){t:{for(var v=fr,T=Si;v.nodeType!==8;){if(!T){v=null;break t}if(v=Ql(v.nextSibling),v===null){v=null;break t}}T=v.data,v=T==="F!"||T==="F"?v:null}if(v){fr=Ql(v.nextSibling),p=v.data==="F!";break e}}Hs(p)}p=!1}p&&(i=c[0])}}return c=ko(),c.memoizedState=c.baseState=i,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pT,lastRenderedState:i},c.queue=p,c=_T.bind(null,Gt,p),p.dispatch=c,p=cv(!1),T=gv.bind(null,Gt,!1,p.queue),p=ko(),v={state:i,dispatch:null,action:o,pending:null},p.queue=v,c=pH.bind(null,Gt,v,T,c),v.dispatch=c,p.memoizedState=o,[i,c,!1]}function gT(o){var i=Pr();return mT(i,On,o)}function mT(o,i,c){if(i=av(o,i,pT)[0],o=Mh(la)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var p=Qd(i)}catch(U){throw U===Ud?vh:U}else p=i;i=Pr();var v=i.queue,T=v.dispatch;return c!==i.memoizedState&&(Gt.flags|=2048,Qc(9,Th(),hH.bind(null,v,c),null)),[p,T,o]}function hH(o,i){o.action=i}function bT(o){var i=Pr(),c=On;if(c!==null)return mT(i,c,o);Pr(),i=i.memoizedState,c=Pr();var p=c.queue.dispatch;return c.memoizedState=o,[i,p,!1]}function Qc(o,i,c,p){return o={tag:o,create:c,deps:p,inst:i,next:null},i=Gt.updateQueue,i===null&&(i=lv(),Gt.updateQueue=i),c=i.lastEffect,c===null?i.lastEffect=o.next=o:(p=c.next,c.next=o,o.next=p,i.lastEffect=o),o}function Th(){return{destroy:void 0,resource:void 0}}function vT(){return Pr().memoizedState}function Eh(o,i,c,p){var v=ko();p=p===void 0?null:p,Gt.flags|=o,v.memoizedState=Qc(1|i,Th(),c,p)}function Zd(o,i,c,p){var v=Pr();p=p===void 0?null:p;var T=v.memoizedState.inst;On!==null&&p!==null&&ev(p,On.memoizedState.deps)?v.memoizedState=Qc(i,T,c,p):(Gt.flags|=o,v.memoizedState=Qc(1|i,T,c,p))}function yT(o,i){Eh(8390656,8,o,i)}function CT(o,i){Zd(2048,8,o,i)}function ST(o,i){return Zd(4,2,o,i)}function wT(o,i){return Zd(4,4,o,i)}function xT(o,i){if(typeof i=="function"){o=o();var c=i(o);return function(){typeof c=="function"?c():i(null)}}if(i!=null)return o=o(),i.current=o,function(){i.current=null}}function MT(o,i,c){c=c!=null?c.concat([o]):null,Zd(4,4,xT.bind(null,i,o),c)}function dv(){}function TT(o,i){var c=Pr();i=i===void 0?null:i;var p=c.memoizedState;return i!==null&&ev(i,p[1])?p[0]:(c.memoizedState=[o,i],o)}function ET(o,i){var c=Pr();i=i===void 0?null:i;var p=c.memoizedState;if(i!==null&&ev(i,p[1]))return p[0];if(p=o(),Gs){mt(!0);try{o()}finally{mt(!1)}}return c.memoizedState=[p,i],p}function fv(o,i,c){return c===void 0||(Fa&1073741824)!==0?o.memoizedState=i:(o.memoizedState=c,o=AE(),Gt.lanes|=o,Ua|=o,c)}function PT(o,i,c,p){return bt(c,i)?c:Kc.current!==null?(o=fv(o,c,p),bt(o,i)||(Xr=!0),o):(Fa&42)===0?(Xr=!0,o.memoizedState=c):(o=AE(),Gt.lanes|=o,Ua|=o,i)}function RT(o,i,c,p,v){var T=B.p;B.p=T!==0&&8>T?T:8;var U=_.T,X={};_.T=X,gv(o,!1,i,c);try{var le=v(),he=_.S;if(he!==null&&he(X,le),le!==null&&typeof le=="object"&&typeof le.then=="function"){var Ee=uH(le,p);Jd(o,i,Ee,Xo(o))}else Jd(o,i,p,Xo(o))}catch(De){Jd(o,i,{then:function(){},status:"rejected",reason:De},Xo())}finally{B.p=T,_.T=U}}function gH(){}function pv(o,i,c,p){if(o.tag!==5)throw Error(r(476));var v=AT(o).queue;RT(o,v,i,J,c===null?gH:function(){return OT(o),c(p)})}function AT(o){var i=o.memoizedState;if(i!==null)return i;i={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:J},next:null};var c={};return i.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:c},next:null},o.memoizedState=i,o=o.alternate,o!==null&&(o.memoizedState=i),i}function OT(o){var i=AT(o).next.queue;Jd(o,i,{},Xo())}function hv(){return ho(vf)}function IT(){return Pr().memoizedState}function kT(){return Pr().memoizedState}function mH(o){for(var i=o.return;i!==null;){switch(i.tag){case 24:case 3:var c=Xo();o=$a(c);var p=za(i,o,c);p!==null&&(Qo(p,i,c),Wd(p,i,c)),i={cache:Vb()},o.payload=i;return}i=i.return}}function bH(o,i,c){var p=Xo();c={lane:p,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},Ph(o)?DT(i,c):(c=Db(o,i,c,p),c!==null&&(Qo(c,o,p),LT(c,i,p)))}function _T(o,i,c){var p=Xo();Jd(o,i,c,p)}function Jd(o,i,c,p){var v={lane:p,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(Ph(o))DT(i,v);else{var T=o.alternate;if(o.lanes===0&&(T===null||T.lanes===0)&&(T=i.lastRenderedReducer,T!==null))try{var U=i.lastRenderedState,X=T(U,c);if(v.hasEagerState=!0,v.eagerState=X,bt(X,U))return uh(o,i,v,0),Un===null&&ch(),!1}catch{}finally{}if(c=Db(o,i,v,p),c!==null)return Qo(c,o,p),LT(c,i,p),!0}return!1}function gv(o,i,c,p){if(p={lane:2,revertLane:Wv(),action:p,hasEagerState:!1,eagerState:null,next:null},Ph(o)){if(i)throw Error(r(479))}else i=Db(o,c,p,2),i!==null&&Qo(i,o,2)}function Ph(o){var i=o.alternate;return o===Gt||i!==null&&i===Gt}function DT(o,i){Yc=Sh=!0;var c=o.pending;c===null?i.next=i:(i.next=c.next,c.next=i),o.pending=i}function LT(o,i,c){if((c&4194048)!==0){var p=i.lanes;p&=o.pendingLanes,c|=p,i.lanes=c,Vr(o,c)}}var Rh={readContext:ho,use:xh,useCallback:br,useContext:br,useEffect:br,useImperativeHandle:br,useLayoutEffect:br,useInsertionEffect:br,useMemo:br,useReducer:br,useRef:br,useState:br,useDebugValue:br,useDeferredValue:br,useTransition:br,useSyncExternalStore:br,useId:br,useHostTransitionStatus:br,useFormState:br,useActionState:br,useOptimistic:br,useMemoCache:br,useCacheRefresh:br},$T={readContext:ho,use:xh,useCallback:function(o,i){return ko().memoizedState=[o,i===void 0?null:i],o},useContext:ho,useEffect:yT,useImperativeHandle:function(o,i,c){c=c!=null?c.concat([o]):null,Eh(4194308,4,xT.bind(null,i,o),c)},useLayoutEffect:function(o,i){return Eh(4194308,4,o,i)},useInsertionEffect:function(o,i){Eh(4,2,o,i)},useMemo:function(o,i){var c=ko();i=i===void 0?null:i;var p=o();if(Gs){mt(!0);try{o()}finally{mt(!1)}}return c.memoizedState=[p,i],p},useReducer:function(o,i,c){var p=ko();if(c!==void 0){var v=c(i);if(Gs){mt(!0);try{c(i)}finally{mt(!1)}}}else v=i;return p.memoizedState=p.baseState=v,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:v},p.queue=o,o=o.dispatch=bH.bind(null,Gt,o),[p.memoizedState,o]},useRef:function(o){var i=ko();return o={current:o},i.memoizedState=o},useState:function(o){o=cv(o);var i=o.queue,c=_T.bind(null,Gt,i);return i.dispatch=c,[o.memoizedState,c]},useDebugValue:dv,useDeferredValue:function(o,i){var c=ko();return fv(c,o,i)},useTransition:function(){var o=cv(!1);return o=RT.bind(null,Gt,o.queue,!0,!1),ko().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,i,c){var p=Gt,v=ko();if(un){if(c===void 0)throw Error(r(407));c=c()}else{if(c=i(),Un===null)throw Error(r(349));(en&124)!==0||rT(p,i,c)}v.memoizedState=c;var T={value:c,getSnapshot:i};return v.queue=T,yT(lT.bind(null,p,T,o),[o]),p.flags|=2048,Qc(9,Th(),oT.bind(null,p,T,c,i),null),c},useId:function(){var o=ko(),i=Un.identifierPrefix;if(un){var c=na,p=ta;c=(p&~(1<<32-_e(p)-1)).toString(32)+c,i="«"+i+"R"+c,c=wh++,0<c&&(i+="H"+c.toString(32)),i+="»"}else c=dH++,i="«"+i+"r"+c.toString(32)+"»";return o.memoizedState=i},useHostTransitionStatus:hv,useFormState:hT,useActionState:hT,useOptimistic:function(o){var i=ko();i.memoizedState=i.baseState=o;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=c,i=gv.bind(null,Gt,!0,c),c.dispatch=i,[o,i]},useMemoCache:iv,useCacheRefresh:function(){return ko().memoizedState=mH.bind(null,Gt)}},zT={readContext:ho,use:xh,useCallback:TT,useContext:ho,useEffect:CT,useImperativeHandle:MT,useInsertionEffect:ST,useLayoutEffect:wT,useMemo:ET,useReducer:Mh,useRef:vT,useState:function(){return Mh(la)},useDebugValue:dv,useDeferredValue:function(o,i){var c=Pr();return PT(c,On.memoizedState,o,i)},useTransition:function(){var o=Mh(la)[0],i=Pr().memoizedState;return[typeof o=="boolean"?o:Qd(o),i]},useSyncExternalStore:nT,useId:IT,useHostTransitionStatus:hv,useFormState:gT,useActionState:gT,useOptimistic:function(o,i){var c=Pr();return sT(c,On,o,i)},useMemoCache:iv,useCacheRefresh:kT},vH={readContext:ho,use:xh,useCallback:TT,useContext:ho,useEffect:CT,useImperativeHandle:MT,useInsertionEffect:ST,useLayoutEffect:wT,useMemo:ET,useReducer:sv,useRef:vT,useState:function(){return sv(la)},useDebugValue:dv,useDeferredValue:function(o,i){var c=Pr();return On===null?fv(c,o,i):PT(c,On.memoizedState,o,i)},useTransition:function(){var o=sv(la)[0],i=Pr().memoizedState;return[typeof o=="boolean"?o:Qd(o),i]},useSyncExternalStore:nT,useId:IT,useHostTransitionStatus:hv,useFormState:bT,useActionState:bT,useOptimistic:function(o,i){var c=Pr();return On!==null?sT(c,On,o,i):(c.baseState=o,[o,c.queue.dispatch])},useMemoCache:iv,useCacheRefresh:kT},Zc=null,ef=0;function Ah(o){var i=ef;return ef+=1,Zc===null&&(Zc=[]),KM(Zc,o,i)}function tf(o,i){i=i.props.ref,o.ref=i!==void 0?i:null}function Oh(o,i){throw i.$$typeof===g?Error(r(525)):(o=Object.prototype.toString.call(i),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":o)))}function FT(o){var i=o._init;return i(o._payload)}function HT(o){function i(ue,ae){if(o){var fe=ue.deletions;fe===null?(ue.deletions=[ae],ue.flags|=16):fe.push(ae)}}function c(ue,ae){if(!o)return null;for(;ae!==null;)i(ue,ae),ae=ae.sibling;return null}function p(ue){for(var ae=new Map;ue!==null;)ue.key!==null?ae.set(ue.key,ue):ae.set(ue.index,ue),ue=ue.sibling;return ae}function v(ue,ae){return ue=ea(ue,ae),ue.index=0,ue.sibling=null,ue}function T(ue,ae,fe){return ue.index=fe,o?(fe=ue.alternate,fe!==null?(fe=fe.index,fe<ae?(ue.flags|=67108866,ae):fe):(ue.flags|=67108866,ae)):(ue.flags|=1048576,ae)}function U(ue){return o&&ue.alternate===null&&(ue.flags|=67108866),ue}function X(ue,ae,fe,Ie){return ae===null||ae.tag!==6?(ae=$b(fe,ue.mode,Ie),ae.return=ue,ae):(ae=v(ae,fe),ae.return=ue,ae)}function le(ue,ae,fe,Ie){var dt=fe.type;return dt===C?Ee(ue,ae,fe.props.children,Ie,fe.key):ae!==null&&(ae.elementType===dt||typeof dt=="object"&&dt!==null&&dt.$$typeof===k&&FT(dt)===ae.type)?(ae=v(ae,fe.props),tf(ae,fe),ae.return=ue,ae):(ae=fh(fe.type,fe.key,fe.props,null,ue.mode,Ie),tf(ae,fe),ae.return=ue,ae)}function he(ue,ae,fe,Ie){return ae===null||ae.tag!==4||ae.stateNode.containerInfo!==fe.containerInfo||ae.stateNode.implementation!==fe.implementation?(ae=zb(fe,ue.mode,Ie),ae.return=ue,ae):(ae=v(ae,fe.children||[]),ae.return=ue,ae)}function Ee(ue,ae,fe,Ie,dt){return ae===null||ae.tag!==7?(ae=Ls(fe,ue.mode,Ie,dt),ae.return=ue,ae):(ae=v(ae,fe),ae.return=ue,ae)}function De(ue,ae,fe){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return ae=$b(""+ae,ue.mode,fe),ae.return=ue,ae;if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case b:return fe=fh(ae.type,ae.key,ae.props,null,ue.mode,fe),tf(fe,ae),fe.return=ue,fe;case y:return ae=zb(ae,ue.mode,fe),ae.return=ue,ae;case k:var Ie=ae._init;return ae=Ie(ae._payload),De(ue,ae,fe)}if(F(ae)||I(ae))return ae=Ls(ae,ue.mode,fe,null),ae.return=ue,ae;if(typeof ae.then=="function")return De(ue,Ah(ae),fe);if(ae.$$typeof===O)return De(ue,mh(ue,ae),fe);Oh(ue,ae)}return null}function ve(ue,ae,fe,Ie){var dt=ae!==null?ae.key:null;if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return dt!==null?null:X(ue,ae,""+fe,Ie);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case b:return fe.key===dt?le(ue,ae,fe,Ie):null;case y:return fe.key===dt?he(ue,ae,fe,Ie):null;case k:return dt=fe._init,fe=dt(fe._payload),ve(ue,ae,fe,Ie)}if(F(fe)||I(fe))return dt!==null?null:Ee(ue,ae,fe,Ie,null);if(typeof fe.then=="function")return ve(ue,ae,Ah(fe),Ie);if(fe.$$typeof===O)return ve(ue,ae,mh(ue,fe),Ie);Oh(ue,fe)}return null}function ye(ue,ae,fe,Ie,dt){if(typeof Ie=="string"&&Ie!==""||typeof Ie=="number"||typeof Ie=="bigint")return ue=ue.get(fe)||null,X(ae,ue,""+Ie,dt);if(typeof Ie=="object"&&Ie!==null){switch(Ie.$$typeof){case b:return ue=ue.get(Ie.key===null?fe:Ie.key)||null,le(ae,ue,Ie,dt);case y:return ue=ue.get(Ie.key===null?fe:Ie.key)||null,he(ae,ue,Ie,dt);case k:var Vt=Ie._init;return Ie=Vt(Ie._payload),ye(ue,ae,fe,Ie,dt)}if(F(Ie)||I(Ie))return ue=ue.get(fe)||null,Ee(ae,ue,Ie,dt,null);if(typeof Ie.then=="function")return ye(ue,ae,fe,Ah(Ie),dt);if(Ie.$$typeof===O)return ye(ue,ae,fe,mh(ae,Ie),dt);Oh(ae,Ie)}return null}function kt(ue,ae,fe,Ie){for(var dt=null,Vt=null,Ct=ae,It=ae=0,Zr=null;Ct!==null&&It<fe.length;It++){Ct.index>It?(Zr=Ct,Ct=null):Zr=Ct.sibling;var an=ve(ue,Ct,fe[It],Ie);if(an===null){Ct===null&&(Ct=Zr);break}o&&Ct&&an.alternate===null&&i(ue,Ct),ae=T(an,ae,It),Vt===null?dt=an:Vt.sibling=an,Vt=an,Ct=Zr}if(It===fe.length)return c(ue,Ct),un&&zs(ue,It),dt;if(Ct===null){for(;It<fe.length;It++)Ct=De(ue,fe[It],Ie),Ct!==null&&(ae=T(Ct,ae,It),Vt===null?dt=Ct:Vt.sibling=Ct,Vt=Ct);return un&&zs(ue,It),dt}for(Ct=p(Ct);It<fe.length;It++)Zr=ye(Ct,ue,It,fe[It],Ie),Zr!==null&&(o&&Zr.alternate!==null&&Ct.delete(Zr.key===null?It:Zr.key),ae=T(Zr,ae,It),Vt===null?dt=Zr:Vt.sibling=Zr,Vt=Zr);return o&&Ct.forEach(function(es){return i(ue,es)}),un&&zs(ue,It),dt}function Ot(ue,ae,fe,Ie){if(fe==null)throw Error(r(151));for(var dt=null,Vt=null,Ct=ae,It=ae=0,Zr=null,an=fe.next();Ct!==null&&!an.done;It++,an=fe.next()){Ct.index>It?(Zr=Ct,Ct=null):Zr=Ct.sibling;var es=ve(ue,Ct,an.value,Ie);if(es===null){Ct===null&&(Ct=Zr);break}o&&Ct&&es.alternate===null&&i(ue,Ct),ae=T(es,ae,It),Vt===null?dt=es:Vt.sibling=es,Vt=es,Ct=Zr}if(an.done)return c(ue,Ct),un&&zs(ue,It),dt;if(Ct===null){for(;!an.done;It++,an=fe.next())an=De(ue,an.value,Ie),an!==null&&(ae=T(an,ae,It),Vt===null?dt=an:Vt.sibling=an,Vt=an);return un&&zs(ue,It),dt}for(Ct=p(Ct);!an.done;It++,an=fe.next())an=ye(Ct,ue,It,an.value,Ie),an!==null&&(o&&an.alternate!==null&&Ct.delete(an.key===null?It:an.key),ae=T(an,ae,It),Vt===null?dt=an:Vt.sibling=an,Vt=an);return o&&Ct.forEach(function(yN){return i(ue,yN)}),un&&zs(ue,It),dt}function kn(ue,ae,fe,Ie){if(typeof fe=="object"&&fe!==null&&fe.type===C&&fe.key===null&&(fe=fe.props.children),typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case b:e:{for(var dt=fe.key;ae!==null;){if(ae.key===dt){if(dt=fe.type,dt===C){if(ae.tag===7){c(ue,ae.sibling),Ie=v(ae,fe.props.children),Ie.return=ue,ue=Ie;break e}}else if(ae.elementType===dt||typeof dt=="object"&&dt!==null&&dt.$$typeof===k&&FT(dt)===ae.type){c(ue,ae.sibling),Ie=v(ae,fe.props),tf(Ie,fe),Ie.return=ue,ue=Ie;break e}c(ue,ae);break}else i(ue,ae);ae=ae.sibling}fe.type===C?(Ie=Ls(fe.props.children,ue.mode,Ie,fe.key),Ie.return=ue,ue=Ie):(Ie=fh(fe.type,fe.key,fe.props,null,ue.mode,Ie),tf(Ie,fe),Ie.return=ue,ue=Ie)}return U(ue);case y:e:{for(dt=fe.key;ae!==null;){if(ae.key===dt)if(ae.tag===4&&ae.stateNode.containerInfo===fe.containerInfo&&ae.stateNode.implementation===fe.implementation){c(ue,ae.sibling),Ie=v(ae,fe.children||[]),Ie.return=ue,ue=Ie;break e}else{c(ue,ae);break}else i(ue,ae);ae=ae.sibling}Ie=zb(fe,ue.mode,Ie),Ie.return=ue,ue=Ie}return U(ue);case k:return dt=fe._init,fe=dt(fe._payload),kn(ue,ae,fe,Ie)}if(F(fe))return kt(ue,ae,fe,Ie);if(I(fe)){if(dt=I(fe),typeof dt!="function")throw Error(r(150));return fe=dt.call(fe),Ot(ue,ae,fe,Ie)}if(typeof fe.then=="function")return kn(ue,ae,Ah(fe),Ie);if(fe.$$typeof===O)return kn(ue,ae,mh(ue,fe),Ie);Oh(ue,fe)}return typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint"?(fe=""+fe,ae!==null&&ae.tag===6?(c(ue,ae.sibling),Ie=v(ae,fe),Ie.return=ue,ue=Ie):(c(ue,ae),Ie=$b(fe,ue.mode,Ie),Ie.return=ue,ue=Ie),U(ue)):c(ue,ae)}return function(ue,ae,fe,Ie){try{ef=0;var dt=kn(ue,ae,fe,Ie);return Zc=null,dt}catch(Ct){if(Ct===Ud||Ct===vh)throw Ct;var Vt=qo(29,Ct,null,ue.mode);return Vt.lanes=Ie,Vt.return=ue,Vt}finally{}}}var Jc=HT(!0),NT=HT(!1),yl=G(null),wi=null;function Ha(o){var i=o.alternate;Z(Dr,Dr.current&1),Z(yl,o),wi===null&&(i===null||Kc.current!==null||i.memoizedState!==null)&&(wi=o)}function jT(o){if(o.tag===22){if(Z(Dr,Dr.current),Z(yl,o),wi===null){var i=o.alternate;i!==null&&i.memoizedState!==null&&(wi=o)}}else Na()}function Na(){Z(Dr,Dr.current),Z(yl,yl.current)}function ia(o){W(yl),wi===o&&(wi=null),W(Dr)}var Dr=G(0);function Ih(o){for(var i=o;i!==null;){if(i.tag===13){var c=i.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||ly(c)))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===o)break;for(;i.sibling===null;){if(i.return===null||i.return===o)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function mv(o,i,c,p){i=o.memoizedState,c=c(p,i),c=c==null?i:h({},i,c),o.memoizedState=c,o.lanes===0&&(o.updateQueue.baseState=c)}var bv={enqueueSetState:function(o,i,c){o=o._reactInternals;var p=Xo(),v=$a(p);v.payload=i,c!=null&&(v.callback=c),i=za(o,v,p),i!==null&&(Qo(i,o,p),Wd(i,o,p))},enqueueReplaceState:function(o,i,c){o=o._reactInternals;var p=Xo(),v=$a(p);v.tag=1,v.payload=i,c!=null&&(v.callback=c),i=za(o,v,p),i!==null&&(Qo(i,o,p),Wd(i,o,p))},enqueueForceUpdate:function(o,i){o=o._reactInternals;var c=Xo(),p=$a(c);p.tag=2,i!=null&&(p.callback=i),i=za(o,p,c),i!==null&&(Qo(i,o,c),Wd(i,o,c))}};function BT(o,i,c,p,v,T,U){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(p,T,U):i.prototype&&i.prototype.isPureReactComponent?!Ut(c,p)||!Ut(v,T):!0}function GT(o,i,c,p){o=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(c,p),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(c,p),i.state!==o&&bv.enqueueReplaceState(i,i.state,null)}function Vs(o,i){var c=i;if("ref"in i){c={};for(var p in i)p!=="ref"&&(c[p]=i[p])}if(o=o.defaultProps){c===i&&(c=h({},c));for(var v in o)c[v]===void 0&&(c[v]=o[v])}return c}var kh=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)};function VT(o){kh(o)}function UT(o){console.error(o)}function qT(o){kh(o)}function _h(o,i){try{var c=o.onUncaughtError;c(i.value,{componentStack:i.stack})}catch(p){setTimeout(function(){throw p})}}function WT(o,i,c){try{var p=o.onCaughtError;p(c.value,{componentStack:c.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function vv(o,i,c){return c=$a(c),c.tag=3,c.payload={element:null},c.callback=function(){_h(o,i)},c}function KT(o){return o=$a(o),o.tag=3,o}function YT(o,i,c,p){var v=c.type.getDerivedStateFromError;if(typeof v=="function"){var T=p.value;o.payload=function(){return v(T)},o.callback=function(){WT(i,c,p)}}var U=c.stateNode;U!==null&&typeof U.componentDidCatch=="function"&&(o.callback=function(){WT(i,c,p),typeof v!="function"&&(qa===null?qa=new Set([this]):qa.add(this));var X=p.stack;this.componentDidCatch(p.value,{componentStack:X!==null?X:""})})}function yH(o,i,c,p,v){if(c.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(i=c.alternate,i!==null&&Bd(i,c,v,!0),c=yl.current,c!==null){switch(c.tag){case 13:return wi===null?Bv():c.alternate===null&&pr===0&&(pr=3),c.flags&=-257,c.flags|=65536,c.lanes=v,p===Wb?c.flags|=16384:(i=c.updateQueue,i===null?c.updateQueue=new Set([p]):i.add(p),Vv(o,p,v)),!1;case 22:return c.flags|=65536,p===Wb?c.flags|=16384:(i=c.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([p])},c.updateQueue=i):(c=i.retryQueue,c===null?i.retryQueue=new Set([p]):c.add(p)),Vv(o,p,v)),!1}throw Error(r(435,c.tag))}return Vv(o,p,v),Bv(),!1}if(un)return i=yl.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=v,p!==Nb&&(o=Error(r(422),{cause:p}),jd(gl(o,c)))):(p!==Nb&&(i=Error(r(423),{cause:p}),jd(gl(i,c))),o=o.current.alternate,o.flags|=65536,v&=-v,o.lanes|=v,p=gl(p,c),v=vv(o.stateNode,p,v),Xb(o,v),pr!==4&&(pr=2)),!1;var T=Error(r(520),{cause:p});if(T=gl(T,c),cf===null?cf=[T]:cf.push(T),pr!==4&&(pr=2),i===null)return!0;p=gl(p,c),c=i;do{switch(c.tag){case 3:return c.flags|=65536,o=v&-v,c.lanes|=o,o=vv(c.stateNode,p,o),Xb(c,o),!1;case 1:if(i=c.type,T=c.stateNode,(c.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(qa===null||!qa.has(T))))return c.flags|=65536,v&=-v,c.lanes|=v,v=KT(v),YT(v,o,c,p),Xb(c,v),!1}c=c.return}while(c!==null);return!1}var XT=Error(r(461)),Xr=!1;function oo(o,i,c,p){i.child=o===null?NT(i,null,c,p):Jc(i,o.child,c,p)}function QT(o,i,c,p,v){c=c.render;var T=i.ref;if("ref"in p){var U={};for(var X in p)X!=="ref"&&(U[X]=p[X])}else U=p;return js(i),p=tv(o,i,c,U,T,v),X=nv(),o!==null&&!Xr?(rv(o,i,v),aa(o,i,v)):(un&&X&&Fb(i),i.flags|=1,oo(o,i,p,v),i.child)}function ZT(o,i,c,p,v){if(o===null){var T=c.type;return typeof T=="function"&&!Lb(T)&&T.defaultProps===void 0&&c.compare===null?(i.tag=15,i.type=T,JT(o,i,T,p,v)):(o=fh(c.type,null,p,i,i.mode,v),o.ref=i.ref,o.return=i,i.child=o)}if(T=o.child,!Ev(o,v)){var U=T.memoizedProps;if(c=c.compare,c=c!==null?c:Ut,c(U,p)&&o.ref===i.ref)return aa(o,i,v)}return i.flags|=1,o=ea(T,p),o.ref=i.ref,o.return=i,i.child=o}function JT(o,i,c,p,v){if(o!==null){var T=o.memoizedProps;if(Ut(T,p)&&o.ref===i.ref)if(Xr=!1,i.pendingProps=p=T,Ev(o,v))(o.flags&131072)!==0&&(Xr=!0);else return i.lanes=o.lanes,aa(o,i,v)}return yv(o,i,c,p,v)}function eE(o,i,c){var p=i.pendingProps,v=p.children,T=o!==null?o.memoizedState:null;if(p.mode==="hidden"){if((i.flags&128)!==0){if(p=T!==null?T.baseLanes|c:c,o!==null){for(v=i.child=o.child,T=0;v!==null;)T=T|v.lanes|v.childLanes,v=v.sibling;i.childLanes=T&~p}else i.childLanes=0,i.child=null;return tE(o,i,p,c)}if((c&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},o!==null&&bh(i,T!==null?T.cachePool:null),T!==null?JM(i,T):Zb(),jT(i);else return i.lanes=i.childLanes=536870912,tE(o,i,T!==null?T.baseLanes|c:c,c)}else T!==null?(bh(i,T.cachePool),JM(i,T),Na(),i.memoizedState=null):(o!==null&&bh(i,null),Zb(),Na());return oo(o,i,v,c),i.child}function tE(o,i,c,p){var v=qb();return v=v===null?null:{parent:_r._currentValue,pool:v},i.memoizedState={baseLanes:c,cachePool:v},o!==null&&bh(i,null),Zb(),jT(i),o!==null&&Bd(o,i,p,!0),null}function Dh(o,i){var c=i.ref;if(c===null)o!==null&&o.ref!==null&&(i.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(o===null||o.ref!==c)&&(i.flags|=4194816)}}function yv(o,i,c,p,v){return js(i),c=tv(o,i,c,p,void 0,v),p=nv(),o!==null&&!Xr?(rv(o,i,v),aa(o,i,v)):(un&&p&&Fb(i),i.flags|=1,oo(o,i,c,v),i.child)}function nE(o,i,c,p,v,T){return js(i),i.updateQueue=null,c=tT(i,p,c,v),eT(o),p=nv(),o!==null&&!Xr?(rv(o,i,T),aa(o,i,T)):(un&&p&&Fb(i),i.flags|=1,oo(o,i,c,T),i.child)}function rE(o,i,c,p,v){if(js(i),i.stateNode===null){var T=Gc,U=c.contextType;typeof U=="object"&&U!==null&&(T=ho(U)),T=new c(p,T),i.memoizedState=T.state!==null&&T.state!==void 0?T.state:null,T.updater=bv,i.stateNode=T,T._reactInternals=i,T=i.stateNode,T.props=p,T.state=i.memoizedState,T.refs={},Kb(i),U=c.contextType,T.context=typeof U=="object"&&U!==null?ho(U):Gc,T.state=i.memoizedState,U=c.getDerivedStateFromProps,typeof U=="function"&&(mv(i,c,U,p),T.state=i.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof T.getSnapshotBeforeUpdate=="function"||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(U=T.state,typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount(),U!==T.state&&bv.enqueueReplaceState(T,T.state,null),Yd(i,p,T,v),Kd(),T.state=i.memoizedState),typeof T.componentDidMount=="function"&&(i.flags|=4194308),p=!0}else if(o===null){T=i.stateNode;var X=i.memoizedProps,le=Vs(c,X);T.props=le;var he=T.context,Ee=c.contextType;U=Gc,typeof Ee=="object"&&Ee!==null&&(U=ho(Ee));var De=c.getDerivedStateFromProps;Ee=typeof De=="function"||typeof T.getSnapshotBeforeUpdate=="function",X=i.pendingProps!==X,Ee||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(X||he!==U)&&GT(i,T,p,U),La=!1;var ve=i.memoizedState;T.state=ve,Yd(i,p,T,v),Kd(),he=i.memoizedState,X||ve!==he||La?(typeof De=="function"&&(mv(i,c,De,p),he=i.memoizedState),(le=La||BT(i,c,le,p,ve,he,U))?(Ee||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount()),typeof T.componentDidMount=="function"&&(i.flags|=4194308)):(typeof T.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=p,i.memoizedState=he),T.props=p,T.state=he,T.context=U,p=le):(typeof T.componentDidMount=="function"&&(i.flags|=4194308),p=!1)}else{T=i.stateNode,Yb(o,i),U=i.memoizedProps,Ee=Vs(c,U),T.props=Ee,De=i.pendingProps,ve=T.context,he=c.contextType,le=Gc,typeof he=="object"&&he!==null&&(le=ho(he)),X=c.getDerivedStateFromProps,(he=typeof X=="function"||typeof T.getSnapshotBeforeUpdate=="function")||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(U!==De||ve!==le)&&GT(i,T,p,le),La=!1,ve=i.memoizedState,T.state=ve,Yd(i,p,T,v),Kd();var ye=i.memoizedState;U!==De||ve!==ye||La||o!==null&&o.dependencies!==null&&gh(o.dependencies)?(typeof X=="function"&&(mv(i,c,X,p),ye=i.memoizedState),(Ee=La||BT(i,c,Ee,p,ve,ye,le)||o!==null&&o.dependencies!==null&&gh(o.dependencies))?(he||typeof T.UNSAFE_componentWillUpdate!="function"&&typeof T.componentWillUpdate!="function"||(typeof T.componentWillUpdate=="function"&&T.componentWillUpdate(p,ye,le),typeof T.UNSAFE_componentWillUpdate=="function"&&T.UNSAFE_componentWillUpdate(p,ye,le)),typeof T.componentDidUpdate=="function"&&(i.flags|=4),typeof T.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof T.componentDidUpdate!="function"||U===o.memoizedProps&&ve===o.memoizedState||(i.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||U===o.memoizedProps&&ve===o.memoizedState||(i.flags|=1024),i.memoizedProps=p,i.memoizedState=ye),T.props=p,T.state=ye,T.context=le,p=Ee):(typeof T.componentDidUpdate!="function"||U===o.memoizedProps&&ve===o.memoizedState||(i.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||U===o.memoizedProps&&ve===o.memoizedState||(i.flags|=1024),p=!1)}return T=p,Dh(o,i),p=(i.flags&128)!==0,T||p?(T=i.stateNode,c=p&&typeof c.getDerivedStateFromError!="function"?null:T.render(),i.flags|=1,o!==null&&p?(i.child=Jc(i,o.child,null,v),i.child=Jc(i,null,c,v)):oo(o,i,c,v),i.memoizedState=T.state,o=i.child):o=aa(o,i,v),o}function oE(o,i,c,p){return Nd(),i.flags|=256,oo(o,i,c,p),i.child}var Cv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Sv(o){return{baseLanes:o,cachePool:UM()}}function wv(o,i,c){return o=o!==null?o.childLanes&~c:0,i&&(o|=Cl),o}function lE(o,i,c){var p=i.pendingProps,v=!1,T=(i.flags&128)!==0,U;if((U=T)||(U=o!==null&&o.memoizedState===null?!1:(Dr.current&2)!==0),U&&(v=!0,i.flags&=-129),U=(i.flags&32)!==0,i.flags&=-33,o===null){if(un){if(v?Ha(i):Na(),un){var X=fr,le;if(le=X){e:{for(le=X,X=Si;le.nodeType!==8;){if(!X){X=null;break e}if(le=Ql(le.nextSibling),le===null){X=null;break e}}X=le}X!==null?(i.memoizedState={dehydrated:X,treeContext:$s!==null?{id:ta,overflow:na}:null,retryLane:536870912,hydrationErrors:null},le=qo(18,null,null,0),le.stateNode=X,le.return=i,i.child=le,wo=i,fr=null,le=!0):le=!1}le||Hs(i)}if(X=i.memoizedState,X!==null&&(X=X.dehydrated,X!==null))return ly(X)?i.lanes=32:i.lanes=536870912,null;ia(i)}return X=p.children,p=p.fallback,v?(Na(),v=i.mode,X=Lh({mode:"hidden",children:X},v),p=Ls(p,v,c,null),X.return=i,p.return=i,X.sibling=p,i.child=X,v=i.child,v.memoizedState=Sv(c),v.childLanes=wv(o,U,c),i.memoizedState=Cv,p):(Ha(i),xv(i,X))}if(le=o.memoizedState,le!==null&&(X=le.dehydrated,X!==null)){if(T)i.flags&256?(Ha(i),i.flags&=-257,i=Mv(o,i,c)):i.memoizedState!==null?(Na(),i.child=o.child,i.flags|=128,i=null):(Na(),v=p.fallback,X=i.mode,p=Lh({mode:"visible",children:p.children},X),v=Ls(v,X,c,null),v.flags|=2,p.return=i,v.return=i,p.sibling=v,i.child=p,Jc(i,o.child,null,c),p=i.child,p.memoizedState=Sv(c),p.childLanes=wv(o,U,c),i.memoizedState=Cv,i=v);else if(Ha(i),ly(X)){if(U=X.nextSibling&&X.nextSibling.dataset,U)var he=U.dgst;U=he,p=Error(r(419)),p.stack="",p.digest=U,jd({value:p,source:null,stack:null}),i=Mv(o,i,c)}else if(Xr||Bd(o,i,c,!1),U=(c&o.childLanes)!==0,Xr||U){if(U=Un,U!==null&&(p=c&-c,p=(p&42)!==0?1:Ur(p),p=(p&(U.suspendedLanes|c))!==0?0:p,p!==0&&p!==le.retryLane))throw le.retryLane=p,Bc(o,p),Qo(U,o,p),XT;X.data==="$?"||Bv(),i=Mv(o,i,c)}else X.data==="$?"?(i.flags|=192,i.child=o.child,i=null):(o=le.treeContext,fr=Ql(X.nextSibling),wo=i,un=!0,Fs=null,Si=!1,o!==null&&(bl[vl++]=ta,bl[vl++]=na,bl[vl++]=$s,ta=o.id,na=o.overflow,$s=i),i=xv(i,p.children),i.flags|=4096);return i}return v?(Na(),v=p.fallback,X=i.mode,le=o.child,he=le.sibling,p=ea(le,{mode:"hidden",children:p.children}),p.subtreeFlags=le.subtreeFlags&65011712,he!==null?v=ea(he,v):(v=Ls(v,X,c,null),v.flags|=2),v.return=i,p.return=i,p.sibling=v,i.child=p,p=v,v=i.child,X=o.child.memoizedState,X===null?X=Sv(c):(le=X.cachePool,le!==null?(he=_r._currentValue,le=le.parent!==he?{parent:he,pool:he}:le):le=UM(),X={baseLanes:X.baseLanes|c,cachePool:le}),v.memoizedState=X,v.childLanes=wv(o,U,c),i.memoizedState=Cv,p):(Ha(i),c=o.child,o=c.sibling,c=ea(c,{mode:"visible",children:p.children}),c.return=i,c.sibling=null,o!==null&&(U=i.deletions,U===null?(i.deletions=[o],i.flags|=16):U.push(o)),i.child=c,i.memoizedState=null,c)}function xv(o,i){return i=Lh({mode:"visible",children:i},o.mode),i.return=o,o.child=i}function Lh(o,i){return o=qo(22,o,null,i),o.lanes=0,o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},o}function Mv(o,i,c){return Jc(i,o.child,null,c),o=xv(i,i.pendingProps.children),o.flags|=2,i.memoizedState=null,o}function iE(o,i,c){o.lanes|=i;var p=o.alternate;p!==null&&(p.lanes|=i),Bb(o.return,i,c)}function Tv(o,i,c,p,v){var T=o.memoizedState;T===null?o.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:p,tail:c,tailMode:v}:(T.isBackwards=i,T.rendering=null,T.renderingStartTime=0,T.last=p,T.tail=c,T.tailMode=v)}function aE(o,i,c){var p=i.pendingProps,v=p.revealOrder,T=p.tail;if(oo(o,i,p.children,c),p=Dr.current,(p&2)!==0)p=p&1|2,i.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=i.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&iE(o,c,i);else if(o.tag===19)iE(o,c,i);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}p&=1}switch(Z(Dr,p),v){case"forwards":for(c=i.child,v=null;c!==null;)o=c.alternate,o!==null&&Ih(o)===null&&(v=c),c=c.sibling;c=v,c===null?(v=i.child,i.child=null):(v=c.sibling,c.sibling=null),Tv(i,!1,v,c,T);break;case"backwards":for(c=null,v=i.child,i.child=null;v!==null;){if(o=v.alternate,o!==null&&Ih(o)===null){i.child=v;break}o=v.sibling,v.sibling=c,c=v,v=o}Tv(i,!0,c,null,T);break;case"together":Tv(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function aa(o,i,c){if(o!==null&&(i.dependencies=o.dependencies),Ua|=i.lanes,(c&i.childLanes)===0)if(o!==null){if(Bd(o,i,c,!1),(c&i.childLanes)===0)return null}else return null;if(o!==null&&i.child!==o.child)throw Error(r(153));if(i.child!==null){for(o=i.child,c=ea(o,o.pendingProps),i.child=c,c.return=i;o.sibling!==null;)o=o.sibling,c=c.sibling=ea(o,o.pendingProps),c.return=i;c.sibling=null}return i.child}function Ev(o,i){return(o.lanes&i)!==0?!0:(o=o.dependencies,!!(o!==null&&gh(o)))}function CH(o,i,c){switch(i.tag){case 3:Se(i,i.stateNode.containerInfo),Da(i,_r,o.memoizedState.cache),Nd();break;case 27:case 5:de(i);break;case 4:Se(i,i.stateNode.containerInfo);break;case 10:Da(i,i.type,i.memoizedProps.value);break;case 13:var p=i.memoizedState;if(p!==null)return p.dehydrated!==null?(Ha(i),i.flags|=128,null):(c&i.child.childLanes)!==0?lE(o,i,c):(Ha(i),o=aa(o,i,c),o!==null?o.sibling:null);Ha(i);break;case 19:var v=(o.flags&128)!==0;if(p=(c&i.childLanes)!==0,p||(Bd(o,i,c,!1),p=(c&i.childLanes)!==0),v){if(p)return aE(o,i,c);i.flags|=128}if(v=i.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),Z(Dr,Dr.current),p)break;return null;case 22:case 23:return i.lanes=0,eE(o,i,c);case 24:Da(i,_r,o.memoizedState.cache)}return aa(o,i,c)}function sE(o,i,c){if(o!==null)if(o.memoizedProps!==i.pendingProps)Xr=!0;else{if(!Ev(o,c)&&(i.flags&128)===0)return Xr=!1,CH(o,i,c);Xr=(o.flags&131072)!==0}else Xr=!1,un&&(i.flags&1048576)!==0&&FM(i,hh,i.index);switch(i.lanes=0,i.tag){case 16:e:{o=i.pendingProps;var p=i.elementType,v=p._init;if(p=v(p._payload),i.type=p,typeof p=="function")Lb(p)?(o=Vs(p,o),i.tag=1,i=rE(null,i,p,o,c)):(i.tag=0,i=yv(null,i,p,o,c));else{if(p!=null){if(v=p.$$typeof,v===P){i.tag=11,i=QT(null,i,p,o,c);break e}else if(v===z){i.tag=14,i=ZT(null,i,p,o,c);break e}}throw i=q(p)||p,Error(r(306,i,""))}}return i;case 0:return yv(o,i,i.type,i.pendingProps,c);case 1:return p=i.type,v=Vs(p,i.pendingProps),rE(o,i,p,v,c);case 3:e:{if(Se(i,i.stateNode.containerInfo),o===null)throw Error(r(387));p=i.pendingProps;var T=i.memoizedState;v=T.element,Yb(o,i),Yd(i,p,null,c);var U=i.memoizedState;if(p=U.cache,Da(i,_r,p),p!==T.cache&&Gb(i,[_r],c,!0),Kd(),p=U.element,T.isDehydrated)if(T={element:p,isDehydrated:!1,cache:U.cache},i.updateQueue.baseState=T,i.memoizedState=T,i.flags&256){i=oE(o,i,p,c);break e}else if(p!==v){v=gl(Error(r(424)),i),jd(v),i=oE(o,i,p,c);break e}else{switch(o=i.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(fr=Ql(o.firstChild),wo=i,un=!0,Fs=null,Si=!0,c=NT(i,null,p,c),i.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(Nd(),p===v){i=aa(o,i,c);break e}oo(o,i,p,c)}i=i.child}return i;case 26:return Dh(o,i),o===null?(c=fP(i.type,null,i.pendingProps,null))?i.memoizedState=c:un||(c=i.type,o=i.pendingProps,p=Yh(oe.current).createElement(c),p[Jt]=i,p[Pn]=o,io(p,c,o),Vn(p),i.stateNode=p):i.memoizedState=fP(i.type,o.memoizedProps,i.pendingProps,o.memoizedState),null;case 27:return de(i),o===null&&un&&(p=i.stateNode=cP(i.type,i.pendingProps,oe.current),wo=i,Si=!0,v=fr,Ya(i.type)?(iy=v,fr=Ql(p.firstChild)):fr=v),oo(o,i,i.pendingProps.children,c),Dh(o,i),o===null&&(i.flags|=4194304),i.child;case 5:return o===null&&un&&((v=p=fr)&&(p=KH(p,i.type,i.pendingProps,Si),p!==null?(i.stateNode=p,wo=i,fr=Ql(p.firstChild),Si=!1,v=!0):v=!1),v||Hs(i)),de(i),v=i.type,T=i.pendingProps,U=o!==null?o.memoizedProps:null,p=T.children,ny(v,T)?p=null:U!==null&&ny(v,U)&&(i.flags|=32),i.memoizedState!==null&&(v=tv(o,i,fH,null,null,c),vf._currentValue=v),Dh(o,i),oo(o,i,p,c),i.child;case 6:return o===null&&un&&((o=c=fr)&&(c=YH(c,i.pendingProps,Si),c!==null?(i.stateNode=c,wo=i,fr=null,o=!0):o=!1),o||Hs(i)),null;case 13:return lE(o,i,c);case 4:return Se(i,i.stateNode.containerInfo),p=i.pendingProps,o===null?i.child=Jc(i,null,p,c):oo(o,i,p,c),i.child;case 11:return QT(o,i,i.type,i.pendingProps,c);case 7:return oo(o,i,i.pendingProps,c),i.child;case 8:return oo(o,i,i.pendingProps.children,c),i.child;case 12:return oo(o,i,i.pendingProps.children,c),i.child;case 10:return p=i.pendingProps,Da(i,i.type,p.value),oo(o,i,p.children,c),i.child;case 9:return v=i.type._context,p=i.pendingProps.children,js(i),v=ho(v),p=p(v),i.flags|=1,oo(o,i,p,c),i.child;case 14:return ZT(o,i,i.type,i.pendingProps,c);case 15:return JT(o,i,i.type,i.pendingProps,c);case 19:return aE(o,i,c);case 31:return p=i.pendingProps,c=i.mode,p={mode:p.mode,children:p.children},o===null?(c=Lh(p,c),c.ref=i.ref,i.child=c,c.return=i,i=c):(c=ea(o.child,p),c.ref=i.ref,i.child=c,c.return=i,i=c),i;case 22:return eE(o,i,c);case 24:return js(i),p=ho(_r),o===null?(v=qb(),v===null&&(v=Un,T=Vb(),v.pooledCache=T,T.refCount++,T!==null&&(v.pooledCacheLanes|=c),v=T),i.memoizedState={parent:p,cache:v},Kb(i),Da(i,_r,v)):((o.lanes&c)!==0&&(Yb(o,i),Yd(i,null,null,c),Kd()),v=o.memoizedState,T=i.memoizedState,v.parent!==p?(v={parent:p,cache:p},i.memoizedState=v,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=v),Da(i,_r,p)):(p=T.cache,Da(i,_r,p),p!==v.cache&&Gb(i,[_r],c,!0))),oo(o,i,i.pendingProps.children,c),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function sa(o){o.flags|=4}function cE(o,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!bP(i)){if(i=yl.current,i!==null&&((en&4194048)===en?wi!==null:(en&62914560)!==en&&(en&536870912)===0||i!==wi))throw qd=Wb,qM;o.flags|=8192}}function $h(o,i){i!==null&&(o.flags|=4),o.flags&16384&&(i=o.tag!==22?cr():536870912,o.lanes|=i,ru|=i)}function nf(o,i){if(!un)switch(o.tailMode){case"hidden":i=o.tail;for(var c=null;i!==null;)i.alternate!==null&&(c=i),i=i.sibling;c===null?o.tail=null:c.sibling=null;break;case"collapsed":c=o.tail;for(var p=null;c!==null;)c.alternate!==null&&(p=c),c=c.sibling;p===null?i||o.tail===null?o.tail=null:o.tail.sibling=null:p.sibling=null}}function ar(o){var i=o.alternate!==null&&o.alternate.child===o.child,c=0,p=0;if(i)for(var v=o.child;v!==null;)c|=v.lanes|v.childLanes,p|=v.subtreeFlags&65011712,p|=v.flags&65011712,v.return=o,v=v.sibling;else for(v=o.child;v!==null;)c|=v.lanes|v.childLanes,p|=v.subtreeFlags,p|=v.flags,v.return=o,v=v.sibling;return o.subtreeFlags|=p,o.childLanes=c,i}function SH(o,i,c){var p=i.pendingProps;switch(Hb(i),i.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ar(i),null;case 1:return ar(i),null;case 3:return c=i.stateNode,p=null,o!==null&&(p=o.memoizedState.cache),i.memoizedState.cache!==p&&(i.flags|=2048),oa(_r),be(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(o===null||o.child===null)&&(Hd(i)?sa(i):o===null||o.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,jM())),ar(i),null;case 26:return c=i.memoizedState,o===null?(sa(i),c!==null?(ar(i),cE(i,c)):(ar(i),i.flags&=-16777217)):c?c!==o.memoizedState?(sa(i),ar(i),cE(i,c)):(ar(i),i.flags&=-16777217):(o.memoizedProps!==p&&sa(i),ar(i),i.flags&=-16777217),null;case 27:ke(i),c=oe.current;var v=i.type;if(o!==null&&i.stateNode!=null)o.memoizedProps!==p&&sa(i);else{if(!p){if(i.stateNode===null)throw Error(r(166));return ar(i),null}o=te.current,Hd(i)?HM(i):(o=cP(v,p,c),i.stateNode=o,sa(i))}return ar(i),null;case 5:if(ke(i),c=i.type,o!==null&&i.stateNode!=null)o.memoizedProps!==p&&sa(i);else{if(!p){if(i.stateNode===null)throw Error(r(166));return ar(i),null}if(o=te.current,Hd(i))HM(i);else{switch(v=Yh(oe.current),o){case 1:o=v.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:o=v.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":o=v.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":o=v.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":o=v.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof p.is=="string"?v.createElement("select",{is:p.is}):v.createElement("select"),p.multiple?o.multiple=!0:p.size&&(o.size=p.size);break;default:o=typeof p.is=="string"?v.createElement(c,{is:p.is}):v.createElement(c)}}o[Jt]=i,o[Pn]=p;e:for(v=i.child;v!==null;){if(v.tag===5||v.tag===6)o.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===i)break e;for(;v.sibling===null;){if(v.return===null||v.return===i)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}i.stateNode=o;e:switch(io(o,c,p),c){case"button":case"input":case"select":case"textarea":o=!!p.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&sa(i)}}return ar(i),i.flags&=-16777217,null;case 6:if(o&&i.stateNode!=null)o.memoizedProps!==p&&sa(i);else{if(typeof p!="string"&&i.stateNode===null)throw Error(r(166));if(o=oe.current,Hd(i)){if(o=i.stateNode,c=i.memoizedProps,p=null,v=wo,v!==null)switch(v.tag){case 27:case 5:p=v.memoizedProps}o[Jt]=i,o=!!(o.nodeValue===c||p!==null&&p.suppressHydrationWarning===!0||nP(o.nodeValue,c)),o||Hs(i)}else o=Yh(o).createTextNode(p),o[Jt]=i,i.stateNode=o}return ar(i),null;case 13:if(p=i.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(v=Hd(i),p!==null&&p.dehydrated!==null){if(o===null){if(!v)throw Error(r(318));if(v=i.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[Jt]=i}else Nd(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;ar(i),v=!1}else v=jM(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=v),v=!0;if(!v)return i.flags&256?(ia(i),i):(ia(i),null)}if(ia(i),(i.flags&128)!==0)return i.lanes=c,i;if(c=p!==null,o=o!==null&&o.memoizedState!==null,c){p=i.child,v=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(v=p.alternate.memoizedState.cachePool.pool);var T=null;p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(T=p.memoizedState.cachePool.pool),T!==v&&(p.flags|=2048)}return c!==o&&c&&(i.child.flags|=8192),$h(i,i.updateQueue),ar(i),null;case 4:return be(),o===null&&Qv(i.stateNode.containerInfo),ar(i),null;case 10:return oa(i.type),ar(i),null;case 19:if(W(Dr),v=i.memoizedState,v===null)return ar(i),null;if(p=(i.flags&128)!==0,T=v.rendering,T===null)if(p)nf(v,!1);else{if(pr!==0||o!==null&&(o.flags&128)!==0)for(o=i.child;o!==null;){if(T=Ih(o),T!==null){for(i.flags|=128,nf(v,!1),o=T.updateQueue,i.updateQueue=o,$h(i,o),i.subtreeFlags=0,o=c,c=i.child;c!==null;)zM(c,o),c=c.sibling;return Z(Dr,Dr.current&1|2),i.child}o=o.sibling}v.tail!==null&&lt()>Hh&&(i.flags|=128,p=!0,nf(v,!1),i.lanes=4194304)}else{if(!p)if(o=Ih(T),o!==null){if(i.flags|=128,p=!0,o=o.updateQueue,i.updateQueue=o,$h(i,o),nf(v,!0),v.tail===null&&v.tailMode==="hidden"&&!T.alternate&&!un)return ar(i),null}else 2*lt()-v.renderingStartTime>Hh&&c!==536870912&&(i.flags|=128,p=!0,nf(v,!1),i.lanes=4194304);v.isBackwards?(T.sibling=i.child,i.child=T):(o=v.last,o!==null?o.sibling=T:i.child=T,v.last=T)}return v.tail!==null?(i=v.tail,v.rendering=i,v.tail=i.sibling,v.renderingStartTime=lt(),i.sibling=null,o=Dr.current,Z(Dr,p?o&1|2:o&1),i):(ar(i),null);case 22:case 23:return ia(i),Jb(),p=i.memoizedState!==null,o!==null?o.memoizedState!==null!==p&&(i.flags|=8192):p&&(i.flags|=8192),p?(c&536870912)!==0&&(i.flags&128)===0&&(ar(i),i.subtreeFlags&6&&(i.flags|=8192)):ar(i),c=i.updateQueue,c!==null&&$h(i,c.retryQueue),c=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(c=o.memoizedState.cachePool.pool),p=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(p=i.memoizedState.cachePool.pool),p!==c&&(i.flags|=2048),o!==null&&W(Bs),null;case 24:return c=null,o!==null&&(c=o.memoizedState.cache),i.memoizedState.cache!==c&&(i.flags|=2048),oa(_r),ar(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function wH(o,i){switch(Hb(i),i.tag){case 1:return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 3:return oa(_r),be(),o=i.flags,(o&65536)!==0&&(o&128)===0?(i.flags=o&-65537|128,i):null;case 26:case 27:case 5:return ke(i),null;case 13:if(ia(i),o=i.memoizedState,o!==null&&o.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Nd()}return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 19:return W(Dr),null;case 4:return be(),null;case 10:return oa(i.type),null;case 22:case 23:return ia(i),Jb(),o!==null&&W(Bs),o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 24:return oa(_r),null;case 25:return null;default:return null}}function uE(o,i){switch(Hb(i),i.tag){case 3:oa(_r),be();break;case 26:case 27:case 5:ke(i);break;case 4:be();break;case 13:ia(i);break;case 19:W(Dr);break;case 10:oa(i.type);break;case 22:case 23:ia(i),Jb(),o!==null&&W(Bs);break;case 24:oa(_r)}}function rf(o,i){try{var c=i.updateQueue,p=c!==null?c.lastEffect:null;if(p!==null){var v=p.next;c=v;do{if((c.tag&o)===o){p=void 0;var T=c.create,U=c.inst;p=T(),U.destroy=p}c=c.next}while(c!==v)}}catch(X){Fn(i,i.return,X)}}function ja(o,i,c){try{var p=i.updateQueue,v=p!==null?p.lastEffect:null;if(v!==null){var T=v.next;p=T;do{if((p.tag&o)===o){var U=p.inst,X=U.destroy;if(X!==void 0){U.destroy=void 0,v=i;var le=c,he=X;try{he()}catch(Ee){Fn(v,le,Ee)}}}p=p.next}while(p!==T)}}catch(Ee){Fn(i,i.return,Ee)}}function dE(o){var i=o.updateQueue;if(i!==null){var c=o.stateNode;try{ZM(i,c)}catch(p){Fn(o,o.return,p)}}}function fE(o,i,c){c.props=Vs(o.type,o.memoizedProps),c.state=o.memoizedState;try{c.componentWillUnmount()}catch(p){Fn(o,i,p)}}function of(o,i){try{var c=o.ref;if(c!==null){switch(o.tag){case 26:case 27:case 5:var p=o.stateNode;break;case 30:p=o.stateNode;break;default:p=o.stateNode}typeof c=="function"?o.refCleanup=c(p):c.current=p}}catch(v){Fn(o,i,v)}}function xi(o,i){var c=o.ref,p=o.refCleanup;if(c!==null)if(typeof p=="function")try{p()}catch(v){Fn(o,i,v)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(v){Fn(o,i,v)}else c.current=null}function pE(o){var i=o.type,c=o.memoizedProps,p=o.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":c.autoFocus&&p.focus();break e;case"img":c.src?p.src=c.src:c.srcSet&&(p.srcset=c.srcSet)}}catch(v){Fn(o,o.return,v)}}function Pv(o,i,c){try{var p=o.stateNode;GH(p,o.type,c,i),p[Pn]=i}catch(v){Fn(o,o.return,v)}}function hE(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Ya(o.type)||o.tag===4}function Rv(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||hE(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Ya(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Av(o,i,c){var p=o.tag;if(p===5||p===6)o=o.stateNode,i?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(o,i):(i=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,i.appendChild(o),c=c._reactRootContainer,c!=null||i.onclick!==null||(i.onclick=Kh));else if(p!==4&&(p===27&&Ya(o.type)&&(c=o.stateNode,i=null),o=o.child,o!==null))for(Av(o,i,c),o=o.sibling;o!==null;)Av(o,i,c),o=o.sibling}function zh(o,i,c){var p=o.tag;if(p===5||p===6)o=o.stateNode,i?c.insertBefore(o,i):c.appendChild(o);else if(p!==4&&(p===27&&Ya(o.type)&&(c=o.stateNode),o=o.child,o!==null))for(zh(o,i,c),o=o.sibling;o!==null;)zh(o,i,c),o=o.sibling}function gE(o){var i=o.stateNode,c=o.memoizedProps;try{for(var p=o.type,v=i.attributes;v.length;)i.removeAttributeNode(v[0]);io(i,p,c),i[Jt]=o,i[Pn]=c}catch(T){Fn(o,o.return,T)}}var ca=!1,vr=!1,Ov=!1,mE=typeof WeakSet=="function"?WeakSet:Set,Qr=null;function xH(o,i){if(o=o.containerInfo,ey=tg,o=gt(o),Sn(o)){if("selectionStart"in o)var c={start:o.selectionStart,end:o.selectionEnd};else e:{c=(c=o.ownerDocument)&&c.defaultView||window;var p=c.getSelection&&c.getSelection();if(p&&p.rangeCount!==0){c=p.anchorNode;var v=p.anchorOffset,T=p.focusNode;p=p.focusOffset;try{c.nodeType,T.nodeType}catch{c=null;break e}var U=0,X=-1,le=-1,he=0,Ee=0,De=o,ve=null;t:for(;;){for(var ye;De!==c||v!==0&&De.nodeType!==3||(X=U+v),De!==T||p!==0&&De.nodeType!==3||(le=U+p),De.nodeType===3&&(U+=De.nodeValue.length),(ye=De.firstChild)!==null;)ve=De,De=ye;for(;;){if(De===o)break t;if(ve===c&&++he===v&&(X=U),ve===T&&++Ee===p&&(le=U),(ye=De.nextSibling)!==null)break;De=ve,ve=De.parentNode}De=ye}c=X===-1||le===-1?null:{start:X,end:le}}else c=null}c=c||{start:0,end:0}}else c=null;for(ty={focusedElem:o,selectionRange:c},tg=!1,Qr=i;Qr!==null;)if(i=Qr,o=i.child,(i.subtreeFlags&1024)!==0&&o!==null)o.return=i,Qr=o;else for(;Qr!==null;){switch(i=Qr,T=i.alternate,o=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:if((o&1024)!==0&&T!==null){o=void 0,c=i,v=T.memoizedProps,T=T.memoizedState,p=c.stateNode;try{var kt=Vs(c.type,v,c.elementType===c.type);o=p.getSnapshotBeforeUpdate(kt,T),p.__reactInternalSnapshotBeforeUpdate=o}catch(Ot){Fn(c,c.return,Ot)}}break;case 3:if((o&1024)!==0){if(o=i.stateNode.containerInfo,c=o.nodeType,c===9)oy(o);else if(c===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":oy(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=i.sibling,o!==null){o.return=i.return,Qr=o;break}Qr=i.return}}function bE(o,i,c){var p=c.flags;switch(c.tag){case 0:case 11:case 15:Ba(o,c),p&4&&rf(5,c);break;case 1:if(Ba(o,c),p&4)if(o=c.stateNode,i===null)try{o.componentDidMount()}catch(U){Fn(c,c.return,U)}else{var v=Vs(c.type,i.memoizedProps);i=i.memoizedState;try{o.componentDidUpdate(v,i,o.__reactInternalSnapshotBeforeUpdate)}catch(U){Fn(c,c.return,U)}}p&64&&dE(c),p&512&&of(c,c.return);break;case 3:if(Ba(o,c),p&64&&(o=c.updateQueue,o!==null)){if(i=null,c.child!==null)switch(c.child.tag){case 27:case 5:i=c.child.stateNode;break;case 1:i=c.child.stateNode}try{ZM(o,i)}catch(U){Fn(c,c.return,U)}}break;case 27:i===null&&p&4&&gE(c);case 26:case 5:Ba(o,c),i===null&&p&4&&pE(c),p&512&&of(c,c.return);break;case 12:Ba(o,c);break;case 13:Ba(o,c),p&4&&CE(o,c),p&64&&(o=c.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(c=kH.bind(null,c),XH(o,c))));break;case 22:if(p=c.memoizedState!==null||ca,!p){i=i!==null&&i.memoizedState!==null||vr,v=ca;var T=vr;ca=p,(vr=i)&&!T?Ga(o,c,(c.subtreeFlags&8772)!==0):Ba(o,c),ca=v,vr=T}break;case 30:break;default:Ba(o,c)}}function vE(o){var i=o.alternate;i!==null&&(o.alternate=null,vE(i)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(i=o.stateNode,i!==null&&Yn(i)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var nr=null,_o=!1;function ua(o,i,c){for(c=c.child;c!==null;)yE(o,i,c),c=c.sibling}function yE(o,i,c){if(Xe&&typeof Xe.onCommitFiberUnmount=="function")try{Xe.onCommitFiberUnmount(Ke,c)}catch{}switch(c.tag){case 26:vr||xi(c,i),ua(o,i,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:vr||xi(c,i);var p=nr,v=_o;Ya(c.type)&&(nr=c.stateNode,_o=!1),ua(o,i,c),hf(c.stateNode),nr=p,_o=v;break;case 5:vr||xi(c,i);case 6:if(p=nr,v=_o,nr=null,ua(o,i,c),nr=p,_o=v,nr!==null)if(_o)try{(nr.nodeType===9?nr.body:nr.nodeName==="HTML"?nr.ownerDocument.body:nr).removeChild(c.stateNode)}catch(T){Fn(c,i,T)}else try{nr.removeChild(c.stateNode)}catch(T){Fn(c,i,T)}break;case 18:nr!==null&&(_o?(o=nr,aP(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,c.stateNode),wf(o)):aP(nr,c.stateNode));break;case 4:p=nr,v=_o,nr=c.stateNode.containerInfo,_o=!0,ua(o,i,c),nr=p,_o=v;break;case 0:case 11:case 14:case 15:vr||ja(2,c,i),vr||ja(4,c,i),ua(o,i,c);break;case 1:vr||(xi(c,i),p=c.stateNode,typeof p.componentWillUnmount=="function"&&fE(c,i,p)),ua(o,i,c);break;case 21:ua(o,i,c);break;case 22:vr=(p=vr)||c.memoizedState!==null,ua(o,i,c),vr=p;break;default:ua(o,i,c)}}function CE(o,i){if(i.memoizedState===null&&(o=i.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{wf(o)}catch(c){Fn(i,i.return,c)}}function MH(o){switch(o.tag){case 13:case 19:var i=o.stateNode;return i===null&&(i=o.stateNode=new mE),i;case 22:return o=o.stateNode,i=o._retryCache,i===null&&(i=o._retryCache=new mE),i;default:throw Error(r(435,o.tag))}}function Iv(o,i){var c=MH(o);i.forEach(function(p){var v=_H.bind(null,o,p);c.has(p)||(c.add(p),p.then(v,v))})}function Wo(o,i){var c=i.deletions;if(c!==null)for(var p=0;p<c.length;p++){var v=c[p],T=o,U=i,X=U;e:for(;X!==null;){switch(X.tag){case 27:if(Ya(X.type)){nr=X.stateNode,_o=!1;break e}break;case 5:nr=X.stateNode,_o=!1;break e;case 3:case 4:nr=X.stateNode.containerInfo,_o=!0;break e}X=X.return}if(nr===null)throw Error(r(160));yE(T,U,v),nr=null,_o=!1,T=v.alternate,T!==null&&(T.return=null),v.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)SE(i,o),i=i.sibling}var Xl=null;function SE(o,i){var c=o.alternate,p=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:Wo(i,o),Ko(o),p&4&&(ja(3,o,o.return),rf(3,o),ja(5,o,o.return));break;case 1:Wo(i,o),Ko(o),p&512&&(vr||c===null||xi(c,c.return)),p&64&&ca&&(o=o.updateQueue,o!==null&&(p=o.callbacks,p!==null&&(c=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=c===null?p:c.concat(p))));break;case 26:var v=Xl;if(Wo(i,o),Ko(o),p&512&&(vr||c===null||xi(c,c.return)),p&4){var T=c!==null?c.memoizedState:null;if(p=o.memoizedState,c===null)if(p===null)if(o.stateNode===null){e:{p=o.type,c=o.memoizedProps,v=v.ownerDocument||v;t:switch(p){case"title":T=v.getElementsByTagName("title")[0],(!T||T[Ro]||T[Jt]||T.namespaceURI==="http://www.w3.org/2000/svg"||T.hasAttribute("itemprop"))&&(T=v.createElement(p),v.head.insertBefore(T,v.querySelector("head > title"))),io(T,p,c),T[Jt]=o,Vn(T),p=T;break e;case"link":var U=gP("link","href",v).get(p+(c.href||""));if(U){for(var X=0;X<U.length;X++)if(T=U[X],T.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&T.getAttribute("rel")===(c.rel==null?null:c.rel)&&T.getAttribute("title")===(c.title==null?null:c.title)&&T.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){U.splice(X,1);break t}}T=v.createElement(p),io(T,p,c),v.head.appendChild(T);break;case"meta":if(U=gP("meta","content",v).get(p+(c.content||""))){for(X=0;X<U.length;X++)if(T=U[X],T.getAttribute("content")===(c.content==null?null:""+c.content)&&T.getAttribute("name")===(c.name==null?null:c.name)&&T.getAttribute("property")===(c.property==null?null:c.property)&&T.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&T.getAttribute("charset")===(c.charSet==null?null:c.charSet)){U.splice(X,1);break t}}T=v.createElement(p),io(T,p,c),v.head.appendChild(T);break;default:throw Error(r(468,p))}T[Jt]=o,Vn(T),p=T}o.stateNode=p}else mP(v,o.type,o.stateNode);else o.stateNode=hP(v,p,o.memoizedProps);else T!==p?(T===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):T.count--,p===null?mP(v,o.type,o.stateNode):hP(v,p,o.memoizedProps)):p===null&&o.stateNode!==null&&Pv(o,o.memoizedProps,c.memoizedProps)}break;case 27:Wo(i,o),Ko(o),p&512&&(vr||c===null||xi(c,c.return)),c!==null&&p&4&&Pv(o,o.memoizedProps,c.memoizedProps);break;case 5:if(Wo(i,o),Ko(o),p&512&&(vr||c===null||xi(c,c.return)),o.flags&32){v=o.stateNode;try{Bl(v,"")}catch(ye){Fn(o,o.return,ye)}}p&4&&o.stateNode!=null&&(v=o.memoizedProps,Pv(o,v,c!==null?c.memoizedProps:v)),p&1024&&(Ov=!0);break;case 6:if(Wo(i,o),Ko(o),p&4){if(o.stateNode===null)throw Error(r(162));p=o.memoizedProps,c=o.stateNode;try{c.nodeValue=p}catch(ye){Fn(o,o.return,ye)}}break;case 3:if(Zh=null,v=Xl,Xl=Xh(i.containerInfo),Wo(i,o),Xl=v,Ko(o),p&4&&c!==null&&c.memoizedState.isDehydrated)try{wf(i.containerInfo)}catch(ye){Fn(o,o.return,ye)}Ov&&(Ov=!1,wE(o));break;case 4:p=Xl,Xl=Xh(o.stateNode.containerInfo),Wo(i,o),Ko(o),Xl=p;break;case 12:Wo(i,o),Ko(o);break;case 13:Wo(i,o),Ko(o),o.child.flags&8192&&o.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(zv=lt()),p&4&&(p=o.updateQueue,p!==null&&(o.updateQueue=null,Iv(o,p)));break;case 22:v=o.memoizedState!==null;var le=c!==null&&c.memoizedState!==null,he=ca,Ee=vr;if(ca=he||v,vr=Ee||le,Wo(i,o),vr=Ee,ca=he,Ko(o),p&8192)e:for(i=o.stateNode,i._visibility=v?i._visibility&-2:i._visibility|1,v&&(c===null||le||ca||vr||Us(o)),c=null,i=o;;){if(i.tag===5||i.tag===26){if(c===null){le=c=i;try{if(T=le.stateNode,v)U=T.style,typeof U.setProperty=="function"?U.setProperty("display","none","important"):U.display="none";else{X=le.stateNode;var De=le.memoizedProps.style,ve=De!=null&&De.hasOwnProperty("display")?De.display:null;X.style.display=ve==null||typeof ve=="boolean"?"":(""+ve).trim()}}catch(ye){Fn(le,le.return,ye)}}}else if(i.tag===6){if(c===null){le=i;try{le.stateNode.nodeValue=v?"":le.memoizedProps}catch(ye){Fn(le,le.return,ye)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===o)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;c===i&&(c=null),i=i.return}c===i&&(c=null),i.sibling.return=i.return,i=i.sibling}p&4&&(p=o.updateQueue,p!==null&&(c=p.retryQueue,c!==null&&(p.retryQueue=null,Iv(o,c))));break;case 19:Wo(i,o),Ko(o),p&4&&(p=o.updateQueue,p!==null&&(o.updateQueue=null,Iv(o,p)));break;case 30:break;case 21:break;default:Wo(i,o),Ko(o)}}function Ko(o){var i=o.flags;if(i&2){try{for(var c,p=o.return;p!==null;){if(hE(p)){c=p;break}p=p.return}if(c==null)throw Error(r(160));switch(c.tag){case 27:var v=c.stateNode,T=Rv(o);zh(o,T,v);break;case 5:var U=c.stateNode;c.flags&32&&(Bl(U,""),c.flags&=-33);var X=Rv(o);zh(o,X,U);break;case 3:case 4:var le=c.stateNode.containerInfo,he=Rv(o);Av(o,he,le);break;default:throw Error(r(161))}}catch(Ee){Fn(o,o.return,Ee)}o.flags&=-3}i&4096&&(o.flags&=-4097)}function wE(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var i=o;wE(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),o=o.sibling}}function Ba(o,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)bE(o,i.alternate,i),i=i.sibling}function Us(o){for(o=o.child;o!==null;){var i=o;switch(i.tag){case 0:case 11:case 14:case 15:ja(4,i,i.return),Us(i);break;case 1:xi(i,i.return);var c=i.stateNode;typeof c.componentWillUnmount=="function"&&fE(i,i.return,c),Us(i);break;case 27:hf(i.stateNode);case 26:case 5:xi(i,i.return),Us(i);break;case 22:i.memoizedState===null&&Us(i);break;case 30:Us(i);break;default:Us(i)}o=o.sibling}}function Ga(o,i,c){for(c=c&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var p=i.alternate,v=o,T=i,U=T.flags;switch(T.tag){case 0:case 11:case 15:Ga(v,T,c),rf(4,T);break;case 1:if(Ga(v,T,c),p=T,v=p.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(he){Fn(p,p.return,he)}if(p=T,v=p.updateQueue,v!==null){var X=p.stateNode;try{var le=v.shared.hiddenCallbacks;if(le!==null)for(v.shared.hiddenCallbacks=null,v=0;v<le.length;v++)QM(le[v],X)}catch(he){Fn(p,p.return,he)}}c&&U&64&&dE(T),of(T,T.return);break;case 27:gE(T);case 26:case 5:Ga(v,T,c),c&&p===null&&U&4&&pE(T),of(T,T.return);break;case 12:Ga(v,T,c);break;case 13:Ga(v,T,c),c&&U&4&&CE(v,T);break;case 22:T.memoizedState===null&&Ga(v,T,c),of(T,T.return);break;case 30:break;default:Ga(v,T,c)}i=i.sibling}}function kv(o,i){var c=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(c=o.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==c&&(o!=null&&o.refCount++,c!=null&&Gd(c))}function _v(o,i){o=null,i.alternate!==null&&(o=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==o&&(i.refCount++,o!=null&&Gd(o))}function Mi(o,i,c,p){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)xE(o,i,c,p),i=i.sibling}function xE(o,i,c,p){var v=i.flags;switch(i.tag){case 0:case 11:case 15:Mi(o,i,c,p),v&2048&&rf(9,i);break;case 1:Mi(o,i,c,p);break;case 3:Mi(o,i,c,p),v&2048&&(o=null,i.alternate!==null&&(o=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==o&&(i.refCount++,o!=null&&Gd(o)));break;case 12:if(v&2048){Mi(o,i,c,p),o=i.stateNode;try{var T=i.memoizedProps,U=T.id,X=T.onPostCommit;typeof X=="function"&&X(U,i.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(le){Fn(i,i.return,le)}}else Mi(o,i,c,p);break;case 13:Mi(o,i,c,p);break;case 23:break;case 22:T=i.stateNode,U=i.alternate,i.memoizedState!==null?T._visibility&2?Mi(o,i,c,p):lf(o,i):T._visibility&2?Mi(o,i,c,p):(T._visibility|=2,eu(o,i,c,p,(i.subtreeFlags&10256)!==0)),v&2048&&kv(U,i);break;case 24:Mi(o,i,c,p),v&2048&&_v(i.alternate,i);break;default:Mi(o,i,c,p)}}function eu(o,i,c,p,v){for(v=v&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var T=o,U=i,X=c,le=p,he=U.flags;switch(U.tag){case 0:case 11:case 15:eu(T,U,X,le,v),rf(8,U);break;case 23:break;case 22:var Ee=U.stateNode;U.memoizedState!==null?Ee._visibility&2?eu(T,U,X,le,v):lf(T,U):(Ee._visibility|=2,eu(T,U,X,le,v)),v&&he&2048&&kv(U.alternate,U);break;case 24:eu(T,U,X,le,v),v&&he&2048&&_v(U.alternate,U);break;default:eu(T,U,X,le,v)}i=i.sibling}}function lf(o,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var c=o,p=i,v=p.flags;switch(p.tag){case 22:lf(c,p),v&2048&&kv(p.alternate,p);break;case 24:lf(c,p),v&2048&&_v(p.alternate,p);break;default:lf(c,p)}i=i.sibling}}var af=8192;function tu(o){if(o.subtreeFlags&af)for(o=o.child;o!==null;)ME(o),o=o.sibling}function ME(o){switch(o.tag){case 26:tu(o),o.flags&af&&o.memoizedState!==null&&cN(Xl,o.memoizedState,o.memoizedProps);break;case 5:tu(o);break;case 3:case 4:var i=Xl;Xl=Xh(o.stateNode.containerInfo),tu(o),Xl=i;break;case 22:o.memoizedState===null&&(i=o.alternate,i!==null&&i.memoizedState!==null?(i=af,af=16777216,tu(o),af=i):tu(o));break;default:tu(o)}}function TE(o){var i=o.alternate;if(i!==null&&(o=i.child,o!==null)){i.child=null;do i=o.sibling,o.sibling=null,o=i;while(o!==null)}}function sf(o){var i=o.deletions;if((o.flags&16)!==0){if(i!==null)for(var c=0;c<i.length;c++){var p=i[c];Qr=p,PE(p,o)}TE(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)EE(o),o=o.sibling}function EE(o){switch(o.tag){case 0:case 11:case 15:sf(o),o.flags&2048&&ja(9,o,o.return);break;case 3:sf(o);break;case 12:sf(o);break;case 22:var i=o.stateNode;o.memoizedState!==null&&i._visibility&2&&(o.return===null||o.return.tag!==13)?(i._visibility&=-3,Fh(o)):sf(o);break;default:sf(o)}}function Fh(o){var i=o.deletions;if((o.flags&16)!==0){if(i!==null)for(var c=0;c<i.length;c++){var p=i[c];Qr=p,PE(p,o)}TE(o)}for(o=o.child;o!==null;){switch(i=o,i.tag){case 0:case 11:case 15:ja(8,i,i.return),Fh(i);break;case 22:c=i.stateNode,c._visibility&2&&(c._visibility&=-3,Fh(i));break;default:Fh(i)}o=o.sibling}}function PE(o,i){for(;Qr!==null;){var c=Qr;switch(c.tag){case 0:case 11:case 15:ja(8,c,i);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var p=c.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:Gd(c.memoizedState.cache)}if(p=c.child,p!==null)p.return=c,Qr=p;else e:for(c=o;Qr!==null;){p=Qr;var v=p.sibling,T=p.return;if(vE(p),p===c){Qr=null;break e}if(v!==null){v.return=T,Qr=v;break e}Qr=T}}}var TH={getCacheForType:function(o){var i=ho(_r),c=i.data.get(o);return c===void 0&&(c=o(),i.data.set(o,c)),c}},EH=typeof WeakMap=="function"?WeakMap:Map,wn=0,Un=null,qt=null,en=0,xn=0,Yo=null,Va=!1,nu=!1,Dv=!1,da=0,pr=0,Ua=0,qs=0,Lv=0,Cl=0,ru=0,cf=null,Do=null,$v=!1,zv=0,Hh=1/0,Nh=null,qa=null,lo=0,Wa=null,ou=null,lu=0,Fv=0,Hv=null,RE=null,uf=0,Nv=null;function Xo(){if((wn&2)!==0&&en!==0)return en&-en;if(_.T!==null){var o=qc;return o!==0?o:Wv()}return Kn()}function AE(){Cl===0&&(Cl=(en&536870912)===0||un?qn():536870912);var o=yl.current;return o!==null&&(o.flags|=32),Cl}function Qo(o,i,c){(o===Un&&(xn===2||xn===9)||o.cancelPendingCommit!==null)&&(iu(o,0),Ka(o,en,Cl,!1)),Wn(o,c),((wn&2)===0||o!==Un)&&(o===Un&&((wn&2)===0&&(qs|=c),pr===4&&Ka(o,en,Cl,!1)),Ti(o))}function OE(o,i,c){if((wn&6)!==0)throw Error(r(327));var p=!c&&(i&124)===0&&(i&o.expiredLanes)===0||_t(o,i),v=p?AH(o,i):Gv(o,i,!0),T=p;do{if(v===0){nu&&!p&&Ka(o,i,0,!1);break}else{if(c=o.current.alternate,T&&!PH(c)){v=Gv(o,i,!1),T=!1;continue}if(v===2){if(T=i,o.errorRecoveryDisabledLanes&T)var U=0;else U=o.pendingLanes&-536870913,U=U!==0?U:U&536870912?536870912:0;if(U!==0){i=U;e:{var X=o;v=cf;var le=X.current.memoizedState.isDehydrated;if(le&&(iu(X,U).flags|=256),U=Gv(X,U,!1),U!==2){if(Dv&&!le){X.errorRecoveryDisabledLanes|=T,qs|=T,v=4;break e}T=Do,Do=v,T!==null&&(Do===null?Do=T:Do.push.apply(Do,T))}v=U}if(T=!1,v!==2)continue}}if(v===1){iu(o,0),Ka(o,i,0,!0);break}e:{switch(p=o,T=v,T){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:Ka(p,i,Cl,!Va);break e;case 2:Do=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(v=zv+300-lt(),10<v)){if(Ka(p,i,Cl,!Va),Tt(p,0,!0)!==0)break e;p.timeoutHandle=lP(IE.bind(null,p,c,Do,Nh,$v,i,Cl,qs,ru,Va,T,2,-0,0),v);break e}IE(p,c,Do,Nh,$v,i,Cl,qs,ru,Va,T,0,-0,0)}}break}while(!0);Ti(o)}function IE(o,i,c,p,v,T,U,X,le,he,Ee,De,ve,ye){if(o.timeoutHandle=-1,De=i.subtreeFlags,(De&8192||(De&16785408)===16785408)&&(bf={stylesheets:null,count:0,unsuspend:sN},ME(i),De=uN(),De!==null)){o.cancelPendingCommit=De(FE.bind(null,o,i,T,c,p,v,U,X,le,Ee,1,ve,ye)),Ka(o,T,U,!he);return}FE(o,i,T,c,p,v,U,X,le)}function PH(o){for(var i=o;;){var c=i.tag;if((c===0||c===11||c===15)&&i.flags&16384&&(c=i.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var p=0;p<c.length;p++){var v=c[p],T=v.getSnapshot;v=v.value;try{if(!bt(T(),v))return!1}catch{return!1}}if(c=i.child,i.subtreeFlags&16384&&c!==null)c.return=i,i=c;else{if(i===o)break;for(;i.sibling===null;){if(i.return===null||i.return===o)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Ka(o,i,c,p){i&=~Lv,i&=~qs,o.suspendedLanes|=i,o.pingedLanes&=~i,p&&(o.warmLanes|=i),p=o.expirationTimes;for(var v=i;0<v;){var T=31-_e(v),U=1<<T;p[T]=-1,v&=~U}c!==0&&Cr(o,c,i)}function jh(){return(wn&6)===0?(df(0),!1):!0}function jv(){if(qt!==null){if(xn===0)var o=qt.return;else o=qt,ra=Ns=null,ov(o),Zc=null,ef=0,o=qt;for(;o!==null;)uE(o.alternate,o),o=o.return;qt=null}}function iu(o,i){var c=o.timeoutHandle;c!==-1&&(o.timeoutHandle=-1,UH(c)),c=o.cancelPendingCommit,c!==null&&(o.cancelPendingCommit=null,c()),jv(),Un=o,qt=c=ea(o.current,null),en=i,xn=0,Yo=null,Va=!1,nu=_t(o,i),Dv=!1,ru=Cl=Lv=qs=Ua=pr=0,Do=cf=null,$v=!1,(i&8)!==0&&(i|=i&32);var p=o.entangledLanes;if(p!==0)for(o=o.entanglements,p&=i;0<p;){var v=31-_e(p),T=1<<v;i|=o[v],p&=~T}return da=i,ch(),c}function kE(o,i){Gt=null,_.H=Rh,i===Ud||i===vh?(i=YM(),xn=3):i===qM?(i=YM(),xn=4):xn=i===XT?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Yo=i,qt===null&&(pr=1,_h(o,gl(i,o.current)))}function _E(){var o=_.H;return _.H=Rh,o===null?Rh:o}function DE(){var o=_.A;return _.A=TH,o}function Bv(){pr=4,Va||(en&4194048)!==en&&yl.current!==null||(nu=!0),(Ua&134217727)===0&&(qs&134217727)===0||Un===null||Ka(Un,en,Cl,!1)}function Gv(o,i,c){var p=wn;wn|=2;var v=_E(),T=DE();(Un!==o||en!==i)&&(Nh=null,iu(o,i)),i=!1;var U=pr;e:do try{if(xn!==0&&qt!==null){var X=qt,le=Yo;switch(xn){case 8:jv(),U=6;break e;case 3:case 2:case 9:case 6:yl.current===null&&(i=!0);var he=xn;if(xn=0,Yo=null,au(o,X,le,he),c&&nu){U=0;break e}break;default:he=xn,xn=0,Yo=null,au(o,X,le,he)}}RH(),U=pr;break}catch(Ee){kE(o,Ee)}while(!0);return i&&o.shellSuspendCounter++,ra=Ns=null,wn=p,_.H=v,_.A=T,qt===null&&(Un=null,en=0,ch()),U}function RH(){for(;qt!==null;)LE(qt)}function AH(o,i){var c=wn;wn|=2;var p=_E(),v=DE();Un!==o||en!==i?(Nh=null,Hh=lt()+500,iu(o,i)):nu=_t(o,i);e:do try{if(xn!==0&&qt!==null){i=qt;var T=Yo;t:switch(xn){case 1:xn=0,Yo=null,au(o,i,T,1);break;case 2:case 9:if(WM(T)){xn=0,Yo=null,$E(i);break}i=function(){xn!==2&&xn!==9||Un!==o||(xn=7),Ti(o)},T.then(i,i);break e;case 3:xn=7;break e;case 4:xn=5;break e;case 7:WM(T)?(xn=0,Yo=null,$E(i)):(xn=0,Yo=null,au(o,i,T,7));break;case 5:var U=null;switch(qt.tag){case 26:U=qt.memoizedState;case 5:case 27:var X=qt;if(!U||bP(U)){xn=0,Yo=null;var le=X.sibling;if(le!==null)qt=le;else{var he=X.return;he!==null?(qt=he,Bh(he)):qt=null}break t}}xn=0,Yo=null,au(o,i,T,5);break;case 6:xn=0,Yo=null,au(o,i,T,6);break;case 8:jv(),pr=6;break e;default:throw Error(r(462))}}OH();break}catch(Ee){kE(o,Ee)}while(!0);return ra=Ns=null,_.H=p,_.A=v,wn=c,qt!==null?0:(Un=null,en=0,ch(),pr)}function OH(){for(;qt!==null&&!Ve();)LE(qt)}function LE(o){var i=sE(o.alternate,o,da);o.memoizedProps=o.pendingProps,i===null?Bh(o):qt=i}function $E(o){var i=o,c=i.alternate;switch(i.tag){case 15:case 0:i=nE(c,i,i.pendingProps,i.type,void 0,en);break;case 11:i=nE(c,i,i.pendingProps,i.type.render,i.ref,en);break;case 5:ov(i);default:uE(c,i),i=qt=zM(i,da),i=sE(c,i,da)}o.memoizedProps=o.pendingProps,i===null?Bh(o):qt=i}function au(o,i,c,p){ra=Ns=null,ov(i),Zc=null,ef=0;var v=i.return;try{if(yH(o,v,i,c,en)){pr=1,_h(o,gl(c,o.current)),qt=null;return}}catch(T){if(v!==null)throw qt=v,T;pr=1,_h(o,gl(c,o.current)),qt=null;return}i.flags&32768?(un||p===1?o=!0:nu||(en&536870912)!==0?o=!1:(Va=o=!0,(p===2||p===9||p===3||p===6)&&(p=yl.current,p!==null&&p.tag===13&&(p.flags|=16384))),zE(i,o)):Bh(i)}function Bh(o){var i=o;do{if((i.flags&32768)!==0){zE(i,Va);return}o=i.return;var c=SH(i.alternate,i,da);if(c!==null){qt=c;return}if(i=i.sibling,i!==null){qt=i;return}qt=i=o}while(i!==null);pr===0&&(pr=5)}function zE(o,i){do{var c=wH(o.alternate,o);if(c!==null){c.flags&=32767,qt=c;return}if(c=o.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!i&&(o=o.sibling,o!==null)){qt=o;return}qt=o=c}while(o!==null);pr=6,qt=null}function FE(o,i,c,p,v,T,U,X,le){o.cancelPendingCommit=null;do Gh();while(lo!==0);if((wn&6)!==0)throw Error(r(327));if(i!==null){if(i===o.current)throw Error(r(177));if(T=i.lanes|i.childLanes,T|=_b,Gr(o,c,T,U,X,le),o===Un&&(qt=Un=null,en=0),ou=i,Wa=o,lu=c,Fv=T,Hv=v,RE=p,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,DH(et,function(){return GE(),null})):(o.callbackNode=null,o.callbackPriority=0),p=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||p){p=_.T,_.T=null,v=B.p,B.p=2,U=wn,wn|=4;try{xH(o,i,c)}finally{wn=U,B.p=v,_.T=p}}lo=1,HE(),NE(),jE()}}function HE(){if(lo===1){lo=0;var o=Wa,i=ou,c=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||c){c=_.T,_.T=null;var p=B.p;B.p=2;var v=wn;wn|=4;try{SE(i,o);var T=ty,U=gt(o.containerInfo),X=T.focusedElem,le=T.selectionRange;if(U!==X&&X&&X.ownerDocument&&Pt(X.ownerDocument.documentElement,X)){if(le!==null&&Sn(X)){var he=le.start,Ee=le.end;if(Ee===void 0&&(Ee=he),"selectionStart"in X)X.selectionStart=he,X.selectionEnd=Math.min(Ee,X.value.length);else{var De=X.ownerDocument||document,ve=De&&De.defaultView||window;if(ve.getSelection){var ye=ve.getSelection(),kt=X.textContent.length,Ot=Math.min(le.start,kt),kn=le.end===void 0?Ot:Math.min(le.end,kt);!ye.extend&&Ot>kn&&(U=kn,kn=Ot,Ot=U);var ue=Ft(X,Ot),ae=Ft(X,kn);if(ue&&ae&&(ye.rangeCount!==1||ye.anchorNode!==ue.node||ye.anchorOffset!==ue.offset||ye.focusNode!==ae.node||ye.focusOffset!==ae.offset)){var fe=De.createRange();fe.setStart(ue.node,ue.offset),ye.removeAllRanges(),Ot>kn?(ye.addRange(fe),ye.extend(ae.node,ae.offset)):(fe.setEnd(ae.node,ae.offset),ye.addRange(fe))}}}}for(De=[],ye=X;ye=ye.parentNode;)ye.nodeType===1&&De.push({element:ye,left:ye.scrollLeft,top:ye.scrollTop});for(typeof X.focus=="function"&&X.focus(),X=0;X<De.length;X++){var Ie=De[X];Ie.element.scrollLeft=Ie.left,Ie.element.scrollTop=Ie.top}}tg=!!ey,ty=ey=null}finally{wn=v,B.p=p,_.T=c}}o.current=i,lo=2}}function NE(){if(lo===2){lo=0;var o=Wa,i=ou,c=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||c){c=_.T,_.T=null;var p=B.p;B.p=2;var v=wn;wn|=4;try{bE(o,i.alternate,i)}finally{wn=v,B.p=p,_.T=c}}lo=3}}function jE(){if(lo===4||lo===3){lo=0,nt();var o=Wa,i=ou,c=lu,p=RE;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?lo=5:(lo=0,ou=Wa=null,BE(o,o.pendingLanes));var v=o.pendingLanes;if(v===0&&(qa=null),Et(c),i=i.stateNode,Xe&&typeof Xe.onCommitFiberRoot=="function")try{Xe.onCommitFiberRoot(Ke,i,void 0,(i.current.flags&128)===128)}catch{}if(p!==null){i=_.T,v=B.p,B.p=2,_.T=null;try{for(var T=o.onRecoverableError,U=0;U<p.length;U++){var X=p[U];T(X.value,{componentStack:X.stack})}}finally{_.T=i,B.p=v}}(lu&3)!==0&&Gh(),Ti(o),v=o.pendingLanes,(c&4194090)!==0&&(v&42)!==0?o===Nv?uf++:(uf=0,Nv=o):uf=0,df(0)}}function BE(o,i){(o.pooledCacheLanes&=i)===0&&(i=o.pooledCache,i!=null&&(o.pooledCache=null,Gd(i)))}function Gh(o){return HE(),NE(),jE(),GE()}function GE(){if(lo!==5)return!1;var o=Wa,i=Fv;Fv=0;var c=Et(lu),p=_.T,v=B.p;try{B.p=32>c?32:c,_.T=null,c=Hv,Hv=null;var T=Wa,U=lu;if(lo=0,ou=Wa=null,lu=0,(wn&6)!==0)throw Error(r(331));var X=wn;if(wn|=4,EE(T.current),xE(T,T.current,U,c),wn=X,df(0,!1),Xe&&typeof Xe.onPostCommitFiberRoot=="function")try{Xe.onPostCommitFiberRoot(Ke,T)}catch{}return!0}finally{B.p=v,_.T=p,BE(o,i)}}function VE(o,i,c){i=gl(c,i),i=vv(o.stateNode,i,2),o=za(o,i,2),o!==null&&(Wn(o,2),Ti(o))}function Fn(o,i,c){if(o.tag===3)VE(o,o,c);else for(;i!==null;){if(i.tag===3){VE(i,o,c);break}else if(i.tag===1){var p=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(qa===null||!qa.has(p))){o=gl(c,o),c=KT(2),p=za(i,c,2),p!==null&&(YT(c,p,i,o),Wn(p,2),Ti(p));break}}i=i.return}}function Vv(o,i,c){var p=o.pingCache;if(p===null){p=o.pingCache=new EH;var v=new Set;p.set(i,v)}else v=p.get(i),v===void 0&&(v=new Set,p.set(i,v));v.has(c)||(Dv=!0,v.add(c),o=IH.bind(null,o,i,c),i.then(o,o))}function IH(o,i,c){var p=o.pingCache;p!==null&&p.delete(i),o.pingedLanes|=o.suspendedLanes&c,o.warmLanes&=~c,Un===o&&(en&c)===c&&(pr===4||pr===3&&(en&62914560)===en&&300>lt()-zv?(wn&2)===0&&iu(o,0):Lv|=c,ru===en&&(ru=0)),Ti(o)}function UE(o,i){i===0&&(i=cr()),o=Bc(o,i),o!==null&&(Wn(o,i),Ti(o))}function kH(o){var i=o.memoizedState,c=0;i!==null&&(c=i.retryLane),UE(o,c)}function _H(o,i){var c=0;switch(o.tag){case 13:var p=o.stateNode,v=o.memoizedState;v!==null&&(c=v.retryLane);break;case 19:p=o.stateNode;break;case 22:p=o.stateNode._retryCache;break;default:throw Error(r(314))}p!==null&&p.delete(i),UE(o,c)}function DH(o,i){return Ne(o,i)}var Vh=null,su=null,Uv=!1,Uh=!1,qv=!1,Ws=0;function Ti(o){o!==su&&o.next===null&&(su===null?Vh=su=o:su=su.next=o),Uh=!0,Uv||(Uv=!0,$H())}function df(o,i){if(!qv&&Uh){qv=!0;do for(var c=!1,p=Vh;p!==null;){if(o!==0){var v=p.pendingLanes;if(v===0)var T=0;else{var U=p.suspendedLanes,X=p.pingedLanes;T=(1<<31-_e(42|o)+1)-1,T&=v&~(U&~X),T=T&201326741?T&201326741|1:T?T|2:0}T!==0&&(c=!0,YE(p,T))}else T=en,T=Tt(p,p===Un?T:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(T&3)===0||_t(p,T)||(c=!0,YE(p,T));p=p.next}while(c);qv=!1}}function LH(){qE()}function qE(){Uh=Uv=!1;var o=0;Ws!==0&&(VH()&&(o=Ws),Ws=0);for(var i=lt(),c=null,p=Vh;p!==null;){var v=p.next,T=WE(p,i);T===0?(p.next=null,c===null?Vh=v:c.next=v,v===null&&(su=c)):(c=p,(o!==0||(T&3)!==0)&&(Uh=!0)),p=v}df(o)}function WE(o,i){for(var c=o.suspendedLanes,p=o.pingedLanes,v=o.expirationTimes,T=o.pendingLanes&-62914561;0<T;){var U=31-_e(T),X=1<<U,le=v[U];le===-1?((X&c)===0||(X&p)!==0)&&(v[U]=cn(X,i)):le<=i&&(o.expiredLanes|=X),T&=~X}if(i=Un,c=en,c=Tt(o,o===i?c:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),p=o.callbackNode,c===0||o===i&&(xn===2||xn===9)||o.cancelPendingCommit!==null)return p!==null&&p!==null&&$e(p),o.callbackNode=null,o.callbackPriority=0;if((c&3)===0||_t(o,c)){if(i=c&-c,i===o.callbackPriority)return i;switch(p!==null&&$e(p),Et(c)){case 2:case 8:c=ze;break;case 32:c=et;break;case 268435456:c=yt;break;default:c=et}return p=KE.bind(null,o),c=Ne(c,p),o.callbackPriority=i,o.callbackNode=c,i}return p!==null&&p!==null&&$e(p),o.callbackPriority=2,o.callbackNode=null,2}function KE(o,i){if(lo!==0&&lo!==5)return o.callbackNode=null,o.callbackPriority=0,null;var c=o.callbackNode;if(Gh()&&o.callbackNode!==c)return null;var p=en;return p=Tt(o,o===Un?p:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),p===0?null:(OE(o,p,i),WE(o,lt()),o.callbackNode!=null&&o.callbackNode===c?KE.bind(null,o):null)}function YE(o,i){if(Gh())return null;OE(o,i,!0)}function $H(){qH(function(){(wn&6)!==0?Ne(tt,LH):qE()})}function Wv(){return Ws===0&&(Ws=qn()),Ws}function XE(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:Ui(""+o)}function QE(o,i){var c=i.ownerDocument.createElement("input");return c.name=i.name,c.value=i.value,o.id&&c.setAttribute("form",o.id),i.parentNode.insertBefore(c,i),o=new FormData(o),c.parentNode.removeChild(c),o}function zH(o,i,c,p,v){if(i==="submit"&&c&&c.stateNode===v){var T=XE((v[Pn]||null).action),U=p.submitter;U&&(i=(i=U[Pn]||null)?XE(i.formAction):U.getAttribute("formAction"),i!==null&&(T=i,U=null));var X=new ur("action","action",null,p,v);o.push({event:X,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(Ws!==0){var le=U?QE(v,U):new FormData(v);pv(c,{pending:!0,data:le,method:v.method,action:T},null,le)}}else typeof T=="function"&&(X.preventDefault(),le=U?QE(v,U):new FormData(v),pv(c,{pending:!0,data:le,method:v.method,action:T},T,le))},currentTarget:v}]})}}for(var Kv=0;Kv<kb.length;Kv++){var Yv=kb[Kv],FH=Yv.toLowerCase(),HH=Yv[0].toUpperCase()+Yv.slice(1);Yl(FH,"on"+HH)}Yl(Io,"onAnimationEnd"),Yl(Uo,"onAnimationIteration"),Yl(Yr,"onAnimationStart"),Yl("dblclick","onDoubleClick"),Yl("focusin","onFocus"),Yl("focusout","onBlur"),Yl(So,"onTransitionRun"),Yl(Ji,"onTransitionStart"),Yl(ro,"onTransitionCancel"),Yl(Fd,"onTransitionEnd"),it("onMouseEnter",["mouseout","mouseover"]),it("onMouseLeave",["mouseout","mouseover"]),it("onPointerEnter",["pointerout","pointerover"]),it("onPointerLeave",["pointerout","pointerover"]),Ue("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ue("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ue("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ue("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ue("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ue("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ff="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(" "),NH=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ff));function ZE(o,i){i=(i&4)!==0;for(var c=0;c<o.length;c++){var p=o[c],v=p.event;p=p.listeners;e:{var T=void 0;if(i)for(var U=p.length-1;0<=U;U--){var X=p[U],le=X.instance,he=X.currentTarget;if(X=X.listener,le!==T&&v.isPropagationStopped())break e;T=X,v.currentTarget=he;try{T(v)}catch(Ee){kh(Ee)}v.currentTarget=null,T=le}else for(U=0;U<p.length;U++){if(X=p[U],le=X.instance,he=X.currentTarget,X=X.listener,le!==T&&v.isPropagationStopped())break e;T=X,v.currentTarget=he;try{T(v)}catch(Ee){kh(Ee)}v.currentTarget=null,T=le}}}}function Wt(o,i){var c=i[Sr];c===void 0&&(c=i[Sr]=new Set);var p=o+"__bubble";c.has(p)||(JE(i,o,2,!1),c.add(p))}function Xv(o,i,c){var p=0;i&&(p|=4),JE(c,o,p,i)}var qh="_reactListening"+Math.random().toString(36).slice(2);function Qv(o){if(!o[qh]){o[qh]=!0,xe.forEach(function(c){c!=="selectionchange"&&(NH.has(c)||Xv(c,!1,o),Xv(c,!0,o))});var i=o.nodeType===9?o:o.ownerDocument;i===null||i[qh]||(i[qh]=!0,Xv("selectionchange",!1,i))}}function JE(o,i,c,p){switch(xP(i)){case 2:var v=pN;break;case 8:v=hN;break;default:v=dy}c=v.bind(null,i,c,o),v=void 0,!mi||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(v=!0),p?v!==void 0?o.addEventListener(i,c,{capture:!0,passive:v}):o.addEventListener(i,c,!0):v!==void 0?o.addEventListener(i,c,{passive:v}):o.addEventListener(i,c,!1)}function Zv(o,i,c,p,v){var T=p;if((i&1)===0&&(i&2)===0&&p!==null)e:for(;;){if(p===null)return;var U=p.tag;if(U===3||U===4){var X=p.stateNode.containerInfo;if(X===v)break;if(U===4)for(U=p.return;U!==null;){var le=U.tag;if((le===3||le===4)&&U.stateNode.containerInfo===v)return;U=U.return}for(;X!==null;){if(U=$n(X),U===null)return;if(le=U.tag,le===5||le===6||le===26||le===27){p=T=U;continue e}X=X.parentNode}}p=p.return}$c(function(){var he=T,Ee=qi(c),De=[];e:{var ve=DM.get(o);if(ve!==void 0){var ye=ur,kt=o;switch(o){case"keypress":if(Os(c)===0)break e;case"keydown":case"keyup":ye=Ob;break;case"focusin":kt="focus",ye=Ad;break;case"focusout":kt="blur",ye=Ad;break;case"beforeblur":case"afterblur":ye=Ad;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ye=Ul;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ye=Eb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ye=Ci;break;case Io:case Uo:case Yr:ye=ql;break;case Fd:ye=rh;break;case"scroll":case"scrollend":ye=wr;break;case"wheel":ye=kd;break;case"copy":case"cut":case"paste":ye=Yi;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ye=nh;break;case"toggle":case"beforetoggle":ye=oh}var Ot=(i&4)!==0,kn=!Ot&&(o==="scroll"||o==="scrollend"),ue=Ot?ve!==null?ve+"Capture":null:ve;Ot=[];for(var ae=he,fe;ae!==null;){var Ie=ae;if(fe=Ie.stateNode,Ie=Ie.tag,Ie!==5&&Ie!==26&&Ie!==27||fe===null||ue===null||(Ie=Wi(ae,ue),Ie!=null&&Ot.push(pf(ae,Ie,fe))),kn)break;ae=ae.return}0<Ot.length&&(ve=new ye(ve,kt,null,c,Ee),De.push({event:ve,listeners:Ot}))}}if((i&7)===0){e:{if(ve=o==="mouseover"||o==="pointerover",ye=o==="mouseout"||o==="pointerout",ve&&c!==As&&(kt=c.relatedTarget||c.fromElement)&&($n(kt)||kt[Or]))break e;if((ye||ve)&&(ve=Ee.window===Ee?Ee:(ve=Ee.ownerDocument)?ve.defaultView||ve.parentWindow:window,ye?(kt=c.relatedTarget||c.toElement,ye=he,kt=kt?$n(kt):null,kt!==null&&(kn=a(kt),Ot=kt.tag,kt!==kn||Ot!==5&&Ot!==27&&Ot!==6)&&(kt=null)):(ye=null,kt=he),ye!==kt)){if(Ot=Ul,Ie="onMouseLeave",ue="onMouseEnter",ae="mouse",(o==="pointerout"||o==="pointerover")&&(Ot=nh,Ie="onPointerLeave",ue="onPointerEnter",ae="pointer"),kn=ye==null?ve:jl(ye),fe=kt==null?ve:jl(kt),ve=new Ot(Ie,ae+"leave",ye,c,Ee),ve.target=kn,ve.relatedTarget=fe,Ie=null,$n(Ee)===he&&(Ot=new Ot(ue,ae+"enter",kt,c,Ee),Ot.target=fe,Ot.relatedTarget=kn,Ie=Ot),kn=Ie,ye&&kt)t:{for(Ot=ye,ue=kt,ae=0,fe=Ot;fe;fe=cu(fe))ae++;for(fe=0,Ie=ue;Ie;Ie=cu(Ie))fe++;for(;0<ae-fe;)Ot=cu(Ot),ae--;for(;0<fe-ae;)ue=cu(ue),fe--;for(;ae--;){if(Ot===ue||ue!==null&&Ot===ue.alternate)break t;Ot=cu(Ot),ue=cu(ue)}Ot=null}else Ot=null;ye!==null&&eP(De,ve,ye,Ot,!1),kt!==null&&kn!==null&&eP(De,kn,kt,Ot,!0)}}e:{if(ve=he?jl(he):window,ye=ve.nodeName&&ve.nodeName.toLowerCase(),ye==="select"||ye==="input"&&ve.type==="file")var dt=V;else if(zd(ve))if(Y)dt=ct;else{dt=qe;var Vt=je}else ye=ve.nodeName,!ye||ye.toLowerCase()!=="input"||ve.type!=="checkbox"&&ve.type!=="radio"?he&&Rd(he.elementType)&&(dt=V):dt=at;if(dt&&(dt=dt(o,he))){Nc(De,dt,c,Ee);break e}Vt&&Vt(o,ve,he),o==="focusout"&&he&&ve.type==="number"&&he.memoizedProps.value!=null&&Pd(ve,"number",ve.value)}switch(Vt=he?jl(he):window,o){case"focusin":(zd(Vt)||Vt.contentEditable==="true")&&(Xn=Vt,ln=he,An=null);break;case"focusout":An=ln=Xn=null;break;case"mousedown":no=!0;break;case"contextmenu":case"mouseup":case"dragend":no=!1,Wr(De,c,Ee);break;case"selectionchange":if(tr)break;case"keydown":case"keyup":Wr(De,c,Ee)}var Ct;if(Hc)e:{switch(o){case"compositionstart":var It="onCompositionStart";break e;case"compositionend":It="onCompositionEnd";break e;case"compositionupdate":It="onCompositionUpdate";break e}It=void 0}else Wl?$d(o,c)&&(It="onCompositionEnd"):o==="keydown"&&c.keyCode===229&&(It="onCompositionStart");It&&(Dd&&c.locale!=="ko"&&(Wl||It!=="onCompositionStart"?It==="onCompositionEnd"&&Wl&&(Ct=Ki()):(Gl=Ee,zc="value"in Gl?Gl.value:Gl.textContent,Wl=!0)),Vt=Wh(he,It),0<Vt.length&&(It=new Jp(It,o,null,c,Ee),De.push({event:It,listeners:Vt}),Ct?It.data=Ct:(Ct=Zi(c),Ct!==null&&(It.data=Ct)))),(Ct=ih?xr(o,c):sh(o,c))&&(It=Wh(he,"onBeforeInput"),0<It.length&&(Vt=new Jp("onBeforeInput","beforeinput",null,c,Ee),De.push({event:Vt,listeners:It}),Vt.data=Ct)),zH(De,o,he,c,Ee)}ZE(De,i)})}function pf(o,i,c){return{instance:o,listener:i,currentTarget:c}}function Wh(o,i){for(var c=i+"Capture",p=[];o!==null;){var v=o,T=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||T===null||(v=Wi(o,c),v!=null&&p.unshift(pf(o,v,T)),v=Wi(o,i),v!=null&&p.push(pf(o,v,T))),o.tag===3)return p;o=o.return}return[]}function cu(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function eP(o,i,c,p,v){for(var T=i._reactName,U=[];c!==null&&c!==p;){var X=c,le=X.alternate,he=X.stateNode;if(X=X.tag,le!==null&&le===p)break;X!==5&&X!==26&&X!==27||he===null||(le=he,v?(he=Wi(c,T),he!=null&&U.unshift(pf(c,he,le))):v||(he=Wi(c,T),he!=null&&U.push(pf(c,he,le)))),c=c.return}U.length!==0&&o.push({event:i,listeners:U})}var jH=/\r\n?/g,BH=/\u0000|\uFFFD/g;function tP(o){return(typeof o=="string"?o:""+o).replace(jH,`
`).replace(BH,"")}function nP(o,i){return i=tP(i),tP(o)===i}function Kh(){}function In(o,i,c,p,v,T){switch(c){case"children":typeof p=="string"?i==="body"||i==="textarea"&&p===""||Bl(o,p):(typeof p=="number"||typeof p=="bigint")&&i!=="body"&&Bl(o,""+p);break;case"className":dl(o,"class",p);break;case"tabIndex":dl(o,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":dl(o,c,p);break;case"style":Qp(o,p,T);break;case"data":if(i!=="object"){dl(o,"data",p);break}case"src":case"href":if(p===""&&(i!=="a"||c!=="href")){o.removeAttribute(c);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){o.removeAttribute(c);break}p=Ui(""+p),o.setAttribute(c,p);break;case"action":case"formAction":if(typeof p=="function"){o.setAttribute(c,"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 T=="function"&&(c==="formAction"?(i!=="input"&&In(o,i,"name",v.name,v,null),In(o,i,"formEncType",v.formEncType,v,null),In(o,i,"formMethod",v.formMethod,v,null),In(o,i,"formTarget",v.formTarget,v,null)):(In(o,i,"encType",v.encType,v,null),In(o,i,"method",v.method,v,null),In(o,i,"target",v.target,v,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){o.removeAttribute(c);break}p=Ui(""+p),o.setAttribute(c,p);break;case"onClick":p!=null&&(o.onclick=Kh);break;case"onScroll":p!=null&&Wt("scroll",o);break;case"onScrollEnd":p!=null&&Wt("scrollend",o);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(c=p.__html,c!=null){if(v.children!=null)throw Error(r(60));o.innerHTML=c}}break;case"multiple":o.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":o.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){o.removeAttribute("xlink:href");break}c=Ui(""+p),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?o.setAttribute(c,""+p):o.removeAttribute(c);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":p&&typeof p!="function"&&typeof p!="symbol"?o.setAttribute(c,""):o.removeAttribute(c);break;case"capture":case"download":p===!0?o.setAttribute(c,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?o.setAttribute(c,p):o.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?o.setAttribute(c,p):o.removeAttribute(c);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?o.removeAttribute(c):o.setAttribute(c,p);break;case"popover":Wt("beforetoggle",o),Wt("toggle",o),jo(o,"popover",p);break;case"xlinkActuate":Ir(o,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":Ir(o,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":Ir(o,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":Ir(o,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":Ir(o,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":Ir(o,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":Ir(o,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":Ir(o,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":Ir(o,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":jo(o,"is",p);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=Tb.get(c)||c,jo(o,c,p))}}function Jv(o,i,c,p,v,T){switch(c){case"style":Qp(o,p,T);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(c=p.__html,c!=null){if(v.children!=null)throw Error(r(60));o.innerHTML=c}}break;case"children":typeof p=="string"?Bl(o,p):(typeof p=="number"||typeof p=="bigint")&&Bl(o,""+p);break;case"onScroll":p!=null&&Wt("scroll",o);break;case"onScrollEnd":p!=null&&Wt("scrollend",o);break;case"onClick":p!=null&&(o.onclick=Kh);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ce.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(v=c.endsWith("Capture"),i=c.slice(2,v?c.length-7:void 0),T=o[Pn]||null,T=T!=null?T[c]:null,typeof T=="function"&&o.removeEventListener(i,T,v),typeof p=="function")){typeof T!="function"&&T!==null&&(c in o?o[c]=null:o.hasAttribute(c)&&o.removeAttribute(c)),o.addEventListener(i,p,v);break e}c in o?o[c]=p:p===!0?o.setAttribute(c,""):jo(o,c,p)}}}function io(o,i,c){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Wt("error",o),Wt("load",o);var p=!1,v=!1,T;for(T in c)if(c.hasOwnProperty(T)){var U=c[T];if(U!=null)switch(T){case"src":p=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:In(o,i,T,U,c,null)}}v&&In(o,i,"srcSet",c.srcSet,c,null),p&&In(o,i,"src",c.src,c,null);return;case"input":Wt("invalid",o);var X=T=U=v=null,le=null,he=null;for(p in c)if(c.hasOwnProperty(p)){var Ee=c[p];if(Ee!=null)switch(p){case"name":v=Ee;break;case"type":U=Ee;break;case"checked":le=Ee;break;case"defaultChecked":he=Ee;break;case"value":T=Ee;break;case"defaultValue":X=Ee;break;case"children":case"dangerouslySetInnerHTML":if(Ee!=null)throw Error(r(137,i));break;default:In(o,i,p,Ee,c,null)}}Ed(o,T,X,le,he,U,v,!1),Ra(o);return;case"select":Wt("invalid",o),p=U=T=null;for(v in c)if(c.hasOwnProperty(v)&&(X=c[v],X!=null))switch(v){case"value":T=X;break;case"defaultValue":U=X;break;case"multiple":p=X;default:In(o,i,v,X,c,null)}i=T,c=U,o.multiple=!!p,i!=null?Vi(o,!!p,i,!1):c!=null&&Vi(o,!!p,c,!0);return;case"textarea":Wt("invalid",o),T=v=p=null;for(U in c)if(c.hasOwnProperty(U)&&(X=c[U],X!=null))switch(U){case"value":p=X;break;case"defaultValue":v=X;break;case"children":T=X;break;case"dangerouslySetInnerHTML":if(X!=null)throw Error(r(91));break;default:In(o,i,U,X,c,null)}Rs(o,p,v,T),Ra(o);return;case"option":for(le in c)if(c.hasOwnProperty(le)&&(p=c[le],p!=null))switch(le){case"selected":o.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:In(o,i,le,p,c,null)}return;case"dialog":Wt("beforetoggle",o),Wt("toggle",o),Wt("cancel",o),Wt("close",o);break;case"iframe":case"object":Wt("load",o);break;case"video":case"audio":for(p=0;p<ff.length;p++)Wt(ff[p],o);break;case"image":Wt("error",o),Wt("load",o);break;case"details":Wt("toggle",o);break;case"embed":case"source":case"link":Wt("error",o),Wt("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(he in c)if(c.hasOwnProperty(he)&&(p=c[he],p!=null))switch(he){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:In(o,i,he,p,c,null)}return;default:if(Rd(i)){for(Ee in c)c.hasOwnProperty(Ee)&&(p=c[Ee],p!==void 0&&Jv(o,i,Ee,p,c,void 0));return}}for(X in c)c.hasOwnProperty(X)&&(p=c[X],p!=null&&In(o,i,X,p,c,null))}function GH(o,i,c,p){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,T=null,U=null,X=null,le=null,he=null,Ee=null;for(ye in c){var De=c[ye];if(c.hasOwnProperty(ye)&&De!=null)switch(ye){case"checked":break;case"value":break;case"defaultValue":le=De;default:p.hasOwnProperty(ye)||In(o,i,ye,null,p,De)}}for(var ve in p){var ye=p[ve];if(De=c[ve],p.hasOwnProperty(ve)&&(ye!=null||De!=null))switch(ve){case"type":T=ye;break;case"name":v=ye;break;case"checked":he=ye;break;case"defaultChecked":Ee=ye;break;case"value":U=ye;break;case"defaultValue":X=ye;break;case"children":case"dangerouslySetInnerHTML":if(ye!=null)throw Error(r(137,i));break;default:ye!==De&&In(o,i,ve,ye,p,De)}}kc(o,U,X,le,he,Ee,T,v);return;case"select":ye=U=X=ve=null;for(T in c)if(le=c[T],c.hasOwnProperty(T)&&le!=null)switch(T){case"value":break;case"multiple":ye=le;default:p.hasOwnProperty(T)||In(o,i,T,null,p,le)}for(v in p)if(T=p[v],le=c[v],p.hasOwnProperty(v)&&(T!=null||le!=null))switch(v){case"value":ve=T;break;case"defaultValue":X=T;break;case"multiple":U=T;default:T!==le&&In(o,i,v,T,p,le)}i=X,c=U,p=ye,ve!=null?Vi(o,!!c,ve,!1):!!p!=!!c&&(i!=null?Vi(o,!!c,i,!0):Vi(o,!!c,c?[]:"",!1));return;case"textarea":ye=ve=null;for(X in c)if(v=c[X],c.hasOwnProperty(X)&&v!=null&&!p.hasOwnProperty(X))switch(X){case"value":break;case"children":break;default:In(o,i,X,null,p,v)}for(U in p)if(v=p[U],T=c[U],p.hasOwnProperty(U)&&(v!=null||T!=null))switch(U){case"value":ve=v;break;case"defaultValue":ye=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==T&&In(o,i,U,v,p,T)}_c(o,ve,ye);return;case"option":for(var kt in c)if(ve=c[kt],c.hasOwnProperty(kt)&&ve!=null&&!p.hasOwnProperty(kt))switch(kt){case"selected":o.selected=!1;break;default:In(o,i,kt,null,p,ve)}for(le in p)if(ve=p[le],ye=c[le],p.hasOwnProperty(le)&&ve!==ye&&(ve!=null||ye!=null))switch(le){case"selected":o.selected=ve&&typeof ve!="function"&&typeof ve!="symbol";break;default:In(o,i,le,ve,p,ye)}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 Ot in c)ve=c[Ot],c.hasOwnProperty(Ot)&&ve!=null&&!p.hasOwnProperty(Ot)&&In(o,i,Ot,null,p,ve);for(he in p)if(ve=p[he],ye=c[he],p.hasOwnProperty(he)&&ve!==ye&&(ve!=null||ye!=null))switch(he){case"children":case"dangerouslySetInnerHTML":if(ve!=null)throw Error(r(137,i));break;default:In(o,i,he,ve,p,ye)}return;default:if(Rd(i)){for(var kn in c)ve=c[kn],c.hasOwnProperty(kn)&&ve!==void 0&&!p.hasOwnProperty(kn)&&Jv(o,i,kn,void 0,p,ve);for(Ee in p)ve=p[Ee],ye=c[Ee],!p.hasOwnProperty(Ee)||ve===ye||ve===void 0&&ye===void 0||Jv(o,i,Ee,ve,p,ye);return}}for(var ue in c)ve=c[ue],c.hasOwnProperty(ue)&&ve!=null&&!p.hasOwnProperty(ue)&&In(o,i,ue,null,p,ve);for(De in p)ve=p[De],ye=c[De],!p.hasOwnProperty(De)||ve===ye||ve==null&&ye==null||In(o,i,De,ve,p,ye)}var ey=null,ty=null;function Yh(o){return o.nodeType===9?o:o.ownerDocument}function rP(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function oP(o,i){if(o===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&i==="foreignObject"?0:o}function ny(o,i){return o==="textarea"||o==="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 ry=null;function VH(){var o=window.event;return o&&o.type==="popstate"?o===ry?!1:(ry=o,!0):(ry=null,!1)}var lP=typeof setTimeout=="function"?setTimeout:void 0,UH=typeof clearTimeout=="function"?clearTimeout:void 0,iP=typeof Promise=="function"?Promise:void 0,qH=typeof queueMicrotask=="function"?queueMicrotask:typeof iP<"u"?function(o){return iP.resolve(null).then(o).catch(WH)}:lP;function WH(o){setTimeout(function(){throw o})}function Ya(o){return o==="head"}function aP(o,i){var c=i,p=0,v=0;do{var T=c.nextSibling;if(o.removeChild(c),T&&T.nodeType===8)if(c=T.data,c==="/$"){if(0<p&&8>p){c=p;var U=o.ownerDocument;if(c&1&&hf(U.documentElement),c&2&&hf(U.body),c&4)for(c=U.head,hf(c),U=c.firstChild;U;){var X=U.nextSibling,le=U.nodeName;U[Ro]||le==="SCRIPT"||le==="STYLE"||le==="LINK"&&U.rel.toLowerCase()==="stylesheet"||c.removeChild(U),U=X}}if(v===0){o.removeChild(T),wf(i);return}v--}else c==="$"||c==="$?"||c==="$!"?v++:p=c.charCodeAt(0)-48;else p=0;c=T}while(c);wf(i)}function oy(o){var i=o.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var c=i;switch(i=i.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":oy(c),Yn(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}o.removeChild(c)}}function KH(o,i,c,p){for(;o.nodeType===1;){var v=c;if(o.nodeName.toLowerCase()!==i.toLowerCase()){if(!p&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(p){if(!o[Ro])switch(i){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(T=o.getAttribute("rel"),T==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(T!==v.rel||o.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||o.getAttribute("title")!==(v.title==null?null:v.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(T=o.getAttribute("src"),(T!==(v.src==null?null:v.src)||o.getAttribute("type")!==(v.type==null?null:v.type)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&T&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(i==="input"&&o.type==="hidden"){var T=v.name==null?null:""+v.name;if(v.type==="hidden"&&o.getAttribute("name")===T)return o}else return o;if(o=Ql(o.nextSibling),o===null)break}return null}function YH(o,i,c){if(i==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!c||(o=Ql(o.nextSibling),o===null))return null;return o}function ly(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState==="complete"}function XH(o,i){var c=o.ownerDocument;if(o.data!=="$?"||c.readyState==="complete")i();else{var p=function(){i(),c.removeEventListener("DOMContentLoaded",p)};c.addEventListener("DOMContentLoaded",p),o._reactRetry=p}}function Ql(o){for(;o!=null;o=o.nextSibling){var i=o.nodeType;if(i===1||i===3)break;if(i===8){if(i=o.data,i==="$"||i==="$!"||i==="$?"||i==="F!"||i==="F")break;if(i==="/$")return null}}return o}var iy=null;function sP(o){o=o.previousSibling;for(var i=0;o;){if(o.nodeType===8){var c=o.data;if(c==="$"||c==="$!"||c==="$?"){if(i===0)return o;i--}else c==="/$"&&i++}o=o.previousSibling}return null}function cP(o,i,c){switch(i=Yh(c),o){case"html":if(o=i.documentElement,!o)throw Error(r(452));return o;case"head":if(o=i.head,!o)throw Error(r(453));return o;case"body":if(o=i.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function hf(o){for(var i=o.attributes;i.length;)o.removeAttributeNode(i[0]);Yn(o)}var Sl=new Map,uP=new Set;function Xh(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var fa=B.d;B.d={f:QH,r:ZH,D:JH,C:eN,L:tN,m:nN,X:oN,S:rN,M:lN};function QH(){var o=fa.f(),i=jh();return o||i}function ZH(o){var i=ir(o);i!==null&&i.tag===5&&i.type==="form"?OT(i):fa.r(o)}var uu=typeof document>"u"?null:document;function dP(o,i,c){var p=uu;if(p&&typeof i=="string"&&i){var v=Ao(i);v='link[rel="'+o+'"][href="'+v+'"]',typeof c=="string"&&(v+='[crossorigin="'+c+'"]'),uP.has(v)||(uP.add(v),o={rel:o,crossOrigin:c,href:i},p.querySelector(v)===null&&(i=p.createElement("link"),io(i,"link",o),Vn(i),p.head.appendChild(i)))}}function JH(o){fa.D(o),dP("dns-prefetch",o,null)}function eN(o,i){fa.C(o,i),dP("preconnect",o,i)}function tN(o,i,c){fa.L(o,i,c);var p=uu;if(p&&o&&i){var v='link[rel="preload"][as="'+Ao(i)+'"]';i==="image"&&c&&c.imageSrcSet?(v+='[imagesrcset="'+Ao(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(v+='[imagesizes="'+Ao(c.imageSizes)+'"]')):v+='[href="'+Ao(o)+'"]';var T=v;switch(i){case"style":T=du(o);break;case"script":T=fu(o)}Sl.has(T)||(o=h({rel:"preload",href:i==="image"&&c&&c.imageSrcSet?void 0:o,as:i},c),Sl.set(T,o),p.querySelector(v)!==null||i==="style"&&p.querySelector(gf(T))||i==="script"&&p.querySelector(mf(T))||(i=p.createElement("link"),io(i,"link",o),Vn(i),p.head.appendChild(i)))}}function nN(o,i){fa.m(o,i);var c=uu;if(c&&o){var p=i&&typeof i.as=="string"?i.as:"script",v='link[rel="modulepreload"][as="'+Ao(p)+'"][href="'+Ao(o)+'"]',T=v;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":T=fu(o)}if(!Sl.has(T)&&(o=h({rel:"modulepreload",href:o},i),Sl.set(T,o),c.querySelector(v)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(mf(T)))return}p=c.createElement("link"),io(p,"link",o),Vn(p),c.head.appendChild(p)}}}function rN(o,i,c){fa.S(o,i,c);var p=uu;if(p&&o){var v=qr(p).hoistableStyles,T=du(o);i=i||"default";var U=v.get(T);if(!U){var X={loading:0,preload:null};if(U=p.querySelector(gf(T)))X.loading=5;else{o=h({rel:"stylesheet",href:o,"data-precedence":i},c),(c=Sl.get(T))&&ay(o,c);var le=U=p.createElement("link");Vn(le),io(le,"link",o),le._p=new Promise(function(he,Ee){le.onload=he,le.onerror=Ee}),le.addEventListener("load",function(){X.loading|=1}),le.addEventListener("error",function(){X.loading|=2}),X.loading|=4,Qh(U,i,p)}U={type:"stylesheet",instance:U,count:1,state:X},v.set(T,U)}}}function oN(o,i){fa.X(o,i);var c=uu;if(c&&o){var p=qr(c).hoistableScripts,v=fu(o),T=p.get(v);T||(T=c.querySelector(mf(v)),T||(o=h({src:o,async:!0},i),(i=Sl.get(v))&&sy(o,i),T=c.createElement("script"),Vn(T),io(T,"link",o),c.head.appendChild(T)),T={type:"script",instance:T,count:1,state:null},p.set(v,T))}}function lN(o,i){fa.M(o,i);var c=uu;if(c&&o){var p=qr(c).hoistableScripts,v=fu(o),T=p.get(v);T||(T=c.querySelector(mf(v)),T||(o=h({src:o,async:!0,type:"module"},i),(i=Sl.get(v))&&sy(o,i),T=c.createElement("script"),Vn(T),io(T,"link",o),c.head.appendChild(T)),T={type:"script",instance:T,count:1,state:null},p.set(v,T))}}function fP(o,i,c,p){var v=(v=oe.current)?Xh(v):null;if(!v)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(i=du(c.href),c=qr(v).hoistableStyles,p=c.get(i),p||(p={type:"style",instance:null,count:0,state:null},c.set(i,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){o=du(c.href);var T=qr(v).hoistableStyles,U=T.get(o);if(U||(v=v.ownerDocument||v,U={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},T.set(o,U),(T=v.querySelector(gf(o)))&&!T._p&&(U.instance=T,U.state.loading=5),Sl.has(o)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},Sl.set(o,c),T||iN(v,o,c,U.state))),i&&p===null)throw Error(r(528,""));return U}if(i&&p!==null)throw Error(r(529,""));return null;case"script":return i=c.async,c=c.src,typeof c=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=fu(c),c=qr(v).hoistableScripts,p=c.get(i),p||(p={type:"script",instance:null,count:0,state:null},c.set(i,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function du(o){return'href="'+Ao(o)+'"'}function gf(o){return'link[rel="stylesheet"]['+o+"]"}function pP(o){return h({},o,{"data-precedence":o.precedence,precedence:null})}function iN(o,i,c,p){o.querySelector('link[rel="preload"][as="style"]['+i+"]")?p.loading=1:(i=o.createElement("link"),p.preload=i,i.addEventListener("load",function(){return p.loading|=1}),i.addEventListener("error",function(){return p.loading|=2}),io(i,"link",c),Vn(i),o.head.appendChild(i))}function fu(o){return'[src="'+Ao(o)+'"]'}function mf(o){return"script[async]"+o}function hP(o,i,c){if(i.count++,i.instance===null)switch(i.type){case"style":var p=o.querySelector('style[data-href~="'+Ao(c.href)+'"]');if(p)return i.instance=p,Vn(p),p;var v=h({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return p=(o.ownerDocument||o).createElement("style"),Vn(p),io(p,"style",v),Qh(p,c.precedence,o),i.instance=p;case"stylesheet":v=du(c.href);var T=o.querySelector(gf(v));if(T)return i.state.loading|=4,i.instance=T,Vn(T),T;p=pP(c),(v=Sl.get(v))&&ay(p,v),T=(o.ownerDocument||o).createElement("link"),Vn(T);var U=T;return U._p=new Promise(function(X,le){U.onload=X,U.onerror=le}),io(T,"link",p),i.state.loading|=4,Qh(T,c.precedence,o),i.instance=T;case"script":return T=fu(c.src),(v=o.querySelector(mf(T)))?(i.instance=v,Vn(v),v):(p=c,(v=Sl.get(T))&&(p=h({},c),sy(p,v)),o=o.ownerDocument||o,v=o.createElement("script"),Vn(v),io(v,"link",p),o.head.appendChild(v),i.instance=v);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(p=i.instance,i.state.loading|=4,Qh(p,c.precedence,o));return i.instance}function Qh(o,i,c){for(var p=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=p.length?p[p.length-1]:null,T=v,U=0;U<p.length;U++){var X=p[U];if(X.dataset.precedence===i)T=X;else if(T!==v)break}T?T.parentNode.insertBefore(o,T.nextSibling):(i=c.nodeType===9?c.head:c,i.insertBefore(o,i.firstChild))}function ay(o,i){o.crossOrigin==null&&(o.crossOrigin=i.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=i.referrerPolicy),o.title==null&&(o.title=i.title)}function sy(o,i){o.crossOrigin==null&&(o.crossOrigin=i.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=i.referrerPolicy),o.integrity==null&&(o.integrity=i.integrity)}var Zh=null;function gP(o,i,c){if(Zh===null){var p=new Map,v=Zh=new Map;v.set(c,p)}else v=Zh,p=v.get(c),p||(p=new Map,v.set(c,p));if(p.has(o))return p;for(p.set(o,null),c=c.getElementsByTagName(o),v=0;v<c.length;v++){var T=c[v];if(!(T[Ro]||T[Jt]||o==="link"&&T.getAttribute("rel")==="stylesheet")&&T.namespaceURI!=="http://www.w3.org/2000/svg"){var U=T.getAttribute(i)||"";U=o+U;var X=p.get(U);X?X.push(T):p.set(U,[T])}}return p}function mP(o,i,c){o=o.ownerDocument||o,o.head.insertBefore(c,i==="title"?o.querySelector("head > title"):null)}function aN(o,i,c){if(c===1||i.itemProp!=null)return!1;switch(o){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 o=i.disabled,typeof i.precedence=="string"&&o==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 bP(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}var bf=null;function sN(){}function cN(o,i,c){if(bf===null)throw Error(r(475));var p=bf;if(i.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var v=du(c.href),T=o.querySelector(gf(v));if(T){o=T._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(p.count++,p=Jh.bind(p),o.then(p,p)),i.state.loading|=4,i.instance=T,Vn(T);return}T=o.ownerDocument||o,c=pP(c),(v=Sl.get(v))&&ay(c,v),T=T.createElement("link"),Vn(T);var U=T;U._p=new Promise(function(X,le){U.onload=X,U.onerror=le}),io(T,"link",c),i.instance=T}p.stylesheets===null&&(p.stylesheets=new Map),p.stylesheets.set(i,o),(o=i.state.preload)&&(i.state.loading&3)===0&&(p.count++,i=Jh.bind(p),o.addEventListener("load",i),o.addEventListener("error",i))}}function uN(){if(bf===null)throw Error(r(475));var o=bf;return o.stylesheets&&o.count===0&&cy(o,o.stylesheets),0<o.count?function(i){var c=setTimeout(function(){if(o.stylesheets&&cy(o,o.stylesheets),o.unsuspend){var p=o.unsuspend;o.unsuspend=null,p()}},6e4);return o.unsuspend=i,function(){o.unsuspend=null,clearTimeout(c)}}:null}function Jh(){if(this.count--,this.count===0){if(this.stylesheets)cy(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var eg=null;function cy(o,i){o.stylesheets=null,o.unsuspend!==null&&(o.count++,eg=new Map,i.forEach(dN,o),eg=null,Jh.call(o))}function dN(o,i){if(!(i.state.loading&4)){var c=eg.get(o);if(c)var p=c.get(null);else{c=new Map,eg.set(o,c);for(var v=o.querySelectorAll("link[data-precedence],style[data-precedence]"),T=0;T<v.length;T++){var U=v[T];(U.nodeName==="LINK"||U.getAttribute("media")!=="not all")&&(c.set(U.dataset.precedence,U),p=U)}p&&c.set(null,p)}v=i.instance,U=v.getAttribute("data-precedence"),T=c.get(U)||p,T===p&&c.set(null,v),c.set(U,v),this.count++,p=Jh.bind(this),v.addEventListener("load",p),v.addEventListener("error",p),T?T.parentNode.insertBefore(v,T.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(v,o.firstChild)),i.state.loading|=4}}var vf={$$typeof:O,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function fN(o,i,c,p,v,T,U,X){this.tag=1,this.containerInfo=o,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=on(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=on(0),this.hiddenUpdates=on(null),this.identifierPrefix=p,this.onUncaughtError=v,this.onCaughtError=T,this.onRecoverableError=U,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=X,this.incompleteTransitions=new Map}function vP(o,i,c,p,v,T,U,X,le,he,Ee,De){return o=new fN(o,i,c,U,X,le,he,De),i=1,T===!0&&(i|=24),T=qo(3,null,null,i),o.current=T,T.stateNode=o,i=Vb(),i.refCount++,o.pooledCache=i,i.refCount++,T.memoizedState={element:p,isDehydrated:c,cache:i},Kb(T),o}function yP(o){return o?(o=Gc,o):Gc}function CP(o,i,c,p,v,T){v=yP(v),p.context===null?p.context=v:p.pendingContext=v,p=$a(i),p.payload={element:c},T=T===void 0?null:T,T!==null&&(p.callback=T),c=za(o,p,i),c!==null&&(Qo(c,o,i),Wd(c,o,i))}function SP(o,i){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var c=o.retryLane;o.retryLane=c!==0&&c<i?c:i}}function uy(o,i){SP(o,i),(o=o.alternate)&&SP(o,i)}function wP(o){if(o.tag===13){var i=Bc(o,67108864);i!==null&&Qo(i,o,67108864),uy(o,67108864)}}var tg=!0;function pN(o,i,c,p){var v=_.T;_.T=null;var T=B.p;try{B.p=2,dy(o,i,c,p)}finally{B.p=T,_.T=v}}function hN(o,i,c,p){var v=_.T;_.T=null;var T=B.p;try{B.p=8,dy(o,i,c,p)}finally{B.p=T,_.T=v}}function dy(o,i,c,p){if(tg){var v=fy(p);if(v===null)Zv(o,i,p,ng,c),MP(o,p);else if(mN(v,o,i,c,p))p.stopPropagation();else if(MP(o,p),i&4&&-1<gN.indexOf(o)){for(;v!==null;){var T=ir(v);if(T!==null)switch(T.tag){case 3:if(T=T.stateNode,T.current.memoizedState.isDehydrated){var U=Ze(T.pendingLanes);if(U!==0){var X=T;for(X.pendingLanes|=2,X.entangledLanes|=2;U;){var le=1<<31-_e(U);X.entanglements[1]|=le,U&=~le}Ti(T),(wn&6)===0&&(Hh=lt()+500,df(0))}}break;case 13:X=Bc(T,2),X!==null&&Qo(X,T,2),jh(),uy(T,2)}if(T=fy(p),T===null&&Zv(o,i,p,ng,c),T===v)break;v=T}v!==null&&p.stopPropagation()}else Zv(o,i,p,null,c)}}function fy(o){return o=qi(o),py(o)}var ng=null;function py(o){if(ng=null,o=$n(o),o!==null){var i=a(o);if(i===null)o=null;else{var c=i.tag;if(c===13){if(o=s(i),o!==null)return o;o=null}else if(c===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return ng=o,null}function xP(o){switch(o){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(me()){case tt:return 2;case ze:return 8;case et:case He:return 32;case yt:return 268435456;default:return 32}default:return 32}}var hy=!1,Xa=null,Qa=null,Za=null,yf=new Map,Cf=new Map,Ja=[],gN="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 MP(o,i){switch(o){case"focusin":case"focusout":Xa=null;break;case"dragenter":case"dragleave":Qa=null;break;case"mouseover":case"mouseout":Za=null;break;case"pointerover":case"pointerout":yf.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cf.delete(i.pointerId)}}function Sf(o,i,c,p,v,T){return o===null||o.nativeEvent!==T?(o={blockedOn:i,domEventName:c,eventSystemFlags:p,nativeEvent:T,targetContainers:[v]},i!==null&&(i=ir(i),i!==null&&wP(i)),o):(o.eventSystemFlags|=p,i=o.targetContainers,v!==null&&i.indexOf(v)===-1&&i.push(v),o)}function mN(o,i,c,p,v){switch(i){case"focusin":return Xa=Sf(Xa,o,i,c,p,v),!0;case"dragenter":return Qa=Sf(Qa,o,i,c,p,v),!0;case"mouseover":return Za=Sf(Za,o,i,c,p,v),!0;case"pointerover":var T=v.pointerId;return yf.set(T,Sf(yf.get(T)||null,o,i,c,p,v)),!0;case"gotpointercapture":return T=v.pointerId,Cf.set(T,Sf(Cf.get(T)||null,o,i,c,p,v)),!0}return!1}function TP(o){var i=$n(o.target);if(i!==null){var c=a(i);if(c!==null){if(i=c.tag,i===13){if(i=s(c),i!==null){o.blockedOn=i,to(o.priority,function(){if(c.tag===13){var p=Xo();p=Ur(p);var v=Bc(c,p);v!==null&&Qo(v,c,p),uy(c,p)}});return}}else if(i===3&&c.stateNode.current.memoizedState.isDehydrated){o.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}o.blockedOn=null}function rg(o){if(o.blockedOn!==null)return!1;for(var i=o.targetContainers;0<i.length;){var c=fy(o.nativeEvent);if(c===null){c=o.nativeEvent;var p=new c.constructor(c.type,c);As=p,c.target.dispatchEvent(p),As=null}else return i=ir(c),i!==null&&wP(i),o.blockedOn=c,!1;i.shift()}return!0}function EP(o,i,c){rg(o)&&c.delete(i)}function bN(){hy=!1,Xa!==null&&rg(Xa)&&(Xa=null),Qa!==null&&rg(Qa)&&(Qa=null),Za!==null&&rg(Za)&&(Za=null),yf.forEach(EP),Cf.forEach(EP)}function og(o,i){o.blockedOn===i&&(o.blockedOn=null,hy||(hy=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,bN)))}var lg=null;function PP(o){lg!==o&&(lg=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){lg===o&&(lg=null);for(var i=0;i<o.length;i+=3){var c=o[i],p=o[i+1],v=o[i+2];if(typeof p!="function"){if(py(p||c)===null)continue;break}var T=ir(c);T!==null&&(o.splice(i,3),i-=3,pv(T,{pending:!0,data:v,method:c.method,action:p},p,v))}}))}function wf(o){function i(le){return og(le,o)}Xa!==null&&og(Xa,o),Qa!==null&&og(Qa,o),Za!==null&&og(Za,o),yf.forEach(i),Cf.forEach(i);for(var c=0;c<Ja.length;c++){var p=Ja[c];p.blockedOn===o&&(p.blockedOn=null)}for(;0<Ja.length&&(c=Ja[0],c.blockedOn===null);)TP(c),c.blockedOn===null&&Ja.shift();if(c=(o.ownerDocument||o).$$reactFormReplay,c!=null)for(p=0;p<c.length;p+=3){var v=c[p],T=c[p+1],U=v[Pn]||null;if(typeof T=="function")U||PP(c);else if(U){var X=null;if(T&&T.hasAttribute("formAction")){if(v=T,U=T[Pn]||null)X=U.formAction;else if(py(v)!==null)continue}else X=U.action;typeof X=="function"?c[p+1]=X:(c.splice(p,3),p-=3),PP(c)}}}function gy(o){this._internalRoot=o}ig.prototype.render=gy.prototype.render=function(o){var i=this._internalRoot;if(i===null)throw Error(r(409));var c=i.current,p=Xo();CP(c,p,o,i,null,null)},ig.prototype.unmount=gy.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var i=o.containerInfo;CP(o.current,2,null,o,null,null),jh(),i[Or]=null}};function ig(o){this._internalRoot=o}ig.prototype.unstable_scheduleHydration=function(o){if(o){var i=Kn();o={blockedOn:null,target:o,priority:i};for(var c=0;c<Ja.length&&i!==0&&i<Ja[c].priority;c++);Ja.splice(c,0,o),c===0&&TP(o)}};var RP=t.version;if(RP!=="19.1.1")throw Error(r(527,RP,"19.1.1"));B.findDOMNode=function(o){var i=o._reactInternals;if(i===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=d(i),o=o!==null?f(o):null,o=o===null?null:o.stateNode,o};var vN={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ag=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ag.isDisabled&&ag.supportsFiber)try{Ke=ag.inject(vN),Xe=ag}catch{}}return Ff.createRoot=function(o,i){if(!l(o))throw Error(r(299));var c=!1,p="",v=VT,T=UT,U=qT,X=null;return i!=null&&(i.unstable_strictMode===!0&&(c=!0),i.identifierPrefix!==void 0&&(p=i.identifierPrefix),i.onUncaughtError!==void 0&&(v=i.onUncaughtError),i.onCaughtError!==void 0&&(T=i.onCaughtError),i.onRecoverableError!==void 0&&(U=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(X=i.unstable_transitionCallbacks)),i=vP(o,1,!1,null,null,c,p,v,T,U,X,null),o[Or]=i.current,Qv(o),new gy(i)},Ff.hydrateRoot=function(o,i,c){if(!l(o))throw Error(r(299));var p=!1,v="",T=VT,U=UT,X=qT,le=null,he=null;return c!=null&&(c.unstable_strictMode===!0&&(p=!0),c.identifierPrefix!==void 0&&(v=c.identifierPrefix),c.onUncaughtError!==void 0&&(T=c.onUncaughtError),c.onCaughtError!==void 0&&(U=c.onCaughtError),c.onRecoverableError!==void 0&&(X=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(le=c.unstable_transitionCallbacks),c.formState!==void 0&&(he=c.formState)),i=vP(o,1,!0,i,c??null,p,v,T,U,X,le,he),i.context=yP(null),c=i.current,p=Xo(),p=Ur(p),v=$a(p),v.callback=null,za(c,v,p),c=p,i.current.lanes=c,Wn(i,c),Ti(i),o[Or]=i.current,Qv(o),new ig(i)},Ff.version="19.1.1",Ff}var pD;function mce(){if(pD)return Ww.exports;pD=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Ww.exports=gce(),Ww.exports}var bce=mce();const vce=xp(bce),yce=document.getElementById("root"),Cce=vce.createRoot(yce);Cce.render(x.jsx(m.StrictMode,{children:x.jsx(fce,{})}));
