From d44e995b0a31e04daeaca841fbcee9f7c0172577 Mon Sep 17 00:00:00 2001 From: Kilian Date: Fri, 13 Dec 2024 14:22:40 -0600 Subject: [PATCH] reverted routes.py --- jhub_apps/service/routes.py | 20 +++------ jhub_apps/static/js/index.js | 78 ++++++++++++++++++------------------ 2 files changed, 44 insertions(+), 54 deletions(-) diff --git a/jhub_apps/service/routes.py b/jhub_apps/service/routes.py index 11a7f4a5..113a9713 100644 --- a/jhub_apps/service/routes.py +++ b/jhub_apps/service/routes.py @@ -162,6 +162,7 @@ async def create_server( user_options=server.user_options, ) + @router.post("/server/") @router.post("/server/{server_name}") async def start_server( @@ -175,17 +176,6 @@ async def start_server( # User could be starting a shared server, in which case the # user starting the server will not be the owner of the server server_owner = request.query_params.get("owner", user.name) - - # Check if the server is shared and the user has access - shared_servers = get_shared_servers(current_hub_user=hub_client.get_user()) - if server_name not in [s['name'] for s in shared_servers] and server_owner != user.name: - logger.error(f"User '{user.name}' does not have access to shared server '{server_name}'") - raise HTTPException( - detail=f"User '{user.name}' doesn't have access to shared server: '{server_name}'", - status_code=status.HTTP_403_FORBIDDEN, - ) - - # Attempt to start the server try: response = hub_client.start_server( username=server_owner, @@ -193,7 +183,8 @@ async def start_server( ) if response.status_code in [403, 404]: raise HTTPException( - detail=f"Failed to start server: {response.text}", + detail=f"User doesn't have permissions to start server: '{server_name}' " + f"or the server with this name does not exist", status_code=status.HTTP_403_FORBIDDEN, ) response.raise_for_status() @@ -202,15 +193,14 @@ async def start_server( detail=f"Probably server '{server_name}' is already running: {e}", status_code=status.HTTP_400_BAD_REQUEST, ) - if response is None: raise HTTPException( - detail=f"Server '{server_name}' not found", + detail=f"server '{server_name}' not found", status_code=status.HTTP_404_NOT_FOUND, ) - return response.status_code + @router.put("/server/{server_name}") async def update_server( server: ServerCreation = Depends(Checker(ServerCreation)), diff --git a/jhub_apps/static/js/index.js b/jhub_apps/static/js/index.js index 037a1d41..68c74223 100644 --- a/jhub_apps/static/js/index.js +++ b/jhub_apps/static/js/index.js @@ -1,4 +1,4 @@ -var M3=Object.defineProperty;var $b=e=>{throw TypeError(e)};var L3=(e,t,n)=>t in e?M3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Cc=(e,t,n)=>L3(e,typeof t!="symbol"?t+"":t,n),hm=(e,t,n)=>t.has(e)||$b("Cannot "+n);var Z=(e,t,n)=>(hm(e,t,"read from private field"),n?n.call(e):t.get(e)),gt=(e,t,n)=>t.has(e)?$b("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),qe=(e,t,n,r)=>(hm(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),zt=(e,t,n)=>(hm(e,t,"access private method"),n);var pd=(e,t,n,r)=>({set _(s){qe(e,t,s,n)},get _(){return Z(e,t,r)}});function X3(e,t){for(var n=0;nr[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(s){if(s.ep)return;s.ep=!0;const a=n(s);fetch(s.href,a)}})();function Op(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mm={exports:{}},Dc={},gm={exports:{}},Et={};/** +var L3=Object.defineProperty;var $b=e=>{throw TypeError(e)};var X3=(e,t,n)=>t in e?L3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Cc=(e,t,n)=>X3(e,typeof t!="symbol"?t+"":t,n),mm=(e,t,n)=>t.has(e)||$b("Cannot "+n);var G=(e,t,n)=>(mm(e,t,"read from private field"),n?n.call(e):t.get(e)),gt=(e,t,n)=>t.has(e)?$b("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),qe=(e,t,n,r)=>(mm(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),zt=(e,t,n)=>(mm(e,t,"access private method"),n);var pd=(e,t,n,r)=>({set _(s){qe(e,t,s,n)},get _(){return G(e,t,r)}});function N3(e,t){for(var n=0;nr[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(s){if(s.ep)return;s.ep=!0;const a=n(s);fetch(s.href,a)}})();function Op(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gm={exports:{}},Dc={},ym={exports:{}},Et={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var M3=Object.defineProperty;var $b=e=>{throw TypeError(e)};var L3=(e,t,n)=>t in * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var e8;function N3(){if(e8)return Et;e8=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.iterator;function y(E){return E===null||typeof E!="object"?null:(E=m&&E[m]||E["@@iterator"],typeof E=="function"?E:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,w={};function x(E,G,X){this.props=E,this.context=G,this.refs=w,this.updater=X||H}x.prototype.isReactComponent={},x.prototype.setState=function(E,G){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,G,"setState")},x.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function S(){}S.prototype=x.prototype;function z(E,G,X){this.props=E,this.context=G,this.refs=w,this.updater=X||H}var O=z.prototype=new S;O.constructor=z,A(O,x.prototype),O.isPureReactComponent=!0;var C=Array.isArray,D=Object.prototype.hasOwnProperty,k={current:null},R={key:!0,ref:!0,__self:!0,__source:!0};function M(E,G,X){var ee,te={},ue=null,de=null;if(G!=null)for(ee in G.ref!==void 0&&(de=G.ref),G.key!==void 0&&(ue=""+G.key),G)D.call(G,ee)&&!R.hasOwnProperty(ee)&&(te[ee]=G[ee]);var xe=arguments.length-2;if(xe===1)te.children=X;else if(1{throw TypeError(e)};var L3=(e,t,n)=>t in * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var n8;function B3(){if(n8)return Dc;n8=1;var e=sy(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(u,f,p){var h,m={},y=null,H=null;p!==void 0&&(y=""+p),f.key!==void 0&&(y=""+f.key),f.ref!==void 0&&(H=f.ref);for(h in f)r.call(f,h)&&!a.hasOwnProperty(h)&&(m[h]=f[h]);if(u&&u.defaultProps)for(h in f=u.defaultProps,f)m[h]===void 0&&(m[h]=f[h]);return{$$typeof:t,type:u,key:y,ref:H,props:m,_owner:s.current}}return Dc.Fragment=n,Dc.jsx=l,Dc.jsxs=l,Dc}var r8;function V3(){return r8||(r8=1,mm.exports=B3()),mm.exports}var v=V3();const Pu={black:"#000",white:"#fff"},Fa={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ya={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},qa={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Za={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ga={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Tc={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},I3={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"};function ks(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 Ro="$$material";function $d(){return $d=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Kn(Il,--kr):0,jl--,Mn===10&&(jl=1,Dp--),Mn}function Zr(){return Mn=kr2||xu(Mn)>3?"":" "}function o7(e,t){for(;--t&&Zr()&&!(Mn<48||Mn>102||Mn>57&&Mn<65||Mn>70&&Mn<97););return Bu(e,Ed()+(t<6&&rs()==32&&Zr()==32))}function rg(e){for(;Zr();)switch(Mn){case e:return kr;case 34:case 39:e!==34&&e!==39&&rg(Mn);break;case 40:e===41&&rg(e);break;case 92:Zr();break}return kr}function s7(e,t){for(;Zr()&&e+Mn!==57;)if(e+Mn===84&&rs()===47)break;return"/*"+Bu(t,kr-1)+"*"+Cp(e===47?e:Zr())}function i7(e){for(;!xu(rs());)Zr();return Bu(e,kr)}function a7(e){return w0(Ld("",null,null,null,[""],e=x0(e),0,[0],e))}function Ld(e,t,n,r,s,a,l,u,f){for(var p=0,h=0,m=l,y=0,H=0,A=0,w=1,x=1,S=1,z=0,O="",C=s,D=a,k=r,R=O;x;)switch(A=z,z=Zr()){case 40:if(A!=108&&Kn(R,m-1)==58){ng(R+=Yt(Md(z),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:R+=Md(z);break;case 9:case 10:case 13:case 32:R+=r7(A);break;case 92:R+=o7(Ed()-1,7);continue;case 47:switch(rs()){case 42:case 47:vd(l7(s7(Zr(),Ed()),t,n),f);break;default:R+="/"}break;case 123*w:u[p++]=Ko(R)*S;case 125*w:case 59:case 0:switch(z){case 0:case 125:x=0;case 59+h:S==-1&&(R=Yt(R,/\f/g,"")),H>0&&Ko(R)-m&&vd(H>32?s8(R+";",r,n,m-1):s8(Yt(R," ","")+";",r,n,m-2),f);break;case 59:R+=";";default:if(vd(k=o8(R,t,n,p,h,s,u,O,C=[],D=[],m),a),z===123)if(h===0)Ld(R,t,k,k,C,a,m,u,D);else switch(y===99&&Kn(R,3)===110?100:y){case 100:case 108:case 109:case 115:Ld(e,k,k,r&&vd(o8(e,k,k,0,0,s,u,O,s,C=[],m),D),s,D,m,u,r?C:D);break;default:Ld(R,k,k,k,[""],D,0,u,D)}}p=h=H=0,w=S=1,O=R="",m=l;break;case 58:m=1+Ko(R),H=A;default:if(w<1){if(z==123)--w;else if(z==125&&w++==0&&n7()==125)continue}switch(R+=Cp(z),z*w){case 38:S=h>0?1:(R+="\f",-1);break;case 44:u[p++]=(Ko(R)-1)*S,S=1;break;case 64:rs()===45&&(R+=Md(Zr())),y=rs(),h=m=Ko(O=R+=i7(Ed())),z++;break;case 45:A===45&&Ko(R)==2&&(w=0)}}return a}function o8(e,t,n,r,s,a,l,u,f,p,h){for(var m=s-1,y=s===0?a:[""],H=ly(y),A=0,w=0,x=0;A0?y[S]+" "+z:Yt(z,/&\f/g,y[S])))&&(f[x++]=O);return Tp(e,t,n,s===0?iy:u,f,p,h)}function l7(e,t,n){return Tp(e,t,n,y0,Cp(t7()),bu(e,2,-2),0)}function s8(e,t,n,r){return Tp(e,t,n,ay,bu(e,0,r),bu(e,r+1,-1),r)}function ll(e,t){for(var n="",r=ly(e),s=0;s6)switch(Kn(e,t+1)){case 109:if(Kn(e,t+4)!==45)break;case 102:return Yt(e,/(.+:)(.+)-([^]+)/,"$1"+Ft+"$2-$3$1"+tp+(Kn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ng(e,"stretch")?H0(Yt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Kn(e,t+1)!==115)break;case 6444:switch(Kn(e,Ko(e)-3-(~ng(e,"!important")&&10))){case 107:return Yt(e,":",":"+Ft)+e;case 101:return Yt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ft+(Kn(e,14)===45?"inline-":"")+"box$3$1"+Ft+"$2$3$1"+rr+"$2box$3")+e}break;case 5936:switch(Kn(e,t+11)){case 114:return Ft+e+rr+Yt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ft+e+rr+Yt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ft+e+rr+Yt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ft+e+rr+e+e}return e}var g7=function(t,n,r,s){if(t.length>-1&&!t.return)switch(t.type){case ay:t.return=H0(t.value,t.length);break;case A0:return ll([kc(t,{value:Yt(t.value,"@","@"+Ft)})],s);case iy:if(t.length)return e7(t.props,function(a){switch($3(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ll([kc(t,{props:[Yt(a,/:(read-\w+)/,":"+tp+"$1")]})],s);case"::placeholder":return ll([kc(t,{props:[Yt(a,/:(plac\w+)/,":"+Ft+"input-$1")]}),kc(t,{props:[Yt(a,/:(plac\w+)/,":"+tp+"$1")]}),kc(t,{props:[Yt(a,/:(plac\w+)/,rr+"input-$1")]})],s)}return""})}},y7=[g7],A7=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(w){var x=w.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var s=t.stylisPlugins||y7,a={},l,u=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(w){for(var x=w.getAttribute("data-emotion").split(" "),S=1;Sn.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Ro="$$material";function $d(){return $d=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Kn(Il,--kr):0,jl--,Mn===10&&(jl=1,Dp--),Mn}function Zr(){return Mn=kr2||xu(Mn)>3?"":" "}function s7(e,t){for(;--t&&Zr()&&!(Mn<48||Mn>102||Mn>57&&Mn<65||Mn>70&&Mn<97););return Bu(e,Ed()+(t<6&&rs()==32&&Zr()==32))}function og(e){for(;Zr();)switch(Mn){case e:return kr;case 34:case 39:e!==34&&e!==39&&og(Mn);break;case 40:e===41&&og(e);break;case 92:Zr();break}return kr}function i7(e,t){for(;Zr()&&e+Mn!==57;)if(e+Mn===84&&rs()===47)break;return"/*"+Bu(t,kr-1)+"*"+Cp(e===47?e:Zr())}function a7(e){for(;!xu(rs());)Zr();return Bu(e,kr)}function l7(e){return w0(Ld("",null,null,null,[""],e=x0(e),0,[0],e))}function Ld(e,t,n,r,s,a,l,u,f){for(var p=0,h=0,m=l,y=0,H=0,A=0,w=1,x=1,S=1,z=0,O="",C=s,D=a,k=r,R=O;x;)switch(A=z,z=Zr()){case 40:if(A!=108&&Kn(R,m-1)==58){rg(R+=Yt(Md(z),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:R+=Md(z);break;case 9:case 10:case 13:case 32:R+=o7(A);break;case 92:R+=s7(Ed()-1,7);continue;case 47:switch(rs()){case 42:case 47:vd(c7(i7(Zr(),Ed()),t,n),f);break;default:R+="/"}break;case 123*w:u[p++]=Ko(R)*S;case 125*w:case 59:case 0:switch(z){case 0:case 125:x=0;case 59+h:S==-1&&(R=Yt(R,/\f/g,"")),H>0&&Ko(R)-m&&vd(H>32?s8(R+";",r,n,m-1):s8(Yt(R," ","")+";",r,n,m-2),f);break;case 59:R+=";";default:if(vd(k=o8(R,t,n,p,h,s,u,O,C=[],D=[],m),a),z===123)if(h===0)Ld(R,t,k,k,C,a,m,u,D);else switch(y===99&&Kn(R,3)===110?100:y){case 100:case 108:case 109:case 115:Ld(e,k,k,r&&vd(o8(e,k,k,0,0,s,u,O,s,C=[],m),D),s,D,m,u,r?C:D);break;default:Ld(R,k,k,k,[""],D,0,u,D)}}p=h=H=0,w=S=1,O=R="",m=l;break;case 58:m=1+Ko(R),H=A;default:if(w<1){if(z==123)--w;else if(z==125&&w++==0&&r7()==125)continue}switch(R+=Cp(z),z*w){case 38:S=h>0?1:(R+="\f",-1);break;case 44:u[p++]=(Ko(R)-1)*S,S=1;break;case 64:rs()===45&&(R+=Md(Zr())),y=rs(),h=m=Ko(O=R+=a7(Ed())),z++;break;case 45:A===45&&Ko(R)==2&&(w=0)}}return a}function o8(e,t,n,r,s,a,l,u,f,p,h){for(var m=s-1,y=s===0?a:[""],H=cy(y),A=0,w=0,x=0;A0?y[S]+" "+z:Yt(z,/&\f/g,y[S])))&&(f[x++]=O);return Tp(e,t,n,s===0?ay:u,f,p,h)}function c7(e,t,n){return Tp(e,t,n,y0,Cp(n7()),bu(e,2,-2),0)}function s8(e,t,n,r){return Tp(e,t,n,ly,bu(e,0,r),bu(e,r+1,-1),r)}function ll(e,t){for(var n="",r=cy(e),s=0;s6)switch(Kn(e,t+1)){case 109:if(Kn(e,t+4)!==45)break;case 102:return Yt(e,/(.+:)(.+)-([^]+)/,"$1"+Ft+"$2-$3$1"+tp+(Kn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~rg(e,"stretch")?H0(Yt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Kn(e,t+1)!==115)break;case 6444:switch(Kn(e,Ko(e)-3-(~rg(e,"!important")&&10))){case 107:return Yt(e,":",":"+Ft)+e;case 101:return Yt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ft+(Kn(e,14)===45?"inline-":"")+"box$3$1"+Ft+"$2$3$1"+rr+"$2box$3")+e}break;case 5936:switch(Kn(e,t+11)){case 114:return Ft+e+rr+Yt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ft+e+rr+Yt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ft+e+rr+Yt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ft+e+rr+e+e}return e}var y7=function(t,n,r,s){if(t.length>-1&&!t.return)switch(t.type){case ly:t.return=H0(t.value,t.length);break;case A0:return ll([kc(t,{value:Yt(t.value,"@","@"+Ft)})],s);case ay:if(t.length)return t7(t.props,function(a){switch(e7(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ll([kc(t,{props:[Yt(a,/:(read-\w+)/,":"+tp+"$1")]})],s);case"::placeholder":return ll([kc(t,{props:[Yt(a,/:(plac\w+)/,":"+Ft+"input-$1")]}),kc(t,{props:[Yt(a,/:(plac\w+)/,":"+tp+"$1")]}),kc(t,{props:[Yt(a,/:(plac\w+)/,rr+"input-$1")]})],s)}return""})}},A7=[y7],P7=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(w){var x=w.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var s=t.stylisPlugins||A7,a={},l,u=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(w){for(var x=w.getAttribute("data-emotion").split(" "),S=1;S=4;++r,s-=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(s){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 S7={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},z7=!1,O7=/[A-Z]|^ms/g,C7=/_EMO_([^_]+?)_([^]*?)_EMO_/g,z0=function(t){return t.charCodeAt(1)===45},u8=function(t){return t!=null&&typeof t!="boolean"},Pm=g0(function(e){return z0(e)?e:e.replace(O7,"-$&").toLowerCase()}),f8=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(C7,function(r,s,a){return _o={name:s,styles:a,next:_o},s})}return S7[t]!==1&&!z0(t)&&typeof n=="number"&&n!==0?n+"px":n},D7="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function wu(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 s=n;if(s.anim===1)return _o={name:s.name,styles:s.styles,next:_o},s.name;var a=n;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)_o={name:l.name,styles:l.styles,next:_o},l=l.next;var u=a.styles+";";return u}return T7(e,t,n)}case"function":{if(e!==void 0){var f=_o,p=n(e);return _o=f,wu(e,t,p)}break}}var h=n;if(t==null)return h;var m=t[h];return m!==void 0?m:h}function T7(e,t,n){var r="";if(Array.isArray(n))for(var s=0;s96?M7:L7},h8=function(t,n,r){var s;if(n){var a=n.shouldForwardProp;s=t.__emotion_forwardProp&&a?function(l){return t.__emotion_forwardProp(l)&&a(l)}:a}return typeof s!="function"&&r&&(s=t.__emotion_forwardProp),s},X7=!1,N7=function(t){var n=t.cache,r=t.serialized,s=t.isStringTag;return j0(n,r,s),R7(function(){return S0(n,r,s)}),null},B7=function e(t,n){var r=t.__emotion_real===t,s=r&&t.__emotion_base||t,a,l;n!==void 0&&(a=n.label,l=n.target);var u=h8(t,n,r),f=u||v8(s),p=!f("as");return function(){var h=arguments,m=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&m.push("label:"+a+";"),h[0]==null||h[0].raw===void 0)m.push.apply(m,h);else{m.push(h[0][0]);for(var y=h.length,H=1;Ht(I7(s)?n:s):t;return v.jsx(E7,{styles:r})}/** + */var a8;function b7(){if(a8)return qt;a8=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,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,H=e?Symbol.for("react.memo"):60115,A=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,z=e?Symbol.for("react.scope"):60119;function O(D){if(typeof D=="object"&&D!==null){var k=D.$$typeof;switch(k){case t:switch(D=D.type,D){case f:case p:case r:case a:case s:case m:return D;default:switch(D=D&&D.$$typeof,D){case u:case h:case A:case H:case l:return D;default:return k}}case n:return k}}}function C(D){return O(D)===p}return qt.AsyncMode=f,qt.ConcurrentMode=p,qt.ContextConsumer=u,qt.ContextProvider=l,qt.Element=t,qt.ForwardRef=h,qt.Fragment=r,qt.Lazy=A,qt.Memo=H,qt.Portal=n,qt.Profiler=a,qt.StrictMode=s,qt.Suspense=m,qt.isAsyncMode=function(D){return C(D)||O(D)===f},qt.isConcurrentMode=C,qt.isContextConsumer=function(D){return O(D)===u},qt.isContextProvider=function(D){return O(D)===l},qt.isElement=function(D){return typeof D=="object"&&D!==null&&D.$$typeof===t},qt.isForwardRef=function(D){return O(D)===h},qt.isFragment=function(D){return O(D)===r},qt.isLazy=function(D){return O(D)===A},qt.isMemo=function(D){return O(D)===H},qt.isPortal=function(D){return O(D)===n},qt.isProfiler=function(D){return O(D)===a},qt.isStrictMode=function(D){return O(D)===s},qt.isSuspense=function(D){return O(D)===m},qt.isValidElementType=function(D){return typeof D=="string"||typeof D=="function"||D===r||D===p||D===a||D===s||D===m||D===y||typeof D=="object"&&D!==null&&(D.$$typeof===A||D.$$typeof===H||D.$$typeof===l||D.$$typeof===u||D.$$typeof===h||D.$$typeof===x||D.$$typeof===S||D.$$typeof===z||D.$$typeof===w)},qt.typeOf=O,qt}var l8;function x7(){return l8||(l8=1,Am.exports=b7()),Am.exports}var Pm,c8;function w7(){if(c8)return Pm;c8=1;var e=x7(),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},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=r,a[e.Memo]=s;function l(A){return e.isMemo(A)?s:a[A.$$typeof]||t}var u=Object.defineProperty,f=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,y=Object.prototype;function H(A,w,x){if(typeof w!="string"){if(y){var S=m(w);S&&S!==y&&H(A,S,x)}var z=f(w);p&&(z=z.concat(p(w)));for(var O=l(A),C=l(w),D=0;D=4;++r,s-=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(s){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 z7={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},O7=!1,C7=/[A-Z]|^ms/g,D7=/_EMO_([^_]+?)_([^]*?)_EMO_/g,z0=function(t){return t.charCodeAt(1)===45},u8=function(t){return t!=null&&typeof t!="boolean"},bm=g0(function(e){return z0(e)?e:e.replace(C7,"-$&").toLowerCase()}),f8=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(D7,function(r,s,a){return _o={name:s,styles:a,next:_o},s})}return z7[t]!==1&&!z0(t)&&typeof n=="number"&&n!==0?n+"px":n},T7="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function wu(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 s=n;if(s.anim===1)return _o={name:s.name,styles:s.styles,next:_o},s.name;var a=n;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)_o={name:l.name,styles:l.styles,next:_o},l=l.next;var u=a.styles+";";return u}return k7(e,t,n)}case"function":{if(e!==void 0){var f=_o,p=n(e);return _o=f,wu(e,t,p)}break}}var h=n;if(t==null)return h;var m=t[h];return m!==void 0?m:h}function k7(e,t,n){var r="";if(Array.isArray(n))for(var s=0;s96?L7:X7},h8=function(t,n,r){var s;if(n){var a=n.shouldForwardProp;s=t.__emotion_forwardProp&&a?function(l){return t.__emotion_forwardProp(l)&&a(l)}:a}return typeof s!="function"&&r&&(s=t.__emotion_forwardProp),s},N7=!1,B7=function(t){var n=t.cache,r=t.serialized,s=t.isStringTag;return j0(n,r,s),E7(function(){return S0(n,r,s)}),null},V7=function e(t,n){var r=t.__emotion_real===t,s=r&&t.__emotion_base||t,a,l;n!==void 0&&(a=n.label,l=n.target);var u=h8(t,n,r),f=u||v8(s),p=!f("as");return function(){var h=arguments,m=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&m.push("label:"+a+";"),h[0]==null||h[0].raw===void 0)m.push.apply(m,h);else{m.push(h[0][0]);for(var y=h.length,H=1;Ht(W7(s)?n:s):t;return v.jsx(M7,{styles:r})}/** * @mui/styled-engine v6.1.10 * * @license MIT * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function k0(e,t){return og(e,t)}function W7(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const m8=[];function g8(e){return m8[0]=e,kp(m8)}function $o(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 R0(e){if(P.isValidElement(e)||!$o(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=R0(e[n])}),t}function qn(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return $o(e)&&$o(t)&&Object.keys(t).forEach(s=>{P.isValidElement(t[s])?r[s]=t[s]:$o(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&$o(e[s])?r[s]=qn(e[s],t[s],n):n.clone?r[s]=$o(t[s])?R0(t[s]):t[s]:r[s]=t[s]}),r}const J7=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 F7(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...s}=e,a=J7(t),l=Object.keys(a);function u(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function f(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function p(y,H){const A=l.indexOf(H);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(A!==-1&&typeof t[l[A]]=="number"?t[l[A]]:H)-r/100}${n})`}function h(y){return l.indexOf(y)+1r.startsWith("@container")).sort((r,s)=>{var l,u;const a=/min-width:\s*([0-9.]+)/;return+(((l=r.match(a))==null?void 0:l[1])||0)-+(((u=s.match(a))==null?void 0:u[1])||0)});return n.length?n.reduce((r,s)=>{const a=t[s];return delete r[s],r[s]=a,r},{...t}):t}function q7(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Z7(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,s]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(s).up(a)}function G7(e){const t=(a,l)=>a.replace("@media",l?`@container ${l}`:"@container");function n(a,l){a.up=(...u)=>t(e.breakpoints.up(...u),l),a.down=(...u)=>t(e.breakpoints.down(...u),l),a.between=(...u)=>t(e.breakpoints.between(...u),l),a.only=(...u)=>t(e.breakpoints.only(...u),l),a.not=(...u)=>{const f=t(e.breakpoints.not(...u),l);return f.includes("not all and")?f.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):f}}const r={},s=a=>(n(r,a),r);return n(s),{...e,containerQueries:s}}const U7={borderRadius:4};function cu(e,t){return t?qn(e,t,{clone:!1}):e}const Ep={xs:0,sm:600,md:900,lg:1200,xl:1536},y8={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ep[e]}px)`},Q7={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Ep[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Rr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||y8;return t.reduce((l,u,f)=>(l[a.up(a.keys[f])]=n(t[f]),l),{})}if(typeof t=="object"){const a=r.breakpoints||y8;return Object.keys(t).reduce((l,u)=>{if(q7(a.keys,u)){const f=Z7(r.containerQueries?r:Q7,u);f&&(l[f]=n(t[u],u))}else if(Object.keys(a.values||Ep).includes(u)){const f=a.up(u);l[f]=n(t[u],u)}else{const f=u;l[f]=t[f]}return l},{})}return n(t)}function E0(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,s)=>{const a=e.up(s);return r[a]={},r},{}))||{}}function M0(e,t){return e.reduce((n,r)=>{const s=n[r];return(!s||Object.keys(s).length===0)&&delete n[r],n},t)}function K7(e,...t){const n=E0(e),r=[n,...t].reduce((s,a)=>qn(s,a),{});return M0(Object.keys(n),r)}function _7(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((s,a)=>{a{e[s]!=null&&(n[s]=!0)}),n}function sa({values:e,breakpoints:t,base:n}){const r=n||_7(e,t),s=Object.keys(r);if(s.length===0)return e;let a;return s.reduce((l,u,f)=>(Array.isArray(e)?(l[u]=e[f]!=null?e[f]:e[a],a=f):typeof e=="object"?(l[u]=e[u]!=null?e[u]:e[a],a=u):l[u]=e,l),{})}function me(e){if(typeof e!="string")throw new Error(ks(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Sl(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((s,a)=>s&&s[a]?s[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,s)=>r&&r[s]!=null?r[s]:null,e)}function np(e,t,n,r=n){let s;return typeof e=="function"?s=e(n):Array.isArray(e)?s=e[n]||r:s=Sl(e,n)||r,t&&(s=t(s,r,e)),s}function kn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:s}=e,a=l=>{if(l[t]==null)return null;const u=l[t],f=l.theme,p=Sl(f,r)||{};return Rr(l,u,m=>{let y=np(p,s,m);return m===y&&typeof m=="string"&&(y=np(p,s,`${t}${m==="default"?"":me(m)}`,m)),n===!1?y:{[n]:y}})};return a.propTypes={},a.filterProps=[t],a}function $7(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const eH={m:"margin",p:"padding"},tH={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},A8={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},nH=$7(e=>{if(e.length>2)if(A8[e])e=A8[e];else return[e];const[t,n]=e.split(""),r=eH[t],s=tH[n]||"";return Array.isArray(s)?s.map(a=>r+a):[r+s]}),uy=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],fy=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...uy,...fy];function Iu(e,t,n,r){const s=Sl(e,t,!0)??n;return typeof s=="number"||typeof s=="string"?a=>typeof a=="string"?a:typeof s=="string"?`calc(${a} * ${s})`:s*a:Array.isArray(s)?a=>{if(typeof a=="string")return a;const l=Math.abs(a),u=s[l];return a>=0?u:typeof u=="number"?-u:`-${u}`}:typeof s=="function"?s:()=>{}}function Mp(e){return Iu(e,"spacing",8)}function la(e,t){return typeof t=="string"||t==null?t:e(t)}function rH(e,t){return n=>e.reduce((r,s)=>(r[s]=la(t,n),r),{})}function oH(e,t,n,r){if(!t.includes(n))return null;const s=nH(n),a=rH(s,r),l=e[n];return Rr(e,l,a)}function L0(e,t){const n=Mp(e.theme);return Object.keys(e).map(r=>oH(e,t,r,n)).reduce(cu,{})}function xn(e){return L0(e,uy)}xn.propTypes={};xn.filterProps=uy;function wn(e){return L0(e,fy)}wn.propTypes={};wn.filterProps=fy;function X0(e=8,t=Mp({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const l=t(a);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function Lp(...e){const t=e.reduce((r,s)=>(s.filterProps.forEach(a=>{r[a]=s}),r),{}),n=r=>Object.keys(r).reduce((s,a)=>t[a]?cu(s,t[a](r)):s,{});return n.propTypes={},n.filterProps=e.reduce((r,s)=>r.concat(s.filterProps),[]),n}function co(e){return typeof e!="number"?e:`${e}px solid`}function ho(e,t){return kn({prop:e,themeKey:"borders",transform:t})}const sH=ho("border",co),iH=ho("borderTop",co),aH=ho("borderRight",co),lH=ho("borderBottom",co),cH=ho("borderLeft",co),uH=ho("borderColor"),fH=ho("borderTopColor"),dH=ho("borderRightColor"),pH=ho("borderBottomColor"),vH=ho("borderLeftColor"),hH=ho("outline",co),mH=ho("outlineColor"),Xp=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Iu(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:la(t,r)});return Rr(e,e.borderRadius,n)}return null};Xp.propTypes={};Xp.filterProps=["borderRadius"];Lp(sH,iH,aH,lH,cH,uH,fH,dH,pH,vH,Xp,hH,mH);const Np=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Iu(e.theme,"spacing",8),n=r=>({gap:la(t,r)});return Rr(e,e.gap,n)}return null};Np.propTypes={};Np.filterProps=["gap"];const Bp=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Iu(e.theme,"spacing",8),n=r=>({columnGap:la(t,r)});return Rr(e,e.columnGap,n)}return null};Bp.propTypes={};Bp.filterProps=["columnGap"];const Vp=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Iu(e.theme,"spacing",8),n=r=>({rowGap:la(t,r)});return Rr(e,e.rowGap,n)}return null};Vp.propTypes={};Vp.filterProps=["rowGap"];const gH=kn({prop:"gridColumn"}),yH=kn({prop:"gridRow"}),AH=kn({prop:"gridAutoFlow"}),PH=kn({prop:"gridAutoColumns"}),bH=kn({prop:"gridAutoRows"}),xH=kn({prop:"gridTemplateColumns"}),wH=kn({prop:"gridTemplateRows"}),HH=kn({prop:"gridTemplateAreas"}),jH=kn({prop:"gridArea"});Lp(Np,Bp,Vp,gH,yH,AH,PH,bH,xH,wH,HH,jH);function cl(e,t){return t==="grey"?t:e}const SH=kn({prop:"color",themeKey:"palette",transform:cl}),zH=kn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:cl}),OH=kn({prop:"backgroundColor",themeKey:"palette",transform:cl});Lp(SH,zH,OH);function qr(e){return e<=1&&e!==0?`${e*100}%`:e}const CH=kn({prop:"width",transform:qr}),dy=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var s,a,l,u,f;const r=((l=(a=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:a.values)==null?void 0:l[n])||Ep[n];return r?((f=(u=e.theme)==null?void 0:u.breakpoints)==null?void 0:f.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:qr(n)}};return Rr(e,e.maxWidth,t)}return null};dy.filterProps=["maxWidth"];const DH=kn({prop:"minWidth",transform:qr}),TH=kn({prop:"height",transform:qr}),kH=kn({prop:"maxHeight",transform:qr}),RH=kn({prop:"minHeight",transform:qr});kn({prop:"size",cssProperty:"width",transform:qr});kn({prop:"size",cssProperty:"height",transform:qr});const EH=kn({prop:"boxSizing"});Lp(CH,dy,DH,TH,kH,RH,EH);const Wu={border:{themeKey:"borders",transform:co},borderTop:{themeKey:"borders",transform:co},borderRight:{themeKey:"borders",transform:co},borderBottom:{themeKey:"borders",transform:co},borderLeft:{themeKey:"borders",transform:co},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:co},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xp},color:{themeKey:"palette",transform:cl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:cl},backgroundColor:{themeKey:"palette",transform:cl},p:{style:wn},pt:{style:wn},pr:{style:wn},pb:{style:wn},pl:{style:wn},px:{style:wn},py:{style:wn},padding:{style:wn},paddingTop:{style:wn},paddingRight:{style:wn},paddingBottom:{style:wn},paddingLeft:{style:wn},paddingX:{style:wn},paddingY:{style:wn},paddingInline:{style:wn},paddingInlineStart:{style:wn},paddingInlineEnd:{style:wn},paddingBlock:{style:wn},paddingBlockStart:{style:wn},paddingBlockEnd:{style:wn},m:{style:xn},mt:{style:xn},mr:{style:xn},mb:{style:xn},ml:{style:xn},mx:{style:xn},my:{style:xn},margin:{style:xn},marginTop:{style:xn},marginRight:{style:xn},marginBottom:{style:xn},marginLeft:{style:xn},marginX:{style:xn},marginY:{style:xn},marginInline:{style:xn},marginInlineStart:{style:xn},marginInlineEnd:{style:xn},marginBlock:{style:xn},marginBlockStart:{style:xn},marginBlockEnd:{style:xn},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:Np},rowGap:{style:Vp},columnGap:{style:Bp},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:qr},maxWidth:{style:dy},minWidth:{transform:qr},height:{transform:qr},maxHeight:{transform:qr},minHeight:{transform:qr},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 MH(...e){const t=e.reduce((r,s)=>r.concat(Object.keys(s)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function LH(e,t){return typeof e=="function"?e(t):e}function XH(){function e(n,r,s,a){const l={[n]:r,theme:s},u=a[n];if(!u)return{[n]:r};const{cssProperty:f=n,themeKey:p,transform:h,style:m}=u;if(r==null)return null;if(p==="typography"&&r==="inherit")return{[n]:r};const y=Sl(s,p)||{};return m?m(l):Rr(l,r,A=>{let w=np(y,h,A);return A===w&&typeof A=="string"&&(w=np(y,h,`${n}${A==="default"?"":me(A)}`,A)),f===!1?w:{[f]:w}})}function t(n){const{sx:r,theme:s={}}=n||{};if(!r)return null;const a=s.unstable_sxConfig??Wu;function l(u){let f=u;if(typeof u=="function")f=u(s);else if(typeof u!="object")return u;if(!f)return null;const p=E0(s.breakpoints),h=Object.keys(p);let m=p;return Object.keys(f).forEach(y=>{const H=LH(f[y],s);if(H!=null)if(typeof H=="object")if(a[y])m=cu(m,e(y,H,s,a));else{const A=Rr({theme:s},H,w=>({[y]:w}));MH(A,H)?m[y]=t({sx:H,theme:s}):m=cu(m,A)}else m=cu(m,e(y,H,s,a))}),Y7(s,M0(h,m))}return Array.isArray(r)?r.map(l):l(r)}return t}const Ai=XH();Ai.filterProps=["sx"];function NH(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let s=n.getColorSchemeSelector(e);return s==="&"?t:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:t})}return n.palette.mode===e?t:{}}function Ip(e={},...t){const{breakpoints:n={},palette:r={},spacing:s,shape:a={},...l}=e,u=F7(n),f=X0(s);let p=qn({breakpoints:u,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:f,shape:{...U7,...a}},l);return p=G7(p),p.applyStyles=NH,p=t.reduce((h,m)=>qn(h,m),p),p.unstable_sxConfig={...Wu,...l==null?void 0:l.unstable_sxConfig},p.unstable_sx=function(m){return Ai({sx:m,theme:this})},p}function BH(e){return Object.keys(e).length===0}function py(e=null){const t=P.useContext(Rp);return!t||BH(t)?e:t}const VH=Ip();function Wp(e=VH){return py(e)}function IH({styles:e,themeId:t,defaultTheme:n={}}){const r=Wp(n),s=typeof e=="function"?e(t&&r[t]||r):e;return v.jsx(T0,{styles:s})}const WH=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??Wu;return Object.keys(e).forEach(s=>{n[s]?t.systemProps[s]=e[s]:t.otherProps[s]=e[s]}),t};function Jp(e){const{sx:t,...n}=e,{systemProps:r,otherProps:s}=WH(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...l)=>{const u=t(...l);return $o(u)?{...r,...u}:r}:a={...r,...t},{...s,sx:a}}const P8=e=>e,JH=()=>{let e=P8;return{configure(t){e=t},generate(t){return e(t)},reset(){e=P8}}},N0=JH();function B0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;tu!=="theme"&&u!=="sx"&&u!=="as"})(Ai);return P.forwardRef(function(f,p){const h=Wp(n),{className:m,component:y="div",...H}=Jp(f);return v.jsx(a,{as:y,ref:p,className:Oe(m,s?s(r):r),theme:t&&h[t]||h,...H})})}const YH={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 Ge(e,t,n="Mui"){const r=YH[t];return r?`${n}-${r}`:`${N0.generate(e)}-${t}`}function Ue(e,t,n="Mui"){const r={};return t.forEach(s=>{r[s]=Ge(e,s,n)}),r}function V0(e){const{variants:t,...n}=e,r={variants:t,style:g8(n),isProcessed:!0};return r.style===n||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=g8(s.style))}),r}const qH=Ip();function bm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ZH(e){return e?(t,n)=>n[e]:null}function GH(e,t,n){e.theme=QH(e.theme)?n:e.theme[t]||e.theme}function Xd(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Xd(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:s,...a}=n;r=a}return I0(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function I0(e,t,n=[]){var s;let r;e:for(let a=0;a{W7(u,D=>D.filter(k=>k!==Ai));const{name:p,slot:h,skipVariantsResolver:m,skipSx:y,overridesResolver:H=ZH(_H(h)),...A}=f,w=m!==void 0?m:h&&h!=="Root"&&h!=="root"||!1,x=y||!1;let S=bm;h==="Root"||h==="root"?S=r:h?S=s:KH(u)&&(S=void 0);const z=k0(u,{shouldForwardProp:S,label:UH(),...A}),O=D=>{if(typeof D=="function"&&D.__emotion_real!==D)return function(R){return Xd(R,D)};if($o(D)){const k=V0(D);return k.variants?function(M){return Xd(M,k)}:k.style}return D},C=(...D)=>{const k=[],R=D.map(O),M=[];if(k.push(a),p&&H&&M.push(function(I){var ne,re;const K=(re=(ne=I.theme.components)==null?void 0:ne[p])==null?void 0:re.styleOverrides;if(!K)return null;const W={};for(const F in K)W[F]=Xd(I,K[F]);return H(I,W)}),p&&!w&&M.push(function(I){var W,ne;const J=I.theme,K=(ne=(W=J==null?void 0:J.components)==null?void 0:W[p])==null?void 0:ne.variants;return K?I0(I,K):null}),x||M.push(Ai),Array.isArray(R[0])){const B=R.shift(),I=new Array(k.length).fill(""),J=new Array(M.length).fill("");let K;K=[...I,...B,...J],K.raw=[...I,...B.raw,...J],k.unshift(K)}const L=[...k,...R,...M],j=z(...L);return u.muiName&&(j.muiName=u.muiName),j};return z.withConfig&&(C.withConfig=z.withConfig),C}}function UH(e,t){return void 0}function QH(e){for(const t in e)return!1;return!0}function KH(e){return typeof e=="string"&&e.charCodeAt(0)>96}function _H(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const $H=W0();function zl(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const s=r;if(s==="components"||s==="slots")n[s]={...e[s],...n[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],l=t[s];if(!l)n[s]=a||{};else if(!a)n[s]=l;else{n[s]={...l};for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u)){const f=u;n[s][f]=zl(a[f],l[f])}}}else n[s]===void 0&&(n[s]=e[s])}return n}function J0(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:zl(t.components[n].defaultProps,r)}function ej({props:e,name:t,defaultTheme:n,themeId:r}){let s=Wp(n);return r&&(s=s[r]||s),J0({theme:s,name:t,props:e})}const fo=typeof window<"u"?P.useLayoutEffect:P.useEffect;function tj(e,t,n,r,s){const[a,l]=P.useState(()=>s&&n?n(e).matches:r?r(e).matches:t);return fo(()=>{if(!n)return;const u=n(e),f=()=>{l(u.matches)};return f(),u.addEventListener("change",f),()=>{u.removeEventListener("change",f)}},[e,n]),a}const nj={...ep},F0=nj.useSyncExternalStore;function rj(e,t,n,r,s){const a=P.useCallback(()=>t,[t]),l=P.useMemo(()=>{if(s&&n)return()=>n(e).matches;if(r!==null){const{matches:h}=r(e);return()=>h}return a},[a,e,r,s,n]),[u,f]=P.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const h=n(e);return[()=>h.matches,m=>(h.addEventListener("change",m),()=>{h.removeEventListener("change",m)})]},[a,n,e]);return F0(f,u,l)}function oj(e={}){const{themeId:t}=e;return function(r,s={}){let a=py();a&&t&&(a=a[t]||a);const l=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:u=!1,matchMedia:f=l?window.matchMedia:null,ssrMatchMedia:p=null,noSsr:h=!1}=J0({name:"MuiUseMediaQuery",props:s,theme:a});let m=typeof r=="function"?r(a):r;return m=m.replace(/^@media( ?)/m,""),(F0!==void 0?rj:tj)(m,u,f,p,h)}}function sj(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function vy(e,t=0,n=1){return sj(e,t,n)}function ij(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,s)=>s<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Pi(e){if(e.type)return e;if(e.charAt(0)==="#")return Pi(ij(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(ks(9,e));let r=e.substring(t+1,e.length-1),s;if(n==="color"){if(r=r.split(" "),s=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(s))throw new Error(ks(10,s))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:s}}const aj=e=>{const t=Pi(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Kc=(e,t)=>{try{return aj(e)}catch{return e}};function Fp(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((s,a)=>a<3?parseInt(s,10):s):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Y0(e){e=Pi(e);const{values:t}=e,n=t[0],r=t[1]/100,s=t[2]/100,a=r*Math.min(s,1-s),l=(p,h=(p+n/30)%12)=>s-a*Math.max(Math.min(h-3,9-h,1),-1);let u="rgb";const f=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(u+="a",f.push(t[3])),Fp({type:u,values:f})}function sg(e){e=Pi(e);let t=e.type==="hsl"||e.type==="hsla"?Pi(Y0(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 lj(e,t){const n=sg(e),r=sg(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Pt(e,t){return e=Pi(e),t=vy(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Fp(e)}function hd(e,t,n){try{return Pt(e,t)}catch{return e}}function ca(e,t){if(e=Pi(e),t=vy(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 Fp(e)}function Kt(e,t,n){try{return ca(e,t)}catch{return e}}function ua(e,t){if(e=Pi(e),t=vy(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 Fp(e)}function _t(e,t,n){try{return ua(e,t)}catch{return e}}function q0(e,t=.15){return sg(e)>.5?ca(e,t):ua(e,t)}function md(e,t,n){try{return q0(e,t)}catch{return e}}function ig(...e){return e.reduce((t,n)=>n==null?t:function(...s){t.apply(this,s),n.apply(this,s)},()=>{})}function hy(e,t=166){let n;function r(...s){const a=()=>{e.apply(this,s)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Nd(e,t){var n,r,s;return P.isValidElement(e)&&t.indexOf(e.type.muiName??((s=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:s.muiName))!==-1}function ir(e){return e&&e.ownerDocument||document}function Mo(e){return ir(e).defaultView||window}function rp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let b8=0;function cj(e){const[t,n]=P.useState(e),r=e||t;return P.useEffect(()=>{t==null&&(b8+=1,n(`mui-${b8}`))},[t]),r}const uj={...ep},x8=uj.useId;function Rs(e){if(x8!==void 0){const t=x8();return e??t}return cj(e)}function yi({controlled:e,default:t,name:n,state:r="value"}){const{current:s}=P.useRef(e!==void 0),[a,l]=P.useState(t),u=s?e:a,f=P.useCallback(p=>{s||l(p)},[]);return[u,f]}function mr(e){const t=P.useRef(e);return fo(()=>{t.current=e}),P.useRef((...n)=>(0,t.current)(...n)).current}function rn(...e){return P.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{rp(n,t)})},e)}const w8={};function Z0(e,t){const n=P.useRef(w8);return n.current===w8&&(n.current=e(t)),n}const fj=[];function dj(e){P.useEffect(e,fj)}class Yp{constructor(){Cc(this,"currentId",null);Cc(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Cc(this,"disposeEffect",()=>this.clear)}static create(){return new Yp}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Gi(){const e=Z0(Yp.create).current;return dj(e.disposeEffect),e}function Ol(e){try{return e.matches(":focus-visible")}catch{}return!1}function G0(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const pj=e=>{const t=P.useRef({});return P.useEffect(()=>{t.current=e}),t.current};function Ke(e,t,n=void 0){const r={};for(const s in e){const a=e[s];let l="",u=!0;for(let f=0;fr.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function H8(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 Q0(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:s,className:a}=e;if(!t){const H=Oe(n==null?void 0:n.className,a,s==null?void 0:s.className,r==null?void 0:r.className),A={...n==null?void 0:n.style,...s==null?void 0:s.style,...r==null?void 0:r.style},w={...n,...s,...r};return H.length>0&&(w.className=H),Object.keys(A).length>0&&(w.style=A),{props:w,internalRef:void 0}}const l=op({...s,...r}),u=H8(r),f=H8(s),p=t(l),h=Oe(p==null?void 0:p.className,n==null?void 0:n.className,a,s==null?void 0:s.className,r==null?void 0:r.className),m={...p==null?void 0:p.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...r==null?void 0:r.style},y={...p,...n,...f,...u};return h.length>0&&(y.className=h),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:p.ref}}function K0(e,t,n){return typeof e=="function"?e(t,n):e}function sp(e){var m;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:s=!1,...a}=e,l=s?{}:K0(n,r),{props:u,internalRef:f}=Q0({...a,externalSlotProps:l}),p=rn(f,l==null?void 0:l.ref,(m=e.additionalProps)==null?void 0:m.ref);return U0(t,{...u,ref:p},r)}function xi(e){var t;return parseInt(P.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const _0=P.createContext(null);function my(){return P.useContext(_0)}const hj=typeof Symbol=="function"&&Symbol.for,mj=hj?Symbol.for("mui.nested"):"__THEME_NESTED__";function gj(e,t){return typeof t=="function"?t(e):{...e,...t}}function yj(e){const{children:t,theme:n}=e,r=my(),s=P.useMemo(()=>{const a=r===null?{...n}:gj(r,n);return a!=null&&(a[mj]=r!==null),a},[n,r]);return v.jsx(_0.Provider,{value:s,children:t})}const $0=P.createContext();function Aj({value:e,...t}){return v.jsx($0.Provider,{value:e??!0,...t})}const Ju=()=>P.useContext($0)??!1,e1=P.createContext(void 0);function Pj({value:e,children:t}){return v.jsx(e1.Provider,{value:e,children:t})}function bj(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const s=t.components[n];return s.defaultProps?zl(s.defaultProps,r):!s.styleOverrides&&!s.variants?zl(s,r):r}function xj({props:e,name:t}){const n=P.useContext(e1);return bj({props:e,name:t,theme:{components:n}})}const j8={};function S8(e,t,n,r=!1){return P.useMemo(()=>{const s=e&&t[e]||t;if(typeof n=="function"){const a=n(s),l=e?{...t,[e]:a}:a;return r?()=>l:l}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function t1(e){const{children:t,theme:n,themeId:r}=e,s=py(j8),a=my()||j8,l=S8(r,s,n),u=S8(r,a,n,!0),f=(r?l[r]:l).direction==="rtl";return v.jsx(yj,{theme:u,children:v.jsx(Rp.Provider,{value:l,children:v.jsx(Aj,{value:f,children:v.jsx(Pj,{value:r?l[r].components:l.components,children:t})})})})}const z8={theme:void 0};function wj(e){let t,n;return function(s){let a=t;return(a===void 0||s.theme!==n)&&(z8.theme=s.theme,a=V0(e(z8)),t=a,n=s.theme),a}}const gy="mode",yy="color-scheme",Hj="data-color-scheme";function jj(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:s=gy,colorSchemeStorageKey:a=yy,attribute:l=Hj,colorSchemeNode:u="document.documentElement",nonce:f}=e||{};let p="",h=l;if(l==="class"&&(h=".%s"),l==="data"&&(h="[data-%s]"),h.startsWith(".")){const y=h.substring(1);p+=`${u}.classList.remove('${y}'.replace('%s', light), '${y}'.replace('%s', dark)); + */function k0(e,t){return sg(e,t)}function J7(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const m8=[];function g8(e){return m8[0]=e,kp(m8)}function $o(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 R0(e){if(P.isValidElement(e)||!$o(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=R0(e[n])}),t}function qn(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return $o(e)&&$o(t)&&Object.keys(t).forEach(s=>{P.isValidElement(t[s])?r[s]=t[s]:$o(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&$o(e[s])?r[s]=qn(e[s],t[s],n):n.clone?r[s]=$o(t[s])?R0(t[s]):t[s]:r[s]=t[s]}),r}const F7=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 Y7(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...s}=e,a=F7(t),l=Object.keys(a);function u(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function f(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function p(y,H){const A=l.indexOf(H);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(A!==-1&&typeof t[l[A]]=="number"?t[l[A]]:H)-r/100}${n})`}function h(y){return l.indexOf(y)+1r.startsWith("@container")).sort((r,s)=>{var l,u;const a=/min-width:\s*([0-9.]+)/;return+(((l=r.match(a))==null?void 0:l[1])||0)-+(((u=s.match(a))==null?void 0:u[1])||0)});return n.length?n.reduce((r,s)=>{const a=t[s];return delete r[s],r[s]=a,r},{...t}):t}function Z7(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function G7(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,s]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(s).up(a)}function U7(e){const t=(a,l)=>a.replace("@media",l?`@container ${l}`:"@container");function n(a,l){a.up=(...u)=>t(e.breakpoints.up(...u),l),a.down=(...u)=>t(e.breakpoints.down(...u),l),a.between=(...u)=>t(e.breakpoints.between(...u),l),a.only=(...u)=>t(e.breakpoints.only(...u),l),a.not=(...u)=>{const f=t(e.breakpoints.not(...u),l);return f.includes("not all and")?f.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):f}}const r={},s=a=>(n(r,a),r);return n(s),{...e,containerQueries:s}}const Q7={borderRadius:4};function cu(e,t){return t?qn(e,t,{clone:!1}):e}const Ep={xs:0,sm:600,md:900,lg:1200,xl:1536},y8={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ep[e]}px)`},K7={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Ep[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Rr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||y8;return t.reduce((l,u,f)=>(l[a.up(a.keys[f])]=n(t[f]),l),{})}if(typeof t=="object"){const a=r.breakpoints||y8;return Object.keys(t).reduce((l,u)=>{if(Z7(a.keys,u)){const f=G7(r.containerQueries?r:K7,u);f&&(l[f]=n(t[u],u))}else if(Object.keys(a.values||Ep).includes(u)){const f=a.up(u);l[f]=n(t[u],u)}else{const f=u;l[f]=t[f]}return l},{})}return n(t)}function E0(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,s)=>{const a=e.up(s);return r[a]={},r},{}))||{}}function M0(e,t){return e.reduce((n,r)=>{const s=n[r];return(!s||Object.keys(s).length===0)&&delete n[r],n},t)}function _7(e,...t){const n=E0(e),r=[n,...t].reduce((s,a)=>qn(s,a),{});return M0(Object.keys(n),r)}function $7(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((s,a)=>{a{e[s]!=null&&(n[s]=!0)}),n}function sa({values:e,breakpoints:t,base:n}){const r=n||$7(e,t),s=Object.keys(r);if(s.length===0)return e;let a;return s.reduce((l,u,f)=>(Array.isArray(e)?(l[u]=e[f]!=null?e[f]:e[a],a=f):typeof e=="object"?(l[u]=e[u]!=null?e[u]:e[a],a=u):l[u]=e,l),{})}function me(e){if(typeof e!="string")throw new Error(ks(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Sl(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((s,a)=>s&&s[a]?s[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,s)=>r&&r[s]!=null?r[s]:null,e)}function np(e,t,n,r=n){let s;return typeof e=="function"?s=e(n):Array.isArray(e)?s=e[n]||r:s=Sl(e,n)||r,t&&(s=t(s,r,e)),s}function kn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:s}=e,a=l=>{if(l[t]==null)return null;const u=l[t],f=l.theme,p=Sl(f,r)||{};return Rr(l,u,m=>{let y=np(p,s,m);return m===y&&typeof m=="string"&&(y=np(p,s,`${t}${m==="default"?"":me(m)}`,m)),n===!1?y:{[n]:y}})};return a.propTypes={},a.filterProps=[t],a}function eH(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const tH={m:"margin",p:"padding"},nH={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},A8={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},rH=eH(e=>{if(e.length>2)if(A8[e])e=A8[e];else return[e];const[t,n]=e.split(""),r=tH[t],s=nH[n]||"";return Array.isArray(s)?s.map(a=>r+a):[r+s]}),fy=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],dy=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...fy,...dy];function Iu(e,t,n,r){const s=Sl(e,t,!0)??n;return typeof s=="number"||typeof s=="string"?a=>typeof a=="string"?a:typeof s=="string"?`calc(${a} * ${s})`:s*a:Array.isArray(s)?a=>{if(typeof a=="string")return a;const l=Math.abs(a),u=s[l];return a>=0?u:typeof u=="number"?-u:`-${u}`}:typeof s=="function"?s:()=>{}}function Mp(e){return Iu(e,"spacing",8)}function la(e,t){return typeof t=="string"||t==null?t:e(t)}function oH(e,t){return n=>e.reduce((r,s)=>(r[s]=la(t,n),r),{})}function sH(e,t,n,r){if(!t.includes(n))return null;const s=rH(n),a=oH(s,r),l=e[n];return Rr(e,l,a)}function L0(e,t){const n=Mp(e.theme);return Object.keys(e).map(r=>sH(e,t,r,n)).reduce(cu,{})}function xn(e){return L0(e,fy)}xn.propTypes={};xn.filterProps=fy;function wn(e){return L0(e,dy)}wn.propTypes={};wn.filterProps=dy;function X0(e=8,t=Mp({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const l=t(a);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function Lp(...e){const t=e.reduce((r,s)=>(s.filterProps.forEach(a=>{r[a]=s}),r),{}),n=r=>Object.keys(r).reduce((s,a)=>t[a]?cu(s,t[a](r)):s,{});return n.propTypes={},n.filterProps=e.reduce((r,s)=>r.concat(s.filterProps),[]),n}function co(e){return typeof e!="number"?e:`${e}px solid`}function ho(e,t){return kn({prop:e,themeKey:"borders",transform:t})}const iH=ho("border",co),aH=ho("borderTop",co),lH=ho("borderRight",co),cH=ho("borderBottom",co),uH=ho("borderLeft",co),fH=ho("borderColor"),dH=ho("borderTopColor"),pH=ho("borderRightColor"),vH=ho("borderBottomColor"),hH=ho("borderLeftColor"),mH=ho("outline",co),gH=ho("outlineColor"),Xp=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Iu(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:la(t,r)});return Rr(e,e.borderRadius,n)}return null};Xp.propTypes={};Xp.filterProps=["borderRadius"];Lp(iH,aH,lH,cH,uH,fH,dH,pH,vH,hH,Xp,mH,gH);const Np=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Iu(e.theme,"spacing",8),n=r=>({gap:la(t,r)});return Rr(e,e.gap,n)}return null};Np.propTypes={};Np.filterProps=["gap"];const Bp=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Iu(e.theme,"spacing",8),n=r=>({columnGap:la(t,r)});return Rr(e,e.columnGap,n)}return null};Bp.propTypes={};Bp.filterProps=["columnGap"];const Vp=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Iu(e.theme,"spacing",8),n=r=>({rowGap:la(t,r)});return Rr(e,e.rowGap,n)}return null};Vp.propTypes={};Vp.filterProps=["rowGap"];const yH=kn({prop:"gridColumn"}),AH=kn({prop:"gridRow"}),PH=kn({prop:"gridAutoFlow"}),bH=kn({prop:"gridAutoColumns"}),xH=kn({prop:"gridAutoRows"}),wH=kn({prop:"gridTemplateColumns"}),HH=kn({prop:"gridTemplateRows"}),jH=kn({prop:"gridTemplateAreas"}),SH=kn({prop:"gridArea"});Lp(Np,Bp,Vp,yH,AH,PH,bH,xH,wH,HH,jH,SH);function cl(e,t){return t==="grey"?t:e}const zH=kn({prop:"color",themeKey:"palette",transform:cl}),OH=kn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:cl}),CH=kn({prop:"backgroundColor",themeKey:"palette",transform:cl});Lp(zH,OH,CH);function qr(e){return e<=1&&e!==0?`${e*100}%`:e}const DH=kn({prop:"width",transform:qr}),py=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var s,a,l,u,f;const r=((l=(a=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:a.values)==null?void 0:l[n])||Ep[n];return r?((f=(u=e.theme)==null?void 0:u.breakpoints)==null?void 0:f.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:qr(n)}};return Rr(e,e.maxWidth,t)}return null};py.filterProps=["maxWidth"];const TH=kn({prop:"minWidth",transform:qr}),kH=kn({prop:"height",transform:qr}),RH=kn({prop:"maxHeight",transform:qr}),EH=kn({prop:"minHeight",transform:qr});kn({prop:"size",cssProperty:"width",transform:qr});kn({prop:"size",cssProperty:"height",transform:qr});const MH=kn({prop:"boxSizing"});Lp(DH,py,TH,kH,RH,EH,MH);const Wu={border:{themeKey:"borders",transform:co},borderTop:{themeKey:"borders",transform:co},borderRight:{themeKey:"borders",transform:co},borderBottom:{themeKey:"borders",transform:co},borderLeft:{themeKey:"borders",transform:co},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:co},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xp},color:{themeKey:"palette",transform:cl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:cl},backgroundColor:{themeKey:"palette",transform:cl},p:{style:wn},pt:{style:wn},pr:{style:wn},pb:{style:wn},pl:{style:wn},px:{style:wn},py:{style:wn},padding:{style:wn},paddingTop:{style:wn},paddingRight:{style:wn},paddingBottom:{style:wn},paddingLeft:{style:wn},paddingX:{style:wn},paddingY:{style:wn},paddingInline:{style:wn},paddingInlineStart:{style:wn},paddingInlineEnd:{style:wn},paddingBlock:{style:wn},paddingBlockStart:{style:wn},paddingBlockEnd:{style:wn},m:{style:xn},mt:{style:xn},mr:{style:xn},mb:{style:xn},ml:{style:xn},mx:{style:xn},my:{style:xn},margin:{style:xn},marginTop:{style:xn},marginRight:{style:xn},marginBottom:{style:xn},marginLeft:{style:xn},marginX:{style:xn},marginY:{style:xn},marginInline:{style:xn},marginInlineStart:{style:xn},marginInlineEnd:{style:xn},marginBlock:{style:xn},marginBlockStart:{style:xn},marginBlockEnd:{style:xn},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:Np},rowGap:{style:Vp},columnGap:{style:Bp},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:qr},maxWidth:{style:py},minWidth:{transform:qr},height:{transform:qr},maxHeight:{transform:qr},minHeight:{transform:qr},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 LH(...e){const t=e.reduce((r,s)=>r.concat(Object.keys(s)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function XH(e,t){return typeof e=="function"?e(t):e}function NH(){function e(n,r,s,a){const l={[n]:r,theme:s},u=a[n];if(!u)return{[n]:r};const{cssProperty:f=n,themeKey:p,transform:h,style:m}=u;if(r==null)return null;if(p==="typography"&&r==="inherit")return{[n]:r};const y=Sl(s,p)||{};return m?m(l):Rr(l,r,A=>{let w=np(y,h,A);return A===w&&typeof A=="string"&&(w=np(y,h,`${n}${A==="default"?"":me(A)}`,A)),f===!1?w:{[f]:w}})}function t(n){const{sx:r,theme:s={}}=n||{};if(!r)return null;const a=s.unstable_sxConfig??Wu;function l(u){let f=u;if(typeof u=="function")f=u(s);else if(typeof u!="object")return u;if(!f)return null;const p=E0(s.breakpoints),h=Object.keys(p);let m=p;return Object.keys(f).forEach(y=>{const H=XH(f[y],s);if(H!=null)if(typeof H=="object")if(a[y])m=cu(m,e(y,H,s,a));else{const A=Rr({theme:s},H,w=>({[y]:w}));LH(A,H)?m[y]=t({sx:H,theme:s}):m=cu(m,A)}else m=cu(m,e(y,H,s,a))}),q7(s,M0(h,m))}return Array.isArray(r)?r.map(l):l(r)}return t}const Ai=NH();Ai.filterProps=["sx"];function BH(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let s=n.getColorSchemeSelector(e);return s==="&"?t:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:t})}return n.palette.mode===e?t:{}}function Ip(e={},...t){const{breakpoints:n={},palette:r={},spacing:s,shape:a={},...l}=e,u=Y7(n),f=X0(s);let p=qn({breakpoints:u,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:f,shape:{...Q7,...a}},l);return p=U7(p),p.applyStyles=BH,p=t.reduce((h,m)=>qn(h,m),p),p.unstable_sxConfig={...Wu,...l==null?void 0:l.unstable_sxConfig},p.unstable_sx=function(m){return Ai({sx:m,theme:this})},p}function VH(e){return Object.keys(e).length===0}function vy(e=null){const t=P.useContext(Rp);return!t||VH(t)?e:t}const IH=Ip();function Wp(e=IH){return vy(e)}function WH({styles:e,themeId:t,defaultTheme:n={}}){const r=Wp(n),s=typeof e=="function"?e(t&&r[t]||r):e;return v.jsx(T0,{styles:s})}const JH=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??Wu;return Object.keys(e).forEach(s=>{n[s]?t.systemProps[s]=e[s]:t.otherProps[s]=e[s]}),t};function Jp(e){const{sx:t,...n}=e,{systemProps:r,otherProps:s}=JH(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...l)=>{const u=t(...l);return $o(u)?{...r,...u}:r}:a={...r,...t},{...s,sx:a}}const P8=e=>e,FH=()=>{let e=P8;return{configure(t){e=t},generate(t){return e(t)},reset(){e=P8}}},N0=FH();function B0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;tu!=="theme"&&u!=="sx"&&u!=="as"})(Ai);return P.forwardRef(function(f,p){const h=Wp(n),{className:m,component:y="div",...H}=Jp(f);return v.jsx(a,{as:y,ref:p,className:Oe(m,s?s(r):r),theme:t&&h[t]||h,...H})})}const qH={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 Ge(e,t,n="Mui"){const r=qH[t];return r?`${n}-${r}`:`${N0.generate(e)}-${t}`}function Ue(e,t,n="Mui"){const r={};return t.forEach(s=>{r[s]=Ge(e,s,n)}),r}function V0(e){const{variants:t,...n}=e,r={variants:t,style:g8(n),isProcessed:!0};return r.style===n||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=g8(s.style))}),r}const ZH=Ip();function xm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function GH(e){return e?(t,n)=>n[e]:null}function UH(e,t,n){e.theme=KH(e.theme)?n:e.theme[t]||e.theme}function Xd(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Xd(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:s,...a}=n;r=a}return I0(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function I0(e,t,n=[]){var s;let r;e:for(let a=0;a{J7(u,D=>D.filter(k=>k!==Ai));const{name:p,slot:h,skipVariantsResolver:m,skipSx:y,overridesResolver:H=GH($H(h)),...A}=f,w=m!==void 0?m:h&&h!=="Root"&&h!=="root"||!1,x=y||!1;let S=xm;h==="Root"||h==="root"?S=r:h?S=s:_H(u)&&(S=void 0);const z=k0(u,{shouldForwardProp:S,label:QH(),...A}),O=D=>{if(typeof D=="function"&&D.__emotion_real!==D)return function(R){return Xd(R,D)};if($o(D)){const k=V0(D);return k.variants?function(M){return Xd(M,k)}:k.style}return D},C=(...D)=>{const k=[],R=D.map(O),M=[];if(k.push(a),p&&H&&M.push(function(I){var ne,_;const $=(_=(ne=I.theme.components)==null?void 0:ne[p])==null?void 0:_.styleOverrides;if(!$)return null;const W={};for(const J in $)W[J]=Xd(I,$[J]);return H(I,W)}),p&&!w&&M.push(function(I){var W,ne;const F=I.theme,$=(ne=(W=F==null?void 0:F.components)==null?void 0:W[p])==null?void 0:ne.variants;return $?I0(I,$):null}),x||M.push(Ai),Array.isArray(R[0])){const B=R.shift(),I=new Array(k.length).fill(""),F=new Array(M.length).fill("");let $;$=[...I,...B,...F],$.raw=[...I,...B.raw,...F],k.unshift($)}const L=[...k,...R,...M],j=z(...L);return u.muiName&&(j.muiName=u.muiName),j};return z.withConfig&&(C.withConfig=z.withConfig),C}}function QH(e,t){return void 0}function KH(e){for(const t in e)return!1;return!0}function _H(e){return typeof e=="string"&&e.charCodeAt(0)>96}function $H(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const ej=W0();function zl(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const s=r;if(s==="components"||s==="slots")n[s]={...e[s],...n[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],l=t[s];if(!l)n[s]=a||{};else if(!a)n[s]=l;else{n[s]={...l};for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u)){const f=u;n[s][f]=zl(a[f],l[f])}}}else n[s]===void 0&&(n[s]=e[s])}return n}function J0(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:zl(t.components[n].defaultProps,r)}function tj({props:e,name:t,defaultTheme:n,themeId:r}){let s=Wp(n);return r&&(s=s[r]||s),J0({theme:s,name:t,props:e})}const fo=typeof window<"u"?P.useLayoutEffect:P.useEffect;function nj(e,t,n,r,s){const[a,l]=P.useState(()=>s&&n?n(e).matches:r?r(e).matches:t);return fo(()=>{if(!n)return;const u=n(e),f=()=>{l(u.matches)};return f(),u.addEventListener("change",f),()=>{u.removeEventListener("change",f)}},[e,n]),a}const rj={...ep},F0=rj.useSyncExternalStore;function oj(e,t,n,r,s){const a=P.useCallback(()=>t,[t]),l=P.useMemo(()=>{if(s&&n)return()=>n(e).matches;if(r!==null){const{matches:h}=r(e);return()=>h}return a},[a,e,r,s,n]),[u,f]=P.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const h=n(e);return[()=>h.matches,m=>(h.addEventListener("change",m),()=>{h.removeEventListener("change",m)})]},[a,n,e]);return F0(f,u,l)}function sj(e={}){const{themeId:t}=e;return function(r,s={}){let a=vy();a&&t&&(a=a[t]||a);const l=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:u=!1,matchMedia:f=l?window.matchMedia:null,ssrMatchMedia:p=null,noSsr:h=!1}=J0({name:"MuiUseMediaQuery",props:s,theme:a});let m=typeof r=="function"?r(a):r;return m=m.replace(/^@media( ?)/m,""),(F0!==void 0?oj:nj)(m,u,f,p,h)}}function ij(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function hy(e,t=0,n=1){return ij(e,t,n)}function aj(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,s)=>s<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Pi(e){if(e.type)return e;if(e.charAt(0)==="#")return Pi(aj(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(ks(9,e));let r=e.substring(t+1,e.length-1),s;if(n==="color"){if(r=r.split(" "),s=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(s))throw new Error(ks(10,s))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:s}}const lj=e=>{const t=Pi(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Kc=(e,t)=>{try{return lj(e)}catch{return e}};function Fp(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((s,a)=>a<3?parseInt(s,10):s):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Y0(e){e=Pi(e);const{values:t}=e,n=t[0],r=t[1]/100,s=t[2]/100,a=r*Math.min(s,1-s),l=(p,h=(p+n/30)%12)=>s-a*Math.max(Math.min(h-3,9-h,1),-1);let u="rgb";const f=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(u+="a",f.push(t[3])),Fp({type:u,values:f})}function ig(e){e=Pi(e);let t=e.type==="hsl"||e.type==="hsla"?Pi(Y0(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 cj(e,t){const n=ig(e),r=ig(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Pt(e,t){return e=Pi(e),t=hy(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Fp(e)}function hd(e,t,n){try{return Pt(e,t)}catch{return e}}function ca(e,t){if(e=Pi(e),t=hy(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 Fp(e)}function Kt(e,t,n){try{return ca(e,t)}catch{return e}}function ua(e,t){if(e=Pi(e),t=hy(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 Fp(e)}function _t(e,t,n){try{return ua(e,t)}catch{return e}}function q0(e,t=.15){return ig(e)>.5?ca(e,t):ua(e,t)}function md(e,t,n){try{return q0(e,t)}catch{return e}}function ag(...e){return e.reduce((t,n)=>n==null?t:function(...s){t.apply(this,s),n.apply(this,s)},()=>{})}function my(e,t=166){let n;function r(...s){const a=()=>{e.apply(this,s)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Nd(e,t){var n,r,s;return P.isValidElement(e)&&t.indexOf(e.type.muiName??((s=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:s.muiName))!==-1}function ir(e){return e&&e.ownerDocument||document}function Mo(e){return ir(e).defaultView||window}function rp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let b8=0;function uj(e){const[t,n]=P.useState(e),r=e||t;return P.useEffect(()=>{t==null&&(b8+=1,n(`mui-${b8}`))},[t]),r}const fj={...ep},x8=fj.useId;function Rs(e){if(x8!==void 0){const t=x8();return e??t}return uj(e)}function yi({controlled:e,default:t,name:n,state:r="value"}){const{current:s}=P.useRef(e!==void 0),[a,l]=P.useState(t),u=s?e:a,f=P.useCallback(p=>{s||l(p)},[]);return[u,f]}function mr(e){const t=P.useRef(e);return fo(()=>{t.current=e}),P.useRef((...n)=>(0,t.current)(...n)).current}function rn(...e){return P.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{rp(n,t)})},e)}const w8={};function Z0(e,t){const n=P.useRef(w8);return n.current===w8&&(n.current=e(t)),n}const dj=[];function pj(e){P.useEffect(e,dj)}class Yp{constructor(){Cc(this,"currentId",null);Cc(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Cc(this,"disposeEffect",()=>this.clear)}static create(){return new Yp}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Gi(){const e=Z0(Yp.create).current;return pj(e.disposeEffect),e}function Ol(e){try{return e.matches(":focus-visible")}catch{}return!1}function G0(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const vj=e=>{const t=P.useRef({});return P.useEffect(()=>{t.current=e}),t.current};function Ke(e,t,n=void 0){const r={};for(const s in e){const a=e[s];let l="",u=!0;for(let f=0;fr.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function H8(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 Q0(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:s,className:a}=e;if(!t){const H=Oe(n==null?void 0:n.className,a,s==null?void 0:s.className,r==null?void 0:r.className),A={...n==null?void 0:n.style,...s==null?void 0:s.style,...r==null?void 0:r.style},w={...n,...s,...r};return H.length>0&&(w.className=H),Object.keys(A).length>0&&(w.style=A),{props:w,internalRef:void 0}}const l=op({...s,...r}),u=H8(r),f=H8(s),p=t(l),h=Oe(p==null?void 0:p.className,n==null?void 0:n.className,a,s==null?void 0:s.className,r==null?void 0:r.className),m={...p==null?void 0:p.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...r==null?void 0:r.style},y={...p,...n,...f,...u};return h.length>0&&(y.className=h),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:p.ref}}function K0(e,t,n){return typeof e=="function"?e(t,n):e}function sp(e){var m;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:s=!1,...a}=e,l=s?{}:K0(n,r),{props:u,internalRef:f}=Q0({...a,externalSlotProps:l}),p=rn(f,l==null?void 0:l.ref,(m=e.additionalProps)==null?void 0:m.ref);return U0(t,{...u,ref:p},r)}function xi(e){var t;return parseInt(P.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const _0=P.createContext(null);function gy(){return P.useContext(_0)}const mj=typeof Symbol=="function"&&Symbol.for,gj=mj?Symbol.for("mui.nested"):"__THEME_NESTED__";function yj(e,t){return typeof t=="function"?t(e):{...e,...t}}function Aj(e){const{children:t,theme:n}=e,r=gy(),s=P.useMemo(()=>{const a=r===null?{...n}:yj(r,n);return a!=null&&(a[gj]=r!==null),a},[n,r]);return v.jsx(_0.Provider,{value:s,children:t})}const $0=P.createContext();function Pj({value:e,...t}){return v.jsx($0.Provider,{value:e??!0,...t})}const Ju=()=>P.useContext($0)??!1,e1=P.createContext(void 0);function bj({value:e,children:t}){return v.jsx(e1.Provider,{value:e,children:t})}function xj(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const s=t.components[n];return s.defaultProps?zl(s.defaultProps,r):!s.styleOverrides&&!s.variants?zl(s,r):r}function wj({props:e,name:t}){const n=P.useContext(e1);return xj({props:e,name:t,theme:{components:n}})}const j8={};function S8(e,t,n,r=!1){return P.useMemo(()=>{const s=e&&t[e]||t;if(typeof n=="function"){const a=n(s),l=e?{...t,[e]:a}:a;return r?()=>l:l}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function t1(e){const{children:t,theme:n,themeId:r}=e,s=vy(j8),a=gy()||j8,l=S8(r,s,n),u=S8(r,a,n,!0),f=(r?l[r]:l).direction==="rtl";return v.jsx(Aj,{theme:u,children:v.jsx(Rp.Provider,{value:l,children:v.jsx(Pj,{value:f,children:v.jsx(bj,{value:r?l[r].components:l.components,children:t})})})})}const z8={theme:void 0};function Hj(e){let t,n;return function(s){let a=t;return(a===void 0||s.theme!==n)&&(z8.theme=s.theme,a=V0(e(z8)),t=a,n=s.theme),a}}const yy="mode",Ay="color-scheme",jj="data-color-scheme";function Sj(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:s=yy,colorSchemeStorageKey:a=Ay,attribute:l=jj,colorSchemeNode:u="document.documentElement",nonce:f}=e||{};let p="",h=l;if(l==="class"&&(h=".%s"),l==="data"&&(h="[data-%s]"),h.startsWith(".")){const y=h.substring(1);p+=`${u}.classList.remove('${y}'.replace('%s', light), '${y}'.replace('%s', dark)); ${u}.classList.add('${y}'.replace('%s', colorScheme));`}const m=h.match(/\[([^\]]+)\]/);if(m){const[y,H]=m[1].split("=");H||(p+=`${u}.removeAttribute('${y}'.replace('%s', light)); ${u}.removeAttribute('${y}'.replace('%s', dark));`),p+=` ${u}.setAttribute('${y}'.replace('%s', colorScheme), ${H?`${H}.replace('%s', colorScheme)`:'""'});`}else p+=`${u}.setAttribute('${h}', colorScheme);`;return v.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?f:"",dangerouslySetInnerHTML:{__html:`(function() { @@ -54,15 +54,15 @@ try { if (colorScheme) { ${p} } -} catch(e){}})();`}},"mui-color-scheme-init")}function O8(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function n1(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 Sj(e){return n1(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function xm(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function zj(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:s=[],modeStorageKey:a=gy,colorSchemeStorageKey:l=yy,storageWindow:u=typeof window>"u"?void 0:window,noSsr:f=!1}=e,p=s.join(","),h=s.length>1,[m,y]=P.useState(()=>{const C=xm(a,t),D=xm(`${l}-light`,n),k=xm(`${l}-dark`,r);return{mode:C,systemMode:O8(C),lightColorScheme:D,darkColorScheme:k}}),[H,A]=P.useState(f||!h);P.useEffect(()=>{A(!0)},[]);const w=Sj(m),x=P.useCallback(C=>{y(D=>{if(C===D.mode)return D;const k=C??t;try{localStorage.setItem(a,k)}catch{}return{...D,mode:k,systemMode:O8(k)}})},[a,t]),S=P.useCallback(C=>{C?typeof C=="string"?C&&!p.includes(C)?console.error(`\`${C}\` does not exist in \`theme.colorSchemes\`.`):y(D=>{const k={...D};return n1(D,R=>{try{localStorage.setItem(`${l}-${R}`,C)}catch{}R==="light"&&(k.lightColorScheme=C),R==="dark"&&(k.darkColorScheme=C)}),k}):y(D=>{const k={...D},R=C.light===null?n:C.light,M=C.dark===null?r:C.dark;if(R)if(!p.includes(R))console.error(`\`${R}\` does not exist in \`theme.colorSchemes\`.`);else{k.lightColorScheme=R;try{localStorage.setItem(`${l}-light`,R)}catch{}}if(M)if(!p.includes(M))console.error(`\`${M}\` does not exist in \`theme.colorSchemes\`.`);else{k.darkColorScheme=M;try{localStorage.setItem(`${l}-dark`,M)}catch{}}return k}):y(D=>{try{localStorage.setItem(`${l}-light`,n),localStorage.setItem(`${l}-dark`,r)}catch{}return{...D,lightColorScheme:n,darkColorScheme:r}})},[p,l,n,r]),z=P.useCallback(C=>{m.mode==="system"&&y(D=>{const k=C!=null&&C.matches?"dark":"light";return D.systemMode===k?D:{...D,systemMode:k}})},[m.mode]),O=P.useRef(z);return O.current=z,P.useEffect(()=>{if(typeof window.matchMedia!="function"||!h)return;const C=(...k)=>O.current(...k),D=window.matchMedia("(prefers-color-scheme: dark)");return D.addListener(C),C(D),()=>{D.removeListener(C)}},[h]),P.useEffect(()=>{if(u&&h){const C=D=>{const k=D.newValue;typeof D.key=="string"&&D.key.startsWith(l)&&(!k||p.match(k))&&(D.key.endsWith("light")&&S({light:k}),D.key.endsWith("dark")&&S({dark:k})),D.key===a&&(!k||["light","dark","system"].includes(k))&&x(k||t)};return u.addEventListener("storage",C),()=>{u.removeEventListener("storage",C)}}},[S,x,a,l,p,t,u,h]),{...m,mode:H?m.mode:void 0,systemMode:H?m.systemMode:void 0,colorScheme:H?w:void 0,setMode:x,setColorScheme:S}}const Oj="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Cj(e){const{themeId:t,theme:n={},modeStorageKey:r=gy,colorSchemeStorageKey:s=yy,disableTransitionOnChange:a=!1,defaultColorScheme:l,resolveTheme:u}=e,f={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},p=P.createContext(void 0),h=()=>P.useContext(p)||f,m={},y={};function H(S){var Ae,je,st,wt;const{children:z,theme:O,modeStorageKey:C=r,colorSchemeStorageKey:D=s,disableTransitionOnChange:k=a,storageWindow:R=typeof window>"u"?void 0:window,documentNode:M=typeof document>"u"?void 0:document,colorSchemeNode:L=typeof document>"u"?void 0:document.documentElement,disableNestedContext:j=!1,disableStyleSheetGeneration:B=!1,defaultMode:I="system",noSsr:J}=S,K=P.useRef(!1),W=my(),ne=P.useContext(p),re=!!ne&&!j,F=P.useMemo(()=>O||(typeof n=="function"?n():n),[O]),_=F[t],E=_||F,{colorSchemes:G=m,components:X=y,cssVarPrefix:ee}=E,te=Object.keys(G).filter(nt=>!!G[nt]).join(","),ue=P.useMemo(()=>te.split(","),[te]),de=typeof l=="string"?l:l.light,xe=typeof l=="string"?l:l.dark,ve=G[de]&&G[xe]?I:((je=(Ae=G[E.defaultColorScheme])==null?void 0:Ae.palette)==null?void 0:je.mode)||((st=E.palette)==null?void 0:st.mode),{mode:be,setMode:Xe,systemMode:Ie,lightColorScheme:He,darkColorScheme:_e,colorScheme:we,setColorScheme:tt}=zj({supportedColorSchemes:ue,defaultLightColorScheme:de,defaultDarkColorScheme:xe,modeStorageKey:C,colorSchemeStorageKey:D,defaultMode:ve,storageWindow:R,noSsr:J});let Le=be,dt=we;re&&(Le=ne.mode,dt=ne.colorScheme);const N=P.useMemo(()=>{var Ht;const nt=dt||E.defaultColorScheme,ft=((Ht=E.generateThemeVars)==null?void 0:Ht.call(E))||E.vars,ct={...E,components:X,colorSchemes:G,cssVarPrefix:ee,vars:ft};if(typeof ct.generateSpacing=="function"&&(ct.spacing=ct.generateSpacing()),nt){const We=G[nt];We&&typeof We=="object"&&Object.keys(We).forEach(Dt=>{We[Dt]&&typeof We[Dt]=="object"?ct[Dt]={...ct[Dt],...We[Dt]}:ct[Dt]=We[Dt]})}return u?u(ct):ct},[E,dt,X,G,ee]),$=E.colorSchemeSelector;P.useEffect(()=>{if(dt&&L&&$&&$!=="media"){const nt=$;let ft=$;if(nt==="class"&&(ft=".%s"),nt==="data"&&(ft="[data-%s]"),nt!=null&&nt.startsWith("data-")&&!nt.includes("%s")&&(ft=`[${nt}="%s"]`),ft.startsWith("."))L.classList.remove(...ue.map(ct=>ft.substring(1).replace("%s",ct))),L.classList.add(ft.substring(1).replace("%s",dt));else{const ct=ft.replace("%s",dt).match(/\[([^\]]+)\]/);if(ct){const[Ht,We]=ct[1].split("=");We||ue.forEach(Dt=>{L.removeAttribute(Ht.replace(dt,Dt))}),L.setAttribute(Ht,We?We.replace(/"|'/g,""):"")}else L.setAttribute(ft,dt)}}},[dt,$,L,ue]),P.useEffect(()=>{let nt;if(k&&K.current&&M){const ft=M.createElement("style");ft.appendChild(M.createTextNode(Oj)),M.head.appendChild(ft),window.getComputedStyle(M.body),nt=setTimeout(()=>{M.head.removeChild(ft)},1)}return()=>{clearTimeout(nt)}},[dt,k,M]),P.useEffect(()=>(K.current=!0,()=>{K.current=!1}),[]);const se=P.useMemo(()=>({allColorSchemes:ue,colorScheme:dt,darkColorScheme:_e,lightColorScheme:He,mode:Le,setColorScheme:tt,setMode:Xe,systemMode:Ie}),[ue,dt,_e,He,Le,tt,Xe,Ie,N.colorSchemeSelector]);let ye=!0;(B||E.cssVariables===!1||re&&(W==null?void 0:W.cssVarPrefix)===ee)&&(ye=!1);const ce=v.jsxs(P.Fragment,{children:[v.jsx(t1,{themeId:_?t:void 0,theme:N,children:z}),ye&&v.jsx(T0,{styles:((wt=N.generateStyleSheets)==null?void 0:wt.call(N))||[]})]});return re?ce:v.jsx(p.Provider,{value:se,children:ce})}const A=typeof l=="string"?l:l.light,w=typeof l=="string"?l:l.dark;return{CssVarsProvider:H,useColorScheme:h,getInitColorSchemeScript:S=>jj({colorSchemeStorageKey:s,defaultLightColorScheme:A,defaultDarkColorScheme:w,modeStorageKey:r,...S})}}function Dj(e=""){function t(...r){if(!r.length)return"";const s=r[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${s}${t(...r.slice(1))})`:`, ${s}`}return(r,...s)=>`var(--${e?`${e}-`:""}${r}${t(...s)})`}const C8=(e,t,n,r=[])=>{let s=e;t.forEach((a,l)=>{l===t.length-1?Array.isArray(s)?s[Number(a)]=n:s&&typeof s=="object"&&(s[a]=n):s&&typeof s=="object"&&(s[a]||(s[a]=r.includes(a)?[]:{}),s=s[a])})},Tj=(e,t,n)=>{function r(s,a=[],l=[]){Object.entries(s).forEach(([u,f])=>{(!n||n&&!n([...a,u]))&&f!=null&&(typeof f=="object"&&Object.keys(f).length>0?r(f,[...a,u],Array.isArray(f)?[...l,u]:l):t([...a,u],f,l))})}r(e)},kj=(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 wm(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},s={},a={},l={};return Tj(e,(u,f,p)=>{if((typeof f=="string"||typeof f=="number")&&(!r||!r(u,f))){const h=`--${n?`${n}-`:""}${u.join("-")}`,m=kj(u,f);Object.assign(s,{[h]:m}),C8(a,u,`var(${h})`,p),C8(l,u,`var(${h}, ${m})`,p)}},u=>u[0]==="vars"),{css:s,vars:a,varsWithDefaults:l}}function Rj(e,t={}){const{getSelector:n=x,disableCssColorScheme:r,colorSchemeSelector:s}=t,{colorSchemes:a={},components:l,defaultColorScheme:u="light",...f}=e,{vars:p,css:h,varsWithDefaults:m}=wm(f,t);let y=m;const H={},{[u]:A,...w}=a;if(Object.entries(w||{}).forEach(([O,C])=>{const{vars:D,css:k,varsWithDefaults:R}=wm(C,t);y=qn(y,R),H[O]={css:k,vars:D}}),A){const{css:O,vars:C,varsWithDefaults:D}=wm(A,t);y=qn(y,D),H[u]={css:O,vars:C}}function x(O,C){var k,R;let D=s;if(s==="class"&&(D=".%s"),s==="data"&&(D="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(D=`[${s}="%s"]`),O){if(D==="media")return e.defaultColorScheme===O?":root":{[`@media (prefers-color-scheme: ${((R=(k=a[O])==null?void 0:k.palette)==null?void 0:R.mode)||O})`]:{":root":C}};if(D)return e.defaultColorScheme===O?`:root, ${D.replace("%s",String(O))}`:D.replace("%s",String(O))}return":root"}return{vars:y,generateThemeVars:()=>{let O={...p};return Object.entries(H).forEach(([,{vars:C}])=>{O=qn(O,C)}),O},generateStyleSheets:()=>{var M,L;const O=[],C=e.defaultColorScheme||"light";function D(j,B){Object.keys(B).length&&O.push(typeof j=="string"?{[j]:{...B}}:j)}D(n(void 0,{...h}),h);const{[C]:k,...R}=H;if(k){const{css:j}=k,B=(L=(M=a[C])==null?void 0:M.palette)==null?void 0:L.mode,I=!r&&B?{colorScheme:B,...j}:{...j};D(n(C,{...I}),I)}return Object.entries(R).forEach(([j,{css:B}])=>{var K,W;const I=(W=(K=a[j])==null?void 0:K.palette)==null?void 0:W.mode,J=!r&&I?{colorScheme:I,...B}:{...B};D(n(j,{...J}),J)}),O}}}function Ej(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)} &`:"&"}}const Mj=Ip(),Lj=$H("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Xj(e){return ej({props:e,name:"MuiStack",defaultTheme:Mj})}function Nj(e,t){const n=P.Children.toArray(e).filter(Boolean);return n.reduce((r,s,a)=>(r.push(s),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Vj=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Rr({theme:t},sa({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Mp(t),s=Object.keys(t.breakpoints.values).reduce((f,p)=>((typeof e.spacing=="object"&&e.spacing[p]!=null||typeof e.direction=="object"&&e.direction[p]!=null)&&(f[p]=!0),f),{}),a=sa({values:e.direction,base:s}),l=sa({values:e.spacing,base:s});typeof a=="object"&&Object.keys(a).forEach((f,p,h)=>{if(!a[f]){const y=p>0?a[h[p-1]]:"column";a[f]=y}}),n=qn(n,Rr({theme:t},l,(f,p)=>e.useFlexGap?{gap:la(r,f)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Bj(p?a[p]:e.direction)}`]:la(r,f)}}))}return n=K7(t.breakpoints,n),n};function Ij(e={}){const{createStyledComponent:t=Lj,useThemeProps:n=Xj,componentName:r="MuiStack"}=e,s=()=>Ke({root:["root"]},f=>Ge(r,f),{}),a=t(Vj);return P.forwardRef(function(f,p){const h=n(f),m=Jp(h),{component:y="div",direction:H="column",spacing:A=0,divider:w,children:x,className:S,useFlexGap:z=!1,...O}=m,C={direction:H,spacing:A,useFlexGap:z},D=s();return v.jsx(a,{as:y,ownerState:C,ref:p,className:Oe(D.root,S),...O,children:w?Nj(x,w):x})})}function r1(){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:Pu.white,default:Pu.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 Wj=r1();function o1(){return{text:{primary:Pu.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:Pu.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 D8=o1();function T8(e,t,n,r){const s=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=ua(e.main,s):t==="dark"&&(e.dark=ca(e.main,a)))}function Jj(e="light"){return e==="dark"?{main:qa[200],light:qa[50],dark:qa[400]}:{main:qa[700],light:qa[400],dark:qa[800]}}function Fj(e="light"){return e==="dark"?{main:Ya[200],light:Ya[50],dark:Ya[400]}:{main:Ya[500],light:Ya[300],dark:Ya[700]}}function Yj(e="light"){return e==="dark"?{main:Fa[500],light:Fa[300],dark:Fa[700]}:{main:Fa[700],light:Fa[400],dark:Fa[800]}}function qj(e="light"){return e==="dark"?{main:Za[400],light:Za[300],dark:Za[700]}:{main:Za[700],light:Za[500],dark:Za[900]}}function Zj(e="light"){return e==="dark"?{main:Ga[400],light:Ga[300],dark:Ga[700]}:{main:Ga[800],light:Ga[500],dark:Ga[900]}}function Gj(e="light"){return e==="dark"?{main:Tc[400],light:Tc[300],dark:Tc[700]}:{main:"#ed6c02",light:Tc[500],dark:Tc[900]}}function Ay(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...s}=e,a=e.primary||Jj(t),l=e.secondary||Fj(t),u=e.error||Yj(t),f=e.info||qj(t),p=e.success||Zj(t),h=e.warning||Gj(t);function m(w){return lj(w,D8.text.primary)>=n?D8.text.primary:Wj.text.primary}const y=({color:w,name:x,mainShade:S=500,lightShade:z=300,darkShade:O=700})=>{if(w={...w},!w.main&&w[S]&&(w.main=w[S]),!w.hasOwnProperty("main"))throw new Error(ks(11,x?` (${x})`:"",S));if(typeof w.main!="string")throw new Error(ks(12,x?` (${x})`:"",JSON.stringify(w.main)));return T8(w,"light",z,r),T8(w,"dark",O,r),w.contrastText||(w.contrastText=m(w.main)),w};let H;return t==="light"?H=r1():t==="dark"&&(H=o1()),qn({common:{...Pu},mode:t,primary:y({color:a,name:"primary"}),secondary:y({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:u,name:"error"}),warning:y({color:h,name:"warning"}),info:y({color:f,name:"info"}),success:y({color:p,name:"success"}),grey:I3,contrastThreshold:n,getContrastText:m,augmentColor:y,tonalOffset:r,...H},s)}function Uj(e){const t={};return Object.entries(e).forEach(r=>{const[s,a]=r;typeof a=="object"&&(t[s]=`${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 Qj(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Kj(e){return Math.round(e*1e5)/1e5}const k8={textTransform:"uppercase"},R8='"Roboto", "Helvetica", "Arial", sans-serif';function s1(e,t){const{fontFamily:n=R8,fontSize:r=14,fontWeightLight:s=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:u=700,htmlFontSize:f=16,allVariants:p,pxToRem:h,...m}=typeof t=="function"?t(e):t,y=r/14,H=h||(x=>`${x/f*y}rem`),A=(x,S,z,O,C)=>({fontFamily:n,fontWeight:x,fontSize:H(S),lineHeight:z,...n===R8?{letterSpacing:`${Kj(O/S)}em`}:{},...C,...p}),w={h1:A(s,96,1.167,-1.5),h2:A(s,60,1.2,-.5),h3:A(a,48,1.167,0),h4:A(a,34,1.235,.25),h5:A(a,24,1.334,0),h6:A(l,20,1.6,.15),subtitle1:A(a,16,1.75,.15),subtitle2:A(l,14,1.57,.1),body1:A(a,16,1.5,.15),body2:A(a,14,1.43,.15),button:A(l,14,1.75,.4,k8),caption:A(a,12,1.66,.4),overline:A(a,12,2.66,1,k8),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qn({htmlFontSize:f,pxToRem:H,fontFamily:n,fontSize:r,fontWeightLight:s,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:u,...w},m,{clone:!1})}const _j=.2,$j=.14,eS=.12;function dn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${_j})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${$j})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${eS})`].join(",")}const tS=["none",dn(0,2,1,-1,0,1,1,0,0,1,3,0),dn(0,3,1,-2,0,2,2,0,0,1,5,0),dn(0,3,3,-2,0,3,4,0,0,1,8,0),dn(0,2,4,-1,0,4,5,0,0,1,10,0),dn(0,3,5,-1,0,5,8,0,0,1,14,0),dn(0,3,5,-1,0,6,10,0,0,1,18,0),dn(0,4,5,-2,0,7,10,1,0,2,16,1),dn(0,5,5,-3,0,8,10,1,0,3,14,2),dn(0,5,6,-3,0,9,12,1,0,3,16,2),dn(0,6,6,-3,0,10,14,1,0,4,18,3),dn(0,6,7,-4,0,11,15,1,0,4,20,3),dn(0,7,8,-4,0,12,17,2,0,5,22,4),dn(0,7,8,-4,0,13,19,2,0,5,24,4),dn(0,7,9,-4,0,14,21,2,0,5,26,4),dn(0,8,9,-5,0,15,22,2,0,6,28,5),dn(0,8,10,-5,0,16,24,2,0,6,30,5),dn(0,8,11,-5,0,17,26,2,0,6,32,5),dn(0,9,11,-5,0,18,28,2,0,7,34,6),dn(0,9,12,-6,0,19,29,2,0,7,36,6),dn(0,10,13,-6,0,20,31,3,0,8,38,7),dn(0,10,13,-6,0,21,33,3,0,8,40,7),dn(0,10,14,-6,0,22,35,3,0,8,42,7),dn(0,11,14,-7,0,23,36,3,0,9,44,8),dn(0,11,15,-7,0,24,38,3,0,9,46,8)],nS={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)"},rS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function E8(e){return`${Math.round(e)}ms`}function oS(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function sS(e){const t={...nS,...e.easing},n={...rS,...e.duration};return{getAutoHeightDuration:oS,create:(s=["all"],a={})=>{const{duration:l=n.standard,easing:u=t.easeInOut,delay:f=0,...p}=a;return(Array.isArray(s)?s:[s]).map(h=>`${h} ${typeof l=="string"?l:E8(l)} ${u} ${typeof f=="string"?f:E8(f)}`).join(",")},...e,easing:t,duration:n}}const iS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function aS(e){return $o(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function i1(e={}){const t={...e};function n(r){const s=Object.entries(r);for(let a=0;a{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function wm(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function Oj(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:s=[],modeStorageKey:a=yy,colorSchemeStorageKey:l=Ay,storageWindow:u=typeof window>"u"?void 0:window,noSsr:f=!1}=e,p=s.join(","),h=s.length>1,[m,y]=P.useState(()=>{const C=wm(a,t),D=wm(`${l}-light`,n),k=wm(`${l}-dark`,r);return{mode:C,systemMode:O8(C),lightColorScheme:D,darkColorScheme:k}}),[H,A]=P.useState(f||!h);P.useEffect(()=>{A(!0)},[]);const w=zj(m),x=P.useCallback(C=>{y(D=>{if(C===D.mode)return D;const k=C??t;try{localStorage.setItem(a,k)}catch{}return{...D,mode:k,systemMode:O8(k)}})},[a,t]),S=P.useCallback(C=>{C?typeof C=="string"?C&&!p.includes(C)?console.error(`\`${C}\` does not exist in \`theme.colorSchemes\`.`):y(D=>{const k={...D};return n1(D,R=>{try{localStorage.setItem(`${l}-${R}`,C)}catch{}R==="light"&&(k.lightColorScheme=C),R==="dark"&&(k.darkColorScheme=C)}),k}):y(D=>{const k={...D},R=C.light===null?n:C.light,M=C.dark===null?r:C.dark;if(R)if(!p.includes(R))console.error(`\`${R}\` does not exist in \`theme.colorSchemes\`.`);else{k.lightColorScheme=R;try{localStorage.setItem(`${l}-light`,R)}catch{}}if(M)if(!p.includes(M))console.error(`\`${M}\` does not exist in \`theme.colorSchemes\`.`);else{k.darkColorScheme=M;try{localStorage.setItem(`${l}-dark`,M)}catch{}}return k}):y(D=>{try{localStorage.setItem(`${l}-light`,n),localStorage.setItem(`${l}-dark`,r)}catch{}return{...D,lightColorScheme:n,darkColorScheme:r}})},[p,l,n,r]),z=P.useCallback(C=>{m.mode==="system"&&y(D=>{const k=C!=null&&C.matches?"dark":"light";return D.systemMode===k?D:{...D,systemMode:k}})},[m.mode]),O=P.useRef(z);return O.current=z,P.useEffect(()=>{if(typeof window.matchMedia!="function"||!h)return;const C=(...k)=>O.current(...k),D=window.matchMedia("(prefers-color-scheme: dark)");return D.addListener(C),C(D),()=>{D.removeListener(C)}},[h]),P.useEffect(()=>{if(u&&h){const C=D=>{const k=D.newValue;typeof D.key=="string"&&D.key.startsWith(l)&&(!k||p.match(k))&&(D.key.endsWith("light")&&S({light:k}),D.key.endsWith("dark")&&S({dark:k})),D.key===a&&(!k||["light","dark","system"].includes(k))&&x(k||t)};return u.addEventListener("storage",C),()=>{u.removeEventListener("storage",C)}}},[S,x,a,l,p,t,u,h]),{...m,mode:H?m.mode:void 0,systemMode:H?m.systemMode:void 0,colorScheme:H?w:void 0,setMode:x,setColorScheme:S}}const Cj="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Dj(e){const{themeId:t,theme:n={},modeStorageKey:r=yy,colorSchemeStorageKey:s=Ay,disableTransitionOnChange:a=!1,defaultColorScheme:l,resolveTheme:u}=e,f={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},p=P.createContext(void 0),h=()=>P.useContext(p)||f,m={},y={};function H(S){var Ae,je,st,wt;const{children:z,theme:O,modeStorageKey:C=r,colorSchemeStorageKey:D=s,disableTransitionOnChange:k=a,storageWindow:R=typeof window>"u"?void 0:window,documentNode:M=typeof document>"u"?void 0:document,colorSchemeNode:L=typeof document>"u"?void 0:document.documentElement,disableNestedContext:j=!1,disableStyleSheetGeneration:B=!1,defaultMode:I="system",noSsr:F}=S,$=P.useRef(!1),W=gy(),ne=P.useContext(p),_=!!ne&&!j,J=P.useMemo(()=>O||(typeof n=="function"?n():n),[O]),Q=J[t],E=Q||J,{colorSchemes:Z=m,components:X=y,cssVarPrefix:re}=E,ee=Object.keys(Z).filter(nt=>!!Z[nt]).join(","),ue=P.useMemo(()=>ee.split(","),[ee]),de=typeof l=="string"?l:l.light,we=typeof l=="string"?l:l.dark,ve=Z[de]&&Z[we]?I:((je=(Ae=Z[E.defaultColorScheme])==null?void 0:Ae.palette)==null?void 0:je.mode)||((st=E.palette)==null?void 0:st.mode),{mode:be,setMode:Xe,systemMode:Ie,lightColorScheme:He,darkColorScheme:_e,colorScheme:xe,setColorScheme:tt}=Oj({supportedColorSchemes:ue,defaultLightColorScheme:de,defaultDarkColorScheme:we,modeStorageKey:C,colorSchemeStorageKey:D,defaultMode:ve,storageWindow:R,noSsr:F});let Le=be,dt=xe;_&&(Le=ne.mode,dt=ne.colorScheme);const N=P.useMemo(()=>{var Ht;const nt=dt||E.defaultColorScheme,ft=((Ht=E.generateThemeVars)==null?void 0:Ht.call(E))||E.vars,ct={...E,components:X,colorSchemes:Z,cssVarPrefix:re,vars:ft};if(typeof ct.generateSpacing=="function"&&(ct.spacing=ct.generateSpacing()),nt){const We=Z[nt];We&&typeof We=="object"&&Object.keys(We).forEach(Dt=>{We[Dt]&&typeof We[Dt]=="object"?ct[Dt]={...ct[Dt],...We[Dt]}:ct[Dt]=We[Dt]})}return u?u(ct):ct},[E,dt,X,Z,re]),te=E.colorSchemeSelector;P.useEffect(()=>{if(dt&&L&&te&&te!=="media"){const nt=te;let ft=te;if(nt==="class"&&(ft=".%s"),nt==="data"&&(ft="[data-%s]"),nt!=null&&nt.startsWith("data-")&&!nt.includes("%s")&&(ft=`[${nt}="%s"]`),ft.startsWith("."))L.classList.remove(...ue.map(ct=>ft.substring(1).replace("%s",ct))),L.classList.add(ft.substring(1).replace("%s",dt));else{const ct=ft.replace("%s",dt).match(/\[([^\]]+)\]/);if(ct){const[Ht,We]=ct[1].split("=");We||ue.forEach(Dt=>{L.removeAttribute(Ht.replace(dt,Dt))}),L.setAttribute(Ht,We?We.replace(/"|'/g,""):"")}else L.setAttribute(ft,dt)}}},[dt,te,L,ue]),P.useEffect(()=>{let nt;if(k&&$.current&&M){const ft=M.createElement("style");ft.appendChild(M.createTextNode(Cj)),M.head.appendChild(ft),window.getComputedStyle(M.body),nt=setTimeout(()=>{M.head.removeChild(ft)},1)}return()=>{clearTimeout(nt)}},[dt,k,M]),P.useEffect(()=>($.current=!0,()=>{$.current=!1}),[]);const se=P.useMemo(()=>({allColorSchemes:ue,colorScheme:dt,darkColorScheme:_e,lightColorScheme:He,mode:Le,setColorScheme:tt,setMode:Xe,systemMode:Ie}),[ue,dt,_e,He,Le,tt,Xe,Ie,N.colorSchemeSelector]);let ye=!0;(B||E.cssVariables===!1||_&&(W==null?void 0:W.cssVarPrefix)===re)&&(ye=!1);const ce=v.jsxs(P.Fragment,{children:[v.jsx(t1,{themeId:Q?t:void 0,theme:N,children:z}),ye&&v.jsx(T0,{styles:((wt=N.generateStyleSheets)==null?void 0:wt.call(N))||[]})]});return _?ce:v.jsx(p.Provider,{value:se,children:ce})}const A=typeof l=="string"?l:l.light,w=typeof l=="string"?l:l.dark;return{CssVarsProvider:H,useColorScheme:h,getInitColorSchemeScript:S=>Sj({colorSchemeStorageKey:s,defaultLightColorScheme:A,defaultDarkColorScheme:w,modeStorageKey:r,...S})}}function Tj(e=""){function t(...r){if(!r.length)return"";const s=r[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${s}${t(...r.slice(1))})`:`, ${s}`}return(r,...s)=>`var(--${e?`${e}-`:""}${r}${t(...s)})`}const C8=(e,t,n,r=[])=>{let s=e;t.forEach((a,l)=>{l===t.length-1?Array.isArray(s)?s[Number(a)]=n:s&&typeof s=="object"&&(s[a]=n):s&&typeof s=="object"&&(s[a]||(s[a]=r.includes(a)?[]:{}),s=s[a])})},kj=(e,t,n)=>{function r(s,a=[],l=[]){Object.entries(s).forEach(([u,f])=>{(!n||n&&!n([...a,u]))&&f!=null&&(typeof f=="object"&&Object.keys(f).length>0?r(f,[...a,u],Array.isArray(f)?[...l,u]:l):t([...a,u],f,l))})}r(e)},Rj=(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 Hm(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},s={},a={},l={};return kj(e,(u,f,p)=>{if((typeof f=="string"||typeof f=="number")&&(!r||!r(u,f))){const h=`--${n?`${n}-`:""}${u.join("-")}`,m=Rj(u,f);Object.assign(s,{[h]:m}),C8(a,u,`var(${h})`,p),C8(l,u,`var(${h}, ${m})`,p)}},u=>u[0]==="vars"),{css:s,vars:a,varsWithDefaults:l}}function Ej(e,t={}){const{getSelector:n=x,disableCssColorScheme:r,colorSchemeSelector:s}=t,{colorSchemes:a={},components:l,defaultColorScheme:u="light",...f}=e,{vars:p,css:h,varsWithDefaults:m}=Hm(f,t);let y=m;const H={},{[u]:A,...w}=a;if(Object.entries(w||{}).forEach(([O,C])=>{const{vars:D,css:k,varsWithDefaults:R}=Hm(C,t);y=qn(y,R),H[O]={css:k,vars:D}}),A){const{css:O,vars:C,varsWithDefaults:D}=Hm(A,t);y=qn(y,D),H[u]={css:O,vars:C}}function x(O,C){var k,R;let D=s;if(s==="class"&&(D=".%s"),s==="data"&&(D="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(D=`[${s}="%s"]`),O){if(D==="media")return e.defaultColorScheme===O?":root":{[`@media (prefers-color-scheme: ${((R=(k=a[O])==null?void 0:k.palette)==null?void 0:R.mode)||O})`]:{":root":C}};if(D)return e.defaultColorScheme===O?`:root, ${D.replace("%s",String(O))}`:D.replace("%s",String(O))}return":root"}return{vars:y,generateThemeVars:()=>{let O={...p};return Object.entries(H).forEach(([,{vars:C}])=>{O=qn(O,C)}),O},generateStyleSheets:()=>{var M,L;const O=[],C=e.defaultColorScheme||"light";function D(j,B){Object.keys(B).length&&O.push(typeof j=="string"?{[j]:{...B}}:j)}D(n(void 0,{...h}),h);const{[C]:k,...R}=H;if(k){const{css:j}=k,B=(L=(M=a[C])==null?void 0:M.palette)==null?void 0:L.mode,I=!r&&B?{colorScheme:B,...j}:{...j};D(n(C,{...I}),I)}return Object.entries(R).forEach(([j,{css:B}])=>{var $,W;const I=(W=($=a[j])==null?void 0:$.palette)==null?void 0:W.mode,F=!r&&I?{colorScheme:I,...B}:{...B};D(n(j,{...F}),F)}),O}}}function Mj(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)} &`:"&"}}const Lj=Ip(),Xj=ej("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Nj(e){return tj({props:e,name:"MuiStack",defaultTheme:Lj})}function Bj(e,t){const n=P.Children.toArray(e).filter(Boolean);return n.reduce((r,s,a)=>(r.push(s),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Ij=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Rr({theme:t},sa({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Mp(t),s=Object.keys(t.breakpoints.values).reduce((f,p)=>((typeof e.spacing=="object"&&e.spacing[p]!=null||typeof e.direction=="object"&&e.direction[p]!=null)&&(f[p]=!0),f),{}),a=sa({values:e.direction,base:s}),l=sa({values:e.spacing,base:s});typeof a=="object"&&Object.keys(a).forEach((f,p,h)=>{if(!a[f]){const y=p>0?a[h[p-1]]:"column";a[f]=y}}),n=qn(n,Rr({theme:t},l,(f,p)=>e.useFlexGap?{gap:la(r,f)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Vj(p?a[p]:e.direction)}`]:la(r,f)}}))}return n=_7(t.breakpoints,n),n};function Wj(e={}){const{createStyledComponent:t=Xj,useThemeProps:n=Nj,componentName:r="MuiStack"}=e,s=()=>Ke({root:["root"]},f=>Ge(r,f),{}),a=t(Ij);return P.forwardRef(function(f,p){const h=n(f),m=Jp(h),{component:y="div",direction:H="column",spacing:A=0,divider:w,children:x,className:S,useFlexGap:z=!1,...O}=m,C={direction:H,spacing:A,useFlexGap:z},D=s();return v.jsx(a,{as:y,ownerState:C,ref:p,className:Oe(D.root,S),...O,children:w?Bj(x,w):x})})}function r1(){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:Pu.white,default:Pu.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 Jj=r1();function o1(){return{text:{primary:Pu.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:Pu.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 D8=o1();function T8(e,t,n,r){const s=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=ua(e.main,s):t==="dark"&&(e.dark=ca(e.main,a)))}function Fj(e="light"){return e==="dark"?{main:qa[200],light:qa[50],dark:qa[400]}:{main:qa[700],light:qa[400],dark:qa[800]}}function Yj(e="light"){return e==="dark"?{main:Ya[200],light:Ya[50],dark:Ya[400]}:{main:Ya[500],light:Ya[300],dark:Ya[700]}}function qj(e="light"){return e==="dark"?{main:Fa[500],light:Fa[300],dark:Fa[700]}:{main:Fa[700],light:Fa[400],dark:Fa[800]}}function Zj(e="light"){return e==="dark"?{main:Za[400],light:Za[300],dark:Za[700]}:{main:Za[700],light:Za[500],dark:Za[900]}}function Gj(e="light"){return e==="dark"?{main:Ga[400],light:Ga[300],dark:Ga[700]}:{main:Ga[800],light:Ga[500],dark:Ga[900]}}function Uj(e="light"){return e==="dark"?{main:Tc[400],light:Tc[300],dark:Tc[700]}:{main:"#ed6c02",light:Tc[500],dark:Tc[900]}}function Py(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...s}=e,a=e.primary||Fj(t),l=e.secondary||Yj(t),u=e.error||qj(t),f=e.info||Zj(t),p=e.success||Gj(t),h=e.warning||Uj(t);function m(w){return cj(w,D8.text.primary)>=n?D8.text.primary:Jj.text.primary}const y=({color:w,name:x,mainShade:S=500,lightShade:z=300,darkShade:O=700})=>{if(w={...w},!w.main&&w[S]&&(w.main=w[S]),!w.hasOwnProperty("main"))throw new Error(ks(11,x?` (${x})`:"",S));if(typeof w.main!="string")throw new Error(ks(12,x?` (${x})`:"",JSON.stringify(w.main)));return T8(w,"light",z,r),T8(w,"dark",O,r),w.contrastText||(w.contrastText=m(w.main)),w};let H;return t==="light"?H=r1():t==="dark"&&(H=o1()),qn({common:{...Pu},mode:t,primary:y({color:a,name:"primary"}),secondary:y({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:u,name:"error"}),warning:y({color:h,name:"warning"}),info:y({color:f,name:"info"}),success:y({color:p,name:"success"}),grey:W3,contrastThreshold:n,getContrastText:m,augmentColor:y,tonalOffset:r,...H},s)}function Qj(e){const t={};return Object.entries(e).forEach(r=>{const[s,a]=r;typeof a=="object"&&(t[s]=`${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 Kj(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function _j(e){return Math.round(e*1e5)/1e5}const k8={textTransform:"uppercase"},R8='"Roboto", "Helvetica", "Arial", sans-serif';function s1(e,t){const{fontFamily:n=R8,fontSize:r=14,fontWeightLight:s=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:u=700,htmlFontSize:f=16,allVariants:p,pxToRem:h,...m}=typeof t=="function"?t(e):t,y=r/14,H=h||(x=>`${x/f*y}rem`),A=(x,S,z,O,C)=>({fontFamily:n,fontWeight:x,fontSize:H(S),lineHeight:z,...n===R8?{letterSpacing:`${_j(O/S)}em`}:{},...C,...p}),w={h1:A(s,96,1.167,-1.5),h2:A(s,60,1.2,-.5),h3:A(a,48,1.167,0),h4:A(a,34,1.235,.25),h5:A(a,24,1.334,0),h6:A(l,20,1.6,.15),subtitle1:A(a,16,1.75,.15),subtitle2:A(l,14,1.57,.1),body1:A(a,16,1.5,.15),body2:A(a,14,1.43,.15),button:A(l,14,1.75,.4,k8),caption:A(a,12,1.66,.4),overline:A(a,12,2.66,1,k8),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qn({htmlFontSize:f,pxToRem:H,fontFamily:n,fontSize:r,fontWeightLight:s,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:u,...w},m,{clone:!1})}const $j=.2,eS=.14,tS=.12;function dn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${$j})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${eS})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${tS})`].join(",")}const nS=["none",dn(0,2,1,-1,0,1,1,0,0,1,3,0),dn(0,3,1,-2,0,2,2,0,0,1,5,0),dn(0,3,3,-2,0,3,4,0,0,1,8,0),dn(0,2,4,-1,0,4,5,0,0,1,10,0),dn(0,3,5,-1,0,5,8,0,0,1,14,0),dn(0,3,5,-1,0,6,10,0,0,1,18,0),dn(0,4,5,-2,0,7,10,1,0,2,16,1),dn(0,5,5,-3,0,8,10,1,0,3,14,2),dn(0,5,6,-3,0,9,12,1,0,3,16,2),dn(0,6,6,-3,0,10,14,1,0,4,18,3),dn(0,6,7,-4,0,11,15,1,0,4,20,3),dn(0,7,8,-4,0,12,17,2,0,5,22,4),dn(0,7,8,-4,0,13,19,2,0,5,24,4),dn(0,7,9,-4,0,14,21,2,0,5,26,4),dn(0,8,9,-5,0,15,22,2,0,6,28,5),dn(0,8,10,-5,0,16,24,2,0,6,30,5),dn(0,8,11,-5,0,17,26,2,0,6,32,5),dn(0,9,11,-5,0,18,28,2,0,7,34,6),dn(0,9,12,-6,0,19,29,2,0,7,36,6),dn(0,10,13,-6,0,20,31,3,0,8,38,7),dn(0,10,13,-6,0,21,33,3,0,8,40,7),dn(0,10,14,-6,0,22,35,3,0,8,42,7),dn(0,11,14,-7,0,23,36,3,0,9,44,8),dn(0,11,15,-7,0,24,38,3,0,9,46,8)],rS={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)"},oS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function E8(e){return`${Math.round(e)}ms`}function sS(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function iS(e){const t={...rS,...e.easing},n={...oS,...e.duration};return{getAutoHeightDuration:sS,create:(s=["all"],a={})=>{const{duration:l=n.standard,easing:u=t.easeInOut,delay:f=0,...p}=a;return(Array.isArray(s)?s:[s]).map(h=>`${h} ${typeof l=="string"?l:E8(l)} ${u} ${typeof f=="string"?f:E8(f)}`).join(",")},...e,easing:t,duration:n}}const aS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function lS(e){return $o(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function i1(e={}){const t={...e};function n(r){const s=Object.entries(r);for(let a=0;aqn(H,A),y),y.unstable_sxConfig={...Wu,...p==null?void 0:p.unstable_sxConfig},y.unstable_sx=function(A){return Ai({sx:A,theme:this})},y.toRuntimeSource=i1,y}function lg(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 lS=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=lg(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function a1(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function l1(e){return e==="dark"?lS:[]}function cS(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...s}=e,a=Ay(t);return{palette:a,opacity:{...a1(a.mode),...n},overlays:r||l1(a.mode),...s}}function uS(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const fS=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],dS=e=>(t,n)=>{const r=e.rootSelector||":root",s=e.colorSchemeSelector;let a=s;if(s==="class"&&(a=".%s"),s==="data"&&(a="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(a=`[${s}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return fS(e.cssVarPrefix).forEach(u=>{l[u]=n[u],delete n[u]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:l}}:a?{[a.replace("%s",t)]:l,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...l}}}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 pS(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ge(e,t,n){!e[t]&&n&&(e[t]=n)}function _c(e){return typeof e!="string"||!e.startsWith("hsl")?e:Y0(e)}function bs(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Kc(_c(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). -To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function vS(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Yo=e=>{try{return e()}catch{}},hS=(e="mui")=>Dj(e);function Hm(e,t,n,r){if(!t)return;t=t===!0?{}:t;const s=r==="dark"?"dark":"light";if(!n){e[r]=cS({...t,palette:{mode:s,...t==null?void 0:t.palette}});return}const{palette:a,...l}=ag({...n,palette:{mode:s,...t==null?void 0:t.palette}});return e[r]={...t,palette:a,opacity:{...a1(s),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||l1(s)},l}function mS(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:s=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:l=uS,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:f=":root",...p}=e,h=Object.keys(n)[0],m=r||(n.light&&h!=="light"?"light":h),y=hS(a),{[m]:H,light:A,dark:w,...x}=n,S={...x};let z=H;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(z=!0),!z)throw new Error(ks(21,m));const O=Hm(S,z,p,m);A&&!S.light&&Hm(S,A,void 0,"light"),w&&!S.dark&&Hm(S,w,void 0,"dark");let C={defaultColorScheme:m,...O,cssVarPrefix:a,colorSchemeSelector:u,rootSelector:f,getCssVar:y,colorSchemes:S,font:{...Uj(O.typography),...O.font},spacing:vS(p.spacing)};Object.keys(C.colorSchemes).forEach(L=>{const j=C.colorSchemes[L].palette,B=I=>{const J=I.split("-"),K=J[1],W=J[2];return y(I,j[K][W])};if(j.mode==="light"&&(ge(j.common,"background","#fff"),ge(j.common,"onBackground","#000")),j.mode==="dark"&&(ge(j.common,"background","#000"),ge(j.common,"onBackground","#fff")),pS(j,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),j.mode==="light"){ge(j.Alert,"errorColor",Kt(j.error.light,.6)),ge(j.Alert,"infoColor",Kt(j.info.light,.6)),ge(j.Alert,"successColor",Kt(j.success.light,.6)),ge(j.Alert,"warningColor",Kt(j.warning.light,.6)),ge(j.Alert,"errorFilledBg",B("palette-error-main")),ge(j.Alert,"infoFilledBg",B("palette-info-main")),ge(j.Alert,"successFilledBg",B("palette-success-main")),ge(j.Alert,"warningFilledBg",B("palette-warning-main")),ge(j.Alert,"errorFilledColor",Yo(()=>j.getContrastText(j.error.main))),ge(j.Alert,"infoFilledColor",Yo(()=>j.getContrastText(j.info.main))),ge(j.Alert,"successFilledColor",Yo(()=>j.getContrastText(j.success.main))),ge(j.Alert,"warningFilledColor",Yo(()=>j.getContrastText(j.warning.main))),ge(j.Alert,"errorStandardBg",_t(j.error.light,.9)),ge(j.Alert,"infoStandardBg",_t(j.info.light,.9)),ge(j.Alert,"successStandardBg",_t(j.success.light,.9)),ge(j.Alert,"warningStandardBg",_t(j.warning.light,.9)),ge(j.Alert,"errorIconColor",B("palette-error-main")),ge(j.Alert,"infoIconColor",B("palette-info-main")),ge(j.Alert,"successIconColor",B("palette-success-main")),ge(j.Alert,"warningIconColor",B("palette-warning-main")),ge(j.AppBar,"defaultBg",B("palette-grey-100")),ge(j.Avatar,"defaultBg",B("palette-grey-400")),ge(j.Button,"inheritContainedBg",B("palette-grey-300")),ge(j.Button,"inheritContainedHoverBg",B("palette-grey-A100")),ge(j.Chip,"defaultBorder",B("palette-grey-400")),ge(j.Chip,"defaultAvatarColor",B("palette-grey-700")),ge(j.Chip,"defaultIconColor",B("palette-grey-700")),ge(j.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ge(j.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ge(j.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ge(j.LinearProgress,"primaryBg",_t(j.primary.main,.62)),ge(j.LinearProgress,"secondaryBg",_t(j.secondary.main,.62)),ge(j.LinearProgress,"errorBg",_t(j.error.main,.62)),ge(j.LinearProgress,"infoBg",_t(j.info.main,.62)),ge(j.LinearProgress,"successBg",_t(j.success.main,.62)),ge(j.LinearProgress,"warningBg",_t(j.warning.main,.62)),ge(j.Skeleton,"bg",`rgba(${B("palette-text-primaryChannel")} / 0.11)`),ge(j.Slider,"primaryTrack",_t(j.primary.main,.62)),ge(j.Slider,"secondaryTrack",_t(j.secondary.main,.62)),ge(j.Slider,"errorTrack",_t(j.error.main,.62)),ge(j.Slider,"infoTrack",_t(j.info.main,.62)),ge(j.Slider,"successTrack",_t(j.success.main,.62)),ge(j.Slider,"warningTrack",_t(j.warning.main,.62));const I=md(j.background.default,.8);ge(j.SnackbarContent,"bg",I),ge(j.SnackbarContent,"color",Yo(()=>j.getContrastText(I))),ge(j.SpeedDialAction,"fabHoverBg",md(j.background.paper,.15)),ge(j.StepConnector,"border",B("palette-grey-400")),ge(j.StepContent,"border",B("palette-grey-400")),ge(j.Switch,"defaultColor",B("palette-common-white")),ge(j.Switch,"defaultDisabledColor",B("palette-grey-100")),ge(j.Switch,"primaryDisabledColor",_t(j.primary.main,.62)),ge(j.Switch,"secondaryDisabledColor",_t(j.secondary.main,.62)),ge(j.Switch,"errorDisabledColor",_t(j.error.main,.62)),ge(j.Switch,"infoDisabledColor",_t(j.info.main,.62)),ge(j.Switch,"successDisabledColor",_t(j.success.main,.62)),ge(j.Switch,"warningDisabledColor",_t(j.warning.main,.62)),ge(j.TableCell,"border",_t(hd(j.divider,1),.88)),ge(j.Tooltip,"bg",hd(j.grey[700],.92))}if(j.mode==="dark"){ge(j.Alert,"errorColor",_t(j.error.light,.6)),ge(j.Alert,"infoColor",_t(j.info.light,.6)),ge(j.Alert,"successColor",_t(j.success.light,.6)),ge(j.Alert,"warningColor",_t(j.warning.light,.6)),ge(j.Alert,"errorFilledBg",B("palette-error-dark")),ge(j.Alert,"infoFilledBg",B("palette-info-dark")),ge(j.Alert,"successFilledBg",B("palette-success-dark")),ge(j.Alert,"warningFilledBg",B("palette-warning-dark")),ge(j.Alert,"errorFilledColor",Yo(()=>j.getContrastText(j.error.dark))),ge(j.Alert,"infoFilledColor",Yo(()=>j.getContrastText(j.info.dark))),ge(j.Alert,"successFilledColor",Yo(()=>j.getContrastText(j.success.dark))),ge(j.Alert,"warningFilledColor",Yo(()=>j.getContrastText(j.warning.dark))),ge(j.Alert,"errorStandardBg",Kt(j.error.light,.9)),ge(j.Alert,"infoStandardBg",Kt(j.info.light,.9)),ge(j.Alert,"successStandardBg",Kt(j.success.light,.9)),ge(j.Alert,"warningStandardBg",Kt(j.warning.light,.9)),ge(j.Alert,"errorIconColor",B("palette-error-main")),ge(j.Alert,"infoIconColor",B("palette-info-main")),ge(j.Alert,"successIconColor",B("palette-success-main")),ge(j.Alert,"warningIconColor",B("palette-warning-main")),ge(j.AppBar,"defaultBg",B("palette-grey-900")),ge(j.AppBar,"darkBg",B("palette-background-paper")),ge(j.AppBar,"darkColor",B("palette-text-primary")),ge(j.Avatar,"defaultBg",B("palette-grey-600")),ge(j.Button,"inheritContainedBg",B("palette-grey-800")),ge(j.Button,"inheritContainedHoverBg",B("palette-grey-700")),ge(j.Chip,"defaultBorder",B("palette-grey-700")),ge(j.Chip,"defaultAvatarColor",B("palette-grey-300")),ge(j.Chip,"defaultIconColor",B("palette-grey-300")),ge(j.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ge(j.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ge(j.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ge(j.LinearProgress,"primaryBg",Kt(j.primary.main,.5)),ge(j.LinearProgress,"secondaryBg",Kt(j.secondary.main,.5)),ge(j.LinearProgress,"errorBg",Kt(j.error.main,.5)),ge(j.LinearProgress,"infoBg",Kt(j.info.main,.5)),ge(j.LinearProgress,"successBg",Kt(j.success.main,.5)),ge(j.LinearProgress,"warningBg",Kt(j.warning.main,.5)),ge(j.Skeleton,"bg",`rgba(${B("palette-text-primaryChannel")} / 0.13)`),ge(j.Slider,"primaryTrack",Kt(j.primary.main,.5)),ge(j.Slider,"secondaryTrack",Kt(j.secondary.main,.5)),ge(j.Slider,"errorTrack",Kt(j.error.main,.5)),ge(j.Slider,"infoTrack",Kt(j.info.main,.5)),ge(j.Slider,"successTrack",Kt(j.success.main,.5)),ge(j.Slider,"warningTrack",Kt(j.warning.main,.5));const I=md(j.background.default,.98);ge(j.SnackbarContent,"bg",I),ge(j.SnackbarContent,"color",Yo(()=>j.getContrastText(I))),ge(j.SpeedDialAction,"fabHoverBg",md(j.background.paper,.15)),ge(j.StepConnector,"border",B("palette-grey-600")),ge(j.StepContent,"border",B("palette-grey-600")),ge(j.Switch,"defaultColor",B("palette-grey-300")),ge(j.Switch,"defaultDisabledColor",B("palette-grey-600")),ge(j.Switch,"primaryDisabledColor",Kt(j.primary.main,.55)),ge(j.Switch,"secondaryDisabledColor",Kt(j.secondary.main,.55)),ge(j.Switch,"errorDisabledColor",Kt(j.error.main,.55)),ge(j.Switch,"infoDisabledColor",Kt(j.info.main,.55)),ge(j.Switch,"successDisabledColor",Kt(j.success.main,.55)),ge(j.Switch,"warningDisabledColor",Kt(j.warning.main,.55)),ge(j.TableCell,"border",Kt(hd(j.divider,1),.68)),ge(j.Tooltip,"bg",hd(j.grey[700],.92))}bs(j.background,"default"),bs(j.background,"paper"),bs(j.common,"background"),bs(j.common,"onBackground"),bs(j,"divider"),Object.keys(j).forEach(I=>{const J=j[I];I!=="tonalOffset"&&J&&typeof J=="object"&&(J.main&&ge(j[I],"mainChannel",Kc(_c(J.main))),J.light&&ge(j[I],"lightChannel",Kc(_c(J.light))),J.dark&&ge(j[I],"darkChannel",Kc(_c(J.dark))),J.contrastText&&ge(j[I],"contrastTextChannel",Kc(_c(J.contrastText))),I==="text"&&(bs(j[I],"primary"),bs(j[I],"secondary")),I==="action"&&(J.active&&bs(j[I],"active"),J.selected&&bs(j[I],"selected")))})}),C=t.reduce((L,j)=>qn(L,j),C);const D={prefix:a,disableCssColorScheme:s,shouldSkipGeneratingVar:l,getSelector:dS(C)},{vars:k,generateThemeVars:R,generateStyleSheets:M}=Rj(C,D);return C.vars=k,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([L,j])=>{C[L]=j}),C.generateThemeVars=R,C.generateStyleSheets=M,C.generateSpacing=function(){return X0(p.spacing,Mp(this))},C.getColorSchemeSelector=Ej(u),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=l,C.unstable_sxConfig={...Wu,...p==null?void 0:p.unstable_sxConfig},C.unstable_sx=function(j){return Ai({sx:j,theme:this})},C.toRuntimeSource=i1,C}function M8(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ay({...n===!0?{}:n.palette,mode:t})})}function Fu(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...l}=e,u=a||"light",f=s==null?void 0:s[u],p={...s,...n?{[u]:{...typeof f!="boolean"&&f,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return ag(e,...t);let h=n;"palette"in e||p[u]&&(p[u]!==!0?h=p[u].palette:u==="dark"&&(h={mode:"dark"}));const m=ag({...e,palette:h},...t);return m.defaultColorScheme=u,m.colorSchemes=p,m.palette.mode==="light"&&(m.colorSchemes.light={...p.light!==!0&&p.light,palette:m.palette},M8(m,"dark",p.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:m.palette},M8(m,"light",p.light)),m}return!n&&!("light"in p)&&u==="light"&&(p.light=!0),mS({...l,colorSchemes:p,defaultColorScheme:u,...typeof r!="boolean"&&r},...t)}const Py=Fu();function Kr(){const e=Wp(Py);return e[Ro]||e}function c1(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Zn=e=>c1(e)&&e!=="classes",pe=W0({themeId:Ro,defaultTheme:Py,rootShouldForwardProp:Zn});function L8({theme:e,...t}){const n=Ro in e?e[Ro]:void 0;return v.jsx(t1,{...t,themeId:n?Ro:void 0,theme:n||e})}const gd={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:gS,useColorScheme:dq,getInitColorSchemeScript:pq}=Cj({themeId:Ro,theme:()=>Fu({cssVariables:!0}),colorSchemeStorageKey:gd.colorSchemeStorageKey,modeStorageKey:gd.modeStorageKey,defaultColorScheme:{light:gd.defaultLightColorScheme,dark:gd.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:s1(e.palette,e.typography)};return t.unstable_sx=function(r){return Ai({sx:r,theme:this})},t}}),yS=gS;function AS({theme:e,...t}){return typeof e=="function"?v.jsx(L8,{theme:e,...t}):"colorSchemes"in(Ro in e?e[Ro]:e)?v.jsx(yS,{theme:e,...t}):v.jsx(L8,{theme:e,...t})}function PS(e){return v.jsx(IH,{...e,defaultTheme:Py,themeId:Ro})}function by(e){return function(n){return v.jsx(PS,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function bS(){return Jp}const Qe=wj;function $e(e){return xj(e)}function xS(e){return Ge("MuiSvgIcon",e)}Ue("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const wS=e=>{const{color:t,fontSize:n,classes:r}=e,s={root:["root",t!=="inherit"&&`color${me(t)}`,`fontSize${me(n)}`]};return Ke(s,xS,r)},HS=pe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${me(n.color)}`],t[`fontSize${me(n.fontSize)}`]]}})(Qe(({theme:e})=>{var t,n,r,s,a,l,u,f,p,h,m,y,H,A;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(t=e.transitions)==null?void 0:t.create)==null?void 0:s.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:w=>!w.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((f=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:f.call(u,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((h=(p=e.typography)==null?void 0:p.pxToRem)==null?void 0:h.call(p,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,w])=>w&&w.main).map(([w])=>{var x,S;return{props:{color:w},style:{color:(S=(x=(e.vars??e).palette)==null?void 0:x[w])==null?void 0:S.main}}}),{props:{color:"action"},style:{color:(y=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:y.active}},{props:{color:"disabled"},style:{color:(A=(H=(e.vars??e).palette)==null?void 0:H.action)==null?void 0:A.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Hu=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiSvgIcon"}),{children:s,className:a,color:l="inherit",component:u="svg",fontSize:f="medium",htmlColor:p,inheritViewBox:h=!1,titleAccess:m,viewBox:y="0 0 24 24",...H}=r,A=P.isValidElement(s)&&s.type==="svg",w={...r,color:l,component:u,fontSize:f,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:y,hasSvgAsChild:A},x={};h||(x.viewBox=y);const S=wS(w);return v.jsxs(HS,{as:u,className:Oe(S.root,a),focusable:"false",color:p,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...x,...H,...A&&s.props,ownerState:w,children:[A?s.props.children:s,m?v.jsx("title",{children:m}):null]})});Hu&&(Hu.muiName="SvgIcon");function At(e,t){function n(r,s){return v.jsx(Hu,{"data-testid":`${t}Icon`,ref:s,...r,children:e})}return n.muiName=Hu.muiName,P.memo(P.forwardRef(n))}var jm={exports:{}},Zt={};/** +export default theme;`}function lg(e={},...t){const{breakpoints:n,mixins:r={},spacing:s,palette:a={},transitions:l={},typography:u={},shape:f,...p}=e;if(e.vars)throw new Error(ks(20));const h=Py(a),m=Ip(e);let y=qn(m,{mixins:Kj(m.breakpoints,r),palette:h,shadows:nS.slice(),typography:s1(h,u),transitions:iS(l),zIndex:{...aS}});return y=qn(y,p),y=t.reduce((H,A)=>qn(H,A),y),y.unstable_sxConfig={...Wu,...p==null?void 0:p.unstable_sxConfig},y.unstable_sx=function(A){return Ai({sx:A,theme:this})},y.toRuntimeSource=i1,y}function cg(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 cS=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=cg(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function a1(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function l1(e){return e==="dark"?cS:[]}function uS(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...s}=e,a=Py(t);return{palette:a,opacity:{...a1(a.mode),...n},overlays:r||l1(a.mode),...s}}function fS(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const dS=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],pS=e=>(t,n)=>{const r=e.rootSelector||":root",s=e.colorSchemeSelector;let a=s;if(s==="class"&&(a=".%s"),s==="data"&&(a="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(a=`[${s}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return dS(e.cssVarPrefix).forEach(u=>{l[u]=n[u],delete n[u]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:l}}:a?{[a.replace("%s",t)]:l,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...l}}}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 vS(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ge(e,t,n){!e[t]&&n&&(e[t]=n)}function _c(e){return typeof e!="string"||!e.startsWith("hsl")?e:Y0(e)}function bs(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Kc(_c(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). +To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function hS(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Yo=e=>{try{return e()}catch{}},mS=(e="mui")=>Tj(e);function jm(e,t,n,r){if(!t)return;t=t===!0?{}:t;const s=r==="dark"?"dark":"light";if(!n){e[r]=uS({...t,palette:{mode:s,...t==null?void 0:t.palette}});return}const{palette:a,...l}=lg({...n,palette:{mode:s,...t==null?void 0:t.palette}});return e[r]={...t,palette:a,opacity:{...a1(s),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||l1(s)},l}function gS(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:s=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:l=fS,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:f=":root",...p}=e,h=Object.keys(n)[0],m=r||(n.light&&h!=="light"?"light":h),y=mS(a),{[m]:H,light:A,dark:w,...x}=n,S={...x};let z=H;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(z=!0),!z)throw new Error(ks(21,m));const O=jm(S,z,p,m);A&&!S.light&&jm(S,A,void 0,"light"),w&&!S.dark&&jm(S,w,void 0,"dark");let C={defaultColorScheme:m,...O,cssVarPrefix:a,colorSchemeSelector:u,rootSelector:f,getCssVar:y,colorSchemes:S,font:{...Qj(O.typography),...O.font},spacing:hS(p.spacing)};Object.keys(C.colorSchemes).forEach(L=>{const j=C.colorSchemes[L].palette,B=I=>{const F=I.split("-"),$=F[1],W=F[2];return y(I,j[$][W])};if(j.mode==="light"&&(ge(j.common,"background","#fff"),ge(j.common,"onBackground","#000")),j.mode==="dark"&&(ge(j.common,"background","#000"),ge(j.common,"onBackground","#fff")),vS(j,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),j.mode==="light"){ge(j.Alert,"errorColor",Kt(j.error.light,.6)),ge(j.Alert,"infoColor",Kt(j.info.light,.6)),ge(j.Alert,"successColor",Kt(j.success.light,.6)),ge(j.Alert,"warningColor",Kt(j.warning.light,.6)),ge(j.Alert,"errorFilledBg",B("palette-error-main")),ge(j.Alert,"infoFilledBg",B("palette-info-main")),ge(j.Alert,"successFilledBg",B("palette-success-main")),ge(j.Alert,"warningFilledBg",B("palette-warning-main")),ge(j.Alert,"errorFilledColor",Yo(()=>j.getContrastText(j.error.main))),ge(j.Alert,"infoFilledColor",Yo(()=>j.getContrastText(j.info.main))),ge(j.Alert,"successFilledColor",Yo(()=>j.getContrastText(j.success.main))),ge(j.Alert,"warningFilledColor",Yo(()=>j.getContrastText(j.warning.main))),ge(j.Alert,"errorStandardBg",_t(j.error.light,.9)),ge(j.Alert,"infoStandardBg",_t(j.info.light,.9)),ge(j.Alert,"successStandardBg",_t(j.success.light,.9)),ge(j.Alert,"warningStandardBg",_t(j.warning.light,.9)),ge(j.Alert,"errorIconColor",B("palette-error-main")),ge(j.Alert,"infoIconColor",B("palette-info-main")),ge(j.Alert,"successIconColor",B("palette-success-main")),ge(j.Alert,"warningIconColor",B("palette-warning-main")),ge(j.AppBar,"defaultBg",B("palette-grey-100")),ge(j.Avatar,"defaultBg",B("palette-grey-400")),ge(j.Button,"inheritContainedBg",B("palette-grey-300")),ge(j.Button,"inheritContainedHoverBg",B("palette-grey-A100")),ge(j.Chip,"defaultBorder",B("palette-grey-400")),ge(j.Chip,"defaultAvatarColor",B("palette-grey-700")),ge(j.Chip,"defaultIconColor",B("palette-grey-700")),ge(j.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ge(j.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ge(j.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ge(j.LinearProgress,"primaryBg",_t(j.primary.main,.62)),ge(j.LinearProgress,"secondaryBg",_t(j.secondary.main,.62)),ge(j.LinearProgress,"errorBg",_t(j.error.main,.62)),ge(j.LinearProgress,"infoBg",_t(j.info.main,.62)),ge(j.LinearProgress,"successBg",_t(j.success.main,.62)),ge(j.LinearProgress,"warningBg",_t(j.warning.main,.62)),ge(j.Skeleton,"bg",`rgba(${B("palette-text-primaryChannel")} / 0.11)`),ge(j.Slider,"primaryTrack",_t(j.primary.main,.62)),ge(j.Slider,"secondaryTrack",_t(j.secondary.main,.62)),ge(j.Slider,"errorTrack",_t(j.error.main,.62)),ge(j.Slider,"infoTrack",_t(j.info.main,.62)),ge(j.Slider,"successTrack",_t(j.success.main,.62)),ge(j.Slider,"warningTrack",_t(j.warning.main,.62));const I=md(j.background.default,.8);ge(j.SnackbarContent,"bg",I),ge(j.SnackbarContent,"color",Yo(()=>j.getContrastText(I))),ge(j.SpeedDialAction,"fabHoverBg",md(j.background.paper,.15)),ge(j.StepConnector,"border",B("palette-grey-400")),ge(j.StepContent,"border",B("palette-grey-400")),ge(j.Switch,"defaultColor",B("palette-common-white")),ge(j.Switch,"defaultDisabledColor",B("palette-grey-100")),ge(j.Switch,"primaryDisabledColor",_t(j.primary.main,.62)),ge(j.Switch,"secondaryDisabledColor",_t(j.secondary.main,.62)),ge(j.Switch,"errorDisabledColor",_t(j.error.main,.62)),ge(j.Switch,"infoDisabledColor",_t(j.info.main,.62)),ge(j.Switch,"successDisabledColor",_t(j.success.main,.62)),ge(j.Switch,"warningDisabledColor",_t(j.warning.main,.62)),ge(j.TableCell,"border",_t(hd(j.divider,1),.88)),ge(j.Tooltip,"bg",hd(j.grey[700],.92))}if(j.mode==="dark"){ge(j.Alert,"errorColor",_t(j.error.light,.6)),ge(j.Alert,"infoColor",_t(j.info.light,.6)),ge(j.Alert,"successColor",_t(j.success.light,.6)),ge(j.Alert,"warningColor",_t(j.warning.light,.6)),ge(j.Alert,"errorFilledBg",B("palette-error-dark")),ge(j.Alert,"infoFilledBg",B("palette-info-dark")),ge(j.Alert,"successFilledBg",B("palette-success-dark")),ge(j.Alert,"warningFilledBg",B("palette-warning-dark")),ge(j.Alert,"errorFilledColor",Yo(()=>j.getContrastText(j.error.dark))),ge(j.Alert,"infoFilledColor",Yo(()=>j.getContrastText(j.info.dark))),ge(j.Alert,"successFilledColor",Yo(()=>j.getContrastText(j.success.dark))),ge(j.Alert,"warningFilledColor",Yo(()=>j.getContrastText(j.warning.dark))),ge(j.Alert,"errorStandardBg",Kt(j.error.light,.9)),ge(j.Alert,"infoStandardBg",Kt(j.info.light,.9)),ge(j.Alert,"successStandardBg",Kt(j.success.light,.9)),ge(j.Alert,"warningStandardBg",Kt(j.warning.light,.9)),ge(j.Alert,"errorIconColor",B("palette-error-main")),ge(j.Alert,"infoIconColor",B("palette-info-main")),ge(j.Alert,"successIconColor",B("palette-success-main")),ge(j.Alert,"warningIconColor",B("palette-warning-main")),ge(j.AppBar,"defaultBg",B("palette-grey-900")),ge(j.AppBar,"darkBg",B("palette-background-paper")),ge(j.AppBar,"darkColor",B("palette-text-primary")),ge(j.Avatar,"defaultBg",B("palette-grey-600")),ge(j.Button,"inheritContainedBg",B("palette-grey-800")),ge(j.Button,"inheritContainedHoverBg",B("palette-grey-700")),ge(j.Chip,"defaultBorder",B("palette-grey-700")),ge(j.Chip,"defaultAvatarColor",B("palette-grey-300")),ge(j.Chip,"defaultIconColor",B("palette-grey-300")),ge(j.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ge(j.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ge(j.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ge(j.LinearProgress,"primaryBg",Kt(j.primary.main,.5)),ge(j.LinearProgress,"secondaryBg",Kt(j.secondary.main,.5)),ge(j.LinearProgress,"errorBg",Kt(j.error.main,.5)),ge(j.LinearProgress,"infoBg",Kt(j.info.main,.5)),ge(j.LinearProgress,"successBg",Kt(j.success.main,.5)),ge(j.LinearProgress,"warningBg",Kt(j.warning.main,.5)),ge(j.Skeleton,"bg",`rgba(${B("palette-text-primaryChannel")} / 0.13)`),ge(j.Slider,"primaryTrack",Kt(j.primary.main,.5)),ge(j.Slider,"secondaryTrack",Kt(j.secondary.main,.5)),ge(j.Slider,"errorTrack",Kt(j.error.main,.5)),ge(j.Slider,"infoTrack",Kt(j.info.main,.5)),ge(j.Slider,"successTrack",Kt(j.success.main,.5)),ge(j.Slider,"warningTrack",Kt(j.warning.main,.5));const I=md(j.background.default,.98);ge(j.SnackbarContent,"bg",I),ge(j.SnackbarContent,"color",Yo(()=>j.getContrastText(I))),ge(j.SpeedDialAction,"fabHoverBg",md(j.background.paper,.15)),ge(j.StepConnector,"border",B("palette-grey-600")),ge(j.StepContent,"border",B("palette-grey-600")),ge(j.Switch,"defaultColor",B("palette-grey-300")),ge(j.Switch,"defaultDisabledColor",B("palette-grey-600")),ge(j.Switch,"primaryDisabledColor",Kt(j.primary.main,.55)),ge(j.Switch,"secondaryDisabledColor",Kt(j.secondary.main,.55)),ge(j.Switch,"errorDisabledColor",Kt(j.error.main,.55)),ge(j.Switch,"infoDisabledColor",Kt(j.info.main,.55)),ge(j.Switch,"successDisabledColor",Kt(j.success.main,.55)),ge(j.Switch,"warningDisabledColor",Kt(j.warning.main,.55)),ge(j.TableCell,"border",Kt(hd(j.divider,1),.68)),ge(j.Tooltip,"bg",hd(j.grey[700],.92))}bs(j.background,"default"),bs(j.background,"paper"),bs(j.common,"background"),bs(j.common,"onBackground"),bs(j,"divider"),Object.keys(j).forEach(I=>{const F=j[I];I!=="tonalOffset"&&F&&typeof F=="object"&&(F.main&&ge(j[I],"mainChannel",Kc(_c(F.main))),F.light&&ge(j[I],"lightChannel",Kc(_c(F.light))),F.dark&&ge(j[I],"darkChannel",Kc(_c(F.dark))),F.contrastText&&ge(j[I],"contrastTextChannel",Kc(_c(F.contrastText))),I==="text"&&(bs(j[I],"primary"),bs(j[I],"secondary")),I==="action"&&(F.active&&bs(j[I],"active"),F.selected&&bs(j[I],"selected")))})}),C=t.reduce((L,j)=>qn(L,j),C);const D={prefix:a,disableCssColorScheme:s,shouldSkipGeneratingVar:l,getSelector:pS(C)},{vars:k,generateThemeVars:R,generateStyleSheets:M}=Ej(C,D);return C.vars=k,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([L,j])=>{C[L]=j}),C.generateThemeVars=R,C.generateStyleSheets=M,C.generateSpacing=function(){return X0(p.spacing,Mp(this))},C.getColorSchemeSelector=Mj(u),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=l,C.unstable_sxConfig={...Wu,...p==null?void 0:p.unstable_sxConfig},C.unstable_sx=function(j){return Ai({sx:j,theme:this})},C.toRuntimeSource=i1,C}function M8(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Py({...n===!0?{}:n.palette,mode:t})})}function Fu(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...l}=e,u=a||"light",f=s==null?void 0:s[u],p={...s,...n?{[u]:{...typeof f!="boolean"&&f,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return lg(e,...t);let h=n;"palette"in e||p[u]&&(p[u]!==!0?h=p[u].palette:u==="dark"&&(h={mode:"dark"}));const m=lg({...e,palette:h},...t);return m.defaultColorScheme=u,m.colorSchemes=p,m.palette.mode==="light"&&(m.colorSchemes.light={...p.light!==!0&&p.light,palette:m.palette},M8(m,"dark",p.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:m.palette},M8(m,"light",p.light)),m}return!n&&!("light"in p)&&u==="light"&&(p.light=!0),gS({...l,colorSchemes:p,defaultColorScheme:u,...typeof r!="boolean"&&r},...t)}const by=Fu();function Kr(){const e=Wp(by);return e[Ro]||e}function c1(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Zn=e=>c1(e)&&e!=="classes",pe=W0({themeId:Ro,defaultTheme:by,rootShouldForwardProp:Zn});function L8({theme:e,...t}){const n=Ro in e?e[Ro]:void 0;return v.jsx(t1,{...t,themeId:n?Ro:void 0,theme:n||e})}const gd={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:yS,useColorScheme:dq,getInitColorSchemeScript:pq}=Dj({themeId:Ro,theme:()=>Fu({cssVariables:!0}),colorSchemeStorageKey:gd.colorSchemeStorageKey,modeStorageKey:gd.modeStorageKey,defaultColorScheme:{light:gd.defaultLightColorScheme,dark:gd.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:s1(e.palette,e.typography)};return t.unstable_sx=function(r){return Ai({sx:r,theme:this})},t}}),AS=yS;function PS({theme:e,...t}){return typeof e=="function"?v.jsx(L8,{theme:e,...t}):"colorSchemes"in(Ro in e?e[Ro]:e)?v.jsx(AS,{theme:e,...t}):v.jsx(L8,{theme:e,...t})}function bS(e){return v.jsx(WH,{...e,defaultTheme:by,themeId:Ro})}function xy(e){return function(n){return v.jsx(bS,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function xS(){return Jp}const Qe=Hj;function $e(e){return wj(e)}function wS(e){return Ge("MuiSvgIcon",e)}Ue("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const HS=e=>{const{color:t,fontSize:n,classes:r}=e,s={root:["root",t!=="inherit"&&`color${me(t)}`,`fontSize${me(n)}`]};return Ke(s,wS,r)},jS=pe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${me(n.color)}`],t[`fontSize${me(n.fontSize)}`]]}})(Qe(({theme:e})=>{var t,n,r,s,a,l,u,f,p,h,m,y,H,A;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(t=e.transitions)==null?void 0:t.create)==null?void 0:s.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:w=>!w.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((f=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:f.call(u,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((h=(p=e.typography)==null?void 0:p.pxToRem)==null?void 0:h.call(p,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,w])=>w&&w.main).map(([w])=>{var x,S;return{props:{color:w},style:{color:(S=(x=(e.vars??e).palette)==null?void 0:x[w])==null?void 0:S.main}}}),{props:{color:"action"},style:{color:(y=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:y.active}},{props:{color:"disabled"},style:{color:(A=(H=(e.vars??e).palette)==null?void 0:H.action)==null?void 0:A.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Hu=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiSvgIcon"}),{children:s,className:a,color:l="inherit",component:u="svg",fontSize:f="medium",htmlColor:p,inheritViewBox:h=!1,titleAccess:m,viewBox:y="0 0 24 24",...H}=r,A=P.isValidElement(s)&&s.type==="svg",w={...r,color:l,component:u,fontSize:f,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:y,hasSvgAsChild:A},x={};h||(x.viewBox=y);const S=HS(w);return v.jsxs(jS,{as:u,className:Oe(S.root,a),focusable:"false",color:p,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...x,...H,...A&&s.props,ownerState:w,children:[A?s.props.children:s,m?v.jsx("title",{children:m}):null]})});Hu&&(Hu.muiName="SvgIcon");function At(e,t){function n(r,s){return v.jsx(Hu,{"data-testid":`${t}Icon`,ref:s,...r,children:e})}return n.muiName=Hu.muiName,P.memo(P.forwardRef(n))}var Sm={exports:{}},Zt={};/** * @license React * react-is.production.min.js * @@ -70,7 +70,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var X8;function jS(){if(X8)return Zt;X8=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),H=Symbol.for("react.offscreen"),A;A=Symbol.for("react.module.reference");function w(x){if(typeof x=="object"&&x!==null){var S=x.$$typeof;switch(S){case e:switch(x=x.type,x){case n:case s:case r:case p:case h:return x;default:switch(x=x&&x.$$typeof,x){case u:case l:case f:case y:case m:case a:return x;default:return S}}case t:return S}}}return Zt.ContextConsumer=l,Zt.ContextProvider=a,Zt.Element=e,Zt.ForwardRef=f,Zt.Fragment=n,Zt.Lazy=y,Zt.Memo=m,Zt.Portal=t,Zt.Profiler=s,Zt.StrictMode=r,Zt.Suspense=p,Zt.SuspenseList=h,Zt.isAsyncMode=function(){return!1},Zt.isConcurrentMode=function(){return!1},Zt.isContextConsumer=function(x){return w(x)===l},Zt.isContextProvider=function(x){return w(x)===a},Zt.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Zt.isForwardRef=function(x){return w(x)===f},Zt.isFragment=function(x){return w(x)===n},Zt.isLazy=function(x){return w(x)===y},Zt.isMemo=function(x){return w(x)===m},Zt.isPortal=function(x){return w(x)===t},Zt.isProfiler=function(x){return w(x)===s},Zt.isStrictMode=function(x){return w(x)===r},Zt.isSuspense=function(x){return w(x)===p},Zt.isSuspenseList=function(x){return w(x)===h},Zt.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===s||x===r||x===p||x===h||x===H||typeof x=="object"&&x!==null&&(x.$$typeof===y||x.$$typeof===m||x.$$typeof===a||x.$$typeof===l||x.$$typeof===f||x.$$typeof===A||x.getModuleId!==void 0)},Zt.typeOf=w,Zt}var N8;function SS(){return N8||(N8=1,jm.exports=jS()),jm.exports}SS();function u1(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function cg(e,t){return cg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},cg(e,t)}function f1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cg(e,t)}var Sm={exports:{}},xr={},zm={exports:{}},Om={};/** + */var X8;function SS(){if(X8)return Zt;X8=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),H=Symbol.for("react.offscreen"),A;A=Symbol.for("react.module.reference");function w(x){if(typeof x=="object"&&x!==null){var S=x.$$typeof;switch(S){case e:switch(x=x.type,x){case n:case s:case r:case p:case h:return x;default:switch(x=x&&x.$$typeof,x){case u:case l:case f:case y:case m:case a:return x;default:return S}}case t:return S}}}return Zt.ContextConsumer=l,Zt.ContextProvider=a,Zt.Element=e,Zt.ForwardRef=f,Zt.Fragment=n,Zt.Lazy=y,Zt.Memo=m,Zt.Portal=t,Zt.Profiler=s,Zt.StrictMode=r,Zt.Suspense=p,Zt.SuspenseList=h,Zt.isAsyncMode=function(){return!1},Zt.isConcurrentMode=function(){return!1},Zt.isContextConsumer=function(x){return w(x)===l},Zt.isContextProvider=function(x){return w(x)===a},Zt.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Zt.isForwardRef=function(x){return w(x)===f},Zt.isFragment=function(x){return w(x)===n},Zt.isLazy=function(x){return w(x)===y},Zt.isMemo=function(x){return w(x)===m},Zt.isPortal=function(x){return w(x)===t},Zt.isProfiler=function(x){return w(x)===s},Zt.isStrictMode=function(x){return w(x)===r},Zt.isSuspense=function(x){return w(x)===p},Zt.isSuspenseList=function(x){return w(x)===h},Zt.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===s||x===r||x===p||x===h||x===H||typeof x=="object"&&x!==null&&(x.$$typeof===y||x.$$typeof===m||x.$$typeof===a||x.$$typeof===l||x.$$typeof===f||x.$$typeof===A||x.getModuleId!==void 0)},Zt.typeOf=w,Zt}var N8;function zS(){return N8||(N8=1,Sm.exports=SS()),Sm.exports}zS();function u1(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function ug(e,t){return ug=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ug(e,t)}function f1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ug(e,t)}var zm={exports:{}},xr={},Om={exports:{}},Cm={};/** * @license React * scheduler.production.min.js * @@ -78,7 +78,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var B8;function zS(){return B8||(B8=1,function(e){function t(F,_){var E=F.length;F.push(_);e:for(;0>>1,X=F[G];if(0>>1;Gs(ue,E))des(xe,ue)?(F[G]=xe,F[de]=E,G=de):(F[G]=ue,F[te]=E,G=te);else if(des(xe,E))F[G]=xe,F[de]=E,G=de;else break e}}return _}function s(F,_){var E=F.sortIndex-_.sortIndex;return E!==0?E:F.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var f=[],p=[],h=1,m=null,y=3,H=!1,A=!1,w=!1,x=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function O(F){for(var _=n(p);_!==null;){if(_.callback===null)r(p);else if(_.startTime<=F)r(p),_.sortIndex=_.expirationTime,t(f,_);else break;_=n(p)}}function C(F){if(w=!1,O(F),!A)if(n(f)!==null)A=!0,ne(D);else{var _=n(p);_!==null&&re(C,_.startTime-F)}}function D(F,_){A=!1,w&&(w=!1,S(M),M=-1),H=!0;var E=y;try{for(O(_),m=n(f);m!==null&&(!(m.expirationTime>_)||F&&!B());){var G=m.callback;if(typeof G=="function"){m.callback=null,y=m.priorityLevel;var X=G(m.expirationTime<=_);_=e.unstable_now(),typeof X=="function"?m.callback=X:m===n(f)&&r(f),O(_)}else r(f);m=n(f)}if(m!==null)var ee=!0;else{var te=n(p);te!==null&&re(C,te.startTime-_),ee=!1}return ee}finally{m=null,y=E,H=!1}}var k=!1,R=null,M=-1,L=5,j=-1;function B(){return!(e.unstable_now()-jF||125G?(F.sortIndex=E,t(p,F),n(f)===null&&F===n(p)&&(w?(S(M),M=-1):w=!0,re(C,E-G))):(F.sortIndex=X,t(f,F),A||H||(A=!0,ne(D))),F},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(F){var _=y;return function(){var E=y;y=_;try{return F.apply(this,arguments)}finally{y=E}}}}(Om)),Om}var V8;function OS(){return V8||(V8=1,zm.exports=zS()),zm.exports}/** + */var B8;function OS(){return B8||(B8=1,function(e){function t(J,Q){var E=J.length;J.push(Q);e:for(;0>>1,X=J[Z];if(0>>1;Zs(ue,E))des(we,ue)?(J[Z]=we,J[de]=E,Z=de):(J[Z]=ue,J[ee]=E,Z=ee);else if(des(we,E))J[Z]=we,J[de]=E,Z=de;else break e}}return Q}function s(J,Q){var E=J.sortIndex-Q.sortIndex;return E!==0?E:J.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var f=[],p=[],h=1,m=null,y=3,H=!1,A=!1,w=!1,x=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function O(J){for(var Q=n(p);Q!==null;){if(Q.callback===null)r(p);else if(Q.startTime<=J)r(p),Q.sortIndex=Q.expirationTime,t(f,Q);else break;Q=n(p)}}function C(J){if(w=!1,O(J),!A)if(n(f)!==null)A=!0,ne(D);else{var Q=n(p);Q!==null&&_(C,Q.startTime-J)}}function D(J,Q){A=!1,w&&(w=!1,S(M),M=-1),H=!0;var E=y;try{for(O(Q),m=n(f);m!==null&&(!(m.expirationTime>Q)||J&&!B());){var Z=m.callback;if(typeof Z=="function"){m.callback=null,y=m.priorityLevel;var X=Z(m.expirationTime<=Q);Q=e.unstable_now(),typeof X=="function"?m.callback=X:m===n(f)&&r(f),O(Q)}else r(f);m=n(f)}if(m!==null)var re=!0;else{var ee=n(p);ee!==null&&_(C,ee.startTime-Q),re=!1}return re}finally{m=null,y=E,H=!1}}var k=!1,R=null,M=-1,L=5,j=-1;function B(){return!(e.unstable_now()-jJ||125Z?(J.sortIndex=E,t(p,J),n(f)===null&&J===n(p)&&(w?(S(M),M=-1):w=!0,_(C,E-Z))):(J.sortIndex=X,t(f,J),A||H||(A=!0,ne(D))),J},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(J){var Q=y;return function(){var E=y;y=Q;try{return J.apply(this,arguments)}finally{y=E}}}}(Cm)),Cm}var V8;function CS(){return V8||(V8=1,Om.exports=OS()),Om.exports}/** * @license React * react-dom.production.min.js * @@ -86,14 +86,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var I8;function CS(){if(I8)return xr;I8=1;var e=sy(),t=OS();function n(o){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+o,c=1;c"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,p=/^[: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]*$/,h={},m={};function y(o){return f.call(m,o)?!0:f.call(h,o)?!1:p.test(o)?m[o]=!0:(h[o]=!0,!1)}function H(o,i,c,d){if(c!==null&&c.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return d?!1:c!==null?!c.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function A(o,i,c,d){if(i===null||typeof i>"u"||H(o,i,c,d))return!0;if(d)return!1;if(c!==null)switch(c.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function w(o,i,c,d,g,b,T){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=d,this.attributeNamespace=g,this.mustUseProperty=c,this.propertyName=o,this.type=i,this.sanitizeURL=b,this.removeEmptyString=T}var x={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){x[o]=new w(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var i=o[0];x[i]=new w(i,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){x[o]=new w(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){x[o]=new w(o,2,!1,o,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(o){x[o]=new w(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){x[o]=new w(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){x[o]=new w(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){x[o]=new w(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){x[o]=new w(o,5,!1,o.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function z(o){return o[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(o){var i=o.replace(S,z);x[i]=new w(i,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var i=o.replace(S,z);x[i]=new w(i,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var i=o.replace(S,z);x[i]=new w(i,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){x[o]=new w(o,1,!1,o.toLowerCase(),null,!1,!1)}),x.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){x[o]=new w(o,1,!1,o.toLowerCase(),null,!0,!0)});function O(o,i,c,d){var g=x.hasOwnProperty(i)?x[i]:null;(g!==null?g.type!==0:d||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,p=/^[: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]*$/,h={},m={};function y(o){return f.call(m,o)?!0:f.call(h,o)?!1:p.test(o)?m[o]=!0:(h[o]=!0,!1)}function H(o,i,c,d){if(c!==null&&c.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return d?!1:c!==null?!c.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function A(o,i,c,d){if(i===null||typeof i>"u"||H(o,i,c,d))return!0;if(d)return!1;if(c!==null)switch(c.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function w(o,i,c,d,g,b,T){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=d,this.attributeNamespace=g,this.mustUseProperty=c,this.propertyName=o,this.type=i,this.sanitizeURL=b,this.removeEmptyString=T}var x={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){x[o]=new w(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var i=o[0];x[i]=new w(i,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){x[o]=new w(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){x[o]=new w(o,2,!1,o,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(o){x[o]=new w(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){x[o]=new w(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){x[o]=new w(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){x[o]=new w(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){x[o]=new w(o,5,!1,o.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function z(o){return o[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(o){var i=o.replace(S,z);x[i]=new w(i,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var i=o.replace(S,z);x[i]=new w(i,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var i=o.replace(S,z);x[i]=new w(i,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){x[o]=new w(o,1,!1,o.toLowerCase(),null,!1,!1)}),x.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){x[o]=new w(o,1,!1,o.toLowerCase(),null,!0,!0)});function O(o,i,c,d){var g=x.hasOwnProperty(i)?x[i]:null;(g!==null?g.type!==0:d||!(2V||g[T]!==b[V]){var q=` -`+g[T].replace(" at new "," at ");return o.displayName&&q.includes("")&&(q=q.replace("",o.displayName)),q}while(1<=T&&0<=V);break}}}finally{ee=!1,Error.prepareStackTrace=c}return(o=o?o.displayName||o.name:"")?X(o):""}function ue(o){switch(o.tag){case 5:return X(o.type);case 16:return X("Lazy");case 13:return X("Suspense");case 19:return X("SuspenseList");case 0:case 2:case 15:return o=te(o.type,!1),o;case 11:return o=te(o.type.render,!1),o;case 1:return o=te(o.type,!0),o;default:return""}}function de(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case R:return"Fragment";case k:return"Portal";case L:return"Profiler";case M:return"StrictMode";case J:return"Suspense";case K:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case B:return(o.displayName||"Context")+".Consumer";case j:return(o._context.displayName||"Context")+".Provider";case I:var i=o.render;return o=o.displayName,o||(o=i.displayName||i.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case W:return i=o.displayName||null,i!==null?i:de(o.type)||"Memo";case ne:i=o._payload,o=o._init;try{return de(o(i))}catch{}}return null}function xe(o){var i=o.type;switch(o.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=i.render,o=o.displayName||o.name||"",i.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return de(i);case 8:return i===M?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function ve(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function be(o){var i=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Xe(o){var i=be(o)?"checked":"value",c=Object.getOwnPropertyDescriptor(o.constructor.prototype,i),d=""+o[i];if(!o.hasOwnProperty(i)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var g=c.get,b=c.set;return Object.defineProperty(o,i,{configurable:!0,get:function(){return g.call(this)},set:function(T){d=""+T,b.call(this,T)}}),Object.defineProperty(o,i,{enumerable:c.enumerable}),{getValue:function(){return d},setValue:function(T){d=""+T},stopTracking:function(){o._valueTracker=null,delete o[i]}}}}function Ie(o){o._valueTracker||(o._valueTracker=Xe(o))}function He(o){if(!o)return!1;var i=o._valueTracker;if(!i)return!0;var c=i.getValue(),d="";return o&&(d=be(o)?o.checked?"true":"false":o.value),o=d,o!==c?(i.setValue(o),!0):!1}function _e(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}}function we(o,i){var c=i.checked;return E({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c??o._wrapperState.initialChecked})}function tt(o,i){var c=i.defaultValue==null?"":i.defaultValue,d=i.checked!=null?i.checked:i.defaultChecked;c=ve(i.value!=null?i.value:c),o._wrapperState={initialChecked:d,initialValue:c,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function Le(o,i){i=i.checked,i!=null&&O(o,"checked",i,!1)}function dt(o,i){Le(o,i);var c=ve(i.value),d=i.type;if(c!=null)d==="number"?(c===0&&o.value===""||o.value!=c)&&(o.value=""+c):o.value!==""+c&&(o.value=""+c);else if(d==="submit"||d==="reset"){o.removeAttribute("value");return}i.hasOwnProperty("value")?$(o,i.type,c):i.hasOwnProperty("defaultValue")&&$(o,i.type,ve(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(o.defaultChecked=!!i.defaultChecked)}function N(o,i,c){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var d=i.type;if(!(d!=="submit"&&d!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+o._wrapperState.initialValue,c||i===o.value||(o.value=i),o.defaultValue=i}c=o.name,c!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,c!==""&&(o.name=c)}function $(o,i,c){(i!=="number"||_e(o.ownerDocument)!==o)&&(c==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+c&&(o.defaultValue=""+c))}var se=Array.isArray;function ye(o,i,c,d){if(o=o.options,i){i={};for(var g=0;g"+i.valueOf().toString()+"",i=ft.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;i.firstChild;)o.appendChild(i.firstChild)}});function Ht(o,i){if(i){var c=o.firstChild;if(c&&c===o.lastChild&&c.nodeType===3){c.nodeValue=i;return}}o.textContent=i}var We={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Dt=["Webkit","ms","Moz","O"];Object.keys(We).forEach(function(o){Dt.forEach(function(i){i=i+o.charAt(0).toUpperCase()+o.substring(1),We[i]=We[o]})});function Jt(o,i,c){return i==null||typeof i=="boolean"||i===""?"":c||typeof i!="number"||i===0||We.hasOwnProperty(o)&&We[o]?(""+i).trim():i+"px"}function Be(o,i){o=o.style;for(var c in i)if(i.hasOwnProperty(c)){var d=c.indexOf("--")===0,g=Jt(c,i[c],d);c==="float"&&(c="cssFloat"),d?o.setProperty(c,g):o[c]=g}}var U=E({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Y(o,i){if(i){if(U[o]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(n(137,o));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(n(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(n(61))}if(i.style!=null&&typeof i.style!="object")throw Error(n(62))}}function Pe(o,i){if(o.indexOf("-")===-1)return typeof i.is=="string";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 De=null;function Te(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Ne=null,Je=null,ke=null;function rt(o){if(o=vc(o)){if(typeof Ne!="function")throw Error(n(280));var i=o.stateNode;i&&(i=Of(i),Ne(o.stateNode,o.type,i))}}function vt(o){Je?ke?ke.push(o):ke=[o]:Je=o}function kt(){if(Je){var o=Je,i=ke;if(ke=Je=null,rt(o),i)for(o=0;o>>=0,o===0?32:31-(K4(o)/_4|0)|0}var uf=64,ff=4194304;function Ql(o){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: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 o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function df(o,i){var c=o.pendingLanes;if(c===0)return 0;var d=0,g=o.suspendedLanes,b=o.pingedLanes,T=c&268435455;if(T!==0){var V=T&~g;V!==0?d=Ql(V):(b&=T,b!==0&&(d=Ql(b)))}else T=c&~g,T!==0?d=Ql(T):b!==0&&(d=Ql(b));if(d===0)return 0;if(i!==0&&i!==d&&!(i&g)&&(g=d&-d,b=i&-i,g>=b||g===16&&(b&4194240)!==0))return i;if(d&4&&(d|=c&16),i=o.entangledLanes,i!==0)for(o=o.entanglements,i&=d;0c;c++)i.push(o);return i}function Kl(o,i,c){o.pendingLanes|=i,i!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,i=31-Lr(i),o[i]=c}function n5(o,i){var c=o.pendingLanes&~i;o.pendingLanes=i,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=i,o.mutableReadLanes&=i,o.entangledLanes&=i,i=o.entanglements;var d=o.eventTimes;for(o=o.expirationTimes;0=sc),YA=" ",qA=!1;function ZA(o,i){switch(o){case"keyup":return D5.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function GA(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Ha=!1;function k5(o,i){switch(o){case"compositionend":return GA(i);case"keypress":return i.which!==32?null:(qA=!0,YA);case"textInput":return o=i.data,o===YA&&qA?null:o;default:return null}}function R5(o,i){if(Ha)return o==="compositionend"||!Uv&&ZA(o,i)?(o=BA(),gf=Jv=Js=null,Ha=!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)return{node:c,offset:i-o};o=d}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=tP(c)}}function rP(o,i){return o&&i?o===i?!0:o&&o.nodeType===3?!1:i&&i.nodeType===3?rP(o,i.parentNode):"contains"in o?o.contains(i):o.compareDocumentPosition?!!(o.compareDocumentPosition(i)&16):!1:!1}function oP(){for(var o=window,i=_e();i instanceof o.HTMLIFrameElement;){try{var c=typeof i.contentWindow.location.href=="string"}catch{c=!1}if(c)o=i.contentWindow;else break;i=_e(o.document)}return i}function _v(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")}function W5(o){var i=oP(),c=o.focusedElem,d=o.selectionRange;if(i!==c&&c&&c.ownerDocument&&rP(c.ownerDocument.documentElement,c)){if(d!==null&&_v(c)){if(i=d.start,o=d.end,o===void 0&&(o=i),"selectionStart"in c)c.selectionStart=i,c.selectionEnd=Math.min(o,c.value.length);else if(o=(i=c.ownerDocument||document)&&i.defaultView||window,o.getSelection){o=o.getSelection();var g=c.textContent.length,b=Math.min(d.start,g);d=d.end===void 0?b:Math.min(d.end,g),!o.extend&&b>d&&(g=d,d=b,b=g),g=nP(c,b);var T=nP(c,d);g&&T&&(o.rangeCount!==1||o.anchorNode!==g.node||o.anchorOffset!==g.offset||o.focusNode!==T.node||o.focusOffset!==T.offset)&&(i=i.createRange(),i.setStart(g.node,g.offset),o.removeAllRanges(),b>d?(o.addRange(i),o.extend(T.node,T.offset)):(i.setEnd(T.node,T.offset),o.addRange(i)))}}for(i=[],o=c;o=o.parentNode;)o.nodeType===1&&i.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c=document.documentMode,ja=null,$v=null,cc=null,eh=!1;function sP(o,i,c){var d=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;eh||ja==null||ja!==_e(d)||(d=ja,"selectionStart"in d&&_v(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),cc&&lc(cc,d)||(cc=d,d=jf($v,"onSelect"),0Da||(o.current=dh[Da],dh[Da]=null,Da--)}function nn(o,i){Da++,dh[Da]=o.current,o.current=i}var Zs={},$n=qs(Zs),gr=qs(!1),ki=Zs;function Ta(o,i){var c=o.type.contextTypes;if(!c)return Zs;var d=o.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===i)return d.__reactInternalMemoizedMaskedChildContext;var g={},b;for(b in c)g[b]=i[b];return d&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=i,o.__reactInternalMemoizedMaskedChildContext=g),g}function yr(o){return o=o.childContextTypes,o!=null}function Cf(){an(gr),an($n)}function PP(o,i,c){if($n.current!==Zs)throw Error(n(168));nn($n,i),nn(gr,c)}function bP(o,i,c){var d=o.stateNode;if(i=i.childContextTypes,typeof d.getChildContext!="function")return c;d=d.getChildContext();for(var g in d)if(!(g in i))throw Error(n(108,xe(o)||"Unknown",g));return E({},c,d)}function Df(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||Zs,ki=$n.current,nn($n,o),nn(gr,gr.current),!0}function xP(o,i,c){var d=o.stateNode;if(!d)throw Error(n(169));c?(o=bP(o,i,ki),d.__reactInternalMemoizedMergedChildContext=o,an(gr),an($n),nn($n,o)):an(gr),nn(gr,c)}var vs=null,Tf=!1,ph=!1;function wP(o){vs===null?vs=[o]:vs.push(o)}function e3(o){Tf=!0,wP(o)}function Gs(){if(!ph&&vs!==null){ph=!0;var o=0,i=Ut;try{var c=vs;for(Ut=1;o>=T,g-=T,hs=1<<32-Lr(i)+g|c<bt?(Yn=mt,mt=null):Yn=mt.sibling;var Wt=Se(ie,mt,ae[bt],Me);if(Wt===null){mt===null&&(mt=Yn);break}o&&mt&&Wt.alternate===null&&i(ie,mt),Q=b(Wt,Q,bt),ht===null?pt=Wt:ht.sibling=Wt,ht=Wt,mt=Yn}if(bt===ae.length)return c(ie,mt),fn&&Ei(ie,bt),pt;if(mt===null){for(;btbt?(Yn=mt,mt=null):Yn=mt.sibling;var ri=Se(ie,mt,Wt.value,Me);if(ri===null){mt===null&&(mt=Yn);break}o&&mt&&ri.alternate===null&&i(ie,mt),Q=b(ri,Q,bt),ht===null?pt=ri:ht.sibling=ri,ht=ri,mt=Yn}if(Wt.done)return c(ie,mt),fn&&Ei(ie,bt),pt;if(mt===null){for(;!Wt.done;bt++,Wt=ae.next())Wt=Ce(ie,Wt.value,Me),Wt!==null&&(Q=b(Wt,Q,bt),ht===null?pt=Wt:ht.sibling=Wt,ht=Wt);return fn&&Ei(ie,bt),pt}for(mt=d(ie,mt);!Wt.done;bt++,Wt=ae.next())Wt=Ye(mt,ie,bt,Wt.value,Me),Wt!==null&&(o&&Wt.alternate!==null&&mt.delete(Wt.key===null?bt:Wt.key),Q=b(Wt,Q,bt),ht===null?pt=Wt:ht.sibling=Wt,ht=Wt);return o&&mt.forEach(function(E3){return i(ie,E3)}),fn&&Ei(ie,bt),pt}function On(ie,Q,ae,Me){if(typeof ae=="object"&&ae!==null&&ae.type===R&&ae.key===null&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case D:e:{for(var pt=ae.key,ht=Q;ht!==null;){if(ht.key===pt){if(pt=ae.type,pt===R){if(ht.tag===7){c(ie,ht.sibling),Q=g(ht,ae.props.children),Q.return=ie,ie=Q;break e}}else if(ht.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===ne&&XP(pt)===ht.type){c(ie,ht.sibling),Q=g(ht,ae.props),Q.ref=hc(ie,ht,ae),Q.return=ie,ie=Q;break e}c(ie,ht);break}else i(ie,ht);ht=ht.sibling}ae.type===R?(Q=Wi(ae.props.children,ie.mode,Me,ae.key),Q.return=ie,ie=Q):(Me=sd(ae.type,ae.key,ae.props,null,ie.mode,Me),Me.ref=hc(ie,Q,ae),Me.return=ie,ie=Me)}return T(ie);case k:e:{for(ht=ae.key;Q!==null;){if(Q.key===ht)if(Q.tag===4&&Q.stateNode.containerInfo===ae.containerInfo&&Q.stateNode.implementation===ae.implementation){c(ie,Q.sibling),Q=g(Q,ae.children||[]),Q.return=ie,ie=Q;break e}else{c(ie,Q);break}else i(ie,Q);Q=Q.sibling}Q=um(ae,ie.mode,Me),Q.return=ie,ie=Q}return T(ie);case ne:return ht=ae._init,On(ie,Q,ht(ae._payload),Me)}if(se(ae))return it(ie,Q,ae,Me);if(_(ae))return ut(ie,Q,ae,Me);Vf(ie,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"?(ae=""+ae,Q!==null&&Q.tag===6?(c(ie,Q.sibling),Q=g(Q,ae),Q.return=ie,ie=Q):(c(ie,Q),Q=cm(ae,ie.mode,Me),Q.return=ie,ie=Q),T(ie)):c(ie,Q)}return On}var Xa=NP(!0),BP=NP(!1),mc={},Wo=qs(mc),gc=qs(mc),yc=qs(mc);function Li(o){if(o===mc)throw Error(n(174));return o}function zh(o,i){switch(nn(yc,i),nn(gc,o),nn(Wo,mc),o=i.nodeType,o){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:nt(null,"");break;default:o=o===8?i.parentNode:i,i=o.namespaceURI||null,o=o.tagName,i=nt(i,o)}an(Wo),nn(Wo,i)}function Na(){an(Wo),an(gc),an(yc)}function VP(o){Li(yc.current);var i=Li(Wo.current),c=nt(i,o.type);i!==c&&(nn(gc,o),nn(Wo,c))}function Oh(o){gc.current===o&&(an(Wo),an(gc))}var vn=qs(0);function If(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==="$?"||c.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if(i.flags&128)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}var Ch=[];function Dh(){for(var o=0;oc?c:4,o(!0);var d=Th.transition;Th.transition={};try{o(!1),i()}finally{Ut=c,Th.transition=d}}function ob(){return to().memoizedState}function o3(o,i,c){var d=ei(o);if(c={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null},sb(o))ib(i,c);else if(c=CP(o,i,c,d),c!==null){var g=cr();So(c,o,d,g),ab(c,i,d)}}function s3(o,i,c){var d=ei(o),g={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(sb(o))ib(i,g);else{var b=o.alternate;if(o.lanes===0&&(b===null||b.lanes===0)&&(b=i.lastRenderedReducer,b!==null))try{var T=i.lastRenderedState,V=b(T,c);if(g.hasEagerState=!0,g.eagerState=V,bo(V,T)){var q=i.interleaved;q===null?(g.next=g,wh(i)):(g.next=q.next,q.next=g),i.interleaved=g;return}}catch{}finally{}c=CP(o,i,g,d),c!==null&&(g=cr(),So(c,o,d,g),ab(c,i,d))}}function sb(o){var i=o.alternate;return o===hn||i!==null&&i===hn}function ib(o,i){Ac=Jf=!0;var c=o.pending;c===null?i.next=i:(i.next=c.next,c.next=i),o.pending=i}function ab(o,i,c){if(c&4194240){var d=i.lanes;d&=o.pendingLanes,c|=d,i.lanes=c,Nv(o,c)}}var qf={readContext:eo,useCallback:er,useContext:er,useEffect:er,useImperativeHandle:er,useInsertionEffect:er,useLayoutEffect:er,useMemo:er,useReducer:er,useRef:er,useState:er,useDebugValue:er,useDeferredValue:er,useTransition:er,useMutableSource:er,useSyncExternalStore:er,useId:er,unstable_isNewReconciler:!1},i3={readContext:eo,useCallback:function(o,i){return Jo().memoizedState=[o,i===void 0?null:i],o},useContext:eo,useEffect:QP,useImperativeHandle:function(o,i,c){return c=c!=null?c.concat([o]):null,Ff(4194308,4,$P.bind(null,i,o),c)},useLayoutEffect:function(o,i){return Ff(4194308,4,o,i)},useInsertionEffect:function(o,i){return Ff(4,2,o,i)},useMemo:function(o,i){var c=Jo();return i=i===void 0?null:i,o=o(),c.memoizedState=[o,i],o},useReducer:function(o,i,c){var d=Jo();return i=c!==void 0?c(i):i,d.memoizedState=d.baseState=i,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:i},d.queue=o,o=o.dispatch=o3.bind(null,hn,o),[d.memoizedState,o]},useRef:function(o){var i=Jo();return o={current:o},i.memoizedState=o},useState:GP,useDebugValue:Nh,useDeferredValue:function(o){return Jo().memoizedState=o},useTransition:function(){var o=GP(!1),i=o[0];return o=r3.bind(null,o[1]),Jo().memoizedState=o,[i,o]},useMutableSource:function(){},useSyncExternalStore:function(o,i,c){var d=hn,g=Jo();if(fn){if(c===void 0)throw Error(n(407));c=c()}else{if(c=i(),Fn===null)throw Error(n(349));Xi&30||JP(d,i,c)}g.memoizedState=c;var b={value:c,getSnapshot:i};return g.queue=b,QP(YP.bind(null,d,b,o),[o]),d.flags|=2048,xc(9,FP.bind(null,d,b,c,i),void 0,null),c},useId:function(){var o=Jo(),i=Fn.identifierPrefix;if(fn){var c=ms,d=hs;c=(d&~(1<<32-Lr(d)-1)).toString(32)+c,i=":"+i+"R"+c,c=Pc++,0")&&(q=q.replace("",o.displayName)),q}while(1<=T&&0<=V);break}}}finally{re=!1,Error.prepareStackTrace=c}return(o=o?o.displayName||o.name:"")?X(o):""}function ue(o){switch(o.tag){case 5:return X(o.type);case 16:return X("Lazy");case 13:return X("Suspense");case 19:return X("SuspenseList");case 0:case 2:case 15:return o=ee(o.type,!1),o;case 11:return o=ee(o.type.render,!1),o;case 1:return o=ee(o.type,!0),o;default:return""}}function de(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case R:return"Fragment";case k:return"Portal";case L:return"Profiler";case M:return"StrictMode";case F:return"Suspense";case $:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case B:return(o.displayName||"Context")+".Consumer";case j:return(o._context.displayName||"Context")+".Provider";case I:var i=o.render;return o=o.displayName,o||(o=i.displayName||i.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case W:return i=o.displayName||null,i!==null?i:de(o.type)||"Memo";case ne:i=o._payload,o=o._init;try{return de(o(i))}catch{}}return null}function we(o){var i=o.type;switch(o.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=i.render,o=o.displayName||o.name||"",i.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return de(i);case 8:return i===M?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function ve(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function be(o){var i=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Xe(o){var i=be(o)?"checked":"value",c=Object.getOwnPropertyDescriptor(o.constructor.prototype,i),d=""+o[i];if(!o.hasOwnProperty(i)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var g=c.get,b=c.set;return Object.defineProperty(o,i,{configurable:!0,get:function(){return g.call(this)},set:function(T){d=""+T,b.call(this,T)}}),Object.defineProperty(o,i,{enumerable:c.enumerable}),{getValue:function(){return d},setValue:function(T){d=""+T},stopTracking:function(){o._valueTracker=null,delete o[i]}}}}function Ie(o){o._valueTracker||(o._valueTracker=Xe(o))}function He(o){if(!o)return!1;var i=o._valueTracker;if(!i)return!0;var c=i.getValue(),d="";return o&&(d=be(o)?o.checked?"true":"false":o.value),o=d,o!==c?(i.setValue(o),!0):!1}function _e(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}}function xe(o,i){var c=i.checked;return E({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c??o._wrapperState.initialChecked})}function tt(o,i){var c=i.defaultValue==null?"":i.defaultValue,d=i.checked!=null?i.checked:i.defaultChecked;c=ve(i.value!=null?i.value:c),o._wrapperState={initialChecked:d,initialValue:c,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function Le(o,i){i=i.checked,i!=null&&O(o,"checked",i,!1)}function dt(o,i){Le(o,i);var c=ve(i.value),d=i.type;if(c!=null)d==="number"?(c===0&&o.value===""||o.value!=c)&&(o.value=""+c):o.value!==""+c&&(o.value=""+c);else if(d==="submit"||d==="reset"){o.removeAttribute("value");return}i.hasOwnProperty("value")?te(o,i.type,c):i.hasOwnProperty("defaultValue")&&te(o,i.type,ve(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(o.defaultChecked=!!i.defaultChecked)}function N(o,i,c){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var d=i.type;if(!(d!=="submit"&&d!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+o._wrapperState.initialValue,c||i===o.value||(o.value=i),o.defaultValue=i}c=o.name,c!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,c!==""&&(o.name=c)}function te(o,i,c){(i!=="number"||_e(o.ownerDocument)!==o)&&(c==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+c&&(o.defaultValue=""+c))}var se=Array.isArray;function ye(o,i,c,d){if(o=o.options,i){i={};for(var g=0;g"+i.valueOf().toString()+"",i=ft.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;i.firstChild;)o.appendChild(i.firstChild)}});function Ht(o,i){if(i){var c=o.firstChild;if(c&&c===o.lastChild&&c.nodeType===3){c.nodeValue=i;return}}o.textContent=i}var We={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Dt=["Webkit","ms","Moz","O"];Object.keys(We).forEach(function(o){Dt.forEach(function(i){i=i+o.charAt(0).toUpperCase()+o.substring(1),We[i]=We[o]})});function Jt(o,i,c){return i==null||typeof i=="boolean"||i===""?"":c||typeof i!="number"||i===0||We.hasOwnProperty(o)&&We[o]?(""+i).trim():i+"px"}function Be(o,i){o=o.style;for(var c in i)if(i.hasOwnProperty(c)){var d=c.indexOf("--")===0,g=Jt(c,i[c],d);c==="float"&&(c="cssFloat"),d?o.setProperty(c,g):o[c]=g}}var U=E({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Y(o,i){if(i){if(U[o]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(n(137,o));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(n(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(n(61))}if(i.style!=null&&typeof i.style!="object")throw Error(n(62))}}function Pe(o,i){if(o.indexOf("-")===-1)return typeof i.is=="string";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 De=null;function Te(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Ne=null,Je=null,ke=null;function rt(o){if(o=vc(o)){if(typeof Ne!="function")throw Error(n(280));var i=o.stateNode;i&&(i=Of(i),Ne(o.stateNode,o.type,i))}}function vt(o){Je?ke?ke.push(o):ke=[o]:Je=o}function kt(){if(Je){var o=Je,i=ke;if(ke=Je=null,rt(o),i)for(o=0;o>>=0,o===0?32:31-(_4(o)/$4|0)|0}var uf=64,ff=4194304;function Ql(o){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: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 o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function df(o,i){var c=o.pendingLanes;if(c===0)return 0;var d=0,g=o.suspendedLanes,b=o.pingedLanes,T=c&268435455;if(T!==0){var V=T&~g;V!==0?d=Ql(V):(b&=T,b!==0&&(d=Ql(b)))}else T=c&~g,T!==0?d=Ql(T):b!==0&&(d=Ql(b));if(d===0)return 0;if(i!==0&&i!==d&&!(i&g)&&(g=d&-d,b=i&-i,g>=b||g===16&&(b&4194240)!==0))return i;if(d&4&&(d|=c&16),i=o.entangledLanes,i!==0)for(o=o.entanglements,i&=d;0c;c++)i.push(o);return i}function Kl(o,i,c){o.pendingLanes|=i,i!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,i=31-Lr(i),o[i]=c}function r5(o,i){var c=o.pendingLanes&~i;o.pendingLanes=i,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=i,o.mutableReadLanes&=i,o.entangledLanes&=i,i=o.entanglements;var d=o.eventTimes;for(o=o.expirationTimes;0=sc),YA=" ",qA=!1;function ZA(o,i){switch(o){case"keyup":return T5.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function GA(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Ha=!1;function R5(o,i){switch(o){case"compositionend":return GA(i);case"keypress":return i.which!==32?null:(qA=!0,YA);case"textInput":return o=i.data,o===YA&&qA?null:o;default:return null}}function E5(o,i){if(Ha)return o==="compositionend"||!Qv&&ZA(o,i)?(o=BA(),gf=Fv=Js=null,Ha=!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)return{node:c,offset:i-o};o=d}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=tP(c)}}function rP(o,i){return o&&i?o===i?!0:o&&o.nodeType===3?!1:i&&i.nodeType===3?rP(o,i.parentNode):"contains"in o?o.contains(i):o.compareDocumentPosition?!!(o.compareDocumentPosition(i)&16):!1:!1}function oP(){for(var o=window,i=_e();i instanceof o.HTMLIFrameElement;){try{var c=typeof i.contentWindow.location.href=="string"}catch{c=!1}if(c)o=i.contentWindow;else break;i=_e(o.document)}return i}function $v(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")}function J5(o){var i=oP(),c=o.focusedElem,d=o.selectionRange;if(i!==c&&c&&c.ownerDocument&&rP(c.ownerDocument.documentElement,c)){if(d!==null&&$v(c)){if(i=d.start,o=d.end,o===void 0&&(o=i),"selectionStart"in c)c.selectionStart=i,c.selectionEnd=Math.min(o,c.value.length);else if(o=(i=c.ownerDocument||document)&&i.defaultView||window,o.getSelection){o=o.getSelection();var g=c.textContent.length,b=Math.min(d.start,g);d=d.end===void 0?b:Math.min(d.end,g),!o.extend&&b>d&&(g=d,d=b,b=g),g=nP(c,b);var T=nP(c,d);g&&T&&(o.rangeCount!==1||o.anchorNode!==g.node||o.anchorOffset!==g.offset||o.focusNode!==T.node||o.focusOffset!==T.offset)&&(i=i.createRange(),i.setStart(g.node,g.offset),o.removeAllRanges(),b>d?(o.addRange(i),o.extend(T.node,T.offset)):(i.setEnd(T.node,T.offset),o.addRange(i)))}}for(i=[],o=c;o=o.parentNode;)o.nodeType===1&&i.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c=document.documentMode,ja=null,eh=null,cc=null,th=!1;function sP(o,i,c){var d=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;th||ja==null||ja!==_e(d)||(d=ja,"selectionStart"in d&&$v(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),cc&&lc(cc,d)||(cc=d,d=jf(eh,"onSelect"),0Da||(o.current=ph[Da],ph[Da]=null,Da--)}function nn(o,i){Da++,ph[Da]=o.current,o.current=i}var Zs={},$n=qs(Zs),gr=qs(!1),ki=Zs;function Ta(o,i){var c=o.type.contextTypes;if(!c)return Zs;var d=o.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===i)return d.__reactInternalMemoizedMaskedChildContext;var g={},b;for(b in c)g[b]=i[b];return d&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=i,o.__reactInternalMemoizedMaskedChildContext=g),g}function yr(o){return o=o.childContextTypes,o!=null}function Cf(){an(gr),an($n)}function PP(o,i,c){if($n.current!==Zs)throw Error(n(168));nn($n,i),nn(gr,c)}function bP(o,i,c){var d=o.stateNode;if(i=i.childContextTypes,typeof d.getChildContext!="function")return c;d=d.getChildContext();for(var g in d)if(!(g in i))throw Error(n(108,we(o)||"Unknown",g));return E({},c,d)}function Df(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||Zs,ki=$n.current,nn($n,o),nn(gr,gr.current),!0}function xP(o,i,c){var d=o.stateNode;if(!d)throw Error(n(169));c?(o=bP(o,i,ki),d.__reactInternalMemoizedMergedChildContext=o,an(gr),an($n),nn($n,o)):an(gr),nn(gr,c)}var vs=null,Tf=!1,vh=!1;function wP(o){vs===null?vs=[o]:vs.push(o)}function t3(o){Tf=!0,wP(o)}function Gs(){if(!vh&&vs!==null){vh=!0;var o=0,i=Ut;try{var c=vs;for(Ut=1;o>=T,g-=T,hs=1<<32-Lr(i)+g|c<bt?(Yn=mt,mt=null):Yn=mt.sibling;var Wt=Se(ie,mt,ae[bt],Me);if(Wt===null){mt===null&&(mt=Yn);break}o&&mt&&Wt.alternate===null&&i(ie,mt),K=b(Wt,K,bt),ht===null?pt=Wt:ht.sibling=Wt,ht=Wt,mt=Yn}if(bt===ae.length)return c(ie,mt),fn&&Ei(ie,bt),pt;if(mt===null){for(;btbt?(Yn=mt,mt=null):Yn=mt.sibling;var ri=Se(ie,mt,Wt.value,Me);if(ri===null){mt===null&&(mt=Yn);break}o&&mt&&ri.alternate===null&&i(ie,mt),K=b(ri,K,bt),ht===null?pt=ri:ht.sibling=ri,ht=ri,mt=Yn}if(Wt.done)return c(ie,mt),fn&&Ei(ie,bt),pt;if(mt===null){for(;!Wt.done;bt++,Wt=ae.next())Wt=Ce(ie,Wt.value,Me),Wt!==null&&(K=b(Wt,K,bt),ht===null?pt=Wt:ht.sibling=Wt,ht=Wt);return fn&&Ei(ie,bt),pt}for(mt=d(ie,mt);!Wt.done;bt++,Wt=ae.next())Wt=Ye(mt,ie,bt,Wt.value,Me),Wt!==null&&(o&&Wt.alternate!==null&&mt.delete(Wt.key===null?bt:Wt.key),K=b(Wt,K,bt),ht===null?pt=Wt:ht.sibling=Wt,ht=Wt);return o&&mt.forEach(function(M3){return i(ie,M3)}),fn&&Ei(ie,bt),pt}function On(ie,K,ae,Me){if(typeof ae=="object"&&ae!==null&&ae.type===R&&ae.key===null&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case D:e:{for(var pt=ae.key,ht=K;ht!==null;){if(ht.key===pt){if(pt=ae.type,pt===R){if(ht.tag===7){c(ie,ht.sibling),K=g(ht,ae.props.children),K.return=ie,ie=K;break e}}else if(ht.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===ne&&XP(pt)===ht.type){c(ie,ht.sibling),K=g(ht,ae.props),K.ref=hc(ie,ht,ae),K.return=ie,ie=K;break e}c(ie,ht);break}else i(ie,ht);ht=ht.sibling}ae.type===R?(K=Wi(ae.props.children,ie.mode,Me,ae.key),K.return=ie,ie=K):(Me=sd(ae.type,ae.key,ae.props,null,ie.mode,Me),Me.ref=hc(ie,K,ae),Me.return=ie,ie=Me)}return T(ie);case k:e:{for(ht=ae.key;K!==null;){if(K.key===ht)if(K.tag===4&&K.stateNode.containerInfo===ae.containerInfo&&K.stateNode.implementation===ae.implementation){c(ie,K.sibling),K=g(K,ae.children||[]),K.return=ie,ie=K;break e}else{c(ie,K);break}else i(ie,K);K=K.sibling}K=fm(ae,ie.mode,Me),K.return=ie,ie=K}return T(ie);case ne:return ht=ae._init,On(ie,K,ht(ae._payload),Me)}if(se(ae))return it(ie,K,ae,Me);if(Q(ae))return ut(ie,K,ae,Me);Vf(ie,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"?(ae=""+ae,K!==null&&K.tag===6?(c(ie,K.sibling),K=g(K,ae),K.return=ie,ie=K):(c(ie,K),K=um(ae,ie.mode,Me),K.return=ie,ie=K),T(ie)):c(ie,K)}return On}var Xa=NP(!0),BP=NP(!1),mc={},Wo=qs(mc),gc=qs(mc),yc=qs(mc);function Li(o){if(o===mc)throw Error(n(174));return o}function Oh(o,i){switch(nn(yc,i),nn(gc,o),nn(Wo,mc),o=i.nodeType,o){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:nt(null,"");break;default:o=o===8?i.parentNode:i,i=o.namespaceURI||null,o=o.tagName,i=nt(i,o)}an(Wo),nn(Wo,i)}function Na(){an(Wo),an(gc),an(yc)}function VP(o){Li(yc.current);var i=Li(Wo.current),c=nt(i,o.type);i!==c&&(nn(gc,o),nn(Wo,c))}function Ch(o){gc.current===o&&(an(Wo),an(gc))}var vn=qs(0);function If(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==="$?"||c.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if(i.flags&128)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}var Dh=[];function Th(){for(var o=0;oc?c:4,o(!0);var d=kh.transition;kh.transition={};try{o(!1),i()}finally{Ut=c,kh.transition=d}}function ob(){return to().memoizedState}function s3(o,i,c){var d=ei(o);if(c={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null},sb(o))ib(i,c);else if(c=CP(o,i,c,d),c!==null){var g=cr();So(c,o,d,g),ab(c,i,d)}}function i3(o,i,c){var d=ei(o),g={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(sb(o))ib(i,g);else{var b=o.alternate;if(o.lanes===0&&(b===null||b.lanes===0)&&(b=i.lastRenderedReducer,b!==null))try{var T=i.lastRenderedState,V=b(T,c);if(g.hasEagerState=!0,g.eagerState=V,bo(V,T)){var q=i.interleaved;q===null?(g.next=g,Hh(i)):(g.next=q.next,q.next=g),i.interleaved=g;return}}catch{}finally{}c=CP(o,i,g,d),c!==null&&(g=cr(),So(c,o,d,g),ab(c,i,d))}}function sb(o){var i=o.alternate;return o===hn||i!==null&&i===hn}function ib(o,i){Ac=Jf=!0;var c=o.pending;c===null?i.next=i:(i.next=c.next,c.next=i),o.pending=i}function ab(o,i,c){if(c&4194240){var d=i.lanes;d&=o.pendingLanes,c|=d,i.lanes=c,Bv(o,c)}}var qf={readContext:eo,useCallback:er,useContext:er,useEffect:er,useImperativeHandle:er,useInsertionEffect:er,useLayoutEffect:er,useMemo:er,useReducer:er,useRef:er,useState:er,useDebugValue:er,useDeferredValue:er,useTransition:er,useMutableSource:er,useSyncExternalStore:er,useId:er,unstable_isNewReconciler:!1},a3={readContext:eo,useCallback:function(o,i){return Jo().memoizedState=[o,i===void 0?null:i],o},useContext:eo,useEffect:QP,useImperativeHandle:function(o,i,c){return c=c!=null?c.concat([o]):null,Ff(4194308,4,$P.bind(null,i,o),c)},useLayoutEffect:function(o,i){return Ff(4194308,4,o,i)},useInsertionEffect:function(o,i){return Ff(4,2,o,i)},useMemo:function(o,i){var c=Jo();return i=i===void 0?null:i,o=o(),c.memoizedState=[o,i],o},useReducer:function(o,i,c){var d=Jo();return i=c!==void 0?c(i):i,d.memoizedState=d.baseState=i,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:i},d.queue=o,o=o.dispatch=s3.bind(null,hn,o),[d.memoizedState,o]},useRef:function(o){var i=Jo();return o={current:o},i.memoizedState=o},useState:GP,useDebugValue:Bh,useDeferredValue:function(o){return Jo().memoizedState=o},useTransition:function(){var o=GP(!1),i=o[0];return o=o3.bind(null,o[1]),Jo().memoizedState=o,[i,o]},useMutableSource:function(){},useSyncExternalStore:function(o,i,c){var d=hn,g=Jo();if(fn){if(c===void 0)throw Error(n(407));c=c()}else{if(c=i(),Fn===null)throw Error(n(349));Xi&30||JP(d,i,c)}g.memoizedState=c;var b={value:c,getSnapshot:i};return g.queue=b,QP(YP.bind(null,d,b,o),[o]),d.flags|=2048,xc(9,FP.bind(null,d,b,c,i),void 0,null),c},useId:function(){var o=Jo(),i=Fn.identifierPrefix;if(fn){var c=ms,d=hs;c=(d&~(1<<32-Lr(d)-1)).toString(32)+c,i=":"+i+"R"+c,c=Pc++,0<\/script>",o=o.removeChild(o.firstChild)):typeof d.is=="string"?o=T.createElement(c,{is:d.is}):(o=T.createElement(c),c==="select"&&(T=o,d.multiple?T.multiple=!0:d.size&&(T.size=d.size))):o=T.createElementNS(o,c),o[Io]=i,o[pc]=d,Hb(o,i,!1,!1),i.stateNode=o;e:{switch(T=Pe(c,d),c){case"dialog":sn("cancel",o),sn("close",o),g=d;break;case"iframe":case"object":case"embed":sn("load",o),g=d;break;case"video":case"audio":for(g=0;gWa&&(i.flags|=128,d=!0,wc(b,!1),i.lanes=4194304)}else{if(!d)if(o=If(T),o!==null){if(i.flags|=128,d=!0,c=o.updateQueue,c!==null&&(i.updateQueue=c,i.flags|=4),wc(b,!0),b.tail===null&&b.tailMode==="hidden"&&!T.alternate&&!fn)return tr(i),null}else 2*tn()-b.renderingStartTime>Wa&&c!==1073741824&&(i.flags|=128,d=!0,wc(b,!1),i.lanes=4194304);b.isBackwards?(T.sibling=i.child,i.child=T):(c=b.last,c!==null?c.sibling=T:i.child=T,b.last=T)}return b.tail!==null?(i=b.tail,b.rendering=i,b.tail=i.sibling,b.renderingStartTime=tn(),i.sibling=null,c=vn.current,nn(vn,d?c&1|2:c&1),i):(tr(i),null);case 22:case 23:return im(),d=i.memoizedState!==null,o!==null&&o.memoizedState!==null!==d&&(i.flags|=8192),d&&i.mode&1?Vr&1073741824&&(tr(i),i.subtreeFlags&6&&(i.flags|=8192)):tr(i),null;case 24:return null;case 25:return null}throw Error(n(156,i.tag))}function v3(o,i){switch(hh(i),i.tag){case 1:return yr(i.type)&&Cf(),o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 3:return Na(),an(gr),an($n),Dh(),o=i.flags,o&65536&&!(o&128)?(i.flags=o&-65537|128,i):null;case 5:return Oh(i),null;case 13:if(an(vn),o=i.memoizedState,o!==null&&o.dehydrated!==null){if(i.alternate===null)throw Error(n(340));Ea()}return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 19:return an(vn),null;case 4:return Na(),null;case 10:return bh(i.type._context),null;case 22:case 23:return im(),null;case 24:return null;default:return null}}var Uf=!1,nr=!1,h3=typeof WeakSet=="function"?WeakSet:Set,et=null;function Va(o,i){var c=o.ref;if(c!==null)if(typeof c=="function")try{c(null)}catch(d){bn(o,i,d)}else c.current=null}function Gh(o,i,c){try{c()}catch(d){bn(o,i,d)}}var zb=!1;function m3(o,i){if(ih=hf,o=oP(),_v(o)){if("selectionStart"in o)var c={start:o.selectionStart,end:o.selectionEnd};else e:{c=(c=o.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&d.rangeCount!==0){c=d.anchorNode;var g=d.anchorOffset,b=d.focusNode;d=d.focusOffset;try{c.nodeType,b.nodeType}catch{c=null;break e}var T=0,V=-1,q=-1,fe=0,ze=0,Ce=o,Se=null;t:for(;;){for(var Ye;Ce!==c||g!==0&&Ce.nodeType!==3||(V=T+g),Ce!==b||d!==0&&Ce.nodeType!==3||(q=T+d),Ce.nodeType===3&&(T+=Ce.nodeValue.length),(Ye=Ce.firstChild)!==null;)Se=Ce,Ce=Ye;for(;;){if(Ce===o)break t;if(Se===c&&++fe===g&&(V=T),Se===b&&++ze===d&&(q=T),(Ye=Ce.nextSibling)!==null)break;Ce=Se,Se=Ce.parentNode}Ce=Ye}c=V===-1||q===-1?null:{start:V,end:q}}else c=null}c=c||{start:0,end:0}}else c=null;for(ah={focusedElem:o,selectionRange:c},hf=!1,et=i;et!==null;)if(i=et,o=i.child,(i.subtreeFlags&1028)!==0&&o!==null)o.return=i,et=o;else for(;et!==null;){i=et;try{var it=i.alternate;if(i.flags&1024)switch(i.tag){case 0:case 11:case 15:break;case 1:if(it!==null){var ut=it.memoizedProps,On=it.memoizedState,ie=i.stateNode,Q=ie.getSnapshotBeforeUpdate(i.elementType===i.type?ut:wo(i.type,ut),On);ie.__reactInternalSnapshotBeforeUpdate=Q}break;case 3:var ae=i.stateNode.containerInfo;ae.nodeType===1?ae.textContent="":ae.nodeType===9&&ae.documentElement&&ae.removeChild(ae.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Me){bn(i,i.return,Me)}if(o=i.sibling,o!==null){o.return=i.return,et=o;break}et=i.return}return it=zb,zb=!1,it}function Hc(o,i,c){var d=i.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var g=d=d.next;do{if((g.tag&o)===o){var b=g.destroy;g.destroy=void 0,b!==void 0&&Gh(i,c,b)}g=g.next}while(g!==d)}}function Qf(o,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var c=i=i.next;do{if((c.tag&o)===o){var d=c.create;c.destroy=d()}c=c.next}while(c!==i)}}function Uh(o){var i=o.ref;if(i!==null){var c=o.stateNode;switch(o.tag){case 5:o=c;break;default:o=c}typeof i=="function"?i(o):i.current=o}}function Ob(o){var i=o.alternate;i!==null&&(o.alternate=null,Ob(i)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(i=o.stateNode,i!==null&&(delete i[Io],delete i[pc],delete i[fh],delete i[_5],delete i[$5])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function Cb(o){return o.tag===5||o.tag===3||o.tag===4}function Db(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Cb(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.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 Qh(o,i,c){var d=o.tag;if(d===5||d===6)o=o.stateNode,i?c.nodeType===8?c.parentNode.insertBefore(o,i):c.insertBefore(o,i):(c.nodeType===8?(i=c.parentNode,i.insertBefore(o,c)):(i=c,i.appendChild(o)),c=c._reactRootContainer,c!=null||i.onclick!==null||(i.onclick=zf));else if(d!==4&&(o=o.child,o!==null))for(Qh(o,i,c),o=o.sibling;o!==null;)Qh(o,i,c),o=o.sibling}function Kh(o,i,c){var d=o.tag;if(d===5||d===6)o=o.stateNode,i?c.insertBefore(o,i):c.appendChild(o);else if(d!==4&&(o=o.child,o!==null))for(Kh(o,i,c),o=o.sibling;o!==null;)Kh(o,i,c),o=o.sibling}var Un=null,Ho=!1;function Ks(o,i,c){for(c=c.child;c!==null;)Tb(o,i,c),c=c.sibling}function Tb(o,i,c){if(Xn&&typeof Xn.onCommitFiberUnmount=="function")try{Xn.onCommitFiberUnmount(ar,c)}catch{}switch(c.tag){case 5:nr||Va(c,i);case 6:var d=Un,g=Ho;Un=null,Ks(o,i,c),Un=d,Ho=g,Un!==null&&(Ho?(o=Un,c=c.stateNode,o.nodeType===8?o.parentNode.removeChild(c):o.removeChild(c)):Un.removeChild(c.stateNode));break;case 18:Un!==null&&(Ho?(o=Un,c=c.stateNode,o.nodeType===8?uh(o.parentNode,c):o.nodeType===1&&uh(o,c),nc(o)):uh(Un,c.stateNode));break;case 4:d=Un,g=Ho,Un=c.stateNode.containerInfo,Ho=!0,Ks(o,i,c),Un=d,Ho=g;break;case 0:case 11:case 14:case 15:if(!nr&&(d=c.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){g=d=d.next;do{var b=g,T=b.destroy;b=b.tag,T!==void 0&&(b&2||b&4)&&Gh(c,i,T),g=g.next}while(g!==d)}Ks(o,i,c);break;case 1:if(!nr&&(Va(c,i),d=c.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=c.memoizedProps,d.state=c.memoizedState,d.componentWillUnmount()}catch(V){bn(c,i,V)}Ks(o,i,c);break;case 21:Ks(o,i,c);break;case 22:c.mode&1?(nr=(d=nr)||c.memoizedState!==null,Ks(o,i,c),nr=d):Ks(o,i,c);break;default:Ks(o,i,c)}}function kb(o){var i=o.updateQueue;if(i!==null){o.updateQueue=null;var c=o.stateNode;c===null&&(c=o.stateNode=new h3),i.forEach(function(d){var g=j3.bind(null,o,d);c.has(d)||(c.add(d),d.then(g,g))})}}function jo(o,i){var c=i.deletions;if(c!==null)for(var d=0;dg&&(g=T),d&=~b}if(d=g,d=tn()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*y3(d/1960))-d,10o?16:o,$s===null)var d=!1;else{if(o=$s,$s=null,td=0,Vt&6)throw Error(n(331));var g=Vt;for(Vt|=4,et=o.current;et!==null;){var b=et,T=b.child;if(et.flags&16){var V=b.deletions;if(V!==null){for(var q=0;qtn()-em?Vi(o,0):$h|=c),br(o,i)}function Yb(o,i){i===0&&(o.mode&1?(i=ff,ff<<=1,!(ff&130023424)&&(ff=4194304)):i=1);var c=cr();o=gs(o,i),o!==null&&(Kl(o,i,c),br(o,c))}function H3(o){var i=o.memoizedState,c=0;i!==null&&(c=i.retryLane),Yb(o,c)}function j3(o,i){var c=0;switch(o.tag){case 13:var d=o.stateNode,g=o.memoizedState;g!==null&&(c=g.retryLane);break;case 19:d=o.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(i),Yb(o,c)}var qb;qb=function(o,i,c){if(o!==null)if(o.memoizedProps!==i.pendingProps||gr.current)Ar=!0;else{if(!(o.lanes&c)&&!(i.flags&128))return Ar=!1,d3(o,i,c);Ar=!!(o.flags&131072)}else Ar=!1,fn&&i.flags&1048576&&HP(i,Rf,i.index);switch(i.lanes=0,i.tag){case 2:var d=i.type;Gf(o,i),o=i.pendingProps;var g=Ta(i,$n.current);La(i,c),g=Rh(null,i,d,o,g,c);var b=Eh();return i.flags|=1,typeof g=="object"&&g!==null&&typeof g.render=="function"&&g.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,yr(d)?(b=!0,Df(i)):b=!1,i.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,Hh(i),g.updater=Bf,i.stateNode=g,g._reactInternals=i,Sh(i,d,o,c),i=Wh(null,i,d,!0,b,c)):(i.tag=0,fn&&b&&vh(i),lr(null,i,g,c),i=i.child),i;case 16:d=i.elementType;e:{switch(Gf(o,i),o=i.pendingProps,g=d._init,d=g(d._payload),i.type=d,g=i.tag=z3(d),o=wo(d,o),g){case 0:i=Ih(null,i,d,o,c);break e;case 1:i=yb(null,i,d,o,c);break e;case 11:i=pb(null,i,d,o,c);break e;case 14:i=vb(null,i,d,wo(d.type,o),c);break e}throw Error(n(306,d,""))}return i;case 0:return d=i.type,g=i.pendingProps,g=i.elementType===d?g:wo(d,g),Ih(o,i,d,g,c);case 1:return d=i.type,g=i.pendingProps,g=i.elementType===d?g:wo(d,g),yb(o,i,d,g,c);case 3:e:{if(Ab(i),o===null)throw Error(n(387));d=i.pendingProps,b=i.memoizedState,g=b.element,DP(o,i),Nf(i,d,null,c);var T=i.memoizedState;if(d=T.element,b.isDehydrated)if(b={element:d,isDehydrated:!1,cache:T.cache,pendingSuspenseBoundaries:T.pendingSuspenseBoundaries,transitions:T.transitions},i.updateQueue.baseState=b,i.memoizedState=b,i.flags&256){g=Ba(Error(n(423)),i),i=Pb(o,i,d,c,g);break e}else if(d!==g){g=Ba(Error(n(424)),i),i=Pb(o,i,d,c,g);break e}else for(Br=Ys(i.stateNode.containerInfo.firstChild),Nr=i,fn=!0,xo=null,c=BP(i,null,d,c),i.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(Ea(),d===g){i=As(o,i,c);break e}lr(o,i,d,c)}i=i.child}return i;case 5:return VP(i),o===null&&gh(i),d=i.type,g=i.pendingProps,b=o!==null?o.memoizedProps:null,T=g.children,lh(d,g)?T=null:b!==null&&lh(d,b)&&(i.flags|=32),gb(o,i),lr(o,i,T,c),i.child;case 6:return o===null&&gh(i),null;case 13:return bb(o,i,c);case 4:return zh(i,i.stateNode.containerInfo),d=i.pendingProps,o===null?i.child=Xa(i,null,d,c):lr(o,i,d,c),i.child;case 11:return d=i.type,g=i.pendingProps,g=i.elementType===d?g:wo(d,g),pb(o,i,d,g,c);case 7:return lr(o,i,i.pendingProps,c),i.child;case 8:return lr(o,i,i.pendingProps.children,c),i.child;case 12:return lr(o,i,i.pendingProps.children,c),i.child;case 10:e:{if(d=i.type._context,g=i.pendingProps,b=i.memoizedProps,T=g.value,nn(Mf,d._currentValue),d._currentValue=T,b!==null)if(bo(b.value,T)){if(b.children===g.children&&!gr.current){i=As(o,i,c);break e}}else for(b=i.child,b!==null&&(b.return=i);b!==null;){var V=b.dependencies;if(V!==null){T=b.child;for(var q=V.firstContext;q!==null;){if(q.context===d){if(b.tag===1){q=ys(-1,c&-c),q.tag=2;var fe=b.updateQueue;if(fe!==null){fe=fe.shared;var ze=fe.pending;ze===null?q.next=q:(q.next=ze.next,ze.next=q),fe.pending=q}}b.lanes|=c,q=b.alternate,q!==null&&(q.lanes|=c),xh(b.return,c,i),V.lanes|=c;break}q=q.next}}else if(b.tag===10)T=b.type===i.type?null:b.child;else if(b.tag===18){if(T=b.return,T===null)throw Error(n(341));T.lanes|=c,V=T.alternate,V!==null&&(V.lanes|=c),xh(T,c,i),T=b.sibling}else T=b.child;if(T!==null)T.return=b;else for(T=b;T!==null;){if(T===i){T=null;break}if(b=T.sibling,b!==null){b.return=T.return,T=b;break}T=T.return}b=T}lr(o,i,g.children,c),i=i.child}return i;case 9:return g=i.type,d=i.pendingProps.children,La(i,c),g=eo(g),d=d(g),i.flags|=1,lr(o,i,d,c),i.child;case 14:return d=i.type,g=wo(d,i.pendingProps),g=wo(d.type,g),vb(o,i,d,g,c);case 15:return hb(o,i,i.type,i.pendingProps,c);case 17:return d=i.type,g=i.pendingProps,g=i.elementType===d?g:wo(d,g),Gf(o,i),i.tag=1,yr(d)?(o=!0,Df(i)):o=!1,La(i,c),MP(i,d,g),Sh(i,d,g,c),Wh(null,i,d,!0,o,c);case 19:return wb(o,i,c);case 22:return mb(o,i,c)}throw Error(n(156,i.tag))};function Zb(o,i){return Nt(o,i)}function S3(o,i,c,d){this.tag=o,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ro(o,i,c,d){return new S3(o,i,c,d)}function lm(o){return o=o.prototype,!(!o||!o.isReactComponent)}function z3(o){if(typeof o=="function")return lm(o)?1:0;if(o!=null){if(o=o.$$typeof,o===I)return 11;if(o===W)return 14}return 2}function ni(o,i){var c=o.alternate;return c===null?(c=ro(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&14680064,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}function sd(o,i,c,d,g,b){var T=2;if(d=o,typeof o=="function")lm(o)&&(T=1);else if(typeof o=="string")T=5;else e:switch(o){case R:return Wi(c.children,g,b,i);case M:T=8,g|=8;break;case L:return o=ro(12,c,i,g|2),o.elementType=L,o.lanes=b,o;case J:return o=ro(13,c,i,g),o.elementType=J,o.lanes=b,o;case K:return o=ro(19,c,i,g),o.elementType=K,o.lanes=b,o;case re:return id(c,g,b,i);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case j:T=10;break e;case B:T=9;break e;case I:T=11;break e;case W:T=14;break e;case ne:T=16,d=null;break e}throw Error(n(130,o==null?o:typeof o,""))}return i=ro(T,c,i,g),i.elementType=o,i.type=d,i.lanes=b,i}function Wi(o,i,c,d){return o=ro(7,o,d,i),o.lanes=c,o}function id(o,i,c,d){return o=ro(22,o,d,i),o.elementType=re,o.lanes=c,o.stateNode={isHidden:!1},o}function cm(o,i,c){return o=ro(6,o,null,i),o.lanes=c,o}function um(o,i,c){return i=ro(4,o.children!==null?o.children:[],o.key,i),i.lanes=c,i.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},i}function O3(o,i,c,d,g){this.tag=i,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xv(0),this.expirationTimes=Xv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xv(0),this.identifierPrefix=d,this.onRecoverableError=g,this.mutableSourceEagerHydrationData=null}function fm(o,i,c,d,g,b,T,V,q){return o=new O3(o,i,c,V,q),i===1?(i=1,b===!0&&(i|=8)):i=0,b=ro(3,null,null,i),o.current=b,b.stateNode=o,b.memoizedState={element:d,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hh(b),o}function C3(o,i,c){var d=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Sm.exports=CS(),Sm.exports}var p1=d1();const $c=Op(p1),J8={disabled:!1},ip=Ze.createContext(null);var DS=function(t){return t.scrollTop},eu="unmounted",Yi="exited",qi="entering",tl="entered",ug="exiting",No=function(e){f1(t,e);function t(r,s){var a;a=e.call(this,r,s)||this;var l=s,u=l&&!l.isMounting?r.enter:r.appear,f;return a.appearStatus=null,r.in?u?(f=Yi,a.appearStatus=qi):f=tl:r.unmountOnExit||r.mountOnEnter?f=eu:f=Yi,a.state={status:f},a.nextCallback=null,a}t.getDerivedStateFromProps=function(s,a){var l=s.in;return l&&a.status===eu?{status:Yi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var a=null;if(s!==this.props){var l=this.state.status;this.props.in?l!==qi&&l!==tl&&(a=qi):(l===qi||l===tl)&&(a=ug)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,a,l,u;return a=l=u=s,s!=null&&typeof s!="number"&&(a=s.exit,l=s.enter,u=s.appear!==void 0?s.appear:l),{exit:a,enter:l,appear:u}},n.updateStatus=function(s,a){if(s===void 0&&(s=!1),a!==null)if(this.cancelNextCallback(),a===qi){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:$c.findDOMNode(this);l&&DS(l)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Yi&&this.setState({status:eu})},n.performEnter=function(s){var a=this,l=this.props.enter,u=this.context?this.context.isMounting:s,f=this.props.nodeRef?[u]:[$c.findDOMNode(this),u],p=f[0],h=f[1],m=this.getTimeouts(),y=u?m.appear:m.enter;if(!s&&!l||J8.disabled){this.safeSetState({status:tl},function(){a.props.onEntered(p)});return}this.props.onEnter(p,h),this.safeSetState({status:qi},function(){a.props.onEntering(p,h),a.onTransitionEnd(y,function(){a.safeSetState({status:tl},function(){a.props.onEntered(p,h)})})})},n.performExit=function(){var s=this,a=this.props.exit,l=this.getTimeouts(),u=this.props.nodeRef?void 0:$c.findDOMNode(this);if(!a||J8.disabled){this.safeSetState({status:Yi},function(){s.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:ug},function(){s.props.onExiting(u),s.onTransitionEnd(l.exit,function(){s.safeSetState({status:Yi},function(){s.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,a){a=this.setNextCallback(a),this.setState(s,a)},n.setNextCallback=function(s){var a=this,l=!0;return this.nextCallback=function(u){l&&(l=!1,a.nextCallback=null,s(u))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(s,a){this.setNextCallback(a);var l=this.props.nodeRef?this.props.nodeRef.current:$c.findDOMNode(this),u=s==null&&!this.props.addEndListener;if(!l||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var f=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],p=f[0],h=f[1];this.props.addEndListener(p,h)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===eu)return null;var a=this.props,l=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=u1(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ze.createElement(ip.Provider,{value:null},typeof l=="function"?l(s,u):Ze.cloneElement(Ze.Children.only(l),u))},t}(Ze.Component);No.contextType=ip;No.propTypes={};function Ua(){}No.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ua,onEntering:Ua,onEntered:Ua,onExit:Ua,onExiting:Ua,onExited:Ua};No.UNMOUNTED=eu;No.EXITED=Yi;No.ENTERING=qi;No.ENTERED=tl;No.EXITING=ug;function TS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xy(e,t){var n=function(a){return t&&P.isValidElement(a)?t(a):a},r=Object.create(null);return e&&P.Children.map(e,function(s){return s}).forEach(function(s){r[s.key]=n(s)}),r}function kS(e,t){e=e||{},t=t||{};function n(h){return h in t?t[h]:e[h]}var r=Object.create(null),s=[];for(var a in e)a in t?s.length&&(r[a]=s,s=[]):s.push(a);var l,u={};for(var f in t){if(r[f])for(l=0;le.scrollTop;function Cl(e,t){const{timeout:n,easing:r,style:s={}}=e;return{duration:s.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:s.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:s.transitionDelay}}function XS(e){return Ge("MuiPaper",e)}Ue("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 NS=e=>{const{square:t,elevation:n,variant:r,classes:s}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ke(a,XS,s)},BS=pe("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}`]]}})(Qe(({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)"}}]}))),Ur=P.forwardRef(function(t,n){var H;const r=$e({props:t,name:"MuiPaper"}),s=Kr(),{className:a,component:l="div",elevation:u=1,square:f=!1,variant:p="elevation",...h}=r,m={...r,component:l,elevation:u,square:f,variant:p},y=NS(m);return v.jsx(BS,{as:l,ownerState:m,className:Oe(y.root,a),ref:n,...h,style:{...p==="elevation"&&{"--Paper-shadow":(s.vars||s).shadows[u],...s.vars&&{"--Paper-overlay":(H=s.vars.overlays)==null?void 0:H[u]},...!s.vars&&s.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Pt("#fff",lg(u))}, ${Pt("#fff",lg(u))})`}},...h.style}})});function Cn(e,t){const{className:n,elementType:r,ownerState:s,externalForwardedProps:a,internalForwardedProps:l,...u}=t,{component:f,slots:p={[e]:void 0},slotProps:h={[e]:void 0},...m}=a,y=p[e]||r,H=K0(h[e],s),{props:{component:A,...w},internalRef:x}=Q0({className:n,...u,externalForwardedProps:e==="root"?m:void 0,externalSlotProps:H}),S=rn(x,H==null?void 0:H.ref,t.ref),z=e==="root"?A||f:A,O=U0(y,{...e==="root"&&!f&&!p[e]&&l,...e!=="root"&&!p[e]&&l,...w,...z&&{as:z},ref:S},s);return[y,O]}class ap{constructor(){Cc(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new ap}static use(){const t=Z0(ap.create).current,[n,r]=P.useState(!1);return t.shouldMount=n,t.setShouldMount=r,P.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=IS(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function VS(){return ap.use()}function IS(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n}function WS(e){const{className:t,classes:n,pulsate:r=!1,rippleX:s,rippleY:a,rippleSize:l,in:u,onExited:f,timeout:p}=e,[h,m]=P.useState(!1),y=Oe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),H={width:l,height:l,top:-(l/2)+a,left:-(l/2)+s},A=Oe(n.child,h&&n.childLeaving,r&&n.childPulsate);return!u&&!h&&m(!0),P.useEffect(()=>{if(!u&&f!=null){const w=setTimeout(f,p);return()=>{clearTimeout(w)}}},[f,u,p]),v.jsx("span",{className:y,style:H,children:v.jsx("span",{className:A})})}const ao=Ue("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),fg=550,JS=80,FS=Vu` +`+b.stack}return{value:o,source:i,stack:g,digest:null}}function Vh(o,i,c){return{value:o,source:null,stack:c??null,digest:i??null}}function Ih(o,i){try{console.error(i.value)}catch(c){setTimeout(function(){throw c})}}var u3=typeof WeakMap=="function"?WeakMap:Map;function lb(o,i,c){c=ys(-1,c),c.tag=3,c.payload={element:null};var d=i.value;return c.callback=function(){$f||($f=!0,nm=d),Ih(o,i)},c}function cb(o,i,c){c=ys(-1,c),c.tag=3;var d=o.type.getDerivedStateFromError;if(typeof d=="function"){var g=i.value;c.payload=function(){return d(g)},c.callback=function(){Ih(o,i)}}var b=o.stateNode;return b!==null&&typeof b.componentDidCatch=="function"&&(c.callback=function(){Ih(o,i),typeof d!="function"&&(_s===null?_s=new Set([this]):_s.add(this));var T=i.stack;this.componentDidCatch(i.value,{componentStack:T!==null?T:""})}),c}function ub(o,i,c){var d=o.pingCache;if(d===null){d=o.pingCache=new u3;var g=new Set;d.set(i,g)}else g=d.get(i),g===void 0&&(g=new Set,d.set(i,g));g.has(c)||(g.add(c),o=H3.bind(null,o,i,c),i.then(o,o))}function fb(o){do{var i;if((i=o.tag===13)&&(i=o.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return o;o=o.return}while(o!==null);return null}function db(o,i,c,d,g){return o.mode&1?(o.flags|=65536,o.lanes=g,o):(o===i?o.flags|=65536:(o.flags|=128,c.flags|=131072,c.flags&=-52805,c.tag===1&&(c.alternate===null?c.tag=17:(i=ys(-1,1),i.tag=2,Qs(c,i,1))),c.lanes|=1),o)}var f3=C.ReactCurrentOwner,Ar=!1;function lr(o,i,c,d){i.child=o===null?BP(i,null,c,d):Xa(i,o.child,c,d)}function pb(o,i,c,d,g){c=c.render;var b=i.ref;return La(i,g),d=Eh(o,i,c,d,b,g),c=Mh(),o!==null&&!Ar?(i.updateQueue=o.updateQueue,i.flags&=-2053,o.lanes&=~g,As(o,i,g)):(fn&&c&&hh(i),i.flags|=1,lr(o,i,d,g),i.child)}function vb(o,i,c,d,g){if(o===null){var b=c.type;return typeof b=="function"&&!cm(b)&&b.defaultProps===void 0&&c.compare===null&&c.defaultProps===void 0?(i.tag=15,i.type=b,hb(o,i,b,d,g)):(o=sd(c.type,null,d,i,i.mode,g),o.ref=i.ref,o.return=i,i.child=o)}if(b=o.child,!(o.lanes&g)){var T=b.memoizedProps;if(c=c.compare,c=c!==null?c:lc,c(T,d)&&o.ref===i.ref)return As(o,i,g)}return i.flags|=1,o=ni(b,d),o.ref=i.ref,o.return=i,i.child=o}function hb(o,i,c,d,g){if(o!==null){var b=o.memoizedProps;if(lc(b,d)&&o.ref===i.ref)if(Ar=!1,i.pendingProps=d=b,(o.lanes&g)!==0)o.flags&131072&&(Ar=!0);else return i.lanes=o.lanes,As(o,i,g)}return Wh(o,i,c,d,g)}function mb(o,i,c){var d=i.pendingProps,g=d.children,b=o!==null?o.memoizedState:null;if(d.mode==="hidden")if(!(i.mode&1))i.memoizedState={baseLanes:0,cachePool:null,transitions:null},nn(Ia,Vr),Vr|=c;else{if(!(c&1073741824))return o=b!==null?b.baseLanes|c:c,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:o,cachePool:null,transitions:null},i.updateQueue=null,nn(Ia,Vr),Vr|=o,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=b!==null?b.baseLanes:c,nn(Ia,Vr),Vr|=d}else b!==null?(d=b.baseLanes|c,i.memoizedState=null):d=c,nn(Ia,Vr),Vr|=d;return lr(o,i,g,c),i.child}function gb(o,i){var c=i.ref;(o===null&&c!==null||o!==null&&o.ref!==c)&&(i.flags|=512,i.flags|=2097152)}function Wh(o,i,c,d,g){var b=yr(c)?ki:$n.current;return b=Ta(i,b),La(i,g),c=Eh(o,i,c,d,b,g),d=Mh(),o!==null&&!Ar?(i.updateQueue=o.updateQueue,i.flags&=-2053,o.lanes&=~g,As(o,i,g)):(fn&&d&&hh(i),i.flags|=1,lr(o,i,c,g),i.child)}function yb(o,i,c,d,g){if(yr(c)){var b=!0;Df(i)}else b=!1;if(La(i,g),i.stateNode===null)Gf(o,i),MP(i,c,d),zh(i,c,d,g),d=!0;else if(o===null){var T=i.stateNode,V=i.memoizedProps;T.props=V;var q=T.context,fe=c.contextType;typeof fe=="object"&&fe!==null?fe=eo(fe):(fe=yr(c)?ki:$n.current,fe=Ta(i,fe));var ze=c.getDerivedStateFromProps,Ce=typeof ze=="function"||typeof T.getSnapshotBeforeUpdate=="function";Ce||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(V!==d||q!==fe)&&LP(i,T,d,fe),Us=!1;var Se=i.memoizedState;T.state=Se,Nf(i,d,T,g),q=i.memoizedState,V!==d||Se!==q||gr.current||Us?(typeof ze=="function"&&(Sh(i,c,ze,d),q=i.memoizedState),(V=Us||EP(i,c,V,d,Se,q,fe))?(Ce||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=d,i.memoizedState=q),T.props=d,T.state=q,T.context=fe,d=V):(typeof T.componentDidMount=="function"&&(i.flags|=4194308),d=!1)}else{T=i.stateNode,DP(o,i),V=i.memoizedProps,fe=i.type===i.elementType?V:wo(i.type,V),T.props=fe,Ce=i.pendingProps,Se=T.context,q=c.contextType,typeof q=="object"&&q!==null?q=eo(q):(q=yr(c)?ki:$n.current,q=Ta(i,q));var Ye=c.getDerivedStateFromProps;(ze=typeof Ye=="function"||typeof T.getSnapshotBeforeUpdate=="function")||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(V!==Ce||Se!==q)&&LP(i,T,d,q),Us=!1,Se=i.memoizedState,T.state=Se,Nf(i,d,T,g);var it=i.memoizedState;V!==Ce||Se!==it||gr.current||Us?(typeof Ye=="function"&&(Sh(i,c,Ye,d),it=i.memoizedState),(fe=Us||EP(i,c,fe,d,Se,it,q)||!1)?(ze||typeof T.UNSAFE_componentWillUpdate!="function"&&typeof T.componentWillUpdate!="function"||(typeof T.componentWillUpdate=="function"&&T.componentWillUpdate(d,it,q),typeof T.UNSAFE_componentWillUpdate=="function"&&T.UNSAFE_componentWillUpdate(d,it,q)),typeof T.componentDidUpdate=="function"&&(i.flags|=4),typeof T.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof T.componentDidUpdate!="function"||V===o.memoizedProps&&Se===o.memoizedState||(i.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||V===o.memoizedProps&&Se===o.memoizedState||(i.flags|=1024),i.memoizedProps=d,i.memoizedState=it),T.props=d,T.state=it,T.context=q,d=fe):(typeof T.componentDidUpdate!="function"||V===o.memoizedProps&&Se===o.memoizedState||(i.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||V===o.memoizedProps&&Se===o.memoizedState||(i.flags|=1024),d=!1)}return Jh(o,i,c,d,b,g)}function Jh(o,i,c,d,g,b){gb(o,i);var T=(i.flags&128)!==0;if(!d&&!T)return g&&xP(i,c,!1),As(o,i,b);d=i.stateNode,f3.current=i;var V=T&&typeof c.getDerivedStateFromError!="function"?null:d.render();return i.flags|=1,o!==null&&T?(i.child=Xa(i,o.child,null,b),i.child=Xa(i,null,V,b)):lr(o,i,V,b),i.memoizedState=d.state,g&&xP(i,c,!0),i.child}function Ab(o){var i=o.stateNode;i.pendingContext?PP(o,i.pendingContext,i.pendingContext!==i.context):i.context&&PP(o,i.context,!1),Oh(o,i.containerInfo)}function Pb(o,i,c,d,g){return Ea(),Ah(g),i.flags|=256,lr(o,i,c,d),i.child}var Fh={dehydrated:null,treeContext:null,retryLane:0};function Yh(o){return{baseLanes:o,cachePool:null,transitions:null}}function bb(o,i,c){var d=i.pendingProps,g=vn.current,b=!1,T=(i.flags&128)!==0,V;if((V=T)||(V=o!==null&&o.memoizedState===null?!1:(g&2)!==0),V?(b=!0,i.flags&=-129):(o===null||o.memoizedState!==null)&&(g|=1),nn(vn,g&1),o===null)return yh(i),o=i.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?(i.mode&1?o.data==="$!"?i.lanes=8:i.lanes=1073741824:i.lanes=1,null):(T=d.children,o=d.fallback,b?(d=i.mode,b=i.child,T={mode:"hidden",children:T},!(d&1)&&b!==null?(b.childLanes=0,b.pendingProps=T):b=id(T,d,0,null),o=Wi(o,d,c,null),b.return=i,o.return=i,b.sibling=o,i.child=b,i.child.memoizedState=Yh(c),i.memoizedState=Fh,o):qh(i,T));if(g=o.memoizedState,g!==null&&(V=g.dehydrated,V!==null))return d3(o,i,T,d,V,g,c);if(b){b=d.fallback,T=i.mode,g=o.child,V=g.sibling;var q={mode:"hidden",children:d.children};return!(T&1)&&i.child!==g?(d=i.child,d.childLanes=0,d.pendingProps=q,i.deletions=null):(d=ni(g,q),d.subtreeFlags=g.subtreeFlags&14680064),V!==null?b=ni(V,b):(b=Wi(b,T,c,null),b.flags|=2),b.return=i,d.return=i,d.sibling=b,i.child=d,d=b,b=i.child,T=o.child.memoizedState,T=T===null?Yh(c):{baseLanes:T.baseLanes|c,cachePool:null,transitions:T.transitions},b.memoizedState=T,b.childLanes=o.childLanes&~c,i.memoizedState=Fh,d}return b=o.child,o=b.sibling,d=ni(b,{mode:"visible",children:d.children}),!(i.mode&1)&&(d.lanes=c),d.return=i,d.sibling=null,o!==null&&(c=i.deletions,c===null?(i.deletions=[o],i.flags|=16):c.push(o)),i.child=d,i.memoizedState=null,d}function qh(o,i){return i=id({mode:"visible",children:i},o.mode,0,null),i.return=o,o.child=i}function Zf(o,i,c,d){return d!==null&&Ah(d),Xa(i,o.child,null,c),o=qh(i,i.pendingProps.children),o.flags|=2,i.memoizedState=null,o}function d3(o,i,c,d,g,b,T){if(c)return i.flags&256?(i.flags&=-257,d=Vh(Error(n(422))),Zf(o,i,T,d)):i.memoizedState!==null?(i.child=o.child,i.flags|=128,null):(b=d.fallback,g=i.mode,d=id({mode:"visible",children:d.children},g,0,null),b=Wi(b,g,T,null),b.flags|=2,d.return=i,b.return=i,d.sibling=b,i.child=d,i.mode&1&&Xa(i,o.child,null,T),i.child.memoizedState=Yh(T),i.memoizedState=Fh,b);if(!(i.mode&1))return Zf(o,i,T,null);if(g.data==="$!"){if(d=g.nextSibling&&g.nextSibling.dataset,d)var V=d.dgst;return d=V,b=Error(n(419)),d=Vh(b,d,void 0),Zf(o,i,T,d)}if(V=(T&o.childLanes)!==0,Ar||V){if(d=Fn,d!==null){switch(T&-T){case 4:g=2;break;case 16:g=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:g=32;break;case 536870912:g=268435456;break;default:g=0}g=g&(d.suspendedLanes|T)?0:g,g!==0&&g!==b.retryLane&&(b.retryLane=g,gs(o,g),So(d,o,g,-1))}return lm(),d=Vh(Error(n(421))),Zf(o,i,T,d)}return g.data==="$?"?(i.flags|=128,i.child=o.child,i=j3.bind(null,o),g._reactRetry=i,null):(o=b.treeContext,Br=Ys(g.nextSibling),Nr=i,fn=!0,xo=null,o!==null&&(_r[$r++]=hs,_r[$r++]=ms,_r[$r++]=Ri,hs=o.id,ms=o.overflow,Ri=i),i=qh(i,d.children),i.flags|=4096,i)}function xb(o,i,c){o.lanes|=i;var d=o.alternate;d!==null&&(d.lanes|=i),wh(o.return,i,c)}function Zh(o,i,c,d,g){var b=o.memoizedState;b===null?o.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:d,tail:c,tailMode:g}:(b.isBackwards=i,b.rendering=null,b.renderingStartTime=0,b.last=d,b.tail=c,b.tailMode=g)}function wb(o,i,c){var d=i.pendingProps,g=d.revealOrder,b=d.tail;if(lr(o,i,d.children,c),d=vn.current,d&2)d=d&1|2,i.flags|=128;else{if(o!==null&&o.flags&128)e:for(o=i.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&xb(o,c,i);else if(o.tag===19)xb(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}d&=1}if(nn(vn,d),!(i.mode&1))i.memoizedState=null;else switch(g){case"forwards":for(c=i.child,g=null;c!==null;)o=c.alternate,o!==null&&If(o)===null&&(g=c),c=c.sibling;c=g,c===null?(g=i.child,i.child=null):(g=c.sibling,c.sibling=null),Zh(i,!1,g,c,b);break;case"backwards":for(c=null,g=i.child,i.child=null;g!==null;){if(o=g.alternate,o!==null&&If(o)===null){i.child=g;break}o=g.sibling,g.sibling=c,c=g,g=o}Zh(i,!0,c,null,b);break;case"together":Zh(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Gf(o,i){!(i.mode&1)&&o!==null&&(o.alternate=null,i.alternate=null,i.flags|=2)}function As(o,i,c){if(o!==null&&(i.dependencies=o.dependencies),Ni|=i.lanes,!(c&i.childLanes))return null;if(o!==null&&i.child!==o.child)throw Error(n(153));if(i.child!==null){for(o=i.child,c=ni(o,o.pendingProps),i.child=c,c.return=i;o.sibling!==null;)o=o.sibling,c=c.sibling=ni(o,o.pendingProps),c.return=i;c.sibling=null}return i.child}function p3(o,i,c){switch(i.tag){case 3:Ab(i),Ea();break;case 5:VP(i);break;case 1:yr(i.type)&&Df(i);break;case 4:Oh(i,i.stateNode.containerInfo);break;case 10:var d=i.type._context,g=i.memoizedProps.value;nn(Mf,d._currentValue),d._currentValue=g;break;case 13:if(d=i.memoizedState,d!==null)return d.dehydrated!==null?(nn(vn,vn.current&1),i.flags|=128,null):c&i.child.childLanes?bb(o,i,c):(nn(vn,vn.current&1),o=As(o,i,c),o!==null?o.sibling:null);nn(vn,vn.current&1);break;case 19:if(d=(c&i.childLanes)!==0,o.flags&128){if(d)return wb(o,i,c);i.flags|=128}if(g=i.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),nn(vn,vn.current),d)break;return null;case 22:case 23:return i.lanes=0,mb(o,i,c)}return As(o,i,c)}var Hb,Gh,jb,Sb;Hb=function(o,i){for(var c=i.child;c!==null;){if(c.tag===5||c.tag===6)o.appendChild(c.stateNode);else if(c.tag!==4&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===i)break;for(;c.sibling===null;){if(c.return===null||c.return===i)return;c=c.return}c.sibling.return=c.return,c=c.sibling}},Gh=function(){},jb=function(o,i,c,d){var g=o.memoizedProps;if(g!==d){o=i.stateNode,Li(Wo.current);var b=null;switch(c){case"input":g=xe(o,g),d=xe(o,d),b=[];break;case"select":g=E({},g,{value:void 0}),d=E({},d,{value:void 0}),b=[];break;case"textarea":g=ce(o,g),d=ce(o,d),b=[];break;default:typeof g.onClick!="function"&&typeof d.onClick=="function"&&(o.onclick=zf)}Y(c,d);var T;c=null;for(fe in g)if(!d.hasOwnProperty(fe)&&g.hasOwnProperty(fe)&&g[fe]!=null)if(fe==="style"){var V=g[fe];for(T in V)V.hasOwnProperty(T)&&(c||(c={}),c[T]="")}else fe!=="dangerouslySetInnerHTML"&&fe!=="children"&&fe!=="suppressContentEditableWarning"&&fe!=="suppressHydrationWarning"&&fe!=="autoFocus"&&(s.hasOwnProperty(fe)?b||(b=[]):(b=b||[]).push(fe,null));for(fe in d){var q=d[fe];if(V=g!=null?g[fe]:void 0,d.hasOwnProperty(fe)&&q!==V&&(q!=null||V!=null))if(fe==="style")if(V){for(T in V)!V.hasOwnProperty(T)||q&&q.hasOwnProperty(T)||(c||(c={}),c[T]="");for(T in q)q.hasOwnProperty(T)&&V[T]!==q[T]&&(c||(c={}),c[T]=q[T])}else c||(b||(b=[]),b.push(fe,c)),c=q;else fe==="dangerouslySetInnerHTML"?(q=q?q.__html:void 0,V=V?V.__html:void 0,q!=null&&V!==q&&(b=b||[]).push(fe,q)):fe==="children"?typeof q!="string"&&typeof q!="number"||(b=b||[]).push(fe,""+q):fe!=="suppressContentEditableWarning"&&fe!=="suppressHydrationWarning"&&(s.hasOwnProperty(fe)?(q!=null&&fe==="onScroll"&&sn("scroll",o),b||V===q||(b=[])):(b=b||[]).push(fe,q))}c&&(b=b||[]).push("style",c);var fe=b;(i.updateQueue=fe)&&(i.flags|=4)}},Sb=function(o,i,c,d){c!==d&&(i.flags|=4)};function wc(o,i){if(!fn)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 d=null;c!==null;)c.alternate!==null&&(d=c),c=c.sibling;d===null?i||o.tail===null?o.tail=null:o.tail.sibling=null:d.sibling=null}}function tr(o){var i=o.alternate!==null&&o.alternate.child===o.child,c=0,d=0;if(i)for(var g=o.child;g!==null;)c|=g.lanes|g.childLanes,d|=g.subtreeFlags&14680064,d|=g.flags&14680064,g.return=o,g=g.sibling;else for(g=o.child;g!==null;)c|=g.lanes|g.childLanes,d|=g.subtreeFlags,d|=g.flags,g.return=o,g=g.sibling;return o.subtreeFlags|=d,o.childLanes=c,i}function v3(o,i,c){var d=i.pendingProps;switch(mh(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tr(i),null;case 1:return yr(i.type)&&Cf(),tr(i),null;case 3:return d=i.stateNode,Na(),an(gr),an($n),Th(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(o===null||o.child===null)&&(Ef(i)?i.flags|=4:o===null||o.memoizedState.isDehydrated&&!(i.flags&256)||(i.flags|=1024,xo!==null&&(sm(xo),xo=null))),Gh(o,i),tr(i),null;case 5:Ch(i);var g=Li(yc.current);if(c=i.type,o!==null&&i.stateNode!=null)jb(o,i,c,d,g),o.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!d){if(i.stateNode===null)throw Error(n(166));return tr(i),null}if(o=Li(Wo.current),Ef(i)){d=i.stateNode,c=i.type;var b=i.memoizedProps;switch(d[Io]=i,d[pc]=b,o=(i.mode&1)!==0,c){case"dialog":sn("cancel",d),sn("close",d);break;case"iframe":case"object":case"embed":sn("load",d);break;case"video":case"audio":for(g=0;g<\/script>",o=o.removeChild(o.firstChild)):typeof d.is=="string"?o=T.createElement(c,{is:d.is}):(o=T.createElement(c),c==="select"&&(T=o,d.multiple?T.multiple=!0:d.size&&(T.size=d.size))):o=T.createElementNS(o,c),o[Io]=i,o[pc]=d,Hb(o,i,!1,!1),i.stateNode=o;e:{switch(T=Pe(c,d),c){case"dialog":sn("cancel",o),sn("close",o),g=d;break;case"iframe":case"object":case"embed":sn("load",o),g=d;break;case"video":case"audio":for(g=0;gWa&&(i.flags|=128,d=!0,wc(b,!1),i.lanes=4194304)}else{if(!d)if(o=If(T),o!==null){if(i.flags|=128,d=!0,c=o.updateQueue,c!==null&&(i.updateQueue=c,i.flags|=4),wc(b,!0),b.tail===null&&b.tailMode==="hidden"&&!T.alternate&&!fn)return tr(i),null}else 2*tn()-b.renderingStartTime>Wa&&c!==1073741824&&(i.flags|=128,d=!0,wc(b,!1),i.lanes=4194304);b.isBackwards?(T.sibling=i.child,i.child=T):(c=b.last,c!==null?c.sibling=T:i.child=T,b.last=T)}return b.tail!==null?(i=b.tail,b.rendering=i,b.tail=i.sibling,b.renderingStartTime=tn(),i.sibling=null,c=vn.current,nn(vn,d?c&1|2:c&1),i):(tr(i),null);case 22:case 23:return am(),d=i.memoizedState!==null,o!==null&&o.memoizedState!==null!==d&&(i.flags|=8192),d&&i.mode&1?Vr&1073741824&&(tr(i),i.subtreeFlags&6&&(i.flags|=8192)):tr(i),null;case 24:return null;case 25:return null}throw Error(n(156,i.tag))}function h3(o,i){switch(mh(i),i.tag){case 1:return yr(i.type)&&Cf(),o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 3:return Na(),an(gr),an($n),Th(),o=i.flags,o&65536&&!(o&128)?(i.flags=o&-65537|128,i):null;case 5:return Ch(i),null;case 13:if(an(vn),o=i.memoizedState,o!==null&&o.dehydrated!==null){if(i.alternate===null)throw Error(n(340));Ea()}return o=i.flags,o&65536?(i.flags=o&-65537|128,i):null;case 19:return an(vn),null;case 4:return Na(),null;case 10:return xh(i.type._context),null;case 22:case 23:return am(),null;case 24:return null;default:return null}}var Uf=!1,nr=!1,m3=typeof WeakSet=="function"?WeakSet:Set,et=null;function Va(o,i){var c=o.ref;if(c!==null)if(typeof c=="function")try{c(null)}catch(d){bn(o,i,d)}else c.current=null}function Uh(o,i,c){try{c()}catch(d){bn(o,i,d)}}var zb=!1;function g3(o,i){if(ah=hf,o=oP(),$v(o)){if("selectionStart"in o)var c={start:o.selectionStart,end:o.selectionEnd};else e:{c=(c=o.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&d.rangeCount!==0){c=d.anchorNode;var g=d.anchorOffset,b=d.focusNode;d=d.focusOffset;try{c.nodeType,b.nodeType}catch{c=null;break e}var T=0,V=-1,q=-1,fe=0,ze=0,Ce=o,Se=null;t:for(;;){for(var Ye;Ce!==c||g!==0&&Ce.nodeType!==3||(V=T+g),Ce!==b||d!==0&&Ce.nodeType!==3||(q=T+d),Ce.nodeType===3&&(T+=Ce.nodeValue.length),(Ye=Ce.firstChild)!==null;)Se=Ce,Ce=Ye;for(;;){if(Ce===o)break t;if(Se===c&&++fe===g&&(V=T),Se===b&&++ze===d&&(q=T),(Ye=Ce.nextSibling)!==null)break;Ce=Se,Se=Ce.parentNode}Ce=Ye}c=V===-1||q===-1?null:{start:V,end:q}}else c=null}c=c||{start:0,end:0}}else c=null;for(lh={focusedElem:o,selectionRange:c},hf=!1,et=i;et!==null;)if(i=et,o=i.child,(i.subtreeFlags&1028)!==0&&o!==null)o.return=i,et=o;else for(;et!==null;){i=et;try{var it=i.alternate;if(i.flags&1024)switch(i.tag){case 0:case 11:case 15:break;case 1:if(it!==null){var ut=it.memoizedProps,On=it.memoizedState,ie=i.stateNode,K=ie.getSnapshotBeforeUpdate(i.elementType===i.type?ut:wo(i.type,ut),On);ie.__reactInternalSnapshotBeforeUpdate=K}break;case 3:var ae=i.stateNode.containerInfo;ae.nodeType===1?ae.textContent="":ae.nodeType===9&&ae.documentElement&&ae.removeChild(ae.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Me){bn(i,i.return,Me)}if(o=i.sibling,o!==null){o.return=i.return,et=o;break}et=i.return}return it=zb,zb=!1,it}function Hc(o,i,c){var d=i.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var g=d=d.next;do{if((g.tag&o)===o){var b=g.destroy;g.destroy=void 0,b!==void 0&&Uh(i,c,b)}g=g.next}while(g!==d)}}function Qf(o,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var c=i=i.next;do{if((c.tag&o)===o){var d=c.create;c.destroy=d()}c=c.next}while(c!==i)}}function Qh(o){var i=o.ref;if(i!==null){var c=o.stateNode;switch(o.tag){case 5:o=c;break;default:o=c}typeof i=="function"?i(o):i.current=o}}function Ob(o){var i=o.alternate;i!==null&&(o.alternate=null,Ob(i)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(i=o.stateNode,i!==null&&(delete i[Io],delete i[pc],delete i[dh],delete i[$5],delete i[e3])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function Cb(o){return o.tag===5||o.tag===3||o.tag===4}function Db(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Cb(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.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 Kh(o,i,c){var d=o.tag;if(d===5||d===6)o=o.stateNode,i?c.nodeType===8?c.parentNode.insertBefore(o,i):c.insertBefore(o,i):(c.nodeType===8?(i=c.parentNode,i.insertBefore(o,c)):(i=c,i.appendChild(o)),c=c._reactRootContainer,c!=null||i.onclick!==null||(i.onclick=zf));else if(d!==4&&(o=o.child,o!==null))for(Kh(o,i,c),o=o.sibling;o!==null;)Kh(o,i,c),o=o.sibling}function _h(o,i,c){var d=o.tag;if(d===5||d===6)o=o.stateNode,i?c.insertBefore(o,i):c.appendChild(o);else if(d!==4&&(o=o.child,o!==null))for(_h(o,i,c),o=o.sibling;o!==null;)_h(o,i,c),o=o.sibling}var Un=null,Ho=!1;function Ks(o,i,c){for(c=c.child;c!==null;)Tb(o,i,c),c=c.sibling}function Tb(o,i,c){if(Xn&&typeof Xn.onCommitFiberUnmount=="function")try{Xn.onCommitFiberUnmount(ar,c)}catch{}switch(c.tag){case 5:nr||Va(c,i);case 6:var d=Un,g=Ho;Un=null,Ks(o,i,c),Un=d,Ho=g,Un!==null&&(Ho?(o=Un,c=c.stateNode,o.nodeType===8?o.parentNode.removeChild(c):o.removeChild(c)):Un.removeChild(c.stateNode));break;case 18:Un!==null&&(Ho?(o=Un,c=c.stateNode,o.nodeType===8?fh(o.parentNode,c):o.nodeType===1&&fh(o,c),nc(o)):fh(Un,c.stateNode));break;case 4:d=Un,g=Ho,Un=c.stateNode.containerInfo,Ho=!0,Ks(o,i,c),Un=d,Ho=g;break;case 0:case 11:case 14:case 15:if(!nr&&(d=c.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){g=d=d.next;do{var b=g,T=b.destroy;b=b.tag,T!==void 0&&(b&2||b&4)&&Uh(c,i,T),g=g.next}while(g!==d)}Ks(o,i,c);break;case 1:if(!nr&&(Va(c,i),d=c.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=c.memoizedProps,d.state=c.memoizedState,d.componentWillUnmount()}catch(V){bn(c,i,V)}Ks(o,i,c);break;case 21:Ks(o,i,c);break;case 22:c.mode&1?(nr=(d=nr)||c.memoizedState!==null,Ks(o,i,c),nr=d):Ks(o,i,c);break;default:Ks(o,i,c)}}function kb(o){var i=o.updateQueue;if(i!==null){o.updateQueue=null;var c=o.stateNode;c===null&&(c=o.stateNode=new m3),i.forEach(function(d){var g=S3.bind(null,o,d);c.has(d)||(c.add(d),d.then(g,g))})}}function jo(o,i){var c=i.deletions;if(c!==null)for(var d=0;dg&&(g=T),d&=~b}if(d=g,d=tn()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*A3(d/1960))-d,10o?16:o,$s===null)var d=!1;else{if(o=$s,$s=null,td=0,Vt&6)throw Error(n(331));var g=Vt;for(Vt|=4,et=o.current;et!==null;){var b=et,T=b.child;if(et.flags&16){var V=b.deletions;if(V!==null){for(var q=0;qtn()-tm?Vi(o,0):em|=c),br(o,i)}function Yb(o,i){i===0&&(o.mode&1?(i=ff,ff<<=1,!(ff&130023424)&&(ff=4194304)):i=1);var c=cr();o=gs(o,i),o!==null&&(Kl(o,i,c),br(o,c))}function j3(o){var i=o.memoizedState,c=0;i!==null&&(c=i.retryLane),Yb(o,c)}function S3(o,i){var c=0;switch(o.tag){case 13:var d=o.stateNode,g=o.memoizedState;g!==null&&(c=g.retryLane);break;case 19:d=o.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(i),Yb(o,c)}var qb;qb=function(o,i,c){if(o!==null)if(o.memoizedProps!==i.pendingProps||gr.current)Ar=!0;else{if(!(o.lanes&c)&&!(i.flags&128))return Ar=!1,p3(o,i,c);Ar=!!(o.flags&131072)}else Ar=!1,fn&&i.flags&1048576&&HP(i,Rf,i.index);switch(i.lanes=0,i.tag){case 2:var d=i.type;Gf(o,i),o=i.pendingProps;var g=Ta(i,$n.current);La(i,c),g=Eh(null,i,d,o,g,c);var b=Mh();return i.flags|=1,typeof g=="object"&&g!==null&&typeof g.render=="function"&&g.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,yr(d)?(b=!0,Df(i)):b=!1,i.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,jh(i),g.updater=Bf,i.stateNode=g,g._reactInternals=i,zh(i,d,o,c),i=Jh(null,i,d,!0,b,c)):(i.tag=0,fn&&b&&hh(i),lr(null,i,g,c),i=i.child),i;case 16:d=i.elementType;e:{switch(Gf(o,i),o=i.pendingProps,g=d._init,d=g(d._payload),i.type=d,g=i.tag=O3(d),o=wo(d,o),g){case 0:i=Wh(null,i,d,o,c);break e;case 1:i=yb(null,i,d,o,c);break e;case 11:i=pb(null,i,d,o,c);break e;case 14:i=vb(null,i,d,wo(d.type,o),c);break e}throw Error(n(306,d,""))}return i;case 0:return d=i.type,g=i.pendingProps,g=i.elementType===d?g:wo(d,g),Wh(o,i,d,g,c);case 1:return d=i.type,g=i.pendingProps,g=i.elementType===d?g:wo(d,g),yb(o,i,d,g,c);case 3:e:{if(Ab(i),o===null)throw Error(n(387));d=i.pendingProps,b=i.memoizedState,g=b.element,DP(o,i),Nf(i,d,null,c);var T=i.memoizedState;if(d=T.element,b.isDehydrated)if(b={element:d,isDehydrated:!1,cache:T.cache,pendingSuspenseBoundaries:T.pendingSuspenseBoundaries,transitions:T.transitions},i.updateQueue.baseState=b,i.memoizedState=b,i.flags&256){g=Ba(Error(n(423)),i),i=Pb(o,i,d,c,g);break e}else if(d!==g){g=Ba(Error(n(424)),i),i=Pb(o,i,d,c,g);break e}else for(Br=Ys(i.stateNode.containerInfo.firstChild),Nr=i,fn=!0,xo=null,c=BP(i,null,d,c),i.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(Ea(),d===g){i=As(o,i,c);break e}lr(o,i,d,c)}i=i.child}return i;case 5:return VP(i),o===null&&yh(i),d=i.type,g=i.pendingProps,b=o!==null?o.memoizedProps:null,T=g.children,ch(d,g)?T=null:b!==null&&ch(d,b)&&(i.flags|=32),gb(o,i),lr(o,i,T,c),i.child;case 6:return o===null&&yh(i),null;case 13:return bb(o,i,c);case 4:return Oh(i,i.stateNode.containerInfo),d=i.pendingProps,o===null?i.child=Xa(i,null,d,c):lr(o,i,d,c),i.child;case 11:return d=i.type,g=i.pendingProps,g=i.elementType===d?g:wo(d,g),pb(o,i,d,g,c);case 7:return lr(o,i,i.pendingProps,c),i.child;case 8:return lr(o,i,i.pendingProps.children,c),i.child;case 12:return lr(o,i,i.pendingProps.children,c),i.child;case 10:e:{if(d=i.type._context,g=i.pendingProps,b=i.memoizedProps,T=g.value,nn(Mf,d._currentValue),d._currentValue=T,b!==null)if(bo(b.value,T)){if(b.children===g.children&&!gr.current){i=As(o,i,c);break e}}else for(b=i.child,b!==null&&(b.return=i);b!==null;){var V=b.dependencies;if(V!==null){T=b.child;for(var q=V.firstContext;q!==null;){if(q.context===d){if(b.tag===1){q=ys(-1,c&-c),q.tag=2;var fe=b.updateQueue;if(fe!==null){fe=fe.shared;var ze=fe.pending;ze===null?q.next=q:(q.next=ze.next,ze.next=q),fe.pending=q}}b.lanes|=c,q=b.alternate,q!==null&&(q.lanes|=c),wh(b.return,c,i),V.lanes|=c;break}q=q.next}}else if(b.tag===10)T=b.type===i.type?null:b.child;else if(b.tag===18){if(T=b.return,T===null)throw Error(n(341));T.lanes|=c,V=T.alternate,V!==null&&(V.lanes|=c),wh(T,c,i),T=b.sibling}else T=b.child;if(T!==null)T.return=b;else for(T=b;T!==null;){if(T===i){T=null;break}if(b=T.sibling,b!==null){b.return=T.return,T=b;break}T=T.return}b=T}lr(o,i,g.children,c),i=i.child}return i;case 9:return g=i.type,d=i.pendingProps.children,La(i,c),g=eo(g),d=d(g),i.flags|=1,lr(o,i,d,c),i.child;case 14:return d=i.type,g=wo(d,i.pendingProps),g=wo(d.type,g),vb(o,i,d,g,c);case 15:return hb(o,i,i.type,i.pendingProps,c);case 17:return d=i.type,g=i.pendingProps,g=i.elementType===d?g:wo(d,g),Gf(o,i),i.tag=1,yr(d)?(o=!0,Df(i)):o=!1,La(i,c),MP(i,d,g),zh(i,d,g,c),Jh(null,i,d,!0,o,c);case 19:return wb(o,i,c);case 22:return mb(o,i,c)}throw Error(n(156,i.tag))};function Zb(o,i){return Nt(o,i)}function z3(o,i,c,d){this.tag=o,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ro(o,i,c,d){return new z3(o,i,c,d)}function cm(o){return o=o.prototype,!(!o||!o.isReactComponent)}function O3(o){if(typeof o=="function")return cm(o)?1:0;if(o!=null){if(o=o.$$typeof,o===I)return 11;if(o===W)return 14}return 2}function ni(o,i){var c=o.alternate;return c===null?(c=ro(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&14680064,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}function sd(o,i,c,d,g,b){var T=2;if(d=o,typeof o=="function")cm(o)&&(T=1);else if(typeof o=="string")T=5;else e:switch(o){case R:return Wi(c.children,g,b,i);case M:T=8,g|=8;break;case L:return o=ro(12,c,i,g|2),o.elementType=L,o.lanes=b,o;case F:return o=ro(13,c,i,g),o.elementType=F,o.lanes=b,o;case $:return o=ro(19,c,i,g),o.elementType=$,o.lanes=b,o;case _:return id(c,g,b,i);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case j:T=10;break e;case B:T=9;break e;case I:T=11;break e;case W:T=14;break e;case ne:T=16,d=null;break e}throw Error(n(130,o==null?o:typeof o,""))}return i=ro(T,c,i,g),i.elementType=o,i.type=d,i.lanes=b,i}function Wi(o,i,c,d){return o=ro(7,o,d,i),o.lanes=c,o}function id(o,i,c,d){return o=ro(22,o,d,i),o.elementType=_,o.lanes=c,o.stateNode={isHidden:!1},o}function um(o,i,c){return o=ro(6,o,null,i),o.lanes=c,o}function fm(o,i,c){return i=ro(4,o.children!==null?o.children:[],o.key,i),i.lanes=c,i.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},i}function C3(o,i,c,d,g){this.tag=i,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Nv(0),this.expirationTimes=Nv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nv(0),this.identifierPrefix=d,this.onRecoverableError=g,this.mutableSourceEagerHydrationData=null}function dm(o,i,c,d,g,b,T,V,q){return o=new C3(o,i,c,V,q),i===1?(i=1,b===!0&&(i|=8)):i=0,b=ro(3,null,null,i),o.current=b,b.stateNode=o,b.memoizedState={element:d,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null},jh(b),o}function D3(o,i,c){var d=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),zm.exports=DS(),zm.exports}var p1=d1();const $c=Op(p1),J8={disabled:!1},ip=Ze.createContext(null);var TS=function(t){return t.scrollTop},eu="unmounted",Yi="exited",qi="entering",tl="entered",fg="exiting",No=function(e){f1(t,e);function t(r,s){var a;a=e.call(this,r,s)||this;var l=s,u=l&&!l.isMounting?r.enter:r.appear,f;return a.appearStatus=null,r.in?u?(f=Yi,a.appearStatus=qi):f=tl:r.unmountOnExit||r.mountOnEnter?f=eu:f=Yi,a.state={status:f},a.nextCallback=null,a}t.getDerivedStateFromProps=function(s,a){var l=s.in;return l&&a.status===eu?{status:Yi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var a=null;if(s!==this.props){var l=this.state.status;this.props.in?l!==qi&&l!==tl&&(a=qi):(l===qi||l===tl)&&(a=fg)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,a,l,u;return a=l=u=s,s!=null&&typeof s!="number"&&(a=s.exit,l=s.enter,u=s.appear!==void 0?s.appear:l),{exit:a,enter:l,appear:u}},n.updateStatus=function(s,a){if(s===void 0&&(s=!1),a!==null)if(this.cancelNextCallback(),a===qi){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:$c.findDOMNode(this);l&&TS(l)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Yi&&this.setState({status:eu})},n.performEnter=function(s){var a=this,l=this.props.enter,u=this.context?this.context.isMounting:s,f=this.props.nodeRef?[u]:[$c.findDOMNode(this),u],p=f[0],h=f[1],m=this.getTimeouts(),y=u?m.appear:m.enter;if(!s&&!l||J8.disabled){this.safeSetState({status:tl},function(){a.props.onEntered(p)});return}this.props.onEnter(p,h),this.safeSetState({status:qi},function(){a.props.onEntering(p,h),a.onTransitionEnd(y,function(){a.safeSetState({status:tl},function(){a.props.onEntered(p,h)})})})},n.performExit=function(){var s=this,a=this.props.exit,l=this.getTimeouts(),u=this.props.nodeRef?void 0:$c.findDOMNode(this);if(!a||J8.disabled){this.safeSetState({status:Yi},function(){s.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:fg},function(){s.props.onExiting(u),s.onTransitionEnd(l.exit,function(){s.safeSetState({status:Yi},function(){s.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,a){a=this.setNextCallback(a),this.setState(s,a)},n.setNextCallback=function(s){var a=this,l=!0;return this.nextCallback=function(u){l&&(l=!1,a.nextCallback=null,s(u))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(s,a){this.setNextCallback(a);var l=this.props.nodeRef?this.props.nodeRef.current:$c.findDOMNode(this),u=s==null&&!this.props.addEndListener;if(!l||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var f=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],p=f[0],h=f[1];this.props.addEndListener(p,h)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===eu)return null;var a=this.props,l=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=u1(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ze.createElement(ip.Provider,{value:null},typeof l=="function"?l(s,u):Ze.cloneElement(Ze.Children.only(l),u))},t}(Ze.Component);No.contextType=ip;No.propTypes={};function Ua(){}No.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ua,onEntering:Ua,onEntered:Ua,onExit:Ua,onExiting:Ua,onExited:Ua};No.UNMOUNTED=eu;No.EXITED=Yi;No.ENTERING=qi;No.ENTERED=tl;No.EXITING=fg;function kS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wy(e,t){var n=function(a){return t&&P.isValidElement(a)?t(a):a},r=Object.create(null);return e&&P.Children.map(e,function(s){return s}).forEach(function(s){r[s.key]=n(s)}),r}function RS(e,t){e=e||{},t=t||{};function n(h){return h in t?t[h]:e[h]}var r=Object.create(null),s=[];for(var a in e)a in t?s.length&&(r[a]=s,s=[]):s.push(a);var l,u={};for(var f in t){if(r[f])for(l=0;le.scrollTop;function Cl(e,t){const{timeout:n,easing:r,style:s={}}=e;return{duration:s.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:s.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:s.transitionDelay}}function NS(e){return Ge("MuiPaper",e)}Ue("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 BS=e=>{const{square:t,elevation:n,variant:r,classes:s}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ke(a,NS,s)},VS=pe("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}`]]}})(Qe(({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)"}}]}))),Ur=P.forwardRef(function(t,n){var H;const r=$e({props:t,name:"MuiPaper"}),s=Kr(),{className:a,component:l="div",elevation:u=1,square:f=!1,variant:p="elevation",...h}=r,m={...r,component:l,elevation:u,square:f,variant:p},y=BS(m);return v.jsx(VS,{as:l,ownerState:m,className:Oe(y.root,a),ref:n,...h,style:{...p==="elevation"&&{"--Paper-shadow":(s.vars||s).shadows[u],...s.vars&&{"--Paper-overlay":(H=s.vars.overlays)==null?void 0:H[u]},...!s.vars&&s.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Pt("#fff",cg(u))}, ${Pt("#fff",cg(u))})`}},...h.style}})});function Cn(e,t){const{className:n,elementType:r,ownerState:s,externalForwardedProps:a,internalForwardedProps:l,...u}=t,{component:f,slots:p={[e]:void 0},slotProps:h={[e]:void 0},...m}=a,y=p[e]||r,H=K0(h[e],s),{props:{component:A,...w},internalRef:x}=Q0({className:n,...u,externalForwardedProps:e==="root"?m:void 0,externalSlotProps:H}),S=rn(x,H==null?void 0:H.ref,t.ref),z=e==="root"?A||f:A,O=U0(y,{...e==="root"&&!f&&!p[e]&&l,...e!=="root"&&!p[e]&&l,...w,...z&&{as:z},ref:S},s);return[y,O]}class ap{constructor(){Cc(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new ap}static use(){const t=Z0(ap.create).current,[n,r]=P.useState(!1);return t.shouldMount=n,t.setShouldMount=r,P.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=WS(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function IS(){return ap.use()}function WS(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n}function JS(e){const{className:t,classes:n,pulsate:r=!1,rippleX:s,rippleY:a,rippleSize:l,in:u,onExited:f,timeout:p}=e,[h,m]=P.useState(!1),y=Oe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),H={width:l,height:l,top:-(l/2)+a,left:-(l/2)+s},A=Oe(n.child,h&&n.childLeaving,r&&n.childPulsate);return!u&&!h&&m(!0),P.useEffect(()=>{if(!u&&f!=null){const w=setTimeout(f,p);return()=>{clearTimeout(w)}}},[f,u,p]),v.jsx("span",{className:y,style:H,children:v.jsx("span",{className:A})})}const ao=Ue("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),dg=550,FS=80,YS=Vu` 0% { transform: scale(0); opacity: 0.1; @@ -103,7 +103,7 @@ Error generating stack: `+b.message+` transform: scale(1); opacity: 0.3; } -`,YS=Vu` +`,qS=Vu` 0% { opacity: 1; } @@ -111,7 +111,7 @@ Error generating stack: `+b.message+` 100% { opacity: 0; } -`,qS=Vu` +`,ZS=Vu` 0% { transform: scale(1); } @@ -123,15 +123,15 @@ Error generating stack: `+b.message+` 100% { transform: scale(1); } -`,ZS=pe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),GS=pe(WS,{name:"MuiTouchRipple",slot:"Ripple"})` +`,GS=pe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),US=pe(JS,{name:"MuiTouchRipple",slot:"Ripple"})` opacity: 0; position: absolute; &.${ao.rippleVisible} { opacity: 0.3; transform: scale(1); - animation-name: ${FS}; - animation-duration: ${fg}ms; + animation-name: ${YS}; + animation-duration: ${dg}ms; animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; } @@ -150,8 +150,8 @@ Error generating stack: `+b.message+` & .${ao.childLeaving} { opacity: 0; - animation-name: ${YS}; - animation-duration: ${fg}ms; + animation-name: ${qS}; + animation-duration: ${dg}ms; animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; } @@ -160,14 +160,14 @@ Error generating stack: `+b.message+` /* @noflip */ left: 0px; top: 0; - animation-name: ${qS}; + animation-name: ${ZS}; animation-duration: 2500ms; animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; animation-iteration-count: infinite; animation-delay: 200ms; } -`,US=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiTouchRipple"}),{center:s=!1,classes:a={},className:l,...u}=r,[f,p]=P.useState([]),h=P.useRef(0),m=P.useRef(null);P.useEffect(()=>{m.current&&(m.current(),m.current=null)},[f]);const y=P.useRef(!1),H=Gi(),A=P.useRef(null),w=P.useRef(null),x=P.useCallback(C=>{const{pulsate:D,rippleX:k,rippleY:R,rippleSize:M,cb:L}=C;p(j=>[...j,v.jsx(GS,{classes:{ripple:Oe(a.ripple,ao.ripple),rippleVisible:Oe(a.rippleVisible,ao.rippleVisible),ripplePulsate:Oe(a.ripplePulsate,ao.ripplePulsate),child:Oe(a.child,ao.child),childLeaving:Oe(a.childLeaving,ao.childLeaving),childPulsate:Oe(a.childPulsate,ao.childPulsate)},timeout:fg,pulsate:D,rippleX:k,rippleY:R,rippleSize:M},h.current)]),h.current+=1,m.current=L},[a]),S=P.useCallback((C={},D={},k=()=>{})=>{const{pulsate:R=!1,center:M=s||D.pulsate,fakeElement:L=!1}=D;if((C==null?void 0:C.type)==="mousedown"&&y.current){y.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(y.current=!0);const j=L?null:w.current,B=j?j.getBoundingClientRect():{width:0,height:0,left:0,top:0};let I,J,K;if(M||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)I=Math.round(B.width/2),J=Math.round(B.height/2);else{const{clientX:W,clientY:ne}=C.touches&&C.touches.length>0?C.touches[0]:C;I=Math.round(W-B.left),J=Math.round(ne-B.top)}if(M)K=Math.sqrt((2*B.width**2+B.height**2)/3),K%2===0&&(K+=1);else{const W=Math.max(Math.abs((j?j.clientWidth:0)-I),I)*2+2,ne=Math.max(Math.abs((j?j.clientHeight:0)-J),J)*2+2;K=Math.sqrt(W**2+ne**2)}C!=null&&C.touches?A.current===null&&(A.current=()=>{x({pulsate:R,rippleX:I,rippleY:J,rippleSize:K,cb:k})},H.start(JS,()=>{A.current&&(A.current(),A.current=null)})):x({pulsate:R,rippleX:I,rippleY:J,rippleSize:K,cb:k})},[s,x,H]),z=P.useCallback(()=>{S({},{pulsate:!0})},[S]),O=P.useCallback((C,D)=>{if(H.clear(),(C==null?void 0:C.type)==="touchend"&&A.current){A.current(),A.current=null,H.start(0,()=>{O(C,D)});return}A.current=null,p(k=>k.length>0?k.slice(1):k),m.current=D},[H]);return P.useImperativeHandle(n,()=>({pulsate:z,start:S,stop:O}),[z,S,O]),v.jsx(ZS,{className:Oe(ao.root,a.root,l),ref:w,...u,children:v.jsx(wy,{component:null,exit:!0,children:f})})});function QS(e){return Ge("MuiButtonBase",e)}const KS=Ue("MuiButtonBase",["root","disabled","focusVisible"]),_S=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:s}=e,l=Ke({root:["root",t&&"disabled",n&&"focusVisible"]},QS,s);return n&&r&&(l.root+=` ${r}`),l},$S=pe("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${KS.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fa=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiButtonBase"}),{action:s,centerRipple:a=!1,children:l,className:u,component:f="button",disabled:p=!1,disableRipple:h=!1,disableTouchRipple:m=!1,focusRipple:y=!1,focusVisibleClassName:H,LinkComponent:A="a",onBlur:w,onClick:x,onContextMenu:S,onDragLeave:z,onFocus:O,onFocusVisible:C,onKeyDown:D,onKeyUp:k,onMouseDown:R,onMouseLeave:M,onMouseUp:L,onTouchEnd:j,onTouchMove:B,onTouchStart:I,tabIndex:J=0,TouchRippleProps:K,touchRippleRef:W,type:ne,...re}=r,F=P.useRef(null),_=VS(),E=rn(_.ref,W),[G,X]=P.useState(!1);p&&G&&X(!1),P.useImperativeHandle(s,()=>({focusVisible:()=>{X(!0),F.current.focus()}}),[]);const ee=_.shouldMount&&!h&&!p;P.useEffect(()=>{G&&y&&!h&&_.pulsate()},[h,y,G,_]);const te=xs(_,"start",R,m),ue=xs(_,"stop",S,m),de=xs(_,"stop",z,m),xe=xs(_,"stop",L,m),ve=xs(_,"stop",ce=>{G&&ce.preventDefault(),M&&M(ce)},m),be=xs(_,"start",I,m),Xe=xs(_,"stop",j,m),Ie=xs(_,"stop",B,m),He=xs(_,"stop",ce=>{Ol(ce.target)||X(!1),w&&w(ce)},!1),_e=mr(ce=>{F.current||(F.current=ce.currentTarget),Ol(ce.target)&&(X(!0),C&&C(ce)),O&&O(ce)}),we=()=>{const ce=F.current;return f&&f!=="button"&&!(ce.tagName==="A"&&ce.href)},tt=mr(ce=>{y&&!ce.repeat&&G&&ce.key===" "&&_.stop(ce,()=>{_.start(ce)}),ce.target===ce.currentTarget&&we()&&ce.key===" "&&ce.preventDefault(),D&&D(ce),ce.target===ce.currentTarget&&we()&&ce.key==="Enter"&&!p&&(ce.preventDefault(),x&&x(ce))}),Le=mr(ce=>{y&&ce.key===" "&&G&&!ce.defaultPrevented&&_.stop(ce,()=>{_.pulsate(ce)}),k&&k(ce),x&&ce.target===ce.currentTarget&&we()&&ce.key===" "&&!ce.defaultPrevented&&x(ce)});let dt=f;dt==="button"&&(re.href||re.to)&&(dt=A);const N={};dt==="button"?(N.type=ne===void 0?"button":ne,N.disabled=p):(!re.href&&!re.to&&(N.role="button"),p&&(N["aria-disabled"]=p));const $=rn(n,F),se={...r,centerRipple:a,component:f,disabled:p,disableRipple:h,disableTouchRipple:m,focusRipple:y,tabIndex:J,focusVisible:G},ye=_S(se);return v.jsxs($S,{as:dt,className:Oe(ye.root,u),ownerState:se,onBlur:He,onClick:x,onContextMenu:ue,onFocus:_e,onKeyDown:tt,onKeyUp:Le,onMouseDown:te,onMouseLeave:ve,onMouseUp:xe,onDragLeave:de,onTouchEnd:Xe,onTouchMove:Ie,onTouchStart:be,ref:$,tabIndex:p?-1:J,type:ne,...N,...re,children:[l,ee?v.jsx(US,{ref:E,center:a,...K}):null]})});function xs(e,t,n,r=!1){return mr(s=>(n&&n(s),r||e[t](s),!0))}function ez(e){return typeof e.main=="string"}function tz(e,t=[]){if(!ez(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function gn(e=[]){return([,t])=>t&&tz(t,e)}function nz(e){return Ge("MuiAlert",e)}const F8=Ue("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function rz(e){return Ge("MuiIconButton",e)}const oz=Ue("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),sz=e=>{const{classes:t,disabled:n,color:r,edge:s,size:a}=e,l={root:["root",n&&"disabled",r!=="default"&&`color${me(r)}`,s&&`edge${me(s)}`,`size${me(a)}`]};return Ke(l,rz,t)},iz=pe(fa,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${me(n.color)}`],n.edge&&t[`edge${me(n.edge)}`],t[`size${me(n.size)}`]]}})(Qe(({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.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette.action.active,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}}]})),Qe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt((e.vars||e).palette[t].main,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)}}],[`&.${oz.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),zr=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiIconButton"}),{edge:s=!1,children:a,className:l,color:u="default",disabled:f=!1,disableFocusRipple:p=!1,size:h="medium",...m}=r,y={...r,edge:s,color:u,disabled:f,disableFocusRipple:p,size:h},H=sz(y);return v.jsx(iz,{className:Oe(H.root,l),centerRipple:!0,focusRipple:!p,disabled:f,ref:n,...m,ownerState:y,children:a})}),az=At(v.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),lz=At(v.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),cz=At(v.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),uz=At(v.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),v1=At(v.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"}),"Close"),fz=e=>{const{variant:t,color:n,severity:r,classes:s}=e,a={root:["root",`color${me(n||r)}`,`${t}${me(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ke(a,nz,s)},dz=pe(Ur,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${me(n.color||n.severity)}`]]}})(Qe(({theme:e})=>{const t=e.palette.mode==="light"?ca:ua,n=e.palette.mode==="light"?ua:ca;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(gn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${F8.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(gn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${F8.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(gn(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),pz=pe("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),vz=pe("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Y8=pe("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),q8={success:v.jsx(az,{fontSize:"inherit"}),warning:v.jsx(lz,{fontSize:"inherit"}),error:v.jsx(cz,{fontSize:"inherit"}),info:v.jsx(uz,{fontSize:"inherit"})},jy=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiAlert"}),{action:s,children:a,className:l,closeText:u="Close",color:f,components:p={},componentsProps:h={},icon:m,iconMapping:y=q8,onClose:H,role:A="alert",severity:w="success",slotProps:x={},slots:S={},variant:z="standard",...O}=r,C={...r,color:f,severity:w,variant:z,colorSeverity:f||w},D=fz(C),k={slots:{closeButton:p.CloseButton,closeIcon:p.CloseIcon,...S},slotProps:{...h,...x}},[R,M]=Cn("closeButton",{elementType:zr,externalForwardedProps:k,ownerState:C}),[L,j]=Cn("closeIcon",{elementType:v1,externalForwardedProps:k,ownerState:C});return v.jsxs(dz,{role:A,elevation:0,ownerState:C,className:Oe(D.root,l),ref:n,...O,children:[m!==!1?v.jsx(pz,{ownerState:C,className:D.icon,children:m||y[w]||q8[w]}):null,v.jsx(vz,{ownerState:C,className:D.message,children:a}),s!=null?v.jsx(Y8,{ownerState:C,className:D.action,children:s}):null,s==null&&H?v.jsx(Y8,{ownerState:C,className:D.action,children:v.jsx(R,{size:"small","aria-label":u,title:u,color:"inherit",onClick:H,...M,children:v.jsx(L,{fontSize:"small",...j})})}):null]})});function hz(e){return Ge("MuiTypography",e)}const Z8=Ue("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),mz={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},gz=bS(),yz=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:s,variant:a,classes:l}=e,u={root:["root",a,e.align!=="inherit"&&`align${me(t)}`,n&&"gutterBottom",r&&"noWrap",s&&"paragraph"]};return Ke(u,hz,l)},Az=pe("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${me(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Qe(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(gn()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${me(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),G8={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xt=P.forwardRef(function(t,n){const{color:r,...s}=$e({props:t,name:"MuiTypography"}),a=!mz[r],l=gz({...s,...a&&{color:r}}),{align:u="inherit",className:f,component:p,gutterBottom:h=!1,noWrap:m=!1,paragraph:y=!1,variant:H="body1",variantMapping:A=G8,...w}=l,x={...l,align:u,color:r,className:f,component:p,gutterBottom:h,noWrap:m,paragraph:y,variant:H,variantMapping:A},S=p||(y?"p":A[H]||G8[H])||"span",z=yz(x);return v.jsx(Az,{as:S,ref:n,className:Oe(z.root,f),...w,ownerState:x,style:{...u!=="inherit"&&{"--Typography-textAlign":u},...w.style}})});function Pz(e){return Ge("MuiAppBar",e)}Ue("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const bz=e=>{const{color:t,position:n,classes:r}=e,s={root:["root",`color${me(t)}`,`position${me(n)}`]};return Ke(s,Pz,r)},U8=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,xz=pe(Ur,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${me(n.position)}`],t[`color${me(n.color)}`]]}})(Qe(({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(gn(["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?U8(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?U8(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"})}}]}))),wz=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiAppBar"}),{className:s,color:a="primary",enableColorOnDark:l=!1,position:u="fixed",...f}=r,p={...r,color:a,position:u,enableColorOnDark:l},h=bz(p);return v.jsx(xz,{square:!0,component:"header",ownerState:p,elevation:4,className:Oe(h.root,s,u==="fixed"&&"mui-fixed"),ref:n,...f})});function Q8(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Hz(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:s="any",stringify:a,trim:l=!1}=e;return(u,{inputValue:f,getOptionLabel:p})=>{let h=l?f.trim():f;n&&(h=h.toLowerCase()),t&&(h=Q8(h));const m=h?u.filter(y=>{let H=(a||p)(y);return n&&(H=H.toLowerCase()),t&&(H=Q8(H)),s==="start"?H.startsWith(h):H.includes(h)}):u;return typeof r=="number"?m.slice(0,r):m}}const jz=Hz(),K8=5,Sz=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},zz=[];function Oz(e){const{unstable_isActiveElementInListbox:t=Sz,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:s=!1,autoSelect:a=!1,blurOnSelect:l=!1,clearOnBlur:u=!e.freeSolo,clearOnEscape:f=!1,componentName:p="useAutocomplete",defaultValue:h=e.multiple?zz:null,disableClearable:m=!1,disableCloseOnSelect:y=!1,disabled:H,disabledItemsFocusable:A=!1,disableListWrap:w=!1,filterOptions:x=jz,filterSelectedOptions:S=!1,freeSolo:z=!1,getOptionDisabled:O,getOptionKey:C,getOptionLabel:D=oe=>oe.label??oe,groupBy:k,handleHomeEndKeys:R=!e.freeSolo,id:M,includeInputInList:L=!1,inputValue:j,isOptionEqualToValue:B=(oe,le)=>oe===le,multiple:I=!1,onChange:J,onClose:K,onHighlightChange:W,onInputChange:ne,onOpen:re,open:F,openOnFocus:_=!1,options:E,readOnly:G=!1,selectOnFocus:X=!e.freeSolo,value:ee}=e,te=Rs(M);let ue=D;ue=oe=>{const le=D(oe);return typeof le!="string"?String(le):le};const de=P.useRef(!1),xe=P.useRef(!0),ve=P.useRef(null),be=P.useRef(null),[Xe,Ie]=P.useState(null),[He,_e]=P.useState(-1),we=s?0:-1,tt=P.useRef(we),[Le,dt]=yi({controlled:ee,default:h,name:p}),[N,$]=yi({controlled:j,default:"",name:p,state:"inputValue"}),[se,ye]=P.useState(!1),ce=P.useCallback((oe,le,Ee)=>{if(!(I?Le.length!(S&&(I?Le:[Le]).some(le=>le!==null&&B(oe,le)))),{inputValue:nt&&st?"":N,getOptionLabel:ue}):[],Ht=pj({filteredOptions:ct,value:Le,inputValue:N});P.useEffect(()=>{const oe=Le!==Ht.value;se&&!oe||z&&!oe||ce(null,Le,"reset")},[Le,ce,se,Ht.value,z]);const We=Ae&&ct.length>0&&!G,Dt=mr(oe=>{oe===-1?ve.current.focus():Xe.querySelector(`[data-tag-index="${oe}"]`).focus()});P.useEffect(()=>{I&&He>Le.length-1&&(_e(-1),Dt(-1))},[Le,I,He,Dt]);function Jt(oe,le){if(!be.current||oe<0||oe>=ct.length)return-1;let Ee=oe;for(;;){const ot=be.current.querySelector(`[data-option-index="${Ee}"]`),lt=A?!1:!ot||ot.disabled||ot.getAttribute("aria-disabled")==="true";if(ot&&ot.hasAttribute("tabindex")&&!lt)return Ee;if(le==="next"?Ee=(Ee+1)%ct.length:Ee=(Ee-1+ct.length)%ct.length,Ee===oe)return-1}}const Be=mr(({event:oe,index:le,reason:Ee="auto"})=>{if(tt.current=le,le===-1?ve.current.removeAttribute("aria-activedescendant"):ve.current.setAttribute("aria-activedescendant",`${te}-option-${le}`),W&&W(oe,le===-1?null:ct[le],Ee),!be.current)return;const ot=be.current.querySelector(`[role="option"].${n}-focused`);ot&&(ot.classList.remove(`${n}-focused`),ot.classList.remove(`${n}-focusVisible`));let lt=be.current;if(be.current.getAttribute("role")!=="listbox"&&(lt=be.current.parentElement.querySelector('[role="listbox"]')),!lt)return;if(le===-1){lt.scrollTop=0;return}const It=be.current.querySelector(`[data-option-index="${le}"]`);if(It&&(It.classList.add(`${n}-focused`),Ee==="keyboard"&&It.classList.add(`${n}-focusVisible`),lt.scrollHeight>lt.clientHeight&&Ee!=="mouse"&&Ee!=="touch")){const Nt=It,Ln=lt.clientHeight+lt.scrollTop,Ao=Nt.offsetTop+Nt.offsetHeight;Ao>Ln?lt.scrollTop=Ao-lt.clientHeight:Nt.offsetTop-Nt.offsetHeight*(k?1.3:0){if(!ft)return;const It=Jt((()=>{const Nt=ct.length-1;if(le==="reset")return we;if(le==="start")return 0;if(le==="end")return Nt;const Ln=tt.current+le;return Ln<0?Ln===-1&&L?-1:w&&tt.current!==-1||Math.abs(le)>1?0:Nt:Ln>Nt?Ln===Nt+1&&L?-1:w||Math.abs(le)>1?Nt:0:Ln})(),Ee);if(Be({index:It,reason:ot,event:oe}),r&&le!=="reset")if(It===-1)ve.current.value=N;else{const Nt=ue(ct[It]);ve.current.value=Nt,Nt.toLowerCase().indexOf(N.toLowerCase())===0&&N.length>0&&ve.current.setSelectionRange(N.length,Nt.length)}}),Y=()=>{const oe=(le,Ee)=>{const ot=le?ue(le):"",lt=Ee?ue(Ee):"";return ot===lt};if(tt.current!==-1&&Ht.filteredOptions&&Ht.filteredOptions.length!==ct.length&&Ht.inputValue===N&&(I?Le.length===Ht.value.length&&Ht.value.every((le,Ee)=>ue(Le[Ee])===ue(le)):oe(Ht.value,Le))){const le=Ht.filteredOptions[tt.current];if(le)return ct.findIndex(Ee=>ue(Ee)===ue(le))}return-1},Pe=P.useCallback(()=>{if(!ft)return;const oe=Y();if(oe!==-1){tt.current=oe;return}const le=I?Le[0]:Le;if(ct.length===0||le==null){U({diff:"reset"});return}if(be.current){if(le!=null){const Ee=ct[tt.current];if(I&&Ee&&Le.findIndex(lt=>B(Ee,lt))!==-1)return;const ot=ct.findIndex(lt=>B(lt,le));ot===-1?U({diff:"reset"}):Be({index:ot});return}if(tt.current>=ct.length-1){Be({index:ct.length-1});return}Be({index:tt.current})}},[ct.length,I?!1:Le,S,U,Be,ft,N,I]),De=mr(oe=>{rp(be,oe),oe&&Pe()});P.useEffect(()=>{Pe()},[Pe]);const Te=oe=>{Ae||(je(!0),wt(!0),re&&re(oe))},Ne=(oe,le)=>{Ae&&(je(!1),K&&K(oe,le))},Je=(oe,le,Ee,ot)=>{if(I){if(Le.length===le.length&&Le.every((lt,It)=>lt===le[It]))return}else if(Le===le)return;J&&J(oe,le,Ee,ot),dt(le)},ke=P.useRef(!1),rt=(oe,le,Ee="selectOption",ot="options")=>{let lt=Ee,It=le;if(I){It=Array.isArray(Le)?Le.slice():[];const Nt=It.findIndex(Ln=>B(le,Ln));Nt===-1?It.push(le):ot!=="freeSolo"&&(It.splice(Nt,1),lt="removeOption")}ce(oe,It,lt),Je(oe,It,lt,{option:le}),!y&&(!oe||!oe.ctrlKey&&!oe.metaKey)&&Ne(oe,lt),(l===!0||l==="touch"&&ke.current||l==="mouse"&&!ke.current)&&ve.current.blur()};function vt(oe,le){if(oe===-1)return-1;let Ee=oe;for(;;){if(le==="next"&&Ee===Le.length||le==="previous"&&Ee===-1)return-1;const ot=Xe.querySelector(`[data-tag-index="${Ee}"]`);if(!ot||!ot.hasAttribute("tabindex")||ot.disabled||ot.getAttribute("aria-disabled")==="true")Ee+=le==="next"?1:-1;else return Ee}}const kt=(oe,le)=>{if(!I)return;N===""&&Ne(oe,"toggleInput");let Ee=He;He===-1?N===""&&le==="previous"&&(Ee=Le.length-1):(Ee+=le==="next"?1:-1,Ee<0&&(Ee=0),Ee===Le.length&&(Ee=-1)),Ee=vt(Ee,le),_e(Ee),Dt(Ee)},Qt=oe=>{de.current=!0,$(""),ne&&ne(oe,"","clear"),Je(oe,I?[]:null,"clear")},Fe=oe=>le=>{if(oe.onKeyDown&&oe.onKeyDown(le),!le.defaultMuiPrevented&&(He!==-1&&!["ArrowLeft","ArrowRight"].includes(le.key)&&(_e(-1),Dt(-1)),le.which!==229))switch(le.key){case"Home":ft&&R&&(le.preventDefault(),U({diff:"start",direction:"next",reason:"keyboard",event:le}));break;case"End":ft&&R&&(le.preventDefault(),U({diff:"end",direction:"previous",reason:"keyboard",event:le}));break;case"PageUp":le.preventDefault(),U({diff:-K8,direction:"previous",reason:"keyboard",event:le}),Te(le);break;case"PageDown":le.preventDefault(),U({diff:K8,direction:"next",reason:"keyboard",event:le}),Te(le);break;case"ArrowDown":le.preventDefault(),U({diff:1,direction:"next",reason:"keyboard",event:le}),Te(le);break;case"ArrowUp":le.preventDefault(),U({diff:-1,direction:"previous",reason:"keyboard",event:le}),Te(le);break;case"ArrowLeft":kt(le,"previous");break;case"ArrowRight":kt(le,"next");break;case"Enter":if(tt.current!==-1&&ft){const Ee=ct[tt.current],ot=O?O(Ee):!1;if(le.preventDefault(),ot)return;rt(le,Ee,"selectOption"),r&&ve.current.setSelectionRange(ve.current.value.length,ve.current.value.length)}else z&&N!==""&&nt===!1&&(I&&le.preventDefault(),rt(le,N,"createOption","freeSolo"));break;case"Escape":ft?(le.preventDefault(),le.stopPropagation(),Ne(le,"escape")):f&&(N!==""||I&&Le.length>0)&&(le.preventDefault(),le.stopPropagation(),Qt(le));break;case"Backspace":if(I&&!G&&N===""&&Le.length>0){const Ee=He===-1?Le.length-1:He,ot=Le.slice();ot.splice(Ee,1),Je(le,ot,"removeOption",{option:Le[Ee]})}break;case"Delete":if(I&&!G&&N===""&&Le.length>0&&He!==-1){const Ee=He,ot=Le.slice();ot.splice(Ee,1),Je(le,ot,"removeOption",{option:Le[Ee]})}break}},Rt=oe=>{ye(!0),_&&!de.current&&Te(oe)},un=oe=>{if(t(be)){ve.current.focus();return}ye(!1),xe.current=!0,de.current=!1,a&&tt.current!==-1&&ft?rt(oe,ct[tt.current],"blur"):a&&z&&N!==""?rt(oe,N,"blur","freeSolo"):u&&ce(oe,Le,"blur"),Ne(oe,"blur")},zn=oe=>{const le=oe.target.value;N!==le&&($(le),wt(!1),ne&&ne(oe,le,"input")),le===""?!m&&!I&&Je(oe,null,"clear"):Te(oe)},Gn=oe=>{const le=Number(oe.currentTarget.getAttribute("data-option-index"));tt.current!==le&&Be({event:oe,index:le,reason:"mouse"})},An=oe=>{Be({event:oe,index:Number(oe.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ke.current=!0},Mr=oe=>{const le=Number(oe.currentTarget.getAttribute("data-option-index"));rt(oe,ct[le],"selectOption"),ke.current=!1},mo=oe=>le=>{const Ee=Le.slice();Ee.splice(oe,1),Je(le,Ee,"removeOption",{option:Le[oe]})},go=oe=>{Ae?Ne(oe,"toggleInput"):Te(oe)},ds=oe=>{oe.currentTarget.contains(oe.target)&&oe.target.getAttribute("id")!==te&&oe.preventDefault()},yo=oe=>{oe.currentTarget.contains(oe.target)&&(ve.current.focus(),X&&xe.current&&ve.current.selectionEnd-ve.current.selectionStart===0&&ve.current.select(),xe.current=!1)},Pn=oe=>{!H&&(N===""||!Ae)&&go(oe)};let on=z&&N.length>0;on=on||(I?Le.length>0:Le!==null);let Re=ct;return k&&(Re=ct.reduce((oe,le,Ee)=>{const ot=k(le);return oe.length>0&&oe[oe.length-1].group===ot?oe[oe.length-1].options.push(le):oe.push({key:Ee,index:Ee,group:ot,options:[le]}),oe},[])),H&&se&&un(),{getRootProps:(oe={})=>({"aria-owns":We?`${te}-listbox`:null,...oe,onKeyDown:Fe(oe),onMouseDown:ds,onClick:yo}),getInputLabelProps:()=>({id:`${te}-label`,htmlFor:te}),getInputProps:()=>({id:te,value:N,onBlur:un,onFocus:Rt,onChange:zn,onMouseDown:Pn,"aria-activedescendant":ft?"":null,"aria-autocomplete":r?"both":"list","aria-controls":We?`${te}-listbox`:void 0,"aria-expanded":We,autoComplete:"off",ref:ve,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:H}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Qt}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:go}),getTagProps:({index:oe})=>({key:oe,"data-tag-index":oe,tabIndex:-1,...!G&&{onDelete:mo(oe)}}),getListboxProps:()=>({role:"listbox",id:`${te}-listbox`,"aria-labelledby":`${te}-label`,ref:De,onMouseDown:oe=>{oe.preventDefault()}}),getOptionProps:({index:oe,option:le})=>{const Ee=(I?Le:[Le]).some(lt=>lt!=null&&B(le,lt)),ot=O?O(le):!1;return{key:(C==null?void 0:C(le))??ue(le),tabIndex:-1,role:"option",id:`${te}-option-${oe}`,onMouseMove:Gn,onClick:Mr,onTouchStart:An,"data-option-index":oe,"aria-disabled":ot,"aria-selected":Ee}},id:te,inputValue:N,value:Le,dirty:on,expanded:ft&&Xe,popupOpen:ft,focused:se||He!==-1,anchorEl:Xe,setAnchorEl:Ie,focusedTag:He,groupedOptions:Re}}var Or="top",po="bottom",vo="right",Cr="left",Sy="auto",Yu=[Or,po,vo,Cr],Dl="start",ju="end",Cz="clippingParents",h1="viewport",Rc="popper",Dz="reference",_8=Yu.reduce(function(e,t){return e.concat([t+"-"+Dl,t+"-"+ju])},[]),m1=[].concat(Yu,[Sy]).reduce(function(e,t){return e.concat([t,t+"-"+Dl,t+"-"+ju])},[]),Tz="beforeRead",kz="read",Rz="afterRead",Ez="beforeMain",Mz="main",Lz="afterMain",Xz="beforeWrite",Nz="write",Bz="afterWrite",Vz=[Tz,kz,Rz,Ez,Mz,Lz,Xz,Nz,Bz];function is(e){return e?(e.nodeName||"").toLowerCase():null}function Qr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function da(e){var t=Qr(e).Element;return e instanceof t||e instanceof Element}function uo(e){var t=Qr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function zy(e){if(typeof ShadowRoot>"u")return!1;var t=Qr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Iz(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},s=t.attributes[n]||{},a=t.elements[n];!uo(a)||!is(a)||(Object.assign(a.style,r),Object.keys(s).forEach(function(l){var u=s[l];u===!1?a.removeAttribute(l):a.setAttribute(l,u===!0?"":u)}))})}function Wz(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 s=t.elements[r],a=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=l.reduce(function(f,p){return f[p]="",f},{});!uo(s)||!is(s)||(Object.assign(s.style,u),Object.keys(a).forEach(function(f){s.removeAttribute(f)}))})}}const Jz={name:"applyStyles",enabled:!0,phase:"write",fn:Iz,effect:Wz,requires:["computeStyles"]};function os(e){return e.split("-")[0]}var ia=Math.max,lp=Math.min,Tl=Math.round;function dg(){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 g1(){return!/^((?!chrome|android).)*safari/i.test(dg())}function kl(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),s=1,a=1;t&&uo(e)&&(s=e.offsetWidth>0&&Tl(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Tl(r.height)/e.offsetHeight||1);var l=da(e)?Qr(e):window,u=l.visualViewport,f=!g1()&&n,p=(r.left+(f&&u?u.offsetLeft:0))/s,h=(r.top+(f&&u?u.offsetTop:0))/a,m=r.width/s,y=r.height/a;return{width:m,height:y,top:h,right:p+m,bottom:h+y,left:p,x:p,y:h}}function Oy(e){var t=kl(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 y1(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&zy(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Es(e){return Qr(e).getComputedStyle(e)}function Fz(e){return["table","td","th"].indexOf(is(e))>=0}function wi(e){return((da(e)?e.ownerDocument:e.document)||window.document).documentElement}function qp(e){return is(e)==="html"?e:e.assignedSlot||e.parentNode||(zy(e)?e.host:null)||wi(e)}function $8(e){return!uo(e)||Es(e).position==="fixed"?null:e.offsetParent}function Yz(e){var t=/firefox/i.test(dg()),n=/Trident/i.test(dg());if(n&&uo(e)){var r=Es(e);if(r.position==="fixed")return null}var s=qp(e);for(zy(s)&&(s=s.host);uo(s)&&["html","body"].indexOf(is(s))<0;){var a=Es(s);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 s;s=s.parentNode}return null}function qu(e){for(var t=Qr(e),n=$8(e);n&&Fz(n)&&Es(n).position==="static";)n=$8(n);return n&&(is(n)==="html"||is(n)==="body"&&Es(n).position==="static")?t:n||Yz(e)||t}function Cy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function uu(e,t,n){return ia(e,lp(t,n))}function qz(e,t,n){var r=uu(e,t,n);return r>n?n:r}function A1(){return{top:0,right:0,bottom:0,left:0}}function P1(e){return Object.assign({},A1(),e)}function b1(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Zz=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,P1(typeof t!="number"?t:b1(t,Yu))};function Gz(e){var t,n=e.state,r=e.name,s=e.options,a=n.elements.arrow,l=n.modifiersData.popperOffsets,u=os(n.placement),f=Cy(u),p=[Cr,vo].indexOf(u)>=0,h=p?"height":"width";if(!(!a||!l)){var m=Zz(s.padding,n),y=Oy(a),H=f==="y"?Or:Cr,A=f==="y"?po:vo,w=n.rects.reference[h]+n.rects.reference[f]-l[f]-n.rects.popper[h],x=l[f]-n.rects.reference[f],S=qu(a),z=S?f==="y"?S.clientHeight||0:S.clientWidth||0:0,O=w/2-x/2,C=m[H],D=z-y[h]-m[A],k=z/2-y[h]/2+O,R=uu(C,k,D),M=f;n.modifiersData[r]=(t={},t[M]=R,t.centerOffset=R-k,t)}}function Uz(e){var t=e.state,n=e.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||y1(t.elements.popper,s)&&(t.elements.arrow=s))}const Qz={name:"arrow",enabled:!0,phase:"main",fn:Gz,effect:Uz,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Rl(e){return e.split("-")[1]}var Kz={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _z(e,t){var n=e.x,r=e.y,s=t.devicePixelRatio||1;return{x:Tl(n*s)/s||0,y:Tl(r*s)/s||0}}function ex(e){var t,n=e.popper,r=e.popperRect,s=e.placement,a=e.variation,l=e.offsets,u=e.position,f=e.gpuAcceleration,p=e.adaptive,h=e.roundOffsets,m=e.isFixed,y=l.x,H=y===void 0?0:y,A=l.y,w=A===void 0?0:A,x=typeof h=="function"?h({x:H,y:w}):{x:H,y:w};H=x.x,w=x.y;var S=l.hasOwnProperty("x"),z=l.hasOwnProperty("y"),O=Cr,C=Or,D=window;if(p){var k=qu(n),R="clientHeight",M="clientWidth";if(k===Qr(n)&&(k=wi(n),Es(k).position!=="static"&&u==="absolute"&&(R="scrollHeight",M="scrollWidth")),k=k,s===Or||(s===Cr||s===vo)&&a===ju){C=po;var L=m&&k===D&&D.visualViewport?D.visualViewport.height:k[R];w-=L-r.height,w*=f?1:-1}if(s===Cr||(s===Or||s===po)&&a===ju){O=vo;var j=m&&k===D&&D.visualViewport?D.visualViewport.width:k[M];H-=j-r.width,H*=f?1:-1}}var B=Object.assign({position:u},p&&Kz),I=h===!0?_z({x:H,y:w},Qr(n)):{x:H,y:w};if(H=I.x,w=I.y,f){var J;return Object.assign({},B,(J={},J[C]=z?"0":"",J[O]=S?"0":"",J.transform=(D.devicePixelRatio||1)<=1?"translate("+H+"px, "+w+"px)":"translate3d("+H+"px, "+w+"px, 0)",J))}return Object.assign({},B,(t={},t[C]=z?w+"px":"",t[O]=S?H+"px":"",t.transform="",t))}function $z(e){var t=e.state,n=e.options,r=n.gpuAcceleration,s=r===void 0?!0:r,a=n.adaptive,l=a===void 0?!0:a,u=n.roundOffsets,f=u===void 0?!0:u,p={placement:os(t.placement),variation:Rl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ex(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ex(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const eO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$z,data:{}};var yd={passive:!0};function tO(e){var t=e.state,n=e.instance,r=e.options,s=r.scroll,a=s===void 0?!0:s,l=r.resize,u=l===void 0?!0:l,f=Qr(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&p.forEach(function(h){h.addEventListener("scroll",n.update,yd)}),u&&f.addEventListener("resize",n.update,yd),function(){a&&p.forEach(function(h){h.removeEventListener("scroll",n.update,yd)}),u&&f.removeEventListener("resize",n.update,yd)}}const nO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:tO,data:{}};var rO={left:"right",right:"left",bottom:"top",top:"bottom"};function Bd(e){return e.replace(/left|right|bottom|top/g,function(t){return rO[t]})}var oO={start:"end",end:"start"};function tx(e){return e.replace(/start|end/g,function(t){return oO[t]})}function Dy(e){var t=Qr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ty(e){return kl(wi(e)).left+Dy(e).scrollLeft}function sO(e,t){var n=Qr(e),r=wi(e),s=n.visualViewport,a=r.clientWidth,l=r.clientHeight,u=0,f=0;if(s){a=s.width,l=s.height;var p=g1();(p||!p&&t==="fixed")&&(u=s.offsetLeft,f=s.offsetTop)}return{width:a,height:l,x:u+Ty(e),y:f}}function iO(e){var t,n=wi(e),r=Dy(e),s=(t=e.ownerDocument)==null?void 0:t.body,a=ia(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),l=ia(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),u=-r.scrollLeft+Ty(e),f=-r.scrollTop;return Es(s||n).direction==="rtl"&&(u+=ia(n.clientWidth,s?s.clientWidth:0)-a),{width:a,height:l,x:u,y:f}}function ky(e){var t=Es(e),n=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function x1(e){return["html","body","#document"].indexOf(is(e))>=0?e.ownerDocument.body:uo(e)&&ky(e)?e:x1(qp(e))}function fu(e,t){var n;t===void 0&&(t=[]);var r=x1(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),a=Qr(r),l=s?[a].concat(a.visualViewport||[],ky(r)?r:[]):r,u=t.concat(l);return s?u:u.concat(fu(qp(l)))}function pg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function aO(e,t){var n=kl(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 nx(e,t,n){return t===h1?pg(sO(e,n)):da(t)?aO(t,n):pg(iO(wi(e)))}function lO(e){var t=fu(qp(e)),n=["absolute","fixed"].indexOf(Es(e).position)>=0,r=n&&uo(e)?qu(e):e;return da(r)?t.filter(function(s){return da(s)&&y1(s,r)&&is(s)!=="body"}):[]}function cO(e,t,n,r){var s=t==="clippingParents"?lO(e):[].concat(t),a=[].concat(s,[n]),l=a[0],u=a.reduce(function(f,p){var h=nx(e,p,r);return f.top=ia(h.top,f.top),f.right=lp(h.right,f.right),f.bottom=lp(h.bottom,f.bottom),f.left=ia(h.left,f.left),f},nx(e,l,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function w1(e){var t=e.reference,n=e.element,r=e.placement,s=r?os(r):null,a=r?Rl(r):null,l=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,f;switch(s){case Or:f={x:l,y:t.y-n.height};break;case po:f={x:l,y:t.y+t.height};break;case vo:f={x:t.x+t.width,y:u};break;case Cr:f={x:t.x-n.width,y:u};break;default:f={x:t.x,y:t.y}}var p=s?Cy(s):null;if(p!=null){var h=p==="y"?"height":"width";switch(a){case Dl:f[p]=f[p]-(t[h]/2-n[h]/2);break;case ju:f[p]=f[p]+(t[h]/2-n[h]/2);break}}return f}function Su(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=r===void 0?e.placement:r,a=n.strategy,l=a===void 0?e.strategy:a,u=n.boundary,f=u===void 0?Cz:u,p=n.rootBoundary,h=p===void 0?h1:p,m=n.elementContext,y=m===void 0?Rc:m,H=n.altBoundary,A=H===void 0?!1:H,w=n.padding,x=w===void 0?0:w,S=P1(typeof x!="number"?x:b1(x,Yu)),z=y===Rc?Dz:Rc,O=e.rects.popper,C=e.elements[A?z:y],D=cO(da(C)?C:C.contextElement||wi(e.elements.popper),f,h,l),k=kl(e.elements.reference),R=w1({reference:k,element:O,strategy:"absolute",placement:s}),M=pg(Object.assign({},O,R)),L=y===Rc?M:k,j={top:D.top-L.top+S.top,bottom:L.bottom-D.bottom+S.bottom,left:D.left-L.left+S.left,right:L.right-D.right+S.right},B=e.modifiersData.offset;if(y===Rc&&B){var I=B[s];Object.keys(j).forEach(function(J){var K=[vo,po].indexOf(J)>=0?1:-1,W=[Or,po].indexOf(J)>=0?"y":"x";j[J]+=I[W]*K})}return j}function uO(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=n.boundary,a=n.rootBoundary,l=n.padding,u=n.flipVariations,f=n.allowedAutoPlacements,p=f===void 0?m1:f,h=Rl(r),m=h?u?_8:_8.filter(function(A){return Rl(A)===h}):Yu,y=m.filter(function(A){return p.indexOf(A)>=0});y.length===0&&(y=m);var H=y.reduce(function(A,w){return A[w]=Su(e,{placement:w,boundary:s,rootBoundary:a,padding:l})[os(w)],A},{});return Object.keys(H).sort(function(A,w){return H[A]-H[w]})}function fO(e){if(os(e)===Sy)return[];var t=Bd(e);return[tx(e),t,tx(t)]}function dO(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var s=n.mainAxis,a=s===void 0?!0:s,l=n.altAxis,u=l===void 0?!0:l,f=n.fallbackPlacements,p=n.padding,h=n.boundary,m=n.rootBoundary,y=n.altBoundary,H=n.flipVariations,A=H===void 0?!0:H,w=n.allowedAutoPlacements,x=t.options.placement,S=os(x),z=S===x,O=f||(z||!A?[Bd(x)]:fO(x)),C=[x].concat(O).reduce(function(te,ue){return te.concat(os(ue)===Sy?uO(t,{placement:ue,boundary:h,rootBoundary:m,padding:p,flipVariations:A,allowedAutoPlacements:w}):ue)},[]),D=t.rects.reference,k=t.rects.popper,R=new Map,M=!0,L=C[0],j=0;j=0,W=K?"width":"height",ne=Su(t,{placement:B,boundary:h,rootBoundary:m,altBoundary:y,padding:p}),re=K?J?vo:Cr:J?po:Or;D[W]>k[W]&&(re=Bd(re));var F=Bd(re),_=[];if(a&&_.push(ne[I]<=0),u&&_.push(ne[re]<=0,ne[F]<=0),_.every(function(te){return te})){L=B,M=!1;break}R.set(B,_)}if(M)for(var E=A?3:1,G=function(ue){var de=C.find(function(xe){var ve=R.get(xe);if(ve)return ve.slice(0,ue).every(function(be){return be})});if(de)return L=de,"break"},X=E;X>0;X--){var ee=G(X);if(ee==="break")break}t.placement!==L&&(t.modifiersData[r]._skip=!0,t.placement=L,t.reset=!0)}}const pO={name:"flip",enabled:!0,phase:"main",fn:dO,requiresIfExists:["offset"],data:{_skip:!1}};function rx(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 ox(e){return[Or,vo,po,Cr].some(function(t){return e[t]>=0})}function vO(e){var t=e.state,n=e.name,r=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,l=Su(t,{elementContext:"reference"}),u=Su(t,{altBoundary:!0}),f=rx(l,r),p=rx(u,s,a),h=ox(f),m=ox(p);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:p,isReferenceHidden:h,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":m})}const hO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vO};function mO(e,t,n){var r=os(e),s=[Cr,Or].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=a[0],u=a[1];return l=l||0,u=(u||0)*s,[Cr,vo].indexOf(r)>=0?{x:u,y:l}:{x:l,y:u}}function gO(e){var t=e.state,n=e.options,r=e.name,s=n.offset,a=s===void 0?[0,0]:s,l=m1.reduce(function(h,m){return h[m]=mO(m,t.rects,a),h},{}),u=l[t.placement],f=u.x,p=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=p),t.modifiersData[r]=l}const yO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:gO};function AO(e){var t=e.state,n=e.name;t.modifiersData[n]=w1({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const PO={name:"popperOffsets",enabled:!0,phase:"read",fn:AO,data:{}};function bO(e){return e==="x"?"y":"x"}function xO(e){var t=e.state,n=e.options,r=e.name,s=n.mainAxis,a=s===void 0?!0:s,l=n.altAxis,u=l===void 0?!1:l,f=n.boundary,p=n.rootBoundary,h=n.altBoundary,m=n.padding,y=n.tether,H=y===void 0?!0:y,A=n.tetherOffset,w=A===void 0?0:A,x=Su(t,{boundary:f,rootBoundary:p,padding:m,altBoundary:h}),S=os(t.placement),z=Rl(t.placement),O=!z,C=Cy(S),D=bO(C),k=t.modifiersData.popperOffsets,R=t.rects.reference,M=t.rects.popper,L=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,j=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(k){if(a){var J,K=C==="y"?Or:Cr,W=C==="y"?po:vo,ne=C==="y"?"height":"width",re=k[C],F=re+x[K],_=re-x[W],E=H?-M[ne]/2:0,G=z===Dl?R[ne]:M[ne],X=z===Dl?-M[ne]:-R[ne],ee=t.elements.arrow,te=H&&ee?Oy(ee):{width:0,height:0},ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:A1(),de=ue[K],xe=ue[W],ve=uu(0,R[ne],te[ne]),be=O?R[ne]/2-E-ve-de-j.mainAxis:G-ve-de-j.mainAxis,Xe=O?-R[ne]/2+E+ve+xe+j.mainAxis:X+ve+xe+j.mainAxis,Ie=t.elements.arrow&&qu(t.elements.arrow),He=Ie?C==="y"?Ie.clientTop||0:Ie.clientLeft||0:0,_e=(J=B==null?void 0:B[C])!=null?J:0,we=re+be-_e-He,tt=re+Xe-_e,Le=uu(H?lp(F,we):F,re,H?ia(_,tt):_);k[C]=Le,I[C]=Le-re}if(u){var dt,N=C==="x"?Or:Cr,$=C==="x"?po:vo,se=k[D],ye=D==="y"?"height":"width",ce=se+x[N],Ae=se-x[$],je=[Or,Cr].indexOf(S)!==-1,st=(dt=B==null?void 0:B[D])!=null?dt:0,wt=je?ce:se-R[ye]-M[ye]-st+j.altAxis,nt=je?se+R[ye]+M[ye]-st-j.altAxis:Ae,ft=H&&je?qz(wt,se,nt):uu(H?wt:ce,se,H?nt:Ae);k[D]=ft,I[D]=ft-se}t.modifiersData[r]=I}}const wO={name:"preventOverflow",enabled:!0,phase:"main",fn:xO,requiresIfExists:["offset"]};function HO(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function jO(e){return e===Qr(e)||!uo(e)?Dy(e):HO(e)}function SO(e){var t=e.getBoundingClientRect(),n=Tl(t.width)/e.offsetWidth||1,r=Tl(t.height)/e.offsetHeight||1;return n!==1||r!==1}function zO(e,t,n){n===void 0&&(n=!1);var r=uo(t),s=uo(t)&&SO(t),a=wi(t),l=kl(e,s,n),u={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&((is(t)!=="body"||ky(a))&&(u=jO(t)),uo(t)?(f=kl(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=Ty(a))),{x:l.left+u.scrollLeft-f.x,y:l.top+u.scrollTop-f.y,width:l.width,height:l.height}}function OO(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function s(a){n.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(u){if(!n.has(u)){var f=t.get(u);f&&s(f)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||s(a)}),r}function CO(e){var t=OO(e);return Vz.reduce(function(n,r){return n.concat(t.filter(function(s){return s.phase===r}))},[])}function DO(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function TO(e){var t=e.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var sx={placement:"bottom",modifiers:[],strategy:"absolute"};function ix(){for(var e=arguments.length,t=new Array(e),n=0;n{a||u(MO(s)||document.body)},[s,a]),fo(()=>{if(l&&!a)return rp(n,l),()=>{rp(n,null)}},[n,l,a]),a){if(P.isValidElement(r)){const p={ref:f};return P.cloneElement(r,p)}return r}return l&&p1.createPortal(r,l)});function LO(e){return Ge("MuiPopper",e)}Ue("MuiPopper",["root"]);function XO(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 vg(e){return typeof e=="function"?e():e}function NO(e){return e.nodeType!==void 0}const BO=e=>{const{classes:t}=e;return Ke({root:["root"]},LO,t)},VO={},IO=P.forwardRef(function(t,n){const{anchorEl:r,children:s,direction:a,disablePortal:l,modifiers:u,open:f,placement:p,popperOptions:h,popperRef:m,slotProps:y={},slots:H={},TransitionProps:A,ownerState:w,...x}=t,S=P.useRef(null),z=rn(S,n),O=P.useRef(null),C=rn(O,m),D=P.useRef(C);fo(()=>{D.current=C},[C]),P.useImperativeHandle(m,()=>O.current,[]);const k=XO(p,a),[R,M]=P.useState(k),[L,j]=P.useState(vg(r));P.useEffect(()=>{O.current&&O.current.forceUpdate()}),P.useEffect(()=>{r&&j(vg(r))},[r]),fo(()=>{if(!L||!f)return;const W=F=>{M(F.placement)};let ne=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:F})=>{W(F)}}];u!=null&&(ne=ne.concat(u)),h&&h.modifiers!=null&&(ne=ne.concat(h.modifiers));const re=EO(L,S.current,{placement:k,...h,modifiers:ne});return D.current(re),()=>{re.destroy(),D.current(null)}},[L,l,u,f,h,k]);const B={placement:R};A!==null&&(B.TransitionProps=A);const I=BO(t),J=H.root??"div",K=sp({elementType:J,externalSlotProps:y.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:z},ownerState:t,className:I.root});return v.jsx(J,{...K,children:typeof s=="function"?s(B):s})}),WO=P.forwardRef(function(t,n){const{anchorEl:r,children:s,container:a,direction:l="ltr",disablePortal:u=!1,keepMounted:f=!1,modifiers:p,open:h,placement:m="bottom",popperOptions:y=VO,popperRef:H,style:A,transition:w=!1,slotProps:x={},slots:S={},...z}=t,[O,C]=P.useState(!0),D=()=>{C(!1)},k=()=>{C(!0)};if(!f&&!h&&(!w||O))return null;let R;if(a)R=a;else if(r){const j=vg(r);R=j&&NO(j)?ir(j).body:ir(null).body}const M=!h&&f&&(!w||O)?"none":void 0,L=w?{in:h,onEnter:D,onExited:k}:void 0;return v.jsx(H1,{disablePortal:u,container:R,children:v.jsx(IO,{anchorEl:r,direction:l,disablePortal:u,modifiers:p,ref:n,open:w?!O:h,placement:m,popperOptions:y,popperRef:H,slotProps:x,slots:S,...z,style:{position:"fixed",top:0,left:0,display:M,...A},TransitionProps:L,children:s})})}),JO=pe(WO,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Zp=P.forwardRef(function(t,n){const r=Ju(),s=$e({props:t,name:"MuiPopper"}),{anchorEl:a,component:l,components:u,componentsProps:f,container:p,disablePortal:h,keepMounted:m,modifiers:y,open:H,placement:A,popperOptions:w,popperRef:x,transition:S,slots:z,slotProps:O,...C}=s,D=(z==null?void 0:z.root)??(u==null?void 0:u.Root),k={anchorEl:a,container:p,disablePortal:h,keepMounted:m,modifiers:y,open:H,placement:A,popperOptions:w,popperRef:x,transition:S,...C};return v.jsx(JO,{as:l,direction:r?"rtl":"ltr",slots:{root:D},slotProps:O??f,...k,ref:n})});function FO(e){return Ge("MuiListSubheader",e)}Ue("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const YO=e=>{const{classes:t,color:n,disableGutters:r,inset:s,disableSticky:a}=e,l={root:["root",n!=="default"&&`color${me(n)}`,!r&&"gutters",s&&"inset",!a&&"sticky"]};return Ke(l,FO,t)},qO=pe("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${me(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Qe(({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}}]}))),hg=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiListSubheader"}),{className:s,color:a="default",component:l="li",disableGutters:u=!1,disableSticky:f=!1,inset:p=!1,...h}=r,m={...r,color:a,component:l,disableGutters:u,disableSticky:f,inset:p},y=YO(m);return v.jsx(qO,{as:l,className:Oe(y.root,s),ref:n,ownerState:m,...h})});hg&&(hg.muiSkipListHighlight=!0);const ZO=At(v.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"}),"Cancel");function GO(e){return Ge("MuiChip",e)}const Mt=Ue("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"]),UO=e=>{const{classes:t,disabled:n,size:r,color:s,iconColor:a,onDelete:l,clickable:u,variant:f}=e,p={root:["root",f,n&&"disabled",`size${me(r)}`,`color${me(s)}`,u&&"clickable",u&&`clickableColor${me(s)}`,l&&"deletable",l&&`deletableColor${me(s)}`,`${f}${me(s)}`],label:["label",`label${me(r)}`],avatar:["avatar",`avatar${me(r)}`,`avatarColor${me(s)}`],icon:["icon",`icon${me(r)}`,`iconColor${me(a)}`],deleteIcon:["deleteIcon",`deleteIcon${me(r)}`,`deleteIconColor${me(s)}`,`deleteIcon${me(f)}Color${me(s)}`]};return Ke(p,GO,t)},QO=pe("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:s,clickable:a,onDelete:l,size:u,variant:f}=n;return[{[`& .${Mt.avatar}`]:t.avatar},{[`& .${Mt.avatar}`]:t[`avatar${me(u)}`]},{[`& .${Mt.avatar}`]:t[`avatarColor${me(r)}`]},{[`& .${Mt.icon}`]:t.icon},{[`& .${Mt.icon}`]:t[`icon${me(u)}`]},{[`& .${Mt.icon}`]:t[`iconColor${me(s)}`]},{[`& .${Mt.deleteIcon}`]:t.deleteIcon},{[`& .${Mt.deleteIcon}`]:t[`deleteIcon${me(u)}`]},{[`& .${Mt.deleteIcon}`]:t[`deleteIconColor${me(r)}`]},{[`& .${Mt.deleteIcon}`]:t[`deleteIcon${me(f)}Color${me(r)}`]},t.root,t[`size${me(u)}`],t[`color${me(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${me(r)})`],l&&t.deletable,l&&r!=="default"&&t[`deletableColor${me(r)}`],t[f],t[`${f}${me(r)}`]]}})(Qe(({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,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",[`&.${Mt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Mt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Mt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Mt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Mt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Mt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Mt.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Pt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Pt(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Mt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Mt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(gn(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Mt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:Pt(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Mt.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Mt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Mt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Pt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(gn(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Mt.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Pt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Mt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Pt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(gn(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Mt.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]}`,[`&.${Mt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Mt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Mt.avatar}`]:{marginLeft:4},[`& .${Mt.avatarSmall}`]:{marginLeft:2},[`& .${Mt.icon}`]:{marginLeft:4},[`& .${Mt.iconSmall}`]:{marginLeft:2},[`& .${Mt.deleteIcon}`]:{marginRight:5},[`& .${Mt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(gn()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Pt(e.palette[n].main,.7)}`,[`&.${Mt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Mt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Pt(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Mt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Pt(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),KO=pe("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${me(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 ax(e){return e.key==="Backspace"||e.key==="Delete"}const Zu=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiChip"}),{avatar:s,className:a,clickable:l,color:u="default",component:f,deleteIcon:p,disabled:h=!1,icon:m,label:y,onClick:H,onDelete:A,onKeyDown:w,onKeyUp:x,size:S="medium",variant:z="filled",tabIndex:O,skipFocusWhenDisabled:C=!1,...D}=r,k=P.useRef(null),R=rn(k,n),M=_=>{_.stopPropagation(),A&&A(_)},L=_=>{_.currentTarget===_.target&&ax(_)&&_.preventDefault(),w&&w(_)},j=_=>{_.currentTarget===_.target&&A&&ax(_)&&A(_),x&&x(_)},B=l!==!1&&H?!0:l,I=B||A?fa:f||"div",J={...r,component:I,disabled:h,size:S,color:u,iconColor:P.isValidElement(m)&&m.props.color||u,onDelete:!!A,clickable:B,variant:z},K=UO(J),W=I===fa?{component:f||"div",focusVisibleClassName:K.focusVisible,...A&&{disableRipple:!0}}:{};let ne=null;A&&(ne=p&&P.isValidElement(p)?P.cloneElement(p,{className:Oe(p.props.className,K.deleteIcon),onClick:M}):v.jsx(ZO,{className:Oe(K.deleteIcon),onClick:M}));let re=null;s&&P.isValidElement(s)&&(re=P.cloneElement(s,{className:Oe(K.avatar,s.props.className)}));let F=null;return m&&P.isValidElement(m)&&(F=P.cloneElement(m,{className:Oe(K.icon,m.props.className)})),v.jsxs(QO,{as:I,className:Oe(K.root,a),disabled:B&&h?!0:void 0,onClick:H,onKeyDown:L,onKeyUp:j,ref:R,tabIndex:C&&h?-1:O,ownerState:J,...W,...D,children:[re||F,v.jsx(KO,{className:Oe(K.label),ownerState:J,children:y}),ne]})});function Ad(e){return parseInt(e,10)||0}const _O={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function $O(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const eC=P.forwardRef(function(t,n){const{onChange:r,maxRows:s,minRows:a=1,style:l,value:u,...f}=t,{current:p}=P.useRef(u!=null),h=P.useRef(null),m=rn(n,h),y=P.useRef(null),H=P.useRef(null),A=P.useCallback(()=>{const S=h.current,O=Mo(S).getComputedStyle(S);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};const C=H.current;C.style.width=O.width,C.value=S.value||t.placeholder||"x",C.value.slice(-1)===` -`&&(C.value+=" ");const D=O.boxSizing,k=Ad(O.paddingBottom)+Ad(O.paddingTop),R=Ad(O.borderBottomWidth)+Ad(O.borderTopWidth),M=C.scrollHeight;C.value="x";const L=C.scrollHeight;let j=M;a&&(j=Math.max(Number(a)*L,j)),s&&(j=Math.min(Number(s)*L,j)),j=Math.max(j,L);const B=j+(D==="border-box"?k+R:0),I=Math.abs(j-M)<=1;return{outerHeightStyle:B,overflowing:I}},[s,a,t.placeholder]),w=P.useCallback(()=>{const S=A();if($O(S))return;const z=S.outerHeightStyle,O=h.current;y.current!==z&&(y.current=z,O.style.height=`${z}px`),O.style.overflow=S.overflowing?"hidden":""},[A]);fo(()=>{const S=()=>{w()};let z;const O=hy(S),C=h.current,D=Mo(C);D.addEventListener("resize",O);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(S),k.observe(C)),()=>{O.clear(),cancelAnimationFrame(z),D.removeEventListener("resize",O),k&&k.disconnect()}},[A,w]),fo(()=>{w()});const x=S=>{p||w(),r&&r(S)};return v.jsxs(P.Fragment,{children:[v.jsx("textarea",{value:u,onChange:x,ref:m,rows:a,style:l,...f}),v.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:H,tabIndex:-1,style:{..._O.shadow,...l,paddingTop:0,paddingBottom:0}})]})});function El(e){return typeof e=="string"}function Hi({props:e,states:t,muiFormControl:n}){return t.reduce((r,s)=>(r[s]=e[s],n&&typeof e[s]>"u"&&(r[s]=n[s]),r),{})}const Gp=P.createContext(void 0);function Bo(){return P.useContext(Gp)}function lx(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function cp(e,t=!1){return e&&(lx(e.value)&&e.value!==""||t&&lx(e.defaultValue)&&e.defaultValue!=="")}function tC(e){return e.startAdornment}function nC(e){return Ge("MuiInputBase",e)}const Jr=Ue("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var cx;const Up=(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${me(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Qp=(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]},rC=e=>{const{classes:t,color:n,disabled:r,error:s,endAdornment:a,focused:l,formControl:u,fullWidth:f,hiddenLabel:p,multiline:h,readOnly:m,size:y,startAdornment:H,type:A}=e,w={root:["root",`color${me(n)}`,r&&"disabled",s&&"error",f&&"fullWidth",l&&"focused",u&&"formControl",y&&y!=="medium"&&`size${me(y)}`,h&&"multiline",H&&"adornedStart",a&&"adornedEnd",p&&"hiddenLabel",m&&"readOnly"],input:["input",r&&"disabled",A==="search"&&"inputTypeSearch",h&&"inputMultiline",y==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",H&&"inputAdornedStart",a&&"inputAdornedEnd",m&&"readOnly"]};return Ke(w,nC,t)},Kp=pe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Up})(Qe(({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",[`&.${Jr.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%"}}]}))),_p=pe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Qp})(Qe(({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"},s=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] + .${Jr.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${Jr.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"}}]}})),ux=by({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),$p=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:a,autoFocus:l,className:u,color:f,components:p={},componentsProps:h={},defaultValue:m,disabled:y,disableInjectingGlobalStyles:H,endAdornment:A,error:w,fullWidth:x=!1,id:S,inputComponent:z="input",inputProps:O={},inputRef:C,margin:D,maxRows:k,minRows:R,multiline:M=!1,name:L,onBlur:j,onChange:B,onClick:I,onFocus:J,onKeyDown:K,onKeyUp:W,placeholder:ne,readOnly:re,renderSuffix:F,rows:_,size:E,slotProps:G={},slots:X={},startAdornment:ee,type:te="text",value:ue,...de}=r,xe=O.value!=null?O.value:ue,{current:ve}=P.useRef(xe!=null),be=P.useRef(),Xe=P.useCallback(We=>{},[]),Ie=rn(be,C,O.ref,Xe),[He,_e]=P.useState(!1),we=Bo(),tt=Hi({props:r,muiFormControl:we,states:["color","disabled","error","hiddenLabel","size","required","filled"]});tt.focused=we?we.focused:He,P.useEffect(()=>{!we&&y&&He&&(_e(!1),j&&j())},[we,y,He,j]);const Le=we&&we.onFilled,dt=we&&we.onEmpty,N=P.useCallback(We=>{cp(We)?Le&&Le():dt&&dt()},[Le,dt]);fo(()=>{ve&&N({value:xe})},[xe,N,ve]);const $=We=>{J&&J(We),O.onFocus&&O.onFocus(We),we&&we.onFocus?we.onFocus(We):_e(!0)},se=We=>{j&&j(We),O.onBlur&&O.onBlur(We),we&&we.onBlur?we.onBlur(We):_e(!1)},ye=(We,...Dt)=>{if(!ve){const Jt=We.target||be.current;if(Jt==null)throw new Error(ks(1));N({value:Jt.value})}O.onChange&&O.onChange(We,...Dt),B&&B(We,...Dt)};P.useEffect(()=>{N(be.current)},[]);const ce=We=>{be.current&&We.currentTarget===We.target&&be.current.focus(),I&&I(We)};let Ae=z,je=O;M&&Ae==="input"&&(_?je={type:void 0,minRows:_,maxRows:_,...je}:je={type:void 0,maxRows:k,minRows:R,...je},Ae=eC);const st=We=>{N(We.animationName==="mui-auto-fill-cancel"?be.current:{value:"x"})};P.useEffect(()=>{we&&we.setAdornedStart(!!ee)},[we,ee]);const wt={...r,color:tt.color||"primary",disabled:tt.disabled,endAdornment:A,error:tt.error,focused:tt.focused,formControl:we,fullWidth:x,hiddenLabel:tt.hiddenLabel,multiline:M,size:tt.size,startAdornment:ee,type:te},nt=rC(wt),ft=X.root||p.Root||Kp,ct=G.root||h.root||{},Ht=X.input||p.Input||_p;return je={...je,...G.input??h.input},v.jsxs(P.Fragment,{children:[!H&&typeof ux=="function"&&(cx||(cx=v.jsx(ux,{}))),v.jsxs(ft,{...ct,ref:n,onClick:ce,...de,...!El(ft)&&{ownerState:{...wt,...ct.ownerState}},className:Oe(nt.root,ct.className,u,re&&"MuiInputBase-readOnly"),children:[ee,v.jsx(Gp.Provider,{value:null,children:v.jsx(Ht,{"aria-invalid":tt.error,"aria-describedby":s,autoComplete:a,autoFocus:l,defaultValue:m,disabled:tt.disabled,id:S,onAnimationStart:st,name:L,placeholder:ne,readOnly:re,required:tt.required,rows:_,value:xe,onKeyDown:K,onKeyUp:W,type:te,...je,...!El(Ht)&&{as:Ae,ownerState:{...wt,...je.ownerState}},ref:Ie,className:Oe(nt.input,je.className,re&&"MuiInputBase-readOnly"),onBlur:se,onChange:ye,onFocus:$})}),A,F?F({...tt,startAdornment:ee}):null]})]})});function oC(e){return Ge("MuiInput",e)}const ai={...Jr,...Ue("MuiInput",["root","underline","input"])};function sC(e){return Ge("MuiOutlinedInput",e)}const oo={...Jr,...Ue("MuiOutlinedInput",["root","notchedOutline","input"])};function iC(e){return Ge("MuiFilledInput",e)}const Fr={...Jr,...Ue("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},j1=At(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function aC(e){return Ge("MuiAutocomplete",e)}const Ot=Ue("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 fx,dx;const lC=e=>{const{classes:t,disablePortal:n,expanded:r,focused:s,fullWidth:a,hasClearIcon:l,hasPopupIcon:u,inputFocused:f,popupOpen:p,size:h}=e,m={root:["root",r&&"expanded",s&&"focused",a&&"fullWidth",l&&"hasClearIcon",u&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",f&&"inputFocused"],tag:["tag",`tagSize${me(h)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ke(m,aC,t)},cC=pe("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:s,hasPopupIcon:a,inputFocused:l,size:u}=n;return[{[`& .${Ot.tag}`]:t.tag},{[`& .${Ot.tag}`]:t[`tagSize${me(u)}`]},{[`& .${Ot.inputRoot}`]:t.inputRoot},{[`& .${Ot.input}`]:t.input},{[`& .${Ot.input}`]:l&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,s&&t.hasClearIcon]}})({[`&.${Ot.focused} .${Ot.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Ot.clearIndicator}`]:{visibility:"visible"}},[`& .${Ot.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Ot.inputRoot}`]:{[`.${Ot.hasPopupIcon}&, .${Ot.hasClearIcon}&`]:{paddingRight:30},[`.${Ot.hasPopupIcon}.${Ot.hasClearIcon}&`]:{paddingRight:56},[`& .${Ot.input}`]:{width:0,minWidth:30}},[`& .${ai.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${ai.root}.${Jr.sizeSmall}`]:{[`& .${ai.input}`]:{padding:"2px 4px 3px 0"}},[`& .${oo.root}`]:{padding:9,[`.${Ot.hasPopupIcon}&, .${Ot.hasClearIcon}&`]:{paddingRight:39},[`.${Ot.hasPopupIcon}.${Ot.hasClearIcon}&`]:{paddingRight:65},[`& .${Ot.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Ot.endAdornment}`]:{right:9}},[`& .${oo.root}.${Jr.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Ot.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Fr.root}`]:{paddingTop:19,paddingLeft:8,[`.${Ot.hasPopupIcon}&, .${Ot.hasClearIcon}&`]:{paddingRight:39},[`.${Ot.hasPopupIcon}.${Ot.hasClearIcon}&`]:{paddingRight:65},[`& .${Fr.input}`]:{padding:"7px 4px"},[`& .${Ot.endAdornment}`]:{right:9}},[`& .${Fr.root}.${Jr.sizeSmall}`]:{paddingBottom:1,[`& .${Fr.input}`]:{padding:"2.5px 4px"}},[`& .${Jr.hiddenLabel}`]:{paddingTop:8},[`& .${Fr.root}.${Jr.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Ot.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Fr.root}.${Jr.hiddenLabel}.${Jr.sizeSmall}`]:{[`& .${Ot.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Ot.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Ot.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Ot.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Ot.inputRoot}`]:{flexWrap:"wrap"}}}]}),uC=pe("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),fC=pe(zr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),dC=pe(zr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>({...t.popupIndicator,...e.popupOpen&&t.popupIndicatorOpen})})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),pC=pe(Zp,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ot.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(Qe(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),vC=pe(Ur,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(Qe(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),hC=pe("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),mC=pe("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),gC=pe("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(Qe(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Ot.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"},[`&.${Ot.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"},[`&.${Ot.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ot.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ot.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),yC=pe(hg,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(Qe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),AC=pe("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Ot.option}`]:{paddingLeft:24}}),PC=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiAutocomplete"}),{autoComplete:s=!1,autoHighlight:a=!1,autoSelect:l=!1,blurOnSelect:u=!1,ChipProps:f,className:p,clearIcon:h=fx||(fx=v.jsx(v1,{fontSize:"small"})),clearOnBlur:m=!r.freeSolo,clearOnEscape:y=!1,clearText:H="Clear",closeText:A="Close",componentsProps:w,defaultValue:x=r.multiple?[]:null,disableClearable:S=!1,disableCloseOnSelect:z=!1,disabled:O=!1,disabledItemsFocusable:C=!1,disableListWrap:D=!1,disablePortal:k=!1,filterOptions:R,filterSelectedOptions:M=!1,forcePopupIcon:L="auto",freeSolo:j=!1,fullWidth:B=!1,getLimitTagsText:I=Lt=>`+${Lt}`,getOptionDisabled:J,getOptionKey:K,getOptionLabel:W,isOptionEqualToValue:ne,groupBy:re,handleHomeEndKeys:F=!r.freeSolo,id:_,includeInputInList:E=!1,inputValue:G,limitTags:X=-1,ListboxComponent:ee,ListboxProps:te,loading:ue=!1,loadingText:de="Loading…",multiple:xe=!1,noOptionsText:ve="No options",onChange:be,onClose:Xe,onHighlightChange:Ie,onInputChange:He,onOpen:_e,open:we,openOnFocus:tt=!1,openText:Le="Open",options:dt,PaperComponent:N,PopperComponent:$,popupIcon:se=dx||(dx=v.jsx(j1,{})),readOnly:ye=!1,renderGroup:ce,renderInput:Ae,renderOption:je,renderTags:st,selectOnFocus:wt=!r.freeSolo,size:nt="medium",slots:ft={},slotProps:ct={},value:Ht,...We}=r,{getRootProps:Dt,getInputProps:Jt,getInputLabelProps:Be,getPopupIndicatorProps:U,getClearProps:Y,getTagProps:Pe,getListboxProps:De,getOptionProps:Te,value:Ne,dirty:Je,expanded:ke,id:rt,popupOpen:vt,focused:kt,focusedTag:Qt,anchorEl:Fe,setAnchorEl:Rt,inputValue:un,groupedOptions:zn}=Oz({...r,componentName:"Autocomplete"}),Gn=!S&&!O&&Je&&!ye,An=(!j||L===!0)&&L!==!1,{onMouseDown:Mr}=Jt(),{ref:mo,...go}=De(),yo=W||(Lt=>Lt.label??Lt),Pn={...r,disablePortal:k,expanded:ke,focused:kt,fullWidth:B,getOptionLabel:yo,hasClearIcon:Gn,hasPopupIcon:An,inputFocused:Qt===-1,popupOpen:vt,size:nt},on=lC(Pn),Re={slots:{paper:N,popper:$,...ft},slotProps:{chip:f,listbox:te,...w,...ct}},[oe,le]=Cn("listbox",{elementType:gC,externalForwardedProps:Re,ownerState:Pn,className:on.listbox,additionalProps:go,ref:mo}),[Ee,ot]=Cn("paper",{elementType:Ur,externalForwardedProps:Re,ownerState:Pn,className:on.paper}),[lt,It]=Cn("popper",{elementType:Zp,externalForwardedProps:Re,ownerState:Pn,className:on.popper,additionalProps:{disablePortal:k,style:{width:Fe?Fe.clientWidth:null},role:"presentation",anchorEl:Fe,open:vt}});let Nt;if(xe&&Ne.length>0){const Lt=ar=>({className:on.tag,disabled:O,...Pe(ar)});st?Nt=st(Ne,Lt,Pn):Nt=Ne.map((ar,Xn)=>{const{key:Di,...Lr}=Lt({index:Xn});return v.jsx(Zu,{label:yo(ar),size:nt,...Lr,...Re.slotProps.chip},Di)})}if(X>-1&&Array.isArray(Nt)){const Lt=Nt.length-X;!kt&&Lt>0&&(Nt=Nt.splice(0,X),Nt.push(v.jsx("span",{className:on.tag,children:I(Lt)},Nt.length)))}const Ao=ce||(Lt=>v.jsxs("li",{children:[v.jsx(yC,{className:on.groupLabel,ownerState:Pn,component:"div",children:Lt.group}),v.jsx(AC,{className:on.groupUl,ownerState:Pn,children:Lt.children})]},Lt.key)),tn=je||((Lt,ar)=>{const{key:Xn,...Di}=Lt;return v.jsx("li",{...Di,children:yo(ar)},Xn)}),Oi=(Lt,ar)=>{const Xn=Te({option:Lt,index:ar});return tn({...Xn,className:on.option},Lt,{selected:Xn["aria-selected"],index:ar,inputValue:un},Pn)},Xs=Re.slotProps.clearIndicator,Ci=Re.slotProps.popupIndicator,Ns=Lt=>v.jsx(pC,{as:lt,...It,children:v.jsx(vC,{as:Ee,...ot,children:Lt})});let ba=null;return zn.length>0?ba=Ns(v.jsx(oe,{as:ee,...le,children:zn.map((Lt,ar)=>re?Ao({key:Lt.key,group:Lt.group,children:Lt.options.map((Xn,Di)=>Oi(Xn,Lt.index+Di))}):Oi(Lt,ar))})):ue&&zn.length===0?ba=Ns(v.jsx(hC,{className:on.loading,ownerState:Pn,children:de})):zn.length===0&&!j&&!ue&&(ba=Ns(v.jsx(mC,{className:on.noOptions,ownerState:Pn,role:"presentation",onMouseDown:Lt=>{Lt.preventDefault()},children:ve}))),v.jsxs(P.Fragment,{children:[v.jsx(cC,{ref:n,className:Oe(on.root,p),ownerState:Pn,...Dt(We),children:Ae({id:rt,disabled:O,fullWidth:!0,size:nt==="small"?"small":void 0,InputLabelProps:Be(),InputProps:{ref:Rt,className:on.inputRoot,startAdornment:Nt,onMouseDown:Lt=>{Lt.target===Lt.currentTarget&&Mr(Lt)},...(Gn||An)&&{endAdornment:v.jsxs(uC,{className:on.endAdornment,ownerState:Pn,children:[Gn?v.jsx(fC,{...Y(),"aria-label":H,title:H,ownerState:Pn,...Xs,className:Oe(on.clearIndicator,Xs==null?void 0:Xs.className),children:h}):null,An?v.jsx(dC,{...U(),disabled:O,"aria-label":vt?A:Le,title:vt?A:Le,ownerState:Pn,...Ci,className:Oe(on.popupIndicator,Ci==null?void 0:Ci.className),children:se}):null]})}},inputProps:{className:on.input,disabled:O,readOnly:ye,...Jt()}})}),Fe?ba:null]})}),bC={entering:{opacity:1},entered:{opacity:1}},S1=P.forwardRef(function(t,n){const r=Kr(),s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:u,easing:f,in:p,onEnter:h,onEntered:m,onEntering:y,onExit:H,onExited:A,onExiting:w,style:x,timeout:S=s,TransitionComponent:z=No,...O}=t,C=P.useRef(null),D=rn(C,xi(u),n),k=K=>W=>{if(K){const ne=C.current;W===void 0?K(ne):K(ne,W)}},R=k(y),M=k((K,W)=>{Hy(K);const ne=Cl({style:x,timeout:S,easing:f},{mode:"enter"});K.style.webkitTransition=r.transitions.create("opacity",ne),K.style.transition=r.transitions.create("opacity",ne),h&&h(K,W)}),L=k(m),j=k(w),B=k(K=>{const W=Cl({style:x,timeout:S,easing:f},{mode:"exit"});K.style.webkitTransition=r.transitions.create("opacity",W),K.style.transition=r.transitions.create("opacity",W),H&&H(K)}),I=k(A),J=K=>{a&&a(C.current,K)};return v.jsx(z,{appear:l,in:p,nodeRef:C,onEnter:M,onEntered:L,onEntering:R,onExit:B,onExited:I,onExiting:j,addEndListener:J,timeout:S,...O,children:(K,W)=>P.cloneElement(u,{style:{opacity:0,visibility:K==="exited"&&!p?"hidden":void 0,...bC[K],...x,...u.props.style},ref:D,...W})})});function xC(e){return Ge("MuiBackdrop",e)}Ue("MuiBackdrop",["root","invisible"]);const wC=e=>{const{ownerState:t,...n}=e;return n},HC=e=>{const{classes:t,invisible:n}=e;return Ke({root:["root",n&&"invisible"]},xC,t)},jC=pe("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"}}]}),z1=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiBackdrop"}),{children:s,className:a,component:l="div",invisible:u=!1,open:f,components:p={},componentsProps:h={},slotProps:m={},slots:y={},TransitionComponent:H,transitionDuration:A,...w}=r,x={...r,component:l,invisible:u},S=HC(x),z={transition:H,root:p.Root,...y},O={...h,...m},C={slots:z,slotProps:O},[D,k]=Cn("root",{elementType:jC,externalForwardedProps:C,className:Oe(S.root,a),ownerState:x}),[R,M]=Cn("transition",{elementType:S1,externalForwardedProps:C,ownerState:x}),L=wC(M);return v.jsx(R,{in:f,timeout:A,...w,...L,children:v.jsx(D,{"aria-hidden":!0,...k,classes:S,ref:n,children:s})})}),SC=Ue("MuiBox",["root"]),zC=Fu(),yt=FH({themeId:Ro,defaultTheme:zC,defaultClassName:SC.root,generateClassName:N0.generate});function OC(e){return Ge("MuiButton",e)}const Qa=Ue("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"]),O1=P.createContext({}),CC=P.createContext(void 0),DC=e=>{const{color:t,disableElevation:n,fullWidth:r,size:s,variant:a,classes:l}=e,u={root:["root",a,`${a}${me(t)}`,`size${me(s)}`,`${a}Size${me(s)}`,`color${me(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${me(s)}`],endIcon:["icon","endIcon",`iconSize${me(s)}`]},f=Ke(u,OC,l);return{...l,...f}},C1=[{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}}}],TC=pe(fa,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${me(n.color)}`],t[`size${me(n.size)}`],t[`${n.variant}Size${me(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(Qe(({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"},[`&.${Qa.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]},[`&.${Qa.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Qa.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)",[`&.${Qa.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(gn()).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.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:Pt(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.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette[r].main,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.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette.text.primary,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"},[`&.${Qa.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Qa.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),kC=pe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${me(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...C1]}),RC=pe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${me(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...C1]}),Xt=P.forwardRef(function(t,n){const r=P.useContext(O1),s=P.useContext(CC),a=zl(r,t),l=$e({props:a,name:"MuiButton"}),{children:u,color:f="primary",component:p="button",className:h,disabled:m=!1,disableElevation:y=!1,disableFocusRipple:H=!1,endIcon:A,focusVisibleClassName:w,fullWidth:x=!1,size:S="medium",startIcon:z,type:O,variant:C="text",...D}=l,k={...l,color:f,component:p,disabled:m,disableElevation:y,disableFocusRipple:H,fullWidth:x,size:S,type:O,variant:C},R=DC(k),M=z&&v.jsx(kC,{className:R.startIcon,ownerState:k,children:z}),L=A&&v.jsx(RC,{className:R.endIcon,ownerState:k,children:A}),j=s||"";return v.jsxs(TC,{ownerState:k,className:Oe(r.className,R.root,h,j),component:p,disabled:m,focusRipple:!H,focusVisibleClassName:Oe(R.focusVisible,w),ref:n,type:O,...D,classes:R,children:[M,u,L]})});function EC(e){return Ge("MuiCard",e)}Ue("MuiCard",["root"]);const MC=e=>{const{classes:t}=e;return Ke({root:["root"]},EC,t)},LC=pe(Ur,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),D1=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiCard"}),{className:s,raised:a=!1,...l}=r,u={...r,raised:a},f=MC(u);return v.jsx(LC,{className:Oe(f.root,s),elevation:a?8:void 0,ref:n,ownerState:u,...l})});function XC(e){return Ge("MuiCardContent",e)}Ue("MuiCardContent",["root"]);const NC=e=>{const{classes:t}=e;return Ke({root:["root"]},XC,t)},BC=pe("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),mg=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiCardContent"}),{className:s,component:a="div",...l}=r,u={...r,component:a},f=NC(u);return v.jsx(BC,{as:a,className:Oe(f.root,s),ownerState:u,ref:n,...l})});function VC(e){return Ge("MuiCardMedia",e)}Ue("MuiCardMedia",["root","media","img"]);const IC=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return Ke({root:["root",n&&"media",r&&"img"]},VC,t)},WC=pe("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:s}=n;return[t.root,r&&t.media,s&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),JC=["video","audio","picture","iframe","img"],FC=["picture","img"],YC=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiCardMedia"}),{children:s,className:a,component:l="div",image:u,src:f,style:p,...h}=r,m=JC.includes(l),y=!m&&u?{backgroundImage:`url("${u}")`,...p}:p,H={...r,component:l,isMediaComponent:m,isImageComponent:FC.includes(l)},A=IC(H);return v.jsx(WC,{className:Oe(A.root,a),as:l,role:!m&&u?"img":void 0,ref:n,style:y,ownerState:H,src:m?u||f:void 0,...h,children:s})});function qC(e){return Ge("PrivateSwitchBase",e)}Ue("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const ZC=e=>{const{classes:t,checked:n,disabled:r,edge:s}=e,a={root:["root",n&&"checked",r&&"disabled",s&&`edge${me(s)}`],input:["input"]};return Ke(a,qC,t)},GC=pe(fa)({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}}]}),UC=pe("input",{shouldForwardProp:Zn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ry=P.forwardRef(function(t,n){const{autoFocus:r,checked:s,checkedIcon:a,className:l,defaultChecked:u,disabled:f,disableFocusRipple:p=!1,edge:h=!1,icon:m,id:y,inputProps:H,inputRef:A,name:w,onBlur:x,onChange:S,onFocus:z,readOnly:O,required:C=!1,tabIndex:D,type:k,value:R,...M}=t,[L,j]=yi({controlled:s,default:!!u,name:"SwitchBase",state:"checked"}),B=Bo(),I=_=>{z&&z(_),B&&B.onFocus&&B.onFocus(_)},J=_=>{x&&x(_),B&&B.onBlur&&B.onBlur(_)},K=_=>{if(_.nativeEvent.defaultPrevented)return;const E=_.target.checked;j(E),S&&S(_,E)};let W=f;B&&typeof W>"u"&&(W=B.disabled);const ne=k==="checkbox"||k==="radio",re={...t,checked:L,disabled:W,disableFocusRipple:p,edge:h},F=ZC(re);return v.jsxs(GC,{component:"span",className:Oe(F.root,l),centerRipple:!0,focusRipple:!p,disabled:W,tabIndex:null,role:void 0,onFocus:I,onBlur:J,ownerState:re,ref:n,...M,children:[v.jsx(UC,{autoFocus:r,checked:s,defaultChecked:u,className:F.input,disabled:W,id:ne?y:void 0,name:w,onChange:K,readOnly:O,ref:A,required:C,ownerState:re,tabIndex:D,type:k,...k==="checkbox"&&R===void 0?{}:{value:R},...H}),L?a:m]})}),QC=At(v.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"}),"CheckBoxOutlineBlank"),KC=At(v.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"}),"CheckBox"),_C=At(v.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"}),"IndeterminateCheckBox");function $C(e){return Ge("MuiCheckbox",e)}const Cm=Ue("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),eD=e=>{const{classes:t,indeterminate:n,color:r,size:s}=e,a={root:["root",n&&"indeterminate",`color${me(r)}`,`size${me(s)}`]},l=Ke(a,$C,t);return{...t,...l}},tD=pe(Ry,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${me(n.size)}`],n.color!=="default"&&t[`color${me(n.color)}`]]}})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t},style:{[`&.${Cm.checked}, &.${Cm.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Cm.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),nD=v.jsx(KC,{}),rD=v.jsx(QC,{}),oD=v.jsx(_C,{}),px=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiCheckbox"}),{checkedIcon:s=nD,color:a="primary",icon:l=rD,indeterminate:u=!1,indeterminateIcon:f=oD,inputProps:p,size:h="medium",disableRipple:m=!1,className:y,...H}=r,A=u?f:l,w=u?f:s,x={...r,disableRipple:m,color:a,indeterminate:u,size:h},S=eD(x);return v.jsx(tD,{type:"checkbox",inputProps:{"data-indeterminate":u,...p},icon:P.cloneElement(A,{fontSize:A.props.fontSize??h}),checkedIcon:P.cloneElement(w,{fontSize:w.props.fontSize??h}),ownerState:x,ref:n,className:Oe(S.root,y),disableRipple:m,...H,classes:S})});function sD(e){return Ge("MuiCircularProgress",e)}Ue("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const oi=44,gg=Vu` +`,QS=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiTouchRipple"}),{center:s=!1,classes:a={},className:l,...u}=r,[f,p]=P.useState([]),h=P.useRef(0),m=P.useRef(null);P.useEffect(()=>{m.current&&(m.current(),m.current=null)},[f]);const y=P.useRef(!1),H=Gi(),A=P.useRef(null),w=P.useRef(null),x=P.useCallback(C=>{const{pulsate:D,rippleX:k,rippleY:R,rippleSize:M,cb:L}=C;p(j=>[...j,v.jsx(US,{classes:{ripple:Oe(a.ripple,ao.ripple),rippleVisible:Oe(a.rippleVisible,ao.rippleVisible),ripplePulsate:Oe(a.ripplePulsate,ao.ripplePulsate),child:Oe(a.child,ao.child),childLeaving:Oe(a.childLeaving,ao.childLeaving),childPulsate:Oe(a.childPulsate,ao.childPulsate)},timeout:dg,pulsate:D,rippleX:k,rippleY:R,rippleSize:M},h.current)]),h.current+=1,m.current=L},[a]),S=P.useCallback((C={},D={},k=()=>{})=>{const{pulsate:R=!1,center:M=s||D.pulsate,fakeElement:L=!1}=D;if((C==null?void 0:C.type)==="mousedown"&&y.current){y.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(y.current=!0);const j=L?null:w.current,B=j?j.getBoundingClientRect():{width:0,height:0,left:0,top:0};let I,F,$;if(M||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)I=Math.round(B.width/2),F=Math.round(B.height/2);else{const{clientX:W,clientY:ne}=C.touches&&C.touches.length>0?C.touches[0]:C;I=Math.round(W-B.left),F=Math.round(ne-B.top)}if(M)$=Math.sqrt((2*B.width**2+B.height**2)/3),$%2===0&&($+=1);else{const W=Math.max(Math.abs((j?j.clientWidth:0)-I),I)*2+2,ne=Math.max(Math.abs((j?j.clientHeight:0)-F),F)*2+2;$=Math.sqrt(W**2+ne**2)}C!=null&&C.touches?A.current===null&&(A.current=()=>{x({pulsate:R,rippleX:I,rippleY:F,rippleSize:$,cb:k})},H.start(FS,()=>{A.current&&(A.current(),A.current=null)})):x({pulsate:R,rippleX:I,rippleY:F,rippleSize:$,cb:k})},[s,x,H]),z=P.useCallback(()=>{S({},{pulsate:!0})},[S]),O=P.useCallback((C,D)=>{if(H.clear(),(C==null?void 0:C.type)==="touchend"&&A.current){A.current(),A.current=null,H.start(0,()=>{O(C,D)});return}A.current=null,p(k=>k.length>0?k.slice(1):k),m.current=D},[H]);return P.useImperativeHandle(n,()=>({pulsate:z,start:S,stop:O}),[z,S,O]),v.jsx(GS,{className:Oe(ao.root,a.root,l),ref:w,...u,children:v.jsx(Hy,{component:null,exit:!0,children:f})})});function KS(e){return Ge("MuiButtonBase",e)}const _S=Ue("MuiButtonBase",["root","disabled","focusVisible"]),$S=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:s}=e,l=Ke({root:["root",t&&"disabled",n&&"focusVisible"]},KS,s);return n&&r&&(l.root+=` ${r}`),l},ez=pe("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${_S.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fa=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiButtonBase"}),{action:s,centerRipple:a=!1,children:l,className:u,component:f="button",disabled:p=!1,disableRipple:h=!1,disableTouchRipple:m=!1,focusRipple:y=!1,focusVisibleClassName:H,LinkComponent:A="a",onBlur:w,onClick:x,onContextMenu:S,onDragLeave:z,onFocus:O,onFocusVisible:C,onKeyDown:D,onKeyUp:k,onMouseDown:R,onMouseLeave:M,onMouseUp:L,onTouchEnd:j,onTouchMove:B,onTouchStart:I,tabIndex:F=0,TouchRippleProps:$,touchRippleRef:W,type:ne,..._}=r,J=P.useRef(null),Q=IS(),E=rn(Q.ref,W),[Z,X]=P.useState(!1);p&&Z&&X(!1),P.useImperativeHandle(s,()=>({focusVisible:()=>{X(!0),J.current.focus()}}),[]);const re=Q.shouldMount&&!h&&!p;P.useEffect(()=>{Z&&y&&!h&&Q.pulsate()},[h,y,Z,Q]);const ee=xs(Q,"start",R,m),ue=xs(Q,"stop",S,m),de=xs(Q,"stop",z,m),we=xs(Q,"stop",L,m),ve=xs(Q,"stop",ce=>{Z&&ce.preventDefault(),M&&M(ce)},m),be=xs(Q,"start",I,m),Xe=xs(Q,"stop",j,m),Ie=xs(Q,"stop",B,m),He=xs(Q,"stop",ce=>{Ol(ce.target)||X(!1),w&&w(ce)},!1),_e=mr(ce=>{J.current||(J.current=ce.currentTarget),Ol(ce.target)&&(X(!0),C&&C(ce)),O&&O(ce)}),xe=()=>{const ce=J.current;return f&&f!=="button"&&!(ce.tagName==="A"&&ce.href)},tt=mr(ce=>{y&&!ce.repeat&&Z&&ce.key===" "&&Q.stop(ce,()=>{Q.start(ce)}),ce.target===ce.currentTarget&&xe()&&ce.key===" "&&ce.preventDefault(),D&&D(ce),ce.target===ce.currentTarget&&xe()&&ce.key==="Enter"&&!p&&(ce.preventDefault(),x&&x(ce))}),Le=mr(ce=>{y&&ce.key===" "&&Z&&!ce.defaultPrevented&&Q.stop(ce,()=>{Q.pulsate(ce)}),k&&k(ce),x&&ce.target===ce.currentTarget&&xe()&&ce.key===" "&&!ce.defaultPrevented&&x(ce)});let dt=f;dt==="button"&&(_.href||_.to)&&(dt=A);const N={};dt==="button"?(N.type=ne===void 0?"button":ne,N.disabled=p):(!_.href&&!_.to&&(N.role="button"),p&&(N["aria-disabled"]=p));const te=rn(n,J),se={...r,centerRipple:a,component:f,disabled:p,disableRipple:h,disableTouchRipple:m,focusRipple:y,tabIndex:F,focusVisible:Z},ye=$S(se);return v.jsxs(ez,{as:dt,className:Oe(ye.root,u),ownerState:se,onBlur:He,onClick:x,onContextMenu:ue,onFocus:_e,onKeyDown:tt,onKeyUp:Le,onMouseDown:ee,onMouseLeave:ve,onMouseUp:we,onDragLeave:de,onTouchEnd:Xe,onTouchMove:Ie,onTouchStart:be,ref:te,tabIndex:p?-1:F,type:ne,...N,..._,children:[l,re?v.jsx(QS,{ref:E,center:a,...$}):null]})});function xs(e,t,n,r=!1){return mr(s=>(n&&n(s),r||e[t](s),!0))}function tz(e){return typeof e.main=="string"}function nz(e,t=[]){if(!tz(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function gn(e=[]){return([,t])=>t&&nz(t,e)}function rz(e){return Ge("MuiAlert",e)}const F8=Ue("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function oz(e){return Ge("MuiIconButton",e)}const sz=Ue("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),iz=e=>{const{classes:t,disabled:n,color:r,edge:s,size:a}=e,l={root:["root",n&&"disabled",r!=="default"&&`color${me(r)}`,s&&`edge${me(s)}`,`size${me(a)}`]};return Ke(l,oz,t)},az=pe(fa,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${me(n.color)}`],n.edge&&t[`edge${me(n.edge)}`],t[`size${me(n.size)}`]]}})(Qe(({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.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette.action.active,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}}]})),Qe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt((e.vars||e).palette[t].main,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)}}],[`&.${sz.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),zr=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiIconButton"}),{edge:s=!1,children:a,className:l,color:u="default",disabled:f=!1,disableFocusRipple:p=!1,size:h="medium",...m}=r,y={...r,edge:s,color:u,disabled:f,disableFocusRipple:p,size:h},H=iz(y);return v.jsx(az,{className:Oe(H.root,l),centerRipple:!0,focusRipple:!p,disabled:f,ref:n,...m,ownerState:y,children:a})}),lz=At(v.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),cz=At(v.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),uz=At(v.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),fz=At(v.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),v1=At(v.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"}),"Close"),dz=e=>{const{variant:t,color:n,severity:r,classes:s}=e,a={root:["root",`color${me(n||r)}`,`${t}${me(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ke(a,rz,s)},pz=pe(Ur,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${me(n.color||n.severity)}`]]}})(Qe(({theme:e})=>{const t=e.palette.mode==="light"?ca:ua,n=e.palette.mode==="light"?ua:ca;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(gn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${F8.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(gn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${F8.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(gn(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),vz=pe("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),hz=pe("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Y8=pe("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),q8={success:v.jsx(lz,{fontSize:"inherit"}),warning:v.jsx(cz,{fontSize:"inherit"}),error:v.jsx(uz,{fontSize:"inherit"}),info:v.jsx(fz,{fontSize:"inherit"})},qp=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiAlert"}),{action:s,children:a,className:l,closeText:u="Close",color:f,components:p={},componentsProps:h={},icon:m,iconMapping:y=q8,onClose:H,role:A="alert",severity:w="success",slotProps:x={},slots:S={},variant:z="standard",...O}=r,C={...r,color:f,severity:w,variant:z,colorSeverity:f||w},D=dz(C),k={slots:{closeButton:p.CloseButton,closeIcon:p.CloseIcon,...S},slotProps:{...h,...x}},[R,M]=Cn("closeButton",{elementType:zr,externalForwardedProps:k,ownerState:C}),[L,j]=Cn("closeIcon",{elementType:v1,externalForwardedProps:k,ownerState:C});return v.jsxs(pz,{role:A,elevation:0,ownerState:C,className:Oe(D.root,l),ref:n,...O,children:[m!==!1?v.jsx(vz,{ownerState:C,className:D.icon,children:m||y[w]||q8[w]}):null,v.jsx(hz,{ownerState:C,className:D.message,children:a}),s!=null?v.jsx(Y8,{ownerState:C,className:D.action,children:s}):null,s==null&&H?v.jsx(Y8,{ownerState:C,className:D.action,children:v.jsx(R,{size:"small","aria-label":u,title:u,color:"inherit",onClick:H,...M,children:v.jsx(L,{fontSize:"small",...j})})}):null]})});function mz(e){return Ge("MuiTypography",e)}const Z8=Ue("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),gz={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},yz=xS(),Az=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:s,variant:a,classes:l}=e,u={root:["root",a,e.align!=="inherit"&&`align${me(t)}`,n&&"gutterBottom",r&&"noWrap",s&&"paragraph"]};return Ke(u,mz,l)},Pz=pe("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${me(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Qe(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(gn()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${me(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),G8={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xt=P.forwardRef(function(t,n){const{color:r,...s}=$e({props:t,name:"MuiTypography"}),a=!gz[r],l=yz({...s,...a&&{color:r}}),{align:u="inherit",className:f,component:p,gutterBottom:h=!1,noWrap:m=!1,paragraph:y=!1,variant:H="body1",variantMapping:A=G8,...w}=l,x={...l,align:u,color:r,className:f,component:p,gutterBottom:h,noWrap:m,paragraph:y,variant:H,variantMapping:A},S=p||(y?"p":A[H]||G8[H])||"span",z=Az(x);return v.jsx(Pz,{as:S,ref:n,className:Oe(z.root,f),...w,ownerState:x,style:{...u!=="inherit"&&{"--Typography-textAlign":u},...w.style}})});function bz(e){return Ge("MuiAppBar",e)}Ue("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const xz=e=>{const{color:t,position:n,classes:r}=e,s={root:["root",`color${me(t)}`,`position${me(n)}`]};return Ke(s,bz,r)},U8=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,wz=pe(Ur,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${me(n.position)}`],t[`color${me(n.color)}`]]}})(Qe(({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(gn(["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?U8(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?U8(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"})}}]}))),Hz=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiAppBar"}),{className:s,color:a="primary",enableColorOnDark:l=!1,position:u="fixed",...f}=r,p={...r,color:a,position:u,enableColorOnDark:l},h=xz(p);return v.jsx(wz,{square:!0,component:"header",ownerState:p,elevation:4,className:Oe(h.root,s,u==="fixed"&&"mui-fixed"),ref:n,...f})});function Q8(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function jz(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:s="any",stringify:a,trim:l=!1}=e;return(u,{inputValue:f,getOptionLabel:p})=>{let h=l?f.trim():f;n&&(h=h.toLowerCase()),t&&(h=Q8(h));const m=h?u.filter(y=>{let H=(a||p)(y);return n&&(H=H.toLowerCase()),t&&(H=Q8(H)),s==="start"?H.startsWith(h):H.includes(h)}):u;return typeof r=="number"?m.slice(0,r):m}}const Sz=jz(),K8=5,zz=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},Oz=[];function Cz(e){const{unstable_isActiveElementInListbox:t=zz,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:s=!1,autoSelect:a=!1,blurOnSelect:l=!1,clearOnBlur:u=!e.freeSolo,clearOnEscape:f=!1,componentName:p="useAutocomplete",defaultValue:h=e.multiple?Oz:null,disableClearable:m=!1,disableCloseOnSelect:y=!1,disabled:H,disabledItemsFocusable:A=!1,disableListWrap:w=!1,filterOptions:x=Sz,filterSelectedOptions:S=!1,freeSolo:z=!1,getOptionDisabled:O,getOptionKey:C,getOptionLabel:D=oe=>oe.label??oe,groupBy:k,handleHomeEndKeys:R=!e.freeSolo,id:M,includeInputInList:L=!1,inputValue:j,isOptionEqualToValue:B=(oe,le)=>oe===le,multiple:I=!1,onChange:F,onClose:$,onHighlightChange:W,onInputChange:ne,onOpen:_,open:J,openOnFocus:Q=!1,options:E,readOnly:Z=!1,selectOnFocus:X=!e.freeSolo,value:re}=e,ee=Rs(M);let ue=D;ue=oe=>{const le=D(oe);return typeof le!="string"?String(le):le};const de=P.useRef(!1),we=P.useRef(!0),ve=P.useRef(null),be=P.useRef(null),[Xe,Ie]=P.useState(null),[He,_e]=P.useState(-1),xe=s?0:-1,tt=P.useRef(xe),[Le,dt]=yi({controlled:re,default:h,name:p}),[N,te]=yi({controlled:j,default:"",name:p,state:"inputValue"}),[se,ye]=P.useState(!1),ce=P.useCallback((oe,le,Ee)=>{if(!(I?Le.length!(S&&(I?Le:[Le]).some(le=>le!==null&&B(oe,le)))),{inputValue:nt&&st?"":N,getOptionLabel:ue}):[],Ht=vj({filteredOptions:ct,value:Le,inputValue:N});P.useEffect(()=>{const oe=Le!==Ht.value;se&&!oe||z&&!oe||ce(null,Le,"reset")},[Le,ce,se,Ht.value,z]);const We=Ae&&ct.length>0&&!Z,Dt=mr(oe=>{oe===-1?ve.current.focus():Xe.querySelector(`[data-tag-index="${oe}"]`).focus()});P.useEffect(()=>{I&&He>Le.length-1&&(_e(-1),Dt(-1))},[Le,I,He,Dt]);function Jt(oe,le){if(!be.current||oe<0||oe>=ct.length)return-1;let Ee=oe;for(;;){const ot=be.current.querySelector(`[data-option-index="${Ee}"]`),lt=A?!1:!ot||ot.disabled||ot.getAttribute("aria-disabled")==="true";if(ot&&ot.hasAttribute("tabindex")&&!lt)return Ee;if(le==="next"?Ee=(Ee+1)%ct.length:Ee=(Ee-1+ct.length)%ct.length,Ee===oe)return-1}}const Be=mr(({event:oe,index:le,reason:Ee="auto"})=>{if(tt.current=le,le===-1?ve.current.removeAttribute("aria-activedescendant"):ve.current.setAttribute("aria-activedescendant",`${ee}-option-${le}`),W&&W(oe,le===-1?null:ct[le],Ee),!be.current)return;const ot=be.current.querySelector(`[role="option"].${n}-focused`);ot&&(ot.classList.remove(`${n}-focused`),ot.classList.remove(`${n}-focusVisible`));let lt=be.current;if(be.current.getAttribute("role")!=="listbox"&&(lt=be.current.parentElement.querySelector('[role="listbox"]')),!lt)return;if(le===-1){lt.scrollTop=0;return}const It=be.current.querySelector(`[data-option-index="${le}"]`);if(It&&(It.classList.add(`${n}-focused`),Ee==="keyboard"&&It.classList.add(`${n}-focusVisible`),lt.scrollHeight>lt.clientHeight&&Ee!=="mouse"&&Ee!=="touch")){const Nt=It,Ln=lt.clientHeight+lt.scrollTop,Ao=Nt.offsetTop+Nt.offsetHeight;Ao>Ln?lt.scrollTop=Ao-lt.clientHeight:Nt.offsetTop-Nt.offsetHeight*(k?1.3:0){if(!ft)return;const It=Jt((()=>{const Nt=ct.length-1;if(le==="reset")return xe;if(le==="start")return 0;if(le==="end")return Nt;const Ln=tt.current+le;return Ln<0?Ln===-1&&L?-1:w&&tt.current!==-1||Math.abs(le)>1?0:Nt:Ln>Nt?Ln===Nt+1&&L?-1:w||Math.abs(le)>1?Nt:0:Ln})(),Ee);if(Be({index:It,reason:ot,event:oe}),r&&le!=="reset")if(It===-1)ve.current.value=N;else{const Nt=ue(ct[It]);ve.current.value=Nt,Nt.toLowerCase().indexOf(N.toLowerCase())===0&&N.length>0&&ve.current.setSelectionRange(N.length,Nt.length)}}),Y=()=>{const oe=(le,Ee)=>{const ot=le?ue(le):"",lt=Ee?ue(Ee):"";return ot===lt};if(tt.current!==-1&&Ht.filteredOptions&&Ht.filteredOptions.length!==ct.length&&Ht.inputValue===N&&(I?Le.length===Ht.value.length&&Ht.value.every((le,Ee)=>ue(Le[Ee])===ue(le)):oe(Ht.value,Le))){const le=Ht.filteredOptions[tt.current];if(le)return ct.findIndex(Ee=>ue(Ee)===ue(le))}return-1},Pe=P.useCallback(()=>{if(!ft)return;const oe=Y();if(oe!==-1){tt.current=oe;return}const le=I?Le[0]:Le;if(ct.length===0||le==null){U({diff:"reset"});return}if(be.current){if(le!=null){const Ee=ct[tt.current];if(I&&Ee&&Le.findIndex(lt=>B(Ee,lt))!==-1)return;const ot=ct.findIndex(lt=>B(lt,le));ot===-1?U({diff:"reset"}):Be({index:ot});return}if(tt.current>=ct.length-1){Be({index:ct.length-1});return}Be({index:tt.current})}},[ct.length,I?!1:Le,S,U,Be,ft,N,I]),De=mr(oe=>{rp(be,oe),oe&&Pe()});P.useEffect(()=>{Pe()},[Pe]);const Te=oe=>{Ae||(je(!0),wt(!0),_&&_(oe))},Ne=(oe,le)=>{Ae&&(je(!1),$&&$(oe,le))},Je=(oe,le,Ee,ot)=>{if(I){if(Le.length===le.length&&Le.every((lt,It)=>lt===le[It]))return}else if(Le===le)return;F&&F(oe,le,Ee,ot),dt(le)},ke=P.useRef(!1),rt=(oe,le,Ee="selectOption",ot="options")=>{let lt=Ee,It=le;if(I){It=Array.isArray(Le)?Le.slice():[];const Nt=It.findIndex(Ln=>B(le,Ln));Nt===-1?It.push(le):ot!=="freeSolo"&&(It.splice(Nt,1),lt="removeOption")}ce(oe,It,lt),Je(oe,It,lt,{option:le}),!y&&(!oe||!oe.ctrlKey&&!oe.metaKey)&&Ne(oe,lt),(l===!0||l==="touch"&&ke.current||l==="mouse"&&!ke.current)&&ve.current.blur()};function vt(oe,le){if(oe===-1)return-1;let Ee=oe;for(;;){if(le==="next"&&Ee===Le.length||le==="previous"&&Ee===-1)return-1;const ot=Xe.querySelector(`[data-tag-index="${Ee}"]`);if(!ot||!ot.hasAttribute("tabindex")||ot.disabled||ot.getAttribute("aria-disabled")==="true")Ee+=le==="next"?1:-1;else return Ee}}const kt=(oe,le)=>{if(!I)return;N===""&&Ne(oe,"toggleInput");let Ee=He;He===-1?N===""&&le==="previous"&&(Ee=Le.length-1):(Ee+=le==="next"?1:-1,Ee<0&&(Ee=0),Ee===Le.length&&(Ee=-1)),Ee=vt(Ee,le),_e(Ee),Dt(Ee)},Qt=oe=>{de.current=!0,te(""),ne&&ne(oe,"","clear"),Je(oe,I?[]:null,"clear")},Fe=oe=>le=>{if(oe.onKeyDown&&oe.onKeyDown(le),!le.defaultMuiPrevented&&(He!==-1&&!["ArrowLeft","ArrowRight"].includes(le.key)&&(_e(-1),Dt(-1)),le.which!==229))switch(le.key){case"Home":ft&&R&&(le.preventDefault(),U({diff:"start",direction:"next",reason:"keyboard",event:le}));break;case"End":ft&&R&&(le.preventDefault(),U({diff:"end",direction:"previous",reason:"keyboard",event:le}));break;case"PageUp":le.preventDefault(),U({diff:-K8,direction:"previous",reason:"keyboard",event:le}),Te(le);break;case"PageDown":le.preventDefault(),U({diff:K8,direction:"next",reason:"keyboard",event:le}),Te(le);break;case"ArrowDown":le.preventDefault(),U({diff:1,direction:"next",reason:"keyboard",event:le}),Te(le);break;case"ArrowUp":le.preventDefault(),U({diff:-1,direction:"previous",reason:"keyboard",event:le}),Te(le);break;case"ArrowLeft":kt(le,"previous");break;case"ArrowRight":kt(le,"next");break;case"Enter":if(tt.current!==-1&&ft){const Ee=ct[tt.current],ot=O?O(Ee):!1;if(le.preventDefault(),ot)return;rt(le,Ee,"selectOption"),r&&ve.current.setSelectionRange(ve.current.value.length,ve.current.value.length)}else z&&N!==""&&nt===!1&&(I&&le.preventDefault(),rt(le,N,"createOption","freeSolo"));break;case"Escape":ft?(le.preventDefault(),le.stopPropagation(),Ne(le,"escape")):f&&(N!==""||I&&Le.length>0)&&(le.preventDefault(),le.stopPropagation(),Qt(le));break;case"Backspace":if(I&&!Z&&N===""&&Le.length>0){const Ee=He===-1?Le.length-1:He,ot=Le.slice();ot.splice(Ee,1),Je(le,ot,"removeOption",{option:Le[Ee]})}break;case"Delete":if(I&&!Z&&N===""&&Le.length>0&&He!==-1){const Ee=He,ot=Le.slice();ot.splice(Ee,1),Je(le,ot,"removeOption",{option:Le[Ee]})}break}},Rt=oe=>{ye(!0),Q&&!de.current&&Te(oe)},un=oe=>{if(t(be)){ve.current.focus();return}ye(!1),we.current=!0,de.current=!1,a&&tt.current!==-1&&ft?rt(oe,ct[tt.current],"blur"):a&&z&&N!==""?rt(oe,N,"blur","freeSolo"):u&&ce(oe,Le,"blur"),Ne(oe,"blur")},zn=oe=>{const le=oe.target.value;N!==le&&(te(le),wt(!1),ne&&ne(oe,le,"input")),le===""?!m&&!I&&Je(oe,null,"clear"):Te(oe)},Gn=oe=>{const le=Number(oe.currentTarget.getAttribute("data-option-index"));tt.current!==le&&Be({event:oe,index:le,reason:"mouse"})},An=oe=>{Be({event:oe,index:Number(oe.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ke.current=!0},Mr=oe=>{const le=Number(oe.currentTarget.getAttribute("data-option-index"));rt(oe,ct[le],"selectOption"),ke.current=!1},mo=oe=>le=>{const Ee=Le.slice();Ee.splice(oe,1),Je(le,Ee,"removeOption",{option:Le[oe]})},go=oe=>{Ae?Ne(oe,"toggleInput"):Te(oe)},ds=oe=>{oe.currentTarget.contains(oe.target)&&oe.target.getAttribute("id")!==ee&&oe.preventDefault()},yo=oe=>{oe.currentTarget.contains(oe.target)&&(ve.current.focus(),X&&we.current&&ve.current.selectionEnd-ve.current.selectionStart===0&&ve.current.select(),we.current=!1)},Pn=oe=>{!H&&(N===""||!Ae)&&go(oe)};let on=z&&N.length>0;on=on||(I?Le.length>0:Le!==null);let Re=ct;return k&&(Re=ct.reduce((oe,le,Ee)=>{const ot=k(le);return oe.length>0&&oe[oe.length-1].group===ot?oe[oe.length-1].options.push(le):oe.push({key:Ee,index:Ee,group:ot,options:[le]}),oe},[])),H&&se&&un(),{getRootProps:(oe={})=>({"aria-owns":We?`${ee}-listbox`:null,...oe,onKeyDown:Fe(oe),onMouseDown:ds,onClick:yo}),getInputLabelProps:()=>({id:`${ee}-label`,htmlFor:ee}),getInputProps:()=>({id:ee,value:N,onBlur:un,onFocus:Rt,onChange:zn,onMouseDown:Pn,"aria-activedescendant":ft?"":null,"aria-autocomplete":r?"both":"list","aria-controls":We?`${ee}-listbox`:void 0,"aria-expanded":We,autoComplete:"off",ref:ve,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:H}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Qt}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:go}),getTagProps:({index:oe})=>({key:oe,"data-tag-index":oe,tabIndex:-1,...!Z&&{onDelete:mo(oe)}}),getListboxProps:()=>({role:"listbox",id:`${ee}-listbox`,"aria-labelledby":`${ee}-label`,ref:De,onMouseDown:oe=>{oe.preventDefault()}}),getOptionProps:({index:oe,option:le})=>{const Ee=(I?Le:[Le]).some(lt=>lt!=null&&B(le,lt)),ot=O?O(le):!1;return{key:(C==null?void 0:C(le))??ue(le),tabIndex:-1,role:"option",id:`${ee}-option-${oe}`,onMouseMove:Gn,onClick:Mr,onTouchStart:An,"data-option-index":oe,"aria-disabled":ot,"aria-selected":Ee}},id:ee,inputValue:N,value:Le,dirty:on,expanded:ft&&Xe,popupOpen:ft,focused:se||He!==-1,anchorEl:Xe,setAnchorEl:Ie,focusedTag:He,groupedOptions:Re}}var Or="top",po="bottom",vo="right",Cr="left",Sy="auto",Yu=[Or,po,vo,Cr],Dl="start",ju="end",Dz="clippingParents",h1="viewport",Rc="popper",Tz="reference",_8=Yu.reduce(function(e,t){return e.concat([t+"-"+Dl,t+"-"+ju])},[]),m1=[].concat(Yu,[Sy]).reduce(function(e,t){return e.concat([t,t+"-"+Dl,t+"-"+ju])},[]),kz="beforeRead",Rz="read",Ez="afterRead",Mz="beforeMain",Lz="main",Xz="afterMain",Nz="beforeWrite",Bz="write",Vz="afterWrite",Iz=[kz,Rz,Ez,Mz,Lz,Xz,Nz,Bz,Vz];function is(e){return e?(e.nodeName||"").toLowerCase():null}function Qr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function da(e){var t=Qr(e).Element;return e instanceof t||e instanceof Element}function uo(e){var t=Qr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function zy(e){if(typeof ShadowRoot>"u")return!1;var t=Qr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Wz(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},s=t.attributes[n]||{},a=t.elements[n];!uo(a)||!is(a)||(Object.assign(a.style,r),Object.keys(s).forEach(function(l){var u=s[l];u===!1?a.removeAttribute(l):a.setAttribute(l,u===!0?"":u)}))})}function Jz(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 s=t.elements[r],a=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=l.reduce(function(f,p){return f[p]="",f},{});!uo(s)||!is(s)||(Object.assign(s.style,u),Object.keys(a).forEach(function(f){s.removeAttribute(f)}))})}}const Fz={name:"applyStyles",enabled:!0,phase:"write",fn:Wz,effect:Jz,requires:["computeStyles"]};function os(e){return e.split("-")[0]}var ia=Math.max,lp=Math.min,Tl=Math.round;function pg(){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 g1(){return!/^((?!chrome|android).)*safari/i.test(pg())}function kl(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),s=1,a=1;t&&uo(e)&&(s=e.offsetWidth>0&&Tl(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Tl(r.height)/e.offsetHeight||1);var l=da(e)?Qr(e):window,u=l.visualViewport,f=!g1()&&n,p=(r.left+(f&&u?u.offsetLeft:0))/s,h=(r.top+(f&&u?u.offsetTop:0))/a,m=r.width/s,y=r.height/a;return{width:m,height:y,top:h,right:p+m,bottom:h+y,left:p,x:p,y:h}}function Oy(e){var t=kl(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 y1(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&zy(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Es(e){return Qr(e).getComputedStyle(e)}function Yz(e){return["table","td","th"].indexOf(is(e))>=0}function wi(e){return((da(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zp(e){return is(e)==="html"?e:e.assignedSlot||e.parentNode||(zy(e)?e.host:null)||wi(e)}function $8(e){return!uo(e)||Es(e).position==="fixed"?null:e.offsetParent}function qz(e){var t=/firefox/i.test(pg()),n=/Trident/i.test(pg());if(n&&uo(e)){var r=Es(e);if(r.position==="fixed")return null}var s=Zp(e);for(zy(s)&&(s=s.host);uo(s)&&["html","body"].indexOf(is(s))<0;){var a=Es(s);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 s;s=s.parentNode}return null}function qu(e){for(var t=Qr(e),n=$8(e);n&&Yz(n)&&Es(n).position==="static";)n=$8(n);return n&&(is(n)==="html"||is(n)==="body"&&Es(n).position==="static")?t:n||qz(e)||t}function Cy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function uu(e,t,n){return ia(e,lp(t,n))}function Zz(e,t,n){var r=uu(e,t,n);return r>n?n:r}function A1(){return{top:0,right:0,bottom:0,left:0}}function P1(e){return Object.assign({},A1(),e)}function b1(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Gz=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,P1(typeof t!="number"?t:b1(t,Yu))};function Uz(e){var t,n=e.state,r=e.name,s=e.options,a=n.elements.arrow,l=n.modifiersData.popperOffsets,u=os(n.placement),f=Cy(u),p=[Cr,vo].indexOf(u)>=0,h=p?"height":"width";if(!(!a||!l)){var m=Gz(s.padding,n),y=Oy(a),H=f==="y"?Or:Cr,A=f==="y"?po:vo,w=n.rects.reference[h]+n.rects.reference[f]-l[f]-n.rects.popper[h],x=l[f]-n.rects.reference[f],S=qu(a),z=S?f==="y"?S.clientHeight||0:S.clientWidth||0:0,O=w/2-x/2,C=m[H],D=z-y[h]-m[A],k=z/2-y[h]/2+O,R=uu(C,k,D),M=f;n.modifiersData[r]=(t={},t[M]=R,t.centerOffset=R-k,t)}}function Qz(e){var t=e.state,n=e.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||y1(t.elements.popper,s)&&(t.elements.arrow=s))}const Kz={name:"arrow",enabled:!0,phase:"main",fn:Uz,effect:Qz,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Rl(e){return e.split("-")[1]}var _z={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $z(e,t){var n=e.x,r=e.y,s=t.devicePixelRatio||1;return{x:Tl(n*s)/s||0,y:Tl(r*s)/s||0}}function ex(e){var t,n=e.popper,r=e.popperRect,s=e.placement,a=e.variation,l=e.offsets,u=e.position,f=e.gpuAcceleration,p=e.adaptive,h=e.roundOffsets,m=e.isFixed,y=l.x,H=y===void 0?0:y,A=l.y,w=A===void 0?0:A,x=typeof h=="function"?h({x:H,y:w}):{x:H,y:w};H=x.x,w=x.y;var S=l.hasOwnProperty("x"),z=l.hasOwnProperty("y"),O=Cr,C=Or,D=window;if(p){var k=qu(n),R="clientHeight",M="clientWidth";if(k===Qr(n)&&(k=wi(n),Es(k).position!=="static"&&u==="absolute"&&(R="scrollHeight",M="scrollWidth")),k=k,s===Or||(s===Cr||s===vo)&&a===ju){C=po;var L=m&&k===D&&D.visualViewport?D.visualViewport.height:k[R];w-=L-r.height,w*=f?1:-1}if(s===Cr||(s===Or||s===po)&&a===ju){O=vo;var j=m&&k===D&&D.visualViewport?D.visualViewport.width:k[M];H-=j-r.width,H*=f?1:-1}}var B=Object.assign({position:u},p&&_z),I=h===!0?$z({x:H,y:w},Qr(n)):{x:H,y:w};if(H=I.x,w=I.y,f){var F;return Object.assign({},B,(F={},F[C]=z?"0":"",F[O]=S?"0":"",F.transform=(D.devicePixelRatio||1)<=1?"translate("+H+"px, "+w+"px)":"translate3d("+H+"px, "+w+"px, 0)",F))}return Object.assign({},B,(t={},t[C]=z?w+"px":"",t[O]=S?H+"px":"",t.transform="",t))}function eO(e){var t=e.state,n=e.options,r=n.gpuAcceleration,s=r===void 0?!0:r,a=n.adaptive,l=a===void 0?!0:a,u=n.roundOffsets,f=u===void 0?!0:u,p={placement:os(t.placement),variation:Rl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ex(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ex(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const tO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:eO,data:{}};var yd={passive:!0};function nO(e){var t=e.state,n=e.instance,r=e.options,s=r.scroll,a=s===void 0?!0:s,l=r.resize,u=l===void 0?!0:l,f=Qr(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&p.forEach(function(h){h.addEventListener("scroll",n.update,yd)}),u&&f.addEventListener("resize",n.update,yd),function(){a&&p.forEach(function(h){h.removeEventListener("scroll",n.update,yd)}),u&&f.removeEventListener("resize",n.update,yd)}}const rO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:nO,data:{}};var oO={left:"right",right:"left",bottom:"top",top:"bottom"};function Bd(e){return e.replace(/left|right|bottom|top/g,function(t){return oO[t]})}var sO={start:"end",end:"start"};function tx(e){return e.replace(/start|end/g,function(t){return sO[t]})}function Dy(e){var t=Qr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ty(e){return kl(wi(e)).left+Dy(e).scrollLeft}function iO(e,t){var n=Qr(e),r=wi(e),s=n.visualViewport,a=r.clientWidth,l=r.clientHeight,u=0,f=0;if(s){a=s.width,l=s.height;var p=g1();(p||!p&&t==="fixed")&&(u=s.offsetLeft,f=s.offsetTop)}return{width:a,height:l,x:u+Ty(e),y:f}}function aO(e){var t,n=wi(e),r=Dy(e),s=(t=e.ownerDocument)==null?void 0:t.body,a=ia(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),l=ia(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),u=-r.scrollLeft+Ty(e),f=-r.scrollTop;return Es(s||n).direction==="rtl"&&(u+=ia(n.clientWidth,s?s.clientWidth:0)-a),{width:a,height:l,x:u,y:f}}function ky(e){var t=Es(e),n=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function x1(e){return["html","body","#document"].indexOf(is(e))>=0?e.ownerDocument.body:uo(e)&&ky(e)?e:x1(Zp(e))}function fu(e,t){var n;t===void 0&&(t=[]);var r=x1(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),a=Qr(r),l=s?[a].concat(a.visualViewport||[],ky(r)?r:[]):r,u=t.concat(l);return s?u:u.concat(fu(Zp(l)))}function vg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function lO(e,t){var n=kl(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 nx(e,t,n){return t===h1?vg(iO(e,n)):da(t)?lO(t,n):vg(aO(wi(e)))}function cO(e){var t=fu(Zp(e)),n=["absolute","fixed"].indexOf(Es(e).position)>=0,r=n&&uo(e)?qu(e):e;return da(r)?t.filter(function(s){return da(s)&&y1(s,r)&&is(s)!=="body"}):[]}function uO(e,t,n,r){var s=t==="clippingParents"?cO(e):[].concat(t),a=[].concat(s,[n]),l=a[0],u=a.reduce(function(f,p){var h=nx(e,p,r);return f.top=ia(h.top,f.top),f.right=lp(h.right,f.right),f.bottom=lp(h.bottom,f.bottom),f.left=ia(h.left,f.left),f},nx(e,l,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function w1(e){var t=e.reference,n=e.element,r=e.placement,s=r?os(r):null,a=r?Rl(r):null,l=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,f;switch(s){case Or:f={x:l,y:t.y-n.height};break;case po:f={x:l,y:t.y+t.height};break;case vo:f={x:t.x+t.width,y:u};break;case Cr:f={x:t.x-n.width,y:u};break;default:f={x:t.x,y:t.y}}var p=s?Cy(s):null;if(p!=null){var h=p==="y"?"height":"width";switch(a){case Dl:f[p]=f[p]-(t[h]/2-n[h]/2);break;case ju:f[p]=f[p]+(t[h]/2-n[h]/2);break}}return f}function Su(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=r===void 0?e.placement:r,a=n.strategy,l=a===void 0?e.strategy:a,u=n.boundary,f=u===void 0?Dz:u,p=n.rootBoundary,h=p===void 0?h1:p,m=n.elementContext,y=m===void 0?Rc:m,H=n.altBoundary,A=H===void 0?!1:H,w=n.padding,x=w===void 0?0:w,S=P1(typeof x!="number"?x:b1(x,Yu)),z=y===Rc?Tz:Rc,O=e.rects.popper,C=e.elements[A?z:y],D=uO(da(C)?C:C.contextElement||wi(e.elements.popper),f,h,l),k=kl(e.elements.reference),R=w1({reference:k,element:O,strategy:"absolute",placement:s}),M=vg(Object.assign({},O,R)),L=y===Rc?M:k,j={top:D.top-L.top+S.top,bottom:L.bottom-D.bottom+S.bottom,left:D.left-L.left+S.left,right:L.right-D.right+S.right},B=e.modifiersData.offset;if(y===Rc&&B){var I=B[s];Object.keys(j).forEach(function(F){var $=[vo,po].indexOf(F)>=0?1:-1,W=[Or,po].indexOf(F)>=0?"y":"x";j[F]+=I[W]*$})}return j}function fO(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=n.boundary,a=n.rootBoundary,l=n.padding,u=n.flipVariations,f=n.allowedAutoPlacements,p=f===void 0?m1:f,h=Rl(r),m=h?u?_8:_8.filter(function(A){return Rl(A)===h}):Yu,y=m.filter(function(A){return p.indexOf(A)>=0});y.length===0&&(y=m);var H=y.reduce(function(A,w){return A[w]=Su(e,{placement:w,boundary:s,rootBoundary:a,padding:l})[os(w)],A},{});return Object.keys(H).sort(function(A,w){return H[A]-H[w]})}function dO(e){if(os(e)===Sy)return[];var t=Bd(e);return[tx(e),t,tx(t)]}function pO(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var s=n.mainAxis,a=s===void 0?!0:s,l=n.altAxis,u=l===void 0?!0:l,f=n.fallbackPlacements,p=n.padding,h=n.boundary,m=n.rootBoundary,y=n.altBoundary,H=n.flipVariations,A=H===void 0?!0:H,w=n.allowedAutoPlacements,x=t.options.placement,S=os(x),z=S===x,O=f||(z||!A?[Bd(x)]:dO(x)),C=[x].concat(O).reduce(function(ee,ue){return ee.concat(os(ue)===Sy?fO(t,{placement:ue,boundary:h,rootBoundary:m,padding:p,flipVariations:A,allowedAutoPlacements:w}):ue)},[]),D=t.rects.reference,k=t.rects.popper,R=new Map,M=!0,L=C[0],j=0;j=0,W=$?"width":"height",ne=Su(t,{placement:B,boundary:h,rootBoundary:m,altBoundary:y,padding:p}),_=$?F?vo:Cr:F?po:Or;D[W]>k[W]&&(_=Bd(_));var J=Bd(_),Q=[];if(a&&Q.push(ne[I]<=0),u&&Q.push(ne[_]<=0,ne[J]<=0),Q.every(function(ee){return ee})){L=B,M=!1;break}R.set(B,Q)}if(M)for(var E=A?3:1,Z=function(ue){var de=C.find(function(we){var ve=R.get(we);if(ve)return ve.slice(0,ue).every(function(be){return be})});if(de)return L=de,"break"},X=E;X>0;X--){var re=Z(X);if(re==="break")break}t.placement!==L&&(t.modifiersData[r]._skip=!0,t.placement=L,t.reset=!0)}}const vO={name:"flip",enabled:!0,phase:"main",fn:pO,requiresIfExists:["offset"],data:{_skip:!1}};function rx(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 ox(e){return[Or,vo,po,Cr].some(function(t){return e[t]>=0})}function hO(e){var t=e.state,n=e.name,r=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,l=Su(t,{elementContext:"reference"}),u=Su(t,{altBoundary:!0}),f=rx(l,r),p=rx(u,s,a),h=ox(f),m=ox(p);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:p,isReferenceHidden:h,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":m})}const mO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hO};function gO(e,t,n){var r=os(e),s=[Cr,Or].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=a[0],u=a[1];return l=l||0,u=(u||0)*s,[Cr,vo].indexOf(r)>=0?{x:u,y:l}:{x:l,y:u}}function yO(e){var t=e.state,n=e.options,r=e.name,s=n.offset,a=s===void 0?[0,0]:s,l=m1.reduce(function(h,m){return h[m]=gO(m,t.rects,a),h},{}),u=l[t.placement],f=u.x,p=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=p),t.modifiersData[r]=l}const AO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yO};function PO(e){var t=e.state,n=e.name;t.modifiersData[n]=w1({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const bO={name:"popperOffsets",enabled:!0,phase:"read",fn:PO,data:{}};function xO(e){return e==="x"?"y":"x"}function wO(e){var t=e.state,n=e.options,r=e.name,s=n.mainAxis,a=s===void 0?!0:s,l=n.altAxis,u=l===void 0?!1:l,f=n.boundary,p=n.rootBoundary,h=n.altBoundary,m=n.padding,y=n.tether,H=y===void 0?!0:y,A=n.tetherOffset,w=A===void 0?0:A,x=Su(t,{boundary:f,rootBoundary:p,padding:m,altBoundary:h}),S=os(t.placement),z=Rl(t.placement),O=!z,C=Cy(S),D=xO(C),k=t.modifiersData.popperOffsets,R=t.rects.reference,M=t.rects.popper,L=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,j=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(k){if(a){var F,$=C==="y"?Or:Cr,W=C==="y"?po:vo,ne=C==="y"?"height":"width",_=k[C],J=_+x[$],Q=_-x[W],E=H?-M[ne]/2:0,Z=z===Dl?R[ne]:M[ne],X=z===Dl?-M[ne]:-R[ne],re=t.elements.arrow,ee=H&&re?Oy(re):{width:0,height:0},ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:A1(),de=ue[$],we=ue[W],ve=uu(0,R[ne],ee[ne]),be=O?R[ne]/2-E-ve-de-j.mainAxis:Z-ve-de-j.mainAxis,Xe=O?-R[ne]/2+E+ve+we+j.mainAxis:X+ve+we+j.mainAxis,Ie=t.elements.arrow&&qu(t.elements.arrow),He=Ie?C==="y"?Ie.clientTop||0:Ie.clientLeft||0:0,_e=(F=B==null?void 0:B[C])!=null?F:0,xe=_+be-_e-He,tt=_+Xe-_e,Le=uu(H?lp(J,xe):J,_,H?ia(Q,tt):Q);k[C]=Le,I[C]=Le-_}if(u){var dt,N=C==="x"?Or:Cr,te=C==="x"?po:vo,se=k[D],ye=D==="y"?"height":"width",ce=se+x[N],Ae=se-x[te],je=[Or,Cr].indexOf(S)!==-1,st=(dt=B==null?void 0:B[D])!=null?dt:0,wt=je?ce:se-R[ye]-M[ye]-st+j.altAxis,nt=je?se+R[ye]+M[ye]-st-j.altAxis:Ae,ft=H&&je?Zz(wt,se,nt):uu(H?wt:ce,se,H?nt:Ae);k[D]=ft,I[D]=ft-se}t.modifiersData[r]=I}}const HO={name:"preventOverflow",enabled:!0,phase:"main",fn:wO,requiresIfExists:["offset"]};function jO(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function SO(e){return e===Qr(e)||!uo(e)?Dy(e):jO(e)}function zO(e){var t=e.getBoundingClientRect(),n=Tl(t.width)/e.offsetWidth||1,r=Tl(t.height)/e.offsetHeight||1;return n!==1||r!==1}function OO(e,t,n){n===void 0&&(n=!1);var r=uo(t),s=uo(t)&&zO(t),a=wi(t),l=kl(e,s,n),u={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&((is(t)!=="body"||ky(a))&&(u=SO(t)),uo(t)?(f=kl(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=Ty(a))),{x:l.left+u.scrollLeft-f.x,y:l.top+u.scrollTop-f.y,width:l.width,height:l.height}}function CO(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function s(a){n.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(u){if(!n.has(u)){var f=t.get(u);f&&s(f)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||s(a)}),r}function DO(e){var t=CO(e);return Iz.reduce(function(n,r){return n.concat(t.filter(function(s){return s.phase===r}))},[])}function TO(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function kO(e){var t=e.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var sx={placement:"bottom",modifiers:[],strategy:"absolute"};function ix(){for(var e=arguments.length,t=new Array(e),n=0;n{a||u(LO(s)||document.body)},[s,a]),fo(()=>{if(l&&!a)return rp(n,l),()=>{rp(n,null)}},[n,l,a]),a){if(P.isValidElement(r)){const p={ref:f};return P.cloneElement(r,p)}return r}return l&&p1.createPortal(r,l)});function XO(e){return Ge("MuiPopper",e)}Ue("MuiPopper",["root"]);function NO(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 hg(e){return typeof e=="function"?e():e}function BO(e){return e.nodeType!==void 0}const VO=e=>{const{classes:t}=e;return Ke({root:["root"]},XO,t)},IO={},WO=P.forwardRef(function(t,n){const{anchorEl:r,children:s,direction:a,disablePortal:l,modifiers:u,open:f,placement:p,popperOptions:h,popperRef:m,slotProps:y={},slots:H={},TransitionProps:A,ownerState:w,...x}=t,S=P.useRef(null),z=rn(S,n),O=P.useRef(null),C=rn(O,m),D=P.useRef(C);fo(()=>{D.current=C},[C]),P.useImperativeHandle(m,()=>O.current,[]);const k=NO(p,a),[R,M]=P.useState(k),[L,j]=P.useState(hg(r));P.useEffect(()=>{O.current&&O.current.forceUpdate()}),P.useEffect(()=>{r&&j(hg(r))},[r]),fo(()=>{if(!L||!f)return;const W=J=>{M(J.placement)};let ne=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:J})=>{W(J)}}];u!=null&&(ne=ne.concat(u)),h&&h.modifiers!=null&&(ne=ne.concat(h.modifiers));const _=MO(L,S.current,{placement:k,...h,modifiers:ne});return D.current(_),()=>{_.destroy(),D.current(null)}},[L,l,u,f,h,k]);const B={placement:R};A!==null&&(B.TransitionProps=A);const I=VO(t),F=H.root??"div",$=sp({elementType:F,externalSlotProps:y.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:z},ownerState:t,className:I.root});return v.jsx(F,{...$,children:typeof s=="function"?s(B):s})}),JO=P.forwardRef(function(t,n){const{anchorEl:r,children:s,container:a,direction:l="ltr",disablePortal:u=!1,keepMounted:f=!1,modifiers:p,open:h,placement:m="bottom",popperOptions:y=IO,popperRef:H,style:A,transition:w=!1,slotProps:x={},slots:S={},...z}=t,[O,C]=P.useState(!0),D=()=>{C(!1)},k=()=>{C(!0)};if(!f&&!h&&(!w||O))return null;let R;if(a)R=a;else if(r){const j=hg(r);R=j&&BO(j)?ir(j).body:ir(null).body}const M=!h&&f&&(!w||O)?"none":void 0,L=w?{in:h,onEnter:D,onExited:k}:void 0;return v.jsx(H1,{disablePortal:u,container:R,children:v.jsx(WO,{anchorEl:r,direction:l,disablePortal:u,modifiers:p,ref:n,open:w?!O:h,placement:m,popperOptions:y,popperRef:H,slotProps:x,slots:S,...z,style:{position:"fixed",top:0,left:0,display:M,...A},TransitionProps:L,children:s})})}),FO=pe(JO,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Gp=P.forwardRef(function(t,n){const r=Ju(),s=$e({props:t,name:"MuiPopper"}),{anchorEl:a,component:l,components:u,componentsProps:f,container:p,disablePortal:h,keepMounted:m,modifiers:y,open:H,placement:A,popperOptions:w,popperRef:x,transition:S,slots:z,slotProps:O,...C}=s,D=(z==null?void 0:z.root)??(u==null?void 0:u.Root),k={anchorEl:a,container:p,disablePortal:h,keepMounted:m,modifiers:y,open:H,placement:A,popperOptions:w,popperRef:x,transition:S,...C};return v.jsx(FO,{as:l,direction:r?"rtl":"ltr",slots:{root:D},slotProps:O??f,...k,ref:n})});function YO(e){return Ge("MuiListSubheader",e)}Ue("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const qO=e=>{const{classes:t,color:n,disableGutters:r,inset:s,disableSticky:a}=e,l={root:["root",n!=="default"&&`color${me(n)}`,!r&&"gutters",s&&"inset",!a&&"sticky"]};return Ke(l,YO,t)},ZO=pe("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${me(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Qe(({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}}]}))),mg=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiListSubheader"}),{className:s,color:a="default",component:l="li",disableGutters:u=!1,disableSticky:f=!1,inset:p=!1,...h}=r,m={...r,color:a,component:l,disableGutters:u,disableSticky:f,inset:p},y=qO(m);return v.jsx(ZO,{as:l,className:Oe(y.root,s),ref:n,ownerState:m,...h})});mg&&(mg.muiSkipListHighlight=!0);const GO=At(v.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"}),"Cancel");function UO(e){return Ge("MuiChip",e)}const Mt=Ue("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"]),QO=e=>{const{classes:t,disabled:n,size:r,color:s,iconColor:a,onDelete:l,clickable:u,variant:f}=e,p={root:["root",f,n&&"disabled",`size${me(r)}`,`color${me(s)}`,u&&"clickable",u&&`clickableColor${me(s)}`,l&&"deletable",l&&`deletableColor${me(s)}`,`${f}${me(s)}`],label:["label",`label${me(r)}`],avatar:["avatar",`avatar${me(r)}`,`avatarColor${me(s)}`],icon:["icon",`icon${me(r)}`,`iconColor${me(a)}`],deleteIcon:["deleteIcon",`deleteIcon${me(r)}`,`deleteIconColor${me(s)}`,`deleteIcon${me(f)}Color${me(s)}`]};return Ke(p,UO,t)},KO=pe("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:s,clickable:a,onDelete:l,size:u,variant:f}=n;return[{[`& .${Mt.avatar}`]:t.avatar},{[`& .${Mt.avatar}`]:t[`avatar${me(u)}`]},{[`& .${Mt.avatar}`]:t[`avatarColor${me(r)}`]},{[`& .${Mt.icon}`]:t.icon},{[`& .${Mt.icon}`]:t[`icon${me(u)}`]},{[`& .${Mt.icon}`]:t[`iconColor${me(s)}`]},{[`& .${Mt.deleteIcon}`]:t.deleteIcon},{[`& .${Mt.deleteIcon}`]:t[`deleteIcon${me(u)}`]},{[`& .${Mt.deleteIcon}`]:t[`deleteIconColor${me(r)}`]},{[`& .${Mt.deleteIcon}`]:t[`deleteIcon${me(f)}Color${me(r)}`]},t.root,t[`size${me(u)}`],t[`color${me(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${me(r)})`],l&&t.deletable,l&&r!=="default"&&t[`deletableColor${me(r)}`],t[f],t[`${f}${me(r)}`]]}})(Qe(({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,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",[`&.${Mt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Mt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Mt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Mt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Mt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Mt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Mt.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Pt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Pt(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Mt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Mt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(gn(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Mt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:Pt(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Mt.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Mt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Mt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Pt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(gn(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Mt.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Pt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Mt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Pt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(gn(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Mt.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]}`,[`&.${Mt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Mt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Mt.avatar}`]:{marginLeft:4},[`& .${Mt.avatarSmall}`]:{marginLeft:2},[`& .${Mt.icon}`]:{marginLeft:4},[`& .${Mt.iconSmall}`]:{marginLeft:2},[`& .${Mt.deleteIcon}`]:{marginRight:5},[`& .${Mt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(gn()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Pt(e.palette[n].main,.7)}`,[`&.${Mt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Mt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Pt(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Mt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Pt(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),_O=pe("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${me(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 ax(e){return e.key==="Backspace"||e.key==="Delete"}const Zu=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiChip"}),{avatar:s,className:a,clickable:l,color:u="default",component:f,deleteIcon:p,disabled:h=!1,icon:m,label:y,onClick:H,onDelete:A,onKeyDown:w,onKeyUp:x,size:S="medium",variant:z="filled",tabIndex:O,skipFocusWhenDisabled:C=!1,...D}=r,k=P.useRef(null),R=rn(k,n),M=Q=>{Q.stopPropagation(),A&&A(Q)},L=Q=>{Q.currentTarget===Q.target&&ax(Q)&&Q.preventDefault(),w&&w(Q)},j=Q=>{Q.currentTarget===Q.target&&A&&ax(Q)&&A(Q),x&&x(Q)},B=l!==!1&&H?!0:l,I=B||A?fa:f||"div",F={...r,component:I,disabled:h,size:S,color:u,iconColor:P.isValidElement(m)&&m.props.color||u,onDelete:!!A,clickable:B,variant:z},$=QO(F),W=I===fa?{component:f||"div",focusVisibleClassName:$.focusVisible,...A&&{disableRipple:!0}}:{};let ne=null;A&&(ne=p&&P.isValidElement(p)?P.cloneElement(p,{className:Oe(p.props.className,$.deleteIcon),onClick:M}):v.jsx(GO,{className:Oe($.deleteIcon),onClick:M}));let _=null;s&&P.isValidElement(s)&&(_=P.cloneElement(s,{className:Oe($.avatar,s.props.className)}));let J=null;return m&&P.isValidElement(m)&&(J=P.cloneElement(m,{className:Oe($.icon,m.props.className)})),v.jsxs(KO,{as:I,className:Oe($.root,a),disabled:B&&h?!0:void 0,onClick:H,onKeyDown:L,onKeyUp:j,ref:R,tabIndex:C&&h?-1:O,ownerState:F,...W,...D,children:[_||J,v.jsx(_O,{className:Oe($.label),ownerState:F,children:y}),ne]})});function Ad(e){return parseInt(e,10)||0}const $O={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function eC(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const tC=P.forwardRef(function(t,n){const{onChange:r,maxRows:s,minRows:a=1,style:l,value:u,...f}=t,{current:p}=P.useRef(u!=null),h=P.useRef(null),m=rn(n,h),y=P.useRef(null),H=P.useRef(null),A=P.useCallback(()=>{const S=h.current,O=Mo(S).getComputedStyle(S);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};const C=H.current;C.style.width=O.width,C.value=S.value||t.placeholder||"x",C.value.slice(-1)===` +`&&(C.value+=" ");const D=O.boxSizing,k=Ad(O.paddingBottom)+Ad(O.paddingTop),R=Ad(O.borderBottomWidth)+Ad(O.borderTopWidth),M=C.scrollHeight;C.value="x";const L=C.scrollHeight;let j=M;a&&(j=Math.max(Number(a)*L,j)),s&&(j=Math.min(Number(s)*L,j)),j=Math.max(j,L);const B=j+(D==="border-box"?k+R:0),I=Math.abs(j-M)<=1;return{outerHeightStyle:B,overflowing:I}},[s,a,t.placeholder]),w=P.useCallback(()=>{const S=A();if(eC(S))return;const z=S.outerHeightStyle,O=h.current;y.current!==z&&(y.current=z,O.style.height=`${z}px`),O.style.overflow=S.overflowing?"hidden":""},[A]);fo(()=>{const S=()=>{w()};let z;const O=my(S),C=h.current,D=Mo(C);D.addEventListener("resize",O);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(S),k.observe(C)),()=>{O.clear(),cancelAnimationFrame(z),D.removeEventListener("resize",O),k&&k.disconnect()}},[A,w]),fo(()=>{w()});const x=S=>{p||w(),r&&r(S)};return v.jsxs(P.Fragment,{children:[v.jsx("textarea",{value:u,onChange:x,ref:m,rows:a,style:l,...f}),v.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:H,tabIndex:-1,style:{...$O.shadow,...l,paddingTop:0,paddingBottom:0}})]})});function El(e){return typeof e=="string"}function Hi({props:e,states:t,muiFormControl:n}){return t.reduce((r,s)=>(r[s]=e[s],n&&typeof e[s]>"u"&&(r[s]=n[s]),r),{})}const Up=P.createContext(void 0);function Bo(){return P.useContext(Up)}function lx(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function cp(e,t=!1){return e&&(lx(e.value)&&e.value!==""||t&&lx(e.defaultValue)&&e.defaultValue!=="")}function nC(e){return e.startAdornment}function rC(e){return Ge("MuiInputBase",e)}const Jr=Ue("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var cx;const Qp=(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${me(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Kp=(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]},oC=e=>{const{classes:t,color:n,disabled:r,error:s,endAdornment:a,focused:l,formControl:u,fullWidth:f,hiddenLabel:p,multiline:h,readOnly:m,size:y,startAdornment:H,type:A}=e,w={root:["root",`color${me(n)}`,r&&"disabled",s&&"error",f&&"fullWidth",l&&"focused",u&&"formControl",y&&y!=="medium"&&`size${me(y)}`,h&&"multiline",H&&"adornedStart",a&&"adornedEnd",p&&"hiddenLabel",m&&"readOnly"],input:["input",r&&"disabled",A==="search"&&"inputTypeSearch",h&&"inputMultiline",y==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",H&&"inputAdornedStart",a&&"inputAdornedEnd",m&&"readOnly"]};return Ke(w,rC,t)},_p=pe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Qp})(Qe(({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",[`&.${Jr.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%"}}]}))),$p=pe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Kp})(Qe(({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"},s=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] + .${Jr.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${Jr.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"}}]}})),ux=xy({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),ev=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:a,autoFocus:l,className:u,color:f,components:p={},componentsProps:h={},defaultValue:m,disabled:y,disableInjectingGlobalStyles:H,endAdornment:A,error:w,fullWidth:x=!1,id:S,inputComponent:z="input",inputProps:O={},inputRef:C,margin:D,maxRows:k,minRows:R,multiline:M=!1,name:L,onBlur:j,onChange:B,onClick:I,onFocus:F,onKeyDown:$,onKeyUp:W,placeholder:ne,readOnly:_,renderSuffix:J,rows:Q,size:E,slotProps:Z={},slots:X={},startAdornment:re,type:ee="text",value:ue,...de}=r,we=O.value!=null?O.value:ue,{current:ve}=P.useRef(we!=null),be=P.useRef(),Xe=P.useCallback(We=>{},[]),Ie=rn(be,C,O.ref,Xe),[He,_e]=P.useState(!1),xe=Bo(),tt=Hi({props:r,muiFormControl:xe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});tt.focused=xe?xe.focused:He,P.useEffect(()=>{!xe&&y&&He&&(_e(!1),j&&j())},[xe,y,He,j]);const Le=xe&&xe.onFilled,dt=xe&&xe.onEmpty,N=P.useCallback(We=>{cp(We)?Le&&Le():dt&&dt()},[Le,dt]);fo(()=>{ve&&N({value:we})},[we,N,ve]);const te=We=>{F&&F(We),O.onFocus&&O.onFocus(We),xe&&xe.onFocus?xe.onFocus(We):_e(!0)},se=We=>{j&&j(We),O.onBlur&&O.onBlur(We),xe&&xe.onBlur?xe.onBlur(We):_e(!1)},ye=(We,...Dt)=>{if(!ve){const Jt=We.target||be.current;if(Jt==null)throw new Error(ks(1));N({value:Jt.value})}O.onChange&&O.onChange(We,...Dt),B&&B(We,...Dt)};P.useEffect(()=>{N(be.current)},[]);const ce=We=>{be.current&&We.currentTarget===We.target&&be.current.focus(),I&&I(We)};let Ae=z,je=O;M&&Ae==="input"&&(Q?je={type:void 0,minRows:Q,maxRows:Q,...je}:je={type:void 0,maxRows:k,minRows:R,...je},Ae=tC);const st=We=>{N(We.animationName==="mui-auto-fill-cancel"?be.current:{value:"x"})};P.useEffect(()=>{xe&&xe.setAdornedStart(!!re)},[xe,re]);const wt={...r,color:tt.color||"primary",disabled:tt.disabled,endAdornment:A,error:tt.error,focused:tt.focused,formControl:xe,fullWidth:x,hiddenLabel:tt.hiddenLabel,multiline:M,size:tt.size,startAdornment:re,type:ee},nt=oC(wt),ft=X.root||p.Root||_p,ct=Z.root||h.root||{},Ht=X.input||p.Input||$p;return je={...je,...Z.input??h.input},v.jsxs(P.Fragment,{children:[!H&&typeof ux=="function"&&(cx||(cx=v.jsx(ux,{}))),v.jsxs(ft,{...ct,ref:n,onClick:ce,...de,...!El(ft)&&{ownerState:{...wt,...ct.ownerState}},className:Oe(nt.root,ct.className,u,_&&"MuiInputBase-readOnly"),children:[re,v.jsx(Up.Provider,{value:null,children:v.jsx(Ht,{"aria-invalid":tt.error,"aria-describedby":s,autoComplete:a,autoFocus:l,defaultValue:m,disabled:tt.disabled,id:S,onAnimationStart:st,name:L,placeholder:ne,readOnly:_,required:tt.required,rows:Q,value:we,onKeyDown:$,onKeyUp:W,type:ee,...je,...!El(Ht)&&{as:Ae,ownerState:{...wt,...je.ownerState}},ref:Ie,className:Oe(nt.input,je.className,_&&"MuiInputBase-readOnly"),onBlur:se,onChange:ye,onFocus:te})}),A,J?J({...tt,startAdornment:re}):null]})]})});function sC(e){return Ge("MuiInput",e)}const ai={...Jr,...Ue("MuiInput",["root","underline","input"])};function iC(e){return Ge("MuiOutlinedInput",e)}const oo={...Jr,...Ue("MuiOutlinedInput",["root","notchedOutline","input"])};function aC(e){return Ge("MuiFilledInput",e)}const Fr={...Jr,...Ue("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},j1=At(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function lC(e){return Ge("MuiAutocomplete",e)}const Ot=Ue("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 fx,dx;const cC=e=>{const{classes:t,disablePortal:n,expanded:r,focused:s,fullWidth:a,hasClearIcon:l,hasPopupIcon:u,inputFocused:f,popupOpen:p,size:h}=e,m={root:["root",r&&"expanded",s&&"focused",a&&"fullWidth",l&&"hasClearIcon",u&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",f&&"inputFocused"],tag:["tag",`tagSize${me(h)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ke(m,lC,t)},uC=pe("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:s,hasPopupIcon:a,inputFocused:l,size:u}=n;return[{[`& .${Ot.tag}`]:t.tag},{[`& .${Ot.tag}`]:t[`tagSize${me(u)}`]},{[`& .${Ot.inputRoot}`]:t.inputRoot},{[`& .${Ot.input}`]:t.input},{[`& .${Ot.input}`]:l&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,s&&t.hasClearIcon]}})({[`&.${Ot.focused} .${Ot.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Ot.clearIndicator}`]:{visibility:"visible"}},[`& .${Ot.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Ot.inputRoot}`]:{[`.${Ot.hasPopupIcon}&, .${Ot.hasClearIcon}&`]:{paddingRight:30},[`.${Ot.hasPopupIcon}.${Ot.hasClearIcon}&`]:{paddingRight:56},[`& .${Ot.input}`]:{width:0,minWidth:30}},[`& .${ai.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${ai.root}.${Jr.sizeSmall}`]:{[`& .${ai.input}`]:{padding:"2px 4px 3px 0"}},[`& .${oo.root}`]:{padding:9,[`.${Ot.hasPopupIcon}&, .${Ot.hasClearIcon}&`]:{paddingRight:39},[`.${Ot.hasPopupIcon}.${Ot.hasClearIcon}&`]:{paddingRight:65},[`& .${Ot.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Ot.endAdornment}`]:{right:9}},[`& .${oo.root}.${Jr.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Ot.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Fr.root}`]:{paddingTop:19,paddingLeft:8,[`.${Ot.hasPopupIcon}&, .${Ot.hasClearIcon}&`]:{paddingRight:39},[`.${Ot.hasPopupIcon}.${Ot.hasClearIcon}&`]:{paddingRight:65},[`& .${Fr.input}`]:{padding:"7px 4px"},[`& .${Ot.endAdornment}`]:{right:9}},[`& .${Fr.root}.${Jr.sizeSmall}`]:{paddingBottom:1,[`& .${Fr.input}`]:{padding:"2.5px 4px"}},[`& .${Jr.hiddenLabel}`]:{paddingTop:8},[`& .${Fr.root}.${Jr.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Ot.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Fr.root}.${Jr.hiddenLabel}.${Jr.sizeSmall}`]:{[`& .${Ot.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Ot.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Ot.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Ot.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Ot.inputRoot}`]:{flexWrap:"wrap"}}}]}),fC=pe("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),dC=pe(zr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),pC=pe(zr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>({...t.popupIndicator,...e.popupOpen&&t.popupIndicatorOpen})})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),vC=pe(Gp,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ot.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(Qe(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),hC=pe(Ur,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(Qe(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),mC=pe("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),gC=pe("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),yC=pe("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(Qe(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Ot.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"},[`&.${Ot.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"},[`&.${Ot.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ot.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ot.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),AC=pe(mg,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(Qe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),PC=pe("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Ot.option}`]:{paddingLeft:24}}),bC=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiAutocomplete"}),{autoComplete:s=!1,autoHighlight:a=!1,autoSelect:l=!1,blurOnSelect:u=!1,ChipProps:f,className:p,clearIcon:h=fx||(fx=v.jsx(v1,{fontSize:"small"})),clearOnBlur:m=!r.freeSolo,clearOnEscape:y=!1,clearText:H="Clear",closeText:A="Close",componentsProps:w,defaultValue:x=r.multiple?[]:null,disableClearable:S=!1,disableCloseOnSelect:z=!1,disabled:O=!1,disabledItemsFocusable:C=!1,disableListWrap:D=!1,disablePortal:k=!1,filterOptions:R,filterSelectedOptions:M=!1,forcePopupIcon:L="auto",freeSolo:j=!1,fullWidth:B=!1,getLimitTagsText:I=Lt=>`+${Lt}`,getOptionDisabled:F,getOptionKey:$,getOptionLabel:W,isOptionEqualToValue:ne,groupBy:_,handleHomeEndKeys:J=!r.freeSolo,id:Q,includeInputInList:E=!1,inputValue:Z,limitTags:X=-1,ListboxComponent:re,ListboxProps:ee,loading:ue=!1,loadingText:de="Loading…",multiple:we=!1,noOptionsText:ve="No options",onChange:be,onClose:Xe,onHighlightChange:Ie,onInputChange:He,onOpen:_e,open:xe,openOnFocus:tt=!1,openText:Le="Open",options:dt,PaperComponent:N,PopperComponent:te,popupIcon:se=dx||(dx=v.jsx(j1,{})),readOnly:ye=!1,renderGroup:ce,renderInput:Ae,renderOption:je,renderTags:st,selectOnFocus:wt=!r.freeSolo,size:nt="medium",slots:ft={},slotProps:ct={},value:Ht,...We}=r,{getRootProps:Dt,getInputProps:Jt,getInputLabelProps:Be,getPopupIndicatorProps:U,getClearProps:Y,getTagProps:Pe,getListboxProps:De,getOptionProps:Te,value:Ne,dirty:Je,expanded:ke,id:rt,popupOpen:vt,focused:kt,focusedTag:Qt,anchorEl:Fe,setAnchorEl:Rt,inputValue:un,groupedOptions:zn}=Cz({...r,componentName:"Autocomplete"}),Gn=!S&&!O&&Je&&!ye,An=(!j||L===!0)&&L!==!1,{onMouseDown:Mr}=Jt(),{ref:mo,...go}=De(),yo=W||(Lt=>Lt.label??Lt),Pn={...r,disablePortal:k,expanded:ke,focused:kt,fullWidth:B,getOptionLabel:yo,hasClearIcon:Gn,hasPopupIcon:An,inputFocused:Qt===-1,popupOpen:vt,size:nt},on=cC(Pn),Re={slots:{paper:N,popper:te,...ft},slotProps:{chip:f,listbox:ee,...w,...ct}},[oe,le]=Cn("listbox",{elementType:yC,externalForwardedProps:Re,ownerState:Pn,className:on.listbox,additionalProps:go,ref:mo}),[Ee,ot]=Cn("paper",{elementType:Ur,externalForwardedProps:Re,ownerState:Pn,className:on.paper}),[lt,It]=Cn("popper",{elementType:Gp,externalForwardedProps:Re,ownerState:Pn,className:on.popper,additionalProps:{disablePortal:k,style:{width:Fe?Fe.clientWidth:null},role:"presentation",anchorEl:Fe,open:vt}});let Nt;if(we&&Ne.length>0){const Lt=ar=>({className:on.tag,disabled:O,...Pe(ar)});st?Nt=st(Ne,Lt,Pn):Nt=Ne.map((ar,Xn)=>{const{key:Di,...Lr}=Lt({index:Xn});return v.jsx(Zu,{label:yo(ar),size:nt,...Lr,...Re.slotProps.chip},Di)})}if(X>-1&&Array.isArray(Nt)){const Lt=Nt.length-X;!kt&&Lt>0&&(Nt=Nt.splice(0,X),Nt.push(v.jsx("span",{className:on.tag,children:I(Lt)},Nt.length)))}const Ao=ce||(Lt=>v.jsxs("li",{children:[v.jsx(AC,{className:on.groupLabel,ownerState:Pn,component:"div",children:Lt.group}),v.jsx(PC,{className:on.groupUl,ownerState:Pn,children:Lt.children})]},Lt.key)),tn=je||((Lt,ar)=>{const{key:Xn,...Di}=Lt;return v.jsx("li",{...Di,children:yo(ar)},Xn)}),Oi=(Lt,ar)=>{const Xn=Te({option:Lt,index:ar});return tn({...Xn,className:on.option},Lt,{selected:Xn["aria-selected"],index:ar,inputValue:un},Pn)},Xs=Re.slotProps.clearIndicator,Ci=Re.slotProps.popupIndicator,Ns=Lt=>v.jsx(vC,{as:lt,...It,children:v.jsx(hC,{as:Ee,...ot,children:Lt})});let ba=null;return zn.length>0?ba=Ns(v.jsx(oe,{as:re,...le,children:zn.map((Lt,ar)=>_?Ao({key:Lt.key,group:Lt.group,children:Lt.options.map((Xn,Di)=>Oi(Xn,Lt.index+Di))}):Oi(Lt,ar))})):ue&&zn.length===0?ba=Ns(v.jsx(mC,{className:on.loading,ownerState:Pn,children:de})):zn.length===0&&!j&&!ue&&(ba=Ns(v.jsx(gC,{className:on.noOptions,ownerState:Pn,role:"presentation",onMouseDown:Lt=>{Lt.preventDefault()},children:ve}))),v.jsxs(P.Fragment,{children:[v.jsx(uC,{ref:n,className:Oe(on.root,p),ownerState:Pn,...Dt(We),children:Ae({id:rt,disabled:O,fullWidth:!0,size:nt==="small"?"small":void 0,InputLabelProps:Be(),InputProps:{ref:Rt,className:on.inputRoot,startAdornment:Nt,onMouseDown:Lt=>{Lt.target===Lt.currentTarget&&Mr(Lt)},...(Gn||An)&&{endAdornment:v.jsxs(fC,{className:on.endAdornment,ownerState:Pn,children:[Gn?v.jsx(dC,{...Y(),"aria-label":H,title:H,ownerState:Pn,...Xs,className:Oe(on.clearIndicator,Xs==null?void 0:Xs.className),children:h}):null,An?v.jsx(pC,{...U(),disabled:O,"aria-label":vt?A:Le,title:vt?A:Le,ownerState:Pn,...Ci,className:Oe(on.popupIndicator,Ci==null?void 0:Ci.className),children:se}):null]})}},inputProps:{className:on.input,disabled:O,readOnly:ye,...Jt()}})}),Fe?ba:null]})}),xC={entering:{opacity:1},entered:{opacity:1}},S1=P.forwardRef(function(t,n){const r=Kr(),s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:u,easing:f,in:p,onEnter:h,onEntered:m,onEntering:y,onExit:H,onExited:A,onExiting:w,style:x,timeout:S=s,TransitionComponent:z=No,...O}=t,C=P.useRef(null),D=rn(C,xi(u),n),k=$=>W=>{if($){const ne=C.current;W===void 0?$(ne):$(ne,W)}},R=k(y),M=k(($,W)=>{jy($);const ne=Cl({style:x,timeout:S,easing:f},{mode:"enter"});$.style.webkitTransition=r.transitions.create("opacity",ne),$.style.transition=r.transitions.create("opacity",ne),h&&h($,W)}),L=k(m),j=k(w),B=k($=>{const W=Cl({style:x,timeout:S,easing:f},{mode:"exit"});$.style.webkitTransition=r.transitions.create("opacity",W),$.style.transition=r.transitions.create("opacity",W),H&&H($)}),I=k(A),F=$=>{a&&a(C.current,$)};return v.jsx(z,{appear:l,in:p,nodeRef:C,onEnter:M,onEntered:L,onEntering:R,onExit:B,onExited:I,onExiting:j,addEndListener:F,timeout:S,...O,children:($,W)=>P.cloneElement(u,{style:{opacity:0,visibility:$==="exited"&&!p?"hidden":void 0,...xC[$],...x,...u.props.style},ref:D,...W})})});function wC(e){return Ge("MuiBackdrop",e)}Ue("MuiBackdrop",["root","invisible"]);const HC=e=>{const{ownerState:t,...n}=e;return n},jC=e=>{const{classes:t,invisible:n}=e;return Ke({root:["root",n&&"invisible"]},wC,t)},SC=pe("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"}}]}),z1=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiBackdrop"}),{children:s,className:a,component:l="div",invisible:u=!1,open:f,components:p={},componentsProps:h={},slotProps:m={},slots:y={},TransitionComponent:H,transitionDuration:A,...w}=r,x={...r,component:l,invisible:u},S=jC(x),z={transition:H,root:p.Root,...y},O={...h,...m},C={slots:z,slotProps:O},[D,k]=Cn("root",{elementType:SC,externalForwardedProps:C,className:Oe(S.root,a),ownerState:x}),[R,M]=Cn("transition",{elementType:S1,externalForwardedProps:C,ownerState:x}),L=HC(M);return v.jsx(R,{in:f,timeout:A,...w,...L,children:v.jsx(D,{"aria-hidden":!0,...k,classes:S,ref:n,children:s})})}),zC=Ue("MuiBox",["root"]),OC=Fu(),yt=YH({themeId:Ro,defaultTheme:OC,defaultClassName:zC.root,generateClassName:N0.generate});function CC(e){return Ge("MuiButton",e)}const Qa=Ue("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"]),O1=P.createContext({}),DC=P.createContext(void 0),TC=e=>{const{color:t,disableElevation:n,fullWidth:r,size:s,variant:a,classes:l}=e,u={root:["root",a,`${a}${me(t)}`,`size${me(s)}`,`${a}Size${me(s)}`,`color${me(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${me(s)}`],endIcon:["icon","endIcon",`iconSize${me(s)}`]},f=Ke(u,CC,l);return{...l,...f}},C1=[{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}}}],kC=pe(fa,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${me(n.color)}`],t[`size${me(n.size)}`],t[`${n.variant}Size${me(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(Qe(({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"},[`&.${Qa.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]},[`&.${Qa.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Qa.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)",[`&.${Qa.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(gn()).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.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:Pt(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.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette[r].main,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.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette.text.primary,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"},[`&.${Qa.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Qa.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),RC=pe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${me(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...C1]}),EC=pe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${me(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...C1]}),Xt=P.forwardRef(function(t,n){const r=P.useContext(O1),s=P.useContext(DC),a=zl(r,t),l=$e({props:a,name:"MuiButton"}),{children:u,color:f="primary",component:p="button",className:h,disabled:m=!1,disableElevation:y=!1,disableFocusRipple:H=!1,endIcon:A,focusVisibleClassName:w,fullWidth:x=!1,size:S="medium",startIcon:z,type:O,variant:C="text",...D}=l,k={...l,color:f,component:p,disabled:m,disableElevation:y,disableFocusRipple:H,fullWidth:x,size:S,type:O,variant:C},R=TC(k),M=z&&v.jsx(RC,{className:R.startIcon,ownerState:k,children:z}),L=A&&v.jsx(EC,{className:R.endIcon,ownerState:k,children:A}),j=s||"";return v.jsxs(kC,{ownerState:k,className:Oe(r.className,R.root,h,j),component:p,disabled:m,focusRipple:!H,focusVisibleClassName:Oe(R.focusVisible,w),ref:n,type:O,...D,classes:R,children:[M,u,L]})});function MC(e){return Ge("MuiCard",e)}Ue("MuiCard",["root"]);const LC=e=>{const{classes:t}=e;return Ke({root:["root"]},MC,t)},XC=pe(Ur,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),D1=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiCard"}),{className:s,raised:a=!1,...l}=r,u={...r,raised:a},f=LC(u);return v.jsx(XC,{className:Oe(f.root,s),elevation:a?8:void 0,ref:n,ownerState:u,...l})});function NC(e){return Ge("MuiCardContent",e)}Ue("MuiCardContent",["root"]);const BC=e=>{const{classes:t}=e;return Ke({root:["root"]},NC,t)},VC=pe("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),gg=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiCardContent"}),{className:s,component:a="div",...l}=r,u={...r,component:a},f=BC(u);return v.jsx(VC,{as:a,className:Oe(f.root,s),ownerState:u,ref:n,...l})});function IC(e){return Ge("MuiCardMedia",e)}Ue("MuiCardMedia",["root","media","img"]);const WC=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return Ke({root:["root",n&&"media",r&&"img"]},IC,t)},JC=pe("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:s}=n;return[t.root,r&&t.media,s&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),FC=["video","audio","picture","iframe","img"],YC=["picture","img"],qC=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiCardMedia"}),{children:s,className:a,component:l="div",image:u,src:f,style:p,...h}=r,m=FC.includes(l),y=!m&&u?{backgroundImage:`url("${u}")`,...p}:p,H={...r,component:l,isMediaComponent:m,isImageComponent:YC.includes(l)},A=WC(H);return v.jsx(JC,{className:Oe(A.root,a),as:l,role:!m&&u?"img":void 0,ref:n,style:y,ownerState:H,src:m?u||f:void 0,...h,children:s})});function ZC(e){return Ge("PrivateSwitchBase",e)}Ue("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const GC=e=>{const{classes:t,checked:n,disabled:r,edge:s}=e,a={root:["root",n&&"checked",r&&"disabled",s&&`edge${me(s)}`],input:["input"]};return Ke(a,ZC,t)},UC=pe(fa)({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}}]}),QC=pe("input",{shouldForwardProp:Zn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ry=P.forwardRef(function(t,n){const{autoFocus:r,checked:s,checkedIcon:a,className:l,defaultChecked:u,disabled:f,disableFocusRipple:p=!1,edge:h=!1,icon:m,id:y,inputProps:H,inputRef:A,name:w,onBlur:x,onChange:S,onFocus:z,readOnly:O,required:C=!1,tabIndex:D,type:k,value:R,...M}=t,[L,j]=yi({controlled:s,default:!!u,name:"SwitchBase",state:"checked"}),B=Bo(),I=Q=>{z&&z(Q),B&&B.onFocus&&B.onFocus(Q)},F=Q=>{x&&x(Q),B&&B.onBlur&&B.onBlur(Q)},$=Q=>{if(Q.nativeEvent.defaultPrevented)return;const E=Q.target.checked;j(E),S&&S(Q,E)};let W=f;B&&typeof W>"u"&&(W=B.disabled);const ne=k==="checkbox"||k==="radio",_={...t,checked:L,disabled:W,disableFocusRipple:p,edge:h},J=GC(_);return v.jsxs(UC,{component:"span",className:Oe(J.root,l),centerRipple:!0,focusRipple:!p,disabled:W,tabIndex:null,role:void 0,onFocus:I,onBlur:F,ownerState:_,ref:n,...M,children:[v.jsx(QC,{autoFocus:r,checked:s,defaultChecked:u,className:J.input,disabled:W,id:ne?y:void 0,name:w,onChange:$,readOnly:O,ref:A,required:C,ownerState:_,tabIndex:D,type:k,...k==="checkbox"&&R===void 0?{}:{value:R},...H}),L?a:m]})}),KC=At(v.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"}),"CheckBoxOutlineBlank"),_C=At(v.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"}),"CheckBox"),$C=At(v.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"}),"IndeterminateCheckBox");function eD(e){return Ge("MuiCheckbox",e)}const Dm=Ue("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),tD=e=>{const{classes:t,indeterminate:n,color:r,size:s}=e,a={root:["root",n&&"indeterminate",`color${me(r)}`,`size${me(s)}`]},l=Ke(a,eD,t);return{...t,...l}},nD=pe(Ry,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${me(n.size)}`],n.color!=="default"&&t[`color${me(n.color)}`]]}})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t},style:{[`&.${Dm.checked}, &.${Dm.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Dm.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),rD=v.jsx(_C,{}),oD=v.jsx(KC,{}),sD=v.jsx($C,{}),px=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiCheckbox"}),{checkedIcon:s=rD,color:a="primary",icon:l=oD,indeterminate:u=!1,indeterminateIcon:f=sD,inputProps:p,size:h="medium",disableRipple:m=!1,className:y,...H}=r,A=u?f:l,w=u?f:s,x={...r,disableRipple:m,color:a,indeterminate:u,size:h},S=tD(x);return v.jsx(nD,{type:"checkbox",inputProps:{"data-indeterminate":u,...p},icon:P.cloneElement(A,{fontSize:A.props.fontSize??h}),checkedIcon:P.cloneElement(w,{fontSize:w.props.fontSize??h}),ownerState:x,ref:n,className:Oe(S.root,y),disableRipple:m,...H,classes:S})});function iD(e){return Ge("MuiCircularProgress",e)}Ue("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const oi=44,yg=Vu` 0% { transform: rotate(0deg); } @@ -190,12 +190,12 @@ Error generating stack: `+b.message+` stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`,iD=typeof gg!="string"?cy` - animation: ${gg} 1.4s linear infinite; - `:null,aD=typeof yg!="string"?cy` - animation: ${yg} 1.4s ease-in-out infinite; - `:null,lD=e=>{const{classes:t,variant:n,color:r,disableShrink:s}=e,a={root:["root",n,`color${me(r)}`],svg:["svg"],circle:["circle",`circle${me(n)}`,s&&"circleDisableShrink"]};return Ke(a,sD,t)},cD=pe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${me(n.color)}`]]}})(Qe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:iD||{animation:`${gg} 1.4s linear infinite`}},...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),uD=pe("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),fD=pe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${me(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Qe(({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:aD||{animation:`${yg} 1.4s ease-in-out infinite`}}]}))),ev=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiCircularProgress"}),{className:s,color:a="primary",disableShrink:l=!1,size:u=40,style:f,thickness:p=3.6,value:h=0,variant:m="indeterminate",...y}=r,H={...r,color:a,disableShrink:l,size:u,thickness:p,value:h,variant:m},A=lD(H),w={},x={},S={};if(m==="determinate"){const z=2*Math.PI*((oi-p)/2);w.strokeDasharray=z.toFixed(3),S["aria-valuenow"]=Math.round(h),w.strokeDashoffset=`${((100-h)/100*z).toFixed(3)}px`,x.transform="rotate(-90deg)"}return v.jsx(cD,{className:Oe(A.root,s),style:{width:u,height:u,...x,...f},ownerState:H,ref:n,role:"progressbar",...S,...y,children:v.jsx(uD,{className:A.svg,ownerState:H,viewBox:`${oi/2} ${oi/2} ${oi} ${oi}`,children:v.jsx(fD,{className:A.circle,style:w,ownerState:H,cx:oi,cy:oi,r:(oi-p)/2,fill:"none",strokeWidth:p})})})});function vx(e){return e.substring(2).toLowerCase()}function dD(e,t){return t.documentElement.clientWidth(setTimeout(()=>{f.current=!0},0),()=>{f.current=!1}),[]);const h=rn(xi(t),u),m=mr(A=>{const w=p.current;p.current=!1;const x=ir(u.current);if(!f.current||!u.current||"clientX"in A&&dD(A,x))return;if(l.current){l.current=!1;return}let S;A.composedPath?S=A.composedPath().includes(u.current):S=!x.documentElement.contains(A.target)||u.current.contains(A.target),!S&&(n||!w)&&s(A)}),y=A=>w=>{p.current=!0;const x=t.props[A];x&&x(w)},H={ref:h};return a!==!1&&(H[a]=y(a)),P.useEffect(()=>{if(a!==!1){const A=vx(a),w=ir(u.current),x=()=>{l.current=!0};return w.addEventListener(A,m),w.addEventListener("touchmove",x),()=>{w.removeEventListener(A,m),w.removeEventListener("touchmove",x)}}},[m,a]),r!==!1&&(H[r]=y(r)),P.useEffect(()=>{if(r!==!1){const A=vx(r),w=ir(u.current);return w.addEventListener(A,m),()=>{w.removeEventListener(A,m)}}},[m,r]),P.cloneElement(t,H)}const Ag=typeof by({})=="function",pD=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),vD=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}}),k1=(e,t=!1)=>{var a,l;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([u,f])=>{var h,m;const p=e.getColorSchemeSelector(u);p.startsWith("@")?n[p]={":root":{colorScheme:(h=f.palette)==null?void 0:h.mode}}:n[p.replace(/\s*&/,"")]={colorScheme:(m=f.palette)==null?void 0:m.mode}});let r={html:pD(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...vD(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const s=(l=(a=e.components)==null?void 0:a.MuiCssBaseline)==null?void 0:l.styleOverrides;return s&&(r=[r,s]),r},Vd="mui-ecs",hD=e=>{const t=k1(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Vd})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,s])=>{var l,u;const a=e.getColorSchemeSelector(r);a.startsWith("@")?n[a]={[`:root:not(:has(.${Vd}))`]:{colorScheme:(l=s.palette)==null?void 0:l.mode}}:n[a.replace(/\s*&/,"")]={[`&:not(:has(.${Vd}))`]:{colorScheme:(u=s.palette)==null?void 0:u.mode}}}),t},mD=by(Ag?({theme:e,enableColorScheme:t})=>k1(e,t):({theme:e})=>hD(e));function gD(e){const t=$e({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return v.jsxs(P.Fragment,{children:[Ag&&v.jsx(mD,{enableColorScheme:r}),!Ag&&!r&&v.jsx("span",{className:Vd,style:{display:"none"}}),n]})}function yD(e){const t=ir(e);return t.body===e?Mo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function du(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function hx(e){return parseInt(Mo(e).getComputedStyle(e).paddingRight,10)||0}function AD(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 mx(e,t,n,r,s){const a=[t,n,...r];[].forEach.call(e.children,l=>{const u=!a.includes(l),f=!AD(l);u&&f&&du(l,s)})}function Dm(e,t){let n=-1;return e.some((r,s)=>t(r)?(n=s,!0):!1),n}function PD(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(yD(r)){const l=G0(Mo(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${hx(r)+l}px`;const u=ir(r).querySelectorAll(".mui-fixed");[].forEach.call(u,f=>{n.push({value:f.style.paddingRight,property:"padding-right",el:f}),f.style.paddingRight=`${hx(f)+l}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=ir(r).body;else{const l=r.parentElement,u=Mo(r);a=(l==null?void 0:l.nodeName)==="HTML"&&u.getComputedStyle(l).overflowY==="scroll"?l: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:l,property:u})=>{a?l.style.setProperty(u,a):l.style.removeProperty(u)})}}function bD(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class xD{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&&du(t.modalRef,!1);const s=bD(n);mx(n,t.mount,t.modalRef,s,!0);const a=Dm(this.containers,l=>l.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:s}),r)}mount(t,n){const r=Dm(this.containers,a=>a.modals.includes(t)),s=this.containers[r];s.restore||(s.restore=PD(s,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const s=Dm(this.containers,l=>l.modals.includes(t)),a=this.containers[s];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&du(t.modalRef,n),mx(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(s,1);else{const l=a.modals[a.modals.length-1];l.modalRef&&du(l.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const wD=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function HD(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 jD(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 SD(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||jD(e))}function zD(e){const t=[],n=[];return Array.from(e.querySelectorAll(wD)).forEach((r,s)=>{const a=HD(r);a===-1||!SD(r)||(a===0?t.push(r):n.push({documentOrder:s,tabIndex:a,node:r}))}),n.sort((r,s)=>r.tabIndex===s.tabIndex?r.documentOrder-s.documentOrder:r.tabIndex-s.tabIndex).map(r=>r.node).concat(t)}function OD(){return!0}function CD(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:s=!1,getTabbable:a=zD,isEnabled:l=OD,open:u}=e,f=P.useRef(!1),p=P.useRef(null),h=P.useRef(null),m=P.useRef(null),y=P.useRef(null),H=P.useRef(!1),A=P.useRef(null),w=rn(xi(t),A),x=P.useRef(null);P.useEffect(()=>{!u||!A.current||(H.current=!n)},[n,u]),P.useEffect(()=>{if(!u||!A.current)return;const O=ir(A.current);return A.current.contains(O.activeElement)||(A.current.hasAttribute("tabIndex")||A.current.setAttribute("tabIndex","-1"),H.current&&A.current.focus()),()=>{s||(m.current&&m.current.focus&&(f.current=!0,m.current.focus()),m.current=null)}},[u]),P.useEffect(()=>{if(!u||!A.current)return;const O=ir(A.current),C=R=>{x.current=R,!(r||!l()||R.key!=="Tab")&&O.activeElement===A.current&&R.shiftKey&&(f.current=!0,h.current&&h.current.focus())},D=()=>{var L,j;const R=A.current;if(R===null)return;if(!O.hasFocus()||!l()||f.current){f.current=!1;return}if(R.contains(O.activeElement)||r&&O.activeElement!==p.current&&O.activeElement!==h.current)return;if(O.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!H.current)return;let M=[];if((O.activeElement===p.current||O.activeElement===h.current)&&(M=a(A.current)),M.length>0){const B=!!((L=x.current)!=null&&L.shiftKey&&((j=x.current)==null?void 0:j.key)==="Tab"),I=M[0],J=M[M.length-1];typeof I!="string"&&typeof J!="string"&&(B?J.focus():I.focus())}else R.focus()};O.addEventListener("focusin",D),O.addEventListener("keydown",C,!0);const k=setInterval(()=>{O.activeElement&&O.activeElement.tagName==="BODY"&&D()},50);return()=>{clearInterval(k),O.removeEventListener("focusin",D),O.removeEventListener("keydown",C,!0)}},[n,r,s,l,u,a]);const S=O=>{m.current===null&&(m.current=O.relatedTarget),H.current=!0,y.current=O.target;const C=t.props.onFocus;C&&C(O)},z=O=>{m.current===null&&(m.current=O.relatedTarget),H.current=!0};return v.jsxs(P.Fragment,{children:[v.jsx("div",{tabIndex:u?0:-1,onFocus:z,ref:p,"data-testid":"sentinelStart"}),P.cloneElement(t,{ref:w,onFocus:S}),v.jsx("div",{tabIndex:u?0:-1,onFocus:z,ref:h,"data-testid":"sentinelEnd"})]})}function DD(e){return typeof e=="function"?e():e}function TD(e){return e?e.props.hasOwnProperty("in"):!1}const gx=()=>{},Pd=new xD;function kD(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:s=!1,onTransitionEnter:a,onTransitionExited:l,children:u,onClose:f,open:p,rootRef:h}=e,m=P.useRef({}),y=P.useRef(null),H=P.useRef(null),A=rn(H,h),[w,x]=P.useState(!p),S=TD(u);let z=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(z=!1);const O=()=>ir(y.current),C=()=>(m.current.modalRef=H.current,m.current.mount=y.current,m.current),D=()=>{Pd.mount(C(),{disableScrollLock:r}),H.current&&(H.current.scrollTop=0)},k=mr(()=>{const W=DD(t)||O().body;Pd.add(C(),W),H.current&&D()}),R=()=>Pd.isTopModal(C()),M=mr(W=>{y.current=W,W&&(p&&R()?D():H.current&&du(H.current,z))}),L=P.useCallback(()=>{Pd.remove(C(),z)},[z]);P.useEffect(()=>()=>{L()},[L]),P.useEffect(()=>{p?k():(!S||!s)&&L()},[p,L,S,s,k]);const j=W=>ne=>{var re;(re=W.onKeyDown)==null||re.call(W,ne),!(ne.key!=="Escape"||ne.which===229||!R())&&(n||(ne.stopPropagation(),f&&f(ne,"escapeKeyDown")))},B=W=>ne=>{var re;(re=W.onClick)==null||re.call(W,ne),ne.target===ne.currentTarget&&f&&f(ne,"backdropClick")};return{getRootProps:(W={})=>{const ne=op(e);delete ne.onTransitionEnter,delete ne.onTransitionExited;const re={...ne,...W};return{role:"presentation",...re,onKeyDown:j(re),ref:A}},getBackdropProps:(W={})=>{const ne=W;return{"aria-hidden":!0,...ne,onClick:B(ne),open:p}},getTransitionProps:()=>{const W=()=>{x(!1),a&&a()},ne=()=>{x(!0),l&&l(),s&&L()};return{onEnter:ig(W,(u==null?void 0:u.props.onEnter)??gx),onExited:ig(ne,(u==null?void 0:u.props.onExited)??gx)}},rootRef:A,portalRef:M,isTopModal:R,exited:w,hasTransition:S}}function RD(e){return Ge("MuiModal",e)}Ue("MuiModal",["root","hidden","backdrop"]);const ED=e=>{const{open:t,exited:n,classes:r}=e;return Ke({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},RD,r)},MD=pe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Qe(({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"}}]}))),LD=pe(z1,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Ey=P.forwardRef(function(t,n){const r=$e({name:"MuiModal",props:t}),{BackdropComponent:s=LD,BackdropProps:a,classes:l,className:u,closeAfterTransition:f=!1,children:p,container:h,component:m,components:y={},componentsProps:H={},disableAutoFocus:A=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:z=!1,disableScrollLock:O=!1,hideBackdrop:C=!1,keepMounted:D=!1,onBackdropClick:k,onClose:R,onTransitionEnter:M,onTransitionExited:L,open:j,slotProps:B={},slots:I={},theme:J,...K}=r,W={...r,closeAfterTransition:f,disableAutoFocus:A,disableEnforceFocus:w,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:z,disableScrollLock:O,hideBackdrop:C,keepMounted:D},{getRootProps:ne,getBackdropProps:re,getTransitionProps:F,portalRef:_,isTopModal:E,exited:G,hasTransition:X}=kD({...W,rootRef:n}),ee={...W,exited:G},te=ED(ee),ue={};if(p.props.tabIndex===void 0&&(ue.tabIndex="-1"),X){const{onEnter:He,onExited:_e}=F();ue.onEnter=He,ue.onExited=_e}const de={...K,slots:{root:y.Root,backdrop:y.Backdrop,...I},slotProps:{...H,...B}},[xe,ve]=Cn("root",{elementType:MD,externalForwardedProps:de,getSlotProps:ne,additionalProps:{ref:n,as:m},ownerState:ee,className:Oe(u,te==null?void 0:te.root,!ee.open&&ee.exited&&(te==null?void 0:te.hidden))}),[be,Xe]=Cn("backdrop",{elementType:s,externalForwardedProps:de,additionalProps:a,getSlotProps:He=>re({...He,onClick:_e=>{k&&k(_e),He!=null&&He.onClick&&He.onClick(_e)}}),className:Oe(a==null?void 0:a.className,te==null?void 0:te.backdrop),ownerState:ee}),Ie=rn(a==null?void 0:a.ref,Xe.ref);return!D&&!j&&(!X||G)?null:v.jsx(H1,{ref:_,container:h,disablePortal:S,children:v.jsxs(xe,{...ve,children:[!C&&s?v.jsx(be,{...Xe,ref:Ie}):null,v.jsx(CD,{disableEnforceFocus:w,disableAutoFocus:A,disableRestoreFocus:z,isEnabled:E,open:j,children:P.cloneElement(p,ue)})]})})});function XD(e){return Ge("MuiDialog",e)}const Tm=Ue("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),R1=P.createContext({}),ND=pe(z1,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),BD=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:s,fullScreen:a}=e,l={root:["root"],container:["container",`scroll${me(n)}`],paper:["paper",`paperScroll${me(n)}`,`paperWidth${me(String(r))}`,s&&"paperFullWidth",a&&"paperFullScreen"]};return Ke(l,XD,t)},VD=pe(Ey,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),ID=pe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${me(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),WD=pe(Ur,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${me(n.scroll)}`],t[`paperWidth${me(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Qe(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Tm.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Tm.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Tm.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),sl=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiDialog"}),s=Kr(),a={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":u,"aria-modal":f=!0,BackdropComponent:p,BackdropProps:h,children:m,className:y,disableEscapeKeyDown:H=!1,fullScreen:A=!1,fullWidth:w=!1,maxWidth:x="sm",onBackdropClick:S,onClick:z,onClose:O,open:C,PaperComponent:D=Ur,PaperProps:k={},scroll:R="paper",TransitionComponent:M=S1,transitionDuration:L=a,TransitionProps:j,...B}=r,I={...r,disableEscapeKeyDown:H,fullScreen:A,fullWidth:w,maxWidth:x,scroll:R},J=BD(I),K=P.useRef(),W=_=>{K.current=_.target===_.currentTarget},ne=_=>{z&&z(_),K.current&&(K.current=null,S&&S(_),O&&O(_,"backdropClick"))},re=Rs(u),F=P.useMemo(()=>({titleId:re}),[re]);return v.jsx(VD,{className:Oe(J.root,y),closeAfterTransition:!0,components:{Backdrop:ND},componentsProps:{backdrop:{transitionDuration:L,as:p,...h}},disableEscapeKeyDown:H,onClose:O,open:C,ref:n,onClick:ne,ownerState:I,...B,children:v.jsx(M,{appear:!0,in:C,timeout:L,role:"presentation",...j,children:v.jsx(ID,{className:Oe(J.container),onMouseDown:W,ownerState:I,children:v.jsx(WD,{as:D,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":re,"aria-modal":f,...k,className:Oe(J.paper,k.className),ownerState:I,children:v.jsx(R1.Provider,{value:F,children:m})})})})})});function JD(e){return Ge("MuiDialogActions",e)}Ue("MuiDialogActions",["root","spacing"]);const FD=e=>{const{classes:t,disableSpacing:n}=e;return Ke({root:["root",!n&&"spacing"]},JD,t)},YD=pe("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),qD=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiDialogActions"}),{className:s,disableSpacing:a=!1,...l}=r,u={...r,disableSpacing:a},f=FD(u);return v.jsx(YD,{className:Oe(f.root,s),ownerState:u,ref:n,...l})});function ZD(e){return Ge("MuiDialogContent",e)}Ue("MuiDialogContent",["root","dividers"]);function GD(e){return Ge("MuiDialogTitle",e)}const UD=Ue("MuiDialogTitle",["root"]),QD=e=>{const{classes:t,dividers:n}=e;return Ke({root:["root",n&&"dividers"]},ZD,t)},KD=pe("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Qe(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${UD.root} + &`]:{paddingTop:0}}}]}))),tu=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiDialogContent"}),{className:s,dividers:a=!1,...l}=r,u={...r,dividers:a},f=QD(u);return v.jsx(KD,{className:Oe(f.root,s),ownerState:u,ref:n,...l})}),_D=e=>{const{classes:t}=e;return Ke({root:["root"]},GD,t)},$D=pe(xt,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),nu=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiDialogTitle"}),{className:s,id:a,...l}=r,u=r,f=_D(u),{titleId:p=a}=P.useContext(R1);return v.jsx($D,{component:"h2",className:Oe(f.root,s),ownerState:u,ref:n,variant:"h6",id:a??p,...l})});function eT(e){return Ge("MuiDivider",e)}const yx=Ue("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),tT=e=>{const{absolute:t,children:n,classes:r,flexItem:s,light:a,orientation:l,textAlign:u,variant:f}=e;return Ke({root:["root",t&&"absolute",f,a&&"light",l==="vertical"&&"vertical",s&&"flexItem",n&&"withChildren",n&&l==="vertical"&&"withChildrenVertical",u==="right"&&l!=="vertical"&&"textAlignRight",u==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},eT,r)},nT=pe("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]}})(Qe(({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.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Pt(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%"}}}]}))),rT=pe("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Qe(({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)`}}]}))),pa=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiDivider"}),{absolute:s=!1,children:a,className:l,orientation:u="horizontal",component:f=a||u==="vertical"?"div":"hr",flexItem:p=!1,light:h=!1,role:m=f!=="hr"?"separator":void 0,textAlign:y="center",variant:H="fullWidth",...A}=r,w={...r,absolute:s,component:f,flexItem:p,light:h,orientation:u,role:m,textAlign:y,variant:H},x=tT(w);return v.jsx(nT,{as:f,className:Oe(x.root,l),role:m,ref:n,ownerState:w,"aria-orientation":m==="separator"&&(f!=="hr"||u==="vertical")?u:void 0,...A,children:a?v.jsx(rT,{className:x.wrapper,ownerState:w,children:a}):null})});pa&&(pa.muiSkipListHighlight=!0);function oT(e,t,n){const r=t.getBoundingClientRect(),s=n&&n.getBoundingClientRect(),a=Mo(t);let l;if(t.fakeTransform)l=t.fakeTransform;else{const p=a.getComputedStyle(t);l=p.getPropertyValue("-webkit-transform")||p.getPropertyValue("transform")}let u=0,f=0;if(l&&l!=="none"&&typeof l=="string"){const p=l.split("(")[1].split(")")[0].split(",");u=parseInt(p[4],10),f=parseInt(p[5],10)}return e==="left"?s?`translateX(${s.right+u-r.left}px)`:`translateX(${a.innerWidth+u-r.left}px)`:e==="right"?s?`translateX(-${r.right-s.left-u}px)`:`translateX(-${r.left+r.width-u}px)`:e==="up"?s?`translateY(${s.bottom+f-r.top}px)`:`translateY(${a.innerHeight+f-r.top}px)`:s?`translateY(-${r.top-s.top+r.height-f}px)`:`translateY(-${r.top+r.height-f}px)`}function sT(e){return typeof e=="function"?e():e}function bd(e,t,n){const r=sT(n),s=oT(e,t,r);s&&(t.style.webkitTransform=s,t.style.transform=s)}const iT=P.forwardRef(function(t,n){const r=Kr(),s={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:l,appear:u=!0,children:f,container:p,direction:h="down",easing:m=s,in:y,onEnter:H,onEntered:A,onEntering:w,onExit:x,onExited:S,onExiting:z,style:O,timeout:C=a,TransitionComponent:D=No,...k}=t,R=P.useRef(null),M=rn(xi(f),R,n),L=F=>_=>{F&&(_===void 0?F(R.current):F(R.current,_))},j=L((F,_)=>{bd(h,F,p),Hy(F),H&&H(F,_)}),B=L((F,_)=>{const E=Cl({timeout:C,style:O,easing:m},{mode:"enter"});F.style.webkitTransition=r.transitions.create("-webkit-transform",{...E}),F.style.transition=r.transitions.create("transform",{...E}),F.style.webkitTransform="none",F.style.transform="none",w&&w(F,_)}),I=L(A),J=L(z),K=L(F=>{const _=Cl({timeout:C,style:O,easing:m},{mode:"exit"});F.style.webkitTransition=r.transitions.create("-webkit-transform",_),F.style.transition=r.transitions.create("transform",_),bd(h,F,p),x&&x(F)}),W=L(F=>{F.style.webkitTransition="",F.style.transition="",S&&S(F)}),ne=F=>{l&&l(R.current,F)},re=P.useCallback(()=>{R.current&&bd(h,R.current,p)},[h,p]);return P.useEffect(()=>{if(y||h==="down"||h==="right")return;const F=hy(()=>{R.current&&bd(h,R.current,p)}),_=Mo(R.current);return _.addEventListener("resize",F),()=>{F.clear(),_.removeEventListener("resize",F)}},[h,y,p]),P.useEffect(()=>{y||re()},[y,re]),v.jsx(D,{nodeRef:R,onEnter:j,onEntered:I,onEntering:B,onExit:K,onExited:W,onExiting:J,addEndListener:ne,appear:u,in:y,timeout:C,...k,children:(F,_)=>P.cloneElement(f,{ref:M,style:{visibility:F==="exited"&&!y?"hidden":void 0,...O,...f.props.style},..._})})});function aT(e){return Ge("MuiDrawer",e)}Ue("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const E1=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},lT=e=>{const{classes:t,anchor:n,variant:r}=e,s={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${me(n)}`,r!=="temporary"&&`paperAnchorDocked${me(n)}`]};return Ke(s,aT,t)},cT=pe(Ey,{name:"MuiDrawer",slot:"Root",overridesResolver:E1})(Qe(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Ax=pe("div",{shouldForwardProp:Zn,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:E1})({flex:"0 0 auto"}),uT=pe(Ur,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${me(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${me(n.anchor)}`]]}})(Qe(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),M1={left:"right",right:"left",top:"down",bottom:"up"};function fT(e){return["left","right"].includes(e)}function dT({direction:e},t){return e==="rtl"&&fT(t)?M1[t]:t}const pT=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiDrawer"}),s=Kr(),a=Ju(),l={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{anchor:u="left",BackdropProps:f,children:p,className:h,elevation:m=16,hideBackdrop:y=!1,ModalProps:{BackdropProps:H,...A}={},onClose:w,open:x=!1,PaperProps:S={},SlideProps:z,TransitionComponent:O=iT,transitionDuration:C=l,variant:D="temporary",...k}=r,R=P.useRef(!1);P.useEffect(()=>{R.current=!0},[]);const M=dT({direction:a?"rtl":"ltr"},u),j={...r,anchor:u,elevation:m,open:x,variant:D,...k},B=lT(j),I=v.jsx(uT,{elevation:D==="temporary"?m:0,square:!0,...S,className:Oe(B.paper,S.className),ownerState:j,children:p});if(D==="permanent")return v.jsx(Ax,{className:Oe(B.root,B.docked,h),ownerState:j,ref:n,...k,children:I});const J=v.jsx(O,{in:x,direction:M1[M],timeout:C,appear:R.current,...z,children:I});return D==="persistent"?v.jsx(Ax,{className:Oe(B.root,B.docked,h),ownerState:j,ref:n,...k,children:J}):v.jsx(cT,{BackdropProps:{...f,...H,transitionDuration:C},className:Oe(B.root,B.modal,h),open:x,ownerState:j,onClose:w,hideBackdrop:y,ref:n,...k,...A,children:J})}),vT=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:s,size:a,hiddenLabel:l,multiline:u}=e,f={root:["root",!n&&"underline",r&&"adornedStart",s&&"adornedEnd",a==="small"&&`size${me(a)}`,l&&"hiddenLabel",u&&"multiline"],input:["input"]},p=Ke(f,iC,t);return{...t,...p}},hT=pe(Kp,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Up(e,t),!n.disableUnderline&&t.underline]}})(Qe(({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)",s=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:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Fr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Fr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:l})=>!l.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"},[`&.${Fr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Fr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${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(.${Fr.disabled}, .${Fr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Fr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(gn()).map(([l])=>{var u;return{props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(u=(e.vars||e).palette[l])==null?void 0:u.main}`}}}}),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:u})=>l.multiline&&u==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),mT=pe(_p,{name:"MuiFilledInput",slot:"Input",overridesResolver:Qp})(Qe(({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}}]}))),up=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiFilledInput"}),{disableUnderline:s=!1,components:a={},componentsProps:l,fullWidth:u=!1,hiddenLabel:f,inputComponent:p="input",multiline:h=!1,slotProps:m,slots:y={},type:H="text",...A}=r,w={...r,disableUnderline:s,fullWidth:u,inputComponent:p,multiline:h,type:H},x=vT(r),S={root:{ownerState:w},input:{ownerState:w}},z=m??l?qn(S,m??l):S,O=y.root??a.Root??hT,C=y.input??a.Input??mT;return v.jsx($p,{slots:{root:O,input:C},slotProps:z,fullWidth:u,inputComponent:p,multiline:h,ref:n,type:H,...A,classes:x})});up&&(up.muiName="Input");function gT(e){return Ge("MuiFormControl",e)}Ue("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const yT=e=>{const{classes:t,margin:n,fullWidth:r}=e,s={root:["root",n!=="none"&&`margin${me(n)}`,r&&"fullWidth"]};return Ke(s,gT,t)},AT=pe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${me(e.margin)}`],...e.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%"}}]}),ur=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiFormControl"}),{children:s,className:a,color:l="primary",component:u="div",disabled:f=!1,error:p=!1,focused:h,fullWidth:m=!1,hiddenLabel:y=!1,margin:H="none",required:A=!1,size:w="medium",variant:x="outlined",...S}=r,z={...r,color:l,component:u,disabled:f,error:p,fullWidth:m,hiddenLabel:y,margin:H,required:A,size:w,variant:x},O=yT(z),[C,D]=P.useState(()=>{let J=!1;return s&&P.Children.forEach(s,K=>{if(!Nd(K,["Input","Select"]))return;const W=Nd(K,["Select"])?K.props.input:K;W&&tC(W.props)&&(J=!0)}),J}),[k,R]=P.useState(()=>{let J=!1;return s&&P.Children.forEach(s,K=>{Nd(K,["Input","Select"])&&(cp(K.props,!0)||cp(K.props.inputProps,!0))&&(J=!0)}),J}),[M,L]=P.useState(!1);f&&M&&L(!1);const j=h!==void 0&&!f?h:M;let B;P.useRef(!1);const I=P.useMemo(()=>({adornedStart:C,setAdornedStart:D,color:l,disabled:f,error:p,filled:k,focused:j,fullWidth:m,hiddenLabel:y,size:w,onBlur:()=>{L(!1)},onEmpty:()=>{R(!1)},onFilled:()=>{R(!0)},onFocus:()=>{L(!0)},registerEffect:B,required:A,variant:x}),[C,l,f,p,k,j,m,y,B,A,w,x]);return v.jsx(Gp.Provider,{value:I,children:v.jsx(AT,{as:u,ownerState:z,className:Oe(O.root,a),ref:n,...S,children:s})})});function PT(e){return Ge("MuiFormControlLabel",e)}const ru=Ue("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),bT=e=>{const{classes:t,disabled:n,labelPlacement:r,error:s,required:a}=e,l={root:["root",n&&"disabled",`labelPlacement${me(r)}`,s&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",s&&"error"]};return Ke(l,PT,t)},xT=pe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ru.label}`]:t.label},t.root,t[`labelPlacement${me(n.labelPlacement)}`]]}})(Qe(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ru.disabled}`]:{cursor:"default"},[`& .${ru.label}`]:{[`&.${ru.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}}]}))),wT=pe("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Qe(({theme:e})=>({[`&.${ru.error}`]:{color:(e.vars||e).palette.error.main}}))),Os=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiFormControlLabel"}),{checked:s,className:a,componentsProps:l={},control:u,disabled:f,disableTypography:p,inputRef:h,label:m,labelPlacement:y="end",name:H,onChange:A,required:w,slots:x={},slotProps:S={},value:z,...O}=r,C=Bo(),D=f??u.props.disabled??(C==null?void 0:C.disabled),k=w??u.props.required,R={disabled:D,required:k};["checked","name","onChange","value","inputRef"].forEach(W=>{typeof u.props[W]>"u"&&typeof r[W]<"u"&&(R[W]=r[W])});const M=Hi({props:r,muiFormControl:C,states:["error"]}),L={...r,disabled:D,labelPlacement:y,required:k,error:M.error},j=bT(L),B={slots:x,slotProps:{...l,...S}},[I,J]=Cn("typography",{elementType:xt,externalForwardedProps:B,ownerState:L});let K=m;return K!=null&&K.type!==xt&&!p&&(K=v.jsx(I,{component:"span",...J,className:Oe(j.label,J==null?void 0:J.className),children:K})),v.jsxs(xT,{className:Oe(j.root,a),ownerState:L,ref:n,...O,children:[P.cloneElement(u,R),k?v.jsxs("div",{children:[K,v.jsxs(wT,{ownerState:L,"aria-hidden":!0,className:j.asterisk,children:[" ","*"]})]}):K]})});function HT(e){return Ge("MuiFormGroup",e)}Ue("MuiFormGroup",["root","row","error"]);const jT=e=>{const{classes:t,row:n,error:r}=e;return Ke({root:["root",n&&"row",r&&"error"]},HT,t)},ST=pe("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"}}]}),zT=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiFormGroup"}),{className:s,row:a=!1,...l}=r,u=Bo(),f=Hi({props:r,muiFormControl:u,states:["error"]}),p={...r,row:a,error:f.error},h=jT(p);return v.jsx(ST,{className:Oe(h.root,s),ownerState:p,ref:n,...l})});function OT(e){return Ge("MuiFormHelperText",e)}const Px=Ue("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var bx;const CT=e=>{const{classes:t,contained:n,size:r,disabled:s,error:a,filled:l,focused:u,required:f}=e,p={root:["root",s&&"disabled",a&&"error",r&&`size${me(r)}`,n&&"contained",u&&"focused",l&&"filled",f&&"required"]};return Ke(p,OT,t)},DT=pe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${me(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Px.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Px.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}}]}))),nl=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiFormHelperText"}),{children:s,className:a,component:l="p",disabled:u,error:f,filled:p,focused:h,margin:m,required:y,variant:H,...A}=r,w=Bo(),x=Hi({props:r,muiFormControl:w,states:["variant","size","disabled","error","filled","focused","required"]}),S={...r,component:l,contained:x.variant==="filled"||x.variant==="outlined",variant:x.variant,size:x.size,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required};delete S.ownerState;const z=CT(S);return v.jsx(DT,{as:l,className:Oe(z.root,a),ref:n,...A,ownerState:S,children:s===" "?bx||(bx=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});function TT(e){return Ge("MuiFormLabel",e)}const pu=Ue("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),kT=e=>{const{classes:t,color:n,focused:r,disabled:s,error:a,filled:l,required:u}=e,f={root:["root",`color${me(n)}`,s&&"disabled",a&&"error",l&&"filled",r&&"focused",u&&"required"],asterisk:["asterisk",a&&"error"]};return Ke(f,TT,t)},RT=pe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(Qe(({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(gn()).map(([t])=>({props:{color:t},style:{[`&.${pu.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${pu.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${pu.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),ET=pe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Qe(({theme:e})=>({[`&.${pu.error}`]:{color:(e.vars||e).palette.error.main}}))),Id=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiFormLabel"}),{children:s,className:a,color:l,component:u="label",disabled:f,error:p,filled:h,focused:m,required:y,...H}=r,A=Bo(),w=Hi({props:r,muiFormControl:A,states:["color","required","focused","disabled","error","filled"]}),x={...r,color:w.color||"primary",component:u,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required},S=kT(x);return v.jsxs(RT,{as:u,ownerState:x,className:Oe(S.root,a),ref:n,...H,children:[s,w.required&&v.jsxs(ET,{ownerState:x,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]})}),xx=P.createContext();function MT(e){return Ge("MuiGrid",e)}const LT=[0,1,2,3,4,5,6,7,8,9,10],XT=["column-reverse","column","row-reverse","row"],NT=["nowrap","wrap-reverse","wrap"],Ec=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],zu=Ue("MuiGrid",["root","container","item","zeroMinWidth",...LT.map(e=>`spacing-xs-${e}`),...XT.map(e=>`direction-xs-${e}`),...NT.map(e=>`wrap-xs-${e}`),...Ec.map(e=>`grid-xs-${e}`),...Ec.map(e=>`grid-sm-${e}`),...Ec.map(e=>`grid-md-${e}`),...Ec.map(e=>`grid-lg-${e}`),...Ec.map(e=>`grid-xl-${e}`)]);function BT({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,s)=>{let a={};if(t[s]&&(n=t[s]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const l=sa({values:t.columns,breakpoints:e.breakpoints.values}),u=typeof l=="object"?l[s]:l;if(u==null)return r;const f=`${Math.round(n/u*1e8)/1e6}%`;let p={};if(t.container&&t.item&&t.columnSpacing!==0){const h=e.spacing(t.columnSpacing);if(h!=="0px"){const m=`calc(${f} + ${h})`;p={flexBasis:m,maxWidth:m}}}a={flexBasis:f,flexGrow:0,maxWidth:f,...p}}return e.breakpoints.values[s]===0?Object.assign(r,a):r[e.breakpoints.up(s)]=a,r},{})}function VT({theme:e,ownerState:t}){const n=sa({values:t.direction,breakpoints:e.breakpoints.values});return Rr({theme:e},n,r=>{const s={flexDirection:r};return r.startsWith("column")&&(s[`& > .${zu.item}`]={maxWidth:"none"}),s})}function L1({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(s=>{n===""&&t[s]!==0&&(n=s)});const r=Object.keys(e).sort((s,a)=>e[s]-e[a]);return r.slice(0,r.indexOf(n))}function IT({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let s={};if(n&&r!==0){const a=sa({values:r,breakpoints:e.breakpoints.values});let l;typeof a=="object"&&(l=L1({breakpoints:e.breakpoints.values,values:a})),s=Rr({theme:e},a,(u,f)=>{const p=e.spacing(u);return p!=="0px"?{marginTop:`-${p}`,[`& > .${zu.item}`]:{paddingTop:p}}:l!=null&&l.includes(f)?{}:{marginTop:0,[`& > .${zu.item}`]:{paddingTop:0}}})}return s}function WT({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let s={};if(n&&r!==0){const a=sa({values:r,breakpoints:e.breakpoints.values});let l;typeof a=="object"&&(l=L1({breakpoints:e.breakpoints.values,values:a})),s=Rr({theme:e},a,(u,f)=>{const p=e.spacing(u);if(p!=="0px"){const h=`-${p}`;return{width:`calc(100% + ${p})`,marginLeft:h,[`& > .${zu.item}`]:{paddingLeft:p}}}return l!=null&&l.includes(f)?{}:{width:"100%",marginLeft:0,[`& > .${zu.item}`]:{paddingLeft:0}}})}return s}function JT(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(s=>{const a=e[s];Number(a)>0&&r.push(n[`spacing-${s}-${String(a)}`])}),r}const FT=pe("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:s,item:a,spacing:l,wrap:u,zeroMinWidth:f,breakpoints:p}=n;let h=[];r&&(h=JT(l,p,t));const m=[];return p.forEach(y=>{const H=n[y];H&&m.push(t[`grid-${y}-${String(H)}`])}),[t.root,r&&t.container,a&&t.item,f&&t.zeroMinWidth,...h,s!=="row"&&t[`direction-xs-${String(s)}`],u!=="wrap"&&t[`wrap-xs-${String(u)}`],...m]}})(({ownerState:e})=>({boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...e.item&&{margin:0},...e.zeroMinWidth&&{minWidth:0},...e.wrap!=="wrap"&&{flexWrap:e.wrap}}),VT,IT,WT,BT);function YT(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const s=e[r];if(Number(s)>0){const a=`spacing-${r}-${String(s)}`;n.push(a)}}),n}const qT=e=>{const{classes:t,container:n,direction:r,item:s,spacing:a,wrap:l,zeroMinWidth:u,breakpoints:f}=e;let p=[];n&&(p=YT(a,f));const h=[];f.forEach(y=>{const H=e[y];H&&h.push(`grid-${y}-${String(H)}`)});const m={root:["root",n&&"container",s&&"item",u&&"zeroMinWidth",...p,r!=="row"&&`direction-xs-${String(r)}`,l!=="wrap"&&`wrap-xs-${String(l)}`,...h]};return Ke(m,MT,t)},ss=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiGrid"}),{breakpoints:s}=Kr(),a=Jp(r),{className:l,columns:u,columnSpacing:f,component:p="div",container:h=!1,direction:m="row",item:y=!1,rowSpacing:H,spacing:A=0,wrap:w="wrap",zeroMinWidth:x=!1,...S}=a,z=H||A,O=f||A,C=P.useContext(xx),D=h?u||12:C,k={},R={...S};s.keys.forEach(j=>{S[j]!=null&&(k[j]=S[j],delete R[j])});const M={...a,columns:D,container:h,direction:m,item:y,rowSpacing:z,columnSpacing:O,wrap:w,zeroMinWidth:x,spacing:A,...k,breakpoints:s.keys},L=qT(M);return v.jsx(xx.Provider,{value:D,children:v.jsx(FT,{ownerState:M,className:Oe(L.root,l),as:p,ref:n,...R})})});function Pg(e){return`scale(${e}, ${e**2})`}const ZT={entering:{opacity:1,transform:Pg(1)},entered:{opacity:1,transform:"none"}},km=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ou=P.forwardRef(function(t,n){const{addEndListener:r,appear:s=!0,children:a,easing:l,in:u,onEnter:f,onEntered:p,onEntering:h,onExit:m,onExited:y,onExiting:H,style:A,timeout:w="auto",TransitionComponent:x=No,...S}=t,z=Gi(),O=P.useRef(),C=Kr(),D=P.useRef(null),k=rn(D,xi(a),n),R=W=>ne=>{if(W){const re=D.current;ne===void 0?W(re):W(re,ne)}},M=R(h),L=R((W,ne)=>{Hy(W);const{duration:re,delay:F,easing:_}=Cl({style:A,timeout:w,easing:l},{mode:"enter"});let E;w==="auto"?(E=C.transitions.getAutoHeightDuration(W.clientHeight),O.current=E):E=re,W.style.transition=[C.transitions.create("opacity",{duration:E,delay:F}),C.transitions.create("transform",{duration:km?E:E*.666,delay:F,easing:_})].join(","),f&&f(W,ne)}),j=R(p),B=R(H),I=R(W=>{const{duration:ne,delay:re,easing:F}=Cl({style:A,timeout:w,easing:l},{mode:"exit"});let _;w==="auto"?(_=C.transitions.getAutoHeightDuration(W.clientHeight),O.current=_):_=ne,W.style.transition=[C.transitions.create("opacity",{duration:_,delay:re}),C.transitions.create("transform",{duration:km?_:_*.666,delay:km?re:re||_*.333,easing:F})].join(","),W.style.opacity=0,W.style.transform=Pg(.75),m&&m(W)}),J=R(y),K=W=>{w==="auto"&&z.start(O.current||0,W),r&&r(D.current,W)};return v.jsx(x,{appear:s,in:u,nodeRef:D,onEnter:L,onEntered:j,onEntering:M,onExit:I,onExited:J,onExiting:B,addEndListener:K,timeout:w==="auto"?null:w,...S,children:(W,ne)=>P.cloneElement(a,{style:{opacity:0,transform:Pg(.75),visibility:W==="exited"&&!u?"hidden":void 0,...ZT[W],...A,...a.props.style},ref:k,...ne})})});Ou&&(Ou.muiSupportAuto=!0);const GT=oj({themeId:Ro}),UT=e=>{const{classes:t,disableUnderline:n}=e,s=Ke({root:["root",!n&&"underline"],input:["input"]},oC,t);return{...t,...s}},QT=pe(Kp,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Up(e,t),!n.disableUnderline&&t.underline]}})(Qe(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${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"},[`&.${ai.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ai.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(.${ai.disabled}, .${ai.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ai.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(gn()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),KT=pe(_p,{name:"MuiInput",slot:"Input",overridesResolver:Qp})({}),fp=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiInput"}),{disableUnderline:s=!1,components:a={},componentsProps:l,fullWidth:u=!1,inputComponent:f="input",multiline:p=!1,slotProps:h,slots:m={},type:y="text",...H}=r,A=UT(r),x={root:{ownerState:{disableUnderline:s}}},S=h??l?qn(h??l,x):x,z=m.root??a.Root??QT,O=m.input??a.Input??KT;return v.jsx($p,{slots:{root:z,input:O},slotProps:S,fullWidth:u,inputComponent:f,multiline:p,ref:n,type:y,...H,classes:A})});fp&&(fp.muiName="Input");function _T(e){return Ge("MuiInputAdornment",e)}const wx=Ue("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Hx;const $T=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${me(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},ek=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:s,size:a,variant:l}=e,u={root:["root",n&&"disablePointerEvents",s&&`position${me(s)}`,l,r&&"hiddenLabel",a&&`size${me(a)}`]};return Ke(u,_T,t)},tk=pe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:$T})(Qe(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${wx.positionStart}&:not(.${wx.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),X1=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiInputAdornment"}),{children:s,className:a,component:l="div",disablePointerEvents:u=!1,disableTypography:f=!1,position:p,variant:h,...m}=r,y=Bo()||{};let H=h;h&&y.variant,y&&!H&&(H=y.variant);const A={...r,hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:u,position:p,variant:H},w=ek(A);return v.jsx(Gp.Provider,{value:null,children:v.jsx(tk,{as:l,ownerState:A,className:Oe(w.root,a),ref:n,...m,children:typeof s=="string"&&!f?v.jsx(xt,{color:"textSecondary",children:s}):v.jsxs(P.Fragment,{children:[p==="start"?Hx||(Hx=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,s]})})})});function nk(e){return Ge("MuiInputLabel",e)}Ue("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const rk=e=>{const{classes:t,formControl:n,size:r,shrink:s,disableAnimation:a,variant:l,required:u}=e,f={root:["root",n&&"formControl",!a&&"animated",s&&"shrink",r&&r!=="normal"&&`size${me(r)}`,l],asterisk:[u&&"asterisk"]},p=Ke(f,nk,t);return{...t,...p}},ok=pe(Id,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${pu.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]]}})(Qe(({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)"}}]}))),Wd=P.forwardRef(function(t,n){const r=$e({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:a,shrink:l,variant:u,className:f,...p}=r,h=Bo();let m=l;typeof m>"u"&&h&&(m=h.filled||h.focused||h.adornedStart);const y=Hi({props:r,muiFormControl:h,states:["size","variant","required","focused"]}),H={...r,disableAnimation:s,formControl:h,shrink:m,size:y.size,variant:y.variant,required:y.required,focused:y.focused},A=rk(H);return v.jsx(ok,{"data-shrink":m,ref:n,className:Oe(A.root,f),...p,ownerState:H,classes:A})});function sk(e){return Ge("MuiLink",e)}const ik=Ue("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),ak=({theme:e,ownerState:t})=>{const n=t.color,r=Sl(e,`palette.${n}`,!1)||t.color,s=Sl(e,`palette.${n}Channel`);return"vars"in e&&s?`rgba(${s} / 0.4)`:Pt(r,.4)},jx={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},lk=e=>{const{classes:t,component:n,focusVisible:r,underline:s}=e,a={root:["root",`underline${me(s)}`,n==="button"&&"button",r&&"focusVisible"]};return Ke(a,sk,t)},ck=pe(xt,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${me(n.underline)}`],n.component==="button"&&t.button]}})(Qe(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:Pt(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Pt(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:Pt(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ik.focusVisible}`]:{outline:"auto"}}}]}))),ou=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiLink"}),s=Kr(),{className:a,color:l="primary",component:u="a",onBlur:f,onFocus:p,TypographyClasses:h,underline:m="always",variant:y="inherit",sx:H,...A}=r,[w,x]=P.useState(!1),S=D=>{Ol(D.target)||x(!1),f&&f(D)},z=D=>{Ol(D.target)&&x(!0),p&&p(D)},O={...r,color:l,component:u,focusVisible:w,underline:m,variant:y},C=lk(O);return v.jsx(ck,{color:l,className:Oe(C.root,a),classes:h,component:u,onBlur:S,onFocus:z,ref:n,ownerState:O,variant:y,...A,sx:[...jx[l]===void 0?[{color:l}]:[],...Array.isArray(H)?H:[H]],style:{...A.style,...m==="always"&&l!=="inherit"&&!jx[l]&&{"--Link-underlineColor":ak({theme:s,ownerState:O})}}})}),Eo=P.createContext({});function uk(e){return Ge("MuiList",e)}Ue("MuiList",["root","padding","dense","subheader"]);const fk=e=>{const{classes:t,disablePadding:n,dense:r,subheader:s}=e;return Ke({root:["root",!n&&"padding",r&&"dense",s&&"subheader"]},uk,t)},dk=pe("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}}]}),bg=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiList"}),{children:s,className:a,component:l="ul",dense:u=!1,disablePadding:f=!1,subheader:p,...h}=r,m=P.useMemo(()=>({dense:u}),[u]),y={...r,component:l,dense:u,disablePadding:f},H=fk(y);return v.jsx(Eo.Provider,{value:m,children:v.jsxs(dk,{as:l,className:Oe(H.root,a),ref:n,ownerState:y,...h,children:[p,s]})})});function pk(e){return Ge("MuiListItem",e)}Ue("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function vk(e){return Ge("MuiListItemButton",e)}const rl=Ue("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),hk=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},mk=e=>{const{alignItems:t,classes:n,dense:r,disabled:s,disableGutters:a,divider:l,selected:u}=e,p=Ke({root:["root",r&&"dense",!a&&"gutters",l&&"divider",s&&"disabled",t==="flex-start"&&"alignItemsFlexStart",u&&"selected"]},vk,n);return{...n,...p}},gk=pe(fa,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:hk})(Qe(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${rl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${rl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${rl.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${rl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${rl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),N1=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiListItemButton"}),{alignItems:s="center",autoFocus:a=!1,component:l="div",children:u,dense:f=!1,disableGutters:p=!1,divider:h=!1,focusVisibleClassName:m,selected:y=!1,className:H,...A}=r,w=P.useContext(Eo),x=P.useMemo(()=>({dense:f||w.dense||!1,alignItems:s,disableGutters:p}),[s,w.dense,f,p]),S=P.useRef(null);fo(()=>{a&&S.current&&S.current.focus()},[a]);const z={...r,alignItems:s,dense:x.dense,disableGutters:p,divider:h,selected:y},O=mk(z),C=rn(S,n);return v.jsx(Eo.Provider,{value:x,children:v.jsx(gk,{ref:C,href:A.href||A.to,component:(A.href||A.to)&&l==="div"?"button":l,focusVisibleClassName:Oe(O.focusVisible,m),ownerState:z,className:Oe(O.root,H),...A,classes:O,children:u})})});function yk(e){return Ge("MuiListItemSecondaryAction",e)}Ue("MuiListItemSecondaryAction",["root","disableGutters"]);const Ak=e=>{const{disableGutters:t,classes:n}=e;return Ke({root:["root",t&&"disableGutters"]},yk,n)},Pk=pe("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),B1=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiListItemSecondaryAction"}),{className:s,...a}=r,l=P.useContext(Eo),u={...r,disableGutters:l.disableGutters},f=Ak(u);return v.jsx(Pk,{className:Oe(f.root,s),ownerState:u,ref:n,...a})});B1.muiName="ListItemSecondaryAction";const bk=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},xk=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:s,disablePadding:a,divider:l,hasSecondaryAction:u}=e;return Ke({root:["root",r&&"dense",!s&&"gutters",!a&&"padding",l&&"divider",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction"],container:["container"]},pk,n)},wk=pe("div",{name:"MuiListItem",slot:"Root",overridesResolver:bk})(Qe(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${rl.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),Hk=pe("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Mc=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiListItem"}),{alignItems:s="center",children:a,className:l,component:u,components:f={},componentsProps:p={},ContainerComponent:h="li",ContainerProps:{className:m,...y}={},dense:H=!1,disableGutters:A=!1,disablePadding:w=!1,divider:x=!1,secondaryAction:S,slotProps:z={},slots:O={},...C}=r,D=P.useContext(Eo),k=P.useMemo(()=>({dense:H||D.dense||!1,alignItems:s,disableGutters:A}),[s,D.dense,H,A]),R=P.useRef(null),M=P.Children.toArray(a),L=M.length&&Nd(M[M.length-1],["ListItemSecondaryAction"]),j={...r,alignItems:s,dense:k.dense,disableGutters:A,disablePadding:w,divider:x,hasSecondaryAction:L},B=xk(j),I=rn(R,n),J=O.root||f.Root||wk,K=z.root||p.root||{},W={className:Oe(B.root,K.className,l),...C};let ne=u||"li";return L?(ne=!W.component&&!u?"div":ne,h==="li"&&(ne==="li"?ne="div":W.component==="li"&&(W.component="div")),v.jsx(Eo.Provider,{value:k,children:v.jsxs(Hk,{as:h,className:Oe(B.container,m),ref:I,ownerState:j,...y,children:[v.jsx(J,{...K,...!El(J)&&{as:ne,ownerState:{...j,...K.ownerState}},...W,children:M}),M.pop()]})})):v.jsx(Eo.Provider,{value:k,children:v.jsxs(J,{...K,as:ne,ref:I,...!El(J)&&{ownerState:{...j,...K.ownerState}},...W,children:[M,S&&v.jsx(B1,{children:S})]})})});function jk(e){return Ge("MuiListItemIcon",e)}const Sx=Ue("MuiListItemIcon",["root","alignItemsFlexStart"]),Sk=e=>{const{alignItems:t,classes:n}=e;return Ke({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},jk,n)},zk=pe("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Qe(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Ok=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiListItemIcon"}),{className:s,...a}=r,l=P.useContext(Eo),u={...r,alignItems:l.alignItems},f=Sk(u);return v.jsx(zk,{className:Oe(f.root,s),ownerState:u,ref:n,...a})});function Ck(e){return Ge("MuiListItemText",e)}const il=Ue("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Dk=e=>{const{classes:t,inset:n,primary:r,secondary:s,dense:a}=e;return Ke({root:["root",n&&"inset",a&&"dense",r&&s&&"multiline"],primary:["primary"],secondary:["secondary"]},Ck,t)},Tk=pe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${il.primary}`]:t.primary},{[`& .${il.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,[`.${Z8.root}:where(& .${il.primary})`]:{display:"block"},[`.${Z8.root}:where(& .${il.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),al=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiListItemText"}),{children:s,className:a,disableTypography:l=!1,inset:u=!1,primary:f,primaryTypographyProps:p,secondary:h,secondaryTypographyProps:m,...y}=r,{dense:H}=P.useContext(Eo);let A=f??s,w=h;const x={...r,disableTypography:l,inset:u,primary:!!A,secondary:!!w,dense:H},S=Dk(x);return A!=null&&A.type!==xt&&!l&&(A=v.jsx(xt,{variant:H?"body2":"body1",className:S.primary,component:p!=null&&p.variant?void 0:"span",...p,children:A})),w!=null&&w.type!==xt&&!l&&(w=v.jsx(xt,{variant:"body2",className:S.secondary,color:"textSecondary",...m,children:w})),v.jsxs(Tk,{className:Oe(S.root,a),ownerState:x,ref:n,...y,children:[A,w]})});function Rm(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function zx(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function V1(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 Lc(e,t,n,r,s,a){let l=!1,u=s(e,t,t?n:!1);for(;u;){if(u===e.firstChild){if(l)return!1;l=!0}const f=r?!1:u.disabled||u.getAttribute("aria-disabled")==="true";if(!u.hasAttribute("tabindex")||!V1(u,a)||f)u=s(e,u,n);else return u.focus(),!0}return!1}const kk=P.forwardRef(function(t,n){const{actions:r,autoFocus:s=!1,autoFocusItem:a=!1,children:l,className:u,disabledItemsFocusable:f=!1,disableListWrap:p=!1,onKeyDown:h,variant:m="selectedMenu",...y}=t,H=P.useRef(null),A=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});fo(()=>{s&&H.current.focus()},[s]),P.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(O,{direction:C})=>{const D=!H.current.style.width;if(O.clientHeight{const C=H.current,D=O.key;if(O.ctrlKey||O.metaKey||O.altKey){h&&h(O);return}const R=ir(C).activeElement;if(D==="ArrowDown")O.preventDefault(),Lc(C,R,p,f,Rm);else if(D==="ArrowUp")O.preventDefault(),Lc(C,R,p,f,zx);else if(D==="Home")O.preventDefault(),Lc(C,null,p,f,Rm);else if(D==="End")O.preventDefault(),Lc(C,null,p,f,zx);else if(D.length===1){const M=A.current,L=D.toLowerCase(),j=performance.now();M.keys.length>0&&(j-M.lastTime>500?(M.keys=[],M.repeating=!0,M.previousKeyMatched=!0):M.repeating&&L!==M.keys[0]&&(M.repeating=!1)),M.lastTime=j,M.keys.push(L);const B=R&&!M.repeating&&V1(R,M);M.previousKeyMatched&&(B||Lc(C,R,!1,f,Rm,M))?O.preventDefault():M.previousKeyMatched=!1}h&&h(O)},x=rn(H,n);let S=-1;P.Children.forEach(l,(O,C)=>{if(!P.isValidElement(O)){S===C&&(S+=1,S>=l.length&&(S=-1));return}O.props.disabled||(m==="selectedMenu"&&O.props.selected||S===-1)&&(S=C),S===C&&(O.props.disabled||O.props.muiSkipListHighlight||O.type.muiSkipListHighlight)&&(S+=1,S>=l.length&&(S=-1))});const z=P.Children.map(l,(O,C)=>{if(C===S){const D={};return a&&(D.autoFocus=!0),O.props.tabIndex===void 0&&m==="selectedMenu"&&(D.tabIndex=0),P.cloneElement(O,D)}return O});return v.jsx(bg,{role:"menu",ref:x,className:u,onKeyDown:w,tabIndex:s?0:-1,...y,children:z})});function Rk(e){return Ge("MuiPopover",e)}Ue("MuiPopover",["root","paper"]);function Ox(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Cx(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Dx(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Em(e){return typeof e=="function"?e():e}const Ek=e=>{const{classes:t}=e;return Ke({root:["root"],paper:["paper"]},Rk,t)},Mk=pe(Ey,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),I1=pe(Ur,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Lk=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiPopover"}),{action:s,anchorEl:a,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:p,className:h,container:m,elevation:y=8,marginThreshold:H=16,open:A,PaperProps:w={},slots:x={},slotProps:S={},transformOrigin:z={vertical:"top",horizontal:"left"},TransitionComponent:O=Ou,transitionDuration:C="auto",TransitionProps:{onEntering:D,...k}={},disableScrollLock:R=!1,...M}=r,L=(S==null?void 0:S.paper)??w,j=P.useRef(),B={...r,anchorOrigin:l,anchorReference:f,elevation:y,marginThreshold:H,externalPaperSlotProps:L,transformOrigin:z,TransitionComponent:O,transitionDuration:C,TransitionProps:k},I=Ek(B),J=P.useCallback(()=>{if(f==="anchorPosition")return u;const Xe=Em(a),He=(Xe&&Xe.nodeType===1?Xe:ir(j.current).body).getBoundingClientRect();return{top:He.top+Ox(He,l.vertical),left:He.left+Cx(He,l.horizontal)}},[a,l.horizontal,l.vertical,u,f]),K=P.useCallback(Xe=>({vertical:Ox(Xe,z.vertical),horizontal:Cx(Xe,z.horizontal)}),[z.horizontal,z.vertical]),W=P.useCallback(Xe=>{const Ie={width:Xe.offsetWidth,height:Xe.offsetHeight},He=K(Ie);if(f==="none")return{top:null,left:null,transformOrigin:Dx(He)};const _e=J();let we=_e.top-He.vertical,tt=_e.left-He.horizontal;const Le=we+Ie.height,dt=tt+Ie.width,N=Mo(Em(a)),$=N.innerHeight-H,se=N.innerWidth-H;if(H!==null&&we$){const ye=Le-$;we-=ye,He.vertical+=ye}if(H!==null&&ttse){const ye=dt-se;tt-=ye,He.horizontal+=ye}return{top:`${Math.round(we)}px`,left:`${Math.round(tt)}px`,transformOrigin:Dx(He)}},[a,f,J,K,H]),[ne,re]=P.useState(A),F=P.useCallback(()=>{const Xe=j.current;if(!Xe)return;const Ie=W(Xe);Ie.top!==null&&Xe.style.setProperty("top",Ie.top),Ie.left!==null&&(Xe.style.left=Ie.left),Xe.style.transformOrigin=Ie.transformOrigin,re(!0)},[W]);P.useEffect(()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F)),[a,R,F]);const _=(Xe,Ie)=>{D&&D(Xe,Ie),F()},E=()=>{re(!1)};P.useEffect(()=>{A&&F()}),P.useImperativeHandle(s,()=>A?{updatePosition:()=>{F()}}:null,[A,F]),P.useEffect(()=>{if(!A)return;const Xe=hy(()=>{F()}),Ie=Mo(a);return Ie.addEventListener("resize",Xe),()=>{Xe.clear(),Ie.removeEventListener("resize",Xe)}},[a,A,F]);let G=C;C==="auto"&&!O.muiSupportAuto&&(G=void 0);const X=m||(a?ir(Em(a)).body:void 0),ee={slots:x,slotProps:{...S,paper:L}},[te,ue]=Cn("paper",{elementType:I1,externalForwardedProps:ee,additionalProps:{elevation:y,className:Oe(I.paper,L==null?void 0:L.className),style:ne?L.style:{...L.style,opacity:0}},ownerState:B}),[de,{slotProps:xe,...ve}]=Cn("root",{elementType:Mk,externalForwardedProps:ee,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:X,open:A},ownerState:B,className:Oe(I.root,h)}),be=rn(j,ue.ref);return v.jsx(de,{...ve,...!El(de)&&{slotProps:xe,disableScrollLock:R},...M,ref:n,children:v.jsx(O,{appear:!0,in:A,onEntering:_,onExited:E,timeout:G,...k,children:v.jsx(te,{...ue,ref:be,children:p})})})});function Xk(e){return Ge("MuiMenu",e)}Ue("MuiMenu",["root","paper","list"]);const Nk={vertical:"top",horizontal:"right"},Bk={vertical:"top",horizontal:"left"},Vk=e=>{const{classes:t}=e;return Ke({root:["root"],paper:["paper"],list:["list"]},Xk,t)},Ik=pe(Lk,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Wk=pe(I1,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Jk=pe(kk,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Cu=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:u=!1,MenuListProps:f={},onClose:p,open:h,PaperProps:m={},PopoverClasses:y,transitionDuration:H="auto",TransitionProps:{onEntering:A,...w}={},variant:x="selectedMenu",slots:S={},slotProps:z={},...O}=r,C=Ju(),D={...r,autoFocus:s,disableAutoFocusItem:u,MenuListProps:f,onEntering:A,PaperProps:m,transitionDuration:H,TransitionProps:w,variant:x},k=Vk(D),R=s&&!u&&h,M=P.useRef(null),L=(ne,re)=>{M.current&&M.current.adjustStyleForScrollbar(ne,{direction:C?"rtl":"ltr"}),A&&A(ne,re)},j=ne=>{ne.key==="Tab"&&(ne.preventDefault(),p&&p(ne,"tabKeyDown"))};let B=-1;P.Children.map(a,(ne,re)=>{P.isValidElement(ne)&&(ne.props.disabled||(x==="selectedMenu"&&ne.props.selected||B===-1)&&(B=re))});const I=S.paper??Wk,J=z.paper??m,K=sp({elementType:S.root,externalSlotProps:z.root,ownerState:D,className:[k.root,l]}),W=sp({elementType:I,externalSlotProps:J,ownerState:D,className:k.paper});return v.jsx(Ik,{onClose:p,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Nk:Bk,slots:{paper:I,root:S.root},slotProps:{root:K,paper:W},open:h,ref:n,transitionDuration:H,TransitionProps:{onEntering:L,...w},ownerState:D,...O,classes:y,children:v.jsx(Jk,{onKeyDown:j,actions:M,autoFocus:s&&(B===-1||u),autoFocusItem:R,variant:x,...f,className:Oe(k.list,f.className),children:a})})});function Fk(e){return Ge("MuiMenuItem",e)}const Xc=Ue("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Yk=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},qk=e=>{const{disabled:t,dense:n,divider:r,disableGutters:s,selected:a,classes:l}=e,f=Ke({root:["root",n&&"dense",t&&"disabled",!s&&"gutters",r&&"divider",a&&"selected"]},Fk,l);return{...l,...f}},Zk=pe(fa,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Yk})(Qe(({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"}},[`&.${Xc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Xc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Xc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Xc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Xc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${yx.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${yx.inset}`]:{marginLeft:52},[`& .${il.root}`]:{marginTop:0,marginBottom:0},[`& .${il.inset}`]:{paddingLeft:36},[`& .${Sx.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,[`& .${Sx.root} svg`]:{fontSize:"1.25rem"}}}]}))),ts=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiMenuItem"}),{autoFocus:s=!1,component:a="li",dense:l=!1,divider:u=!1,disableGutters:f=!1,focusVisibleClassName:p,role:h="menuitem",tabIndex:m,className:y,...H}=r,A=P.useContext(Eo),w=P.useMemo(()=>({dense:l||A.dense||!1,disableGutters:f}),[A.dense,l,f]),x=P.useRef(null);fo(()=>{s&&x.current&&x.current.focus()},[s]);const S={...r,dense:w.dense,divider:u,disableGutters:f},z=qk(r),O=rn(x,n);let C;return r.disabled||(C=m!==void 0?m:-1),v.jsx(Eo.Provider,{value:w,children:v.jsx(Zk,{ref:O,role:h,tabIndex:C,component:a,focusVisibleClassName:Oe(z.focusVisible,p),className:Oe(z.root,y),...H,ownerState:S,classes:z})})});function Gk(e){return Ge("MuiNativeSelect",e)}const My=Ue("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Uk=e=>{const{classes:t,variant:n,disabled:r,multiple:s,open:a,error:l}=e,u={select:["select",n,r&&"disabled",s&&"multiple",l&&"error"],icon:["icon",`icon${me(n)}`,a&&"iconOpen",r&&"disabled"]};return Ke(u,Gk,t)},W1=pe("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${My.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}}}]})),Qk=pe(W1,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Zn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${My.multiple}`]:t.multiple}]}})({}),J1=pe("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${My.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}}]})),Kk=pe(J1,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${me(n.variant)}`],n.open&&t.iconOpen]}})({}),_k=P.forwardRef(function(t,n){const{className:r,disabled:s,error:a,IconComponent:l,inputRef:u,variant:f="standard",...p}=t,h={...t,disabled:s,variant:f,error:a},m=Uk(h);return v.jsxs(P.Fragment,{children:[v.jsx(Qk,{ownerState:h,className:Oe(m.select,r),disabled:s,ref:u||n,...p}),t.multiple?null:v.jsx(Kk,{as:l,ownerState:h,className:m.icon})]})});var Tx;const $k=pe("fieldset",{shouldForwardProp:Zn})({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%"}),eR=pe("legend",{shouldForwardProp:Zn})(Qe(({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 tR(e){const{children:t,classes:n,className:r,label:s,notched:a,...l}=e,u=s!=null&&s!=="",f={...e,notched:a,withLabel:u};return v.jsx($k,{"aria-hidden":!0,className:r,ownerState:f,...l,children:v.jsx(eR,{ownerState:f,children:u?v.jsx("span",{children:s}):Tx||(Tx=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const nR=e=>{const{classes:t}=e,r=Ke({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},sC,t);return{...t,...r}},rR=pe(Kp,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Up})(Qe(({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 .${oo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${oo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${oo.focused} .${oo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(gn()).map(([n])=>({props:{color:n},style:{[`&.${oo.focused} .${oo.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${oo.error} .${oo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${oo.disabled} .${oo.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"}}]}})),oR=pe(tR,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Qe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),sR=pe(_p,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Qp})(Qe(({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}}]}))),dp=P.forwardRef(function(t,n){var r;const s=$e({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:l=!1,inputComponent:u="input",label:f,multiline:p=!1,notched:h,slots:m={},type:y="text",...H}=s,A=nR(s),w=Bo(),x=Hi({props:s,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S={...s,color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:w,fullWidth:l,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:y},z=m.root??a.Root??rR,O=m.input??a.Input??sR;return v.jsx($p,{slots:{root:z,input:O},renderSuffix:C=>v.jsx(oR,{ownerState:S,className:A.notchedOutline,label:f!=null&&f!==""&&x.required?r||(r=v.jsxs(P.Fragment,{children:[f," ","*"]})):f,notched:typeof h<"u"?h:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:l,inputComponent:u,multiline:p,ref:n,type:y,...H,classes:{...A,notchedOutline:null}})});dp&&(dp.muiName="Input");const iR=At(v.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),aR=At(v.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),lR=At(v.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"}),"RadioButtonUnchecked"),cR=At(v.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"}),"RadioButtonChecked"),uR=pe("span",{shouldForwardProp:Zn})({position:"relative",display:"flex"}),fR=pe(lR)({transform:"scale(1)"}),dR=pe(cR)(Qe(({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 F1(e){const{checked:t=!1,classes:n={},fontSize:r}=e,s={...e,checked:t};return v.jsxs(uR,{className:n.root,ownerState:s,children:[v.jsx(fR,{fontSize:r,className:n.background,ownerState:s}),v.jsx(dR,{fontSize:r,className:n.dot,ownerState:s})]})}const Y1=P.createContext(void 0);function pR(){return P.useContext(Y1)}function vR(e){return Ge("MuiRadio",e)}const kx=Ue("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),hR=e=>{const{classes:t,color:n,size:r}=e,s={root:["root",`color${me(n)}`,r!=="medium"&&`size${me(r)}`]};return{...t,...Ke(s,vR,t)}},mR=pe(Ry,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${me(n.size)}`],t[`color${me(n.color)}`]]}})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${kx.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${kx.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function gR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const Rx=v.jsx(F1,{checked:!0}),Ex=v.jsx(F1,{}),Du=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:a=Rx,color:l="primary",icon:u=Ex,name:f,onChange:p,size:h="medium",className:m,disabled:y,disableRipple:H=!1,...A}=r,w=Bo();let x=y;w&&typeof x>"u"&&(x=w.disabled),x??(x=!1);const S={...r,disabled:x,disableRipple:H,color:l,size:h},z=hR(S),O=pR();let C=s;const D=ig(p,O&&O.onChange);let k=f;return O&&(typeof C>"u"&&(C=gR(O.value,r.value)),typeof k>"u"&&(k=O.name)),v.jsx(mR,{type:"radio",icon:P.cloneElement(u,{fontSize:Ex.props.fontSize??h}),checkedIcon:P.cloneElement(a,{fontSize:Rx.props.fontSize??h}),disabled:x,ownerState:S,classes:z,name:k,checked:C,onChange:D,ref:n,className:Oe(z.root,m),...A})});function yR(e){return Ge("MuiRadioGroup",e)}Ue("MuiRadioGroup",["root","row","error"]);const AR=e=>{const{classes:t,row:n,error:r}=e;return Ke({root:["root",n&&"row",r&&"error"]},yR,t)},pp=P.forwardRef(function(t,n){const{actions:r,children:s,className:a,defaultValue:l,name:u,onChange:f,value:p,...h}=t,m=P.useRef(null),y=AR(t),[H,A]=yi({controlled:p,default:l,name:"RadioGroup"});P.useImperativeHandle(r,()=>({focus:()=>{let z=m.current.querySelector("input:not(:disabled):checked");z||(z=m.current.querySelector("input:not(:disabled)")),z&&z.focus()}}),[]);const w=rn(n,m),x=Rs(u),S=P.useMemo(()=>({name:x,onChange(z){A(z.target.value),f&&f(z,z.target.value)},value:H}),[x,f,A,H]);return v.jsx(Y1.Provider,{value:S,children:v.jsx(zT,{role:"radiogroup",ref:w,className:Oe(y.root,a),...h,children:s})})});function PR(e){return Ge("MuiSelect",e)}const Nc=Ue("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Mx;const bR=pe(W1,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Nc.select}`]:t.select},{[`&.${Nc.select}`]:t[n.variant]},{[`&.${Nc.error}`]:t.error},{[`&.${Nc.multiple}`]:t.multiple}]}})({[`&.${Nc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),xR=pe(J1,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${me(n.variant)}`],n.open&&t.iconOpen]}})({}),wR=pe("input",{shouldForwardProp:e=>c1(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Lx(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function HR(e){return e==null||typeof e=="string"&&!e.trim()}const jR=e=>{const{classes:t,variant:n,disabled:r,multiple:s,open:a,error:l}=e,u={select:["select",n,r&&"disabled",s&&"multiple",l&&"error"],icon:["icon",`icon${me(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ke(u,PR,t)},SR=P.forwardRef(function(t,n){var Jt;const{"aria-describedby":r,"aria-label":s,autoFocus:a,autoWidth:l,children:u,className:f,defaultOpen:p,defaultValue:h,disabled:m,displayEmpty:y,error:H=!1,IconComponent:A,inputRef:w,labelId:x,MenuProps:S={},multiple:z,name:O,onBlur:C,onChange:D,onClose:k,onFocus:R,onOpen:M,open:L,readOnly:j,renderValue:B,SelectDisplayProps:I={},tabIndex:J,type:K,value:W,variant:ne="standard",...re}=t,[F,_]=yi({controlled:W,default:h,name:"Select"}),[E,G]=yi({controlled:L,default:p,name:"Select"}),X=P.useRef(null),ee=P.useRef(null),[te,ue]=P.useState(null),{current:de}=P.useRef(L!=null),[xe,ve]=P.useState(),be=rn(n,w),Xe=P.useCallback(Be=>{ee.current=Be,Be&&ue(Be)},[]),Ie=te==null?void 0:te.parentNode;P.useImperativeHandle(be,()=>({focus:()=>{ee.current.focus()},node:X.current,value:F}),[F]),P.useEffect(()=>{p&&E&&te&&!de&&(ve(l?null:Ie.clientWidth),ee.current.focus())},[te,l]),P.useEffect(()=>{a&&ee.current.focus()},[a]),P.useEffect(()=>{if(!x)return;const Be=ir(ee.current).getElementById(x);if(Be){const U=()=>{getSelection().isCollapsed&&ee.current.focus()};return Be.addEventListener("click",U),()=>{Be.removeEventListener("click",U)}}},[x]);const He=(Be,U)=>{Be?M&&M(U):k&&k(U),de||(ve(l?null:Ie.clientWidth),G(Be))},_e=Be=>{Be.button===0&&(Be.preventDefault(),ee.current.focus(),He(!0,Be))},we=Be=>{He(!1,Be)},tt=P.Children.toArray(u),Le=Be=>{const U=tt.find(Y=>Y.props.value===Be.target.value);U!==void 0&&(_(U.props.value),D&&D(Be,U))},dt=Be=>U=>{let Y;if(U.currentTarget.hasAttribute("tabindex")){if(z){Y=Array.isArray(F)?F.slice():[];const Pe=F.indexOf(Be.props.value);Pe===-1?Y.push(Be.props.value):Y.splice(Pe,1)}else Y=Be.props.value;if(Be.props.onClick&&Be.props.onClick(U),F!==Y&&(_(Y),D)){const Pe=U.nativeEvent||U,De=new Pe.constructor(Pe.type,Pe);Object.defineProperty(De,"target",{writable:!0,value:{value:Y,name:O}}),D(De,Be)}z||He(!1,U)}},N=Be=>{j||[" ","ArrowUp","ArrowDown","Enter"].includes(Be.key)&&(Be.preventDefault(),He(!0,Be))},$=te!==null&&E,se=Be=>{!$&&C&&(Object.defineProperty(Be,"target",{writable:!0,value:{value:F,name:O}}),C(Be))};delete re["aria-invalid"];let ye,ce;const Ae=[];let je=!1;(cp({value:F})||y)&&(B?ye=B(F):je=!0);const st=tt.map(Be=>{if(!P.isValidElement(Be))return null;let U;if(z){if(!Array.isArray(F))throw new Error(ks(2));U=F.some(Y=>Lx(Y,Be.props.value)),U&&je&&Ae.push(Be.props.children)}else U=Lx(F,Be.props.value),U&&je&&(ce=Be.props.children);return P.cloneElement(Be,{"aria-selected":U?"true":"false",onClick:dt(Be),onKeyUp:Y=>{Y.key===" "&&Y.preventDefault(),Be.props.onKeyUp&&Be.props.onKeyUp(Y)},role:"option",selected:U,value:void 0,"data-value":Be.props.value})});je&&(z?Ae.length===0?ye=null:ye=Ae.reduce((Be,U,Y)=>(Be.push(U),Y{const{classes:t}=e;return t},Ly={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Zn(e)&&e!=="variant",slot:"Root"},OR=pe(fp,Ly)(""),CR=pe(dp,Ly)(""),DR=pe(up,Ly)(""),Tu=P.forwardRef(function(t,n){const r=$e({name:"MuiSelect",props:t}),{autoWidth:s=!1,children:a,classes:l={},className:u,defaultOpen:f=!1,displayEmpty:p=!1,IconComponent:h=j1,id:m,input:y,inputProps:H,label:A,labelId:w,MenuProps:x,multiple:S=!1,native:z=!1,onClose:O,onOpen:C,open:D,renderValue:k,SelectDisplayProps:R,variant:M="outlined",...L}=r,j=z?_k:SR,B=Bo(),I=Hi({props:r,muiFormControl:B,states:["variant","error"]}),J=I.variant||M,K={...r,variant:J,classes:l},W=zR(K),{root:ne,...re}=W,F=y||{standard:v.jsx(OR,{ownerState:K}),outlined:v.jsx(CR,{label:A,ownerState:K}),filled:v.jsx(DR,{ownerState:K})}[J],_=rn(n,xi(F));return v.jsx(P.Fragment,{children:P.cloneElement(F,{inputComponent:j,inputProps:{children:a,error:I.error,IconComponent:h,variant:J,type:void 0,multiple:S,...z?{id:m}:{autoWidth:s,defaultOpen:f,displayEmpty:p,labelId:w,MenuProps:x,onClose:O,onOpen:C,open:D,renderValue:k,SelectDisplayProps:{id:m,...R}},...H,classes:H?qn(re,H.classes):re,...y?y.props.inputProps:{}},...(S&&z||p)&&J==="outlined"?{notched:!0}:{},ref:_,className:Oe(F.props.className,u,W.root),...!y&&{variant:J},...L})})});Tu.muiName="Select";function TR(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:s,resumeHideDuration:a}=e,l=Gi();P.useEffect(()=>{if(!s)return;function S(z){z.defaultPrevented||z.key==="Escape"&&(r==null||r(z,"escapeKeyDown"))}return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S)}},[s,r]);const u=mr((S,z)=>{r==null||r(S,z)}),f=mr(S=>{!r||S==null||l.start(S,()=>{u(null,"timeout")})});P.useEffect(()=>(s&&f(t),l.clear),[s,t,f,l]);const p=S=>{r==null||r(S,"clickaway")},h=l.clear,m=P.useCallback(()=>{t!=null&&f(a??t*.5)},[t,a,f]),y=S=>z=>{const O=S.onBlur;O==null||O(z),m()},H=S=>z=>{const O=S.onFocus;O==null||O(z),h()},A=S=>z=>{const O=S.onMouseEnter;O==null||O(z),h()},w=S=>z=>{const O=S.onMouseLeave;O==null||O(z),m()};return P.useEffect(()=>{if(!n&&s)return window.addEventListener("focus",m),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",h)}},[n,s,m,h]),{getRootProps:(S={})=>{const z={...op(e),...op(S)};return{role:"presentation",...S,...z,onBlur:y(z),onFocus:H(z),onMouseEnter:A(z),onMouseLeave:w(z)}},onClickAway:p}}function kR(e){return Ge("MuiSnackbarContent",e)}Ue("MuiSnackbarContent",["root","message","action"]);const RR=e=>{const{classes:t}=e;return Ke({root:["root"],action:["action"],message:["message"]},kR,t)},ER=pe(Ur,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(Qe(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=q0(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),MR=pe("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),LR=pe("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),XR=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiSnackbarContent"}),{action:s,className:a,message:l,role:u="alert",...f}=r,p=r,h=RR(p);return v.jsxs(ER,{role:u,square:!0,elevation:6,className:Oe(h.root,a),ownerState:p,ref:n,...f,children:[v.jsx(MR,{className:h.message,ownerState:p,children:l}),s?v.jsx(LR,{className:h.action,ownerState:p,children:s}):null]})});function NR(e){return Ge("MuiSnackbar",e)}Ue("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const BR=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${me(n.vertical)}${me(n.horizontal)}`]};return Ke(r,NR,t)},Xx=pe("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${me(n.anchorOrigin.vertical)}${me(n.anchorOrigin.horizontal)}`]]}})(Qe(({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%)"}}}]}))),VR=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiSnackbar"}),s=Kr(),a={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{action:l,anchorOrigin:{vertical:u,horizontal:f}={vertical:"bottom",horizontal:"left"},autoHideDuration:p=null,children:h,className:m,ClickAwayListenerProps:y,ContentProps:H,disableWindowBlurListener:A=!1,message:w,onBlur:x,onClose:S,onFocus:z,onMouseEnter:O,onMouseLeave:C,open:D,resumeHideDuration:k,TransitionComponent:R=Ou,transitionDuration:M=a,TransitionProps:{onEnter:L,onExited:j,...B}={},...I}=r,J={...r,anchorOrigin:{vertical:u,horizontal:f},autoHideDuration:p,disableWindowBlurListener:A,TransitionComponent:R,transitionDuration:M},K=BR(J),{getRootProps:W,onClickAway:ne}=TR({...J}),[re,F]=P.useState(!0),_=sp({elementType:Xx,getSlotProps:W,externalForwardedProps:I,ownerState:J,additionalProps:{ref:n},className:[K.root,m]}),E=X=>{F(!0),j&&j(X)},G=(X,ee)=>{F(!1),L&&L(X,ee)};return!D&&re?null:v.jsx(T1,{onClickAway:ne,...y,children:v.jsx(Xx,{..._,children:v.jsx(R,{appear:!0,in:D,timeout:M,direction:u==="top"?"down":"up",onEnter:G,onExited:E,...B,children:h||v.jsx(XR,{message:w,action:l,...H})})})})});function IR(e){return Ge("MuiTooltip",e)}const jn=Ue("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function WR(e){return Math.round(e*1e5)/1e5}const JR=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:s,placement:a}=e,l={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",s&&"touch",`tooltipPlacement${me(a.split("-")[0])}`],arrow:["arrow"]};return Ke(l,IR,t)},FR=pe(Zp,{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]}})(Qe(({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"] .${jn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${jn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${jn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${jn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${jn.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${jn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${jn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${jn.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),YR=pe("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${me(n.placement.split("-")[0])}`]]}})(Qe(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Pt(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,[`.${jn.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${jn.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${jn.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${jn.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:`${WR(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${jn.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${jn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${jn.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${jn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${jn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${jn.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${jn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${jn.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${jn.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${jn.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),qR=pe("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(Qe(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Pt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let xd=!1;const Nx=new Yp;let Bc={x:0,y:0};function wd(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Xy=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiTooltip"}),{arrow:s=!1,children:a,classes:l,components:u={},componentsProps:f={},describeChild:p=!1,disableFocusListener:h=!1,disableHoverListener:m=!1,disableInteractive:y=!1,disableTouchListener:H=!1,enterDelay:A=100,enterNextDelay:w=0,enterTouchDelay:x=700,followCursor:S=!1,id:z,leaveDelay:O=0,leaveTouchDelay:C=1500,onClose:D,onOpen:k,open:R,placement:M="bottom",PopperComponent:L,PopperProps:j={},slotProps:B={},slots:I={},title:J,TransitionComponent:K,TransitionProps:W,...ne}=r,re=P.isValidElement(a)?a:v.jsx("span",{children:a}),F=Kr(),_=Ju(),[E,G]=P.useState(),[X,ee]=P.useState(null),te=P.useRef(!1),ue=y||S,de=Gi(),xe=Gi(),ve=Gi(),be=Gi(),[Xe,Ie]=yi({controlled:R,default:!1,name:"Tooltip",state:"open"});let He=Xe;const _e=Rs(z),we=P.useRef(),tt=mr(()=>{we.current!==void 0&&(document.body.style.WebkitUserSelect=we.current,we.current=void 0),be.clear()});P.useEffect(()=>tt,[tt]);const Le=Fe=>{Nx.clear(),xd=!0,Ie(!0),k&&!He&&k(Fe)},dt=mr(Fe=>{Nx.start(800+O,()=>{xd=!1}),Ie(!1),D&&He&&D(Fe),de.start(F.transitions.duration.shortest,()=>{te.current=!1})}),N=Fe=>{te.current&&Fe.type!=="touchstart"||(E&&E.removeAttribute("title"),xe.clear(),ve.clear(),A||xd&&w?xe.start(xd?w:A,()=>{Le(Fe)}):Le(Fe))},$=Fe=>{xe.clear(),ve.start(O,()=>{dt(Fe)})},[,se]=P.useState(!1),ye=Fe=>{Ol(Fe.target)||(se(!1),$(Fe))},ce=Fe=>{E||G(Fe.currentTarget),Ol(Fe.target)&&(se(!0),N(Fe))},Ae=Fe=>{te.current=!0;const Rt=re.props;Rt.onTouchStart&&Rt.onTouchStart(Fe)},je=Fe=>{Ae(Fe),ve.clear(),de.clear(),tt(),we.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",be.start(x,()=>{document.body.style.WebkitUserSelect=we.current,N(Fe)})},st=Fe=>{re.props.onTouchEnd&&re.props.onTouchEnd(Fe),tt(),ve.start(C,()=>{dt(Fe)})};P.useEffect(()=>{if(!He)return;function Fe(Rt){Rt.key==="Escape"&&dt(Rt)}return document.addEventListener("keydown",Fe),()=>{document.removeEventListener("keydown",Fe)}},[dt,He]);const wt=rn(xi(re),G,n);!J&&J!==0&&(He=!1);const nt=P.useRef(),ft=Fe=>{const Rt=re.props;Rt.onMouseMove&&Rt.onMouseMove(Fe),Bc={x:Fe.clientX,y:Fe.clientY},nt.current&&nt.current.update()},ct={},Ht=typeof J=="string";p?(ct.title=!He&&Ht&&!m?J:null,ct["aria-describedby"]=He?_e:null):(ct["aria-label"]=Ht?J:null,ct["aria-labelledby"]=He&&!Ht?_e:null);const We={...ct,...ne,...re.props,className:Oe(ne.className,re.props.className),onTouchStart:Ae,ref:wt,...S?{onMouseMove:ft}:{}},Dt={};H||(We.onTouchStart=je,We.onTouchEnd=st),m||(We.onMouseOver=wd(N,We.onMouseOver),We.onMouseLeave=wd($,We.onMouseLeave),ue||(Dt.onMouseOver=N,Dt.onMouseLeave=$)),h||(We.onFocus=wd(ce,We.onFocus),We.onBlur=wd(ye,We.onBlur),ue||(Dt.onFocus=ce,Dt.onBlur=ye));const Jt={...r,isRtl:_,arrow:s,disableInteractive:ue,placement:M,PopperComponentProp:L,touch:te.current},Be=typeof B.popper=="function"?B.popper(Jt):B.popper,U=P.useMemo(()=>{var Rt,un;let Fe=[{name:"arrow",enabled:!!X,options:{element:X,padding:4}}];return(Rt=j.popperOptions)!=null&&Rt.modifiers&&(Fe=Fe.concat(j.popperOptions.modifiers)),(un=Be==null?void 0:Be.popperOptions)!=null&&un.modifiers&&(Fe=Fe.concat(Be.popperOptions.modifiers)),{...j.popperOptions,...Be==null?void 0:Be.popperOptions,modifiers:Fe}},[X,j.popperOptions,Be==null?void 0:Be.popperOptions]),Y=JR(Jt),Pe=typeof B.transition=="function"?B.transition(Jt):B.transition,De={slots:{popper:u.Popper,transition:u.Transition??K,tooltip:u.Tooltip,arrow:u.Arrow,...I},slotProps:{arrow:B.arrow??f.arrow,popper:{...j,...Be??f.popper},tooltip:B.tooltip??f.tooltip,transition:{...W,...Pe??f.transition}}},[Te,Ne]=Cn("popper",{elementType:FR,externalForwardedProps:De,ownerState:Jt,className:Oe(Y.popper,j==null?void 0:j.className)}),[Je,ke]=Cn("transition",{elementType:Ou,externalForwardedProps:De,ownerState:Jt}),[rt,vt]=Cn("tooltip",{elementType:YR,className:Y.tooltip,externalForwardedProps:De,ownerState:Jt}),[kt,Qt]=Cn("arrow",{elementType:qR,className:Y.arrow,externalForwardedProps:De,ownerState:Jt,ref:ee});return v.jsxs(P.Fragment,{children:[P.cloneElement(re,We),v.jsx(Te,{as:L??Zp,placement:M,anchorEl:S?{getBoundingClientRect:()=>({top:Bc.y,left:Bc.x,right:Bc.x,bottom:Bc.y,width:0,height:0})}:E,popperRef:nt,open:E?He:!1,id:_e,transition:!0,...Dt,...Ne,popperOptions:U,children:({TransitionProps:Fe})=>v.jsx(Je,{timeout:F.transitions.duration.shorter,...Fe,...ke,children:v.jsxs(rt,{...vt,children:[J,s?v.jsx(kt,{...Qt}):null]})})})]})}),as=Ij({createStyledComponent:pe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>$e({props:e,name:"MuiStack"})});function ZR(e){return Ge("MuiSwitch",e)}const fr=Ue("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),GR=e=>{const{classes:t,edge:n,size:r,color:s,checked:a,disabled:l}=e,u={root:["root",n&&`edge${me(n)}`,`size${me(r)}`],switchBase:["switchBase",`color${me(s)}`,a&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},f=Ke(u,ZR,t);return{...t,...f}},UR=pe("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${me(n.edge)}`],t[`size${me(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,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,[`& .${fr.thumb}`]:{width:16,height:16},[`& .${fr.switchBase}`]:{padding:4,[`&.${fr.checked}`]:{transform:"translateX(16px)"}}}}]}),QR=pe(Ry,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${fr.input}`]:t.input},n.color!=="default"&&t[`color${me(n.color)}`]]}})(Qe(({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}),[`&.${fr.checked}`]:{transform:"translateX(20px)"},[`&.${fr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${fr.checked} + .${fr.track}`]:{opacity:.5},[`&.${fr.disabled} + .${fr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${fr.input}`]:{left:"-100%",width:"300%"}})),Qe(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(gn(["light"])).map(([t])=>({props:{color:t},style:{[`&.${fr.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${fr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?ua(e.palette[t].main,.62):ca(e.palette[t].main,.55)}`}},[`&.${fr.checked} + .${fr.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),KR=pe("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(Qe(({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}`}))),_R=pe("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(Qe(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),q1=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiSwitch"}),{className:s,color:a="primary",edge:l=!1,size:u="medium",sx:f,...p}=r,h={...r,color:a,edge:l,size:u},m=GR(h),y=v.jsx(_R,{className:m.thumb,ownerState:h});return v.jsxs(UR,{className:Oe(m.root,s),sx:f,ownerState:h,children:[v.jsx(QR,{type:"checkbox",icon:y,checkedIcon:y,ref:n,ownerState:h,...p,classes:{...m,root:m.switchBase}}),v.jsx(KR,{className:m.track,ownerState:h})]})}),Z1=P.createContext();function $R(e){return Ge("MuiTable",e)}Ue("MuiTable",["root","stickyHeader"]);const eE=e=>{const{classes:t,stickyHeader:n}=e;return Ke({root:["root",n&&"stickyHeader"]},$R,t)},tE=pe("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Qe(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),Bx="table",G1=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiTable"}),{className:s,component:a=Bx,padding:l="normal",size:u="medium",stickyHeader:f=!1,...p}=r,h={...r,component:a,padding:l,size:u,stickyHeader:f},m=eE(h),y=P.useMemo(()=>({padding:l,size:u,stickyHeader:f}),[l,u,f]);return v.jsx(Z1.Provider,{value:y,children:v.jsx(tE,{as:a,role:a===Bx?null:"table",ref:n,className:Oe(m.root,s),ownerState:h,...p})})}),Gu=P.createContext();function nE(e){return Ge("MuiTableBody",e)}Ue("MuiTableBody",["root"]);const rE=e=>{const{classes:t}=e;return Ke({root:["root"]},nE,t)},oE=pe("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),sE={variant:"body"},Vx="tbody",U1=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiTableBody"}),{className:s,component:a=Vx,...l}=r,u={...r,component:a},f=rE(u);return v.jsx(Gu.Provider,{value:sE,children:v.jsx(oE,{className:Oe(f.root,s),as:a,ref:n,role:a===Vx?null:"rowgroup",ownerState:u,...l})})});function iE(e){return Ge("MuiTableCell",e)}const aE=Ue("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),lE=e=>{const{classes:t,variant:n,align:r,padding:s,size:a,stickyHeader:l}=e,u={root:["root",n,l&&"stickyHeader",r!=="inherit"&&`align${me(r)}`,s!=="normal"&&`padding${me(s)}`,`size${me(a)}`]};return Ke(u,iE,t)},cE=pe("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${me(n.size)}`],n.padding!=="normal"&&t[`padding${me(n.padding)}`],n.align!=="inherit"&&t[`align${me(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Qe(({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"?ua(Pt(e.palette.divider,1),.88):ca(Pt(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",[`&.${aE.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}}]}))),vr=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiTableCell"}),{align:s="inherit",className:a,component:l,padding:u,scope:f,size:p,sortDirection:h,variant:m,...y}=r,H=P.useContext(Z1),A=P.useContext(Gu),w=A&&A.variant==="head";let x;l?x=l:x=w?"th":"td";let S=f;x==="td"?S=void 0:!S&&w&&(S="col");const z=m||A&&A.variant,O={...r,align:s,component:x,padding:u||(H&&H.padding?H.padding:"normal"),size:p||(H&&H.size?H.size:"medium"),sortDirection:h,stickyHeader:z==="head"&&H&&H.stickyHeader,variant:z},C=lE(O);let D=null;return h&&(D=h==="asc"?"ascending":"descending"),v.jsx(cE,{as:x,ref:n,className:Oe(C.root,a),"aria-sort":D,scope:S,ownerState:O,...y})});function uE(e){return Ge("MuiTableContainer",e)}Ue("MuiTableContainer",["root"]);const fE=e=>{const{classes:t}=e;return Ke({root:["root"]},uE,t)},dE=pe("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Q1=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiTableContainer"}),{className:s,component:a="div",...l}=r,u={...r,component:a},f=fE(u);return v.jsx(dE,{ref:n,as:a,className:Oe(f.root,s),ownerState:u,...l})});function pE(e){return Ge("MuiTableFooter",e)}Ue("MuiTableFooter",["root"]);const vE=e=>{const{classes:t}=e;return Ke({root:["root"]},pE,t)},hE=pe("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),mE={variant:"footer"},Ix="tfoot",gE=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiTableFooter"}),{className:s,component:a=Ix,...l}=r,u={...r,component:a},f=vE(u);return v.jsx(Gu.Provider,{value:mE,children:v.jsx(hE,{as:a,className:Oe(f.root,s),ref:n,role:a===Ix?null:"rowgroup",ownerState:u,...l})})});function yE(e){return Ge("MuiTableHead",e)}Ue("MuiTableHead",["root"]);const AE=e=>{const{classes:t}=e;return Ke({root:["root"]},yE,t)},PE=pe("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),bE={variant:"head"},Wx="thead",xE=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiTableHead"}),{className:s,component:a=Wx,...l}=r,u={...r,component:a},f=AE(u);return v.jsx(Gu.Provider,{value:bE,children:v.jsx(PE,{as:a,className:Oe(f.root,s),ref:n,role:a===Wx?null:"rowgroup",ownerState:u,...l})})});function wE(e){return Ge("MuiToolbar",e)}Ue("MuiToolbar",["root","gutters","regular","dense"]);const HE=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Ke({root:["root",!n&&"gutters",r]},wE,t)},jE=pe("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Qe(({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}]}))),K1=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiToolbar"}),{className:s,component:a="div",disableGutters:l=!1,variant:u="regular",...f}=r,p={...r,component:a,disableGutters:l,variant:u},h=HE(p);return v.jsx(jE,{as:a,className:Oe(h.root,s),ref:n,ownerState:p,...f})}),SE=At(v.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),zE=At(v.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),OE=P.forwardRef(function(t,n){const{backIconButtonProps:r,count:s,disabled:a=!1,getItemAriaLabel:l,nextIconButtonProps:u,onPageChange:f,page:p,rowsPerPage:h,showFirstButton:m,showLastButton:y,slots:H={},slotProps:A={},...w}=t,x=Ju(),S=G=>{f(G,0)},z=G=>{f(G,p-1)},O=G=>{f(G,p+1)},C=G=>{f(G,Math.max(0,Math.ceil(s/h)-1))},D=H.firstButton??zr,k=H.lastButton??zr,R=H.nextButton??zr,M=H.previousButton??zr,L=H.firstButtonIcon??iR,j=H.lastButtonIcon??aR,B=H.nextButtonIcon??zE,I=H.previousButtonIcon??SE,J=x?k:D,K=x?R:M,W=x?M:R,ne=x?D:k,re=x?A.lastButton:A.firstButton,F=x?A.nextButton:A.previousButton,_=x?A.previousButton:A.nextButton,E=x?A.firstButton:A.lastButton;return v.jsxs("div",{ref:n,...w,children:[m&&v.jsx(J,{onClick:S,disabled:a||p===0,"aria-label":l("first",p),title:l("first",p),...re,children:x?v.jsx(j,{...A.lastButtonIcon}):v.jsx(L,{...A.firstButtonIcon})}),v.jsx(K,{onClick:z,disabled:a||p===0,color:"inherit","aria-label":l("previous",p),title:l("previous",p),...F??r,children:x?v.jsx(B,{...A.nextButtonIcon}):v.jsx(I,{...A.previousButtonIcon})}),v.jsx(W,{onClick:O,disabled:a||(s!==-1?p>=Math.ceil(s/h)-1:!1),color:"inherit","aria-label":l("next",p),title:l("next",p),..._??u,children:x?v.jsx(I,{...A.previousButtonIcon}):v.jsx(B,{...A.nextButtonIcon})}),y&&v.jsx(ne,{onClick:C,disabled:a||p>=Math.ceil(s/h)-1,"aria-label":l("last",p),title:l("last",p),...E,children:x?v.jsx(L,{...A.firstButtonIcon}):v.jsx(j,{...A.lastButtonIcon})})]})});function CE(e){return Ge("MuiTablePagination",e)}const vu=Ue("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var Jx;const DE=pe(vr,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(Qe(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),TE=pe(K1,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${vu.actions}`]:t.actions,...t.toolbar})})(Qe(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${vu.actions}`]:{flexShrink:0,marginLeft:20}}))),kE=pe("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),RE=pe("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(Qe(({theme:e})=>({...e.typography.body2,flexShrink:0}))),EE=pe(Tu,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${vu.selectIcon}`]:t.selectIcon,[`& .${vu.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${vu.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),ME=pe(ts,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),LE=pe("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(Qe(({theme:e})=>({...e.typography.body2,flexShrink:0})));function XE({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function NE(e){return`Go to ${e} page`}const BE=e=>{const{classes:t}=e;return Ke({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},CE,t)},VE=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiTablePagination"}),{ActionsComponent:s=OE,backIconButtonProps:a,className:l,colSpan:u,component:f=vr,count:p,disabled:h=!1,getItemAriaLabel:m=NE,labelDisplayedRows:y=XE,labelRowsPerPage:H="Rows per page:",nextIconButtonProps:A,onPageChange:w,onRowsPerPageChange:x,page:S,rowsPerPage:z,rowsPerPageOptions:O=[10,25,50,100],SelectProps:C={},showFirstButton:D=!1,showLastButton:k=!1,slotProps:R={},slots:M={},...L}=r,j=r,B=BE(j),I=(R==null?void 0:R.select)??C,J=I.native?"option":ME;let K;(f===vr||f==="td")&&(K=u||1e3);const W=Rs(I.id),ne=Rs(I.labelId),re=()=>p===-1?(S+1)*z:z===-1?p:Math.min(p,(S+1)*z);return v.jsx(DE,{colSpan:K,ref:n,as:f,ownerState:j,className:Oe(B.root,l),...L,children:v.jsxs(TE,{className:B.toolbar,children:[v.jsx(kE,{className:B.spacer}),O.length>1&&v.jsx(RE,{className:B.selectLabel,id:ne,children:H}),O.length>1&&v.jsx(EE,{variant:"standard",...!I.variant&&{input:Jx||(Jx=v.jsx($p,{}))},value:z,onChange:x,id:W,labelId:ne,...I,classes:{...I.classes,root:Oe(B.input,B.selectRoot,(I.classes||{}).root),select:Oe(B.select,(I.classes||{}).select),icon:Oe(B.selectIcon,(I.classes||{}).icon)},disabled:h,children:O.map(F=>P.createElement(J,{...!El(J)&&{ownerState:j},className:B.menuItem,key:F.label?F.label:F,value:F.value?F.value:F},F.label?F.label:F))}),v.jsx(LE,{className:B.displayedRows,children:y({from:p===0?0:S*z+1,to:re(),count:p===-1?-1:p,page:S})}),v.jsx(s,{className:B.actions,backIconButtonProps:a,count:p,nextIconButtonProps:A,onPageChange:w,page:S,rowsPerPage:z,showFirstButton:D,showLastButton:k,slotProps:R.actions,slots:M.actions,getItemAriaLabel:m,disabled:h})]})})});function IE(e){return Ge("MuiTableRow",e)}const Fx=Ue("MuiTableRow",["root","selected","hover","head","footer"]),WE=e=>{const{classes:t,selected:n,hover:r,head:s,footer:a}=e;return Ke({root:["root",n&&"selected",r&&"hover",s&&"head",a&&"footer"]},IE,t)},JE=pe("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Qe(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Fx.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Fx.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Yx="tr",vp=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiTableRow"}),{className:s,component:a=Yx,hover:l=!1,selected:u=!1,...f}=r,p=P.useContext(Gu),h={...r,component:a,hover:l,selected:u,head:p&&p.variant==="head",footer:p&&p.variant==="footer"},m=WE(h);return v.jsx(JE,{as:a,ref:n,className:Oe(m.root,s),role:a===Yx?null:"row",ownerState:h,...f})});function FE(e){return Ge("MuiTextField",e)}Ue("MuiTextField",["root"]);const YE={standard:fp,filled:up,outlined:dp},qE=e=>{const{classes:t}=e;return Ke({root:["root"]},FE,t)},ZE=pe(ur,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lo=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:a=!1,children:l,className:u,color:f="primary",defaultValue:p,disabled:h=!1,error:m=!1,FormHelperTextProps:y,fullWidth:H=!1,helperText:A,id:w,InputLabelProps:x,inputProps:S,InputProps:z,inputRef:O,label:C,maxRows:D,minRows:k,multiline:R=!1,name:M,onBlur:L,onChange:j,onFocus:B,placeholder:I,required:J=!1,rows:K,select:W=!1,SelectProps:ne,slots:re={},slotProps:F={},type:_,value:E,variant:G="outlined",...X}=r,ee={...r,autoFocus:a,color:f,disabled:h,error:m,fullWidth:H,multiline:R,required:J,select:W,variant:G},te=qE(ee),ue=Rs(w),de=A&&ue?`${ue}-helper-text`:void 0,xe=C&&ue?`${ue}-label`:void 0,ve=YE[G],be={slots:re,slotProps:{input:z,inputLabel:x,htmlInput:S,formHelperText:y,select:ne,...F}},Xe={},Ie=be.slotProps.inputLabel;G==="outlined"&&(Ie&&typeof Ie.shrink<"u"&&(Xe.notched=Ie.shrink),Xe.label=C),W&&((!ne||!ne.native)&&(Xe.id=void 0),Xe["aria-describedby"]=void 0);const[He,_e]=Cn("input",{elementType:ve,externalForwardedProps:be,additionalProps:Xe,ownerState:ee}),[we,tt]=Cn("inputLabel",{elementType:Wd,externalForwardedProps:be,ownerState:ee}),[Le,dt]=Cn("htmlInput",{elementType:"input",externalForwardedProps:be,ownerState:ee}),[N,$]=Cn("formHelperText",{elementType:nl,externalForwardedProps:be,ownerState:ee}),[se,ye]=Cn("select",{elementType:Tu,externalForwardedProps:be,ownerState:ee}),ce=v.jsx(He,{"aria-describedby":de,autoComplete:s,autoFocus:a,defaultValue:p,fullWidth:H,multiline:R,name:M,rows:K,maxRows:D,minRows:k,type:_,value:E,id:ue,inputRef:O,onBlur:L,onChange:j,onFocus:B,placeholder:I,inputProps:dt,slots:{input:re.htmlInput?Le:void 0},..._e});return v.jsxs(ZE,{className:Oe(te.root,u),disabled:h,error:m,fullWidth:H,ref:n,required:J,color:f,variant:G,ownerState:ee,...X,children:[C!=null&&C!==""&&v.jsx(we,{htmlFor:ue,id:xe,...tt,children:C}),W?v.jsx(se,{"aria-describedby":de,id:ue,labelId:xe,value:E,input:ce,...ye,children:l}):ce,A&&v.jsx(N,{id:de,...$,children:A})]})}),Dn="/hub",tv="/services/japps",Ny=["Environments"],GE=["Any","Owned by me","Shared with me"],UE=["Recently modified","Name: A-Z","Name: Z-A"],QE=["Running","Ready","Pending","Unknown"],By="startAppId";var Wl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},va=typeof window>"u"||"Deno"in globalThis;function io(){}function KE(e,t){return typeof e=="function"?e(t):e}function xg(e){return typeof e=="number"&&e>=0&&e!==1/0}function _1(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ul(e,t){return typeof e=="function"?e(t):e}function To(e,t){return typeof e=="function"?e(t):e}function qx(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:a,queryKey:l,stale:u}=e;if(l){if(r){if(t.queryHash!==Vy(l,t.options))return!1}else if(!ku(t.queryKey,l))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||s&&s!==t.state.fetchStatus||a&&!a(t))}function Zx(e,t){const{exact:n,status:r,predicate:s,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(ha(t.options.mutationKey)!==ha(a))return!1}else if(!ku(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Vy(e,t){return((t==null?void 0:t.queryKeyHashFn)||ha)(e)}function ha(e){return JSON.stringify(e,(t,n)=>wg(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function ku(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!ku(e[n],t[n])):!1}function $1(e,t){if(e===t)return e;const n=Gx(e)&&Gx(t);if(n||wg(e)&&wg(t)){const r=n?e:Object.keys(e),s=r.length,a=n?t:Object.keys(t),l=a.length,u=n?[]:{};let f=0;for(let p=0;p{setTimeout(t,e)})}function Hg(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?$1(e,t):t}function $E(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function e6(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Iy=Symbol();function e2(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Iy?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var _i,ci,dl,a0,t6=(a0=class extends Wl{constructor(){super();gt(this,_i);gt(this,ci);gt(this,dl);qe(this,dl,t=>{if(!va&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Z(this,ci)||this.setEventListener(Z(this,dl))}onUnsubscribe(){var t;this.hasListeners()||((t=Z(this,ci))==null||t.call(this),qe(this,ci,void 0))}setEventListener(t){var n;qe(this,dl,t),(n=Z(this,ci))==null||n.call(this),qe(this,ci,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Z(this,_i)!==t&&(qe(this,_i,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Z(this,_i)=="boolean"?Z(this,_i):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},_i=new WeakMap,ci=new WeakMap,dl=new WeakMap,a0),Wy=new t6,pl,ui,vl,l0,n6=(l0=class extends Wl{constructor(){super();gt(this,pl,!0);gt(this,ui);gt(this,vl);qe(this,vl,t=>{if(!va&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){Z(this,ui)||this.setEventListener(Z(this,vl))}onUnsubscribe(){var t;this.hasListeners()||((t=Z(this,ui))==null||t.call(this),qe(this,ui,void 0))}setEventListener(t){var n;qe(this,vl,t),(n=Z(this,ui))==null||n.call(this),qe(this,ui,t(this.setOnline.bind(this)))}setOnline(t){Z(this,pl)!==t&&(qe(this,pl,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Z(this,pl)}},pl=new WeakMap,ui=new WeakMap,vl=new WeakMap,l0),mp=new n6;function jg(){let e,t;const n=new Promise((s,a)=>{e=s,t=a});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function r6(e){return Math.min(1e3*2**e,3e4)}function t2(e){return(e??"online")==="online"?mp.isOnline():!0}var n2=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Mm(e){return e instanceof n2}function r2(e){let t=!1,n=0,r=!1,s;const a=jg(),l=w=>{var x;r||(y(new n2(w)),(x=e.abort)==null||x.call(e))},u=()=>{t=!0},f=()=>{t=!1},p=()=>Wy.isFocused()&&(e.networkMode==="always"||mp.isOnline())&&e.canRun(),h=()=>t2(e.networkMode)&&e.canRun(),m=w=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,w),s==null||s(),a.resolve(w))},y=w=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,w),s==null||s(),a.reject(w))},H=()=>new Promise(w=>{var x;s=S=>{(r||p())&&w(S)},(x=e.onPause)==null||x.call(e)}).then(()=>{var w;s=void 0,r||(w=e.onContinue)==null||w.call(e)}),A=()=>{if(r)return;let w;const x=n===0?e.initialPromise:void 0;try{w=x??e.fn()}catch(S){w=Promise.reject(S)}Promise.resolve(w).then(m).catch(S=>{var k;if(r)return;const z=e.retry??(va?0:3),O=e.retryDelay??r6,C=typeof O=="function"?O(n,S):O,D=z===!0||typeof z=="number"&&np()?void 0:H()).then(()=>{t?y(S):A()})})};return{promise:a,cancel:l,continue:()=>(s==null||s(),a),cancelRetry:u,continueRetry:f,canStart:h,start:()=>(h()?A():H().then(A),a)}}function o6(){let e=[],t=0,n=u=>{u()},r=u=>{u()},s=u=>setTimeout(u,0);const a=u=>{t?e.push(u):s(()=>{n(u)})},l=()=>{const u=e;e=[],u.length&&s(()=>{r(()=>{u.forEach(f=>{n(f)})})})};return{batch:u=>{let f;t++;try{f=u()}finally{t--,t||l()}return f},batchCalls:u=>(...f)=>{a(()=>{u(...f)})},schedule:a,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{s=u}}}var In=o6(),$i,c0,o2=(c0=class{constructor(){gt(this,$i)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),xg(this.gcTime)&&qe(this,$i,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(va?1/0:5*60*1e3))}clearGcTimeout(){Z(this,$i)&&(clearTimeout(Z(this,$i)),qe(this,$i,void 0))}},$i=new WeakMap,c0),hl,ml,so,or,Mu,ea,Do,js,u0,s6=(u0=class extends o2{constructor(t){super();gt(this,Do);gt(this,hl);gt(this,ml);gt(this,so);gt(this,or);gt(this,Mu);gt(this,ea);qe(this,ea,!1),qe(this,Mu,t.defaultOptions),this.setOptions(t.options),this.observers=[],qe(this,so,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,qe(this,hl,i6(this.options)),this.state=t.state??Z(this,hl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Z(this,or))==null?void 0:t.promise}setOptions(t){this.options={...Z(this,Mu),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Z(this,so).remove(this)}setData(t,n){const r=Hg(this.state.data,t,this.options);return zt(this,Do,js).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){zt(this,Do,js).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=Z(this,or))==null?void 0:r.promise;return(s=Z(this,or))==null||s.cancel(t),n?n.then(io).catch(io):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Z(this,hl))}isActive(){return this.observers.some(t=>To(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Iy||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!_1(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Z(this,or))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Z(this,or))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Z(this,so).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Z(this,or)&&(Z(this,ea)?Z(this,or).cancel({revert:!0}):Z(this,or).cancelRetry()),this.scheduleGc()),Z(this,so).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||zt(this,Do,js).call(this,{type:"invalidate"})}fetch(t,n){var f,p,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Z(this,or))return Z(this,or).continueRetry(),Z(this,or).promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(y=>y.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,s=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(qe(this,ea,!0),r.signal)})},a=()=>{const m=e2(this.options,n),y={queryKey:this.queryKey,meta:this.meta};return s(y),qe(this,ea,!1),this.options.persister?this.options.persister(m,y,this):m(y)},l={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};s(l),(f=this.options.behavior)==null||f.onFetch(l,this),qe(this,ml,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=l.fetchOptions)==null?void 0:p.meta))&&zt(this,Do,js).call(this,{type:"fetch",meta:(h=l.fetchOptions)==null?void 0:h.meta});const u=m=>{var y,H,A,w;Mm(m)&&m.silent||zt(this,Do,js).call(this,{type:"error",error:m}),Mm(m)||((H=(y=Z(this,so).config).onError)==null||H.call(y,m,this),(w=(A=Z(this,so).config).onSettled)==null||w.call(A,this.state.data,m,this)),this.scheduleGc()};return qe(this,or,r2({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var y,H,A,w;if(m===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(x){u(x);return}(H=(y=Z(this,so).config).onSuccess)==null||H.call(y,m,this),(w=(A=Z(this,so).config).onSettled)==null||w.call(A,m,this.state.error,this),this.scheduleGc()},onError:u,onFail:(m,y)=>{zt(this,Do,js).call(this,{type:"failed",failureCount:m,error:y})},onPause:()=>{zt(this,Do,js).call(this,{type:"pause"})},onContinue:()=>{zt(this,Do,js).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),Z(this,or).start()}},hl=new WeakMap,ml=new WeakMap,so=new WeakMap,or=new WeakMap,Mu=new WeakMap,ea=new WeakMap,Do=new WeakSet,js=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...s2(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return Mm(s)&&s.revert&&Z(this,ml)?{...Z(this,ml),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),In.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),Z(this,so).notify({query:this,type:"updated",action:t})})},u0);function s2(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:t2(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function i6(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Zo,f0,a6=(f0=class extends Wl{constructor(t={}){super();gt(this,Zo);this.config=t,qe(this,Zo,new Map)}build(t,n,r){const s=n.queryKey,a=n.queryHash??Vy(s,n);let l=this.get(a);return l||(l=new s6({cache:this,queryKey:s,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(l)),l}add(t){Z(this,Zo).has(t.queryHash)||(Z(this,Zo).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Z(this,Zo).get(t.queryHash);n&&(t.destroy(),n===t&&Z(this,Zo).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){In.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Z(this,Zo).get(t)}getAll(){return[...Z(this,Zo).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>qx(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>qx(t,r)):n}notify(t){In.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){In.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){In.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Zo=new WeakMap,f0),Go,dr,ta,Uo,si,d0,l6=(d0=class extends o2{constructor(t){super();gt(this,Uo);gt(this,Go);gt(this,dr);gt(this,ta);this.mutationId=t.mutationId,qe(this,dr,t.mutationCache),qe(this,Go,[]),this.state=t.state||i2(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Z(this,Go).includes(t)||(Z(this,Go).push(t),this.clearGcTimeout(),Z(this,dr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){qe(this,Go,Z(this,Go).filter(n=>n!==t)),this.scheduleGc(),Z(this,dr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Z(this,Go).length||(this.state.status==="pending"?this.scheduleGc():Z(this,dr).remove(this))}continue(){var t;return((t=Z(this,ta))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,a,l,u,f,p,h,m,y,H,A,w,x,S,z,O,C,D,k,R;qe(this,ta,r2({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(M,L)=>{zt(this,Uo,si).call(this,{type:"failed",failureCount:M,error:L})},onPause:()=>{zt(this,Uo,si).call(this,{type:"pause"})},onContinue:()=>{zt(this,Uo,si).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Z(this,dr).canRun(this)}));const n=this.state.status==="pending",r=!Z(this,ta).canStart();try{if(!n){zt(this,Uo,si).call(this,{type:"pending",variables:t,isPaused:r}),await((a=(s=Z(this,dr).config).onMutate)==null?void 0:a.call(s,t,this));const L=await((u=(l=this.options).onMutate)==null?void 0:u.call(l,t));L!==this.state.context&&zt(this,Uo,si).call(this,{type:"pending",context:L,variables:t,isPaused:r})}const M=await Z(this,ta).start();return await((p=(f=Z(this,dr).config).onSuccess)==null?void 0:p.call(f,M,t,this.state.context,this)),await((m=(h=this.options).onSuccess)==null?void 0:m.call(h,M,t,this.state.context)),await((H=(y=Z(this,dr).config).onSettled)==null?void 0:H.call(y,M,null,this.state.variables,this.state.context,this)),await((w=(A=this.options).onSettled)==null?void 0:w.call(A,M,null,t,this.state.context)),zt(this,Uo,si).call(this,{type:"success",data:M}),M}catch(M){try{throw await((S=(x=Z(this,dr).config).onError)==null?void 0:S.call(x,M,t,this.state.context,this)),await((O=(z=this.options).onError)==null?void 0:O.call(z,M,t,this.state.context)),await((D=(C=Z(this,dr).config).onSettled)==null?void 0:D.call(C,void 0,M,this.state.variables,this.state.context,this)),await((R=(k=this.options).onSettled)==null?void 0:R.call(k,void 0,M,t,this.state.context)),M}finally{zt(this,Uo,si).call(this,{type:"error",error:M})}}finally{Z(this,dr).runNext(this)}}},Go=new WeakMap,dr=new WeakMap,ta=new WeakMap,Uo=new WeakSet,si=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),In.batch(()=>{Z(this,Go).forEach(r=>{r.onMutationUpdate(t)}),Z(this,dr).notify({mutation:this,type:"updated",action:t})})},d0);function i2(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Wr,Lu,p0,c6=(p0=class extends Wl{constructor(t={}){super();gt(this,Wr);gt(this,Lu);this.config=t,qe(this,Wr,new Map),qe(this,Lu,Date.now())}build(t,n,r){const s=new l6({mutationCache:this,mutationId:++pd(this,Lu)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){const n=Hd(t),r=Z(this,Wr).get(n)??[];r.push(t),Z(this,Wr).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Hd(t);if(Z(this,Wr).has(n)){const s=(r=Z(this,Wr).get(n))==null?void 0:r.filter(a=>a!==t);s&&(s.length===0?Z(this,Wr).delete(n):Z(this,Wr).set(n,s))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=Z(this,Wr).get(Hd(t)))==null?void 0:r.find(s=>s.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=Z(this,Wr).get(Hd(t)))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){In.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...Z(this,Wr).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Zx(n,r))}findAll(t={}){return this.getAll().filter(n=>Zx(t,n))}notify(t){In.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return In.batch(()=>Promise.all(t.map(n=>n.continue().catch(io))))}},Wr=new WeakMap,Lu=new WeakMap,p0);function Hd(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Qx(e){return{onFetch:(t,n)=>{var h,m,y,H,A;const r=t.options,s=(y=(m=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:m.fetchMore)==null?void 0:y.direction,a=((H=t.state.data)==null?void 0:H.pages)||[],l=((A=t.state.data)==null?void 0:A.pageParams)||[];let u={pages:[],pageParams:[]},f=0;const p=async()=>{let w=!1;const x=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},S=e2(t.options,t.fetchOptions),z=async(O,C,D)=>{if(w)return Promise.reject();if(C==null&&O.pages.length)return Promise.resolve(O);const k={queryKey:t.queryKey,pageParam:C,direction:D?"backward":"forward",meta:t.options.meta};x(k);const R=await S(k),{maxPages:M}=t.options,L=D?e6:$E;return{pages:L(O.pages,R,M),pageParams:L(O.pageParams,C,M)}};if(s&&a.length){const O=s==="backward",C=O?u6:Kx,D={pages:a,pageParams:l},k=C(r,D);u=await z(D,k,O)}else{const O=e??a.length;do{const C=f===0?l[0]??r.initialPageParam:Kx(r,u);if(f>0&&C==null)break;u=await z(u,C),f++}while(f{var w,x;return(x=(w=t.options).persister)==null?void 0:x.call(w,p,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=p}}}function Kx(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function u6(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Hn,fi,di,gl,yl,pi,Al,Pl,v0,f6=(v0=class{constructor(e={}){gt(this,Hn);gt(this,fi);gt(this,di);gt(this,gl);gt(this,yl);gt(this,pi);gt(this,Al);gt(this,Pl);qe(this,Hn,e.queryCache||new a6),qe(this,fi,e.mutationCache||new c6),qe(this,di,e.defaultOptions||{}),qe(this,gl,new Map),qe(this,yl,new Map),qe(this,pi,0)}mount(){pd(this,pi)._++,Z(this,pi)===1&&(qe(this,Al,Wy.subscribe(async e=>{e&&(await this.resumePausedMutations(),Z(this,Hn).onFocus())})),qe(this,Pl,mp.subscribe(async e=>{e&&(await this.resumePausedMutations(),Z(this,Hn).onOnline())})))}unmount(){var e,t;pd(this,pi)._--,Z(this,pi)===0&&((e=Z(this,Al))==null||e.call(this),qe(this,Al,void 0),(t=Z(this,Pl))==null||t.call(this),qe(this,Pl,void 0))}isFetching(e){return Z(this,Hn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Z(this,fi).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Z(this,Hn).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=Z(this,Hn).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(ul(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return Z(this,Hn).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=Z(this,Hn).get(r.queryHash),a=s==null?void 0:s.state.data,l=KE(t,a);if(l!==void 0)return Z(this,Hn).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return In.batch(()=>Z(this,Hn).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Z(this,Hn).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Z(this,Hn);In.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Z(this,Hn),r={type:"active",...e};return In.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries(r,t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=In.batch(()=>Z(this,Hn).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(io).catch(io)}invalidateQueries(e,t={}){return In.batch(()=>{if(Z(this,Hn).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const n={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=In.batch(()=>Z(this,Hn).findAll(e).filter(s=>!s.isDisabled()).map(s=>{let a=s.fetch(void 0,n);return n.throwOnError||(a=a.catch(io)),s.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(io)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Z(this,Hn).build(this,t);return n.isStaleByTime(ul(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(io).catch(io)}fetchInfiniteQuery(e){return e.behavior=Qx(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(io).catch(io)}ensureInfiniteQueryData(e){return e.behavior=Qx(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return mp.isOnline()?Z(this,fi).resumePausedMutations():Promise.resolve()}getQueryCache(){return Z(this,Hn)}getMutationCache(){return Z(this,fi)}getDefaultOptions(){return Z(this,di)}setDefaultOptions(e){qe(this,di,e)}setQueryDefaults(e,t){Z(this,gl).set(ha(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Z(this,gl).values()],n={};return t.forEach(r=>{ku(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){Z(this,yl).set(ha(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Z(this,yl).values()];let n={};return t.forEach(r=>{ku(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Z(this,di).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Vy(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Iy&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Z(this,di).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Z(this,Hn).clear(),Z(this,fi).clear()}},Hn=new WeakMap,fi=new WeakMap,di=new WeakMap,gl=new WeakMap,yl=new WeakMap,pi=new WeakMap,Al=new WeakMap,Pl=new WeakMap,v0),Hr,Bt,Xu,pr,na,bl,vi,Qo,Nu,xl,wl,ra,oa,hi,Hl,Gt,su,Sg,zg,Og,Cg,Dg,Tg,kg,a2,h0,d6=(h0=class extends Wl{constructor(t,n){super();gt(this,Gt);gt(this,Hr);gt(this,Bt);gt(this,Xu);gt(this,pr);gt(this,na);gt(this,bl);gt(this,vi);gt(this,Qo);gt(this,Nu);gt(this,xl);gt(this,wl);gt(this,ra);gt(this,oa);gt(this,hi);gt(this,Hl,new Set);this.options=n,qe(this,Hr,t),qe(this,Qo,null),qe(this,vi,jg()),this.options.experimental_prefetchInRender||Z(this,vi).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Z(this,Bt).addObserver(this),_x(Z(this,Bt),this.options)?zt(this,Gt,su).call(this):this.updateResult(),zt(this,Gt,Cg).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Rg(Z(this,Bt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Rg(Z(this,Bt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,zt(this,Gt,Dg).call(this),zt(this,Gt,Tg).call(this),Z(this,Bt).removeObserver(this)}setOptions(t,n){const r=this.options,s=Z(this,Bt);if(this.options=Z(this,Hr).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof To(this.options.enabled,Z(this,Bt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");zt(this,Gt,kg).call(this),Z(this,Bt).setOptions(this.options),r._defaulted&&!hp(this.options,r)&&Z(this,Hr).getQueryCache().notify({type:"observerOptionsUpdated",query:Z(this,Bt),observer:this});const a=this.hasListeners();a&&$x(Z(this,Bt),s,this.options,r)&&zt(this,Gt,su).call(this),this.updateResult(n),a&&(Z(this,Bt)!==s||To(this.options.enabled,Z(this,Bt))!==To(r.enabled,Z(this,Bt))||ul(this.options.staleTime,Z(this,Bt))!==ul(r.staleTime,Z(this,Bt)))&&zt(this,Gt,Sg).call(this);const l=zt(this,Gt,zg).call(this);a&&(Z(this,Bt)!==s||To(this.options.enabled,Z(this,Bt))!==To(r.enabled,Z(this,Bt))||l!==Z(this,hi))&&zt(this,Gt,Og).call(this,l)}getOptimisticResult(t){const n=Z(this,Hr).getQueryCache().build(Z(this,Hr),t),r=this.createResult(n,t);return v6(this,r)&&(qe(this,pr,r),qe(this,bl,this.options),qe(this,na,Z(this,Bt).state)),r}getCurrentResult(){return Z(this,pr)}trackResult(t,n){const r={};return Object.keys(t).forEach(s=>{Object.defineProperty(r,s,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(s),n==null||n(s),t[s])})}),r}trackProp(t){Z(this,Hl).add(t)}getCurrentQuery(){return Z(this,Bt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=Z(this,Hr).defaultQueryOptions(t),r=Z(this,Hr).getQueryCache().build(Z(this,Hr),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return zt(this,Gt,su).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Z(this,pr)))}createResult(t,n){var M;const r=Z(this,Bt),s=this.options,a=Z(this,pr),l=Z(this,na),u=Z(this,bl),p=t!==r?t.state:Z(this,Xu),{state:h}=t;let m={...h},y=!1,H;if(n._optimisticResults){const L=this.hasListeners(),j=!L&&_x(t,n),B=L&&$x(t,r,n,s);(j||B)&&(m={...m,...s2(h.data,t.options)}),n._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:A,errorUpdatedAt:w,status:x}=m;if(n.select&&m.data!==void 0)if(a&&m.data===(l==null?void 0:l.data)&&n.select===Z(this,Nu))H=Z(this,xl);else try{qe(this,Nu,n.select),H=n.select(m.data),H=Hg(a==null?void 0:a.data,H,n),qe(this,xl,H),qe(this,Qo,null)}catch(L){qe(this,Qo,L)}else H=m.data;if(n.placeholderData!==void 0&&H===void 0&&x==="pending"){let L;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData))L=a.data;else if(L=typeof n.placeholderData=="function"?n.placeholderData((M=Z(this,wl))==null?void 0:M.state.data,Z(this,wl)):n.placeholderData,n.select&&L!==void 0)try{L=n.select(L),qe(this,Qo,null)}catch(j){qe(this,Qo,j)}L!==void 0&&(x="success",H=Hg(a==null?void 0:a.data,L,n),y=!0)}Z(this,Qo)&&(A=Z(this,Qo),H=Z(this,xl),w=Date.now(),x="error");const S=m.fetchStatus==="fetching",z=x==="pending",O=x==="error",C=z&&S,D=H!==void 0,R={status:x,fetchStatus:m.fetchStatus,isPending:z,isSuccess:x==="success",isError:O,isInitialLoading:C,isLoading:C,data:H,dataUpdatedAt:m.dataUpdatedAt,error:A,errorUpdatedAt:w,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>p.dataUpdateCount||m.errorUpdateCount>p.errorUpdateCount,isFetching:S,isRefetching:S&&!z,isLoadingError:O&&!D,isPaused:m.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:O&&D,isStale:Jy(t,n),refetch:this.refetch,promise:Z(this,vi)};if(this.options.experimental_prefetchInRender){const L=I=>{R.status==="error"?I.reject(R.error):R.data!==void 0&&I.resolve(R.data)},j=()=>{const I=qe(this,vi,R.promise=jg());L(I)},B=Z(this,vi);switch(B.status){case"pending":t.queryHash===r.queryHash&&L(B);break;case"fulfilled":(R.status==="error"||R.data!==B.value)&&j();break;case"rejected":(R.status!=="error"||R.error!==B.reason)&&j();break}}return R}updateResult(t){const n=Z(this,pr),r=this.createResult(Z(this,Bt),this.options);if(qe(this,na,Z(this,Bt).state),qe(this,bl,this.options),Z(this,na).data!==void 0&&qe(this,wl,Z(this,Bt)),hp(r,n))return;qe(this,pr,r);const s={},a=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,u=typeof l=="function"?l():l;if(u==="all"||!u&&!Z(this,Hl).size)return!0;const f=new Set(u??Z(this,Hl));return this.options.throwOnError&&f.add("error"),Object.keys(Z(this,pr)).some(p=>{const h=p;return Z(this,pr)[h]!==n[h]&&f.has(h)})};(t==null?void 0:t.listeners)!==!1&&a()&&(s.listeners=!0),zt(this,Gt,a2).call(this,{...s,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&zt(this,Gt,Cg).call(this)}},Hr=new WeakMap,Bt=new WeakMap,Xu=new WeakMap,pr=new WeakMap,na=new WeakMap,bl=new WeakMap,vi=new WeakMap,Qo=new WeakMap,Nu=new WeakMap,xl=new WeakMap,wl=new WeakMap,ra=new WeakMap,oa=new WeakMap,hi=new WeakMap,Hl=new WeakMap,Gt=new WeakSet,su=function(t){zt(this,Gt,kg).call(this);let n=Z(this,Bt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(io)),n},Sg=function(){zt(this,Gt,Dg).call(this);const t=ul(this.options.staleTime,Z(this,Bt));if(va||Z(this,pr).isStale||!xg(t))return;const r=_1(Z(this,pr).dataUpdatedAt,t)+1;qe(this,ra,setTimeout(()=>{Z(this,pr).isStale||this.updateResult()},r))},zg=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Z(this,Bt)):this.options.refetchInterval)??!1},Og=function(t){zt(this,Gt,Tg).call(this),qe(this,hi,t),!(va||To(this.options.enabled,Z(this,Bt))===!1||!xg(Z(this,hi))||Z(this,hi)===0)&&qe(this,oa,setInterval(()=>{(this.options.refetchIntervalInBackground||Wy.isFocused())&&zt(this,Gt,su).call(this)},Z(this,hi)))},Cg=function(){zt(this,Gt,Sg).call(this),zt(this,Gt,Og).call(this,zt(this,Gt,zg).call(this))},Dg=function(){Z(this,ra)&&(clearTimeout(Z(this,ra)),qe(this,ra,void 0))},Tg=function(){Z(this,oa)&&(clearInterval(Z(this,oa)),qe(this,oa,void 0))},kg=function(){const t=Z(this,Hr).getQueryCache().build(Z(this,Hr),this.options);if(t===Z(this,Bt))return;const n=Z(this,Bt);qe(this,Bt,t),qe(this,Xu,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},a2=function(t){In.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(Z(this,pr))}),Z(this,Hr).getQueryCache().notify({query:Z(this,Bt),type:"observerResultsUpdated"})})},h0);function p6(e,t){return To(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function _x(e,t){return p6(e,t)||e.state.data!==void 0&&Rg(e,t,t.refetchOnMount)}function Rg(e,t,n){if(To(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Jy(e,t)}return!1}function $x(e,t,n,r){return(e!==t||To(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Jy(e,n)}function Jy(e,t){return To(t.enabled,e)!==!1&&e.isStaleByTime(ul(t.staleTime,e))}function v6(e,t){return!hp(e.getCurrentResult(),t)}var mi,gi,jr,zs,Ts,Jd,Eg,m0,h6=(m0=class extends Wl{constructor(n,r){super();gt(this,Ts);gt(this,mi);gt(this,gi);gt(this,jr);gt(this,zs);qe(this,mi,n),this.setOptions(r),this.bindMethods(),zt(this,Ts,Jd).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const r=this.options;this.options=Z(this,mi).defaultMutationOptions(n),hp(this.options,r)||Z(this,mi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Z(this,jr),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&ha(r.mutationKey)!==ha(this.options.mutationKey)?this.reset():((s=Z(this,jr))==null?void 0:s.state.status)==="pending"&&Z(this,jr).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=Z(this,jr))==null||n.removeObserver(this)}onMutationUpdate(n){zt(this,Ts,Jd).call(this),zt(this,Ts,Eg).call(this,n)}getCurrentResult(){return Z(this,gi)}reset(){var n;(n=Z(this,jr))==null||n.removeObserver(this),qe(this,jr,void 0),zt(this,Ts,Jd).call(this),zt(this,Ts,Eg).call(this)}mutate(n,r){var s;return qe(this,zs,r),(s=Z(this,jr))==null||s.removeObserver(this),qe(this,jr,Z(this,mi).getMutationCache().build(Z(this,mi),this.options)),Z(this,jr).addObserver(this),Z(this,jr).execute(n)}},mi=new WeakMap,gi=new WeakMap,jr=new WeakMap,zs=new WeakMap,Ts=new WeakSet,Jd=function(){var r;const n=((r=Z(this,jr))==null?void 0:r.state)??i2();qe(this,gi,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Eg=function(n){In.batch(()=>{var r,s,a,l,u,f,p,h;if(Z(this,zs)&&this.hasListeners()){const m=Z(this,gi).variables,y=Z(this,gi).context;(n==null?void 0:n.type)==="success"?((s=(r=Z(this,zs)).onSuccess)==null||s.call(r,n.data,m,y),(l=(a=Z(this,zs)).onSettled)==null||l.call(a,n.data,null,m,y)):(n==null?void 0:n.type)==="error"&&((f=(u=Z(this,zs)).onError)==null||f.call(u,n.error,m,y),(h=(p=Z(this,zs)).onSettled)==null||h.call(p,void 0,n.error,m,y))}this.listeners.forEach(m=>{m(Z(this,gi))})})},m0),l2=P.createContext(void 0),nv=e=>{const t=P.useContext(l2);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},m6=({client:e,children:t})=>(P.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(l2.Provider,{value:e,children:t})),c2=P.createContext(!1),g6=()=>P.useContext(c2);c2.Provider;function y6(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var A6=P.createContext(y6()),P6=()=>P.useContext(A6);function u2(e,t){return typeof e=="function"?e(...t):!!e}function Mg(){}var b6=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},x6=e=>{P.useEffect(()=>{e.clearReset()},[e])},w6=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&u2(n,[e.error,r]),H6=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},j6=(e,t)=>e.isLoading&&e.isFetching&&!t,S6=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ew=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function z6(e,t,n){var h,m,y,H,A;const r=nv(),s=g6(),a=P6(),l=r.defaultQueryOptions(e);(m=(h=r.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||m.call(h,l),l._optimisticResults=s?"isRestoring":"optimistic",H6(l),b6(l,a),x6(a);const u=!r.getQueryCache().get(l.queryHash),[f]=P.useState(()=>new t(r,l)),p=f.getOptimisticResult(l);if(P.useSyncExternalStore(P.useCallback(w=>{const x=s?Mg:f.subscribe(In.batchCalls(w));return f.updateResult(),x},[f,s]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),P.useEffect(()=>{f.setOptions(l,{listeners:!1})},[l,f]),S6(l,p))throw ew(l,f,a);if(w6({result:p,errorResetBoundary:a,throwOnError:l.throwOnError,query:r.getQueryCache().get(l.queryHash)}))throw p.error;if((H=(y=r.getDefaultOptions().queries)==null?void 0:y._experimental_afterQuery)==null||H.call(y,l,p),l.experimental_prefetchInRender&&!va&&j6(p,s)){const w=u?ew(l,f,a):(A=r.getQueryCache().get(l.queryHash))==null?void 0:A.promise;w==null||w.catch(Mg).finally(()=>{f.updateResult()})}return l.notifyOnChangeProps?p:f.trackResult(p)}function _n(e,t){return z6(e,d6)}function Ml(e,t){const n=nv(),[r]=P.useState(()=>new h6(n,e));P.useEffect(()=>{r.setOptions(e)},[r,e]);const s=P.useSyncExternalStore(P.useCallback(l=>r.subscribe(In.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=P.useCallback((l,u)=>{r.mutate(l,u).catch(Mg)},[r]);if(s.error&&u2(r.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:a,mutateAsync:s.mutate}}var jd={},tw;function O6(){if(tw)return jd;tw=1;var e=d1();return jd.createRoot=e.createRoot,jd.hydrateRoot=e.hydrateRoot,jd}var C6=O6();const D6=Op(C6);var Vc={},nw;function T6(){if(nw)return Vc;nw=1,Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.parse=l,Vc.serialize=p;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,s=Object.prototype.toString,a=(()=>{const y=function(){};return y.prototype=Object.create(null),y})();function l(y,H){const A=new a,w=y.length;if(w<2)return A;const x=(H==null?void 0:H.decode)||h;let S=0;do{const z=y.indexOf("=",S);if(z===-1)break;const O=y.indexOf(";",S),C=O===-1?w:O;if(z>C){S=y.lastIndexOf(";",z-1)+1;continue}const D=u(y,S,z),k=f(y,z,D),R=y.slice(D,k);if(A[R]===void 0){let M=u(y,z+1,C),L=f(y,C,M);const j=x(y.slice(M,L));A[R]=j}S=C+1}while(SA;){const w=y.charCodeAt(--H);if(w!==32&&w!==9)return H+1}return A}function p(y,H,A){const w=(A==null?void 0:A.encode)||encodeURIComponent;if(!e.test(y))throw new TypeError(`argument name is invalid: ${y}`);const x=w(H);if(!t.test(x))throw new TypeError(`argument val is invalid: ${H}`);let S=y+"="+x;if(!A)return S;if(A.maxAge!==void 0){if(!Number.isInteger(A.maxAge))throw new TypeError(`option maxAge is invalid: ${A.maxAge}`);S+="; Max-Age="+A.maxAge}if(A.domain){if(!n.test(A.domain))throw new TypeError(`option domain is invalid: ${A.domain}`);S+="; Domain="+A.domain}if(A.path){if(!r.test(A.path))throw new TypeError(`option path is invalid: ${A.path}`);S+="; Path="+A.path}if(A.expires){if(!m(A.expires)||!Number.isFinite(A.expires.valueOf()))throw new TypeError(`option expires is invalid: ${A.expires}`);S+="; Expires="+A.expires.toUTCString()}if(A.httpOnly&&(S+="; HttpOnly"),A.secure&&(S+="; Secure"),A.partitioned&&(S+="; Partitioned"),A.priority)switch(typeof A.priority=="string"?A.priority.toLowerCase():void 0){case"low":S+="; Priority=Low";break;case"medium":S+="; Priority=Medium";break;case"high":S+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${A.priority}`)}if(A.sameSite)switch(typeof A.sameSite=="string"?A.sameSite.toLowerCase():A.sameSite){case!0:case"strict":S+="; SameSite=Strict";break;case"lax":S+="; SameSite=Lax";break;case"none":S+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${A.sameSite}`)}return S}function h(y){if(y.indexOf("%")===-1)return y;try{return decodeURIComponent(y)}catch{return y}}function m(y){return s.call(y)==="[object Date]"}return Vc}T6();/** +`,aD=typeof yg!="string"?uy` + animation: ${yg} 1.4s linear infinite; + `:null,lD=typeof Ag!="string"?uy` + animation: ${Ag} 1.4s ease-in-out infinite; + `:null,cD=e=>{const{classes:t,variant:n,color:r,disableShrink:s}=e,a={root:["root",n,`color${me(r)}`],svg:["svg"],circle:["circle",`circle${me(n)}`,s&&"circleDisableShrink"]};return Ke(a,iD,t)},uD=pe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${me(n.color)}`]]}})(Qe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:aD||{animation:`${yg} 1.4s linear infinite`}},...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),fD=pe("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),dD=pe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${me(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Qe(({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:lD||{animation:`${Ag} 1.4s ease-in-out infinite`}}]}))),tv=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiCircularProgress"}),{className:s,color:a="primary",disableShrink:l=!1,size:u=40,style:f,thickness:p=3.6,value:h=0,variant:m="indeterminate",...y}=r,H={...r,color:a,disableShrink:l,size:u,thickness:p,value:h,variant:m},A=cD(H),w={},x={},S={};if(m==="determinate"){const z=2*Math.PI*((oi-p)/2);w.strokeDasharray=z.toFixed(3),S["aria-valuenow"]=Math.round(h),w.strokeDashoffset=`${((100-h)/100*z).toFixed(3)}px`,x.transform="rotate(-90deg)"}return v.jsx(uD,{className:Oe(A.root,s),style:{width:u,height:u,...x,...f},ownerState:H,ref:n,role:"progressbar",...S,...y,children:v.jsx(fD,{className:A.svg,ownerState:H,viewBox:`${oi/2} ${oi/2} ${oi} ${oi}`,children:v.jsx(dD,{className:A.circle,style:w,ownerState:H,cx:oi,cy:oi,r:(oi-p)/2,fill:"none",strokeWidth:p})})})});function vx(e){return e.substring(2).toLowerCase()}function pD(e,t){return t.documentElement.clientWidth(setTimeout(()=>{f.current=!0},0),()=>{f.current=!1}),[]);const h=rn(xi(t),u),m=mr(A=>{const w=p.current;p.current=!1;const x=ir(u.current);if(!f.current||!u.current||"clientX"in A&&pD(A,x))return;if(l.current){l.current=!1;return}let S;A.composedPath?S=A.composedPath().includes(u.current):S=!x.documentElement.contains(A.target)||u.current.contains(A.target),!S&&(n||!w)&&s(A)}),y=A=>w=>{p.current=!0;const x=t.props[A];x&&x(w)},H={ref:h};return a!==!1&&(H[a]=y(a)),P.useEffect(()=>{if(a!==!1){const A=vx(a),w=ir(u.current),x=()=>{l.current=!0};return w.addEventListener(A,m),w.addEventListener("touchmove",x),()=>{w.removeEventListener(A,m),w.removeEventListener("touchmove",x)}}},[m,a]),r!==!1&&(H[r]=y(r)),P.useEffect(()=>{if(r!==!1){const A=vx(r),w=ir(u.current);return w.addEventListener(A,m),()=>{w.removeEventListener(A,m)}}},[m,r]),P.cloneElement(t,H)}const Pg=typeof xy({})=="function",vD=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),hD=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}}),k1=(e,t=!1)=>{var a,l;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([u,f])=>{var h,m;const p=e.getColorSchemeSelector(u);p.startsWith("@")?n[p]={":root":{colorScheme:(h=f.palette)==null?void 0:h.mode}}:n[p.replace(/\s*&/,"")]={colorScheme:(m=f.palette)==null?void 0:m.mode}});let r={html:vD(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...hD(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const s=(l=(a=e.components)==null?void 0:a.MuiCssBaseline)==null?void 0:l.styleOverrides;return s&&(r=[r,s]),r},Vd="mui-ecs",mD=e=>{const t=k1(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Vd})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,s])=>{var l,u;const a=e.getColorSchemeSelector(r);a.startsWith("@")?n[a]={[`:root:not(:has(.${Vd}))`]:{colorScheme:(l=s.palette)==null?void 0:l.mode}}:n[a.replace(/\s*&/,"")]={[`&:not(:has(.${Vd}))`]:{colorScheme:(u=s.palette)==null?void 0:u.mode}}}),t},gD=xy(Pg?({theme:e,enableColorScheme:t})=>k1(e,t):({theme:e})=>mD(e));function yD(e){const t=$e({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return v.jsxs(P.Fragment,{children:[Pg&&v.jsx(gD,{enableColorScheme:r}),!Pg&&!r&&v.jsx("span",{className:Vd,style:{display:"none"}}),n]})}function AD(e){const t=ir(e);return t.body===e?Mo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function du(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function hx(e){return parseInt(Mo(e).getComputedStyle(e).paddingRight,10)||0}function PD(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 mx(e,t,n,r,s){const a=[t,n,...r];[].forEach.call(e.children,l=>{const u=!a.includes(l),f=!PD(l);u&&f&&du(l,s)})}function Tm(e,t){let n=-1;return e.some((r,s)=>t(r)?(n=s,!0):!1),n}function bD(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(AD(r)){const l=G0(Mo(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${hx(r)+l}px`;const u=ir(r).querySelectorAll(".mui-fixed");[].forEach.call(u,f=>{n.push({value:f.style.paddingRight,property:"padding-right",el:f}),f.style.paddingRight=`${hx(f)+l}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=ir(r).body;else{const l=r.parentElement,u=Mo(r);a=(l==null?void 0:l.nodeName)==="HTML"&&u.getComputedStyle(l).overflowY==="scroll"?l: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:l,property:u})=>{a?l.style.setProperty(u,a):l.style.removeProperty(u)})}}function xD(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class wD{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&&du(t.modalRef,!1);const s=xD(n);mx(n,t.mount,t.modalRef,s,!0);const a=Tm(this.containers,l=>l.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:s}),r)}mount(t,n){const r=Tm(this.containers,a=>a.modals.includes(t)),s=this.containers[r];s.restore||(s.restore=bD(s,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const s=Tm(this.containers,l=>l.modals.includes(t)),a=this.containers[s];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&du(t.modalRef,n),mx(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(s,1);else{const l=a.modals[a.modals.length-1];l.modalRef&&du(l.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const HD=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function jD(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 SD(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 zD(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||SD(e))}function OD(e){const t=[],n=[];return Array.from(e.querySelectorAll(HD)).forEach((r,s)=>{const a=jD(r);a===-1||!zD(r)||(a===0?t.push(r):n.push({documentOrder:s,tabIndex:a,node:r}))}),n.sort((r,s)=>r.tabIndex===s.tabIndex?r.documentOrder-s.documentOrder:r.tabIndex-s.tabIndex).map(r=>r.node).concat(t)}function CD(){return!0}function DD(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:s=!1,getTabbable:a=OD,isEnabled:l=CD,open:u}=e,f=P.useRef(!1),p=P.useRef(null),h=P.useRef(null),m=P.useRef(null),y=P.useRef(null),H=P.useRef(!1),A=P.useRef(null),w=rn(xi(t),A),x=P.useRef(null);P.useEffect(()=>{!u||!A.current||(H.current=!n)},[n,u]),P.useEffect(()=>{if(!u||!A.current)return;const O=ir(A.current);return A.current.contains(O.activeElement)||(A.current.hasAttribute("tabIndex")||A.current.setAttribute("tabIndex","-1"),H.current&&A.current.focus()),()=>{s||(m.current&&m.current.focus&&(f.current=!0,m.current.focus()),m.current=null)}},[u]),P.useEffect(()=>{if(!u||!A.current)return;const O=ir(A.current),C=R=>{x.current=R,!(r||!l()||R.key!=="Tab")&&O.activeElement===A.current&&R.shiftKey&&(f.current=!0,h.current&&h.current.focus())},D=()=>{var L,j;const R=A.current;if(R===null)return;if(!O.hasFocus()||!l()||f.current){f.current=!1;return}if(R.contains(O.activeElement)||r&&O.activeElement!==p.current&&O.activeElement!==h.current)return;if(O.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!H.current)return;let M=[];if((O.activeElement===p.current||O.activeElement===h.current)&&(M=a(A.current)),M.length>0){const B=!!((L=x.current)!=null&&L.shiftKey&&((j=x.current)==null?void 0:j.key)==="Tab"),I=M[0],F=M[M.length-1];typeof I!="string"&&typeof F!="string"&&(B?F.focus():I.focus())}else R.focus()};O.addEventListener("focusin",D),O.addEventListener("keydown",C,!0);const k=setInterval(()=>{O.activeElement&&O.activeElement.tagName==="BODY"&&D()},50);return()=>{clearInterval(k),O.removeEventListener("focusin",D),O.removeEventListener("keydown",C,!0)}},[n,r,s,l,u,a]);const S=O=>{m.current===null&&(m.current=O.relatedTarget),H.current=!0,y.current=O.target;const C=t.props.onFocus;C&&C(O)},z=O=>{m.current===null&&(m.current=O.relatedTarget),H.current=!0};return v.jsxs(P.Fragment,{children:[v.jsx("div",{tabIndex:u?0:-1,onFocus:z,ref:p,"data-testid":"sentinelStart"}),P.cloneElement(t,{ref:w,onFocus:S}),v.jsx("div",{tabIndex:u?0:-1,onFocus:z,ref:h,"data-testid":"sentinelEnd"})]})}function TD(e){return typeof e=="function"?e():e}function kD(e){return e?e.props.hasOwnProperty("in"):!1}const gx=()=>{},Pd=new wD;function RD(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:s=!1,onTransitionEnter:a,onTransitionExited:l,children:u,onClose:f,open:p,rootRef:h}=e,m=P.useRef({}),y=P.useRef(null),H=P.useRef(null),A=rn(H,h),[w,x]=P.useState(!p),S=kD(u);let z=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(z=!1);const O=()=>ir(y.current),C=()=>(m.current.modalRef=H.current,m.current.mount=y.current,m.current),D=()=>{Pd.mount(C(),{disableScrollLock:r}),H.current&&(H.current.scrollTop=0)},k=mr(()=>{const W=TD(t)||O().body;Pd.add(C(),W),H.current&&D()}),R=()=>Pd.isTopModal(C()),M=mr(W=>{y.current=W,W&&(p&&R()?D():H.current&&du(H.current,z))}),L=P.useCallback(()=>{Pd.remove(C(),z)},[z]);P.useEffect(()=>()=>{L()},[L]),P.useEffect(()=>{p?k():(!S||!s)&&L()},[p,L,S,s,k]);const j=W=>ne=>{var _;(_=W.onKeyDown)==null||_.call(W,ne),!(ne.key!=="Escape"||ne.which===229||!R())&&(n||(ne.stopPropagation(),f&&f(ne,"escapeKeyDown")))},B=W=>ne=>{var _;(_=W.onClick)==null||_.call(W,ne),ne.target===ne.currentTarget&&f&&f(ne,"backdropClick")};return{getRootProps:(W={})=>{const ne=op(e);delete ne.onTransitionEnter,delete ne.onTransitionExited;const _={...ne,...W};return{role:"presentation",..._,onKeyDown:j(_),ref:A}},getBackdropProps:(W={})=>{const ne=W;return{"aria-hidden":!0,...ne,onClick:B(ne),open:p}},getTransitionProps:()=>{const W=()=>{x(!1),a&&a()},ne=()=>{x(!0),l&&l(),s&&L()};return{onEnter:ag(W,(u==null?void 0:u.props.onEnter)??gx),onExited:ag(ne,(u==null?void 0:u.props.onExited)??gx)}},rootRef:A,portalRef:M,isTopModal:R,exited:w,hasTransition:S}}function ED(e){return Ge("MuiModal",e)}Ue("MuiModal",["root","hidden","backdrop"]);const MD=e=>{const{open:t,exited:n,classes:r}=e;return Ke({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},ED,r)},LD=pe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Qe(({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"}}]}))),XD=pe(z1,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Ey=P.forwardRef(function(t,n){const r=$e({name:"MuiModal",props:t}),{BackdropComponent:s=XD,BackdropProps:a,classes:l,className:u,closeAfterTransition:f=!1,children:p,container:h,component:m,components:y={},componentsProps:H={},disableAutoFocus:A=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:z=!1,disableScrollLock:O=!1,hideBackdrop:C=!1,keepMounted:D=!1,onBackdropClick:k,onClose:R,onTransitionEnter:M,onTransitionExited:L,open:j,slotProps:B={},slots:I={},theme:F,...$}=r,W={...r,closeAfterTransition:f,disableAutoFocus:A,disableEnforceFocus:w,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:z,disableScrollLock:O,hideBackdrop:C,keepMounted:D},{getRootProps:ne,getBackdropProps:_,getTransitionProps:J,portalRef:Q,isTopModal:E,exited:Z,hasTransition:X}=RD({...W,rootRef:n}),re={...W,exited:Z},ee=MD(re),ue={};if(p.props.tabIndex===void 0&&(ue.tabIndex="-1"),X){const{onEnter:He,onExited:_e}=J();ue.onEnter=He,ue.onExited=_e}const de={...$,slots:{root:y.Root,backdrop:y.Backdrop,...I},slotProps:{...H,...B}},[we,ve]=Cn("root",{elementType:LD,externalForwardedProps:de,getSlotProps:ne,additionalProps:{ref:n,as:m},ownerState:re,className:Oe(u,ee==null?void 0:ee.root,!re.open&&re.exited&&(ee==null?void 0:ee.hidden))}),[be,Xe]=Cn("backdrop",{elementType:s,externalForwardedProps:de,additionalProps:a,getSlotProps:He=>_({...He,onClick:_e=>{k&&k(_e),He!=null&&He.onClick&&He.onClick(_e)}}),className:Oe(a==null?void 0:a.className,ee==null?void 0:ee.backdrop),ownerState:re}),Ie=rn(a==null?void 0:a.ref,Xe.ref);return!D&&!j&&(!X||Z)?null:v.jsx(H1,{ref:Q,container:h,disablePortal:S,children:v.jsxs(we,{...ve,children:[!C&&s?v.jsx(be,{...Xe,ref:Ie}):null,v.jsx(DD,{disableEnforceFocus:w,disableAutoFocus:A,disableRestoreFocus:z,isEnabled:E,open:j,children:P.cloneElement(p,ue)})]})})});function ND(e){return Ge("MuiDialog",e)}const km=Ue("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),R1=P.createContext({}),BD=pe(z1,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),VD=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:s,fullScreen:a}=e,l={root:["root"],container:["container",`scroll${me(n)}`],paper:["paper",`paperScroll${me(n)}`,`paperWidth${me(String(r))}`,s&&"paperFullWidth",a&&"paperFullScreen"]};return Ke(l,ND,t)},ID=pe(Ey,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),WD=pe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${me(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),JD=pe(Ur,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${me(n.scroll)}`],t[`paperWidth${me(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Qe(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${km.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${km.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${km.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),sl=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiDialog"}),s=Kr(),a={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":u,"aria-modal":f=!0,BackdropComponent:p,BackdropProps:h,children:m,className:y,disableEscapeKeyDown:H=!1,fullScreen:A=!1,fullWidth:w=!1,maxWidth:x="sm",onBackdropClick:S,onClick:z,onClose:O,open:C,PaperComponent:D=Ur,PaperProps:k={},scroll:R="paper",TransitionComponent:M=S1,transitionDuration:L=a,TransitionProps:j,...B}=r,I={...r,disableEscapeKeyDown:H,fullScreen:A,fullWidth:w,maxWidth:x,scroll:R},F=VD(I),$=P.useRef(),W=Q=>{$.current=Q.target===Q.currentTarget},ne=Q=>{z&&z(Q),$.current&&($.current=null,S&&S(Q),O&&O(Q,"backdropClick"))},_=Rs(u),J=P.useMemo(()=>({titleId:_}),[_]);return v.jsx(ID,{className:Oe(F.root,y),closeAfterTransition:!0,components:{Backdrop:BD},componentsProps:{backdrop:{transitionDuration:L,as:p,...h}},disableEscapeKeyDown:H,onClose:O,open:C,ref:n,onClick:ne,ownerState:I,...B,children:v.jsx(M,{appear:!0,in:C,timeout:L,role:"presentation",...j,children:v.jsx(WD,{className:Oe(F.container),onMouseDown:W,ownerState:I,children:v.jsx(JD,{as:D,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":_,"aria-modal":f,...k,className:Oe(F.paper,k.className),ownerState:I,children:v.jsx(R1.Provider,{value:J,children:m})})})})})});function FD(e){return Ge("MuiDialogActions",e)}Ue("MuiDialogActions",["root","spacing"]);const YD=e=>{const{classes:t,disableSpacing:n}=e;return Ke({root:["root",!n&&"spacing"]},FD,t)},qD=pe("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),ZD=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiDialogActions"}),{className:s,disableSpacing:a=!1,...l}=r,u={...r,disableSpacing:a},f=YD(u);return v.jsx(qD,{className:Oe(f.root,s),ownerState:u,ref:n,...l})});function GD(e){return Ge("MuiDialogContent",e)}Ue("MuiDialogContent",["root","dividers"]);function UD(e){return Ge("MuiDialogTitle",e)}const QD=Ue("MuiDialogTitle",["root"]),KD=e=>{const{classes:t,dividers:n}=e;return Ke({root:["root",n&&"dividers"]},GD,t)},_D=pe("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Qe(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${QD.root} + &`]:{paddingTop:0}}}]}))),tu=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiDialogContent"}),{className:s,dividers:a=!1,...l}=r,u={...r,dividers:a},f=KD(u);return v.jsx(_D,{className:Oe(f.root,s),ownerState:u,ref:n,...l})}),$D=e=>{const{classes:t}=e;return Ke({root:["root"]},UD,t)},eT=pe(xt,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),nu=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiDialogTitle"}),{className:s,id:a,...l}=r,u=r,f=$D(u),{titleId:p=a}=P.useContext(R1);return v.jsx(eT,{component:"h2",className:Oe(f.root,s),ownerState:u,ref:n,variant:"h6",id:a??p,...l})});function tT(e){return Ge("MuiDivider",e)}const yx=Ue("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),nT=e=>{const{absolute:t,children:n,classes:r,flexItem:s,light:a,orientation:l,textAlign:u,variant:f}=e;return Ke({root:["root",t&&"absolute",f,a&&"light",l==="vertical"&&"vertical",s&&"flexItem",n&&"withChildren",n&&l==="vertical"&&"withChildrenVertical",u==="right"&&l!=="vertical"&&"textAlignRight",u==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},tT,r)},rT=pe("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]}})(Qe(({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.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Pt(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%"}}}]}))),oT=pe("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Qe(({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)`}}]}))),pa=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiDivider"}),{absolute:s=!1,children:a,className:l,orientation:u="horizontal",component:f=a||u==="vertical"?"div":"hr",flexItem:p=!1,light:h=!1,role:m=f!=="hr"?"separator":void 0,textAlign:y="center",variant:H="fullWidth",...A}=r,w={...r,absolute:s,component:f,flexItem:p,light:h,orientation:u,role:m,textAlign:y,variant:H},x=nT(w);return v.jsx(rT,{as:f,className:Oe(x.root,l),role:m,ref:n,ownerState:w,"aria-orientation":m==="separator"&&(f!=="hr"||u==="vertical")?u:void 0,...A,children:a?v.jsx(oT,{className:x.wrapper,ownerState:w,children:a}):null})});pa&&(pa.muiSkipListHighlight=!0);function sT(e,t,n){const r=t.getBoundingClientRect(),s=n&&n.getBoundingClientRect(),a=Mo(t);let l;if(t.fakeTransform)l=t.fakeTransform;else{const p=a.getComputedStyle(t);l=p.getPropertyValue("-webkit-transform")||p.getPropertyValue("transform")}let u=0,f=0;if(l&&l!=="none"&&typeof l=="string"){const p=l.split("(")[1].split(")")[0].split(",");u=parseInt(p[4],10),f=parseInt(p[5],10)}return e==="left"?s?`translateX(${s.right+u-r.left}px)`:`translateX(${a.innerWidth+u-r.left}px)`:e==="right"?s?`translateX(-${r.right-s.left-u}px)`:`translateX(-${r.left+r.width-u}px)`:e==="up"?s?`translateY(${s.bottom+f-r.top}px)`:`translateY(${a.innerHeight+f-r.top}px)`:s?`translateY(-${r.top-s.top+r.height-f}px)`:`translateY(-${r.top+r.height-f}px)`}function iT(e){return typeof e=="function"?e():e}function bd(e,t,n){const r=iT(n),s=sT(e,t,r);s&&(t.style.webkitTransform=s,t.style.transform=s)}const aT=P.forwardRef(function(t,n){const r=Kr(),s={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:l,appear:u=!0,children:f,container:p,direction:h="down",easing:m=s,in:y,onEnter:H,onEntered:A,onEntering:w,onExit:x,onExited:S,onExiting:z,style:O,timeout:C=a,TransitionComponent:D=No,...k}=t,R=P.useRef(null),M=rn(xi(f),R,n),L=J=>Q=>{J&&(Q===void 0?J(R.current):J(R.current,Q))},j=L((J,Q)=>{bd(h,J,p),jy(J),H&&H(J,Q)}),B=L((J,Q)=>{const E=Cl({timeout:C,style:O,easing:m},{mode:"enter"});J.style.webkitTransition=r.transitions.create("-webkit-transform",{...E}),J.style.transition=r.transitions.create("transform",{...E}),J.style.webkitTransform="none",J.style.transform="none",w&&w(J,Q)}),I=L(A),F=L(z),$=L(J=>{const Q=Cl({timeout:C,style:O,easing:m},{mode:"exit"});J.style.webkitTransition=r.transitions.create("-webkit-transform",Q),J.style.transition=r.transitions.create("transform",Q),bd(h,J,p),x&&x(J)}),W=L(J=>{J.style.webkitTransition="",J.style.transition="",S&&S(J)}),ne=J=>{l&&l(R.current,J)},_=P.useCallback(()=>{R.current&&bd(h,R.current,p)},[h,p]);return P.useEffect(()=>{if(y||h==="down"||h==="right")return;const J=my(()=>{R.current&&bd(h,R.current,p)}),Q=Mo(R.current);return Q.addEventListener("resize",J),()=>{J.clear(),Q.removeEventListener("resize",J)}},[h,y,p]),P.useEffect(()=>{y||_()},[y,_]),v.jsx(D,{nodeRef:R,onEnter:j,onEntered:I,onEntering:B,onExit:$,onExited:W,onExiting:F,addEndListener:ne,appear:u,in:y,timeout:C,...k,children:(J,Q)=>P.cloneElement(f,{ref:M,style:{visibility:J==="exited"&&!y?"hidden":void 0,...O,...f.props.style},...Q})})});function lT(e){return Ge("MuiDrawer",e)}Ue("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const E1=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},cT=e=>{const{classes:t,anchor:n,variant:r}=e,s={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${me(n)}`,r!=="temporary"&&`paperAnchorDocked${me(n)}`]};return Ke(s,lT,t)},uT=pe(Ey,{name:"MuiDrawer",slot:"Root",overridesResolver:E1})(Qe(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Ax=pe("div",{shouldForwardProp:Zn,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:E1})({flex:"0 0 auto"}),fT=pe(Ur,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${me(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${me(n.anchor)}`]]}})(Qe(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),M1={left:"right",right:"left",top:"down",bottom:"up"};function dT(e){return["left","right"].includes(e)}function pT({direction:e},t){return e==="rtl"&&dT(t)?M1[t]:t}const vT=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiDrawer"}),s=Kr(),a=Ju(),l={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{anchor:u="left",BackdropProps:f,children:p,className:h,elevation:m=16,hideBackdrop:y=!1,ModalProps:{BackdropProps:H,...A}={},onClose:w,open:x=!1,PaperProps:S={},SlideProps:z,TransitionComponent:O=aT,transitionDuration:C=l,variant:D="temporary",...k}=r,R=P.useRef(!1);P.useEffect(()=>{R.current=!0},[]);const M=pT({direction:a?"rtl":"ltr"},u),j={...r,anchor:u,elevation:m,open:x,variant:D,...k},B=cT(j),I=v.jsx(fT,{elevation:D==="temporary"?m:0,square:!0,...S,className:Oe(B.paper,S.className),ownerState:j,children:p});if(D==="permanent")return v.jsx(Ax,{className:Oe(B.root,B.docked,h),ownerState:j,ref:n,...k,children:I});const F=v.jsx(O,{in:x,direction:M1[M],timeout:C,appear:R.current,...z,children:I});return D==="persistent"?v.jsx(Ax,{className:Oe(B.root,B.docked,h),ownerState:j,ref:n,...k,children:F}):v.jsx(uT,{BackdropProps:{...f,...H,transitionDuration:C},className:Oe(B.root,B.modal,h),open:x,ownerState:j,onClose:w,hideBackdrop:y,ref:n,...k,...A,children:F})}),hT=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:s,size:a,hiddenLabel:l,multiline:u}=e,f={root:["root",!n&&"underline",r&&"adornedStart",s&&"adornedEnd",a==="small"&&`size${me(a)}`,l&&"hiddenLabel",u&&"multiline"],input:["input"]},p=Ke(f,aC,t);return{...t,...p}},mT=pe(_p,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Qp(e,t),!n.disableUnderline&&t.underline]}})(Qe(({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)",s=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:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Fr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Fr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:l})=>!l.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"},[`&.${Fr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Fr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${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(.${Fr.disabled}, .${Fr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Fr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(gn()).map(([l])=>{var u;return{props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(u=(e.vars||e).palette[l])==null?void 0:u.main}`}}}}),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:u})=>l.multiline&&u==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),gT=pe($p,{name:"MuiFilledInput",slot:"Input",overridesResolver:Kp})(Qe(({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}}]}))),up=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiFilledInput"}),{disableUnderline:s=!1,components:a={},componentsProps:l,fullWidth:u=!1,hiddenLabel:f,inputComponent:p="input",multiline:h=!1,slotProps:m,slots:y={},type:H="text",...A}=r,w={...r,disableUnderline:s,fullWidth:u,inputComponent:p,multiline:h,type:H},x=hT(r),S={root:{ownerState:w},input:{ownerState:w}},z=m??l?qn(S,m??l):S,O=y.root??a.Root??mT,C=y.input??a.Input??gT;return v.jsx(ev,{slots:{root:O,input:C},slotProps:z,fullWidth:u,inputComponent:p,multiline:h,ref:n,type:H,...A,classes:x})});up&&(up.muiName="Input");function yT(e){return Ge("MuiFormControl",e)}Ue("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const AT=e=>{const{classes:t,margin:n,fullWidth:r}=e,s={root:["root",n!=="none"&&`margin${me(n)}`,r&&"fullWidth"]};return Ke(s,yT,t)},PT=pe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${me(e.margin)}`],...e.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%"}}]}),ur=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiFormControl"}),{children:s,className:a,color:l="primary",component:u="div",disabled:f=!1,error:p=!1,focused:h,fullWidth:m=!1,hiddenLabel:y=!1,margin:H="none",required:A=!1,size:w="medium",variant:x="outlined",...S}=r,z={...r,color:l,component:u,disabled:f,error:p,fullWidth:m,hiddenLabel:y,margin:H,required:A,size:w,variant:x},O=AT(z),[C,D]=P.useState(()=>{let F=!1;return s&&P.Children.forEach(s,$=>{if(!Nd($,["Input","Select"]))return;const W=Nd($,["Select"])?$.props.input:$;W&&nC(W.props)&&(F=!0)}),F}),[k,R]=P.useState(()=>{let F=!1;return s&&P.Children.forEach(s,$=>{Nd($,["Input","Select"])&&(cp($.props,!0)||cp($.props.inputProps,!0))&&(F=!0)}),F}),[M,L]=P.useState(!1);f&&M&&L(!1);const j=h!==void 0&&!f?h:M;let B;P.useRef(!1);const I=P.useMemo(()=>({adornedStart:C,setAdornedStart:D,color:l,disabled:f,error:p,filled:k,focused:j,fullWidth:m,hiddenLabel:y,size:w,onBlur:()=>{L(!1)},onEmpty:()=>{R(!1)},onFilled:()=>{R(!0)},onFocus:()=>{L(!0)},registerEffect:B,required:A,variant:x}),[C,l,f,p,k,j,m,y,B,A,w,x]);return v.jsx(Up.Provider,{value:I,children:v.jsx(PT,{as:u,ownerState:z,className:Oe(O.root,a),ref:n,...S,children:s})})});function bT(e){return Ge("MuiFormControlLabel",e)}const ru=Ue("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),xT=e=>{const{classes:t,disabled:n,labelPlacement:r,error:s,required:a}=e,l={root:["root",n&&"disabled",`labelPlacement${me(r)}`,s&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",s&&"error"]};return Ke(l,bT,t)},wT=pe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ru.label}`]:t.label},t.root,t[`labelPlacement${me(n.labelPlacement)}`]]}})(Qe(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ru.disabled}`]:{cursor:"default"},[`& .${ru.label}`]:{[`&.${ru.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}}]}))),HT=pe("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Qe(({theme:e})=>({[`&.${ru.error}`]:{color:(e.vars||e).palette.error.main}}))),Os=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiFormControlLabel"}),{checked:s,className:a,componentsProps:l={},control:u,disabled:f,disableTypography:p,inputRef:h,label:m,labelPlacement:y="end",name:H,onChange:A,required:w,slots:x={},slotProps:S={},value:z,...O}=r,C=Bo(),D=f??u.props.disabled??(C==null?void 0:C.disabled),k=w??u.props.required,R={disabled:D,required:k};["checked","name","onChange","value","inputRef"].forEach(W=>{typeof u.props[W]>"u"&&typeof r[W]<"u"&&(R[W]=r[W])});const M=Hi({props:r,muiFormControl:C,states:["error"]}),L={...r,disabled:D,labelPlacement:y,required:k,error:M.error},j=xT(L),B={slots:x,slotProps:{...l,...S}},[I,F]=Cn("typography",{elementType:xt,externalForwardedProps:B,ownerState:L});let $=m;return $!=null&&$.type!==xt&&!p&&($=v.jsx(I,{component:"span",...F,className:Oe(j.label,F==null?void 0:F.className),children:$})),v.jsxs(wT,{className:Oe(j.root,a),ownerState:L,ref:n,...O,children:[P.cloneElement(u,R),k?v.jsxs("div",{children:[$,v.jsxs(HT,{ownerState:L,"aria-hidden":!0,className:j.asterisk,children:[" ","*"]})]}):$]})});function jT(e){return Ge("MuiFormGroup",e)}Ue("MuiFormGroup",["root","row","error"]);const ST=e=>{const{classes:t,row:n,error:r}=e;return Ke({root:["root",n&&"row",r&&"error"]},jT,t)},zT=pe("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"}}]}),OT=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiFormGroup"}),{className:s,row:a=!1,...l}=r,u=Bo(),f=Hi({props:r,muiFormControl:u,states:["error"]}),p={...r,row:a,error:f.error},h=ST(p);return v.jsx(zT,{className:Oe(h.root,s),ownerState:p,ref:n,...l})});function CT(e){return Ge("MuiFormHelperText",e)}const Px=Ue("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var bx;const DT=e=>{const{classes:t,contained:n,size:r,disabled:s,error:a,filled:l,focused:u,required:f}=e,p={root:["root",s&&"disabled",a&&"error",r&&`size${me(r)}`,n&&"contained",u&&"focused",l&&"filled",f&&"required"]};return Ke(p,CT,t)},TT=pe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${me(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Px.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Px.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}}]}))),nl=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiFormHelperText"}),{children:s,className:a,component:l="p",disabled:u,error:f,filled:p,focused:h,margin:m,required:y,variant:H,...A}=r,w=Bo(),x=Hi({props:r,muiFormControl:w,states:["variant","size","disabled","error","filled","focused","required"]}),S={...r,component:l,contained:x.variant==="filled"||x.variant==="outlined",variant:x.variant,size:x.size,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required};delete S.ownerState;const z=DT(S);return v.jsx(TT,{as:l,className:Oe(z.root,a),ref:n,...A,ownerState:S,children:s===" "?bx||(bx=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});function kT(e){return Ge("MuiFormLabel",e)}const pu=Ue("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),RT=e=>{const{classes:t,color:n,focused:r,disabled:s,error:a,filled:l,required:u}=e,f={root:["root",`color${me(n)}`,s&&"disabled",a&&"error",l&&"filled",r&&"focused",u&&"required"],asterisk:["asterisk",a&&"error"]};return Ke(f,kT,t)},ET=pe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(Qe(({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(gn()).map(([t])=>({props:{color:t},style:{[`&.${pu.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${pu.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${pu.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),MT=pe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Qe(({theme:e})=>({[`&.${pu.error}`]:{color:(e.vars||e).palette.error.main}}))),Id=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiFormLabel"}),{children:s,className:a,color:l,component:u="label",disabled:f,error:p,filled:h,focused:m,required:y,...H}=r,A=Bo(),w=Hi({props:r,muiFormControl:A,states:["color","required","focused","disabled","error","filled"]}),x={...r,color:w.color||"primary",component:u,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required},S=RT(x);return v.jsxs(ET,{as:u,ownerState:x,className:Oe(S.root,a),ref:n,...H,children:[s,w.required&&v.jsxs(MT,{ownerState:x,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]})}),xx=P.createContext();function LT(e){return Ge("MuiGrid",e)}const XT=[0,1,2,3,4,5,6,7,8,9,10],NT=["column-reverse","column","row-reverse","row"],BT=["nowrap","wrap-reverse","wrap"],Ec=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],zu=Ue("MuiGrid",["root","container","item","zeroMinWidth",...XT.map(e=>`spacing-xs-${e}`),...NT.map(e=>`direction-xs-${e}`),...BT.map(e=>`wrap-xs-${e}`),...Ec.map(e=>`grid-xs-${e}`),...Ec.map(e=>`grid-sm-${e}`),...Ec.map(e=>`grid-md-${e}`),...Ec.map(e=>`grid-lg-${e}`),...Ec.map(e=>`grid-xl-${e}`)]);function VT({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,s)=>{let a={};if(t[s]&&(n=t[s]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const l=sa({values:t.columns,breakpoints:e.breakpoints.values}),u=typeof l=="object"?l[s]:l;if(u==null)return r;const f=`${Math.round(n/u*1e8)/1e6}%`;let p={};if(t.container&&t.item&&t.columnSpacing!==0){const h=e.spacing(t.columnSpacing);if(h!=="0px"){const m=`calc(${f} + ${h})`;p={flexBasis:m,maxWidth:m}}}a={flexBasis:f,flexGrow:0,maxWidth:f,...p}}return e.breakpoints.values[s]===0?Object.assign(r,a):r[e.breakpoints.up(s)]=a,r},{})}function IT({theme:e,ownerState:t}){const n=sa({values:t.direction,breakpoints:e.breakpoints.values});return Rr({theme:e},n,r=>{const s={flexDirection:r};return r.startsWith("column")&&(s[`& > .${zu.item}`]={maxWidth:"none"}),s})}function L1({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(s=>{n===""&&t[s]!==0&&(n=s)});const r=Object.keys(e).sort((s,a)=>e[s]-e[a]);return r.slice(0,r.indexOf(n))}function WT({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let s={};if(n&&r!==0){const a=sa({values:r,breakpoints:e.breakpoints.values});let l;typeof a=="object"&&(l=L1({breakpoints:e.breakpoints.values,values:a})),s=Rr({theme:e},a,(u,f)=>{const p=e.spacing(u);return p!=="0px"?{marginTop:`-${p}`,[`& > .${zu.item}`]:{paddingTop:p}}:l!=null&&l.includes(f)?{}:{marginTop:0,[`& > .${zu.item}`]:{paddingTop:0}}})}return s}function JT({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let s={};if(n&&r!==0){const a=sa({values:r,breakpoints:e.breakpoints.values});let l;typeof a=="object"&&(l=L1({breakpoints:e.breakpoints.values,values:a})),s=Rr({theme:e},a,(u,f)=>{const p=e.spacing(u);if(p!=="0px"){const h=`-${p}`;return{width:`calc(100% + ${p})`,marginLeft:h,[`& > .${zu.item}`]:{paddingLeft:p}}}return l!=null&&l.includes(f)?{}:{width:"100%",marginLeft:0,[`& > .${zu.item}`]:{paddingLeft:0}}})}return s}function FT(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(s=>{const a=e[s];Number(a)>0&&r.push(n[`spacing-${s}-${String(a)}`])}),r}const YT=pe("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:s,item:a,spacing:l,wrap:u,zeroMinWidth:f,breakpoints:p}=n;let h=[];r&&(h=FT(l,p,t));const m=[];return p.forEach(y=>{const H=n[y];H&&m.push(t[`grid-${y}-${String(H)}`])}),[t.root,r&&t.container,a&&t.item,f&&t.zeroMinWidth,...h,s!=="row"&&t[`direction-xs-${String(s)}`],u!=="wrap"&&t[`wrap-xs-${String(u)}`],...m]}})(({ownerState:e})=>({boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...e.item&&{margin:0},...e.zeroMinWidth&&{minWidth:0},...e.wrap!=="wrap"&&{flexWrap:e.wrap}}),IT,WT,JT,VT);function qT(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const s=e[r];if(Number(s)>0){const a=`spacing-${r}-${String(s)}`;n.push(a)}}),n}const ZT=e=>{const{classes:t,container:n,direction:r,item:s,spacing:a,wrap:l,zeroMinWidth:u,breakpoints:f}=e;let p=[];n&&(p=qT(a,f));const h=[];f.forEach(y=>{const H=e[y];H&&h.push(`grid-${y}-${String(H)}`)});const m={root:["root",n&&"container",s&&"item",u&&"zeroMinWidth",...p,r!=="row"&&`direction-xs-${String(r)}`,l!=="wrap"&&`wrap-xs-${String(l)}`,...h]};return Ke(m,LT,t)},ss=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiGrid"}),{breakpoints:s}=Kr(),a=Jp(r),{className:l,columns:u,columnSpacing:f,component:p="div",container:h=!1,direction:m="row",item:y=!1,rowSpacing:H,spacing:A=0,wrap:w="wrap",zeroMinWidth:x=!1,...S}=a,z=H||A,O=f||A,C=P.useContext(xx),D=h?u||12:C,k={},R={...S};s.keys.forEach(j=>{S[j]!=null&&(k[j]=S[j],delete R[j])});const M={...a,columns:D,container:h,direction:m,item:y,rowSpacing:z,columnSpacing:O,wrap:w,zeroMinWidth:x,spacing:A,...k,breakpoints:s.keys},L=ZT(M);return v.jsx(xx.Provider,{value:D,children:v.jsx(YT,{ownerState:M,className:Oe(L.root,l),as:p,ref:n,...R})})});function bg(e){return`scale(${e}, ${e**2})`}const GT={entering:{opacity:1,transform:bg(1)},entered:{opacity:1,transform:"none"}},Rm=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ou=P.forwardRef(function(t,n){const{addEndListener:r,appear:s=!0,children:a,easing:l,in:u,onEnter:f,onEntered:p,onEntering:h,onExit:m,onExited:y,onExiting:H,style:A,timeout:w="auto",TransitionComponent:x=No,...S}=t,z=Gi(),O=P.useRef(),C=Kr(),D=P.useRef(null),k=rn(D,xi(a),n),R=W=>ne=>{if(W){const _=D.current;ne===void 0?W(_):W(_,ne)}},M=R(h),L=R((W,ne)=>{jy(W);const{duration:_,delay:J,easing:Q}=Cl({style:A,timeout:w,easing:l},{mode:"enter"});let E;w==="auto"?(E=C.transitions.getAutoHeightDuration(W.clientHeight),O.current=E):E=_,W.style.transition=[C.transitions.create("opacity",{duration:E,delay:J}),C.transitions.create("transform",{duration:Rm?E:E*.666,delay:J,easing:Q})].join(","),f&&f(W,ne)}),j=R(p),B=R(H),I=R(W=>{const{duration:ne,delay:_,easing:J}=Cl({style:A,timeout:w,easing:l},{mode:"exit"});let Q;w==="auto"?(Q=C.transitions.getAutoHeightDuration(W.clientHeight),O.current=Q):Q=ne,W.style.transition=[C.transitions.create("opacity",{duration:Q,delay:_}),C.transitions.create("transform",{duration:Rm?Q:Q*.666,delay:Rm?_:_||Q*.333,easing:J})].join(","),W.style.opacity=0,W.style.transform=bg(.75),m&&m(W)}),F=R(y),$=W=>{w==="auto"&&z.start(O.current||0,W),r&&r(D.current,W)};return v.jsx(x,{appear:s,in:u,nodeRef:D,onEnter:L,onEntered:j,onEntering:M,onExit:I,onExited:F,onExiting:B,addEndListener:$,timeout:w==="auto"?null:w,...S,children:(W,ne)=>P.cloneElement(a,{style:{opacity:0,transform:bg(.75),visibility:W==="exited"&&!u?"hidden":void 0,...GT[W],...A,...a.props.style},ref:k,...ne})})});Ou&&(Ou.muiSupportAuto=!0);const UT=sj({themeId:Ro}),QT=e=>{const{classes:t,disableUnderline:n}=e,s=Ke({root:["root",!n&&"underline"],input:["input"]},sC,t);return{...t,...s}},KT=pe(_p,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Qp(e,t),!n.disableUnderline&&t.underline]}})(Qe(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${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"},[`&.${ai.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ai.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(.${ai.disabled}, .${ai.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ai.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(gn()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),_T=pe($p,{name:"MuiInput",slot:"Input",overridesResolver:Kp})({}),fp=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiInput"}),{disableUnderline:s=!1,components:a={},componentsProps:l,fullWidth:u=!1,inputComponent:f="input",multiline:p=!1,slotProps:h,slots:m={},type:y="text",...H}=r,A=QT(r),x={root:{ownerState:{disableUnderline:s}}},S=h??l?qn(h??l,x):x,z=m.root??a.Root??KT,O=m.input??a.Input??_T;return v.jsx(ev,{slots:{root:z,input:O},slotProps:S,fullWidth:u,inputComponent:f,multiline:p,ref:n,type:y,...H,classes:A})});fp&&(fp.muiName="Input");function $T(e){return Ge("MuiInputAdornment",e)}const wx=Ue("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Hx;const ek=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${me(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},tk=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:s,size:a,variant:l}=e,u={root:["root",n&&"disablePointerEvents",s&&`position${me(s)}`,l,r&&"hiddenLabel",a&&`size${me(a)}`]};return Ke(u,$T,t)},nk=pe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:ek})(Qe(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${wx.positionStart}&:not(.${wx.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),X1=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiInputAdornment"}),{children:s,className:a,component:l="div",disablePointerEvents:u=!1,disableTypography:f=!1,position:p,variant:h,...m}=r,y=Bo()||{};let H=h;h&&y.variant,y&&!H&&(H=y.variant);const A={...r,hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:u,position:p,variant:H},w=tk(A);return v.jsx(Up.Provider,{value:null,children:v.jsx(nk,{as:l,ownerState:A,className:Oe(w.root,a),ref:n,...m,children:typeof s=="string"&&!f?v.jsx(xt,{color:"textSecondary",children:s}):v.jsxs(P.Fragment,{children:[p==="start"?Hx||(Hx=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,s]})})})});function rk(e){return Ge("MuiInputLabel",e)}Ue("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ok=e=>{const{classes:t,formControl:n,size:r,shrink:s,disableAnimation:a,variant:l,required:u}=e,f={root:["root",n&&"formControl",!a&&"animated",s&&"shrink",r&&r!=="normal"&&`size${me(r)}`,l],asterisk:[u&&"asterisk"]},p=Ke(f,rk,t);return{...t,...p}},sk=pe(Id,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${pu.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]]}})(Qe(({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)"}}]}))),Wd=P.forwardRef(function(t,n){const r=$e({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:a,shrink:l,variant:u,className:f,...p}=r,h=Bo();let m=l;typeof m>"u"&&h&&(m=h.filled||h.focused||h.adornedStart);const y=Hi({props:r,muiFormControl:h,states:["size","variant","required","focused"]}),H={...r,disableAnimation:s,formControl:h,shrink:m,size:y.size,variant:y.variant,required:y.required,focused:y.focused},A=ok(H);return v.jsx(sk,{"data-shrink":m,ref:n,className:Oe(A.root,f),...p,ownerState:H,classes:A})});function ik(e){return Ge("MuiLink",e)}const ak=Ue("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),lk=({theme:e,ownerState:t})=>{const n=t.color,r=Sl(e,`palette.${n}`,!1)||t.color,s=Sl(e,`palette.${n}Channel`);return"vars"in e&&s?`rgba(${s} / 0.4)`:Pt(r,.4)},jx={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},ck=e=>{const{classes:t,component:n,focusVisible:r,underline:s}=e,a={root:["root",`underline${me(s)}`,n==="button"&&"button",r&&"focusVisible"]};return Ke(a,ik,t)},uk=pe(xt,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${me(n.underline)}`],n.component==="button"&&t.button]}})(Qe(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:Pt(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Pt(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:Pt(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ak.focusVisible}`]:{outline:"auto"}}}]}))),ou=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiLink"}),s=Kr(),{className:a,color:l="primary",component:u="a",onBlur:f,onFocus:p,TypographyClasses:h,underline:m="always",variant:y="inherit",sx:H,...A}=r,[w,x]=P.useState(!1),S=D=>{Ol(D.target)||x(!1),f&&f(D)},z=D=>{Ol(D.target)&&x(!0),p&&p(D)},O={...r,color:l,component:u,focusVisible:w,underline:m,variant:y},C=ck(O);return v.jsx(uk,{color:l,className:Oe(C.root,a),classes:h,component:u,onBlur:S,onFocus:z,ref:n,ownerState:O,variant:y,...A,sx:[...jx[l]===void 0?[{color:l}]:[],...Array.isArray(H)?H:[H]],style:{...A.style,...m==="always"&&l!=="inherit"&&!jx[l]&&{"--Link-underlineColor":lk({theme:s,ownerState:O})}}})}),Eo=P.createContext({});function fk(e){return Ge("MuiList",e)}Ue("MuiList",["root","padding","dense","subheader"]);const dk=e=>{const{classes:t,disablePadding:n,dense:r,subheader:s}=e;return Ke({root:["root",!n&&"padding",r&&"dense",s&&"subheader"]},fk,t)},pk=pe("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}}]}),xg=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiList"}),{children:s,className:a,component:l="ul",dense:u=!1,disablePadding:f=!1,subheader:p,...h}=r,m=P.useMemo(()=>({dense:u}),[u]),y={...r,component:l,dense:u,disablePadding:f},H=dk(y);return v.jsx(Eo.Provider,{value:m,children:v.jsxs(pk,{as:l,className:Oe(H.root,a),ref:n,ownerState:y,...h,children:[p,s]})})});function vk(e){return Ge("MuiListItem",e)}Ue("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function hk(e){return Ge("MuiListItemButton",e)}const rl=Ue("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),mk=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},gk=e=>{const{alignItems:t,classes:n,dense:r,disabled:s,disableGutters:a,divider:l,selected:u}=e,p=Ke({root:["root",r&&"dense",!a&&"gutters",l&&"divider",s&&"disabled",t==="flex-start"&&"alignItemsFlexStart",u&&"selected"]},hk,n);return{...n,...p}},yk=pe(fa,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:mk})(Qe(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${rl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${rl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${rl.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${rl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${rl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),N1=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiListItemButton"}),{alignItems:s="center",autoFocus:a=!1,component:l="div",children:u,dense:f=!1,disableGutters:p=!1,divider:h=!1,focusVisibleClassName:m,selected:y=!1,className:H,...A}=r,w=P.useContext(Eo),x=P.useMemo(()=>({dense:f||w.dense||!1,alignItems:s,disableGutters:p}),[s,w.dense,f,p]),S=P.useRef(null);fo(()=>{a&&S.current&&S.current.focus()},[a]);const z={...r,alignItems:s,dense:x.dense,disableGutters:p,divider:h,selected:y},O=gk(z),C=rn(S,n);return v.jsx(Eo.Provider,{value:x,children:v.jsx(yk,{ref:C,href:A.href||A.to,component:(A.href||A.to)&&l==="div"?"button":l,focusVisibleClassName:Oe(O.focusVisible,m),ownerState:z,className:Oe(O.root,H),...A,classes:O,children:u})})});function Ak(e){return Ge("MuiListItemSecondaryAction",e)}Ue("MuiListItemSecondaryAction",["root","disableGutters"]);const Pk=e=>{const{disableGutters:t,classes:n}=e;return Ke({root:["root",t&&"disableGutters"]},Ak,n)},bk=pe("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),B1=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiListItemSecondaryAction"}),{className:s,...a}=r,l=P.useContext(Eo),u={...r,disableGutters:l.disableGutters},f=Pk(u);return v.jsx(bk,{className:Oe(f.root,s),ownerState:u,ref:n,...a})});B1.muiName="ListItemSecondaryAction";const xk=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},wk=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:s,disablePadding:a,divider:l,hasSecondaryAction:u}=e;return Ke({root:["root",r&&"dense",!s&&"gutters",!a&&"padding",l&&"divider",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction"],container:["container"]},vk,n)},Hk=pe("div",{name:"MuiListItem",slot:"Root",overridesResolver:xk})(Qe(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${rl.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),jk=pe("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Mc=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiListItem"}),{alignItems:s="center",children:a,className:l,component:u,components:f={},componentsProps:p={},ContainerComponent:h="li",ContainerProps:{className:m,...y}={},dense:H=!1,disableGutters:A=!1,disablePadding:w=!1,divider:x=!1,secondaryAction:S,slotProps:z={},slots:O={},...C}=r,D=P.useContext(Eo),k=P.useMemo(()=>({dense:H||D.dense||!1,alignItems:s,disableGutters:A}),[s,D.dense,H,A]),R=P.useRef(null),M=P.Children.toArray(a),L=M.length&&Nd(M[M.length-1],["ListItemSecondaryAction"]),j={...r,alignItems:s,dense:k.dense,disableGutters:A,disablePadding:w,divider:x,hasSecondaryAction:L},B=wk(j),I=rn(R,n),F=O.root||f.Root||Hk,$=z.root||p.root||{},W={className:Oe(B.root,$.className,l),...C};let ne=u||"li";return L?(ne=!W.component&&!u?"div":ne,h==="li"&&(ne==="li"?ne="div":W.component==="li"&&(W.component="div")),v.jsx(Eo.Provider,{value:k,children:v.jsxs(jk,{as:h,className:Oe(B.container,m),ref:I,ownerState:j,...y,children:[v.jsx(F,{...$,...!El(F)&&{as:ne,ownerState:{...j,...$.ownerState}},...W,children:M}),M.pop()]})})):v.jsx(Eo.Provider,{value:k,children:v.jsxs(F,{...$,as:ne,ref:I,...!El(F)&&{ownerState:{...j,...$.ownerState}},...W,children:[M,S&&v.jsx(B1,{children:S})]})})});function Sk(e){return Ge("MuiListItemIcon",e)}const Sx=Ue("MuiListItemIcon",["root","alignItemsFlexStart"]),zk=e=>{const{alignItems:t,classes:n}=e;return Ke({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Sk,n)},Ok=pe("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Qe(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Ck=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiListItemIcon"}),{className:s,...a}=r,l=P.useContext(Eo),u={...r,alignItems:l.alignItems},f=zk(u);return v.jsx(Ok,{className:Oe(f.root,s),ownerState:u,ref:n,...a})});function Dk(e){return Ge("MuiListItemText",e)}const il=Ue("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Tk=e=>{const{classes:t,inset:n,primary:r,secondary:s,dense:a}=e;return Ke({root:["root",n&&"inset",a&&"dense",r&&s&&"multiline"],primary:["primary"],secondary:["secondary"]},Dk,t)},kk=pe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${il.primary}`]:t.primary},{[`& .${il.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,[`.${Z8.root}:where(& .${il.primary})`]:{display:"block"},[`.${Z8.root}:where(& .${il.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),al=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiListItemText"}),{children:s,className:a,disableTypography:l=!1,inset:u=!1,primary:f,primaryTypographyProps:p,secondary:h,secondaryTypographyProps:m,...y}=r,{dense:H}=P.useContext(Eo);let A=f??s,w=h;const x={...r,disableTypography:l,inset:u,primary:!!A,secondary:!!w,dense:H},S=Tk(x);return A!=null&&A.type!==xt&&!l&&(A=v.jsx(xt,{variant:H?"body2":"body1",className:S.primary,component:p!=null&&p.variant?void 0:"span",...p,children:A})),w!=null&&w.type!==xt&&!l&&(w=v.jsx(xt,{variant:"body2",className:S.secondary,color:"textSecondary",...m,children:w})),v.jsxs(kk,{className:Oe(S.root,a),ownerState:x,ref:n,...y,children:[A,w]})});function Em(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function zx(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function V1(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 Lc(e,t,n,r,s,a){let l=!1,u=s(e,t,t?n:!1);for(;u;){if(u===e.firstChild){if(l)return!1;l=!0}const f=r?!1:u.disabled||u.getAttribute("aria-disabled")==="true";if(!u.hasAttribute("tabindex")||!V1(u,a)||f)u=s(e,u,n);else return u.focus(),!0}return!1}const Rk=P.forwardRef(function(t,n){const{actions:r,autoFocus:s=!1,autoFocusItem:a=!1,children:l,className:u,disabledItemsFocusable:f=!1,disableListWrap:p=!1,onKeyDown:h,variant:m="selectedMenu",...y}=t,H=P.useRef(null),A=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});fo(()=>{s&&H.current.focus()},[s]),P.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(O,{direction:C})=>{const D=!H.current.style.width;if(O.clientHeight{const C=H.current,D=O.key;if(O.ctrlKey||O.metaKey||O.altKey){h&&h(O);return}const R=ir(C).activeElement;if(D==="ArrowDown")O.preventDefault(),Lc(C,R,p,f,Em);else if(D==="ArrowUp")O.preventDefault(),Lc(C,R,p,f,zx);else if(D==="Home")O.preventDefault(),Lc(C,null,p,f,Em);else if(D==="End")O.preventDefault(),Lc(C,null,p,f,zx);else if(D.length===1){const M=A.current,L=D.toLowerCase(),j=performance.now();M.keys.length>0&&(j-M.lastTime>500?(M.keys=[],M.repeating=!0,M.previousKeyMatched=!0):M.repeating&&L!==M.keys[0]&&(M.repeating=!1)),M.lastTime=j,M.keys.push(L);const B=R&&!M.repeating&&V1(R,M);M.previousKeyMatched&&(B||Lc(C,R,!1,f,Em,M))?O.preventDefault():M.previousKeyMatched=!1}h&&h(O)},x=rn(H,n);let S=-1;P.Children.forEach(l,(O,C)=>{if(!P.isValidElement(O)){S===C&&(S+=1,S>=l.length&&(S=-1));return}O.props.disabled||(m==="selectedMenu"&&O.props.selected||S===-1)&&(S=C),S===C&&(O.props.disabled||O.props.muiSkipListHighlight||O.type.muiSkipListHighlight)&&(S+=1,S>=l.length&&(S=-1))});const z=P.Children.map(l,(O,C)=>{if(C===S){const D={};return a&&(D.autoFocus=!0),O.props.tabIndex===void 0&&m==="selectedMenu"&&(D.tabIndex=0),P.cloneElement(O,D)}return O});return v.jsx(xg,{role:"menu",ref:x,className:u,onKeyDown:w,tabIndex:s?0:-1,...y,children:z})});function Ek(e){return Ge("MuiPopover",e)}Ue("MuiPopover",["root","paper"]);function Ox(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Cx(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Dx(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Mm(e){return typeof e=="function"?e():e}const Mk=e=>{const{classes:t}=e;return Ke({root:["root"],paper:["paper"]},Ek,t)},Lk=pe(Ey,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),I1=pe(Ur,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Xk=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiPopover"}),{action:s,anchorEl:a,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:p,className:h,container:m,elevation:y=8,marginThreshold:H=16,open:A,PaperProps:w={},slots:x={},slotProps:S={},transformOrigin:z={vertical:"top",horizontal:"left"},TransitionComponent:O=Ou,transitionDuration:C="auto",TransitionProps:{onEntering:D,...k}={},disableScrollLock:R=!1,...M}=r,L=(S==null?void 0:S.paper)??w,j=P.useRef(),B={...r,anchorOrigin:l,anchorReference:f,elevation:y,marginThreshold:H,externalPaperSlotProps:L,transformOrigin:z,TransitionComponent:O,transitionDuration:C,TransitionProps:k},I=Mk(B),F=P.useCallback(()=>{if(f==="anchorPosition")return u;const Xe=Mm(a),He=(Xe&&Xe.nodeType===1?Xe:ir(j.current).body).getBoundingClientRect();return{top:He.top+Ox(He,l.vertical),left:He.left+Cx(He,l.horizontal)}},[a,l.horizontal,l.vertical,u,f]),$=P.useCallback(Xe=>({vertical:Ox(Xe,z.vertical),horizontal:Cx(Xe,z.horizontal)}),[z.horizontal,z.vertical]),W=P.useCallback(Xe=>{const Ie={width:Xe.offsetWidth,height:Xe.offsetHeight},He=$(Ie);if(f==="none")return{top:null,left:null,transformOrigin:Dx(He)};const _e=F();let xe=_e.top-He.vertical,tt=_e.left-He.horizontal;const Le=xe+Ie.height,dt=tt+Ie.width,N=Mo(Mm(a)),te=N.innerHeight-H,se=N.innerWidth-H;if(H!==null&&xete){const ye=Le-te;xe-=ye,He.vertical+=ye}if(H!==null&&ttse){const ye=dt-se;tt-=ye,He.horizontal+=ye}return{top:`${Math.round(xe)}px`,left:`${Math.round(tt)}px`,transformOrigin:Dx(He)}},[a,f,F,$,H]),[ne,_]=P.useState(A),J=P.useCallback(()=>{const Xe=j.current;if(!Xe)return;const Ie=W(Xe);Ie.top!==null&&Xe.style.setProperty("top",Ie.top),Ie.left!==null&&(Xe.style.left=Ie.left),Xe.style.transformOrigin=Ie.transformOrigin,_(!0)},[W]);P.useEffect(()=>(R&&window.addEventListener("scroll",J),()=>window.removeEventListener("scroll",J)),[a,R,J]);const Q=(Xe,Ie)=>{D&&D(Xe,Ie),J()},E=()=>{_(!1)};P.useEffect(()=>{A&&J()}),P.useImperativeHandle(s,()=>A?{updatePosition:()=>{J()}}:null,[A,J]),P.useEffect(()=>{if(!A)return;const Xe=my(()=>{J()}),Ie=Mo(a);return Ie.addEventListener("resize",Xe),()=>{Xe.clear(),Ie.removeEventListener("resize",Xe)}},[a,A,J]);let Z=C;C==="auto"&&!O.muiSupportAuto&&(Z=void 0);const X=m||(a?ir(Mm(a)).body:void 0),re={slots:x,slotProps:{...S,paper:L}},[ee,ue]=Cn("paper",{elementType:I1,externalForwardedProps:re,additionalProps:{elevation:y,className:Oe(I.paper,L==null?void 0:L.className),style:ne?L.style:{...L.style,opacity:0}},ownerState:B}),[de,{slotProps:we,...ve}]=Cn("root",{elementType:Lk,externalForwardedProps:re,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:X,open:A},ownerState:B,className:Oe(I.root,h)}),be=rn(j,ue.ref);return v.jsx(de,{...ve,...!El(de)&&{slotProps:we,disableScrollLock:R},...M,ref:n,children:v.jsx(O,{appear:!0,in:A,onEntering:Q,onExited:E,timeout:Z,...k,children:v.jsx(ee,{...ue,ref:be,children:p})})})});function Nk(e){return Ge("MuiMenu",e)}Ue("MuiMenu",["root","paper","list"]);const Bk={vertical:"top",horizontal:"right"},Vk={vertical:"top",horizontal:"left"},Ik=e=>{const{classes:t}=e;return Ke({root:["root"],paper:["paper"],list:["list"]},Nk,t)},Wk=pe(Xk,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jk=pe(I1,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Fk=pe(Rk,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Cu=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:u=!1,MenuListProps:f={},onClose:p,open:h,PaperProps:m={},PopoverClasses:y,transitionDuration:H="auto",TransitionProps:{onEntering:A,...w}={},variant:x="selectedMenu",slots:S={},slotProps:z={},...O}=r,C=Ju(),D={...r,autoFocus:s,disableAutoFocusItem:u,MenuListProps:f,onEntering:A,PaperProps:m,transitionDuration:H,TransitionProps:w,variant:x},k=Ik(D),R=s&&!u&&h,M=P.useRef(null),L=(ne,_)=>{M.current&&M.current.adjustStyleForScrollbar(ne,{direction:C?"rtl":"ltr"}),A&&A(ne,_)},j=ne=>{ne.key==="Tab"&&(ne.preventDefault(),p&&p(ne,"tabKeyDown"))};let B=-1;P.Children.map(a,(ne,_)=>{P.isValidElement(ne)&&(ne.props.disabled||(x==="selectedMenu"&&ne.props.selected||B===-1)&&(B=_))});const I=S.paper??Jk,F=z.paper??m,$=sp({elementType:S.root,externalSlotProps:z.root,ownerState:D,className:[k.root,l]}),W=sp({elementType:I,externalSlotProps:F,ownerState:D,className:k.paper});return v.jsx(Wk,{onClose:p,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Bk:Vk,slots:{paper:I,root:S.root},slotProps:{root:$,paper:W},open:h,ref:n,transitionDuration:H,TransitionProps:{onEntering:L,...w},ownerState:D,...O,classes:y,children:v.jsx(Fk,{onKeyDown:j,actions:M,autoFocus:s&&(B===-1||u),autoFocusItem:R,variant:x,...f,className:Oe(k.list,f.className),children:a})})});function Yk(e){return Ge("MuiMenuItem",e)}const Xc=Ue("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),qk=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Zk=e=>{const{disabled:t,dense:n,divider:r,disableGutters:s,selected:a,classes:l}=e,f=Ke({root:["root",n&&"dense",t&&"disabled",!s&&"gutters",r&&"divider",a&&"selected"]},Yk,l);return{...l,...f}},Gk=pe(fa,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:qk})(Qe(({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"}},[`&.${Xc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Xc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Xc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Xc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Xc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${yx.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${yx.inset}`]:{marginLeft:52},[`& .${il.root}`]:{marginTop:0,marginBottom:0},[`& .${il.inset}`]:{paddingLeft:36},[`& .${Sx.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,[`& .${Sx.root} svg`]:{fontSize:"1.25rem"}}}]}))),ts=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiMenuItem"}),{autoFocus:s=!1,component:a="li",dense:l=!1,divider:u=!1,disableGutters:f=!1,focusVisibleClassName:p,role:h="menuitem",tabIndex:m,className:y,...H}=r,A=P.useContext(Eo),w=P.useMemo(()=>({dense:l||A.dense||!1,disableGutters:f}),[A.dense,l,f]),x=P.useRef(null);fo(()=>{s&&x.current&&x.current.focus()},[s]);const S={...r,dense:w.dense,divider:u,disableGutters:f},z=Zk(r),O=rn(x,n);let C;return r.disabled||(C=m!==void 0?m:-1),v.jsx(Eo.Provider,{value:w,children:v.jsx(Gk,{ref:O,role:h,tabIndex:C,component:a,focusVisibleClassName:Oe(z.focusVisible,p),className:Oe(z.root,y),...H,ownerState:S,classes:z})})});function Uk(e){return Ge("MuiNativeSelect",e)}const My=Ue("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Qk=e=>{const{classes:t,variant:n,disabled:r,multiple:s,open:a,error:l}=e,u={select:["select",n,r&&"disabled",s&&"multiple",l&&"error"],icon:["icon",`icon${me(n)}`,a&&"iconOpen",r&&"disabled"]};return Ke(u,Uk,t)},W1=pe("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${My.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}}}]})),Kk=pe(W1,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Zn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${My.multiple}`]:t.multiple}]}})({}),J1=pe("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${My.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}}]})),_k=pe(J1,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${me(n.variant)}`],n.open&&t.iconOpen]}})({}),$k=P.forwardRef(function(t,n){const{className:r,disabled:s,error:a,IconComponent:l,inputRef:u,variant:f="standard",...p}=t,h={...t,disabled:s,variant:f,error:a},m=Qk(h);return v.jsxs(P.Fragment,{children:[v.jsx(Kk,{ownerState:h,className:Oe(m.select,r),disabled:s,ref:u||n,...p}),t.multiple?null:v.jsx(_k,{as:l,ownerState:h,className:m.icon})]})});var Tx;const eR=pe("fieldset",{shouldForwardProp:Zn})({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%"}),tR=pe("legend",{shouldForwardProp:Zn})(Qe(({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 nR(e){const{children:t,classes:n,className:r,label:s,notched:a,...l}=e,u=s!=null&&s!=="",f={...e,notched:a,withLabel:u};return v.jsx(eR,{"aria-hidden":!0,className:r,ownerState:f,...l,children:v.jsx(tR,{ownerState:f,children:u?v.jsx("span",{children:s}):Tx||(Tx=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const rR=e=>{const{classes:t}=e,r=Ke({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},iC,t);return{...t,...r}},oR=pe(_p,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Qp})(Qe(({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 .${oo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${oo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${oo.focused} .${oo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(gn()).map(([n])=>({props:{color:n},style:{[`&.${oo.focused} .${oo.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${oo.error} .${oo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${oo.disabled} .${oo.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"}}]}})),sR=pe(nR,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Qe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),iR=pe($p,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Kp})(Qe(({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}}]}))),dp=P.forwardRef(function(t,n){var r;const s=$e({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:l=!1,inputComponent:u="input",label:f,multiline:p=!1,notched:h,slots:m={},type:y="text",...H}=s,A=rR(s),w=Bo(),x=Hi({props:s,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S={...s,color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:w,fullWidth:l,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:y},z=m.root??a.Root??oR,O=m.input??a.Input??iR;return v.jsx(ev,{slots:{root:z,input:O},renderSuffix:C=>v.jsx(sR,{ownerState:S,className:A.notchedOutline,label:f!=null&&f!==""&&x.required?r||(r=v.jsxs(P.Fragment,{children:[f," ","*"]})):f,notched:typeof h<"u"?h:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:l,inputComponent:u,multiline:p,ref:n,type:y,...H,classes:{...A,notchedOutline:null}})});dp&&(dp.muiName="Input");const aR=At(v.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),lR=At(v.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),cR=At(v.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"}),"RadioButtonUnchecked"),uR=At(v.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"}),"RadioButtonChecked"),fR=pe("span",{shouldForwardProp:Zn})({position:"relative",display:"flex"}),dR=pe(cR)({transform:"scale(1)"}),pR=pe(uR)(Qe(({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 F1(e){const{checked:t=!1,classes:n={},fontSize:r}=e,s={...e,checked:t};return v.jsxs(fR,{className:n.root,ownerState:s,children:[v.jsx(dR,{fontSize:r,className:n.background,ownerState:s}),v.jsx(pR,{fontSize:r,className:n.dot,ownerState:s})]})}const Y1=P.createContext(void 0);function vR(){return P.useContext(Y1)}function hR(e){return Ge("MuiRadio",e)}const kx=Ue("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),mR=e=>{const{classes:t,color:n,size:r}=e,s={root:["root",`color${me(n)}`,r!=="medium"&&`size${me(r)}`]};return{...t,...Ke(s,hR,t)}},gR=pe(Ry,{shouldForwardProp:e=>Zn(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${me(n.size)}`],t[`color${me(n.color)}`]]}})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${kx.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${kx.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function yR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const Rx=v.jsx(F1,{checked:!0}),Ex=v.jsx(F1,{}),Du=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:a=Rx,color:l="primary",icon:u=Ex,name:f,onChange:p,size:h="medium",className:m,disabled:y,disableRipple:H=!1,...A}=r,w=Bo();let x=y;w&&typeof x>"u"&&(x=w.disabled),x??(x=!1);const S={...r,disabled:x,disableRipple:H,color:l,size:h},z=mR(S),O=vR();let C=s;const D=ag(p,O&&O.onChange);let k=f;return O&&(typeof C>"u"&&(C=yR(O.value,r.value)),typeof k>"u"&&(k=O.name)),v.jsx(gR,{type:"radio",icon:P.cloneElement(u,{fontSize:Ex.props.fontSize??h}),checkedIcon:P.cloneElement(a,{fontSize:Rx.props.fontSize??h}),disabled:x,ownerState:S,classes:z,name:k,checked:C,onChange:D,ref:n,className:Oe(z.root,m),...A})});function AR(e){return Ge("MuiRadioGroup",e)}Ue("MuiRadioGroup",["root","row","error"]);const PR=e=>{const{classes:t,row:n,error:r}=e;return Ke({root:["root",n&&"row",r&&"error"]},AR,t)},pp=P.forwardRef(function(t,n){const{actions:r,children:s,className:a,defaultValue:l,name:u,onChange:f,value:p,...h}=t,m=P.useRef(null),y=PR(t),[H,A]=yi({controlled:p,default:l,name:"RadioGroup"});P.useImperativeHandle(r,()=>({focus:()=>{let z=m.current.querySelector("input:not(:disabled):checked");z||(z=m.current.querySelector("input:not(:disabled)")),z&&z.focus()}}),[]);const w=rn(n,m),x=Rs(u),S=P.useMemo(()=>({name:x,onChange(z){A(z.target.value),f&&f(z,z.target.value)},value:H}),[x,f,A,H]);return v.jsx(Y1.Provider,{value:S,children:v.jsx(OT,{role:"radiogroup",ref:w,className:Oe(y.root,a),...h,children:s})})});function bR(e){return Ge("MuiSelect",e)}const Nc=Ue("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Mx;const xR=pe(W1,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Nc.select}`]:t.select},{[`&.${Nc.select}`]:t[n.variant]},{[`&.${Nc.error}`]:t.error},{[`&.${Nc.multiple}`]:t.multiple}]}})({[`&.${Nc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),wR=pe(J1,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${me(n.variant)}`],n.open&&t.iconOpen]}})({}),HR=pe("input",{shouldForwardProp:e=>c1(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Lx(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function jR(e){return e==null||typeof e=="string"&&!e.trim()}const SR=e=>{const{classes:t,variant:n,disabled:r,multiple:s,open:a,error:l}=e,u={select:["select",n,r&&"disabled",s&&"multiple",l&&"error"],icon:["icon",`icon${me(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ke(u,bR,t)},zR=P.forwardRef(function(t,n){var Jt;const{"aria-describedby":r,"aria-label":s,autoFocus:a,autoWidth:l,children:u,className:f,defaultOpen:p,defaultValue:h,disabled:m,displayEmpty:y,error:H=!1,IconComponent:A,inputRef:w,labelId:x,MenuProps:S={},multiple:z,name:O,onBlur:C,onChange:D,onClose:k,onFocus:R,onOpen:M,open:L,readOnly:j,renderValue:B,SelectDisplayProps:I={},tabIndex:F,type:$,value:W,variant:ne="standard",..._}=t,[J,Q]=yi({controlled:W,default:h,name:"Select"}),[E,Z]=yi({controlled:L,default:p,name:"Select"}),X=P.useRef(null),re=P.useRef(null),[ee,ue]=P.useState(null),{current:de}=P.useRef(L!=null),[we,ve]=P.useState(),be=rn(n,w),Xe=P.useCallback(Be=>{re.current=Be,Be&&ue(Be)},[]),Ie=ee==null?void 0:ee.parentNode;P.useImperativeHandle(be,()=>({focus:()=>{re.current.focus()},node:X.current,value:J}),[J]),P.useEffect(()=>{p&&E&&ee&&!de&&(ve(l?null:Ie.clientWidth),re.current.focus())},[ee,l]),P.useEffect(()=>{a&&re.current.focus()},[a]),P.useEffect(()=>{if(!x)return;const Be=ir(re.current).getElementById(x);if(Be){const U=()=>{getSelection().isCollapsed&&re.current.focus()};return Be.addEventListener("click",U),()=>{Be.removeEventListener("click",U)}}},[x]);const He=(Be,U)=>{Be?M&&M(U):k&&k(U),de||(ve(l?null:Ie.clientWidth),Z(Be))},_e=Be=>{Be.button===0&&(Be.preventDefault(),re.current.focus(),He(!0,Be))},xe=Be=>{He(!1,Be)},tt=P.Children.toArray(u),Le=Be=>{const U=tt.find(Y=>Y.props.value===Be.target.value);U!==void 0&&(Q(U.props.value),D&&D(Be,U))},dt=Be=>U=>{let Y;if(U.currentTarget.hasAttribute("tabindex")){if(z){Y=Array.isArray(J)?J.slice():[];const Pe=J.indexOf(Be.props.value);Pe===-1?Y.push(Be.props.value):Y.splice(Pe,1)}else Y=Be.props.value;if(Be.props.onClick&&Be.props.onClick(U),J!==Y&&(Q(Y),D)){const Pe=U.nativeEvent||U,De=new Pe.constructor(Pe.type,Pe);Object.defineProperty(De,"target",{writable:!0,value:{value:Y,name:O}}),D(De,Be)}z||He(!1,U)}},N=Be=>{j||[" ","ArrowUp","ArrowDown","Enter"].includes(Be.key)&&(Be.preventDefault(),He(!0,Be))},te=ee!==null&&E,se=Be=>{!te&&C&&(Object.defineProperty(Be,"target",{writable:!0,value:{value:J,name:O}}),C(Be))};delete _["aria-invalid"];let ye,ce;const Ae=[];let je=!1;(cp({value:J})||y)&&(B?ye=B(J):je=!0);const st=tt.map(Be=>{if(!P.isValidElement(Be))return null;let U;if(z){if(!Array.isArray(J))throw new Error(ks(2));U=J.some(Y=>Lx(Y,Be.props.value)),U&&je&&Ae.push(Be.props.children)}else U=Lx(J,Be.props.value),U&&je&&(ce=Be.props.children);return P.cloneElement(Be,{"aria-selected":U?"true":"false",onClick:dt(Be),onKeyUp:Y=>{Y.key===" "&&Y.preventDefault(),Be.props.onKeyUp&&Be.props.onKeyUp(Y)},role:"option",selected:U,value:void 0,"data-value":Be.props.value})});je&&(z?Ae.length===0?ye=null:ye=Ae.reduce((Be,U,Y)=>(Be.push(U),Y{const{classes:t}=e;return t},Ly={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Zn(e)&&e!=="variant",slot:"Root"},CR=pe(fp,Ly)(""),DR=pe(dp,Ly)(""),TR=pe(up,Ly)(""),Tu=P.forwardRef(function(t,n){const r=$e({name:"MuiSelect",props:t}),{autoWidth:s=!1,children:a,classes:l={},className:u,defaultOpen:f=!1,displayEmpty:p=!1,IconComponent:h=j1,id:m,input:y,inputProps:H,label:A,labelId:w,MenuProps:x,multiple:S=!1,native:z=!1,onClose:O,onOpen:C,open:D,renderValue:k,SelectDisplayProps:R,variant:M="outlined",...L}=r,j=z?$k:zR,B=Bo(),I=Hi({props:r,muiFormControl:B,states:["variant","error"]}),F=I.variant||M,$={...r,variant:F,classes:l},W=OR($),{root:ne,..._}=W,J=y||{standard:v.jsx(CR,{ownerState:$}),outlined:v.jsx(DR,{label:A,ownerState:$}),filled:v.jsx(TR,{ownerState:$})}[F],Q=rn(n,xi(J));return v.jsx(P.Fragment,{children:P.cloneElement(J,{inputComponent:j,inputProps:{children:a,error:I.error,IconComponent:h,variant:F,type:void 0,multiple:S,...z?{id:m}:{autoWidth:s,defaultOpen:f,displayEmpty:p,labelId:w,MenuProps:x,onClose:O,onOpen:C,open:D,renderValue:k,SelectDisplayProps:{id:m,...R}},...H,classes:H?qn(_,H.classes):_,...y?y.props.inputProps:{}},...(S&&z||p)&&F==="outlined"?{notched:!0}:{},ref:Q,className:Oe(J.props.className,u,W.root),...!y&&{variant:F},...L})})});Tu.muiName="Select";function kR(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:s,resumeHideDuration:a}=e,l=Gi();P.useEffect(()=>{if(!s)return;function S(z){z.defaultPrevented||z.key==="Escape"&&(r==null||r(z,"escapeKeyDown"))}return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S)}},[s,r]);const u=mr((S,z)=>{r==null||r(S,z)}),f=mr(S=>{!r||S==null||l.start(S,()=>{u(null,"timeout")})});P.useEffect(()=>(s&&f(t),l.clear),[s,t,f,l]);const p=S=>{r==null||r(S,"clickaway")},h=l.clear,m=P.useCallback(()=>{t!=null&&f(a??t*.5)},[t,a,f]),y=S=>z=>{const O=S.onBlur;O==null||O(z),m()},H=S=>z=>{const O=S.onFocus;O==null||O(z),h()},A=S=>z=>{const O=S.onMouseEnter;O==null||O(z),h()},w=S=>z=>{const O=S.onMouseLeave;O==null||O(z),m()};return P.useEffect(()=>{if(!n&&s)return window.addEventListener("focus",m),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",h)}},[n,s,m,h]),{getRootProps:(S={})=>{const z={...op(e),...op(S)};return{role:"presentation",...S,...z,onBlur:y(z),onFocus:H(z),onMouseEnter:A(z),onMouseLeave:w(z)}},onClickAway:p}}function RR(e){return Ge("MuiSnackbarContent",e)}Ue("MuiSnackbarContent",["root","message","action"]);const ER=e=>{const{classes:t}=e;return Ke({root:["root"],action:["action"],message:["message"]},RR,t)},MR=pe(Ur,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(Qe(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=q0(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),LR=pe("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),XR=pe("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),NR=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiSnackbarContent"}),{action:s,className:a,message:l,role:u="alert",...f}=r,p=r,h=ER(p);return v.jsxs(MR,{role:u,square:!0,elevation:6,className:Oe(h.root,a),ownerState:p,ref:n,...f,children:[v.jsx(LR,{className:h.message,ownerState:p,children:l}),s?v.jsx(XR,{className:h.action,ownerState:p,children:s}):null]})});function BR(e){return Ge("MuiSnackbar",e)}Ue("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const VR=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${me(n.vertical)}${me(n.horizontal)}`]};return Ke(r,BR,t)},Xx=pe("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${me(n.anchorOrigin.vertical)}${me(n.anchorOrigin.horizontal)}`]]}})(Qe(({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%)"}}}]}))),q1=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiSnackbar"}),s=Kr(),a={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{action:l,anchorOrigin:{vertical:u,horizontal:f}={vertical:"bottom",horizontal:"left"},autoHideDuration:p=null,children:h,className:m,ClickAwayListenerProps:y,ContentProps:H,disableWindowBlurListener:A=!1,message:w,onBlur:x,onClose:S,onFocus:z,onMouseEnter:O,onMouseLeave:C,open:D,resumeHideDuration:k,TransitionComponent:R=Ou,transitionDuration:M=a,TransitionProps:{onEnter:L,onExited:j,...B}={},...I}=r,F={...r,anchorOrigin:{vertical:u,horizontal:f},autoHideDuration:p,disableWindowBlurListener:A,TransitionComponent:R,transitionDuration:M},$=VR(F),{getRootProps:W,onClickAway:ne}=kR({...F}),[_,J]=P.useState(!0),Q=sp({elementType:Xx,getSlotProps:W,externalForwardedProps:I,ownerState:F,additionalProps:{ref:n},className:[$.root,m]}),E=X=>{J(!0),j&&j(X)},Z=(X,re)=>{J(!1),L&&L(X,re)};return!D&&_?null:v.jsx(T1,{onClickAway:ne,...y,children:v.jsx(Xx,{...Q,children:v.jsx(R,{appear:!0,in:D,timeout:M,direction:u==="top"?"down":"up",onEnter:Z,onExited:E,...B,children:h||v.jsx(NR,{message:w,action:l,...H})})})})});function IR(e){return Ge("MuiTooltip",e)}const jn=Ue("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function WR(e){return Math.round(e*1e5)/1e5}const JR=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:s,placement:a}=e,l={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",s&&"touch",`tooltipPlacement${me(a.split("-")[0])}`],arrow:["arrow"]};return Ke(l,IR,t)},FR=pe(Gp,{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]}})(Qe(({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"] .${jn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${jn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${jn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${jn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${jn.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${jn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${jn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${jn.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),YR=pe("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${me(n.placement.split("-")[0])}`]]}})(Qe(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Pt(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,[`.${jn.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${jn.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${jn.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${jn.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:`${WR(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${jn.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${jn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${jn.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${jn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${jn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${jn.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${jn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${jn.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${jn.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${jn.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),qR=pe("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(Qe(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Pt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let xd=!1;const Nx=new Yp;let Bc={x:0,y:0};function wd(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Xy=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiTooltip"}),{arrow:s=!1,children:a,classes:l,components:u={},componentsProps:f={},describeChild:p=!1,disableFocusListener:h=!1,disableHoverListener:m=!1,disableInteractive:y=!1,disableTouchListener:H=!1,enterDelay:A=100,enterNextDelay:w=0,enterTouchDelay:x=700,followCursor:S=!1,id:z,leaveDelay:O=0,leaveTouchDelay:C=1500,onClose:D,onOpen:k,open:R,placement:M="bottom",PopperComponent:L,PopperProps:j={},slotProps:B={},slots:I={},title:F,TransitionComponent:$,TransitionProps:W,...ne}=r,_=P.isValidElement(a)?a:v.jsx("span",{children:a}),J=Kr(),Q=Ju(),[E,Z]=P.useState(),[X,re]=P.useState(null),ee=P.useRef(!1),ue=y||S,de=Gi(),we=Gi(),ve=Gi(),be=Gi(),[Xe,Ie]=yi({controlled:R,default:!1,name:"Tooltip",state:"open"});let He=Xe;const _e=Rs(z),xe=P.useRef(),tt=mr(()=>{xe.current!==void 0&&(document.body.style.WebkitUserSelect=xe.current,xe.current=void 0),be.clear()});P.useEffect(()=>tt,[tt]);const Le=Fe=>{Nx.clear(),xd=!0,Ie(!0),k&&!He&&k(Fe)},dt=mr(Fe=>{Nx.start(800+O,()=>{xd=!1}),Ie(!1),D&&He&&D(Fe),de.start(J.transitions.duration.shortest,()=>{ee.current=!1})}),N=Fe=>{ee.current&&Fe.type!=="touchstart"||(E&&E.removeAttribute("title"),we.clear(),ve.clear(),A||xd&&w?we.start(xd?w:A,()=>{Le(Fe)}):Le(Fe))},te=Fe=>{we.clear(),ve.start(O,()=>{dt(Fe)})},[,se]=P.useState(!1),ye=Fe=>{Ol(Fe.target)||(se(!1),te(Fe))},ce=Fe=>{E||Z(Fe.currentTarget),Ol(Fe.target)&&(se(!0),N(Fe))},Ae=Fe=>{ee.current=!0;const Rt=_.props;Rt.onTouchStart&&Rt.onTouchStart(Fe)},je=Fe=>{Ae(Fe),ve.clear(),de.clear(),tt(),xe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",be.start(x,()=>{document.body.style.WebkitUserSelect=xe.current,N(Fe)})},st=Fe=>{_.props.onTouchEnd&&_.props.onTouchEnd(Fe),tt(),ve.start(C,()=>{dt(Fe)})};P.useEffect(()=>{if(!He)return;function Fe(Rt){Rt.key==="Escape"&&dt(Rt)}return document.addEventListener("keydown",Fe),()=>{document.removeEventListener("keydown",Fe)}},[dt,He]);const wt=rn(xi(_),Z,n);!F&&F!==0&&(He=!1);const nt=P.useRef(),ft=Fe=>{const Rt=_.props;Rt.onMouseMove&&Rt.onMouseMove(Fe),Bc={x:Fe.clientX,y:Fe.clientY},nt.current&&nt.current.update()},ct={},Ht=typeof F=="string";p?(ct.title=!He&&Ht&&!m?F:null,ct["aria-describedby"]=He?_e:null):(ct["aria-label"]=Ht?F:null,ct["aria-labelledby"]=He&&!Ht?_e:null);const We={...ct,...ne,..._.props,className:Oe(ne.className,_.props.className),onTouchStart:Ae,ref:wt,...S?{onMouseMove:ft}:{}},Dt={};H||(We.onTouchStart=je,We.onTouchEnd=st),m||(We.onMouseOver=wd(N,We.onMouseOver),We.onMouseLeave=wd(te,We.onMouseLeave),ue||(Dt.onMouseOver=N,Dt.onMouseLeave=te)),h||(We.onFocus=wd(ce,We.onFocus),We.onBlur=wd(ye,We.onBlur),ue||(Dt.onFocus=ce,Dt.onBlur=ye));const Jt={...r,isRtl:Q,arrow:s,disableInteractive:ue,placement:M,PopperComponentProp:L,touch:ee.current},Be=typeof B.popper=="function"?B.popper(Jt):B.popper,U=P.useMemo(()=>{var Rt,un;let Fe=[{name:"arrow",enabled:!!X,options:{element:X,padding:4}}];return(Rt=j.popperOptions)!=null&&Rt.modifiers&&(Fe=Fe.concat(j.popperOptions.modifiers)),(un=Be==null?void 0:Be.popperOptions)!=null&&un.modifiers&&(Fe=Fe.concat(Be.popperOptions.modifiers)),{...j.popperOptions,...Be==null?void 0:Be.popperOptions,modifiers:Fe}},[X,j.popperOptions,Be==null?void 0:Be.popperOptions]),Y=JR(Jt),Pe=typeof B.transition=="function"?B.transition(Jt):B.transition,De={slots:{popper:u.Popper,transition:u.Transition??$,tooltip:u.Tooltip,arrow:u.Arrow,...I},slotProps:{arrow:B.arrow??f.arrow,popper:{...j,...Be??f.popper},tooltip:B.tooltip??f.tooltip,transition:{...W,...Pe??f.transition}}},[Te,Ne]=Cn("popper",{elementType:FR,externalForwardedProps:De,ownerState:Jt,className:Oe(Y.popper,j==null?void 0:j.className)}),[Je,ke]=Cn("transition",{elementType:Ou,externalForwardedProps:De,ownerState:Jt}),[rt,vt]=Cn("tooltip",{elementType:YR,className:Y.tooltip,externalForwardedProps:De,ownerState:Jt}),[kt,Qt]=Cn("arrow",{elementType:qR,className:Y.arrow,externalForwardedProps:De,ownerState:Jt,ref:re});return v.jsxs(P.Fragment,{children:[P.cloneElement(_,We),v.jsx(Te,{as:L??Gp,placement:M,anchorEl:S?{getBoundingClientRect:()=>({top:Bc.y,left:Bc.x,right:Bc.x,bottom:Bc.y,width:0,height:0})}:E,popperRef:nt,open:E?He:!1,id:_e,transition:!0,...Dt,...Ne,popperOptions:U,children:({TransitionProps:Fe})=>v.jsx(Je,{timeout:J.transitions.duration.shorter,...Fe,...ke,children:v.jsxs(rt,{...vt,children:[F,s?v.jsx(kt,{...Qt}):null]})})})]})}),as=Wj({createStyledComponent:pe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>$e({props:e,name:"MuiStack"})});function ZR(e){return Ge("MuiSwitch",e)}const fr=Ue("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),GR=e=>{const{classes:t,edge:n,size:r,color:s,checked:a,disabled:l}=e,u={root:["root",n&&`edge${me(n)}`,`size${me(r)}`],switchBase:["switchBase",`color${me(s)}`,a&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},f=Ke(u,ZR,t);return{...t,...f}},UR=pe("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${me(n.edge)}`],t[`size${me(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,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,[`& .${fr.thumb}`]:{width:16,height:16},[`& .${fr.switchBase}`]:{padding:4,[`&.${fr.checked}`]:{transform:"translateX(16px)"}}}}]}),QR=pe(Ry,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${fr.input}`]:t.input},n.color!=="default"&&t[`color${me(n.color)}`]]}})(Qe(({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}),[`&.${fr.checked}`]:{transform:"translateX(20px)"},[`&.${fr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${fr.checked} + .${fr.track}`]:{opacity:.5},[`&.${fr.disabled} + .${fr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${fr.input}`]:{left:"-100%",width:"300%"}})),Qe(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(gn(["light"])).map(([t])=>({props:{color:t},style:{[`&.${fr.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${fr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?ua(e.palette[t].main,.62):ca(e.palette[t].main,.55)}`}},[`&.${fr.checked} + .${fr.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),KR=pe("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(Qe(({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}`}))),_R=pe("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(Qe(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Z1=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiSwitch"}),{className:s,color:a="primary",edge:l=!1,size:u="medium",sx:f,...p}=r,h={...r,color:a,edge:l,size:u},m=GR(h),y=v.jsx(_R,{className:m.thumb,ownerState:h});return v.jsxs(UR,{className:Oe(m.root,s),sx:f,ownerState:h,children:[v.jsx(QR,{type:"checkbox",icon:y,checkedIcon:y,ref:n,ownerState:h,...p,classes:{...m,root:m.switchBase}}),v.jsx(KR,{className:m.track,ownerState:h})]})}),G1=P.createContext();function $R(e){return Ge("MuiTable",e)}Ue("MuiTable",["root","stickyHeader"]);const eE=e=>{const{classes:t,stickyHeader:n}=e;return Ke({root:["root",n&&"stickyHeader"]},$R,t)},tE=pe("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Qe(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),Bx="table",U1=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiTable"}),{className:s,component:a=Bx,padding:l="normal",size:u="medium",stickyHeader:f=!1,...p}=r,h={...r,component:a,padding:l,size:u,stickyHeader:f},m=eE(h),y=P.useMemo(()=>({padding:l,size:u,stickyHeader:f}),[l,u,f]);return v.jsx(G1.Provider,{value:y,children:v.jsx(tE,{as:a,role:a===Bx?null:"table",ref:n,className:Oe(m.root,s),ownerState:h,...p})})}),Gu=P.createContext();function nE(e){return Ge("MuiTableBody",e)}Ue("MuiTableBody",["root"]);const rE=e=>{const{classes:t}=e;return Ke({root:["root"]},nE,t)},oE=pe("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),sE={variant:"body"},Vx="tbody",Q1=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiTableBody"}),{className:s,component:a=Vx,...l}=r,u={...r,component:a},f=rE(u);return v.jsx(Gu.Provider,{value:sE,children:v.jsx(oE,{className:Oe(f.root,s),as:a,ref:n,role:a===Vx?null:"rowgroup",ownerState:u,...l})})});function iE(e){return Ge("MuiTableCell",e)}const aE=Ue("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),lE=e=>{const{classes:t,variant:n,align:r,padding:s,size:a,stickyHeader:l}=e,u={root:["root",n,l&&"stickyHeader",r!=="inherit"&&`align${me(r)}`,s!=="normal"&&`padding${me(s)}`,`size${me(a)}`]};return Ke(u,iE,t)},cE=pe("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${me(n.size)}`],n.padding!=="normal"&&t[`padding${me(n.padding)}`],n.align!=="inherit"&&t[`align${me(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Qe(({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"?ua(Pt(e.palette.divider,1),.88):ca(Pt(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",[`&.${aE.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}}]}))),vr=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiTableCell"}),{align:s="inherit",className:a,component:l,padding:u,scope:f,size:p,sortDirection:h,variant:m,...y}=r,H=P.useContext(G1),A=P.useContext(Gu),w=A&&A.variant==="head";let x;l?x=l:x=w?"th":"td";let S=f;x==="td"?S=void 0:!S&&w&&(S="col");const z=m||A&&A.variant,O={...r,align:s,component:x,padding:u||(H&&H.padding?H.padding:"normal"),size:p||(H&&H.size?H.size:"medium"),sortDirection:h,stickyHeader:z==="head"&&H&&H.stickyHeader,variant:z},C=lE(O);let D=null;return h&&(D=h==="asc"?"ascending":"descending"),v.jsx(cE,{as:x,ref:n,className:Oe(C.root,a),"aria-sort":D,scope:S,ownerState:O,...y})});function uE(e){return Ge("MuiTableContainer",e)}Ue("MuiTableContainer",["root"]);const fE=e=>{const{classes:t}=e;return Ke({root:["root"]},uE,t)},dE=pe("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),K1=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiTableContainer"}),{className:s,component:a="div",...l}=r,u={...r,component:a},f=fE(u);return v.jsx(dE,{ref:n,as:a,className:Oe(f.root,s),ownerState:u,...l})});function pE(e){return Ge("MuiTableFooter",e)}Ue("MuiTableFooter",["root"]);const vE=e=>{const{classes:t}=e;return Ke({root:["root"]},pE,t)},hE=pe("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),mE={variant:"footer"},Ix="tfoot",gE=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiTableFooter"}),{className:s,component:a=Ix,...l}=r,u={...r,component:a},f=vE(u);return v.jsx(Gu.Provider,{value:mE,children:v.jsx(hE,{as:a,className:Oe(f.root,s),ref:n,role:a===Ix?null:"rowgroup",ownerState:u,...l})})});function yE(e){return Ge("MuiTableHead",e)}Ue("MuiTableHead",["root"]);const AE=e=>{const{classes:t}=e;return Ke({root:["root"]},yE,t)},PE=pe("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),bE={variant:"head"},Wx="thead",xE=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiTableHead"}),{className:s,component:a=Wx,...l}=r,u={...r,component:a},f=AE(u);return v.jsx(Gu.Provider,{value:bE,children:v.jsx(PE,{as:a,className:Oe(f.root,s),ref:n,role:a===Wx?null:"rowgroup",ownerState:u,...l})})});function wE(e){return Ge("MuiToolbar",e)}Ue("MuiToolbar",["root","gutters","regular","dense"]);const HE=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Ke({root:["root",!n&&"gutters",r]},wE,t)},jE=pe("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Qe(({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}]}))),_1=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiToolbar"}),{className:s,component:a="div",disableGutters:l=!1,variant:u="regular",...f}=r,p={...r,component:a,disableGutters:l,variant:u},h=HE(p);return v.jsx(jE,{as:a,className:Oe(h.root,s),ref:n,ownerState:p,...f})}),SE=At(v.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),zE=At(v.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),OE=P.forwardRef(function(t,n){const{backIconButtonProps:r,count:s,disabled:a=!1,getItemAriaLabel:l,nextIconButtonProps:u,onPageChange:f,page:p,rowsPerPage:h,showFirstButton:m,showLastButton:y,slots:H={},slotProps:A={},...w}=t,x=Ju(),S=Z=>{f(Z,0)},z=Z=>{f(Z,p-1)},O=Z=>{f(Z,p+1)},C=Z=>{f(Z,Math.max(0,Math.ceil(s/h)-1))},D=H.firstButton??zr,k=H.lastButton??zr,R=H.nextButton??zr,M=H.previousButton??zr,L=H.firstButtonIcon??aR,j=H.lastButtonIcon??lR,B=H.nextButtonIcon??zE,I=H.previousButtonIcon??SE,F=x?k:D,$=x?R:M,W=x?M:R,ne=x?D:k,_=x?A.lastButton:A.firstButton,J=x?A.nextButton:A.previousButton,Q=x?A.previousButton:A.nextButton,E=x?A.firstButton:A.lastButton;return v.jsxs("div",{ref:n,...w,children:[m&&v.jsx(F,{onClick:S,disabled:a||p===0,"aria-label":l("first",p),title:l("first",p),..._,children:x?v.jsx(j,{...A.lastButtonIcon}):v.jsx(L,{...A.firstButtonIcon})}),v.jsx($,{onClick:z,disabled:a||p===0,color:"inherit","aria-label":l("previous",p),title:l("previous",p),...J??r,children:x?v.jsx(B,{...A.nextButtonIcon}):v.jsx(I,{...A.previousButtonIcon})}),v.jsx(W,{onClick:O,disabled:a||(s!==-1?p>=Math.ceil(s/h)-1:!1),color:"inherit","aria-label":l("next",p),title:l("next",p),...Q??u,children:x?v.jsx(I,{...A.previousButtonIcon}):v.jsx(B,{...A.nextButtonIcon})}),y&&v.jsx(ne,{onClick:C,disabled:a||p>=Math.ceil(s/h)-1,"aria-label":l("last",p),title:l("last",p),...E,children:x?v.jsx(L,{...A.firstButtonIcon}):v.jsx(j,{...A.lastButtonIcon})})]})});function CE(e){return Ge("MuiTablePagination",e)}const vu=Ue("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var Jx;const DE=pe(vr,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(Qe(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),TE=pe(_1,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${vu.actions}`]:t.actions,...t.toolbar})})(Qe(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${vu.actions}`]:{flexShrink:0,marginLeft:20}}))),kE=pe("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),RE=pe("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(Qe(({theme:e})=>({...e.typography.body2,flexShrink:0}))),EE=pe(Tu,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${vu.selectIcon}`]:t.selectIcon,[`& .${vu.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${vu.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),ME=pe(ts,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),LE=pe("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(Qe(({theme:e})=>({...e.typography.body2,flexShrink:0})));function XE({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function NE(e){return`Go to ${e} page`}const BE=e=>{const{classes:t}=e;return Ke({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},CE,t)},VE=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiTablePagination"}),{ActionsComponent:s=OE,backIconButtonProps:a,className:l,colSpan:u,component:f=vr,count:p,disabled:h=!1,getItemAriaLabel:m=NE,labelDisplayedRows:y=XE,labelRowsPerPage:H="Rows per page:",nextIconButtonProps:A,onPageChange:w,onRowsPerPageChange:x,page:S,rowsPerPage:z,rowsPerPageOptions:O=[10,25,50,100],SelectProps:C={},showFirstButton:D=!1,showLastButton:k=!1,slotProps:R={},slots:M={},...L}=r,j=r,B=BE(j),I=(R==null?void 0:R.select)??C,F=I.native?"option":ME;let $;(f===vr||f==="td")&&($=u||1e3);const W=Rs(I.id),ne=Rs(I.labelId),_=()=>p===-1?(S+1)*z:z===-1?p:Math.min(p,(S+1)*z);return v.jsx(DE,{colSpan:$,ref:n,as:f,ownerState:j,className:Oe(B.root,l),...L,children:v.jsxs(TE,{className:B.toolbar,children:[v.jsx(kE,{className:B.spacer}),O.length>1&&v.jsx(RE,{className:B.selectLabel,id:ne,children:H}),O.length>1&&v.jsx(EE,{variant:"standard",...!I.variant&&{input:Jx||(Jx=v.jsx(ev,{}))},value:z,onChange:x,id:W,labelId:ne,...I,classes:{...I.classes,root:Oe(B.input,B.selectRoot,(I.classes||{}).root),select:Oe(B.select,(I.classes||{}).select),icon:Oe(B.selectIcon,(I.classes||{}).icon)},disabled:h,children:O.map(J=>P.createElement(F,{...!El(F)&&{ownerState:j},className:B.menuItem,key:J.label?J.label:J,value:J.value?J.value:J},J.label?J.label:J))}),v.jsx(LE,{className:B.displayedRows,children:y({from:p===0?0:S*z+1,to:_(),count:p===-1?-1:p,page:S})}),v.jsx(s,{className:B.actions,backIconButtonProps:a,count:p,nextIconButtonProps:A,onPageChange:w,page:S,rowsPerPage:z,showFirstButton:D,showLastButton:k,slotProps:R.actions,slots:M.actions,getItemAriaLabel:m,disabled:h})]})})});function IE(e){return Ge("MuiTableRow",e)}const Fx=Ue("MuiTableRow",["root","selected","hover","head","footer"]),WE=e=>{const{classes:t,selected:n,hover:r,head:s,footer:a}=e;return Ke({root:["root",n&&"selected",r&&"hover",s&&"head",a&&"footer"]},IE,t)},JE=pe("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Qe(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Fx.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Fx.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Pt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Yx="tr",vp=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiTableRow"}),{className:s,component:a=Yx,hover:l=!1,selected:u=!1,...f}=r,p=P.useContext(Gu),h={...r,component:a,hover:l,selected:u,head:p&&p.variant==="head",footer:p&&p.variant==="footer"},m=WE(h);return v.jsx(JE,{as:a,ref:n,className:Oe(m.root,s),role:a===Yx?null:"row",ownerState:h,...f})});function FE(e){return Ge("MuiTextField",e)}Ue("MuiTextField",["root"]);const YE={standard:fp,filled:up,outlined:dp},qE=e=>{const{classes:t}=e;return Ke({root:["root"]},FE,t)},ZE=pe(ur,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lo=P.forwardRef(function(t,n){const r=$e({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:a=!1,children:l,className:u,color:f="primary",defaultValue:p,disabled:h=!1,error:m=!1,FormHelperTextProps:y,fullWidth:H=!1,helperText:A,id:w,InputLabelProps:x,inputProps:S,InputProps:z,inputRef:O,label:C,maxRows:D,minRows:k,multiline:R=!1,name:M,onBlur:L,onChange:j,onFocus:B,placeholder:I,required:F=!1,rows:$,select:W=!1,SelectProps:ne,slots:_={},slotProps:J={},type:Q,value:E,variant:Z="outlined",...X}=r,re={...r,autoFocus:a,color:f,disabled:h,error:m,fullWidth:H,multiline:R,required:F,select:W,variant:Z},ee=qE(re),ue=Rs(w),de=A&&ue?`${ue}-helper-text`:void 0,we=C&&ue?`${ue}-label`:void 0,ve=YE[Z],be={slots:_,slotProps:{input:z,inputLabel:x,htmlInput:S,formHelperText:y,select:ne,...J}},Xe={},Ie=be.slotProps.inputLabel;Z==="outlined"&&(Ie&&typeof Ie.shrink<"u"&&(Xe.notched=Ie.shrink),Xe.label=C),W&&((!ne||!ne.native)&&(Xe.id=void 0),Xe["aria-describedby"]=void 0);const[He,_e]=Cn("input",{elementType:ve,externalForwardedProps:be,additionalProps:Xe,ownerState:re}),[xe,tt]=Cn("inputLabel",{elementType:Wd,externalForwardedProps:be,ownerState:re}),[Le,dt]=Cn("htmlInput",{elementType:"input",externalForwardedProps:be,ownerState:re}),[N,te]=Cn("formHelperText",{elementType:nl,externalForwardedProps:be,ownerState:re}),[se,ye]=Cn("select",{elementType:Tu,externalForwardedProps:be,ownerState:re}),ce=v.jsx(He,{"aria-describedby":de,autoComplete:s,autoFocus:a,defaultValue:p,fullWidth:H,multiline:R,name:M,rows:$,maxRows:D,minRows:k,type:Q,value:E,id:ue,inputRef:O,onBlur:L,onChange:j,onFocus:B,placeholder:I,inputProps:dt,slots:{input:_.htmlInput?Le:void 0},..._e});return v.jsxs(ZE,{className:Oe(ee.root,u),disabled:h,error:m,fullWidth:H,ref:n,required:F,color:f,variant:Z,ownerState:re,...X,children:[C!=null&&C!==""&&v.jsx(xe,{htmlFor:ue,id:we,...tt,children:C}),W?v.jsx(se,{"aria-describedby":de,id:ue,labelId:we,value:E,input:ce,...ye,children:l}):ce,A&&v.jsx(N,{id:de,...te,children:A})]})}),Dn="/hub",nv="/services/japps",Ny=["Environments"],GE=["Any","Owned by me","Shared with me"],UE=["Recently modified","Name: A-Z","Name: Z-A"],QE=["Running","Ready","Pending","Unknown"],By="startAppId";var Wl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},va=typeof window>"u"||"Deno"in globalThis;function io(){}function KE(e,t){return typeof e=="function"?e(t):e}function wg(e){return typeof e=="number"&&e>=0&&e!==1/0}function $1(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ul(e,t){return typeof e=="function"?e(t):e}function To(e,t){return typeof e=="function"?e(t):e}function qx(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:a,queryKey:l,stale:u}=e;if(l){if(r){if(t.queryHash!==Vy(l,t.options))return!1}else if(!ku(t.queryKey,l))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||s&&s!==t.state.fetchStatus||a&&!a(t))}function Zx(e,t){const{exact:n,status:r,predicate:s,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(ha(t.options.mutationKey)!==ha(a))return!1}else if(!ku(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Vy(e,t){return((t==null?void 0:t.queryKeyHashFn)||ha)(e)}function ha(e){return JSON.stringify(e,(t,n)=>Hg(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function ku(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!ku(e[n],t[n])):!1}function e2(e,t){if(e===t)return e;const n=Gx(e)&&Gx(t);if(n||Hg(e)&&Hg(t)){const r=n?e:Object.keys(e),s=r.length,a=n?t:Object.keys(t),l=a.length,u=n?[]:{};let f=0;for(let p=0;p{setTimeout(t,e)})}function jg(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?e2(e,t):t}function $E(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function e6(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Iy=Symbol();function t2(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Iy?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var _i,ci,dl,a0,t6=(a0=class extends Wl{constructor(){super();gt(this,_i);gt(this,ci);gt(this,dl);qe(this,dl,t=>{if(!va&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){G(this,ci)||this.setEventListener(G(this,dl))}onUnsubscribe(){var t;this.hasListeners()||((t=G(this,ci))==null||t.call(this),qe(this,ci,void 0))}setEventListener(t){var n;qe(this,dl,t),(n=G(this,ci))==null||n.call(this),qe(this,ci,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){G(this,_i)!==t&&(qe(this,_i,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof G(this,_i)=="boolean"?G(this,_i):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},_i=new WeakMap,ci=new WeakMap,dl=new WeakMap,a0),Wy=new t6,pl,ui,vl,l0,n6=(l0=class extends Wl{constructor(){super();gt(this,pl,!0);gt(this,ui);gt(this,vl);qe(this,vl,t=>{if(!va&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){G(this,ui)||this.setEventListener(G(this,vl))}onUnsubscribe(){var t;this.hasListeners()||((t=G(this,ui))==null||t.call(this),qe(this,ui,void 0))}setEventListener(t){var n;qe(this,vl,t),(n=G(this,ui))==null||n.call(this),qe(this,ui,t(this.setOnline.bind(this)))}setOnline(t){G(this,pl)!==t&&(qe(this,pl,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return G(this,pl)}},pl=new WeakMap,ui=new WeakMap,vl=new WeakMap,l0),mp=new n6;function Sg(){let e,t;const n=new Promise((s,a)=>{e=s,t=a});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function r6(e){return Math.min(1e3*2**e,3e4)}function n2(e){return(e??"online")==="online"?mp.isOnline():!0}var r2=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Lm(e){return e instanceof r2}function o2(e){let t=!1,n=0,r=!1,s;const a=Sg(),l=w=>{var x;r||(y(new r2(w)),(x=e.abort)==null||x.call(e))},u=()=>{t=!0},f=()=>{t=!1},p=()=>Wy.isFocused()&&(e.networkMode==="always"||mp.isOnline())&&e.canRun(),h=()=>n2(e.networkMode)&&e.canRun(),m=w=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,w),s==null||s(),a.resolve(w))},y=w=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,w),s==null||s(),a.reject(w))},H=()=>new Promise(w=>{var x;s=S=>{(r||p())&&w(S)},(x=e.onPause)==null||x.call(e)}).then(()=>{var w;s=void 0,r||(w=e.onContinue)==null||w.call(e)}),A=()=>{if(r)return;let w;const x=n===0?e.initialPromise:void 0;try{w=x??e.fn()}catch(S){w=Promise.reject(S)}Promise.resolve(w).then(m).catch(S=>{var k;if(r)return;const z=e.retry??(va?0:3),O=e.retryDelay??r6,C=typeof O=="function"?O(n,S):O,D=z===!0||typeof z=="number"&&np()?void 0:H()).then(()=>{t?y(S):A()})})};return{promise:a,cancel:l,continue:()=>(s==null||s(),a),cancelRetry:u,continueRetry:f,canStart:h,start:()=>(h()?A():H().then(A),a)}}function o6(){let e=[],t=0,n=u=>{u()},r=u=>{u()},s=u=>setTimeout(u,0);const a=u=>{t?e.push(u):s(()=>{n(u)})},l=()=>{const u=e;e=[],u.length&&s(()=>{r(()=>{u.forEach(f=>{n(f)})})})};return{batch:u=>{let f;t++;try{f=u()}finally{t--,t||l()}return f},batchCalls:u=>(...f)=>{a(()=>{u(...f)})},schedule:a,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{s=u}}}var In=o6(),$i,c0,s2=(c0=class{constructor(){gt(this,$i)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wg(this.gcTime)&&qe(this,$i,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(va?1/0:5*60*1e3))}clearGcTimeout(){G(this,$i)&&(clearTimeout(G(this,$i)),qe(this,$i,void 0))}},$i=new WeakMap,c0),hl,ml,so,or,Mu,ea,Do,js,u0,s6=(u0=class extends s2{constructor(t){super();gt(this,Do);gt(this,hl);gt(this,ml);gt(this,so);gt(this,or);gt(this,Mu);gt(this,ea);qe(this,ea,!1),qe(this,Mu,t.defaultOptions),this.setOptions(t.options),this.observers=[],qe(this,so,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,qe(this,hl,i6(this.options)),this.state=t.state??G(this,hl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=G(this,or))==null?void 0:t.promise}setOptions(t){this.options={...G(this,Mu),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&G(this,so).remove(this)}setData(t,n){const r=jg(this.state.data,t,this.options);return zt(this,Do,js).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){zt(this,Do,js).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=G(this,or))==null?void 0:r.promise;return(s=G(this,or))==null||s.cancel(t),n?n.then(io).catch(io):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(G(this,hl))}isActive(){return this.observers.some(t=>To(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Iy||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!$1(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=G(this,or))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=G(this,or))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),G(this,so).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(G(this,or)&&(G(this,ea)?G(this,or).cancel({revert:!0}):G(this,or).cancelRetry()),this.scheduleGc()),G(this,so).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||zt(this,Do,js).call(this,{type:"invalidate"})}fetch(t,n){var f,p,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(G(this,or))return G(this,or).continueRetry(),G(this,or).promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(y=>y.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,s=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(qe(this,ea,!0),r.signal)})},a=()=>{const m=t2(this.options,n),y={queryKey:this.queryKey,meta:this.meta};return s(y),qe(this,ea,!1),this.options.persister?this.options.persister(m,y,this):m(y)},l={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};s(l),(f=this.options.behavior)==null||f.onFetch(l,this),qe(this,ml,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=l.fetchOptions)==null?void 0:p.meta))&&zt(this,Do,js).call(this,{type:"fetch",meta:(h=l.fetchOptions)==null?void 0:h.meta});const u=m=>{var y,H,A,w;Lm(m)&&m.silent||zt(this,Do,js).call(this,{type:"error",error:m}),Lm(m)||((H=(y=G(this,so).config).onError)==null||H.call(y,m,this),(w=(A=G(this,so).config).onSettled)==null||w.call(A,this.state.data,m,this)),this.scheduleGc()};return qe(this,or,o2({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var y,H,A,w;if(m===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(x){u(x);return}(H=(y=G(this,so).config).onSuccess)==null||H.call(y,m,this),(w=(A=G(this,so).config).onSettled)==null||w.call(A,m,this.state.error,this),this.scheduleGc()},onError:u,onFail:(m,y)=>{zt(this,Do,js).call(this,{type:"failed",failureCount:m,error:y})},onPause:()=>{zt(this,Do,js).call(this,{type:"pause"})},onContinue:()=>{zt(this,Do,js).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),G(this,or).start()}},hl=new WeakMap,ml=new WeakMap,so=new WeakMap,or=new WeakMap,Mu=new WeakMap,ea=new WeakMap,Do=new WeakSet,js=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...i2(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return Lm(s)&&s.revert&&G(this,ml)?{...G(this,ml),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),In.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),G(this,so).notify({query:this,type:"updated",action:t})})},u0);function i2(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:n2(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function i6(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Zo,f0,a6=(f0=class extends Wl{constructor(t={}){super();gt(this,Zo);this.config=t,qe(this,Zo,new Map)}build(t,n,r){const s=n.queryKey,a=n.queryHash??Vy(s,n);let l=this.get(a);return l||(l=new s6({cache:this,queryKey:s,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(l)),l}add(t){G(this,Zo).has(t.queryHash)||(G(this,Zo).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=G(this,Zo).get(t.queryHash);n&&(t.destroy(),n===t&&G(this,Zo).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){In.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return G(this,Zo).get(t)}getAll(){return[...G(this,Zo).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>qx(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>qx(t,r)):n}notify(t){In.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){In.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){In.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Zo=new WeakMap,f0),Go,dr,ta,Uo,si,d0,l6=(d0=class extends s2{constructor(t){super();gt(this,Uo);gt(this,Go);gt(this,dr);gt(this,ta);this.mutationId=t.mutationId,qe(this,dr,t.mutationCache),qe(this,Go,[]),this.state=t.state||a2(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){G(this,Go).includes(t)||(G(this,Go).push(t),this.clearGcTimeout(),G(this,dr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){qe(this,Go,G(this,Go).filter(n=>n!==t)),this.scheduleGc(),G(this,dr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){G(this,Go).length||(this.state.status==="pending"?this.scheduleGc():G(this,dr).remove(this))}continue(){var t;return((t=G(this,ta))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,a,l,u,f,p,h,m,y,H,A,w,x,S,z,O,C,D,k,R;qe(this,ta,o2({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(M,L)=>{zt(this,Uo,si).call(this,{type:"failed",failureCount:M,error:L})},onPause:()=>{zt(this,Uo,si).call(this,{type:"pause"})},onContinue:()=>{zt(this,Uo,si).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>G(this,dr).canRun(this)}));const n=this.state.status==="pending",r=!G(this,ta).canStart();try{if(!n){zt(this,Uo,si).call(this,{type:"pending",variables:t,isPaused:r}),await((a=(s=G(this,dr).config).onMutate)==null?void 0:a.call(s,t,this));const L=await((u=(l=this.options).onMutate)==null?void 0:u.call(l,t));L!==this.state.context&&zt(this,Uo,si).call(this,{type:"pending",context:L,variables:t,isPaused:r})}const M=await G(this,ta).start();return await((p=(f=G(this,dr).config).onSuccess)==null?void 0:p.call(f,M,t,this.state.context,this)),await((m=(h=this.options).onSuccess)==null?void 0:m.call(h,M,t,this.state.context)),await((H=(y=G(this,dr).config).onSettled)==null?void 0:H.call(y,M,null,this.state.variables,this.state.context,this)),await((w=(A=this.options).onSettled)==null?void 0:w.call(A,M,null,t,this.state.context)),zt(this,Uo,si).call(this,{type:"success",data:M}),M}catch(M){try{throw await((S=(x=G(this,dr).config).onError)==null?void 0:S.call(x,M,t,this.state.context,this)),await((O=(z=this.options).onError)==null?void 0:O.call(z,M,t,this.state.context)),await((D=(C=G(this,dr).config).onSettled)==null?void 0:D.call(C,void 0,M,this.state.variables,this.state.context,this)),await((R=(k=this.options).onSettled)==null?void 0:R.call(k,void 0,M,t,this.state.context)),M}finally{zt(this,Uo,si).call(this,{type:"error",error:M})}}finally{G(this,dr).runNext(this)}}},Go=new WeakMap,dr=new WeakMap,ta=new WeakMap,Uo=new WeakSet,si=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),In.batch(()=>{G(this,Go).forEach(r=>{r.onMutationUpdate(t)}),G(this,dr).notify({mutation:this,type:"updated",action:t})})},d0);function a2(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Wr,Lu,p0,c6=(p0=class extends Wl{constructor(t={}){super();gt(this,Wr);gt(this,Lu);this.config=t,qe(this,Wr,new Map),qe(this,Lu,Date.now())}build(t,n,r){const s=new l6({mutationCache:this,mutationId:++pd(this,Lu)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){const n=Hd(t),r=G(this,Wr).get(n)??[];r.push(t),G(this,Wr).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Hd(t);if(G(this,Wr).has(n)){const s=(r=G(this,Wr).get(n))==null?void 0:r.filter(a=>a!==t);s&&(s.length===0?G(this,Wr).delete(n):G(this,Wr).set(n,s))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=G(this,Wr).get(Hd(t)))==null?void 0:r.find(s=>s.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=G(this,Wr).get(Hd(t)))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){In.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...G(this,Wr).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Zx(n,r))}findAll(t={}){return this.getAll().filter(n=>Zx(t,n))}notify(t){In.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return In.batch(()=>Promise.all(t.map(n=>n.continue().catch(io))))}},Wr=new WeakMap,Lu=new WeakMap,p0);function Hd(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Qx(e){return{onFetch:(t,n)=>{var h,m,y,H,A;const r=t.options,s=(y=(m=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:m.fetchMore)==null?void 0:y.direction,a=((H=t.state.data)==null?void 0:H.pages)||[],l=((A=t.state.data)==null?void 0:A.pageParams)||[];let u={pages:[],pageParams:[]},f=0;const p=async()=>{let w=!1;const x=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},S=t2(t.options,t.fetchOptions),z=async(O,C,D)=>{if(w)return Promise.reject();if(C==null&&O.pages.length)return Promise.resolve(O);const k={queryKey:t.queryKey,pageParam:C,direction:D?"backward":"forward",meta:t.options.meta};x(k);const R=await S(k),{maxPages:M}=t.options,L=D?e6:$E;return{pages:L(O.pages,R,M),pageParams:L(O.pageParams,C,M)}};if(s&&a.length){const O=s==="backward",C=O?u6:Kx,D={pages:a,pageParams:l},k=C(r,D);u=await z(D,k,O)}else{const O=e??a.length;do{const C=f===0?l[0]??r.initialPageParam:Kx(r,u);if(f>0&&C==null)break;u=await z(u,C),f++}while(f{var w,x;return(x=(w=t.options).persister)==null?void 0:x.call(w,p,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=p}}}function Kx(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function u6(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Hn,fi,di,gl,yl,pi,Al,Pl,v0,f6=(v0=class{constructor(e={}){gt(this,Hn);gt(this,fi);gt(this,di);gt(this,gl);gt(this,yl);gt(this,pi);gt(this,Al);gt(this,Pl);qe(this,Hn,e.queryCache||new a6),qe(this,fi,e.mutationCache||new c6),qe(this,di,e.defaultOptions||{}),qe(this,gl,new Map),qe(this,yl,new Map),qe(this,pi,0)}mount(){pd(this,pi)._++,G(this,pi)===1&&(qe(this,Al,Wy.subscribe(async e=>{e&&(await this.resumePausedMutations(),G(this,Hn).onFocus())})),qe(this,Pl,mp.subscribe(async e=>{e&&(await this.resumePausedMutations(),G(this,Hn).onOnline())})))}unmount(){var e,t;pd(this,pi)._--,G(this,pi)===0&&((e=G(this,Al))==null||e.call(this),qe(this,Al,void 0),(t=G(this,Pl))==null||t.call(this),qe(this,Pl,void 0))}isFetching(e){return G(this,Hn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return G(this,fi).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=G(this,Hn).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=G(this,Hn).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(ul(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return G(this,Hn).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=G(this,Hn).get(r.queryHash),a=s==null?void 0:s.state.data,l=KE(t,a);if(l!==void 0)return G(this,Hn).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return In.batch(()=>G(this,Hn).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=G(this,Hn).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=G(this,Hn);In.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=G(this,Hn),r={type:"active",...e};return In.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries(r,t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=In.batch(()=>G(this,Hn).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(io).catch(io)}invalidateQueries(e,t={}){return In.batch(()=>{if(G(this,Hn).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const n={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=In.batch(()=>G(this,Hn).findAll(e).filter(s=>!s.isDisabled()).map(s=>{let a=s.fetch(void 0,n);return n.throwOnError||(a=a.catch(io)),s.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(io)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=G(this,Hn).build(this,t);return n.isStaleByTime(ul(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(io).catch(io)}fetchInfiniteQuery(e){return e.behavior=Qx(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(io).catch(io)}ensureInfiniteQueryData(e){return e.behavior=Qx(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return mp.isOnline()?G(this,fi).resumePausedMutations():Promise.resolve()}getQueryCache(){return G(this,Hn)}getMutationCache(){return G(this,fi)}getDefaultOptions(){return G(this,di)}setDefaultOptions(e){qe(this,di,e)}setQueryDefaults(e,t){G(this,gl).set(ha(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...G(this,gl).values()],n={};return t.forEach(r=>{ku(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){G(this,yl).set(ha(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...G(this,yl).values()];let n={};return t.forEach(r=>{ku(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...G(this,di).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Vy(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Iy&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...G(this,di).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){G(this,Hn).clear(),G(this,fi).clear()}},Hn=new WeakMap,fi=new WeakMap,di=new WeakMap,gl=new WeakMap,yl=new WeakMap,pi=new WeakMap,Al=new WeakMap,Pl=new WeakMap,v0),Hr,Bt,Xu,pr,na,bl,vi,Qo,Nu,xl,wl,ra,oa,hi,Hl,Gt,su,zg,Og,Cg,Dg,Tg,kg,Rg,l2,h0,d6=(h0=class extends Wl{constructor(t,n){super();gt(this,Gt);gt(this,Hr);gt(this,Bt);gt(this,Xu);gt(this,pr);gt(this,na);gt(this,bl);gt(this,vi);gt(this,Qo);gt(this,Nu);gt(this,xl);gt(this,wl);gt(this,ra);gt(this,oa);gt(this,hi);gt(this,Hl,new Set);this.options=n,qe(this,Hr,t),qe(this,Qo,null),qe(this,vi,Sg()),this.options.experimental_prefetchInRender||G(this,vi).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(G(this,Bt).addObserver(this),_x(G(this,Bt),this.options)?zt(this,Gt,su).call(this):this.updateResult(),zt(this,Gt,Dg).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Eg(G(this,Bt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Eg(G(this,Bt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,zt(this,Gt,Tg).call(this),zt(this,Gt,kg).call(this),G(this,Bt).removeObserver(this)}setOptions(t,n){const r=this.options,s=G(this,Bt);if(this.options=G(this,Hr).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof To(this.options.enabled,G(this,Bt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");zt(this,Gt,Rg).call(this),G(this,Bt).setOptions(this.options),r._defaulted&&!hp(this.options,r)&&G(this,Hr).getQueryCache().notify({type:"observerOptionsUpdated",query:G(this,Bt),observer:this});const a=this.hasListeners();a&&$x(G(this,Bt),s,this.options,r)&&zt(this,Gt,su).call(this),this.updateResult(n),a&&(G(this,Bt)!==s||To(this.options.enabled,G(this,Bt))!==To(r.enabled,G(this,Bt))||ul(this.options.staleTime,G(this,Bt))!==ul(r.staleTime,G(this,Bt)))&&zt(this,Gt,zg).call(this);const l=zt(this,Gt,Og).call(this);a&&(G(this,Bt)!==s||To(this.options.enabled,G(this,Bt))!==To(r.enabled,G(this,Bt))||l!==G(this,hi))&&zt(this,Gt,Cg).call(this,l)}getOptimisticResult(t){const n=G(this,Hr).getQueryCache().build(G(this,Hr),t),r=this.createResult(n,t);return v6(this,r)&&(qe(this,pr,r),qe(this,bl,this.options),qe(this,na,G(this,Bt).state)),r}getCurrentResult(){return G(this,pr)}trackResult(t,n){const r={};return Object.keys(t).forEach(s=>{Object.defineProperty(r,s,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(s),n==null||n(s),t[s])})}),r}trackProp(t){G(this,Hl).add(t)}getCurrentQuery(){return G(this,Bt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=G(this,Hr).defaultQueryOptions(t),r=G(this,Hr).getQueryCache().build(G(this,Hr),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return zt(this,Gt,su).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),G(this,pr)))}createResult(t,n){var M;const r=G(this,Bt),s=this.options,a=G(this,pr),l=G(this,na),u=G(this,bl),p=t!==r?t.state:G(this,Xu),{state:h}=t;let m={...h},y=!1,H;if(n._optimisticResults){const L=this.hasListeners(),j=!L&&_x(t,n),B=L&&$x(t,r,n,s);(j||B)&&(m={...m,...i2(h.data,t.options)}),n._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:A,errorUpdatedAt:w,status:x}=m;if(n.select&&m.data!==void 0)if(a&&m.data===(l==null?void 0:l.data)&&n.select===G(this,Nu))H=G(this,xl);else try{qe(this,Nu,n.select),H=n.select(m.data),H=jg(a==null?void 0:a.data,H,n),qe(this,xl,H),qe(this,Qo,null)}catch(L){qe(this,Qo,L)}else H=m.data;if(n.placeholderData!==void 0&&H===void 0&&x==="pending"){let L;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData))L=a.data;else if(L=typeof n.placeholderData=="function"?n.placeholderData((M=G(this,wl))==null?void 0:M.state.data,G(this,wl)):n.placeholderData,n.select&&L!==void 0)try{L=n.select(L),qe(this,Qo,null)}catch(j){qe(this,Qo,j)}L!==void 0&&(x="success",H=jg(a==null?void 0:a.data,L,n),y=!0)}G(this,Qo)&&(A=G(this,Qo),H=G(this,xl),w=Date.now(),x="error");const S=m.fetchStatus==="fetching",z=x==="pending",O=x==="error",C=z&&S,D=H!==void 0,R={status:x,fetchStatus:m.fetchStatus,isPending:z,isSuccess:x==="success",isError:O,isInitialLoading:C,isLoading:C,data:H,dataUpdatedAt:m.dataUpdatedAt,error:A,errorUpdatedAt:w,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>p.dataUpdateCount||m.errorUpdateCount>p.errorUpdateCount,isFetching:S,isRefetching:S&&!z,isLoadingError:O&&!D,isPaused:m.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:O&&D,isStale:Jy(t,n),refetch:this.refetch,promise:G(this,vi)};if(this.options.experimental_prefetchInRender){const L=I=>{R.status==="error"?I.reject(R.error):R.data!==void 0&&I.resolve(R.data)},j=()=>{const I=qe(this,vi,R.promise=Sg());L(I)},B=G(this,vi);switch(B.status){case"pending":t.queryHash===r.queryHash&&L(B);break;case"fulfilled":(R.status==="error"||R.data!==B.value)&&j();break;case"rejected":(R.status!=="error"||R.error!==B.reason)&&j();break}}return R}updateResult(t){const n=G(this,pr),r=this.createResult(G(this,Bt),this.options);if(qe(this,na,G(this,Bt).state),qe(this,bl,this.options),G(this,na).data!==void 0&&qe(this,wl,G(this,Bt)),hp(r,n))return;qe(this,pr,r);const s={},a=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,u=typeof l=="function"?l():l;if(u==="all"||!u&&!G(this,Hl).size)return!0;const f=new Set(u??G(this,Hl));return this.options.throwOnError&&f.add("error"),Object.keys(G(this,pr)).some(p=>{const h=p;return G(this,pr)[h]!==n[h]&&f.has(h)})};(t==null?void 0:t.listeners)!==!1&&a()&&(s.listeners=!0),zt(this,Gt,l2).call(this,{...s,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&zt(this,Gt,Dg).call(this)}},Hr=new WeakMap,Bt=new WeakMap,Xu=new WeakMap,pr=new WeakMap,na=new WeakMap,bl=new WeakMap,vi=new WeakMap,Qo=new WeakMap,Nu=new WeakMap,xl=new WeakMap,wl=new WeakMap,ra=new WeakMap,oa=new WeakMap,hi=new WeakMap,Hl=new WeakMap,Gt=new WeakSet,su=function(t){zt(this,Gt,Rg).call(this);let n=G(this,Bt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(io)),n},zg=function(){zt(this,Gt,Tg).call(this);const t=ul(this.options.staleTime,G(this,Bt));if(va||G(this,pr).isStale||!wg(t))return;const r=$1(G(this,pr).dataUpdatedAt,t)+1;qe(this,ra,setTimeout(()=>{G(this,pr).isStale||this.updateResult()},r))},Og=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(G(this,Bt)):this.options.refetchInterval)??!1},Cg=function(t){zt(this,Gt,kg).call(this),qe(this,hi,t),!(va||To(this.options.enabled,G(this,Bt))===!1||!wg(G(this,hi))||G(this,hi)===0)&&qe(this,oa,setInterval(()=>{(this.options.refetchIntervalInBackground||Wy.isFocused())&&zt(this,Gt,su).call(this)},G(this,hi)))},Dg=function(){zt(this,Gt,zg).call(this),zt(this,Gt,Cg).call(this,zt(this,Gt,Og).call(this))},Tg=function(){G(this,ra)&&(clearTimeout(G(this,ra)),qe(this,ra,void 0))},kg=function(){G(this,oa)&&(clearInterval(G(this,oa)),qe(this,oa,void 0))},Rg=function(){const t=G(this,Hr).getQueryCache().build(G(this,Hr),this.options);if(t===G(this,Bt))return;const n=G(this,Bt);qe(this,Bt,t),qe(this,Xu,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},l2=function(t){In.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(G(this,pr))}),G(this,Hr).getQueryCache().notify({query:G(this,Bt),type:"observerResultsUpdated"})})},h0);function p6(e,t){return To(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function _x(e,t){return p6(e,t)||e.state.data!==void 0&&Eg(e,t,t.refetchOnMount)}function Eg(e,t,n){if(To(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Jy(e,t)}return!1}function $x(e,t,n,r){return(e!==t||To(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Jy(e,n)}function Jy(e,t){return To(t.enabled,e)!==!1&&e.isStaleByTime(ul(t.staleTime,e))}function v6(e,t){return!hp(e.getCurrentResult(),t)}var mi,gi,jr,zs,Ts,Jd,Mg,m0,h6=(m0=class extends Wl{constructor(n,r){super();gt(this,Ts);gt(this,mi);gt(this,gi);gt(this,jr);gt(this,zs);qe(this,mi,n),this.setOptions(r),this.bindMethods(),zt(this,Ts,Jd).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const r=this.options;this.options=G(this,mi).defaultMutationOptions(n),hp(this.options,r)||G(this,mi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:G(this,jr),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&ha(r.mutationKey)!==ha(this.options.mutationKey)?this.reset():((s=G(this,jr))==null?void 0:s.state.status)==="pending"&&G(this,jr).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=G(this,jr))==null||n.removeObserver(this)}onMutationUpdate(n){zt(this,Ts,Jd).call(this),zt(this,Ts,Mg).call(this,n)}getCurrentResult(){return G(this,gi)}reset(){var n;(n=G(this,jr))==null||n.removeObserver(this),qe(this,jr,void 0),zt(this,Ts,Jd).call(this),zt(this,Ts,Mg).call(this)}mutate(n,r){var s;return qe(this,zs,r),(s=G(this,jr))==null||s.removeObserver(this),qe(this,jr,G(this,mi).getMutationCache().build(G(this,mi),this.options)),G(this,jr).addObserver(this),G(this,jr).execute(n)}},mi=new WeakMap,gi=new WeakMap,jr=new WeakMap,zs=new WeakMap,Ts=new WeakSet,Jd=function(){var r;const n=((r=G(this,jr))==null?void 0:r.state)??a2();qe(this,gi,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Mg=function(n){In.batch(()=>{var r,s,a,l,u,f,p,h;if(G(this,zs)&&this.hasListeners()){const m=G(this,gi).variables,y=G(this,gi).context;(n==null?void 0:n.type)==="success"?((s=(r=G(this,zs)).onSuccess)==null||s.call(r,n.data,m,y),(l=(a=G(this,zs)).onSettled)==null||l.call(a,n.data,null,m,y)):(n==null?void 0:n.type)==="error"&&((f=(u=G(this,zs)).onError)==null||f.call(u,n.error,m,y),(h=(p=G(this,zs)).onSettled)==null||h.call(p,void 0,n.error,m,y))}this.listeners.forEach(m=>{m(G(this,gi))})})},m0),c2=P.createContext(void 0),rv=e=>{const t=P.useContext(c2);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},m6=({client:e,children:t})=>(P.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(c2.Provider,{value:e,children:t})),u2=P.createContext(!1),g6=()=>P.useContext(u2);u2.Provider;function y6(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var A6=P.createContext(y6()),P6=()=>P.useContext(A6);function f2(e,t){return typeof e=="function"?e(...t):!!e}function Lg(){}var b6=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},x6=e=>{P.useEffect(()=>{e.clearReset()},[e])},w6=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&f2(n,[e.error,r]),H6=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},j6=(e,t)=>e.isLoading&&e.isFetching&&!t,S6=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ew=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function z6(e,t,n){var h,m,y,H,A;const r=rv(),s=g6(),a=P6(),l=r.defaultQueryOptions(e);(m=(h=r.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||m.call(h,l),l._optimisticResults=s?"isRestoring":"optimistic",H6(l),b6(l,a),x6(a);const u=!r.getQueryCache().get(l.queryHash),[f]=P.useState(()=>new t(r,l)),p=f.getOptimisticResult(l);if(P.useSyncExternalStore(P.useCallback(w=>{const x=s?Lg:f.subscribe(In.batchCalls(w));return f.updateResult(),x},[f,s]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),P.useEffect(()=>{f.setOptions(l,{listeners:!1})},[l,f]),S6(l,p))throw ew(l,f,a);if(w6({result:p,errorResetBoundary:a,throwOnError:l.throwOnError,query:r.getQueryCache().get(l.queryHash)}))throw p.error;if((H=(y=r.getDefaultOptions().queries)==null?void 0:y._experimental_afterQuery)==null||H.call(y,l,p),l.experimental_prefetchInRender&&!va&&j6(p,s)){const w=u?ew(l,f,a):(A=r.getQueryCache().get(l.queryHash))==null?void 0:A.promise;w==null||w.catch(Lg).finally(()=>{f.updateResult()})}return l.notifyOnChangeProps?p:f.trackResult(p)}function _n(e,t){return z6(e,d6)}function Ml(e,t){const n=rv(),[r]=P.useState(()=>new h6(n,e));P.useEffect(()=>{r.setOptions(e)},[r,e]);const s=P.useSyncExternalStore(P.useCallback(l=>r.subscribe(In.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=P.useCallback((l,u)=>{r.mutate(l,u).catch(Lg)},[r]);if(s.error&&f2(r.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:a,mutateAsync:s.mutate}}var jd={},tw;function O6(){if(tw)return jd;tw=1;var e=d1();return jd.createRoot=e.createRoot,jd.hydrateRoot=e.hydrateRoot,jd}var C6=O6();const D6=Op(C6);var Vc={},nw;function T6(){if(nw)return Vc;nw=1,Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.parse=l,Vc.serialize=p;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,s=Object.prototype.toString,a=(()=>{const y=function(){};return y.prototype=Object.create(null),y})();function l(y,H){const A=new a,w=y.length;if(w<2)return A;const x=(H==null?void 0:H.decode)||h;let S=0;do{const z=y.indexOf("=",S);if(z===-1)break;const O=y.indexOf(";",S),C=O===-1?w:O;if(z>C){S=y.lastIndexOf(";",z-1)+1;continue}const D=u(y,S,z),k=f(y,z,D),R=y.slice(D,k);if(A[R]===void 0){let M=u(y,z+1,C),L=f(y,C,M);const j=x(y.slice(M,L));A[R]=j}S=C+1}while(SA;){const w=y.charCodeAt(--H);if(w!==32&&w!==9)return H+1}return A}function p(y,H,A){const w=(A==null?void 0:A.encode)||encodeURIComponent;if(!e.test(y))throw new TypeError(`argument name is invalid: ${y}`);const x=w(H);if(!t.test(x))throw new TypeError(`argument val is invalid: ${H}`);let S=y+"="+x;if(!A)return S;if(A.maxAge!==void 0){if(!Number.isInteger(A.maxAge))throw new TypeError(`option maxAge is invalid: ${A.maxAge}`);S+="; Max-Age="+A.maxAge}if(A.domain){if(!n.test(A.domain))throw new TypeError(`option domain is invalid: ${A.domain}`);S+="; Domain="+A.domain}if(A.path){if(!r.test(A.path))throw new TypeError(`option path is invalid: ${A.path}`);S+="; Path="+A.path}if(A.expires){if(!m(A.expires)||!Number.isFinite(A.expires.valueOf()))throw new TypeError(`option expires is invalid: ${A.expires}`);S+="; Expires="+A.expires.toUTCString()}if(A.httpOnly&&(S+="; HttpOnly"),A.secure&&(S+="; Secure"),A.partitioned&&(S+="; Partitioned"),A.priority)switch(typeof A.priority=="string"?A.priority.toLowerCase():void 0){case"low":S+="; Priority=Low";break;case"medium":S+="; Priority=Medium";break;case"high":S+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${A.priority}`)}if(A.sameSite)switch(typeof A.sameSite=="string"?A.sameSite.toLowerCase():A.sameSite){case!0:case"strict":S+="; SameSite=Strict";break;case"lax":S+="; SameSite=Lax";break;case"none":S+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${A.sameSite}`)}return S}function h(y){if(y.indexOf("%")===-1)return y;try{return decodeURIComponent(y)}catch{return y}}function m(y){return s.call(y)==="[object Date]"}return Vc}T6();/** * react-router v7.0.2 * * Copyright (c) Remix Software Inc. @@ -204,17 +204,17 @@ Error generating stack: `+b.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */var rw="popstate";function k6(e={}){function t(r,s){let{pathname:a,search:l,hash:u}=r.location;return Lg("",{pathname:a,search:l,hash:u},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Ru(s)}return E6(t,n,null,e)}function yn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Lo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function R6(){return Math.random().toString(36).substring(2,10)}function ow(e,t){return{usr:e.state,key:e.key,idx:t}}function Lg(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Jl(t):t,state:n,key:t&&t.key||r||R6()}}function Ru({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Jl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function E6(e,t,n,r={}){let{window:s=document.defaultView,v5Compat:a=!1}=r,l=s.history,u="POP",f=null,p=h();p==null&&(p=0,l.replaceState({...l.state,idx:p},""));function h(){return(l.state||{idx:null}).idx}function m(){u="POP";let x=h(),S=x==null?null:x-p;p=x,f&&f({action:u,location:w.location,delta:S})}function y(x,S){u="PUSH";let z=Lg(w.location,x,S);p=h()+1;let O=ow(z,p),C=w.createHref(z);try{l.pushState(O,"",C)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;s.location.assign(C)}a&&f&&f({action:u,location:w.location,delta:1})}function H(x,S){u="REPLACE";let z=Lg(w.location,x,S);p=h();let O=ow(z,p),C=w.createHref(z);l.replaceState(O,"",C),a&&f&&f({action:u,location:w.location,delta:0})}function A(x){let S=s.location.origin!=="null"?s.location.origin:s.location.href,z=typeof x=="string"?x:Ru(x);return z=z.replace(/ $/,"%20"),yn(S,`No window.location.(origin|href) available to create URL for href: ${z}`),new URL(z,S)}let w={get action(){return u},get location(){return e(s,l)},listen(x){if(f)throw new Error("A history only accepts one active listener");return s.addEventListener(rw,m),f=x,()=>{s.removeEventListener(rw,m),f=null}},createHref(x){return t(s,x)},createURL:A,encodeLocation(x){let S=A(x);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:y,replace:H,go(x){return l.go(x)}};return w}function f2(e,t,n="/"){return M6(e,t,n,!1)}function M6(e,t,n,r){let s=typeof t=="string"?Jl(t):t,a=bi(s.pathname||"/",n);if(a==null)return null;let l=d2(e);L6(l);let u=null;for(let f=0;u==null&&f{let f={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:l,route:a};f.relativePath.startsWith("/")&&(yn(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length));let p=Ds([r,f.relativePath]),h=n.concat(f);a.children&&a.children.length>0&&(yn(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),d2(a.children,t,h,p)),!(a.path==null&&!a.index)&&t.push({path:p,score:J6(p,a.index),routesMeta:h})};return e.forEach((a,l)=>{var u;if(a.path===""||!((u=a.path)!=null&&u.includes("?")))s(a,l);else for(let f of p2(a.path))s(a,l,f)}),t}function p2(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return s?[a,""]:[a];let l=p2(r.join("/")),u=[];return u.push(...l.map(f=>f===""?a:[a,f].join("/"))),s&&u.push(...l),u.map(f=>e.startsWith("/")&&f===""?"/":f)}function L6(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:F6(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var X6=/^:[\w-]+$/,N6=3,B6=2,V6=1,I6=10,W6=-2,sw=e=>e==="*";function J6(e,t){let n=e.split("/"),r=n.length;return n.some(sw)&&(r+=W6),t&&(r+=B6),n.filter(s=>!sw(s)).reduce((s,a)=>s+(X6.test(a)?N6:a===""?V6:I6),r)}function F6(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function Y6(e,t,n=!1){let{routesMeta:r}=e,s={},a="/",l=[];for(let u=0;u{if(h==="*"){let A=u[y]||"";l=a.slice(0,a.length-A.length).replace(/(.)\/+$/,"$1")}const H=u[y];return m&&!H?p[h]=void 0:p[h]=(H||"").replace(/%2F/g,"/"),p},{}),pathname:a,pathnameBase:l,pattern:e}}function q6(e,t=!1,n=!0){Lo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,f)=>(r.push({paramName:u,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function Z6(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Lo(!1,`The URL path "${e}" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function bi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function G6(e,t="/"){let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Jl(e):e;return{pathname:n?n.startsWith("/")?n:U6(n,t):t,search:_6(r),hash:$6(s)}}function U6(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Lm(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Q6(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function v2(e){let t=Q6(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function h2(e,t,n,r=!1){let s;typeof e=="string"?s=Jl(e):(s={...e},yn(!s.pathname||!s.pathname.includes("?"),Lm("?","pathname","search",s)),yn(!s.pathname||!s.pathname.includes("#"),Lm("#","pathname","hash",s)),yn(!s.search||!s.search.includes("#"),Lm("#","search","hash",s)));let a=e===""||s.pathname==="",l=a?"/":s.pathname,u;if(l==null)u=n;else{let m=t.length-1;if(!r&&l.startsWith("..")){let y=l.split("/");for(;y[0]==="..";)y.shift(),m-=1;s.pathname=y.join("/")}u=m>=0?t[m]:"/"}let f=G6(s,u),p=l&&l!=="/"&&l.endsWith("/"),h=(a||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(p||h)&&(f.pathname+="/"),f}var Ds=e=>e.join("/").replace(/\/\/+/g,"/"),K6=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_6=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$6=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function eM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var m2=["POST","PUT","PATCH","DELETE"];new Set(m2);var tM=["GET",...m2];new Set(tM);var Fl=P.createContext(null);Fl.displayName="DataRouter";var rv=P.createContext(null);rv.displayName="DataRouterState";var g2=P.createContext({isTransitioning:!1});g2.displayName="ViewTransition";var nM=P.createContext(new Map);nM.displayName="Fetchers";var rM=P.createContext(null);rM.displayName="Await";var ls=P.createContext(null);ls.displayName="Navigation";var Uu=P.createContext(null);Uu.displayName="Location";var Ms=P.createContext({outlet:null,matches:[],isDataRoute:!1});Ms.displayName="Route";var Fy=P.createContext(null);Fy.displayName="RouteError";function oM(e,{relative:t}={}){yn(Qu(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=P.useContext(ls),{hash:s,pathname:a,search:l}=Ku(e,{relative:t}),u=a;return n!=="/"&&(u=a==="/"?n:Ds([n,a])),r.createHref({pathname:u,search:l,hash:s})}function Qu(){return P.useContext(Uu)!=null}function ji(){return yn(Qu(),"useLocation() may be used only in the context of a component."),P.useContext(Uu).location}var y2="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function A2(e){P.useContext(ls).static||P.useLayoutEffect(e)}function ov(){let{isDataRoute:e}=P.useContext(Ms);return e?gM():sM()}function sM(){yn(Qu(),"useNavigate() may be used only in the context of a component.");let e=P.useContext(Fl),{basename:t,navigator:n}=P.useContext(ls),{matches:r}=P.useContext(Ms),{pathname:s}=ji(),a=JSON.stringify(v2(r)),l=P.useRef(!1);return A2(()=>{l.current=!0}),P.useCallback((f,p={})=>{if(Lo(l.current,y2),!l.current)return;if(typeof f=="number"){n.go(f);return}let h=h2(f,JSON.parse(a),s,p.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Ds([t,h.pathname])),(p.replace?n.replace:n.push)(h,p.state,p)},[t,n,a,s,e])}P.createContext(null);function Ku(e,{relative:t}={}){let{matches:n}=P.useContext(Ms),{pathname:r}=ji(),s=JSON.stringify(v2(n));return P.useMemo(()=>h2(e,JSON.parse(s),r,t==="path"),[e,s,r,t])}function iM(e,t){return P2(e,t)}function P2(e,t,n,r){var S;yn(Qu(),"useRoutes() may be used only in the context of a component.");let{navigator:s}=P.useContext(ls),{matches:a}=P.useContext(Ms),l=a[a.length-1],u=l?l.params:{},f=l?l.pathname:"/",p=l?l.pathnameBase:"/",h=l&&l.route;{let z=h&&h.path||"";b2(f,!h||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${f}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. + */var rw="popstate";function k6(e={}){function t(r,s){let{pathname:a,search:l,hash:u}=r.location;return Xg("",{pathname:a,search:l,hash:u},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Ru(s)}return E6(t,n,null,e)}function yn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Lo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function R6(){return Math.random().toString(36).substring(2,10)}function ow(e,t){return{usr:e.state,key:e.key,idx:t}}function Xg(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Jl(t):t,state:n,key:t&&t.key||r||R6()}}function Ru({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Jl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function E6(e,t,n,r={}){let{window:s=document.defaultView,v5Compat:a=!1}=r,l=s.history,u="POP",f=null,p=h();p==null&&(p=0,l.replaceState({...l.state,idx:p},""));function h(){return(l.state||{idx:null}).idx}function m(){u="POP";let x=h(),S=x==null?null:x-p;p=x,f&&f({action:u,location:w.location,delta:S})}function y(x,S){u="PUSH";let z=Xg(w.location,x,S);p=h()+1;let O=ow(z,p),C=w.createHref(z);try{l.pushState(O,"",C)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;s.location.assign(C)}a&&f&&f({action:u,location:w.location,delta:1})}function H(x,S){u="REPLACE";let z=Xg(w.location,x,S);p=h();let O=ow(z,p),C=w.createHref(z);l.replaceState(O,"",C),a&&f&&f({action:u,location:w.location,delta:0})}function A(x){let S=s.location.origin!=="null"?s.location.origin:s.location.href,z=typeof x=="string"?x:Ru(x);return z=z.replace(/ $/,"%20"),yn(S,`No window.location.(origin|href) available to create URL for href: ${z}`),new URL(z,S)}let w={get action(){return u},get location(){return e(s,l)},listen(x){if(f)throw new Error("A history only accepts one active listener");return s.addEventListener(rw,m),f=x,()=>{s.removeEventListener(rw,m),f=null}},createHref(x){return t(s,x)},createURL:A,encodeLocation(x){let S=A(x);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:y,replace:H,go(x){return l.go(x)}};return w}function d2(e,t,n="/"){return M6(e,t,n,!1)}function M6(e,t,n,r){let s=typeof t=="string"?Jl(t):t,a=bi(s.pathname||"/",n);if(a==null)return null;let l=p2(e);L6(l);let u=null;for(let f=0;u==null&&f{let f={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:l,route:a};f.relativePath.startsWith("/")&&(yn(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length));let p=Ds([r,f.relativePath]),h=n.concat(f);a.children&&a.children.length>0&&(yn(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),p2(a.children,t,h,p)),!(a.path==null&&!a.index)&&t.push({path:p,score:J6(p,a.index),routesMeta:h})};return e.forEach((a,l)=>{var u;if(a.path===""||!((u=a.path)!=null&&u.includes("?")))s(a,l);else for(let f of v2(a.path))s(a,l,f)}),t}function v2(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return s?[a,""]:[a];let l=v2(r.join("/")),u=[];return u.push(...l.map(f=>f===""?a:[a,f].join("/"))),s&&u.push(...l),u.map(f=>e.startsWith("/")&&f===""?"/":f)}function L6(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:F6(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var X6=/^:[\w-]+$/,N6=3,B6=2,V6=1,I6=10,W6=-2,sw=e=>e==="*";function J6(e,t){let n=e.split("/"),r=n.length;return n.some(sw)&&(r+=W6),t&&(r+=B6),n.filter(s=>!sw(s)).reduce((s,a)=>s+(X6.test(a)?N6:a===""?V6:I6),r)}function F6(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function Y6(e,t,n=!1){let{routesMeta:r}=e,s={},a="/",l=[];for(let u=0;u{if(h==="*"){let A=u[y]||"";l=a.slice(0,a.length-A.length).replace(/(.)\/+$/,"$1")}const H=u[y];return m&&!H?p[h]=void 0:p[h]=(H||"").replace(/%2F/g,"/"),p},{}),pathname:a,pathnameBase:l,pattern:e}}function q6(e,t=!1,n=!0){Lo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,f)=>(r.push({paramName:u,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function Z6(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Lo(!1,`The URL path "${e}" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function bi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function G6(e,t="/"){let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Jl(e):e;return{pathname:n?n.startsWith("/")?n:U6(n,t):t,search:_6(r),hash:$6(s)}}function U6(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Xm(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Q6(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function h2(e){let t=Q6(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function m2(e,t,n,r=!1){let s;typeof e=="string"?s=Jl(e):(s={...e},yn(!s.pathname||!s.pathname.includes("?"),Xm("?","pathname","search",s)),yn(!s.pathname||!s.pathname.includes("#"),Xm("#","pathname","hash",s)),yn(!s.search||!s.search.includes("#"),Xm("#","search","hash",s)));let a=e===""||s.pathname==="",l=a?"/":s.pathname,u;if(l==null)u=n;else{let m=t.length-1;if(!r&&l.startsWith("..")){let y=l.split("/");for(;y[0]==="..";)y.shift(),m-=1;s.pathname=y.join("/")}u=m>=0?t[m]:"/"}let f=G6(s,u),p=l&&l!=="/"&&l.endsWith("/"),h=(a||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(p||h)&&(f.pathname+="/"),f}var Ds=e=>e.join("/").replace(/\/\/+/g,"/"),K6=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_6=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$6=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function eM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var g2=["POST","PUT","PATCH","DELETE"];new Set(g2);var tM=["GET",...g2];new Set(tM);var Fl=P.createContext(null);Fl.displayName="DataRouter";var ov=P.createContext(null);ov.displayName="DataRouterState";var y2=P.createContext({isTransitioning:!1});y2.displayName="ViewTransition";var nM=P.createContext(new Map);nM.displayName="Fetchers";var rM=P.createContext(null);rM.displayName="Await";var ls=P.createContext(null);ls.displayName="Navigation";var Uu=P.createContext(null);Uu.displayName="Location";var Ms=P.createContext({outlet:null,matches:[],isDataRoute:!1});Ms.displayName="Route";var Fy=P.createContext(null);Fy.displayName="RouteError";function oM(e,{relative:t}={}){yn(Qu(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=P.useContext(ls),{hash:s,pathname:a,search:l}=Ku(e,{relative:t}),u=a;return n!=="/"&&(u=a==="/"?n:Ds([n,a])),r.createHref({pathname:u,search:l,hash:s})}function Qu(){return P.useContext(Uu)!=null}function ji(){return yn(Qu(),"useLocation() may be used only in the context of a component."),P.useContext(Uu).location}var A2="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function P2(e){P.useContext(ls).static||P.useLayoutEffect(e)}function sv(){let{isDataRoute:e}=P.useContext(Ms);return e?gM():sM()}function sM(){yn(Qu(),"useNavigate() may be used only in the context of a component.");let e=P.useContext(Fl),{basename:t,navigator:n}=P.useContext(ls),{matches:r}=P.useContext(Ms),{pathname:s}=ji(),a=JSON.stringify(h2(r)),l=P.useRef(!1);return P2(()=>{l.current=!0}),P.useCallback((f,p={})=>{if(Lo(l.current,A2),!l.current)return;if(typeof f=="number"){n.go(f);return}let h=m2(f,JSON.parse(a),s,p.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Ds([t,h.pathname])),(p.replace?n.replace:n.push)(h,p.state,p)},[t,n,a,s,e])}P.createContext(null);function Ku(e,{relative:t}={}){let{matches:n}=P.useContext(Ms),{pathname:r}=ji(),s=JSON.stringify(h2(n));return P.useMemo(()=>m2(e,JSON.parse(s),r,t==="path"),[e,s,r,t])}function iM(e,t){return b2(e,t)}function b2(e,t,n,r){var S;yn(Qu(),"useRoutes() may be used only in the context of a component.");let{navigator:s}=P.useContext(ls),{matches:a}=P.useContext(Ms),l=a[a.length-1],u=l?l.params:{},f=l?l.pathname:"/",p=l?l.pathnameBase:"/",h=l&&l.route;{let z=h&&h.path||"";x2(f,!h||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${f}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. -Please change the parent to .`)}let m=ji(),y;if(t){let z=typeof t=="string"?Jl(t):t;yn(p==="/"||((S=z.pathname)==null?void 0:S.startsWith(p)),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${z.pathname}" was given in the \`location\` prop.`),y=z}else y=m;let H=y.pathname||"/",A=H;if(p!=="/"){let z=p.replace(/^\//,"").split("/");A="/"+H.replace(/^\//,"").split("/").slice(z.length).join("/")}let w=f2(e,{pathname:A});Lo(h||w!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Lo(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let x=fM(w&&w.map(z=>Object.assign({},z,{params:Object.assign({},u,z.params),pathname:Ds([p,s.encodeLocation?s.encodeLocation(z.pathname).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?p:Ds([p,s.encodeLocation?s.encodeLocation(z.pathnameBase).pathname:z.pathnameBase])})),a,n,r);return t&&x?P.createElement(Uu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},x):x}function aM(){let e=mM(),t=eM(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=P.createElement(P.Fragment,null,P.createElement("p",null,"💿 Hey developer 👋"),P.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",P.createElement("code",{style:a},"ErrorBoundary")," or"," ",P.createElement("code",{style:a},"errorElement")," prop on your route.")),P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:s},n):null,l)}var lM=P.createElement(aM,null),cM=class extends P.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?P.createElement(Ms.Provider,{value:this.props.routeContext},P.createElement(Fy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function uM({routeContext:e,match:t,children:n}){let r=P.useContext(Fl);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),P.createElement(Ms.Provider,{value:e},n)}function fM(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=n==null?void 0:n.errors;if(a!=null){let f=s.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);yn(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),s=s.slice(0,Math.min(s.length,f+1))}let l=!1,u=-1;if(n)for(let f=0;f=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((f,p,h)=>{let m,y=!1,H=null,A=null;n&&(m=a&&p.route.id?a[p.route.id]:void 0,H=p.route.errorElement||lM,l&&(u<0&&h===0?(b2("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,A=null):u===h&&(y=!0,A=p.route.hydrateFallbackElement||null)));let w=t.concat(s.slice(0,h+1)),x=()=>{let S;return m?S=H:y?S=A:p.route.Component?S=P.createElement(p.route.Component,null):p.route.element?S=p.route.element:S=f,P.createElement(uM,{match:p,routeContext:{outlet:f,matches:w,isDataRoute:n!=null},children:S})};return n&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?P.createElement(cM,{location:n.location,revalidation:n.revalidation,component:H,error:m,children:x(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):x()},null)}function Yy(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dM(e){let t=P.useContext(Fl);return yn(t,Yy(e)),t}function pM(e){let t=P.useContext(rv);return yn(t,Yy(e)),t}function vM(e){let t=P.useContext(Ms);return yn(t,Yy(e)),t}function qy(e){let t=vM(e),n=t.matches[t.matches.length-1];return yn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function hM(){return qy("useRouteId")}function mM(){var r;let e=P.useContext(Fy),t=pM("useRouteError"),n=qy("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function gM(){let{router:e}=dM("useNavigate"),t=qy("useNavigate"),n=P.useRef(!1);return A2(()=>{n.current=!0}),P.useCallback(async(s,a={})=>{Lo(n.current,y2),n.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:t,...a}))},[e,t])}var iw={};function b2(e,t,n){!t&&!iw[e]&&(iw[e]=!0,Lo(!1,n))}P.memo(yM);function yM({routes:e,future:t,state:n}){return P2(e,void 0,n,t)}function Ss(e){yn(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function AM({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:s,static:a=!1}){yn(!Qu(),"You cannot render a inside another . You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),u=P.useMemo(()=>({basename:l,navigator:s,static:a,future:{}}),[l,s,a]);typeof n=="string"&&(n=Jl(n));let{pathname:f="/",search:p="",hash:h="",state:m=null,key:y="default"}=n,H=P.useMemo(()=>{let A=bi(f,l);return A==null?null:{location:{pathname:A,search:p,hash:h,state:m,key:y},navigationType:r}},[l,f,p,h,m,y,r]);return Lo(H!=null,` is not able to match the URL "${f}${p}${h}" because it does not start with the basename, so the won't render anything.`),H==null?null:P.createElement(ls.Provider,{value:u},P.createElement(Uu.Provider,{children:t,value:H}))}function PM({children:e,location:t}){return iM(Xg(e),t)}function Xg(e,t=[]){let n=[];return P.Children.forEach(e,(r,s)=>{if(!P.isValidElement(r))return;let a=[...t,s];if(r.type===P.Fragment){n.push.apply(n,Xg(r.props.children,a));return}yn(r.type===Ss,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),yn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=Xg(r.props.children,a)),n.push(l)}),n}var Fd="get",Yd="application/x-www-form-urlencoded";function sv(e){return e!=null&&typeof e.tagName=="string"}function bM(e){return sv(e)&&e.tagName.toLowerCase()==="button"}function xM(e){return sv(e)&&e.tagName.toLowerCase()==="form"}function wM(e){return sv(e)&&e.tagName.toLowerCase()==="input"}function HM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function jM(e,t){return e.button===0&&(!t||t==="_self")&&!HM(e)}function Ng(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function SM(e,t){let n=Ng(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(a=>{n.append(s,a)})}),n}var Sd=null;function zM(){if(Sd===null)try{new FormData(document.createElement("form"),0),Sd=!1}catch{Sd=!0}return Sd}var OM=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Xm(e){return e!=null&&!OM.has(e)?(Lo(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Yd}"`),null):e}function CM(e,t){let n,r,s,a,l;if(xM(e)){let u=e.getAttribute("action");r=u?bi(u,t):null,n=e.getAttribute("method")||Fd,s=Xm(e.getAttribute("enctype"))||Yd,a=new FormData(e)}else if(bM(e)||wM(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a