diff --git a/wger/core/static/react/main.js b/wger/core/static/react/main.js index a583a019c..48b0eb105 100644 --- a/wger/core/static/react/main.js +++ b/wger/core/static/react/main.js @@ -1,4 +1,4 @@ -var yye=Object.defineProperty;var E3=e=>{throw TypeError(e)};var vye=(e,t,n)=>t in e?yye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Pe=(e,t,n)=>vye(e,typeof t!="symbol"?t+"":t,n),sR=(e,t,n)=>t.has(e)||E3("Cannot "+n);var be=(e,t,n)=>(sR(e,t,"read from private field"),n?n.call(e):t.get(e)),Yt=(e,t,n)=>t.has(e)?E3("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),_t=(e,t,n,r)=>(sR(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),An=(e,t,n)=>(sR(e,t,"access private method"),n);var u1=(e,t,n,r)=>({set _(o){_t(e,t,o,n)},get _(){return be(e,t,r)}});function bye(e,t){for(var n=0;nr[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var d1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lR={exports:{}},Hb={};/** +var vye=Object.defineProperty;var T3=e=>{throw TypeError(e)};var bye=(e,t,n)=>t in e?vye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ce=(e,t,n)=>bye(e,typeof t!="symbol"?t+"":t,n),cR=(e,t,n)=>t.has(e)||T3("Cannot "+n);var be=(e,t,n)=>(cR(e,t,"read from private field"),n?n.call(e):t.get(e)),Yt=(e,t,n)=>t.has(e)?T3("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),_t=(e,t,n,r)=>(cR(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),An=(e,t,n)=>(cR(e,t,"access private method"),n);var d1=(e,t,n,r)=>({set _(o){_t(e,t,o,n)},get _(){return be(e,t,r)}});function xye(e,t){for(var n=0;nr[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var f1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uR={exports:{}},Gb={};/** * @license React * react-jsx-runtime.production.js * @@ -6,7 +6,7 @@ var yye=Object.defineProperty;var E3=e=>{throw TypeError(e)};var vye=(e,t,n)=>t * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var T3;function xye(){if(T3)return Hb;T3=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var a=null;if(i!==void 0&&(a=""+i),o.key!==void 0&&(a=""+o.key),"key"in o){i={};for(var s in o)s!=="key"&&(i[s]=o[s])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:i}}return Hb.Fragment=t,Hb.jsx=n,Hb.jsxs=n,Hb}var O3;function Sye(){return O3||(O3=1,lR.exports=xye()),lR.exports}var k=Sye(),cR={exports:{}},En={};/** + */var O3;function Sye(){if(O3)return Gb;O3=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var a=null;if(i!==void 0&&(a=""+i),o.key!==void 0&&(a=""+o.key),"key"in o){i={};for(var s in o)s!=="key"&&(i[s]=o[s])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:i}}return Gb.Fragment=t,Gb.jsx=n,Gb.jsxs=n,Gb}var I3;function wye(){return I3||(I3=1,uR.exports=Sye()),uR.exports}var k=wye(),dR={exports:{}},En={};/** * @license React * react.production.js * @@ -14,14 +14,14 @@ var yye=Object.defineProperty;var E3=e=>{throw TypeError(e)};var vye=(e,t,n)=>t * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var I3;function wye(){if(I3)return En;I3=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),f=Symbol.iterator;function h(G){return G===null||typeof G!="object"?null:(G=f&&G[f]||G["@@iterator"],typeof G=="function"?G:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function v(G,q,Y){this.props=G,this.context=q,this.refs=y,this.updater=Y||m}v.prototype.isReactComponent={},v.prototype.setState=function(G,q){if(typeof G!="object"&&typeof G!="function"&&G!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,G,q,"setState")},v.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function w(){}w.prototype=v.prototype;function C(G,q,Y){this.props=G,this.context=q,this.refs=y,this.updater=Y||m}var E=C.prototype=new w;E.constructor=C,g(E,v.prototype),E.isPureReactComponent=!0;var I=Array.isArray,O={H:null,A:null,T:null,S:null,V:null},P=Object.prototype.hasOwnProperty;function R(G,q,Y,J,ie,se){return Y=se.ref,{$$typeof:e,type:G,key:q,ref:Y!==void 0?Y:null,props:se}}function D(G,q){return R(G.type,q,void 0,void 0,void 0,G.props)}function M(G){return typeof G=="object"&&G!==null&&G.$$typeof===e}function A(G){var q={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(Y){return q[Y]})}var _=/\/+/g;function N(G,q){return typeof G=="object"&&G!==null&&G.key!=null?A(""+G.key):q.toString(36)}function B(){}function H(G){switch(G.status){case"fulfilled":return G.value;case"rejected":throw G.reason;default:switch(typeof G.status=="string"?G.then(B,B):(G.status="pending",G.then(function(q){G.status==="pending"&&(G.status="fulfilled",G.value=q)},function(q){G.status==="pending"&&(G.status="rejected",G.reason=q)})),G.status){case"fulfilled":return G.value;case"rejected":throw G.reason}}throw G}function j(G,q,Y,J,ie){var se=typeof G;(se==="undefined"||se==="boolean")&&(G=null);var ce=!1;if(G===null)ce=!0;else switch(se){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(G.$$typeof){case e:case t:ce=!0;break;case u:return ce=G._init,j(ce(G._payload),q,Y,J,ie)}}if(ce)return ie=ie(G),ce=J===""?"."+N(G,0):J,I(ie)?(Y="",ce!=null&&(Y=ce.replace(_,"$&/")+"/"),j(ie,q,Y,"",function(ne){return ne})):ie!=null&&(M(ie)&&(ie=D(ie,Y+(ie.key==null||G&&G.key===ie.key?"":(""+ie.key).replace(_,"$&/")+"/")+ce)),q.push(ie)),1;ce=0;var ye=J===""?".":J+":";if(I(G))for(var Se=0;Se0?vi(Jy,--Pa):0,ny--,Mo===10&&(ny=1,zO--),Mo}function Ya(){return Mo=Pa2||yx(Mo)>3?"":" "}function Nye(e,t){for(;--t&&Ya()&&!(Mo<48||Mo>102||Mo>57&&Mo<65||Mo>70&&Mo<97););return GS(e,sE()+(t<6&&Sc()==32&&Ya()==32))}function G$(e){for(;Ya();)switch(Mo){case e:return Pa;case 34:case 39:e!==34&&e!==39&&G$(Mo);break;case 40:e===41&&G$(e);break;case 92:Ya();break}return Pa}function Lye(e,t){for(;Ya()&&e+Mo!==57;)if(e+Mo===84&&Sc()===47)break;return"/*"+GS(t,Pa-1)+"*"+BO(e===47?e:Ya())}function Fye(e){for(;!yx(Sc());)Ya();return GS(e,Pa)}function jye(e){return Wee(cE("",null,null,null,[""],e=qee(e),0,[0],e))}function cE(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,f=a,h=0,m=0,g=0,y=1,v=1,w=1,C=0,E="",I=o,O=i,P=r,R=E;v;)switch(g=C,C=Ya()){case 40:if(g!=108&&vi(R,f-1)==58){U$(R+=ir(lE(C),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:R+=lE(C);break;case 9:case 10:case 13:case 32:R+=$ye(g);break;case 92:R+=Nye(sE()-1,7);continue;case 47:switch(Sc()){case 42:case 47:f1(Bye(Lye(Ya(),sE()),t,n),l);break;default:R+="/"}break;case 123*y:s[c++]=pc(R)*w;case 125*y:case 59:case 0:switch(C){case 0:case 125:v=0;case 59+u:w==-1&&(R=ir(R,/\f/g,"")),m>0&&pc(R)-f&&f1(m>32?M3(R+";",r,n,f-1):M3(ir(R," ","")+";",r,n,f-2),l);break;case 59:R+=";";default:if(f1(P=A3(R,t,n,c,u,o,s,E,I=[],O=[],f),i),C===123)if(u===0)cE(R,t,P,P,I,i,f,s,O);else switch(h===99&&vi(R,3)===110?100:h){case 100:case 108:case 109:case 115:cE(e,P,P,r&&f1(A3(e,P,P,0,0,o,s,E,o,I=[],f),O),o,O,f,s,r?I:O);break;default:cE(R,P,P,P,[""],O,0,s,O)}}c=u=m=0,y=w=1,E=R="",f=a;break;case 58:f=1+pc(R),m=g;default:if(y<1){if(C==123)--y;else if(C==125&&y++==0&&_ye()==125)continue}switch(R+=BO(C),C*y){case 38:w=u>0?1:(R+="\f",-1);break;case 44:s[c++]=(pc(R)-1)*w,w=1;break;case 64:Sc()===45&&(R+=lE(Ya())),h=Sc(),u=f=pc(E=R+=Fye(sE())),C++;break;case 45:g===45&&pc(R)==2&&(y=0)}}return i}function A3(e,t,n,r,o,i,a,s,l,c,u){for(var f=o-1,h=o===0?i:[""],m=wj(h),g=0,y=0,v=0;g0?h[w]+" "+C:ir(C,/&\f/g,h[w])))&&(l[v++]=E);return VO(e,t,n,o===0?xj:s,l,c,u)}function Bye(e,t,n){return VO(e,t,n,Vee,BO(kye()),gx(e,2,-2),0)}function M3(e,t,n,r){return VO(e,t,n,Sj,gx(e,0,r),gx(e,r+1,-1),r)}function Pg(e,t){for(var n="",r=wj(e),o=0;o6)switch(vi(e,t+1)){case 109:if(vi(e,t+4)!==45)break;case 102:return ir(e,/(.+:)(.+)-([^]+)/,"$1"+or+"$2-$3$1"+FE+(vi(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~U$(e,"stretch")?Yee(ir(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(vi(e,t+1)!==115)break;case 6444:switch(vi(e,pc(e)-3-(~U$(e,"!important")&&10))){case 107:return ir(e,":",":"+or)+e;case 101:return ir(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+or+(vi(e,14)===45?"inline-":"")+"box$3$1"+or+"$2$3$1"+Mi+"$2box$3")+e}break;case 5936:switch(vi(e,t+11)){case 114:return or+e+Mi+ir(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return or+e+Mi+ir(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return or+e+Mi+ir(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return or+e+Mi+e+e}return e}var Yye=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Sj:t.return=Yee(t.value,t.length);break;case Hee:return Pg([Ub(t,{value:ir(t.value,"@","@"+or)})],o);case xj:if(t.length)return Dye(t.props,function(i){switch(Rye(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Pg([Ub(t,{props:[ir(i,/:(read-\w+)/,":"+FE+"$1")]})],o);case"::placeholder":return Pg([Ub(t,{props:[ir(i,/:(plac\w+)/,":"+or+"input-$1")]}),Ub(t,{props:[ir(i,/:(plac\w+)/,":"+FE+"$1")]}),Ub(t,{props:[ir(i,/:(plac\w+)/,Mi+"input-$1")]})],o)}return""})}},Qye=[Yye],Qee=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(y){var v=y.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||Qye,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var v=y.getAttribute("data-emotion").split(" "),w=1;w0?vi(tv,--Pa):0,ry--,Mo===10&&(ry=1,VO--),Mo}function Ya(){return Mo=Pa2||bx(Mo)>3?"":" "}function Lye(e,t){for(;--t&&Ya()&&!(Mo<48||Mo>102||Mo>57&&Mo<65||Mo>70&&Mo<97););return qS(e,lE()+(t<6&&Ec()==32&&Ya()==32))}function W$(e){for(;Ya();)switch(Mo){case e:return Pa;case 34:case 39:e!==34&&e!==39&&W$(Mo);break;case 40:e===41&&W$(e);break;case 92:Ya();break}return Pa}function Fye(e,t){for(;Ya()&&e+Mo!==57;)if(e+Mo===84&&Ec()===47)break;return"/*"+qS(t,Pa-1)+"*"+zO(e===47?e:Ya())}function jye(e){for(;!bx(Ec());)Ya();return qS(e,Pa)}function Bye(e){return Kee(uE("",null,null,null,[""],e=Wee(e),0,[0],e))}function uE(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,f=a,h=0,m=0,g=0,y=1,v=1,w=1,C=0,E="",I=o,O=i,P=r,R=E;v;)switch(g=C,C=Ya()){case 40:if(g!=108&&vi(R,f-1)==58){q$(R+=ar(cE(C),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:R+=cE(C);break;case 9:case 10:case 13:case 32:R+=Nye(g);break;case 92:R+=Lye(lE()-1,7);continue;case 47:switch(Ec()){case 42:case 47:p1(zye(Fye(Ya(),lE()),t,n),l);break;default:R+="/"}break;case 123*y:s[c++]=gc(R)*w;case 125*y:case 59:case 0:switch(C){case 0:case 125:v=0;case 59+u:w==-1&&(R=ar(R,/\f/g,"")),m>0&&gc(R)-f&&p1(m>32?R3(R+";",r,n,f-1):R3(ar(R," ","")+";",r,n,f-2),l);break;case 59:R+=";";default:if(p1(P=M3(R,t,n,c,u,o,s,E,I=[],O=[],f),i),C===123)if(u===0)uE(R,t,P,P,I,i,f,s,O);else switch(h===99&&vi(R,3)===110?100:h){case 100:case 108:case 109:case 115:uE(e,P,P,r&&p1(M3(e,P,P,0,0,o,s,E,o,I=[],f),O),o,O,f,s,r?I:O);break;default:uE(R,P,P,P,[""],O,0,s,O)}}c=u=m=0,y=w=1,E=R="",f=a;break;case 58:f=1+gc(R),m=g;default:if(y<1){if(C==123)--y;else if(C==125&&y++==0&&$ye()==125)continue}switch(R+=zO(C),C*y){case 38:w=u>0?1:(R+="\f",-1);break;case 44:s[c++]=(gc(R)-1)*w,w=1;break;case 64:Ec()===45&&(R+=cE(Ya())),h=Ec(),u=f=gc(E=R+=jye(lE())),C++;break;case 45:g===45&&gc(R)==2&&(y=0)}}return i}function M3(e,t,n,r,o,i,a,s,l,c,u){for(var f=o-1,h=o===0?i:[""],m=Ej(h),g=0,y=0,v=0;g0?h[w]+" "+C:ar(C,/&\f/g,h[w])))&&(l[v++]=E);return HO(e,t,n,o===0?wj:s,l,c,u)}function zye(e,t,n){return HO(e,t,n,Hee,zO(_ye()),vx(e,2,-2),0)}function R3(e,t,n,r){return HO(e,t,n,Cj,vx(e,0,r),vx(e,r+1,-1),r)}function Ag(e,t){for(var n="",r=Ej(e),o=0;o6)switch(vi(e,t+1)){case 109:if(vi(e,t+4)!==45)break;case 102:return ar(e,/(.+:)(.+)-([^]+)/,"$1"+ir+"$2-$3$1"+jE+(vi(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~q$(e,"stretch")?Qee(ar(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(vi(e,t+1)!==115)break;case 6444:switch(vi(e,gc(e)-3-(~q$(e,"!important")&&10))){case 107:return ar(e,":",":"+ir)+e;case 101:return ar(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ir+(vi(e,14)===45?"inline-":"")+"box$3$1"+ir+"$2$3$1"+Mi+"$2box$3")+e}break;case 5936:switch(vi(e,t+11)){case 114:return ir+e+Mi+ar(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ir+e+Mi+ar(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ir+e+Mi+ar(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ir+e+Mi+e+e}return e}var Qye=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Cj:t.return=Qee(t.value,t.length);break;case Uee:return Ag([qb(t,{value:ar(t.value,"@","@"+ir)})],o);case wj:if(t.length)return kye(t.props,function(i){switch(Dye(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ag([qb(t,{props:[ar(i,/:(read-\w+)/,":"+jE+"$1")]})],o);case"::placeholder":return Ag([qb(t,{props:[ar(i,/:(plac\w+)/,":"+ir+"input-$1")]}),qb(t,{props:[ar(i,/:(plac\w+)/,":"+jE+"$1")]}),qb(t,{props:[ar(i,/:(plac\w+)/,Mi+"input-$1")]})],o)}return""})}},Xye=[Qye],Xee=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(y){var v=y.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||Xye,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var v=y.getAttribute("data-emotion").split(" "),w=1;w=4;++r,o-=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(o){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 ove={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},ive=/[A-Z]|^ms/g,ave=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zee=function(t){return t.charCodeAt(1)===45},$3=function(t){return t!=null&&typeof t!="boolean"},fR=Kee(function(e){return Zee(e)?e:e.replace(ive,"-$&").toLowerCase()}),N3=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ave,function(r,o,i){return hc={name:o,styles:i,next:hc},o})}return ove[t]!==1&&!Zee(t)&&typeof n=="number"&&n!==0?n+"px":n};function vx(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 o=n;if(o.anim===1)return hc={name:o.name,styles:o.styles,next:hc},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)hc={name:a.name,styles:a.styles,next:hc},a=a.next;var s=i.styles+";";return s}return sve(e,t,n)}case"function":{if(e!==void 0){var l=hc,c=n(e);return hc=l,vx(e,t,c)}break}}var u=n;if(t==null)return u;var f=t[u];return f!==void 0?f:u}function sve(e,t,n){var r="";if(Array.isArray(n))for(var o=0;on.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const qs="$$material";var pve=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,hve=Kee(function(e){return pve.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),mve=hve,gve=function(t){return t!=="theme"},j3=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?mve:gve},B3=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},yve=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Cj(n,r,o),ete(function(){return Ej(n,r,o)}),null},vve=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=B3(t,n,r),l=s||j3(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{var h=u[0];f.push(h[0]);for(var m=u.length,g=1;gt(Eve(o)?n:o):t;return k.jsx(fve,{styles:r})}function rte(e,t){return W$(e,t)}function Tve(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const U3=[];function G3(e){return U3[0]=e,qS(U3)}var gR={exports:{}},Sr={};/** + */var k3;function Jye(){if(k3)return lr;k3=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,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function E(O){if(typeof O=="object"&&O!==null){var P=O.$$typeof;switch(P){case t:switch(O=O.type,O){case l:case c:case r:case i:case o:case f:return O;default:switch(O=O&&O.$$typeof,O){case s:case u:case g:case m:case a:return O;default:return P}}case n:return P}}}function I(O){return E(O)===c}return lr.AsyncMode=l,lr.ConcurrentMode=c,lr.ContextConsumer=s,lr.ContextProvider=a,lr.Element=t,lr.ForwardRef=u,lr.Fragment=r,lr.Lazy=g,lr.Memo=m,lr.Portal=n,lr.Profiler=i,lr.StrictMode=o,lr.Suspense=f,lr.isAsyncMode=function(O){return I(O)||E(O)===l},lr.isConcurrentMode=I,lr.isContextConsumer=function(O){return E(O)===s},lr.isContextProvider=function(O){return E(O)===a},lr.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},lr.isForwardRef=function(O){return E(O)===u},lr.isFragment=function(O){return E(O)===r},lr.isLazy=function(O){return E(O)===g},lr.isMemo=function(O){return E(O)===m},lr.isPortal=function(O){return E(O)===n},lr.isProfiler=function(O){return E(O)===i},lr.isStrictMode=function(O){return E(O)===o},lr.isSuspense=function(O){return E(O)===f},lr.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===r||O===c||O===i||O===o||O===f||O===h||typeof O=="object"&&O!==null&&(O.$$typeof===g||O.$$typeof===m||O.$$typeof===a||O.$$typeof===s||O.$$typeof===u||O.$$typeof===v||O.$$typeof===w||O.$$typeof===C||O.$$typeof===y)},lr.typeOf=E,lr}var _3;function Zye(){return _3||(_3=1,fR.exports=Jye()),fR.exports}var pR,$3;function eve(){if($3)return pR;$3=1;var e=Zye(),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},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=o;function a(g){return e.isMemo(g)?o:i[g.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;function m(g,y,v){if(typeof y!="string"){if(h){var w=f(y);w&&w!==h&&m(g,w,v)}var C=l(y);c&&(C=C.concat(c(y)));for(var E=a(g),I=a(y),O=0;O=4;++r,o-=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(o){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 ive={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},ave=/[A-Z]|^ms/g,sve=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zee=function(t){return t.charCodeAt(1)===45},N3=function(t){return t!=null&&typeof t!="boolean"},hR=Yee(function(e){return Zee(e)?e:e.replace(ave,"-$&").toLowerCase()}),L3=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(sve,function(r,o,i){return yc={name:o,styles:i,next:yc},o})}return ive[t]!==1&&!Zee(t)&&typeof n=="number"&&n!==0?n+"px":n};function xx(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 o=n;if(o.anim===1)return yc={name:o.name,styles:o.styles,next:yc},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)yc={name:a.name,styles:a.styles,next:yc},a=a.next;var s=i.styles+";";return s}return lve(e,t,n)}case"function":{if(e!==void 0){var l=yc,c=n(e);return yc=l,xx(e,t,c)}break}}var u=n;if(t==null)return u;var f=t[u];return f!==void 0?f:u}function lve(e,t,n){var r="";if(Array.isArray(n))for(var o=0;on.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const qs="$$material";var hve=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,mve=Yee(function(e){return hve.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),gve=mve,yve=function(t){return t!=="theme"},B3=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?gve:yve},z3=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},vve=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Tj(n,r,o),tte(function(){return Oj(n,r,o)}),null},bve=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=z3(t,n,r),l=s||B3(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{var h=u[0];f.push(h[0]);for(var m=u.length,g=1;gt(Tve(o)?n:o):t;return k.jsx(pve,{styles:r})}function ote(e,t){return Y$(e,t)}function Ove(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const G3=[];function q3(e){return G3[0]=e,WS(G3)}var vR={exports:{}},wr={};/** * @license React * react-is.production.js * @@ -29,7 +29,7 @@ var yye=Object.defineProperty;var E3=e=>{throw TypeError(e)};var vye=(e,t,n)=>t * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var q3;function Ove(){if(q3)return Sr;q3=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function g(y){if(typeof y=="object"&&y!==null){var v=y.$$typeof;switch(v){case e:switch(y=y.type,y){case n:case o:case r:case l:case c:case h:return y;default:switch(y=y&&y.$$typeof,y){case a:case s:case f:case u:return y;case i:return y;default:return v}}case t:return v}}}return Sr.ContextConsumer=i,Sr.ContextProvider=a,Sr.Element=e,Sr.ForwardRef=s,Sr.Fragment=n,Sr.Lazy=f,Sr.Memo=u,Sr.Portal=t,Sr.Profiler=o,Sr.StrictMode=r,Sr.Suspense=l,Sr.SuspenseList=c,Sr.isContextConsumer=function(y){return g(y)===i},Sr.isContextProvider=function(y){return g(y)===a},Sr.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Sr.isForwardRef=function(y){return g(y)===s},Sr.isFragment=function(y){return g(y)===n},Sr.isLazy=function(y){return g(y)===f},Sr.isMemo=function(y){return g(y)===u},Sr.isPortal=function(y){return g(y)===t},Sr.isProfiler=function(y){return g(y)===o},Sr.isStrictMode=function(y){return g(y)===r},Sr.isSuspense=function(y){return g(y)===l},Sr.isSuspenseList=function(y){return g(y)===c},Sr.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===o||y===r||y===l||y===c||typeof y=="object"&&y!==null&&(y.$$typeof===f||y.$$typeof===u||y.$$typeof===a||y.$$typeof===i||y.$$typeof===s||y.$$typeof===m||y.getModuleId!==void 0)},Sr.typeOf=g,Sr}var W3;function Ive(){return W3||(W3=1,gR.exports=Ove()),gR.exports}var ote=Ive();function mc(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 ite(e){if(x.isValidElement(e)||ote.isValidElementType(e)||!mc(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=ite(e[n])}),t}function si(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return mc(e)&&mc(t)&&Object.keys(t).forEach(o=>{x.isValidElement(t[o])||ote.isValidElementType(t[o])?r[o]=t[o]:mc(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&mc(e[o])?r[o]=si(e[o],t[o],n):n.clone?r[o]=mc(t[o])?ite(t[o]):t[o]:r[o]=t[o]}),r}const Pve=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 Ave(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=Pve(t),a=Object.keys(i);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,m){const g=a.indexOf(m);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:m)-r/100}${n})`}function u(h){return a.indexOf(h)+1r.startsWith("@container")).sort((r,o)=>{var a,s;const i=/min-width:\s*([0-9.]+)/;return+(((a=r.match(i))==null?void 0:a[1])||0)-+(((s=o.match(i))==null?void 0:s[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function Rve(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Dve(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function kve(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...s)=>t(e.breakpoints.up(...s),a),i.down=(...s)=>t(e.breakpoints.down(...s),a),i.between=(...s)=>t(e.breakpoints.between(...s),a),i.only=(...s)=>t(e.breakpoints.only(...s),a),i.not=(...s)=>{const l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const _ve={borderRadius:4};function U0(e,t){return t?si(e,t,{clone:!1}):e}const HO={xs:0,sm:600,md:900,lg:1200,xl:1536},K3={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${HO[e]}px)`},$ve={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:HO[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Hl(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||K3;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||K3;return Object.keys(t).reduce((a,s)=>{if(Rve(i.keys,s)){const l=Dve(r.containerQueries?r:$ve,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(i.values||HO).includes(s)){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function ate(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function ste(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Nve(e,...t){const n=ate(e),r=[n,...t].reduce((o,i)=>si(o,i),{});return ste(Object.keys(n),r)}function Lve(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function yR({values:e,breakpoints:t,base:n}){const r=n||Lve(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function Te(e){if(typeof e!="string")throw new Error(Bu(7));return e.charAt(0).toUpperCase()+e.slice(1)}function UO(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function jE(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=UO(e,n)||r,t&&(o=t(o,r,e)),o}function Eo(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=UO(l,r)||{};return Hl(a,s,f=>{let h=jE(c,o,f);return f===h&&typeof f=="string"&&(h=jE(c,o,`${t}${f==="default"?"":Te(f)}`,f)),n===!1?h:{[n]:h}})};return i.propTypes={},i.filterProps=[t],i}function Fve(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const jve={m:"margin",p:"padding"},Bve={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Y3={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zve=Fve(e=>{if(e.length>2)if(Y3[e])e=Y3[e];else return[e];const[t,n]=e.split(""),r=jve[t],o=Bve[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Pj=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Aj=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Pj,...Aj];function YS(e,t,n,r){const o=UO(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i:Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i),s=o[a];return i>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof o=="function"?o:()=>{}}function GO(e){return YS(e,"spacing",8)}function lh(e,t){return typeof t=="string"||t==null?t:e(t)}function Vve(e,t){return n=>e.reduce((r,o)=>(r[o]=lh(t,n),r),{})}function Hve(e,t,n,r){if(!t.includes(n))return null;const o=zve(n),i=Vve(o,r),a=e[n];return Hl(e,a,i)}function lte(e,t){const n=GO(e.theme);return Object.keys(e).map(r=>Hve(e,t,r,n)).reduce(U0,{})}function so(e){return lte(e,Pj)}so.propTypes={};so.filterProps=Pj;function lo(e){return lte(e,Aj)}lo.propTypes={};lo.filterProps=Aj;function cte(e=8,t=GO({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function qO(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?U0(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Fs(e){return typeof e!="number"?e:`${e}px solid`}function ol(e,t){return Eo({prop:e,themeKey:"borders",transform:t})}const Uve=ol("border",Fs),Gve=ol("borderTop",Fs),qve=ol("borderRight",Fs),Wve=ol("borderBottom",Fs),Kve=ol("borderLeft",Fs),Yve=ol("borderColor"),Qve=ol("borderTopColor"),Xve=ol("borderRightColor"),Zve=ol("borderBottomColor"),Jve=ol("borderLeftColor"),ebe=ol("outline",Fs),tbe=ol("outlineColor"),WO=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=YS(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:lh(t,r)});return Hl(e,e.borderRadius,n)}return null};WO.propTypes={};WO.filterProps=["borderRadius"];qO(Uve,Gve,qve,Wve,Kve,Yve,Qve,Xve,Zve,Jve,WO,ebe,tbe);const KO=e=>{if(e.gap!==void 0&&e.gap!==null){const t=YS(e.theme,"spacing",8),n=r=>({gap:lh(t,r)});return Hl(e,e.gap,n)}return null};KO.propTypes={};KO.filterProps=["gap"];const YO=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=YS(e.theme,"spacing",8),n=r=>({columnGap:lh(t,r)});return Hl(e,e.columnGap,n)}return null};YO.propTypes={};YO.filterProps=["columnGap"];const QO=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=YS(e.theme,"spacing",8),n=r=>({rowGap:lh(t,r)});return Hl(e,e.rowGap,n)}return null};QO.propTypes={};QO.filterProps=["rowGap"];const nbe=Eo({prop:"gridColumn"}),rbe=Eo({prop:"gridRow"}),obe=Eo({prop:"gridAutoFlow"}),ibe=Eo({prop:"gridAutoColumns"}),abe=Eo({prop:"gridAutoRows"}),sbe=Eo({prop:"gridTemplateColumns"}),lbe=Eo({prop:"gridTemplateRows"}),cbe=Eo({prop:"gridTemplateAreas"}),ube=Eo({prop:"gridArea"});qO(KO,YO,QO,nbe,rbe,obe,ibe,abe,sbe,lbe,cbe,ube);function Ag(e,t){return t==="grey"?t:e}const dbe=Eo({prop:"color",themeKey:"palette",transform:Ag}),fbe=Eo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ag}),pbe=Eo({prop:"backgroundColor",themeKey:"palette",transform:Ag});qO(dbe,fbe,pbe);function Ga(e){return e<=1&&e!==0?`${e*100}%`:e}const hbe=Eo({prop:"width",transform:Ga}),Mj=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,s,l;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||HO[n];return r?((l=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ga(n)}};return Hl(e,e.maxWidth,t)}return null};Mj.filterProps=["maxWidth"];const mbe=Eo({prop:"minWidth",transform:Ga}),gbe=Eo({prop:"height",transform:Ga}),ybe=Eo({prop:"maxHeight",transform:Ga}),vbe=Eo({prop:"minHeight",transform:Ga});Eo({prop:"size",cssProperty:"width",transform:Ga});Eo({prop:"size",cssProperty:"height",transform:Ga});const bbe=Eo({prop:"boxSizing"});qO(hbe,Mj,mbe,gbe,ybe,vbe,bbe);const QS={border:{themeKey:"borders",transform:Fs},borderTop:{themeKey:"borders",transform:Fs},borderRight:{themeKey:"borders",transform:Fs},borderBottom:{themeKey:"borders",transform:Fs},borderLeft:{themeKey:"borders",transform:Fs},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Fs},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:WO},color:{themeKey:"palette",transform:Ag},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ag},backgroundColor:{themeKey:"palette",transform:Ag},p:{style:lo},pt:{style:lo},pr:{style:lo},pb:{style:lo},pl:{style:lo},px:{style:lo},py:{style:lo},padding:{style:lo},paddingTop:{style:lo},paddingRight:{style:lo},paddingBottom:{style:lo},paddingLeft:{style:lo},paddingX:{style:lo},paddingY:{style:lo},paddingInline:{style:lo},paddingInlineStart:{style:lo},paddingInlineEnd:{style:lo},paddingBlock:{style:lo},paddingBlockStart:{style:lo},paddingBlockEnd:{style:lo},m:{style:so},mt:{style:so},mr:{style:so},mb:{style:so},ml:{style:so},mx:{style:so},my:{style:so},margin:{style:so},marginTop:{style:so},marginRight:{style:so},marginBottom:{style:so},marginLeft:{style:so},marginX:{style:so},marginY:{style:so},marginInline:{style:so},marginInlineStart:{style:so},marginInlineEnd:{style:so},marginBlock:{style:so},marginBlockStart:{style:so},marginBlockEnd:{style:so},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:KO},rowGap:{style:QO},columnGap:{style:YO},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ga},maxWidth:{style:Mj},minWidth:{transform:Ga},height:{transform:Ga},maxHeight:{transform:Ga},minHeight:{transform:Ga},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 xbe(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Sbe(e,t){return typeof e=="function"?e(t):e}function wbe(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=UO(o,c)||{};return f?f(a):Hl(a,r,g=>{let y=jE(h,u,g);return g===y&&typeof g=="string"&&(y=jE(h,u,`${n}${g==="default"?"":Te(g)}`,g)),l===!1?y:{[l]:y}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??QS;function a(s){let l=s;if(typeof s=="function")l=s(o);else if(typeof s!="object")return s;if(!l)return null;const c=ate(o.breakpoints),u=Object.keys(c);let f=c;return Object.keys(l).forEach(h=>{const m=Sbe(l[h],o);if(m!=null)if(typeof m=="object")if(i[h])f=U0(f,e(h,m,o,i));else{const g=Hl({theme:o},m,y=>({[h]:y}));xbe(g,m)?f[h]=t({sx:m,theme:o}):f=U0(f,g)}else f=U0(f,e(h,m,o,i))}),Mve(o,ste(u,f))}return Array.isArray(r)?r.map(a):a(r)}return t}const wf=wbe();wf.filterProps=["sx"];function Cbe(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function ev(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,s=Ave(n),l=cte(o);let c=si({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{..._ve,...i}},a);return c=kve(c),c.applyStyles=Cbe,c=t.reduce((u,f)=>si(u,f),c),c.unstable_sxConfig={...QS,...a==null?void 0:a.unstable_sxConfig},c.unstable_sx=function(f){return wf({sx:f,theme:this})},c}function Ebe(e){return Object.keys(e).length===0}function Rj(e=null){const t=x.useContext(WS);return!t||Ebe(t)?e:t}const Tbe=ev();function XS(e=Tbe){return Rj(e)}function Obe({styles:e,themeId:t,defaultTheme:n={}}){const r=XS(n),o=typeof e=="function"?e(t&&r[t]||r):e;return k.jsx(nte,{styles:o})}const Ibe=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??QS;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function XO(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=Ibe(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return mc(s)?{...r,...s}:r}:i={...r,...t},{...o,sx:i}}const Q3=e=>e,Pbe=()=>{let e=Q3;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Q3}}},ute=Pbe();function dte(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(wf);return x.forwardRef(function(l,c){const u=XS(n),{className:f,component:h="div",...m}=XO(l);return k.jsx(i,{as:h,ref:c,className:fe(f,o?o(r):r),theme:t&&u[t]||u,...m})})}const Mbe={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 qe(e,t,n="Mui"){const r=Mbe[t];return r?`${n}-${r}`:`${ute.generate(e)}-${t}`}function Ke(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=qe(e,o,n)}),r}function fte(e){const{variants:t,...n}=e,r={variants:t,style:G3(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=G3(o.style))}),r}const Rbe=ev();function Ca(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Dbe(e){return e?(t,n)=>n[e]:null}function kbe(e,t,n){e.theme=$be(e.theme)?n:e.theme[t]||e.theme}function uE(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>uE(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return pte(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function pte(e,t,n=[]){var o;let r;e:for(let i=0;i{Tve(s,O=>O.filter(P=>P!==wf));const{name:c,slot:u,skipVariantsResolver:f,skipSx:h,overridesResolver:m=Dbe(Lbe(u)),...g}=l,y=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,v=h||!1;let w=Ca;u==="Root"||u==="root"?w=r:u?w=o:Nbe(s)&&(w=void 0);const C=rte(s,{shouldForwardProp:w,label:_be(),...g}),E=O=>{if(typeof O=="function"&&O.__emotion_real!==O)return function(R){return uE(R,O)};if(mc(O)){const P=fte(O);return P.variants?function(D){return uE(D,P)}:P.style}return O},I=(...O)=>{const P=[],R=O.map(E),D=[];if(P.push(i),c&&m&&D.push(function(N){var L,V;const H=(V=(L=N.theme.components)==null?void 0:L[c])==null?void 0:V.styleOverrides;if(!H)return null;const j={};for(const W in H)j[W]=uE(N,H[W]);return m(N,j)}),c&&!y&&D.push(function(N){var j,L;const B=N.theme,H=(L=(j=B==null?void 0:B.components)==null?void 0:j[c])==null?void 0:L.variants;return H?pte(N,H):null}),v||D.push(wf),Array.isArray(R[0])){const _=R.shift(),N=new Array(P.length).fill(""),B=new Array(D.length).fill("");let H;H=[...N,..._,...B],H.raw=[...N,..._.raw,...B],P.unshift(H)}const M=[...P,...R,...D],A=C(...M);return s.muiName&&(A.muiName=s.muiName),A};return C.withConfig&&(I.withConfig=C.withConfig),I}}function _be(e,t){return void 0}function $be(e){for(const t in e)return!1;return!0}function Nbe(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Lbe(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Nn=hte();function ch(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],a=t[o];if(!a)n[o]=i||{};else if(!i)n[o]=a;else{n[o]={...a};for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)){const l=s;n[o][l]=ch(i[l],a[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function Dj(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:ch(t.components[n].defaultProps,r)}function ZO({props:e,name:t,defaultTheme:n,themeId:r}){let o=XS(n);return r&&(o=o[r]||o),Dj({theme:o,name:t,props:e})}const In=typeof window<"u"?x.useLayoutEffect:x.useEffect;function Fbe(e,t,n,r,o){const[i,a]=x.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return In(()=>{if(!n)return;const s=n(e),l=()=>{a(s.matches)};return l(),s.addEventListener("change",l),()=>{s.removeEventListener("change",l)}},[e,n]),i}const jbe={...LE},mte=jbe.useSyncExternalStore;function Bbe(e,t,n,r,o){const i=x.useCallback(()=>t,[t]),a=x.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return i},[i,e,r,o,n]),[s,l]=x.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const u=n(e);return[()=>u.matches,f=>(u.addEventListener("change",f),()=>{u.removeEventListener("change",f)})]},[i,n,e]);return mte(l,s,a)}function gte(e={}){const{themeId:t}=e;return function(r,o={}){let i=Rj();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:s=!1,matchMedia:l=a?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:u=!1}=Dj({name:"MuiUseMediaQuery",props:o,theme:i});let f=typeof r=="function"?r(i):r;return f=f.replace(/^@media( ?)/m,""),(mte!==void 0?Bbe:Fbe)(f,s,l,c,u)}}gte();function zbe(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function kj(e,t=0,n=1){return zbe(e,t,n)}function Vbe(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,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Cf(e){if(e.type)return e;if(e.charAt(0)==="#")return Cf(Vbe(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Bu(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=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(o))throw new Error(Bu(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Hbe=e=>{const t=Cf(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},I0=(e,t)=>{try{return Hbe(e)}catch{return e}};function JO(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function yte(e){e=Cf(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),JO({type:s,values:l})}function K$(e){e=Cf(e);let t=e.type==="hsl"||e.type==="hsla"?Cf(yte(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 Ube(e,t){const n=K$(e),r=K$(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Nt(e,t){return e=Cf(e),t=kj(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,JO(e)}function p1(e,t,n){try{return Nt(e,t)}catch{return e}}function zu(e,t){if(e=Cf(e),t=kj(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 JO(e)}function Ir(e,t,n){try{return zu(e,t)}catch{return e}}function Vu(e,t){if(e=Cf(e),t=kj(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 JO(e)}function Pr(e,t,n){try{return Vu(e,t)}catch{return e}}function vte(e,t=.15){return K$(e)>.5?zu(e,t):Vu(e,t)}function h1(e,t,n){try{return vte(e,t)}catch{return e}}const tv=U.oneOfType([U.func,U.object]);function X3(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function _h(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Mg(e,t){var n,r,o;return x.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName))!==-1}function Mr(e){return e&&e.ownerDocument||document}function ns(e){return Mr(e).defaultView||window}function Y$(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Z3=0;function Gbe(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect(()=>{t==null&&(Z3+=1,n(`mui-${Z3}`))},[t]),r}const qbe={...LE},J3=qbe.useId;function bn(e){if(J3!==void 0){const t=J3();return e??t}return Gbe(e)}function ia({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=x.useRef(e!==void 0),[i,a]=x.useState(t),s=o?e:i,l=x.useCallback(c=>{o||a(c)},[]);return[s,l]}function Ze(e){const t=x.useRef(e);return In(()=>{t.current=e}),x.useRef((...n)=>(0,t.current)(...n)).current}function en(...e){const t=x.useRef(void 0),n=x.useCallback(r=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,s=a(r);return typeof s=="function"?s:()=>{a(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},e);return x.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}const eG={};function Kl(e,t){const n=x.useRef(eG);return n.current===eG&&(n.current=e(t)),n}const Wbe=[];function _j(e){x.useEffect(e,Wbe)}class eI{constructor(){Pe(this,"currentId",null);Pe(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Pe(this,"disposeEffect",()=>this.clear)}static create(){return new eI}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function ko(){const e=Kl(eI.create).current;return _j(e.disposeEffect),e}function BE(e){try{return e.matches(":focus-visible")}catch{}return!1}function bte(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const $j=e=>{const t=x.useRef({});return x.useEffect(()=>{t.current=e}),t.current};function xte(e){return x.Children.toArray(e).filter(t=>x.isValidElement(t))}const Kbe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Me(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let l=0;lr.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function tG(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 wte(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const m=fe(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},y={...n,...o,...r};return m.length>0&&(y.className=m),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const a=zE({...o,...r}),s=tG(r),l=tG(o),c=t(a),u=fe(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f={...c==null?void 0:c.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},h={...c,...n,...l,...s};return u.length>0&&(h.className=u),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:c.ref}}function Rc(e,t,n){return typeof e=="function"?e(t,n):e}function Dn(e){var f;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:Rc(n,r),{props:s,internalRef:l}=wte({...i,externalSlotProps:a}),c=en(l,a==null?void 0:a.ref,(f=e.additionalProps)==null?void 0:f.ref);return Ste(t,{...s,ref:c},r)}function _f(e){var t;return parseInt(x.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const Cte=x.createContext(null);function Nj(){return x.useContext(Cte)}const Qbe=typeof Symbol=="function"&&Symbol.for,Xbe=Qbe?Symbol.for("mui.nested"):"__THEME_NESTED__";function Zbe(e,t){return typeof t=="function"?t(e):{...e,...t}}function Jbe(e){const{children:t,theme:n}=e,r=Nj(),o=x.useMemo(()=>{const i=r===null?{...n}:Zbe(r,n);return i!=null&&(i[Xbe]=r!==null),i},[n,r]);return k.jsx(Cte.Provider,{value:o,children:t})}const Ete=x.createContext();function e0e({value:e,...t}){return k.jsx(Ete.Provider,{value:e??!0,...t})}const yr=()=>x.useContext(Ete)??!1,Tte=x.createContext(void 0);function t0e({value:e,children:t}){return k.jsx(Tte.Provider,{value:e,children:t})}function n0e(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?ch(o.defaultProps,r):!o.styleOverrides&&!o.variants?ch(o,r):r}function r0e({props:e,name:t}){const n=x.useContext(Tte);return n0e({props:e,name:t,theme:{components:n}})}const nG={};function rG(e,t,n,r=!1){return x.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?{...t,[e]:i}:i;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Ote(e){const{children:t,theme:n,themeId:r}=e,o=Rj(nG),i=Nj()||nG,a=rG(r,o,n),s=rG(r,i,n,!0),l=(r?a[r]:a).direction==="rtl";return k.jsx(Jbe,{theme:s,children:k.jsx(WS.Provider,{value:a,children:k.jsx(e0e,{value:l,children:k.jsx(t0e,{value:r?a[r].components:a.components,children:t})})})})}const oG={theme:void 0};function o0e(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(oG.theme=o.theme,i=fte(e(oG)),t=i,n=o.theme),i}}const Lj="mode",Fj="color-scheme",i0e="data-color-scheme";function a0e(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=Lj,colorSchemeStorageKey:i=Fj,attribute:a=i0e,colorSchemeNode:s="document.documentElement",nonce:l}=e||{};let c="",u=a;if(a==="class"&&(u=".%s"),a==="data"&&(u="[data-%s]"),u.startsWith(".")){const h=u.substring(1);c+=`${s}.classList.remove('${h}'.replace('%s', light), '${h}'.replace('%s', dark)); + */var W3;function Ive(){if(W3)return wr;W3=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function g(y){if(typeof y=="object"&&y!==null){var v=y.$$typeof;switch(v){case e:switch(y=y.type,y){case n:case o:case r:case l:case c:case h:return y;default:switch(y=y&&y.$$typeof,y){case a:case s:case f:case u:return y;case i:return y;default:return v}}case t:return v}}}return wr.ContextConsumer=i,wr.ContextProvider=a,wr.Element=e,wr.ForwardRef=s,wr.Fragment=n,wr.Lazy=f,wr.Memo=u,wr.Portal=t,wr.Profiler=o,wr.StrictMode=r,wr.Suspense=l,wr.SuspenseList=c,wr.isContextConsumer=function(y){return g(y)===i},wr.isContextProvider=function(y){return g(y)===a},wr.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},wr.isForwardRef=function(y){return g(y)===s},wr.isFragment=function(y){return g(y)===n},wr.isLazy=function(y){return g(y)===f},wr.isMemo=function(y){return g(y)===u},wr.isPortal=function(y){return g(y)===t},wr.isProfiler=function(y){return g(y)===o},wr.isStrictMode=function(y){return g(y)===r},wr.isSuspense=function(y){return g(y)===l},wr.isSuspenseList=function(y){return g(y)===c},wr.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===o||y===r||y===l||y===c||typeof y=="object"&&y!==null&&(y.$$typeof===f||y.$$typeof===u||y.$$typeof===a||y.$$typeof===i||y.$$typeof===s||y.$$typeof===m||y.getModuleId!==void 0)},wr.typeOf=g,wr}var K3;function Pve(){return K3||(K3=1,vR.exports=Ive()),vR.exports}var ite=Pve();function vc(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 ate(e){if(x.isValidElement(e)||ite.isValidElementType(e)||!vc(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=ate(e[n])}),t}function si(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return vc(e)&&vc(t)&&Object.keys(t).forEach(o=>{x.isValidElement(t[o])||ite.isValidElementType(t[o])?r[o]=t[o]:vc(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&vc(e[o])?r[o]=si(e[o],t[o],n):n.clone?r[o]=vc(t[o])?ate(t[o]):t[o]:r[o]=t[o]}),r}const Ave=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 Mve(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=Ave(t),a=Object.keys(i);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,m){const g=a.indexOf(m);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:m)-r/100}${n})`}function u(h){return a.indexOf(h)+1r.startsWith("@container")).sort((r,o)=>{var a,s;const i=/min-width:\s*([0-9.]+)/;return+(((a=r.match(i))==null?void 0:a[1])||0)-+(((s=o.match(i))==null?void 0:s[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function Dve(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function kve(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function _ve(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...s)=>t(e.breakpoints.up(...s),a),i.down=(...s)=>t(e.breakpoints.down(...s),a),i.between=(...s)=>t(e.breakpoints.between(...s),a),i.only=(...s)=>t(e.breakpoints.only(...s),a),i.not=(...s)=>{const l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const $ve={borderRadius:4};function q0(e,t){return t?si(e,t,{clone:!1}):e}const UO={xs:0,sm:600,md:900,lg:1200,xl:1536},Y3={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${UO[e]}px)`},Nve={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:UO[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ql(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Y3;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||Y3;return Object.keys(t).reduce((a,s)=>{if(Dve(i.keys,s)){const l=kve(r.containerQueries?r:Nve,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(i.values||UO).includes(s)){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function ste(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function lte(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Lve(e,...t){const n=ste(e),r=[n,...t].reduce((o,i)=>si(o,i),{});return lte(Object.keys(n),r)}function Fve(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function bR({values:e,breakpoints:t,base:n}){const r=n||Fve(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function Oe(e){if(typeof e!="string")throw new Error(Bu(7));return e.charAt(0).toUpperCase()+e.slice(1)}function GO(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function BE(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=GO(e,n)||r,t&&(o=t(o,r,e)),o}function Eo(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=GO(l,r)||{};return ql(a,s,f=>{let h=BE(c,o,f);return f===h&&typeof f=="string"&&(h=BE(c,o,`${t}${f==="default"?"":Oe(f)}`,f)),n===!1?h:{[n]:h}})};return i.propTypes={},i.filterProps=[t],i}function jve(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Bve={m:"margin",p:"padding"},zve={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Q3={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Vve=jve(e=>{if(e.length>2)if(Q3[e])e=Q3[e];else return[e];const[t,n]=e.split(""),r=Bve[t],o=zve[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Mj=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Rj=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Mj,...Rj];function QS(e,t,n,r){const o=GO(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i:Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i),s=o[a];return i>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof o=="function"?o:()=>{}}function qO(e){return QS(e,"spacing",8)}function lh(e,t){return typeof t=="string"||t==null?t:e(t)}function Hve(e,t){return n=>e.reduce((r,o)=>(r[o]=lh(t,n),r),{})}function Uve(e,t,n,r){if(!t.includes(n))return null;const o=Vve(n),i=Hve(o,r),a=e[n];return ql(e,a,i)}function cte(e,t){const n=qO(e.theme);return Object.keys(e).map(r=>Uve(e,t,r,n)).reduce(q0,{})}function so(e){return cte(e,Mj)}so.propTypes={};so.filterProps=Mj;function lo(e){return cte(e,Rj)}lo.propTypes={};lo.filterProps=Rj;function ute(e=8,t=qO({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function WO(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?q0(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Fs(e){return typeof e!="number"?e:`${e}px solid`}function al(e,t){return Eo({prop:e,themeKey:"borders",transform:t})}const Gve=al("border",Fs),qve=al("borderTop",Fs),Wve=al("borderRight",Fs),Kve=al("borderBottom",Fs),Yve=al("borderLeft",Fs),Qve=al("borderColor"),Xve=al("borderTopColor"),Jve=al("borderRightColor"),Zve=al("borderBottomColor"),ebe=al("borderLeftColor"),tbe=al("outline",Fs),nbe=al("outlineColor"),KO=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=QS(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:lh(t,r)});return ql(e,e.borderRadius,n)}return null};KO.propTypes={};KO.filterProps=["borderRadius"];WO(Gve,qve,Wve,Kve,Yve,Qve,Xve,Jve,Zve,ebe,KO,tbe,nbe);const YO=e=>{if(e.gap!==void 0&&e.gap!==null){const t=QS(e.theme,"spacing",8),n=r=>({gap:lh(t,r)});return ql(e,e.gap,n)}return null};YO.propTypes={};YO.filterProps=["gap"];const QO=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=QS(e.theme,"spacing",8),n=r=>({columnGap:lh(t,r)});return ql(e,e.columnGap,n)}return null};QO.propTypes={};QO.filterProps=["columnGap"];const XO=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=QS(e.theme,"spacing",8),n=r=>({rowGap:lh(t,r)});return ql(e,e.rowGap,n)}return null};XO.propTypes={};XO.filterProps=["rowGap"];const rbe=Eo({prop:"gridColumn"}),obe=Eo({prop:"gridRow"}),ibe=Eo({prop:"gridAutoFlow"}),abe=Eo({prop:"gridAutoColumns"}),sbe=Eo({prop:"gridAutoRows"}),lbe=Eo({prop:"gridTemplateColumns"}),cbe=Eo({prop:"gridTemplateRows"}),ube=Eo({prop:"gridTemplateAreas"}),dbe=Eo({prop:"gridArea"});WO(YO,QO,XO,rbe,obe,ibe,abe,sbe,lbe,cbe,ube,dbe);function Mg(e,t){return t==="grey"?t:e}const fbe=Eo({prop:"color",themeKey:"palette",transform:Mg}),pbe=Eo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Mg}),hbe=Eo({prop:"backgroundColor",themeKey:"palette",transform:Mg});WO(fbe,pbe,hbe);function Ga(e){return e<=1&&e!==0?`${e*100}%`:e}const mbe=Eo({prop:"width",transform:Ga}),Dj=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,s,l;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||UO[n];return r?((l=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ga(n)}};return ql(e,e.maxWidth,t)}return null};Dj.filterProps=["maxWidth"];const gbe=Eo({prop:"minWidth",transform:Ga}),ybe=Eo({prop:"height",transform:Ga}),vbe=Eo({prop:"maxHeight",transform:Ga}),bbe=Eo({prop:"minHeight",transform:Ga});Eo({prop:"size",cssProperty:"width",transform:Ga});Eo({prop:"size",cssProperty:"height",transform:Ga});const xbe=Eo({prop:"boxSizing"});WO(mbe,Dj,gbe,ybe,vbe,bbe,xbe);const XS={border:{themeKey:"borders",transform:Fs},borderTop:{themeKey:"borders",transform:Fs},borderRight:{themeKey:"borders",transform:Fs},borderBottom:{themeKey:"borders",transform:Fs},borderLeft:{themeKey:"borders",transform:Fs},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Fs},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:KO},color:{themeKey:"palette",transform:Mg},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Mg},backgroundColor:{themeKey:"palette",transform:Mg},p:{style:lo},pt:{style:lo},pr:{style:lo},pb:{style:lo},pl:{style:lo},px:{style:lo},py:{style:lo},padding:{style:lo},paddingTop:{style:lo},paddingRight:{style:lo},paddingBottom:{style:lo},paddingLeft:{style:lo},paddingX:{style:lo},paddingY:{style:lo},paddingInline:{style:lo},paddingInlineStart:{style:lo},paddingInlineEnd:{style:lo},paddingBlock:{style:lo},paddingBlockStart:{style:lo},paddingBlockEnd:{style:lo},m:{style:so},mt:{style:so},mr:{style:so},mb:{style:so},ml:{style:so},mx:{style:so},my:{style:so},margin:{style:so},marginTop:{style:so},marginRight:{style:so},marginBottom:{style:so},marginLeft:{style:so},marginX:{style:so},marginY:{style:so},marginInline:{style:so},marginInlineStart:{style:so},marginInlineEnd:{style:so},marginBlock:{style:so},marginBlockStart:{style:so},marginBlockEnd:{style:so},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:YO},rowGap:{style:XO},columnGap:{style:QO},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ga},maxWidth:{style:Dj},minWidth:{transform:Ga},height:{transform:Ga},maxHeight:{transform:Ga},minHeight:{transform:Ga},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 Sbe(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function wbe(e,t){return typeof e=="function"?e(t):e}function Cbe(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=GO(o,c)||{};return f?f(a):ql(a,r,g=>{let y=BE(h,u,g);return g===y&&typeof g=="string"&&(y=BE(h,u,`${n}${g==="default"?"":Oe(g)}`,g)),l===!1?y:{[l]:y}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??XS;function a(s){let l=s;if(typeof s=="function")l=s(o);else if(typeof s!="object")return s;if(!l)return null;const c=ste(o.breakpoints),u=Object.keys(c);let f=c;return Object.keys(l).forEach(h=>{const m=wbe(l[h],o);if(m!=null)if(typeof m=="object")if(i[h])f=q0(f,e(h,m,o,i));else{const g=ql({theme:o},m,y=>({[h]:y}));Sbe(g,m)?f[h]=t({sx:m,theme:o}):f=q0(f,g)}else f=q0(f,e(h,m,o,i))}),Rve(o,lte(u,f))}return Array.isArray(r)?r.map(a):a(r)}return t}const wf=Cbe();wf.filterProps=["sx"];function Ebe(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function nv(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,s=Mve(n),l=ute(o);let c=si({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...$ve,...i}},a);return c=_ve(c),c.applyStyles=Ebe,c=t.reduce((u,f)=>si(u,f),c),c.unstable_sxConfig={...XS,...a==null?void 0:a.unstable_sxConfig},c.unstable_sx=function(f){return wf({sx:f,theme:this})},c}function Tbe(e){return Object.keys(e).length===0}function kj(e=null){const t=x.useContext(KS);return!t||Tbe(t)?e:t}const Obe=nv();function JS(e=Obe){return kj(e)}function Ibe({styles:e,themeId:t,defaultTheme:n={}}){const r=JS(n),o=typeof e=="function"?e(t&&r[t]||r):e;return k.jsx(rte,{styles:o})}const Pbe=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??XS;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function JO(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=Pbe(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return vc(s)?{...r,...s}:r}:i={...r,...t},{...o,sx:i}}const X3=e=>e,Abe=()=>{let e=X3;return{configure(t){e=t},generate(t){return e(t)},reset(){e=X3}}},dte=Abe();function fte(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(wf);return x.forwardRef(function(l,c){const u=JS(n),{className:f,component:h="div",...m}=JO(l);return k.jsx(i,{as:h,ref:c,className:fe(f,o?o(r):r),theme:t&&u[t]||u,...m})})}const Rbe={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 qe(e,t,n="Mui"){const r=Rbe[t];return r?`${n}-${r}`:`${dte.generate(e)}-${t}`}function Ke(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=qe(e,o,n)}),r}function pte(e){const{variants:t,...n}=e,r={variants:t,style:q3(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=q3(o.style))}),r}const Dbe=nv();function Ca(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function kbe(e){return e?(t,n)=>n[e]:null}function _be(e,t,n){e.theme=Nbe(e.theme)?n:e.theme[t]||e.theme}function dE(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>dE(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return hte(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function hte(e,t,n=[]){var o;let r;e:for(let i=0;i{Ove(s,O=>O.filter(P=>P!==wf));const{name:c,slot:u,skipVariantsResolver:f,skipSx:h,overridesResolver:m=kbe(Fbe(u)),...g}=l,y=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,v=h||!1;let w=Ca;u==="Root"||u==="root"?w=r:u?w=o:Lbe(s)&&(w=void 0);const C=ote(s,{shouldForwardProp:w,label:$be(),...g}),E=O=>{if(typeof O=="function"&&O.__emotion_real!==O)return function(R){return dE(R,O)};if(vc(O)){const P=pte(O);return P.variants?function(D){return dE(D,P)}:P.style}return O},I=(...O)=>{const P=[],R=O.map(E),D=[];if(P.push(i),c&&m&&D.push(function(N){var L,V;const H=(V=(L=N.theme.components)==null?void 0:L[c])==null?void 0:V.styleOverrides;if(!H)return null;const j={};for(const W in H)j[W]=dE(N,H[W]);return m(N,j)}),c&&!y&&D.push(function(N){var j,L;const B=N.theme,H=(L=(j=B==null?void 0:B.components)==null?void 0:j[c])==null?void 0:L.variants;return H?hte(N,H):null}),v||D.push(wf),Array.isArray(R[0])){const _=R.shift(),N=new Array(P.length).fill(""),B=new Array(D.length).fill("");let H;H=[...N,..._,...B],H.raw=[...N,..._.raw,...B],P.unshift(H)}const M=[...P,...R,...D],A=C(...M);return s.muiName&&(A.muiName=s.muiName),A};return C.withConfig&&(I.withConfig=C.withConfig),I}}function $be(e,t){return void 0}function Nbe(e){for(const t in e)return!1;return!0}function Lbe(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Fbe(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Nn=mte();function ch(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],a=t[o];if(!a)n[o]=i||{};else if(!i)n[o]=a;else{n[o]={...a};for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)){const l=s;n[o][l]=ch(i[l],a[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function _j(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:ch(t.components[n].defaultProps,r)}function ZO({props:e,name:t,defaultTheme:n,themeId:r}){let o=JS(n);return r&&(o=o[r]||o),_j({theme:o,name:t,props:e})}const In=typeof window<"u"?x.useLayoutEffect:x.useEffect;function jbe(e,t,n,r,o){const[i,a]=x.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return In(()=>{if(!n)return;const s=n(e),l=()=>{a(s.matches)};return l(),s.addEventListener("change",l),()=>{s.removeEventListener("change",l)}},[e,n]),i}const Bbe={...FE},gte=Bbe.useSyncExternalStore;function zbe(e,t,n,r,o){const i=x.useCallback(()=>t,[t]),a=x.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return i},[i,e,r,o,n]),[s,l]=x.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const u=n(e);return[()=>u.matches,f=>(u.addEventListener("change",f),()=>{u.removeEventListener("change",f)})]},[i,n,e]);return gte(l,s,a)}function yte(e={}){const{themeId:t}=e;return function(r,o={}){let i=kj();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:s=!1,matchMedia:l=a?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:u=!1}=_j({name:"MuiUseMediaQuery",props:o,theme:i});let f=typeof r=="function"?r(i):r;return f=f.replace(/^@media( ?)/m,""),(gte!==void 0?zbe:jbe)(f,s,l,c,u)}}yte();function Vbe(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function $j(e,t=0,n=1){return Vbe(e,t,n)}function Hbe(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,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Cf(e){if(e.type)return e;if(e.charAt(0)==="#")return Cf(Hbe(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Bu(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=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(o))throw new Error(Bu(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Ube=e=>{const t=Cf(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},A0=(e,t)=>{try{return Ube(e)}catch{return e}};function eI(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function vte(e){e=Cf(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),eI({type:s,values:l})}function Q$(e){e=Cf(e);let t=e.type==="hsl"||e.type==="hsla"?Cf(vte(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 Gbe(e,t){const n=Q$(e),r=Q$(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Nt(e,t){return e=Cf(e),t=$j(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,eI(e)}function h1(e,t,n){try{return Nt(e,t)}catch{return e}}function zu(e,t){if(e=Cf(e),t=$j(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 eI(e)}function Ir(e,t,n){try{return zu(e,t)}catch{return e}}function Vu(e,t){if(e=Cf(e),t=$j(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 eI(e)}function Pr(e,t,n){try{return Vu(e,t)}catch{return e}}function bte(e,t=.15){return Q$(e)>.5?zu(e,t):Vu(e,t)}function m1(e,t,n){try{return bte(e,t)}catch{return e}}const rv=U.oneOfType([U.func,U.object]);function J3(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function $h(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Rg(e,t){var n,r,o;return x.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName))!==-1}function Mr(e){return e&&e.ownerDocument||document}function ns(e){return Mr(e).defaultView||window}function X$(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Z3=0;function qbe(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect(()=>{t==null&&(Z3+=1,n(`mui-${Z3}`))},[t]),r}const Wbe={...FE},eG=Wbe.useId;function bn(e){if(eG!==void 0){const t=eG();return e??t}return qbe(e)}function ia({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=x.useRef(e!==void 0),[i,a]=x.useState(t),s=o?e:i,l=x.useCallback(c=>{o||a(c)},[]);return[s,l]}function Je(e){const t=x.useRef(e);return In(()=>{t.current=e}),x.useRef((...n)=>(0,t.current)(...n)).current}function en(...e){const t=x.useRef(void 0),n=x.useCallback(r=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,s=a(r);return typeof s=="function"?s:()=>{a(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},e);return x.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}const tG={};function Xl(e,t){const n=x.useRef(tG);return n.current===tG&&(n.current=e(t)),n}const Kbe=[];function Nj(e){x.useEffect(e,Kbe)}class tI{constructor(){Ce(this,"currentId",null);Ce(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Ce(this,"disposeEffect",()=>this.clear)}static create(){return new tI}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function ko(){const e=Xl(tI.create).current;return Nj(e.disposeEffect),e}function zE(e){try{return e.matches(":focus-visible")}catch{}return!1}function xte(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const Lj=e=>{const t=x.useRef({});return x.useEffect(()=>{t.current=e}),t.current};function Ste(e){return x.Children.toArray(e).filter(t=>x.isValidElement(t))}const Ybe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Me(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let l=0;lr.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function nG(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 Cte(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const m=fe(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},y={...n,...o,...r};return m.length>0&&(y.className=m),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const a=VE({...o,...r}),s=nG(r),l=nG(o),c=t(a),u=fe(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f={...c==null?void 0:c.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},h={...c,...n,...l,...s};return u.length>0&&(h.className=u),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:c.ref}}function Dc(e,t,n){return typeof e=="function"?e(t,n):e}function Dn(e){var f;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:Dc(n,r),{props:s,internalRef:l}=Cte({...i,externalSlotProps:a}),c=en(l,a==null?void 0:a.ref,(f=e.additionalProps)==null?void 0:f.ref);return wte(t,{...s,ref:c},r)}function _f(e){var t;return parseInt(x.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const Ete=x.createContext(null);function Fj(){return x.useContext(Ete)}const Xbe=typeof Symbol=="function"&&Symbol.for,Jbe=Xbe?Symbol.for("mui.nested"):"__THEME_NESTED__";function Zbe(e,t){return typeof t=="function"?t(e):{...e,...t}}function e0e(e){const{children:t,theme:n}=e,r=Fj(),o=x.useMemo(()=>{const i=r===null?{...n}:Zbe(r,n);return i!=null&&(i[Jbe]=r!==null),i},[n,r]);return k.jsx(Ete.Provider,{value:o,children:t})}const Tte=x.createContext();function t0e({value:e,...t}){return k.jsx(Tte.Provider,{value:e??!0,...t})}const vr=()=>x.useContext(Tte)??!1,Ote=x.createContext(void 0);function n0e({value:e,children:t}){return k.jsx(Ote.Provider,{value:e,children:t})}function r0e(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?ch(o.defaultProps,r):!o.styleOverrides&&!o.variants?ch(o,r):r}function o0e({props:e,name:t}){const n=x.useContext(Ote);return r0e({props:e,name:t,theme:{components:n}})}const rG={};function oG(e,t,n,r=!1){return x.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?{...t,[e]:i}:i;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Ite(e){const{children:t,theme:n,themeId:r}=e,o=kj(rG),i=Fj()||rG,a=oG(r,o,n),s=oG(r,i,n,!0),l=(r?a[r]:a).direction==="rtl";return k.jsx(e0e,{theme:s,children:k.jsx(KS.Provider,{value:a,children:k.jsx(t0e,{value:l,children:k.jsx(n0e,{value:r?a[r].components:a.components,children:t})})})})}const iG={theme:void 0};function i0e(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(iG.theme=o.theme,i=pte(e(iG)),t=i,n=o.theme),i}}const jj="mode",Bj="color-scheme",a0e="data-color-scheme";function s0e(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=jj,colorSchemeStorageKey:i=Bj,attribute:a=a0e,colorSchemeNode:s="document.documentElement",nonce:l}=e||{};let c="",u=a;if(a==="class"&&(u=".%s"),a==="data"&&(u="[data-%s]"),u.startsWith(".")){const h=u.substring(1);c+=`${s}.classList.remove('${h}'.replace('%s', light), '${h}'.replace('%s', dark)); ${s}.classList.add('${h}'.replace('%s', colorScheme));`}const f=u.match(/\[([^\]]+)\]/);if(f){const[h,m]=f[1].split("=");m||(c+=`${s}.removeAttribute('${h}'.replace('%s', light)); ${s}.removeAttribute('${h}'.replace('%s', dark));`),c+=` ${s}.setAttribute('${h}'.replace('%s', colorScheme), ${m?`${m}.replace('%s', colorScheme)`:'""'});`}else c+=`${s}.setAttribute('${u}', colorScheme);`;return k.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() { @@ -56,14 +56,14 @@ try { if (colorScheme) { ${c} } -} catch(e){}})();`}},"mui-color-scheme-init")}function s0e(){}const l0e=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return s0e;const r=o=>{const i=o.newValue;o.key===e&&n(i)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function vR(){}function iG(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Ite(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 c0e(e){return Ite(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function u0e(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=Lj,colorSchemeStorageKey:a=Fj,storageWindow:s=typeof window>"u"?void 0:window,storageManager:l=l0e,noSsr:c=!1}=e,u=o.join(","),f=o.length>1,h=x.useMemo(()=>l==null?void 0:l({key:i,storageWindow:s}),[l,i,s]),m=x.useMemo(()=>l==null?void 0:l({key:`${a}-light`,storageWindow:s}),[l,a,s]),g=x.useMemo(()=>l==null?void 0:l({key:`${a}-dark`,storageWindow:s}),[l,a,s]),[y,v]=x.useState(()=>{const D=(h==null?void 0:h.get(t))||t,M=(m==null?void 0:m.get(n))||n,A=(g==null?void 0:g.get(r))||r;return{mode:D,systemMode:iG(D),lightColorScheme:M,darkColorScheme:A}}),[w,C]=x.useState(c||!f);x.useEffect(()=>{C(!0)},[]);const E=c0e(y),I=x.useCallback(D=>{v(M=>{if(D===M.mode)return M;const A=D??t;return h==null||h.set(A),{...M,mode:A,systemMode:iG(A)}})},[h,t]),O=x.useCallback(D=>{D?typeof D=="string"?D&&!u.includes(D)?console.error(`\`${D}\` does not exist in \`theme.colorSchemes\`.`):v(M=>{const A={...M};return Ite(M,_=>{_==="light"&&(m==null||m.set(D),A.lightColorScheme=D),_==="dark"&&(g==null||g.set(D),A.darkColorScheme=D)}),A}):v(M=>{const A={...M},_=D.light===null?n:D.light,N=D.dark===null?r:D.dark;return _&&(u.includes(_)?(A.lightColorScheme=_,m==null||m.set(_)):console.error(`\`${_}\` does not exist in \`theme.colorSchemes\`.`)),N&&(u.includes(N)?(A.darkColorScheme=N,g==null||g.set(N)):console.error(`\`${N}\` does not exist in \`theme.colorSchemes\`.`)),A}):v(M=>(m==null||m.set(n),g==null||g.set(r),{...M,lightColorScheme:n,darkColorScheme:r}))},[u,m,g,n,r]),P=x.useCallback(D=>{y.mode==="system"&&v(M=>{const A=D!=null&&D.matches?"dark":"light";return M.systemMode===A?M:{...M,systemMode:A}})},[y.mode]),R=x.useRef(P);return R.current=P,x.useEffect(()=>{if(typeof window.matchMedia!="function"||!f)return;const D=(...A)=>R.current(...A),M=window.matchMedia("(prefers-color-scheme: dark)");return M.addListener(D),D(M),()=>{M.removeListener(D)}},[f]),x.useEffect(()=>{if(f){const D=(h==null?void 0:h.subscribe(_=>{(!_||["light","dark","system"].includes(_))&&I(_||t)}))||vR,M=(m==null?void 0:m.subscribe(_=>{(!_||u.match(_))&&O({light:_})}))||vR,A=(g==null?void 0:g.subscribe(_=>{(!_||u.match(_))&&O({dark:_})}))||vR;return()=>{D(),M(),A()}}},[O,I,u,t,s,f,h,m,g]),{...y,mode:w?y.mode:void 0,systemMode:w?y.systemMode:void 0,colorScheme:w?E:void 0,setMode:I,setColorScheme:O}}const d0e="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function f0e(e){const{themeId:t,theme:n={},modeStorageKey:r=Lj,colorSchemeStorageKey:o=Fj,disableTransitionOnChange:i=!1,defaultColorScheme:a,resolveTheme:s}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=x.createContext(void 0),u=()=>x.useContext(c)||l,f={},h={};function m(w){var We,rt,ut,Be;const{children:C,theme:E,modeStorageKey:I=r,colorSchemeStorageKey:O=o,disableTransitionOnChange:P=i,storageManager:R,storageWindow:D=typeof window>"u"?void 0:window,documentNode:M=typeof document>"u"?void 0:document,colorSchemeNode:A=typeof document>"u"?void 0:document.documentElement,disableNestedContext:_=!1,disableStyleSheetGeneration:N=!1,defaultMode:B="system",forceThemeRerender:H=!1,noSsr:j}=w,L=x.useRef(!1),V=Nj(),W=x.useContext(c),K=!!W&&!_,G=x.useMemo(()=>E||(typeof n=="function"?n():n),[E]),q=G[t],Y=q||G,{colorSchemes:J=f,components:ie=h,cssVarPrefix:se}=Y,ce=Object.keys(J).filter(et=>!!J[et]).join(","),ye=x.useMemo(()=>ce.split(","),[ce]),Se=typeof a=="string"?a:a.light,ne=typeof a=="string"?a:a.dark,le=J[Se]&&J[ne]?B:((rt=(We=J[Y.defaultColorScheme])==null?void 0:We.palette)==null?void 0:rt.mode)||((ut=Y.palette)==null?void 0:ut.mode),{mode:de,setMode:oe,systemMode:ue,lightColorScheme:pe,darkColorScheme:Ce,colorScheme:xe,setColorScheme:Re}=u0e({supportedColorSchemes:ye,defaultLightColorScheme:Se,defaultDarkColorScheme:ne,modeStorageKey:I,colorSchemeStorageKey:O,defaultMode:le,storageManager:R,storageWindow:D,noSsr:j});let he=de,Ie=xe;K&&(he=W.mode,Ie=W.colorScheme);let ve=Ie||Y.defaultColorScheme;Y.vars&&!H&&(ve=Y.defaultColorScheme);const Oe=x.useMemo(()=>{var It;const et=((It=Y.generateThemeVars)==null?void 0:It.call(Y))||Y.vars,Le={...Y,components:ie,colorSchemes:J,cssVarPrefix:se,vars:et};if(typeof Le.generateSpacing=="function"&&(Le.spacing=Le.generateSpacing()),ve){const Lt=J[ve];Lt&&typeof Lt=="object"&&Object.keys(Lt).forEach(nt=>{Lt[nt]&&typeof Lt[nt]=="object"?Le[nt]={...Le[nt],...Lt[nt]}:Le[nt]=Lt[nt]})}return s?s(Le):Le},[Y,ve,ie,J,se]),te=Y.colorSchemeSelector;In(()=>{if(Ie&&A&&te&&te!=="media"){const et=te;let Le=te;if(et==="class"&&(Le=".%s"),et==="data"&&(Le="[data-%s]"),et!=null&&et.startsWith("data-")&&!et.includes("%s")&&(Le=`[${et}="%s"]`),Le.startsWith("."))A.classList.remove(...ye.map(It=>Le.substring(1).replace("%s",It))),A.classList.add(Le.substring(1).replace("%s",Ie));else{const It=Le.replace("%s",Ie).match(/\[([^\]]+)\]/);if(It){const[Lt,nt]=It[1].split("=");nt||ye.forEach(lt=>{A.removeAttribute(Lt.replace(Ie,lt))}),A.setAttribute(Lt,nt?nt.replace(/"|'/g,""):"")}else A.setAttribute(Le,Ie)}}},[Ie,te,A,ye]),x.useEffect(()=>{let et;if(P&&L.current&&M){const Le=M.createElement("style");Le.appendChild(M.createTextNode(d0e)),M.head.appendChild(Le),window.getComputedStyle(M.body),et=setTimeout(()=>{M.head.removeChild(Le)},1)}return()=>{clearTimeout(et)}},[Ie,P,M]),x.useEffect(()=>(L.current=!0,()=>{L.current=!1}),[]);const Ee=x.useMemo(()=>({allColorSchemes:ye,colorScheme:Ie,darkColorScheme:Ce,lightColorScheme:pe,mode:he,setColorScheme:Re,setMode:oe,systemMode:ue}),[ye,Ie,Ce,pe,he,Re,oe,ue,Oe.colorSchemeSelector]);let De=!0;(N||Y.cssVariables===!1||K&&(V==null?void 0:V.cssVarPrefix)===se)&&(De=!1);const Ve=k.jsxs(x.Fragment,{children:[k.jsx(Ote,{themeId:q?t:void 0,theme:Oe,children:C}),De&&k.jsx(nte,{styles:((Be=Oe.generateStyleSheets)==null?void 0:Be.call(Oe))||[]})]});return K?Ve:k.jsx(c.Provider,{value:Ee,children:Ve})}const g=typeof a=="string"?a:a.light,y=typeof a=="string"?a:a.dark;return{CssVarsProvider:m,useColorScheme:u,getInitColorSchemeScript:w=>a0e({colorSchemeStorageKey:o,defaultLightColorScheme:g,defaultDarkColorScheme:y,modeStorageKey:r,...w})}}function p0e(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const aG=(e,t,n,r=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},h0e=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([s,l])=>{(!n||n&&!n([...i,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,s],Array.isArray(l)?[...a,s]:a):t([...i,s],l,a))})}r(e)},m0e=(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 bR(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return h0e(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(s,l))){const u=`--${n?`${n}-`:""}${s.join("-")}`,f=m0e(s,l);Object.assign(o,{[u]:f}),aG(i,s,`var(${u})`,c),aG(a,s,`var(${u}, ${f})`,c)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function g0e(e,t={}){const{getSelector:n=v,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:s="light",...l}=e,{vars:c,css:u,varsWithDefaults:f}=bR(l,t);let h=f;const m={},{[s]:g,...y}=i;if(Object.entries(y||{}).forEach(([E,I])=>{const{vars:O,css:P,varsWithDefaults:R}=bR(I,t);h=si(h,R),m[E]={css:P,vars:O}}),g){const{css:E,vars:I,varsWithDefaults:O}=bR(g,t);h=si(h,O),m[s]={css:E,vars:I}}function v(E,I){var P,R;let O=o;if(o==="class"&&(O=".%s"),o==="data"&&(O="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(O=`[${o}="%s"]`),E){if(O==="media")return e.defaultColorScheme===E?":root":{[`@media (prefers-color-scheme: ${((R=(P=i[E])==null?void 0:P.palette)==null?void 0:R.mode)||E})`]:{":root":I}};if(O)return e.defaultColorScheme===E?`:root, ${O.replace("%s",String(E))}`:O.replace("%s",String(E))}return":root"}return{vars:h,generateThemeVars:()=>{let E={...c};return Object.entries(m).forEach(([,{vars:I}])=>{E=si(E,I)}),E},generateStyleSheets:()=>{var D,M;const E=[],I=e.defaultColorScheme||"light";function O(A,_){Object.keys(_).length&&E.push(typeof A=="string"?{[A]:{..._}}:A)}O(n(void 0,{...u}),u);const{[I]:P,...R}=m;if(P){const{css:A}=P,_=(M=(D=i[I])==null?void 0:D.palette)==null?void 0:M.mode,N=!r&&_?{colorScheme:_,...A}:{...A};O(n(I,{...N}),N)}return Object.entries(R).forEach(([A,{css:_}])=>{var H,j;const N=(j=(H=i[A])==null?void 0:H.palette)==null?void 0:j.mode,B=!r&&N?{colorScheme:N,..._}:{..._};O(n(A,{...B}),B)}),E}}}function y0e(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 v0e=ev(),b0e=Nn("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Te(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),x0e=e=>ZO({props:e,name:"MuiContainer",defaultTheme:v0e}),S0e=(e,t)=>{const n=l=>qe(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,s={root:["root",a&&`maxWidth${Te(String(a))}`,o&&"fixed",i&&"disableGutters"]};return Me(s,n,r)};function w0e(e={}){const{createStyledComponent:t=b0e,useThemeProps:n=x0e,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:s})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,c)=>{const u=c,f=a.breakpoints.values[u];return f!==0&&(l[a.breakpoints.up(u)]={maxWidth:`${f}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>({...s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}}));return x.forwardRef(function(s,l){const c=n(s),{className:u,component:f="div",disableGutters:h=!1,fixed:m=!1,maxWidth:g="lg",classes:y,...v}=c,w={...c,component:f,disableGutters:h,fixed:m,maxWidth:g},C=S0e(w,r);return k.jsx(o,{as:f,ownerState:w,className:fe(C.root,u),ref:l,...v})})}const C0e=(e,t)=>e.filter(n=>t.includes(n)),nv=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,i)=>{n((a,s)=>{i<=e.keys.length-1&&(i===0?Object.assign(a,s):a[e.up(e.keys[i])]=s)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:C0e(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.includes(i)){const a=t[i];a!==void 0&&n((s,l)=>{r===i?Object.assign(s,l):s[e.up(i)]=l},a)}}):(typeof t=="number"||typeof t=="string")&&n((o,i)=>{Object.assign(o,i)},t)};function VE(e){return`--Grid-${e}Spacing`}function tI(e){return`--Grid-parent-${e}Spacing`}const sG="--Grid-columns",Rg="--Grid-parent-columns",E0e=({theme:e,ownerState:t})=>{const n={};return nv(e.breakpoints,t.size,(r,o)=>{let i={};o==="grow"&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${Rg}) - (var(${Rg}) - ${o}) * (var(${tI("column")}) / var(${Rg})))`}),r(n,i)}),n},T0e=({theme:e,ownerState:t})=>{const n={};return nv(e.breakpoints,t.offset,(r,o)=>{let i={};o==="auto"&&(i={marginLeft:"auto"}),typeof o=="number"&&(i={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${Rg}) + var(${tI("column")}) * ${o} / var(${Rg}))`}),r(n,i)}),n},O0e=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[sG]:12};return nv(e.breakpoints,t.columns,(r,o)=>{const i=o??12;r(n,{[sG]:i,"> *":{[Rg]:i}})}),n},I0e=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return nv(e.breakpoints,t.rowSpacing,(r,o)=>{var a;const i=typeof o=="string"?o:(a=e.spacing)==null?void 0:a.call(e,o);r(n,{[VE("row")]:i,"> *":{[tI("row")]:i}})}),n},P0e=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return nv(e.breakpoints,t.columnSpacing,(r,o)=>{var a;const i=typeof o=="string"?o:(a=e.spacing)==null?void 0:a.call(e,o);r(n,{[VE("column")]:i,"> *":{[tI("column")]:i}})}),n},A0e=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return nv(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},M0e=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${VE("row")}) var(${VE("column")})`}}),R0e=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},D0e=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,i])=>{n(i)&&r.push(`spacing-${o}-${String(i)}`)}),r}return[]},k0e=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];function _0e(e,t){e.item!==void 0&&delete e.item,e.zeroMinWidth!==void 0&&delete e.zeroMinWidth,t.keys.forEach(n=>{e[n]!==void 0&&delete e[n]})}const $0e=ev(),N0e=Nn("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function L0e(e){return ZO({props:e,name:"MuiGrid",defaultTheme:$0e})}function F0e(e={}){const{createStyledComponent:t=N0e,useThemeProps:n=L0e,useTheme:r=XS,componentName:o="MuiGrid"}=e,i=(c,u)=>{const{container:f,direction:h,spacing:m,wrap:g,size:y}=c,v={root:["root",f&&"container",g!=="wrap"&&`wrap-xs-${String(g)}`,...k0e(h),...R0e(y),...f?D0e(m,u.breakpoints.keys[0]):[]]};return Me(v,w=>qe(o,w),{})};function a(c,u,f=()=>!0){const h={};return c===null||(Array.isArray(c)?c.forEach((m,g)=>{m!==null&&f(m)&&u.keys[g]&&(h[u.keys[g]]=m)}):typeof c=="object"?Object.keys(c).forEach(m=>{const g=c[m];g!=null&&f(g)&&(h[m]=g)}):h[u.keys[0]]=c),h}const s=t(O0e,P0e,I0e,E0e,A0e,M0e,T0e),l=x.forwardRef(function(u,f){const h=r(),m=n(u),g=XO(m);_0e(g,h.breakpoints);const{className:y,children:v,columns:w=12,container:C=!1,component:E="div",direction:I="row",wrap:O="wrap",size:P={},offset:R={},spacing:D=0,rowSpacing:M=D,columnSpacing:A=D,unstable_level:_=0,...N}=g,B=a(P,h.breakpoints,q=>q!==!1),H=a(R,h.breakpoints),j=u.columns??(_?void 0:w),L=u.spacing??(_?void 0:D),V=u.rowSpacing??u.spacing??(_?void 0:M),W=u.columnSpacing??u.spacing??(_?void 0:A),K={...g,level:_,columns:j,container:C,direction:I,wrap:O,spacing:L,rowSpacing:V,columnSpacing:W,size:B,offset:H},G=i(K,h);return k.jsx(s,{ref:f,as:E,ownerState:K,className:fe(G.root,y),...N,children:x.Children.map(v,q=>{var Y;return x.isValidElement(q)&&Mg(q,["Grid"])&&C&&q.props.container?x.cloneElement(q,{unstable_level:((Y=q.props)==null?void 0:Y.unstable_level)??_+1}):q})})});return l.muiName="Grid",l}const j0e=ev(),B0e=Nn("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function z0e(e){return ZO({props:e,name:"MuiStack",defaultTheme:j0e})}function V0e(e,t){const n=x.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],U0e=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Hl({theme:t},yR({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=GO(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=yR({values:e.direction,base:o}),a=yR({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const h=c>0?i[u[c-1]]:"column";i[l]=h}}),n=si(n,Hl({theme:t},a,(l,c)=>e.useFlexGap?{gap:lh(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${H0e(c?i[c]:e.direction)}`]:lh(r,l)}}))}return n=Nve(t.breakpoints,n),n};function G0e(e={}){const{createStyledComponent:t=B0e,useThemeProps:n=z0e,componentName:r="MuiStack"}=e,o=()=>Me({root:["root"]},l=>qe(r,l),{}),i=t(U0e);return x.forwardRef(function(l,c){const u=n(l),f=XO(u),{component:h="div",direction:m="column",spacing:g=0,divider:y,children:v,className:w,useFlexGap:C=!1,...E}=f,I={direction:m,spacing:g,useFlexGap:C},O=o();return k.jsx(i,{as:h,ownerState:I,ref:c,className:fe(O.root,w),...E,children:y?V0e(v,y):v})})}const xx={black:"#000",white:"#fff"},q0e={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"},$m={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Nm={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Gb={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Lm={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Fm={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},jm={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Pte(){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:xx.white,default:xx.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 W0e=Pte();function Ate(){return{text:{primary:xx.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:xx.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 lG=Ate();function cG(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Vu(e.main,o):t==="dark"&&(e.dark=zu(e.main,i)))}function K0e(e="light"){return e==="dark"?{main:Lm[200],light:Lm[50],dark:Lm[400]}:{main:Lm[700],light:Lm[400],dark:Lm[800]}}function Y0e(e="light"){return e==="dark"?{main:$m[200],light:$m[50],dark:$m[400]}:{main:$m[500],light:$m[300],dark:$m[700]}}function Q0e(e="light"){return e==="dark"?{main:Nm[500],light:Nm[300],dark:Nm[700]}:{main:Nm[700],light:Nm[400],dark:Nm[800]}}function X0e(e="light"){return e==="dark"?{main:Fm[400],light:Fm[300],dark:Fm[700]}:{main:Fm[700],light:Fm[500],dark:Fm[900]}}function Z0e(e="light"){return e==="dark"?{main:jm[400],light:jm[300],dark:jm[700]}:{main:jm[800],light:jm[500],dark:jm[900]}}function J0e(e="light"){return e==="dark"?{main:Gb[400],light:Gb[300],dark:Gb[700]}:{main:"#ed6c02",light:Gb[500],dark:Gb[900]}}function jj(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||K0e(t),a=e.secondary||Y0e(t),s=e.error||Q0e(t),l=e.info||X0e(t),c=e.success||Z0e(t),u=e.warning||J0e(t);function f(y){return Ube(y,lG.text.primary)>=n?lG.text.primary:W0e.text.primary}const h=({color:y,name:v,mainShade:w=500,lightShade:C=300,darkShade:E=700})=>{if(y={...y},!y.main&&y[w]&&(y.main=y[w]),!y.hasOwnProperty("main"))throw new Error(Bu(11,v?` (${v})`:"",w));if(typeof y.main!="string")throw new Error(Bu(12,v?` (${v})`:"",JSON.stringify(y.main)));return cG(y,"light",C,r),cG(y,"dark",E,r),y.contrastText||(y.contrastText=f(y.main)),y};let m;return t==="light"?m=Pte():t==="dark"&&(m=Ate()),si({common:{...xx},mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:u,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:q0e,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:r,...m},o)}function exe(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function txe(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function nxe(e){return Math.round(e*1e5)/1e5}const uG={textTransform:"uppercase"},dG='"Roboto", "Helvetica", "Arial", sans-serif';function Mte(e,t){const{fontFamily:n=dG,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...f}=typeof t=="function"?t(e):t,h=r/14,m=u||(v=>`${v/l*h}rem`),g=(v,w,C,E,I)=>({fontFamily:n,fontWeight:v,fontSize:m(w),lineHeight:C,...n===dG?{letterSpacing:`${nxe(E/w)}em`}:{},...I,...c}),y={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(a,14,1.75,.4,uG),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,uG),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return si({htmlFontSize:l,pxToRem:m,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...y},f,{clone:!1})}const rxe=.2,oxe=.14,ixe=.12;function qr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${rxe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${oxe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ixe})`].join(",")}const axe=["none",qr(0,2,1,-1,0,1,1,0,0,1,3,0),qr(0,3,1,-2,0,2,2,0,0,1,5,0),qr(0,3,3,-2,0,3,4,0,0,1,8,0),qr(0,2,4,-1,0,4,5,0,0,1,10,0),qr(0,3,5,-1,0,5,8,0,0,1,14,0),qr(0,3,5,-1,0,6,10,0,0,1,18,0),qr(0,4,5,-2,0,7,10,1,0,2,16,1),qr(0,5,5,-3,0,8,10,1,0,3,14,2),qr(0,5,6,-3,0,9,12,1,0,3,16,2),qr(0,6,6,-3,0,10,14,1,0,4,18,3),qr(0,6,7,-4,0,11,15,1,0,4,20,3),qr(0,7,8,-4,0,12,17,2,0,5,22,4),qr(0,7,8,-4,0,13,19,2,0,5,24,4),qr(0,7,9,-4,0,14,21,2,0,5,26,4),qr(0,8,9,-5,0,15,22,2,0,6,28,5),qr(0,8,10,-5,0,16,24,2,0,6,30,5),qr(0,8,11,-5,0,17,26,2,0,6,32,5),qr(0,9,11,-5,0,18,28,2,0,7,34,6),qr(0,9,12,-6,0,19,29,2,0,7,36,6),qr(0,10,13,-6,0,20,31,3,0,8,38,7),qr(0,10,13,-6,0,21,33,3,0,8,40,7),qr(0,10,14,-6,0,22,35,3,0,8,42,7),qr(0,11,14,-7,0,23,36,3,0,9,44,8),qr(0,11,15,-7,0,24,38,3,0,9,46,8)],sxe={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)"},Rte={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function fG(e){return`${Math.round(e)}ms`}function lxe(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function cxe(e){const t={...sxe,...e.easing},n={...Rte,...e.duration};return{getAutoHeightDuration:lxe,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0,...c}=i;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:fG(a)} ${s} ${typeof l=="string"?l:fG(l)}`).join(",")},...e,easing:t,duration:n}}const uxe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function dxe(e){return mc(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Dte(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i(!t&&typeof window<"u"&&(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return l0e;const r=o=>{const i=o.newValue;o.key===e&&n(i)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function xR(){}function aG(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Pte(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 u0e(e){return Pte(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function d0e(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=jj,colorSchemeStorageKey:a=Bj,storageWindow:s=typeof window>"u"?void 0:window,storageManager:l=c0e,noSsr:c=!1}=e,u=o.join(","),f=o.length>1,h=x.useMemo(()=>l==null?void 0:l({key:i,storageWindow:s}),[l,i,s]),m=x.useMemo(()=>l==null?void 0:l({key:`${a}-light`,storageWindow:s}),[l,a,s]),g=x.useMemo(()=>l==null?void 0:l({key:`${a}-dark`,storageWindow:s}),[l,a,s]),[y,v]=x.useState(()=>{const D=(h==null?void 0:h.get(t))||t,M=(m==null?void 0:m.get(n))||n,A=(g==null?void 0:g.get(r))||r;return{mode:D,systemMode:aG(D),lightColorScheme:M,darkColorScheme:A}}),[w,C]=x.useState(c||!f);x.useEffect(()=>{C(!0)},[]);const E=u0e(y),I=x.useCallback(D=>{v(M=>{if(D===M.mode)return M;const A=D??t;return h==null||h.set(A),{...M,mode:A,systemMode:aG(A)}})},[h,t]),O=x.useCallback(D=>{D?typeof D=="string"?D&&!u.includes(D)?console.error(`\`${D}\` does not exist in \`theme.colorSchemes\`.`):v(M=>{const A={...M};return Pte(M,_=>{_==="light"&&(m==null||m.set(D),A.lightColorScheme=D),_==="dark"&&(g==null||g.set(D),A.darkColorScheme=D)}),A}):v(M=>{const A={...M},_=D.light===null?n:D.light,N=D.dark===null?r:D.dark;return _&&(u.includes(_)?(A.lightColorScheme=_,m==null||m.set(_)):console.error(`\`${_}\` does not exist in \`theme.colorSchemes\`.`)),N&&(u.includes(N)?(A.darkColorScheme=N,g==null||g.set(N)):console.error(`\`${N}\` does not exist in \`theme.colorSchemes\`.`)),A}):v(M=>(m==null||m.set(n),g==null||g.set(r),{...M,lightColorScheme:n,darkColorScheme:r}))},[u,m,g,n,r]),P=x.useCallback(D=>{y.mode==="system"&&v(M=>{const A=D!=null&&D.matches?"dark":"light";return M.systemMode===A?M:{...M,systemMode:A}})},[y.mode]),R=x.useRef(P);return R.current=P,x.useEffect(()=>{if(typeof window.matchMedia!="function"||!f)return;const D=(...A)=>R.current(...A),M=window.matchMedia("(prefers-color-scheme: dark)");return M.addListener(D),D(M),()=>{M.removeListener(D)}},[f]),x.useEffect(()=>{if(f){const D=(h==null?void 0:h.subscribe(_=>{(!_||["light","dark","system"].includes(_))&&I(_||t)}))||xR,M=(m==null?void 0:m.subscribe(_=>{(!_||u.match(_))&&O({light:_})}))||xR,A=(g==null?void 0:g.subscribe(_=>{(!_||u.match(_))&&O({dark:_})}))||xR;return()=>{D(),M(),A()}}},[O,I,u,t,s,f,h,m,g]),{...y,mode:w?y.mode:void 0,systemMode:w?y.systemMode:void 0,colorScheme:w?E:void 0,setMode:I,setColorScheme:O}}const f0e="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function p0e(e){const{themeId:t,theme:n={},modeStorageKey:r=jj,colorSchemeStorageKey:o=Bj,disableTransitionOnChange:i=!1,defaultColorScheme:a,resolveTheme:s}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=x.createContext(void 0),u=()=>x.useContext(c)||l,f={},h={};function m(w){var We,rt,ut,Be;const{children:C,theme:E,modeStorageKey:I=r,colorSchemeStorageKey:O=o,disableTransitionOnChange:P=i,storageManager:R,storageWindow:D=typeof window>"u"?void 0:window,documentNode:M=typeof document>"u"?void 0:document,colorSchemeNode:A=typeof document>"u"?void 0:document.documentElement,disableNestedContext:_=!1,disableStyleSheetGeneration:N=!1,defaultMode:B="system",forceThemeRerender:H=!1,noSsr:j}=w,L=x.useRef(!1),V=Fj(),W=x.useContext(c),K=!!W&&!_,G=x.useMemo(()=>E||(typeof n=="function"?n():n),[E]),q=G[t],Y=q||G,{colorSchemes:Z=f,components:ie=h,cssVarPrefix:se}=Y,ce=Object.keys(Z).filter(et=>!!Z[et]).join(","),ye=x.useMemo(()=>ce.split(","),[ce]),Se=typeof a=="string"?a:a.light,ne=typeof a=="string"?a:a.dark,le=Z[Se]&&Z[ne]?B:((rt=(We=Z[Y.defaultColorScheme])==null?void 0:We.palette)==null?void 0:rt.mode)||((ut=Y.palette)==null?void 0:ut.mode),{mode:de,setMode:oe,systemMode:ue,lightColorScheme:pe,darkColorScheme:Ee,colorScheme:xe,setColorScheme:Re}=d0e({supportedColorSchemes:ye,defaultLightColorScheme:Se,defaultDarkColorScheme:ne,modeStorageKey:I,colorSchemeStorageKey:O,defaultMode:le,storageManager:R,storageWindow:D,noSsr:j});let he=de,Pe=xe;K&&(he=W.mode,Pe=W.colorScheme);let ve=Pe||Y.defaultColorScheme;Y.vars&&!H&&(ve=Y.defaultColorScheme);const Ie=x.useMemo(()=>{var It;const et=((It=Y.generateThemeVars)==null?void 0:It.call(Y))||Y.vars,Le={...Y,components:ie,colorSchemes:Z,cssVarPrefix:se,vars:et};if(typeof Le.generateSpacing=="function"&&(Le.spacing=Le.generateSpacing()),ve){const Lt=Z[ve];Lt&&typeof Lt=="object"&&Object.keys(Lt).forEach(nt=>{Lt[nt]&&typeof Lt[nt]=="object"?Le[nt]={...Le[nt],...Lt[nt]}:Le[nt]=Lt[nt]})}return s?s(Le):Le},[Y,ve,ie,Z,se]),te=Y.colorSchemeSelector;In(()=>{if(Pe&&A&&te&&te!=="media"){const et=te;let Le=te;if(et==="class"&&(Le=".%s"),et==="data"&&(Le="[data-%s]"),et!=null&&et.startsWith("data-")&&!et.includes("%s")&&(Le=`[${et}="%s"]`),Le.startsWith("."))A.classList.remove(...ye.map(It=>Le.substring(1).replace("%s",It))),A.classList.add(Le.substring(1).replace("%s",Pe));else{const It=Le.replace("%s",Pe).match(/\[([^\]]+)\]/);if(It){const[Lt,nt]=It[1].split("=");nt||ye.forEach(lt=>{A.removeAttribute(Lt.replace(Pe,lt))}),A.setAttribute(Lt,nt?nt.replace(/"|'/g,""):"")}else A.setAttribute(Le,Pe)}}},[Pe,te,A,ye]),x.useEffect(()=>{let et;if(P&&L.current&&M){const Le=M.createElement("style");Le.appendChild(M.createTextNode(f0e)),M.head.appendChild(Le),window.getComputedStyle(M.body),et=setTimeout(()=>{M.head.removeChild(Le)},1)}return()=>{clearTimeout(et)}},[Pe,P,M]),x.useEffect(()=>(L.current=!0,()=>{L.current=!1}),[]);const Te=x.useMemo(()=>({allColorSchemes:ye,colorScheme:Pe,darkColorScheme:Ee,lightColorScheme:pe,mode:he,setColorScheme:Re,setMode:oe,systemMode:ue}),[ye,Pe,Ee,pe,he,Re,oe,ue,Ie.colorSchemeSelector]);let De=!0;(N||Y.cssVariables===!1||K&&(V==null?void 0:V.cssVarPrefix)===se)&&(De=!1);const Ve=k.jsxs(x.Fragment,{children:[k.jsx(Ite,{themeId:q?t:void 0,theme:Ie,children:C}),De&&k.jsx(rte,{styles:((Be=Ie.generateStyleSheets)==null?void 0:Be.call(Ie))||[]})]});return K?Ve:k.jsx(c.Provider,{value:Te,children:Ve})}const g=typeof a=="string"?a:a.light,y=typeof a=="string"?a:a.dark;return{CssVarsProvider:m,useColorScheme:u,getInitColorSchemeScript:w=>s0e({colorSchemeStorageKey:o,defaultLightColorScheme:g,defaultDarkColorScheme:y,modeStorageKey:r,...w})}}function h0e(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const sG=(e,t,n,r=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},m0e=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([s,l])=>{(!n||n&&!n([...i,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,s],Array.isArray(l)?[...a,s]:a):t([...i,s],l,a))})}r(e)},g0e=(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 SR(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return m0e(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(s,l))){const u=`--${n?`${n}-`:""}${s.join("-")}`,f=g0e(s,l);Object.assign(o,{[u]:f}),sG(i,s,`var(${u})`,c),sG(a,s,`var(${u}, ${f})`,c)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function y0e(e,t={}){const{getSelector:n=v,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:s="light",...l}=e,{vars:c,css:u,varsWithDefaults:f}=SR(l,t);let h=f;const m={},{[s]:g,...y}=i;if(Object.entries(y||{}).forEach(([E,I])=>{const{vars:O,css:P,varsWithDefaults:R}=SR(I,t);h=si(h,R),m[E]={css:P,vars:O}}),g){const{css:E,vars:I,varsWithDefaults:O}=SR(g,t);h=si(h,O),m[s]={css:E,vars:I}}function v(E,I){var P,R;let O=o;if(o==="class"&&(O=".%s"),o==="data"&&(O="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(O=`[${o}="%s"]`),E){if(O==="media")return e.defaultColorScheme===E?":root":{[`@media (prefers-color-scheme: ${((R=(P=i[E])==null?void 0:P.palette)==null?void 0:R.mode)||E})`]:{":root":I}};if(O)return e.defaultColorScheme===E?`:root, ${O.replace("%s",String(E))}`:O.replace("%s",String(E))}return":root"}return{vars:h,generateThemeVars:()=>{let E={...c};return Object.entries(m).forEach(([,{vars:I}])=>{E=si(E,I)}),E},generateStyleSheets:()=>{var D,M;const E=[],I=e.defaultColorScheme||"light";function O(A,_){Object.keys(_).length&&E.push(typeof A=="string"?{[A]:{..._}}:A)}O(n(void 0,{...u}),u);const{[I]:P,...R}=m;if(P){const{css:A}=P,_=(M=(D=i[I])==null?void 0:D.palette)==null?void 0:M.mode,N=!r&&_?{colorScheme:_,...A}:{...A};O(n(I,{...N}),N)}return Object.entries(R).forEach(([A,{css:_}])=>{var H,j;const N=(j=(H=i[A])==null?void 0:H.palette)==null?void 0:j.mode,B=!r&&N?{colorScheme:N,..._}:{..._};O(n(A,{...B}),B)}),E}}}function v0e(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 b0e=nv(),x0e=Nn("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Oe(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),S0e=e=>ZO({props:e,name:"MuiContainer",defaultTheme:b0e}),w0e=(e,t)=>{const n=l=>qe(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,s={root:["root",a&&`maxWidth${Oe(String(a))}`,o&&"fixed",i&&"disableGutters"]};return Me(s,n,r)};function C0e(e={}){const{createStyledComponent:t=x0e,useThemeProps:n=S0e,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:s})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,c)=>{const u=c,f=a.breakpoints.values[u];return f!==0&&(l[a.breakpoints.up(u)]={maxWidth:`${f}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>({...s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}}));return x.forwardRef(function(s,l){const c=n(s),{className:u,component:f="div",disableGutters:h=!1,fixed:m=!1,maxWidth:g="lg",classes:y,...v}=c,w={...c,component:f,disableGutters:h,fixed:m,maxWidth:g},C=w0e(w,r);return k.jsx(o,{as:f,ownerState:w,className:fe(C.root,u),ref:l,...v})})}const E0e=(e,t)=>e.filter(n=>t.includes(n)),ov=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,i)=>{n((a,s)=>{i<=e.keys.length-1&&(i===0?Object.assign(a,s):a[e.up(e.keys[i])]=s)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:E0e(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.includes(i)){const a=t[i];a!==void 0&&n((s,l)=>{r===i?Object.assign(s,l):s[e.up(i)]=l},a)}}):(typeof t=="number"||typeof t=="string")&&n((o,i)=>{Object.assign(o,i)},t)};function HE(e){return`--Grid-${e}Spacing`}function nI(e){return`--Grid-parent-${e}Spacing`}const lG="--Grid-columns",Dg="--Grid-parent-columns",T0e=({theme:e,ownerState:t})=>{const n={};return ov(e.breakpoints,t.size,(r,o)=>{let i={};o==="grow"&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${Dg}) - (var(${Dg}) - ${o}) * (var(${nI("column")}) / var(${Dg})))`}),r(n,i)}),n},O0e=({theme:e,ownerState:t})=>{const n={};return ov(e.breakpoints,t.offset,(r,o)=>{let i={};o==="auto"&&(i={marginLeft:"auto"}),typeof o=="number"&&(i={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${Dg}) + var(${nI("column")}) * ${o} / var(${Dg}))`}),r(n,i)}),n},I0e=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[lG]:12};return ov(e.breakpoints,t.columns,(r,o)=>{const i=o??12;r(n,{[lG]:i,"> *":{[Dg]:i}})}),n},P0e=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return ov(e.breakpoints,t.rowSpacing,(r,o)=>{var a;const i=typeof o=="string"?o:(a=e.spacing)==null?void 0:a.call(e,o);r(n,{[HE("row")]:i,"> *":{[nI("row")]:i}})}),n},A0e=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return ov(e.breakpoints,t.columnSpacing,(r,o)=>{var a;const i=typeof o=="string"?o:(a=e.spacing)==null?void 0:a.call(e,o);r(n,{[HE("column")]:i,"> *":{[nI("column")]:i}})}),n},M0e=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return ov(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},R0e=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${HE("row")}) var(${HE("column")})`}}),D0e=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},k0e=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,i])=>{n(i)&&r.push(`spacing-${o}-${String(i)}`)}),r}return[]},_0e=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];function $0e(e,t){e.item!==void 0&&delete e.item,e.zeroMinWidth!==void 0&&delete e.zeroMinWidth,t.keys.forEach(n=>{e[n]!==void 0&&delete e[n]})}const N0e=nv(),L0e=Nn("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function F0e(e){return ZO({props:e,name:"MuiGrid",defaultTheme:N0e})}function j0e(e={}){const{createStyledComponent:t=L0e,useThemeProps:n=F0e,useTheme:r=JS,componentName:o="MuiGrid"}=e,i=(c,u)=>{const{container:f,direction:h,spacing:m,wrap:g,size:y}=c,v={root:["root",f&&"container",g!=="wrap"&&`wrap-xs-${String(g)}`,..._0e(h),...D0e(y),...f?k0e(m,u.breakpoints.keys[0]):[]]};return Me(v,w=>qe(o,w),{})};function a(c,u,f=()=>!0){const h={};return c===null||(Array.isArray(c)?c.forEach((m,g)=>{m!==null&&f(m)&&u.keys[g]&&(h[u.keys[g]]=m)}):typeof c=="object"?Object.keys(c).forEach(m=>{const g=c[m];g!=null&&f(g)&&(h[m]=g)}):h[u.keys[0]]=c),h}const s=t(I0e,A0e,P0e,T0e,M0e,R0e,O0e),l=x.forwardRef(function(u,f){const h=r(),m=n(u),g=JO(m);$0e(g,h.breakpoints);const{className:y,children:v,columns:w=12,container:C=!1,component:E="div",direction:I="row",wrap:O="wrap",size:P={},offset:R={},spacing:D=0,rowSpacing:M=D,columnSpacing:A=D,unstable_level:_=0,...N}=g,B=a(P,h.breakpoints,q=>q!==!1),H=a(R,h.breakpoints),j=u.columns??(_?void 0:w),L=u.spacing??(_?void 0:D),V=u.rowSpacing??u.spacing??(_?void 0:M),W=u.columnSpacing??u.spacing??(_?void 0:A),K={...g,level:_,columns:j,container:C,direction:I,wrap:O,spacing:L,rowSpacing:V,columnSpacing:W,size:B,offset:H},G=i(K,h);return k.jsx(s,{ref:f,as:E,ownerState:K,className:fe(G.root,y),...N,children:x.Children.map(v,q=>{var Y;return x.isValidElement(q)&&Rg(q,["Grid"])&&C&&q.props.container?x.cloneElement(q,{unstable_level:((Y=q.props)==null?void 0:Y.unstable_level)??_+1}):q})})});return l.muiName="Grid",l}const B0e=nv(),z0e=Nn("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function V0e(e){return ZO({props:e,name:"MuiStack",defaultTheme:B0e})}function H0e(e,t){const n=x.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],G0e=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...ql({theme:t},bR({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=qO(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=bR({values:e.direction,base:o}),a=bR({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const h=c>0?i[u[c-1]]:"column";i[l]=h}}),n=si(n,ql({theme:t},a,(l,c)=>e.useFlexGap?{gap:lh(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${U0e(c?i[c]:e.direction)}`]:lh(r,l)}}))}return n=Lve(t.breakpoints,n),n};function q0e(e={}){const{createStyledComponent:t=z0e,useThemeProps:n=V0e,componentName:r="MuiStack"}=e,o=()=>Me({root:["root"]},l=>qe(r,l),{}),i=t(G0e);return x.forwardRef(function(l,c){const u=n(l),f=JO(u),{component:h="div",direction:m="column",spacing:g=0,divider:y,children:v,className:w,useFlexGap:C=!1,...E}=f,I={direction:m,spacing:g,useFlexGap:C},O=o();return k.jsx(i,{as:h,ownerState:I,ref:c,className:fe(O.root,w),...E,children:y?H0e(v,y):v})})}const wx={black:"#000",white:"#fff"},W0e={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"},Nm={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Lm={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Wb={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Fm={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},jm={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Bm={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Ate(){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:wx.white,default:wx.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 K0e=Ate();function Mte(){return{text:{primary:wx.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:wx.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 cG=Mte();function uG(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Vu(e.main,o):t==="dark"&&(e.dark=zu(e.main,i)))}function Y0e(e="light"){return e==="dark"?{main:Fm[200],light:Fm[50],dark:Fm[400]}:{main:Fm[700],light:Fm[400],dark:Fm[800]}}function Q0e(e="light"){return e==="dark"?{main:Nm[200],light:Nm[50],dark:Nm[400]}:{main:Nm[500],light:Nm[300],dark:Nm[700]}}function X0e(e="light"){return e==="dark"?{main:Lm[500],light:Lm[300],dark:Lm[700]}:{main:Lm[700],light:Lm[400],dark:Lm[800]}}function J0e(e="light"){return e==="dark"?{main:jm[400],light:jm[300],dark:jm[700]}:{main:jm[700],light:jm[500],dark:jm[900]}}function Z0e(e="light"){return e==="dark"?{main:Bm[400],light:Bm[300],dark:Bm[700]}:{main:Bm[800],light:Bm[500],dark:Bm[900]}}function exe(e="light"){return e==="dark"?{main:Wb[400],light:Wb[300],dark:Wb[700]}:{main:"#ed6c02",light:Wb[500],dark:Wb[900]}}function zj(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||Y0e(t),a=e.secondary||Q0e(t),s=e.error||X0e(t),l=e.info||J0e(t),c=e.success||Z0e(t),u=e.warning||exe(t);function f(y){return Gbe(y,cG.text.primary)>=n?cG.text.primary:K0e.text.primary}const h=({color:y,name:v,mainShade:w=500,lightShade:C=300,darkShade:E=700})=>{if(y={...y},!y.main&&y[w]&&(y.main=y[w]),!y.hasOwnProperty("main"))throw new Error(Bu(11,v?` (${v})`:"",w));if(typeof y.main!="string")throw new Error(Bu(12,v?` (${v})`:"",JSON.stringify(y.main)));return uG(y,"light",C,r),uG(y,"dark",E,r),y.contrastText||(y.contrastText=f(y.main)),y};let m;return t==="light"?m=Ate():t==="dark"&&(m=Mte()),si({common:{...wx},mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:u,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:W0e,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:r,...m},o)}function txe(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function nxe(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function rxe(e){return Math.round(e*1e5)/1e5}const dG={textTransform:"uppercase"},fG='"Roboto", "Helvetica", "Arial", sans-serif';function Rte(e,t){const{fontFamily:n=fG,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...f}=typeof t=="function"?t(e):t,h=r/14,m=u||(v=>`${v/l*h}rem`),g=(v,w,C,E,I)=>({fontFamily:n,fontWeight:v,fontSize:m(w),lineHeight:C,...n===fG?{letterSpacing:`${rxe(E/w)}em`}:{},...I,...c}),y={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(a,14,1.75,.4,dG),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,dG),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return si({htmlFontSize:l,pxToRem:m,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...y},f,{clone:!1})}const oxe=.2,ixe=.14,axe=.12;function qr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${oxe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ixe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${axe})`].join(",")}const sxe=["none",qr(0,2,1,-1,0,1,1,0,0,1,3,0),qr(0,3,1,-2,0,2,2,0,0,1,5,0),qr(0,3,3,-2,0,3,4,0,0,1,8,0),qr(0,2,4,-1,0,4,5,0,0,1,10,0),qr(0,3,5,-1,0,5,8,0,0,1,14,0),qr(0,3,5,-1,0,6,10,0,0,1,18,0),qr(0,4,5,-2,0,7,10,1,0,2,16,1),qr(0,5,5,-3,0,8,10,1,0,3,14,2),qr(0,5,6,-3,0,9,12,1,0,3,16,2),qr(0,6,6,-3,0,10,14,1,0,4,18,3),qr(0,6,7,-4,0,11,15,1,0,4,20,3),qr(0,7,8,-4,0,12,17,2,0,5,22,4),qr(0,7,8,-4,0,13,19,2,0,5,24,4),qr(0,7,9,-4,0,14,21,2,0,5,26,4),qr(0,8,9,-5,0,15,22,2,0,6,28,5),qr(0,8,10,-5,0,16,24,2,0,6,30,5),qr(0,8,11,-5,0,17,26,2,0,6,32,5),qr(0,9,11,-5,0,18,28,2,0,7,34,6),qr(0,9,12,-6,0,19,29,2,0,7,36,6),qr(0,10,13,-6,0,20,31,3,0,8,38,7),qr(0,10,13,-6,0,21,33,3,0,8,40,7),qr(0,10,14,-6,0,22,35,3,0,8,42,7),qr(0,11,14,-7,0,23,36,3,0,9,44,8),qr(0,11,15,-7,0,24,38,3,0,9,46,8)],lxe={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)"},Dte={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pG(e){return`${Math.round(e)}ms`}function cxe(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function uxe(e){const t={...lxe,...e.easing},n={...Dte,...e.duration};return{getAutoHeightDuration:cxe,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0,...c}=i;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:pG(a)} ${s} ${typeof l=="string"?l:pG(l)}`).join(",")},...e,easing:t,duration:n}}const dxe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function fxe(e){return vc(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function kte(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;isi(m,g),h),h.unstable_sxConfig={...QS,...c==null?void 0:c.unstable_sxConfig},h.unstable_sx=function(g){return wf({sx:g,theme:this})},h.toRuntimeSource=Dte,h}function X$(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 fxe=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=X$(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function kte(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function _te(e){return e==="dark"?fxe:[]}function pxe(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=jj(t);return{palette:i,opacity:{...kte(i.mode),...n},overlays:r||_te(i.mode),...o}}function hxe(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 mxe=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],gxe=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return mxe(e.cssVarPrefix).forEach(s=>{a[s]=n[s],delete n[s]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",t)]:a,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function yxe(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Qe(e,t,n){!e[t]&&n&&(e[t]=n)}function P0(e){return typeof e!="string"||!e.startsWith("hsl")?e:yte(e)}function hu(e,t){`${t}Channel`in e||(e[`${t}Channel`]=I0(P0(e[t])))}function vxe(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ac=e=>{try{return e()}catch{}},bxe=(e="mui")=>p0e(e);function xR(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=pxe({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...a}=Q$({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...kte(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||_te(o)},a}function xxe(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=hxe,colorSchemeSelector:s=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],f=r||(n.light&&u!=="light"?"light":u),h=bxe(i),{[f]:m,light:g,dark:y,...v}=n,w={...v};let C=m;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(C=!0),!C)throw new Error(Bu(21,f));const E=xR(w,C,c,f);g&&!w.light&&xR(w,g,void 0,"light"),y&&!w.dark&&xR(w,y,void 0,"dark");let I={defaultColorScheme:f,...E,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:l,getCssVar:h,colorSchemes:w,font:{...exe(E.typography),...E.font},spacing:vxe(c.spacing)};Object.keys(I.colorSchemes).forEach(M=>{const A=I.colorSchemes[M].palette,_=N=>{const B=N.split("-"),H=B[1],j=B[2];return h(N,A[H][j])};if(A.mode==="light"&&(Qe(A.common,"background","#fff"),Qe(A.common,"onBackground","#000")),A.mode==="dark"&&(Qe(A.common,"background","#000"),Qe(A.common,"onBackground","#fff")),yxe(A,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),A.mode==="light"){Qe(A.Alert,"errorColor",Ir(A.error.light,.6)),Qe(A.Alert,"infoColor",Ir(A.info.light,.6)),Qe(A.Alert,"successColor",Ir(A.success.light,.6)),Qe(A.Alert,"warningColor",Ir(A.warning.light,.6)),Qe(A.Alert,"errorFilledBg",_("palette-error-main")),Qe(A.Alert,"infoFilledBg",_("palette-info-main")),Qe(A.Alert,"successFilledBg",_("palette-success-main")),Qe(A.Alert,"warningFilledBg",_("palette-warning-main")),Qe(A.Alert,"errorFilledColor",ac(()=>A.getContrastText(A.error.main))),Qe(A.Alert,"infoFilledColor",ac(()=>A.getContrastText(A.info.main))),Qe(A.Alert,"successFilledColor",ac(()=>A.getContrastText(A.success.main))),Qe(A.Alert,"warningFilledColor",ac(()=>A.getContrastText(A.warning.main))),Qe(A.Alert,"errorStandardBg",Pr(A.error.light,.9)),Qe(A.Alert,"infoStandardBg",Pr(A.info.light,.9)),Qe(A.Alert,"successStandardBg",Pr(A.success.light,.9)),Qe(A.Alert,"warningStandardBg",Pr(A.warning.light,.9)),Qe(A.Alert,"errorIconColor",_("palette-error-main")),Qe(A.Alert,"infoIconColor",_("palette-info-main")),Qe(A.Alert,"successIconColor",_("palette-success-main")),Qe(A.Alert,"warningIconColor",_("palette-warning-main")),Qe(A.AppBar,"defaultBg",_("palette-grey-100")),Qe(A.Avatar,"defaultBg",_("palette-grey-400")),Qe(A.Button,"inheritContainedBg",_("palette-grey-300")),Qe(A.Button,"inheritContainedHoverBg",_("palette-grey-A100")),Qe(A.Chip,"defaultBorder",_("palette-grey-400")),Qe(A.Chip,"defaultAvatarColor",_("palette-grey-700")),Qe(A.Chip,"defaultIconColor",_("palette-grey-700")),Qe(A.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Qe(A.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Qe(A.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Qe(A.LinearProgress,"primaryBg",Pr(A.primary.main,.62)),Qe(A.LinearProgress,"secondaryBg",Pr(A.secondary.main,.62)),Qe(A.LinearProgress,"errorBg",Pr(A.error.main,.62)),Qe(A.LinearProgress,"infoBg",Pr(A.info.main,.62)),Qe(A.LinearProgress,"successBg",Pr(A.success.main,.62)),Qe(A.LinearProgress,"warningBg",Pr(A.warning.main,.62)),Qe(A.Skeleton,"bg",`rgba(${_("palette-text-primaryChannel")} / 0.11)`),Qe(A.Slider,"primaryTrack",Pr(A.primary.main,.62)),Qe(A.Slider,"secondaryTrack",Pr(A.secondary.main,.62)),Qe(A.Slider,"errorTrack",Pr(A.error.main,.62)),Qe(A.Slider,"infoTrack",Pr(A.info.main,.62)),Qe(A.Slider,"successTrack",Pr(A.success.main,.62)),Qe(A.Slider,"warningTrack",Pr(A.warning.main,.62));const N=h1(A.background.default,.8);Qe(A.SnackbarContent,"bg",N),Qe(A.SnackbarContent,"color",ac(()=>A.getContrastText(N))),Qe(A.SpeedDialAction,"fabHoverBg",h1(A.background.paper,.15)),Qe(A.StepConnector,"border",_("palette-grey-400")),Qe(A.StepContent,"border",_("palette-grey-400")),Qe(A.Switch,"defaultColor",_("palette-common-white")),Qe(A.Switch,"defaultDisabledColor",_("palette-grey-100")),Qe(A.Switch,"primaryDisabledColor",Pr(A.primary.main,.62)),Qe(A.Switch,"secondaryDisabledColor",Pr(A.secondary.main,.62)),Qe(A.Switch,"errorDisabledColor",Pr(A.error.main,.62)),Qe(A.Switch,"infoDisabledColor",Pr(A.info.main,.62)),Qe(A.Switch,"successDisabledColor",Pr(A.success.main,.62)),Qe(A.Switch,"warningDisabledColor",Pr(A.warning.main,.62)),Qe(A.TableCell,"border",Pr(p1(A.divider,1),.88)),Qe(A.Tooltip,"bg",p1(A.grey[700],.92))}if(A.mode==="dark"){Qe(A.Alert,"errorColor",Pr(A.error.light,.6)),Qe(A.Alert,"infoColor",Pr(A.info.light,.6)),Qe(A.Alert,"successColor",Pr(A.success.light,.6)),Qe(A.Alert,"warningColor",Pr(A.warning.light,.6)),Qe(A.Alert,"errorFilledBg",_("palette-error-dark")),Qe(A.Alert,"infoFilledBg",_("palette-info-dark")),Qe(A.Alert,"successFilledBg",_("palette-success-dark")),Qe(A.Alert,"warningFilledBg",_("palette-warning-dark")),Qe(A.Alert,"errorFilledColor",ac(()=>A.getContrastText(A.error.dark))),Qe(A.Alert,"infoFilledColor",ac(()=>A.getContrastText(A.info.dark))),Qe(A.Alert,"successFilledColor",ac(()=>A.getContrastText(A.success.dark))),Qe(A.Alert,"warningFilledColor",ac(()=>A.getContrastText(A.warning.dark))),Qe(A.Alert,"errorStandardBg",Ir(A.error.light,.9)),Qe(A.Alert,"infoStandardBg",Ir(A.info.light,.9)),Qe(A.Alert,"successStandardBg",Ir(A.success.light,.9)),Qe(A.Alert,"warningStandardBg",Ir(A.warning.light,.9)),Qe(A.Alert,"errorIconColor",_("palette-error-main")),Qe(A.Alert,"infoIconColor",_("palette-info-main")),Qe(A.Alert,"successIconColor",_("palette-success-main")),Qe(A.Alert,"warningIconColor",_("palette-warning-main")),Qe(A.AppBar,"defaultBg",_("palette-grey-900")),Qe(A.AppBar,"darkBg",_("palette-background-paper")),Qe(A.AppBar,"darkColor",_("palette-text-primary")),Qe(A.Avatar,"defaultBg",_("palette-grey-600")),Qe(A.Button,"inheritContainedBg",_("palette-grey-800")),Qe(A.Button,"inheritContainedHoverBg",_("palette-grey-700")),Qe(A.Chip,"defaultBorder",_("palette-grey-700")),Qe(A.Chip,"defaultAvatarColor",_("palette-grey-300")),Qe(A.Chip,"defaultIconColor",_("palette-grey-300")),Qe(A.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Qe(A.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Qe(A.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Qe(A.LinearProgress,"primaryBg",Ir(A.primary.main,.5)),Qe(A.LinearProgress,"secondaryBg",Ir(A.secondary.main,.5)),Qe(A.LinearProgress,"errorBg",Ir(A.error.main,.5)),Qe(A.LinearProgress,"infoBg",Ir(A.info.main,.5)),Qe(A.LinearProgress,"successBg",Ir(A.success.main,.5)),Qe(A.LinearProgress,"warningBg",Ir(A.warning.main,.5)),Qe(A.Skeleton,"bg",`rgba(${_("palette-text-primaryChannel")} / 0.13)`),Qe(A.Slider,"primaryTrack",Ir(A.primary.main,.5)),Qe(A.Slider,"secondaryTrack",Ir(A.secondary.main,.5)),Qe(A.Slider,"errorTrack",Ir(A.error.main,.5)),Qe(A.Slider,"infoTrack",Ir(A.info.main,.5)),Qe(A.Slider,"successTrack",Ir(A.success.main,.5)),Qe(A.Slider,"warningTrack",Ir(A.warning.main,.5));const N=h1(A.background.default,.98);Qe(A.SnackbarContent,"bg",N),Qe(A.SnackbarContent,"color",ac(()=>A.getContrastText(N))),Qe(A.SpeedDialAction,"fabHoverBg",h1(A.background.paper,.15)),Qe(A.StepConnector,"border",_("palette-grey-600")),Qe(A.StepContent,"border",_("palette-grey-600")),Qe(A.Switch,"defaultColor",_("palette-grey-300")),Qe(A.Switch,"defaultDisabledColor",_("palette-grey-600")),Qe(A.Switch,"primaryDisabledColor",Ir(A.primary.main,.55)),Qe(A.Switch,"secondaryDisabledColor",Ir(A.secondary.main,.55)),Qe(A.Switch,"errorDisabledColor",Ir(A.error.main,.55)),Qe(A.Switch,"infoDisabledColor",Ir(A.info.main,.55)),Qe(A.Switch,"successDisabledColor",Ir(A.success.main,.55)),Qe(A.Switch,"warningDisabledColor",Ir(A.warning.main,.55)),Qe(A.TableCell,"border",Ir(p1(A.divider,1),.68)),Qe(A.Tooltip,"bg",p1(A.grey[700],.92))}hu(A.background,"default"),hu(A.background,"paper"),hu(A.common,"background"),hu(A.common,"onBackground"),hu(A,"divider"),Object.keys(A).forEach(N=>{const B=A[N];N!=="tonalOffset"&&B&&typeof B=="object"&&(B.main&&Qe(A[N],"mainChannel",I0(P0(B.main))),B.light&&Qe(A[N],"lightChannel",I0(P0(B.light))),B.dark&&Qe(A[N],"darkChannel",I0(P0(B.dark))),B.contrastText&&Qe(A[N],"contrastTextChannel",I0(P0(B.contrastText))),N==="text"&&(hu(A[N],"primary"),hu(A[N],"secondary")),N==="action"&&(B.active&&hu(A[N],"active"),B.selected&&hu(A[N],"selected")))})}),I=t.reduce((M,A)=>si(M,A),I);const O={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:gxe(I)},{vars:P,generateThemeVars:R,generateStyleSheets:D}=g0e(I,O);return I.vars=P,Object.entries(I.colorSchemes[I.defaultColorScheme]).forEach(([M,A])=>{I[M]=A}),I.generateThemeVars=R,I.generateStyleSheets=D,I.generateSpacing=function(){return cte(c.spacing,GO(this))},I.getColorSchemeSelector=y0e(s),I.spacing=I.generateSpacing(),I.shouldSkipGeneratingVar=a,I.unstable_sxConfig={...QS,...c==null?void 0:c.unstable_sxConfig},I.unstable_sx=function(A){return wf({sx:A,theme:this})},I.toRuntimeSource=Dte,I}function pG(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:jj({...n===!0?{}:n.palette,mode:t})})}function ZS(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,s=i||"light",l=o==null?void 0:o[s],c={...o,...n?{[s]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Q$(e,...t);let u=n;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const f=Q$({...e,palette:u},...t);return f.defaultColorScheme=s,f.colorSchemes=c,f.palette.mode==="light"&&(f.colorSchemes.light={...c.light!==!0&&c.light,palette:f.palette},pG(f,"dark",c.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:f.palette},pG(f,"light",c.light)),f}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),xxe({...a,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}function Sxe(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function wxe(e){return parseFloat(e)}const nI=ZS();function Lr(){const e=XS(nI);return e[qs]||e}function Pn({props:e,name:t}){return ZO({props:e,name:t,defaultTheme:nI,themeId:qs})}function $te(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ui=e=>$te(e)&&e!=="classes",ae=hte({themeId:qs,defaultTheme:nI,rootShouldForwardProp:ui});function SR({theme:e,...t}){const n=qs in e?e[qs]:void 0;return k.jsx(Ote,{...t,themeId:n?qs:void 0,theme:n||e})}const m1={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:Cxe}=f0e({themeId:qs,theme:()=>ZS({cssVariables:!0}),colorSchemeStorageKey:m1.colorSchemeStorageKey,modeStorageKey:m1.modeStorageKey,defaultColorScheme:{light:m1.defaultLightColorScheme,dark:m1.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:Mte(e.palette,e.typography)};return t.unstable_sx=function(r){return wf({sx:r,theme:this})},t}}),Exe=Cxe;function $h({theme:e,...t}){if(typeof e=="function")return k.jsx(SR,{theme:e,...t});const n=qs in e?e[qs]:e;return"colorSchemes"in n?k.jsx(Exe,{theme:e,...t}):"vars"in n?k.jsx(SR,{theme:e,...t}):k.jsx(SR,{theme:{...e,vars:null},...t})}var rv=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(){}},uh=typeof window>"u"||"Deno"in globalThis;function $s(){}function Txe(e,t){return typeof e=="function"?e(t):e}function Z$(e){return typeof e=="number"&&e>=0&&e!==1/0}function Nte(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Dg(e,t){return typeof e=="function"?e(t):e}function Pl(e,t){return typeof e=="function"?e(t):e}function hG(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==Bj(a,t.options))return!1}else if(!Sx(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||o&&o!==t.state.fetchStatus||i&&!i(t))}function mG(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(dh(t.options.mutationKey)!==dh(i))return!1}else if(!Sx(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Bj(e,t){return((t==null?void 0:t.queryKeyHashFn)||dh)(e)}function dh(e){return JSON.stringify(e,(t,n)=>J$(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Sx(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Sx(e[n],t[n])):!1}function Lte(e,t){if(e===t)return e;const n=gG(e)&&gG(t);if(n||J$(e)&&J$(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),a=i.length,s=n?[]:{};let l=0;for(let c=0;c{setTimeout(t,e)})}function eN(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Lte(e,t):t}function Ixe(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Pxe(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var zj=Symbol();function Fte(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===zj?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var qp,tf,Hg,Dee,Axe=(Dee=class extends rv{constructor(){super();Yt(this,qp);Yt(this,tf);Yt(this,Hg);_t(this,Hg,t=>{if(!uh&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){be(this,tf)||this.setEventListener(be(this,Hg))}onUnsubscribe(){var t;this.hasListeners()||((t=be(this,tf))==null||t.call(this),_t(this,tf,void 0))}setEventListener(t){var n;_t(this,Hg,t),(n=be(this,tf))==null||n.call(this),_t(this,tf,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){be(this,qp)!==t&&(_t(this,qp,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof be(this,qp)=="boolean"?be(this,qp):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},qp=new WeakMap,tf=new WeakMap,Hg=new WeakMap,Dee),Vj=new Axe,Ug,nf,Gg,kee,Mxe=(kee=class extends rv{constructor(){super();Yt(this,Ug,!0);Yt(this,nf);Yt(this,Gg);_t(this,Gg,t=>{if(!uh&&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(){be(this,nf)||this.setEventListener(be(this,Gg))}onUnsubscribe(){var t;this.hasListeners()||((t=be(this,nf))==null||t.call(this),_t(this,nf,void 0))}setEventListener(t){var n;_t(this,Gg,t),(n=be(this,nf))==null||n.call(this),_t(this,nf,t(this.setOnline.bind(this)))}setOnline(t){be(this,Ug)!==t&&(_t(this,Ug,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return be(this,Ug)}},Ug=new WeakMap,nf=new WeakMap,Gg=new WeakMap,kee),UE=new Mxe;function tN(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function Rxe(e){return Math.min(1e3*2**e,3e4)}function jte(e){return(e??"online")==="online"?UE.isOnline():!0}var Bte=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function wR(e){return e instanceof Bte}function zte(e){let t=!1,n=0,r=!1,o;const i=tN(),a=y=>{var v;r||(h(new Bte(y)),(v=e.abort)==null||v.call(e))},s=()=>{t=!0},l=()=>{t=!1},c=()=>Vj.isFocused()&&(e.networkMode==="always"||UE.isOnline())&&e.canRun(),u=()=>jte(e.networkMode)&&e.canRun(),f=y=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,y),o==null||o(),i.resolve(y))},h=y=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,y),o==null||o(),i.reject(y))},m=()=>new Promise(y=>{var v;o=w=>{(r||c())&&y(w)},(v=e.onPause)==null||v.call(e)}).then(()=>{var y;o=void 0,r||(y=e.onContinue)==null||y.call(e)}),g=()=>{if(r)return;let y;const v=n===0?e.initialPromise:void 0;try{y=v??e.fn()}catch(w){y=Promise.reject(w)}Promise.resolve(y).then(f).catch(w=>{var P;if(r)return;const C=e.retry??(uh?0:3),E=e.retryDelay??Rxe,I=typeof E=="function"?E(n,w):E,O=C===!0||typeof C=="number"&&nc()?void 0:m()).then(()=>{t?h(w):g()})})};return{promise:i,cancel:a,continue:()=>(o==null||o(),i),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?g():m().then(g),i)}}var Dxe=e=>setTimeout(e,0);function kxe(){let e=[],t=0,n=s=>{s()},r=s=>{s()},o=Dxe;const i=s=>{t?e.push(s):o(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&o(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{i(()=>{s(...l)})},schedule:i,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{o=s}}}var zo=kxe(),Wp,_ee,Vte=(_ee=class{constructor(){Yt(this,Wp)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Z$(this.gcTime)&&_t(this,Wp,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(uh?1/0:5*60*1e3))}clearGcTimeout(){be(this,Wp)&&(clearTimeout(be(this,Wp)),_t(this,Wp,void 0))}},Wp=new WeakMap,_ee),qg,Wg,_s,Kp,Ri,BS,Yp,wl,vu,$ee,_xe=($ee=class extends Vte{constructor(t){super();Yt(this,wl);Yt(this,qg);Yt(this,Wg);Yt(this,_s);Yt(this,Kp);Yt(this,Ri);Yt(this,BS);Yt(this,Yp);_t(this,Yp,!1),_t(this,BS,t.defaultOptions),this.setOptions(t.options),this.observers=[],_t(this,Kp,t.client),_t(this,_s,be(this,Kp).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,_t(this,qg,$xe(this.options)),this.state=t.state??be(this,qg),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=be(this,Ri))==null?void 0:t.promise}setOptions(t){this.options={...be(this,BS),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&be(this,_s).remove(this)}setData(t,n){const r=eN(this.state.data,t,this.options);return An(this,wl,vu).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){An(this,wl,vu).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=be(this,Ri))==null?void 0:r.promise;return(o=be(this,Ri))==null||o.cancel(t),n?n.then($s).catch($s):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(be(this,qg))}isActive(){return this.observers.some(t=>Pl(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===zj||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||!Nte(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=be(this,Ri))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=be(this,Ri))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),be(this,_s).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(be(this,Ri)&&(be(this,Yp)?be(this,Ri).cancel({revert:!0}):be(this,Ri).cancelRetry()),this.scheduleGc()),be(this,_s).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||An(this,wl,vu).call(this,{type:"invalidate"})}fetch(t,n){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(be(this,Ri))return be(this,Ri).continueRetry(),be(this,Ri).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(_t(this,Yp,!0),r.signal)})},i=()=>{const f=Fte(this.options,n),h={client:be(this,Kp),queryKey:this.queryKey,meta:this.meta};return o(h),_t(this,Yp,!1),this.options.persister?this.options.persister(f,h,this):f(h)},a={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:be(this,Kp),state:this.state,fetchFn:i};o(a),(l=this.options.behavior)==null||l.onFetch(a,this),_t(this,Wg,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&An(this,wl,vu).call(this,{type:"fetch",meta:(u=a.fetchOptions)==null?void 0:u.meta});const s=f=>{var h,m,g,y;wR(f)&&f.silent||An(this,wl,vu).call(this,{type:"error",error:f}),wR(f)||((m=(h=be(this,_s).config).onError)==null||m.call(h,f,this),(y=(g=be(this,_s).config).onSettled)==null||y.call(g,this.state.data,f,this)),this.scheduleGc()};return _t(this,Ri,zte({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var h,m,g,y;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(v){s(v);return}(m=(h=be(this,_s).config).onSuccess)==null||m.call(h,f,this),(y=(g=be(this,_s).config).onSettled)==null||y.call(g,f,this.state.error,this),this.scheduleGc()},onError:s,onFail:(f,h)=>{An(this,wl,vu).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{An(this,wl,vu).call(this,{type:"pause"})},onContinue:()=>{An(this,wl,vu).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),be(this,Ri).start()}},qg=new WeakMap,Wg=new WeakMap,_s=new WeakMap,Kp=new WeakMap,Ri=new WeakMap,BS=new WeakMap,Yp=new WeakMap,wl=new WeakSet,vu=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,...Hte(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 o=t.error;return wR(o)&&o.revert&&be(this,Wg)?{...be(this,Wg),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),zo.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),be(this,_s).notify({query:this,type:"updated",action:t})})},$ee);function Hte(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:jte(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function $xe(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 cc,Nee,Nxe=(Nee=class extends rv{constructor(t={}){super();Yt(this,cc);this.config=t,_t(this,cc,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Bj(o,n);let a=this.get(i);return a||(a=new _xe({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){be(this,cc).has(t.queryHash)||(be(this,cc).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=be(this,cc).get(t.queryHash);n&&(t.destroy(),n===t&&be(this,cc).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){zo.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return be(this,cc).get(t)}getAll(){return[...be(this,cc).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>hG(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>hG(t,r)):n}notify(t){zo.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){zo.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){zo.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},cc=new WeakMap,Nee),uc,Xi,Qp,dc,jd,Lee,Lxe=(Lee=class extends Vte{constructor(t){super();Yt(this,dc);Yt(this,uc);Yt(this,Xi);Yt(this,Qp);this.mutationId=t.mutationId,_t(this,Xi,t.mutationCache),_t(this,uc,[]),this.state=t.state||Ute(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){be(this,uc).includes(t)||(be(this,uc).push(t),this.clearGcTimeout(),be(this,Xi).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){_t(this,uc,be(this,uc).filter(n=>n!==t)),this.scheduleGc(),be(this,Xi).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){be(this,uc).length||(this.state.status==="pending"?this.scheduleGc():be(this,Xi).remove(this))}continue(){var t;return((t=be(this,Qp))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,a,s,l,c,u,f,h,m,g,y,v,w,C,E,I,O,P,R;_t(this,Qp,zte({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(D,M)=>{An(this,dc,jd).call(this,{type:"failed",failureCount:D,error:M})},onPause:()=>{An(this,dc,jd).call(this,{type:"pause"})},onContinue:()=>{An(this,dc,jd).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>be(this,Xi).canRun(this)}));const n=this.state.status==="pending",r=!be(this,Qp).canStart();try{if(!n){An(this,dc,jd).call(this,{type:"pending",variables:t,isPaused:r}),await((i=(o=be(this,Xi).config).onMutate)==null?void 0:i.call(o,t,this));const M=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));M!==this.state.context&&An(this,dc,jd).call(this,{type:"pending",context:M,variables:t,isPaused:r})}const D=await be(this,Qp).start();return await((c=(l=be(this,Xi).config).onSuccess)==null?void 0:c.call(l,D,t,this.state.context,this)),await((f=(u=this.options).onSuccess)==null?void 0:f.call(u,D,t,this.state.context)),await((m=(h=be(this,Xi).config).onSettled)==null?void 0:m.call(h,D,null,this.state.variables,this.state.context,this)),await((y=(g=this.options).onSettled)==null?void 0:y.call(g,D,null,t,this.state.context)),An(this,dc,jd).call(this,{type:"success",data:D}),D}catch(D){try{throw await((w=(v=be(this,Xi).config).onError)==null?void 0:w.call(v,D,t,this.state.context,this)),await((E=(C=this.options).onError)==null?void 0:E.call(C,D,t,this.state.context)),await((O=(I=be(this,Xi).config).onSettled)==null?void 0:O.call(I,void 0,D,this.state.variables,this.state.context,this)),await((R=(P=this.options).onSettled)==null?void 0:R.call(P,void 0,D,t,this.state.context)),D}finally{An(this,dc,jd).call(this,{type:"error",error:D})}}finally{be(this,Xi).runNext(this)}}},uc=new WeakMap,Xi=new WeakMap,Qp=new WeakMap,dc=new WeakSet,jd=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),zo.batch(()=>{be(this,uc).forEach(r=>{r.onMutationUpdate(t)}),be(this,Xi).notify({mutation:this,type:"updated",action:t})})},Lee);function Ute(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Tu,Cl,zS,Fee,Fxe=(Fee=class extends rv{constructor(t={}){super();Yt(this,Tu);Yt(this,Cl);Yt(this,zS);this.config=t,_t(this,Tu,new Set),_t(this,Cl,new Map),_t(this,zS,0)}build(t,n,r){const o=new Lxe({mutationCache:this,mutationId:++u1(this,zS)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){be(this,Tu).add(t);const n=g1(t);if(typeof n=="string"){const r=be(this,Cl).get(n);r?r.push(t):be(this,Cl).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(be(this,Tu).delete(t)){const n=g1(t);if(typeof n=="string"){const r=be(this,Cl).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&be(this,Cl).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=g1(t);if(typeof n=="string"){const r=be(this,Cl).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=g1(t);if(typeof n=="string"){const o=(r=be(this,Cl).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){zo.batch(()=>{be(this,Tu).forEach(t=>{this.notify({type:"removed",mutation:t})}),be(this,Tu).clear(),be(this,Cl).clear()})}getAll(){return Array.from(be(this,Tu))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>mG(n,r))}findAll(t={}){return this.getAll().filter(n=>mG(t,n))}notify(t){zo.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return zo.batch(()=>Promise.all(t.map(n=>n.continue().catch($s))))}},Tu=new WeakMap,Cl=new WeakMap,zS=new WeakMap,Fee);function g1(e){var t;return(t=e.options.scope)==null?void 0:t.id}function vG(e){return{onFetch:(t,n)=>{var u,f,h,m,g;const r=t.options,o=(h=(f=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,i=((m=t.state.data)==null?void 0:m.pages)||[],a=((g=t.state.data)==null?void 0:g.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let y=!1;const v=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},w=Fte(t.options,t.fetchOptions),C=async(E,I,O)=>{if(y)return Promise.reject();if(I==null&&E.pages.length)return Promise.resolve(E);const P={client:t.client,queryKey:t.queryKey,pageParam:I,direction:O?"backward":"forward",meta:t.options.meta};v(P);const R=await w(P),{maxPages:D}=t.options,M=O?Pxe:Ixe;return{pages:M(E.pages,R,D),pageParams:M(E.pageParams,I,D)}};if(o&&i.length){const E=o==="backward",I=E?jxe:bG,O={pages:i,pageParams:a},P=I(r,O);s=await C(O,P,E)}else{const E=e??i.length;do{const I=l===0?a[0]??r.initialPageParam:bG(r,s);if(l>0&&I==null)break;s=await C(s,I),l++}while(l{var y,v;return(v=(y=t.options).persister)==null?void 0:v.call(y,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function bG(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 jxe(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 co,rf,of,Kg,Yg,af,Qg,Xg,jee,Bxe=(jee=class{constructor(e={}){Yt(this,co);Yt(this,rf);Yt(this,of);Yt(this,Kg);Yt(this,Yg);Yt(this,af);Yt(this,Qg);Yt(this,Xg);_t(this,co,e.queryCache||new Nxe),_t(this,rf,e.mutationCache||new Fxe),_t(this,of,e.defaultOptions||{}),_t(this,Kg,new Map),_t(this,Yg,new Map),_t(this,af,0)}mount(){u1(this,af)._++,be(this,af)===1&&(_t(this,Qg,Vj.subscribe(async e=>{e&&(await this.resumePausedMutations(),be(this,co).onFocus())})),_t(this,Xg,UE.subscribe(async e=>{e&&(await this.resumePausedMutations(),be(this,co).onOnline())})))}unmount(){var e,t;u1(this,af)._--,be(this,af)===0&&((e=be(this,Qg))==null||e.call(this),_t(this,Qg,void 0),(t=be(this,Xg))==null||t.call(this),_t(this,Xg,void 0))}isFetching(e){return be(this,co).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return be(this,rf).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=be(this,co).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=be(this,co).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Dg(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return be(this,co).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=be(this,co).get(r.queryHash),i=o==null?void 0:o.state.data,a=Txe(t,i);if(a!==void 0)return be(this,co).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return zo.batch(()=>be(this,co).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=be(this,co).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=be(this,co);zo.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=be(this,co);return zo.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=zo.batch(()=>be(this,co).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then($s).catch($s)}invalidateQueries(e,t={}){return zo.batch(()=>(be(this,co).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=zo.batch(()=>be(this,co).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch($s)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then($s)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=be(this,co).build(this,t);return n.isStaleByTime(Dg(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then($s).catch($s)}fetchInfiniteQuery(e){return e.behavior=vG(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then($s).catch($s)}ensureInfiniteQueryData(e){return e.behavior=vG(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return UE.isOnline()?be(this,rf).resumePausedMutations():Promise.resolve()}getQueryCache(){return be(this,co)}getMutationCache(){return be(this,rf)}getDefaultOptions(){return be(this,of)}setDefaultOptions(e){_t(this,of,e)}setQueryDefaults(e,t){be(this,Kg).set(dh(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...be(this,Kg).values()],n={};return t.forEach(r=>{Sx(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){be(this,Yg).set(dh(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...be(this,Yg).values()],n={};return t.forEach(r=>{Sx(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...be(this,of).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Bj(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===zj&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...be(this,of).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){be(this,co).clear(),be(this,rf).clear()}},co=new WeakMap,rf=new WeakMap,of=new WeakMap,Kg=new WeakMap,Yg=new WeakMap,af=new WeakMap,Qg=new WeakMap,Xg=new WeakMap,jee),ma,Un,VS,Zi,Xp,Zg,sf,fc,HS,Jg,ey,Zp,Jp,lf,ty,fr,A0,nN,rN,oN,iN,aN,sN,lN,Gte,Bee,zxe=(Bee=class extends rv{constructor(t,n){super();Yt(this,fr);Yt(this,ma);Yt(this,Un);Yt(this,VS);Yt(this,Zi);Yt(this,Xp);Yt(this,Zg);Yt(this,sf);Yt(this,fc);Yt(this,HS);Yt(this,Jg);Yt(this,ey);Yt(this,Zp);Yt(this,Jp);Yt(this,lf);Yt(this,ty,new Set);this.options=n,_t(this,ma,t),_t(this,fc,null),_t(this,sf,tN()),this.options.experimental_prefetchInRender||be(this,sf).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&&(be(this,Un).addObserver(this),xG(be(this,Un),this.options)?An(this,fr,A0).call(this):this.updateResult(),An(this,fr,iN).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return cN(be(this,Un),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return cN(be(this,Un),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,An(this,fr,aN).call(this),An(this,fr,sN).call(this),be(this,Un).removeObserver(this)}setOptions(t){const n=this.options,r=be(this,Un);if(this.options=be(this,ma).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Pl(this.options.enabled,be(this,Un))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");An(this,fr,lN).call(this),be(this,Un).setOptions(this.options),n._defaulted&&!HE(this.options,n)&&be(this,ma).getQueryCache().notify({type:"observerOptionsUpdated",query:be(this,Un),observer:this});const o=this.hasListeners();o&&SG(be(this,Un),r,this.options,n)&&An(this,fr,A0).call(this),this.updateResult(),o&&(be(this,Un)!==r||Pl(this.options.enabled,be(this,Un))!==Pl(n.enabled,be(this,Un))||Dg(this.options.staleTime,be(this,Un))!==Dg(n.staleTime,be(this,Un)))&&An(this,fr,nN).call(this);const i=An(this,fr,rN).call(this);o&&(be(this,Un)!==r||Pl(this.options.enabled,be(this,Un))!==Pl(n.enabled,be(this,Un))||i!==be(this,lf))&&An(this,fr,oN).call(this,i)}getOptimisticResult(t){const n=be(this,ma).getQueryCache().build(be(this,ma),t),r=this.createResult(n,t);return Hxe(this,r)&&(_t(this,Zi,r),_t(this,Zg,this.options),_t(this,Xp,be(this,Un).state)),r}getCurrentResult(){return be(this,Zi)}trackResult(t,n){const r={};return Object.keys(t).forEach(o=>{Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),n==null||n(o),t[o])})}),r}trackProp(t){be(this,ty).add(t)}getCurrentQuery(){return be(this,Un)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=be(this,ma).defaultQueryOptions(t),r=be(this,ma).getQueryCache().build(be(this,ma),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return An(this,fr,A0).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),be(this,Zi)))}createResult(t,n){var D;const r=be(this,Un),o=this.options,i=be(this,Zi),a=be(this,Xp),s=be(this,Zg),c=t!==r?t.state:be(this,VS),{state:u}=t;let f={...u},h=!1,m;if(n._optimisticResults){const M=this.hasListeners(),A=!M&&xG(t,n),_=M&&SG(t,r,n,o);(A||_)&&(f={...f,...Hte(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:g,errorUpdatedAt:y,status:v}=f;if(n.select&&f.data!==void 0)if(i&&f.data===(a==null?void 0:a.data)&&n.select===be(this,HS))m=be(this,Jg);else try{_t(this,HS,n.select),m=n.select(f.data),m=eN(i==null?void 0:i.data,m,n),_t(this,Jg,m),_t(this,fc,null)}catch(M){_t(this,fc,M)}else m=f.data;if(n.placeholderData!==void 0&&m===void 0&&v==="pending"){let M;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))M=i.data;else if(M=typeof n.placeholderData=="function"?n.placeholderData((D=be(this,ey))==null?void 0:D.state.data,be(this,ey)):n.placeholderData,n.select&&M!==void 0)try{M=n.select(M),_t(this,fc,null)}catch(A){_t(this,fc,A)}M!==void 0&&(v="success",m=eN(i==null?void 0:i.data,M,n),h=!0)}be(this,fc)&&(g=be(this,fc),m=be(this,Jg),y=Date.now(),v="error");const w=f.fetchStatus==="fetching",C=v==="pending",E=v==="error",I=C&&w,O=m!==void 0,R={status:v,fetchStatus:f.fetchStatus,isPending:C,isSuccess:v==="success",isError:E,isInitialLoading:I,isLoading:I,data:m,dataUpdatedAt:f.dataUpdatedAt,error:g,errorUpdatedAt:y,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:w,isRefetching:w&&!C,isLoadingError:E&&!O,isPaused:f.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:E&&O,isStale:Hj(t,n),refetch:this.refetch,promise:be(this,sf)};if(this.options.experimental_prefetchInRender){const M=N=>{R.status==="error"?N.reject(R.error):R.data!==void 0&&N.resolve(R.data)},A=()=>{const N=_t(this,sf,R.promise=tN());M(N)},_=be(this,sf);switch(_.status){case"pending":t.queryHash===r.queryHash&&M(_);break;case"fulfilled":(R.status==="error"||R.data!==_.value)&&A();break;case"rejected":(R.status!=="error"||R.error!==_.reason)&&A();break}}return R}updateResult(){const t=be(this,Zi),n=this.createResult(be(this,Un),this.options);if(_t(this,Xp,be(this,Un).state),_t(this,Zg,this.options),be(this,Xp).data!==void 0&&_t(this,ey,be(this,Un)),HE(n,t))return;_t(this,Zi,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!be(this,ty).size)return!0;const a=new Set(i??be(this,ty));return this.options.throwOnError&&a.add("error"),Object.keys(be(this,Zi)).some(s=>{const l=s;return be(this,Zi)[l]!==t[l]&&a.has(l)})};An(this,fr,Gte).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&An(this,fr,iN).call(this)}},ma=new WeakMap,Un=new WeakMap,VS=new WeakMap,Zi=new WeakMap,Xp=new WeakMap,Zg=new WeakMap,sf=new WeakMap,fc=new WeakMap,HS=new WeakMap,Jg=new WeakMap,ey=new WeakMap,Zp=new WeakMap,Jp=new WeakMap,lf=new WeakMap,ty=new WeakMap,fr=new WeakSet,A0=function(t){An(this,fr,lN).call(this);let n=be(this,Un).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch($s)),n},nN=function(){An(this,fr,aN).call(this);const t=Dg(this.options.staleTime,be(this,Un));if(uh||be(this,Zi).isStale||!Z$(t))return;const r=Nte(be(this,Zi).dataUpdatedAt,t)+1;_t(this,Zp,setTimeout(()=>{be(this,Zi).isStale||this.updateResult()},r))},rN=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(be(this,Un)):this.options.refetchInterval)??!1},oN=function(t){An(this,fr,sN).call(this),_t(this,lf,t),!(uh||Pl(this.options.enabled,be(this,Un))===!1||!Z$(be(this,lf))||be(this,lf)===0)&&_t(this,Jp,setInterval(()=>{(this.options.refetchIntervalInBackground||Vj.isFocused())&&An(this,fr,A0).call(this)},be(this,lf)))},iN=function(){An(this,fr,nN).call(this),An(this,fr,oN).call(this,An(this,fr,rN).call(this))},aN=function(){be(this,Zp)&&(clearTimeout(be(this,Zp)),_t(this,Zp,void 0))},sN=function(){be(this,Jp)&&(clearInterval(be(this,Jp)),_t(this,Jp,void 0))},lN=function(){const t=be(this,ma).getQueryCache().build(be(this,ma),this.options);if(t===be(this,Un))return;const n=be(this,Un);_t(this,Un,t),_t(this,VS,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Gte=function(t){zo.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(be(this,Zi))}),be(this,ma).getQueryCache().notify({query:be(this,Un),type:"observerResultsUpdated"})})},Bee);function Vxe(e,t){return Pl(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function xG(e,t){return Vxe(e,t)||e.state.data!==void 0&&cN(e,t,t.refetchOnMount)}function cN(e,t,n){if(Pl(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Hj(e,t)}return!1}function SG(e,t,n,r){return(e!==t||Pl(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Hj(e,n)}function Hj(e,t){return Pl(t.enabled,e)!==!1&&e.isStaleByTime(Dg(t.staleTime,e))}function Hxe(e,t){return!HE(e.getCurrentResult(),t)}var cf,uf,ga,Ou,ju,dE,uN,zee,Uxe=(zee=class extends rv{constructor(n,r){super();Yt(this,ju);Yt(this,cf);Yt(this,uf);Yt(this,ga);Yt(this,Ou);_t(this,cf,n),this.setOptions(r),this.bindMethods(),An(this,ju,dE).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=be(this,cf).defaultMutationOptions(n),HE(this.options,r)||be(this,cf).getMutationCache().notify({type:"observerOptionsUpdated",mutation:be(this,ga),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&dh(r.mutationKey)!==dh(this.options.mutationKey)?this.reset():((o=be(this,ga))==null?void 0:o.state.status)==="pending"&&be(this,ga).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=be(this,ga))==null||n.removeObserver(this)}onMutationUpdate(n){An(this,ju,dE).call(this),An(this,ju,uN).call(this,n)}getCurrentResult(){return be(this,uf)}reset(){var n;(n=be(this,ga))==null||n.removeObserver(this),_t(this,ga,void 0),An(this,ju,dE).call(this),An(this,ju,uN).call(this)}mutate(n,r){var o;return _t(this,Ou,r),(o=be(this,ga))==null||o.removeObserver(this),_t(this,ga,be(this,cf).getMutationCache().build(be(this,cf),this.options)),be(this,ga).addObserver(this),be(this,ga).execute(n)}},cf=new WeakMap,uf=new WeakMap,ga=new WeakMap,Ou=new WeakMap,ju=new WeakSet,dE=function(){var r;const n=((r=be(this,ga))==null?void 0:r.state)??Ute();_t(this,uf,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},uN=function(n){zo.batch(()=>{var r,o,i,a,s,l,c,u;if(be(this,Ou)&&this.hasListeners()){const f=be(this,uf).variables,h=be(this,uf).context;(n==null?void 0:n.type)==="success"?((o=(r=be(this,Ou)).onSuccess)==null||o.call(r,n.data,f,h),(a=(i=be(this,Ou)).onSettled)==null||a.call(i,n.data,null,f,h)):(n==null?void 0:n.type)==="error"&&((l=(s=be(this,Ou)).onError)==null||l.call(s,n.error,f,h),(u=(c=be(this,Ou)).onSettled)==null||u.call(c,void 0,n.error,f,h))}this.listeners.forEach(f=>{f(be(this,uf))})})},zee),qte=x.createContext(void 0),Mt=e=>{const t=x.useContext(qte);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ov=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),k.jsx(qte.Provider,{value:e,children:t})),Wte=x.createContext(!1),Gxe=()=>x.useContext(Wte);Wte.Provider;function qxe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Wxe=x.createContext(qxe()),Kxe=()=>x.useContext(Wxe);function Kte(e,t){return typeof e=="function"?e(...t):!!e}function dN(){}var Yxe=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Qxe=e=>{x.useEffect(()=>{e.clearReset()},[e])},Xxe=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Kte(n,[e.error,r])),Zxe=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Jxe=(e,t)=>e.isLoading&&e.isFetching&&!t,eSe=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,wG=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function tSe(e,t,n){var f,h,m,g,y;const r=Mt(),o=Gxe(),i=Kxe(),a=r.defaultQueryOptions(e);(h=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||h.call(f,a),a._optimisticResults=o?"isRestoring":"optimistic",Zxe(a),Yxe(a,i),Qxe(i);const s=!r.getQueryCache().get(a.queryHash),[l]=x.useState(()=>new t(r,a)),c=l.getOptimisticResult(a),u=!o&&e.subscribed!==!1;if(x.useSyncExternalStore(x.useCallback(v=>{const w=u?l.subscribe(zo.batchCalls(v)):dN;return l.updateResult(),w},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),x.useEffect(()=>{l.setOptions(a)},[a,l]),eSe(a,c))throw wG(a,l,i);if(Xxe({result:c,errorResetBoundary:i,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw c.error;if((g=(m=r.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||g.call(m,a,c),a.experimental_prefetchInRender&&!uh&&Jxe(c,o)){const v=s?wG(a,l,i):(y=r.getQueryCache().get(a.queryHash))==null?void 0:y.promise;v==null||v.catch(dN).finally(()=>{l.updateResult()})}return a.notifyOnChangeProps?c:l.trackResult(c)}function gr(e,t){return tSe(e,zxe)}function Dt(e,t){const n=Mt(),[r]=x.useState(()=>new Uxe(n,e));x.useEffect(()=>{r.setOptions(e)},[r,e]);const o=x.useSyncExternalStore(x.useCallback(a=>r.subscribe(zo.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=x.useCallback((a,s)=>{r.mutate(a,s).catch(dN)},[r]);if(o.error&&Kte(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const nSe="modulepreload",rSe=function(e){return"/"+e},CG={},oSe=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let a=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=a(n.map(c=>{if(c=rSe(c),c in CG)return;CG[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":nSe,u||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),u)return new Promise((m,g)=>{h.addEventListener("load",m),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return o.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})};var iSe=function(){return null};function aSe(e){return k.jsx(Obe,{...e,defaultTheme:nI,themeId:qs})}function sSe(e){return function(n){return k.jsx(aSe,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function lSe(){return XO}const dt=o0e;function pt(e){return r0e(e)}function cSe(e){return qe("MuiSvgIcon",e)}Ke("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const uSe=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Te(t)}`,`fontSize${Te(n)}`]};return Me(o,cSe,r)},dSe=ae("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Te(n.color)}`],t[`fontSize${Te(n.fontSize)}`]]}})(dt(({theme:e})=>{var t,n,r,o,i,a,s,l,c,u,f,h,m,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:y=>!y.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,y])=>y&&y.main).map(([y])=>{var v,w;return{props:{color:y},style:{color:(w=(v=(e.vars??e).palette)==null?void 0:v[y])==null?void 0:w.main}}}),{props:{color:"action"},style:{color:(h=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(g=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),GE=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:h="0 0 24 24",...m}=r,g=x.isValidElement(o)&&o.type==="svg",y={...r,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:g},v={};u||(v.viewBox=h);const w=uSe(y);return k.jsxs(dSe,{as:s,className:fe(w.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...v,...m,...g&&o.props,ownerState:y,children:[g?o.props.children:o,f?k.jsx("title",{children:f}):null]})});GE.muiName="SvgIcon";function Ot(e,t){function n(r,o){return k.jsx(GE,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=GE.muiName,x.memo(x.forwardRef(n))}function fSe(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Uj(e,t){if(!e)return t;function n(a,s){const l={};return Object.keys(s).forEach(c=>{fSe(c,s[c])&&typeof a[c]=="function"&&(l[c]=(...u)=>{a[c](...u),s[c](...u)})}),l}if(typeof e=="function"||typeof t=="function")return a=>{const s=typeof t=="function"?t(a):t,l=typeof e=="function"?e({...a,...s}):e,c=fe(a==null?void 0:a.className,s==null?void 0:s.className,l==null?void 0:l.className),u=n(l,s);return{...s,...l,...u,...!!c&&{className:c},...(s==null?void 0:s.style)&&(l==null?void 0:l.style)&&{style:{...s.style,...l.style}},...(s==null?void 0:s.sx)&&(l==null?void 0:l.sx)&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const r=t,o=n(e,r),i=fe(r==null?void 0:r.className,e==null?void 0:e.className);return{...t,...e,...o,...!!i&&{className:i},...(r==null?void 0:r.style)&&(e==null?void 0:e.style)&&{style:{...r.style,...e.style}},...(r==null?void 0:r.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function $e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function fN(e,t){return fN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},fN(e,t)}function Gj(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fN(e,t)}function pSe(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function hSe(e,t){e.classList?e.classList.add(t):pSe(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function EG(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function mSe(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=EG(e.className,t):e.setAttribute("class",EG(e.className&&e.className.baseVal||"",t))}var CR={exports:{}},Ai={};/** +export default theme;`}function J$(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Bu(20));const u=zj(i),f=nv(e);let h=si(f,{mixins:nxe(f.breakpoints,r),palette:u,shadows:sxe.slice(),typography:Rte(u,s),transitions:uxe(a),zIndex:{...dxe}});return h=si(h,c),h=t.reduce((m,g)=>si(m,g),h),h.unstable_sxConfig={...XS,...c==null?void 0:c.unstable_sxConfig},h.unstable_sx=function(g){return wf({sx:g,theme:this})},h.toRuntimeSource=kte,h}function Z$(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 pxe=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Z$(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function _te(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function $te(e){return e==="dark"?pxe:[]}function hxe(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=zj(t);return{palette:i,opacity:{..._te(i.mode),...n},overlays:r||$te(i.mode),...o}}function mxe(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 gxe=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],yxe=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return gxe(e.cssVarPrefix).forEach(s=>{a[s]=n[s],delete n[s]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",t)]:a,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function vxe(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Qe(e,t,n){!e[t]&&n&&(e[t]=n)}function M0(e){return typeof e!="string"||!e.startsWith("hsl")?e:vte(e)}function mu(e,t){`${t}Channel`in e||(e[`${t}Channel`]=A0(M0(e[t])))}function bxe(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const cc=e=>{try{return e()}catch{}},xxe=(e="mui")=>h0e(e);function wR(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=hxe({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...a}=J$({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{..._te(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||$te(o)},a}function Sxe(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=mxe,colorSchemeSelector:s=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],f=r||(n.light&&u!=="light"?"light":u),h=xxe(i),{[f]:m,light:g,dark:y,...v}=n,w={...v};let C=m;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(C=!0),!C)throw new Error(Bu(21,f));const E=wR(w,C,c,f);g&&!w.light&&wR(w,g,void 0,"light"),y&&!w.dark&&wR(w,y,void 0,"dark");let I={defaultColorScheme:f,...E,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:l,getCssVar:h,colorSchemes:w,font:{...txe(E.typography),...E.font},spacing:bxe(c.spacing)};Object.keys(I.colorSchemes).forEach(M=>{const A=I.colorSchemes[M].palette,_=N=>{const B=N.split("-"),H=B[1],j=B[2];return h(N,A[H][j])};if(A.mode==="light"&&(Qe(A.common,"background","#fff"),Qe(A.common,"onBackground","#000")),A.mode==="dark"&&(Qe(A.common,"background","#000"),Qe(A.common,"onBackground","#fff")),vxe(A,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),A.mode==="light"){Qe(A.Alert,"errorColor",Ir(A.error.light,.6)),Qe(A.Alert,"infoColor",Ir(A.info.light,.6)),Qe(A.Alert,"successColor",Ir(A.success.light,.6)),Qe(A.Alert,"warningColor",Ir(A.warning.light,.6)),Qe(A.Alert,"errorFilledBg",_("palette-error-main")),Qe(A.Alert,"infoFilledBg",_("palette-info-main")),Qe(A.Alert,"successFilledBg",_("palette-success-main")),Qe(A.Alert,"warningFilledBg",_("palette-warning-main")),Qe(A.Alert,"errorFilledColor",cc(()=>A.getContrastText(A.error.main))),Qe(A.Alert,"infoFilledColor",cc(()=>A.getContrastText(A.info.main))),Qe(A.Alert,"successFilledColor",cc(()=>A.getContrastText(A.success.main))),Qe(A.Alert,"warningFilledColor",cc(()=>A.getContrastText(A.warning.main))),Qe(A.Alert,"errorStandardBg",Pr(A.error.light,.9)),Qe(A.Alert,"infoStandardBg",Pr(A.info.light,.9)),Qe(A.Alert,"successStandardBg",Pr(A.success.light,.9)),Qe(A.Alert,"warningStandardBg",Pr(A.warning.light,.9)),Qe(A.Alert,"errorIconColor",_("palette-error-main")),Qe(A.Alert,"infoIconColor",_("palette-info-main")),Qe(A.Alert,"successIconColor",_("palette-success-main")),Qe(A.Alert,"warningIconColor",_("palette-warning-main")),Qe(A.AppBar,"defaultBg",_("palette-grey-100")),Qe(A.Avatar,"defaultBg",_("palette-grey-400")),Qe(A.Button,"inheritContainedBg",_("palette-grey-300")),Qe(A.Button,"inheritContainedHoverBg",_("palette-grey-A100")),Qe(A.Chip,"defaultBorder",_("palette-grey-400")),Qe(A.Chip,"defaultAvatarColor",_("palette-grey-700")),Qe(A.Chip,"defaultIconColor",_("palette-grey-700")),Qe(A.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Qe(A.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Qe(A.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Qe(A.LinearProgress,"primaryBg",Pr(A.primary.main,.62)),Qe(A.LinearProgress,"secondaryBg",Pr(A.secondary.main,.62)),Qe(A.LinearProgress,"errorBg",Pr(A.error.main,.62)),Qe(A.LinearProgress,"infoBg",Pr(A.info.main,.62)),Qe(A.LinearProgress,"successBg",Pr(A.success.main,.62)),Qe(A.LinearProgress,"warningBg",Pr(A.warning.main,.62)),Qe(A.Skeleton,"bg",`rgba(${_("palette-text-primaryChannel")} / 0.11)`),Qe(A.Slider,"primaryTrack",Pr(A.primary.main,.62)),Qe(A.Slider,"secondaryTrack",Pr(A.secondary.main,.62)),Qe(A.Slider,"errorTrack",Pr(A.error.main,.62)),Qe(A.Slider,"infoTrack",Pr(A.info.main,.62)),Qe(A.Slider,"successTrack",Pr(A.success.main,.62)),Qe(A.Slider,"warningTrack",Pr(A.warning.main,.62));const N=m1(A.background.default,.8);Qe(A.SnackbarContent,"bg",N),Qe(A.SnackbarContent,"color",cc(()=>A.getContrastText(N))),Qe(A.SpeedDialAction,"fabHoverBg",m1(A.background.paper,.15)),Qe(A.StepConnector,"border",_("palette-grey-400")),Qe(A.StepContent,"border",_("palette-grey-400")),Qe(A.Switch,"defaultColor",_("palette-common-white")),Qe(A.Switch,"defaultDisabledColor",_("palette-grey-100")),Qe(A.Switch,"primaryDisabledColor",Pr(A.primary.main,.62)),Qe(A.Switch,"secondaryDisabledColor",Pr(A.secondary.main,.62)),Qe(A.Switch,"errorDisabledColor",Pr(A.error.main,.62)),Qe(A.Switch,"infoDisabledColor",Pr(A.info.main,.62)),Qe(A.Switch,"successDisabledColor",Pr(A.success.main,.62)),Qe(A.Switch,"warningDisabledColor",Pr(A.warning.main,.62)),Qe(A.TableCell,"border",Pr(h1(A.divider,1),.88)),Qe(A.Tooltip,"bg",h1(A.grey[700],.92))}if(A.mode==="dark"){Qe(A.Alert,"errorColor",Pr(A.error.light,.6)),Qe(A.Alert,"infoColor",Pr(A.info.light,.6)),Qe(A.Alert,"successColor",Pr(A.success.light,.6)),Qe(A.Alert,"warningColor",Pr(A.warning.light,.6)),Qe(A.Alert,"errorFilledBg",_("palette-error-dark")),Qe(A.Alert,"infoFilledBg",_("palette-info-dark")),Qe(A.Alert,"successFilledBg",_("palette-success-dark")),Qe(A.Alert,"warningFilledBg",_("palette-warning-dark")),Qe(A.Alert,"errorFilledColor",cc(()=>A.getContrastText(A.error.dark))),Qe(A.Alert,"infoFilledColor",cc(()=>A.getContrastText(A.info.dark))),Qe(A.Alert,"successFilledColor",cc(()=>A.getContrastText(A.success.dark))),Qe(A.Alert,"warningFilledColor",cc(()=>A.getContrastText(A.warning.dark))),Qe(A.Alert,"errorStandardBg",Ir(A.error.light,.9)),Qe(A.Alert,"infoStandardBg",Ir(A.info.light,.9)),Qe(A.Alert,"successStandardBg",Ir(A.success.light,.9)),Qe(A.Alert,"warningStandardBg",Ir(A.warning.light,.9)),Qe(A.Alert,"errorIconColor",_("palette-error-main")),Qe(A.Alert,"infoIconColor",_("palette-info-main")),Qe(A.Alert,"successIconColor",_("palette-success-main")),Qe(A.Alert,"warningIconColor",_("palette-warning-main")),Qe(A.AppBar,"defaultBg",_("palette-grey-900")),Qe(A.AppBar,"darkBg",_("palette-background-paper")),Qe(A.AppBar,"darkColor",_("palette-text-primary")),Qe(A.Avatar,"defaultBg",_("palette-grey-600")),Qe(A.Button,"inheritContainedBg",_("palette-grey-800")),Qe(A.Button,"inheritContainedHoverBg",_("palette-grey-700")),Qe(A.Chip,"defaultBorder",_("palette-grey-700")),Qe(A.Chip,"defaultAvatarColor",_("palette-grey-300")),Qe(A.Chip,"defaultIconColor",_("palette-grey-300")),Qe(A.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Qe(A.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Qe(A.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Qe(A.LinearProgress,"primaryBg",Ir(A.primary.main,.5)),Qe(A.LinearProgress,"secondaryBg",Ir(A.secondary.main,.5)),Qe(A.LinearProgress,"errorBg",Ir(A.error.main,.5)),Qe(A.LinearProgress,"infoBg",Ir(A.info.main,.5)),Qe(A.LinearProgress,"successBg",Ir(A.success.main,.5)),Qe(A.LinearProgress,"warningBg",Ir(A.warning.main,.5)),Qe(A.Skeleton,"bg",`rgba(${_("palette-text-primaryChannel")} / 0.13)`),Qe(A.Slider,"primaryTrack",Ir(A.primary.main,.5)),Qe(A.Slider,"secondaryTrack",Ir(A.secondary.main,.5)),Qe(A.Slider,"errorTrack",Ir(A.error.main,.5)),Qe(A.Slider,"infoTrack",Ir(A.info.main,.5)),Qe(A.Slider,"successTrack",Ir(A.success.main,.5)),Qe(A.Slider,"warningTrack",Ir(A.warning.main,.5));const N=m1(A.background.default,.98);Qe(A.SnackbarContent,"bg",N),Qe(A.SnackbarContent,"color",cc(()=>A.getContrastText(N))),Qe(A.SpeedDialAction,"fabHoverBg",m1(A.background.paper,.15)),Qe(A.StepConnector,"border",_("palette-grey-600")),Qe(A.StepContent,"border",_("palette-grey-600")),Qe(A.Switch,"defaultColor",_("palette-grey-300")),Qe(A.Switch,"defaultDisabledColor",_("palette-grey-600")),Qe(A.Switch,"primaryDisabledColor",Ir(A.primary.main,.55)),Qe(A.Switch,"secondaryDisabledColor",Ir(A.secondary.main,.55)),Qe(A.Switch,"errorDisabledColor",Ir(A.error.main,.55)),Qe(A.Switch,"infoDisabledColor",Ir(A.info.main,.55)),Qe(A.Switch,"successDisabledColor",Ir(A.success.main,.55)),Qe(A.Switch,"warningDisabledColor",Ir(A.warning.main,.55)),Qe(A.TableCell,"border",Ir(h1(A.divider,1),.68)),Qe(A.Tooltip,"bg",h1(A.grey[700],.92))}mu(A.background,"default"),mu(A.background,"paper"),mu(A.common,"background"),mu(A.common,"onBackground"),mu(A,"divider"),Object.keys(A).forEach(N=>{const B=A[N];N!=="tonalOffset"&&B&&typeof B=="object"&&(B.main&&Qe(A[N],"mainChannel",A0(M0(B.main))),B.light&&Qe(A[N],"lightChannel",A0(M0(B.light))),B.dark&&Qe(A[N],"darkChannel",A0(M0(B.dark))),B.contrastText&&Qe(A[N],"contrastTextChannel",A0(M0(B.contrastText))),N==="text"&&(mu(A[N],"primary"),mu(A[N],"secondary")),N==="action"&&(B.active&&mu(A[N],"active"),B.selected&&mu(A[N],"selected")))})}),I=t.reduce((M,A)=>si(M,A),I);const O={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:yxe(I)},{vars:P,generateThemeVars:R,generateStyleSheets:D}=y0e(I,O);return I.vars=P,Object.entries(I.colorSchemes[I.defaultColorScheme]).forEach(([M,A])=>{I[M]=A}),I.generateThemeVars=R,I.generateStyleSheets=D,I.generateSpacing=function(){return ute(c.spacing,qO(this))},I.getColorSchemeSelector=v0e(s),I.spacing=I.generateSpacing(),I.shouldSkipGeneratingVar=a,I.unstable_sxConfig={...XS,...c==null?void 0:c.unstable_sxConfig},I.unstable_sx=function(A){return wf({sx:A,theme:this})},I.toRuntimeSource=kte,I}function hG(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:zj({...n===!0?{}:n.palette,mode:t})})}function ZS(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,s=i||"light",l=o==null?void 0:o[s],c={...o,...n?{[s]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return J$(e,...t);let u=n;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const f=J$({...e,palette:u},...t);return f.defaultColorScheme=s,f.colorSchemes=c,f.palette.mode==="light"&&(f.colorSchemes.light={...c.light!==!0&&c.light,palette:f.palette},hG(f,"dark",c.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:f.palette},hG(f,"light",c.light)),f}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),Sxe({...a,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}function wxe(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Cxe(e){return parseFloat(e)}const rI=ZS();function Lr(){const e=JS(rI);return e[qs]||e}function Pn({props:e,name:t}){return ZO({props:e,name:t,defaultTheme:rI,themeId:qs})}function Nte(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ui=e=>Nte(e)&&e!=="classes",ae=mte({themeId:qs,defaultTheme:rI,rootShouldForwardProp:ui});function CR({theme:e,...t}){const n=qs in e?e[qs]:void 0;return k.jsx(Ite,{...t,themeId:n?qs:void 0,theme:n||e})}const g1={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:Exe}=p0e({themeId:qs,theme:()=>ZS({cssVariables:!0}),colorSchemeStorageKey:g1.colorSchemeStorageKey,modeStorageKey:g1.modeStorageKey,defaultColorScheme:{light:g1.defaultLightColorScheme,dark:g1.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:Rte(e.palette,e.typography)};return t.unstable_sx=function(r){return wf({sx:r,theme:this})},t}}),Txe=Exe;function Nh({theme:e,...t}){if(typeof e=="function")return k.jsx(CR,{theme:e,...t});const n=qs in e?e[qs]:e;return"colorSchemes"in n?k.jsx(Txe,{theme:e,...t}):"vars"in n?k.jsx(CR,{theme:e,...t}):k.jsx(CR,{theme:{...e,vars:null},...t})}var iv=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(){}},uh=typeof window>"u"||"Deno"in globalThis;function $s(){}function Oxe(e,t){return typeof e=="function"?e(t):e}function eN(e){return typeof e=="number"&&e>=0&&e!==1/0}function Lte(e,t){return Math.max(e+(t||0)-Date.now(),0)}function kg(e,t){return typeof e=="function"?e(t):e}function Ml(e,t){return typeof e=="function"?e(t):e}function mG(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==Vj(a,t.options))return!1}else if(!Cx(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||o&&o!==t.state.fetchStatus||i&&!i(t))}function gG(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(dh(t.options.mutationKey)!==dh(i))return!1}else if(!Cx(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Vj(e,t){return((t==null?void 0:t.queryKeyHashFn)||dh)(e)}function dh(e){return JSON.stringify(e,(t,n)=>tN(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Cx(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Cx(e[n],t[n])):!1}function Fte(e,t){if(e===t)return e;const n=yG(e)&&yG(t);if(n||tN(e)&&tN(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),a=i.length,s=n?[]:{};let l=0;for(let c=0;c{setTimeout(t,e)})}function nN(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Fte(e,t):t}function Pxe(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Axe(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Hj=Symbol();function jte(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Hj?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var qp,tf,Ug,kee,Mxe=(kee=class extends iv{constructor(){super();Yt(this,qp);Yt(this,tf);Yt(this,Ug);_t(this,Ug,t=>{if(!uh&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){be(this,tf)||this.setEventListener(be(this,Ug))}onUnsubscribe(){var t;this.hasListeners()||((t=be(this,tf))==null||t.call(this),_t(this,tf,void 0))}setEventListener(t){var n;_t(this,Ug,t),(n=be(this,tf))==null||n.call(this),_t(this,tf,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){be(this,qp)!==t&&(_t(this,qp,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof be(this,qp)=="boolean"?be(this,qp):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},qp=new WeakMap,tf=new WeakMap,Ug=new WeakMap,kee),Uj=new Mxe,Gg,nf,qg,_ee,Rxe=(_ee=class extends iv{constructor(){super();Yt(this,Gg,!0);Yt(this,nf);Yt(this,qg);_t(this,qg,t=>{if(!uh&&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(){be(this,nf)||this.setEventListener(be(this,qg))}onUnsubscribe(){var t;this.hasListeners()||((t=be(this,nf))==null||t.call(this),_t(this,nf,void 0))}setEventListener(t){var n;_t(this,qg,t),(n=be(this,nf))==null||n.call(this),_t(this,nf,t(this.setOnline.bind(this)))}setOnline(t){be(this,Gg)!==t&&(_t(this,Gg,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return be(this,Gg)}},Gg=new WeakMap,nf=new WeakMap,qg=new WeakMap,_ee),GE=new Rxe;function rN(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function Dxe(e){return Math.min(1e3*2**e,3e4)}function Bte(e){return(e??"online")==="online"?GE.isOnline():!0}var zte=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ER(e){return e instanceof zte}function Vte(e){let t=!1,n=0,r=!1,o;const i=rN(),a=y=>{var v;r||(h(new zte(y)),(v=e.abort)==null||v.call(e))},s=()=>{t=!0},l=()=>{t=!1},c=()=>Uj.isFocused()&&(e.networkMode==="always"||GE.isOnline())&&e.canRun(),u=()=>Bte(e.networkMode)&&e.canRun(),f=y=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,y),o==null||o(),i.resolve(y))},h=y=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,y),o==null||o(),i.reject(y))},m=()=>new Promise(y=>{var v;o=w=>{(r||c())&&y(w)},(v=e.onPause)==null||v.call(e)}).then(()=>{var y;o=void 0,r||(y=e.onContinue)==null||y.call(e)}),g=()=>{if(r)return;let y;const v=n===0?e.initialPromise:void 0;try{y=v??e.fn()}catch(w){y=Promise.reject(w)}Promise.resolve(y).then(f).catch(w=>{var P;if(r)return;const C=e.retry??(uh?0:3),E=e.retryDelay??Dxe,I=typeof E=="function"?E(n,w):E,O=C===!0||typeof C=="number"&&nc()?void 0:m()).then(()=>{t?h(w):g()})})};return{promise:i,cancel:a,continue:()=>(o==null||o(),i),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?g():m().then(g),i)}}var kxe=e=>setTimeout(e,0);function _xe(){let e=[],t=0,n=s=>{s()},r=s=>{s()},o=kxe;const i=s=>{t?e.push(s):o(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&o(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{i(()=>{s(...l)})},schedule:i,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{o=s}}}var zo=_xe(),Wp,$ee,Hte=($ee=class{constructor(){Yt(this,Wp)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),eN(this.gcTime)&&_t(this,Wp,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(uh?1/0:5*60*1e3))}clearGcTimeout(){be(this,Wp)&&(clearTimeout(be(this,Wp)),_t(this,Wp,void 0))}},Wp=new WeakMap,$ee),Wg,Kg,_s,Kp,Ri,zS,Yp,El,bu,Nee,$xe=(Nee=class extends Hte{constructor(t){super();Yt(this,El);Yt(this,Wg);Yt(this,Kg);Yt(this,_s);Yt(this,Kp);Yt(this,Ri);Yt(this,zS);Yt(this,Yp);_t(this,Yp,!1),_t(this,zS,t.defaultOptions),this.setOptions(t.options),this.observers=[],_t(this,Kp,t.client),_t(this,_s,be(this,Kp).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,_t(this,Wg,Nxe(this.options)),this.state=t.state??be(this,Wg),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=be(this,Ri))==null?void 0:t.promise}setOptions(t){this.options={...be(this,zS),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&be(this,_s).remove(this)}setData(t,n){const r=nN(this.state.data,t,this.options);return An(this,El,bu).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){An(this,El,bu).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=be(this,Ri))==null?void 0:r.promise;return(o=be(this,Ri))==null||o.cancel(t),n?n.then($s).catch($s):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(be(this,Wg))}isActive(){return this.observers.some(t=>Ml(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Hj||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||!Lte(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=be(this,Ri))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=be(this,Ri))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),be(this,_s).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(be(this,Ri)&&(be(this,Yp)?be(this,Ri).cancel({revert:!0}):be(this,Ri).cancelRetry()),this.scheduleGc()),be(this,_s).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||An(this,El,bu).call(this,{type:"invalidate"})}fetch(t,n){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(be(this,Ri))return be(this,Ri).continueRetry(),be(this,Ri).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(_t(this,Yp,!0),r.signal)})},i=()=>{const f=jte(this.options,n),h={client:be(this,Kp),queryKey:this.queryKey,meta:this.meta};return o(h),_t(this,Yp,!1),this.options.persister?this.options.persister(f,h,this):f(h)},a={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:be(this,Kp),state:this.state,fetchFn:i};o(a),(l=this.options.behavior)==null||l.onFetch(a,this),_t(this,Kg,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&An(this,El,bu).call(this,{type:"fetch",meta:(u=a.fetchOptions)==null?void 0:u.meta});const s=f=>{var h,m,g,y;ER(f)&&f.silent||An(this,El,bu).call(this,{type:"error",error:f}),ER(f)||((m=(h=be(this,_s).config).onError)==null||m.call(h,f,this),(y=(g=be(this,_s).config).onSettled)==null||y.call(g,this.state.data,f,this)),this.scheduleGc()};return _t(this,Ri,Vte({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var h,m,g,y;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(v){s(v);return}(m=(h=be(this,_s).config).onSuccess)==null||m.call(h,f,this),(y=(g=be(this,_s).config).onSettled)==null||y.call(g,f,this.state.error,this),this.scheduleGc()},onError:s,onFail:(f,h)=>{An(this,El,bu).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{An(this,El,bu).call(this,{type:"pause"})},onContinue:()=>{An(this,El,bu).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),be(this,Ri).start()}},Wg=new WeakMap,Kg=new WeakMap,_s=new WeakMap,Kp=new WeakMap,Ri=new WeakMap,zS=new WeakMap,Yp=new WeakMap,El=new WeakSet,bu=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,...Ute(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 o=t.error;return ER(o)&&o.revert&&be(this,Kg)?{...be(this,Kg),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),zo.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),be(this,_s).notify({query:this,type:"updated",action:t})})},Nee);function Ute(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Bte(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Nxe(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 fc,Lee,Lxe=(Lee=class extends iv{constructor(t={}){super();Yt(this,fc);this.config=t,_t(this,fc,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Vj(o,n);let a=this.get(i);return a||(a=new $xe({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){be(this,fc).has(t.queryHash)||(be(this,fc).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=be(this,fc).get(t.queryHash);n&&(t.destroy(),n===t&&be(this,fc).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){zo.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return be(this,fc).get(t)}getAll(){return[...be(this,fc).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>mG(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>mG(t,r)):n}notify(t){zo.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){zo.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){zo.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},fc=new WeakMap,Lee),pc,Xi,Qp,hc,jd,Fee,Fxe=(Fee=class extends Hte{constructor(t){super();Yt(this,hc);Yt(this,pc);Yt(this,Xi);Yt(this,Qp);this.mutationId=t.mutationId,_t(this,Xi,t.mutationCache),_t(this,pc,[]),this.state=t.state||Gte(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){be(this,pc).includes(t)||(be(this,pc).push(t),this.clearGcTimeout(),be(this,Xi).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){_t(this,pc,be(this,pc).filter(n=>n!==t)),this.scheduleGc(),be(this,Xi).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){be(this,pc).length||(this.state.status==="pending"?this.scheduleGc():be(this,Xi).remove(this))}continue(){var t;return((t=be(this,Qp))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,a,s,l,c,u,f,h,m,g,y,v,w,C,E,I,O,P,R;_t(this,Qp,Vte({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(D,M)=>{An(this,hc,jd).call(this,{type:"failed",failureCount:D,error:M})},onPause:()=>{An(this,hc,jd).call(this,{type:"pause"})},onContinue:()=>{An(this,hc,jd).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>be(this,Xi).canRun(this)}));const n=this.state.status==="pending",r=!be(this,Qp).canStart();try{if(!n){An(this,hc,jd).call(this,{type:"pending",variables:t,isPaused:r}),await((i=(o=be(this,Xi).config).onMutate)==null?void 0:i.call(o,t,this));const M=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));M!==this.state.context&&An(this,hc,jd).call(this,{type:"pending",context:M,variables:t,isPaused:r})}const D=await be(this,Qp).start();return await((c=(l=be(this,Xi).config).onSuccess)==null?void 0:c.call(l,D,t,this.state.context,this)),await((f=(u=this.options).onSuccess)==null?void 0:f.call(u,D,t,this.state.context)),await((m=(h=be(this,Xi).config).onSettled)==null?void 0:m.call(h,D,null,this.state.variables,this.state.context,this)),await((y=(g=this.options).onSettled)==null?void 0:y.call(g,D,null,t,this.state.context)),An(this,hc,jd).call(this,{type:"success",data:D}),D}catch(D){try{throw await((w=(v=be(this,Xi).config).onError)==null?void 0:w.call(v,D,t,this.state.context,this)),await((E=(C=this.options).onError)==null?void 0:E.call(C,D,t,this.state.context)),await((O=(I=be(this,Xi).config).onSettled)==null?void 0:O.call(I,void 0,D,this.state.variables,this.state.context,this)),await((R=(P=this.options).onSettled)==null?void 0:R.call(P,void 0,D,t,this.state.context)),D}finally{An(this,hc,jd).call(this,{type:"error",error:D})}}finally{be(this,Xi).runNext(this)}}},pc=new WeakMap,Xi=new WeakMap,Qp=new WeakMap,hc=new WeakSet,jd=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),zo.batch(()=>{be(this,pc).forEach(r=>{r.onMutationUpdate(t)}),be(this,Xi).notify({mutation:this,type:"updated",action:t})})},Fee);function Gte(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ou,Tl,VS,jee,jxe=(jee=class extends iv{constructor(t={}){super();Yt(this,Ou);Yt(this,Tl);Yt(this,VS);this.config=t,_t(this,Ou,new Set),_t(this,Tl,new Map),_t(this,VS,0)}build(t,n,r){const o=new Fxe({mutationCache:this,mutationId:++d1(this,VS)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){be(this,Ou).add(t);const n=y1(t);if(typeof n=="string"){const r=be(this,Tl).get(n);r?r.push(t):be(this,Tl).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(be(this,Ou).delete(t)){const n=y1(t);if(typeof n=="string"){const r=be(this,Tl).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&be(this,Tl).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=y1(t);if(typeof n=="string"){const r=be(this,Tl).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=y1(t);if(typeof n=="string"){const o=(r=be(this,Tl).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){zo.batch(()=>{be(this,Ou).forEach(t=>{this.notify({type:"removed",mutation:t})}),be(this,Ou).clear(),be(this,Tl).clear()})}getAll(){return Array.from(be(this,Ou))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>gG(n,r))}findAll(t={}){return this.getAll().filter(n=>gG(t,n))}notify(t){zo.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return zo.batch(()=>Promise.all(t.map(n=>n.continue().catch($s))))}},Ou=new WeakMap,Tl=new WeakMap,VS=new WeakMap,jee);function y1(e){var t;return(t=e.options.scope)==null?void 0:t.id}function bG(e){return{onFetch:(t,n)=>{var u,f,h,m,g;const r=t.options,o=(h=(f=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,i=((m=t.state.data)==null?void 0:m.pages)||[],a=((g=t.state.data)==null?void 0:g.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let y=!1;const v=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},w=jte(t.options,t.fetchOptions),C=async(E,I,O)=>{if(y)return Promise.reject();if(I==null&&E.pages.length)return Promise.resolve(E);const P={client:t.client,queryKey:t.queryKey,pageParam:I,direction:O?"backward":"forward",meta:t.options.meta};v(P);const R=await w(P),{maxPages:D}=t.options,M=O?Axe:Pxe;return{pages:M(E.pages,R,D),pageParams:M(E.pageParams,I,D)}};if(o&&i.length){const E=o==="backward",I=E?Bxe:xG,O={pages:i,pageParams:a},P=I(r,O);s=await C(O,P,E)}else{const E=e??i.length;do{const I=l===0?a[0]??r.initialPageParam:xG(r,s);if(l>0&&I==null)break;s=await C(s,I),l++}while(l{var y,v;return(v=(y=t.options).persister)==null?void 0:v.call(y,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function xG(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 Bxe(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 co,rf,of,Yg,Qg,af,Xg,Jg,Bee,zxe=(Bee=class{constructor(e={}){Yt(this,co);Yt(this,rf);Yt(this,of);Yt(this,Yg);Yt(this,Qg);Yt(this,af);Yt(this,Xg);Yt(this,Jg);_t(this,co,e.queryCache||new Lxe),_t(this,rf,e.mutationCache||new jxe),_t(this,of,e.defaultOptions||{}),_t(this,Yg,new Map),_t(this,Qg,new Map),_t(this,af,0)}mount(){d1(this,af)._++,be(this,af)===1&&(_t(this,Xg,Uj.subscribe(async e=>{e&&(await this.resumePausedMutations(),be(this,co).onFocus())})),_t(this,Jg,GE.subscribe(async e=>{e&&(await this.resumePausedMutations(),be(this,co).onOnline())})))}unmount(){var e,t;d1(this,af)._--,be(this,af)===0&&((e=be(this,Xg))==null||e.call(this),_t(this,Xg,void 0),(t=be(this,Jg))==null||t.call(this),_t(this,Jg,void 0))}isFetching(e){return be(this,co).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return be(this,rf).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=be(this,co).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=be(this,co).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(kg(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return be(this,co).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=be(this,co).get(r.queryHash),i=o==null?void 0:o.state.data,a=Oxe(t,i);if(a!==void 0)return be(this,co).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return zo.batch(()=>be(this,co).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=be(this,co).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=be(this,co);zo.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=be(this,co);return zo.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=zo.batch(()=>be(this,co).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then($s).catch($s)}invalidateQueries(e,t={}){return zo.batch(()=>(be(this,co).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=zo.batch(()=>be(this,co).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch($s)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then($s)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=be(this,co).build(this,t);return n.isStaleByTime(kg(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then($s).catch($s)}fetchInfiniteQuery(e){return e.behavior=bG(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then($s).catch($s)}ensureInfiniteQueryData(e){return e.behavior=bG(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return GE.isOnline()?be(this,rf).resumePausedMutations():Promise.resolve()}getQueryCache(){return be(this,co)}getMutationCache(){return be(this,rf)}getDefaultOptions(){return be(this,of)}setDefaultOptions(e){_t(this,of,e)}setQueryDefaults(e,t){be(this,Yg).set(dh(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...be(this,Yg).values()],n={};return t.forEach(r=>{Cx(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){be(this,Qg).set(dh(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...be(this,Qg).values()],n={};return t.forEach(r=>{Cx(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...be(this,of).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Vj(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===Hj&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...be(this,of).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){be(this,co).clear(),be(this,rf).clear()}},co=new WeakMap,rf=new WeakMap,of=new WeakMap,Yg=new WeakMap,Qg=new WeakMap,af=new WeakMap,Xg=new WeakMap,Jg=new WeakMap,Bee),ma,Un,HS,Ji,Xp,Zg,sf,mc,US,ey,ty,Jp,Zp,lf,ny,pr,R0,oN,iN,aN,sN,lN,cN,uN,qte,zee,Vxe=(zee=class extends iv{constructor(t,n){super();Yt(this,pr);Yt(this,ma);Yt(this,Un);Yt(this,HS);Yt(this,Ji);Yt(this,Xp);Yt(this,Zg);Yt(this,sf);Yt(this,mc);Yt(this,US);Yt(this,ey);Yt(this,ty);Yt(this,Jp);Yt(this,Zp);Yt(this,lf);Yt(this,ny,new Set);this.options=n,_t(this,ma,t),_t(this,mc,null),_t(this,sf,rN()),this.options.experimental_prefetchInRender||be(this,sf).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&&(be(this,Un).addObserver(this),SG(be(this,Un),this.options)?An(this,pr,R0).call(this):this.updateResult(),An(this,pr,sN).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return dN(be(this,Un),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return dN(be(this,Un),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,An(this,pr,lN).call(this),An(this,pr,cN).call(this),be(this,Un).removeObserver(this)}setOptions(t){const n=this.options,r=be(this,Un);if(this.options=be(this,ma).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ml(this.options.enabled,be(this,Un))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");An(this,pr,uN).call(this),be(this,Un).setOptions(this.options),n._defaulted&&!UE(this.options,n)&&be(this,ma).getQueryCache().notify({type:"observerOptionsUpdated",query:be(this,Un),observer:this});const o=this.hasListeners();o&&wG(be(this,Un),r,this.options,n)&&An(this,pr,R0).call(this),this.updateResult(),o&&(be(this,Un)!==r||Ml(this.options.enabled,be(this,Un))!==Ml(n.enabled,be(this,Un))||kg(this.options.staleTime,be(this,Un))!==kg(n.staleTime,be(this,Un)))&&An(this,pr,oN).call(this);const i=An(this,pr,iN).call(this);o&&(be(this,Un)!==r||Ml(this.options.enabled,be(this,Un))!==Ml(n.enabled,be(this,Un))||i!==be(this,lf))&&An(this,pr,aN).call(this,i)}getOptimisticResult(t){const n=be(this,ma).getQueryCache().build(be(this,ma),t),r=this.createResult(n,t);return Uxe(this,r)&&(_t(this,Ji,r),_t(this,Zg,this.options),_t(this,Xp,be(this,Un).state)),r}getCurrentResult(){return be(this,Ji)}trackResult(t,n){const r={};return Object.keys(t).forEach(o=>{Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),n==null||n(o),t[o])})}),r}trackProp(t){be(this,ny).add(t)}getCurrentQuery(){return be(this,Un)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=be(this,ma).defaultQueryOptions(t),r=be(this,ma).getQueryCache().build(be(this,ma),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return An(this,pr,R0).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),be(this,Ji)))}createResult(t,n){var D;const r=be(this,Un),o=this.options,i=be(this,Ji),a=be(this,Xp),s=be(this,Zg),c=t!==r?t.state:be(this,HS),{state:u}=t;let f={...u},h=!1,m;if(n._optimisticResults){const M=this.hasListeners(),A=!M&&SG(t,n),_=M&&wG(t,r,n,o);(A||_)&&(f={...f,...Ute(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:g,errorUpdatedAt:y,status:v}=f;if(n.select&&f.data!==void 0)if(i&&f.data===(a==null?void 0:a.data)&&n.select===be(this,US))m=be(this,ey);else try{_t(this,US,n.select),m=n.select(f.data),m=nN(i==null?void 0:i.data,m,n),_t(this,ey,m),_t(this,mc,null)}catch(M){_t(this,mc,M)}else m=f.data;if(n.placeholderData!==void 0&&m===void 0&&v==="pending"){let M;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))M=i.data;else if(M=typeof n.placeholderData=="function"?n.placeholderData((D=be(this,ty))==null?void 0:D.state.data,be(this,ty)):n.placeholderData,n.select&&M!==void 0)try{M=n.select(M),_t(this,mc,null)}catch(A){_t(this,mc,A)}M!==void 0&&(v="success",m=nN(i==null?void 0:i.data,M,n),h=!0)}be(this,mc)&&(g=be(this,mc),m=be(this,ey),y=Date.now(),v="error");const w=f.fetchStatus==="fetching",C=v==="pending",E=v==="error",I=C&&w,O=m!==void 0,R={status:v,fetchStatus:f.fetchStatus,isPending:C,isSuccess:v==="success",isError:E,isInitialLoading:I,isLoading:I,data:m,dataUpdatedAt:f.dataUpdatedAt,error:g,errorUpdatedAt:y,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:w,isRefetching:w&&!C,isLoadingError:E&&!O,isPaused:f.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:E&&O,isStale:Gj(t,n),refetch:this.refetch,promise:be(this,sf)};if(this.options.experimental_prefetchInRender){const M=N=>{R.status==="error"?N.reject(R.error):R.data!==void 0&&N.resolve(R.data)},A=()=>{const N=_t(this,sf,R.promise=rN());M(N)},_=be(this,sf);switch(_.status){case"pending":t.queryHash===r.queryHash&&M(_);break;case"fulfilled":(R.status==="error"||R.data!==_.value)&&A();break;case"rejected":(R.status!=="error"||R.error!==_.reason)&&A();break}}return R}updateResult(){const t=be(this,Ji),n=this.createResult(be(this,Un),this.options);if(_t(this,Xp,be(this,Un).state),_t(this,Zg,this.options),be(this,Xp).data!==void 0&&_t(this,ty,be(this,Un)),UE(n,t))return;_t(this,Ji,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!be(this,ny).size)return!0;const a=new Set(i??be(this,ny));return this.options.throwOnError&&a.add("error"),Object.keys(be(this,Ji)).some(s=>{const l=s;return be(this,Ji)[l]!==t[l]&&a.has(l)})};An(this,pr,qte).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&An(this,pr,sN).call(this)}},ma=new WeakMap,Un=new WeakMap,HS=new WeakMap,Ji=new WeakMap,Xp=new WeakMap,Zg=new WeakMap,sf=new WeakMap,mc=new WeakMap,US=new WeakMap,ey=new WeakMap,ty=new WeakMap,Jp=new WeakMap,Zp=new WeakMap,lf=new WeakMap,ny=new WeakMap,pr=new WeakSet,R0=function(t){An(this,pr,uN).call(this);let n=be(this,Un).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch($s)),n},oN=function(){An(this,pr,lN).call(this);const t=kg(this.options.staleTime,be(this,Un));if(uh||be(this,Ji).isStale||!eN(t))return;const r=Lte(be(this,Ji).dataUpdatedAt,t)+1;_t(this,Jp,setTimeout(()=>{be(this,Ji).isStale||this.updateResult()},r))},iN=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(be(this,Un)):this.options.refetchInterval)??!1},aN=function(t){An(this,pr,cN).call(this),_t(this,lf,t),!(uh||Ml(this.options.enabled,be(this,Un))===!1||!eN(be(this,lf))||be(this,lf)===0)&&_t(this,Zp,setInterval(()=>{(this.options.refetchIntervalInBackground||Uj.isFocused())&&An(this,pr,R0).call(this)},be(this,lf)))},sN=function(){An(this,pr,oN).call(this),An(this,pr,aN).call(this,An(this,pr,iN).call(this))},lN=function(){be(this,Jp)&&(clearTimeout(be(this,Jp)),_t(this,Jp,void 0))},cN=function(){be(this,Zp)&&(clearInterval(be(this,Zp)),_t(this,Zp,void 0))},uN=function(){const t=be(this,ma).getQueryCache().build(be(this,ma),this.options);if(t===be(this,Un))return;const n=be(this,Un);_t(this,Un,t),_t(this,HS,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},qte=function(t){zo.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(be(this,Ji))}),be(this,ma).getQueryCache().notify({query:be(this,Un),type:"observerResultsUpdated"})})},zee);function Hxe(e,t){return Ml(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function SG(e,t){return Hxe(e,t)||e.state.data!==void 0&&dN(e,t,t.refetchOnMount)}function dN(e,t,n){if(Ml(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Gj(e,t)}return!1}function wG(e,t,n,r){return(e!==t||Ml(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Gj(e,n)}function Gj(e,t){return Ml(t.enabled,e)!==!1&&e.isStaleByTime(kg(t.staleTime,e))}function Uxe(e,t){return!UE(e.getCurrentResult(),t)}var cf,uf,ga,Iu,ju,fE,fN,Vee,Gxe=(Vee=class extends iv{constructor(n,r){super();Yt(this,ju);Yt(this,cf);Yt(this,uf);Yt(this,ga);Yt(this,Iu);_t(this,cf,n),this.setOptions(r),this.bindMethods(),An(this,ju,fE).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var o;const r=this.options;this.options=be(this,cf).defaultMutationOptions(n),UE(this.options,r)||be(this,cf).getMutationCache().notify({type:"observerOptionsUpdated",mutation:be(this,ga),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&dh(r.mutationKey)!==dh(this.options.mutationKey)?this.reset():((o=be(this,ga))==null?void 0:o.state.status)==="pending"&&be(this,ga).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=be(this,ga))==null||n.removeObserver(this)}onMutationUpdate(n){An(this,ju,fE).call(this),An(this,ju,fN).call(this,n)}getCurrentResult(){return be(this,uf)}reset(){var n;(n=be(this,ga))==null||n.removeObserver(this),_t(this,ga,void 0),An(this,ju,fE).call(this),An(this,ju,fN).call(this)}mutate(n,r){var o;return _t(this,Iu,r),(o=be(this,ga))==null||o.removeObserver(this),_t(this,ga,be(this,cf).getMutationCache().build(be(this,cf),this.options)),be(this,ga).addObserver(this),be(this,ga).execute(n)}},cf=new WeakMap,uf=new WeakMap,ga=new WeakMap,Iu=new WeakMap,ju=new WeakSet,fE=function(){var r;const n=((r=be(this,ga))==null?void 0:r.state)??Gte();_t(this,uf,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},fN=function(n){zo.batch(()=>{var r,o,i,a,s,l,c,u;if(be(this,Iu)&&this.hasListeners()){const f=be(this,uf).variables,h=be(this,uf).context;(n==null?void 0:n.type)==="success"?((o=(r=be(this,Iu)).onSuccess)==null||o.call(r,n.data,f,h),(a=(i=be(this,Iu)).onSettled)==null||a.call(i,n.data,null,f,h)):(n==null?void 0:n.type)==="error"&&((l=(s=be(this,Iu)).onError)==null||l.call(s,n.error,f,h),(u=(c=be(this,Iu)).onSettled)==null||u.call(c,void 0,n.error,f,h))}this.listeners.forEach(f=>{f(be(this,uf))})})},Vee),Wte=x.createContext(void 0),Mt=e=>{const t=x.useContext(Wte);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},av=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),k.jsx(Wte.Provider,{value:e,children:t})),Kte=x.createContext(!1),qxe=()=>x.useContext(Kte);Kte.Provider;function Wxe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Kxe=x.createContext(Wxe()),Yxe=()=>x.useContext(Kxe);function Yte(e,t){return typeof e=="function"?e(...t):!!e}function pN(){}var Qxe=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Xxe=e=>{x.useEffect(()=>{e.clearReset()},[e])},Jxe=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Yte(n,[e.error,r])),Zxe=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},eSe=(e,t)=>e.isLoading&&e.isFetching&&!t,tSe=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,CG=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function nSe(e,t,n){var f,h,m,g,y;const r=Mt(),o=qxe(),i=Yxe(),a=r.defaultQueryOptions(e);(h=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||h.call(f,a),a._optimisticResults=o?"isRestoring":"optimistic",Zxe(a),Qxe(a,i),Xxe(i);const s=!r.getQueryCache().get(a.queryHash),[l]=x.useState(()=>new t(r,a)),c=l.getOptimisticResult(a),u=!o&&e.subscribed!==!1;if(x.useSyncExternalStore(x.useCallback(v=>{const w=u?l.subscribe(zo.batchCalls(v)):pN;return l.updateResult(),w},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),x.useEffect(()=>{l.setOptions(a)},[a,l]),tSe(a,c))throw CG(a,l,i);if(Jxe({result:c,errorResetBoundary:i,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw c.error;if((g=(m=r.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||g.call(m,a,c),a.experimental_prefetchInRender&&!uh&&eSe(c,o)){const v=s?CG(a,l,i):(y=r.getQueryCache().get(a.queryHash))==null?void 0:y.promise;v==null||v.catch(pN).finally(()=>{l.updateResult()})}return a.notifyOnChangeProps?c:l.trackResult(c)}function yr(e,t){return nSe(e,Vxe)}function Dt(e,t){const n=Mt(),[r]=x.useState(()=>new Gxe(n,e));x.useEffect(()=>{r.setOptions(e)},[r,e]);const o=x.useSyncExternalStore(x.useCallback(a=>r.subscribe(zo.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=x.useCallback((a,s)=>{r.mutate(a,s).catch(pN)},[r]);if(o.error&&Yte(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}const rSe="modulepreload",oSe=function(e){return"/"+e},EG={},iSe=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let a=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=a(n.map(c=>{if(c=oSe(c),c in EG)return;EG[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":rSe,u||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),u)return new Promise((m,g)=>{h.addEventListener("load",m),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return o.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})};var aSe=function(){return null};function sSe(e){return k.jsx(Ibe,{...e,defaultTheme:rI,themeId:qs})}function lSe(e){return function(n){return k.jsx(sSe,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function cSe(){return JO}const dt=i0e;function pt(e){return o0e(e)}function uSe(e){return qe("MuiSvgIcon",e)}Ke("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const dSe=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Oe(t)}`,`fontSize${Oe(n)}`]};return Me(o,uSe,r)},fSe=ae("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Oe(n.color)}`],t[`fontSize${Oe(n.fontSize)}`]]}})(dt(({theme:e})=>{var t,n,r,o,i,a,s,l,c,u,f,h,m,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:y=>!y.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,y])=>y&&y.main).map(([y])=>{var v,w;return{props:{color:y},style:{color:(w=(v=(e.vars??e).palette)==null?void 0:v[y])==null?void 0:w.main}}}),{props:{color:"action"},style:{color:(h=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(g=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),qE=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:h="0 0 24 24",...m}=r,g=x.isValidElement(o)&&o.type==="svg",y={...r,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:g},v={};u||(v.viewBox=h);const w=dSe(y);return k.jsxs(fSe,{as:s,className:fe(w.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...v,...m,...g&&o.props,ownerState:y,children:[g?o.props.children:o,f?k.jsx("title",{children:f}):null]})});qE.muiName="SvgIcon";function Ot(e,t){function n(r,o){return k.jsx(qE,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=qE.muiName,x.memo(x.forwardRef(n))}function pSe(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function qj(e,t){if(!e)return t;function n(a,s){const l={};return Object.keys(s).forEach(c=>{pSe(c,s[c])&&typeof a[c]=="function"&&(l[c]=(...u)=>{a[c](...u),s[c](...u)})}),l}if(typeof e=="function"||typeof t=="function")return a=>{const s=typeof t=="function"?t(a):t,l=typeof e=="function"?e({...a,...s}):e,c=fe(a==null?void 0:a.className,s==null?void 0:s.className,l==null?void 0:l.className),u=n(l,s);return{...s,...l,...u,...!!c&&{className:c},...(s==null?void 0:s.style)&&(l==null?void 0:l.style)&&{style:{...s.style,...l.style}},...(s==null?void 0:s.sx)&&(l==null?void 0:l.sx)&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const r=t,o=n(e,r),i=fe(r==null?void 0:r.className,e==null?void 0:e.className);return{...t,...e,...o,...!!i&&{className:i},...(r==null?void 0:r.style)&&(e==null?void 0:e.style)&&{style:{...r.style,...e.style}},...(r==null?void 0:r.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function $e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function hN(e,t){return hN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},hN(e,t)}function Wj(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hN(e,t)}function hSe(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function mSe(e,t){e.classList?e.classList.add(t):hSe(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function TG(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function gSe(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=TG(e.className,t):e.setAttribute("class",TG(e.className&&e.className.baseVal||"",t))}var TR={exports:{}},Ai={};/** * @license React * react-dom.production.js * @@ -71,7 +71,7 @@ export default theme;`}function Q$(e={},...t){const{breakpoints:n,mixins:r={},sp * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var TG;function gSe(){if(TG)return Ai;TG=1;var e=US();function t(l){var c="https://react.dev/errors/"+l;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),CR.exports=gSe(),CR.exports}var JS=Yte();const M0=Gn(JS),IG={disabled:!1},qE=Z.createContext(null);var Qte=function(t){return t.scrollTop},R0="unmounted",Op="exited",Ip="entering",ag="entered",pN="exiting",as=function(e){Gj(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=Op,i.appearStatus=Ip):l=ag:r.unmountOnExit||r.mountOnEnter?l=R0:l=Op,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===R0?{status:Op}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Ip&&a!==ag&&(i=Ip):(a===Ip||a===ag)&&(i=pN)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Ip){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:M0.findDOMNode(this);a&&Qte(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Op&&this.setState({status:R0})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[M0.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),h=s?f.appear:f.enter;if(!o&&!a||IG.disabled){this.safeSetState({status:ag},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Ip},function(){i.props.onEntering(c,u),i.onTransitionEnd(h,function(){i.safeSetState({status:ag},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:M0.findDOMNode(this);if(!i||IG.disabled){this.safeSetState({status:Op},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:pN},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Op},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:M0.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===R0)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=$e(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Z.createElement(qE.Provider,{value:null},typeof a=="function"?a(o,s):Z.cloneElement(Z.Children.only(a),s))},t}(Z.Component);as.contextType=qE;as.propTypes={};function Bm(){}as.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Bm,onEntering:Bm,onEntered:Bm,onExit:Bm,onExiting:Bm,onExited:Bm};as.UNMOUNTED=R0;as.EXITED=Op;as.ENTERING=Ip;as.ENTERED=ag;as.EXITING=pN;var ySe=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return hSe(t,r)})},ER=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return mSe(t,r)})},qj=function(e){Gj(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;ae.scrollTop;function Ef(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function ESe(e){return qe("MuiCollapse",e)}Ke("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const TSe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Me(r,ESe,n)},OSe=ae("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(dt(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),ISe=ae("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),PSe=ae("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),aa=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:a,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:f,onEntered:h,onEntering:m,onExit:g,onExited:y,onExiting:v,orientation:w="vertical",style:C,timeout:E=Rte.standard,TransitionComponent:I=as,...O}=r,P={...r,orientation:w,collapsedSize:s},R=TSe(P),D=Lr(),M=ko(),A=x.useRef(null),_=x.useRef(),N=typeof s=="number"?`${s}px`:s,B=w==="horizontal",H=B?"width":"height",j=x.useRef(null),L=en(n,j),V=ce=>ye=>{if(ce){const Se=j.current;ye===void 0?ce(Se):ce(Se,ye)}},W=()=>A.current?A.current[B?"clientWidth":"clientHeight"]:0,K=V((ce,ye)=>{A.current&&B&&(A.current.style.position="absolute"),ce.style[H]=N,f&&f(ce,ye)}),G=V((ce,ye)=>{const Se=W();A.current&&B&&(A.current.style.position="");const{duration:ne,easing:le}=Ef({style:C,timeout:E,easing:c},{mode:"enter"});if(E==="auto"){const de=D.transitions.getAutoHeightDuration(Se);ce.style.transitionDuration=`${de}ms`,_.current=de}else ce.style.transitionDuration=typeof ne=="string"?ne:`${ne}ms`;ce.style[H]=`${Se}px`,ce.style.transitionTimingFunction=le,m&&m(ce,ye)}),q=V((ce,ye)=>{ce.style[H]="auto",h&&h(ce,ye)}),Y=V(ce=>{ce.style[H]=`${W()}px`,g&&g(ce)}),J=V(y),ie=V(ce=>{const ye=W(),{duration:Se,easing:ne}=Ef({style:C,timeout:E,easing:c},{mode:"exit"});if(E==="auto"){const le=D.transitions.getAutoHeightDuration(ye);ce.style.transitionDuration=`${le}ms`,_.current=le}else ce.style.transitionDuration=typeof Se=="string"?Se:`${Se}ms`;ce.style[H]=N,ce.style.transitionTimingFunction=ne,v&&v(ce)}),se=ce=>{E==="auto"&&M.start(_.current||0,ce),o&&o(j.current,ce)};return k.jsx(I,{in:u,onEnter:K,onEntered:q,onEntering:G,onExit:Y,onExited:J,onExiting:ie,addEndListener:se,nodeRef:j,timeout:E==="auto"?null:E,...O,children:(ce,{ownerState:ye,...Se})=>k.jsx(OSe,{as:l,className:fe(R.root,a,{entered:R.entered,exited:!u&&N==="0px"&&R.hidden}[ce]),style:{[B?"minWidth":"minHeight"]:N,...C},ref:L,ownerState:{...P,state:ce},...Se,children:k.jsx(ISe,{ownerState:{...P,state:ce},className:R.wrapper,ref:A,children:k.jsx(PSe,{ownerState:{...P,state:ce},className:R.wrapperInner,children:i})})})})});aa&&(aa.muiSupportAuto=!0);function ASe(e){return qe("MuiPaper",e)}Ke("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 MSe=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Me(i,ASe,o)},RSe=ae("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}`]]}})(dt(({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)"}}]}))),go=x.forwardRef(function(t,n){var m;const r=pt({props:t,name:"MuiPaper"}),o=Lr(),{className:i,component:a="div",elevation:s=1,square:l=!1,variant:c="elevation",...u}=r,f={...r,component:a,elevation:s,square:l,variant:c},h=MSe(f);return k.jsx(RSe,{as:a,ownerState:f,className:fe(h.root,i),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[s],...o.vars&&{"--Paper-overlay":(m=o.vars.overlays)==null?void 0:m[s]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Nt("#fff",X$(s))}, ${Nt("#fff",X$(s))})`}},...u.style}})}),Xte=x.createContext({});function St(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:f={[e]:void 0},...h}=i,m=u[e]||r,g=Rc(f[e],o),{props:{component:y,...v},internalRef:w}=wte({className:n,...l,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:g}),C=en(w,g==null?void 0:g.ref,t.ref),E=e==="root"?y||c:y,I=Ste(m,{...e==="root"&&!c&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...v,...E&&!s&&{as:E},...E&&s&&{component:E},ref:C},o);return[m,I]}function DSe(e){return qe("MuiAccordion",e)}const y1=Ke("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),kSe=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:i}=e;return Me({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!i&&"gutters"],heading:["heading"],region:["region"]},DSe,t)},_Se=ae(go,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${y1.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(dt(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${y1.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${y1.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),dt(({theme:e})=>({variants:[{props:t=>!t.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:t=>!t.disableGutters,style:{[`&.${y1.expanded}`]:{margin:"16px 0"}}}]}))),$Se=ae("h3",{name:"MuiAccordion",slot:"Heading",overridesResolver:(e,t)=>t.heading})({all:"unset"}),Yj=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiAccordion"}),{children:o,className:i,defaultExpanded:a=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:u,square:f=!1,slots:h={},slotProps:m={},TransitionComponent:g,TransitionProps:y,...v}=r,[w,C]=ia({controlled:c,default:a,name:"Accordion",state:"expanded"}),E=x.useCallback(W=>{C(!w),u&&u(W,!w)},[w,u,C]),[I,...O]=x.Children.toArray(o),P=x.useMemo(()=>({expanded:w,disabled:s,disableGutters:l,toggle:E}),[w,s,l,E]),R={...r,square:f,disabled:s,disableGutters:l,expanded:w},D=kSe(R),M={transition:g,...h},A={transition:y,...m},_={slots:M,slotProps:A},[N,B]=St("root",{elementType:_Se,externalForwardedProps:{..._,...v},className:fe(D.root,i),shouldForwardComponentProp:!0,ownerState:R,ref:n,additionalProps:{square:f}}),[H,j]=St("heading",{elementType:$Se,externalForwardedProps:_,className:D.heading,ownerState:R}),[L,V]=St("transition",{elementType:aa,externalForwardedProps:_,ownerState:R});return k.jsxs(N,{...B,children:[k.jsx(H,{...j,children:k.jsx(Xte.Provider,{value:P,children:I})}),k.jsx(L,{in:w,timeout:"auto",...V,children:k.jsx("div",{"aria-labelledby":I.props.id,id:I.props["aria-controls"],role:"region",className:D.region,children:O})})]})});function NSe(e){return qe("MuiAccordionDetails",e)}Ke("MuiAccordionDetails",["root"]);const LSe=e=>{const{classes:t}=e;return Me({root:["root"]},NSe,t)},FSe=ae("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(dt(({theme:e})=>({padding:e.spacing(1,2,2)}))),Qj=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiAccordionDetails"}),{className:o,...i}=r,a=r,s=LSe(a);return k.jsx(FSe,{className:fe(s.root,o),ref:n,ownerState:a,...i})});class WE{constructor(){Pe(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 WE}static use(){const t=Kl(WE.create).current,[n,r]=x.useState(!1);return t.shouldMount=n,t.setShouldMount=r,x.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=BSe(),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 jSe(){return WE.use()}function BSe(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function zSe(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,f]=x.useState(!1),h=fe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},g=fe(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&f(!0),x.useEffect(()=>{if(!s&&l!=null){const y=setTimeout(l,c);return()=>{clearTimeout(y)}}},[l,s,c]),k.jsx("span",{className:h,style:m,children:k.jsx("span",{className:g})})}const Ls=Ke("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),hN=550,VSe=80,HSe=rl` + */var OG;function ySe(){if(OG)return Ai;OG=1;var e=GS();function t(l){var c="https://react.dev/errors/"+l;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),TR.exports=ySe(),TR.exports}var ew=Qte();const D0=Gn(ew),PG={disabled:!1},WE=J.createContext(null);var Xte=function(t){return t.scrollTop},k0="unmounted",Op="exited",Ip="entering",sg="entered",mN="exiting",as=function(e){Wj(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=Op,i.appearStatus=Ip):l=sg:r.unmountOnExit||r.mountOnEnter?l=k0:l=Op,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===k0?{status:Op}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Ip&&a!==sg&&(i=Ip):(a===Ip||a===sg)&&(i=mN)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Ip){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:D0.findDOMNode(this);a&&Xte(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Op&&this.setState({status:k0})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[D0.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),h=s?f.appear:f.enter;if(!o&&!a||PG.disabled){this.safeSetState({status:sg},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Ip},function(){i.props.onEntering(c,u),i.onTransitionEnd(h,function(){i.safeSetState({status:sg},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:D0.findDOMNode(this);if(!i||PG.disabled){this.safeSetState({status:Op},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:mN},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Op},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:D0.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===k0)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=$e(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return J.createElement(WE.Provider,{value:null},typeof a=="function"?a(o,s):J.cloneElement(J.Children.only(a),s))},t}(J.Component);as.contextType=WE;as.propTypes={};function zm(){}as.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:zm,onEntering:zm,onEntered:zm,onExit:zm,onExiting:zm,onExited:zm};as.UNMOUNTED=k0;as.EXITED=Op;as.ENTERING=Ip;as.ENTERED=sg;as.EXITING=mN;var vSe=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return mSe(t,r)})},OR=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return gSe(t,r)})},Kj=function(e){Wj(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;ae.scrollTop;function Ef(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function TSe(e){return qe("MuiCollapse",e)}Ke("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const OSe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Me(r,TSe,n)},ISe=ae("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(dt(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),PSe=ae("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),ASe=ae("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),aa=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:a,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:f,onEntered:h,onEntering:m,onExit:g,onExited:y,onExiting:v,orientation:w="vertical",style:C,timeout:E=Dte.standard,TransitionComponent:I=as,...O}=r,P={...r,orientation:w,collapsedSize:s},R=OSe(P),D=Lr(),M=ko(),A=x.useRef(null),_=x.useRef(),N=typeof s=="number"?`${s}px`:s,B=w==="horizontal",H=B?"width":"height",j=x.useRef(null),L=en(n,j),V=ce=>ye=>{if(ce){const Se=j.current;ye===void 0?ce(Se):ce(Se,ye)}},W=()=>A.current?A.current[B?"clientWidth":"clientHeight"]:0,K=V((ce,ye)=>{A.current&&B&&(A.current.style.position="absolute"),ce.style[H]=N,f&&f(ce,ye)}),G=V((ce,ye)=>{const Se=W();A.current&&B&&(A.current.style.position="");const{duration:ne,easing:le}=Ef({style:C,timeout:E,easing:c},{mode:"enter"});if(E==="auto"){const de=D.transitions.getAutoHeightDuration(Se);ce.style.transitionDuration=`${de}ms`,_.current=de}else ce.style.transitionDuration=typeof ne=="string"?ne:`${ne}ms`;ce.style[H]=`${Se}px`,ce.style.transitionTimingFunction=le,m&&m(ce,ye)}),q=V((ce,ye)=>{ce.style[H]="auto",h&&h(ce,ye)}),Y=V(ce=>{ce.style[H]=`${W()}px`,g&&g(ce)}),Z=V(y),ie=V(ce=>{const ye=W(),{duration:Se,easing:ne}=Ef({style:C,timeout:E,easing:c},{mode:"exit"});if(E==="auto"){const le=D.transitions.getAutoHeightDuration(ye);ce.style.transitionDuration=`${le}ms`,_.current=le}else ce.style.transitionDuration=typeof Se=="string"?Se:`${Se}ms`;ce.style[H]=N,ce.style.transitionTimingFunction=ne,v&&v(ce)}),se=ce=>{E==="auto"&&M.start(_.current||0,ce),o&&o(j.current,ce)};return k.jsx(I,{in:u,onEnter:K,onEntered:q,onEntering:G,onExit:Y,onExited:Z,onExiting:ie,addEndListener:se,nodeRef:j,timeout:E==="auto"?null:E,...O,children:(ce,{ownerState:ye,...Se})=>k.jsx(ISe,{as:l,className:fe(R.root,a,{entered:R.entered,exited:!u&&N==="0px"&&R.hidden}[ce]),style:{[B?"minWidth":"minHeight"]:N,...C},ref:L,ownerState:{...P,state:ce},...Se,children:k.jsx(PSe,{ownerState:{...P,state:ce},className:R.wrapper,ref:A,children:k.jsx(ASe,{ownerState:{...P,state:ce},className:R.wrapperInner,children:i})})})})});aa&&(aa.muiSupportAuto=!0);function MSe(e){return qe("MuiPaper",e)}Ke("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 RSe=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Me(i,MSe,o)},DSe=ae("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}`]]}})(dt(({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)"}}]}))),go=x.forwardRef(function(t,n){var m;const r=pt({props:t,name:"MuiPaper"}),o=Lr(),{className:i,component:a="div",elevation:s=1,square:l=!1,variant:c="elevation",...u}=r,f={...r,component:a,elevation:s,square:l,variant:c},h=RSe(f);return k.jsx(DSe,{as:a,ownerState:f,className:fe(h.root,i),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[s],...o.vars&&{"--Paper-overlay":(m=o.vars.overlays)==null?void 0:m[s]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Nt("#fff",Z$(s))}, ${Nt("#fff",Z$(s))})`}},...u.style}})}),Jte=x.createContext({});function wt(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:f={[e]:void 0},...h}=i,m=u[e]||r,g=Dc(f[e],o),{props:{component:y,...v},internalRef:w}=Cte({className:n,...l,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:g}),C=en(w,g==null?void 0:g.ref,t.ref),E=e==="root"?y||c:y,I=wte(m,{...e==="root"&&!c&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...v,...E&&!s&&{as:E},...E&&s&&{component:E},ref:C},o);return[m,I]}function kSe(e){return qe("MuiAccordion",e)}const v1=Ke("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),_Se=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:i}=e;return Me({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!i&&"gutters"],heading:["heading"],region:["region"]},kSe,t)},$Se=ae(go,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${v1.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(dt(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${v1.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${v1.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),dt(({theme:e})=>({variants:[{props:t=>!t.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:t=>!t.disableGutters,style:{[`&.${v1.expanded}`]:{margin:"16px 0"}}}]}))),NSe=ae("h3",{name:"MuiAccordion",slot:"Heading",overridesResolver:(e,t)=>t.heading})({all:"unset"}),Xj=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiAccordion"}),{children:o,className:i,defaultExpanded:a=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:u,square:f=!1,slots:h={},slotProps:m={},TransitionComponent:g,TransitionProps:y,...v}=r,[w,C]=ia({controlled:c,default:a,name:"Accordion",state:"expanded"}),E=x.useCallback(W=>{C(!w),u&&u(W,!w)},[w,u,C]),[I,...O]=x.Children.toArray(o),P=x.useMemo(()=>({expanded:w,disabled:s,disableGutters:l,toggle:E}),[w,s,l,E]),R={...r,square:f,disabled:s,disableGutters:l,expanded:w},D=_Se(R),M={transition:g,...h},A={transition:y,...m},_={slots:M,slotProps:A},[N,B]=wt("root",{elementType:$Se,externalForwardedProps:{..._,...v},className:fe(D.root,i),shouldForwardComponentProp:!0,ownerState:R,ref:n,additionalProps:{square:f}}),[H,j]=wt("heading",{elementType:NSe,externalForwardedProps:_,className:D.heading,ownerState:R}),[L,V]=wt("transition",{elementType:aa,externalForwardedProps:_,ownerState:R});return k.jsxs(N,{...B,children:[k.jsx(H,{...j,children:k.jsx(Jte.Provider,{value:P,children:I})}),k.jsx(L,{in:w,timeout:"auto",...V,children:k.jsx("div",{"aria-labelledby":I.props.id,id:I.props["aria-controls"],role:"region",className:D.region,children:O})})]})});function LSe(e){return qe("MuiAccordionDetails",e)}Ke("MuiAccordionDetails",["root"]);const FSe=e=>{const{classes:t}=e;return Me({root:["root"]},LSe,t)},jSe=ae("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(dt(({theme:e})=>({padding:e.spacing(1,2,2)}))),Jj=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiAccordionDetails"}),{className:o,...i}=r,a=r,s=FSe(a);return k.jsx(jSe,{className:fe(s.root,o),ref:n,ownerState:a,...i})});class KE{constructor(){Ce(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 KE}static use(){const t=Xl(KE.create).current,[n,r]=x.useState(!1);return t.shouldMount=n,t.setShouldMount=r,x.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=zSe(),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 BSe(){return KE.use()}function zSe(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function VSe(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,f]=x.useState(!1),h=fe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},g=fe(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&f(!0),x.useEffect(()=>{if(!s&&l!=null){const y=setTimeout(l,c);return()=>{clearTimeout(y)}}},[l,s,c]),k.jsx("span",{className:h,style:m,children:k.jsx("span",{className:g})})}const Ls=Ke("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),gN=550,HSe=80,USe=il` 0% { transform: scale(0); opacity: 0.1; @@ -81,7 +81,7 @@ export default theme;`}function Q$(e={},...t){const{breakpoints:n,mixins:r={},sp transform: scale(1); opacity: 0.3; } -`,USe=rl` +`,GSe=il` 0% { opacity: 1; } @@ -89,7 +89,7 @@ export default theme;`}function Q$(e={},...t){const{breakpoints:n,mixins:r={},sp 100% { opacity: 0; } -`,GSe=rl` +`,qSe=il` 0% { transform: scale(1); } @@ -101,15 +101,15 @@ export default theme;`}function Q$(e={},...t){const{breakpoints:n,mixins:r={},sp 100% { transform: scale(1); } -`,qSe=ae("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),WSe=ae(zSe,{name:"MuiTouchRipple",slot:"Ripple"})` +`,WSe=ae("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),KSe=ae(VSe,{name:"MuiTouchRipple",slot:"Ripple"})` opacity: 0; position: absolute; &.${Ls.rippleVisible} { opacity: 0.3; transform: scale(1); - animation-name: ${HSe}; - animation-duration: ${hN}ms; + animation-name: ${USe}; + animation-duration: ${gN}ms; animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; } @@ -128,8 +128,8 @@ export default theme;`}function Q$(e={},...t){const{breakpoints:n,mixins:r={},sp & .${Ls.childLeaving} { opacity: 0; - animation-name: ${USe}; - animation-duration: ${hN}ms; + animation-name: ${GSe}; + animation-duration: ${gN}ms; animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; } @@ -138,13 +138,13 @@ export default theme;`}function Q$(e={},...t){const{breakpoints:n,mixins:r={},sp /* @noflip */ left: 0px; top: 0; - animation-name: ${GSe}; + animation-name: ${qSe}; animation-duration: 2500ms; animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; animation-iteration-count: infinite; animation-delay: 200ms; } -`,KSe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...s}=r,[l,c]=x.useState([]),u=x.useRef(0),f=x.useRef(null);x.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const h=x.useRef(!1),m=ko(),g=x.useRef(null),y=x.useRef(null),v=x.useCallback(I=>{const{pulsate:O,rippleX:P,rippleY:R,rippleSize:D,cb:M}=I;c(A=>[...A,k.jsx(WSe,{classes:{ripple:fe(i.ripple,Ls.ripple),rippleVisible:fe(i.rippleVisible,Ls.rippleVisible),ripplePulsate:fe(i.ripplePulsate,Ls.ripplePulsate),child:fe(i.child,Ls.child),childLeaving:fe(i.childLeaving,Ls.childLeaving),childPulsate:fe(i.childPulsate,Ls.childPulsate)},timeout:hN,pulsate:O,rippleX:P,rippleY:R,rippleSize:D},u.current)]),u.current+=1,f.current=M},[i]),w=x.useCallback((I={},O={},P=()=>{})=>{const{pulsate:R=!1,center:D=o||O.pulsate,fakeElement:M=!1}=O;if((I==null?void 0:I.type)==="mousedown"&&h.current){h.current=!1;return}(I==null?void 0:I.type)==="touchstart"&&(h.current=!0);const A=M?null:y.current,_=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let N,B,H;if(D||I===void 0||I.clientX===0&&I.clientY===0||!I.clientX&&!I.touches)N=Math.round(_.width/2),B=Math.round(_.height/2);else{const{clientX:j,clientY:L}=I.touches&&I.touches.length>0?I.touches[0]:I;N=Math.round(j-_.left),B=Math.round(L-_.top)}if(D)H=Math.sqrt((2*_.width**2+_.height**2)/3),H%2===0&&(H+=1);else{const j=Math.max(Math.abs((A?A.clientWidth:0)-N),N)*2+2,L=Math.max(Math.abs((A?A.clientHeight:0)-B),B)*2+2;H=Math.sqrt(j**2+L**2)}I!=null&&I.touches?g.current===null&&(g.current=()=>{v({pulsate:R,rippleX:N,rippleY:B,rippleSize:H,cb:P})},m.start(VSe,()=>{g.current&&(g.current(),g.current=null)})):v({pulsate:R,rippleX:N,rippleY:B,rippleSize:H,cb:P})},[o,v,m]),C=x.useCallback(()=>{w({},{pulsate:!0})},[w]),E=x.useCallback((I,O)=>{if(m.clear(),(I==null?void 0:I.type)==="touchend"&&g.current){g.current(),g.current=null,m.start(0,()=>{E(I,O)});return}g.current=null,c(P=>P.length>0?P.slice(1):P),f.current=O},[m]);return x.useImperativeHandle(n,()=>({pulsate:C,start:w,stop:E}),[C,w,E]),k.jsx(qSe,{className:fe(Ls.root,i.root,a),ref:y,...s,children:k.jsx(ew,{component:null,exit:!0,children:l})})});function YSe(e){return qe("MuiButtonBase",e)}const QSe=Ke("MuiButtonBase",["root","disabled","focusVisible"]),XSe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Me({root:["root",t&&"disabled",n&&"focusVisible"]},YSe,o);return n&&r&&(a.root+=` ${r}`),a},ZSe=ae("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"},[`&.${QSe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),la=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:h=!1,focusVisibleClassName:m,LinkComponent:g="a",onBlur:y,onClick:v,onContextMenu:w,onDragLeave:C,onFocus:E,onFocusVisible:I,onKeyDown:O,onKeyUp:P,onMouseDown:R,onMouseLeave:D,onMouseUp:M,onTouchEnd:A,onTouchMove:_,onTouchStart:N,tabIndex:B=0,TouchRippleProps:H,touchRippleRef:j,type:L,...V}=r,W=x.useRef(null),K=jSe(),G=en(K.ref,j),[q,Y]=x.useState(!1);c&&q&&Y(!1),x.useImperativeHandle(o,()=>({focusVisible:()=>{Y(!0),W.current.focus()}}),[]);const J=K.shouldMount&&!u&&!c;x.useEffect(()=>{q&&h&&!u&&K.pulsate()},[u,h,q,K]);const ie=mu(K,"start",R,f),se=mu(K,"stop",w,f),ce=mu(K,"stop",C,f),ye=mu(K,"stop",M,f),Se=mu(K,"stop",te=>{q&&te.preventDefault(),D&&D(te)},f),ne=mu(K,"start",N,f),le=mu(K,"stop",A,f),de=mu(K,"stop",_,f),oe=mu(K,"stop",te=>{BE(te.target)||Y(!1),y&&y(te)},!1),ue=Ze(te=>{W.current||(W.current=te.currentTarget),BE(te.target)&&(Y(!0),I&&I(te)),E&&E(te)}),pe=()=>{const te=W.current;return l&&l!=="button"&&!(te.tagName==="A"&&te.href)},Ce=Ze(te=>{h&&!te.repeat&&q&&te.key===" "&&K.stop(te,()=>{K.start(te)}),te.target===te.currentTarget&&pe()&&te.key===" "&&te.preventDefault(),O&&O(te),te.target===te.currentTarget&&pe()&&te.key==="Enter"&&!c&&(te.preventDefault(),v&&v(te))}),xe=Ze(te=>{h&&te.key===" "&&q&&!te.defaultPrevented&&K.stop(te,()=>{K.pulsate(te)}),P&&P(te),v&&te.target===te.currentTarget&&pe()&&te.key===" "&&!te.defaultPrevented&&v(te)});let Re=l;Re==="button"&&(V.href||V.to)&&(Re=g);const he={};Re==="button"?(he.type=L===void 0?"button":L,he.disabled=c):(!V.href&&!V.to&&(he.role="button"),c&&(he["aria-disabled"]=c));const Ie=en(n,W),ve={...r,centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:h,tabIndex:B,focusVisible:q},Oe=XSe(ve);return k.jsxs(ZSe,{as:Re,className:fe(Oe.root,s),ownerState:ve,onBlur:oe,onClick:v,onContextMenu:se,onFocus:ue,onKeyDown:Ce,onKeyUp:xe,onMouseDown:ie,onMouseLeave:Se,onMouseUp:ye,onDragLeave:ce,onTouchEnd:le,onTouchMove:de,onTouchStart:ne,ref:Ie,tabIndex:c?-1:B,type:L,...he,...V,children:[a,J?k.jsx(KSe,{ref:G,center:i,...H}):null]})});function mu(e,t,n,r=!1){return Ze(o=>(n&&n(o),r||e[t](o),!0))}function JSe(e){return qe("MuiAccordionSummary",e)}const fg=Ke("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),ewe=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return Me({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},JSe,t)},twe=ae(la,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(dt(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${fg.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${fg.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${fg.disabled})`]:{cursor:"pointer"},variants:[{props:n=>!n.disableGutters,style:{[`&.${fg.expanded}`]:{minHeight:64}}}]}})),nwe=ae("span",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(dt(({theme:e})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${fg.expanded}`]:{margin:"20px 0"}}}]}))),rwe=ae("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(dt(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${fg.expanded}`]:{transform:"rotate(180deg)"}}))),Xj=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiAccordionSummary"}),{children:o,className:i,expandIcon:a,focusVisibleClassName:s,onClick:l,slots:c,slotProps:u,...f}=r,{disabled:h=!1,disableGutters:m,expanded:g,toggle:y}=x.useContext(Xte),v=A=>{y&&y(A),l&&l(A)},w={...r,expanded:g,disabled:h,disableGutters:m},C=ewe(w),E={slots:c,slotProps:u},[I,O]=St("root",{ref:n,shouldForwardComponentProp:!0,className:fe(C.root,i),elementType:twe,externalForwardedProps:{...E,...f},ownerState:w,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:h,"aria-expanded":g,focusVisibleClassName:fe(C.focusVisible,s)},getSlotProps:A=>({...A,onClick:_=>{var N;(N=A.onClick)==null||N.call(A,_),v(_)}})}),[P,R]=St("content",{className:C.content,elementType:nwe,externalForwardedProps:E,ownerState:w}),[D,M]=St("expandIconWrapper",{className:C.expandIconWrapper,elementType:rwe,externalForwardedProps:E,ownerState:w});return k.jsxs(I,{...O,children:[k.jsx(P,{...R,children:o}),a&&k.jsx(D,{...M,children:a})]})});function owe(e){return typeof e.main=="string"}function iwe(e,t=[]){if(!owe(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Jn(e=[]){return([,t])=>t&&iwe(t,e)}function awe(e){return qe("MuiAlert",e)}const PG=Ke("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 swe(e){return qe("MuiCircularProgress",e)}Ke("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const _d=44,mN=rl` +`,YSe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...s}=r,[l,c]=x.useState([]),u=x.useRef(0),f=x.useRef(null);x.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const h=x.useRef(!1),m=ko(),g=x.useRef(null),y=x.useRef(null),v=x.useCallback(I=>{const{pulsate:O,rippleX:P,rippleY:R,rippleSize:D,cb:M}=I;c(A=>[...A,k.jsx(KSe,{classes:{ripple:fe(i.ripple,Ls.ripple),rippleVisible:fe(i.rippleVisible,Ls.rippleVisible),ripplePulsate:fe(i.ripplePulsate,Ls.ripplePulsate),child:fe(i.child,Ls.child),childLeaving:fe(i.childLeaving,Ls.childLeaving),childPulsate:fe(i.childPulsate,Ls.childPulsate)},timeout:gN,pulsate:O,rippleX:P,rippleY:R,rippleSize:D},u.current)]),u.current+=1,f.current=M},[i]),w=x.useCallback((I={},O={},P=()=>{})=>{const{pulsate:R=!1,center:D=o||O.pulsate,fakeElement:M=!1}=O;if((I==null?void 0:I.type)==="mousedown"&&h.current){h.current=!1;return}(I==null?void 0:I.type)==="touchstart"&&(h.current=!0);const A=M?null:y.current,_=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let N,B,H;if(D||I===void 0||I.clientX===0&&I.clientY===0||!I.clientX&&!I.touches)N=Math.round(_.width/2),B=Math.round(_.height/2);else{const{clientX:j,clientY:L}=I.touches&&I.touches.length>0?I.touches[0]:I;N=Math.round(j-_.left),B=Math.round(L-_.top)}if(D)H=Math.sqrt((2*_.width**2+_.height**2)/3),H%2===0&&(H+=1);else{const j=Math.max(Math.abs((A?A.clientWidth:0)-N),N)*2+2,L=Math.max(Math.abs((A?A.clientHeight:0)-B),B)*2+2;H=Math.sqrt(j**2+L**2)}I!=null&&I.touches?g.current===null&&(g.current=()=>{v({pulsate:R,rippleX:N,rippleY:B,rippleSize:H,cb:P})},m.start(HSe,()=>{g.current&&(g.current(),g.current=null)})):v({pulsate:R,rippleX:N,rippleY:B,rippleSize:H,cb:P})},[o,v,m]),C=x.useCallback(()=>{w({},{pulsate:!0})},[w]),E=x.useCallback((I,O)=>{if(m.clear(),(I==null?void 0:I.type)==="touchend"&&g.current){g.current(),g.current=null,m.start(0,()=>{E(I,O)});return}g.current=null,c(P=>P.length>0?P.slice(1):P),f.current=O},[m]);return x.useImperativeHandle(n,()=>({pulsate:C,start:w,stop:E}),[C,w,E]),k.jsx(WSe,{className:fe(Ls.root,i.root,a),ref:y,...s,children:k.jsx(tw,{component:null,exit:!0,children:l})})});function QSe(e){return qe("MuiButtonBase",e)}const XSe=Ke("MuiButtonBase",["root","disabled","focusVisible"]),JSe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Me({root:["root",t&&"disabled",n&&"focusVisible"]},QSe,o);return n&&r&&(a.root+=` ${r}`),a},ZSe=ae("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"},[`&.${XSe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),la=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:h=!1,focusVisibleClassName:m,LinkComponent:g="a",onBlur:y,onClick:v,onContextMenu:w,onDragLeave:C,onFocus:E,onFocusVisible:I,onKeyDown:O,onKeyUp:P,onMouseDown:R,onMouseLeave:D,onMouseUp:M,onTouchEnd:A,onTouchMove:_,onTouchStart:N,tabIndex:B=0,TouchRippleProps:H,touchRippleRef:j,type:L,...V}=r,W=x.useRef(null),K=BSe(),G=en(K.ref,j),[q,Y]=x.useState(!1);c&&q&&Y(!1),x.useImperativeHandle(o,()=>({focusVisible:()=>{Y(!0),W.current.focus()}}),[]);const Z=K.shouldMount&&!u&&!c;x.useEffect(()=>{q&&h&&!u&&K.pulsate()},[u,h,q,K]);const ie=gu(K,"start",R,f),se=gu(K,"stop",w,f),ce=gu(K,"stop",C,f),ye=gu(K,"stop",M,f),Se=gu(K,"stop",te=>{q&&te.preventDefault(),D&&D(te)},f),ne=gu(K,"start",N,f),le=gu(K,"stop",A,f),de=gu(K,"stop",_,f),oe=gu(K,"stop",te=>{zE(te.target)||Y(!1),y&&y(te)},!1),ue=Je(te=>{W.current||(W.current=te.currentTarget),zE(te.target)&&(Y(!0),I&&I(te)),E&&E(te)}),pe=()=>{const te=W.current;return l&&l!=="button"&&!(te.tagName==="A"&&te.href)},Ee=Je(te=>{h&&!te.repeat&&q&&te.key===" "&&K.stop(te,()=>{K.start(te)}),te.target===te.currentTarget&&pe()&&te.key===" "&&te.preventDefault(),O&&O(te),te.target===te.currentTarget&&pe()&&te.key==="Enter"&&!c&&(te.preventDefault(),v&&v(te))}),xe=Je(te=>{h&&te.key===" "&&q&&!te.defaultPrevented&&K.stop(te,()=>{K.pulsate(te)}),P&&P(te),v&&te.target===te.currentTarget&&pe()&&te.key===" "&&!te.defaultPrevented&&v(te)});let Re=l;Re==="button"&&(V.href||V.to)&&(Re=g);const he={};Re==="button"?(he.type=L===void 0?"button":L,he.disabled=c):(!V.href&&!V.to&&(he.role="button"),c&&(he["aria-disabled"]=c));const Pe=en(n,W),ve={...r,centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:h,tabIndex:B,focusVisible:q},Ie=JSe(ve);return k.jsxs(ZSe,{as:Re,className:fe(Ie.root,s),ownerState:ve,onBlur:oe,onClick:v,onContextMenu:se,onFocus:ue,onKeyDown:Ee,onKeyUp:xe,onMouseDown:ie,onMouseLeave:Se,onMouseUp:ye,onDragLeave:ce,onTouchEnd:le,onTouchMove:de,onTouchStart:ne,ref:Pe,tabIndex:c?-1:B,type:L,...he,...V,children:[a,Z?k.jsx(YSe,{ref:G,center:i,...H}):null]})});function gu(e,t,n,r=!1){return Je(o=>(n&&n(o),r||e[t](o),!0))}function ewe(e){return qe("MuiAccordionSummary",e)}const pg=Ke("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),twe=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return Me({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},ewe,t)},nwe=ae(la,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(dt(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${pg.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${pg.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${pg.disabled})`]:{cursor:"pointer"},variants:[{props:n=>!n.disableGutters,style:{[`&.${pg.expanded}`]:{minHeight:64}}}]}})),rwe=ae("span",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(dt(({theme:e})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${pg.expanded}`]:{margin:"20px 0"}}}]}))),owe=ae("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(dt(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${pg.expanded}`]:{transform:"rotate(180deg)"}}))),Zj=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiAccordionSummary"}),{children:o,className:i,expandIcon:a,focusVisibleClassName:s,onClick:l,slots:c,slotProps:u,...f}=r,{disabled:h=!1,disableGutters:m,expanded:g,toggle:y}=x.useContext(Jte),v=A=>{y&&y(A),l&&l(A)},w={...r,expanded:g,disabled:h,disableGutters:m},C=twe(w),E={slots:c,slotProps:u},[I,O]=wt("root",{ref:n,shouldForwardComponentProp:!0,className:fe(C.root,i),elementType:nwe,externalForwardedProps:{...E,...f},ownerState:w,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:h,"aria-expanded":g,focusVisibleClassName:fe(C.focusVisible,s)},getSlotProps:A=>({...A,onClick:_=>{var N;(N=A.onClick)==null||N.call(A,_),v(_)}})}),[P,R]=wt("content",{className:C.content,elementType:rwe,externalForwardedProps:E,ownerState:w}),[D,M]=wt("expandIconWrapper",{className:C.expandIconWrapper,elementType:owe,externalForwardedProps:E,ownerState:w});return k.jsxs(I,{...O,children:[k.jsx(P,{...R,children:o}),a&&k.jsx(D,{...M,children:a})]})});function iwe(e){return typeof e.main=="string"}function awe(e,t=[]){if(!iwe(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function er(e=[]){return([,t])=>t&&awe(t,e)}function swe(e){return qe("MuiAlert",e)}const AG=Ke("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 lwe(e){return qe("MuiCircularProgress",e)}Ke("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const _d=44,yN=il` 0% { transform: rotate(0deg); } @@ -152,7 +152,7 @@ export default theme;`}function Q$(e={},...t){const{breakpoints:n,mixins:r={},sp 100% { transform: rotate(360deg); } -`,gN=rl` +`,vN=il` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -167,12 +167,12 @@ export default theme;`}function Q$(e={},...t){const{breakpoints:n,mixins:r={},sp stroke-dasharray: 1px, 200px; stroke-dashoffset: -126px; } -`,lwe=typeof mN!="string"?kf` - animation: ${mN} 1.4s linear infinite; - `:null,cwe=typeof gN!="string"?kf` - animation: ${gN} 1.4s ease-in-out infinite; - `:null,uwe=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${Te(r)}`],svg:["svg"],circle:["circle",`circle${Te(n)}`,o&&"circleDisableShrink"]};return Me(i,swe,t)},dwe=ae("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Te(n.color)}`]]}})(dt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:lwe||{animation:`${mN} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Jn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),fwe=ae("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),pwe=ae("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Te(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(dt(({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:cwe||{animation:`${gN} 1.4s ease-in-out infinite`}}]}))),tw=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:f="indeterminate",...h}=r,m={...r,color:i,disableShrink:a,size:s,thickness:c,value:u,variant:f},g=uwe(m),y={},v={},w={};if(f==="determinate"){const C=2*Math.PI*((_d-c)/2);y.strokeDasharray=C.toFixed(3),w["aria-valuenow"]=Math.round(u),y.strokeDashoffset=`${((100-u)/100*C).toFixed(3)}px`,v.transform="rotate(-90deg)"}return k.jsx(dwe,{className:fe(g.root,o),style:{width:s,height:s,...v,...l},ownerState:m,ref:n,role:"progressbar",...w,...h,children:k.jsx(fwe,{className:g.svg,ownerState:m,viewBox:`${_d/2} ${_d/2} ${_d} ${_d}`,children:k.jsx(pwe,{className:g.circle,style:y,ownerState:m,cx:_d,cy:_d,r:(_d-c)/2,fill:"none",strokeWidth:c})})})});function hwe(e){return qe("MuiIconButton",e)}const yN=Ke("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),mwe=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i,loading:a}=e,s={root:["root",a&&"loading",n&&"disabled",r!=="default"&&`color${Te(r)}`,o&&`edge${Te(o)}`,`size${Te(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Me(s,hwe,t)},gwe=ae(la,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${Te(n.color)}`],n.edge&&t[`edge${Te(n.edge)}`],t[`size${Te(n.size)}`]]}})(dt(({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})`:Nt(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}}]})),dt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Jn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Jn()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt((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)}}],[`&.${yN.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${yN.loading}`]:{color:"transparent"}}))),ywe=ae("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),pn=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:f,loading:h=null,loadingIndicator:m,...g}=r,y=bn(f),v=m??k.jsx(tw,{"aria-labelledby":y,color:"inherit",size:16}),w={...r,edge:o,color:s,disabled:l,disableFocusRipple:c,loading:h,loadingIndicator:v,size:u},C=mwe(w);return k.jsxs(gwe,{id:h?y:f,className:fe(C.root,a),centerRipple:!0,focusRipple:!c,disabled:l||h,ref:n,...g,ownerState:w,children:[typeof h=="boolean"&&k.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:k.jsx(ywe,{className:C.loadingIndicator,ownerState:w,children:h&&v})}),i]})}),vwe=Ot(k.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"})),bwe=Ot(k.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),xwe=Ot(k.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"})),Swe=Ot(k.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"})),Zte=Ot(k.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"})),wwe=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${Te(n||r)}`,`${t}${Te(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Me(i,awe,o)},Cwe=ae(go,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Te(n.color||n.severity)}`]]}})(dt(({theme:e})=>{const t=e.palette.mode==="light"?zu:Vu,n=e.palette.mode==="light"?Vu:zu;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Jn(["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),[`& .${PG.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Jn(["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}`,[`& .${PG.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Jn(["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)}}}))]}})),Ewe=ae("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Twe=ae("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Owe=ae("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),AG={success:k.jsx(vwe,{fontSize:"inherit"}),warning:k.jsx(bwe,{fontSize:"inherit"}),error:k.jsx(xwe,{fontSize:"inherit"}),info:k.jsx(Swe,{fontSize:"inherit"})},Ci=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiAlert"}),{action:o,children:i,className:a,closeText:s="Close",color:l,components:c={},componentsProps:u={},icon:f,iconMapping:h=AG,onClose:m,role:g="alert",severity:y="success",slotProps:v={},slots:w={},variant:C="standard",...E}=r,I={...r,color:l,severity:y,variant:C,colorSeverity:l||y},O=wwe(I),P={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...w},slotProps:{...u,...v}},[R,D]=St("root",{ref:n,shouldForwardComponentProp:!0,className:fe(O.root,a),elementType:Cwe,externalForwardedProps:{...P,...E},ownerState:I,additionalProps:{role:g,elevation:0}}),[M,A]=St("icon",{className:O.icon,elementType:Ewe,externalForwardedProps:P,ownerState:I}),[_,N]=St("message",{className:O.message,elementType:Twe,externalForwardedProps:P,ownerState:I}),[B,H]=St("action",{className:O.action,elementType:Owe,externalForwardedProps:P,ownerState:I}),[j,L]=St("closeButton",{elementType:pn,externalForwardedProps:P,ownerState:I}),[V,W]=St("closeIcon",{elementType:Zte,externalForwardedProps:P,ownerState:I});return k.jsxs(R,{...D,children:[f!==!1?k.jsx(M,{...A,children:f||h[y]||AG[y]}):null,k.jsx(_,{...N,children:i}),o!=null?k.jsx(B,{...H,children:o}):null,o==null&&m?k.jsx(B,{...H,children:k.jsx(j,{size:"small","aria-label":s,title:s,color:"inherit",onClick:m,...L,children:k.jsx(V,{fontSize:"small",...W})})}):null]})});function Iwe(e){return qe("MuiTypography",e)}const KE=Ke("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Pwe={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Awe=lSe(),Mwe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${Te(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Me(s,Iwe,a)},Rwe=ae("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${Te(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(dt(({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(Jn()).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${Te(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}}]}})),MG={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},at=x.forwardRef(function(t,n){const{color:r,...o}=pt({props:t,name:"MuiTypography"}),i=!Pwe[r],a=Awe({...o,...i&&{color:r}}),{align:s="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:f=!1,paragraph:h=!1,variant:m="body1",variantMapping:g=MG,...y}=a,v={...a,align:s,color:r,className:l,component:c,gutterBottom:u,noWrap:f,paragraph:h,variant:m,variantMapping:g},w=c||(h?"p":g[m]||MG[m])||"span",C=Mwe(v);return k.jsx(Rwe,{as:w,ref:n,className:fe(C.root,l),...y,ownerState:v,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...y.style}})});function Dwe(e){return qe("MuiAlertTitle",e)}Ke("MuiAlertTitle",["root"]);const kwe=e=>{const{classes:t}=e;return Me({root:["root"]},Dwe,t)},_we=ae(at,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(dt(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),fh=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiAlertTitle"}),{className:o,...i}=r,a=r,s=kwe(a);return k.jsx(_we,{gutterBottom:!0,component:"div",ownerState:a,ref:n,className:fe(s.root,o),...i})});function $we(e){return qe("MuiAppBar",e)}Ke("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Nwe=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Te(t)}`,`position${Te(n)}`]};return Me(o,$we,r)},RG=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Lwe=ae(go,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Te(n.position)}`],t[`color${Te(n.color)}`]]}})(dt(({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(Jn(["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?RG(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?RG(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"})}}]}))),Fwe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed",...l}=r,c={...r,color:i,position:s,enableColorOnDark:a},u=Nwe(c);return k.jsx(Lwe,{square:!0,component:"header",ownerState:c,elevation:4,className:fe(u.root,o,s==="fixed"&&"mui-fixed"),ref:n,...l})});function DG(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function jwe(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let u=a?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=DG(u));const f=u?s.filter(h=>{let m=(i||c)(h);return n&&(m=m.toLowerCase()),t&&(m=DG(m)),o==="start"?m.startsWith(u):m.includes(u)}):s;return typeof r=="number"?f.slice(0,r):f}}const Bwe=jwe(),zwe=5,Vwe=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},Hwe=[];function kG(e,t,n,r){if(t||e==null||r)return"";const o=n(e);return typeof o=="string"?o:""}function Uwe(e){const{unstable_isActiveElementInListbox:t=Vwe,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?Hwe:null,disableClearable:f=!1,disableCloseOnSelect:h=!1,disabled:m,disabledItemsFocusable:g=!1,disableListWrap:y=!1,filterOptions:v=Bwe,filterSelectedOptions:w=!1,freeSolo:C=!1,getOptionDisabled:E,getOptionKey:I,getOptionLabel:O=He=>He.label??He,groupBy:P,handleHomeEndKeys:R=!e.freeSolo,id:D,includeInputInList:M=!1,inputValue:A,isOptionEqualToValue:_=(He,Ye)=>He===Ye,multiple:N=!1,onChange:B,onClose:H,onHighlightChange:j,onInputChange:L,onOpen:V,open:W,openOnFocus:K=!1,options:G,readOnly:q=!1,renderValue:Y,selectOnFocus:J=!e.freeSolo,value:ie}=e,se=bn(D);let ce=O;ce=He=>{const Ye=O(He);return typeof Ye!="string"?String(Ye):Ye};const ye=x.useRef(!1),Se=x.useRef(!0),ne=x.useRef(null),le=x.useRef(null),[de,oe]=x.useState(null),[ue,pe]=x.useState(-1),Ce=o?0:-1,xe=x.useRef(Ce),Re=x.useRef(kG(u??ie,N,ce)).current,[he,Ie]=ia({controlled:ie,default:u,name:c}),[ve,Oe]=ia({controlled:A,default:Re,name:c,state:"inputValue"}),[te,Ee]=x.useState(!1),De=x.useCallback((He,Ye,$t)=>{if(!(N?he.length!(w&&(N?he:[he]).some(Ye=>Ye!==null&&_(He,Ye)))),{inputValue:Be&&rt?"":ve,getOptionLabel:ce}):[],It=$j({filteredOptions:Le,value:he,inputValue:ve});x.useEffect(()=>{const He=he!==It.value;te&&!He||C&&!He||De(null,he,"reset")},[he,De,te,It.value,C]);const Lt=Ve&&Le.length>0&&!q,nt=Ze(He=>{if(He===-1)ne.current.focus();else{const Ye=Y?"data-item-index":"data-tag-index";de.querySelector(`[${Ye}="${He}"]`).focus()}});x.useEffect(()=>{N&&ue>he.length-1&&(pe(-1),nt(-1))},[he,N,ue,nt]);function lt(He,Ye){if(!le.current||He<0||He>=Le.length)return-1;let $t=He;for(;;){const hn=le.current.querySelector(`[data-option-index="${$t}"]`),Gt=g?!1:!hn||hn.disabled||hn.getAttribute("aria-disabled")==="true";if(hn&&hn.hasAttribute("tabindex")&&!Gt)return $t;if(Ye==="next"?$t=($t+1)%Le.length:$t=($t-1+Le.length)%Le.length,$t===He)return-1}}const vt=Ze(({event:He,index:Ye,reason:$t})=>{if(xe.current=Ye,Ye===-1?ne.current.removeAttribute("aria-activedescendant"):ne.current.setAttribute("aria-activedescendant",`${se}-option-${Ye}`),j&&["mouse","keyboard","touch"].includes($t)&&j(He,Ye===-1?null:Le[Ye],$t),!le.current)return;const hn=le.current.querySelector(`[role="option"].${n}-focused`);hn&&(hn.classList.remove(`${n}-focused`),hn.classList.remove(`${n}-focusVisible`));let Gt=le.current;if(le.current.getAttribute("role")!=="listbox"&&(Gt=le.current.parentElement.querySelector('[role="listbox"]')),!Gt)return;if(Ye===-1){Gt.scrollTop=0;return}const Xr=le.current.querySelector(`[data-option-index="${Ye}"]`);if(Xr&&(Xr.classList.add(`${n}-focused`),$t==="keyboard"&&Xr.classList.add(`${n}-focusVisible`),Gt.scrollHeight>Gt.clientHeight&&$t!=="mouse"&&$t!=="touch")){const Zr=Xr,Vi=Gt.clientHeight+Gt.scrollTop,Qv=Zr.offsetTop+Zr.offsetHeight;Qv>Vi?Gt.scrollTop=Qv-Gt.clientHeight:Zr.offsetTop-Zr.offsetHeight*(P?1.3:0){if(!et)return;const Xr=lt((()=>{const Zr=Le.length-1;if(Ye==="reset")return Ce;if(Ye==="start")return 0;if(Ye==="end")return Zr;const Vi=xe.current+Ye;return Vi<0?Vi===-1&&M?-1:y&&xe.current!==-1||Math.abs(Ye)>1?0:Zr:Vi>Zr?Vi===Zr+1&&M?-1:y||Math.abs(Ye)>1?Zr:0:Vi})(),$t);if(vt({index:Xr,reason:hn,event:He}),r&&Ye!=="reset")if(Xr===-1)ne.current.value=ve;else{const Zr=ce(Le[Xr]);ne.current.value=Zr,Zr.toLowerCase().indexOf(ve.toLowerCase())===0&&ve.length>0&&ne.current.setSelectionRange(ve.length,Zr.length)}}),vn=()=>{const He=(Ye,$t)=>{const hn=Ye?ce(Ye):"",Gt=$t?ce($t):"";return hn===Gt};if(xe.current!==-1&&It.filteredOptions&&It.filteredOptions.length!==Le.length&&It.inputValue===ve&&(N?he.length===It.value.length&&It.value.every((Ye,$t)=>ce(he[$t])===ce(Ye)):He(It.value,he))){const Ye=It.filteredOptions[xe.current];if(Ye)return Le.findIndex($t=>ce($t)===ce(Ye))}return-1},kn=x.useCallback(()=>{if(!et)return;const He=vn();if(He!==-1){xe.current=He;return}const Ye=N?he[0]:he;if(Le.length===0||Ye==null){bt({diff:"reset"});return}if(le.current){if(Ye!=null){const $t=Le[xe.current];if(N&&$t&&he.findIndex(Gt=>_($t,Gt))!==-1)return;const hn=Le.findIndex(Gt=>_(Gt,Ye));hn===-1?bt({diff:"reset"}):vt({index:hn});return}if(xe.current>=Le.length-1){vt({index:Le.length-1});return}vt({index:xe.current})}},[Le.length,N?!1:he,w,bt,vt,et,ve,N]),Rr=Ze(He=>{Y$(le,He),He&&kn()});x.useEffect(()=>{kn()},[kn]);const tr=He=>{Ve||(We(!0),ut(!0),V&&V(He))},Bn=(He,Ye)=>{Ve&&(We(!1),H&&H(He,Ye))},yo=(He,Ye,$t,hn)=>{if(N){if(he.length===Ye.length&&he.every((Gt,Xr)=>Gt===Ye[Xr]))return}else if(he===Ye)return;B&&B(He,Ye,$t,hn),Ie(Ye)},To=x.useRef(!1),oo=(He,Ye,$t="selectOption",hn="options")=>{let Gt=$t,Xr=Ye;if(N){Xr=Array.isArray(he)?he.slice():[];const Zr=Xr.findIndex(Vi=>_(Ye,Vi));Zr===-1?Xr.push(Ye):hn!=="freeSolo"&&(Xr.splice(Zr,1),Gt="removeOption")}De(He,Xr,Gt),yo(He,Xr,Gt,{option:Ye}),!h&&(!He||!He.ctrlKey&&!He.metaKey)&&Bn(He,Gt),(a===!0||a==="touch"&&To.current||a==="mouse"&&!To.current)&&ne.current.blur()};function Oi(He,Ye){if(He===-1)return-1;let $t=He;for(;;){if(Ye==="next"&&$t===he.length||Ye==="previous"&&$t===-1)return-1;const hn=Y?"data-item-index":"data-tag-index",Gt=de.querySelector(`[${hn}="${$t}"]`);if(!Gt||!Gt.hasAttribute("tabindex")||Gt.disabled||Gt.getAttribute("aria-disabled")==="true")$t+=Ye==="next"?1:-1;else return $t}}const Kt=(He,Ye)=>{if(!N)return;ve===""&&Bn(He,"toggleInput");let $t=ue;ue===-1?ve===""&&Ye==="previous"&&($t=he.length-1):($t+=Ye==="next"?1:-1,$t<0&&($t=0),$t===he.length&&($t=-1)),$t=Oi($t,Ye),pe($t),nt($t)},un=He=>{ye.current=!0,Oe(""),L&&L(He,"","clear"),yo(He,N?[]:null,"clear")},gt=He=>Ye=>{if(He.onKeyDown&&He.onKeyDown(Ye),!Ye.defaultMuiPrevented&&(ue!==-1&&!["ArrowLeft","ArrowRight"].includes(Ye.key)&&(pe(-1),nt(-1)),Ye.which!==229))switch(Ye.key){case"Home":et&&R&&(Ye.preventDefault(),bt({diff:"start",direction:"next",reason:"keyboard",event:Ye}));break;case"End":et&&R&&(Ye.preventDefault(),bt({diff:"end",direction:"previous",reason:"keyboard",event:Ye}));break;case"PageUp":Ye.preventDefault(),bt({diff:-5,direction:"previous",reason:"keyboard",event:Ye}),tr(Ye);break;case"PageDown":Ye.preventDefault(),bt({diff:zwe,direction:"next",reason:"keyboard",event:Ye}),tr(Ye);break;case"ArrowDown":Ye.preventDefault(),bt({diff:1,direction:"next",reason:"keyboard",event:Ye}),tr(Ye);break;case"ArrowUp":Ye.preventDefault(),bt({diff:-1,direction:"previous",reason:"keyboard",event:Ye}),tr(Ye);break;case"ArrowLeft":!N&&Y?nt(0):Kt(Ye,"previous");break;case"ArrowRight":!N&&Y?nt(-1):Kt(Ye,"next");break;case"Enter":if(xe.current!==-1&&et){const $t=Le[xe.current],hn=E?E($t):!1;if(Ye.preventDefault(),hn)return;oo(Ye,$t,"selectOption"),r&&ne.current.setSelectionRange(ne.current.value.length,ne.current.value.length)}else C&&ve!==""&&Be===!1&&(N&&Ye.preventDefault(),oo(Ye,ve,"createOption","freeSolo"));break;case"Escape":et?(Ye.preventDefault(),Ye.stopPropagation(),Bn(Ye,"escape")):l&&(ve!==""||N&&he.length>0||Y)&&(Ye.preventDefault(),Ye.stopPropagation(),un(Ye));break;case"Backspace":if(N&&!q&&ve===""&&he.length>0){const $t=ue===-1?he.length-1:ue,hn=he.slice();hn.splice($t,1),yo(Ye,hn,"removeOption",{option:he[$t]})}!N&&Y&&!q&&(Ie(null),nt(-1));break;case"Delete":if(N&&!q&&ve===""&&he.length>0&&ue!==-1){const $t=ue,hn=he.slice();hn.splice($t,1),yo(Ye,hn,"removeOption",{option:he[$t]})}!N&&Y&&!q&&(Ie(null),nt(-1));break}},kt=He=>{Ee(!0),K&&!ye.current&&tr(He)},Ut=He=>{if(t(le)){ne.current.focus();return}Ee(!1),Se.current=!0,ye.current=!1,i&&xe.current!==-1&&et?oo(He,Le[xe.current],"blur"):i&&C&&ve!==""?oo(He,ve,"blur","freeSolo"):s&&De(He,he,"blur"),Bn(He,"blur")},Xt=He=>{const Ye=He.target.value;ve!==Ye&&(Oe(Ye),ut(!1),L&&L(He,Ye,"input")),Ye===""?!f&&!N&&yo(He,null,"clear"):tr(He)},Vn=He=>{const Ye=Number(He.currentTarget.getAttribute("data-option-index"));xe.current!==Ye&&vt({event:He,index:Ye,reason:"mouse"})},Xo=He=>{vt({event:He,index:Number(He.currentTarget.getAttribute("data-option-index")),reason:"touch"}),To.current=!0},Da=He=>{const Ye=Number(He.currentTarget.getAttribute("data-option-index"));oo(He,Le[Ye],"selectOption"),To.current=!1},ps=He=>Ye=>{const $t=he.slice();$t.splice(He,1),yo(Ye,$t,"removeOption",{option:he[He]})},ud=He=>{yo(He,null,"removeOption",{option:he})},Ii=He=>{Ve?Bn(He,"toggleInput"):tr(He)},vo=He=>{He.currentTarget.contains(He.target)&&He.target.getAttribute("id")!==se&&He.preventDefault()},Fr=He=>{He.currentTarget.contains(He.target)&&(ne.current.focus(),J&&Se.current&&ne.current.selectionEnd-ne.current.selectionStart===0&&ne.current.select(),Se.current=!1)},zi=He=>{!m&&(ve===""||!Ve)&&Ii(He)};let ll=C&&ve.length>0;ll=ll||(N?he.length>0:he!==null);let cl=Le;return P&&(cl=Le.reduce((He,Ye,$t)=>{const hn=P(Ye);return He.length>0&&He[He.length-1].group===hn?He[He.length-1].options.push(Ye):He.push({key:$t,index:$t,group:hn,options:[Ye]}),He},[])),m&&te&&Ut(),{getRootProps:(He={})=>({...He,onKeyDown:gt(He),onMouseDown:vo,onClick:Fr}),getInputLabelProps:()=>({id:`${se}-label`,htmlFor:se}),getInputProps:()=>({id:se,value:ve,onBlur:Ut,onFocus:kt,onChange:Xt,onMouseDown:zi,"aria-activedescendant":et?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Lt?`${se}-listbox`:void 0,"aria-expanded":Lt,autoComplete:"off",ref:ne,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:un}),getItemProps:({index:He=0}={})=>({...N&&{key:He},...Y?{"data-item-index":He}:{"data-tag-index":He},tabIndex:-1,...!q&&{onDelete:N?ps(He):ud}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ii}),getTagProps:({index:He})=>({key:He,"data-tag-index":He,tabIndex:-1,...!q&&{onDelete:ps(He)}}),getListboxProps:()=>({role:"listbox",id:`${se}-listbox`,"aria-labelledby":`${se}-label`,ref:Rr,onMouseDown:He=>{He.preventDefault()}}),getOptionProps:({index:He,option:Ye})=>{const $t=(N?he:[he]).some(Gt=>Gt!=null&&_(Ye,Gt)),hn=E?E(Ye):!1;return{key:(I==null?void 0:I(Ye))??ce(Ye),tabIndex:-1,role:"option",id:`${se}-option-${He}`,onMouseMove:Vn,onClick:Da,onTouchStart:Xo,"data-option-index":He,"aria-disabled":hn,"aria-selected":$t}},id:se,inputValue:ve,value:he,dirty:ll,expanded:et&&de,popupOpen:et,focused:te||ue!==-1,anchorEl:de,setAnchorEl:oe,focusedItem:ue,focusedTag:ue,groupedOptions:cl}}var Ea="top",Zs="bottom",Js="right",Ta="left",Zj="auto",nw=[Ea,Zs,Js,Ta],ry="start",wx="end",Gwe="clippingParents",Jte="viewport",qb="popper",qwe="reference",_G=nw.reduce(function(e,t){return e.concat([t+"-"+ry,t+"-"+wx])},[]),ene=[].concat(nw,[Zj]).reduce(function(e,t){return e.concat([t,t+"-"+ry,t+"-"+wx])},[]),Wwe="beforeRead",Kwe="read",Ywe="afterRead",Qwe="beforeMain",Xwe="main",Zwe="afterMain",Jwe="beforeWrite",eCe="write",tCe="afterWrite",nCe=[Wwe,Kwe,Ywe,Qwe,Xwe,Zwe,Jwe,eCe,tCe];function Dc(e){return e?(e.nodeName||"").toLowerCase():null}function rs(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ph(e){var t=rs(e).Element;return e instanceof t||e instanceof Element}function Ws(e){var t=rs(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Jj(e){if(typeof ShadowRoot>"u")return!1;var t=rs(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function rCe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Ws(i)||!Dc(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function oCe(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 o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!Ws(o)||!Dc(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const iCe={name:"applyStyles",enabled:!0,phase:"write",fn:rCe,effect:oCe,requires:["computeStyles"]};function wc(e){return e.split("-")[0]}var eh=Math.max,YE=Math.min,oy=Math.round;function vN(){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 tne(){return!/^((?!chrome|android).)*safari/i.test(vN())}function iy(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Ws(e)&&(o=e.offsetWidth>0&&oy(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&oy(r.height)/e.offsetHeight||1);var a=ph(e)?rs(e):window,s=a.visualViewport,l=!tne()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:u,right:c+f,bottom:u+h,left:c,x:c,y:u}}function eB(e){var t=iy(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 nne(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Jj(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Hu(e){return rs(e).getComputedStyle(e)}function aCe(e){return["table","td","th"].indexOf(Dc(e))>=0}function $f(e){return((ph(e)?e.ownerDocument:e.document)||window.document).documentElement}function rI(e){return Dc(e)==="html"?e:e.assignedSlot||e.parentNode||(Jj(e)?e.host:null)||$f(e)}function $G(e){return!Ws(e)||Hu(e).position==="fixed"?null:e.offsetParent}function sCe(e){var t=/firefox/i.test(vN()),n=/Trident/i.test(vN());if(n&&Ws(e)){var r=Hu(e);if(r.position==="fixed")return null}var o=rI(e);for(Jj(o)&&(o=o.host);Ws(o)&&["html","body"].indexOf(Dc(o))<0;){var i=Hu(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function rw(e){for(var t=rs(e),n=$G(e);n&&aCe(n)&&Hu(n).position==="static";)n=$G(n);return n&&(Dc(n)==="html"||Dc(n)==="body"&&Hu(n).position==="static")?t:n||sCe(e)||t}function tB(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function G0(e,t,n){return eh(e,YE(t,n))}function lCe(e,t,n){var r=G0(e,t,n);return r>n?n:r}function rne(){return{top:0,right:0,bottom:0,left:0}}function one(e){return Object.assign({},rne(),e)}function ine(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var cCe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,one(typeof t!="number"?t:ine(t,nw))};function uCe(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=wc(n.placement),l=tB(s),c=[Ta,Js].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var f=cCe(o.padding,n),h=eB(i),m=l==="y"?Ea:Ta,g=l==="y"?Zs:Js,y=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],v=a[l]-n.rects.reference[l],w=rw(i),C=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,E=y/2-v/2,I=f[m],O=C-h[u]-f[g],P=C/2-h[u]/2+E,R=G0(I,P,O),D=l;n.modifiersData[r]=(t={},t[D]=R,t.centerOffset=R-P,t)}}function dCe(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||nne(t.elements.popper,o)&&(t.elements.arrow=o))}const fCe={name:"arrow",enabled:!0,phase:"main",fn:uCe,effect:dCe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ay(e){return e.split("-")[1]}var pCe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hCe(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:oy(n*o)/o||0,y:oy(r*o)/o||0}}function NG(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=a.x,m=h===void 0?0:h,g=a.y,y=g===void 0?0:g,v=typeof u=="function"?u({x:m,y}):{x:m,y};m=v.x,y=v.y;var w=a.hasOwnProperty("x"),C=a.hasOwnProperty("y"),E=Ta,I=Ea,O=window;if(c){var P=rw(n),R="clientHeight",D="clientWidth";if(P===rs(n)&&(P=$f(n),Hu(P).position!=="static"&&s==="absolute"&&(R="scrollHeight",D="scrollWidth")),P=P,o===Ea||(o===Ta||o===Js)&&i===wx){I=Zs;var M=f&&P===O&&O.visualViewport?O.visualViewport.height:P[R];y-=M-r.height,y*=l?1:-1}if(o===Ta||(o===Ea||o===Zs)&&i===wx){E=Js;var A=f&&P===O&&O.visualViewport?O.visualViewport.width:P[D];m-=A-r.width,m*=l?1:-1}}var _=Object.assign({position:s},c&&pCe),N=u===!0?hCe({x:m,y},rs(n)):{x:m,y};if(m=N.x,y=N.y,l){var B;return Object.assign({},_,(B={},B[I]=C?"0":"",B[E]=w?"0":"",B.transform=(O.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",B))}return Object.assign({},_,(t={},t[I]=C?y+"px":"",t[E]=w?m+"px":"",t.transform="",t))}function mCe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:wc(t.placement),variation:ay(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,NG(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,NG(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const gCe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mCe,data:{}};var v1={passive:!0};function yCe(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=rs(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,v1)}),s&&l.addEventListener("resize",n.update,v1),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,v1)}),s&&l.removeEventListener("resize",n.update,v1)}}const vCe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yCe,data:{}};var bCe={left:"right",right:"left",bottom:"top",top:"bottom"};function fE(e){return e.replace(/left|right|bottom|top/g,function(t){return bCe[t]})}var xCe={start:"end",end:"start"};function LG(e){return e.replace(/start|end/g,function(t){return xCe[t]})}function nB(e){var t=rs(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function rB(e){return iy($f(e)).left+nB(e).scrollLeft}function SCe(e,t){var n=rs(e),r=$f(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=tne();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+rB(e),y:l}}function wCe(e){var t,n=$f(e),r=nB(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=eh(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=eh(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+rB(e),l=-r.scrollTop;return Hu(o||n).direction==="rtl"&&(s+=eh(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function oB(e){var t=Hu(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ane(e){return["html","body","#document"].indexOf(Dc(e))>=0?e.ownerDocument.body:Ws(e)&&oB(e)?e:ane(rI(e))}function q0(e,t){var n;t===void 0&&(t=[]);var r=ane(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=rs(r),a=o?[i].concat(i.visualViewport||[],oB(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(q0(rI(a)))}function bN(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function CCe(e,t){var n=iy(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 FG(e,t,n){return t===Jte?bN(SCe(e,n)):ph(t)?CCe(t,n):bN(wCe($f(e)))}function ECe(e){var t=q0(rI(e)),n=["absolute","fixed"].indexOf(Hu(e).position)>=0,r=n&&Ws(e)?rw(e):e;return ph(r)?t.filter(function(o){return ph(o)&&nne(o,r)&&Dc(o)!=="body"}):[]}function TCe(e,t,n,r){var o=t==="clippingParents"?ECe(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,c){var u=FG(e,c,r);return l.top=eh(u.top,l.top),l.right=YE(u.right,l.right),l.bottom=YE(u.bottom,l.bottom),l.left=eh(u.left,l.left),l},FG(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function sne(e){var t=e.reference,n=e.element,r=e.placement,o=r?wc(r):null,i=r?ay(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case Ea:l={x:a,y:t.y-n.height};break;case Zs:l={x:a,y:t.y+t.height};break;case Js:l={x:t.x+t.width,y:s};break;case Ta:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?tB(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case ry:l[c]=l[c]-(t[u]/2-n[u]/2);break;case wx:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Cx(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?Gwe:s,c=n.rootBoundary,u=c===void 0?Jte:c,f=n.elementContext,h=f===void 0?qb:f,m=n.altBoundary,g=m===void 0?!1:m,y=n.padding,v=y===void 0?0:y,w=one(typeof v!="number"?v:ine(v,nw)),C=h===qb?qwe:qb,E=e.rects.popper,I=e.elements[g?C:h],O=TCe(ph(I)?I:I.contextElement||$f(e.elements.popper),l,u,a),P=iy(e.elements.reference),R=sne({reference:P,element:E,placement:o}),D=bN(Object.assign({},E,R)),M=h===qb?D:P,A={top:O.top-M.top+w.top,bottom:M.bottom-O.bottom+w.bottom,left:O.left-M.left+w.left,right:M.right-O.right+w.right},_=e.modifiersData.offset;if(h===qb&&_){var N=_[o];Object.keys(A).forEach(function(B){var H=[Js,Zs].indexOf(B)>=0?1:-1,j=[Ea,Zs].indexOf(B)>=0?"y":"x";A[B]+=N[j]*H})}return A}function OCe(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?ene:l,u=ay(r),f=u?s?_G:_G.filter(function(g){return ay(g)===u}):nw,h=f.filter(function(g){return c.indexOf(g)>=0});h.length===0&&(h=f);var m=h.reduce(function(g,y){return g[y]=Cx(e,{placement:y,boundary:o,rootBoundary:i,padding:a})[wc(y)],g},{});return Object.keys(m).sort(function(g,y){return m[g]-m[y]})}function ICe(e){if(wc(e)===Zj)return[];var t=fE(e);return[LG(e),t,LG(t)]}function PCe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,g=m===void 0?!0:m,y=n.allowedAutoPlacements,v=t.options.placement,w=wc(v),C=w===v,E=l||(C||!g?[fE(v)]:ICe(v)),I=[v].concat(E).reduce(function(ie,se){return ie.concat(wc(se)===Zj?OCe(t,{placement:se,boundary:u,rootBoundary:f,padding:c,flipVariations:g,allowedAutoPlacements:y}):se)},[]),O=t.rects.reference,P=t.rects.popper,R=new Map,D=!0,M=I[0],A=0;A=0,j=H?"width":"height",L=Cx(t,{placement:_,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),V=H?B?Js:Ta:B?Zs:Ea;O[j]>P[j]&&(V=fE(V));var W=fE(V),K=[];if(i&&K.push(L[N]<=0),s&&K.push(L[V]<=0,L[W]<=0),K.every(function(ie){return ie})){M=_,D=!1;break}R.set(_,K)}if(D)for(var G=g?3:1,q=function(se){var ce=I.find(function(ye){var Se=R.get(ye);if(Se)return Se.slice(0,se).every(function(ne){return ne})});if(ce)return M=ce,"break"},Y=G;Y>0;Y--){var J=q(Y);if(J==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}const ACe={name:"flip",enabled:!0,phase:"main",fn:PCe,requiresIfExists:["offset"],data:{_skip:!1}};function jG(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 BG(e){return[Ea,Js,Zs,Ta].some(function(t){return e[t]>=0})}function MCe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Cx(t,{elementContext:"reference"}),s=Cx(t,{altBoundary:!0}),l=jG(a,r),c=jG(s,o,i),u=BG(l),f=BG(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const RCe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:MCe};function DCe(e,t,n){var r=wc(e),o=[Ta,Ea].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Ta,Js].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function kCe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=ene.reduce(function(u,f){return u[f]=DCe(f,t.rects,i),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const _Ce={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kCe};function $Ce(e){var t=e.state,n=e.name;t.modifiersData[n]=sne({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const NCe={name:"popperOffsets",enabled:!0,phase:"read",fn:$Ce,data:{}};function LCe(e){return e==="x"?"y":"x"}function FCe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,m=h===void 0?!0:h,g=n.tetherOffset,y=g===void 0?0:g,v=Cx(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),w=wc(t.placement),C=ay(t.placement),E=!C,I=tB(w),O=LCe(I),P=t.modifiersData.popperOffsets,R=t.rects.reference,D=t.rects.popper,M=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,A=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(P){if(i){var B,H=I==="y"?Ea:Ta,j=I==="y"?Zs:Js,L=I==="y"?"height":"width",V=P[I],W=V+v[H],K=V-v[j],G=m?-D[L]/2:0,q=C===ry?R[L]:D[L],Y=C===ry?-D[L]:-R[L],J=t.elements.arrow,ie=m&&J?eB(J):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:rne(),ce=se[H],ye=se[j],Se=G0(0,R[L],ie[L]),ne=E?R[L]/2-G-Se-ce-A.mainAxis:q-Se-ce-A.mainAxis,le=E?-R[L]/2+G+Se+ye+A.mainAxis:Y+Se+ye+A.mainAxis,de=t.elements.arrow&&rw(t.elements.arrow),oe=de?I==="y"?de.clientTop||0:de.clientLeft||0:0,ue=(B=_==null?void 0:_[I])!=null?B:0,pe=V+ne-ue-oe,Ce=V+le-ue,xe=G0(m?YE(W,pe):W,V,m?eh(K,Ce):K);P[I]=xe,N[I]=xe-V}if(s){var Re,he=I==="x"?Ea:Ta,Ie=I==="x"?Zs:Js,ve=P[O],Oe=O==="y"?"height":"width",te=ve+v[he],Ee=ve-v[Ie],De=[Ea,Ta].indexOf(w)!==-1,Ve=(Re=_==null?void 0:_[O])!=null?Re:0,We=De?te:ve-R[Oe]-D[Oe]-Ve+A.altAxis,rt=De?ve+R[Oe]+D[Oe]-Ve-A.altAxis:Ee,ut=m&&De?lCe(We,ve,rt):G0(m?We:te,ve,m?rt:Ee);P[O]=ut,N[O]=ut-ve}t.modifiersData[r]=N}}const jCe={name:"preventOverflow",enabled:!0,phase:"main",fn:FCe,requiresIfExists:["offset"]};function BCe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function zCe(e){return e===rs(e)||!Ws(e)?nB(e):BCe(e)}function VCe(e){var t=e.getBoundingClientRect(),n=oy(t.width)/e.offsetWidth||1,r=oy(t.height)/e.offsetHeight||1;return n!==1||r!==1}function HCe(e,t,n){n===void 0&&(n=!1);var r=Ws(t),o=Ws(t)&&VCe(t),i=$f(t),a=iy(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Dc(t)!=="body"||oB(i))&&(s=zCe(t)),Ws(t)?(l=iy(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=rB(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function UCe(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function GCe(e){var t=UCe(e);return nCe.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function qCe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function WCe(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var zG={placement:"bottom",modifiers:[],strategy:"absolute"};function VG(){for(var e=arguments.length,t=new Array(e),n=0;n{i||s(XCe(o)||document.body)},[o,i]),In(()=>{if(a&&!i)return Y$(n,a),()=>{Y$(n,null)}},[n,a,i]),i){if(x.isValidElement(r)){const c={ref:l};return x.cloneElement(r,c)}return r}return a&&JS.createPortal(r,a)});function ZCe(e){return qe("MuiPopper",e)}Ke("MuiPopper",["root"]);function JCe(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 xN(e){return typeof e=="function"?e():e}function e1e(e){return e.nodeType!==void 0}const t1e=e=>{const{classes:t}=e;return Me({root:["root"]},ZCe,t)},n1e={},r1e=x.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:u,popperRef:f,slotProps:h={},slots:m={},TransitionProps:g,ownerState:y,...v}=t,w=x.useRef(null),C=en(w,n),E=x.useRef(null),I=en(E,f),O=x.useRef(I);In(()=>{O.current=I},[I]),x.useImperativeHandle(f,()=>E.current,[]);const P=JCe(c,i),[R,D]=x.useState(P),[M,A]=x.useState(xN(r));x.useEffect(()=>{E.current&&E.current.forceUpdate()}),x.useEffect(()=>{r&&A(xN(r))},[r]),In(()=>{if(!M||!l)return;const j=W=>{D(W.placement)};let L=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{j(W)}}];s!=null&&(L=L.concat(s)),u&&u.modifiers!=null&&(L=L.concat(u.modifiers));const V=QCe(M,w.current,{placement:P,...u,modifiers:L});return O.current(V),()=>{V.destroy(),O.current(null)}},[M,a,s,l,u,P]);const _={placement:R};g!==null&&(_.TransitionProps=g);const N=t1e(t),B=m.root??"div",H=Dn({elementType:B,externalSlotProps:h.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:N.root});return k.jsx(B,{...H,children:typeof o=="function"?o(_):o})}),o1e=x.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:h=n1e,popperRef:m,style:g,transition:y=!1,slotProps:v={},slots:w={},...C}=t,[E,I]=x.useState(!0),O=()=>{I(!1)},P=()=>{I(!0)};if(!l&&!u&&(!y||E))return null;let R;if(i)R=i;else if(r){const A=xN(r);R=A&&e1e(A)?Mr(A).body:Mr(null).body}const D=!u&&l&&(!y||E)?"none":void 0,M=y?{in:u,onEnter:O,onExited:P}:void 0;return k.jsx(lne,{disablePortal:s,container:R,children:k.jsx(r1e,{anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:y?!E:u,placement:f,popperOptions:h,popperRef:m,slotProps:v,slots:w,...C,style:{position:"fixed",top:0,left:0,display:D,...g},TransitionProps:M,children:o})})}),i1e=ae(o1e,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),iv=x.forwardRef(function(t,n){const r=yr(),o=pt({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:f,modifiers:h,open:m,placement:g,popperOptions:y,popperRef:v,transition:w,slots:C,slotProps:E,...I}=o,O=(C==null?void 0:C.root)??(s==null?void 0:s.Root),P={anchorEl:i,container:c,disablePortal:u,keepMounted:f,modifiers:h,open:m,placement:g,popperOptions:y,popperRef:v,transition:w,...I};return k.jsx(i1e,{as:a,direction:r?"rtl":"ltr",slots:{root:O},slotProps:E??l,...P,ref:n})});function a1e(e){return qe("MuiListSubheader",e)}Ke("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const s1e=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${Te(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return Me(a,a1e,t)},l1e=ae("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Te(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(dt(({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}}]}))),SN=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1,...u}=r,f={...r,color:i,component:a,disableGutters:s,disableSticky:l,inset:c},h=s1e(f);return k.jsx(l1e,{as:a,className:fe(h.root,o),ref:n,ownerState:f,...u})});SN&&(SN.muiSkipListHighlight=!0);const c1e=Ot(k.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function u1e(e){return qe("MuiChip",e)}const jn=Ke("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"]),d1e=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${Te(r)}`,`color${Te(o)}`,s&&"clickable",s&&`clickableColor${Te(o)}`,a&&"deletable",a&&`deletableColor${Te(o)}`,`${l}${Te(o)}`],label:["label",`label${Te(r)}`],avatar:["avatar",`avatar${Te(r)}`,`avatarColor${Te(o)}`],icon:["icon",`icon${Te(r)}`,`iconColor${Te(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Te(r)}`,`deleteIconColor${Te(o)}`,`deleteIcon${Te(l)}Color${Te(o)}`]};return Me(c,u1e,t)},f1e=ae("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${jn.avatar}`]:t.avatar},{[`& .${jn.avatar}`]:t[`avatar${Te(s)}`]},{[`& .${jn.avatar}`]:t[`avatarColor${Te(r)}`]},{[`& .${jn.icon}`]:t.icon},{[`& .${jn.icon}`]:t[`icon${Te(s)}`]},{[`& .${jn.icon}`]:t[`iconColor${Te(o)}`]},{[`& .${jn.deleteIcon}`]:t.deleteIcon},{[`& .${jn.deleteIcon}`]:t[`deleteIcon${Te(s)}`]},{[`& .${jn.deleteIcon}`]:t[`deleteIconColor${Te(r)}`]},{[`& .${jn.deleteIcon}`]:t[`deleteIcon${Te(l)}Color${Te(r)}`]},t.root,t[`size${Te(s)}`],t[`color${Te(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${Te(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${Te(r)}`],t[l],t[`${l}${Te(r)}`]]}})(dt(({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",[`&.${jn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${jn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${jn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${jn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${jn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${jn.icon}`]:{marginLeft:5,marginRight:-6},[`& .${jn.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Nt(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)`:Nt(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${jn.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${jn.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Jn(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${jn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:Nt(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${jn.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${jn.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${jn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Nt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Jn(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${jn.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}))`:Nt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${jn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Nt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Jn(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${jn.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]}`,[`&.${jn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${jn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${jn.avatar}`]:{marginLeft:4},[`& .${jn.avatarSmall}`]:{marginLeft:2},[`& .${jn.icon}`]:{marginLeft:4},[`& .${jn.iconSmall}`]:{marginLeft:2},[`& .${jn.deleteIcon}`]:{marginRight:5},[`& .${jn.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Jn()).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)`:Nt(e.palette[n].main,.7)}`,[`&.${jn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${jn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Nt(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${jn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Nt(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),p1e=ae("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Te(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 HG(e){return e.key==="Backspace"||e.key==="Delete"}const Ul=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:h,onClick:m,onDelete:g,onKeyDown:y,onKeyUp:v,size:w="medium",variant:C="filled",tabIndex:E,skipFocusWhenDisabled:I=!1,...O}=r,P=x.useRef(null),R=en(P,n),D=K=>{K.stopPropagation(),g&&g(K)},M=K=>{K.currentTarget===K.target&&HG(K)&&K.preventDefault(),y&&y(K)},A=K=>{K.currentTarget===K.target&&g&&HG(K)&&g(K),v&&v(K)},_=a!==!1&&m?!0:a,N=_||g?la:l||"div",B={...r,component:N,disabled:u,size:w,color:s,iconColor:x.isValidElement(f)&&f.props.color||s,onDelete:!!g,clickable:_,variant:C},H=d1e(B),j=N===la?{component:l||"div",focusVisibleClassName:H.focusVisible,...g&&{disableRipple:!0}}:{};let L=null;g&&(L=c&&x.isValidElement(c)?x.cloneElement(c,{className:fe(c.props.className,H.deleteIcon),onClick:D}):k.jsx(c1e,{className:fe(H.deleteIcon),onClick:D}));let V=null;o&&x.isValidElement(o)&&(V=x.cloneElement(o,{className:fe(H.avatar,o.props.className)}));let W=null;return f&&x.isValidElement(f)&&(W=x.cloneElement(f,{className:fe(H.icon,f.props.className)})),k.jsxs(f1e,{as:N,className:fe(H.root,i),disabled:_&&u?!0:void 0,onClick:m,onKeyDown:M,onKeyUp:A,ref:R,tabIndex:I&&u?-1:E,ownerState:B,...j,...O,children:[V||W,k.jsx(p1e,{className:fe(H.label),ownerState:B,children:h}),L]})});function b1(e){return parseInt(e,10)||0}const h1e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function m1e(e){for(const t in e)return!1;return!0}function UG(e){return m1e(e)||e.outerHeightStyle===0&&!e.overflowing}const g1e=x.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s,...l}=t,{current:c}=x.useRef(s!=null),u=x.useRef(null),f=en(n,u),h=x.useRef(null),m=x.useRef(null),g=x.useCallback(()=>{const E=u.current,I=m.current;if(!E||!I)return;const P=ns(E).getComputedStyle(E);if(P.width==="0px")return{outerHeightStyle:0,overflowing:!1};I.style.width=P.width,I.value=E.value||t.placeholder||"x",I.value.slice(-1)===` -`&&(I.value+=" ");const R=P.boxSizing,D=b1(P.paddingBottom)+b1(P.paddingTop),M=b1(P.borderBottomWidth)+b1(P.borderTopWidth),A=I.scrollHeight;I.value="x";const _=I.scrollHeight;let N=A;i&&(N=Math.max(Number(i)*_,N)),o&&(N=Math.min(Number(o)*_,N)),N=Math.max(N,_);const B=N+(R==="border-box"?D+M:0),H=Math.abs(N-A)<=1;return{outerHeightStyle:B,overflowing:H}},[o,i,t.placeholder]),y=Ze(()=>{const E=u.current,I=g();if(!E||!I||UG(I))return!1;const O=I.outerHeightStyle;return h.current!=null&&h.current!==O}),v=x.useCallback(()=>{const E=u.current,I=g();if(!E||!I||UG(I))return;const O=I.outerHeightStyle;h.current!==O&&(h.current=O,E.style.height=`${O}px`),E.style.overflow=I.overflowing?"hidden":""},[g]),w=x.useRef(-1);In(()=>{const E=_h(v),I=u==null?void 0:u.current;if(!I)return;const O=ns(I);O.addEventListener("resize",E);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(()=>{y()&&(P.unobserve(I),cancelAnimationFrame(w.current),v(),w.current=requestAnimationFrame(()=>{P.observe(I)}))}),P.observe(I)),()=>{E.clear(),cancelAnimationFrame(w.current),O.removeEventListener("resize",E),P&&P.disconnect()}},[g,v,y]),In(()=>{v()});const C=E=>{c||v(),r&&r(E)};return k.jsxs(x.Fragment,{children:[k.jsx("textarea",{value:s,onChange:C,ref:f,rows:i,style:a,...l}),k.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:{...h1e.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function Ex(e){return typeof e=="string"}function Nf({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const oI=x.createContext(void 0);function il(){return x.useContext(oI)}function GG(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function QE(e,t=!1){return e&&(GG(e.value)&&e.value!==""||t&&GG(e.defaultValue)&&e.defaultValue!=="")}function y1e(e){return e.startAdornment}function v1e(e){return qe("MuiInputBase",e)}const bi=Ke("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var qG;const iI=(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${Te(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},aI=(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]},b1e=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:h,startAdornment:m,type:g}=e,y={root:["root",`color${Te(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",h&&h!=="medium"&&`size${Te(h)}`,u&&"multiline",m&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",m&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return Me(y,v1e,t)},sI=ae("div",{name:"MuiInputBase",slot:"Root",overridesResolver:iI})(dt(({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",[`&.${bi.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%"}}]}))),lI=ae("input",{name:"MuiInputBase",slot:"Input",overridesResolver:aI})(dt(({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"},o=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] + .${bi.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${bi.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.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:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),WG=sSe({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),ow=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,color:l,components:c={},componentsProps:u={},defaultValue:f,disabled:h,disableInjectingGlobalStyles:m,endAdornment:g,error:y,fullWidth:v=!1,id:w,inputComponent:C="input",inputProps:E={},inputRef:I,margin:O,maxRows:P,minRows:R,multiline:D=!1,name:M,onBlur:A,onChange:_,onClick:N,onFocus:B,onKeyDown:H,onKeyUp:j,placeholder:L,readOnly:V,renderSuffix:W,rows:K,size:G,slotProps:q={},slots:Y={},startAdornment:J,type:ie="text",value:se,...ce}=r,ye=E.value!=null?E.value:se,{current:Se}=x.useRef(ye!=null),ne=x.useRef(),le=x.useCallback(Le=>{},[]),de=en(ne,I,E.ref,le),[oe,ue]=x.useState(!1),pe=il(),Ce=Nf({props:r,muiFormControl:pe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ce.focused=pe?pe.focused:oe,x.useEffect(()=>{!pe&&h&&oe&&(ue(!1),A&&A())},[pe,h,oe,A]);const xe=pe&&pe.onFilled,Re=pe&&pe.onEmpty,he=x.useCallback(Le=>{QE(Le)?xe&&xe():Re&&Re()},[xe,Re]);In(()=>{Se&&he({value:ye})},[ye,he,Se]);const Ie=Le=>{B&&B(Le),E.onFocus&&E.onFocus(Le),pe&&pe.onFocus?pe.onFocus(Le):ue(!0)},ve=Le=>{A&&A(Le),E.onBlur&&E.onBlur(Le),pe&&pe.onBlur?pe.onBlur(Le):ue(!1)},Oe=(Le,...It)=>{if(!Se){const Lt=Le.target||ne.current;if(Lt==null)throw new Error(Bu(1));he({value:Lt.value})}E.onChange&&E.onChange(Le,...It),_&&_(Le,...It)};x.useEffect(()=>{he(ne.current)},[]);const te=Le=>{ne.current&&Le.currentTarget===Le.target&&ne.current.focus(),N&&N(Le)};let Ee=C,De=E;D&&Ee==="input"&&(K?De={type:void 0,minRows:K,maxRows:K,...De}:De={type:void 0,maxRows:P,minRows:R,...De},Ee=g1e);const Ve=Le=>{he(Le.animationName==="mui-auto-fill-cancel"?ne.current:{value:"x"})};x.useEffect(()=>{pe&&pe.setAdornedStart(!!J)},[pe,J]);const We={...r,color:Ce.color||"primary",disabled:Ce.disabled,endAdornment:g,error:Ce.error,focused:Ce.focused,formControl:pe,fullWidth:v,hiddenLabel:Ce.hiddenLabel,multiline:D,size:Ce.size,startAdornment:J,type:ie},rt=b1e(We),ut=Y.root||c.Root||sI,Be=q.root||u.root||{},et=Y.input||c.Input||lI;return De={...De,...q.input??u.input},k.jsxs(x.Fragment,{children:[!m&&typeof WG=="function"&&(qG||(qG=k.jsx(WG,{}))),k.jsxs(ut,{...Be,ref:n,onClick:te,...ce,...!Ex(ut)&&{ownerState:{...We,...Be.ownerState}},className:fe(rt.root,Be.className,s,V&&"MuiInputBase-readOnly"),children:[J,k.jsx(oI.Provider,{value:null,children:k.jsx(et,{"aria-invalid":Ce.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:f,disabled:Ce.disabled,id:w,onAnimationStart:Ve,name:M,placeholder:L,readOnly:V,required:Ce.required,rows:K,value:ye,onKeyDown:H,onKeyUp:j,type:ie,...De,...!Ex(et)&&{as:Ee,ownerState:{...We,...De.ownerState}},ref:de,className:fe(rt.input,De.className,V&&"MuiInputBase-readOnly"),onBlur:ve,onChange:Oe,onFocus:Ie})}),g,W?W({...Ce,startAdornment:J}):null]})]})});function x1e(e){return qe("MuiInput",e)}const Kd={...bi,...Ke("MuiInput",["root","underline","input"])};function S1e(e){return qe("MuiOutlinedInput",e)}const Rs={...bi,...Ke("MuiOutlinedInput",["root","notchedOutline","input"])};function w1e(e){return qe("MuiFilledInput",e)}const Ua={...bi,...Ke("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},cne=Ot(k.jsx("path",{d:"M7 10l5 5 5-5z"}));function C1e(e){return qe("MuiAutocomplete",e)}const Mn=Ke("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 KG,YG;const E1e=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,f={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${Te(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Me(f,C1e,t)},T1e=ae("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=n;return[{[`& .${Mn.tag}`]:t.tag},{[`& .${Mn.tag}`]:t[`tagSize${Te(s)}`]},{[`& .${Mn.inputRoot}`]:t.inputRoot},{[`& .${Mn.input}`]:t.input},{[`& .${Mn.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Mn.focused} .${Mn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Mn.clearIndicator}`]:{visibility:"visible"}},[`& .${Mn.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Mn.inputRoot}`]:{[`.${Mn.hasPopupIcon}&, .${Mn.hasClearIcon}&`]:{paddingRight:30},[`.${Mn.hasPopupIcon}.${Mn.hasClearIcon}&`]:{paddingRight:56},[`& .${Mn.input}`]:{width:0,minWidth:30}},[`& .${Kd.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Kd.root}.${bi.sizeSmall}`]:{[`& .${Kd.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Rs.root}`]:{padding:9,[`.${Mn.hasPopupIcon}&, .${Mn.hasClearIcon}&`]:{paddingRight:39},[`.${Mn.hasPopupIcon}.${Mn.hasClearIcon}&`]:{paddingRight:65},[`& .${Mn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Mn.endAdornment}`]:{right:9}},[`& .${Rs.root}.${bi.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Mn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Ua.root}`]:{paddingTop:19,paddingLeft:8,[`.${Mn.hasPopupIcon}&, .${Mn.hasClearIcon}&`]:{paddingRight:39},[`.${Mn.hasPopupIcon}.${Mn.hasClearIcon}&`]:{paddingRight:65},[`& .${Ua.input}`]:{padding:"7px 4px"},[`& .${Mn.endAdornment}`]:{right:9}},[`& .${Ua.root}.${bi.sizeSmall}`]:{paddingBottom:1,[`& .${Ua.input}`]:{padding:"2.5px 4px"}},[`& .${bi.hiddenLabel}`]:{paddingTop:8},[`& .${Ua.root}.${bi.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Mn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Ua.root}.${bi.hiddenLabel}.${bi.sizeSmall}`]:{[`& .${Mn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Mn.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Mn.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Mn.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Mn.inputRoot}`]:{flexWrap:"wrap"}}}]}),O1e=ae("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),I1e=ae(pn,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),P1e=ae(pn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),A1e=ae(iv,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Mn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(dt(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),M1e=ae(go,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(dt(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),R1e=ae("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(dt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),D1e=ae("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(dt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),k1e=ae("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(dt(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Mn.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"},[`&.${Mn.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"},[`&.${Mn.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})`:Nt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Mn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Nt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Mn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Nt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),_1e=ae(SN,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(dt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),$1e=ae("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Mn.option}`]:{paddingLeft:24}}),kc=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,ChipProps:l,className:c,clearIcon:u=KG||(KG=k.jsx(Zte,{fontSize:"small"})),clearOnBlur:f=!r.freeSolo,clearOnEscape:h=!1,clearText:m="Clear",closeText:g="Close",componentsProps:y,defaultValue:v=r.multiple?[]:null,disableClearable:w=!1,disableCloseOnSelect:C=!1,disabled:E=!1,disabledItemsFocusable:I=!1,disableListWrap:O=!1,disablePortal:P=!1,filterOptions:R,filterSelectedOptions:D=!1,forcePopupIcon:M="auto",freeSolo:A=!1,fullWidth:_=!1,getLimitTagsText:N=Hn=>`+${Hn}`,getOptionDisabled:B,getOptionKey:H,getOptionLabel:j,isOptionEqualToValue:L,groupBy:V,handleHomeEndKeys:W=!r.freeSolo,id:K,includeInputInList:G=!1,inputValue:q,limitTags:Y=-1,ListboxComponent:J,ListboxProps:ie,loading:se=!1,loadingText:ce="Loading…",multiple:ye=!1,noOptionsText:Se="No options",onChange:ne,onClose:le,onHighlightChange:de,onInputChange:oe,onOpen:ue,open:pe,openOnFocus:Ce=!1,openText:xe="Open",options:Re,PaperComponent:he,PopperComponent:Ie,popupIcon:ve=YG||(YG=k.jsx(cne,{})),readOnly:Oe=!1,renderGroup:te,renderInput:Ee,renderOption:De,renderTags:Ve,renderValue:We,selectOnFocus:rt=!r.freeSolo,size:ut="medium",slots:Be={},slotProps:et={},value:Le,...It}=r,{getRootProps:Lt,getInputProps:nt,getInputLabelProps:lt,getPopupIndicatorProps:vt,getClearProps:bt,getItemProps:vn,getListboxProps:kn,getOptionProps:Rr,value:tr,dirty:Bn,expanded:yo,id:To,popupOpen:oo,focused:Oi,focusedItem:Kt,anchorEl:un,setAnchorEl:gt,inputValue:kt,groupedOptions:Ut}=Uwe({...r,componentName:"Autocomplete"}),Xt=!w&&!E&&Bn&&!Oe,Vn=(!A||M===!0)&&M!==!1,{onMouseDown:Xo}=nt(),{ref:Da,...ps}=kn(),Ii=j||(Hn=>Hn.label??Hn),vo={...r,disablePortal:P,expanded:yo,focused:Oi,fullWidth:_,getOptionLabel:Ii,hasClearIcon:Xt,hasPopupIcon:Vn,inputFocused:Kt===-1,popupOpen:oo,size:ut},Fr=E1e(vo),zi={slots:{paper:he,popper:Ie,...Be},slotProps:{chip:l,listbox:ie,...y,...et}},[ll,cl]=St("listbox",{elementType:k1e,externalForwardedProps:zi,ownerState:vo,className:Fr.listbox,additionalProps:ps,ref:Da}),[He,Ye]=St("paper",{elementType:go,externalForwardedProps:zi,ownerState:vo,className:Fr.paper}),[$t,hn]=St("popper",{elementType:iv,externalForwardedProps:zi,ownerState:vo,className:Fr.popper,additionalProps:{disablePortal:P,style:{width:un?un.clientWidth:null},role:"presentation",anchorEl:un,open:oo}});let Gt;const Xr=Hn=>({className:Fr.tag,disabled:E,...vn(Hn)});if(Ve&&ye&&tr.length>0?Gt=Ve(tr,Xr,vo):We&&tr?Gt=We(tr,Xr,vo):ye&&tr.length>0&&(Gt=tr.map((Hn,Hi)=>{const{key:hs,...Jc}=Xr({index:Hi});return k.jsx(Ul,{label:Ii(Hn),size:ut,...Jc,...zi.slotProps.chip},hs)})),Y>-1&&Array.isArray(Gt)){const Hn=Gt.length-Y;!Oi&&Hn>0&&(Gt=Gt.splice(0,Y),Gt.push(k.jsx("span",{className:Fr.tag,children:N(Hn)},Gt.length)))}const Vi=te||(Hn=>k.jsxs("li",{children:[k.jsx(_1e,{className:Fr.groupLabel,ownerState:vo,component:"div",children:Hn.group}),k.jsx($1e,{className:Fr.groupUl,ownerState:vo,children:Hn.children})]},Hn.key)),tm=De||((Hn,Hi)=>{const{key:hs,...Jc}=Hn;return k.jsx("li",{...Jc,children:Ii(Hi)},hs)}),Xf=(Hn,Hi)=>{const hs=Rr({option:Hn,index:Hi});return tm({...hs,className:Fr.option},Hn,{selected:hs["aria-selected"],index:Hi,inputValue:kt},vo)},ca=zi.slotProps.clearIndicator,dd=zi.slotProps.popupIndicator;return k.jsxs(x.Fragment,{children:[k.jsx(T1e,{ref:n,className:fe(Fr.root,c),ownerState:vo,...Lt(It),children:Ee({id:To,disabled:E,fullWidth:!0,size:ut==="small"?"small":void 0,InputLabelProps:lt(),InputProps:{ref:gt,className:Fr.inputRoot,startAdornment:Gt,onMouseDown:Hn=>{Hn.target===Hn.currentTarget&&Xo(Hn)},...(Xt||Vn)&&{endAdornment:k.jsxs(O1e,{className:Fr.endAdornment,ownerState:vo,children:[Xt?k.jsx(I1e,{...bt(),"aria-label":m,title:m,ownerState:vo,...ca,className:fe(Fr.clearIndicator,ca==null?void 0:ca.className),children:u}):null,Vn?k.jsx(P1e,{...vt(),disabled:E,"aria-label":oo?g:xe,title:oo?g:xe,ownerState:vo,...dd,className:fe(Fr.popupIndicator,dd==null?void 0:dd.className),children:ve}):null]})}},inputProps:{className:Fr.input,disabled:E,readOnly:Oe,...nt()}})}),un?k.jsx(A1e,{as:$t,...hn,children:k.jsxs(M1e,{as:He,...Ye,children:[se&&Ut.length===0?k.jsx(R1e,{className:Fr.loading,ownerState:vo,children:ce}):null,Ut.length===0&&!A&&!se?k.jsx(D1e,{className:Fr.noOptions,ownerState:vo,role:"presentation",onMouseDown:Hn=>{Hn.preventDefault()},children:Se}):null,Ut.length>0?k.jsx(ll,{as:J,...cl,children:Ut.map((Hn,Hi)=>V?Vi({key:Hn.key,group:Hn.group,children:Hn.options.map((hs,Jc)=>Xf(hs,Hn.index+Jc))}):Xf(Hn,Hi))}):null]})}):null]})}),N1e=Ot(k.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));function L1e(e){return qe("MuiAvatar",e)}const F1e=Ke("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),j1e=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Me({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},L1e,t)},B1e=ae("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(dt(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),z1e=ae("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),V1e=ae(N1e,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function H1e({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=x.useState(!1);return x.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&i("loaded")},s.onerror=()=>{a&&i("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const Gl=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:s="div",slots:l={},slotProps:c={},imgProps:u,sizes:f,src:h,srcSet:m,variant:g="circular",...y}=r;let v=null;const w={...r,component:s,variant:g},C=H1e({...u,...typeof c.img=="function"?c.img(w):c.img,src:h,srcSet:m}),E=h||m,I=E&&C!=="error";w.colorDefault=!I,delete w.ownerState;const O=j1e(w),[P,R]=St("img",{className:O.img,elementType:z1e,externalForwardedProps:{slots:l,slotProps:{img:{...u,...c.img}}},additionalProps:{alt:o,src:h,srcSet:m,sizes:f},ownerState:w});return I?v=k.jsx(P,{...R}):i||i===0?v=i:E&&o?v=o[0]:v=k.jsx(V1e,{ownerState:w,className:O.fallback}),k.jsx(B1e,{as:s,className:fe(O.root,a),ref:n,...y,ownerState:w,children:v})});function U1e(e){return qe("MuiAvatarGroup",e)}const G1e=Ke("MuiAvatarGroup",["root","avatar"]),TR={small:-16,medium:-8},q1e=e=>{const{classes:t}=e;return Me({root:["root"],avatar:["avatar"]},U1e,t)},W1e=ae("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>[{[`& .${G1e.avatar}`]:t.avatar},t.root]})(dt(({theme:e})=>({display:"flex",flexDirection:"row-reverse",[`& .${F1e.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:"var(--AvatarGroup-spacing, -8px)","&:last-child":{marginLeft:0}}}))),K1e=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiAvatarGroup"}),{children:o,className:i,component:a="div",componentsProps:s,max:l=5,renderSurplus:c,slotProps:u={},slots:f={},spacing:h="medium",total:m,variant:g="circular",...y}=r;let v=l<2?2:l;const w={...r,max:l,spacing:h,component:a,variant:g},C=q1e(w),E=x.Children.toArray(o).filter(N=>x.isValidElement(N)),I=m||E.length;I===v&&(v+=1),v=Math.min(I+1,v);const O=Math.min(E.length,v-1),P=Math.max(I-v,I-O,0),R=c?c(P):`+${P}`;let D;w.spacing&&TR[w.spacing]!==void 0?D=TR[w.spacing]:w.spacing===0?D=0:D=-w.spacing||TR.medium;const M={slots:f,slotProps:{surplus:u.additionalAvatar??(s==null?void 0:s.additionalAvatar),...s,...u}},[A,_]=St("surplus",{elementType:Gl,externalForwardedProps:M,className:C.avatar,ownerState:w,additionalProps:{variant:g}});return k.jsxs(W1e,{as:a,ownerState:w,className:fe(C.root,i),ref:n,...y,style:{"--AvatarGroup-spacing":`${D}px`,...y.style},children:[P?k.jsx(A,{..._,children:R}):null,E.slice(0,O).reverse().map(N=>x.cloneElement(N,{className:fe(N.props.className,C.avatar),variant:N.props.variant||g}))]})}),Y1e={entering:{opacity:1},entered:{opacity:1}},hh=x.forwardRef(function(t,n){const r=Lr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:h,onExit:m,onExited:g,onExiting:y,style:v,timeout:w=o,TransitionComponent:C=as,...E}=t,I=x.useRef(null),O=en(I,_f(s),n),P=H=>j=>{if(H){const L=I.current;j===void 0?H(L):H(L,j)}},R=P(h),D=P((H,j)=>{Kj(H);const L=Ef({style:v,timeout:w,easing:l},{mode:"enter"});H.style.webkitTransition=r.transitions.create("opacity",L),H.style.transition=r.transitions.create("opacity",L),u&&u(H,j)}),M=P(f),A=P(y),_=P(H=>{const j=Ef({style:v,timeout:w,easing:l},{mode:"exit"});H.style.webkitTransition=r.transitions.create("opacity",j),H.style.transition=r.transitions.create("opacity",j),m&&m(H)}),N=P(g),B=H=>{i&&i(I.current,H)};return k.jsx(C,{appear:a,in:c,nodeRef:I,onEnter:D,onEntered:M,onEntering:R,onExit:_,onExited:N,onExiting:A,addEndListener:B,timeout:w,...E,children:(H,{ownerState:j,...L})=>x.cloneElement(s,{style:{opacity:0,visibility:H==="exited"&&!c?"hidden":void 0,...Y1e[H],...v,...s.props.style},ref:O,...L})})});function Q1e(e){return qe("MuiBackdrop",e)}Ke("MuiBackdrop",["root","invisible"]);const X1e=e=>{const{classes:t,invisible:n}=e;return Me({root:["root",n&&"invisible"]},Q1e,t)},Z1e=ae("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"}}]}),une=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:a="div",invisible:s=!1,open:l,components:c={},componentsProps:u={},slotProps:f={},slots:h={},TransitionComponent:m,transitionDuration:g,...y}=r,v={...r,component:a,invisible:s},w=X1e(v),C={transition:m,root:c.Root,...h},E={...u,...f},I={slots:C,slotProps:E},[O,P]=St("root",{elementType:Z1e,externalForwardedProps:I,className:fe(w.root,i),ownerState:v}),[R,D]=St("transition",{elementType:hh,externalForwardedProps:I,ownerState:v});return k.jsx(R,{in:l,timeout:g,...y,...D,children:k.jsx(O,{"aria-hidden":!0,...P,classes:w,ref:n,children:o})})});function J1e(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=$j({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:s,max:l=r}=a?i:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:a,max:l,displayValue:c}}function eEe(e){return qe("MuiBadge",e)}const $d=Ke("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),OR=10,IR=4,tEe=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e,s={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Te(n.vertical)}${Te(n.horizontal)}`,`anchorOrigin${Te(n.vertical)}${Te(n.horizontal)}${Te(o)}`,`overlap${Te(o)}`,t!=="default"&&`color${Te(t)}`]};return Me(s,eEe,a)},nEe=ae("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),rEe=ae("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Te(n.anchorOrigin.vertical)}${Te(n.anchorOrigin.horizontal)}${Te(n.overlap)}`],n.color!=="default"&&t[`color${Te(n.color)}`],n.invisible&&t.invisible]}})(dt(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:OR*2,lineHeight:1,padding:"0 6px",height:OR*2,borderRadius:OR,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Jn(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:IR,height:IR*2,minWidth:IR*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${$d.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${$d.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${$d.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${$d.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${$d.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${$d.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${$d.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${$d.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function QG(e){return{vertical:(e==null?void 0:e.vertical)??"top",horizontal:(e==null?void 0:e.horizontal)??"right"}}const oEe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiBadge"}),{anchorOrigin:o,className:i,classes:a,component:s,components:l={},componentsProps:c={},children:u,overlap:f="rectangular",color:h="default",invisible:m=!1,max:g=99,badgeContent:y,slots:v,slotProps:w,showZero:C=!1,variant:E="standard",...I}=r,{badgeContent:O,invisible:P,max:R,displayValue:D}=J1e({max:g,invisible:m,badgeContent:y,showZero:C}),M=$j({anchorOrigin:QG(o),color:h,overlap:f,variant:E,badgeContent:y}),A=P||O==null&&E!=="dot",{color:_=h,overlap:N=f,anchorOrigin:B,variant:H=E}=A?M:r,j=QG(B),L=H!=="dot"?D:void 0,V={...r,badgeContent:O,invisible:A,max:R,displayValue:L,showZero:C,anchorOrigin:j,color:_,overlap:N,variant:H},W=tEe(V),K=(v==null?void 0:v.root)??l.Root??nEe,G=(v==null?void 0:v.badge)??l.Badge??rEe,q=(w==null?void 0:w.root)??c.root,Y=(w==null?void 0:w.badge)??c.badge,J=Dn({elementType:K,externalSlotProps:q,externalForwardedProps:I,additionalProps:{ref:n,as:s},ownerState:V,className:fe(q==null?void 0:q.className,W.root,i)}),ie=Dn({elementType:G,externalSlotProps:Y,ownerState:V,className:fe(W.badge,Y==null?void 0:Y.className)});return k.jsxs(K,{...J,children:[u,k.jsx(G,{...ie,children:L})]})}),iEe=Ke("MuiBox",["root"]),aEe=ZS(),Jt=Abe({themeId:qs,defaultTheme:aEe,defaultClassName:iEe.root,generateClassName:ute.generate});function sEe(e){return qe("MuiButton",e)}const hp=Ke("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),dne=x.createContext({}),fne=x.createContext(void 0),lEe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:a,loadingPosition:s,classes:l}=e,c={root:["root",a&&"loading",i,`${i}${Te(t)}`,`size${Te(o)}`,`${i}Size${Te(o)}`,`color${Te(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${Te(s)}`],startIcon:["icon","startIcon",`iconSize${Te(o)}`],endIcon:["icon","endIcon",`iconSize${Te(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=Me(c,sEe,l);return{...l,...u}},pne=[{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}}}],cEe=ae(la,{shouldForwardProp:e=>ui(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Te(n.color)}`],t[`size${Te(n.size)}`],t[`${n.variant}Size${Te(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(dt(({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"},[`&.${hp.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]},[`&.${hp.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${hp.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)",[`&.${hp.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(Jn()).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)`:Nt(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})`:Nt(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})`:Nt(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})`:Nt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(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"},[`&.${hp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${hp.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${hp.loading}`]:{color:"transparent"}}}]}})),uEe=ae("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Te(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...pne]})),dEe=ae("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Te(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...pne]})),fEe=ae("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),XG=ae("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),ct=x.forwardRef(function(t,n){const r=x.useContext(dne),o=x.useContext(fne),i=ch(r,t),a=pt({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:m=!1,endIcon:g,focusVisibleClassName:y,fullWidth:v=!1,id:w,loading:C=null,loadingIndicator:E,loadingPosition:I="center",size:O="medium",startIcon:P,type:R,variant:D="text",...M}=a,A=bn(w),_=E??k.jsx(tw,{"aria-labelledby":A,color:"inherit",size:16}),N={...a,color:l,component:c,disabled:f,disableElevation:h,disableFocusRipple:m,fullWidth:v,loading:C,loadingIndicator:_,loadingPosition:I,size:O,type:R,variant:D},B=lEe(N),H=(P||C&&I==="start")&&k.jsx(uEe,{className:B.startIcon,ownerState:N,children:P||k.jsx(XG,{className:B.loadingIconPlaceholder,ownerState:N})}),j=(g||C&&I==="end")&&k.jsx(dEe,{className:B.endIcon,ownerState:N,children:g||k.jsx(XG,{className:B.loadingIconPlaceholder,ownerState:N})}),L=o||"",V=typeof C=="boolean"?k.jsx("span",{className:B.loadingWrapper,style:{display:"contents"},children:C&&k.jsx(fEe,{className:B.loadingIndicator,ownerState:N,children:_})}):null;return k.jsxs(cEe,{ownerState:N,className:fe(r.className,B.root,u,L),component:c,disabled:f||C,focusRipple:!m,focusVisibleClassName:fe(B.focusVisible,y),ref:n,type:R,id:C?A:w,...M,classes:B,children:[H,I!=="end"&&V,s,I==="end"&&V,j]})});function pEe(e){return qe("MuiButtonGroup",e)}const Tn=Ke("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","horizontal","vertical","colorPrimary","colorSecondary","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),hEe=(e,t)=>{const{ownerState:n}=e;return[{[`& .${Tn.grouped}`]:t.grouped},{[`& .${Tn.grouped}`]:t[`grouped${Te(n.orientation)}`]},{[`& .${Tn.grouped}`]:t[`grouped${Te(n.variant)}`]},{[`& .${Tn.grouped}`]:t[`grouped${Te(n.variant)}${Te(n.orientation)}`]},{[`& .${Tn.grouped}`]:t[`grouped${Te(n.variant)}${Te(n.color)}`]},{[`& .${Tn.firstButton}`]:t.firstButton},{[`& .${Tn.lastButton}`]:t.lastButton},{[`& .${Tn.middleButton}`]:t.middleButton},t.root,t[n.variant],n.disableElevation===!0&&t.disableElevation,n.fullWidth&&t.fullWidth,n.orientation==="vertical"&&t.vertical]},mEe=e=>{const{classes:t,color:n,disabled:r,disableElevation:o,fullWidth:i,orientation:a,variant:s}=e,l={root:["root",s,a,i&&"fullWidth",o&&"disableElevation",`color${Te(n)}`],grouped:["grouped",`grouped${Te(a)}`,`grouped${Te(s)}`,`grouped${Te(s)}${Te(a)}`,`grouped${Te(s)}${Te(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Me(l,pEe,t)},gEe=ae("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:hEe})(dt(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(e.vars||e).shadows[2]}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${Tn.lastButton},& .${Tn.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${Tn.firstButton},& .${Tn.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${Tn.firstButton},& .${Tn.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Tn.lastButton},& .${Tn.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${Tn.firstButton},& .${Tn.middleButton}`]:{borderRight:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Tn.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${Tn.firstButton},& .${Tn.middleButton}`]:{borderBottom:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Tn.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(Jn()).flatMap(([t])=>[{props:{variant:"text",color:t},style:{[`& .${Tn.firstButton},& .${Tn.middleButton}`]:{borderColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:Nt(e.palette[t].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${Tn.firstButton},& .${Tn.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${Tn.lastButton},& .${Tn.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${Tn.firstButton},& .${Tn.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${Tn.lastButton},& .${Tn.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${Tn.firstButton},& .${Tn.middleButton}`]:{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Tn.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${Tn.firstButton},& .${Tn.middleButton}`]:{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Tn.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(Jn(["dark"])).map(([t])=>({props:{variant:"contained",color:t},style:{[`& .${Tn.firstButton},& .${Tn.middleButton}`]:{borderColor:(e.vars||e).palette[t].dark}}}))],[`& .${Tn.grouped}`]:{minWidth:40,boxShadow:"none",props:{variant:"contained"},style:{"&:hover":{boxShadow:"none"}}}}))),iB=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiButtonGroup"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,disableElevation:c=!1,disableFocusRipple:u=!1,disableRipple:f=!1,fullWidth:h=!1,orientation:m="horizontal",size:g="medium",variant:y="outlined",...v}=r,w={...r,color:a,component:s,disabled:l,disableElevation:c,disableFocusRipple:u,disableRipple:f,fullWidth:h,orientation:m,size:g,variant:y},C=mEe(w),E=x.useMemo(()=>({className:C.grouped,color:a,disabled:l,disableElevation:c,disableFocusRipple:u,disableRipple:f,fullWidth:h,size:g,variant:y}),[a,l,c,u,f,h,g,y,C.grouped]),I=xte(o),O=I.length,P=R=>{const D=R===0,M=R===O-1;return D&&M?"":D?C.firstButton:M?C.lastButton:C.middleButton};return k.jsx(gEe,{as:s,role:"group",className:fe(C.root,i),ref:n,ownerState:w,...v,children:k.jsx(dne.Provider,{value:E,children:I.map((R,D)=>k.jsx(fne.Provider,{value:P(D),children:R},D))})})});function yEe(e){return qe("MuiCard",e)}Ke("MuiCard",["root"]);const vEe=e=>{const{classes:t}=e;return Me({root:["root"]},yEe,t)},bEe=ae(go,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),ho=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiCard"}),{className:o,raised:i=!1,...a}=r,s={...r,raised:i},l=vEe(s);return k.jsx(bEe,{className:fe(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s,...a})});function xEe(e){return qe("MuiCardActionArea",e)}const PR=Ke("MuiCardActionArea",["root","focusVisible","focusHighlight"]),SEe=e=>{const{classes:t}=e;return Me({root:["root"],focusHighlight:["focusHighlight"]},xEe,t)},wEe=ae(la,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(dt(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${PR.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${PR.focusVisible} .${PR.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}}))),CEe=ae("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(dt(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}))),EEe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiCardActionArea"}),{children:o,className:i,focusVisibleClassName:a,...s}=r,l=r,c=SEe(l);return k.jsxs(wEe,{className:fe(c.root,i),focusVisibleClassName:fe(a,c.focusVisible),ref:n,ownerState:l,...s,children:[o,k.jsx(CEe,{className:c.focusHighlight,ownerState:l})]})});function TEe(e){return qe("MuiCardActions",e)}Ke("MuiCardActions",["root","spacing"]);const OEe=e=>{const{classes:t,disableSpacing:n}=e;return Me({root:["root",!n&&"spacing"]},TEe,t)},IEe=ae("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),al=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:i,...a}=r,s={...r,disableSpacing:o},l=OEe(s);return k.jsx(IEe,{className:fe(l.root,i),ownerState:s,ref:n,...a})});function PEe(e){return qe("MuiCardContent",e)}Ke("MuiCardContent",["root"]);const AEe=e=>{const{classes:t}=e;return Me({root:["root"]},PEe,t)},MEe=ae("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),Fi=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiCardContent"}),{className:o,component:i="div",...a}=r,s={...r,component:i},l=AEe(s);return k.jsx(MEe,{as:i,className:fe(l.root,o),ownerState:s,ref:n,...a})});function REe(e){return qe("MuiCardHeader",e)}const XE=Ke("MuiCardHeader",["root","avatar","action","content","title","subheader"]),DEe=e=>{const{classes:t}=e;return Me({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},REe,t)},kEe=ae("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>[{[`& .${XE.title}`]:t.title},{[`& .${XE.subheader}`]:t.subheader},t.root]})({display:"flex",alignItems:"center",padding:16}),_Ee=ae("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),$Ee=ae("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),NEe=ae("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto",[`.${KE.root}:where(& .${XE.title})`]:{display:"block"},[`.${KE.root}:where(& .${XE.subheader})`]:{display:"block"}}),Yl=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiCardHeader"}),{action:o,avatar:i,component:a="div",disableTypography:s=!1,subheader:l,subheaderTypographyProps:c,title:u,titleTypographyProps:f,slots:h={},slotProps:m={},...g}=r,y={...r,component:a,disableTypography:s},v=DEe(y),w={slots:h,slotProps:{title:f,subheader:c,...m}};let C=u;const[E,I]=St("title",{className:v.title,elementType:at,externalForwardedProps:w,ownerState:y,additionalProps:{variant:i?"body2":"h5",component:"span"}});C!=null&&C.type!==at&&!s&&(C=k.jsx(E,{...I,children:C}));let O=l;const[P,R]=St("subheader",{className:v.subheader,elementType:at,externalForwardedProps:w,ownerState:y,additionalProps:{variant:i?"body2":"body1",color:"textSecondary",component:"span"}});O!=null&&O.type!==at&&!s&&(O=k.jsx(P,{...R,children:O}));const[D,M]=St("root",{ref:n,className:v.root,elementType:kEe,externalForwardedProps:{...w,...g,component:a},ownerState:y}),[A,_]=St("avatar",{className:v.avatar,elementType:_Ee,externalForwardedProps:w,ownerState:y}),[N,B]=St("content",{className:v.content,elementType:NEe,externalForwardedProps:w,ownerState:y}),[H,j]=St("action",{className:v.action,elementType:$Ee,externalForwardedProps:w,ownerState:y});return k.jsxs(D,{...M,children:[i&&k.jsx(A,{..._,children:i}),k.jsxs(N,{...B,children:[C,O]}),o&&k.jsx(H,{...j,children:o})]})});function LEe(e){return qe("MuiCardMedia",e)}Ke("MuiCardMedia",["root","media","img"]);const FEe=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return Me({root:["root",n&&"media",r&&"img"]},LEe,t)},jEe=ae("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:o}=n;return[t.root,r&&t.media,o&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),BEe=["video","audio","picture","iframe","img"],zEe=["picture","img"],_c=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiCardMedia"}),{children:o,className:i,component:a="div",image:s,src:l,style:c,...u}=r,f=BEe.includes(a),h=!f&&s?{backgroundImage:`url("${s}")`,...c}:c,m={...r,component:a,isMediaComponent:f,isImageComponent:zEe.includes(a)},g=FEe(m);return k.jsx(jEe,{className:fe(g.root,i),as:a,role:!f&&s?"img":void 0,ref:n,style:h,ownerState:m,src:f?s||l:void 0,...u,children:o})});function VEe(e){return qe("PrivateSwitchBase",e)}Ke("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const HEe=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${Te(o)}`],input:["input"]};return Me(i,VEe,t)},UEe=ae(la)({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}}]}),GEe=ae("input",{shouldForwardProp:ui})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),hne=x.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:f,inputProps:h,inputRef:m,name:g,onBlur:y,onChange:v,onFocus:w,readOnly:C,required:E=!1,tabIndex:I,type:O,value:P,slots:R={},slotProps:D={},...M}=t,[A,_]=ia({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),N=il(),B=se=>{w&&w(se),N&&N.onFocus&&N.onFocus(se)},H=se=>{y&&y(se),N&&N.onBlur&&N.onBlur(se)},j=se=>{if(se.nativeEvent.defaultPrevented)return;const ce=se.target.checked;_(ce),v&&v(se,ce)};let L=s;N&&typeof L>"u"&&(L=N.disabled);const V=O==="checkbox"||O==="radio",W={...t,checked:A,disabled:L,disableFocusRipple:l,edge:c},K=HEe(W),G={slots:R,slotProps:{input:h,...D}},[q,Y]=St("root",{ref:n,elementType:UEe,className:K.root,shouldForwardComponentProp:!0,externalForwardedProps:{...G,component:"span",...M},getSlotProps:se=>({...se,onFocus:ce=>{var ye;(ye=se.onFocus)==null||ye.call(se,ce),B(ce)},onBlur:ce=>{var ye;(ye=se.onBlur)==null||ye.call(se,ce),H(ce)}}),ownerState:W,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:L,role:void 0,tabIndex:null}}),[J,ie]=St("input",{ref:m,elementType:GEe,className:K.input,externalForwardedProps:G,getSlotProps:se=>({...se,onChange:ce=>{var ye;(ye=se.onChange)==null||ye.call(se,ce),j(ce)}}),ownerState:W,additionalProps:{autoFocus:r,checked:o,defaultChecked:a,disabled:L,id:V?f:void 0,name:g,readOnly:C,required:E,tabIndex:I,type:O,...O==="checkbox"&&P===void 0?{}:{value:P}}});return k.jsxs(q,{...Y,children:[k.jsx(J,{...ie}),A?i:u]})}),qEe=Ot(k.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"})),WEe=Ot(k.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"})),KEe=Ot(k.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function YEe(e){return qe("MuiCheckbox",e)}const AR=Ke("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),QEe=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${Te(r)}`,`size${Te(o)}`]},a=Me(i,YEe,t);return{...t,...a}},XEe=ae(hne,{shouldForwardProp:e=>ui(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Te(n.size)}`],n.color!=="default"&&t[`color${Te(n.color)}`]]}})(dt(({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})`:Nt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Jn()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Jn()).map(([t])=>({props:{color:t},style:{[`&.${AR.checked}, &.${AR.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${AR.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),ZEe=k.jsx(WEe,{}),JEe=k.jsx(qEe,{}),eTe=k.jsx(KEe,{}),tTe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiCheckbox"}),{checkedIcon:o=ZEe,color:i="primary",icon:a=JEe,indeterminate:s=!1,indeterminateIcon:l=eTe,inputProps:c,size:u="medium",disableRipple:f=!1,className:h,slots:m={},slotProps:g={},...y}=r,v=s?l:a,w=s?l:o,C={...r,disableRipple:f,color:i,indeterminate:s,size:u},E=QEe(C),I=g.input??c,[O,P]=St("root",{ref:n,elementType:XEe,className:fe(E.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:m,slotProps:g,...y},ownerState:C,additionalProps:{type:"checkbox",icon:x.cloneElement(v,{fontSize:v.props.fontSize??u}),checkedIcon:x.cloneElement(w,{fontSize:w.props.fontSize??u}),disableRipple:f,slots:m,slotProps:{input:Uj(typeof I=="function"?I(C):I,{"data-indeterminate":s})}}});return k.jsx(O,{...P,classes:E})});function ZG(e){return e.substring(2).toLowerCase()}function nTe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=en(_f(t),s),f=Ze(g=>{const y=c.current;c.current=!1;const v=Mr(s.current);if(!l.current||!s.current||"clientX"in g&&nTe(g,v))return;if(a.current){a.current=!1;return}let w;g.composedPath?w=g.composedPath().includes(s.current):w=!v.documentElement.contains(g.target)||s.current.contains(g.target),!w&&(n||!y)&&o(g)}),h=g=>y=>{c.current=!0;const v=t.props[g];v&&v(y)},m={ref:u};return i!==!1&&(m[i]=h(i)),x.useEffect(()=>{if(i!==!1){const g=ZG(i),y=Mr(s.current),v=()=>{a.current=!0};return y.addEventListener(g,f),y.addEventListener("touchmove",v),()=>{y.removeEventListener(g,f),y.removeEventListener("touchmove",v)}}},[f,i]),r!==!1&&(m[r]=h(r)),x.useEffect(()=>{if(r!==!1){const g=ZG(r),y=Mr(s.current);return y.addEventListener(g,f),()=>{y.removeEventListener(g,f)}}},[f,r]),x.cloneElement(t,m)}const Uu=w0e({createStyledComponent:ae("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Te(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>pt({props:e,name:"MuiContainer"})});function rTe(e){const t=Mr(e);return t.body===e?ns(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function W0(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function JG(e){return parseInt(ns(e).getComputedStyle(e).paddingRight,10)||0}function oTe(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 e6(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=!i.includes(a),l=!oTe(a);s&&l&&W0(a,o)})}function MR(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function iTe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(rTe(r)){const a=bte(ns(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${JG(r)+a}px`;const s=Mr(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${JG(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Mr(r).body;else{const a=r.parentElement,s=ns(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function aTe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class sTe{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&&W0(t.modalRef,!1);const o=aTe(n);e6(n,t.mount,t.modalRef,o,!0);const i=MR(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=MR(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=iTe(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=MR(this.containers,a=>a.modals.includes(t)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&W0(t.modalRef,n),e6(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&W0(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const lTe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function cTe(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 uTe(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 dTe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||uTe(e))}function fTe(e){const t=[],n=[];return Array.from(e.querySelectorAll(lTe)).forEach((r,o)=>{const i=cTe(r);i===-1||!dTe(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function pTe(){return!0}function aB(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=fTe,isEnabled:a=pTe,open:s}=e,l=x.useRef(!1),c=x.useRef(null),u=x.useRef(null),f=x.useRef(null),h=x.useRef(null),m=x.useRef(!1),g=x.useRef(null),y=en(_f(t),g),v=x.useRef(null);x.useEffect(()=>{!s||!g.current||(m.current=!n)},[n,s]),x.useEffect(()=>{if(!s||!g.current)return;const E=Mr(g.current);return g.current.contains(E.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),m.current&&g.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),x.useEffect(()=>{if(!s||!g.current)return;const E=Mr(g.current),I=R=>{v.current=R,!(r||!a()||R.key!=="Tab")&&E.activeElement===g.current&&R.shiftKey&&(l.current=!0,u.current&&u.current.focus())},O=()=>{var M,A;const R=g.current;if(R===null)return;if(!E.hasFocus()||!a()||l.current){l.current=!1;return}if(R.contains(E.activeElement)||r&&E.activeElement!==c.current&&E.activeElement!==u.current)return;if(E.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!m.current)return;let D=[];if((E.activeElement===c.current||E.activeElement===u.current)&&(D=i(g.current)),D.length>0){const _=!!((M=v.current)!=null&&M.shiftKey&&((A=v.current)==null?void 0:A.key)==="Tab"),N=D[0],B=D[D.length-1];typeof N!="string"&&typeof B!="string"&&(_?B.focus():N.focus())}else R.focus()};E.addEventListener("focusin",O),E.addEventListener("keydown",I,!0);const P=setInterval(()=>{E.activeElement&&E.activeElement.tagName==="BODY"&&O()},50);return()=>{clearInterval(P),E.removeEventListener("focusin",O),E.removeEventListener("keydown",I,!0)}},[n,r,o,a,s,i]);const w=E=>{f.current===null&&(f.current=E.relatedTarget),m.current=!0,h.current=E.target;const I=t.props.onFocus;I&&I(E)},C=E=>{f.current===null&&(f.current=E.relatedTarget),m.current=!0};return k.jsxs(x.Fragment,{children:[k.jsx("div",{tabIndex:s?0:-1,onFocus:C,ref:c,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:y,onFocus:w}),k.jsx("div",{tabIndex:s?0:-1,onFocus:C,ref:u,"data-testid":"sentinelEnd"})]})}function hTe(e){return typeof e=="function"?e():e}function mTe(e){return e?e.props.hasOwnProperty("in"):!1}const t6=()=>{},x1=new sTe;function gTe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:s,onClose:l,open:c,rootRef:u}=e,f=x.useRef({}),h=x.useRef(null),m=x.useRef(null),g=en(m,u),[y,v]=x.useState(!c),w=mTe(s);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const E=()=>Mr(h.current),I=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),O=()=>{x1.mount(I(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},P=Ze(()=>{const j=hTe(t)||E().body;x1.add(I(),j),m.current&&O()}),R=()=>x1.isTopModal(I()),D=Ze(j=>{h.current=j,j&&(c&&R()?O():m.current&&W0(m.current,C))}),M=x.useCallback(()=>{x1.remove(I(),C)},[C]);x.useEffect(()=>()=>{M()},[M]),x.useEffect(()=>{c?P():(!w||!o)&&M()},[c,M,w,o,P]);const A=j=>L=>{var V;(V=j.onKeyDown)==null||V.call(j,L),!(L.key!=="Escape"||L.which===229||!R())&&(n||(L.stopPropagation(),l&&l(L,"escapeKeyDown")))},_=j=>L=>{var V;(V=j.onClick)==null||V.call(j,L),L.target===L.currentTarget&&l&&l(L,"backdropClick")};return{getRootProps:(j={})=>{const L=zE(e);delete L.onTransitionEnter,delete L.onTransitionExited;const V={...L,...j};return{role:"presentation",...V,onKeyDown:A(V),ref:g}},getBackdropProps:(j={})=>{const L=j;return{"aria-hidden":!0,...L,onClick:_(L),open:c}},getTransitionProps:()=>{const j=()=>{v(!1),i&&i()},L=()=>{v(!0),a&&a(),o&&M()};return{onEnter:X3(j,(s==null?void 0:s.props.onEnter)??t6),onExited:X3(L,(s==null?void 0:s.props.onExited)??t6)}},rootRef:g,portalRef:D,isTopModal:R,exited:y,hasTransition:w}}function yTe(e){return qe("MuiModal",e)}Ke("MuiModal",["root","hidden","backdrop"]);const vTe=e=>{const{open:t,exited:n,classes:r}=e;return Me({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},yTe,r)},bTe=ae("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(dt(({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"}}]}))),xTe=ae(une,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),av=x.forwardRef(function(t,n){const r=pt({name:"MuiModal",props:t}),{BackdropComponent:o=xTe,BackdropProps:i,classes:a,className:s,closeAfterTransition:l=!1,children:c,container:u,component:f,components:h={},componentsProps:m={},disableAutoFocus:g=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:v=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:I=!1,keepMounted:O=!1,onClose:P,onTransitionEnter:R,onTransitionExited:D,open:M,slotProps:A={},slots:_={},theme:N,...B}=r,H={...r,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:y,disableEscapeKeyDown:v,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:I,keepMounted:O},{getRootProps:j,getBackdropProps:L,getTransitionProps:V,portalRef:W,isTopModal:K,exited:G,hasTransition:q}=gTe({...H,rootRef:n}),Y={...H,exited:G},J=vTe(Y),ie={};if(c.props.tabIndex===void 0&&(ie.tabIndex="-1"),q){const{onEnter:le,onExited:de}=V();ie.onEnter=le,ie.onExited=de}const se={slots:{root:h.Root,backdrop:h.Backdrop,..._},slotProps:{...m,...A}},[ce,ye]=St("root",{ref:n,elementType:bTe,externalForwardedProps:{...se,...B,component:f},getSlotProps:j,ownerState:Y,className:fe(s,J==null?void 0:J.root,!Y.open&&Y.exited&&(J==null?void 0:J.hidden))}),[Se,ne]=St("backdrop",{ref:i==null?void 0:i.ref,elementType:o,externalForwardedProps:se,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:le=>L({...le,onClick:de=>{le!=null&&le.onClick&&le.onClick(de)}}),className:fe(i==null?void 0:i.className,J==null?void 0:J.backdrop),ownerState:Y});return!O&&!M&&(!q||G)?null:k.jsx(lne,{ref:W,container:u,disablePortal:w,children:k.jsxs(ce,{...ye,children:[!I&&o?k.jsx(Se,{...ne}):null,k.jsx(aB,{disableEnforceFocus:y,disableAutoFocus:g,disableRestoreFocus:C,isEnabled:K,open:M,children:x.cloneElement(c,ie)})]})})});function STe(e){return qe("MuiDialog",e)}const K0=Ke("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),gne=x.createContext({}),wTe=ae(une,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),CTe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${Te(n)}`],paper:["paper",`paperScroll${Te(n)}`,`paperWidth${Te(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Me(a,STe,t)},ETe=ae(av,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),TTe=ae("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Te(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"}}}]}),OTe=ae(go,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Te(n.scroll)}`],t[`paperWidth${Te(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(dt(({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)`,[`&.${K0.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}`,[`&.${K0.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,[`&.${K0.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Tx=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiDialog"}),o=Lr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:f,className:h,disableEscapeKeyDown:m=!1,fullScreen:g=!1,fullWidth:y=!1,maxWidth:v="sm",onClick:w,onClose:C,open:E,PaperComponent:I=go,PaperProps:O={},scroll:P="paper",slots:R={},slotProps:D={},TransitionComponent:M=hh,transitionDuration:A=i,TransitionProps:_,...N}=r,B={...r,disableEscapeKeyDown:m,fullScreen:g,fullWidth:y,maxWidth:v,scroll:P},H=CTe(B),j=x.useRef(),L=ue=>{j.current=ue.target===ue.currentTarget},V=ue=>{w&&w(ue),j.current&&(j.current=null,C&&C(ue,"backdropClick"))},W=bn(s),K=x.useMemo(()=>({titleId:W}),[W]),G={transition:M,...R},q={transition:_,paper:O,backdrop:u,...D},Y={slots:G,slotProps:q},[J,ie]=St("root",{elementType:ETe,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:B,className:fe(H.root,h),ref:n}),[se,ce]=St("backdrop",{elementType:wTe,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:B}),[ye,Se]=St("paper",{elementType:OTe,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:B,className:fe(H.paper,O.className)}),[ne,le]=St("container",{elementType:TTe,externalForwardedProps:Y,ownerState:B,className:fe(H.container)}),[de,oe]=St("transition",{elementType:hh,externalForwardedProps:Y,ownerState:B,additionalProps:{appear:!0,in:E,timeout:A,role:"presentation"}});return k.jsx(J,{closeAfterTransition:!0,slots:{backdrop:se},slotProps:{backdrop:{transitionDuration:A,as:c,...ce}},disableEscapeKeyDown:m,onClose:C,open:E,onClick:V,...ie,...N,children:k.jsx(de,{...oe,children:k.jsx(ne,{onMouseDown:L,...le,children:k.jsx(ye,{as:I,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":W,"aria-modal":l,...Se,children:k.jsx(gne.Provider,{value:K,children:f})})})})})});function ITe(e){return qe("MuiDialogActions",e)}Ke("MuiDialogActions",["root","spacing"]);const PTe=e=>{const{classes:t,disableSpacing:n}=e;return Me({root:["root",!n&&"spacing"]},ITe,t)},ATe=ae("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}}}]}),Ox=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...a}=r,s={...r,disableSpacing:i},l=PTe(s);return k.jsx(ATe,{className:fe(l.root,o),ownerState:s,ref:n,...a})});function MTe(e){return qe("MuiDialogContent",e)}Ke("MuiDialogContent",["root","dividers"]);function RTe(e){return qe("MuiDialogTitle",e)}const DTe=Ke("MuiDialogTitle",["root"]),kTe=e=>{const{classes:t,dividers:n}=e;return Me({root:["root",n&&"dividers"]},MTe,t)},_Te=ae("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(dt(({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:{[`.${DTe.root} + &`]:{paddingTop:0}}}]}))),Ix=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...a}=r,s={...r,dividers:i},l=kTe(s);return k.jsx(_Te,{className:fe(l.root,o),ownerState:s,ref:n,...a})});function $Te(e){return qe("MuiDialogContentText",e)}Ke("MuiDialogContentText",["root"]);const NTe=e=>{const{classes:t}=e,r=Me({root:["root"]},$Te,t);return{...t,...r}},LTe=ae(at,{shouldForwardProp:e=>ui(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),n6=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiDialogContentText"}),{children:o,className:i,...a}=r,s=NTe(a);return k.jsx(LTe,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:a,className:fe(s.root,i),...r,classes:s})}),FTe=e=>{const{classes:t}=e;return Me({root:["root"]},RTe,t)},jTe=ae(at,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),ZE=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiDialogTitle"}),{className:o,id:i,...a}=r,s=r,l=FTe(s),{titleId:c=i}=x.useContext(gne);return k.jsx(jTe,{component:"h2",className:fe(l.root,o),ownerState:s,ref:n,variant:"h6",id:i??c,...a})});function BTe(e){return qe("MuiDivider",e)}const r6=Ke("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),zTe=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Me({root:["root",t&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},BTe,r)},VTe=ae("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]}})(dt(({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)`:Nt(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%"}}}]}))),HTe=ae("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(dt(({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)`}}]}))),ji=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,orientation:s="horizontal",component:l=i||s==="vertical"?"div":"hr",flexItem:c=!1,light:u=!1,role:f=l!=="hr"?"separator":void 0,textAlign:h="center",variant:m="fullWidth",...g}=r,y={...r,absolute:o,component:l,flexItem:c,light:u,orientation:s,role:f,textAlign:h,variant:m},v=zTe(y);return k.jsx(VTe,{as:l,className:fe(v.root,a),role:f,ref:n,ownerState:y,"aria-orientation":f==="separator"&&(l!=="hr"||s==="vertical")?s:void 0,...g,children:i?k.jsx(HTe,{className:v.wrapper,ownerState:y,children:i}):null})});ji&&(ji.muiSkipListHighlight=!0);function UTe(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=ns(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const c=i.getComputedStyle(t);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const c=a.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function GTe(e){return typeof e=="function"?e():e}function S1(e,t,n){const r=GTe(n),o=UTe(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const qTe=x.forwardRef(function(t,n){const r=Lr(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:u="down",easing:f=o,in:h,onEnter:m,onEntered:g,onEntering:y,onExit:v,onExited:w,onExiting:C,style:E,timeout:I=i,TransitionComponent:O=as,...P}=t,R=x.useRef(null),D=en(_f(l),R,n),M=W=>K=>{W&&(K===void 0?W(R.current):W(R.current,K))},A=M((W,K)=>{S1(u,W,c),Kj(W),m&&m(W,K)}),_=M((W,K)=>{const G=Ef({timeout:I,style:E,easing:f},{mode:"enter"});W.style.webkitTransition=r.transitions.create("-webkit-transform",{...G}),W.style.transition=r.transitions.create("transform",{...G}),W.style.webkitTransform="none",W.style.transform="none",y&&y(W,K)}),N=M(g),B=M(C),H=M(W=>{const K=Ef({timeout:I,style:E,easing:f},{mode:"exit"});W.style.webkitTransition=r.transitions.create("-webkit-transform",K),W.style.transition=r.transitions.create("transform",K),S1(u,W,c),v&&v(W)}),j=M(W=>{W.style.webkitTransition="",W.style.transition="",w&&w(W)}),L=W=>{a&&a(R.current,W)},V=x.useCallback(()=>{R.current&&S1(u,R.current,c)},[u,c]);return x.useEffect(()=>{if(h||u==="down"||u==="right")return;const W=_h(()=>{R.current&&S1(u,R.current,c)}),K=ns(R.current);return K.addEventListener("resize",W),()=>{W.clear(),K.removeEventListener("resize",W)}},[u,h,c]),x.useEffect(()=>{h||V()},[h,V]),k.jsx(O,{nodeRef:R,onEnter:A,onEntered:N,onEntering:_,onExit:H,onExited:j,onExiting:B,addEndListener:L,appear:s,in:h,timeout:I,...P,children:(W,{ownerState:K,...G})=>x.cloneElement(l,{ref:D,style:{visibility:W==="exited"&&!h?"hidden":void 0,...E,...l.props.style},...G})})});function WTe(e){return qe("MuiDrawer",e)}Ke("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const yne=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},KTe=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root",`anchor${Te(n)}`],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Te(n)}`,r!=="temporary"&&`paperAnchorDocked${Te(n)}`]};return Me(o,WTe,t)},YTe=ae(av,{name:"MuiDrawer",slot:"Root",overridesResolver:yne})(dt(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),QTe=ae("div",{shouldForwardProp:ui,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:yne})({flex:"0 0 auto"}),XTe=ae(go,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Te(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Te(n.anchor)}`]]}})(dt(({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}`}}]}))),vne={left:"right",right:"left",top:"down",bottom:"up"};function ZTe(e){return["left","right"].includes(e)}function JTe({direction:e},t){return e==="rtl"&&ZTe(t)?vne[t]:t}const eOe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiDrawer"}),o=Lr(),i=yr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:u,elevation:f=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:m,...g}={},onClose:y,open:v=!1,PaperProps:w={},SlideProps:C,TransitionComponent:E,transitionDuration:I=a,variant:O="temporary",slots:P={},slotProps:R={},...D}=r,M=x.useRef(!1);x.useEffect(()=>{M.current=!0},[]);const A=JTe({direction:i?"rtl":"ltr"},s),N={...r,anchor:s,elevation:f,open:v,variant:O,...D},B=KTe(N),H={slots:{transition:E,...P},slotProps:{paper:w,transition:C,...R,backdrop:Uj(R.backdrop||{...l,...m},{transitionDuration:I})}},[j,L]=St("root",{ref:n,elementType:YTe,className:fe(B.root,B.modal,u),shouldForwardComponentProp:!0,ownerState:N,externalForwardedProps:{...H,...D,...g},additionalProps:{open:v,onClose:y,hideBackdrop:h,slots:{backdrop:H.slots.backdrop},slotProps:{backdrop:H.slotProps.backdrop}}}),[V,W]=St("paper",{elementType:XTe,shouldForwardComponentProp:!0,className:fe(B.paper,w.className),ownerState:N,externalForwardedProps:H,additionalProps:{elevation:O==="temporary"?f:0,square:!0}}),[K,G]=St("docked",{elementType:QTe,ref:n,className:fe(B.root,B.docked,u),ownerState:N,externalForwardedProps:H,additionalProps:D}),[q,Y]=St("transition",{elementType:qTe,ownerState:N,externalForwardedProps:H,additionalProps:{in:v,direction:vne[A],timeout:I,appear:M.current}}),J=k.jsx(V,{...W,children:c});if(O==="permanent")return k.jsx(K,{...G,children:J});const ie=k.jsx(q,{...Y,children:J});return O==="persistent"?k.jsx(K,{...G,children:ie}):k.jsx(j,{...L,children:ie})});function tOe(e){return qe("MuiFab",e)}const o6=Ke("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),nOe=e=>{const{color:t,variant:n,classes:r,size:o}=e,i={root:["root",n,`size${Te(o)}`,t==="inherit"?"colorInherit":t]},a=Me(i,tOe,r);return{...r,...a}},rOe=ae(la,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>ui(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Te(n.size)}`],n.color==="inherit"&&t.colorInherit,t[Te(n.size)],t[n.color]]}})(dt(({theme:e})=>{var t,n;return{...e.typography.button,minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.grey[900]:(n=(t=e.palette).getContrastText)==null?void 0:n.call(t,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${o6.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]}}),dt(({theme:e})=>({variants:[...Object.entries(e.palette).filter(Jn(["dark","contrastText"])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),dt(({theme:e})=>({[`&.${o6.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),Nh=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiFab"}),{children:o,className:i,color:a="default",component:s="button",disabled:l=!1,disableFocusRipple:c=!1,focusVisibleClassName:u,size:f="large",variant:h="circular",...m}=r,g={...r,color:a,component:s,disabled:l,disableFocusRipple:c,size:f,variant:h},y=nOe(g);return k.jsx(rOe,{className:fe(y.root,i),component:s,disabled:l,focusRipple:!c,focusVisibleClassName:fe(y.focusVisible,u),ownerState:g,ref:n,...m,classes:y,children:o})}),oOe=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:a,multiline:s}=e,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${Te(i)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},c=Me(l,w1e,t);return{...t,...c}},iOe=ae(sI,{shouldForwardProp:e=>ui(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...iI(e,t),!n.disableUnderline&&t.underline]}})(dt(({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)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Ua.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ua.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.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"},[`&.${Ua.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ua.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(.${Ua.disabled}, .${Ua.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ua.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Jn()).map(([a])=>{var s;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[a])==null?void 0:s.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:s})=>a.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),aOe=ae(lI,{name:"MuiFilledInput",slot:"Input",overridesResolver:aI})(dt(({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}}]}))),sB=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:f,slots:h={},type:m="text",...g}=r,y={...r,disableUnderline:o,fullWidth:s,inputComponent:c,multiline:u,type:m},v=oOe(r),w={root:{ownerState:y},input:{ownerState:y}},C=f??a?si(w,f??a):w,E=h.root??i.Root??iOe,I=h.input??i.Input??aOe;return k.jsx(ow,{slots:{root:E,input:I},slotProps:C,fullWidth:s,inputComponent:c,multiline:u,ref:n,type:m,...g,classes:v})});sB.muiName="Input";function sOe(e){return qe("MuiFormControl",e)}Ke("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const lOe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Te(n)}`,r&&"fullWidth"]};return Me(o,sOe,t)},cOe=ae("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Te(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Lh=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:h=!1,margin:m="none",required:g=!1,size:y="medium",variant:v="outlined",...w}=r,C={...r,color:a,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:h,margin:m,required:g,size:y,variant:v},E=lOe(C),[I,O]=x.useState(()=>{let j=!1;return o&&x.Children.forEach(o,L=>{if(!Mg(L,["Input","Select"]))return;const V=Mg(L,["Select"])?L.props.input:L;V&&y1e(V.props)&&(j=!0)}),j}),[P,R]=x.useState(()=>{let j=!1;return o&&x.Children.forEach(o,L=>{Mg(L,["Input","Select"])&&(QE(L.props,!0)||QE(L.props.inputProps,!0))&&(j=!0)}),j}),[D,M]=x.useState(!1);l&&D&&M(!1);const A=u!==void 0&&!l?u:D;let _;x.useRef(!1);const N=x.useCallback(()=>{R(!0)},[]),B=x.useCallback(()=>{R(!1)},[]),H=x.useMemo(()=>({adornedStart:I,setAdornedStart:O,color:a,disabled:l,error:c,filled:P,focused:A,fullWidth:f,hiddenLabel:h,size:y,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:B,onFilled:N,registerEffect:_,required:g,variant:v}),[I,a,l,c,P,A,f,h,_,B,N,g,y,v]);return k.jsx(oI.Provider,{value:H,children:k.jsx(cOe,{as:s,ownerState:C,className:fe(E.root,i),ref:n,...w,children:o})})});function uOe(e){return qe("MuiFormControlLabel",e)}const pg=Ke("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),dOe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${Te(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Me(a,uOe,t)},fOe=ae("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${pg.label}`]:t.label},t.root,t[`labelPlacement${Te(n.labelPlacement)}`]]}})(dt(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${pg.disabled}`]:{cursor:"default"},[`& .${pg.label}`]:{[`&.${pg.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}}]}))),pOe=ae("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(dt(({theme:e})=>({[`&.${pg.error}`]:{color:(e.vars||e).palette.error.main}}))),os=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiFormControlLabel"}),{checked:o,className:i,componentsProps:a={},control:s,disabled:l,disableTypography:c,inputRef:u,label:f,labelPlacement:h="end",name:m,onChange:g,required:y,slots:v={},slotProps:w={},value:C,...E}=r,I=il(),O=l??s.props.disabled??(I==null?void 0:I.disabled),P=y??s.props.required,R={disabled:O,required:P};["checked","name","onChange","value","inputRef"].forEach(j=>{typeof s.props[j]>"u"&&typeof r[j]<"u"&&(R[j]=r[j])});const D=Nf({props:r,muiFormControl:I,states:["error"]}),M={...r,disabled:O,labelPlacement:h,required:P,error:D.error},A=dOe(M),_={slots:v,slotProps:{...a,...w}},[N,B]=St("typography",{elementType:at,externalForwardedProps:_,ownerState:M});let H=f;return H!=null&&H.type!==at&&!c&&(H=k.jsx(N,{component:"span",...B,className:fe(A.label,B==null?void 0:B.className),children:H})),k.jsxs(fOe,{className:fe(A.root,i),ownerState:M,ref:n,...E,children:[x.cloneElement(s,R),P?k.jsxs("div",{children:[H,k.jsxs(pOe,{ownerState:M,"aria-hidden":!0,className:A.asterisk,children:[" ","*"]})]}):H]})});function hOe(e){return qe("MuiFormGroup",e)}Ke("MuiFormGroup",["root","row","error"]);const mOe=e=>{const{classes:t,row:n,error:r}=e;return Me({root:["root",n&&"row",r&&"error"]},hOe,t)},gOe=ae("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"}}]}),Px=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1,...a}=r,s=il(),l=Nf({props:r,muiFormControl:s,states:["error"]}),c={...r,row:i,error:l.error},u=mOe(c);return k.jsx(gOe,{className:fe(u.root,o),ownerState:c,ref:n,...a})});function yOe(e){return qe("MuiFormHelperText",e)}const i6=Ke("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var a6;const vOe=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${Te(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Me(c,yOe,t)},bOe=ae("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Te(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(dt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${i6.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${i6.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}}]}))),iw=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p",disabled:s,error:l,filled:c,focused:u,margin:f,required:h,variant:m,...g}=r,y=il(),v=Nf({props:r,muiFormControl:y,states:["variant","size","disabled","error","filled","focused","required"]}),w={...r,component:a,contained:v.variant==="filled"||v.variant==="outlined",variant:v.variant,size:v.size,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required};delete w.ownerState;const C=vOe(w);return k.jsx(bOe,{as:a,className:fe(C.root,i),ref:n,...g,ownerState:w,children:o===" "?a6||(a6=k.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function xOe(e){return qe("MuiFormLabel",e)}const Y0=Ke("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),SOe=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${Te(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return Me(l,xOe,t)},wOe=ae("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(dt(({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(Jn()).map(([t])=>({props:{color:t},style:{[`&.${Y0.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Y0.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Y0.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),COe=ae("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(dt(({theme:e})=>({[`&.${Y0.error}`]:{color:(e.vars||e).palette.error.main}}))),EOe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiFormLabel"}),{children:o,className:i,color:a,component:s="label",disabled:l,error:c,filled:u,focused:f,required:h,...m}=r,g=il(),y=Nf({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),v={...r,color:y.color||"primary",component:s,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required},w=SOe(v);return k.jsxs(wOe,{as:s,ownerState:v,className:fe(w.root,i),ref:n,...m,children:[o,y.required&&k.jsxs(COe,{ownerState:v,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]})}),me=F0e({createStyledComponent:ae("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>pt({props:e,name:"MuiGrid"}),useTheme:Lr});function wN(e){return`scale(${e}, ${e**2})`}const TOe={entering:{opacity:1,transform:wN(1)},entered:{opacity:1,transform:"none"}},RR=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),mh=x.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:h,onExiting:m,style:g,timeout:y="auto",TransitionComponent:v=as,...w}=t,C=ko(),E=x.useRef(),I=Lr(),O=x.useRef(null),P=en(O,_f(i),n),R=j=>L=>{if(j){const V=O.current;L===void 0?j(V):j(V,L)}},D=R(u),M=R((j,L)=>{Kj(j);const{duration:V,delay:W,easing:K}=Ef({style:g,timeout:y,easing:a},{mode:"enter"});let G;y==="auto"?(G=I.transitions.getAutoHeightDuration(j.clientHeight),E.current=G):G=V,j.style.transition=[I.transitions.create("opacity",{duration:G,delay:W}),I.transitions.create("transform",{duration:RR?G:G*.666,delay:W,easing:K})].join(","),l&&l(j,L)}),A=R(c),_=R(m),N=R(j=>{const{duration:L,delay:V,easing:W}=Ef({style:g,timeout:y,easing:a},{mode:"exit"});let K;y==="auto"?(K=I.transitions.getAutoHeightDuration(j.clientHeight),E.current=K):K=L,j.style.transition=[I.transitions.create("opacity",{duration:K,delay:V}),I.transitions.create("transform",{duration:RR?K:K*.666,delay:RR?V:V||K*.333,easing:W})].join(","),j.style.opacity=0,j.style.transform=wN(.75),f&&f(j)}),B=R(h),H=j=>{y==="auto"&&C.start(E.current||0,j),r&&r(O.current,j)};return k.jsx(v,{appear:o,in:s,nodeRef:O,onEnter:M,onEntered:A,onEntering:D,onExit:N,onExited:B,onExiting:_,addEndListener:H,timeout:y==="auto"?null:y,...w,children:(j,{ownerState:L,...V})=>x.cloneElement(i,{style:{opacity:0,transform:wN(.75),visibility:j==="exited"&&!s?"hidden":void 0,...TOe[j],...g,...i.props.style},ref:P,...V})})});mh&&(mh.muiSupportAuto=!0);function OOe(e){return qe("MuiImageList",e)}Ke("MuiImageList",["root","masonry","quilted","standard","woven"]);const bne=x.createContext({}),IOe=e=>{const{classes:t,variant:n}=e;return Me({root:["root",n]},OOe,t)},POe=ae("ul",{name:"MuiImageList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({display:"grid",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch",variants:[{props:{variant:"masonry"},style:{display:"block"}}]}),xne=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiImageList"}),{children:o,className:i,cols:a=2,component:s="ul",rowHeight:l="auto",gap:c=4,style:u,variant:f="standard",...h}=r,m=x.useMemo(()=>({rowHeight:l,gap:c,variant:f}),[l,c,f]),g=f==="masonry"?{columnCount:a,columnGap:c,...u}:{gridTemplateColumns:`repeat(${a}, 1fr)`,gap:c,...u},y={...r,component:s,gap:c,rowHeight:l,variant:f},v=IOe(y);return k.jsx(POe,{as:s,className:fe(v.root,v[f],i),ref:n,style:g,ownerState:y,...h,children:k.jsx(bne.Provider,{value:m,children:o})})});function AOe(e){return qe("MuiImageListItem",e)}const DR=Ke("MuiImageListItem",["root","img","standard","woven","masonry","quilted"]),MOe=e=>{const{classes:t,variant:n}=e;return Me({root:["root",n],img:["img"]},AOe,t)},ROe=ae("li",{name:"MuiImageListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${DR.img}`]:t.img},t.root,t[n.variant]]}})({display:"block",position:"relative",[`& .${DR.img}`]:{objectFit:"cover",width:"100%",height:"100%",display:"block"},variants:[{props:{variant:"standard"},style:{display:"flex",flexDirection:"column"}},{props:{variant:"woven"},style:{height:"100%",alignSelf:"center","&:nth-of-type(even)":{height:"70%"}}},{props:{variant:"standard"},style:{[`& .${DR.img}`]:{height:"auto",flexGrow:1}}}]}),Sne=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiImageListItem"}),{children:o,className:i,cols:a=1,component:s="li",rows:l=1,style:c,...u}=r,{rowHeight:f="auto",gap:h,variant:m}=x.useContext(bne);let g="auto";m==="woven"?g=void 0:f!=="auto"&&(g=f*l+h*(l-1));const y={...r,cols:a,component:s,gap:h,rowHeight:f,rows:l,variant:m},v=MOe(y);return k.jsx(ROe,{as:s,className:fe(v.root,v[m],i),ref:n,style:{height:g,gridColumnEnd:m!=="masonry"?`span ${a}`:void 0,gridRowEnd:m!=="masonry"?`span ${l}`:void 0,marginBottom:m==="masonry"?h:void 0,breakInside:m==="masonry"?"avoid":void 0,...c},ownerState:y,...u,children:x.Children.map(o,w=>x.isValidElement(w)?w.type==="img"||Mg(w,["Image"])?x.cloneElement(w,{className:fe(v.img,w.props.className)}):w:null)})});function DOe(e){return qe("MuiImageListItemBar",e)}Ke("MuiImageListItemBar",["root","positionBottom","positionTop","positionBelow","actionPositionLeft","actionPositionRight","titleWrap","titleWrapBottom","titleWrapTop","titleWrapBelow","titleWrapActionPosLeft","titleWrapActionPosRight","title","subtitle","actionIcon","actionIconActionPosLeft","actionIconActionPosRight"]);const kOe=e=>{const{classes:t,position:n,actionIcon:r,actionPosition:o}=e,i={root:["root",`position${Te(n)}`,`actionPosition${Te(o)}`],titleWrap:["titleWrap",`titleWrap${Te(n)}`,r&&`titleWrapActionPos${Te(o)}`],title:["title"],subtitle:["subtitle"],actionIcon:["actionIcon",`actionIconActionPos${Te(o)}`]};return Me(i,DOe,t)},_Oe=ae("div",{name:"MuiImageListItemBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Te(n.position)}`]]}})(dt(({theme:e})=>({position:"absolute",left:0,right:0,background:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",fontFamily:e.typography.fontFamily,variants:[{props:{position:"bottom"},style:{bottom:0}},{props:{position:"top"},style:{top:0}},{props:{position:"below"},style:{position:"relative",background:"transparent",alignItems:"normal"}}]}))),$Oe=ae("div",{name:"MuiImageListItemBar",slot:"TitleWrap",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.titleWrap,t[`titleWrap${Te(n.position)}`],n.actionIcon&&t[`titleWrapActionPos${Te(n.actionPosition)}`]]}})(dt(({theme:e})=>({flexGrow:1,padding:"12px 16px",color:(e.vars||e).palette.common.white,overflow:"hidden",variants:[{props:{position:"below"},style:{padding:"6px 0 12px",color:"inherit"}},{props:({ownerState:t})=>t.actionIcon&&t.actionPosition==="left",style:{paddingLeft:0}},{props:({ownerState:t})=>t.actionIcon&&t.actionPosition==="right",style:{paddingRight:0}}]}))),NOe=ae("div",{name:"MuiImageListItemBar",slot:"Title",overridesResolver:(e,t)=>t.title})(dt(({theme:e})=>({fontSize:e.typography.pxToRem(16),lineHeight:"24px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),LOe=ae("div",{name:"MuiImageListItemBar",slot:"Subtitle",overridesResolver:(e,t)=>t.subtitle})(dt(({theme:e})=>({fontSize:e.typography.pxToRem(12),lineHeight:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),FOe=ae("div",{name:"MuiImageListItemBar",slot:"ActionIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.actionIcon,t[`actionIconActionPos${Te(n.actionPosition)}`]]}})({variants:[{props:{actionPosition:"left"},style:{order:-1}}]}),jOe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiImageListItemBar"}),{actionIcon:o,actionPosition:i="right",className:a,subtitle:s,title:l,position:c="bottom",...u}=r,f={...r,position:c,actionPosition:i},h=kOe(f);return k.jsxs(_Oe,{ownerState:f,className:fe(h.root,a),ref:n,...u,children:[k.jsxs($Oe,{ownerState:f,className:h.titleWrap,children:[k.jsx(NOe,{className:h.title,children:l}),s?k.jsx(LOe,{className:h.subtitle,children:s}):null]}),o?k.jsx(FOe,{ownerState:f,className:h.actionIcon,children:o}):null]})}),BOe=e=>{const{classes:t,disableUnderline:n}=e,o=Me({root:["root",!n&&"underline"],input:["input"]},x1e,t);return{...t,...o}},zOe=ae(sI,{shouldForwardProp:e=>ui(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...iI(e,t),!n.disableUnderline&&t.underline]}})(dt(({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"},[`&.${Kd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Kd.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(.${Kd.disabled}, .${Kd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Kd.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Jn()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),VOe=ae(lI,{name:"MuiInput",slot:"Input",overridesResolver:aI})({}),lB=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:f={},type:h="text",...m}=r,g=BOe(r),v={root:{ownerState:{disableUnderline:o}}},w=u??a?si(u??a,v):v,C=f.root??i.Root??zOe,E=f.input??i.Input??VOe;return k.jsx(ow,{slots:{root:C,input:E},slotProps:w,fullWidth:s,inputComponent:l,multiline:c,ref:n,type:h,...m,classes:g})});lB.muiName="Input";function HOe(e){return qe("MuiInputAdornment",e)}const CN=Ke("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var s6;const UOe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Te(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},GOe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${Te(o)}`,a,r&&"hiddenLabel",i&&`size${Te(i)}`]};return Me(s,HOe,t)},qOe=ae("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:UOe})(dt(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${CN.positionStart}&:not(.${CN.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),So=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u,...f}=r,h=il()||{};let m=u;u&&h.variant,h&&!m&&(m=h.variant);const g={...r,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:s,position:c,variant:m},y=GOe(g);return k.jsx(oI.Provider,{value:null,children:k.jsx(qOe,{as:a,ownerState:g,className:fe(y.root,i),ref:n,...f,children:typeof o=="string"&&!l?k.jsx(at,{color:"textSecondary",children:o}):k.jsxs(x.Fragment,{children:[c==="start"?s6||(s6=k.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});function WOe(e){return qe("MuiInputLabel",e)}Ke("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const KOe=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="medium"&&`size${Te(r)}`,a],asterisk:[s&&"asterisk"]},c=Me(l,WOe,t);return{...t,...c}},YOe=ae(EOe,{shouldForwardProp:e=>ui(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Y0.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]]}})(dt(({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)"}}]}))),Fh=x.forwardRef(function(t,n){const r=pt({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:i,shrink:a,variant:s,className:l,...c}=r,u=il();let f=a;typeof f>"u"&&u&&(f=u.filled||u.focused||u.adornedStart);const h=Nf({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),m={...r,disableAnimation:o,formControl:u,shrink:f,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=KOe(m);return k.jsx(YOe,{"data-shrink":f,ref:n,className:fe(g.root,l),...c,ownerState:m,classes:g})});function QOe(e){return qe("MuiLinearProgress",e)}Ke("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const EN=4,TN=rl` +`,cwe=typeof yN!="string"?kf` + animation: ${yN} 1.4s linear infinite; + `:null,uwe=typeof vN!="string"?kf` + animation: ${vN} 1.4s ease-in-out infinite; + `:null,dwe=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${Oe(r)}`],svg:["svg"],circle:["circle",`circle${Oe(n)}`,o&&"circleDisableShrink"]};return Me(i,lwe,t)},fwe=ae("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Oe(n.color)}`]]}})(dt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:cwe||{animation:`${yN} 1.4s linear infinite`}},...Object.entries(e.palette).filter(er()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),pwe=ae("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),hwe=ae("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Oe(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(dt(({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:uwe||{animation:`${vN} 1.4s ease-in-out infinite`}}]}))),nw=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:f="indeterminate",...h}=r,m={...r,color:i,disableShrink:a,size:s,thickness:c,value:u,variant:f},g=dwe(m),y={},v={},w={};if(f==="determinate"){const C=2*Math.PI*((_d-c)/2);y.strokeDasharray=C.toFixed(3),w["aria-valuenow"]=Math.round(u),y.strokeDashoffset=`${((100-u)/100*C).toFixed(3)}px`,v.transform="rotate(-90deg)"}return k.jsx(fwe,{className:fe(g.root,o),style:{width:s,height:s,...v,...l},ownerState:m,ref:n,role:"progressbar",...w,...h,children:k.jsx(pwe,{className:g.svg,ownerState:m,viewBox:`${_d/2} ${_d/2} ${_d} ${_d}`,children:k.jsx(hwe,{className:g.circle,style:y,ownerState:m,cx:_d,cy:_d,r:(_d-c)/2,fill:"none",strokeWidth:c})})})});function mwe(e){return qe("MuiIconButton",e)}const bN=Ke("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),gwe=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i,loading:a}=e,s={root:["root",a&&"loading",n&&"disabled",r!=="default"&&`color${Oe(r)}`,o&&`edge${Oe(o)}`,`size${Oe(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Me(s,mwe,t)},ywe=ae(la,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${Oe(n.color)}`],n.edge&&t[`edge${Oe(n.edge)}`],t[`size${Oe(n.size)}`]]}})(dt(({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})`:Nt(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}}]})),dt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(er()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(er()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt((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)}}],[`&.${bN.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${bN.loading}`]:{color:"transparent"}}))),vwe=ae("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),pn=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:f,loading:h=null,loadingIndicator:m,...g}=r,y=bn(f),v=m??k.jsx(nw,{"aria-labelledby":y,color:"inherit",size:16}),w={...r,edge:o,color:s,disabled:l,disableFocusRipple:c,loading:h,loadingIndicator:v,size:u},C=gwe(w);return k.jsxs(ywe,{id:h?y:f,className:fe(C.root,a),centerRipple:!0,focusRipple:!c,disabled:l||h,ref:n,...g,ownerState:w,children:[typeof h=="boolean"&&k.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:k.jsx(vwe,{className:C.loadingIndicator,ownerState:w,children:h&&v})}),i]})}),bwe=Ot(k.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"})),xwe=Ot(k.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),Swe=Ot(k.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"})),wwe=Ot(k.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"})),Zte=Ot(k.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"})),Cwe=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${Oe(n||r)}`,`${t}${Oe(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Me(i,swe,o)},Ewe=ae(go,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Oe(n.color||n.severity)}`]]}})(dt(({theme:e})=>{const t=e.palette.mode==="light"?zu:Vu,n=e.palette.mode==="light"?Vu:zu;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(er(["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),[`& .${AG.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(er(["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}`,[`& .${AG.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(er(["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)}}}))]}})),Twe=ae("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Owe=ae("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Iwe=ae("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),MG={success:k.jsx(bwe,{fontSize:"inherit"}),warning:k.jsx(xwe,{fontSize:"inherit"}),error:k.jsx(Swe,{fontSize:"inherit"}),info:k.jsx(wwe,{fontSize:"inherit"})},Ci=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiAlert"}),{action:o,children:i,className:a,closeText:s="Close",color:l,components:c={},componentsProps:u={},icon:f,iconMapping:h=MG,onClose:m,role:g="alert",severity:y="success",slotProps:v={},slots:w={},variant:C="standard",...E}=r,I={...r,color:l,severity:y,variant:C,colorSeverity:l||y},O=Cwe(I),P={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...w},slotProps:{...u,...v}},[R,D]=wt("root",{ref:n,shouldForwardComponentProp:!0,className:fe(O.root,a),elementType:Ewe,externalForwardedProps:{...P,...E},ownerState:I,additionalProps:{role:g,elevation:0}}),[M,A]=wt("icon",{className:O.icon,elementType:Twe,externalForwardedProps:P,ownerState:I}),[_,N]=wt("message",{className:O.message,elementType:Owe,externalForwardedProps:P,ownerState:I}),[B,H]=wt("action",{className:O.action,elementType:Iwe,externalForwardedProps:P,ownerState:I}),[j,L]=wt("closeButton",{elementType:pn,externalForwardedProps:P,ownerState:I}),[V,W]=wt("closeIcon",{elementType:Zte,externalForwardedProps:P,ownerState:I});return k.jsxs(R,{...D,children:[f!==!1?k.jsx(M,{...A,children:f||h[y]||MG[y]}):null,k.jsx(_,{...N,children:i}),o!=null?k.jsx(B,{...H,children:o}):null,o==null&&m?k.jsx(B,{...H,children:k.jsx(j,{size:"small","aria-label":s,title:s,color:"inherit",onClick:m,...L,children:k.jsx(V,{fontSize:"small",...W})})}):null]})});function Pwe(e){return qe("MuiTypography",e)}const YE=Ke("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Awe={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Mwe=cSe(),Rwe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${Oe(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Me(s,Pwe,a)},Dwe=ae("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${Oe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(dt(({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(er()).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${Oe(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}}]}})),RG={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},at=x.forwardRef(function(t,n){const{color:r,...o}=pt({props:t,name:"MuiTypography"}),i=!Awe[r],a=Mwe({...o,...i&&{color:r}}),{align:s="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:f=!1,paragraph:h=!1,variant:m="body1",variantMapping:g=RG,...y}=a,v={...a,align:s,color:r,className:l,component:c,gutterBottom:u,noWrap:f,paragraph:h,variant:m,variantMapping:g},w=c||(h?"p":g[m]||RG[m])||"span",C=Rwe(v);return k.jsx(Dwe,{as:w,ref:n,className:fe(C.root,l),...y,ownerState:v,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...y.style}})});function kwe(e){return qe("MuiAlertTitle",e)}Ke("MuiAlertTitle",["root"]);const _we=e=>{const{classes:t}=e;return Me({root:["root"]},kwe,t)},$we=ae(at,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(dt(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),fh=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiAlertTitle"}),{className:o,...i}=r,a=r,s=_we(a);return k.jsx($we,{gutterBottom:!0,component:"div",ownerState:a,ref:n,className:fe(s.root,o),...i})});function Nwe(e){return qe("MuiAppBar",e)}Ke("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Lwe=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Oe(t)}`,`position${Oe(n)}`]};return Me(o,Nwe,r)},DG=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Fwe=ae(go,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Oe(n.position)}`],t[`color${Oe(n.color)}`]]}})(dt(({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(er(["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?DG(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?DG(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"})}}]}))),jwe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed",...l}=r,c={...r,color:i,position:s,enableColorOnDark:a},u=Lwe(c);return k.jsx(Fwe,{square:!0,component:"header",ownerState:c,elevation:4,className:fe(u.root,o,s==="fixed"&&"mui-fixed"),ref:n,...l})});function kG(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Bwe(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let u=a?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=kG(u));const f=u?s.filter(h=>{let m=(i||c)(h);return n&&(m=m.toLowerCase()),t&&(m=kG(m)),o==="start"?m.startsWith(u):m.includes(u)}):s;return typeof r=="number"?f.slice(0,r):f}}const zwe=Bwe(),Vwe=5,Hwe=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},Uwe=[];function _G(e,t,n,r){if(t||e==null||r)return"";const o=n(e);return typeof o=="string"?o:""}function Gwe(e){const{unstable_isActiveElementInListbox:t=Hwe,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?Uwe:null,disableClearable:f=!1,disableCloseOnSelect:h=!1,disabled:m,disabledItemsFocusable:g=!1,disableListWrap:y=!1,filterOptions:v=zwe,filterSelectedOptions:w=!1,freeSolo:C=!1,getOptionDisabled:E,getOptionKey:I,getOptionLabel:O=He=>He.label??He,groupBy:P,handleHomeEndKeys:R=!e.freeSolo,id:D,includeInputInList:M=!1,inputValue:A,isOptionEqualToValue:_=(He,Ye)=>He===Ye,multiple:N=!1,onChange:B,onClose:H,onHighlightChange:j,onInputChange:L,onOpen:V,open:W,openOnFocus:K=!1,options:G,readOnly:q=!1,renderValue:Y,selectOnFocus:Z=!e.freeSolo,value:ie}=e,se=bn(D);let ce=O;ce=He=>{const Ye=O(He);return typeof Ye!="string"?String(Ye):Ye};const ye=x.useRef(!1),Se=x.useRef(!0),ne=x.useRef(null),le=x.useRef(null),[de,oe]=x.useState(null),[ue,pe]=x.useState(-1),Ee=o?0:-1,xe=x.useRef(Ee),Re=x.useRef(_G(u??ie,N,ce)).current,[he,Pe]=ia({controlled:ie,default:u,name:c}),[ve,Ie]=ia({controlled:A,default:Re,name:c,state:"inputValue"}),[te,Te]=x.useState(!1),De=x.useCallback((He,Ye,$t)=>{if(!(N?he.length!(w&&(N?he:[he]).some(Ye=>Ye!==null&&_(He,Ye)))),{inputValue:Be&&rt?"":ve,getOptionLabel:ce}):[],It=Lj({filteredOptions:Le,value:he,inputValue:ve});x.useEffect(()=>{const He=he!==It.value;te&&!He||C&&!He||De(null,he,"reset")},[he,De,te,It.value,C]);const Lt=Ve&&Le.length>0&&!q,nt=Je(He=>{if(He===-1)ne.current.focus();else{const Ye=Y?"data-item-index":"data-tag-index";de.querySelector(`[${Ye}="${He}"]`).focus()}});x.useEffect(()=>{N&&ue>he.length-1&&(pe(-1),nt(-1))},[he,N,ue,nt]);function lt(He,Ye){if(!le.current||He<0||He>=Le.length)return-1;let $t=He;for(;;){const hn=le.current.querySelector(`[data-option-index="${$t}"]`),Gt=g?!1:!hn||hn.disabled||hn.getAttribute("aria-disabled")==="true";if(hn&&hn.hasAttribute("tabindex")&&!Gt)return $t;if(Ye==="next"?$t=($t+1)%Le.length:$t=($t-1+Le.length)%Le.length,$t===He)return-1}}const vt=Je(({event:He,index:Ye,reason:$t})=>{if(xe.current=Ye,Ye===-1?ne.current.removeAttribute("aria-activedescendant"):ne.current.setAttribute("aria-activedescendant",`${se}-option-${Ye}`),j&&["mouse","keyboard","touch"].includes($t)&&j(He,Ye===-1?null:Le[Ye],$t),!le.current)return;const hn=le.current.querySelector(`[role="option"].${n}-focused`);hn&&(hn.classList.remove(`${n}-focused`),hn.classList.remove(`${n}-focusVisible`));let Gt=le.current;if(le.current.getAttribute("role")!=="listbox"&&(Gt=le.current.parentElement.querySelector('[role="listbox"]')),!Gt)return;if(Ye===-1){Gt.scrollTop=0;return}const Xr=le.current.querySelector(`[data-option-index="${Ye}"]`);if(Xr&&(Xr.classList.add(`${n}-focused`),$t==="keyboard"&&Xr.classList.add(`${n}-focusVisible`),Gt.scrollHeight>Gt.clientHeight&&$t!=="mouse"&&$t!=="touch")){const Jr=Xr,Vi=Gt.clientHeight+Gt.scrollTop,Jv=Jr.offsetTop+Jr.offsetHeight;Jv>Vi?Gt.scrollTop=Jv-Gt.clientHeight:Jr.offsetTop-Jr.offsetHeight*(P?1.3:0){if(!et)return;const Xr=lt((()=>{const Jr=Le.length-1;if(Ye==="reset")return Ee;if(Ye==="start")return 0;if(Ye==="end")return Jr;const Vi=xe.current+Ye;return Vi<0?Vi===-1&&M?-1:y&&xe.current!==-1||Math.abs(Ye)>1?0:Jr:Vi>Jr?Vi===Jr+1&&M?-1:y||Math.abs(Ye)>1?Jr:0:Vi})(),$t);if(vt({index:Xr,reason:hn,event:He}),r&&Ye!=="reset")if(Xr===-1)ne.current.value=ve;else{const Jr=ce(Le[Xr]);ne.current.value=Jr,Jr.toLowerCase().indexOf(ve.toLowerCase())===0&&ve.length>0&&ne.current.setSelectionRange(ve.length,Jr.length)}}),vn=()=>{const He=(Ye,$t)=>{const hn=Ye?ce(Ye):"",Gt=$t?ce($t):"";return hn===Gt};if(xe.current!==-1&&It.filteredOptions&&It.filteredOptions.length!==Le.length&&It.inputValue===ve&&(N?he.length===It.value.length&&It.value.every((Ye,$t)=>ce(he[$t])===ce(Ye)):He(It.value,he))){const Ye=It.filteredOptions[xe.current];if(Ye)return Le.findIndex($t=>ce($t)===ce(Ye))}return-1},kn=x.useCallback(()=>{if(!et)return;const He=vn();if(He!==-1){xe.current=He;return}const Ye=N?he[0]:he;if(Le.length===0||Ye==null){bt({diff:"reset"});return}if(le.current){if(Ye!=null){const $t=Le[xe.current];if(N&&$t&&he.findIndex(Gt=>_($t,Gt))!==-1)return;const hn=Le.findIndex(Gt=>_(Gt,Ye));hn===-1?bt({diff:"reset"}):vt({index:hn});return}if(xe.current>=Le.length-1){vt({index:Le.length-1});return}vt({index:xe.current})}},[Le.length,N?!1:he,w,bt,vt,et,ve,N]),Rr=Je(He=>{X$(le,He),He&&kn()});x.useEffect(()=>{kn()},[kn]);const nr=He=>{Ve||(We(!0),ut(!0),V&&V(He))},Bn=(He,Ye)=>{Ve&&(We(!1),H&&H(He,Ye))},yo=(He,Ye,$t,hn)=>{if(N){if(he.length===Ye.length&&he.every((Gt,Xr)=>Gt===Ye[Xr]))return}else if(he===Ye)return;B&&B(He,Ye,$t,hn),Pe(Ye)},To=x.useRef(!1),oo=(He,Ye,$t="selectOption",hn="options")=>{let Gt=$t,Xr=Ye;if(N){Xr=Array.isArray(he)?he.slice():[];const Jr=Xr.findIndex(Vi=>_(Ye,Vi));Jr===-1?Xr.push(Ye):hn!=="freeSolo"&&(Xr.splice(Jr,1),Gt="removeOption")}De(He,Xr,Gt),yo(He,Xr,Gt,{option:Ye}),!h&&(!He||!He.ctrlKey&&!He.metaKey)&&Bn(He,Gt),(a===!0||a==="touch"&&To.current||a==="mouse"&&!To.current)&&ne.current.blur()};function Oi(He,Ye){if(He===-1)return-1;let $t=He;for(;;){if(Ye==="next"&&$t===he.length||Ye==="previous"&&$t===-1)return-1;const hn=Y?"data-item-index":"data-tag-index",Gt=de.querySelector(`[${hn}="${$t}"]`);if(!Gt||!Gt.hasAttribute("tabindex")||Gt.disabled||Gt.getAttribute("aria-disabled")==="true")$t+=Ye==="next"?1:-1;else return $t}}const Kt=(He,Ye)=>{if(!N)return;ve===""&&Bn(He,"toggleInput");let $t=ue;ue===-1?ve===""&&Ye==="previous"&&($t=he.length-1):($t+=Ye==="next"?1:-1,$t<0&&($t=0),$t===he.length&&($t=-1)),$t=Oi($t,Ye),pe($t),nt($t)},un=He=>{ye.current=!0,Ie(""),L&&L(He,"","clear"),yo(He,N?[]:null,"clear")},gt=He=>Ye=>{if(He.onKeyDown&&He.onKeyDown(Ye),!Ye.defaultMuiPrevented&&(ue!==-1&&!["ArrowLeft","ArrowRight"].includes(Ye.key)&&(pe(-1),nt(-1)),Ye.which!==229))switch(Ye.key){case"Home":et&&R&&(Ye.preventDefault(),bt({diff:"start",direction:"next",reason:"keyboard",event:Ye}));break;case"End":et&&R&&(Ye.preventDefault(),bt({diff:"end",direction:"previous",reason:"keyboard",event:Ye}));break;case"PageUp":Ye.preventDefault(),bt({diff:-5,direction:"previous",reason:"keyboard",event:Ye}),nr(Ye);break;case"PageDown":Ye.preventDefault(),bt({diff:Vwe,direction:"next",reason:"keyboard",event:Ye}),nr(Ye);break;case"ArrowDown":Ye.preventDefault(),bt({diff:1,direction:"next",reason:"keyboard",event:Ye}),nr(Ye);break;case"ArrowUp":Ye.preventDefault(),bt({diff:-1,direction:"previous",reason:"keyboard",event:Ye}),nr(Ye);break;case"ArrowLeft":!N&&Y?nt(0):Kt(Ye,"previous");break;case"ArrowRight":!N&&Y?nt(-1):Kt(Ye,"next");break;case"Enter":if(xe.current!==-1&&et){const $t=Le[xe.current],hn=E?E($t):!1;if(Ye.preventDefault(),hn)return;oo(Ye,$t,"selectOption"),r&&ne.current.setSelectionRange(ne.current.value.length,ne.current.value.length)}else C&&ve!==""&&Be===!1&&(N&&Ye.preventDefault(),oo(Ye,ve,"createOption","freeSolo"));break;case"Escape":et?(Ye.preventDefault(),Ye.stopPropagation(),Bn(Ye,"escape")):l&&(ve!==""||N&&he.length>0||Y)&&(Ye.preventDefault(),Ye.stopPropagation(),un(Ye));break;case"Backspace":if(N&&!q&&ve===""&&he.length>0){const $t=ue===-1?he.length-1:ue,hn=he.slice();hn.splice($t,1),yo(Ye,hn,"removeOption",{option:he[$t]})}!N&&Y&&!q&&(Pe(null),nt(-1));break;case"Delete":if(N&&!q&&ve===""&&he.length>0&&ue!==-1){const $t=ue,hn=he.slice();hn.splice($t,1),yo(Ye,hn,"removeOption",{option:he[$t]})}!N&&Y&&!q&&(Pe(null),nt(-1));break}},kt=He=>{Te(!0),K&&!ye.current&&nr(He)},Ut=He=>{if(t(le)){ne.current.focus();return}Te(!1),Se.current=!0,ye.current=!1,i&&xe.current!==-1&&et?oo(He,Le[xe.current],"blur"):i&&C&&ve!==""?oo(He,ve,"blur","freeSolo"):s&&De(He,he,"blur"),Bn(He,"blur")},Xt=He=>{const Ye=He.target.value;ve!==Ye&&(Ie(Ye),ut(!1),L&&L(He,Ye,"input")),Ye===""?!f&&!N&&yo(He,null,"clear"):nr(He)},Vn=He=>{const Ye=Number(He.currentTarget.getAttribute("data-option-index"));xe.current!==Ye&&vt({event:He,index:Ye,reason:"mouse"})},Xo=He=>{vt({event:He,index:Number(He.currentTarget.getAttribute("data-option-index")),reason:"touch"}),To.current=!0},Da=He=>{const Ye=Number(He.currentTarget.getAttribute("data-option-index"));oo(He,Le[Ye],"selectOption"),To.current=!1},ps=He=>Ye=>{const $t=he.slice();$t.splice(He,1),yo(Ye,$t,"removeOption",{option:he[He]})},ud=He=>{yo(He,null,"removeOption",{option:he})},Ii=He=>{Ve?Bn(He,"toggleInput"):nr(He)},vo=He=>{He.currentTarget.contains(He.target)&&He.target.getAttribute("id")!==se&&He.preventDefault()},Fr=He=>{He.currentTarget.contains(He.target)&&(ne.current.focus(),Z&&Se.current&&ne.current.selectionEnd-ne.current.selectionStart===0&&ne.current.select(),Se.current=!1)},zi=He=>{!m&&(ve===""||!Ve)&&Ii(He)};let ul=C&&ve.length>0;ul=ul||(N?he.length>0:he!==null);let dl=Le;return P&&(dl=Le.reduce((He,Ye,$t)=>{const hn=P(Ye);return He.length>0&&He[He.length-1].group===hn?He[He.length-1].options.push(Ye):He.push({key:$t,index:$t,group:hn,options:[Ye]}),He},[])),m&&te&&Ut(),{getRootProps:(He={})=>({...He,onKeyDown:gt(He),onMouseDown:vo,onClick:Fr}),getInputLabelProps:()=>({id:`${se}-label`,htmlFor:se}),getInputProps:()=>({id:se,value:ve,onBlur:Ut,onFocus:kt,onChange:Xt,onMouseDown:zi,"aria-activedescendant":et?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Lt?`${se}-listbox`:void 0,"aria-expanded":Lt,autoComplete:"off",ref:ne,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:un}),getItemProps:({index:He=0}={})=>({...N&&{key:He},...Y?{"data-item-index":He}:{"data-tag-index":He},tabIndex:-1,...!q&&{onDelete:N?ps(He):ud}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ii}),getTagProps:({index:He})=>({key:He,"data-tag-index":He,tabIndex:-1,...!q&&{onDelete:ps(He)}}),getListboxProps:()=>({role:"listbox",id:`${se}-listbox`,"aria-labelledby":`${se}-label`,ref:Rr,onMouseDown:He=>{He.preventDefault()}}),getOptionProps:({index:He,option:Ye})=>{const $t=(N?he:[he]).some(Gt=>Gt!=null&&_(Ye,Gt)),hn=E?E(Ye):!1;return{key:(I==null?void 0:I(Ye))??ce(Ye),tabIndex:-1,role:"option",id:`${se}-option-${He}`,onMouseMove:Vn,onClick:Da,onTouchStart:Xo,"data-option-index":He,"aria-disabled":hn,"aria-selected":$t}},id:se,inputValue:ve,value:he,dirty:ul,expanded:et&&de,popupOpen:et,focused:te||ue!==-1,anchorEl:de,setAnchorEl:oe,focusedItem:ue,focusedTag:ue,groupedOptions:dl}}var Ea="top",el="bottom",tl="right",Ta="left",eB="auto",rw=[Ea,el,tl,Ta],oy="start",Ex="end",qwe="clippingParents",ene="viewport",Kb="popper",Wwe="reference",$G=rw.reduce(function(e,t){return e.concat([t+"-"+oy,t+"-"+Ex])},[]),tne=[].concat(rw,[eB]).reduce(function(e,t){return e.concat([t,t+"-"+oy,t+"-"+Ex])},[]),Kwe="beforeRead",Ywe="read",Qwe="afterRead",Xwe="beforeMain",Jwe="main",Zwe="afterMain",eCe="beforeWrite",tCe="write",nCe="afterWrite",rCe=[Kwe,Ywe,Qwe,Xwe,Jwe,Zwe,eCe,tCe,nCe];function kc(e){return e?(e.nodeName||"").toLowerCase():null}function rs(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ph(e){var t=rs(e).Element;return e instanceof t||e instanceof Element}function Ws(e){var t=rs(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function tB(e){if(typeof ShadowRoot>"u")return!1;var t=rs(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function oCe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Ws(i)||!kc(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function iCe(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 o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!Ws(o)||!kc(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const aCe={name:"applyStyles",enabled:!0,phase:"write",fn:oCe,effect:iCe,requires:["computeStyles"]};function Tc(e){return e.split("-")[0]}var eh=Math.max,QE=Math.min,iy=Math.round;function xN(){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 nne(){return!/^((?!chrome|android).)*safari/i.test(xN())}function ay(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Ws(e)&&(o=e.offsetWidth>0&&iy(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&iy(r.height)/e.offsetHeight||1);var a=ph(e)?rs(e):window,s=a.visualViewport,l=!nne()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:u,right:c+f,bottom:u+h,left:c,x:c,y:u}}function nB(e){var t=ay(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 rne(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&tB(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Hu(e){return rs(e).getComputedStyle(e)}function sCe(e){return["table","td","th"].indexOf(kc(e))>=0}function $f(e){return((ph(e)?e.ownerDocument:e.document)||window.document).documentElement}function oI(e){return kc(e)==="html"?e:e.assignedSlot||e.parentNode||(tB(e)?e.host:null)||$f(e)}function NG(e){return!Ws(e)||Hu(e).position==="fixed"?null:e.offsetParent}function lCe(e){var t=/firefox/i.test(xN()),n=/Trident/i.test(xN());if(n&&Ws(e)){var r=Hu(e);if(r.position==="fixed")return null}var o=oI(e);for(tB(o)&&(o=o.host);Ws(o)&&["html","body"].indexOf(kc(o))<0;){var i=Hu(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function ow(e){for(var t=rs(e),n=NG(e);n&&sCe(n)&&Hu(n).position==="static";)n=NG(n);return n&&(kc(n)==="html"||kc(n)==="body"&&Hu(n).position==="static")?t:n||lCe(e)||t}function rB(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function W0(e,t,n){return eh(e,QE(t,n))}function cCe(e,t,n){var r=W0(e,t,n);return r>n?n:r}function one(){return{top:0,right:0,bottom:0,left:0}}function ine(e){return Object.assign({},one(),e)}function ane(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var uCe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ine(typeof t!="number"?t:ane(t,rw))};function dCe(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Tc(n.placement),l=rB(s),c=[Ta,tl].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var f=uCe(o.padding,n),h=nB(i),m=l==="y"?Ea:Ta,g=l==="y"?el:tl,y=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],v=a[l]-n.rects.reference[l],w=ow(i),C=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,E=y/2-v/2,I=f[m],O=C-h[u]-f[g],P=C/2-h[u]/2+E,R=W0(I,P,O),D=l;n.modifiersData[r]=(t={},t[D]=R,t.centerOffset=R-P,t)}}function fCe(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||rne(t.elements.popper,o)&&(t.elements.arrow=o))}const pCe={name:"arrow",enabled:!0,phase:"main",fn:dCe,effect:fCe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function sy(e){return e.split("-")[1]}var hCe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mCe(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:iy(n*o)/o||0,y:iy(r*o)/o||0}}function LG(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=a.x,m=h===void 0?0:h,g=a.y,y=g===void 0?0:g,v=typeof u=="function"?u({x:m,y}):{x:m,y};m=v.x,y=v.y;var w=a.hasOwnProperty("x"),C=a.hasOwnProperty("y"),E=Ta,I=Ea,O=window;if(c){var P=ow(n),R="clientHeight",D="clientWidth";if(P===rs(n)&&(P=$f(n),Hu(P).position!=="static"&&s==="absolute"&&(R="scrollHeight",D="scrollWidth")),P=P,o===Ea||(o===Ta||o===tl)&&i===Ex){I=el;var M=f&&P===O&&O.visualViewport?O.visualViewport.height:P[R];y-=M-r.height,y*=l?1:-1}if(o===Ta||(o===Ea||o===el)&&i===Ex){E=tl;var A=f&&P===O&&O.visualViewport?O.visualViewport.width:P[D];m-=A-r.width,m*=l?1:-1}}var _=Object.assign({position:s},c&&hCe),N=u===!0?mCe({x:m,y},rs(n)):{x:m,y};if(m=N.x,y=N.y,l){var B;return Object.assign({},_,(B={},B[I]=C?"0":"",B[E]=w?"0":"",B.transform=(O.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",B))}return Object.assign({},_,(t={},t[I]=C?y+"px":"",t[E]=w?m+"px":"",t.transform="",t))}function gCe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:Tc(t.placement),variation:sy(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,LG(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,LG(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const yCe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gCe,data:{}};var b1={passive:!0};function vCe(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=rs(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,b1)}),s&&l.addEventListener("resize",n.update,b1),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,b1)}),s&&l.removeEventListener("resize",n.update,b1)}}const bCe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vCe,data:{}};var xCe={left:"right",right:"left",bottom:"top",top:"bottom"};function pE(e){return e.replace(/left|right|bottom|top/g,function(t){return xCe[t]})}var SCe={start:"end",end:"start"};function FG(e){return e.replace(/start|end/g,function(t){return SCe[t]})}function oB(e){var t=rs(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function iB(e){return ay($f(e)).left+oB(e).scrollLeft}function wCe(e,t){var n=rs(e),r=$f(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=nne();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+iB(e),y:l}}function CCe(e){var t,n=$f(e),r=oB(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=eh(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=eh(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+iB(e),l=-r.scrollTop;return Hu(o||n).direction==="rtl"&&(s+=eh(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function aB(e){var t=Hu(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function sne(e){return["html","body","#document"].indexOf(kc(e))>=0?e.ownerDocument.body:Ws(e)&&aB(e)?e:sne(oI(e))}function K0(e,t){var n;t===void 0&&(t=[]);var r=sne(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=rs(r),a=o?[i].concat(i.visualViewport||[],aB(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(K0(oI(a)))}function SN(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ECe(e,t){var n=ay(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 jG(e,t,n){return t===ene?SN(wCe(e,n)):ph(t)?ECe(t,n):SN(CCe($f(e)))}function TCe(e){var t=K0(oI(e)),n=["absolute","fixed"].indexOf(Hu(e).position)>=0,r=n&&Ws(e)?ow(e):e;return ph(r)?t.filter(function(o){return ph(o)&&rne(o,r)&&kc(o)!=="body"}):[]}function OCe(e,t,n,r){var o=t==="clippingParents"?TCe(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,c){var u=jG(e,c,r);return l.top=eh(u.top,l.top),l.right=QE(u.right,l.right),l.bottom=QE(u.bottom,l.bottom),l.left=eh(u.left,l.left),l},jG(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function lne(e){var t=e.reference,n=e.element,r=e.placement,o=r?Tc(r):null,i=r?sy(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case Ea:l={x:a,y:t.y-n.height};break;case el:l={x:a,y:t.y+t.height};break;case tl:l={x:t.x+t.width,y:s};break;case Ta:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?rB(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case oy:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Ex:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Tx(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?qwe:s,c=n.rootBoundary,u=c===void 0?ene:c,f=n.elementContext,h=f===void 0?Kb:f,m=n.altBoundary,g=m===void 0?!1:m,y=n.padding,v=y===void 0?0:y,w=ine(typeof v!="number"?v:ane(v,rw)),C=h===Kb?Wwe:Kb,E=e.rects.popper,I=e.elements[g?C:h],O=OCe(ph(I)?I:I.contextElement||$f(e.elements.popper),l,u,a),P=ay(e.elements.reference),R=lne({reference:P,element:E,placement:o}),D=SN(Object.assign({},E,R)),M=h===Kb?D:P,A={top:O.top-M.top+w.top,bottom:M.bottom-O.bottom+w.bottom,left:O.left-M.left+w.left,right:M.right-O.right+w.right},_=e.modifiersData.offset;if(h===Kb&&_){var N=_[o];Object.keys(A).forEach(function(B){var H=[tl,el].indexOf(B)>=0?1:-1,j=[Ea,el].indexOf(B)>=0?"y":"x";A[B]+=N[j]*H})}return A}function ICe(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?tne:l,u=sy(r),f=u?s?$G:$G.filter(function(g){return sy(g)===u}):rw,h=f.filter(function(g){return c.indexOf(g)>=0});h.length===0&&(h=f);var m=h.reduce(function(g,y){return g[y]=Tx(e,{placement:y,boundary:o,rootBoundary:i,padding:a})[Tc(y)],g},{});return Object.keys(m).sort(function(g,y){return m[g]-m[y]})}function PCe(e){if(Tc(e)===eB)return[];var t=pE(e);return[FG(e),t,FG(t)]}function ACe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,g=m===void 0?!0:m,y=n.allowedAutoPlacements,v=t.options.placement,w=Tc(v),C=w===v,E=l||(C||!g?[pE(v)]:PCe(v)),I=[v].concat(E).reduce(function(ie,se){return ie.concat(Tc(se)===eB?ICe(t,{placement:se,boundary:u,rootBoundary:f,padding:c,flipVariations:g,allowedAutoPlacements:y}):se)},[]),O=t.rects.reference,P=t.rects.popper,R=new Map,D=!0,M=I[0],A=0;A=0,j=H?"width":"height",L=Tx(t,{placement:_,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),V=H?B?tl:Ta:B?el:Ea;O[j]>P[j]&&(V=pE(V));var W=pE(V),K=[];if(i&&K.push(L[N]<=0),s&&K.push(L[V]<=0,L[W]<=0),K.every(function(ie){return ie})){M=_,D=!1;break}R.set(_,K)}if(D)for(var G=g?3:1,q=function(se){var ce=I.find(function(ye){var Se=R.get(ye);if(Se)return Se.slice(0,se).every(function(ne){return ne})});if(ce)return M=ce,"break"},Y=G;Y>0;Y--){var Z=q(Y);if(Z==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}const MCe={name:"flip",enabled:!0,phase:"main",fn:ACe,requiresIfExists:["offset"],data:{_skip:!1}};function BG(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 zG(e){return[Ea,tl,el,Ta].some(function(t){return e[t]>=0})}function RCe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Tx(t,{elementContext:"reference"}),s=Tx(t,{altBoundary:!0}),l=BG(a,r),c=BG(s,o,i),u=zG(l),f=zG(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const DCe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:RCe};function kCe(e,t,n){var r=Tc(e),o=[Ta,Ea].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Ta,tl].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function _Ce(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=tne.reduce(function(u,f){return u[f]=kCe(f,t.rects,i),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const $Ce={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_Ce};function NCe(e){var t=e.state,n=e.name;t.modifiersData[n]=lne({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const LCe={name:"popperOffsets",enabled:!0,phase:"read",fn:NCe,data:{}};function FCe(e){return e==="x"?"y":"x"}function jCe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,m=h===void 0?!0:h,g=n.tetherOffset,y=g===void 0?0:g,v=Tx(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),w=Tc(t.placement),C=sy(t.placement),E=!C,I=rB(w),O=FCe(I),P=t.modifiersData.popperOffsets,R=t.rects.reference,D=t.rects.popper,M=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,A=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(P){if(i){var B,H=I==="y"?Ea:Ta,j=I==="y"?el:tl,L=I==="y"?"height":"width",V=P[I],W=V+v[H],K=V-v[j],G=m?-D[L]/2:0,q=C===oy?R[L]:D[L],Y=C===oy?-D[L]:-R[L],Z=t.elements.arrow,ie=m&&Z?nB(Z):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:one(),ce=se[H],ye=se[j],Se=W0(0,R[L],ie[L]),ne=E?R[L]/2-G-Se-ce-A.mainAxis:q-Se-ce-A.mainAxis,le=E?-R[L]/2+G+Se+ye+A.mainAxis:Y+Se+ye+A.mainAxis,de=t.elements.arrow&&ow(t.elements.arrow),oe=de?I==="y"?de.clientTop||0:de.clientLeft||0:0,ue=(B=_==null?void 0:_[I])!=null?B:0,pe=V+ne-ue-oe,Ee=V+le-ue,xe=W0(m?QE(W,pe):W,V,m?eh(K,Ee):K);P[I]=xe,N[I]=xe-V}if(s){var Re,he=I==="x"?Ea:Ta,Pe=I==="x"?el:tl,ve=P[O],Ie=O==="y"?"height":"width",te=ve+v[he],Te=ve-v[Pe],De=[Ea,Ta].indexOf(w)!==-1,Ve=(Re=_==null?void 0:_[O])!=null?Re:0,We=De?te:ve-R[Ie]-D[Ie]-Ve+A.altAxis,rt=De?ve+R[Ie]+D[Ie]-Ve-A.altAxis:Te,ut=m&&De?cCe(We,ve,rt):W0(m?We:te,ve,m?rt:Te);P[O]=ut,N[O]=ut-ve}t.modifiersData[r]=N}}const BCe={name:"preventOverflow",enabled:!0,phase:"main",fn:jCe,requiresIfExists:["offset"]};function zCe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function VCe(e){return e===rs(e)||!Ws(e)?oB(e):zCe(e)}function HCe(e){var t=e.getBoundingClientRect(),n=iy(t.width)/e.offsetWidth||1,r=iy(t.height)/e.offsetHeight||1;return n!==1||r!==1}function UCe(e,t,n){n===void 0&&(n=!1);var r=Ws(t),o=Ws(t)&&HCe(t),i=$f(t),a=ay(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((kc(t)!=="body"||aB(i))&&(s=VCe(t)),Ws(t)?(l=ay(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=iB(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function GCe(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function qCe(e){var t=GCe(e);return rCe.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function WCe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function KCe(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var VG={placement:"bottom",modifiers:[],strategy:"absolute"};function HG(){for(var e=arguments.length,t=new Array(e),n=0;n{i||s(JCe(o)||document.body)},[o,i]),In(()=>{if(a&&!i)return X$(n,a),()=>{X$(n,null)}},[n,a,i]),i){if(x.isValidElement(r)){const c={ref:l};return x.cloneElement(r,c)}return r}return a&&ew.createPortal(r,a)});function ZCe(e){return qe("MuiPopper",e)}Ke("MuiPopper",["root"]);function e1e(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 wN(e){return typeof e=="function"?e():e}function t1e(e){return e.nodeType!==void 0}const n1e=e=>{const{classes:t}=e;return Me({root:["root"]},ZCe,t)},r1e={},o1e=x.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:u,popperRef:f,slotProps:h={},slots:m={},TransitionProps:g,ownerState:y,...v}=t,w=x.useRef(null),C=en(w,n),E=x.useRef(null),I=en(E,f),O=x.useRef(I);In(()=>{O.current=I},[I]),x.useImperativeHandle(f,()=>E.current,[]);const P=e1e(c,i),[R,D]=x.useState(P),[M,A]=x.useState(wN(r));x.useEffect(()=>{E.current&&E.current.forceUpdate()}),x.useEffect(()=>{r&&A(wN(r))},[r]),In(()=>{if(!M||!l)return;const j=W=>{D(W.placement)};let L=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{j(W)}}];s!=null&&(L=L.concat(s)),u&&u.modifiers!=null&&(L=L.concat(u.modifiers));const V=XCe(M,w.current,{placement:P,...u,modifiers:L});return O.current(V),()=>{V.destroy(),O.current(null)}},[M,a,s,l,u,P]);const _={placement:R};g!==null&&(_.TransitionProps=g);const N=n1e(t),B=m.root??"div",H=Dn({elementType:B,externalSlotProps:h.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:N.root});return k.jsx(B,{...H,children:typeof o=="function"?o(_):o})}),i1e=x.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:h=r1e,popperRef:m,style:g,transition:y=!1,slotProps:v={},slots:w={},...C}=t,[E,I]=x.useState(!0),O=()=>{I(!1)},P=()=>{I(!0)};if(!l&&!u&&(!y||E))return null;let R;if(i)R=i;else if(r){const A=wN(r);R=A&&t1e(A)?Mr(A).body:Mr(null).body}const D=!u&&l&&(!y||E)?"none":void 0,M=y?{in:u,onEnter:O,onExited:P}:void 0;return k.jsx(cne,{disablePortal:s,container:R,children:k.jsx(o1e,{anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:y?!E:u,placement:f,popperOptions:h,popperRef:m,slotProps:v,slots:w,...C,style:{position:"fixed",top:0,left:0,display:D,...g},TransitionProps:M,children:o})})}),a1e=ae(i1e,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sv=x.forwardRef(function(t,n){const r=vr(),o=pt({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:f,modifiers:h,open:m,placement:g,popperOptions:y,popperRef:v,transition:w,slots:C,slotProps:E,...I}=o,O=(C==null?void 0:C.root)??(s==null?void 0:s.Root),P={anchorEl:i,container:c,disablePortal:u,keepMounted:f,modifiers:h,open:m,placement:g,popperOptions:y,popperRef:v,transition:w,...I};return k.jsx(a1e,{as:a,direction:r?"rtl":"ltr",slots:{root:O},slotProps:E??l,...P,ref:n})});function s1e(e){return qe("MuiListSubheader",e)}Ke("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const l1e=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${Oe(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return Me(a,s1e,t)},c1e=ae("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Oe(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(dt(({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}}]}))),CN=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1,...u}=r,f={...r,color:i,component:a,disableGutters:s,disableSticky:l,inset:c},h=l1e(f);return k.jsx(c1e,{as:a,className:fe(h.root,o),ref:n,ownerState:f,...u})});CN&&(CN.muiSkipListHighlight=!0);const u1e=Ot(k.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function d1e(e){return qe("MuiChip",e)}const jn=Ke("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"]),f1e=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${Oe(r)}`,`color${Oe(o)}`,s&&"clickable",s&&`clickableColor${Oe(o)}`,a&&"deletable",a&&`deletableColor${Oe(o)}`,`${l}${Oe(o)}`],label:["label",`label${Oe(r)}`],avatar:["avatar",`avatar${Oe(r)}`,`avatarColor${Oe(o)}`],icon:["icon",`icon${Oe(r)}`,`iconColor${Oe(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Oe(r)}`,`deleteIconColor${Oe(o)}`,`deleteIcon${Oe(l)}Color${Oe(o)}`]};return Me(c,d1e,t)},p1e=ae("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${jn.avatar}`]:t.avatar},{[`& .${jn.avatar}`]:t[`avatar${Oe(s)}`]},{[`& .${jn.avatar}`]:t[`avatarColor${Oe(r)}`]},{[`& .${jn.icon}`]:t.icon},{[`& .${jn.icon}`]:t[`icon${Oe(s)}`]},{[`& .${jn.icon}`]:t[`iconColor${Oe(o)}`]},{[`& .${jn.deleteIcon}`]:t.deleteIcon},{[`& .${jn.deleteIcon}`]:t[`deleteIcon${Oe(s)}`]},{[`& .${jn.deleteIcon}`]:t[`deleteIconColor${Oe(r)}`]},{[`& .${jn.deleteIcon}`]:t[`deleteIcon${Oe(l)}Color${Oe(r)}`]},t.root,t[`size${Oe(s)}`],t[`color${Oe(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${Oe(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${Oe(r)}`],t[l],t[`${l}${Oe(r)}`]]}})(dt(({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",[`&.${jn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${jn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${jn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${jn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${jn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${jn.icon}`]:{marginLeft:5,marginRight:-6},[`& .${jn.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Nt(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)`:Nt(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${jn.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${jn.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(er(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${jn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:Nt(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${jn.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${jn.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${jn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Nt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(er(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${jn.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}))`:Nt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${jn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Nt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(er(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${jn.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]}`,[`&.${jn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${jn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${jn.avatar}`]:{marginLeft:4},[`& .${jn.avatarSmall}`]:{marginLeft:2},[`& .${jn.icon}`]:{marginLeft:4},[`& .${jn.iconSmall}`]:{marginLeft:2},[`& .${jn.deleteIcon}`]:{marginRight:5},[`& .${jn.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(er()).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)`:Nt(e.palette[n].main,.7)}`,[`&.${jn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${jn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Nt(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${jn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Nt(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),h1e=ae("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Oe(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 UG(e){return e.key==="Backspace"||e.key==="Delete"}const Wl=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:h,onClick:m,onDelete:g,onKeyDown:y,onKeyUp:v,size:w="medium",variant:C="filled",tabIndex:E,skipFocusWhenDisabled:I=!1,...O}=r,P=x.useRef(null),R=en(P,n),D=K=>{K.stopPropagation(),g&&g(K)},M=K=>{K.currentTarget===K.target&&UG(K)&&K.preventDefault(),y&&y(K)},A=K=>{K.currentTarget===K.target&&g&&UG(K)&&g(K),v&&v(K)},_=a!==!1&&m?!0:a,N=_||g?la:l||"div",B={...r,component:N,disabled:u,size:w,color:s,iconColor:x.isValidElement(f)&&f.props.color||s,onDelete:!!g,clickable:_,variant:C},H=f1e(B),j=N===la?{component:l||"div",focusVisibleClassName:H.focusVisible,...g&&{disableRipple:!0}}:{};let L=null;g&&(L=c&&x.isValidElement(c)?x.cloneElement(c,{className:fe(c.props.className,H.deleteIcon),onClick:D}):k.jsx(u1e,{className:fe(H.deleteIcon),onClick:D}));let V=null;o&&x.isValidElement(o)&&(V=x.cloneElement(o,{className:fe(H.avatar,o.props.className)}));let W=null;return f&&x.isValidElement(f)&&(W=x.cloneElement(f,{className:fe(H.icon,f.props.className)})),k.jsxs(p1e,{as:N,className:fe(H.root,i),disabled:_&&u?!0:void 0,onClick:m,onKeyDown:M,onKeyUp:A,ref:R,tabIndex:I&&u?-1:E,ownerState:B,...j,...O,children:[V||W,k.jsx(h1e,{className:fe(H.label),ownerState:B,children:h}),L]})});function x1(e){return parseInt(e,10)||0}const m1e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function g1e(e){for(const t in e)return!1;return!0}function GG(e){return g1e(e)||e.outerHeightStyle===0&&!e.overflowing}const y1e=x.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s,...l}=t,{current:c}=x.useRef(s!=null),u=x.useRef(null),f=en(n,u),h=x.useRef(null),m=x.useRef(null),g=x.useCallback(()=>{const E=u.current,I=m.current;if(!E||!I)return;const P=ns(E).getComputedStyle(E);if(P.width==="0px")return{outerHeightStyle:0,overflowing:!1};I.style.width=P.width,I.value=E.value||t.placeholder||"x",I.value.slice(-1)===` +`&&(I.value+=" ");const R=P.boxSizing,D=x1(P.paddingBottom)+x1(P.paddingTop),M=x1(P.borderBottomWidth)+x1(P.borderTopWidth),A=I.scrollHeight;I.value="x";const _=I.scrollHeight;let N=A;i&&(N=Math.max(Number(i)*_,N)),o&&(N=Math.min(Number(o)*_,N)),N=Math.max(N,_);const B=N+(R==="border-box"?D+M:0),H=Math.abs(N-A)<=1;return{outerHeightStyle:B,overflowing:H}},[o,i,t.placeholder]),y=Je(()=>{const E=u.current,I=g();if(!E||!I||GG(I))return!1;const O=I.outerHeightStyle;return h.current!=null&&h.current!==O}),v=x.useCallback(()=>{const E=u.current,I=g();if(!E||!I||GG(I))return;const O=I.outerHeightStyle;h.current!==O&&(h.current=O,E.style.height=`${O}px`),E.style.overflow=I.overflowing?"hidden":""},[g]),w=x.useRef(-1);In(()=>{const E=$h(v),I=u==null?void 0:u.current;if(!I)return;const O=ns(I);O.addEventListener("resize",E);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(()=>{y()&&(P.unobserve(I),cancelAnimationFrame(w.current),v(),w.current=requestAnimationFrame(()=>{P.observe(I)}))}),P.observe(I)),()=>{E.clear(),cancelAnimationFrame(w.current),O.removeEventListener("resize",E),P&&P.disconnect()}},[g,v,y]),In(()=>{v()});const C=E=>{c||v(),r&&r(E)};return k.jsxs(x.Fragment,{children:[k.jsx("textarea",{value:s,onChange:C,ref:f,rows:i,style:a,...l}),k.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:{...m1e.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function Ox(e){return typeof e=="string"}function Nf({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const iI=x.createContext(void 0);function sl(){return x.useContext(iI)}function qG(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function XE(e,t=!1){return e&&(qG(e.value)&&e.value!==""||t&&qG(e.defaultValue)&&e.defaultValue!=="")}function v1e(e){return e.startAdornment}function b1e(e){return qe("MuiInputBase",e)}const bi=Ke("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var WG;const aI=(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${Oe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},sI=(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]},x1e=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:h,startAdornment:m,type:g}=e,y={root:["root",`color${Oe(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",h&&h!=="medium"&&`size${Oe(h)}`,u&&"multiline",m&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",m&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return Me(y,b1e,t)},lI=ae("div",{name:"MuiInputBase",slot:"Root",overridesResolver:aI})(dt(({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",[`&.${bi.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%"}}]}))),cI=ae("input",{name:"MuiInputBase",slot:"Input",overridesResolver:sI})(dt(({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"},o=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] + .${bi.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${bi.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.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:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),KG=lSe({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),iw=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,color:l,components:c={},componentsProps:u={},defaultValue:f,disabled:h,disableInjectingGlobalStyles:m,endAdornment:g,error:y,fullWidth:v=!1,id:w,inputComponent:C="input",inputProps:E={},inputRef:I,margin:O,maxRows:P,minRows:R,multiline:D=!1,name:M,onBlur:A,onChange:_,onClick:N,onFocus:B,onKeyDown:H,onKeyUp:j,placeholder:L,readOnly:V,renderSuffix:W,rows:K,size:G,slotProps:q={},slots:Y={},startAdornment:Z,type:ie="text",value:se,...ce}=r,ye=E.value!=null?E.value:se,{current:Se}=x.useRef(ye!=null),ne=x.useRef(),le=x.useCallback(Le=>{},[]),de=en(ne,I,E.ref,le),[oe,ue]=x.useState(!1),pe=sl(),Ee=Nf({props:r,muiFormControl:pe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ee.focused=pe?pe.focused:oe,x.useEffect(()=>{!pe&&h&&oe&&(ue(!1),A&&A())},[pe,h,oe,A]);const xe=pe&&pe.onFilled,Re=pe&&pe.onEmpty,he=x.useCallback(Le=>{XE(Le)?xe&&xe():Re&&Re()},[xe,Re]);In(()=>{Se&&he({value:ye})},[ye,he,Se]);const Pe=Le=>{B&&B(Le),E.onFocus&&E.onFocus(Le),pe&&pe.onFocus?pe.onFocus(Le):ue(!0)},ve=Le=>{A&&A(Le),E.onBlur&&E.onBlur(Le),pe&&pe.onBlur?pe.onBlur(Le):ue(!1)},Ie=(Le,...It)=>{if(!Se){const Lt=Le.target||ne.current;if(Lt==null)throw new Error(Bu(1));he({value:Lt.value})}E.onChange&&E.onChange(Le,...It),_&&_(Le,...It)};x.useEffect(()=>{he(ne.current)},[]);const te=Le=>{ne.current&&Le.currentTarget===Le.target&&ne.current.focus(),N&&N(Le)};let Te=C,De=E;D&&Te==="input"&&(K?De={type:void 0,minRows:K,maxRows:K,...De}:De={type:void 0,maxRows:P,minRows:R,...De},Te=y1e);const Ve=Le=>{he(Le.animationName==="mui-auto-fill-cancel"?ne.current:{value:"x"})};x.useEffect(()=>{pe&&pe.setAdornedStart(!!Z)},[pe,Z]);const We={...r,color:Ee.color||"primary",disabled:Ee.disabled,endAdornment:g,error:Ee.error,focused:Ee.focused,formControl:pe,fullWidth:v,hiddenLabel:Ee.hiddenLabel,multiline:D,size:Ee.size,startAdornment:Z,type:ie},rt=x1e(We),ut=Y.root||c.Root||lI,Be=q.root||u.root||{},et=Y.input||c.Input||cI;return De={...De,...q.input??u.input},k.jsxs(x.Fragment,{children:[!m&&typeof KG=="function"&&(WG||(WG=k.jsx(KG,{}))),k.jsxs(ut,{...Be,ref:n,onClick:te,...ce,...!Ox(ut)&&{ownerState:{...We,...Be.ownerState}},className:fe(rt.root,Be.className,s,V&&"MuiInputBase-readOnly"),children:[Z,k.jsx(iI.Provider,{value:null,children:k.jsx(et,{"aria-invalid":Ee.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:f,disabled:Ee.disabled,id:w,onAnimationStart:Ve,name:M,placeholder:L,readOnly:V,required:Ee.required,rows:K,value:ye,onKeyDown:H,onKeyUp:j,type:ie,...De,...!Ox(et)&&{as:Te,ownerState:{...We,...De.ownerState}},ref:de,className:fe(rt.input,De.className,V&&"MuiInputBase-readOnly"),onBlur:ve,onChange:Ie,onFocus:Pe})}),g,W?W({...Ee,startAdornment:Z}):null]})]})});function S1e(e){return qe("MuiInput",e)}const Kd={...bi,...Ke("MuiInput",["root","underline","input"])};function w1e(e){return qe("MuiOutlinedInput",e)}const Rs={...bi,...Ke("MuiOutlinedInput",["root","notchedOutline","input"])};function C1e(e){return qe("MuiFilledInput",e)}const Ua={...bi,...Ke("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},une=Ot(k.jsx("path",{d:"M7 10l5 5 5-5z"}));function E1e(e){return qe("MuiAutocomplete",e)}const Mn=Ke("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 YG,QG;const T1e=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,f={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${Oe(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Me(f,E1e,t)},O1e=ae("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=n;return[{[`& .${Mn.tag}`]:t.tag},{[`& .${Mn.tag}`]:t[`tagSize${Oe(s)}`]},{[`& .${Mn.inputRoot}`]:t.inputRoot},{[`& .${Mn.input}`]:t.input},{[`& .${Mn.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Mn.focused} .${Mn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Mn.clearIndicator}`]:{visibility:"visible"}},[`& .${Mn.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Mn.inputRoot}`]:{[`.${Mn.hasPopupIcon}&, .${Mn.hasClearIcon}&`]:{paddingRight:30},[`.${Mn.hasPopupIcon}.${Mn.hasClearIcon}&`]:{paddingRight:56},[`& .${Mn.input}`]:{width:0,minWidth:30}},[`& .${Kd.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Kd.root}.${bi.sizeSmall}`]:{[`& .${Kd.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Rs.root}`]:{padding:9,[`.${Mn.hasPopupIcon}&, .${Mn.hasClearIcon}&`]:{paddingRight:39},[`.${Mn.hasPopupIcon}.${Mn.hasClearIcon}&`]:{paddingRight:65},[`& .${Mn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Mn.endAdornment}`]:{right:9}},[`& .${Rs.root}.${bi.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Mn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Ua.root}`]:{paddingTop:19,paddingLeft:8,[`.${Mn.hasPopupIcon}&, .${Mn.hasClearIcon}&`]:{paddingRight:39},[`.${Mn.hasPopupIcon}.${Mn.hasClearIcon}&`]:{paddingRight:65},[`& .${Ua.input}`]:{padding:"7px 4px"},[`& .${Mn.endAdornment}`]:{right:9}},[`& .${Ua.root}.${bi.sizeSmall}`]:{paddingBottom:1,[`& .${Ua.input}`]:{padding:"2.5px 4px"}},[`& .${bi.hiddenLabel}`]:{paddingTop:8},[`& .${Ua.root}.${bi.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Mn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Ua.root}.${bi.hiddenLabel}.${bi.sizeSmall}`]:{[`& .${Mn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Mn.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Mn.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Mn.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Mn.inputRoot}`]:{flexWrap:"wrap"}}}]}),I1e=ae("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),P1e=ae(pn,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),A1e=ae(pn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),M1e=ae(sv,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Mn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(dt(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),R1e=ae(go,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(dt(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),D1e=ae("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(dt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),k1e=ae("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(dt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),_1e=ae("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(dt(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Mn.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"},[`&.${Mn.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"},[`&.${Mn.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})`:Nt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Mn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Nt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Mn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Nt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),$1e=ae(CN,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(dt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),N1e=ae("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Mn.option}`]:{paddingLeft:24}}),_c=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,ChipProps:l,className:c,clearIcon:u=YG||(YG=k.jsx(Zte,{fontSize:"small"})),clearOnBlur:f=!r.freeSolo,clearOnEscape:h=!1,clearText:m="Clear",closeText:g="Close",componentsProps:y,defaultValue:v=r.multiple?[]:null,disableClearable:w=!1,disableCloseOnSelect:C=!1,disabled:E=!1,disabledItemsFocusable:I=!1,disableListWrap:O=!1,disablePortal:P=!1,filterOptions:R,filterSelectedOptions:D=!1,forcePopupIcon:M="auto",freeSolo:A=!1,fullWidth:_=!1,getLimitTagsText:N=Hn=>`+${Hn}`,getOptionDisabled:B,getOptionKey:H,getOptionLabel:j,isOptionEqualToValue:L,groupBy:V,handleHomeEndKeys:W=!r.freeSolo,id:K,includeInputInList:G=!1,inputValue:q,limitTags:Y=-1,ListboxComponent:Z,ListboxProps:ie,loading:se=!1,loadingText:ce="Loading…",multiple:ye=!1,noOptionsText:Se="No options",onChange:ne,onClose:le,onHighlightChange:de,onInputChange:oe,onOpen:ue,open:pe,openOnFocus:Ee=!1,openText:xe="Open",options:Re,PaperComponent:he,PopperComponent:Pe,popupIcon:ve=QG||(QG=k.jsx(une,{})),readOnly:Ie=!1,renderGroup:te,renderInput:Te,renderOption:De,renderTags:Ve,renderValue:We,selectOnFocus:rt=!r.freeSolo,size:ut="medium",slots:Be={},slotProps:et={},value:Le,...It}=r,{getRootProps:Lt,getInputProps:nt,getInputLabelProps:lt,getPopupIndicatorProps:vt,getClearProps:bt,getItemProps:vn,getListboxProps:kn,getOptionProps:Rr,value:nr,dirty:Bn,expanded:yo,id:To,popupOpen:oo,focused:Oi,focusedItem:Kt,anchorEl:un,setAnchorEl:gt,inputValue:kt,groupedOptions:Ut}=Gwe({...r,componentName:"Autocomplete"}),Xt=!w&&!E&&Bn&&!Ie,Vn=(!A||M===!0)&&M!==!1,{onMouseDown:Xo}=nt(),{ref:Da,...ps}=kn(),Ii=j||(Hn=>Hn.label??Hn),vo={...r,disablePortal:P,expanded:yo,focused:Oi,fullWidth:_,getOptionLabel:Ii,hasClearIcon:Xt,hasPopupIcon:Vn,inputFocused:Kt===-1,popupOpen:oo,size:ut},Fr=T1e(vo),zi={slots:{paper:he,popper:Pe,...Be},slotProps:{chip:l,listbox:ie,...y,...et}},[ul,dl]=wt("listbox",{elementType:_1e,externalForwardedProps:zi,ownerState:vo,className:Fr.listbox,additionalProps:ps,ref:Da}),[He,Ye]=wt("paper",{elementType:go,externalForwardedProps:zi,ownerState:vo,className:Fr.paper}),[$t,hn]=wt("popper",{elementType:sv,externalForwardedProps:zi,ownerState:vo,className:Fr.popper,additionalProps:{disablePortal:P,style:{width:un?un.clientWidth:null},role:"presentation",anchorEl:un,open:oo}});let Gt;const Xr=Hn=>({className:Fr.tag,disabled:E,...vn(Hn)});if(Ve&&ye&&nr.length>0?Gt=Ve(nr,Xr,vo):We&&nr?Gt=We(nr,Xr,vo):ye&&nr.length>0&&(Gt=nr.map((Hn,Hi)=>{const{key:hs,...eu}=Xr({index:Hi});return k.jsx(Wl,{label:Ii(Hn),size:ut,...eu,...zi.slotProps.chip},hs)})),Y>-1&&Array.isArray(Gt)){const Hn=Gt.length-Y;!Oi&&Hn>0&&(Gt=Gt.splice(0,Y),Gt.push(k.jsx("span",{className:Fr.tag,children:N(Hn)},Gt.length)))}const Vi=te||(Hn=>k.jsxs("li",{children:[k.jsx($1e,{className:Fr.groupLabel,ownerState:vo,component:"div",children:Hn.group}),k.jsx(N1e,{className:Fr.groupUl,ownerState:vo,children:Hn.children})]},Hn.key)),nm=De||((Hn,Hi)=>{const{key:hs,...eu}=Hn;return k.jsx("li",{...eu,children:Ii(Hi)},hs)}),Xf=(Hn,Hi)=>{const hs=Rr({option:Hn,index:Hi});return nm({...hs,className:Fr.option},Hn,{selected:hs["aria-selected"],index:Hi,inputValue:kt},vo)},ca=zi.slotProps.clearIndicator,dd=zi.slotProps.popupIndicator;return k.jsxs(x.Fragment,{children:[k.jsx(O1e,{ref:n,className:fe(Fr.root,c),ownerState:vo,...Lt(It),children:Te({id:To,disabled:E,fullWidth:!0,size:ut==="small"?"small":void 0,InputLabelProps:lt(),InputProps:{ref:gt,className:Fr.inputRoot,startAdornment:Gt,onMouseDown:Hn=>{Hn.target===Hn.currentTarget&&Xo(Hn)},...(Xt||Vn)&&{endAdornment:k.jsxs(I1e,{className:Fr.endAdornment,ownerState:vo,children:[Xt?k.jsx(P1e,{...bt(),"aria-label":m,title:m,ownerState:vo,...ca,className:fe(Fr.clearIndicator,ca==null?void 0:ca.className),children:u}):null,Vn?k.jsx(A1e,{...vt(),disabled:E,"aria-label":oo?g:xe,title:oo?g:xe,ownerState:vo,...dd,className:fe(Fr.popupIndicator,dd==null?void 0:dd.className),children:ve}):null]})}},inputProps:{className:Fr.input,disabled:E,readOnly:Ie,...nt()}})}),un?k.jsx(M1e,{as:$t,...hn,children:k.jsxs(R1e,{as:He,...Ye,children:[se&&Ut.length===0?k.jsx(D1e,{className:Fr.loading,ownerState:vo,children:ce}):null,Ut.length===0&&!A&&!se?k.jsx(k1e,{className:Fr.noOptions,ownerState:vo,role:"presentation",onMouseDown:Hn=>{Hn.preventDefault()},children:Se}):null,Ut.length>0?k.jsx(ul,{as:Z,...dl,children:Ut.map((Hn,Hi)=>V?Vi({key:Hn.key,group:Hn.group,children:Hn.options.map((hs,eu)=>Xf(hs,Hn.index+eu))}):Xf(Hn,Hi))}):null]})}):null]})}),L1e=Ot(k.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));function F1e(e){return qe("MuiAvatar",e)}const j1e=Ke("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),B1e=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Me({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},F1e,t)},z1e=ae("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(dt(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),V1e=ae("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),H1e=ae(L1e,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function U1e({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=x.useState(!1);return x.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&i("loaded")},s.onerror=()=>{a&&i("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const Kl=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:s="div",slots:l={},slotProps:c={},imgProps:u,sizes:f,src:h,srcSet:m,variant:g="circular",...y}=r;let v=null;const w={...r,component:s,variant:g},C=U1e({...u,...typeof c.img=="function"?c.img(w):c.img,src:h,srcSet:m}),E=h||m,I=E&&C!=="error";w.colorDefault=!I,delete w.ownerState;const O=B1e(w),[P,R]=wt("img",{className:O.img,elementType:V1e,externalForwardedProps:{slots:l,slotProps:{img:{...u,...c.img}}},additionalProps:{alt:o,src:h,srcSet:m,sizes:f},ownerState:w});return I?v=k.jsx(P,{...R}):i||i===0?v=i:E&&o?v=o[0]:v=k.jsx(H1e,{ownerState:w,className:O.fallback}),k.jsx(z1e,{as:s,className:fe(O.root,a),ref:n,...y,ownerState:w,children:v})});function G1e(e){return qe("MuiAvatarGroup",e)}const q1e=Ke("MuiAvatarGroup",["root","avatar"]),IR={small:-16,medium:-8},W1e=e=>{const{classes:t}=e;return Me({root:["root"],avatar:["avatar"]},G1e,t)},K1e=ae("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>[{[`& .${q1e.avatar}`]:t.avatar},t.root]})(dt(({theme:e})=>({display:"flex",flexDirection:"row-reverse",[`& .${j1e.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:"var(--AvatarGroup-spacing, -8px)","&:last-child":{marginLeft:0}}}))),Y1e=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiAvatarGroup"}),{children:o,className:i,component:a="div",componentsProps:s,max:l=5,renderSurplus:c,slotProps:u={},slots:f={},spacing:h="medium",total:m,variant:g="circular",...y}=r;let v=l<2?2:l;const w={...r,max:l,spacing:h,component:a,variant:g},C=W1e(w),E=x.Children.toArray(o).filter(N=>x.isValidElement(N)),I=m||E.length;I===v&&(v+=1),v=Math.min(I+1,v);const O=Math.min(E.length,v-1),P=Math.max(I-v,I-O,0),R=c?c(P):`+${P}`;let D;w.spacing&&IR[w.spacing]!==void 0?D=IR[w.spacing]:w.spacing===0?D=0:D=-w.spacing||IR.medium;const M={slots:f,slotProps:{surplus:u.additionalAvatar??(s==null?void 0:s.additionalAvatar),...s,...u}},[A,_]=wt("surplus",{elementType:Kl,externalForwardedProps:M,className:C.avatar,ownerState:w,additionalProps:{variant:g}});return k.jsxs(K1e,{as:a,ownerState:w,className:fe(C.root,i),ref:n,...y,style:{"--AvatarGroup-spacing":`${D}px`,...y.style},children:[P?k.jsx(A,{..._,children:R}):null,E.slice(0,O).reverse().map(N=>x.cloneElement(N,{className:fe(N.props.className,C.avatar),variant:N.props.variant||g}))]})}),Q1e={entering:{opacity:1},entered:{opacity:1}},hh=x.forwardRef(function(t,n){const r=Lr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:h,onExit:m,onExited:g,onExiting:y,style:v,timeout:w=o,TransitionComponent:C=as,...E}=t,I=x.useRef(null),O=en(I,_f(s),n),P=H=>j=>{if(H){const L=I.current;j===void 0?H(L):H(L,j)}},R=P(h),D=P((H,j)=>{Qj(H);const L=Ef({style:v,timeout:w,easing:l},{mode:"enter"});H.style.webkitTransition=r.transitions.create("opacity",L),H.style.transition=r.transitions.create("opacity",L),u&&u(H,j)}),M=P(f),A=P(y),_=P(H=>{const j=Ef({style:v,timeout:w,easing:l},{mode:"exit"});H.style.webkitTransition=r.transitions.create("opacity",j),H.style.transition=r.transitions.create("opacity",j),m&&m(H)}),N=P(g),B=H=>{i&&i(I.current,H)};return k.jsx(C,{appear:a,in:c,nodeRef:I,onEnter:D,onEntered:M,onEntering:R,onExit:_,onExited:N,onExiting:A,addEndListener:B,timeout:w,...E,children:(H,{ownerState:j,...L})=>x.cloneElement(s,{style:{opacity:0,visibility:H==="exited"&&!c?"hidden":void 0,...Q1e[H],...v,...s.props.style},ref:O,...L})})});function X1e(e){return qe("MuiBackdrop",e)}Ke("MuiBackdrop",["root","invisible"]);const J1e=e=>{const{classes:t,invisible:n}=e;return Me({root:["root",n&&"invisible"]},X1e,t)},Z1e=ae("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"}}]}),dne=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:a="div",invisible:s=!1,open:l,components:c={},componentsProps:u={},slotProps:f={},slots:h={},TransitionComponent:m,transitionDuration:g,...y}=r,v={...r,component:a,invisible:s},w=J1e(v),C={transition:m,root:c.Root,...h},E={...u,...f},I={slots:C,slotProps:E},[O,P]=wt("root",{elementType:Z1e,externalForwardedProps:I,className:fe(w.root,i),ownerState:v}),[R,D]=wt("transition",{elementType:hh,externalForwardedProps:I,ownerState:v});return k.jsx(R,{in:l,timeout:g,...y,...D,children:k.jsx(O,{"aria-hidden":!0,...P,classes:w,ref:n,children:o})})});function eEe(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=Lj({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:s,max:l=r}=a?i:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:a,max:l,displayValue:c}}function tEe(e){return qe("MuiBadge",e)}const $d=Ke("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),PR=10,AR=4,nEe=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e,s={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Oe(n.vertical)}${Oe(n.horizontal)}`,`anchorOrigin${Oe(n.vertical)}${Oe(n.horizontal)}${Oe(o)}`,`overlap${Oe(o)}`,t!=="default"&&`color${Oe(t)}`]};return Me(s,tEe,a)},rEe=ae("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),oEe=ae("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Oe(n.anchorOrigin.vertical)}${Oe(n.anchorOrigin.horizontal)}${Oe(n.overlap)}`],n.color!=="default"&&t[`color${Oe(n.color)}`],n.invisible&&t.invisible]}})(dt(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:PR*2,lineHeight:1,padding:"0 6px",height:PR*2,borderRadius:PR,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(er(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:AR,height:AR*2,minWidth:AR*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${$d.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${$d.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${$d.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${$d.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${$d.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${$d.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${$d.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${$d.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function XG(e){return{vertical:(e==null?void 0:e.vertical)??"top",horizontal:(e==null?void 0:e.horizontal)??"right"}}const iEe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiBadge"}),{anchorOrigin:o,className:i,classes:a,component:s,components:l={},componentsProps:c={},children:u,overlap:f="rectangular",color:h="default",invisible:m=!1,max:g=99,badgeContent:y,slots:v,slotProps:w,showZero:C=!1,variant:E="standard",...I}=r,{badgeContent:O,invisible:P,max:R,displayValue:D}=eEe({max:g,invisible:m,badgeContent:y,showZero:C}),M=Lj({anchorOrigin:XG(o),color:h,overlap:f,variant:E,badgeContent:y}),A=P||O==null&&E!=="dot",{color:_=h,overlap:N=f,anchorOrigin:B,variant:H=E}=A?M:r,j=XG(B),L=H!=="dot"?D:void 0,V={...r,badgeContent:O,invisible:A,max:R,displayValue:L,showZero:C,anchorOrigin:j,color:_,overlap:N,variant:H},W=nEe(V),K=(v==null?void 0:v.root)??l.Root??rEe,G=(v==null?void 0:v.badge)??l.Badge??oEe,q=(w==null?void 0:w.root)??c.root,Y=(w==null?void 0:w.badge)??c.badge,Z=Dn({elementType:K,externalSlotProps:q,externalForwardedProps:I,additionalProps:{ref:n,as:s},ownerState:V,className:fe(q==null?void 0:q.className,W.root,i)}),ie=Dn({elementType:G,externalSlotProps:Y,ownerState:V,className:fe(W.badge,Y==null?void 0:Y.className)});return k.jsxs(K,{...Z,children:[u,k.jsx(G,{...ie,children:L})]})}),aEe=Ke("MuiBox",["root"]),sEe=ZS(),Zt=Mbe({themeId:qs,defaultTheme:sEe,defaultClassName:aEe.root,generateClassName:dte.generate});function lEe(e){return qe("MuiButton",e)}const hp=Ke("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),fne=x.createContext({}),pne=x.createContext(void 0),cEe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:a,loadingPosition:s,classes:l}=e,c={root:["root",a&&"loading",i,`${i}${Oe(t)}`,`size${Oe(o)}`,`${i}Size${Oe(o)}`,`color${Oe(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${Oe(s)}`],startIcon:["icon","startIcon",`iconSize${Oe(o)}`],endIcon:["icon","endIcon",`iconSize${Oe(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=Me(c,lEe,l);return{...l,...u}},hne=[{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}}}],uEe=ae(la,{shouldForwardProp:e=>ui(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Oe(n.color)}`],t[`size${Oe(n.size)}`],t[`${n.variant}Size${Oe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(dt(({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"},[`&.${hp.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]},[`&.${hp.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${hp.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)",[`&.${hp.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(er()).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)`:Nt(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})`:Nt(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})`:Nt(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})`:Nt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(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"},[`&.${hp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${hp.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${hp.loading}`]:{color:"transparent"}}}]}})),dEe=ae("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Oe(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...hne]})),fEe=ae("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Oe(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...hne]})),pEe=ae("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),JG=ae("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),ct=x.forwardRef(function(t,n){const r=x.useContext(fne),o=x.useContext(pne),i=ch(r,t),a=pt({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:m=!1,endIcon:g,focusVisibleClassName:y,fullWidth:v=!1,id:w,loading:C=null,loadingIndicator:E,loadingPosition:I="center",size:O="medium",startIcon:P,type:R,variant:D="text",...M}=a,A=bn(w),_=E??k.jsx(nw,{"aria-labelledby":A,color:"inherit",size:16}),N={...a,color:l,component:c,disabled:f,disableElevation:h,disableFocusRipple:m,fullWidth:v,loading:C,loadingIndicator:_,loadingPosition:I,size:O,type:R,variant:D},B=cEe(N),H=(P||C&&I==="start")&&k.jsx(dEe,{className:B.startIcon,ownerState:N,children:P||k.jsx(JG,{className:B.loadingIconPlaceholder,ownerState:N})}),j=(g||C&&I==="end")&&k.jsx(fEe,{className:B.endIcon,ownerState:N,children:g||k.jsx(JG,{className:B.loadingIconPlaceholder,ownerState:N})}),L=o||"",V=typeof C=="boolean"?k.jsx("span",{className:B.loadingWrapper,style:{display:"contents"},children:C&&k.jsx(pEe,{className:B.loadingIndicator,ownerState:N,children:_})}):null;return k.jsxs(uEe,{ownerState:N,className:fe(r.className,B.root,u,L),component:c,disabled:f||C,focusRipple:!m,focusVisibleClassName:fe(B.focusVisible,y),ref:n,type:R,id:C?A:w,...M,classes:B,children:[H,I!=="end"&&V,s,I==="end"&&V,j]})});function hEe(e){return qe("MuiButtonGroup",e)}const Tn=Ke("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","horizontal","vertical","colorPrimary","colorSecondary","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),mEe=(e,t)=>{const{ownerState:n}=e;return[{[`& .${Tn.grouped}`]:t.grouped},{[`& .${Tn.grouped}`]:t[`grouped${Oe(n.orientation)}`]},{[`& .${Tn.grouped}`]:t[`grouped${Oe(n.variant)}`]},{[`& .${Tn.grouped}`]:t[`grouped${Oe(n.variant)}${Oe(n.orientation)}`]},{[`& .${Tn.grouped}`]:t[`grouped${Oe(n.variant)}${Oe(n.color)}`]},{[`& .${Tn.firstButton}`]:t.firstButton},{[`& .${Tn.lastButton}`]:t.lastButton},{[`& .${Tn.middleButton}`]:t.middleButton},t.root,t[n.variant],n.disableElevation===!0&&t.disableElevation,n.fullWidth&&t.fullWidth,n.orientation==="vertical"&&t.vertical]},gEe=e=>{const{classes:t,color:n,disabled:r,disableElevation:o,fullWidth:i,orientation:a,variant:s}=e,l={root:["root",s,a,i&&"fullWidth",o&&"disableElevation",`color${Oe(n)}`],grouped:["grouped",`grouped${Oe(a)}`,`grouped${Oe(s)}`,`grouped${Oe(s)}${Oe(a)}`,`grouped${Oe(s)}${Oe(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Me(l,hEe,t)},yEe=ae("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:mEe})(dt(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(e.vars||e).shadows[2]}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${Tn.lastButton},& .${Tn.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${Tn.firstButton},& .${Tn.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${Tn.firstButton},& .${Tn.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Tn.lastButton},& .${Tn.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${Tn.firstButton},& .${Tn.middleButton}`]:{borderRight:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Tn.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${Tn.firstButton},& .${Tn.middleButton}`]:{borderBottom:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Tn.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(er()).flatMap(([t])=>[{props:{variant:"text",color:t},style:{[`& .${Tn.firstButton},& .${Tn.middleButton}`]:{borderColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:Nt(e.palette[t].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${Tn.firstButton},& .${Tn.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${Tn.lastButton},& .${Tn.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${Tn.firstButton},& .${Tn.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${Tn.lastButton},& .${Tn.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${Tn.firstButton},& .${Tn.middleButton}`]:{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Tn.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${Tn.firstButton},& .${Tn.middleButton}`]:{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Tn.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(er(["dark"])).map(([t])=>({props:{variant:"contained",color:t},style:{[`& .${Tn.firstButton},& .${Tn.middleButton}`]:{borderColor:(e.vars||e).palette[t].dark}}}))],[`& .${Tn.grouped}`]:{minWidth:40,boxShadow:"none",props:{variant:"contained"},style:{"&:hover":{boxShadow:"none"}}}}))),sB=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiButtonGroup"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,disableElevation:c=!1,disableFocusRipple:u=!1,disableRipple:f=!1,fullWidth:h=!1,orientation:m="horizontal",size:g="medium",variant:y="outlined",...v}=r,w={...r,color:a,component:s,disabled:l,disableElevation:c,disableFocusRipple:u,disableRipple:f,fullWidth:h,orientation:m,size:g,variant:y},C=gEe(w),E=x.useMemo(()=>({className:C.grouped,color:a,disabled:l,disableElevation:c,disableFocusRipple:u,disableRipple:f,fullWidth:h,size:g,variant:y}),[a,l,c,u,f,h,g,y,C.grouped]),I=Ste(o),O=I.length,P=R=>{const D=R===0,M=R===O-1;return D&&M?"":D?C.firstButton:M?C.lastButton:C.middleButton};return k.jsx(yEe,{as:s,role:"group",className:fe(C.root,i),ref:n,ownerState:w,...v,children:k.jsx(fne.Provider,{value:E,children:I.map((R,D)=>k.jsx(pne.Provider,{value:P(D),children:R},D))})})});function vEe(e){return qe("MuiCard",e)}Ke("MuiCard",["root"]);const bEe=e=>{const{classes:t}=e;return Me({root:["root"]},vEe,t)},xEe=ae(go,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),ho=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiCard"}),{className:o,raised:i=!1,...a}=r,s={...r,raised:i},l=bEe(s);return k.jsx(xEe,{className:fe(l.root,o),elevation:i?8:void 0,ref:n,ownerState:s,...a})});function SEe(e){return qe("MuiCardActionArea",e)}const MR=Ke("MuiCardActionArea",["root","focusVisible","focusHighlight"]),wEe=e=>{const{classes:t}=e;return Me({root:["root"],focusHighlight:["focusHighlight"]},SEe,t)},CEe=ae(la,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(dt(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${MR.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${MR.focusVisible} .${MR.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}}))),EEe=ae("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(dt(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}))),TEe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiCardActionArea"}),{children:o,className:i,focusVisibleClassName:a,...s}=r,l=r,c=wEe(l);return k.jsxs(CEe,{className:fe(c.root,i),focusVisibleClassName:fe(a,c.focusVisible),ref:n,ownerState:l,...s,children:[o,k.jsx(EEe,{className:c.focusHighlight,ownerState:l})]})});function OEe(e){return qe("MuiCardActions",e)}Ke("MuiCardActions",["root","spacing"]);const IEe=e=>{const{classes:t,disableSpacing:n}=e;return Me({root:["root",!n&&"spacing"]},OEe,t)},PEe=ae("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),ll=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:i,...a}=r,s={...r,disableSpacing:o},l=IEe(s);return k.jsx(PEe,{className:fe(l.root,i),ownerState:s,ref:n,...a})});function AEe(e){return qe("MuiCardContent",e)}Ke("MuiCardContent",["root"]);const MEe=e=>{const{classes:t}=e;return Me({root:["root"]},AEe,t)},REe=ae("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),Fi=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiCardContent"}),{className:o,component:i="div",...a}=r,s={...r,component:i},l=MEe(s);return k.jsx(REe,{as:i,className:fe(l.root,o),ownerState:s,ref:n,...a})});function DEe(e){return qe("MuiCardHeader",e)}const JE=Ke("MuiCardHeader",["root","avatar","action","content","title","subheader"]),kEe=e=>{const{classes:t}=e;return Me({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},DEe,t)},_Ee=ae("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>[{[`& .${JE.title}`]:t.title},{[`& .${JE.subheader}`]:t.subheader},t.root]})({display:"flex",alignItems:"center",padding:16}),$Ee=ae("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),NEe=ae("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),LEe=ae("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto",[`.${YE.root}:where(& .${JE.title})`]:{display:"block"},[`.${YE.root}:where(& .${JE.subheader})`]:{display:"block"}}),Jl=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiCardHeader"}),{action:o,avatar:i,component:a="div",disableTypography:s=!1,subheader:l,subheaderTypographyProps:c,title:u,titleTypographyProps:f,slots:h={},slotProps:m={},...g}=r,y={...r,component:a,disableTypography:s},v=kEe(y),w={slots:h,slotProps:{title:f,subheader:c,...m}};let C=u;const[E,I]=wt("title",{className:v.title,elementType:at,externalForwardedProps:w,ownerState:y,additionalProps:{variant:i?"body2":"h5",component:"span"}});C!=null&&C.type!==at&&!s&&(C=k.jsx(E,{...I,children:C}));let O=l;const[P,R]=wt("subheader",{className:v.subheader,elementType:at,externalForwardedProps:w,ownerState:y,additionalProps:{variant:i?"body2":"body1",color:"textSecondary",component:"span"}});O!=null&&O.type!==at&&!s&&(O=k.jsx(P,{...R,children:O}));const[D,M]=wt("root",{ref:n,className:v.root,elementType:_Ee,externalForwardedProps:{...w,...g,component:a},ownerState:y}),[A,_]=wt("avatar",{className:v.avatar,elementType:$Ee,externalForwardedProps:w,ownerState:y}),[N,B]=wt("content",{className:v.content,elementType:LEe,externalForwardedProps:w,ownerState:y}),[H,j]=wt("action",{className:v.action,elementType:NEe,externalForwardedProps:w,ownerState:y});return k.jsxs(D,{...M,children:[i&&k.jsx(A,{..._,children:i}),k.jsxs(N,{...B,children:[C,O]}),o&&k.jsx(H,{...j,children:o})]})});function FEe(e){return qe("MuiCardMedia",e)}Ke("MuiCardMedia",["root","media","img"]);const jEe=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return Me({root:["root",n&&"media",r&&"img"]},FEe,t)},BEe=ae("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:o}=n;return[t.root,r&&t.media,o&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),zEe=["video","audio","picture","iframe","img"],VEe=["picture","img"],$c=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiCardMedia"}),{children:o,className:i,component:a="div",image:s,src:l,style:c,...u}=r,f=zEe.includes(a),h=!f&&s?{backgroundImage:`url("${s}")`,...c}:c,m={...r,component:a,isMediaComponent:f,isImageComponent:VEe.includes(a)},g=jEe(m);return k.jsx(BEe,{className:fe(g.root,i),as:a,role:!f&&s?"img":void 0,ref:n,style:h,ownerState:m,src:f?s||l:void 0,...u,children:o})});function HEe(e){return qe("PrivateSwitchBase",e)}Ke("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const UEe=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${Oe(o)}`],input:["input"]};return Me(i,HEe,t)},GEe=ae(la)({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}}]}),qEe=ae("input",{shouldForwardProp:ui})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),mne=x.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:f,inputProps:h,inputRef:m,name:g,onBlur:y,onChange:v,onFocus:w,readOnly:C,required:E=!1,tabIndex:I,type:O,value:P,slots:R={},slotProps:D={},...M}=t,[A,_]=ia({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),N=sl(),B=se=>{w&&w(se),N&&N.onFocus&&N.onFocus(se)},H=se=>{y&&y(se),N&&N.onBlur&&N.onBlur(se)},j=se=>{if(se.nativeEvent.defaultPrevented)return;const ce=se.target.checked;_(ce),v&&v(se,ce)};let L=s;N&&typeof L>"u"&&(L=N.disabled);const V=O==="checkbox"||O==="radio",W={...t,checked:A,disabled:L,disableFocusRipple:l,edge:c},K=UEe(W),G={slots:R,slotProps:{input:h,...D}},[q,Y]=wt("root",{ref:n,elementType:GEe,className:K.root,shouldForwardComponentProp:!0,externalForwardedProps:{...G,component:"span",...M},getSlotProps:se=>({...se,onFocus:ce=>{var ye;(ye=se.onFocus)==null||ye.call(se,ce),B(ce)},onBlur:ce=>{var ye;(ye=se.onBlur)==null||ye.call(se,ce),H(ce)}}),ownerState:W,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:L,role:void 0,tabIndex:null}}),[Z,ie]=wt("input",{ref:m,elementType:qEe,className:K.input,externalForwardedProps:G,getSlotProps:se=>({...se,onChange:ce=>{var ye;(ye=se.onChange)==null||ye.call(se,ce),j(ce)}}),ownerState:W,additionalProps:{autoFocus:r,checked:o,defaultChecked:a,disabled:L,id:V?f:void 0,name:g,readOnly:C,required:E,tabIndex:I,type:O,...O==="checkbox"&&P===void 0?{}:{value:P}}});return k.jsxs(q,{...Y,children:[k.jsx(Z,{...ie}),A?i:u]})}),WEe=Ot(k.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"})),KEe=Ot(k.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"})),YEe=Ot(k.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function QEe(e){return qe("MuiCheckbox",e)}const RR=Ke("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),XEe=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${Oe(r)}`,`size${Oe(o)}`]},a=Me(i,QEe,t);return{...t,...a}},JEe=ae(mne,{shouldForwardProp:e=>ui(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Oe(n.size)}`],n.color!=="default"&&t[`color${Oe(n.color)}`]]}})(dt(({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})`:Nt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(er()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(er()).map(([t])=>({props:{color:t},style:{[`&.${RR.checked}, &.${RR.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${RR.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),ZEe=k.jsx(KEe,{}),eTe=k.jsx(WEe,{}),tTe=k.jsx(YEe,{}),nTe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiCheckbox"}),{checkedIcon:o=ZEe,color:i="primary",icon:a=eTe,indeterminate:s=!1,indeterminateIcon:l=tTe,inputProps:c,size:u="medium",disableRipple:f=!1,className:h,slots:m={},slotProps:g={},...y}=r,v=s?l:a,w=s?l:o,C={...r,disableRipple:f,color:i,indeterminate:s,size:u},E=XEe(C),I=g.input??c,[O,P]=wt("root",{ref:n,elementType:JEe,className:fe(E.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:m,slotProps:g,...y},ownerState:C,additionalProps:{type:"checkbox",icon:x.cloneElement(v,{fontSize:v.props.fontSize??u}),checkedIcon:x.cloneElement(w,{fontSize:w.props.fontSize??u}),disableRipple:f,slots:m,slotProps:{input:qj(typeof I=="function"?I(C):I,{"data-indeterminate":s})}}});return k.jsx(O,{...P,classes:E})});function ZG(e){return e.substring(2).toLowerCase()}function rTe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=en(_f(t),s),f=Je(g=>{const y=c.current;c.current=!1;const v=Mr(s.current);if(!l.current||!s.current||"clientX"in g&&rTe(g,v))return;if(a.current){a.current=!1;return}let w;g.composedPath?w=g.composedPath().includes(s.current):w=!v.documentElement.contains(g.target)||s.current.contains(g.target),!w&&(n||!y)&&o(g)}),h=g=>y=>{c.current=!0;const v=t.props[g];v&&v(y)},m={ref:u};return i!==!1&&(m[i]=h(i)),x.useEffect(()=>{if(i!==!1){const g=ZG(i),y=Mr(s.current),v=()=>{a.current=!0};return y.addEventListener(g,f),y.addEventListener("touchmove",v),()=>{y.removeEventListener(g,f),y.removeEventListener("touchmove",v)}}},[f,i]),r!==!1&&(m[r]=h(r)),x.useEffect(()=>{if(r!==!1){const g=ZG(r),y=Mr(s.current);return y.addEventListener(g,f),()=>{y.removeEventListener(g,f)}}},[f,r]),x.cloneElement(t,m)}const Uu=C0e({createStyledComponent:ae("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Oe(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>pt({props:e,name:"MuiContainer"})});function oTe(e){const t=Mr(e);return t.body===e?ns(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Y0(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function e6(e){return parseInt(ns(e).getComputedStyle(e).paddingRight,10)||0}function iTe(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 t6(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=!i.includes(a),l=!iTe(a);s&&l&&Y0(a,o)})}function DR(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function aTe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(oTe(r)){const a=xte(ns(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${e6(r)+a}px`;const s=Mr(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${e6(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Mr(r).body;else{const a=r.parentElement,s=ns(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function sTe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class lTe{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&&Y0(t.modalRef,!1);const o=sTe(n);t6(n,t.mount,t.modalRef,o,!0);const i=DR(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=DR(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=aTe(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=DR(this.containers,a=>a.modals.includes(t)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Y0(t.modalRef,n),t6(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Y0(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const cTe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function uTe(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 dTe(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 fTe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||dTe(e))}function pTe(e){const t=[],n=[];return Array.from(e.querySelectorAll(cTe)).forEach((r,o)=>{const i=uTe(r);i===-1||!fTe(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function hTe(){return!0}function lB(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=pTe,isEnabled:a=hTe,open:s}=e,l=x.useRef(!1),c=x.useRef(null),u=x.useRef(null),f=x.useRef(null),h=x.useRef(null),m=x.useRef(!1),g=x.useRef(null),y=en(_f(t),g),v=x.useRef(null);x.useEffect(()=>{!s||!g.current||(m.current=!n)},[n,s]),x.useEffect(()=>{if(!s||!g.current)return;const E=Mr(g.current);return g.current.contains(E.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),m.current&&g.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),x.useEffect(()=>{if(!s||!g.current)return;const E=Mr(g.current),I=R=>{v.current=R,!(r||!a()||R.key!=="Tab")&&E.activeElement===g.current&&R.shiftKey&&(l.current=!0,u.current&&u.current.focus())},O=()=>{var M,A;const R=g.current;if(R===null)return;if(!E.hasFocus()||!a()||l.current){l.current=!1;return}if(R.contains(E.activeElement)||r&&E.activeElement!==c.current&&E.activeElement!==u.current)return;if(E.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!m.current)return;let D=[];if((E.activeElement===c.current||E.activeElement===u.current)&&(D=i(g.current)),D.length>0){const _=!!((M=v.current)!=null&&M.shiftKey&&((A=v.current)==null?void 0:A.key)==="Tab"),N=D[0],B=D[D.length-1];typeof N!="string"&&typeof B!="string"&&(_?B.focus():N.focus())}else R.focus()};E.addEventListener("focusin",O),E.addEventListener("keydown",I,!0);const P=setInterval(()=>{E.activeElement&&E.activeElement.tagName==="BODY"&&O()},50);return()=>{clearInterval(P),E.removeEventListener("focusin",O),E.removeEventListener("keydown",I,!0)}},[n,r,o,a,s,i]);const w=E=>{f.current===null&&(f.current=E.relatedTarget),m.current=!0,h.current=E.target;const I=t.props.onFocus;I&&I(E)},C=E=>{f.current===null&&(f.current=E.relatedTarget),m.current=!0};return k.jsxs(x.Fragment,{children:[k.jsx("div",{tabIndex:s?0:-1,onFocus:C,ref:c,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:y,onFocus:w}),k.jsx("div",{tabIndex:s?0:-1,onFocus:C,ref:u,"data-testid":"sentinelEnd"})]})}function mTe(e){return typeof e=="function"?e():e}function gTe(e){return e?e.props.hasOwnProperty("in"):!1}const n6=()=>{},S1=new lTe;function yTe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:s,onClose:l,open:c,rootRef:u}=e,f=x.useRef({}),h=x.useRef(null),m=x.useRef(null),g=en(m,u),[y,v]=x.useState(!c),w=gTe(s);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const E=()=>Mr(h.current),I=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),O=()=>{S1.mount(I(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},P=Je(()=>{const j=mTe(t)||E().body;S1.add(I(),j),m.current&&O()}),R=()=>S1.isTopModal(I()),D=Je(j=>{h.current=j,j&&(c&&R()?O():m.current&&Y0(m.current,C))}),M=x.useCallback(()=>{S1.remove(I(),C)},[C]);x.useEffect(()=>()=>{M()},[M]),x.useEffect(()=>{c?P():(!w||!o)&&M()},[c,M,w,o,P]);const A=j=>L=>{var V;(V=j.onKeyDown)==null||V.call(j,L),!(L.key!=="Escape"||L.which===229||!R())&&(n||(L.stopPropagation(),l&&l(L,"escapeKeyDown")))},_=j=>L=>{var V;(V=j.onClick)==null||V.call(j,L),L.target===L.currentTarget&&l&&l(L,"backdropClick")};return{getRootProps:(j={})=>{const L=VE(e);delete L.onTransitionEnter,delete L.onTransitionExited;const V={...L,...j};return{role:"presentation",...V,onKeyDown:A(V),ref:g}},getBackdropProps:(j={})=>{const L=j;return{"aria-hidden":!0,...L,onClick:_(L),open:c}},getTransitionProps:()=>{const j=()=>{v(!1),i&&i()},L=()=>{v(!0),a&&a(),o&&M()};return{onEnter:J3(j,(s==null?void 0:s.props.onEnter)??n6),onExited:J3(L,(s==null?void 0:s.props.onExited)??n6)}},rootRef:g,portalRef:D,isTopModal:R,exited:y,hasTransition:w}}function vTe(e){return qe("MuiModal",e)}Ke("MuiModal",["root","hidden","backdrop"]);const bTe=e=>{const{open:t,exited:n,classes:r}=e;return Me({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},vTe,r)},xTe=ae("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(dt(({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"}}]}))),STe=ae(dne,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),lv=x.forwardRef(function(t,n){const r=pt({name:"MuiModal",props:t}),{BackdropComponent:o=STe,BackdropProps:i,classes:a,className:s,closeAfterTransition:l=!1,children:c,container:u,component:f,components:h={},componentsProps:m={},disableAutoFocus:g=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:v=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:I=!1,keepMounted:O=!1,onClose:P,onTransitionEnter:R,onTransitionExited:D,open:M,slotProps:A={},slots:_={},theme:N,...B}=r,H={...r,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:y,disableEscapeKeyDown:v,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:I,keepMounted:O},{getRootProps:j,getBackdropProps:L,getTransitionProps:V,portalRef:W,isTopModal:K,exited:G,hasTransition:q}=yTe({...H,rootRef:n}),Y={...H,exited:G},Z=bTe(Y),ie={};if(c.props.tabIndex===void 0&&(ie.tabIndex="-1"),q){const{onEnter:le,onExited:de}=V();ie.onEnter=le,ie.onExited=de}const se={slots:{root:h.Root,backdrop:h.Backdrop,..._},slotProps:{...m,...A}},[ce,ye]=wt("root",{ref:n,elementType:xTe,externalForwardedProps:{...se,...B,component:f},getSlotProps:j,ownerState:Y,className:fe(s,Z==null?void 0:Z.root,!Y.open&&Y.exited&&(Z==null?void 0:Z.hidden))}),[Se,ne]=wt("backdrop",{ref:i==null?void 0:i.ref,elementType:o,externalForwardedProps:se,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:le=>L({...le,onClick:de=>{le!=null&&le.onClick&&le.onClick(de)}}),className:fe(i==null?void 0:i.className,Z==null?void 0:Z.backdrop),ownerState:Y});return!O&&!M&&(!q||G)?null:k.jsx(cne,{ref:W,container:u,disablePortal:w,children:k.jsxs(ce,{...ye,children:[!I&&o?k.jsx(Se,{...ne}):null,k.jsx(lB,{disableEnforceFocus:y,disableAutoFocus:g,disableRestoreFocus:C,isEnabled:K,open:M,children:x.cloneElement(c,ie)})]})})});function wTe(e){return qe("MuiDialog",e)}const Q0=Ke("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),yne=x.createContext({}),CTe=ae(dne,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),ETe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${Oe(n)}`],paper:["paper",`paperScroll${Oe(n)}`,`paperWidth${Oe(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Me(a,wTe,t)},TTe=ae(lv,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),OTe=ae("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Oe(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"}}}]}),ITe=ae(go,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Oe(n.scroll)}`],t[`paperWidth${Oe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(dt(({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)`,[`&.${Q0.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}`,[`&.${Q0.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,[`&.${Q0.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Ix=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiDialog"}),o=Lr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:f,className:h,disableEscapeKeyDown:m=!1,fullScreen:g=!1,fullWidth:y=!1,maxWidth:v="sm",onClick:w,onClose:C,open:E,PaperComponent:I=go,PaperProps:O={},scroll:P="paper",slots:R={},slotProps:D={},TransitionComponent:M=hh,transitionDuration:A=i,TransitionProps:_,...N}=r,B={...r,disableEscapeKeyDown:m,fullScreen:g,fullWidth:y,maxWidth:v,scroll:P},H=ETe(B),j=x.useRef(),L=ue=>{j.current=ue.target===ue.currentTarget},V=ue=>{w&&w(ue),j.current&&(j.current=null,C&&C(ue,"backdropClick"))},W=bn(s),K=x.useMemo(()=>({titleId:W}),[W]),G={transition:M,...R},q={transition:_,paper:O,backdrop:u,...D},Y={slots:G,slotProps:q},[Z,ie]=wt("root",{elementType:TTe,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:B,className:fe(H.root,h),ref:n}),[se,ce]=wt("backdrop",{elementType:CTe,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:B}),[ye,Se]=wt("paper",{elementType:ITe,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:B,className:fe(H.paper,O.className)}),[ne,le]=wt("container",{elementType:OTe,externalForwardedProps:Y,ownerState:B,className:fe(H.container)}),[de,oe]=wt("transition",{elementType:hh,externalForwardedProps:Y,ownerState:B,additionalProps:{appear:!0,in:E,timeout:A,role:"presentation"}});return k.jsx(Z,{closeAfterTransition:!0,slots:{backdrop:se},slotProps:{backdrop:{transitionDuration:A,as:c,...ce}},disableEscapeKeyDown:m,onClose:C,open:E,onClick:V,...ie,...N,children:k.jsx(de,{...oe,children:k.jsx(ne,{onMouseDown:L,...le,children:k.jsx(ye,{as:I,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":W,"aria-modal":l,...Se,children:k.jsx(yne.Provider,{value:K,children:f})})})})})});function PTe(e){return qe("MuiDialogActions",e)}Ke("MuiDialogActions",["root","spacing"]);const ATe=e=>{const{classes:t,disableSpacing:n}=e;return Me({root:["root",!n&&"spacing"]},PTe,t)},MTe=ae("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}}}]}),Px=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...a}=r,s={...r,disableSpacing:i},l=ATe(s);return k.jsx(MTe,{className:fe(l.root,o),ownerState:s,ref:n,...a})});function RTe(e){return qe("MuiDialogContent",e)}Ke("MuiDialogContent",["root","dividers"]);function DTe(e){return qe("MuiDialogTitle",e)}const kTe=Ke("MuiDialogTitle",["root"]),_Te=e=>{const{classes:t,dividers:n}=e;return Me({root:["root",n&&"dividers"]},RTe,t)},$Te=ae("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(dt(({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:{[`.${kTe.root} + &`]:{paddingTop:0}}}]}))),Ax=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...a}=r,s={...r,dividers:i},l=_Te(s);return k.jsx($Te,{className:fe(l.root,o),ownerState:s,ref:n,...a})});function NTe(e){return qe("MuiDialogContentText",e)}Ke("MuiDialogContentText",["root"]);const LTe=e=>{const{classes:t}=e,r=Me({root:["root"]},NTe,t);return{...t,...r}},FTe=ae(at,{shouldForwardProp:e=>ui(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),r6=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiDialogContentText"}),{children:o,className:i,...a}=r,s=LTe(a);return k.jsx(FTe,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:a,className:fe(s.root,i),...r,classes:s})}),jTe=e=>{const{classes:t}=e;return Me({root:["root"]},DTe,t)},BTe=ae(at,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),ZE=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiDialogTitle"}),{className:o,id:i,...a}=r,s=r,l=jTe(s),{titleId:c=i}=x.useContext(yne);return k.jsx(BTe,{component:"h2",className:fe(l.root,o),ownerState:s,ref:n,variant:"h6",id:i??c,...a})});function zTe(e){return qe("MuiDivider",e)}const o6=Ke("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),VTe=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Me({root:["root",t&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},zTe,r)},HTe=ae("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]}})(dt(({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)`:Nt(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%"}}}]}))),UTe=ae("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(dt(({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)`}}]}))),ji=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,orientation:s="horizontal",component:l=i||s==="vertical"?"div":"hr",flexItem:c=!1,light:u=!1,role:f=l!=="hr"?"separator":void 0,textAlign:h="center",variant:m="fullWidth",...g}=r,y={...r,absolute:o,component:l,flexItem:c,light:u,orientation:s,role:f,textAlign:h,variant:m},v=VTe(y);return k.jsx(HTe,{as:l,className:fe(v.root,a),role:f,ref:n,ownerState:y,"aria-orientation":f==="separator"&&(l!=="hr"||s==="vertical")?s:void 0,...g,children:i?k.jsx(UTe,{className:v.wrapper,ownerState:y,children:i}):null})});ji&&(ji.muiSkipListHighlight=!0);function GTe(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=ns(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const c=i.getComputedStyle(t);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const c=a.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function qTe(e){return typeof e=="function"?e():e}function w1(e,t,n){const r=qTe(n),o=GTe(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const WTe=x.forwardRef(function(t,n){const r=Lr(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:u="down",easing:f=o,in:h,onEnter:m,onEntered:g,onEntering:y,onExit:v,onExited:w,onExiting:C,style:E,timeout:I=i,TransitionComponent:O=as,...P}=t,R=x.useRef(null),D=en(_f(l),R,n),M=W=>K=>{W&&(K===void 0?W(R.current):W(R.current,K))},A=M((W,K)=>{w1(u,W,c),Qj(W),m&&m(W,K)}),_=M((W,K)=>{const G=Ef({timeout:I,style:E,easing:f},{mode:"enter"});W.style.webkitTransition=r.transitions.create("-webkit-transform",{...G}),W.style.transition=r.transitions.create("transform",{...G}),W.style.webkitTransform="none",W.style.transform="none",y&&y(W,K)}),N=M(g),B=M(C),H=M(W=>{const K=Ef({timeout:I,style:E,easing:f},{mode:"exit"});W.style.webkitTransition=r.transitions.create("-webkit-transform",K),W.style.transition=r.transitions.create("transform",K),w1(u,W,c),v&&v(W)}),j=M(W=>{W.style.webkitTransition="",W.style.transition="",w&&w(W)}),L=W=>{a&&a(R.current,W)},V=x.useCallback(()=>{R.current&&w1(u,R.current,c)},[u,c]);return x.useEffect(()=>{if(h||u==="down"||u==="right")return;const W=$h(()=>{R.current&&w1(u,R.current,c)}),K=ns(R.current);return K.addEventListener("resize",W),()=>{W.clear(),K.removeEventListener("resize",W)}},[u,h,c]),x.useEffect(()=>{h||V()},[h,V]),k.jsx(O,{nodeRef:R,onEnter:A,onEntered:N,onEntering:_,onExit:H,onExited:j,onExiting:B,addEndListener:L,appear:s,in:h,timeout:I,...P,children:(W,{ownerState:K,...G})=>x.cloneElement(l,{ref:D,style:{visibility:W==="exited"&&!h?"hidden":void 0,...E,...l.props.style},...G})})});function KTe(e){return qe("MuiDrawer",e)}Ke("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const vne=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},YTe=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root",`anchor${Oe(n)}`],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Oe(n)}`,r!=="temporary"&&`paperAnchorDocked${Oe(n)}`]};return Me(o,KTe,t)},QTe=ae(lv,{name:"MuiDrawer",slot:"Root",overridesResolver:vne})(dt(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),XTe=ae("div",{shouldForwardProp:ui,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:vne})({flex:"0 0 auto"}),JTe=ae(go,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Oe(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Oe(n.anchor)}`]]}})(dt(({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}`}}]}))),bne={left:"right",right:"left",top:"down",bottom:"up"};function ZTe(e){return["left","right"].includes(e)}function eOe({direction:e},t){return e==="rtl"&&ZTe(t)?bne[t]:t}const tOe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiDrawer"}),o=Lr(),i=vr(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:u,elevation:f=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:m,...g}={},onClose:y,open:v=!1,PaperProps:w={},SlideProps:C,TransitionComponent:E,transitionDuration:I=a,variant:O="temporary",slots:P={},slotProps:R={},...D}=r,M=x.useRef(!1);x.useEffect(()=>{M.current=!0},[]);const A=eOe({direction:i?"rtl":"ltr"},s),N={...r,anchor:s,elevation:f,open:v,variant:O,...D},B=YTe(N),H={slots:{transition:E,...P},slotProps:{paper:w,transition:C,...R,backdrop:qj(R.backdrop||{...l,...m},{transitionDuration:I})}},[j,L]=wt("root",{ref:n,elementType:QTe,className:fe(B.root,B.modal,u),shouldForwardComponentProp:!0,ownerState:N,externalForwardedProps:{...H,...D,...g},additionalProps:{open:v,onClose:y,hideBackdrop:h,slots:{backdrop:H.slots.backdrop},slotProps:{backdrop:H.slotProps.backdrop}}}),[V,W]=wt("paper",{elementType:JTe,shouldForwardComponentProp:!0,className:fe(B.paper,w.className),ownerState:N,externalForwardedProps:H,additionalProps:{elevation:O==="temporary"?f:0,square:!0}}),[K,G]=wt("docked",{elementType:XTe,ref:n,className:fe(B.root,B.docked,u),ownerState:N,externalForwardedProps:H,additionalProps:D}),[q,Y]=wt("transition",{elementType:WTe,ownerState:N,externalForwardedProps:H,additionalProps:{in:v,direction:bne[A],timeout:I,appear:M.current}}),Z=k.jsx(V,{...W,children:c});if(O==="permanent")return k.jsx(K,{...G,children:Z});const ie=k.jsx(q,{...Y,children:Z});return O==="persistent"?k.jsx(K,{...G,children:ie}):k.jsx(j,{...L,children:ie})});function nOe(e){return qe("MuiFab",e)}const i6=Ke("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),rOe=e=>{const{color:t,variant:n,classes:r,size:o}=e,i={root:["root",n,`size${Oe(o)}`,t==="inherit"?"colorInherit":t]},a=Me(i,nOe,r);return{...r,...a}},oOe=ae(la,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>ui(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Oe(n.size)}`],n.color==="inherit"&&t.colorInherit,t[Oe(n.size)],t[n.color]]}})(dt(({theme:e})=>{var t,n;return{...e.typography.button,minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.grey[900]:(n=(t=e.palette).getContrastText)==null?void 0:n.call(t,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${i6.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]}}),dt(({theme:e})=>({variants:[...Object.entries(e.palette).filter(er(["dark","contrastText"])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),dt(({theme:e})=>({[`&.${i6.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),Lh=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiFab"}),{children:o,className:i,color:a="default",component:s="button",disabled:l=!1,disableFocusRipple:c=!1,focusVisibleClassName:u,size:f="large",variant:h="circular",...m}=r,g={...r,color:a,component:s,disabled:l,disableFocusRipple:c,size:f,variant:h},y=rOe(g);return k.jsx(oOe,{className:fe(y.root,i),component:s,disabled:l,focusRipple:!c,focusVisibleClassName:fe(y.focusVisible,u),ownerState:g,ref:n,...m,classes:y,children:o})}),iOe=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:a,multiline:s}=e,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${Oe(i)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},c=Me(l,C1e,t);return{...t,...c}},aOe=ae(lI,{shouldForwardProp:e=>ui(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...aI(e,t),!n.disableUnderline&&t.underline]}})(dt(({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)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Ua.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ua.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.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"},[`&.${Ua.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ua.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(.${Ua.disabled}, .${Ua.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ua.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(er()).map(([a])=>{var s;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[a])==null?void 0:s.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:s})=>a.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),sOe=ae(cI,{name:"MuiFilledInput",slot:"Input",overridesResolver:sI})(dt(({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}}]}))),cB=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:f,slots:h={},type:m="text",...g}=r,y={...r,disableUnderline:o,fullWidth:s,inputComponent:c,multiline:u,type:m},v=iOe(r),w={root:{ownerState:y},input:{ownerState:y}},C=f??a?si(w,f??a):w,E=h.root??i.Root??aOe,I=h.input??i.Input??sOe;return k.jsx(iw,{slots:{root:E,input:I},slotProps:C,fullWidth:s,inputComponent:c,multiline:u,ref:n,type:m,...g,classes:v})});cB.muiName="Input";function lOe(e){return qe("MuiFormControl",e)}Ke("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const cOe=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Oe(n)}`,r&&"fullWidth"]};return Me(o,lOe,t)},uOe=ae("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Oe(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Fh=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:h=!1,margin:m="none",required:g=!1,size:y="medium",variant:v="outlined",...w}=r,C={...r,color:a,component:s,disabled:l,error:c,fullWidth:f,hiddenLabel:h,margin:m,required:g,size:y,variant:v},E=cOe(C),[I,O]=x.useState(()=>{let j=!1;return o&&x.Children.forEach(o,L=>{if(!Rg(L,["Input","Select"]))return;const V=Rg(L,["Select"])?L.props.input:L;V&&v1e(V.props)&&(j=!0)}),j}),[P,R]=x.useState(()=>{let j=!1;return o&&x.Children.forEach(o,L=>{Rg(L,["Input","Select"])&&(XE(L.props,!0)||XE(L.props.inputProps,!0))&&(j=!0)}),j}),[D,M]=x.useState(!1);l&&D&&M(!1);const A=u!==void 0&&!l?u:D;let _;x.useRef(!1);const N=x.useCallback(()=>{R(!0)},[]),B=x.useCallback(()=>{R(!1)},[]),H=x.useMemo(()=>({adornedStart:I,setAdornedStart:O,color:a,disabled:l,error:c,filled:P,focused:A,fullWidth:f,hiddenLabel:h,size:y,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:B,onFilled:N,registerEffect:_,required:g,variant:v}),[I,a,l,c,P,A,f,h,_,B,N,g,y,v]);return k.jsx(iI.Provider,{value:H,children:k.jsx(uOe,{as:s,ownerState:C,className:fe(E.root,i),ref:n,...w,children:o})})});function dOe(e){return qe("MuiFormControlLabel",e)}const hg=Ke("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),fOe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${Oe(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Me(a,dOe,t)},pOe=ae("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hg.label}`]:t.label},t.root,t[`labelPlacement${Oe(n.labelPlacement)}`]]}})(dt(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${hg.disabled}`]:{cursor:"default"},[`& .${hg.label}`]:{[`&.${hg.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}}]}))),hOe=ae("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(dt(({theme:e})=>({[`&.${hg.error}`]:{color:(e.vars||e).palette.error.main}}))),os=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiFormControlLabel"}),{checked:o,className:i,componentsProps:a={},control:s,disabled:l,disableTypography:c,inputRef:u,label:f,labelPlacement:h="end",name:m,onChange:g,required:y,slots:v={},slotProps:w={},value:C,...E}=r,I=sl(),O=l??s.props.disabled??(I==null?void 0:I.disabled),P=y??s.props.required,R={disabled:O,required:P};["checked","name","onChange","value","inputRef"].forEach(j=>{typeof s.props[j]>"u"&&typeof r[j]<"u"&&(R[j]=r[j])});const D=Nf({props:r,muiFormControl:I,states:["error"]}),M={...r,disabled:O,labelPlacement:h,required:P,error:D.error},A=fOe(M),_={slots:v,slotProps:{...a,...w}},[N,B]=wt("typography",{elementType:at,externalForwardedProps:_,ownerState:M});let H=f;return H!=null&&H.type!==at&&!c&&(H=k.jsx(N,{component:"span",...B,className:fe(A.label,B==null?void 0:B.className),children:H})),k.jsxs(pOe,{className:fe(A.root,i),ownerState:M,ref:n,...E,children:[x.cloneElement(s,R),P?k.jsxs("div",{children:[H,k.jsxs(hOe,{ownerState:M,"aria-hidden":!0,className:A.asterisk,children:[" ","*"]})]}):H]})});function mOe(e){return qe("MuiFormGroup",e)}Ke("MuiFormGroup",["root","row","error"]);const gOe=e=>{const{classes:t,row:n,error:r}=e;return Me({root:["root",n&&"row",r&&"error"]},mOe,t)},yOe=ae("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"}}]}),Mx=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1,...a}=r,s=sl(),l=Nf({props:r,muiFormControl:s,states:["error"]}),c={...r,row:i,error:l.error},u=gOe(c);return k.jsx(yOe,{className:fe(u.root,o),ownerState:c,ref:n,...a})});function vOe(e){return qe("MuiFormHelperText",e)}const a6=Ke("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var s6;const bOe=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${Oe(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Me(c,vOe,t)},xOe=ae("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Oe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(dt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${a6.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${a6.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}}]}))),aw=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p",disabled:s,error:l,filled:c,focused:u,margin:f,required:h,variant:m,...g}=r,y=sl(),v=Nf({props:r,muiFormControl:y,states:["variant","size","disabled","error","filled","focused","required"]}),w={...r,component:a,contained:v.variant==="filled"||v.variant==="outlined",variant:v.variant,size:v.size,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required};delete w.ownerState;const C=bOe(w);return k.jsx(xOe,{as:a,className:fe(C.root,i),ref:n,...g,ownerState:w,children:o===" "?s6||(s6=k.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function SOe(e){return qe("MuiFormLabel",e)}const X0=Ke("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),wOe=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${Oe(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return Me(l,SOe,t)},COe=ae("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(dt(({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(er()).map(([t])=>({props:{color:t},style:{[`&.${X0.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${X0.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${X0.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),EOe=ae("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(dt(({theme:e})=>({[`&.${X0.error}`]:{color:(e.vars||e).palette.error.main}}))),TOe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiFormLabel"}),{children:o,className:i,color:a,component:s="label",disabled:l,error:c,filled:u,focused:f,required:h,...m}=r,g=sl(),y=Nf({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),v={...r,color:y.color||"primary",component:s,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required},w=wOe(v);return k.jsxs(COe,{as:s,ownerState:v,className:fe(w.root,i),ref:n,...m,children:[o,y.required&&k.jsxs(EOe,{ownerState:v,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]})}),me=j0e({createStyledComponent:ae("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>pt({props:e,name:"MuiGrid"}),useTheme:Lr});function EN(e){return`scale(${e}, ${e**2})`}const OOe={entering:{opacity:1,transform:EN(1)},entered:{opacity:1,transform:"none"}},kR=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),mh=x.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:h,onExiting:m,style:g,timeout:y="auto",TransitionComponent:v=as,...w}=t,C=ko(),E=x.useRef(),I=Lr(),O=x.useRef(null),P=en(O,_f(i),n),R=j=>L=>{if(j){const V=O.current;L===void 0?j(V):j(V,L)}},D=R(u),M=R((j,L)=>{Qj(j);const{duration:V,delay:W,easing:K}=Ef({style:g,timeout:y,easing:a},{mode:"enter"});let G;y==="auto"?(G=I.transitions.getAutoHeightDuration(j.clientHeight),E.current=G):G=V,j.style.transition=[I.transitions.create("opacity",{duration:G,delay:W}),I.transitions.create("transform",{duration:kR?G:G*.666,delay:W,easing:K})].join(","),l&&l(j,L)}),A=R(c),_=R(m),N=R(j=>{const{duration:L,delay:V,easing:W}=Ef({style:g,timeout:y,easing:a},{mode:"exit"});let K;y==="auto"?(K=I.transitions.getAutoHeightDuration(j.clientHeight),E.current=K):K=L,j.style.transition=[I.transitions.create("opacity",{duration:K,delay:V}),I.transitions.create("transform",{duration:kR?K:K*.666,delay:kR?V:V||K*.333,easing:W})].join(","),j.style.opacity=0,j.style.transform=EN(.75),f&&f(j)}),B=R(h),H=j=>{y==="auto"&&C.start(E.current||0,j),r&&r(O.current,j)};return k.jsx(v,{appear:o,in:s,nodeRef:O,onEnter:M,onEntered:A,onEntering:D,onExit:N,onExited:B,onExiting:_,addEndListener:H,timeout:y==="auto"?null:y,...w,children:(j,{ownerState:L,...V})=>x.cloneElement(i,{style:{opacity:0,transform:EN(.75),visibility:j==="exited"&&!s?"hidden":void 0,...OOe[j],...g,...i.props.style},ref:P,...V})})});mh&&(mh.muiSupportAuto=!0);function IOe(e){return qe("MuiImageList",e)}Ke("MuiImageList",["root","masonry","quilted","standard","woven"]);const xne=x.createContext({}),POe=e=>{const{classes:t,variant:n}=e;return Me({root:["root",n]},IOe,t)},AOe=ae("ul",{name:"MuiImageList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({display:"grid",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch",variants:[{props:{variant:"masonry"},style:{display:"block"}}]}),Sne=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiImageList"}),{children:o,className:i,cols:a=2,component:s="ul",rowHeight:l="auto",gap:c=4,style:u,variant:f="standard",...h}=r,m=x.useMemo(()=>({rowHeight:l,gap:c,variant:f}),[l,c,f]),g=f==="masonry"?{columnCount:a,columnGap:c,...u}:{gridTemplateColumns:`repeat(${a}, 1fr)`,gap:c,...u},y={...r,component:s,gap:c,rowHeight:l,variant:f},v=POe(y);return k.jsx(AOe,{as:s,className:fe(v.root,v[f],i),ref:n,style:g,ownerState:y,...h,children:k.jsx(xne.Provider,{value:m,children:o})})});function MOe(e){return qe("MuiImageListItem",e)}const _R=Ke("MuiImageListItem",["root","img","standard","woven","masonry","quilted"]),ROe=e=>{const{classes:t,variant:n}=e;return Me({root:["root",n],img:["img"]},MOe,t)},DOe=ae("li",{name:"MuiImageListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_R.img}`]:t.img},t.root,t[n.variant]]}})({display:"block",position:"relative",[`& .${_R.img}`]:{objectFit:"cover",width:"100%",height:"100%",display:"block"},variants:[{props:{variant:"standard"},style:{display:"flex",flexDirection:"column"}},{props:{variant:"woven"},style:{height:"100%",alignSelf:"center","&:nth-of-type(even)":{height:"70%"}}},{props:{variant:"standard"},style:{[`& .${_R.img}`]:{height:"auto",flexGrow:1}}}]}),wne=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiImageListItem"}),{children:o,className:i,cols:a=1,component:s="li",rows:l=1,style:c,...u}=r,{rowHeight:f="auto",gap:h,variant:m}=x.useContext(xne);let g="auto";m==="woven"?g=void 0:f!=="auto"&&(g=f*l+h*(l-1));const y={...r,cols:a,component:s,gap:h,rowHeight:f,rows:l,variant:m},v=ROe(y);return k.jsx(DOe,{as:s,className:fe(v.root,v[m],i),ref:n,style:{height:g,gridColumnEnd:m!=="masonry"?`span ${a}`:void 0,gridRowEnd:m!=="masonry"?`span ${l}`:void 0,marginBottom:m==="masonry"?h:void 0,breakInside:m==="masonry"?"avoid":void 0,...c},ownerState:y,...u,children:x.Children.map(o,w=>x.isValidElement(w)?w.type==="img"||Rg(w,["Image"])?x.cloneElement(w,{className:fe(v.img,w.props.className)}):w:null)})});function kOe(e){return qe("MuiImageListItemBar",e)}Ke("MuiImageListItemBar",["root","positionBottom","positionTop","positionBelow","actionPositionLeft","actionPositionRight","titleWrap","titleWrapBottom","titleWrapTop","titleWrapBelow","titleWrapActionPosLeft","titleWrapActionPosRight","title","subtitle","actionIcon","actionIconActionPosLeft","actionIconActionPosRight"]);const _Oe=e=>{const{classes:t,position:n,actionIcon:r,actionPosition:o}=e,i={root:["root",`position${Oe(n)}`,`actionPosition${Oe(o)}`],titleWrap:["titleWrap",`titleWrap${Oe(n)}`,r&&`titleWrapActionPos${Oe(o)}`],title:["title"],subtitle:["subtitle"],actionIcon:["actionIcon",`actionIconActionPos${Oe(o)}`]};return Me(i,kOe,t)},$Oe=ae("div",{name:"MuiImageListItemBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Oe(n.position)}`]]}})(dt(({theme:e})=>({position:"absolute",left:0,right:0,background:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",fontFamily:e.typography.fontFamily,variants:[{props:{position:"bottom"},style:{bottom:0}},{props:{position:"top"},style:{top:0}},{props:{position:"below"},style:{position:"relative",background:"transparent",alignItems:"normal"}}]}))),NOe=ae("div",{name:"MuiImageListItemBar",slot:"TitleWrap",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.titleWrap,t[`titleWrap${Oe(n.position)}`],n.actionIcon&&t[`titleWrapActionPos${Oe(n.actionPosition)}`]]}})(dt(({theme:e})=>({flexGrow:1,padding:"12px 16px",color:(e.vars||e).palette.common.white,overflow:"hidden",variants:[{props:{position:"below"},style:{padding:"6px 0 12px",color:"inherit"}},{props:({ownerState:t})=>t.actionIcon&&t.actionPosition==="left",style:{paddingLeft:0}},{props:({ownerState:t})=>t.actionIcon&&t.actionPosition==="right",style:{paddingRight:0}}]}))),LOe=ae("div",{name:"MuiImageListItemBar",slot:"Title",overridesResolver:(e,t)=>t.title})(dt(({theme:e})=>({fontSize:e.typography.pxToRem(16),lineHeight:"24px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),FOe=ae("div",{name:"MuiImageListItemBar",slot:"Subtitle",overridesResolver:(e,t)=>t.subtitle})(dt(({theme:e})=>({fontSize:e.typography.pxToRem(12),lineHeight:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),jOe=ae("div",{name:"MuiImageListItemBar",slot:"ActionIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.actionIcon,t[`actionIconActionPos${Oe(n.actionPosition)}`]]}})({variants:[{props:{actionPosition:"left"},style:{order:-1}}]}),BOe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiImageListItemBar"}),{actionIcon:o,actionPosition:i="right",className:a,subtitle:s,title:l,position:c="bottom",...u}=r,f={...r,position:c,actionPosition:i},h=_Oe(f);return k.jsxs($Oe,{ownerState:f,className:fe(h.root,a),ref:n,...u,children:[k.jsxs(NOe,{ownerState:f,className:h.titleWrap,children:[k.jsx(LOe,{className:h.title,children:l}),s?k.jsx(FOe,{className:h.subtitle,children:s}):null]}),o?k.jsx(jOe,{ownerState:f,className:h.actionIcon,children:o}):null]})}),zOe=e=>{const{classes:t,disableUnderline:n}=e,o=Me({root:["root",!n&&"underline"],input:["input"]},S1e,t);return{...t,...o}},VOe=ae(lI,{shouldForwardProp:e=>ui(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...aI(e,t),!n.disableUnderline&&t.underline]}})(dt(({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"},[`&.${Kd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Kd.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(.${Kd.disabled}, .${Kd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Kd.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(er()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),HOe=ae(cI,{name:"MuiInput",slot:"Input",overridesResolver:sI})({}),uB=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:f={},type:h="text",...m}=r,g=zOe(r),v={root:{ownerState:{disableUnderline:o}}},w=u??a?si(u??a,v):v,C=f.root??i.Root??VOe,E=f.input??i.Input??HOe;return k.jsx(iw,{slots:{root:C,input:E},slotProps:w,fullWidth:s,inputComponent:l,multiline:c,ref:n,type:h,...m,classes:g})});uB.muiName="Input";function UOe(e){return qe("MuiInputAdornment",e)}const TN=Ke("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var l6;const GOe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Oe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},qOe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${Oe(o)}`,a,r&&"hiddenLabel",i&&`size${Oe(i)}`]};return Me(s,UOe,t)},WOe=ae("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:GOe})(dt(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${TN.positionStart}&:not(.${TN.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),So=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u,...f}=r,h=sl()||{};let m=u;u&&h.variant,h&&!m&&(m=h.variant);const g={...r,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:s,position:c,variant:m},y=qOe(g);return k.jsx(iI.Provider,{value:null,children:k.jsx(WOe,{as:a,ownerState:g,className:fe(y.root,i),ref:n,...f,children:typeof o=="string"&&!l?k.jsx(at,{color:"textSecondary",children:o}):k.jsxs(x.Fragment,{children:[c==="start"?l6||(l6=k.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});function KOe(e){return qe("MuiInputLabel",e)}Ke("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const YOe=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="medium"&&`size${Oe(r)}`,a],asterisk:[s&&"asterisk"]},c=Me(l,KOe,t);return{...t,...c}},QOe=ae(TOe,{shouldForwardProp:e=>ui(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${X0.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]]}})(dt(({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)"}}]}))),jh=x.forwardRef(function(t,n){const r=pt({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:i,shrink:a,variant:s,className:l,...c}=r,u=sl();let f=a;typeof f>"u"&&u&&(f=u.filled||u.focused||u.adornedStart);const h=Nf({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),m={...r,disableAnimation:o,formControl:u,shrink:f,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=YOe(m);return k.jsx(QOe,{"data-shrink":f,ref:n,className:fe(g.root,l),...c,ownerState:m,classes:g})});function XOe(e){return qe("MuiLinearProgress",e)}Ke("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const ON=4,IN=il` 0% { left: -35%; right: 100%; @@ -187,9 +187,9 @@ export default theme;`}function Q$(e={},...t){const{breakpoints:n,mixins:r={},sp left: 100%; right: -90%; } -`,XOe=typeof TN!="string"?kf` - animation: ${TN} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `:null,ON=rl` +`,JOe=typeof IN!="string"?kf` + animation: ${IN} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `:null,PN=il` 0% { left: -200%; right: 100%; @@ -204,9 +204,9 @@ export default theme;`}function Q$(e={},...t){const{breakpoints:n,mixins:r={},sp left: 107%; right: -8%; } -`,ZOe=typeof ON!="string"?kf` - animation: ${ON} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `:null,IN=rl` +`,ZOe=typeof PN!="string"?kf` + animation: ${PN} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `:null,AN=il` 0% { opacity: 1; background-position: 0 -23px; @@ -221,9 +221,9 @@ export default theme;`}function Q$(e={},...t){const{breakpoints:n,mixins:r={},sp opacity: 1; background-position: -200px -23px; } -`,JOe=typeof IN!="string"?kf` - animation: ${IN} 3s infinite linear; - `:null,eIe=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${Te(r)}`,n],dashed:["dashed",`dashedColor${Te(r)}`],bar1:["bar","bar1",`barColor${Te(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${Te(r)}`,n==="buffer"&&`color${Te(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Me(o,QOe,t)},cB=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?Vu(e.palette[t].main,.62):zu(e.palette[t].main,.5),tIe=ae("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Te(n.color)}`],t[n.variant]]}})(dt(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Jn()).map(([t])=>({props:{color:t},style:{backgroundColor:cB(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),nIe=ae("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Te(n.color)}`]]}})(dt(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(Jn()).map(([t])=>{const n=cB(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),JOe||{animation:`${IN} 3s infinite linear`}),rIe=ae("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${Te(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(dt(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(Jn()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${EN}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${EN}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:XOe||{animation:`${TN} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),oIe=ae("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${Te(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(dt(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(Jn()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(Jn()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:cB(e,t),transition:`transform .${EN}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:ZOe||{animation:`${ON} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),wne=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:a,valueBuffer:s,variant:l="indeterminate",...c}=r,u={...r,color:i,variant:l},f=eIe(u),h=yr(),m={},g={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&a!==void 0){m["aria-valuenow"]=Math.round(a),m["aria-valuemin"]=0,m["aria-valuemax"]=100;let y=a-100;h&&(y=-y),g.bar1.transform=`translateX(${y}%)`}if(l==="buffer"&&s!==void 0){let y=(s||0)-100;h&&(y=-y),g.bar2.transform=`translateX(${y}%)`}return k.jsxs(tIe,{className:fe(f.root,o),ownerState:u,role:"progressbar",...m,ref:n,...c,children:[l==="buffer"?k.jsx(nIe,{className:f.dashed,ownerState:u}):null,k.jsx(rIe,{className:f.bar1,ownerState:u,style:g.bar1}),l==="determinate"?null:k.jsx(oIe,{className:f.bar2,ownerState:u,style:g.bar2})]})}),Ks=x.createContext({});function iIe(e){return qe("MuiList",e)}Ke("MuiList",["root","padding","dense","subheader"]);const aIe=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Me({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},iIe,t)},sIe=ae("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}}]}),ai=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...u}=r,f=x.useMemo(()=>({dense:s}),[s]),h={...r,component:a,dense:s,disablePadding:l},m=aIe(h);return k.jsx(Ks.Provider,{value:f,children:k.jsxs(sIe,{as:a,className:fe(m.root,i),ref:n,ownerState:h,...u,children:[c,o]})})});function lIe(e){return qe("MuiListItem",e)}Ke("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function cIe(e){return qe("MuiListItemButton",e)}const sg=Ke("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),uIe=(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]},dIe=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e,c=Me({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",s&&"selected"]},cIe,n);return{...n,...c}},fIe=ae(la,{shouldForwardProp:e=>ui(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:uIe})(dt(({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"}},[`&.${sg.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Nt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${sg.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Nt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${sg.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Nt(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})`:Nt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${sg.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sg.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}}]}))),Nl=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:a="div",children:s,dense:l=!1,disableGutters:c=!1,divider:u=!1,focusVisibleClassName:f,selected:h=!1,className:m,...g}=r,y=x.useContext(Ks),v=x.useMemo(()=>({dense:l||y.dense||!1,alignItems:o,disableGutters:c}),[o,y.dense,l,c]),w=x.useRef(null);In(()=>{i&&w.current&&w.current.focus()},[i]);const C={...r,alignItems:o,dense:v.dense,disableGutters:c,divider:u,selected:h},E=dIe(C),I=en(w,n);return k.jsx(Ks.Provider,{value:v,children:k.jsx(fIe,{ref:I,href:g.href||g.to,component:(g.href||g.to)&&a==="div"?"button":a,focusVisibleClassName:fe(E.focusVisible,f),ownerState:C,className:fe(E.root,m),...g,classes:E,children:s})})});function pIe(e){return qe("MuiListItemSecondaryAction",e)}Ke("MuiListItemSecondaryAction",["root","disableGutters"]);const hIe=e=>{const{disableGutters:t,classes:n}=e;return Me({root:["root",t&&"disableGutters"]},pIe,n)},mIe=ae("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}}]}),Cne=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,a=x.useContext(Ks),s={...r,disableGutters:a.disableGutters},l=hIe(s);return k.jsx(mIe,{className:fe(l.root,o),ownerState:s,ref:n,...i})});Cne.muiName="ListItemSecondaryAction";const gIe=(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]},yIe=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:s}=e;return Me({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},lIe,n)},vIe=ae("div",{name:"MuiListItem",slot:"Root",overridesResolver:gIe})(dt(({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:{[`& > .${sg.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}}]}))),bIe=ae("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Co=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiListItem"}),{alignItems:o="center",children:i,className:a,component:s,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:f,...h}={},dense:m=!1,disableGutters:g=!1,disablePadding:y=!1,divider:v=!1,secondaryAction:w,slotProps:C={},slots:E={},...I}=r,O=x.useContext(Ks),P=x.useMemo(()=>({dense:m||O.dense||!1,alignItems:o,disableGutters:g}),[o,O.dense,m,g]),R=x.useRef(null),D=x.Children.toArray(i),M=D.length&&Mg(D[D.length-1],["ListItemSecondaryAction"]),A={...r,alignItems:o,dense:P.dense,disableGutters:g,disablePadding:y,divider:v,hasSecondaryAction:M},_=yIe(A),N=en(R,n),B=E.root||l.Root||vIe,H=C.root||c.root||{},j={className:fe(_.root,H.className,a),...I};let L=s||"li";return M?(L=!j.component&&!s?"div":L,u==="li"&&(L==="li"?L="div":j.component==="li"&&(j.component="div")),k.jsx(Ks.Provider,{value:P,children:k.jsxs(bIe,{as:u,className:fe(_.container,f),ref:N,ownerState:A,...h,children:[k.jsx(B,{...H,...!Ex(B)&&{as:L,ownerState:{...A,...H.ownerState}},...j,children:D}),D.pop()]})})):k.jsx(Ks.Provider,{value:P,children:k.jsxs(B,{...H,as:L,ref:N,...!Ex(B)&&{ownerState:{...A,...H.ownerState}},...j,children:[D,w&&k.jsx(Cne,{children:w})]})})});function xIe(e){return qe("MuiListItemAvatar",e)}Ke("MuiListItemAvatar",["root","alignItemsFlexStart"]);const SIe=e=>{const{alignItems:t,classes:n}=e;return Me({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},xIe,n)},wIe=ae("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})({minWidth:56,flexShrink:0,variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}),uB=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiListItemAvatar"}),{className:o,...i}=r,a=x.useContext(Ks),s={...r,alignItems:a.alignItems},l=SIe(s);return k.jsx(wIe,{className:fe(l.root,o),ownerState:s,ref:n,...i})});function CIe(e){return qe("MuiListItemIcon",e)}const l6=Ke("MuiListItemIcon",["root","alignItemsFlexStart"]),EIe=e=>{const{alignItems:t,classes:n}=e;return Me({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},CIe,n)},TIe=ae("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(dt(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),el=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiListItemIcon"}),{className:o,...i}=r,a=x.useContext(Ks),s={...r,alignItems:a.alignItems},l=EIe(s);return k.jsx(TIe,{className:fe(l.root,o),ownerState:s,ref:n,...i})});function OIe(e){return qe("MuiListItemText",e)}const Np=Ke("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),IIe=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Me({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},OIe,t)},PIe=ae("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Np.primary}`]:t.primary},{[`& .${Np.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,[`.${KE.root}:where(& .${Np.primary})`]:{display:"block"},[`.${KE.root}:where(& .${Np.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Wr=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f,slots:h={},slotProps:m={},...g}=r,{dense:y}=x.useContext(Ks);let v=l??o,w=u;const C={...r,disableTypography:a,inset:s,primary:!!v,secondary:!!w,dense:y},E=IIe(C),I={slots:h,slotProps:{primary:c,secondary:f,...m}},[O,P]=St("root",{className:fe(E.root,i),elementType:PIe,externalForwardedProps:{...I,...g},ownerState:C,ref:n}),[R,D]=St("primary",{className:E.primary,elementType:at,externalForwardedProps:I,ownerState:C}),[M,A]=St("secondary",{className:E.secondary,elementType:at,externalForwardedProps:I,ownerState:C});return v!=null&&v.type!==at&&!a&&(v=k.jsx(R,{variant:y?"body2":"body1",component:D!=null&&D.variant?void 0:"span",...D,children:v})),w!=null&&w.type!==at&&!a&&(w=k.jsx(M,{variant:"body2",color:"textSecondary",...A,children:w})),k.jsxs(O,{...P,children:[v,w]})});function kR(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function c6(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ene(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 Wb(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!Ene(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const cI=x.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu",...h}=t,m=x.useRef(null),g=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});In(()=>{o&&m.current.focus()},[o]),x.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(E,{direction:I})=>{const O=!m.current.style.width;if(E.clientHeight{const I=m.current,O=E.key;if(E.ctrlKey||E.metaKey||E.altKey){u&&u(E);return}const R=Mr(I).activeElement;if(O==="ArrowDown")E.preventDefault(),Wb(I,R,c,l,kR);else if(O==="ArrowUp")E.preventDefault(),Wb(I,R,c,l,c6);else if(O==="Home")E.preventDefault(),Wb(I,null,c,l,kR);else if(O==="End")E.preventDefault(),Wb(I,null,c,l,c6);else if(O.length===1){const D=g.current,M=O.toLowerCase(),A=performance.now();D.keys.length>0&&(A-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&M!==D.keys[0]&&(D.repeating=!1)),D.lastTime=A,D.keys.push(M);const _=R&&!D.repeating&&Ene(R,D);D.previousKeyMatched&&(_||Wb(I,R,!1,l,kR,D))?E.preventDefault():D.previousKeyMatched=!1}u&&u(E)},v=en(m,n);let w=-1;x.Children.forEach(a,(E,I)=>{if(!x.isValidElement(E)){w===I&&(w+=1,w>=a.length&&(w=-1));return}E.props.disabled||(f==="selectedMenu"&&E.props.selected||w===-1)&&(w=I),w===I&&(E.props.disabled||E.props.muiSkipListHighlight||E.type.muiSkipListHighlight)&&(w+=1,w>=a.length&&(w=-1))});const C=x.Children.map(a,(E,I)=>{if(I===w){const O={};return i&&(O.autoFocus=!0),E.props.tabIndex===void 0&&f==="selectedMenu"&&(O.tabIndex=0),x.cloneElement(E,O)}return E});return k.jsx(ai,{role:"menu",ref:v,className:s,onKeyDown:y,tabIndex:o?0:-1,...h,children:C})});function AIe(e){return qe("MuiPopover",e)}Ke("MuiPopover",["root","paper"]);function u6(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function d6(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function f6(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function w1(e){return typeof e=="function"?e():e}const MIe=e=>{const{classes:t}=e;return Me({root:["root"],paper:["paper"]},AIe,t)},RIe=ae(av,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Tne=ae(go,{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}),DIe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:u,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:y={},slots:v={},slotProps:w={},transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:E,transitionDuration:I="auto",TransitionProps:O={},disableScrollLock:P=!1,...R}=r,D=x.useRef(),M={...r,anchorOrigin:a,anchorReference:l,elevation:h,marginThreshold:m,transformOrigin:C,TransitionComponent:E,transitionDuration:I,TransitionProps:O},A=MIe(M),_=x.useCallback(()=>{if(l==="anchorPosition")return s;const le=w1(i),oe=(le&&le.nodeType===1?le:Mr(D.current).body).getBoundingClientRect();return{top:oe.top+u6(oe,a.vertical),left:oe.left+d6(oe,a.horizontal)}},[i,a.horizontal,a.vertical,s,l]),N=x.useCallback(le=>({vertical:u6(le,C.vertical),horizontal:d6(le,C.horizontal)}),[C.horizontal,C.vertical]),B=x.useCallback(le=>{const de={width:le.offsetWidth,height:le.offsetHeight},oe=N(de);if(l==="none")return{top:null,left:null,transformOrigin:f6(oe)};const ue=_();let pe=ue.top-oe.vertical,Ce=ue.left-oe.horizontal;const xe=pe+de.height,Re=Ce+de.width,he=ns(w1(i)),Ie=he.innerHeight-m,ve=he.innerWidth-m;if(m!==null&&peIe){const Oe=xe-Ie;pe-=Oe,oe.vertical+=Oe}if(m!==null&&Ceve){const Oe=Re-ve;Ce-=Oe,oe.horizontal+=Oe}return{top:`${Math.round(pe)}px`,left:`${Math.round(Ce)}px`,transformOrigin:f6(oe)}},[i,l,_,N,m]),[H,j]=x.useState(g),L=x.useCallback(()=>{const le=D.current;if(!le)return;const de=B(le);de.top!==null&&le.style.setProperty("top",de.top),de.left!==null&&(le.style.left=de.left),le.style.transformOrigin=de.transformOrigin,j(!0)},[B]);x.useEffect(()=>(P&&window.addEventListener("scroll",L),()=>window.removeEventListener("scroll",L)),[i,P,L]);const V=()=>{L()},W=()=>{j(!1)};x.useEffect(()=>{g&&L()}),x.useImperativeHandle(o,()=>g?{updatePosition:()=>{L()}}:null,[g,L]),x.useEffect(()=>{if(!g)return;const le=_h(()=>{L()}),de=ns(w1(i));return de.addEventListener("resize",le),()=>{le.clear(),de.removeEventListener("resize",le)}},[i,g,L]);let K=I;const G={slots:{transition:E,...v},slotProps:{transition:O,paper:y,...w}},[q,Y]=St("transition",{elementType:mh,externalForwardedProps:G,ownerState:M,getSlotProps:le=>({...le,onEntering:(de,oe)=>{var ue;(ue=le.onEntering)==null||ue.call(le,de,oe),V()},onExited:de=>{var oe;(oe=le.onExited)==null||oe.call(le,de),W()}}),additionalProps:{appear:!0,in:g}});I==="auto"&&!q.muiSupportAuto&&(K=void 0);const J=f||(i?Mr(w1(i)).body:void 0),[ie,{slots:se,slotProps:ce,...ye}]=St("root",{ref:n,elementType:RIe,externalForwardedProps:{...G,...R},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:v.backdrop},slotProps:{backdrop:Uj(typeof w.backdrop=="function"?w.backdrop(M):w.backdrop,{invisible:!0})},container:J,open:g},ownerState:M,className:fe(A.root,u)}),[Se,ne]=St("paper",{ref:D,className:A.paper,elementType:Tne,externalForwardedProps:G,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:H?void 0:{opacity:0}},ownerState:M});return k.jsx(ie,{...ye,...!Ex(ie)&&{slots:se,slotProps:ce,disableScrollLock:P},children:k.jsx(q,{...Y,timeout:K,children:k.jsx(Se,{...ne,children:c})})})});function kIe(e){return qe("MuiMenu",e)}Ke("MuiMenu",["root","paper","list"]);const _Ie={vertical:"top",horizontal:"right"},$Ie={vertical:"top",horizontal:"left"},NIe=e=>{const{classes:t}=e;return Me({root:["root"],paper:["paper"],list:["list"]},kIe,t)},LIe=ae(DIe,{shouldForwardProp:e=>ui(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),FIe=ae(Tne,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),jIe=ae(cI,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ss=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:a,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:f={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:g,...y}={},variant:v="selectedMenu",slots:w={},slotProps:C={},...E}=r,I=yr(),O={...r,autoFocus:o,disableAutoFocusItem:s,MenuListProps:l,onEntering:g,PaperProps:f,transitionDuration:m,TransitionProps:y,variant:v},P=NIe(O),R=o&&!s&&u,D=x.useRef(null),M=(K,G)=>{D.current&&D.current.adjustStyleForScrollbar(K,{direction:I?"rtl":"ltr"}),g&&g(K,G)},A=K=>{K.key==="Tab"&&(K.preventDefault(),c&&c(K,"tabKeyDown"))};let _=-1;x.Children.map(i,(K,G)=>{x.isValidElement(K)&&(K.props.disabled||(v==="selectedMenu"&&K.props.selected||_===-1)&&(_=G))});const N={slots:w,slotProps:{list:l,transition:y,paper:f,...C}},B=Dn({elementType:w.root,externalSlotProps:C.root,ownerState:O,className:[P.root,a]}),[H,j]=St("paper",{className:P.paper,elementType:FIe,externalForwardedProps:N,shouldForwardComponentProp:!0,ownerState:O}),[L,V]=St("list",{className:fe(P.list,l.className),elementType:jIe,shouldForwardComponentProp:!0,externalForwardedProps:N,getSlotProps:K=>({...K,onKeyDown:G=>{var q;A(G),(q=K.onKeyDown)==null||q.call(K,G)}}),ownerState:O}),W=typeof N.slotProps.transition=="function"?N.slotProps.transition(O):N.slotProps.transition;return k.jsx(LIe,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:I?"right":"left"},transformOrigin:I?_Ie:$Ie,slots:{root:w.root,paper:H,backdrop:w.backdrop,...w.transition&&{transition:w.transition}},slotProps:{root:B,paper:j,backdrop:typeof C.backdrop=="function"?C.backdrop(O):C.backdrop,transition:{...W,onEntering:(...K)=>{var G;M(...K),(G=W==null?void 0:W.onEntering)==null||G.call(W,...K)}}},open:u,ref:n,transitionDuration:m,ownerState:O,...E,classes:h,children:k.jsx(L,{actions:D,autoFocus:o&&(_===-1||s),autoFocusItem:R,variant:v,...V,children:i})})});function BIe(e){return qe("MuiMenuItem",e)}const Kb=Ke("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),zIe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},VIe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=Me({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},BIe,a);return{...a,...l}},HIe=ae(la,{shouldForwardProp:e=>ui(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:zIe})(dt(({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"}},[`&.${Kb.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Nt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Kb.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Nt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Kb.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Nt(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})`:Nt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Kb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Kb.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${r6.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${r6.inset}`]:{marginLeft:52},[`& .${Np.root}`]:{marginTop:0,marginBottom:0},[`& .${Np.inset}`]:{paddingLeft:36},[`& .${l6.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,[`& .${l6.root} svg`]:{fontSize:"1.25rem"}}}]}))),Zt=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:h,...m}=r,g=x.useContext(Ks),y=x.useMemo(()=>({dense:a||g.dense||!1,disableGutters:l}),[g.dense,a,l]),v=x.useRef(null);In(()=>{o&&v.current&&v.current.focus()},[o]);const w={...r,dense:y.dense,divider:s,disableGutters:l},C=VIe(r),E=en(v,n);let I;return r.disabled||(I=f!==void 0?f:-1),k.jsx(Ks.Provider,{value:y,children:k.jsx(HIe,{ref:E,role:u,tabIndex:I,component:i,focusVisibleClassName:fe(C.focusVisible,c),className:fe(C.root,h),...m,ownerState:w,classes:C})})});function UIe(e){return qe("MuiNativeSelect",e)}const dB=Ke("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),GIe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Te(n)}`,i&&"iconOpen",r&&"disabled"]};return Me(s,UIe,t)},One=ae("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${dB.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}}}]})),qIe=ae(One,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ui,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${dB.multiple}`]:t.multiple}]}})({}),Ine=ae("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${dB.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}}]})),WIe=ae(Ine,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Te(n.variant)}`],n.open&&t.iconOpen]}})({}),KIe=x.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard",...c}=t,u={...t,disabled:o,variant:l,error:i},f=GIe(u);return k.jsxs(x.Fragment,{children:[k.jsx(qIe,{ownerState:u,className:fe(f.select,r),disabled:o,ref:s||n,...c}),t.multiple?null:k.jsx(WIe,{as:a,ownerState:u,className:f.icon})]})});var p6;const YIe=ae("fieldset",{shouldForwardProp:ui})({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%"}),QIe=ae("legend",{shouldForwardProp:ui})(dt(({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 XIe(e){const{children:t,classes:n,className:r,label:o,notched:i,...a}=e,s=o!=null&&o!=="",l={...e,notched:i,withLabel:s};return k.jsx(YIe,{"aria-hidden":!0,className:r,ownerState:l,...a,children:k.jsx(QIe,{ownerState:l,children:s?k.jsx("span",{children:o}):p6||(p6=k.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const ZIe=e=>{const{classes:t}=e,r=Me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},S1e,t);return{...t,...r}},JIe=ae(sI,{shouldForwardProp:e=>ui(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:iI})(dt(({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 .${Rs.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Rs.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Rs.focused} .${Rs.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Jn()).map(([n])=>({props:{color:n},style:{[`&.${Rs.focused} .${Rs.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Rs.error} .${Rs.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Rs.disabled} .${Rs.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"}}]}})),ePe=ae(XIe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(dt(({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}})),tPe=ae(lI,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:aI})(dt(({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}}]}))),fB=x.forwardRef(function(t,n){var r;const o=pt({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:u,slots:f={},type:h="text",...m}=o,g=ZIe(o),y=il(),v=Nf({props:o,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w={...o,color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:y,fullWidth:a,hiddenLabel:v.hiddenLabel,multiline:c,size:v.size,type:h},C=f.root??i.Root??JIe,E=f.input??i.Input??tPe;return k.jsx(ow,{slots:{root:C,input:E},renderSuffix:I=>k.jsx(ePe,{ownerState:w,className:g.notchedOutline,label:l!=null&&l!==""&&v.required?r||(r=k.jsxs(x.Fragment,{children:[l," ","*"]})):l,notched:typeof u<"u"?u:!!(I.startAdornment||I.filled||I.focused)}),fullWidth:a,inputComponent:s,multiline:c,ref:n,type:h,...m,classes:{...g,notchedOutline:null}})});fB.muiName="Input";function nPe(e){return qe("MuiPagination",e)}Ke("MuiPagination",["root","ul","outlined","text"]);function rPe(e={}){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:o=1,disabled:i=!1,hideNextButton:a=!1,hidePrevButton:s=!1,onChange:l,page:c,showFirstButton:u=!1,showLastButton:f=!1,siblingCount:h=1,...m}=e,[g,y]=ia({controlled:c,default:o,name:n,state:"page"}),v=(M,A)=>{c||y(A),l&&l(M,A)},w=(M,A)=>{const _=A-M+1;return Array.from({length:_},(N,B)=>M+B)},C=w(1,Math.min(t,r)),E=w(Math.max(r-t+1,t+1),r),I=Math.max(Math.min(g-h,r-t-h*2-1),t+2),O=Math.min(Math.max(g+h,t+h*2+2),r-t-1),P=[...u?["first"]:[],...s?[]:["previous"],...C,...I>t+2?["start-ellipsis"]:t+1t?[r-t]:[],...E,...a?[]:["next"],...f?["last"]:[]],R=M=>{switch(M){case"first":return 1;case"previous":return g-1;case"next":return g+1;case"last":return r;default:return null}};return{items:P.map(M=>typeof M=="number"?{onClick:A=>{v(A,M)},type:"page",page:M,selected:M===g,disabled:i,"aria-current":M===g?"page":void 0}:{onClick:A=>{v(A,R(M))},type:M,page:R(M),selected:!1,disabled:i||!M.includes("ellipsis")&&(M==="next"||M==="last"?g>=r:g<=1)}),...m}}function oPe(e){return qe("MuiPaginationItem",e)}const Wi=Ke("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Pne=Ot(k.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),Ane=Ot(k.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),iPe=Ot(k.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),aPe=Ot(k.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),Mne=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Te(n.size)}`],n.variant==="text"&&t[`text${Te(n.color)}`],n.variant==="outlined"&&t[`outlined${Te(n.color)}`],n.shape==="rounded"&&t.rounded,n.type==="page"&&t.page,(n.type==="start-ellipsis"||n.type==="end-ellipsis")&&t.ellipsis,(n.type==="previous"||n.type==="next")&&t.previousNext,(n.type==="first"||n.type==="last")&&t.firstLast]},sPe=e=>{const{classes:t,color:n,disabled:r,selected:o,size:i,shape:a,type:s,variant:l}=e,c={root:["root",`size${Te(i)}`,l,a,n!=="standard"&&`color${Te(n)}`,n!=="standard"&&`${l}${Te(n)}`,r&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return Me(c,oPe,t)},lPe=ae("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:Mne})(dt(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${Wi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),cPe=ae(la,{name:"MuiPaginationItem",slot:"Root",overridesResolver:Mne})(dt(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${Wi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Wi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Wi.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Nt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Wi.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Nt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Wi.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Wi.selected}`]:{[`&.${Wi.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${Wi.selected}`]:{[`&.${Wi.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(Jn(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${Wi.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${Wi.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${Wi.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(Jn(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${Wi.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:Nt(e.palette[t].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:Nt(e.palette[t].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Nt(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Wi.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Nt(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}}}}))]}))),uPe=ae("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(dt(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),dPe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiPaginationItem"}),{className:o,color:i="standard",component:a,components:s={},disabled:l=!1,page:c,selected:u=!1,shape:f="circular",size:h="medium",slots:m={},slotProps:g={},type:y="page",variant:v="text",...w}=r,C={...r,color:i,disabled:l,selected:u,shape:f,size:h,type:y,variant:v},E=yr(),I=sPe(C),O={slots:{previous:m.previous??s.previous,next:m.next??s.next,first:m.first??s.first,last:m.last??s.last},slotProps:g},[P,R]=St("previous",{elementType:iPe,externalForwardedProps:O,ownerState:C}),[D,M]=St("next",{elementType:aPe,externalForwardedProps:O,ownerState:C}),[A,_]=St("first",{elementType:Pne,externalForwardedProps:O,ownerState:C}),[N,B]=St("last",{elementType:Ane,externalForwardedProps:O,ownerState:C}),H=E?{previous:"next",next:"previous",first:"last",last:"first"}[y]:y,j={previous:P,next:D,first:A,last:N}[H],L={previous:R,next:M,first:_,last:B}[H];return y==="start-ellipsis"||y==="end-ellipsis"?k.jsx(lPe,{ref:n,ownerState:C,className:fe(I.root,o),children:"…"}):k.jsxs(cPe,{ref:n,ownerState:C,component:a,disabled:l,className:fe(I.root,o),...w,children:[y==="page"&&c,j?k.jsx(uPe,{...L,className:I.icon,as:j}):null]})}),fPe=e=>{const{classes:t,variant:n}=e;return Me({root:["root",n],ul:["ul"]},nPe,t)},pPe=ae("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),hPe=ae("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function mPe(e,t,n){return e==="page"?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}const gPe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiPagination"}),{boundaryCount:o=1,className:i,color:a="standard",count:s=1,defaultPage:l=1,disabled:c=!1,getItemAriaLabel:u=mPe,hideNextButton:f=!1,hidePrevButton:h=!1,onChange:m,page:g,renderItem:y=A=>k.jsx(dPe,{...A}),shape:v="circular",showFirstButton:w=!1,showLastButton:C=!1,siblingCount:E=1,size:I="medium",variant:O="text",...P}=r,{items:R}=rPe({...r,componentName:"Pagination"}),D={...r,boundaryCount:o,color:a,count:s,defaultPage:l,disabled:c,getItemAriaLabel:u,hideNextButton:f,hidePrevButton:h,renderItem:y,shape:v,showFirstButton:w,showLastButton:C,siblingCount:E,size:I,variant:O},M=fPe(D);return k.jsx(pPe,{"aria-label":"pagination navigation",className:fe(M.root,i),ownerState:D,ref:n,...P,children:k.jsx(hPe,{className:M.ul,ownerState:D,children:R.map((A,_)=>k.jsx("li",{children:y({...A,color:a,"aria-label":u(A.type,A.page,A.selected),shape:v,size:I,variant:O})},_))})})});function Rne(e){return qe("MuiSelect",e)}const Yb=Ke("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var h6;const yPe=ae(One,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Yb.select}`]:t.select},{[`&.${Yb.select}`]:t[n.variant]},{[`&.${Yb.error}`]:t.error},{[`&.${Yb.multiple}`]:t.multiple}]}})({[`&.${Yb.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),vPe=ae(Ine,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Te(n.variant)}`],n.open&&t.iconOpen]}})({}),bPe=ae("input",{shouldForwardProp:e=>$te(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 m6(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function xPe(e){return e==null||typeof e=="string"&&!e.trim()}const SPe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Te(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Me(s,Rne,t)},wPe=x.forwardRef(function(t,n){var nt;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:f,displayEmpty:h,error:m=!1,IconComponent:g,inputRef:y,labelId:v,MenuProps:w={},multiple:C,name:E,onBlur:I,onChange:O,onClose:P,onFocus:R,onOpen:D,open:M,readOnly:A,renderValue:_,required:N,SelectDisplayProps:B={},tabIndex:H,type:j,value:L,variant:V="standard",...W}=t,[K,G]=ia({controlled:L,default:u,name:"Select"}),[q,Y]=ia({controlled:M,default:c,name:"Select"}),J=x.useRef(null),ie=x.useRef(null),[se,ce]=x.useState(null),{current:ye}=x.useRef(M!=null),[Se,ne]=x.useState(),le=en(n,y),de=x.useCallback(lt=>{ie.current=lt,lt&&ce(lt)},[]),oe=se==null?void 0:se.parentNode;x.useImperativeHandle(le,()=>({focus:()=>{ie.current.focus()},node:J.current,value:K}),[K]),x.useEffect(()=>{c&&q&&se&&!ye&&(ne(a?null:oe.clientWidth),ie.current.focus())},[se,a]),x.useEffect(()=>{i&&ie.current.focus()},[i]),x.useEffect(()=>{if(!v)return;const lt=Mr(ie.current).getElementById(v);if(lt){const vt=()=>{getSelection().isCollapsed&&ie.current.focus()};return lt.addEventListener("click",vt),()=>{lt.removeEventListener("click",vt)}}},[v]);const ue=(lt,vt)=>{lt?D&&D(vt):P&&P(vt),ye||(ne(a?null:oe.clientWidth),Y(lt))},pe=lt=>{lt.button===0&&(lt.preventDefault(),ie.current.focus(),ue(!0,lt))},Ce=lt=>{ue(!1,lt)},xe=x.Children.toArray(s),Re=lt=>{const vt=xe.find(bt=>bt.props.value===lt.target.value);vt!==void 0&&(G(vt.props.value),O&&O(lt,vt))},he=lt=>vt=>{let bt;if(vt.currentTarget.hasAttribute("tabindex")){if(C){bt=Array.isArray(K)?K.slice():[];const vn=K.indexOf(lt.props.value);vn===-1?bt.push(lt.props.value):bt.splice(vn,1)}else bt=lt.props.value;if(lt.props.onClick&<.props.onClick(vt),K!==bt&&(G(bt),O)){const vn=vt.nativeEvent||vt,kn=new vn.constructor(vn.type,vn);Object.defineProperty(kn,"target",{writable:!0,value:{value:bt,name:E}}),O(kn,lt)}C||ue(!1,vt)}},Ie=lt=>{A||[" ","ArrowUp","ArrowDown","Enter"].includes(lt.key)&&(lt.preventDefault(),ue(!0,lt))},ve=se!==null&&q,Oe=lt=>{!ve&&I&&(Object.defineProperty(lt,"target",{writable:!0,value:{value:K,name:E}}),I(lt))};delete W["aria-invalid"];let te,Ee;const De=[];let Ve=!1;(QE({value:K})||h)&&(_?te=_(K):Ve=!0);const We=xe.map(lt=>{if(!x.isValidElement(lt))return null;let vt;if(C){if(!Array.isArray(K))throw new Error(Bu(2));vt=K.some(bt=>m6(bt,lt.props.value)),vt&&Ve&&De.push(lt.props.children)}else vt=m6(K,lt.props.value),vt&&Ve&&(Ee=lt.props.children);return x.cloneElement(lt,{"aria-selected":vt?"true":"false",onClick:he(lt),onKeyUp:bt=>{bt.key===" "&&bt.preventDefault(),lt.props.onKeyUp&<.props.onKeyUp(bt)},role:"option",selected:vt,value:void 0,"data-value":lt.props.value})});Ve&&(C?De.length===0?te=null:te=De.reduce((lt,vt,bt)=>(lt.push(vt),bt{const{classes:t}=e,r=Me({root:["root"]},Rne,t);return{...t,...r}},pB={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ui(e)&&e!=="variant",slot:"Root"},EPe=ae(lB,pB)(""),TPe=ae(fB,pB)(""),OPe=ae(sB,pB)(""),Lf=x.forwardRef(function(t,n){const r=pt({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=cne,id:f,input:h,inputProps:m,label:g,labelId:y,MenuProps:v,multiple:w=!1,native:C=!1,onClose:E,onOpen:I,open:O,renderValue:P,SelectDisplayProps:R,variant:D="outlined",...M}=r,A=C?KIe:wPe,_=il(),N=Nf({props:r,muiFormControl:_,states:["variant","error"]}),B=N.variant||D,H={...r,variant:B,classes:a},j=CPe(H),{root:L,...V}=j,W=h||{standard:k.jsx(EPe,{ownerState:H}),outlined:k.jsx(TPe,{label:g,ownerState:H}),filled:k.jsx(OPe,{ownerState:H})}[B],K=en(n,_f(W));return k.jsx(x.Fragment,{children:x.cloneElement(W,{inputComponent:A,inputProps:{children:i,error:N.error,IconComponent:u,variant:B,type:void 0,multiple:w,...C?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:y,MenuProps:v,onClose:E,onOpen:I,open:O,renderValue:P,SelectDisplayProps:{id:f,...R}},...m,classes:m?si(V,m.classes):V,...h?h.props.inputProps:{}},...(w&&C||c)&&B==="outlined"?{notched:!0}:{},ref:K,className:fe(W.props.className,s,j.root),...!h&&{variant:B},...M})})});Lf.muiName="Select";function IPe(e){return qe("MuiSkeleton",e)}Ke("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const PPe=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:a}=e;return Me({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!a&&"heightAuto"]},IPe,t)},PN=rl` +`,eIe=typeof AN!="string"?kf` + animation: ${AN} 3s infinite linear; + `:null,tIe=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${Oe(r)}`,n],dashed:["dashed",`dashedColor${Oe(r)}`],bar1:["bar","bar1",`barColor${Oe(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${Oe(r)}`,n==="buffer"&&`color${Oe(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Me(o,XOe,t)},dB=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?Vu(e.palette[t].main,.62):zu(e.palette[t].main,.5),nIe=ae("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Oe(n.color)}`],t[n.variant]]}})(dt(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(er()).map(([t])=>({props:{color:t},style:{backgroundColor:dB(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),rIe=ae("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Oe(n.color)}`]]}})(dt(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(er()).map(([t])=>{const n=dB(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),eIe||{animation:`${AN} 3s infinite linear`}),oIe=ae("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${Oe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(dt(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(er()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${ON}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${ON}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:JOe||{animation:`${IN} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),iIe=ae("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${Oe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(dt(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(er()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(er()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:dB(e,t),transition:`transform .${ON}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:ZOe||{animation:`${PN} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),Cne=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:a,valueBuffer:s,variant:l="indeterminate",...c}=r,u={...r,color:i,variant:l},f=tIe(u),h=vr(),m={},g={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&a!==void 0){m["aria-valuenow"]=Math.round(a),m["aria-valuemin"]=0,m["aria-valuemax"]=100;let y=a-100;h&&(y=-y),g.bar1.transform=`translateX(${y}%)`}if(l==="buffer"&&s!==void 0){let y=(s||0)-100;h&&(y=-y),g.bar2.transform=`translateX(${y}%)`}return k.jsxs(nIe,{className:fe(f.root,o),ownerState:u,role:"progressbar",...m,ref:n,...c,children:[l==="buffer"?k.jsx(rIe,{className:f.dashed,ownerState:u}):null,k.jsx(oIe,{className:f.bar1,ownerState:u,style:g.bar1}),l==="determinate"?null:k.jsx(iIe,{className:f.bar2,ownerState:u,style:g.bar2})]})}),Ks=x.createContext({});function aIe(e){return qe("MuiList",e)}Ke("MuiList",["root","padding","dense","subheader"]);const sIe=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Me({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},aIe,t)},lIe=ae("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}}]}),ai=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...u}=r,f=x.useMemo(()=>({dense:s}),[s]),h={...r,component:a,dense:s,disablePadding:l},m=sIe(h);return k.jsx(Ks.Provider,{value:f,children:k.jsxs(lIe,{as:a,className:fe(m.root,i),ref:n,ownerState:h,...u,children:[c,o]})})});function cIe(e){return qe("MuiListItem",e)}Ke("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function uIe(e){return qe("MuiListItemButton",e)}const lg=Ke("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),dIe=(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]},fIe=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e,c=Me({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",s&&"selected"]},uIe,n);return{...n,...c}},pIe=ae(la,{shouldForwardProp:e=>ui(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:dIe})(dt(({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"}},[`&.${lg.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Nt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${lg.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Nt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${lg.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Nt(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})`:Nt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${lg.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${lg.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}}]}))),Fl=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:a="div",children:s,dense:l=!1,disableGutters:c=!1,divider:u=!1,focusVisibleClassName:f,selected:h=!1,className:m,...g}=r,y=x.useContext(Ks),v=x.useMemo(()=>({dense:l||y.dense||!1,alignItems:o,disableGutters:c}),[o,y.dense,l,c]),w=x.useRef(null);In(()=>{i&&w.current&&w.current.focus()},[i]);const C={...r,alignItems:o,dense:v.dense,disableGutters:c,divider:u,selected:h},E=fIe(C),I=en(w,n);return k.jsx(Ks.Provider,{value:v,children:k.jsx(pIe,{ref:I,href:g.href||g.to,component:(g.href||g.to)&&a==="div"?"button":a,focusVisibleClassName:fe(E.focusVisible,f),ownerState:C,className:fe(E.root,m),...g,classes:E,children:s})})});function hIe(e){return qe("MuiListItemSecondaryAction",e)}Ke("MuiListItemSecondaryAction",["root","disableGutters"]);const mIe=e=>{const{disableGutters:t,classes:n}=e;return Me({root:["root",t&&"disableGutters"]},hIe,n)},gIe=ae("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}}]}),Ene=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,a=x.useContext(Ks),s={...r,disableGutters:a.disableGutters},l=mIe(s);return k.jsx(gIe,{className:fe(l.root,o),ownerState:s,ref:n,...i})});Ene.muiName="ListItemSecondaryAction";const yIe=(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]},vIe=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:s}=e;return Me({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},cIe,n)},bIe=ae("div",{name:"MuiListItem",slot:"Root",overridesResolver:yIe})(dt(({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:{[`& > .${lg.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}}]}))),xIe=ae("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Co=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiListItem"}),{alignItems:o="center",children:i,className:a,component:s,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:f,...h}={},dense:m=!1,disableGutters:g=!1,disablePadding:y=!1,divider:v=!1,secondaryAction:w,slotProps:C={},slots:E={},...I}=r,O=x.useContext(Ks),P=x.useMemo(()=>({dense:m||O.dense||!1,alignItems:o,disableGutters:g}),[o,O.dense,m,g]),R=x.useRef(null),D=x.Children.toArray(i),M=D.length&&Rg(D[D.length-1],["ListItemSecondaryAction"]),A={...r,alignItems:o,dense:P.dense,disableGutters:g,disablePadding:y,divider:v,hasSecondaryAction:M},_=vIe(A),N=en(R,n),B=E.root||l.Root||bIe,H=C.root||c.root||{},j={className:fe(_.root,H.className,a),...I};let L=s||"li";return M?(L=!j.component&&!s?"div":L,u==="li"&&(L==="li"?L="div":j.component==="li"&&(j.component="div")),k.jsx(Ks.Provider,{value:P,children:k.jsxs(xIe,{as:u,className:fe(_.container,f),ref:N,ownerState:A,...h,children:[k.jsx(B,{...H,...!Ox(B)&&{as:L,ownerState:{...A,...H.ownerState}},...j,children:D}),D.pop()]})})):k.jsx(Ks.Provider,{value:P,children:k.jsxs(B,{...H,as:L,ref:N,...!Ox(B)&&{ownerState:{...A,...H.ownerState}},...j,children:[D,w&&k.jsx(Ene,{children:w})]})})});function SIe(e){return qe("MuiListItemAvatar",e)}Ke("MuiListItemAvatar",["root","alignItemsFlexStart"]);const wIe=e=>{const{alignItems:t,classes:n}=e;return Me({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},SIe,n)},CIe=ae("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})({minWidth:56,flexShrink:0,variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}),fB=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiListItemAvatar"}),{className:o,...i}=r,a=x.useContext(Ks),s={...r,alignItems:a.alignItems},l=wIe(s);return k.jsx(CIe,{className:fe(l.root,o),ownerState:s,ref:n,...i})});function EIe(e){return qe("MuiListItemIcon",e)}const c6=Ke("MuiListItemIcon",["root","alignItemsFlexStart"]),TIe=e=>{const{alignItems:t,classes:n}=e;return Me({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},EIe,n)},OIe=ae("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(dt(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),nl=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiListItemIcon"}),{className:o,...i}=r,a=x.useContext(Ks),s={...r,alignItems:a.alignItems},l=TIe(s);return k.jsx(OIe,{className:fe(l.root,o),ownerState:s,ref:n,...i})});function IIe(e){return qe("MuiListItemText",e)}const Np=Ke("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),PIe=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Me({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},IIe,t)},AIe=ae("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Np.primary}`]:t.primary},{[`& .${Np.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,[`.${YE.root}:where(& .${Np.primary})`]:{display:"block"},[`.${YE.root}:where(& .${Np.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Wr=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f,slots:h={},slotProps:m={},...g}=r,{dense:y}=x.useContext(Ks);let v=l??o,w=u;const C={...r,disableTypography:a,inset:s,primary:!!v,secondary:!!w,dense:y},E=PIe(C),I={slots:h,slotProps:{primary:c,secondary:f,...m}},[O,P]=wt("root",{className:fe(E.root,i),elementType:AIe,externalForwardedProps:{...I,...g},ownerState:C,ref:n}),[R,D]=wt("primary",{className:E.primary,elementType:at,externalForwardedProps:I,ownerState:C}),[M,A]=wt("secondary",{className:E.secondary,elementType:at,externalForwardedProps:I,ownerState:C});return v!=null&&v.type!==at&&!a&&(v=k.jsx(R,{variant:y?"body2":"body1",component:D!=null&&D.variant?void 0:"span",...D,children:v})),w!=null&&w.type!==at&&!a&&(w=k.jsx(M,{variant:"body2",color:"textSecondary",...A,children:w})),k.jsxs(O,{...P,children:[v,w]})});function $R(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function u6(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Tne(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 Yb(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!Tne(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const uI=x.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu",...h}=t,m=x.useRef(null),g=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});In(()=>{o&&m.current.focus()},[o]),x.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(E,{direction:I})=>{const O=!m.current.style.width;if(E.clientHeight{const I=m.current,O=E.key;if(E.ctrlKey||E.metaKey||E.altKey){u&&u(E);return}const R=Mr(I).activeElement;if(O==="ArrowDown")E.preventDefault(),Yb(I,R,c,l,$R);else if(O==="ArrowUp")E.preventDefault(),Yb(I,R,c,l,u6);else if(O==="Home")E.preventDefault(),Yb(I,null,c,l,$R);else if(O==="End")E.preventDefault(),Yb(I,null,c,l,u6);else if(O.length===1){const D=g.current,M=O.toLowerCase(),A=performance.now();D.keys.length>0&&(A-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&M!==D.keys[0]&&(D.repeating=!1)),D.lastTime=A,D.keys.push(M);const _=R&&!D.repeating&&Tne(R,D);D.previousKeyMatched&&(_||Yb(I,R,!1,l,$R,D))?E.preventDefault():D.previousKeyMatched=!1}u&&u(E)},v=en(m,n);let w=-1;x.Children.forEach(a,(E,I)=>{if(!x.isValidElement(E)){w===I&&(w+=1,w>=a.length&&(w=-1));return}E.props.disabled||(f==="selectedMenu"&&E.props.selected||w===-1)&&(w=I),w===I&&(E.props.disabled||E.props.muiSkipListHighlight||E.type.muiSkipListHighlight)&&(w+=1,w>=a.length&&(w=-1))});const C=x.Children.map(a,(E,I)=>{if(I===w){const O={};return i&&(O.autoFocus=!0),E.props.tabIndex===void 0&&f==="selectedMenu"&&(O.tabIndex=0),x.cloneElement(E,O)}return E});return k.jsx(ai,{role:"menu",ref:v,className:s,onKeyDown:y,tabIndex:o?0:-1,...h,children:C})});function MIe(e){return qe("MuiPopover",e)}Ke("MuiPopover",["root","paper"]);function d6(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function f6(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function p6(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function C1(e){return typeof e=="function"?e():e}const RIe=e=>{const{classes:t}=e;return Me({root:["root"],paper:["paper"]},MIe,t)},DIe=ae(lv,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),One=ae(go,{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}),kIe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:u,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:y={},slots:v={},slotProps:w={},transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:E,transitionDuration:I="auto",TransitionProps:O={},disableScrollLock:P=!1,...R}=r,D=x.useRef(),M={...r,anchorOrigin:a,anchorReference:l,elevation:h,marginThreshold:m,transformOrigin:C,TransitionComponent:E,transitionDuration:I,TransitionProps:O},A=RIe(M),_=x.useCallback(()=>{if(l==="anchorPosition")return s;const le=C1(i),oe=(le&&le.nodeType===1?le:Mr(D.current).body).getBoundingClientRect();return{top:oe.top+d6(oe,a.vertical),left:oe.left+f6(oe,a.horizontal)}},[i,a.horizontal,a.vertical,s,l]),N=x.useCallback(le=>({vertical:d6(le,C.vertical),horizontal:f6(le,C.horizontal)}),[C.horizontal,C.vertical]),B=x.useCallback(le=>{const de={width:le.offsetWidth,height:le.offsetHeight},oe=N(de);if(l==="none")return{top:null,left:null,transformOrigin:p6(oe)};const ue=_();let pe=ue.top-oe.vertical,Ee=ue.left-oe.horizontal;const xe=pe+de.height,Re=Ee+de.width,he=ns(C1(i)),Pe=he.innerHeight-m,ve=he.innerWidth-m;if(m!==null&&pePe){const Ie=xe-Pe;pe-=Ie,oe.vertical+=Ie}if(m!==null&&Eeve){const Ie=Re-ve;Ee-=Ie,oe.horizontal+=Ie}return{top:`${Math.round(pe)}px`,left:`${Math.round(Ee)}px`,transformOrigin:p6(oe)}},[i,l,_,N,m]),[H,j]=x.useState(g),L=x.useCallback(()=>{const le=D.current;if(!le)return;const de=B(le);de.top!==null&&le.style.setProperty("top",de.top),de.left!==null&&(le.style.left=de.left),le.style.transformOrigin=de.transformOrigin,j(!0)},[B]);x.useEffect(()=>(P&&window.addEventListener("scroll",L),()=>window.removeEventListener("scroll",L)),[i,P,L]);const V=()=>{L()},W=()=>{j(!1)};x.useEffect(()=>{g&&L()}),x.useImperativeHandle(o,()=>g?{updatePosition:()=>{L()}}:null,[g,L]),x.useEffect(()=>{if(!g)return;const le=$h(()=>{L()}),de=ns(C1(i));return de.addEventListener("resize",le),()=>{le.clear(),de.removeEventListener("resize",le)}},[i,g,L]);let K=I;const G={slots:{transition:E,...v},slotProps:{transition:O,paper:y,...w}},[q,Y]=wt("transition",{elementType:mh,externalForwardedProps:G,ownerState:M,getSlotProps:le=>({...le,onEntering:(de,oe)=>{var ue;(ue=le.onEntering)==null||ue.call(le,de,oe),V()},onExited:de=>{var oe;(oe=le.onExited)==null||oe.call(le,de),W()}}),additionalProps:{appear:!0,in:g}});I==="auto"&&!q.muiSupportAuto&&(K=void 0);const Z=f||(i?Mr(C1(i)).body:void 0),[ie,{slots:se,slotProps:ce,...ye}]=wt("root",{ref:n,elementType:DIe,externalForwardedProps:{...G,...R},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:v.backdrop},slotProps:{backdrop:qj(typeof w.backdrop=="function"?w.backdrop(M):w.backdrop,{invisible:!0})},container:Z,open:g},ownerState:M,className:fe(A.root,u)}),[Se,ne]=wt("paper",{ref:D,className:A.paper,elementType:One,externalForwardedProps:G,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:H?void 0:{opacity:0}},ownerState:M});return k.jsx(ie,{...ye,...!Ox(ie)&&{slots:se,slotProps:ce,disableScrollLock:P},children:k.jsx(q,{...Y,timeout:K,children:k.jsx(Se,{...ne,children:c})})})});function _Ie(e){return qe("MuiMenu",e)}Ke("MuiMenu",["root","paper","list"]);const $Ie={vertical:"top",horizontal:"right"},NIe={vertical:"top",horizontal:"left"},LIe=e=>{const{classes:t}=e;return Me({root:["root"],paper:["paper"],list:["list"]},_Ie,t)},FIe=ae(kIe,{shouldForwardProp:e=>ui(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jIe=ae(One,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),BIe=ae(uI,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ss=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:a,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:f={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:g,...y}={},variant:v="selectedMenu",slots:w={},slotProps:C={},...E}=r,I=vr(),O={...r,autoFocus:o,disableAutoFocusItem:s,MenuListProps:l,onEntering:g,PaperProps:f,transitionDuration:m,TransitionProps:y,variant:v},P=LIe(O),R=o&&!s&&u,D=x.useRef(null),M=(K,G)=>{D.current&&D.current.adjustStyleForScrollbar(K,{direction:I?"rtl":"ltr"}),g&&g(K,G)},A=K=>{K.key==="Tab"&&(K.preventDefault(),c&&c(K,"tabKeyDown"))};let _=-1;x.Children.map(i,(K,G)=>{x.isValidElement(K)&&(K.props.disabled||(v==="selectedMenu"&&K.props.selected||_===-1)&&(_=G))});const N={slots:w,slotProps:{list:l,transition:y,paper:f,...C}},B=Dn({elementType:w.root,externalSlotProps:C.root,ownerState:O,className:[P.root,a]}),[H,j]=wt("paper",{className:P.paper,elementType:jIe,externalForwardedProps:N,shouldForwardComponentProp:!0,ownerState:O}),[L,V]=wt("list",{className:fe(P.list,l.className),elementType:BIe,shouldForwardComponentProp:!0,externalForwardedProps:N,getSlotProps:K=>({...K,onKeyDown:G=>{var q;A(G),(q=K.onKeyDown)==null||q.call(K,G)}}),ownerState:O}),W=typeof N.slotProps.transition=="function"?N.slotProps.transition(O):N.slotProps.transition;return k.jsx(FIe,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:I?"right":"left"},transformOrigin:I?$Ie:NIe,slots:{root:w.root,paper:H,backdrop:w.backdrop,...w.transition&&{transition:w.transition}},slotProps:{root:B,paper:j,backdrop:typeof C.backdrop=="function"?C.backdrop(O):C.backdrop,transition:{...W,onEntering:(...K)=>{var G;M(...K),(G=W==null?void 0:W.onEntering)==null||G.call(W,...K)}}},open:u,ref:n,transitionDuration:m,ownerState:O,...E,classes:h,children:k.jsx(L,{actions:D,autoFocus:o&&(_===-1||s),autoFocusItem:R,variant:v,...V,children:i})})});function zIe(e){return qe("MuiMenuItem",e)}const Qb=Ke("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),VIe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},HIe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=Me({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},zIe,a);return{...a,...l}},UIe=ae(la,{shouldForwardProp:e=>ui(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:VIe})(dt(({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"}},[`&.${Qb.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Nt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Qb.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Nt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Qb.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Nt(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})`:Nt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Qb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qb.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${o6.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${o6.inset}`]:{marginLeft:52},[`& .${Np.root}`]:{marginTop:0,marginBottom:0},[`& .${Np.inset}`]:{paddingLeft:36},[`& .${c6.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,[`& .${c6.root} svg`]:{fontSize:"1.25rem"}}}]}))),Jt=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:h,...m}=r,g=x.useContext(Ks),y=x.useMemo(()=>({dense:a||g.dense||!1,disableGutters:l}),[g.dense,a,l]),v=x.useRef(null);In(()=>{o&&v.current&&v.current.focus()},[o]);const w={...r,dense:y.dense,divider:s,disableGutters:l},C=HIe(r),E=en(v,n);let I;return r.disabled||(I=f!==void 0?f:-1),k.jsx(Ks.Provider,{value:y,children:k.jsx(UIe,{ref:E,role:u,tabIndex:I,component:i,focusVisibleClassName:fe(C.focusVisible,c),className:fe(C.root,h),...m,ownerState:w,classes:C})})});function GIe(e){return qe("MuiNativeSelect",e)}const pB=Ke("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),qIe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Oe(n)}`,i&&"iconOpen",r&&"disabled"]};return Me(s,GIe,t)},Ine=ae("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${pB.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}}}]})),WIe=ae(Ine,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ui,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${pB.multiple}`]:t.multiple}]}})({}),Pne=ae("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${pB.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}}]})),KIe=ae(Pne,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Oe(n.variant)}`],n.open&&t.iconOpen]}})({}),YIe=x.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard",...c}=t,u={...t,disabled:o,variant:l,error:i},f=qIe(u);return k.jsxs(x.Fragment,{children:[k.jsx(WIe,{ownerState:u,className:fe(f.select,r),disabled:o,ref:s||n,...c}),t.multiple?null:k.jsx(KIe,{as:a,ownerState:u,className:f.icon})]})});var h6;const QIe=ae("fieldset",{shouldForwardProp:ui})({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%"}),XIe=ae("legend",{shouldForwardProp:ui})(dt(({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 JIe(e){const{children:t,classes:n,className:r,label:o,notched:i,...a}=e,s=o!=null&&o!=="",l={...e,notched:i,withLabel:s};return k.jsx(QIe,{"aria-hidden":!0,className:r,ownerState:l,...a,children:k.jsx(XIe,{ownerState:l,children:s?k.jsx("span",{children:o}):h6||(h6=k.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const ZIe=e=>{const{classes:t}=e,r=Me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},w1e,t);return{...t,...r}},ePe=ae(lI,{shouldForwardProp:e=>ui(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:aI})(dt(({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 .${Rs.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Rs.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Rs.focused} .${Rs.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(er()).map(([n])=>({props:{color:n},style:{[`&.${Rs.focused} .${Rs.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Rs.error} .${Rs.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Rs.disabled} .${Rs.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"}}]}})),tPe=ae(JIe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(dt(({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}})),nPe=ae(cI,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:sI})(dt(({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}}]}))),hB=x.forwardRef(function(t,n){var r;const o=pt({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:u,slots:f={},type:h="text",...m}=o,g=ZIe(o),y=sl(),v=Nf({props:o,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w={...o,color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:y,fullWidth:a,hiddenLabel:v.hiddenLabel,multiline:c,size:v.size,type:h},C=f.root??i.Root??ePe,E=f.input??i.Input??nPe;return k.jsx(iw,{slots:{root:C,input:E},renderSuffix:I=>k.jsx(tPe,{ownerState:w,className:g.notchedOutline,label:l!=null&&l!==""&&v.required?r||(r=k.jsxs(x.Fragment,{children:[l," ","*"]})):l,notched:typeof u<"u"?u:!!(I.startAdornment||I.filled||I.focused)}),fullWidth:a,inputComponent:s,multiline:c,ref:n,type:h,...m,classes:{...g,notchedOutline:null}})});hB.muiName="Input";function rPe(e){return qe("MuiPagination",e)}Ke("MuiPagination",["root","ul","outlined","text"]);function oPe(e={}){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:o=1,disabled:i=!1,hideNextButton:a=!1,hidePrevButton:s=!1,onChange:l,page:c,showFirstButton:u=!1,showLastButton:f=!1,siblingCount:h=1,...m}=e,[g,y]=ia({controlled:c,default:o,name:n,state:"page"}),v=(M,A)=>{c||y(A),l&&l(M,A)},w=(M,A)=>{const _=A-M+1;return Array.from({length:_},(N,B)=>M+B)},C=w(1,Math.min(t,r)),E=w(Math.max(r-t+1,t+1),r),I=Math.max(Math.min(g-h,r-t-h*2-1),t+2),O=Math.min(Math.max(g+h,t+h*2+2),r-t-1),P=[...u?["first"]:[],...s?[]:["previous"],...C,...I>t+2?["start-ellipsis"]:t+1t?[r-t]:[],...E,...a?[]:["next"],...f?["last"]:[]],R=M=>{switch(M){case"first":return 1;case"previous":return g-1;case"next":return g+1;case"last":return r;default:return null}};return{items:P.map(M=>typeof M=="number"?{onClick:A=>{v(A,M)},type:"page",page:M,selected:M===g,disabled:i,"aria-current":M===g?"page":void 0}:{onClick:A=>{v(A,R(M))},type:M,page:R(M),selected:!1,disabled:i||!M.includes("ellipsis")&&(M==="next"||M==="last"?g>=r:g<=1)}),...m}}function iPe(e){return qe("MuiPaginationItem",e)}const Wi=Ke("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Ane=Ot(k.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),Mne=Ot(k.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),aPe=Ot(k.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),sPe=Ot(k.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),Rne=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Oe(n.size)}`],n.variant==="text"&&t[`text${Oe(n.color)}`],n.variant==="outlined"&&t[`outlined${Oe(n.color)}`],n.shape==="rounded"&&t.rounded,n.type==="page"&&t.page,(n.type==="start-ellipsis"||n.type==="end-ellipsis")&&t.ellipsis,(n.type==="previous"||n.type==="next")&&t.previousNext,(n.type==="first"||n.type==="last")&&t.firstLast]},lPe=e=>{const{classes:t,color:n,disabled:r,selected:o,size:i,shape:a,type:s,variant:l}=e,c={root:["root",`size${Oe(i)}`,l,a,n!=="standard"&&`color${Oe(n)}`,n!=="standard"&&`${l}${Oe(n)}`,r&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return Me(c,iPe,t)},cPe=ae("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:Rne})(dt(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${Wi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),uPe=ae(la,{name:"MuiPaginationItem",slot:"Root",overridesResolver:Rne})(dt(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${Wi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Wi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Wi.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Nt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Wi.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Nt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Wi.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Wi.selected}`]:{[`&.${Wi.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${Wi.selected}`]:{[`&.${Wi.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(er(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${Wi.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${Wi.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${Wi.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(er(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${Wi.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:Nt(e.palette[t].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:Nt(e.palette[t].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Nt(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Wi.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Nt(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}}}}))]}))),dPe=ae("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(dt(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),fPe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiPaginationItem"}),{className:o,color:i="standard",component:a,components:s={},disabled:l=!1,page:c,selected:u=!1,shape:f="circular",size:h="medium",slots:m={},slotProps:g={},type:y="page",variant:v="text",...w}=r,C={...r,color:i,disabled:l,selected:u,shape:f,size:h,type:y,variant:v},E=vr(),I=lPe(C),O={slots:{previous:m.previous??s.previous,next:m.next??s.next,first:m.first??s.first,last:m.last??s.last},slotProps:g},[P,R]=wt("previous",{elementType:aPe,externalForwardedProps:O,ownerState:C}),[D,M]=wt("next",{elementType:sPe,externalForwardedProps:O,ownerState:C}),[A,_]=wt("first",{elementType:Ane,externalForwardedProps:O,ownerState:C}),[N,B]=wt("last",{elementType:Mne,externalForwardedProps:O,ownerState:C}),H=E?{previous:"next",next:"previous",first:"last",last:"first"}[y]:y,j={previous:P,next:D,first:A,last:N}[H],L={previous:R,next:M,first:_,last:B}[H];return y==="start-ellipsis"||y==="end-ellipsis"?k.jsx(cPe,{ref:n,ownerState:C,className:fe(I.root,o),children:"…"}):k.jsxs(uPe,{ref:n,ownerState:C,component:a,disabled:l,className:fe(I.root,o),...w,children:[y==="page"&&c,j?k.jsx(dPe,{...L,className:I.icon,as:j}):null]})}),pPe=e=>{const{classes:t,variant:n}=e;return Me({root:["root",n],ul:["ul"]},rPe,t)},hPe=ae("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),mPe=ae("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function gPe(e,t,n){return e==="page"?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}const yPe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiPagination"}),{boundaryCount:o=1,className:i,color:a="standard",count:s=1,defaultPage:l=1,disabled:c=!1,getItemAriaLabel:u=gPe,hideNextButton:f=!1,hidePrevButton:h=!1,onChange:m,page:g,renderItem:y=A=>k.jsx(fPe,{...A}),shape:v="circular",showFirstButton:w=!1,showLastButton:C=!1,siblingCount:E=1,size:I="medium",variant:O="text",...P}=r,{items:R}=oPe({...r,componentName:"Pagination"}),D={...r,boundaryCount:o,color:a,count:s,defaultPage:l,disabled:c,getItemAriaLabel:u,hideNextButton:f,hidePrevButton:h,renderItem:y,shape:v,showFirstButton:w,showLastButton:C,siblingCount:E,size:I,variant:O},M=pPe(D);return k.jsx(hPe,{"aria-label":"pagination navigation",className:fe(M.root,i),ownerState:D,ref:n,...P,children:k.jsx(mPe,{className:M.ul,ownerState:D,children:R.map((A,_)=>k.jsx("li",{children:y({...A,color:a,"aria-label":u(A.type,A.page,A.selected),shape:v,size:I,variant:O})},_))})})});function Dne(e){return qe("MuiSelect",e)}const Xb=Ke("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var m6;const vPe=ae(Ine,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Xb.select}`]:t.select},{[`&.${Xb.select}`]:t[n.variant]},{[`&.${Xb.error}`]:t.error},{[`&.${Xb.multiple}`]:t.multiple}]}})({[`&.${Xb.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),bPe=ae(Pne,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Oe(n.variant)}`],n.open&&t.iconOpen]}})({}),xPe=ae("input",{shouldForwardProp:e=>Nte(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 g6(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function SPe(e){return e==null||typeof e=="string"&&!e.trim()}const wPe=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Oe(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Me(s,Dne,t)},CPe=x.forwardRef(function(t,n){var nt;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:f,displayEmpty:h,error:m=!1,IconComponent:g,inputRef:y,labelId:v,MenuProps:w={},multiple:C,name:E,onBlur:I,onChange:O,onClose:P,onFocus:R,onOpen:D,open:M,readOnly:A,renderValue:_,required:N,SelectDisplayProps:B={},tabIndex:H,type:j,value:L,variant:V="standard",...W}=t,[K,G]=ia({controlled:L,default:u,name:"Select"}),[q,Y]=ia({controlled:M,default:c,name:"Select"}),Z=x.useRef(null),ie=x.useRef(null),[se,ce]=x.useState(null),{current:ye}=x.useRef(M!=null),[Se,ne]=x.useState(),le=en(n,y),de=x.useCallback(lt=>{ie.current=lt,lt&&ce(lt)},[]),oe=se==null?void 0:se.parentNode;x.useImperativeHandle(le,()=>({focus:()=>{ie.current.focus()},node:Z.current,value:K}),[K]),x.useEffect(()=>{c&&q&&se&&!ye&&(ne(a?null:oe.clientWidth),ie.current.focus())},[se,a]),x.useEffect(()=>{i&&ie.current.focus()},[i]),x.useEffect(()=>{if(!v)return;const lt=Mr(ie.current).getElementById(v);if(lt){const vt=()=>{getSelection().isCollapsed&&ie.current.focus()};return lt.addEventListener("click",vt),()=>{lt.removeEventListener("click",vt)}}},[v]);const ue=(lt,vt)=>{lt?D&&D(vt):P&&P(vt),ye||(ne(a?null:oe.clientWidth),Y(lt))},pe=lt=>{lt.button===0&&(lt.preventDefault(),ie.current.focus(),ue(!0,lt))},Ee=lt=>{ue(!1,lt)},xe=x.Children.toArray(s),Re=lt=>{const vt=xe.find(bt=>bt.props.value===lt.target.value);vt!==void 0&&(G(vt.props.value),O&&O(lt,vt))},he=lt=>vt=>{let bt;if(vt.currentTarget.hasAttribute("tabindex")){if(C){bt=Array.isArray(K)?K.slice():[];const vn=K.indexOf(lt.props.value);vn===-1?bt.push(lt.props.value):bt.splice(vn,1)}else bt=lt.props.value;if(lt.props.onClick&<.props.onClick(vt),K!==bt&&(G(bt),O)){const vn=vt.nativeEvent||vt,kn=new vn.constructor(vn.type,vn);Object.defineProperty(kn,"target",{writable:!0,value:{value:bt,name:E}}),O(kn,lt)}C||ue(!1,vt)}},Pe=lt=>{A||[" ","ArrowUp","ArrowDown","Enter"].includes(lt.key)&&(lt.preventDefault(),ue(!0,lt))},ve=se!==null&&q,Ie=lt=>{!ve&&I&&(Object.defineProperty(lt,"target",{writable:!0,value:{value:K,name:E}}),I(lt))};delete W["aria-invalid"];let te,Te;const De=[];let Ve=!1;(XE({value:K})||h)&&(_?te=_(K):Ve=!0);const We=xe.map(lt=>{if(!x.isValidElement(lt))return null;let vt;if(C){if(!Array.isArray(K))throw new Error(Bu(2));vt=K.some(bt=>g6(bt,lt.props.value)),vt&&Ve&&De.push(lt.props.children)}else vt=g6(K,lt.props.value),vt&&Ve&&(Te=lt.props.children);return x.cloneElement(lt,{"aria-selected":vt?"true":"false",onClick:he(lt),onKeyUp:bt=>{bt.key===" "&&bt.preventDefault(),lt.props.onKeyUp&<.props.onKeyUp(bt)},role:"option",selected:vt,value:void 0,"data-value":lt.props.value})});Ve&&(C?De.length===0?te=null:te=De.reduce((lt,vt,bt)=>(lt.push(vt),bt{const{classes:t}=e,r=Me({root:["root"]},Dne,t);return{...t,...r}},mB={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ui(e)&&e!=="variant",slot:"Root"},TPe=ae(uB,mB)(""),OPe=ae(hB,mB)(""),IPe=ae(cB,mB)(""),Lf=x.forwardRef(function(t,n){const r=pt({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=une,id:f,input:h,inputProps:m,label:g,labelId:y,MenuProps:v,multiple:w=!1,native:C=!1,onClose:E,onOpen:I,open:O,renderValue:P,SelectDisplayProps:R,variant:D="outlined",...M}=r,A=C?YIe:CPe,_=sl(),N=Nf({props:r,muiFormControl:_,states:["variant","error"]}),B=N.variant||D,H={...r,variant:B,classes:a},j=EPe(H),{root:L,...V}=j,W=h||{standard:k.jsx(TPe,{ownerState:H}),outlined:k.jsx(OPe,{label:g,ownerState:H}),filled:k.jsx(IPe,{ownerState:H})}[B],K=en(n,_f(W));return k.jsx(x.Fragment,{children:x.cloneElement(W,{inputComponent:A,inputProps:{children:i,error:N.error,IconComponent:u,variant:B,type:void 0,multiple:w,...C?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:y,MenuProps:v,onClose:E,onOpen:I,open:O,renderValue:P,SelectDisplayProps:{id:f,...R}},...m,classes:m?si(V,m.classes):V,...h?h.props.inputProps:{}},...(w&&C||c)&&B==="outlined"?{notched:!0}:{},ref:K,className:fe(W.props.className,s,j.root),...!h&&{variant:B},...M})})});Lf.muiName="Select";function PPe(e){return qe("MuiSkeleton",e)}Ke("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const APe=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:a}=e;return Me({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!a&&"heightAuto"]},PPe,t)},MN=il` 0% { opacity: 1; } @@ -235,7 +235,7 @@ export default theme;`}function Q$(e={},...t){const{breakpoints:n,mixins:r={},sp 100% { opacity: 1; } -`,AN=rl` +`,RN=il` 0% { transform: translateX(-100%); } @@ -248,24 +248,24 @@ export default theme;`}function Q$(e={},...t){const{breakpoints:n,mixins:r={},sp 100% { transform: translateX(100%); } -`,APe=typeof PN!="string"?kf` - animation: ${PN} 2s ease-in-out 0.5s infinite; - `:null,MPe=typeof AN!="string"?kf` +`,MPe=typeof MN!="string"?kf` + animation: ${MN} 2s ease-in-out 0.5s infinite; + `:null,RPe=typeof RN!="string"?kf` &::after { - animation: ${AN} 2s linear 0.5s infinite; + animation: ${RN} 2s linear 0.5s infinite; } - `:null,RPe=ae("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(dt(({theme:e})=>{const t=Sxe(e.shape.borderRadius)||"px",n=wxe(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:Nt(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:APe||{animation:`${PN} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient( + `:null,DPe=ae("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(dt(({theme:e})=>{const t=wxe(e.shape.borderRadius)||"px",n=Cxe(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:Nt(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:MPe||{animation:`${MN} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient( 90deg, transparent, ${(e.vars||e).palette.action.hover}, transparent - )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:MPe||{"&::after":{animation:`${AN} 2s linear 0.5s infinite`}}}]}})),pE=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:a="span",height:s,style:l,variant:c="text",width:u,...f}=r,h={...r,animation:o,component:a,variant:c,hasChildren:!!f.children},m=PPe(h);return k.jsx(RPe,{as:a,ref:n,className:fe(m.root,i),ownerState:h,...f,style:{width:u,height:s,...l}})});function DPe(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,a=ko();x.useEffect(()=>{if(!o)return;function w(C){C.defaultPrevented||C.key==="Escape"&&(r==null||r(C,"escapeKeyDown"))}return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}},[o,r]);const s=Ze((w,C)=>{r==null||r(w,C)}),l=Ze(w=>{!r||w==null||a.start(w,()=>{s(null,"timeout")})});x.useEffect(()=>(o&&l(t),a.clear),[o,t,l,a]);const c=w=>{r==null||r(w,"clickaway")},u=a.clear,f=x.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),h=w=>C=>{const E=w.onBlur;E==null||E(C),f()},m=w=>C=>{const E=w.onFocus;E==null||E(C),u()},g=w=>C=>{const E=w.onMouseEnter;E==null||E(C),u()},y=w=>C=>{const E=w.onMouseLeave;E==null||E(C),f()};return x.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",f),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",u)}},[n,o,f,u]),{getRootProps:(w={})=>{const C={...zE(e),...zE(w)};return{role:"presentation",...w,...C,onBlur:h(C),onFocus:m(C),onMouseEnter:g(C),onMouseLeave:y(C)}},onClickAway:c}}function kPe(e){return qe("MuiSnackbarContent",e)}Ke("MuiSnackbarContent",["root","message","action"]);const _Pe=e=>{const{classes:t}=e;return Me({root:["root"],action:["action"],message:["message"]},kPe,t)},$Pe=ae(go,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(dt(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=vte(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}}})),NPe=ae("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),LPe=ae("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),FPe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:a,role:s="alert",...l}=r,c=r,u=_Pe(c);return k.jsxs($Pe,{role:s,square:!0,elevation:6,className:fe(u.root,i),ownerState:c,ref:n,...l,children:[k.jsx(NPe,{className:u.message,ownerState:c,children:a}),o?k.jsx(LPe,{className:u.action,ownerState:c,children:o}):null]})});function jPe(e){return qe("MuiSnackbar",e)}Ke("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const BPe=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Te(n.vertical)}${Te(n.horizontal)}`]};return Me(r,jPe,t)},zPe=ae("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Te(n.anchorOrigin.vertical)}${Te(n.anchorOrigin.horizontal)}`]]}})(dt(({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%)"}}}]}))),uI=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiSnackbar"}),o=Lr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:f,ClickAwayListenerProps:h,ContentProps:m,disableWindowBlurListener:g=!1,message:y,onBlur:v,onClose:w,onFocus:C,onMouseEnter:E,onMouseLeave:I,open:O,resumeHideDuration:P,slots:R={},slotProps:D={},TransitionComponent:M,transitionDuration:A=i,TransitionProps:{onEnter:_,onExited:N,...B}={},...H}=r,j={...r,anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:g,TransitionComponent:M,transitionDuration:A},L=BPe(j),{getRootProps:V,onClickAway:W}=DPe({...j}),[K,G]=x.useState(!0),q=ue=>{G(!0),N&&N(ue)},Y=(ue,pe)=>{G(!1),_&&_(ue,pe)},J={slots:{transition:M,...R},slotProps:{content:m,clickAwayListener:h,transition:B,...D}},[ie,se]=St("root",{ref:n,className:[L.root,f],elementType:zPe,getSlotProps:V,externalForwardedProps:{...J,...H},ownerState:j}),[ce,{ownerState:ye,...Se}]=St("clickAwayListener",{elementType:mne,externalForwardedProps:J,getSlotProps:ue=>({onClickAway:(...pe)=>{var Ce;(Ce=ue.onClickAway)==null||Ce.call(ue,...pe),W(...pe)}}),ownerState:j}),[ne,le]=St("content",{elementType:FPe,shouldForwardComponentProp:!0,externalForwardedProps:J,additionalProps:{message:y,action:a},ownerState:j}),[de,oe]=St("transition",{elementType:mh,externalForwardedProps:J,getSlotProps:ue=>({onEnter:(...pe)=>{var Ce;(Ce=ue.onEnter)==null||Ce.call(ue,...pe),Y(...pe)},onExited:(...pe)=>{var Ce;(Ce=ue.onExited)==null||Ce.call(ue,...pe),q(...pe)}}),additionalProps:{appear:!0,in:O,timeout:A,direction:s==="top"?"down":"up"},ownerState:j});return!O&&K?null:k.jsx(ce,{...Se,...R.clickAwayListener&&{ownerState:ye},children:k.jsx(ie,{...se,children:k.jsx(de,{...oe,children:u||k.jsx(ne,{...le})})})})});function VPe(e){return qe("MuiTooltip",e)}const eo=Ke("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function HPe(e){return Math.round(e*1e5)/1e5}const UPe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Te(i.split("-")[0])}`],arrow:["arrow"]};return Me(a,VPe,t)},GPe=ae(iv,{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]}})(dt(({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"] .${eo.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${eo.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${eo.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${eo.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${eo.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${eo.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${eo.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${eo.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),qPe=ae("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${Te(n.placement.split("-")[0])}`]]}})(dt(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Nt(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,[`.${eo.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${eo.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${eo.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${eo.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:`${HPe(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${eo.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${eo.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${eo.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${eo.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${eo.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${eo.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${eo.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${eo.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${eo.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${eo.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),WPe=ae("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(dt(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Nt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let C1=!1;const g6=new eI;let Qb={x:0,y:0};function E1(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Go=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:a,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:f=!1,disableInteractive:h=!1,disableTouchListener:m=!1,enterDelay:g=100,enterNextDelay:y=0,enterTouchDelay:v=700,followCursor:w=!1,id:C,leaveDelay:E=0,leaveTouchDelay:I=1500,onClose:O,onOpen:P,open:R,placement:D="bottom",PopperComponent:M,PopperProps:A={},slotProps:_={},slots:N={},title:B,TransitionComponent:H,TransitionProps:j,...L}=r,V=x.isValidElement(i)?i:k.jsx("span",{children:i}),W=Lr(),K=yr(),[G,q]=x.useState(),[Y,J]=x.useState(null),ie=x.useRef(!1),se=h||w,ce=ko(),ye=ko(),Se=ko(),ne=ko(),[le,de]=ia({controlled:R,default:!1,name:"Tooltip",state:"open"});let oe=le;const ue=bn(C),pe=x.useRef(),Ce=Ze(()=>{pe.current!==void 0&&(document.body.style.WebkitUserSelect=pe.current,pe.current=void 0),ne.clear()});x.useEffect(()=>Ce,[Ce]);const xe=Kt=>{g6.clear(),C1=!0,de(!0),P&&!oe&&P(Kt)},Re=Ze(Kt=>{g6.start(800+E,()=>{C1=!1}),de(!1),O&&oe&&O(Kt),ce.start(W.transitions.duration.shortest,()=>{ie.current=!1})}),he=Kt=>{ie.current&&Kt.type!=="touchstart"||(G&&G.removeAttribute("title"),ye.clear(),Se.clear(),g||C1&&y?ye.start(C1?y:g,()=>{xe(Kt)}):xe(Kt))},Ie=Kt=>{ye.clear(),Se.start(E,()=>{Re(Kt)})},[,ve]=x.useState(!1),Oe=Kt=>{BE(Kt.target)||(ve(!1),Ie(Kt))},te=Kt=>{G||q(Kt.currentTarget),BE(Kt.target)&&(ve(!0),he(Kt))},Ee=Kt=>{ie.current=!0;const un=V.props;un.onTouchStart&&un.onTouchStart(Kt)},De=Kt=>{Ee(Kt),Se.clear(),ce.clear(),Ce(),pe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ne.start(v,()=>{document.body.style.WebkitUserSelect=pe.current,he(Kt)})},Ve=Kt=>{V.props.onTouchEnd&&V.props.onTouchEnd(Kt),Ce(),Se.start(I,()=>{Re(Kt)})};x.useEffect(()=>{if(!oe)return;function Kt(un){un.key==="Escape"&&Re(un)}return document.addEventListener("keydown",Kt),()=>{document.removeEventListener("keydown",Kt)}},[Re,oe]);const We=en(_f(V),q,n);!B&&B!==0&&(oe=!1);const rt=x.useRef(),ut=Kt=>{const un=V.props;un.onMouseMove&&un.onMouseMove(Kt),Qb={x:Kt.clientX,y:Kt.clientY},rt.current&&rt.current.update()},Be={},et=typeof B=="string";c?(Be.title=!oe&&et&&!f?B:null,Be["aria-describedby"]=oe?ue:null):(Be["aria-label"]=et?B:null,Be["aria-labelledby"]=oe&&!et?ue:null);const Le={...Be,...L,...V.props,className:fe(L.className,V.props.className),onTouchStart:Ee,ref:We,...w?{onMouseMove:ut}:{}},It={};m||(Le.onTouchStart=De,Le.onTouchEnd=Ve),f||(Le.onMouseOver=E1(he,Le.onMouseOver),Le.onMouseLeave=E1(Ie,Le.onMouseLeave),se||(It.onMouseOver=he,It.onMouseLeave=Ie)),u||(Le.onFocus=E1(te,Le.onFocus),Le.onBlur=E1(Oe,Le.onBlur),se||(It.onFocus=te,It.onBlur=Oe));const Lt={...r,isRtl:K,arrow:o,disableInteractive:se,placement:D,PopperComponentProp:M,touch:ie.current},nt=typeof _.popper=="function"?_.popper(Lt):_.popper,lt=x.useMemo(()=>{var un,gt;let Kt=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return(un=A.popperOptions)!=null&&un.modifiers&&(Kt=Kt.concat(A.popperOptions.modifiers)),(gt=nt==null?void 0:nt.popperOptions)!=null&>.modifiers&&(Kt=Kt.concat(nt.popperOptions.modifiers)),{...A.popperOptions,...nt==null?void 0:nt.popperOptions,modifiers:Kt}},[Y,A.popperOptions,nt==null?void 0:nt.popperOptions]),vt=UPe(Lt),bt=typeof _.transition=="function"?_.transition(Lt):_.transition,vn={slots:{popper:s.Popper,transition:s.Transition??H,tooltip:s.Tooltip,arrow:s.Arrow,...N},slotProps:{arrow:_.arrow??l.arrow,popper:{...A,...nt??l.popper},tooltip:_.tooltip??l.tooltip,transition:{...j,...bt??l.transition}}},[kn,Rr]=St("popper",{elementType:GPe,externalForwardedProps:vn,ownerState:Lt,className:fe(vt.popper,A==null?void 0:A.className)}),[tr,Bn]=St("transition",{elementType:mh,externalForwardedProps:vn,ownerState:Lt}),[yo,To]=St("tooltip",{elementType:qPe,className:vt.tooltip,externalForwardedProps:vn,ownerState:Lt}),[oo,Oi]=St("arrow",{elementType:WPe,className:vt.arrow,externalForwardedProps:vn,ownerState:Lt,ref:J});return k.jsxs(x.Fragment,{children:[x.cloneElement(V,Le),k.jsx(kn,{as:M??iv,placement:D,anchorEl:w?{getBoundingClientRect:()=>({top:Qb.y,left:Qb.x,right:Qb.x,bottom:Qb.y,width:0,height:0})}:G,popperRef:rt,open:G?oe:!1,id:ue,transition:!0,...It,...Rr,popperOptions:lt,children:({TransitionProps:Kt})=>k.jsx(tr,{timeout:W.transitions.duration.shorter,...Kt,...Bn,children:k.jsxs(yo,{...To,children:[B,o?k.jsx(oo,{...Oi}):null]})})})]})}),Ft=G0e({createStyledComponent:ae("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>pt({props:e,name:"MuiStack"})}),aw=x.createContext({}),dI=x.createContext({});function KPe(e){return qe("MuiStep",e)}Ke("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const YPe=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return Me({root:["root",n,r&&"alternativeLabel",o&&"completed"]},KPe,t)},QPe=ae("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({variants:[{props:{orientation:"horizontal"},style:{paddingLeft:8,paddingRight:8}},{props:{alternativeLabel:!0},style:{flex:1,position:"relative"}}]}),zm=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiStep"}),{active:o,children:i,className:a,component:s="div",completed:l,disabled:c,expanded:u=!1,index:f,last:h,...m}=r,{activeStep:g,connector:y,alternativeLabel:v,orientation:w,nonLinear:C}=x.useContext(aw);let[E=!1,I=!1,O=!1]=[o,l,c];g===f?E=o!==void 0?o:!0:!C&&g>f?I=l!==void 0?l:!0:!C&&g({index:f,last:h,expanded:u,icon:f+1,active:E,completed:I,disabled:O}),[f,h,u,E,I,O]),R={...r,active:E,orientation:w,alternativeLabel:v,completed:I,disabled:O,expanded:u,component:s},D=YPe(R),M=k.jsxs(QPe,{as:s,className:fe(D.root,a),ref:n,ownerState:R,...m,children:[y&&v&&f!==0?y:null,i]});return k.jsx(dI.Provider,{value:P,children:y&&!v&&f!==0?k.jsxs(x.Fragment,{children:[y,M]}):M})}),XPe=Ot(k.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"})),ZPe=Ot(k.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}));function JPe(e){return qe("MuiStepIcon",e)}const _R=Ke("MuiStepIcon",["root","active","completed","error","text"]);var y6;const eAe=e=>{const{classes:t,active:n,completed:r,error:o}=e;return Me({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},JPe,t)},$R=ae(GE,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(dt(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${_R.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${_R.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${_R.error}`]:{color:(e.vars||e).palette.error.main}}))),tAe=ae("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(dt(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),nAe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiStepIcon"}),{active:o=!1,className:i,completed:a=!1,error:s=!1,icon:l,...c}=r,u={...r,active:o,completed:a,error:s},f=eAe(u);if(typeof l=="number"||typeof l=="string"){const h=fe(i,f.root);return s?k.jsx($R,{as:ZPe,className:h,ref:n,ownerState:u,...c}):a?k.jsx($R,{as:XPe,className:h,ref:n,ownerState:u,...c}):k.jsxs($R,{className:h,ref:n,ownerState:u,...c,children:[y6||(y6=k.jsx("circle",{cx:"12",cy:"12",r:"12"})),k.jsx(tAe,{className:f.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]})}return l});function rAe(e){return qe("MuiStepLabel",e)}const df=Ke("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),oAe=e=>{const{classes:t,orientation:n,active:r,completed:o,error:i,disabled:a,alternativeLabel:s}=e;return Me({root:["root",n,i&&"error",a&&"disabled",s&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",i&&"error",a&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",i&&"error",a&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]},rAe,t)},iAe=ae("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})({display:"flex",alignItems:"center",[`&.${df.alternativeLabel}`]:{flexDirection:"column"},[`&.${df.disabled}`]:{cursor:"default"},variants:[{props:{orientation:"vertical"},style:{textAlign:"left",padding:"8px 0"}}]}),aAe=ae("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(dt(({theme:e})=>({...e.typography.body2,display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${df.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${df.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${df.alternativeLabel}`]:{marginTop:16},[`&.${df.error}`]:{color:(e.vars||e).palette.error.main}}))),sAe=ae("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({flexShrink:0,display:"flex",paddingRight:8,[`&.${df.alternativeLabel}`]:{paddingRight:0}}),lAe=ae("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(dt(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${df.alternativeLabel}`]:{textAlign:"center"}}))),Pp=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiStepLabel"}),{children:o,className:i,componentsProps:a={},error:s=!1,icon:l,optional:c,slots:u={},slotProps:f={},StepIconComponent:h,StepIconProps:m,...g}=r,{alternativeLabel:y,orientation:v}=x.useContext(aw),{active:w,disabled:C,completed:E,icon:I}=x.useContext(dI),O=l||I;let P=h;O&&!P&&(P=nAe);const R={...r,active:w,alternativeLabel:y,completed:E,disabled:C,error:s,orientation:v},D=oAe(R),M={slots:u,slotProps:{stepIcon:m,...a,...f}},[A,_]=St("root",{elementType:iAe,externalForwardedProps:{...M,...g},ownerState:R,ref:n,className:fe(D.root,i)}),[N,B]=St("label",{elementType:aAe,externalForwardedProps:M,ownerState:R}),[H,j]=St("stepIcon",{elementType:P,externalForwardedProps:M,ownerState:R});return k.jsxs(A,{..._,children:[O||H?k.jsx(sAe,{className:D.iconContainer,ownerState:R,children:k.jsx(H,{completed:E,active:w,error:s,icon:O,...j})}):null,k.jsxs(lAe,{className:D.labelContainer,ownerState:R,children:[o?k.jsx(N,{...B,className:fe(D.label,B==null?void 0:B.className),children:o}):null,c]})]})});Pp.muiName="StepLabel";function cAe(e){return qe("MuiStepConnector",e)}Ke("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const uAe=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:i,disabled:a}=e,s={root:["root",n,r&&"alternativeLabel",o&&"active",i&&"completed",a&&"disabled"],line:["line",`line${Te(n)}`]};return Me(s,cAe,t)},dAe=ae("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({flex:"1 1 auto",variants:[{props:{orientation:"vertical"},style:{marginLeft:12}},{props:{alternativeLabel:!0},style:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}}]}),fAe=ae("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${Te(n.orientation)}`]]}})(dt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600];return{display:"block",borderColor:e.vars?e.vars.palette.StepConnector.border:t,variants:[{props:{orientation:"horizontal"},style:{borderTopStyle:"solid",borderTopWidth:1}},{props:{orientation:"vertical"},style:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}]}})),pAe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiStepConnector"}),{className:o,...i}=r,{alternativeLabel:a,orientation:s="horizontal"}=x.useContext(aw),{active:l,disabled:c,completed:u}=x.useContext(dI),f={...r,alternativeLabel:a,orientation:s,active:l,completed:u,disabled:c},h=uAe(f);return k.jsx(dAe,{className:fe(h.root,o),ref:n,ownerState:f,...i,children:k.jsx(fAe,{className:h.line,ownerState:f})})});function hAe(e){return qe("MuiStepContent",e)}Ke("MuiStepContent",["root","last","transition"]);const mAe=e=>{const{classes:t,last:n}=e;return Me({root:["root",n&&"last"],transition:["transition"]},hAe,t)},gAe=ae("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.last&&t.last]}})(dt(({theme:e})=>({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:e.vars?`1px solid ${e.vars.palette.StepContent.border}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}`,variants:[{props:{last:!0},style:{borderLeft:"none"}}]}))),yAe=ae(aa,{name:"MuiStepContent",slot:"Transition",overridesResolver:(e,t)=>t.transition})({}),Vm=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiStepContent"}),{children:o,className:i,TransitionComponent:a=aa,transitionDuration:s="auto",TransitionProps:l,slots:c={},slotProps:u={},...f}=r,{orientation:h}=x.useContext(aw),{active:m,last:g,expanded:y}=x.useContext(dI),v={...r,last:g},w=mAe(v);let C=s;s==="auto"&&!a.muiSupportAuto&&(C=void 0);const E={slots:c,slotProps:{transition:l,...u}},[I,O]=St("transition",{elementType:yAe,externalForwardedProps:E,ownerState:v,className:w.transition,additionalProps:{in:m||y,timeout:C,unmountOnExit:!0}});return k.jsx(gAe,{className:fe(w.root,i),ref:n,ownerState:v,...f,children:k.jsx(I,{as:a,...O,children:o})})});function vAe(e){return qe("MuiStepper",e)}Ke("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const bAe=e=>{const{orientation:t,nonLinear:n,alternativeLabel:r,classes:o}=e;return Me({root:["root",t,n&&"nonLinear",r&&"alternativeLabel"]},vAe,o)},xAe=ae("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})({display:"flex",variants:[{props:{orientation:"horizontal"},style:{flexDirection:"row",alignItems:"center"}},{props:{orientation:"vertical"},style:{flexDirection:"column"}},{props:{alternativeLabel:!0},style:{alignItems:"flex-start"}}]}),SAe=k.jsx(pAe,{}),wAe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiStepper"}),{activeStep:o=0,alternativeLabel:i=!1,children:a,className:s,component:l="div",connector:c=SAe,nonLinear:u=!1,orientation:f="horizontal",...h}=r,m={...r,nonLinear:u,alternativeLabel:i,orientation:f,component:l},g=bAe(m),y=x.Children.toArray(a).filter(Boolean),v=y.map((C,E)=>x.cloneElement(C,{index:E,last:E+1===y.length,...C.props})),w=x.useMemo(()=>({activeStep:o,alternativeLabel:i,connector:c,nonLinear:u,orientation:f}),[o,i,c,u,f]);return k.jsx(aw.Provider,{value:w,children:k.jsx(xAe,{as:l,ownerState:m,className:fe(g.root,s),ref:n,...h,children:v})})});function CAe(e){return qe("MuiSwitch",e)}const Yi=Ke("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),EAe=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,s={root:["root",n&&`edge${Te(n)}`,`size${Te(r)}`],switchBase:["switchBase",`color${Te(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Me(s,CAe,t);return{...t,...l}},TAe=ae("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Te(n.edge)}`],t[`size${Te(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,[`& .${Yi.thumb}`]:{width:16,height:16},[`& .${Yi.switchBase}`]:{padding:4,[`&.${Yi.checked}`]:{transform:"translateX(16px)"}}}}]}),OAe=ae(hne,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Yi.input}`]:t.input},n.color!=="default"&&t[`color${Te(n.color)}`]]}})(dt(({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}),[`&.${Yi.checked}`]:{transform:"translateX(20px)"},[`&.${Yi.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Yi.checked} + .${Yi.track}`]:{opacity:.5},[`&.${Yi.disabled} + .${Yi.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Yi.input}`]:{left:"-100%",width:"300%"}})),dt(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Jn(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Yi.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yi.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Vu(e.palette[t].main,.62):zu(e.palette[t].main,.55)}`}},[`&.${Yi.checked} + .${Yi.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),IAe=ae("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(dt(({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}`}))),PAe=ae("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(dt(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),qo=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:l,slots:c={},slotProps:u={},...f}=r,h={...r,color:i,edge:a,size:s},m=EAe(h),g={slots:c,slotProps:u},[y,v]=St("root",{className:fe(m.root,o),elementType:TAe,externalForwardedProps:g,ownerState:h,additionalProps:{sx:l}}),[w,C]=St("thumb",{className:m.thumb,elementType:PAe,externalForwardedProps:g,ownerState:h}),E=k.jsx(w,{...C}),[I,O]=St("track",{className:m.track,elementType:IAe,externalForwardedProps:g,ownerState:h});return k.jsxs(y,{...v,children:[k.jsx(OAe,{type:"checkbox",icon:E,checkedIcon:E,ref:n,ownerState:h,...f,classes:{...m,root:m.switchBase},slots:{...c.switchBase&&{root:c.switchBase},...c.input&&{input:c.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(h):u.switchBase},...u.input&&{input:typeof u.input=="function"?u.input(h):u.input}}}),k.jsx(I,{...O})]})});function AAe(e){return qe("MuiTab",e)}const Es=Ke("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),MAe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e,c={root:["root",i&&a&&"labelIcon",`textColor${Te(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return Me(c,AAe,t)},RAe=ae(la,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Te(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Es.iconWrapper}`]:t.iconWrapper},{[`& .${Es.icon}`]:t.icon}]}})(dt(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${Es.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${Es.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${Es.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${Es.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Es.selected}`]:{opacity:1},[`&.${Es.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Es.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Es.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Es.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Es.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),MN=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:f,onChange:h,onClick:m,onFocus:g,selected:y,selectionFollowsFocus:v,textColor:w="inherit",value:C,wrapped:E=!1,...I}=r,O={...r,disabled:i,disableFocusRipple:a,selected:y,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:w,wrapped:E},P=MAe(O),R=l&&f&&x.isValidElement(l)?x.cloneElement(l,{className:fe(P.icon,l.props.className)}):l,D=A=>{!y&&h&&h(A,C),m&&m(A)},M=A=>{v&&!y&&h&&h(A,C),g&&g(A)};return k.jsxs(RAe,{focusRipple:!a,className:fe(P.root,o),ref:n,role:"tab","aria-selected":y,disabled:i,onClick:D,onFocus:M,ownerState:O,tabIndex:y?0:-1,...I,children:[c==="top"||c==="start"?k.jsxs(x.Fragment,{children:[R,f]}):k.jsxs(x.Fragment,{children:[f,R]}),u]})}),Dne=x.createContext();function DAe(e){return qe("MuiTable",e)}Ke("MuiTable",["root","stickyHeader"]);const kAe=e=>{const{classes:t,stickyHeader:n}=e;return Me({root:["root",n&&"stickyHeader"]},DAe,t)},_Ae=ae("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(dt(({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"}}]}))),v6="table",$c=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTable"}),{className:o,component:i=v6,padding:a="normal",size:s="medium",stickyHeader:l=!1,...c}=r,u={...r,component:i,padding:a,size:s,stickyHeader:l},f=kAe(u),h=x.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return k.jsx(Dne.Provider,{value:h,children:k.jsx(_Ae,{as:i,role:i===v6?null:"table",ref:n,className:fe(f.root,o),ownerState:u,...c})})}),fI=x.createContext();function $Ae(e){return qe("MuiTableBody",e)}Ke("MuiTableBody",["root"]);const NAe=e=>{const{classes:t}=e;return Me({root:["root"]},$Ae,t)},LAe=ae("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),FAe={variant:"body"},b6="tbody",Nc=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTableBody"}),{className:o,component:i=b6,...a}=r,s={...r,component:i},l=NAe(s);return k.jsx(fI.Provider,{value:FAe,children:k.jsx(LAe,{className:fe(l.root,o),as:i,ref:n,role:i===b6?null:"rowgroup",ownerState:s,...a})})});function jAe(e){return qe("MuiTableCell",e)}const BAe=Ke("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),zAe=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${Te(r)}`,o!=="normal"&&`padding${Te(o)}`,`size${Te(i)}`]};return Me(s,jAe,t)},VAe=ae("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Te(n.size)}`],n.padding!=="normal"&&t[`padding${Te(n.padding)}`],n.align!=="inherit"&&t[`align${Te(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(dt(({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"?Vu(Nt(e.palette.divider,1),.88):zu(Nt(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",[`&.${BAe.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}}]}))),ke=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:s,scope:l,size:c,sortDirection:u,variant:f,...h}=r,m=x.useContext(Dne),g=x.useContext(fI),y=g&&g.variant==="head";let v;a?v=a:v=y?"th":"td";let w=l;v==="td"?w=void 0:!w&&y&&(w="col");const C=f||g&&g.variant,E={...r,align:o,component:v,padding:s||(m&&m.padding?m.padding:"normal"),size:c||(m&&m.size?m.size:"medium"),sortDirection:u,stickyHeader:C==="head"&&m&&m.stickyHeader,variant:C},I=zAe(E);let O=null;return u&&(O=u==="asc"?"ascending":"descending"),k.jsx(VAe,{as:v,ref:n,className:fe(I.root,i),"aria-sort":O,scope:w,ownerState:E,...h})});function HAe(e){return qe("MuiTableContainer",e)}Ke("MuiTableContainer",["root"]);const UAe=e=>{const{classes:t}=e;return Me({root:["root"]},HAe,t)},GAe=ae("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Lc=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTableContainer"}),{className:o,component:i="div",...a}=r,s={...r,component:i},l=UAe(s);return k.jsx(GAe,{ref:n,as:i,className:fe(l.root,o),ownerState:s,...a})});function qAe(e){return qe("MuiTableHead",e)}Ke("MuiTableHead",["root"]);const WAe=e=>{const{classes:t}=e;return Me({root:["root"]},qAe,t)},KAe=ae("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),YAe={variant:"head"},x6="thead",Ff=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTableHead"}),{className:o,component:i=x6,...a}=r,s={...r,component:i},l=WAe(s);return k.jsx(fI.Provider,{value:YAe,children:k.jsx(KAe,{as:i,className:fe(l.root,o),ref:n,role:i===x6?null:"rowgroup",ownerState:s,...a})})});function QAe(e){return qe("MuiToolbar",e)}Ke("MuiToolbar",["root","gutters","regular","dense"]);const XAe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Me({root:["root",!n&&"gutters",r]},QAe,t)},ZAe=ae("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(dt(({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}]}))),kne=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular",...l}=r,c={...r,component:i,disableGutters:a,variant:s},u=XAe(c);return k.jsx(ZAe,{as:i,className:fe(u.root,o),ref:n,ownerState:c,...l})}),_ne=Ot(k.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),$ne=Ot(k.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"})),JAe=x.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,disabled:i=!1,getItemAriaLabel:a,nextIconButtonProps:s,onPageChange:l,page:c,rowsPerPage:u,showFirstButton:f,showLastButton:h,slots:m={},slotProps:g={},...y}=t,v=yr(),w=q=>{l(q,0)},C=q=>{l(q,c-1)},E=q=>{l(q,c+1)},I=q=>{l(q,Math.max(0,Math.ceil(o/u)-1))},O=m.firstButton??pn,P=m.lastButton??pn,R=m.nextButton??pn,D=m.previousButton??pn,M=m.firstButtonIcon??Pne,A=m.lastButtonIcon??Ane,_=m.nextButtonIcon??$ne,N=m.previousButtonIcon??_ne,B=v?P:O,H=v?R:D,j=v?D:R,L=v?O:P,V=v?g.lastButton:g.firstButton,W=v?g.nextButton:g.previousButton,K=v?g.previousButton:g.nextButton,G=v?g.firstButton:g.lastButton;return k.jsxs("div",{ref:n,...y,children:[f&&k.jsx(B,{onClick:w,disabled:i||c===0,"aria-label":a("first",c),title:a("first",c),...V,children:v?k.jsx(A,{...g.lastButtonIcon}):k.jsx(M,{...g.firstButtonIcon})}),k.jsx(H,{onClick:C,disabled:i||c===0,color:"inherit","aria-label":a("previous",c),title:a("previous",c),...W??r,children:v?k.jsx(_,{...g.nextButtonIcon}):k.jsx(N,{...g.previousButtonIcon})}),k.jsx(j,{onClick:E,disabled:i||(o!==-1?c>=Math.ceil(o/u)-1:!1),color:"inherit","aria-label":a("next",c),title:a("next",c),...K??s,children:v?k.jsx(N,{...g.previousButtonIcon}):k.jsx(_,{...g.nextButtonIcon})}),h&&k.jsx(L,{onClick:I,disabled:i||c>=Math.ceil(o/u)-1,"aria-label":a("last",c),title:a("last",c),...G,children:v?k.jsx(M,{...g.firstButtonIcon}):k.jsx(A,{...g.lastButtonIcon})})]})});function eMe(e){return qe("MuiTablePagination",e)}const th=Ke("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var S6;const tMe=ae(ke,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(dt(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),nMe=ae(kne,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${th.actions}`]:t.actions,...t.toolbar})})(dt(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${th.actions}`]:{flexShrink:0,marginLeft:20}}))),rMe=ae("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),oMe=ae("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(dt(({theme:e})=>({...e.typography.body2,flexShrink:0}))),iMe=ae(Lf,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${th.selectIcon}`]:t.selectIcon,[`& .${th.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${th.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),aMe=ae(Zt,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),sMe=ae("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(dt(({theme:e})=>({...e.typography.body2,flexShrink:0})));function lMe({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function cMe(e){return`Go to ${e} page`}const uMe=e=>{const{classes:t}=e;return Me({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},eMe,t)},Nne=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=JAe,backIconButtonProps:i,colSpan:a,component:s=ke,count:l,disabled:c=!1,getItemAriaLabel:u=cMe,labelDisplayedRows:f=lMe,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:m,onPageChange:g,onRowsPerPageChange:y,page:v,rowsPerPage:w,rowsPerPageOptions:C=[10,25,50,100],SelectProps:E={},showFirstButton:I=!1,showLastButton:O=!1,slotProps:P={},slots:R={},...D}=r,M=r,A=uMe(M),_=(P==null?void 0:P.select)??E,N=_.native?"option":aMe;let B;(s===ke||s==="td")&&(B=a||1e3);const H=bn(_.id),j=bn(_.labelId),L=()=>l===-1?(v+1)*w:w===-1?l:Math.min(l,(v+1)*w),V={slots:R,slotProps:P},[W,K]=St("root",{ref:n,className:A.root,elementType:tMe,externalForwardedProps:{...V,component:s,...D},ownerState:M,additionalProps:{colSpan:B}}),[G,q]=St("toolbar",{className:A.toolbar,elementType:nMe,externalForwardedProps:V,ownerState:M}),[Y,J]=St("spacer",{className:A.spacer,elementType:rMe,externalForwardedProps:V,ownerState:M}),[ie,se]=St("selectLabel",{className:A.selectLabel,elementType:oMe,externalForwardedProps:V,ownerState:M,additionalProps:{id:j}}),[ce,ye]=St("select",{className:A.select,elementType:iMe,externalForwardedProps:V,ownerState:M}),[Se,ne]=St("menuItem",{className:A.menuItem,elementType:N,externalForwardedProps:V,ownerState:M}),[le,de]=St("displayedRows",{className:A.displayedRows,elementType:sMe,externalForwardedProps:V,ownerState:M});return k.jsx(W,{...K,children:k.jsxs(G,{...q,children:[k.jsx(Y,{...J}),C.length>1&&k.jsx(ie,{...se,children:h}),C.length>1&&k.jsx(ce,{variant:"standard",...!_.variant&&{input:S6||(S6=k.jsx(ow,{}))},value:w,onChange:y,id:H,labelId:j,..._,classes:{..._.classes,root:fe(A.input,A.selectRoot,(_.classes||{}).root),select:fe(A.select,(_.classes||{}).select),icon:fe(A.selectIcon,(_.classes||{}).icon)},disabled:c,...ye,children:C.map(oe=>x.createElement(Se,{...ne,key:oe.label?oe.label:oe,value:oe.value?oe.value:oe},oe.label?oe.label:oe))}),k.jsx(le,{...de,children:f({from:l===0?0:v*w+1,to:L(),count:l===-1?-1:l,page:v})}),k.jsx(o,{className:A.actions,backIconButtonProps:i,count:l,nextIconButtonProps:m,onPageChange:g,page:v,rowsPerPage:w,showFirstButton:I,showLastButton:O,slotProps:P.actions,slots:R.actions,getItemAriaLabel:u,disabled:c})]})})});function dMe(e){return qe("MuiTableRow",e)}const w6=Ke("MuiTableRow",["root","selected","hover","head","footer"]),fMe=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return Me({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},dMe,t)},pMe=ae("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(dt(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${w6.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${w6.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Nt(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}))`:Nt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),C6="tr",ln=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTableRow"}),{className:o,component:i=C6,hover:a=!1,selected:s=!1,...l}=r,c=x.useContext(fI),u={...r,component:i,hover:a,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"},f=fMe(u);return k.jsx(pMe,{as:i,ref:n,className:fe(f.root,o),role:i===C6?null:"row",ownerState:u,...l})});function hMe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function mMe(e,t,n,r={},o=()=>{}){const{ease:i=hMe,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},f=h=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=h);const m=Math.min(1,(h-s)/a);if(t[e]=i(m)*(n-l)+l,m>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const gMe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function yMe(e){const{onChange:t,...n}=e,r=x.useRef(),o=x.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return In(()=>{const a=_h(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),s=ns(o.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),x.useEffect(()=>{i(),t(r.current)},[t]),k.jsx("div",{style:gMe,...n,ref:o})}function vMe(e){return qe("MuiTabScrollButton",e)}const bMe=Ke("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),xMe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Me({root:["root",n,r&&"disabled"]},vMe,t)},SMe=ae(la,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${bMe.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),wMe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTabScrollButton"}),{className:o,slots:i={},slotProps:a={},direction:s,orientation:l,disabled:c,...u}=r,f=yr(),h={isRtl:f,...r},m=xMe(h),g=i.StartScrollButtonIcon??_ne,y=i.EndScrollButtonIcon??$ne,v=Dn({elementType:g,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),w=Dn({elementType:y,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return k.jsx(SMe,{component:"div",className:fe(m.root,o),ref:n,role:null,ownerState:h,tabIndex:null,...u,style:{...u.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:s==="left"?k.jsx(g,{...v}):k.jsx(y,{...w})})});function CMe(e){return qe("MuiTabs",e)}const hE=Ke("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),E6=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,T6=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,T1=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},EMe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Me({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},CMe,l)},TMe=ae("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hE.scrollButtons}`]:t.scrollButtons},{[`& .${hE.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(dt(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${hE.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),OMe=ae("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),IMe=ae("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),PMe=ae("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(dt(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),AMe=ae(yMe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),O6={},Lne=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTabs"}),o=Lr(),i=yr(),{"aria-label":a,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:f,component:h="div",allowScrollButtonsMobile:m=!1,indicatorColor:g="primary",onChange:y,orientation:v="horizontal",ScrollButtonComponent:w,scrollButtons:C="auto",selectionFollowsFocus:E,slots:I={},slotProps:O={},TabIndicatorProps:P={},TabScrollButtonProps:R={},textColor:D="primary",value:M,variant:A="standard",visibleScrollbar:_=!1,...N}=r,B=A==="scrollable",H=v==="vertical",j=H?"scrollTop":"scrollLeft",L=H?"top":"left",V=H?"bottom":"right",W=H?"clientHeight":"clientWidth",K=H?"height":"width",G={...r,component:h,allowScrollButtonsMobile:m,indicatorColor:g,orientation:v,vertical:H,scrollButtons:C,textColor:D,variant:A,visibleScrollbar:_,fixed:!B,hideScrollbar:B&&!_,scrollableX:B&&!H,scrollableY:B&&H,centered:c&&!B,scrollButtonsHideMobile:!m},q=EMe(G),Y=Dn({elementType:I.StartScrollButtonIcon,externalSlotProps:O.startScrollButtonIcon,ownerState:G}),J=Dn({elementType:I.EndScrollButtonIcon,externalSlotProps:O.endScrollButtonIcon,ownerState:G}),[ie,se]=x.useState(!1),[ce,ye]=x.useState(O6),[Se,ne]=x.useState(!1),[le,de]=x.useState(!1),[oe,ue]=x.useState(!1),[pe,Ce]=x.useState({overflow:"hidden",scrollbarWidth:0}),xe=new Map,Re=x.useRef(null),he=x.useRef(null),Ie={slots:I,slotProps:{indicator:P,scrollButton:R,...O}},ve=()=>{const gt=Re.current;let kt;if(gt){const Xt=gt.getBoundingClientRect();kt={clientWidth:gt.clientWidth,scrollLeft:gt.scrollLeft,scrollTop:gt.scrollTop,scrollWidth:gt.scrollWidth,top:Xt.top,bottom:Xt.bottom,left:Xt.left,right:Xt.right}}let Ut;if(gt&&M!==!1){const Xt=he.current.children;if(Xt.length>0){const Vn=Xt[xe.get(M)];Ut=Vn?Vn.getBoundingClientRect():null}}return{tabsMeta:kt,tabMeta:Ut}},Oe=Ze(()=>{const{tabsMeta:gt,tabMeta:kt}=ve();let Ut=0,Xt;H?(Xt="top",kt&>&&(Ut=kt.top-gt.top+gt.scrollTop)):(Xt=i?"right":"left",kt&>&&(Ut=(i?-1:1)*(kt[Xt]-gt[Xt]+gt.scrollLeft)));const Vn={[Xt]:Ut,[K]:kt?kt[K]:0};if(typeof ce[Xt]!="number"||typeof ce[K]!="number")ye(Vn);else{const Xo=Math.abs(ce[Xt]-Vn[Xt]),Da=Math.abs(ce[K]-Vn[K]);(Xo>=1||Da>=1)&&ye(Vn)}}),te=(gt,{animation:kt=!0}={})=>{kt?mMe(j,Re.current,gt,{duration:o.transitions.duration.standard}):Re.current[j]=gt},Ee=gt=>{let kt=Re.current[j];H?kt+=gt:kt+=gt*(i?-1:1),te(kt)},De=()=>{const gt=Re.current[W];let kt=0;const Ut=Array.from(he.current.children);for(let Xt=0;Xtgt){Xt===0&&(kt=gt);break}kt+=Vn[W]}return kt},Ve=()=>{Ee(-1*De())},We=()=>{Ee(De())},[rt,{onChange:ut,...Be}]=St("scrollbar",{className:fe(q.scrollableX,q.hideScrollbar),elementType:AMe,shouldForwardComponentProp:!0,externalForwardedProps:Ie,ownerState:G}),et=x.useCallback(gt=>{ut==null||ut(gt),Ce({overflow:null,scrollbarWidth:gt})},[ut]),[Le,It]=St("scrollButtons",{className:fe(q.scrollButtons,R.className),elementType:wMe,externalForwardedProps:Ie,ownerState:G,additionalProps:{orientation:v,slots:{StartScrollButtonIcon:I.startScrollButtonIcon||I.StartScrollButtonIcon,EndScrollButtonIcon:I.endScrollButtonIcon||I.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:Y,endScrollButtonIcon:J}}}),Lt=()=>{const gt={};gt.scrollbarSizeListener=B?k.jsx(rt,{...Be,onChange:et}):null;const Ut=B&&(C==="auto"&&(Se||le)||C===!0);return gt.scrollButtonStart=Ut?k.jsx(Le,{direction:i?"right":"left",onClick:Ve,disabled:!Se,...It}):null,gt.scrollButtonEnd=Ut?k.jsx(Le,{direction:i?"left":"right",onClick:We,disabled:!le,...It}):null,gt},nt=Ze(gt=>{const{tabsMeta:kt,tabMeta:Ut}=ve();if(!(!Ut||!kt)){if(Ut[L]kt[V]){const Xt=kt[j]+(Ut[V]-kt[V]);te(Xt,{animation:gt})}}}),lt=Ze(()=>{B&&C!==!1&&ue(!oe)});x.useEffect(()=>{const gt=_h(()=>{Re.current&&Oe()});let kt;const Ut=Xo=>{Xo.forEach(Da=>{Da.removedNodes.forEach(ps=>{kt==null||kt.unobserve(ps)}),Da.addedNodes.forEach(ps=>{kt==null||kt.observe(ps)})}),gt(),lt()},Xt=ns(Re.current);Xt.addEventListener("resize",gt);let Vn;return typeof ResizeObserver<"u"&&(kt=new ResizeObserver(gt),Array.from(he.current.children).forEach(Xo=>{kt.observe(Xo)})),typeof MutationObserver<"u"&&(Vn=new MutationObserver(Ut),Vn.observe(he.current,{childList:!0})),()=>{gt.clear(),Xt.removeEventListener("resize",gt),Vn==null||Vn.disconnect(),kt==null||kt.disconnect()}},[Oe,lt]),x.useEffect(()=>{const gt=Array.from(he.current.children),kt=gt.length;if(typeof IntersectionObserver<"u"&&kt>0&&B&&C!==!1){const Ut=gt[0],Xt=gt[kt-1],Vn={root:Re.current,threshold:.99},Xo=Ii=>{ne(!Ii[0].isIntersecting)},Da=new IntersectionObserver(Xo,Vn);Da.observe(Ut);const ps=Ii=>{de(!Ii[0].isIntersecting)},ud=new IntersectionObserver(ps,Vn);return ud.observe(Xt),()=>{Da.disconnect(),ud.disconnect()}}},[B,C,oe,u==null?void 0:u.length]),x.useEffect(()=>{se(!0)},[]),x.useEffect(()=>{Oe()}),x.useEffect(()=>{nt(O6!==ce)},[nt,ce]),x.useImperativeHandle(l,()=>({updateIndicator:Oe,updateScrollButtons:lt}),[Oe,lt]);const[vt,bt]=St("indicator",{className:fe(q.indicator,P.className),elementType:PMe,externalForwardedProps:Ie,ownerState:G,additionalProps:{style:ce}}),vn=k.jsx(vt,{...bt});let kn=0;const Rr=x.Children.map(u,gt=>{if(!x.isValidElement(gt))return null;const kt=gt.props.value===void 0?kn:gt.props.value;xe.set(kt,kn);const Ut=kt===M;return kn+=1,x.cloneElement(gt,{fullWidth:A==="fullWidth",indicator:Ut&&!ie&&vn,selected:Ut,selectionFollowsFocus:E,onChange:y,textColor:D,value:kt,...kn===1&&M===!1&&!gt.props.tabIndex?{tabIndex:0}:{}})}),tr=gt=>{if(gt.altKey||gt.shiftKey||gt.ctrlKey||gt.metaKey)return;const kt=he.current,Ut=Mr(kt).activeElement;if(Ut.getAttribute("role")!=="tab")return;let Vn=v==="horizontal"?"ArrowLeft":"ArrowUp",Xo=v==="horizontal"?"ArrowRight":"ArrowDown";switch(v==="horizontal"&&i&&(Vn="ArrowRight",Xo="ArrowLeft"),gt.key){case Vn:gt.preventDefault(),T1(kt,Ut,T6);break;case Xo:gt.preventDefault(),T1(kt,Ut,E6);break;case"Home":gt.preventDefault(),T1(kt,null,E6);break;case"End":gt.preventDefault(),T1(kt,null,T6);break}},Bn=Lt(),[yo,To]=St("root",{ref:n,className:fe(q.root,f),elementType:TMe,externalForwardedProps:{...Ie,...N,component:h},ownerState:G}),[oo,Oi]=St("scroller",{ref:Re,className:q.scroller,elementType:OMe,externalForwardedProps:Ie,ownerState:G,additionalProps:{style:{overflow:pe.overflow,[H?`margin${i?"Left":"Right"}`:"marginBottom"]:_?void 0:-pe.scrollbarWidth}}}),[Kt,un]=St("list",{ref:he,className:fe(q.list,q.flexContainer),elementType:IMe,externalForwardedProps:Ie,ownerState:G,getSlotProps:gt=>({...gt,onKeyDown:kt=>{var Ut;tr(kt),(Ut=gt.onKeyDown)==null||Ut.call(gt,kt)}})});return k.jsxs(yo,{...To,children:[Bn.scrollButtonStart,Bn.scrollbarSizeListener,k.jsxs(oo,{...Oi,children:[k.jsx(Kt,{"aria-label":a,"aria-labelledby":s,"aria-orientation":v==="vertical"?"vertical":null,role:"tablist",...un,children:Rr}),ie&&vn]}),Bn.scrollButtonEnd]})});function MMe(e){return qe("MuiTextField",e)}Ke("MuiTextField",["root"]);const RMe={standard:lB,filled:sB,outlined:fB},DMe=e=>{const{classes:t}=e;return Me({root:["root"]},MMe,t)},kMe=ae(Lh,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),dn=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:h,fullWidth:m=!1,helperText:g,id:y,InputLabelProps:v,inputProps:w,InputProps:C,inputRef:E,label:I,maxRows:O,minRows:P,multiline:R=!1,name:D,onBlur:M,onChange:A,onFocus:_,placeholder:N,required:B=!1,rows:H,select:j=!1,SelectProps:L,slots:V={},slotProps:W={},type:K,value:G,variant:q="outlined",...Y}=r,J={...r,autoFocus:i,color:l,disabled:u,error:f,fullWidth:m,multiline:R,required:B,select:j,variant:q},ie=DMe(J),se=bn(y),ce=g&&se?`${se}-helper-text`:void 0,ye=I&&se?`${se}-label`:void 0,Se=RMe[q],ne={slots:V,slotProps:{input:C,inputLabel:v,htmlInput:w,formHelperText:h,select:L,...W}},le={},de=ne.slotProps.inputLabel;q==="outlined"&&(de&&typeof de.shrink<"u"&&(le.notched=de.shrink),le.label=I),j&&((!L||!L.native)&&(le.id=void 0),le["aria-describedby"]=void 0);const[oe,ue]=St("root",{elementType:kMe,shouldForwardComponentProp:!0,externalForwardedProps:{...ne,...Y},ownerState:J,className:fe(ie.root,s),ref:n,additionalProps:{disabled:u,error:f,fullWidth:m,required:B,color:l,variant:q}}),[pe,Ce]=St("input",{elementType:Se,externalForwardedProps:ne,additionalProps:le,ownerState:J}),[xe,Re]=St("inputLabel",{elementType:Fh,externalForwardedProps:ne,ownerState:J}),[he,Ie]=St("htmlInput",{elementType:"input",externalForwardedProps:ne,ownerState:J}),[ve,Oe]=St("formHelperText",{elementType:iw,externalForwardedProps:ne,ownerState:J}),[te,Ee]=St("select",{elementType:Lf,externalForwardedProps:ne,ownerState:J}),De=k.jsx(pe,{"aria-describedby":ce,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:m,multiline:R,name:D,rows:H,maxRows:O,minRows:P,type:K,value:G,id:se,inputRef:E,onBlur:M,onChange:A,onFocus:_,placeholder:N,inputProps:Ie,slots:{input:V.htmlInput?he:void 0},...Ce});return k.jsxs(oe,{...ue,children:[I!=null&&I!==""&&k.jsx(xe,{htmlFor:se,id:ye,...Re,children:I}),j?k.jsx(te,{"aria-describedby":ce,id:se,labelId:ye,value:G,input:De,...Ee,children:a}):De,g&&k.jsx(ve,{id:ce,...Oe,children:g})]})});function _Me(e){return qe("MuiToggleButton",e)}const Lp=Ke("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),Fne=x.createContext({}),jne=x.createContext(void 0);function $Me(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.includes(e):e===t}const NMe=e=>{const{classes:t,fullWidth:n,selected:r,disabled:o,size:i,color:a}=e,s={root:["root",r&&"selected",o&&"disabled",n&&"fullWidth",`size${Te(i)}`,a]};return Me(s,_Me,t)},LMe=ae(la,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${Te(n.size)}`]]}})(dt(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${Lp.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${Lp.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:Nt(e.palette.text.primary,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Nt(e.palette.text.primary,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:Nt(e.palette.text.primary,e.palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(Jn()).map(([t])=>({props:{color:t},style:{[`&.${Lp.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Nt(e.palette[t].main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Nt(e.palette[t].main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Nt(e.palette[t].main,e.palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),Xb=x.forwardRef(function(t,n){const{value:r,...o}=x.useContext(Fne),i=x.useContext(jne),a=ch({...o,selected:$Me(t.value,r)},t),s=pt({props:a,name:"MuiToggleButton"}),{children:l,className:c,color:u="standard",disabled:f=!1,disableFocusRipple:h=!1,fullWidth:m=!1,onChange:g,onClick:y,selected:v,size:w="medium",value:C,...E}=s,I={...s,color:u,disabled:f,disableFocusRipple:h,fullWidth:m,size:w},O=NMe(I),P=D=>{y&&(y(D,C),D.defaultPrevented)||g&&g(D,C)},R=i||"";return k.jsx(LMe,{className:fe(o.className,O.root,c,R),disabled:f,focusRipple:!h,ref:n,onClick:P,onChange:g,value:C,ownerState:I,"aria-pressed":v,...E,children:l})});function FMe(e){return qe("MuiToggleButtonGroup",e)}const jr=Ke("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),jMe=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:o}=e,i={root:["root",n,r&&"fullWidth"],grouped:["grouped",`grouped${Te(n)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Me(i,FMe,t)},BMe=ae("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${jr.grouped}`]:t.grouped},{[`& .${jr.grouped}`]:t[`grouped${Te(n.orientation)}`]},{[`& .${jr.firstButton}`]:t.firstButton},{[`& .${jr.lastButton}`]:t.lastButton},{[`& .${jr.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(dt(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${jr.grouped}`]:{[`&.${jr.selected} + .${jr.grouped}.${jr.selected}`]:{borderTop:0,marginTop:0}},[`& .${jr.firstButton},& .${jr.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${jr.lastButton},& .${jr.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${jr.lastButton}.${Lp.disabled},& .${jr.middleButton}.${Lp.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${jr.grouped}`]:{[`&.${jr.selected} + .${jr.grouped}.${jr.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${jr.firstButton},& .${jr.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${jr.lastButton},& .${jr.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${jr.lastButton}.${Lp.disabled},& .${jr.middleButton}.${Lp.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),zMe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiToggleButtonGroup"}),{children:o,className:i,color:a="standard",disabled:s=!1,exclusive:l=!1,fullWidth:c=!1,onChange:u,orientation:f="horizontal",size:h="medium",value:m,...g}=r,y={...r,disabled:s,fullWidth:c,orientation:f,size:h},v=jMe(y),w=x.useCallback((R,D)=>{if(!u)return;const M=m&&m.indexOf(D);let A;m&&M>=0?(A=m.slice(),A.splice(M,1)):A=m?m.concat(D):[D],u(R,A)},[u,m]),C=x.useCallback((R,D)=>{u&&u(R,m===D?null:D)},[u,m]),E=x.useMemo(()=>({className:v.grouped,onChange:l?C:w,value:m,size:h,fullWidth:c,color:a,disabled:s}),[v.grouped,l,C,w,m,h,c,a,s]),I=xte(o),O=I.length,P=R=>{const D=R===0,M=R===O-1;return D&&M?"":D?v.firstButton:M?v.lastButton:v.middleButton};return k.jsx(BMe,{role:"group",className:fe(v.root,i),ref:n,ownerState:y,...g,children:k.jsx(Fne.Provider,{value:E,children:I.map((R,D)=>k.jsx(jne.Provider,{value:P(D),children:R},D))})})}),Tf=gte({themeId:qs}),VMe=(e,t,n,r)=>{var i,a,s,l;const o=[n,{code:t,...r||{}}];if((a=(i=e==null?void 0:e.services)==null?void 0:i.logger)!=null&&a.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);nh(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),(l=(s=e==null?void 0:e.services)==null?void 0:s.logger)!=null&&l.warn?e.services.logger.warn(...o):console!=null&&console.warn&&console.warn(...o)},I6={},RN=(e,t,n,r)=>{nh(n)&&I6[n]||(nh(n)&&(I6[n]=new Date),VMe(e,t,n,r))},Bne=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},DN=(e,t,n)=>{e.loadNamespaces(t,Bne(e,n))},P6=(e,t,n,r)=>{if(nh(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return DN(e,n,r);n.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,Bne(e,r))},HMe=(e,t,n={})=>!t.languages||!t.languages.length?(RN(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,o)=>{var i;if(((i=n.bindI18n)==null?void 0:i.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!o(r.isLanguageChangingTo,e))return!1}}),nh=e=>typeof e=="string",UMe=e=>typeof e=="object"&&e!==null,GMe=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,qMe={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},WMe=e=>qMe[e],KMe=e=>e.replace(GMe,WMe);let kN={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:KMe};const YMe=(e={})=>{kN={...kN,...e}},QMe=()=>kN;let zne;const XMe=e=>{zne=e},ZMe=()=>zne,JMe={type:"3rdParty",init(e){YMe(e.options.react),XMe(e)}},eRe=x.createContext();class tRe{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const nRe=(e,t)=>{const n=x.useRef();return x.useEffect(()=>{n.current=e},[e,t]),n.current},Vne=(e,t,n,r)=>e.getFixedT(t,n,r),rRe=(e,t,n,r)=>x.useCallback(Vne(e,t,n,r),[e,t,n,r]),je=(e,t={})=>{var I,O,P,R;const{i18n:n}=t,{i18n:r,defaultNS:o}=x.useContext(eRe)||{},i=n||r||ZMe();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new tRe),!i){RN(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const D=(A,_)=>nh(_)?_:UMe(_)&&nh(_.defaultValue)?_.defaultValue:Array.isArray(A)?A[A.length-1]:A,M=[D,{},!1];return M.t=D,M.i18n={},M.ready=!1,M}(I=i.options.react)!=null&&I.wait&&RN(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...QMe(),...i.options.react,...t},{useSuspense:s,keyPrefix:l}=a;let c=o||((O=i.options)==null?void 0:O.defaultNS);c=nh(c)?[c]:c||["translation"],(R=(P=i.reportNamespaces).addUsedNamespaces)==null||R.call(P,c);const u=(i.isInitialized||i.initializedStoreOnce)&&c.every(D=>HMe(D,i,a)),f=rRe(i,t.lng||null,a.nsMode==="fallback"?c:c[0],l),h=()=>f,m=()=>Vne(i,t.lng||null,a.nsMode==="fallback"?c:c[0],l),[g,y]=x.useState(h);let v=c.join();t.lng&&(v=`${t.lng}${v}`);const w=nRe(v),C=x.useRef(!0);x.useEffect(()=>{const{bindI18n:D,bindI18nStore:M}=a;C.current=!0,!u&&!s&&(t.lng?P6(i,t.lng,c,()=>{C.current&&y(m)}):DN(i,c,()=>{C.current&&y(m)})),u&&w&&w!==v&&C.current&&y(m);const A=()=>{C.current&&y(m)};return D&&(i==null||i.on(D,A)),M&&(i==null||i.store.on(M,A)),()=>{C.current=!1,i&&(D==null||D.split(" ").forEach(_=>i.off(_,A))),M&&i&&M.split(" ").forEach(_=>i.store.off(_,A))}},[i,v]),x.useEffect(()=>{C.current&&u&&y(h)},[i,l,u]);const E=[g,i,u];if(E.t=g,E.i18n=i,E.ready=u,u||!u&&!s)return E;throw new Promise(D=>{t.lng?P6(i,t.lng,c,()=>D()):DN(i,c,()=>D())})},Qa=()=>{const[e]=je();return S(Jt,{sx:{textAlign:"center"},children:e("loading")})},Er=()=>S(Jt,{sx:{height:200,alignItems:"center",mt:2},component:Ft,direction:"column",justifyContent:"center",children:S(tw,{})}),gh=()=>S(tw,{size:20}),Q0=Ot(k.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),Ru=Ot(k.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),sw=Ot(k.jsx("path",{d:"M9 4v1.38c-.83-.33-1.72-.5-2.61-.5-1.79 0-3.58.68-4.95 2.05l3.33 3.33h1.11v1.11c.86.86 1.98 1.31 3.11 1.36V15H6v3c0 1.1.9 2 2 2h10c1.66 0 3-1.34 3-3V4zm-1.11 6.41V8.26H5.61L4.57 7.22a5.07 5.07 0 0 1 1.82-.34c1.34 0 2.59.52 3.54 1.46l1.41 1.41-.2.2c-.51.51-1.19.8-1.92.8-.47 0-.93-.12-1.33-.34M19 17c0 .55-.45 1-1 1s-1-.45-1-1v-2h-6v-2.59c.57-.23 1.1-.57 1.56-1.03l.2-.2L15.59 14H17v-1.41l-6-5.97V6h8z"})),Zu=Ot(k.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"})),lw=Ot(k.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Bi=({title:e,subtitle:t,isOpen:n,closeFn:r,children:o})=>S(av,{open:n,onClose:r,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:Q(ho,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:2,minWidth:"400px"},children:[S(Yl,{title:e,subheader:t,action:S(lw,{onClick:r})}),S(Fi,{children:o}),S(al,{})]})}),jh=e=>{const[t]=je(),n=e.height?e.height:"50vh";return S(Tt,{children:Q(Jt,{sx:{height:n,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center"},children:[S(at,{variant:"h6",mr:3,children:t("nothingHereYet")}),S(at,{mr:3,children:t("nothingHereYetAction")})]})})},hB=e=>{const[t]=je(),[n,r]=Z.useState(!1),o=()=>r(!0),i=()=>r(!1),a=e.link!==void 0?S(ct,{size:"small",variant:"contained",href:e.link,children:t("add")}):S(ct,{size:"small",variant:"contained",onClick:o,children:t("add")});return Q(Tt,{children:[Q(ho,{children:[S(Yl,{title:e.title,subheader:".",sx:{paddingBottom:0}}),S(Fi,{sx:{paddingTop:0,height:"500px"},children:S(jh,{})}),S(al,{children:a})]}),S(Bi,{title:t("add"),isOpen:n,closeFn:i,children:e.modalContent})]})};function Hne(e,t){return function(){return e.apply(t,arguments)}}const{toString:oRe}=Object.prototype,{getPrototypeOf:mB}=Object,{iterator:pI,toStringTag:Une}=Symbol,hI=(e=>t=>{const n=oRe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ql=e=>(e=e.toLowerCase(),t=>hI(t)===e),mI=e=>t=>typeof t===e,{isArray:sv}=Array,Ax=mI("undefined");function iRe(e){return e!==null&&!Ax(e)&&e.constructor!==null&&!Ax(e.constructor)&&Oa(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Gne=Ql("ArrayBuffer");function aRe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Gne(e.buffer),t}const sRe=mI("string"),Oa=mI("function"),qne=mI("number"),gI=e=>e!==null&&typeof e=="object",lRe=e=>e===!0||e===!1,mE=e=>{if(hI(e)!=="object")return!1;const t=mB(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Une in e)&&!(pI in e)},cRe=Ql("Date"),uRe=Ql("File"),dRe=Ql("Blob"),fRe=Ql("FileList"),pRe=e=>gI(e)&&Oa(e.pipe),hRe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Oa(e.append)&&((t=hI(e))==="formdata"||t==="object"&&Oa(e.toString)&&e.toString()==="[object FormData]"))},mRe=Ql("URLSearchParams"),[gRe,yRe,vRe,bRe]=["ReadableStream","Request","Response","Headers"].map(Ql),xRe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function cw(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),sv(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Fp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Kne=e=>!Ax(e)&&e!==Fp;function _N(){const{caseless:e}=Kne(this)&&this||{},t={},n=(r,o)=>{const i=e&&Wne(t,o)||o;mE(t[i])&&mE(r)?t[i]=_N(t[i],r):mE(r)?t[i]=_N({},r):sv(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(cw(t,(o,i)=>{n&&Oa(o)?e[i]=Hne(o,n):e[i]=o},{allOwnKeys:r}),e),wRe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),CRe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ERe=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&mB(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},TRe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},ORe=e=>{if(!e)return null;if(sv(e))return e;let t=e.length;if(!qne(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},IRe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&mB(Uint8Array)),PRe=(e,t)=>{const r=(e&&e[pI]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},ARe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},MRe=Ql("HTMLFormElement"),RRe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),A6=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),DRe=Ql("RegExp"),Yne=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};cw(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},kRe=e=>{Yne(e,(t,n)=>{if(Oa(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Oa(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},_Re=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return sv(e)?r(e):r(String(e).split(t)),n},$Re=()=>{},NRe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function LRe(e){return!!(e&&Oa(e.append)&&e[Une]==="FormData"&&e[pI])}const FRe=e=>{const t=new Array(10),n=(r,o)=>{if(gI(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=sv(r)?[]:{};return cw(r,(a,s)=>{const l=n(a,o+1);!Ax(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},jRe=Ql("AsyncFunction"),BRe=e=>e&&(gI(e)||Oa(e))&&Oa(e.then)&&Oa(e.catch),Qne=((e,t)=>e?setImmediate:t?((n,r)=>(Fp.addEventListener("message",({source:o,data:i})=>{o===Fp&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Fp.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Oa(Fp.postMessage)),zRe=typeof queueMicrotask<"u"?queueMicrotask.bind(Fp):typeof process<"u"&&process.nextTick||Qne,VRe=e=>e!=null&&Oa(e[pI]),Ue={isArray:sv,isArrayBuffer:Gne,isBuffer:iRe,isFormData:hRe,isArrayBufferView:aRe,isString:sRe,isNumber:qne,isBoolean:lRe,isObject:gI,isPlainObject:mE,isReadableStream:gRe,isRequest:yRe,isResponse:vRe,isHeaders:bRe,isUndefined:Ax,isDate:cRe,isFile:uRe,isBlob:dRe,isRegExp:DRe,isFunction:Oa,isStream:pRe,isURLSearchParams:mRe,isTypedArray:IRe,isFileList:fRe,forEach:cw,merge:_N,extend:SRe,trim:xRe,stripBOM:wRe,inherits:CRe,toFlatObject:ERe,kindOf:hI,kindOfTest:Ql,endsWith:TRe,toArray:ORe,forEachEntry:PRe,matchAll:ARe,isHTMLForm:MRe,hasOwnProperty:A6,hasOwnProp:A6,reduceDescriptors:Yne,freezeMethods:kRe,toObjectSet:_Re,toCamelCase:RRe,noop:$Re,toFiniteNumber:NRe,findKey:Wne,global:Fp,isContextDefined:Kne,isSpecCompliantForm:LRe,toJSONObject:FRe,isAsyncFn:jRe,isThenable:BRe,setImmediate:Qne,asap:zRe,isIterable:VRe};function Sn(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Ue.inherits(Sn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ue.toJSONObject(this.config),code:this.code,status:this.status}}});const Xne=Sn.prototype,Zne={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Zne[e]={value:e}});Object.defineProperties(Sn,Zne);Object.defineProperty(Xne,"isAxiosError",{value:!0});Sn.from=(e,t,n,r,o,i)=>{const a=Object.create(Xne);return Ue.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Sn.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const HRe=null;function $N(e){return Ue.isPlainObject(e)||Ue.isArray(e)}function Jne(e){return Ue.endsWith(e,"[]")?e.slice(0,-2):e}function M6(e,t,n){return e?e.concat(t).map(function(o,i){return o=Jne(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function URe(e){return Ue.isArray(e)&&!e.some($N)}const GRe=Ue.toFlatObject(Ue,{},null,function(t){return/^is[A-Z]/.test(t)});function yI(e,t,n){if(!Ue.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Ue.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,v){return!Ue.isUndefined(v[y])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Ue.isSpecCompliantForm(t);if(!Ue.isFunction(o))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(Ue.isDate(g))return g.toISOString();if(!l&&Ue.isBlob(g))throw new Sn("Blob is not supported. Use a Buffer instead.");return Ue.isArrayBuffer(g)||Ue.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,y,v){let w=g;if(g&&!v&&typeof g=="object"){if(Ue.endsWith(y,"{}"))y=r?y:y.slice(0,-2),g=JSON.stringify(g);else if(Ue.isArray(g)&&URe(g)||(Ue.isFileList(g)||Ue.endsWith(y,"[]"))&&(w=Ue.toArray(g)))return y=Jne(y),w.forEach(function(E,I){!(Ue.isUndefined(E)||E===null)&&t.append(a===!0?M6([y],I,i):a===null?y:y+"[]",c(E))}),!1}return $N(g)?!0:(t.append(M6(v,y,i),c(g)),!1)}const f=[],h=Object.assign(GRe,{defaultVisitor:u,convertValue:c,isVisitable:$N});function m(g,y){if(!Ue.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(g),Ue.forEach(g,function(w,C){(!(Ue.isUndefined(w)||w===null)&&o.call(t,w,Ue.isString(C)?C.trim():C,y,h))===!0&&m(w,y?y.concat(C):[C])}),f.pop()}}if(!Ue.isObject(e))throw new TypeError("data must be an object");return m(e),t}function R6(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function gB(e,t){this._pairs=[],e&&yI(e,this,t)}const ere=gB.prototype;ere.append=function(t,n){this._pairs.push([t,n])};ere.toString=function(t){const n=t?function(r){return t.call(this,r,R6)}:R6;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function qRe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function tre(e,t,n){if(!t)return e;const r=n&&n.encode||qRe;Ue.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=Ue.isURLSearchParams(t)?t.toString():new gB(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class D6{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ue.forEach(this.handlers,function(r){r!==null&&t(r)})}}const nre={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},WRe=typeof URLSearchParams<"u"?URLSearchParams:gB,KRe=typeof FormData<"u"?FormData:null,YRe=typeof Blob<"u"?Blob:null,QRe={isBrowser:!0,classes:{URLSearchParams:WRe,FormData:KRe,Blob:YRe},protocols:["http","https","file","blob","url","data"]},yB=typeof window<"u"&&typeof document<"u",NN=typeof navigator=="object"&&navigator||void 0,XRe=yB&&(!NN||["ReactNative","NativeScript","NS"].indexOf(NN.product)<0),ZRe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",JRe=yB&&window.location.href||"http://localhost",eDe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:yB,hasStandardBrowserEnv:XRe,hasStandardBrowserWebWorkerEnv:ZRe,navigator:NN,origin:JRe},Symbol.toStringTag,{value:"Module"})),Ni={...eDe,...QRe};function tDe(e,t){return yI(e,new Ni.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Ni.isNode&&Ue.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function nDe(e){return Ue.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function rDe(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&Ue.isArray(o)?o.length:a,l?(Ue.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!Ue.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Ue.isArray(o[a])&&(o[a]=rDe(o[a])),!s)}if(Ue.isFormData(e)&&Ue.isFunction(e.entries)){const n={};return Ue.forEachEntry(e,(r,o)=>{t(nDe(r),o,n,0)}),n}return null}function oDe(e,t,n){if(Ue.isString(e))try{return(t||JSON.parse)(e),Ue.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const uw={transitional:nre,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Ue.isObject(t);if(i&&Ue.isHTMLForm(t)&&(t=new FormData(t)),Ue.isFormData(t))return o?JSON.stringify(rre(t)):t;if(Ue.isArrayBuffer(t)||Ue.isBuffer(t)||Ue.isStream(t)||Ue.isFile(t)||Ue.isBlob(t)||Ue.isReadableStream(t))return t;if(Ue.isArrayBufferView(t))return t.buffer;if(Ue.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return tDe(t,this.formSerializer).toString();if((s=Ue.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return yI(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),oDe(t)):t}],transformResponse:[function(t){const n=this.transitional||uw.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Ue.isResponse(t)||Ue.isReadableStream(t))return t;if(t&&Ue.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Sn.from(s,Sn.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ni.classes.FormData,Blob:Ni.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ue.forEach(["delete","get","head","post","put","patch"],e=>{uw.headers[e]={}});const iDe=Ue.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),aDe=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&iDe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},k6=Symbol("internals");function Zb(e){return e&&String(e).trim().toLowerCase()}function gE(e){return e===!1||e==null?e:Ue.isArray(e)?e.map(gE):String(e)}function sDe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const lDe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function NR(e,t,n,r,o){if(Ue.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Ue.isString(t)){if(Ue.isString(r))return t.indexOf(r)!==-1;if(Ue.isRegExp(r))return r.test(t)}}function cDe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function uDe(e,t){const n=Ue.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}let Ia=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,c){const u=Zb(l);if(!u)throw new Error("header name must be a non-empty string");const f=Ue.findKey(o,u);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=gE(s))}const a=(s,l)=>Ue.forEach(s,(c,u)=>i(c,u,l));if(Ue.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Ue.isString(t)&&(t=t.trim())&&!lDe(t))a(aDe(t),n);else if(Ue.isObject(t)&&Ue.isIterable(t)){let s={},l,c;for(const u of t){if(!Ue.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[c=u[0]]=(l=s[c])?Ue.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}a(s,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Zb(t),t){const r=Ue.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return sDe(o);if(Ue.isFunction(n))return n.call(this,o,r);if(Ue.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Zb(t),t){const r=Ue.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||NR(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=Zb(a),a){const s=Ue.findKey(r,a);s&&(!n||NR(r,r[s],s,n))&&(delete r[s],o=!0)}}return Ue.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||NR(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Ue.forEach(this,(o,i)=>{const a=Ue.findKey(r,i);if(a){n[a]=gE(o),delete n[i];return}const s=t?cDe(i):String(i).trim();s!==i&&delete n[i],n[s]=gE(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ue.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Ue.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[k6]=this[k6]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=Zb(a);r[s]||(uDe(o,a),r[s]=!0)}return Ue.isArray(t)?t.forEach(i):i(t),this}};Ia.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ue.reduceDescriptors(Ia.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ue.freezeMethods(Ia);function LR(e,t){const n=this||uw,r=t||n,o=Ia.from(r.headers);let i=r.data;return Ue.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function ore(e){return!!(e&&e.__CANCEL__)}function lv(e,t,n){Sn.call(this,e??"canceled",Sn.ERR_CANCELED,t,n),this.name="CanceledError"}Ue.inherits(lv,Sn,{__CANCEL__:!0});function ire(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Sn("Request failed with status code "+n.status,[Sn.ERR_BAD_REQUEST,Sn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function dDe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fDe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];a||(a=c),n[o]=l,r[o]=c;let f=i,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-a{n=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?a(c,u):(o=c,i||(i=setTimeout(()=>{i=null,a(o)},r-f)))},()=>o&&a(o)]}const JE=(e,t,n=3)=>{let r=0;const o=fDe(50,250);return pDe(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,c=o(l),u=a<=s;r=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},_6=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},$6=e=>(...t)=>Ue.asap(()=>e(...t)),hDe=Ni.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ni.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ni.origin),Ni.navigator&&/(msie|trident)/i.test(Ni.navigator.userAgent)):()=>!0,mDe=Ni.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Ue.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Ue.isString(r)&&a.push("path="+r),Ue.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function gDe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yDe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function are(e,t,n){let r=!gDe(t);return e&&(r||n==!1)?yDe(e,t):t}const N6=e=>e instanceof Ia?{...e}:e;function yh(e,t){t=t||{};const n={};function r(c,u,f,h){return Ue.isPlainObject(c)&&Ue.isPlainObject(u)?Ue.merge.call({caseless:h},c,u):Ue.isPlainObject(u)?Ue.merge({},u):Ue.isArray(u)?u.slice():u}function o(c,u,f,h){if(Ue.isUndefined(u)){if(!Ue.isUndefined(c))return r(void 0,c,f,h)}else return r(c,u,f,h)}function i(c,u){if(!Ue.isUndefined(u))return r(void 0,u)}function a(c,u){if(Ue.isUndefined(u)){if(!Ue.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u,f)=>o(N6(c),N6(u),f,!0)};return Ue.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||o,h=f(e[u],t[u],u);Ue.isUndefined(h)&&f!==s||(n[u]=h)}),n}const sre=e=>{const t=yh({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=Ia.from(a),t.url=tre(are(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Ue.isFormData(n)){if(Ni.hasStandardBrowserEnv||Ni.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Ni.hasStandardBrowserEnv&&(r&&Ue.isFunction(r)&&(r=r(t)),r||r!==!1&&hDe(t.url))){const c=o&&i&&mDe.read(i);c&&a.set(o,c)}return t},vDe=typeof XMLHttpRequest<"u",bDe=vDe&&function(e){return new Promise(function(n,r){const o=sre(e);let i=o.data;const a=Ia.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=o,u,f,h,m,g;function y(){m&&m(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function w(){if(!v)return;const E=Ia.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),O={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:E,config:e,request:v};ire(function(R){n(R),y()},function(R){r(R),y()},O),v=null}"onloadend"in v?v.onloadend=w:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(w)},v.onabort=function(){v&&(r(new Sn("Request aborted",Sn.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new Sn("Network Error",Sn.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let I=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const O=o.transitional||nre;o.timeoutErrorMessage&&(I=o.timeoutErrorMessage),r(new Sn(I,O.clarifyTimeoutError?Sn.ETIMEDOUT:Sn.ECONNABORTED,e,v)),v=null},i===void 0&&a.setContentType(null),"setRequestHeader"in v&&Ue.forEach(a.toJSON(),function(I,O){v.setRequestHeader(O,I)}),Ue.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),s&&s!=="json"&&(v.responseType=o.responseType),c&&([h,g]=JE(c,!0),v.addEventListener("progress",h)),l&&v.upload&&([f,m]=JE(l),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",m)),(o.cancelToken||o.signal)&&(u=E=>{v&&(r(!E||E.type?new lv(null,e,v):E),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const C=dDe(o.url);if(C&&Ni.protocols.indexOf(C)===-1){r(new Sn("Unsupported protocol "+C+":",Sn.ERR_BAD_REQUEST,e));return}v.send(i||null)})},xDe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof Sn?u:new lv(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new Sn(`timeout ${t} of ms exceeded`,Sn.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>Ue.asap(s),l}},SDe=function*(e,t){let n=e.byteLength;if(n{const o=wDe(e,t);let i=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){s(),l.close();return}let f=u.byteLength;if(n){let h=i+=f;n(h)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},vI=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",lre=vI&&typeof ReadableStream=="function",EDe=vI&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),cre=(e,...t)=>{try{return!!e(...t)}catch{return!1}},TDe=lre&&cre(()=>{let e=!1;const t=new Request(Ni.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),F6=64*1024,LN=lre&&cre(()=>Ue.isReadableStream(new Response("").body)),eT={stream:LN&&(e=>e.body)};vI&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!eT[t]&&(eT[t]=Ue.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Sn(`Response type '${t}' is not supported`,Sn.ERR_NOT_SUPPORT,r)})})})(new Response);const ODe=async e=>{if(e==null)return 0;if(Ue.isBlob(e))return e.size;if(Ue.isSpecCompliantForm(e))return(await new Request(Ni.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Ue.isArrayBufferView(e)||Ue.isArrayBuffer(e))return e.byteLength;if(Ue.isURLSearchParams(e)&&(e=e+""),Ue.isString(e))return(await EDe(e)).byteLength},IDe=async(e,t)=>{const n=Ue.toFiniteNumber(e.getContentLength());return n??ODe(t)},PDe=vI&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:h}=sre(e);c=c?(c+"").toLowerCase():"text";let m=xDe([o,i&&i.toAbortSignal()],a),g;const y=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let v;try{if(l&&TDe&&n!=="get"&&n!=="head"&&(v=await IDe(u,r))!==0){let O=new Request(t,{method:"POST",body:r,duplex:"half"}),P;if(Ue.isFormData(r)&&(P=O.headers.get("content-type"))&&u.setContentType(P),O.body){const[R,D]=_6(v,JE($6(l)));r=L6(O.body,F6,R,D)}}Ue.isString(f)||(f=f?"include":"omit");const w="credentials"in Request.prototype;g=new Request(t,{...h,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:w?f:void 0});let C=await fetch(g);const E=LN&&(c==="stream"||c==="response");if(LN&&(s||E&&y)){const O={};["status","statusText","headers"].forEach(M=>{O[M]=C[M]});const P=Ue.toFiniteNumber(C.headers.get("content-length")),[R,D]=s&&_6(P,JE($6(s),!0))||[];C=new Response(L6(C.body,F6,R,()=>{D&&D(),y&&y()}),O)}c=c||"text";let I=await eT[Ue.findKey(eT,c)||"text"](C,e);return!E&&y&&y(),await new Promise((O,P)=>{ire(O,P,{data:I,headers:Ia.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:g})})}catch(w){throw y&&y(),w&&w.name==="TypeError"&&/Load failed|fetch/i.test(w.message)?Object.assign(new Sn("Network Error",Sn.ERR_NETWORK,e,g),{cause:w.cause||w}):Sn.from(w,w&&w.code,e,g)}}),FN={http:HRe,xhr:bDe,fetch:PDe};Ue.forEach(FN,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const j6=e=>`- ${e}`,ADe=e=>Ue.isFunction(e)||e===null||e===!1,ure={getAdapter:e=>{e=Ue.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : -`+i.map(j6).join(` -`):" "+j6(i[0]):"as no adapter specified";throw new Sn("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:FN};function FR(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new lv(null,e)}function B6(e){return FR(e),e.headers=Ia.from(e.headers),e.data=LR.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ure.getAdapter(e.adapter||uw.adapter)(e).then(function(r){return FR(e),r.data=LR.call(e,e.transformResponse,r),r.headers=Ia.from(r.headers),r},function(r){return ore(r)||(FR(e),r&&r.response&&(r.response.data=LR.call(e,e.transformResponse,r.response),r.response.headers=Ia.from(r.response.headers))),Promise.reject(r)})}const dre="1.9.0",bI={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{bI[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const z6={};bI.transitional=function(t,n,r){function o(i,a){return"[Axios v"+dre+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new Sn(o(a," has been removed"+(n?" in "+n:"")),Sn.ERR_DEPRECATED);return n&&!z6[a]&&(z6[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};bI.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function MDe(e,t,n){if(typeof e!="object")throw new Sn("options must be an object",Sn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new Sn("option "+i+" must be "+l,Sn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Sn("Unknown option "+i,Sn.ERR_BAD_OPTION)}}const yE={assertOptions:MDe,validators:bI},sc=yE.validators;let rh=class{constructor(t){this.defaults=t||{},this.interceptors={request:new D6,response:new D6}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=yh(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&yE.assertOptions(r,{silentJSONParsing:sc.transitional(sc.boolean),forcedJSONParsing:sc.transitional(sc.boolean),clarifyTimeoutError:sc.transitional(sc.boolean)},!1),o!=null&&(Ue.isFunction(o)?n.paramsSerializer={serialize:o}:yE.assertOptions(o,{encode:sc.function,serialize:sc.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),yE.assertOptions(n,{baseUrl:sc.spelling("baseURL"),withXsrfToken:sc.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Ue.merge(i.common,i[n.method]);i&&Ue.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=Ia.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,s.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let u,f=0,h;if(!l){const g=[B6.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,c),h=g.length,u=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new lv(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new fre(function(o){t=o}),cancel:t}}};function DDe(e){return function(n){return e.apply(null,n)}}function kDe(e){return Ue.isObject(e)&&e.isAxiosError===!0}const jN={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(jN).forEach(([e,t])=>{jN[t]=e});function pre(e){const t=new rh(e),n=Hne(rh.prototype.request,t);return Ue.extend(n,rh.prototype,t,{allOwnKeys:!0}),Ue.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return pre(yh(e,o))},n}const it=pre(uw);it.Axios=rh;it.CanceledError=lv;it.CancelToken=RDe;it.isCancel=ore;it.VERSION=dre;it.toFormData=yI;it.AxiosError=Sn;it.Cancel=it.CanceledError;it.all=function(t){return Promise.all(t)};it.spread=DDe;it.isAxiosError=kDe;it.mergeConfig=yh;it.AxiosHeaders=Ia;it.formToJSON=e=>rre(Ue.isHTMLForm(e)?new FormData(e):e);it.getAdapter=ure.getAdapter;it.HttpStatusCode=jN;it.default=it;const{Axios:uAt,AxiosError:dAt,CanceledError:fAt,isCancel:pAt,CancelToken:hAt,VERSION:mAt,all:gAt,Cancel:yAt,isAxiosError:vAt,spread:bAt,toFormData:xAt,AxiosHeaders:SAt,HttpStatusCode:wAt,formToJSON:CAt,getAdapter:EAt,mergeConfig:TAt}=it,kg={protein:4,carbohydrates:4,fat:9};class qa{constructor(t){Pe(this,"bodyWeight",0);Pe(this,"energy",0);Pe(this,"protein",0);Pe(this,"carbohydrates",0);Pe(this,"carbohydratesSugar",0);Pe(this,"fat",0);Pe(this,"fatSaturated",0);Pe(this,"fiber",0);Pe(this,"sodium",0);this.energy=(t==null?void 0:t.energy)??0,this.protein=(t==null?void 0:t.protein)??0,this.carbohydrates=(t==null?void 0:t.carbohydrates)??0,this.carbohydratesSugar=(t==null?void 0:t.carbohydratesSugar)??0,this.fat=(t==null?void 0:t.fat)??0,this.fatSaturated=(t==null?void 0:t.fatSaturated)??0,this.fiber=(t==null?void 0:t.fiber)??0,this.sodium=(t==null?void 0:t.sodium)??0,this.bodyWeight=(t==null?void 0:t.bodyWeight)??0}get energyKj(){return this.energy*4.184}get isEmpty(){return this.energy===0&&this.protein===0&&this.carbohydrates===0&&this.fat===0}get percent(){return{protein:this.protein>0?this.protein*kg.protein/this.energy*100:0,carbohydrates:this.carbohydrates>0?this.carbohydrates*kg.carbohydrates/this.energy*100:0,fat:this.fat>0?this.fat*kg.fat/this.energy*100:0}}get perBodyKg(){return{protein:this.bodyWeight>0?this.protein/this.bodyWeight:0,carbohydrates:this.bodyWeight>0?this.carbohydrates/this.bodyWeight:0,fat:this.bodyWeight>0?this.fat/this.bodyWeight:0}}static fromIngredient(t,n,r){const o=new qa,i=r===null?n:n*r.amount*r.grams;return o.energy=t.energy*i/100,o.protein=t.protein*i/100,o.carbohydrates=t.carbohydrates*i/100,o.carbohydratesSugar=t.carbohydratesSugar?t.carbohydratesSugar*i/100:0,o.fat=t.fat*i/100,o.fatSaturated=t.fatSaturated?t.fatSaturated*i/100:0,o.fiber=t.fiber?t.fiber*i/100:0,o.sodium=t.sodium?t.sodium*i/100:0,o}add(t){return this.energy+=t.energy,this.protein+=t.protein,this.carbohydrates+=t.carbohydrates,this.carbohydratesSugar+=t.carbohydratesSugar,this.fat+=t.fat,this.fatSaturated+=t.fatSaturated,this.fiber+=t.fiber,this.sodium+=t.sodium,this}toString(){return`e: ${this.energy}, p: ${this.protein}, c: ${this.carbohydrates}, cS: ${this.carbohydratesSugar}, f: ${this.fat}, fS: ${this.fatSaturated}, fi: ${this.fiber}, s: ${this.sodium}`}equals(t){return this.energy===t.energy&&this.protein===t.protein&&this.carbohydrates===t.carbohydrates&&this.carbohydratesSugar===t.carbohydratesSugar&&this.fat===t.fat&&this.fatSaturated===t.fatSaturated&&this.fiber===t.fiber&&this.sodium===t.sodium}}function mr(e){return e.toISOString().split("T")[0]}function xa(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function tT(e,t){return e==null?null:e.toLocaleTimeString(t?[t]:[],{hour:"2-digit",minute:"2-digit"})}function Mx(e){if(e==null)return null;const[t,n]=e.toTimeString().split(":");return`${t}:${n}`}function BN(e){if(e==null)return null;const[t,n]=e.split(":",2),r=new Date;return r.setHours(parseInt(t)),r.setMinutes(parseInt(n)),r}function _De(e,t=new Date){const r={lastWeek:()=>t.setDate(t.getDate()-7),lastMonth:()=>t.setMonth(t.getMonth()-1),lastHalfYear:()=>t.setMonth(t.getMonth()-6),lastYear:()=>t.setFullYear(t.getFullYear()-1),"":void 0}[e];if(r)r();else return;return mr(t)}class hre{constructor(t,n,r,o){Pe(this,"items",[]);Pe(this,"diaryEntries",[]);this.id=t,this.order=n,this.time=r,this.name=o}get timeHHMMLocale(){return tT(this.time)}get displayName(){return this.name?this.name:this.timeHHMMLocale}get diaryEntriesToday(){return this.diaryEntries.filter(t=>xa(t.datetime,new Date))}get plannedNutritionalValues(){const t=new qa;for(const n of this.items)t.add(n.nutritionalValues);return t}get loggedNutritionalValuesToday(){const t=new qa;for(const n of this.diaryEntriesToday)t.add(n.nutritionalValues);return t}}class vB{fromJson(t){return new hre(t.id,t.order,BN(t.time),t.name)}toJson(t){return{name:t.name,order:t.order,time:tT(t.time)}}}const vE=-1;class $De{constructor(t,n,r,o=!1,i=null,a=null,s=null,l=null,c=null,u=null,f=null){Pe(this,"meals",[]);Pe(this,"diaryEntries",[]);this.id=t,this.creationDate=n,this.description=r,this.onlyLogging=o,this.goalEnergy=i,this.goalProtein=a,this.goalCarbohydrates=s,this.goalFiber=l,this.goalSodium=c,this.goalFat=u,this.goalFatsSaturated=f}get hasAnyGoals(){return this.goalEnergy!==null||this.goalProtein!==null||this.goalCarbohydrates!==null||this.goalFat!==null}get hasAnyAdvancedGoals(){return this.goalFiber!==null||this.goalSodium!==null||this.goalFatsSaturated!==null}get hasAnyPlanned(){return this.hasAnyGoals||this.plannedNutritionalValues.energy>0}get plannedNutritionalValues(){if(this.hasAnyGoals)return new qa({energy:this.goalEnergy,carbohydrates:this.goalCarbohydrates,protein:this.goalProtein,fat:this.goalFat});const t=new qa;for(const n of this.meals)t.add(n.plannedNutritionalValues);return t}get loggedNutritionalValues7DayAvg(){const t=new Date,n=new Date(t.getTime()-7*24*60*60*1e3),r=this.diaryEntries.filter(o=>o.datetime>=n);return this.getAverageNutritionalValuesFromDiaryEntries(r)}get loggedNutritionalValuesToday(){const t=this.diaryEntries.filter(n=>xa(n.datetime,new Date));return this.getNutritionalValuesFromDiaryEntries(t)}get groupDiaryEntries(){return this.diaryEntries.reduce((t,n)=>{const r=n.datetime.toISOString().split("T")[0],o=t.get(r)||{entries:[],nutritionalValues:new qa};return o.entries.push(n),o.nutritionalValues.add(n.nutritionalValues),t.set(r,o),t},new Map)}get percentageValuesLoggedToday(){return new qa({protein:this.loggedNutritionalValuesToday.protein/this.plannedNutritionalValues.protein*100,carbohydrates:this.loggedNutritionalValuesToday.carbohydrates/this.plannedNutritionalValues.carbohydrates*100,fat:this.loggedNutritionalValuesToday.fat/this.plannedNutritionalValues.fat*100})}pseudoMealOthers(t){const n=new hre(vE,-1,null,t);return n.diaryEntries=this.diaryEntries.filter(r=>r.mealId===null),n}loggedNutritionalValuesDate(t){return this.getNutritionalValuesFromDiaryEntries(this.loggedEntriesDate(t))}loggedEntriesDate(t){return this.diaryEntries.filter(n=>xa(n.datetime,t))}getAverageNutritionalValuesFromDiaryEntries(t){const n=t.length,r=this.getNutritionalValuesFromDiaryEntries(t);return n===0||(r.energy=r.energy/n,r.protein=r.protein/n,r.carbohydrates=r.carbohydrates/n,r.carbohydratesSugar=r.carbohydratesSugar/n,r.fat=r.fat/n,r.fatSaturated=r.fatSaturated/n,r.fiber=r.fiber/n,r.sodium=r.sodium/n),r}getNutritionalValuesFromDiaryEntries(t){return t.reduce((n,r)=>n.add(r.nutritionalValues),new qa)}}class xI{fromJson(t){return new $De(t.id,new Date(t.creation_date),t.description,t.only_logging,t.goal_energy,t.goal_protein,t.goal_carbohydrates,t.goal_fiber,null,t.goal_fat)}toJson(t){return{description:t.description}}}class mre{constructor(t,n,r){this.date=t,this.weight=n,this.id=r}}class bB{fromJson(t){return new mre(new Date(t.date),parseFloat(t.weight),t.id)}toJson(t){return{id:t.id,date:mr(t.date),weight:t.weight}}}const NDe="/static/react",xB="",LDe="",FDe=void 0;var bE={exports:{}},jDe=bE.exports,V6;function BDe(){return V6||(V6=1,function(e){(function(t){let n;function r(u,f){const h=u.charCodeAt(f);if(isNaN(h))throw new RangeError("Index "+f+' out of range for string "'+u+'"; please open an issue at https://github.com/Trott/slug/issues/new');if(h<55296||h>57343)return[u.charAt(f),f];if(h>=55296&&h<=56319){if(u.length<=f+1)return[" ",f];const g=u.charCodeAt(f+1);return g<56320||g>57343?[" ",f]:[u.charAt(f)+u.charAt(f+1),f+1]}if(f===0)return[" ",f];const m=u.charCodeAt(f-1);if(m<55296||m>56319)return[" ",f];throw new Error('String "'+u+'" reaches code believed to be unreachable; please open an issue at https://github.com/Trott/slug/issues/new')}typeof window<"u"?window.btoa?n=function(u){return btoa(unescape(encodeURIComponent(u)))}:n=function(u){const f=unescape(encodeURIComponent(u+""));let h="";for(let m,g,y=0,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";f.charAt(y|0)||(v="=",y%1);h+=v.charAt(63&m>>8-y%1*8)){if(g=f.charCodeAt(y+=3/4),g>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");m=m<<8|g}return h}:n=function(u){return Buffer.from(u).toString("base64")};function o(u,f){let h=s(u,f);if((f&&f.fallback!==void 0?f.fallback:o.defaults.fallback)===!0&&h===""){let g="";for(let y=0;y1?h[f[g]]=u[f[g]]:m[f[g]]=u[f[g]];Object.assign(o.charmap,m),Object.assign(o.multicharmap,h)},o.setLocale=function(u){a=i[u]||{}},e.exports?e.exports=o:t.slug=o})(jDe)}(bE)),bE.exports}var zDe=BDe();const gre=Gn(zDe);function ft(e,t){t=t||{};const r=[t.server||LDe,"api","v2",e];if(t.id&&r.push(t.id.toString()),t.objectMethod&&r.push(t.objectMethod),r.push(""),t.query){const o=[];for(const i in t.query)Object.hasOwn(t.query,i)&&o.push(`${encodeURIComponent(i)}=${encodeURIComponent(t.query[i])}`);r.pop(),r.push(`?${o.join("&")}`)}return r.join("/")}var Qt=(e=>(e[e.DASHBOARD=0]="DASHBOARD",e[e.ROUTINE_OVERVIEW=1]="ROUTINE_OVERVIEW",e[e.ROUTINE_DETAIL=2]="ROUTINE_DETAIL",e[e.ROUTINE_EDIT=3]="ROUTINE_EDIT",e[e.ROUTINE_DETAIL_TABLE=4]="ROUTINE_DETAIL_TABLE",e[e.ROUTINE_EDIT_PROGRESSION=5]="ROUTINE_EDIT_PROGRESSION",e[e.ROUTINE_ADD=6]="ROUTINE_ADD",e[e.ROUTINE_LOGS_OVERVIEW=7]="ROUTINE_LOGS_OVERVIEW",e[e.ROUTINE_STATS_OVERVIEW=8]="ROUTINE_STATS_OVERVIEW",e[e.ROUTINE_PDF_TABLE=9]="ROUTINE_PDF_TABLE",e[e.ROUTINE_PDF_LOGS=10]="ROUTINE_PDF_LOGS",e[e.ROUTINE_ICAL=11]="ROUTINE_ICAL",e[e.ROUTINE_COPY=12]="ROUTINE_COPY",e[e.ROUTINE_ADD_LOG=13]="ROUTINE_ADD_LOG",e[e.TEMPLATE_DETAIL=14]="TEMPLATE_DETAIL",e[e.PRIVATE_TEMPLATE_OVERVIEW=15]="PRIVATE_TEMPLATE_OVERVIEW",e[e.PUBLIC_TEMPLATE_OVERVIEW=16]="PUBLIC_TEMPLATE_OVERVIEW",e[e.EXERCISE_DETAIL=17]="EXERCISE_DETAIL",e[e.EXERCISE_OVERVIEW=18]="EXERCISE_OVERVIEW",e[e.EXERCISE_CONTRIBUTE=19]="EXERCISE_CONTRIBUTE",e[e.WEIGHT_OVERVIEW=20]="WEIGHT_OVERVIEW",e[e.WEIGHT_ADD=21]="WEIGHT_ADD",e[e.MEASUREMENT_OVERVIEW=22]="MEASUREMENT_OVERVIEW",e[e.MEASUREMENT_DETAIL=23]="MEASUREMENT_DETAIL",e[e.NUTRITION_OVERVIEW=24]="NUTRITION_OVERVIEW",e[e.NUTRITION_DETAIL=25]="NUTRITION_DETAIL",e[e.NUTRITION_PLAN_PDF=26]="NUTRITION_PLAN_PDF",e[e.NUTRITION_PLAN_COPY=27]="NUTRITION_PLAN_COPY",e[e.NUTRITION_DIARY=28]="NUTRITION_DIARY",e[e.INGREDIENT_DETAIL=29]="INGREDIENT_DETAIL",e[e.CALENDAR=30]="CALENDAR",e))(Qt||{});function cn(e,t,n){t=t||"en-us";const r=t.split("-")[0];switch(e){case 1:return`/${r}/routine/overview`;case 2:return`/${r}/routine/${n.id}/view`;case 4:return`/${r}/routine/${n.id}/table`;case 3:return`/${r}/routine/${n.id}/edit`;case 5:return`/${r}/routine/${n.id}/edit/progression/${n.id2}`;case 6:return`/${r}/routine/add`;case 12:return`/${r}/routine/${n.id}/copy`;case 9:return`/${r}/routine/${n.id}/pdf/table`;case 10:return`/${r}/routine/${n.id}/pdf/log`;case 11:return`/${r}/routine/${n.id}/ical`;case 7:return`/${r}/routine/${n.id}/logs`;case 8:return`/${r}/routine/${n.id}/statistics`;case 13:return`/${r}/routine/${n.id}/day/${n.id2}/add-logs`;case 30:return`/${r}/routine/calendar`;case 14:return`/${r}/routine/templates/${n.id}/view`;case 15:return`/${r}/routine/templates/overview/private`;case 16:return`/${r}/routine/templates/overview/public`;case 19:return`/${r}/exercise/contribute`;case 17:return n.slug?`/${r}/exercise/${n.id}/view/${gre(n.slug)}`:`/${r}/exercise/${n.id}/view`;case 18:return`/${r}/exercise/overview`;case 20:return`/${r}/weight/overview`;case 21:return`/${r}/weight/add`;case 22:return`/${r}/measurement/overview`;case 23:return`/${r}/measurement/category/${n.id}`;case 24:return`/${r}/nutrition/overview`;case 25:return`/${r}/nutrition/${n.id}/view`;case 28:return`/${r}/nutrition/${n.id}/${n.date}`;case 26:return`/${r}/nutrition/${n.id}/pdf`;case 27:return`/${r}/nutrition/${n.id}/copy`;case 29:return`/${r}/nutrition/ingredient/${n.id}/view`;case 0:default:return"/"}}function VDe(e){let t=null;if(document.cookie&&document.cookie!==""){const n=document.cookie.split(";");for(let r=0;r{const t=_De(e),n=ft(SI,{query:{ordering:"-date",limit:900,...t&&{date__gte:t}}}),{data:r}=await it.get(n,{headers:ht()});return r.results.map(o=>new bB().fromJson(o))},UDe=async e=>(await it.delete(ft(SI,{id:e}),{headers:ht()})).status,GDe=async e=>{const t=new bB,n=await it.patch(ft(SI,{id:e.id}),t.toJson(e),{headers:ht()});return t.fromJson(n)},qDe=async e=>{const t=new bB,n=await it.post(ft(SI),t.toJson(e),{headers:ht()});return t.fromJson(n.data)},gn=e=>typeof e=="string",Jb=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},H6=e=>e==null?"":""+e,WDe=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},KDe=/###/g,U6=e=>e&&e.indexOf("###")>-1?e.replace(KDe,"."):e,G6=e=>!e||gn(e),X0=(e,t,n)=>{const r=gn(t)?t.split("."):t;let o=0;for(;o{const{obj:r,k:o}=X0(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let i=t[t.length-1],a=t.slice(0,t.length-1),s=X0(e,a,Object);for(;s.obj===void 0&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),s=X0(e,a,Object),s!=null&&s.obj&&typeof s.obj[`${s.k}.${i}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},YDe=(e,t,n,r)=>{const{obj:o,k:i}=X0(e,t,Object);o[i]=o[i]||[],o[i].push(n)},nT=(e,t)=>{const{obj:n,k:r}=X0(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},QDe=(e,t,n)=>{const r=nT(e,n);return r!==void 0?r:nT(t,n)},yre=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?gn(e[r])||e[r]instanceof String||gn(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):yre(e[r],t[r],n):e[r]=t[r]);return e},Hm=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var XDe={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const ZDe=e=>gn(e)?e.replace(/[&<>"'\/]/g,t=>XDe[t]):e;class JDe{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const eke=[" ",",","?","!",";"],tke=new JDe(20),nke=(e,t,n)=>{t=t||"",n=n||"";const r=eke.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const o=tke.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let i=!o.test(e);if(!i){const a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i},zN=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let o=e;for(let i=0;i-1&&le==null?void 0:e.replace("_","-"),rke={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}};class rT{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||rke,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(gn(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new rT(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new rT(this.logger,t)}}var yc=new rT;let wI=class{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([o,i])=>{for(let a=0;a{for(let a=0;a-1&&this.options.ns.splice(n,1)}getResource(t,n,r,o={}){var c,u;const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,a=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):gn(r)&&i?s.push(...r.split(i)):s.push(r)));const l=nT(this.data,s);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),l||!a||!gn(r)?l:zN((u=(c=this.data)==null?void 0:c[t])==null?void 0:u[n],r,i)}addResource(t,n,r,o,i={silent:!1}){const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(s=t.split("."),o=n,n=s[1]),this.addNamespaces(n),q6(this.data,s,o),i.silent||this.emit("added",t,n,r,o)}addResources(t,n,r,o={silent:!1}){for(const i in r)(gn(r[i])||Array.isArray(r[i]))&&this.addResource(t,n,i,r[i],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,i,a={silent:!1,skipCopy:!1}){let s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),o=r,r=n,n=s[1]),this.addNamespaces(n);let l=nT(this.data,s)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?yre(l,r,i):l={...l,...r},q6(this.data,s,l),a.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var vre={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(i=>{var a;t=((a=this.processors[i])==null?void 0:a.process(t,n,r,o))??t}),t}};const K6={},Y6=e=>!gn(e)&&typeof e!="boolean"&&typeof e!="number";class oT extends wI{constructor(t,n={}){super(),WDe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=yc.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const o=this.resolve(t,r);return(o==null?void 0:o.res)!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const a=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!nke(t,r,o);if(a&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:gn(i)?[i]:i};const c=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),t=c.join(o)}return{key:t,namespaces:gn(i)?[i]:i}}translate(t,n,r){let o=typeof n=="object"?{...n}:n;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(o={...o}),o||(o={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],o),c=l[l.length-1];let u=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");const f=o.lng||this.language,h=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((f==null?void 0:f.toLowerCase())==="cimode")return h?i?{res:`${c}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(o)}:`${c}${u}${s}`:i?{res:s,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(o)}:s;const m=this.resolve(t,o);let g=m==null?void 0:m.res;const y=(m==null?void 0:m.usedKey)||s,v=(m==null?void 0:m.exactUsedKey)||s,w=["[object Number]","[object Function]","[object RegExp]"],C=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,I=o.count!==void 0&&!gn(o.count),O=oT.hasDefaultValue(o),P=I?this.pluralResolver.getSuffix(f,o.count,o):"",R=o.ordinal&&I?this.pluralResolver.getSuffix(f,o.count,{ordinal:!1}):"",D=I&&!o.ordinal&&o.count===0,M=D&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${P}`]||o[`defaultValue${R}`]||o.defaultValue;let A=g;E&&!g&&O&&(A=M);const _=Y6(A),N=Object.prototype.toString.apply(A);if(E&&A&&_&&w.indexOf(N)<0&&!(gn(C)&&Array.isArray(A))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const B=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,A,{...o,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(m.res=B,m.usedParams=this.getUsedParamsDetails(o),m):B}if(a){const B=Array.isArray(A),H=B?[]:{},j=B?v:y;for(const L in A)if(Object.prototype.hasOwnProperty.call(A,L)){const V=`${j}${a}${L}`;O&&!g?H[L]=this.translate(V,{...o,defaultValue:Y6(M)?M[L]:void 0,joinArrays:!1,ns:l}):H[L]=this.translate(V,{...o,joinArrays:!1,ns:l}),H[L]===V&&(H[L]=A[L])}g=H}}else if(E&&gn(C)&&Array.isArray(g))g=g.join(C),g&&(g=this.extendTranslation(g,t,o,r));else{let B=!1,H=!1;!this.isValidLookup(g)&&O&&(B=!0,g=M),this.isValidLookup(g)||(H=!0,g=s);const L=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&H?void 0:g,V=O&&M!==g&&this.options.updateMissing;if(H||B||V){if(this.logger.log(V?"updateKey":"missingKey",f,c,s,V?M:g),a){const q=this.resolve(s,{...o,keySeparator:!1});q&&q.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let W=[];const K=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&K&&K[0])for(let q=0;q{var se;const ie=O&&J!==g?J:L;this.options.missingKeyHandler?this.options.missingKeyHandler(q,c,Y,ie,V,o):(se=this.backendConnector)!=null&&se.saveMissing&&this.backendConnector.saveMissing(q,c,Y,ie,V,o),this.emit("missingKey",q,c,Y,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&I?W.forEach(q=>{const Y=this.pluralResolver.getSuffixes(q,o);D&&o[`defaultValue${this.options.pluralSeparator}zero`]&&Y.indexOf(`${this.options.pluralSeparator}zero`)<0&&Y.push(`${this.options.pluralSeparator}zero`),Y.forEach(J=>{G([q],s+J,o[`defaultValue${J}`]||M)})}):G(W,s,M))}g=this.extendTranslation(g,t,o,m,r),H&&g===s&&this.options.appendNamespaceToMissingKey&&(g=`${c}${u}${s}`),(H||B)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${u}${s}`:s,B?g:void 0,o))}return i?(m.res=g,m.usedParams=this.getUsedParamsDetails(o),m):g}extendTranslation(t,n,r,o,i){var l,c;if((l=this.i18nFormat)!=null&&l.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=gn(t)&&(((c=r==null?void 0:r.interpolation)==null?void 0:c.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(u){const m=t.match(this.interpolator.nestingRegexp);f=m&&m.length}let h=r.replace&&!gn(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,r.lng||this.language||o.usedLng,r),u){const m=t.match(this.interpolator.nestingRegexp),g=m&&m.length;f(i==null?void 0:i[0])===m[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${n[0]}`),null):this.translate(...m,n),r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,s=gn(a)?[a]:a;return t!=null&&(s!=null&&s.length)&&r.applyPostProcessor!==!1&&(t=vre.handle(s,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,o,i,a,s;return gn(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),u=c.key;o=u;let f=c.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const h=n.count!==void 0&&!gn(n.count),m=h&&!n.ordinal&&n.count===0,g=n.context!==void 0&&(gn(n.context)||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(v=>{var w,C;this.isValidLookup(r)||(s=v,!K6[`${y[0]}-${v}`]&&((w=this.utils)!=null&&w.hasLoadedNamespace)&&!((C=this.utils)!=null&&C.hasLoadedNamespace(s))&&(K6[`${y[0]}-${v}`]=!0,this.logger.warn(`key "${o}" for languages "${y.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(E=>{var P;if(this.isValidLookup(r))return;a=E;const I=[u];if((P=this.i18nFormat)!=null&&P.addLookupKeys)this.i18nFormat.addLookupKeys(I,u,E,v,n);else{let R;h&&(R=this.pluralResolver.getSuffix(E,n.count,n));const D=`${this.options.pluralSeparator}zero`,M=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(I.push(u+R),n.ordinal&&R.indexOf(M)===0&&I.push(u+R.replace(M,this.options.pluralSeparator)),m&&I.push(u+D)),g){const A=`${u}${this.options.contextSeparator}${n.context}`;I.push(A),h&&(I.push(A+R),n.ordinal&&R.indexOf(M)===0&&I.push(A+R.replace(M,this.options.pluralSeparator)),m&&I.push(A+D))}}let O;for(;O=I.pop();)this.isValidLookup(r)||(i=O,r=this.getResource(E,v,O,n))}))})}),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,o={}){var i;return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!gn(t.replace);let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const i of n)delete o[i]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class Q6{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=yc.create("languageUtils")}getScriptPartFromCode(t){if(t=Rx(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Rx(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(gn(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getScriptPartFromCode(r);if(this.isSupportedCode(o))return n=o;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(a=>{if(a===i)return a;if(!(a.indexOf("-")<0&&i.indexOf("-")<0)&&(a.indexOf("-")>0&&i.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===i||a.indexOf(i)===0&&i.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),gn(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),o=[],i=a=>{a&&(this.isSupportedCode(a)?o.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return gn(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):gn(t)&&i(this.formatLanguageCode(t)),r.forEach(a=>{o.indexOf(a)<0&&i(this.formatLanguageCode(a))}),o}}const X6={zero:0,one:1,two:2,few:3,many:4,other:5},Z6={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class oke{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=yc.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=Rx(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(r,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Z6;if(!t.match(/-|_/))return Z6;const l=this.languageUtils.getLanguagePartFromCode(t);a=this.getRule(l,n)}return this.pluralRulesCache[i]=a,a}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((o,i)=>X6[o]-X6[i]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,n,r={}){const o=this.getRule(t,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const J6=(e,t,n,r=".",o=!0)=>{let i=QDe(e,t,n);return!i&&o&&gn(n)&&(i=zN(e,n,r),i===void 0&&(i=zN(t,n,r))),i},jR=e=>e.replace(/\$/g,"$$$$");class ike{constructor(t={}){var n;this.logger=yc.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:i,prefixEscaped:a,suffix:s,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:f,nestingPrefix:h,nestingPrefixEscaped:m,nestingSuffix:g,nestingSuffixEscaped:y,nestingOptionsSeparator:v,maxReplaces:w,alwaysFormat:C}=t.interpolation;this.escape=n!==void 0?n:ZDe,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?Hm(i):a||"{{",this.suffix=s?Hm(s):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=h?Hm(h):m||Hm("$t("),this.nestingSuffix=g?Hm(g):y||Hm(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=w||1e3,this.alwaysFormat=C!==void 0?C:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,o){var m;let i,a,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=g=>{if(g.indexOf(this.formatSeparator)<0){const C=J6(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(C,void 0,r,{...o,...n,interpolationkey:g}):C}const y=g.split(this.formatSeparator),v=y.shift().trim(),w=y.join(this.formatSeparator).trim();return this.format(J6(n,l,v,this.options.keySeparator,this.options.ignoreJSONStructure),w,r,{...o,...n,interpolationkey:v})};this.resetRegExp();const u=(o==null?void 0:o.missingInterpolationHandler)||this.options.missingInterpolationHandler,f=((m=o==null?void 0:o.interpolation)==null?void 0:m.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>jR(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?jR(this.escape(g)):jR(g)}].forEach(g=>{for(s=0;i=g.regex.exec(t);){const y=i[1].trim();if(a=c(y),a===void 0)if(typeof u=="function"){const w=u(t,i,o);a=gn(w)?w:""}else if(o&&Object.prototype.hasOwnProperty.call(o,y))a="";else if(f){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),a="";else!gn(a)&&!this.useRawValueToEscape&&(a=H6(a));const v=g.safeValue(a);if(t=t.replace(i[0],v),f?(g.regex.lastIndex+=a.length,g.regex.lastIndex-=i[0].length):g.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n,r={}){let o,i,a;const s=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const f=l.split(new RegExp(`${u}[ ]*{`));let h=`{${f[1]}`;l=f[0],h=this.interpolate(h,a);const m=h.match(/'/g),g=h.match(/"/g);(((m==null?void 0:m.length)??0)%2===0&&!g||g.length%2!==0)&&(h=h.replace(/'/g,'"'));try{a=JSON.parse(h),c&&(a={...c,...a})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${u}${h}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;o=this.nestingRegexp.exec(t);){let l=[];a={...r},a=a.replace&&!gn(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const u=o[1].split(this.formatSeparator).map(f=>f.trim());o[1]=u.shift(),l=u,c=!0}if(i=n(s.call(this,o[1].trim(),a),a),i&&o[0]===t&&!gn(i))return i;gn(i)||(i=H6(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),c&&(i=l.reduce((u,f)=>this.format(u,f,r.lng,{...r,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}const ake=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(a=>{if(a){const[s,...l]=a.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=s.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},eq=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const a=r+JSON.stringify(i);let s=t[a];return s||(s=e(Rx(r),o),t[a]=s),s(n)}},ske=e=>(t,n,r)=>e(Rx(n),r)(t);let lke=class{constructor(t={}){this.logger=yc.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?eq:ske;this.formats={number:r((o,i)=>{const a=new Intl.NumberFormat(o,{...i});return s=>a.format(s)}),currency:r((o,i)=>{const a=new Intl.NumberFormat(o,{...i,style:"currency"});return s=>a.format(s)}),datetime:r((o,i)=>{const a=new Intl.DateTimeFormat(o,{...i});return s=>a.format(s)}),relativetime:r((o,i)=>{const a=new Intl.RelativeTimeFormat(o,{...i});return s=>a.format(s,i.range||"day")}),list:r((o,i)=>{const a=new Intl.ListFormat(o,{...i});return s=>a.format(s)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=eq(n)}format(t,n,r,o={}){const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(s=>s.indexOf(")")>-1)){const s=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,s)].join(this.formatSeparator)}return i.reduce((s,l)=>{var f;const{formatName:c,formatOptions:u}=ake(l);if(this.formats[c]){let h=s;try{const m=((f=o==null?void 0:o.formatParams)==null?void 0:f[o.interpolationkey])||{},g=m.locale||m.lng||o.locale||o.lng||r;h=this.formats[c](s,g,{...u,...o,...m})}catch(m){this.logger.warn(m)}return h}else this.logger.warn(`there was no format function for ${c}`);return s},t)}};const cke=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class uke extends wI{constructor(t,n,r,o={}){var i,a;super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=yc.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],(a=(i=this.backend)==null?void 0:i.init)==null||a.call(i,r,o.backend,o)}queueLoad(t,n,r,o){const i={},a={},s={},l={};return t.forEach(c=>{let u=!0;n.forEach(f=>{const h=`${c}|${f}`;!r.reload&&this.store.hasResourceBundle(c,f)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?a[h]===void 0&&(a[h]=!0):(this.state[h]=1,u=!1,a[h]===void 0&&(a[h]=!0),i[h]===void 0&&(i[h]=!0),l[f]===void 0&&(l[f]=!0)))}),u||(s[c]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const o=t.split("|"),i=o[0],a=o[1];n&&this.emit("failedLoading",i,a,n),!n&&r&&this.store.addResourceBundle(i,a,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const s={};this.queue.forEach(l=>{YDe(l.loaded,[i],a),cke(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{s[c]||(s[c]={});const u=l.loaded[c];u.length&&u.forEach(f=>{s[c][f]===void 0&&(s[c][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r,o=0,i=this.retryTimeout,a){if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:i,callback:a});return}this.readingCalls++;const s=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&u&&o{this.read.call(this,t,n,r,o+1,i*2,a)},i);return}a(c,u)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(t,n);c&&typeof c.then=="function"?c.then(u=>s(null,u)).catch(s):s(null,c)}catch(c){s(c)}return}return l(t,n,s)}prepareLoading(t,n,r={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();gn(t)&&(t=this.languageUtils.toResolveHierarchy(t)),gn(n)&&(n=[n]);const i=this.queueLoad(t,n,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(a=>{this.loadOne(a)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,a),!a&&s&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,s),this.loaded(t,a,s)})}saveMissing(t,n,r,o,i,a={},s=()=>{}){var l,c,u,f,h;if((c=(l=this.services)==null?void 0:l.utils)!=null&&c.hasLoadedNamespace&&!((f=(u=this.services)==null?void 0:u.utils)!=null&&f.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((h=this.backend)!=null&&h.create){const m={...a,isUpdate:i},g=this.backend.create.bind(this.backend);if(g.length<6)try{let y;g.length===5?y=g(t,n,r,o,m):y=g(t,n,r,o),y&&typeof y.then=="function"?y.then(v=>s(null,v)).catch(s):s(null,y)}catch(y){s(y)}else g(t,n,r,o,s,m)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const tq=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),gn(e[1])&&(t.defaultValue=e[1]),gn(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),nq=e=>{var t,n;return gn(e.ns)&&(e.ns=[e.ns]),gn(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),gn(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},O1=()=>{},dke=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Dx extends wI{constructor(t={},n){if(super(),this.options=nq(t),this.services={},this.logger=yc,this.modules={external:[]},dke(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(gn(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=tq();this.options={...r,...this.options,...nq(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const o=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?yc.init(o(this.modules.logger),this.options):yc.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=lke;const u=new Q6(this.options);this.store=new W6(this.options.resources,this.options);const f=this.services;f.logger=yc,f.resourceStore=this.store,f.languageUtils=u,f.pluralResolver=new oke(u,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(f.formatter=o(c),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new ike(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new uke(o(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",(h,...m)=>{this.emit(h,...m)}),this.modules.languageDetector&&(f.languageDetector=o(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=o(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new oT(this.services,this.options),this.translator.on("*",(h,...m)=>{this.emit(h,...m)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,n||(n=O1),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=(...u)=>this.store[c](...u)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...u)=>(this.store[c](...u),this)});const s=Jb(),l=()=>{const c=(u,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(f),n(u,f)};if(this.languages&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),s}loadResources(t,n=O1){var i,a;let r=n;const o=gn(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((o==null?void 0:o.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],l=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(f=>{f!=="cimode"&&s.indexOf(f)<0&&s.push(f)})};o?l(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>l(u)),(a=(i=this.options.preload)==null?void 0:i.forEach)==null||a.call(i,c=>l(c)),this.services.backendConnector.load(s,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(t,n,r){const o=Jb();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=O1),this.services.backendConnector.reload(t,n,i=>{o.resolve(),r(i)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&vre.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=Jb();this.emit("languageChanging",t);const o=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},i=(s,l)=>{l?this.isLanguageChangingTo===t&&(o(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...c)=>this.t(...c)),n&&n(s,(...c)=>this.t(...c))},a=s=>{var u,f;!t&&!s&&this.services.languageDetector&&(s=[]);const l=gn(s)?s:s&&s[0],c=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(gn(s)?[s]:s);c&&(this.language||o(c),this.translator.language||this.translator.changeLanguage(c),(f=(u=this.services.languageDetector)==null?void 0:u.cacheUserLanguage)==null||f.call(u,c)),this.loadResources(c,h=>{i(h,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),r}getFixedT(t,n,r){const o=(i,a,...s)=>{let l;typeof a!="object"?l=this.options.overloadTranslationOptionHandler([i,a].concat(s)):l={...a},l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||o.keyPrefix);const c=this.options.keySeparator||".";let u;return l.keyPrefix&&Array.isArray(i)?u=i.map(f=>`${l.keyPrefix}${c}${f}`):u=l.keyPrefix?`${l.keyPrefix}${c}${i}`:i,this.t(u,l)};return gn(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(s,l)=>{const c=this.services.backendConnector.state[`${s}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const s=n.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!o||a(i,t)))}loadNamespaces(t,n){const r=Jb();return this.options.ns?(gn(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Jb();gn(t)&&(t=[t]);const o=this.options.preload||[],i=t.filter(a=>o.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return i.length?(this.options.preload=o.concat(i),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(t){var o,i;if(t||(t=this.resolvedLanguage||(((o=this.languages)==null?void 0:o.length)>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((i=this.services)==null?void 0:i.languageUtils)||new Q6(tq());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){return new Dx(t,n)}cloneInstance(t={},n=O1){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new Dx(o);if((t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(s=>{i[s]=this[s]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r){const s=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},l[c]=Object.keys(l[c]).reduce((u,f)=>(u[f]={...l[c][f]},u),l[c]),l),{});i.store=new W6(s,o),i.services.resourceStore=i.store}return i.translator=new oT(i.services,o),i.translator.on("*",(s,...l)=>{i.emit(s,...l)}),i.init(o,n),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Cr=Dx.createInstance();Cr.createInstance=Dx.createInstance;Cr.createInstance;Cr.dir;Cr.init;Cr.loadResources;Cr.reloadResources;Cr.use;Cr.changeLanguage;Cr.getFixedT;Cr.t;Cr.exists;Cr.setDefaultNamespace;Cr.hasLoadedNamespace;Cr.loadNamespaces;Cr.loadLanguages;const fke=22;function pke(e,t=fke){return e.length>t?e.slice(0,t)+"…":e}function hke(e){return e.toLowerCase().replace(/\s/g,"_").replace("(","_").replace(")","_").replace("-","_")}function SB(e){return e===void 0?(console.warn("called getTranslationKey with undefined name"),""):`server.${hke(e)}`}class mke{constructor(t,n,r,o){this.id=t,this.name=n,this.nameEn=r,this.isFront=o}get translatedName(){return Cr.t(SB(this.nameEn),{defaultValue:this.nameEn})}getName(){return this.nameEn?`${this.name} (${this.translatedName})`:this.name}}class bre{fromJson(t){return new mke(t.id,t.name,t.name_en,t.is_front)}toJson(t){return{}}}const gke="muscle",yke=async()=>{const e=ft(gke),{data:t}=await it.get(e,{headers:ht()}),n=new bre;return t.results.map(r=>n.fromJson(r))},{slice:vke,forEach:bke}=[];function xke(e){return bke.call(vke.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}const rq=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Ske=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},o=encodeURIComponent(t);let i=`${e}=${o}`;if(r.maxAge>0){const a=r.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(a)}`}if(r.domain){if(!rq.test(r.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${r.domain}`}if(r.path){if(!rq.test(r.path))throw new TypeError("option path is invalid");i+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i},oq={create(e,t,n,r){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+n*60*1e3)),r&&(o.domain=r),document.cookie=Ske(e,encodeURIComponent(t),o)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r-1&&(o=window.location.hash.substring(window.location.hash.indexOf("?")));const a=o.substring(1).split("&");for(let s=0;s0&&a[s].substring(0,l)===t&&(n=a[s].substring(l+1))}}return n}};let Um=null;const iq=()=>{if(Um!==null)return Um;try{if(Um=typeof window<"u"&&window.localStorage!==null,!Um)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Um=!1}return Um};var Eke={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&iq())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&iq()&&window.localStorage.setItem(n,e)}};let Gm=null;const aq=()=>{if(Gm!==null)return Gm;try{if(Gm=typeof window<"u"&&window.sessionStorage!==null,!Gm)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Gm=!1}return Gm};var Tke={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&aq())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&aq()&&window.sessionStorage.setItem(n,e)}},Oke={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:o}=navigator;if(n)for(let i=0;i0?t:void 0}},Ike={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},Pke={name:"path",lookup(e){var o;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(o=n[typeof t=="number"?t:0])==null?void 0:o.replace("/",""):void 0}},Ake={name:"subdomain",lookup(e){var o,i;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((i=(o=window.location)==null?void 0:o.hostname)==null?void 0:i.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};let xre=!1;try{document.cookie,xre=!0}catch{}const Sre=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];xre||Sre.splice(1,1);const Mke=()=>({order:Sre,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class wre{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=xke(n,this.options||{},Mke()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(wke),this.addDetector(Cke),this.addDetector(Eke),this.addDetector(Tke),this.addDetector(Oke),this.addDetector(Ike),this.addDetector(Pke),this.addDetector(Ake)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let o=this.detectors[r].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(n=n.concat(o))}}),n=n.map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}wre.type="languageDetector";function VN(e){"@babel/helpers - typeof";return VN=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},VN(e)}function Cre(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":VN(XMLHttpRequest))==="object"}function Rke(e){return!!e&&typeof e.then=="function"}function Dke(e){return Rke(e)?e:Promise.resolve(e)}function sq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function lq(e){for(var t=1;timport("./browser-ponyfill-LoQBBJMI.js").then(e=>e.b),[]).then(function(e){Of=e.default}).catch(function(){})}catch{}var HN=function(t,n){if(n&&vh(n)==="object"){var r="";for(var o in n)r+="&"+encodeURIComponent(o)+"="+encodeURIComponent(n[o]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},cq=function(t,n,r,o){var i=function(l){if(!l.ok)return r(l.statusText||"Error",{status:l.status});l.text().then(function(c){r(null,{status:l.status,data:c})}).catch(r)};if(o){var a=o(t,n);if(a instanceof Promise){a.then(i).catch(r);return}}typeof fetch=="function"?fetch(t,n).then(i).catch(r):Of(t,n).then(i).catch(r)},uq=!1,Nke=function(t,n,r,o){t.queryStringParams&&(n=HN(n,t.queryStringParams));var i=lq({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(i["Content-Type"]="application/json");var a=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,s=lq({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:i},uq?{}:a),l=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{cq(n,s,o,l)}catch(c){if(!a||Object.keys(a).length===0||!c.message||c.message.indexOf("not implemented")<0)return o(c);try{Object.keys(a).forEach(function(u){delete s[u]}),cq(n,s,o,l),uq=!0}catch(u){o(u)}}},Lke=function(t,n,r,o){r&&vh(r)==="object"&&(r=HN("",r).slice(1)),t.queryStringParams&&(n=HN(n,t.queryStringParams));try{var i=kx?new kx:new iT("MSXML2.XMLHTTP.3.0");i.open(r?"POST":"GET",n,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!t.withCredentials,r&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var a=t.customHeaders;if(a=typeof a=="function"?a():a,a)for(var s in a)i.setRequestHeader(s,a[s]);i.onreadystatechange=function(){i.readyState>3&&o(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(r)}catch(l){console&&console.log(l)}},Fke=function(t,n,r,o){if(typeof r=="function"&&(o=r,r=void 0),o=o||function(){},Of&&n.indexOf("file:")!==0)return Nke(t,n,r,o);if(Cre()||typeof ActiveXObject=="function")return Lke(t,n,r,o);o(new Error("No fetch and no xhr implementation found!"))};function sy(e){"@babel/helpers - typeof";return sy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sy(e)}function dq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function BR(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};jke(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return zke(e,[{key:"init",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=BR(BR(BR({},Hke()),this.options||{}),o),this.allOptions=i,this.services&&this.options.reloadInterval){var a=setInterval(function(){return r.reload()},this.options.reloadInterval);sy(a)==="object"&&typeof a.unref=="function"&&a.unref()}}},{key:"readMulti",value:function(n,r,o){this._readAny(n,n,r,r,o)}},{key:"read",value:function(n,r,o){this._readAny([n],n,[r],r,o)}},{key:"_readAny",value:function(n,r,o,i,a){var s=this,l=this.options.loadPath;typeof this.options.loadPath=="function"&&(l=this.options.loadPath(n,o)),l=Dke(l),l.then(function(c){if(!c)return a(null,{});var u=s.services.interpolator.interpolate(c,{lng:n.join("+"),ns:o.join("+")});s.loadUrl(u,a,r,i)})}},{key:"loadUrl",value:function(n,r,o,i){var a=this,s=typeof o=="string"?[o]:o,l=typeof i=="string"?[i]:i,c=this.options.parseLoadPayload(s,l);this.options.request(this.options,n,c,function(u,f){if(f&&(f.status>=500&&f.status<600||!f.status))return r("failed loading "+n+"; status code: "+f.status,!0);if(f&&f.status>=400&&f.status<500)return r("failed loading "+n+"; status code: "+f.status,!1);if(!f&&u&&u.message){var h=u.message.toLowerCase(),m=["failed","fetch","network","load"].find(function(v){return h.indexOf(v)>-1});if(m)return r("failed loading "+n+": "+u.message,!0)}if(u)return r(u,!1);var g,y;try{typeof f.data=="string"?g=a.options.parse(f.data,o,i):g=f.data}catch{y="failed parsing "+n+" to json"}if(y)return r(y,!1);r(null,g)})}},{key:"create",value:function(n,r,o,i,a){var s=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var l=this.options.parsePayload(r,o,i),c=0,u=[],f=[];n.forEach(function(h){var m=s.options.addPath;typeof s.options.addPath=="function"&&(m=s.options.addPath(h,r));var g=s.services.interpolator.interpolate(m,{lng:h,ns:r});s.options.request(s.options,g,l,function(y,v){c+=1,u.push(y),f.push(v),c===n.length&&typeof a=="function"&&a(u,f)})})}}},{key:"reload",value:function(){var n=this,r=this.services,o=r.backendConnector,i=r.languageUtils,a=r.logger,s=o.language;if(!(s&&s.toLowerCase()==="cimode")){var l=[],c=function(f){var h=i.toResolveHierarchy(f);h.forEach(function(m){l.indexOf(m)<0&&l.push(m)})};c(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(u){return c(u)}),l.forEach(function(u){n.allOptions.ns.forEach(function(f){o.read(u,f,"read",null,null,function(h,m){h&&a.warn("loading namespace ".concat(f," for language ").concat(u," failed"),h),!h&&m&&a.log("loaded namespace ".concat(f," for language ").concat(u),m),o.loaded("".concat(u,"|").concat(f),h,m)})})})}}}])}();Ore.type="backend";Cr.use(Ore).use(wre).use(JMe).init({load:"languageOnly",detection:{order:["path","navigator","htmlTag"]},fallbackLng:"en",interpolation:{escapeValue:!1},backend:{loadPath:"/static/react/locales/{{lng}}/{{ns}}.json"}});class Uke{constructor(t,n){this.id=t,this.name=n}get translatedName(){return Cr.t(SB(this.name),{defaultValue:this.name})}}class Ire{fromJson(t){return new Uke(t.id,t.name)}toJson(t){return{id:t.id,name:t.name}}}const Gke="equipment",qke=async()=>{const e=ft(Gke),{data:t}=await it.get(e,{headers:ht()}),n=new Ire;return t.results.map(r=>n.fromJson(r))};class Wke{constructor(t,n){this.id=t,this.name=n}get translatedName(){return Cr.t(SB(this.name),{defaultValue:this.name})}}class Pre{fromJson(t){return new Wke(t.id,t.name)}toJson(t){return{id:t.id,name:t.name}}}const Kke="exercisecategory",Yke=async()=>{const e=ft(Kke),{data:t}=await it.get(e,{headers:ht()}),n=new Pre;return t.results.map(r=>n.fromJson(r))};var wu=(e=>(e[e.LINE_ART=1]="LINE_ART",e[e.THREE_D=2]="THREE_D",e[e.LOW_POLY=3]="LOW_POLY",e[e.PHOTO=4]="PHOTO",e[e.OTHER=5]="OTHER",e))(wu||{});class Qke{constructor(t,n,r,o){this.id=t,this.uuid=n,this.url=r,this.isMain=o}}class UN{fromJson(t){return new Qke(t.id,t.uuid,t.image,t.is_main)}toJson(t){return{id:t.id,image:t.url,is_front:t.isMain}}}class Xke{constructor(t,n,r){this.id=t,this.uuid=n,this.alias=r}}class Are{fromJson(t){return new Xke(t.id,t.uuid,t.alias)}toJson(t){return{id:t.id,name:t.alias}}}class GN{constructor(t,n,r){this.id=t,this.exercise=n,this.note=r}}class Mre{fromJson(t){return new GN(t.id,t.exercise,t.comment)}toJson(t){return{id:t.id,comment:t.note,exercise:t.exercise}}}class Rre{constructor(t,n,r,o,i,a,s,l){Pe(this,"notes",[]);Pe(this,"aliases",[]);Pe(this,"authors",[]);this.id=t,this.uuid=n,this.name=r,this.description=o,this.language=i,a&&(this.notes=a),s&&(this.aliases=s),l&&(this.authors=l)}get nameLong(){return pke(this.name)}get nameSlug(){return gre(this.name)}}class wB{fromJson(t){var n,r;return new Rre(t.id,t.uuid,t.name,t.description,t.language,(n=t.notes)==null?void 0:n.map(o=>new Mre().fromJson(o)),(r=t.aliases)==null?void 0:r.map(o=>new Are().fromJson(o)),t.author_history)}toJson(t){return{id:t.id,uuid:t.uuid,name:t.name,description:t.description,language:t.language}}}class Zke{constructor(t,n,r,o){this.id=t,this.uuid=n,this.url=r,this.isMain=o}}class Dre{fromJson(t){return new Zke(t.id,t.uuid,t.video,t.is_main)}toJson(t){return{id:t.id,video:t.url}}}class CB{constructor(t,n,r){this.id=t,this.nameShort=n,this.nameLong=r}}class Jke{fromJson(t){return new CB(t.id,t.short_name,t.full_name)}toJson(t){return{}}}const bh=2,kre="en",e2e=new CB(bh,kre,"English"),t2e=21,n2e=1,r2e=1,o2e=2,i2e="variations",a2e="detail",s2e="permission",cv="measurements",uv="measurements-categories";var st=(e=>(e.ROUTINE_OVERVIEW="routine-overview",e.ROUTINE_DETAIL="routine-detail",e.SESSION_SEARCH="session-search",e.SESSIONS_FULL="sessions-full",e.ROUTINE_LOGS="routine-logs",e.ROUTINE_LOG_DATA="routine-log-data",e.ROUTINE_STATS="routine-stats",e.ROUTINES_ACTIVE="routines-active",e.ROUTINES_SHALLOW="routines-shallow",e.PRIVATE_TEMPLATES="private-templates",e.PUBLIC_TEMPLATES="public-templates",e.NUTRITIONAL_PLANS="nutritional-plans",e.NUTRITIONAL_PLAN="nutritional-plan",e.NUTRITIONAL_PLAN_DIARY="nutritional-plan-diary",e.NUTRITIONAL_PLAN_LAST="nutritional-plan-last",e.INGREDIENT="ingredient",e.BODY_WEIGHT="body-weight",e.ROUTINE_WEIGHT_UNITS="weight-units",e.ROUTINE_REP_UNITS="rep-units",e.QUERY_PROFILE="profile",e.EXERCISES="exercises",e.EXERCISE_VARIATIONS="variations",e.EXERCISE_DETAIL="detail",e.LANGUAGES="languages",e.CATEGORIES="categories",e.EQUIPMENT="equipment",e.MUSCLES="muscles",e.QUERY_NOTES="notes",e))(st||{}),xt=(e=>(e.MEAL="meal",e.MEAL_ITEM="mealitem",e.NUTRITIONAL_DIARY="nutritiondiary",e.INGREDIENT_PATH="ingredientinfo",e.INGREDIENT_SEARCH_PATH="ingredient/search",e.INGREDIENT_WEIGHT_UNIT="ingredientweightunit",e.ROUTINE="routine",e.WEIGHT_CONFIG="weight-config",e.MAX_WEIGHT_CONFIG="max-weight-config",e.REPETITIONS_CONFIG="repetitions-config",e.MAX_REPS_CONFIG="max-repetitions-config",e.RIR_CONFIG="rir-config",e.MAX_RIR_CONFIG="max-rir-config",e.NR_OF_SETS_CONFIG="sets-config",e.MAX_NR_OF_SETS_CONFIG="max-sets-config",e.REST_CONFIG="rest-config",e.MAX_REST_CONFIG="max-rest-config",e.DAY="day",e.SLOT="slot",e.SLOT_ENTRY="slot-entry",e.SESSION="workoutsession",e.WORKOUT_LOG="workoutlog",e.PRIVATE_TEMPLATE="templates",e.PUBLIC_TEMPLATE="public-templates",e.API_PROFILE_PATH="userprofile",e))(xt||{});const qN="999",l2e=["#2a4c7d","#5b5291","#8e5298","#bf5092","#e7537e","#ff6461","#ff813d","#ffa600"],c2e=["#2a4c7d","#825298","#d45089","#ff6a59","#ffa600"],u2e=["#2a4c7d","#d45089","#ffa600"],WN={pageSizeOptions:[5,10,25,50,100],pageSize:10},d2e="Europe/Berlin",ly="en",CI=3e3,_re=500;class f2e{constructor(t,n,r,o,i,a,s,l,c,u,f){Pe(this,"translations",[]);Pe(this,"videos",[]);Pe(this,"authors",[]);this.id=t,this.uuid=n,this.category=r,this.equipment=o,this.muscles=i,this.musclesSecondary=a,this.images=s,this.variationId=l,c&&(this.translations=c),u&&(this.videos=u),f&&(this.authors=f)}get availableLanguages(){return this.translations.map(t=>t.language)}get mainImage(){return this.images.find(t=>t.isMain)}get sideImages(){return this.images.filter(t=>!t.isMain)}getTranslation(t){const n=t!=null?t.id:bh;let r=this.translations.find(o=>o.language===n);return r||(r=this.translations.find(o=>o.language===bh)),r||this.translations[0]}}class $re{fromJson(t){const n=new Pre,r=new Ire,o=new bre,i=new UN,a=new wB,s=new Dre,l=new f2e(t.id,t.uuid,n.fromJson(t.category),t.equipment.map(c=>r.fromJson(c)),t.muscles.map(c=>o.fromJson(c)),t.muscles_secondary.map(c=>o.fromJson(c)),t.images.map(c=>i.fromJson(c)),t.variations,t.translations.map(c=>a.fromJson(c)),t.videos.map(c=>s.fromJson(c)),t.author_history);if(l.translations.some(c=>c.language===bh)||console.info(`No english translation found for exercise base ${l.uuid}!`),l.translations.length===0)throw new Error(`No translations found for exercise base ${l.uuid}!`);return l}toJson(t){return{id:t.id,uuid:t.uuid,category:t.category.id,equipment:t.equipment.map(n=>n.id),muscles:t.muscles.map(n=>n.id),muscles_secondary:t.musclesSecondary.map(n=>n.id),images:t.images.map(n=>new UN().toJson(n))}}}const EB="exerciseinfo",TB="exercise";function Nre(e){const t=new $re,n=[];for(const r of e.results)try{n.push(t.fromJson(r))}catch(o){console.error("An error happened, skipping base:",o)}return n}const p2e=async()=>{const e=ft(EB,{query:{limit:900}}),t=await it.get(e,{headers:ht()});return Nre(t.data)},dv=async e=>{const t=new $re,n=ft(EB,{id:e}),r=await it.get(n,{headers:ht()});return t.fromJson(r.data)},h2e=async e=>{if(!e)return[];const t=ft(EB,{query:{variations:e}}),n=await it.get(t,{headers:ht()});return Nre(n.data)},m2e=async(e,t,n,r,o,i)=>{const a=ft(TB),s={category:e,equipment:t,muscles:n,muscles_secondary:r,variation_id:o,license_author:i};return(await it.post(a,s,{headers:ht()})).data.id},OB=async(e,t)=>{const n=ft(TB,{id:e});return(await it.patch(n,t,{headers:ht()})).status},fq=async(e,t)=>{const r=ft(TB,t===void 0?{id:e}:{id:e,query:{replaced_by:t}});return(await it.delete(r,{headers:ht()})).status},IB="exercise-translation",g2e="exercise/search",y2e=async(e,t=kre,n=!0)=>{const r=[t];t!==ly&&n&&r.push(ly);const o=ft(g2e,{query:{term:e,language:r.join(",")}}),{data:i}=await it.get(o);return i.suggestions},KN=async e=>{const{exerciseId:t,languageId:n,name:r,description:o,author:i}=e,a=ft(IB),s={exercise:t,language:n,name:r,description:o,license_author:i},l=await it.post(a,s,{headers:ht()});return new wB().fromJson(l.data)},v2e=async e=>{const{id:t,exerciseId:n,languageId:r,name:o,description:i}=e,a=ft(IB,{id:t}),s={exercise:n,language:r,name:o,description:i},l=await it.patch(a,s,{headers:ht()});return new wB().fromJson(l.data)},b2e=async e=>{const t=ft(IB,{id:e});return(await it.delete(t,{headers:ht()})).status},x2e="language",S2e=async()=>{const e=ft(x2e),{data:t}=await it.get(e,{headers:ht()}),n=new Jke;return t.results.map(r=>n.fromJson(r))},Gu=(e,t)=>{const n=e.split("-")[0],r=t.find(o=>o.nameShort===n);if(r)return r},Lre="exerciseimage",Fre=async e=>{const t=ft(Lre),n=ht();n["Content-Type"]="multipart/form-data";const r=await it.post(t,{exercise:e.exerciseId,image:e.image,license_title:e.imageData.title,license_object_url:e.imageData.objectUrl,license_author:e.imageData.author,license_author_url:e.imageData.authorUrl,license_derivative_source_url:e.imageData.derivativeSourceUrl,style:e.imageData.style},{headers:n});return new UN().fromJson(r.data)},w2e=async e=>{const t=ft(Lre,{id:e}),n=ht();return(await it.delete(t,{headers:n})).status},jre="exercisealias",YN=async(e,t)=>{const n=ft(jre),r=await it.post(n,{translation:e,alias:t},{headers:ht()});return new Are().fromJson(r.data)},C2e=async e=>(await it.delete(ft(jre,{id:e}),{headers:ht()})).status,Bre="video",E2e=async(e,t,n)=>{const r=ft(Bre),o=ht();o["Content-Type"]="multipart/form-data";const i=await it.post(r,{exercise:e,license_author:t,video:n},{headers:o});return new Dre().fromJson(i.data)},T2e=async e=>{const t=ft(Bre,{id:e}),n=ht();return(await it.delete(t,{headers:n})).status},Qi="r",O2e="+",I2e="-",QN=["weight","reps","rir","rest"],P2e=[{value:"abs",label:"Absolute"},{value:"percent",label:"Percent"}],A2e=[{value:O2e,label:"Add"},{value:I2e,label:"Subtract"},{value:Qi,label:"Replace"}],zre=[{value:"",label:"-/-"},...[0,.5,1,1.5,2,2.5,3,3.5,4].map(e=>({value:e,label:e.toString()})),{value:4.5,label:"4+"}],Vre=[...zre];class M2e{constructor(t){Pe(this,"id");Pe(this,"slotEntryId");Pe(this,"iteration");Pe(this,"value");Pe(this,"operation");Pe(this,"step");Pe(this,"repeat");Pe(this,"requirements");this.id=t.id,this.slotEntryId=t.slotEntryId,this.iteration=t.iteration,this.value=t.value,this.operation=t.operation??"r",this.step=t.step??"abs",this.repeat=t.repeat??!1,this.requirements=t.requirements??null}get replace(){return this.operation==="r"}}class PB{constructor(){Pe(this,"fromJson",t=>new M2e({id:t.id,slotEntryId:t.slot_entry,iteration:t.iteration,value:parseFloat(t.value),operation:t.operation,step:t.step,repeat:t.repeat,requirements:t.requirements}));Pe(this,"toJson",t=>({slot_entry:t.slotEntryId,iteration:t.iteration,value:t.value,operation:t.operation,step:t.step,repeat:t.repeat,requirements:t.requirements}))}}class R2e{constructor(t){Pe(this,"id");Pe(this,"slotId");Pe(this,"exerciseId");Pe(this,"repetitionUnitId");Pe(this,"repetitionRounding");Pe(this,"weightUnitId");Pe(this,"weightRounding");Pe(this,"order");Pe(this,"comment");Pe(this,"type");Pe(this,"config");Pe(this,"weightConfigs",[]);Pe(this,"maxWeightConfigs",[]);Pe(this,"repetitionsConfigs",[]);Pe(this,"maxRepetitionsConfigs",[]);Pe(this,"restTimeConfigs",[]);Pe(this,"maxRestTimeConfigs",[]);Pe(this,"nrOfSetsConfigs",[]);Pe(this,"maxNrOfSetsConfigs",[]);Pe(this,"rirConfigs",[]);Pe(this,"maxRirConfigs",[]);Pe(this,"exercise");Pe(this,"repetitionUnit",null);Pe(this,"weightUnit",null);this.id=t.id,this.slotId=t.slotId,this.exerciseId=t.exerciseId,this.exercise=t.exercise,this.repetitionUnitId=t.repetitionUnitId,this.repetitionRounding=t.repetitionRounding,this.weightUnitId=t.weightUnitId,this.weightRounding=t.weightRounding,this.order=t.order,this.comment=t.comment,this.type=t.type,this.config=t.config,t.configs!==void 0&&(this.weightConfigs=t.configs.weightConfigs??[],this.maxWeightConfigs=t.configs.maxWeightConfigs??[],this.repetitionsConfigs=t.configs.repetitionsConfigs??[],this.maxRepetitionsConfigs=t.configs.maxRepetitionsConfigs??[],this.restTimeConfigs=t.configs.restTimeConfigs??[],this.maxRestTimeConfigs=t.configs.maxRestTimeConfigs??[],this.nrOfSetsConfigs=t.configs.nrOfSetsConfigs??[],this.maxNrOfSetsConfigs=t.configs.maxNrOfSetsConfigs??[],this.rirConfigs=t.configs.rirConfigs??[],this.maxRirConfigs=t.configs.maxRirConfigs??[])}get hasProgressionRules(){return this.weightConfigs.length>1||this.maxWeightConfigs.length>1||this.repetitionsConfigs.length>1||this.maxRepetitionsConfigs.length>1||this.restTimeConfigs.length>1||this.maxRestTimeConfigs.length>1||this.nrOfSetsConfigs.length>1||this.maxNrOfSetsConfigs.length>1||this.rirConfigs.length>1||this.maxRirConfigs.length>1}}class D2e{constructor(){Pe(this,"fromJson",t=>{const n=new PB,r={weightConfigs:[],maxWeightConfigs:[],repetitionsConfigs:[],maxRepetitionsConfigs:[],restTimeConfigs:[],maxRestTimeConfigs:[],nrOfSetsConfigs:[],maxNrOfSetsConfigs:[],rirConfigs:[],maxRirConfigs:[]};return Object.hasOwn(t,"weight_configs")&&(r.weightConfigs=t.weight_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"max_weight_configs")&&(r.maxWeightConfigs=t.max_weight_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"repetitions_configs")&&(r.repetitionsConfigs=t.repetitions_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"max_repetitions_configs")&&(r.maxRepetitionsConfigs=t.max_repetitions_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"set_nr_configs")&&(r.nrOfSetsConfigs=t.set_nr_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"max_set_nr_configs")&&(r.maxNrOfSetsConfigs=t.max_set_nr_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"rest_configs")&&(r.restTimeConfigs=t.rest_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"max_rest_configs")&&(r.maxRestTimeConfigs=t.max_rest_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"rir_configs")&&(r.rirConfigs=t.rir_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"max_rir_configs")&&(r.maxRirConfigs=t.max_rir_configs.map(o=>n.fromJson(o))),new R2e({id:t.id,slotId:t.slot,exerciseId:t.exercise,repetitionUnitId:t.repetition_unit,repetitionRounding:t.repetition_rounding,weightUnitId:t.weight_unit,weightRounding:t.weight_rounding,order:t.order,comment:t.comment,type:t.type,config:t.config,configs:r})});Pe(this,"toJson",t=>({slot:t.slotId,exercise:t.exerciseId,repetition_unit:t.repetitionUnitId,repetition_rounding:t.repetitionRounding,weight_unit:t.weightUnitId,weight_rounding:t.weightRounding,order:t.order,comment:t.comment,type:t.type,config:t.config}))}}const AB=new D2e;class k2e{constructor({id:t,dayId:n,order:r,comment:o,config:i,entries:a=[]}){Pe(this,"id");Pe(this,"dayId");Pe(this,"order");Pe(this,"comment");Pe(this,"config");Pe(this,"entries",[]);this.id=t,this.dayId=n,this.order=r,this.comment=o,this.config=i,this.entries=a}}class MB{constructor(){Pe(this,"fromJson",t=>new k2e({id:t.id,dayId:t.day,order:t.order,comment:t.comment,config:t.config,entries:Object.hasOwn(t,"entries")?t.entries.map(n=>AB.fromJson(n)):[]}))}toJson(t){return{id:t.id,day:t.dayId,order:t.order,comment:t.order,config:t.config}}}class Hre{constructor({id:t,order:n,name:r,description:o,isRest:i,needLogsToAdvance:a,type:s,config:l,slots:c=[]}){Pe(this,"id");Pe(this,"order");Pe(this,"name");Pe(this,"description");Pe(this,"isRest");Pe(this,"needLogsToAdvance");Pe(this,"type");Pe(this,"config");Pe(this,"slots",[]);this.id=t,this.order=n,this.name=r,this.description=o,this.isRest=i,this.needLogsToAdvance=a,this.type=s,this.config=l,this.slots=c}get isSpecialType(){return this.type!=="custom"}getDisplayName(){return this.isRest?Cr.t("routines.restDay"):this.name}}const Ure=e=>e===null||e.isRest?Cr.t("routines.restDay"):e.getDisplayName();class EI{constructor(){Pe(this,"fromJson",t=>new Hre({id:t.id,order:t.order,name:t.name,description:t.description,isRest:t.is_rest,needLogsToAdvance:t.need_logs_to_advance,type:t.type,config:t.config,slots:Object.hasOwn(t,"slots")?t.slots.map(n=>new MB().fromJson(n)):[]}));Pe(this,"toJson",t=>({order:t.order,description:t.description,is_rest:t.isRest,need_logs_to_advance:t.needLogsToAdvance,type:t.type,config:t.config}))}}class Gre{constructor(t){Pe(this,"exercises",{});Pe(this,"muscle",{});Pe(this,"upper_body",0);Pe(this,"lower_body",0);Pe(this,"total",0);Object.assign(this,t)}}class xE{constructor(t){Pe(this,"mesocycle",new Gre);Pe(this,"iteration",{});Pe(this,"weekly",{});Pe(this,"daily",{});Object.assign(this,t)}}class _2e{constructor(t){Pe(this,"volume",new xE);Pe(this,"intensity",new xE);Pe(this,"sets",new xE);Object.assign(this,t)}}class $2e{fromJson(t){const n=o=>{const i={};for(const s in o.exercises)i[parseInt(s)]=parseFloat(o.exercises[s]);const a={};for(const s in o.muscle)a[parseInt(s)]=parseFloat(o.muscle[s]);return new Gre({exercises:i,muscle:a,upper_body:parseFloat(o.upper_body),lower_body:parseFloat(o.lower_body),total:parseFloat(o.total)})},r=o=>{const i={};for(const l in o.iteration)i[l]=n(o.iteration[l]);const a={};for(const l in o.weekly)a[l]=n(o.weekly[l]);const s={};for(const l in o.daily)s[l]=n(o.daily[l]);return new xE({mesocycle:n(o.mesocycle),iteration:i,weekly:a,daily:s})};return new _2e({volume:r(t.volume),intensity:r(t.intensity),sets:r(t.sets)})}}class Bh extends Error{}class N2e extends Bh{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class L2e extends Bh{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class F2e extends Bh{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class hg extends Bh{}class qre extends Bh{constructor(t){super(`Invalid unit ${t}`)}}class ki extends Bh{}class Nd extends Bh{constructor(){super("Zone is an abstract class")}}const Rt="numeric",ql="short",Xa="long",aT={year:Rt,month:Rt,day:Rt},Wre={year:Rt,month:ql,day:Rt},j2e={year:Rt,month:ql,day:Rt,weekday:ql},Kre={year:Rt,month:Xa,day:Rt},Yre={year:Rt,month:Xa,day:Rt,weekday:Xa},Qre={hour:Rt,minute:Rt},Xre={hour:Rt,minute:Rt,second:Rt},Zre={hour:Rt,minute:Rt,second:Rt,timeZoneName:ql},Jre={hour:Rt,minute:Rt,second:Rt,timeZoneName:Xa},eoe={hour:Rt,minute:Rt,hourCycle:"h23"},toe={hour:Rt,minute:Rt,second:Rt,hourCycle:"h23"},noe={hour:Rt,minute:Rt,second:Rt,hourCycle:"h23",timeZoneName:ql},roe={hour:Rt,minute:Rt,second:Rt,hourCycle:"h23",timeZoneName:Xa},ooe={year:Rt,month:Rt,day:Rt,hour:Rt,minute:Rt},ioe={year:Rt,month:Rt,day:Rt,hour:Rt,minute:Rt,second:Rt},aoe={year:Rt,month:ql,day:Rt,hour:Rt,minute:Rt},soe={year:Rt,month:ql,day:Rt,hour:Rt,minute:Rt,second:Rt},B2e={year:Rt,month:ql,day:Rt,weekday:ql,hour:Rt,minute:Rt},loe={year:Rt,month:Xa,day:Rt,hour:Rt,minute:Rt,timeZoneName:ql},coe={year:Rt,month:Xa,day:Rt,hour:Rt,minute:Rt,second:Rt,timeZoneName:ql},uoe={year:Rt,month:Xa,day:Rt,weekday:Xa,hour:Rt,minute:Rt,timeZoneName:Xa},doe={year:Rt,month:Xa,day:Rt,weekday:Xa,hour:Rt,minute:Rt,second:Rt,timeZoneName:Xa};class dw{get type(){throw new Nd}get name(){throw new Nd}get ianaName(){return this.name}get isUniversal(){throw new Nd}offsetName(t,n){throw new Nd}formatOffset(t,n){throw new Nd}offset(t){throw new Nd}equals(t){throw new Nd}get isValid(){throw new Nd}}let zR=null;class TI extends dw{static get instance(){return zR===null&&(zR=new TI),zR}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return woe(t,n,r)}formatOffset(t,n){return Z0(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}const XN=new Map;function z2e(e){let t=XN.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),XN.set(e,t)),t}const V2e={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function H2e(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,o,i,a,s,l,c,u]=r;return[a,o,i,s,l,c,u]}function U2e(e,t){const n=e.formatToParts(t),r=[];for(let o=0;o=0?g:1e3+g,(h-m)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let pq={};function G2e(e,t={}){const n=JSON.stringify([e,t]);let r=pq[n];return r||(r=new Intl.ListFormat(e,t),pq[n]=r),r}const ZN=new Map;function JN(e,t={}){const n=JSON.stringify([e,t]);let r=ZN.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(e,t),ZN.set(n,r)),r}const eL=new Map;function q2e(e,t={}){const n=JSON.stringify([e,t]);let r=eL.get(n);return r===void 0&&(r=new Intl.NumberFormat(e,t),eL.set(n,r)),r}const tL=new Map;function W2e(e,t={}){const{base:n,...r}=t,o=JSON.stringify([e,r]);let i=tL.get(o);return i===void 0&&(i=new Intl.RelativeTimeFormat(e,t),tL.set(o,i)),i}let D0=null;function K2e(){return D0||(D0=new Intl.DateTimeFormat().resolvedOptions().locale,D0)}const nL=new Map;function foe(e){let t=nL.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),nL.set(e,t)),t}const rL=new Map;function Y2e(e){let t=rL.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...poe,...t}),rL.set(e,t)}return t}function Q2e(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let r,o;try{r=JN(e).resolvedOptions(),o=e}catch{const l=e.substring(0,n);r=JN(l).resolvedOptions(),o=l}const{numberingSystem:i,calendar:a}=r;return[o,i,a]}}function X2e(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function Z2e(e){const t=[];for(let n=1;n<=12;n++){const r=Ct.utc(2009,n,1);t.push(e(r))}return t}function J2e(e){const t=[];for(let n=1;n<=7;n++){const r=Ct.utc(2016,11,13+n);t.push(e(r))}return t}function I1(e,t,n,r){const o=e.listingMode();return o==="error"?null:o==="en"?n(t):r(t)}function e_e(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||foe(e.locale).numberingSystem==="latn"}class t_e{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:o,floor:i,...a}=r;if(!n||Object.keys(a).length>0){const s={useGrouping:!1,...r};r.padTo>0&&(s.minimumIntegerDigits=r.padTo),this.inf=q2e(t,s)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):$B(t,3);return Ao(n,this.padTo)}}}class n_e{constructor(t,n,r){this.opts=r,this.originalZone=void 0;let o;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const a=-1*(t.offset/60),s=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;t.offset!==0&&qu.create(s).valid?(o=s,this.dt=t):(o="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,o=t.zone.name):(o="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const i={...this.opts};i.timeZone=i.timeZone||o,this.dtf=JN(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class r_e{constructor(t,n,r){this.opts={style:"long",...r},!n&&xoe()&&(this.rtf=W2e(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):T_e(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const poe={firstDay:1,minimalDays:4,weekend:[6,7]};class cr{static fromOpts(t){return cr.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,o,i=!1){const a=t||to.defaultLocale,s=a||(i?"en-US":K2e()),l=n||to.defaultNumberingSystem,c=r||to.defaultOutputCalendar,u=iL(o)||to.defaultWeekSettings;return new cr(s,l,c,u,a)}static resetCache(){D0=null,ZN.clear(),eL.clear(),tL.clear(),nL.clear(),rL.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:o}={}){return cr.create(t,n,r,o)}constructor(t,n,r,o,i){const[a,s,l]=Q2e(t);this.locale=a,this.numberingSystem=n||s||null,this.outputCalendar=r||l||null,this.weekSettings=o,this.intl=X2e(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=e_e(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:cr.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,iL(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return I1(this,t,Toe,()=>{const r=n?{month:t,day:"numeric"}:{month:t},o=n?"format":"standalone";return this.monthsCache[o][t]||(this.monthsCache[o][t]=Z2e(i=>this.extract(i,r,"month"))),this.monthsCache[o][t]})}weekdays(t,n=!1){return I1(this,t,Poe,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},o=n?"format":"standalone";return this.weekdaysCache[o][t]||(this.weekdaysCache[o][t]=J2e(i=>this.extract(i,r,"weekday"))),this.weekdaysCache[o][t]})}meridiems(){return I1(this,void 0,()=>Aoe,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ct.utc(2016,11,13,9),Ct.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return I1(this,t,Moe,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ct.utc(-40,1,1),Ct.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[t]})}extract(t,n,r){const o=this.dtFormatter(t,n),i=o.formatToParts(),a=i.find(s=>s.type.toLowerCase()===r);return a?a.value:null}numberFormatter(t={}){return new t_e(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new n_e(t,this.intl,n)}relFormatter(t={}){return new r_e(this.intl,this.isEnglish(),t)}listFormatter(t={}){return G2e(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||foe(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Soe()?Y2e(this.locale):poe}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let HR=null;class ea extends dw{static get utcInstance(){return HR===null&&(HR=new ea(0)),HR}static instance(t){return t===0?ea.utcInstance:new ea(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new ea(PI(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Z0(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Z0(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return Z0(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class o_e extends dw{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Yd(e,t){if(mn(e)||e===null)return t;if(e instanceof dw)return e;if(u_e(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?TI.instance:n==="utc"||n==="gmt"?ea.utcInstance:ea.parseSpecifier(n)||qu.create(e)}else return gf(e)?ea.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new o_e(e)}const RB={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},hq={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},i_e=RB.hanidec.replace(/[\[|\]]/g,"").split("");function a_e(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n=i&&r<=a&&(t+=r-i)}}return parseInt(t,10)}else return t}const oL=new Map;function s_e(){oL.clear()}function pl({numberingSystem:e},t=""){const n=e||"latn";let r=oL.get(n);r===void 0&&(r=new Map,oL.set(n,r));let o=r.get(t);return o===void 0&&(o=new RegExp(`${RB[n]}${t}`),r.set(t,o)),o}let mq=()=>Date.now(),gq="system",yq=null,vq=null,bq=null,xq=60,Sq,wq=null;class to{static get now(){return mq}static set now(t){mq=t}static set defaultZone(t){gq=t}static get defaultZone(){return Yd(gq,TI.instance)}static get defaultLocale(){return yq}static set defaultLocale(t){yq=t}static get defaultNumberingSystem(){return vq}static set defaultNumberingSystem(t){vq=t}static get defaultOutputCalendar(){return bq}static set defaultOutputCalendar(t){bq=t}static get defaultWeekSettings(){return wq}static set defaultWeekSettings(t){wq=iL(t)}static get twoDigitCutoffYear(){return xq}static set twoDigitCutoffYear(t){xq=t%100}static get throwOnInvalid(){return Sq}static set throwOnInvalid(t){Sq=t}static resetCaches(){cr.resetCache(),qu.resetCache(),Ct.resetCache(),s_e()}}class Rl{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const hoe=[0,31,59,90,120,151,181,212,243,273,304,334],moe=[0,31,60,91,121,152,182,213,244,274,305,335];function zs(e,t){return new Rl("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function DB(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const o=r.getUTCDay();return o===0?7:o}function goe(e,t,n){return n+(fw(e)?moe:hoe)[t-1]}function yoe(e,t){const n=fw(e)?moe:hoe,r=n.findIndex(i=>i_x(r,t,n)?(c=r+1,l=1):c=r,{weekYear:c,weekNumber:l,weekday:s,...AI(e)}}function Cq(e,t=4,n=1){const{weekYear:r,weekNumber:o,weekday:i}=e,a=kB(DB(r,1,t),n),s=_g(r);let l=o*7+i-a-7+t,c;l<1?(c=r-1,l+=_g(c)):l>s?(c=r+1,l-=_g(r)):c=r;const{month:u,day:f}=yoe(c,l);return{year:c,month:u,day:f,...AI(e)}}function UR(e){const{year:t,month:n,day:r}=e,o=goe(t,n,r);return{year:t,ordinal:o,...AI(e)}}function Eq(e){const{year:t,ordinal:n}=e,{month:r,day:o}=yoe(t,n);return{year:t,month:r,day:o,...AI(e)}}function Tq(e,t){if(!mn(e.localWeekday)||!mn(e.localWeekNumber)||!mn(e.localWeekYear)){if(!mn(e.weekday)||!mn(e.weekNumber)||!mn(e.weekYear))throw new hg("Cannot mix locale-based week fields with ISO-based week fields");return mn(e.localWeekday)||(e.weekday=e.localWeekday),mn(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),mn(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function l_e(e,t=4,n=1){const r=OI(e.weekYear),o=Vs(e.weekNumber,1,_x(e.weekYear,t,n)),i=Vs(e.weekday,1,7);return r?o?i?!1:zs("weekday",e.weekday):zs("week",e.weekNumber):zs("weekYear",e.weekYear)}function c_e(e){const t=OI(e.year),n=Vs(e.ordinal,1,_g(e.year));return t?n?!1:zs("ordinal",e.ordinal):zs("year",e.year)}function voe(e){const t=OI(e.year),n=Vs(e.month,1,12),r=Vs(e.day,1,lT(e.year,e.month));return t?n?r?!1:zs("day",e.day):zs("month",e.month):zs("year",e.year)}function boe(e){const{hour:t,minute:n,second:r,millisecond:o}=e,i=Vs(t,0,23)||t===24&&n===0&&r===0&&o===0,a=Vs(n,0,59),s=Vs(r,0,59),l=Vs(o,0,999);return i?a?s?l?!1:zs("millisecond",o):zs("second",r):zs("minute",n):zs("hour",t)}function mn(e){return typeof e>"u"}function gf(e){return typeof e=="number"}function OI(e){return typeof e=="number"&&e%1===0}function u_e(e){return typeof e=="string"}function d_e(e){return Object.prototype.toString.call(e)==="[object Date]"}function xoe(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Soe(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function f_e(e){return Array.isArray(e)?e:[e]}function Oq(e,t,n){if(e.length!==0)return e.reduce((r,o)=>{const i=[t(o),o];return r&&n(r[0],i[0])===r[0]?r:i},null)[1]}function p_e(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function cy(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function iL(e){if(e==null)return null;if(typeof e!="object")throw new ki("Week settings must be an object");if(!Vs(e.firstDay,1,7)||!Vs(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Vs(t,1,7)))throw new ki("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Vs(e,t,n){return OI(e)&&e>=t&&e<=n}function h_e(e,t){return e-t*Math.floor(e/t)}function Ao(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function Hd(e){if(!(mn(e)||e===null||e===""))return parseInt(e,10)}function mp(e){if(!(mn(e)||e===null||e===""))return parseFloat(e)}function _B(e){if(!(mn(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function $B(e,t,n=!1){const r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function fw(e){return e%4===0&&(e%100!==0||e%400===0)}function _g(e){return fw(e)?366:365}function lT(e,t){const n=h_e(t-1,12)+1,r=e+(t-n)/12;return n===2?fw(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function II(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Iq(e,t,n){return-kB(DB(e,1,t),n)+t-1}function _x(e,t=4,n=1){const r=Iq(e,t,n),o=Iq(e+1,t,n);return(_g(e)-r+o)/7}function aL(e){return e>99?e:e>to.twoDigitCutoffYear?1900+e:2e3+e}function woe(e,t,n,r=null){const o=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:t,...i},s=new Intl.DateTimeFormat(n,a).formatToParts(o).find(l=>l.type.toLowerCase()==="timezonename");return s?s.value:null}function PI(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,o=n<0||Object.is(n,-0)?-r:r;return n*60+o}function Coe(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new ki(`Invalid unit value ${e}`);return t}function cT(e,t){const n={};for(const r in e)if(cy(e,r)){const o=e[r];if(o==null)continue;n[t(r)]=Coe(o)}return n}function Z0(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),o=e>=0?"+":"-";switch(t){case"short":return`${o}${Ao(n,2)}:${Ao(r,2)}`;case"narrow":return`${o}${n}${r>0?`:${r}`:""}`;case"techie":return`${o}${Ao(n,2)}${Ao(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function AI(e){return p_e(e,["hour","minute","second","millisecond"])}const m_e=["January","February","March","April","May","June","July","August","September","October","November","December"],Eoe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],g_e=["J","F","M","A","M","J","J","A","S","O","N","D"];function Toe(e){switch(e){case"narrow":return[...g_e];case"short":return[...Eoe];case"long":return[...m_e];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Ooe=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ioe=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],y_e=["M","T","W","T","F","S","S"];function Poe(e){switch(e){case"narrow":return[...y_e];case"short":return[...Ioe];case"long":return[...Ooe];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Aoe=["AM","PM"],v_e=["Before Christ","Anno Domini"],b_e=["BC","AD"],x_e=["B","A"];function Moe(e){switch(e){case"narrow":return[...x_e];case"short":return[...b_e];case"long":return[...v_e];default:return null}}function S_e(e){return Aoe[e.hour<12?0:1]}function w_e(e,t){return Poe(t)[e.weekday-1]}function C_e(e,t){return Toe(t)[e.month-1]}function E_e(e,t){return Moe(t)[e.year<0?0:1]}function T_e(e,t,n="always",r=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&i){const f=e==="days";switch(t){case 1:return f?"tomorrow":`next ${o[e][0]}`;case-1:return f?"yesterday":`last ${o[e][0]}`;case 0:return f?"today":`this ${o[e][0]}`}}const a=Object.is(t,-0)||t<0,s=Math.abs(t),l=s===1,c=o[e],u=r?l?c[1]:c[2]||c[1]:l?o[e][0]:e;return a?`${s} ${u} ago`:`in ${s} ${u}`}function Pq(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const O_e={D:aT,DD:Wre,DDD:Kre,DDDD:Yre,t:Qre,tt:Xre,ttt:Zre,tttt:Jre,T:eoe,TT:toe,TTT:noe,TTTT:roe,f:ooe,ff:aoe,fff:loe,ffff:uoe,F:ioe,FF:soe,FFF:coe,FFFF:doe};class Li{static create(t,n={}){return new Li(t,n)}static parseFormat(t){let n=null,r="",o=!1;const i=[];for(let a=0;a0&&i.push({literal:o||/^\s+$/.test(r),val:r}),n=null,r="",o=!o):o||s===n?r+=s:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=s,n=s)}return r.length>0&&i.push({literal:o||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(t){return O_e[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return Ao(t,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",o=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(m,g)=>this.loc.extract(t,m,g),a=m=>t.isOffsetFixed&&t.offset===0&&m.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,m.format):"",s=()=>r?S_e(t):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(m,g)=>r?C_e(t,m):i(g?{month:m}:{month:m,day:"numeric"},"month"),c=(m,g)=>r?w_e(t,m):i(g?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),u=m=>{const g=Li.macroTokenToFormatOpts(m);return g?this.formatWithSystemDefault(t,g):m},f=m=>r?E_e(t,m):i({era:m},"era"),h=m=>{switch(m){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return o?i({day:"numeric"},"day"):this.num(t.day);case"dd":return o?i({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return o?i({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return o?i({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return o?i({month:"numeric"},"month"):this.num(t.month);case"MM":return o?i({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return o?i({year:"numeric"},"year"):this.num(t.year);case"yy":return o?i({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return o?i({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return o?i({year:"numeric"},"year"):this.num(t.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(m)}};return Pq(Li.parseFormat(n),h)}formatDurationFromString(t,n){const r=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=l=>c=>{const u=r(c);return u?this.num(l.get(u),c.length):c},i=Li.parseFormat(n),a=i.reduce((l,{literal:c,val:u})=>c?l:l.concat(u),[]),s=t.shiftTo(...a.map(r).filter(l=>l));return Pq(i,o(s))}}const Roe=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function fv(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function pv(...e){return t=>e.reduce(([n,r,o],i)=>{const[a,s,l]=i(t,o);return[{...n,...a},s||r,l]},[{},null,1]).slice(0,2)}function hv(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const o=n.exec(e);if(o)return r(o)}return[null,null]}function Doe(...e){return(t,n)=>{const r={};let o;for(o=0;om!==void 0&&(g||m&&u)?-m:m;return[{years:h(mp(n)),months:h(mp(r)),weeks:h(mp(o)),days:h(mp(i)),hours:h(mp(a)),minutes:h(mp(s)),seconds:h(mp(l),l==="-0"),milliseconds:h(_B(c),f)}]}const j_e={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function FB(e,t,n,r,o,i,a){const s={year:t.length===2?aL(Hd(t)):Hd(t),month:Eoe.indexOf(n)+1,day:Hd(r),hour:Hd(o),minute:Hd(i)};return a&&(s.second=Hd(a)),e&&(s.weekday=e.length>3?Ooe.indexOf(e)+1:Ioe.indexOf(e)+1),s}const B_e=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function z_e(e){const[,t,n,r,o,i,a,s,l,c,u,f]=e,h=FB(t,o,r,n,i,a,s);let m;return l?m=j_e[l]:c?m=0:m=PI(u,f),[h,new ea(m)]}function V_e(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const H_e=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,U_e=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,G_e=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Aq(e){const[,t,n,r,o,i,a,s]=e;return[FB(t,o,r,n,i,a,s),ea.utcInstance]}function q_e(e){const[,t,n,r,o,i,a,s]=e;return[FB(t,s,n,r,o,i,a),ea.utcInstance]}const W_e=fv(P_e,LB),K_e=fv(A_e,LB),Y_e=fv(M_e,LB),Q_e=fv(_oe),Noe=pv($_e,mv,pw,hw),X_e=pv(R_e,mv,pw,hw),Z_e=pv(D_e,mv,pw,hw),J_e=pv(mv,pw,hw);function e$e(e){return hv(e,[W_e,Noe],[K_e,X_e],[Y_e,Z_e],[Q_e,J_e])}function t$e(e){return hv(V_e(e),[B_e,z_e])}function n$e(e){return hv(e,[H_e,Aq],[U_e,Aq],[G_e,q_e])}function r$e(e){return hv(e,[L_e,F_e])}const o$e=pv(mv);function i$e(e){return hv(e,[N_e,o$e])}const a$e=fv(k_e,__e),s$e=fv($oe),l$e=pv(mv,pw,hw);function c$e(e){return hv(e,[a$e,Noe],[s$e,l$e])}const Mq="Invalid Duration",Loe={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},u$e={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Loe},Ts=146097/400,qm=146097/4800,d$e={years:{quarters:4,months:12,weeks:Ts/7,days:Ts,hours:Ts*24,minutes:Ts*24*60,seconds:Ts*24*60*60,milliseconds:Ts*24*60*60*1e3},quarters:{months:3,weeks:Ts/28,days:Ts/4,hours:Ts*24/4,minutes:Ts*24*60/4,seconds:Ts*24*60*60/4,milliseconds:Ts*24*60*60*1e3/4},months:{weeks:qm/7,days:qm,hours:qm*24,minutes:qm*24*60,seconds:qm*24*60*60,milliseconds:qm*24*60*60*1e3},...Loe},jp=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],f$e=jp.slice(0).reverse();function Ld(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Xn(r)}function Foe(e,t){let n=t.milliseconds??0;for(const r of f$e.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function Rq(e,t){const n=Foe(e,t)<0?-1:1;jp.reduceRight((r,o)=>{if(mn(t[o]))return r;if(r){const i=t[r]*n,a=e[o][r],s=Math.floor(i/a);t[o]+=s*n,t[r]-=s*a*n}return o},null),jp.reduce((r,o)=>{if(mn(t[o]))return r;if(r){const i=t[r]%1;t[r]-=i,t[o]+=i*e[r][o]}return o},null)}function p$e(e){const t={};for(const[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}class Xn{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let r=n?d$e:u$e;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||cr.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,n){return Xn.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new ki(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Xn({values:cT(t,Xn.normalizeUnit),loc:cr.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(gf(t))return Xn.fromMillis(t);if(Xn.isDuration(t))return t;if(typeof t=="object")return Xn.fromObject(t);throw new ki(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=r$e(t);return r?Xn.fromObject(r,n):Xn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=i$e(t);return r?Xn.fromObject(r,n):Xn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new ki("need to specify a reason the Duration is invalid");const r=t instanceof Rl?t:new Rl(t,n);if(to.throwOnInvalid)throw new F2e(r);return new Xn({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new qre(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?Li.create(this.loc,r).formatDurationFromString(this,t):Mq}toHuman(t={}){if(!this.isValid)return Mq;const n=jp.map(r=>{const o=this.values[r];return mn(o)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:r.slice(0,-1)}).format(o)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=$B(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Ct.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Foe(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Xn.fromDurationLike(t),r={};for(const o of jp)(cy(n.values,o)||cy(this.values,o))&&(r[o]=n.get(o)+this.get(o));return Ld(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=Xn.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=Coe(t(this.values[r],r));return Ld(this,{values:n},!0)}get(t){return this[Xn.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...cT(t,Xn.normalizeUnit)};return Ld(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r,matrix:o}={}){const a={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:o,conversionAccuracy:r};return Ld(this,a)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Rq(this.matrix,t),Ld(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=p$e(this.normalize().shiftToAll().toObject());return Ld(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(a=>Xn.normalizeUnit(a));const n={},r={},o=this.toObject();let i;for(const a of jp)if(t.indexOf(a)>=0){i=a;let s=0;for(const c in r)s+=this.matrix[c][a]*r[c],r[c]=0;gf(o[a])&&(s+=o[a]);const l=Math.trunc(s);n[a]=l,r[a]=(s*1e3-l*1e3)/1e3}else gf(o[a])&&(r[a]=o[a]);for(const a in r)r[a]!==0&&(n[i]+=a===i?r[a]:r[a]/this.matrix[i][a]);return Rq(this.matrix,n),Ld(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Ld(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,o){return r===void 0||r===0?o===void 0||o===0:r===o}for(const r of jp)if(!n(this.values[r],t.values[r]))return!1;return!0}}const Wm="Invalid Interval";function h$e(e,t){return!e||!e.isValid?uo.invalid("missing or invalid start"):!t||!t.isValid?uo.invalid("missing or invalid end"):tt:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?uo.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(e0).filter(a=>this.contains(a)).sort((a,s)=>a.toMillis()-s.toMillis()),r=[];let{s:o}=this,i=0;for(;o+this.e?this.e:a;r.push(uo.fromDateTimes(o,s)),o=s,i+=1}return r}splitBy(t){const n=Xn.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,o=1,i;const a=[];for(;rl*o));i=+s>+this.e?this.e:s,a.push(uo.fromDateTimes(r,i)),r=i,o+=1}return a}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e=r?null:uo.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.st.e?this.e:t.e;return uo.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((o,i)=>o.s-i.s).reduce(([o,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[o,i.union(a)]:[o.concat([i]),a]:[o,a],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const o=[],i=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),a=Array.prototype.concat(...i),s=a.sort((l,c)=>l.time-c.time);for(const l of s)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&o.push(uo.fromDateTimes(n,l.time)),n=null);return uo.merge(o)}difference(...t){return uo.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Wm}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=aT,n={}){return this.isValid?Li.create(this.s.loc.clone(n),t).formatInterval(this):Wm}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Wm}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Wm}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Wm}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Wm}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Xn.invalid(this.invalidReason)}mapEndpoints(t){return uo.fromDateTimes(t(this.s),t(this.e))}}class k0{static hasDST(t=to.defaultZone){const n=Ct.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return qu.isValidZone(t)}static normalizeZone(t){return Yd(t,to.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||cr.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||cr.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||cr.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||cr.create(n,r,i)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||cr.create(n,r,i)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:o=null}={}){return(o||cr.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:o=null}={}){return(o||cr.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return cr.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return cr.create(n,null,"gregory").eras(t)}static features(){return{relative:xoe(),localeWeek:Soe()}}}function Dq(e,t){const n=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Xn.fromMillis(r).as("days"))}function m$e(e,t,n){const r=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const u=Dq(l,c);return(u-u%7)/7}],["days",Dq]],o={},i=e;let a,s;for(const[l,c]of r)n.indexOf(l)>=0&&(a=l,o[l]=c(e,t),s=i.plus(o),s>t?(o[l]--,e=i.plus(o),e>t&&(s=e,o[l]--,e=i.plus(o))):e=s);return[e,o,s,a]}function g$e(e,t,n,r){let[o,i,a,s]=m$e(e,t,n);const l=t-o,c=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);c.length===0&&(a0?Xn.fromMillis(l,r).shiftTo(...c).plus(u):u}const y$e="missing Intl.DateTimeFormat.formatToParts support";function rr(e,t=n=>n){return{regex:e,deser:([n])=>t(a_e(n))}}const v$e=" ",joe=`[ ${v$e}]`,Boe=new RegExp(joe,"g");function b$e(e){return e.replace(/\./g,"\\.?").replace(Boe,joe)}function kq(e){return e.replace(/\./g,"").replace(Boe," ").toLowerCase()}function hl(e,t){return e===null?null:{regex:RegExp(e.map(b$e).join("|")),deser:([n])=>e.findIndex(r=>kq(n)===kq(r))+t}}function _q(e,t){return{regex:e,deser:([,n,r])=>PI(n,r),groups:t}}function P1(e){return{regex:e,deser:([t])=>t}}function x$e(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function S$e(e,t){const n=pl(t),r=pl(t,"{2}"),o=pl(t,"{3}"),i=pl(t,"{4}"),a=pl(t,"{6}"),s=pl(t,"{1,2}"),l=pl(t,"{1,3}"),c=pl(t,"{1,6}"),u=pl(t,"{1,9}"),f=pl(t,"{2,4}"),h=pl(t,"{4,6}"),m=v=>({regex:RegExp(x$e(v.val)),deser:([w])=>w,literal:!0}),y=(v=>{if(e.literal)return m(v);switch(v.val){case"G":return hl(t.eras("short"),0);case"GG":return hl(t.eras("long"),0);case"y":return rr(c);case"yy":return rr(f,aL);case"yyyy":return rr(i);case"yyyyy":return rr(h);case"yyyyyy":return rr(a);case"M":return rr(s);case"MM":return rr(r);case"MMM":return hl(t.months("short",!0),1);case"MMMM":return hl(t.months("long",!0),1);case"L":return rr(s);case"LL":return rr(r);case"LLL":return hl(t.months("short",!1),1);case"LLLL":return hl(t.months("long",!1),1);case"d":return rr(s);case"dd":return rr(r);case"o":return rr(l);case"ooo":return rr(o);case"HH":return rr(r);case"H":return rr(s);case"hh":return rr(r);case"h":return rr(s);case"mm":return rr(r);case"m":return rr(s);case"q":return rr(s);case"qq":return rr(r);case"s":return rr(s);case"ss":return rr(r);case"S":return rr(l);case"SSS":return rr(o);case"u":return P1(u);case"uu":return P1(s);case"uuu":return rr(n);case"a":return hl(t.meridiems(),0);case"kkkk":return rr(i);case"kk":return rr(f,aL);case"W":return rr(s);case"WW":return rr(r);case"E":case"c":return rr(n);case"EEE":return hl(t.weekdays("short",!1),1);case"EEEE":return hl(t.weekdays("long",!1),1);case"ccc":return hl(t.weekdays("short",!0),1);case"cccc":return hl(t.weekdays("long",!0),1);case"Z":case"ZZ":return _q(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return _q(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return P1(/[a-z_+-/]{1,256}?/i);case" ":return P1(/[^\S\n\r]/);default:return m(v)}})(e)||{invalidReason:y$e};return y.token=e,y}const w$e={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function C$e(e,t,n){const{type:r,value:o}=e;if(r==="literal"){const l=/^\s+$/.test(o);return{literal:!l,val:l?" ":o}}const i=t[r];let a=r;r==="hour"&&(t.hour12!=null?a=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?a="hour12":a="hour24":a=n.hour12?"hour12":"hour24");let s=w$e[a];if(typeof s=="object"&&(s=s[i]),s)return{literal:!1,val:s}}function E$e(e){return[`^${e.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,e]}function T$e(e,t,n){const r=e.match(t);if(r){const o={};let i=1;for(const a in n)if(cy(n,a)){const s=n[a],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(o[s.token.val[0]]=s.deser(r.slice(i,i+l))),i+=l}return[r,o]}else return[r,{}]}function O$e(e){const t=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return mn(e.z)||(n=qu.create(e.z)),mn(e.Z)||(n||(n=new ea(e.Z)),r=e.Z),mn(e.q)||(e.M=(e.q-1)*3+1),mn(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),mn(e.u)||(e.S=_B(e.u)),[Object.keys(e).reduce((i,a)=>{const s=t(a);return s&&(i[s]=e[a]),i},{}),n,r]}let GR=null;function I$e(){return GR||(GR=Ct.fromMillis(1555555555555)),GR}function P$e(e,t){if(e.literal)return e;const n=Li.macroTokenToFormatOpts(e.val),r=Uoe(n,t);return r==null||r.includes(void 0)?e:r}function zoe(e,t){return Array.prototype.concat(...e.map(n=>P$e(n,t)))}class Voe{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=zoe(Li.parseFormat(n),t),this.units=this.tokens.map(r=>S$e(r,t)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,o]=E$e(this.units);this.regex=RegExp(r,"i"),this.handlers=o}}explainFromTokens(t){if(this.isValid){const[n,r]=T$e(t,this.regex,this.handlers),[o,i,a]=r?O$e(r):[null,null,void 0];if(cy(r,"a")&&cy(r,"H"))throw new hg("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:o,zone:i,specificOffset:a}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Hoe(e,t,n){return new Voe(e,n).explainFromTokens(t)}function A$e(e,t,n){const{result:r,zone:o,specificOffset:i,invalidReason:a}=Hoe(e,t,n);return[r,o,i,a]}function Uoe(e,t){if(!e)return null;const r=Li.create(t,e).dtFormatter(I$e()),o=r.formatToParts(),i=r.resolvedOptions();return o.map(a=>C$e(a,e,i))}const qR="Invalid DateTime",M$e=864e13;function _0(e){return new Rl("unsupported zone",`the zone "${e.name}" is not supported`)}function WR(e){return e.weekData===null&&(e.weekData=sT(e.c)),e.weekData}function KR(e){return e.localWeekData===null&&(e.localWeekData=sT(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function gp(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ct({...n,...t,old:n})}function Goe(e,t,n){let r=e-t*60*1e3;const o=n.offset(r);if(t===o)return[r,t];r-=(o-t)*60*1e3;const i=n.offset(r);return o===i?[r,o]:[e-Math.min(o,i)*60*1e3,Math.max(o,i)]}function A1(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function SE(e,t,n){return Goe(II(e),t,n)}function $q(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),o=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,i={...e.c,year:r,month:o,day:Math.min(e.c.day,lT(r,o))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},a=Xn.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=II(i);let[l,c]=Goe(s,n,e.zone);return a!==0&&(l+=a,c=e.zone.offset(l)),{ts:l,o:c}}function Km(e,t,n,r,o,i){const{setZone:a,zone:s}=n;if(e&&Object.keys(e).length!==0||t){const l=t||s,c=Ct.fromObject(e,{...n,zone:l,specificOffset:i});return a?c:c.setZone(s)}else return Ct.invalid(new Rl("unparsable",`the input "${o}" can't be parsed as ${r}`))}function M1(e,t,n=!0){return e.isValid?Li.create(cr.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function YR(e,t){const n=e.c.year>9999||e.c.year<0;let r="";return n&&e.c.year>=0&&(r+="+"),r+=Ao(e.c.year,n?6:4),t?(r+="-",r+=Ao(e.c.month),r+="-",r+=Ao(e.c.day)):(r+=Ao(e.c.month),r+=Ao(e.c.day)),r}function Nq(e,t,n,r,o,i){let a=Ao(e.c.hour);return t?(a+=":",a+=Ao(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(a+=":")):a+=Ao(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(a+=Ao(e.c.second),(e.c.millisecond!==0||!r)&&(a+=".",a+=Ao(e.c.millisecond,3))),o&&(e.isOffsetFixed&&e.offset===0&&!i?a+="Z":e.o<0?(a+="-",a+=Ao(Math.trunc(-e.o/60)),a+=":",a+=Ao(Math.trunc(-e.o%60))):(a+="+",a+=Ao(Math.trunc(e.o/60)),a+=":",a+=Ao(Math.trunc(e.o%60)))),i&&(a+="["+e.zone.ianaName+"]"),a}const qoe={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},R$e={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},D$e={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Woe=["year","month","day","hour","minute","second","millisecond"],k$e=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],_$e=["year","ordinal","hour","minute","second","millisecond"];function $$e(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new qre(e);return t}function Lq(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return $$e(e)}}function N$e(e){if($0===void 0&&($0=to.now()),e.type!=="iana")return e.offset($0);const t=e.name;let n=sL.get(t);return n===void 0&&(n=e.offset($0),sL.set(t,n)),n}function Fq(e,t){const n=Yd(t.zone,to.defaultZone);if(!n.isValid)return Ct.invalid(_0(n));const r=cr.fromObject(t);let o,i;if(mn(e.year))o=to.now();else{for(const l of Woe)mn(e[l])&&(e[l]=qoe[l]);const a=voe(e)||boe(e);if(a)return Ct.invalid(a);const s=N$e(n);[o,i]=SE(e,s,n)}return new Ct({ts:o,zone:n,loc:r,o:i})}function jq(e,t,n){const r=mn(n.round)?!0:n.round,o=(a,s)=>(a=$B(a,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(a,s)),i=a=>n.calendary?t.hasSame(e,a)?0:t.startOf(a).diff(e.startOf(a),a).get(a):t.diff(e,a).get(a);if(n.unit)return o(i(n.unit),n.unit);for(const a of n.units){const s=i(a);if(Math.abs(s)>=1)return o(s,a)}return o(e>t?-0:0,n.units[n.units.length-1])}function Bq(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let $0;const sL=new Map;class Ct{constructor(t){const n=t.zone||to.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new Rl("invalid input"):null)||(n.isValid?null:_0(n));this.ts=mn(t.ts)?to.now():t.ts;let o=null,i=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[o,i]=[t.old.c,t.old.o];else{const s=gf(t.o)&&!t.old?t.o:n.offset(this.ts);o=A1(this.ts,s),r=Number.isNaN(o.year)?new Rl("invalid input"):null,o=r?null:o,i=r?null:s}this._zone=n,this.loc=t.loc||cr.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=o,this.o=i,this.isLuxonDateTime=!0}static now(){return new Ct({})}static local(){const[t,n]=Bq(arguments),[r,o,i,a,s,l,c]=n;return Fq({year:r,month:o,day:i,hour:a,minute:s,second:l,millisecond:c},t)}static utc(){const[t,n]=Bq(arguments),[r,o,i,a,s,l,c]=n;return t.zone=ea.utcInstance,Fq({year:r,month:o,day:i,hour:a,minute:s,second:l,millisecond:c},t)}static fromJSDate(t,n={}){const r=d_e(t)?t.valueOf():NaN;if(Number.isNaN(r))return Ct.invalid("invalid input");const o=Yd(n.zone,to.defaultZone);return o.isValid?new Ct({ts:r,zone:o,loc:cr.fromObject(n)}):Ct.invalid(_0(o))}static fromMillis(t,n={}){if(gf(t))return t<-864e13||t>M$e?Ct.invalid("Timestamp out of range"):new Ct({ts:t,zone:Yd(n.zone,to.defaultZone),loc:cr.fromObject(n)});throw new ki(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(gf(t))return new Ct({ts:t*1e3,zone:Yd(n.zone,to.defaultZone),loc:cr.fromObject(n)});throw new ki("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=Yd(n.zone,to.defaultZone);if(!r.isValid)return Ct.invalid(_0(r));const o=cr.fromObject(n),i=cT(t,Lq),{minDaysInFirstWeek:a,startOfWeek:s}=Tq(i,o),l=to.now(),c=mn(n.specificOffset)?r.offset(l):n.specificOffset,u=!mn(i.ordinal),f=!mn(i.year),h=!mn(i.month)||!mn(i.day),m=f||h,g=i.weekYear||i.weekNumber;if((m||u)&&g)throw new hg("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&u)throw new hg("Can't mix ordinal dates with month/day");const y=g||i.weekday&&!m;let v,w,C=A1(l,c);y?(v=k$e,w=R$e,C=sT(C,a,s)):u?(v=_$e,w=D$e,C=UR(C)):(v=Woe,w=qoe);let E=!1;for(const A of v){const _=i[A];mn(_)?E?i[A]=w[A]:i[A]=C[A]:E=!0}const I=y?l_e(i,a,s):u?c_e(i):voe(i),O=I||boe(i);if(O)return Ct.invalid(O);const P=y?Cq(i,a,s):u?Eq(i):i,[R,D]=SE(P,c,r),M=new Ct({ts:R,zone:r,o:D,loc:o});return i.weekday&&m&&t.weekday!==M.weekday?Ct.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${M.toISO()}`):M.isValid?M:Ct.invalid(M.invalid)}static fromISO(t,n={}){const[r,o]=e$e(t);return Km(r,o,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,o]=t$e(t);return Km(r,o,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,o]=n$e(t);return Km(r,o,n,"HTTP",n)}static fromFormat(t,n,r={}){if(mn(t)||mn(n))throw new ki("fromFormat requires an input string and a format");const{locale:o=null,numberingSystem:i=null}=r,a=cr.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0}),[s,l,c,u]=A$e(a,t,n);return u?Ct.invalid(u):Km(s,l,r,`format ${n}`,t,c)}static fromString(t,n,r={}){return Ct.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,o]=c$e(t);return Km(r,o,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new ki("need to specify a reason the DateTime is invalid");const r=t instanceof Rl?t:new Rl(t,n);if(to.throwOnInvalid)throw new N2e(r);return new Ct({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const r=Uoe(t,cr.fromObject(n));return r?r.map(o=>o?o.val:null).join(""):null}static expandFormat(t,n={}){return zoe(Li.parseFormat(t),cr.fromObject(n)).map(o=>o.val).join("")}static resetCache(){$0=void 0,sL.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?WR(this).weekYear:NaN}get weekNumber(){return this.isValid?WR(this).weekNumber:NaN}get weekday(){return this.isValid?WR(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?KR(this).weekday:NaN}get localWeekNumber(){return this.isValid?KR(this).weekNumber:NaN}get localWeekYear(){return this.isValid?KR(this).weekYear:NaN}get ordinal(){return this.isValid?UR(this.c).ordinal:NaN}get monthShort(){return this.isValid?k0.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?k0.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?k0.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?k0.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,r=II(this.c),o=this.zone.offset(r-t),i=this.zone.offset(r+t),a=this.zone.offset(r-o*n),s=this.zone.offset(r-i*n);if(a===s)return[this];const l=r-a*n,c=r-s*n,u=A1(l,a),f=A1(c,s);return u.hour===f.hour&&u.minute===f.minute&&u.second===f.second&&u.millisecond===f.millisecond?[gp(this,{ts:l}),gp(this,{ts:c})]:[this]}get isInLeapYear(){return fw(this.year)}get daysInMonth(){return lT(this.year,this.month)}get daysInYear(){return this.isValid?_g(this.year):NaN}get weeksInWeekYear(){return this.isValid?_x(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?_x(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:o}=Li.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:o}}toUTC(t=0,n={}){return this.setZone(ea.instance(t),n)}toLocal(){return this.setZone(to.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=Yd(t,to.defaultZone),t.equals(this.zone))return this;if(t.isValid){let o=this.ts;if(n||r){const i=t.offset(this.ts),a=this.toObject();[o]=SE(a,i,t)}return gp(this,{ts:o,zone:t})}else return Ct.invalid(_0(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const o=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return gp(this,{loc:o})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=cT(t,Lq),{minDaysInFirstWeek:r,startOfWeek:o}=Tq(n,this.loc),i=!mn(n.weekYear)||!mn(n.weekNumber)||!mn(n.weekday),a=!mn(n.ordinal),s=!mn(n.year),l=!mn(n.month)||!mn(n.day),c=s||l,u=n.weekYear||n.weekNumber;if((c||a)&&u)throw new hg("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&a)throw new hg("Can't mix ordinal dates with month/day");let f;i?f=Cq({...sT(this.c,r,o),...n},r,o):mn(n.ordinal)?(f={...this.toObject(),...n},mn(n.day)&&(f.day=Math.min(lT(f.year,f.month),f.day))):f=Eq({...UR(this.c),...n});const[h,m]=SE(f,this.o,this.zone);return gp(this,{ts:h,o:m})}plus(t){if(!this.isValid)return this;const n=Xn.fromDurationLike(t);return gp(this,$q(this,n))}minus(t){if(!this.isValid)return this;const n=Xn.fromDurationLike(t).negate();return gp(this,$q(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},o=Xn.normalizeUnit(t);switch(o){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(o==="weeks")if(n){const i=this.loc.getStartOfWeek(),{weekday:a}=this;athis.valueOf(),s=a?this:t,l=a?t:this,c=g$e(s,l,i,o);return a?c.negate():c}diffNow(t="milliseconds",n={}){return this.diff(Ct.now(),t,n)}until(t){return this.isValid?uo.fromDateTimes(this,t):this}hasSame(t,n,r){if(!this.isValid)return!1;const o=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(n,r)<=o&&o<=i.endOf(n,r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||Ct.fromObject({},{zone:this.zone}),r=t.padding?thisn.valueOf(),Math.min)}static max(...t){if(!t.every(Ct.isDateTime))throw new ki("max requires all arguments be DateTimes");return Oq(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:o=null,numberingSystem:i=null}=r,a=cr.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0});return Hoe(a,t,n)}static fromStringExplain(t,n,r={}){return Ct.fromFormatExplain(t,n,r)}static buildFormatParser(t,n={}){const{locale:r=null,numberingSystem:o=null}=n,i=cr.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0});return new Voe(i,t)}static fromFormatParser(t,n,r={}){if(mn(t)||mn(n))throw new ki("fromFormatParser requires an input string and a format parser");const{locale:o=null,numberingSystem:i=null}=r,a=cr.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0});if(!a.equals(n.locale))throw new ki(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${n.locale}`);const{result:s,zone:l,specificOffset:c,invalidReason:u}=n.explainFromTokens(t);return u?Ct.invalid(u):Km(s,l,r,`format ${n.format}`,t,c)}static get DATE_SHORT(){return aT}static get DATE_MED(){return Wre}static get DATE_MED_WITH_WEEKDAY(){return j2e}static get DATE_FULL(){return Kre}static get DATE_HUGE(){return Yre}static get TIME_SIMPLE(){return Qre}static get TIME_WITH_SECONDS(){return Xre}static get TIME_WITH_SHORT_OFFSET(){return Zre}static get TIME_WITH_LONG_OFFSET(){return Jre}static get TIME_24_SIMPLE(){return eoe}static get TIME_24_WITH_SECONDS(){return toe}static get TIME_24_WITH_SHORT_OFFSET(){return noe}static get TIME_24_WITH_LONG_OFFSET(){return roe}static get DATETIME_SHORT(){return ooe}static get DATETIME_SHORT_WITH_SECONDS(){return ioe}static get DATETIME_MED(){return aoe}static get DATETIME_MED_WITH_SECONDS(){return soe}static get DATETIME_MED_WITH_WEEKDAY(){return B2e}static get DATETIME_FULL(){return loe}static get DATETIME_FULL_WITH_SECONDS(){return coe}static get DATETIME_HUGE(){return uoe}static get DATETIME_HUGE_WITH_SECONDS(){return doe}}function e0(e){if(Ct.isDateTime(e))return e;if(e&&e.valueOf&&gf(e.valueOf()))return Ct.fromJSDate(e);if(e&&typeof e=="object")return Ct.fromObject(e);throw new ki(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const zq=3,Vq=25,Hq=1e3,Uq=1,Gq=16,L$e=12;class F$e{constructor(t){Pe(this,"id");Pe(this,"name");Pe(this,"description");Pe(this,"created");Pe(this,"start");Pe(this,"end");Pe(this,"fitInWeek");Pe(this,"isTemplate");Pe(this,"isPublic");Pe(this,"days",[]);Pe(this,"dayData",[]);this.id=t.id,this.name=t.name,this.description=t.description,this.created=t.created,this.start=t.start,this.end=t.end,this.fitInWeek=t.fitInWeek,this.isTemplate=t.isTemplate??!1,this.isPublic=t.isPublic??!1,this.days=t.days??[],this.dayData=t.dayData??[]}get exercises(){return this.days.flatMap(t=>t.slots.flatMap(n=>n.entries.flatMap(r=>r.exercise)))}get dayDataCurrentIteration(){const t=this.getIteration()??1;return this.dayData.filter(n=>n.iteration===t)}get groupedDayDataByIteration(){const t={};for(const n of this.dayData)t[n.iteration]||(t[n.iteration]=[]),t[n.iteration].push(n);return t}get duration(){const t=Ct.fromJSDate(this.end).diff(Ct.fromJSDate(this.start),["weeks","days"]),n=Math.floor(t.weeks),r=Math.floor(t.days);return{weeks:n,days:r}}get durationText(){const t=this.duration.days,n=this.duration.weeks;return t===0?Cr.t("durationWeeks",{number:n}):Cr.t("durationWeeksDays",{nrWeeks:n,nrDays:t})}get mainMuscles(){return this.days.flatMap(n=>n.slots.flatMap(r=>r.entries.flatMap(o=>{var i;return((i=o.exercise)==null?void 0:i.muscles)||[]}))).filter((n,r,o)=>r===o.findIndex(i=>i.id===n.id))}get secondaryMuscles(){return this.days.flatMap(n=>n.slots.flatMap(r=>r.entries.flatMap(o=>{var i;return((i=o.exercise)==null?void 0:i.musclesSecondary)||[]}))).filter((n,r,o)=>r===o.findIndex(i=>i.id===n.id))}get cycleLength(){return this.dayDataCurrentIteration.length}getIteration(t){const n=t??new Date,r=this.dayData.find(o=>xa(o.date,n));return r?r.iteration:null}getSetConfigData(t,n,r){const o=this.dayData.find(a=>{var s;return((s=a.day)==null?void 0:s.id)===t&&a.iteration===n});if(!o)return null;const i=o.slots.find(a=>a.setConfigs.some(s=>s.slotEntryId===r));return(i==null?void 0:i.setConfigs.find(a=>a.slotEntryId===r))||null}getDayData(t,n){return this.dayData.filter(r=>{var o;return((o=r.day)==null?void 0:o.id)===t&&r.date.getDate()===n.getDate()&&r.date.getMonth()===n.getMonth()&&r.date.getFullYear()===n.getFullYear()})}}class j$e{fromJson(t){return new F$e({id:t.id,name:t.name,description:t.description,created:new Date(t.created),start:new Date(t.start),end:new Date(t.end),fitInWeek:t.fit_in_week,isTemplate:t.is_template,isPublic:t.is_public,days:t.days?t.days.map(n=>new Hre(n)):[]})}toJson(t){return{id:t.id,name:t.name,description:t.description,start:mr(t.start),end:mr(t.end),fit_in_week:t.fitInWeek}}}const gv=new j$e;class B$e{constructor(t){Pe(this,"exercise");Pe(this,"weightUnit",null);Pe(this,"repetitionsUnit",null);Pe(this,"exerciseId");Pe(this,"slotEntryId");Pe(this,"type");Pe(this,"nrOfSets");Pe(this,"maxNrOfSets");Pe(this,"weight");Pe(this,"maxWeight");Pe(this,"weightUnitId",null);Pe(this,"weightRounding",null);Pe(this,"repetitions");Pe(this,"maxRepetitions");Pe(this,"repetitionsUnitId",null);Pe(this,"repetitionsRounding",null);Pe(this,"rir");Pe(this,"maxRir");Pe(this,"rpe");Pe(this,"restTime");Pe(this,"maxRestTime");Pe(this,"textRepr");Pe(this,"comment");this.exerciseId=t.exerciseId,this.exercise=t.exercise,this.slotEntryId=t.slotEntryId,this.type=t.type,this.nrOfSets=t.nrOfSets,this.maxNrOfSets=t.maxNrOfSets??null,this.weight=t.weight??null,this.maxWeight=t.maxWeight??null,this.weightUnitId=t.weightUnitId,this.weightUnit=t.weightUnit??null,this.weightRounding=t.weightRounding,this.repetitions=t.repetitions??null,this.maxRepetitions=t.maxRepetitions??null,this.repetitionsUnitId=t.repetitionsUnitId,this.repetitionsUnit=t.repetitionsUnit??null,this.repetitionsRounding=t.repetitionsRounding,this.rir=t.rir??null,this.maxRir=t.maxRir??null,this.rpe=t.rpe??null,this.restTime=t.restTime??null,this.maxRestTime=t.maxRestTime??null,this.textRepr=t.textRepr,this.comment=t.comment}get isSpecialType(){return this.type!=="normal"}}class z$e{constructor(){Pe(this,"fromJson",t=>new B$e({exerciseId:t.exercise,slotEntryId:t.slot_entry_id,type:t.type,nrOfSets:t.sets,maxNrOfSets:t.max_sets!==null?parseInt(t.max_sets):null,weight:t.weight!==null?parseFloat(t.weight):null,maxWeight:t.max_weight!==null?parseFloat(t.max_weight):null,weightUnitId:t.weight_unit,weightRounding:t.weight_rounding!==null?parseFloat(t.weight_rounding):null,repetitions:t.repetitions!==null?parseFloat(t.repetitions):null,maxRepetitions:t.max_repetitions!==null?parseFloat(t.max_repetitions):null,repetitionsUnitId:t.repetitions_unit,repetitionsRounding:t.repetitions_rounding!==null?parseFloat(t.repetitions_rounding):null,rir:t.rir!==null?parseFloat(t.rir):null,maxRir:t.max_rir!==null?parseFloat(t.max_rir):null,rpe:t.rpe!==null?parseFloat(t.rpe):null,restTime:t.rest!==null?parseInt(t.rest):null,maxRestTime:t.max_rest!==null?parseInt(t.max_rest):null,textRepr:t.text_repr,comment:t.comment}))}}class V$e{constructor(t,n,r,o,i){Pe(this,"exercises",[]);this.comment=t,this.isSuperset=n,this.exerciseIds=r,this.setConfigs=o,this.exercises=i??[]}}class H$e{constructor(){Pe(this,"fromJson",t=>new V$e(t.comment,t.is_superset,t.exercises,t.sets.map(n=>new z$e().fromJson(n))))}}class U$e{constructor(t,n,r,o,i){Pe(this,"slots",[]);this.iteration=t,this.date=n,this.label=r,this.day=o,this.slots=i??[]}}class G$e{constructor(){Pe(this,"fromJson",t=>new U$e(t.iteration,new Date(t.date),t.label,t.day!=null?new EI().fromJson(t.day):null,t.slots.map(n=>new H$e().fromJson(n))))}}class q$e{constructor(t){Pe(this,"id");Pe(this,"date");Pe(this,"iteration");Pe(this,"exerciseId");Pe(this,"slotEntryId");Pe(this,"sessionId");Pe(this,"routineId");Pe(this,"repetitionUnitObj");Pe(this,"repetitionUnitId");Pe(this,"repetitions");Pe(this,"repetitionsTarget");Pe(this,"weightUnitObj");Pe(this,"weightUnitId");Pe(this,"weight");Pe(this,"weightTarget");Pe(this,"rir");Pe(this,"rirTarget");Pe(this,"restTime");Pe(this,"restTimeTarget");Pe(this,"exerciseObj");this.id=t.id,this.date=typeof t.date=="string"?new Date(t.date):t.date,this.iteration=t.iteration,this.slotEntryId=t.slotEntryId,this.sessionId=t.sessionId||null,this.routineId=t.routineId||null,this.exerciseObj=t.exercise,this.exerciseId=t.exerciseId,this.repetitionUnitObj=t.repetitionsUnit||null,this.repetitionUnitId=t.repetitionsUnitId||null,this.repetitions=t.repetitions,this.repetitionsTarget=t.repetitionsTarget||null,this.weightUnitObj=t.weightUnit||null,this.weightUnitId=t.weightUnitId||null,this.weight=t.weight,this.weightTarget=t.weightTarget||null,this.rir=t.rir,this.rirTarget=t.rirTarget||null,this.restTime=t.restTime||null,this.restTimeTarget=t.restTimeTarget||null}get rirString(){return this.rir===null?"-/-":this.rir.toString()}}class MI{constructor(){Pe(this,"fromJson",t=>new q$e({id:t.id,date:t.date,iteration:t.iteration,exerciseId:t.exercise,slotEntryId:t.slot_entry,sessionId:t.session,routineId:t.routine,repetitionsUnitId:t.repetitions_unit,repetitions:t.repetitions===null?null:Number.parseFloat(t.repetitions),repetitionsTarget:t.repetitions_target===null?null:Number.parseFloat(t.repetitions_target),weightUnitId:t.weight_unit,weight:t.weight===null?null:Number.parseFloat(t.weight),weightTarget:t.weight_target===null?null:Number.parseFloat(t.weight_target),rir:t.rir===null?null:Number.parseFloat(t.rir),rirTarget:t.rir_target===null?null:Number.parseFloat(t.rir_target),restTime:t.rest,restTimeTarget:t.rest_target}));Pe(this,"toJson",t=>({id:t.id,iteration:t.iteration,date:t.date.toISOString(),slot_entry:t.slotEntryId,exercise:t.exerciseId,routine:t.routineId,repetitions_unit:t.repetitionUnitId,repetitions:t.repetitions,repetitions_target:t.repetitionsTarget,weight_unit:t.weightUnitId,weight:t.weight,weight_target:t.weightTarget,rir:t.rir,rir_target:t.rirTarget,rest:t.restTime,rest_target:t.restTimeTarget}))}}const qq=1e3,lL="1",lg="2",cL="3";class W$e{constructor(t){Pe(this,"id");Pe(this,"dayId");Pe(this,"routineId");Pe(this,"date");Pe(this,"notes");Pe(this,"impression");Pe(this,"timeStart");Pe(this,"timeEnd");Pe(this,"dayObj");Pe(this,"logs",[]);this.id=t.id,this.dayId=t.dayId,this.routineId=t.routineId,this.date=t.date,this.notes=t.notes,this.impression=t.impression,this.timeStart=t.timeStart,this.timeEnd=t.timeEnd,t.dayObj&&(this.dayObj=t.dayObj),this.logs=t.logs??[]}get impressionString(){switch(this.impression){case lL:return Cr.t("routines.impressionBad");case lg:return Cr.t("routines.impressionNeutral");case cL:return Cr.t("routines.impressionGood");default:return""}}get textRepresentation(){const t=this.timeStart&&this.timeEnd?`${this.timeStart.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})} - ${this.timeEnd.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})} /`:"",n=this.notes??"";return`${this.impressionString} ${t} ${n}`}}class mw{constructor(){Pe(this,"fromJson",t=>new W$e({id:t.id,dayId:t.day,routineId:t.routine,date:new Date(t.date),notes:t.notes!==void 0?t.notes:null,impression:t.impression,timeStart:t.time_start!==void 0?BN(t.time_start):null,timeEnd:t.time_end!==void 0?BN(t.time_end):null,dayObj:t.dayObj,logs:t.logs}));Pe(this,"toJson",t=>({id:t.id,day:t.dayId,date:mr(t.date),routine:t.routineId,notes:t.notes,impression:t.impression,time_start:Mx(t.timeStart),time_end:Mx(t.timeEnd)}))}}class K$e{constructor(t,n){this.session=t,this.logs=n}}class Y$e{constructor(){Pe(this,"fromJson",t=>new K$e(new mw().fromJson(t.session),t.logs.map(n=>new MI().fromJson(n))))}}class Q$e{constructor(t,n){Pe(this,"id");Pe(this,"name");this.id=t,this.name=n}}class X$e{fromJson(t){return new Q$e(t.id,t.name)}toJson(t){return{}}}class Z$e{constructor(t,n){Pe(this,"id");Pe(this,"name");this.id=t,this.name=n}}class J$e{fromJson(t){return new Z$e(t.id,t.name)}toJson(t){return{}}}const eNe="setting-repetitionunit",tNe="setting-weightunit",Koe=async()=>{const e=ft(eNe),{data:t}=await it.get(e,{headers:ht()}),n=new X$e;return t.results.map(r=>n.fromJson(r))},Yoe=async()=>{const e=ft(tNe),{data:t}=await it.get(e,{headers:ht()}),n=new J$e;return t.results.map(r=>n.fromJson(r))},nNe="structure",rNe="logs",oNe="stats",iNe="date-sequence-display",R1={},Qoe=async e=>{var f;const t=await it.get(ft(xt.ROUTINE,{id:e}),{headers:ht()}),n=gv.fromJson(t.data),r=await Promise.all([Koe(),Yoe(),hNe(e),mNe(e)]),o=r[0],i=r[1],a=r[2],s=r[3],l=new Set;for(const h of a.filter(m=>m.day!==null&&m.iteration===1))for(const m of h.slots)for(const g of m.setConfigs)l.add(g.exerciseId);const c=Array.from(l).map(h=>dv(h));(await Promise.all(c)).forEach(h=>{R1[h.id]=h});for(const h of a)for(const m of h.slots){for(const g of m.setConfigs)g.exercise=R1[g.exerciseId],g.repetitionsUnitId!==null&&(g.repetitionsUnit=o.find(y=>y.id===g.repetitionsUnitId)??null),g.weightUnitId!==null&&(g.weightUnit=i.find(y=>y.id===g.weightUnitId)??null);for(const g of m.exerciseIds)(f=m.exercises)==null||f.push(R1[g])}for(const h of s)for(const m of h.slots)for(const g of m.entries)g.exercise=R1[g.exerciseId],g.repetitionUnitId!==null&&(g.repetitionUnit=o.find(y=>y.id===g.repetitionUnitId)??null),g.weightUnitId!==null&&(g.weightUnit=i.find(y=>y.id===g.weightUnitId)??null);return n.dayData=a,n.days=s,n},aNe=async()=>{const e=ft(xt.ROUTINE,{query:{limit:"1",is_template:!1}}),t=await it.get(e,{headers:ht()});return t.data.count===0?null:await Qoe(t.data.results[0].id)},sNe=async e=>await Qoe(e),lNe=async()=>{const e=ft(xt.ROUTINE,{query:{is_public:!1}});return(await it.get(e,{headers:ht()})).data.results.map(n=>gv.fromJson(n))},cNe=async()=>{const e=ft(xt.PRIVATE_TEMPLATE);return(await it.get(e,{headers:ht()})).data.results.map(n=>gv.fromJson(n))},uNe=async()=>{const e=ft(xt.PUBLIC_TEMPLATE);return(await it.get(e,{headers:ht()})).data.results.map(n=>gv.fromJson(n))},dNe=async e=>{const t=await it.post(ft(xt.ROUTINE),e,{headers:ht()});return gv.fromJson(t.data)},fNe=async e=>{const t=await it.patch(ft(xt.ROUTINE,{id:e.id}),e,{headers:ht()});return gv.fromJson(t.data)},pNe=async e=>(await it.delete(ft(xt.ROUTINE,{id:e}),{headers:ht()})).status,hNe=async e=>{const t=await it.get(ft(xt.ROUTINE,{id:e,objectMethod:iNe}),{headers:ht()}),n=new G$e;return t.data.map(r=>n.fromJson(r))},mNe=async e=>{const t=await it.get(ft(xt.ROUTINE,{id:e,objectMethod:nNe}),{headers:ht()}),n=new EI;return t.data.days.map(r=>n.fromJson(r))},gNe=async e=>{const t=await it.get(ft(xt.ROUTINE,{id:e,objectMethod:rNe}),{headers:ht()}),n=new Y$e;return t.data.map(r=>n.fromJson(r))},yNe=async e=>{const t=await it.get(ft(xt.ROUTINE,{id:e,objectMethod:oNe}),{headers:ht()});return new $2e().fromJson(t.data)};class vNe{constructor(t,n,r,o){Pe(this,"entries",[]);this.id=t,this.name=n,this.unit=r,o&&(this.entries=o)}}class RI{fromJson(t){return new vNe(t.id,t.name,t.unit)}toJson(t){return{id:t.id,name:t.name,unit:t.unit}}}class bNe{constructor(t,n,r,o,i){this.id=t,this.category=n,this.date=r,this.value=o,this.notes=i}}class DI{fromJson(t){return new bNe(t.id,t.category,new Date(t.date),t.value,t.notes)}toJson(t){return{id:t.id,category:t.category,date:t.date,value:t.value,notes:t.notes}}}async function*xh(e,t){for(t==null&&(t=ht());;){const r=(await it.get(e,{headers:t})).data;if(yield r.results,e=r.next,!e)break}}const gw="measurement-category",yw="measurement",xNe=async e=>{const{filtersetQueryCategories:t={},filtersetQueryEntries:n={}}=e||{},r=new RI,o=new DI,i=[];for await(const c of xh(ft(gw,{query:{...t}}),ht()))for(const u of c)i.push(r.fromJson(u));const a=i.map(async c=>{const u=[],f=ft(yw,{query:{category:c.id,...n}});for await(const h of xh(f,ht()))for(const m of h)u.push(o.fromJson(m));return u}),s=await Promise.all(a);let l;return s.forEach(c=>{c.length>0&&(l=c[0].category,i.findLast(u=>u.id===l).entries=c)}),i},SNe=async e=>{const{data:t}=await it.get(ft(gw,{id:e}),{headers:ht()}),n=new RI().fromJson(t),r=new DI,o=[],i=ft(yw,{query:{category:n.id}});for await(const a of xh(i,ht()))for(const s of a)o.push(r.fromJson(s));return n.entries=o,n},wNe=async e=>{const t=await it.post(ft(gw),{name:e.name,unit:e.unit},{headers:ht()});return new RI().fromJson(t.data)},CNe=async e=>{const t=await it.patch(ft(gw,{id:e.id}),{name:e.name,unit:e.unit},{headers:ht()});return new RI().fromJson(t.data)},ENe=async e=>{await it.delete(ft(gw,{id:e}),{headers:ht()})},TNe=async e=>{await it.delete(ft(yw,{id:e}),{headers:ht()})},ONe=async e=>{const t=await it.patch(ft(yw,{id:e.id}),{date:mr(e.date),value:e.value,notes:e.notes},{headers:ht()});return new DI().fromJson(t.data)},INe=async e=>{const t=await it.post(ft(yw),{category:e.categoryId,date:mr(e.date),value:e.value,notes:e.notes},{headers:ht()});return new DI().fromJson(t.data)};class PNe{constructor(t,n,r,o,i,a,s,l){this.id=t,this.uuid=n,this.url=r,this.created=o,this.lastUpdate=i,this.size=a,this.width=s,this.height=l}}class ANe{fromJson(t){return new PNe(t.id,t.uuid,t.image,new Date(t.created),new Date(t.last_update),t.size,t.width,t.height)}}class MNe{constructor(t,n,r,o,i,a,s,l,c,u,f,h,m=null){this.id=t,this.uuid=n,this.code=r,this.name=o,this.energy=i,this.protein=a,this.carbohydrates=s,this.carbohydratesSugar=l,this.fat=c,this.fatSaturated=u,this.fiber=f,this.sodium=h,this.image=m}}class Xoe{fromJson(t){return new MNe(t.id,t.uuid,t.code,t.name,t.energy,parseFloat(t.protein),parseFloat(t.carbohydrates),t.carbohydrates_sugar===null?null:parseFloat(t.carbohydrates_sugar),parseFloat(t.fat),t.fat_saturated===null?null:parseFloat(t.fat_saturated),t.fiber===null?null:parseFloat(t.fiber),t.sodium===null?null:parseFloat(t.sodium),t.image===null?null:new ANe().fromJson(t.image))}}const RNe=async e=>{const{data:t}=await it.get(ft(xt.INGREDIENT_PATH,{id:e}),{headers:ht()});return new Xoe().fromJson(t)},Zoe=async e=>{if(e.length===0)return[];const t=ft(xt.INGREDIENT_PATH,{query:{id__in:e.join(",")}}),n=new Xoe,r=[];for await(const o of xh(t,ht()))for(const i of o)r.push(n.fromJson(i));return r},DNe=async(e,t,n=!0)=>{const r=[t];t!==ly&&n&&r.push(ly);const o=ft(xt.INGREDIENT_SEARCH_PATH,{query:{term:e,language:r.join(",")}}),{data:i}=await it.get(o);return i.suggestions};class kNe{constructor(t,n,r,o,i,a,s){Pe(this,"ingredient",null);Pe(this,"weightUnit",null);this.id=t,this.ingredientId=n,this.weightUnitId=r,this.amount=o,this.order=i,a&&(this.ingredient=a),s&&(this.weightUnit=s)}get amountString(){var t;return this.amount.toFixed().toString()+(this.weightUnitId!==null?` ${(t=this.weightUnit)==null?void 0:t.name}`:"g")}get nutritionalValues(){return this.ingredient?qa.fromIngredient(this.ingredient,this.amount,this.weightUnit):new qa}}class jB{fromJson(t){return new kNe(t.id,t.ingredient,t.weight_unit,parseFloat(t.amount),t.order)}toJson(t){return{ingredient:t.ingredientId,weight_unit:t.weightUnitId,amount:t.amount.toString(),order:t.order}}}const _Ne=async e=>{const t=await it.post(ft(xt.MEAL_ITEM),e,{headers:ht()});return new jB().fromJson(t.data)},$Ne=async e=>{const t=await it.patch(ft(xt.MEAL_ITEM,{id:e.id}),e,{headers:ht()});return new jB().fromJson(t.data)},NNe=async e=>{await it.delete(ft(xt.MEAL_ITEM,{id:e}),{headers:ht()})};class LNe{constructor(t,n,r,o=""){this.id=t,this.amount=n,this.grams=r,this.name=o}}class FNe{fromJson(t){return new LNe(t.id,parseFloat(t.amount),t.gram)}}const Joe=async e=>{if(e===null)return null;const{data:t}=await it.get(ft(xt.INGREDIENT_WEIGHT_UNIT,{id:e}),{headers:ht()});return new FNe().fromJson(t)},jNe=async e=>{const t=await it.post(ft(xt.MEAL),e,{headers:ht()});return new vB().fromJson(t.data)},BNe=async e=>{const t=await it.patch(ft(xt.MEAL,{id:e.id}),e,{headers:ht()});return new vB().fromJson(t.data)},zNe=async e=>{await it.delete(ft(xt.MEAL,{id:e}),{headers:ht()})},VNe=async e=>{let t=[];const n=new vB,r=new jB,{data:o}=await it.get(ft(xt.MEAL,{query:{plan:e}}),{headers:ht()}),i=o.results.map(a=>n.fromJson(a));for(const a of i){t=[];const{data:s}=await it.get(ft(xt.MEAL_ITEM,{query:{meal:a.id}}),{headers:ht()}),l=s.results.map(u=>r.fromJson(u));for(const u of l)t.push(u.ingredientId);const c=await Zoe(t);for(const u of l)u.weightUnit=await Joe(u.weightUnitId),u.ingredient=c.find(f=>f.id===u.ingredientId);a.items=l}return i},HNe=async e=>(await it.delete(ft(xt.WORKOUT_LOG,{id:e}),{headers:ht()})).status,UNe=async e=>{const t=new MI,n=await it.patch(ft(xt.WORKOUT_LOG,{id:e.id}),t.toJson(e),{headers:ht()});return t.fromJson(n.data)},GNe=async e=>{const t=new MI,n=[];for(const r of e){const o=await it.post(ft(xt.WORKOUT_LOG),{...r},{headers:ht()});n.push(t.fromJson(o.data))}return n},qNe=async e=>{const t=await it.patch(ft(xt.SLOT_ENTRY,{id:e.id}),e,{headers:ht()});return AB.fromJson(t.data)},WNe=async e=>{await it.delete(ft(xt.SLOT_ENTRY,{id:e}),{headers:ht()})},KNe=async e=>{const t=await it.post(ft(xt.SLOT_ENTRY),e,{headers:ht()});return AB.fromJson(t.data)},YNe=async e=>{const t=await it.patch(ft(xt.DAY,{id:e.id}),e,{headers:ht()});return new EI().fromJson(t.data)},QNe=async e=>{for(const t of e)await it.patch(ft(xt.DAY,{id:t.id}),{order:t.order},{headers:ht()})},XNe=async e=>{const t=await it.post(ft(xt.DAY),e,{headers:ht()});return new EI().fromJson(t.data)},ZNe=async e=>{await it.delete(ft(xt.DAY,{id:e}),{headers:ht()})},JNe=async e=>{const t=await it.post(ft(xt.SLOT),e,{headers:ht()});return new MB().fromJson(t.data)},eLe=async e=>{const t=await it.patch(ft(xt.SLOT,{id:e.id}),e,{headers:ht()});return new MB().fromJson(t.data)},tLe=async e=>{for(const t of e)await it.patch(ft(xt.SLOT,{id:t.id}),{order:t.order},{headers:ht()})},nLe=async e=>{await it.delete(ft(xt.SLOT,{id:e}),{headers:ht()})},rLe=async({values:e,maxValues:t})=>{const n=async r=>{const{toAdd:o,toEdit:i,toDelete:a,apiPath:s}=r;for(const l of o)await Zl(l,s);for(const l of i)await Xl(l,s);for(const l of a)await zc(l,s)};e!==void 0&&await n(e),t!==void 0&&await n(t)},Xl=async(e,t)=>{const n=await it.patch(ft(t,{id:e.id}),e,{headers:ht()});return new PB().fromJson(n.data)},Zl=async(e,t)=>{const n=await it.post(ft(t),e,{headers:ht()});return new PB().fromJson(n.data)},zc=async(e,t)=>await it.delete(ft(t,{id:e}),{headers:ht()}),oLe=async e=>await Xl(e,xt.WEIGHT_CONFIG),iLe=async e=>await Zl(e,xt.WEIGHT_CONFIG),aLe=async e=>await zc(e,xt.WEIGHT_CONFIG),sLe=async e=>await Xl(e,xt.MAX_WEIGHT_CONFIG),lLe=async e=>await Zl(e,xt.MAX_WEIGHT_CONFIG),cLe=async e=>await zc(e,xt.MAX_WEIGHT_CONFIG),uLe=async e=>await Xl(e,xt.REPETITIONS_CONFIG),dLe=async e=>await Zl(e,xt.REPETITIONS_CONFIG),fLe=async e=>await zc(e,xt.REPETITIONS_CONFIG),pLe=async e=>await Xl(e,xt.MAX_REPS_CONFIG),hLe=async e=>await Zl(e,xt.MAX_REPS_CONFIG),mLe=async e=>await zc(e,xt.MAX_REPS_CONFIG),gLe=async e=>await Xl(e,xt.NR_OF_SETS_CONFIG),yLe=async e=>await Zl(e,xt.NR_OF_SETS_CONFIG),vLe=async e=>await zc(e,xt.NR_OF_SETS_CONFIG),bLe=async e=>await Xl(e,xt.MAX_NR_OF_SETS_CONFIG),xLe=async e=>await Zl(e,xt.MAX_NR_OF_SETS_CONFIG),SLe=async e=>await Xl(e,xt.RIR_CONFIG),wLe=async e=>await Zl(e,xt.RIR_CONFIG),CLe=async e=>await zc(e,xt.RIR_CONFIG),ELe=async e=>await Xl(e,xt.MAX_RIR_CONFIG),TLe=async e=>await Zl(e,xt.MAX_RIR_CONFIG),OLe=async e=>await zc(e,xt.MAX_RIR_CONFIG),ILe=async e=>await Xl(e,xt.REST_CONFIG),PLe=async e=>await Zl(e,xt.REST_CONFIG),ALe=async e=>await zc(e,xt.REST_CONFIG),MLe=async e=>await Xl(e,xt.MAX_REST_CONFIG),RLe=async e=>await Zl(e,xt.MAX_REST_CONFIG),DLe=async e=>await zc(e,xt.MAX_REST_CONFIG),kLe=async e=>{const t=await it.get(ft(xt.SESSION,{query:e}),{headers:ht()});return t.data.count===1?new mw().fromJson(t.data.results[0]):null},_Le=async e=>{const{filtersetQuerySessions:t={},filtersetQueryLogs:n={}}=e||{},r=new mw,o=new MI,i=[],a=[],s={};for await(const l of xh(ft(xt.WORKOUT_LOG,{query:{limit:qN,...n}}),ht()))for(const c of l)a.push(o.fromJson(c));for(const l of a)s[l.exerciseId]||(s[l.exerciseId]=await dv(l.exerciseId)),l.exerciseObj=s[l.exerciseId];for await(const l of xh(ft(xt.SESSION,{query:{limit:qN,...t}}),ht()))for(const c of l){const u=r.fromJson(c);u.logs=a.filter(f=>f.sessionId===u.id),i.push(u)}return i},$Le=async e=>{const t=await it.post(ft(xt.SESSION),e,{headers:ht()});return new mw().fromJson(t.data)},NLe=async e=>{const t=await it.patch(ft(xt.SESSION,{id:e.id}),e,{headers:ht()});return new mw().fromJson(t.data)};class LLe{constructor(t,n,r,o,i,a,s,l,c){Pe(this,"ingredient",null);Pe(this,"weightUnit",null);this.id=t,this.planId=n,this.mealId=r,this.ingredientId=o,this.weightUnitId=i,this.amount=a,this.datetime=s,l&&(this.ingredient=l),c&&(this.weightUnit=c)}get amountString(){var t;return this.amount.toFixed().toString()+(this.weightUnitId!==null?` ${(t=this.weightUnit)==null?void 0:t.name}`:"g")}get nutritionalValues(){return this.ingredient?qa.fromIngredient(this.ingredient,this.amount,this.weightUnit):(console.log("Diary entry has no ingredient, returning empty NutritionalValues object"),new qa)}}class BB{fromJson(t){return new LLe(t.id,t.plan,t.meal,t.ingredient,t.weight_unit,parseFloat(t.amount),new Date(t.datetime))}toJson(t){return{plan:t.planId,meal:t.mealId,ingredient:t.ingredientId,weight_unit:t.weightUnitId,amount:t.amount.toString(),datetime:t.datetime.toISOString()}}}const eie=async e=>{const t=new BB,{filtersetQuery:n={},loadUnit:r=!0,loadIngredient:o=!0}=e||{},i=ft(xt.NUTRITIONAL_DIARY,{query:{limit:qN,...n}}),a=[];for await(const s of xh(i,ht()))for(const l of s){const c=t.fromJson(l);r&&(c.weightUnit=await Joe(c.weightUnitId)),o&&(c.ingredient=await RNe(c.ingredientId)),a.push(c)}return a},tie=async e=>{const t=await it.post(ft(xt.NUTRITIONAL_DIARY),e,{headers:ht()});return new BB().fromJson(t.data)},FLe=async e=>{const t=await it.patch(ft(xt.NUTRITIONAL_DIARY,{id:e.id}),e,{headers:ht()});return new BB().fromJson(t.data)};class jLe{constructor(t){Pe(this,"username");Pe(this,"email");Pe(this,"emailVerified");Pe(this,"dateJoined");Pe(this,"isTrustworthy");Pe(this,"useMetric");Pe(this,"height");Pe(this,"weightRounding");Pe(this,"repetitionsRounding");this.username=t.username,this.email=t.email,this.emailVerified=t.emailVerified,this.dateJoined=t.dateJoined,this.isTrustworthy=t.isTrustworthy,this.useMetric=t.useMetric,this.height=t.height,this.weightRounding=t.weightRounding,this.repetitionsRounding=t.repetitionsRounding}}class nie{constructor(){Pe(this,"fromJson",t=>new jLe({username:t.username,email:t.email,emailVerified:t.email_verified,dateJoined:new Date(t.date_joined),isTrustworthy:t.is_trustworthy,useMetric:t.weight_unit==="kg",height:t.height,weightRounding:t.weight_rounding!==null?parseFloat(t.weight_rounding):null,repetitionsRounding:t.repetitions_rounding!==null?parseFloat(t.repetitions_rounding):null}));Pe(this,"toJson",t=>({email:t.email,height:t.height,weight_unit:t.useMetric?"kg":"lb",weight_rounding:t.weightRounding,repetitions_rounding:t.repetitionsRounding}))}}const BLe="userprofile",zLe=async()=>{const e=ft(BLe),t=new nie;try{const n=await it.get(e,{headers:ht()});return t.fromJson(n.data)}catch{return null}},VLe=async e=>{const t=await it.post(ft(xt.API_PROFILE_PATH),e,{headers:ht()});return new nie().fromJson(t.data)},yv="nutritionplan",HLe=async()=>{const{data:e}=await it.get(ft(yv),{headers:ht()}),t=new xI;return e.results.map(n=>t.fromJson(n))},ULe=async()=>{const{data:e}=await it.get(ft(yv,{query:{limit:"1"}}),{headers:ht()});return e.count===0?null:await zB(e.results[0].id)},zB=async(e,t)=>{if(e===null)return null;const{filtersetQueryLogs:n={}}=t||{},{data:r}=await it.get(ft(yv,{id:e}),{headers:ht()}),o=[],a=new xI().fromJson(r),s=await Promise.all([VNe(e),eie({filtersetQuery:{plan:e,...n}})]);a.meals=s[0],a.diaryEntries=s[1],a.diaryEntries.forEach(c=>{o.includes(c.ingredientId)||o.push(c.ingredientId)});const l=await Zoe(o);return a.diaryEntries.forEach(c=>{c.ingredient=l.find(u=>u.id===c.ingredientId)}),a.meals.forEach(c=>{c.diaryEntries=a.diaryEntries.filter(u=>u.mealId===c.id)}),a},GLe=async e=>{const t=await it.post(ft(yv),e,{headers:ht()});return new xI().fromJson(t.data)},qLe=async e=>{const t=await it.patch(ft(yv,{id:e.id}),e,{headers:ht()});return new xI().fromJson(t.data)},WLe=async e=>{await it.delete(ft(yv,{id:e}),{headers:ht()})};function KLe(){return gr({queryKey:[st.NUTRITIONAL_PLANS],queryFn:()=>HLe()})}function YLe(){return gr({queryKey:[st.NUTRITIONAL_PLAN,"last"],queryFn:()=>ULe()})}function QLe(e){return gr({queryKey:[st.NUTRITIONAL_PLAN,e],queryFn:()=>zB(e)})}function XLe(e,t,n=!0){return gr({queryKey:[st.NUTRITIONAL_PLAN,e,t],queryFn:()=>zB(e,{filtersetQueryLogs:{datetime__eq:mr(new Date(t))}}),enabled:n})}const ZLe=()=>{const e=Mt();return Dt({mutationFn:t=>GLe(t),onSuccess:()=>{e.invalidateQueries({queryKey:[st.NUTRITIONAL_PLANS]}),e.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN]})}})},JLe=e=>{const t=Mt();return Dt({mutationFn:n=>WLe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLANS]}),t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN,e]})}})},eFe=e=>{const t=Mt();return Dt({mutationFn:n=>qLe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN,e]}),t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLANS]})}})},tFe=e=>gr({queryFn:()=>eie(e),queryKey:[st.NUTRITIONAL_PLAN_DIARY,JSON.stringify(e||{})]}),nFe=e=>{const t=Mt();return Dt({mutationFn:n=>tie(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN,e]})})},rie=e=>{const t=Mt();return Dt({mutationFn:n=>Promise.all(n.map(r=>tie(r))),onSuccess:()=>t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN,e]})})},rFe=e=>{const t=Mt();return Dt({mutationFn:n=>FLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN,e]})})},oFe=e=>{const t=Mt();return Dt({mutationFn:n=>jNe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN,e]})}})},iFe=e=>{const t=Mt();return Dt({mutationFn:n=>zNe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN,e]})}})},aFe=e=>{const t=Mt();return Dt({mutationFn:n=>BNe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN,e]})}})},sFe=e=>{const t=Mt();return Dt({mutationFn:n=>_Ne(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN,e]})}})},lFe=e=>{const t=Mt();return Dt({mutationFn:n=>$Ne(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN,e]})}})},cFe=e=>{const t=Mt();return Dt({mutationFn:n=>NNe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN,e]})}})};function _i(e,t){return e.toLocaleString(t,{maximumFractionDigits:0})}function oie(e,t,n){return e.toLocaleString(t,{maximumFractionDigits:0,unit:n.valueOf(),style:"unit"})}function $n(e,t){return oie(e,t,"gram")}function QR(e,t){return oie(e,t,"percent")}const Ng=e=>{const{i18n:t}=je(),n=e.planned>0;return Q(Tt,{children:[S(wne,{variant:"determinate",value:e.percentage<100?e.percentage:100}),Q(at,{variant:"caption",children:[e.title," — ",$n(e.logged,t.language),n&&Q(Tt,{children:[" / ",$n(e.planned,t.language)]})]})]})};var XR,Wq;function Aa(){if(Wq)return XR;Wq=1;var e=Array.isArray;return XR=e,XR}var ZR,Kq;function iie(){if(Kq)return ZR;Kq=1;var e=typeof d1=="object"&&d1&&d1.Object===Object&&d1;return ZR=e,ZR}var JR,Yq;function Vc(){if(Yq)return JR;Yq=1;var e=iie(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return JR=n,JR}var eD,Qq;function vw(){if(Qq)return eD;Qq=1;var e=Vc(),t=e.Symbol;return eD=t,eD}var tD,Xq;function uFe(){if(Xq)return tD;Xq=1;var e=vw(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;function i(a){var s=n.call(a,o),l=a[o];try{a[o]=void 0;var c=!0}catch{}var u=r.call(a);return c&&(s?a[o]=l:delete a[o]),u}return tD=i,tD}var nD,Zq;function dFe(){if(Zq)return nD;Zq=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return nD=n,nD}var rD,Jq;function Ju(){if(Jq)return rD;Jq=1;var e=vw(),t=uFe(),n=dFe(),r="[object Null]",o="[object Undefined]",i=e?e.toStringTag:void 0;function a(s){return s==null?s===void 0?o:r:i&&i in Object(s)?t(s):n(s)}return rD=a,rD}var oD,eW;function ed(){if(eW)return oD;eW=1;function e(t){return t!=null&&typeof t=="object"}return oD=e,oD}var iD,tW;function vv(){if(tW)return iD;tW=1;var e=Ju(),t=ed(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return iD=r,iD}var aD,nW;function VB(){if(nW)return aD;nW=1;var e=Aa(),t=vv(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(i,a){if(e(i))return!1;var s=typeof i;return s=="number"||s=="symbol"||s=="boolean"||i==null||t(i)?!0:r.test(i)||!n.test(i)||a!=null&&i in Object(a)}return aD=o,aD}var sD,rW;function jf(){if(rW)return sD;rW=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return sD=e,sD}var lD,oW;function HB(){if(oW)return lD;oW=1;var e=Ju(),t=jf(),n="[object AsyncFunction]",r="[object Function]",o="[object GeneratorFunction]",i="[object Proxy]";function a(s){if(!t(s))return!1;var l=e(s);return l==r||l==o||l==n||l==i}return lD=a,lD}var cD,iW;function fFe(){if(iW)return cD;iW=1;var e=Vc(),t=e["__core-js_shared__"];return cD=t,cD}var uD,aW;function pFe(){if(aW)return uD;aW=1;var e=fFe(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return uD=n,uD}var dD,sW;function aie(){if(sW)return dD;sW=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return dD=n,dD}var fD,lW;function hFe(){if(lW)return fD;lW=1;var e=HB(),t=pFe(),n=jf(),r=aie(),o=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=RegExp("^"+l.call(c).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!n(h)||t(h))return!1;var m=e(h)?u:i;return m.test(r(h))}return fD=f,fD}var pD,cW;function mFe(){if(cW)return pD;cW=1;function e(t,n){return t==null?void 0:t[n]}return pD=e,pD}var hD,uW;function zh(){if(uW)return hD;uW=1;var e=hFe(),t=mFe();function n(r,o){var i=t(r,o);return e(i)?i:void 0}return hD=n,hD}var mD,dW;function kI(){if(dW)return mD;dW=1;var e=zh(),t=e(Object,"create");return mD=t,mD}var gD,fW;function gFe(){if(fW)return gD;fW=1;var e=kI();function t(){this.__data__=e?e(null):{},this.size=0}return gD=t,gD}var yD,pW;function yFe(){if(pW)return yD;pW=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return yD=e,yD}var vD,hW;function vFe(){if(hW)return vD;hW=1;var e=kI(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function o(i){var a=this.__data__;if(e){var s=a[i];return s===t?void 0:s}return r.call(a,i)?a[i]:void 0}return vD=o,vD}var bD,mW;function bFe(){if(mW)return bD;mW=1;var e=kI(),t=Object.prototype,n=t.hasOwnProperty;function r(o){var i=this.__data__;return e?i[o]!==void 0:n.call(i,o)}return bD=r,bD}var xD,gW;function xFe(){if(gW)return xD;gW=1;var e=kI(),t="__lodash_hash_undefined__";function n(r,o){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=e&&o===void 0?t:o,this}return xD=n,xD}var SD,yW;function SFe(){if(yW)return SD;yW=1;var e=gFe(),t=yFe(),n=vFe(),r=bFe(),o=xFe();function i(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s-1}return ID=t,ID}var PD,EW;function OFe(){if(EW)return PD;EW=1;var e=_I();function t(n,r){var o=this.__data__,i=e(o,n);return i<0?(++this.size,o.push([n,r])):o[i][1]=r,this}return PD=t,PD}var AD,TW;function $I(){if(TW)return AD;TW=1;var e=wFe(),t=CFe(),n=EFe(),r=TFe(),o=OFe();function i(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s{if(!o)return;function w(C){C.defaultPrevented||C.key==="Escape"&&(r==null||r(C,"escapeKeyDown"))}return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}},[o,r]);const s=Je((w,C)=>{r==null||r(w,C)}),l=Je(w=>{!r||w==null||a.start(w,()=>{s(null,"timeout")})});x.useEffect(()=>(o&&l(t),a.clear),[o,t,l,a]);const c=w=>{r==null||r(w,"clickaway")},u=a.clear,f=x.useCallback(()=>{t!=null&&l(i??t*.5)},[t,i,l]),h=w=>C=>{const E=w.onBlur;E==null||E(C),f()},m=w=>C=>{const E=w.onFocus;E==null||E(C),u()},g=w=>C=>{const E=w.onMouseEnter;E==null||E(C),u()},y=w=>C=>{const E=w.onMouseLeave;E==null||E(C),f()};return x.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",f),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",u)}},[n,o,f,u]),{getRootProps:(w={})=>{const C={...VE(e),...VE(w)};return{role:"presentation",...w,...C,onBlur:h(C),onFocus:m(C),onMouseEnter:g(C),onMouseLeave:y(C)}},onClickAway:c}}function _Pe(e){return qe("MuiSnackbarContent",e)}Ke("MuiSnackbarContent",["root","message","action"]);const $Pe=e=>{const{classes:t}=e;return Me({root:["root"],action:["action"],message:["message"]},_Pe,t)},NPe=ae(go,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(dt(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=bte(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}}})),LPe=ae("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),FPe=ae("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),jPe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:a,role:s="alert",...l}=r,c=r,u=$Pe(c);return k.jsxs(NPe,{role:s,square:!0,elevation:6,className:fe(u.root,i),ownerState:c,ref:n,...l,children:[k.jsx(LPe,{className:u.message,ownerState:c,children:a}),o?k.jsx(FPe,{className:u.action,ownerState:c,children:o}):null]})});function BPe(e){return qe("MuiSnackbar",e)}Ke("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const zPe=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Oe(n.vertical)}${Oe(n.horizontal)}`]};return Me(r,BPe,t)},VPe=ae("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Oe(n.anchorOrigin.vertical)}${Oe(n.anchorOrigin.horizontal)}`]]}})(dt(({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%)"}}}]}))),dI=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiSnackbar"}),o=Lr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:f,ClickAwayListenerProps:h,ContentProps:m,disableWindowBlurListener:g=!1,message:y,onBlur:v,onClose:w,onFocus:C,onMouseEnter:E,onMouseLeave:I,open:O,resumeHideDuration:P,slots:R={},slotProps:D={},TransitionComponent:M,transitionDuration:A=i,TransitionProps:{onEnter:_,onExited:N,...B}={},...H}=r,j={...r,anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:g,TransitionComponent:M,transitionDuration:A},L=zPe(j),{getRootProps:V,onClickAway:W}=kPe({...j}),[K,G]=x.useState(!0),q=ue=>{G(!0),N&&N(ue)},Y=(ue,pe)=>{G(!1),_&&_(ue,pe)},Z={slots:{transition:M,...R},slotProps:{content:m,clickAwayListener:h,transition:B,...D}},[ie,se]=wt("root",{ref:n,className:[L.root,f],elementType:VPe,getSlotProps:V,externalForwardedProps:{...Z,...H},ownerState:j}),[ce,{ownerState:ye,...Se}]=wt("clickAwayListener",{elementType:gne,externalForwardedProps:Z,getSlotProps:ue=>({onClickAway:(...pe)=>{var Ee;(Ee=ue.onClickAway)==null||Ee.call(ue,...pe),W(...pe)}}),ownerState:j}),[ne,le]=wt("content",{elementType:jPe,shouldForwardComponentProp:!0,externalForwardedProps:Z,additionalProps:{message:y,action:a},ownerState:j}),[de,oe]=wt("transition",{elementType:mh,externalForwardedProps:Z,getSlotProps:ue=>({onEnter:(...pe)=>{var Ee;(Ee=ue.onEnter)==null||Ee.call(ue,...pe),Y(...pe)},onExited:(...pe)=>{var Ee;(Ee=ue.onExited)==null||Ee.call(ue,...pe),q(...pe)}}),additionalProps:{appear:!0,in:O,timeout:A,direction:s==="top"?"down":"up"},ownerState:j});return!O&&K?null:k.jsx(ce,{...Se,...R.clickAwayListener&&{ownerState:ye},children:k.jsx(ie,{...se,children:k.jsx(de,{...oe,children:u||k.jsx(ne,{...le})})})})});function HPe(e){return qe("MuiTooltip",e)}const eo=Ke("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function UPe(e){return Math.round(e*1e5)/1e5}const GPe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Oe(i.split("-")[0])}`],arrow:["arrow"]};return Me(a,HPe,t)},qPe=ae(sv,{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]}})(dt(({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"] .${eo.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${eo.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${eo.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${eo.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${eo.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${eo.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${eo.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${eo.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),WPe=ae("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${Oe(n.placement.split("-")[0])}`]]}})(dt(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Nt(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,[`.${eo.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${eo.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${eo.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${eo.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:`${UPe(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${eo.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${eo.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${eo.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${eo.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${eo.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${eo.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${eo.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${eo.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${eo.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${eo.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),KPe=ae("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(dt(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Nt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let E1=!1;const y6=new tI;let Jb={x:0,y:0};function T1(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Go=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:a,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:f=!1,disableInteractive:h=!1,disableTouchListener:m=!1,enterDelay:g=100,enterNextDelay:y=0,enterTouchDelay:v=700,followCursor:w=!1,id:C,leaveDelay:E=0,leaveTouchDelay:I=1500,onClose:O,onOpen:P,open:R,placement:D="bottom",PopperComponent:M,PopperProps:A={},slotProps:_={},slots:N={},title:B,TransitionComponent:H,TransitionProps:j,...L}=r,V=x.isValidElement(i)?i:k.jsx("span",{children:i}),W=Lr(),K=vr(),[G,q]=x.useState(),[Y,Z]=x.useState(null),ie=x.useRef(!1),se=h||w,ce=ko(),ye=ko(),Se=ko(),ne=ko(),[le,de]=ia({controlled:R,default:!1,name:"Tooltip",state:"open"});let oe=le;const ue=bn(C),pe=x.useRef(),Ee=Je(()=>{pe.current!==void 0&&(document.body.style.WebkitUserSelect=pe.current,pe.current=void 0),ne.clear()});x.useEffect(()=>Ee,[Ee]);const xe=Kt=>{y6.clear(),E1=!0,de(!0),P&&!oe&&P(Kt)},Re=Je(Kt=>{y6.start(800+E,()=>{E1=!1}),de(!1),O&&oe&&O(Kt),ce.start(W.transitions.duration.shortest,()=>{ie.current=!1})}),he=Kt=>{ie.current&&Kt.type!=="touchstart"||(G&&G.removeAttribute("title"),ye.clear(),Se.clear(),g||E1&&y?ye.start(E1?y:g,()=>{xe(Kt)}):xe(Kt))},Pe=Kt=>{ye.clear(),Se.start(E,()=>{Re(Kt)})},[,ve]=x.useState(!1),Ie=Kt=>{zE(Kt.target)||(ve(!1),Pe(Kt))},te=Kt=>{G||q(Kt.currentTarget),zE(Kt.target)&&(ve(!0),he(Kt))},Te=Kt=>{ie.current=!0;const un=V.props;un.onTouchStart&&un.onTouchStart(Kt)},De=Kt=>{Te(Kt),Se.clear(),ce.clear(),Ee(),pe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ne.start(v,()=>{document.body.style.WebkitUserSelect=pe.current,he(Kt)})},Ve=Kt=>{V.props.onTouchEnd&&V.props.onTouchEnd(Kt),Ee(),Se.start(I,()=>{Re(Kt)})};x.useEffect(()=>{if(!oe)return;function Kt(un){un.key==="Escape"&&Re(un)}return document.addEventListener("keydown",Kt),()=>{document.removeEventListener("keydown",Kt)}},[Re,oe]);const We=en(_f(V),q,n);!B&&B!==0&&(oe=!1);const rt=x.useRef(),ut=Kt=>{const un=V.props;un.onMouseMove&&un.onMouseMove(Kt),Jb={x:Kt.clientX,y:Kt.clientY},rt.current&&rt.current.update()},Be={},et=typeof B=="string";c?(Be.title=!oe&&et&&!f?B:null,Be["aria-describedby"]=oe?ue:null):(Be["aria-label"]=et?B:null,Be["aria-labelledby"]=oe&&!et?ue:null);const Le={...Be,...L,...V.props,className:fe(L.className,V.props.className),onTouchStart:Te,ref:We,...w?{onMouseMove:ut}:{}},It={};m||(Le.onTouchStart=De,Le.onTouchEnd=Ve),f||(Le.onMouseOver=T1(he,Le.onMouseOver),Le.onMouseLeave=T1(Pe,Le.onMouseLeave),se||(It.onMouseOver=he,It.onMouseLeave=Pe)),u||(Le.onFocus=T1(te,Le.onFocus),Le.onBlur=T1(Ie,Le.onBlur),se||(It.onFocus=te,It.onBlur=Ie));const Lt={...r,isRtl:K,arrow:o,disableInteractive:se,placement:D,PopperComponentProp:M,touch:ie.current},nt=typeof _.popper=="function"?_.popper(Lt):_.popper,lt=x.useMemo(()=>{var un,gt;let Kt=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return(un=A.popperOptions)!=null&&un.modifiers&&(Kt=Kt.concat(A.popperOptions.modifiers)),(gt=nt==null?void 0:nt.popperOptions)!=null&>.modifiers&&(Kt=Kt.concat(nt.popperOptions.modifiers)),{...A.popperOptions,...nt==null?void 0:nt.popperOptions,modifiers:Kt}},[Y,A.popperOptions,nt==null?void 0:nt.popperOptions]),vt=GPe(Lt),bt=typeof _.transition=="function"?_.transition(Lt):_.transition,vn={slots:{popper:s.Popper,transition:s.Transition??H,tooltip:s.Tooltip,arrow:s.Arrow,...N},slotProps:{arrow:_.arrow??l.arrow,popper:{...A,...nt??l.popper},tooltip:_.tooltip??l.tooltip,transition:{...j,...bt??l.transition}}},[kn,Rr]=wt("popper",{elementType:qPe,externalForwardedProps:vn,ownerState:Lt,className:fe(vt.popper,A==null?void 0:A.className)}),[nr,Bn]=wt("transition",{elementType:mh,externalForwardedProps:vn,ownerState:Lt}),[yo,To]=wt("tooltip",{elementType:WPe,className:vt.tooltip,externalForwardedProps:vn,ownerState:Lt}),[oo,Oi]=wt("arrow",{elementType:KPe,className:vt.arrow,externalForwardedProps:vn,ownerState:Lt,ref:Z});return k.jsxs(x.Fragment,{children:[x.cloneElement(V,Le),k.jsx(kn,{as:M??sv,placement:D,anchorEl:w?{getBoundingClientRect:()=>({top:Jb.y,left:Jb.x,right:Jb.x,bottom:Jb.y,width:0,height:0})}:G,popperRef:rt,open:G?oe:!1,id:ue,transition:!0,...It,...Rr,popperOptions:lt,children:({TransitionProps:Kt})=>k.jsx(nr,{timeout:W.transitions.duration.shorter,...Kt,...Bn,children:k.jsxs(yo,{...To,children:[B,o?k.jsx(oo,{...Oi}):null]})})})]})}),Ft=q0e({createStyledComponent:ae("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>pt({props:e,name:"MuiStack"})}),sw=x.createContext({}),fI=x.createContext({});function YPe(e){return qe("MuiStep",e)}Ke("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const QPe=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return Me({root:["root",n,r&&"alternativeLabel",o&&"completed"]},YPe,t)},XPe=ae("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({variants:[{props:{orientation:"horizontal"},style:{paddingLeft:8,paddingRight:8}},{props:{alternativeLabel:!0},style:{flex:1,position:"relative"}}]}),Vm=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiStep"}),{active:o,children:i,className:a,component:s="div",completed:l,disabled:c,expanded:u=!1,index:f,last:h,...m}=r,{activeStep:g,connector:y,alternativeLabel:v,orientation:w,nonLinear:C}=x.useContext(sw);let[E=!1,I=!1,O=!1]=[o,l,c];g===f?E=o!==void 0?o:!0:!C&&g>f?I=l!==void 0?l:!0:!C&&g({index:f,last:h,expanded:u,icon:f+1,active:E,completed:I,disabled:O}),[f,h,u,E,I,O]),R={...r,active:E,orientation:w,alternativeLabel:v,completed:I,disabled:O,expanded:u,component:s},D=QPe(R),M=k.jsxs(XPe,{as:s,className:fe(D.root,a),ref:n,ownerState:R,...m,children:[y&&v&&f!==0?y:null,i]});return k.jsx(fI.Provider,{value:P,children:y&&!v&&f!==0?k.jsxs(x.Fragment,{children:[y,M]}):M})}),JPe=Ot(k.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"})),ZPe=Ot(k.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}));function eAe(e){return qe("MuiStepIcon",e)}const NR=Ke("MuiStepIcon",["root","active","completed","error","text"]);var v6;const tAe=e=>{const{classes:t,active:n,completed:r,error:o}=e;return Me({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},eAe,t)},LR=ae(qE,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(dt(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${NR.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${NR.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${NR.error}`]:{color:(e.vars||e).palette.error.main}}))),nAe=ae("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(dt(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),rAe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiStepIcon"}),{active:o=!1,className:i,completed:a=!1,error:s=!1,icon:l,...c}=r,u={...r,active:o,completed:a,error:s},f=tAe(u);if(typeof l=="number"||typeof l=="string"){const h=fe(i,f.root);return s?k.jsx(LR,{as:ZPe,className:h,ref:n,ownerState:u,...c}):a?k.jsx(LR,{as:JPe,className:h,ref:n,ownerState:u,...c}):k.jsxs(LR,{className:h,ref:n,ownerState:u,...c,children:[v6||(v6=k.jsx("circle",{cx:"12",cy:"12",r:"12"})),k.jsx(nAe,{className:f.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]})}return l});function oAe(e){return qe("MuiStepLabel",e)}const df=Ke("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),iAe=e=>{const{classes:t,orientation:n,active:r,completed:o,error:i,disabled:a,alternativeLabel:s}=e;return Me({root:["root",n,i&&"error",a&&"disabled",s&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",i&&"error",a&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",i&&"error",a&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]},oAe,t)},aAe=ae("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})({display:"flex",alignItems:"center",[`&.${df.alternativeLabel}`]:{flexDirection:"column"},[`&.${df.disabled}`]:{cursor:"default"},variants:[{props:{orientation:"vertical"},style:{textAlign:"left",padding:"8px 0"}}]}),sAe=ae("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(dt(({theme:e})=>({...e.typography.body2,display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${df.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${df.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${df.alternativeLabel}`]:{marginTop:16},[`&.${df.error}`]:{color:(e.vars||e).palette.error.main}}))),lAe=ae("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({flexShrink:0,display:"flex",paddingRight:8,[`&.${df.alternativeLabel}`]:{paddingRight:0}}),cAe=ae("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(dt(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${df.alternativeLabel}`]:{textAlign:"center"}}))),Pp=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiStepLabel"}),{children:o,className:i,componentsProps:a={},error:s=!1,icon:l,optional:c,slots:u={},slotProps:f={},StepIconComponent:h,StepIconProps:m,...g}=r,{alternativeLabel:y,orientation:v}=x.useContext(sw),{active:w,disabled:C,completed:E,icon:I}=x.useContext(fI),O=l||I;let P=h;O&&!P&&(P=rAe);const R={...r,active:w,alternativeLabel:y,completed:E,disabled:C,error:s,orientation:v},D=iAe(R),M={slots:u,slotProps:{stepIcon:m,...a,...f}},[A,_]=wt("root",{elementType:aAe,externalForwardedProps:{...M,...g},ownerState:R,ref:n,className:fe(D.root,i)}),[N,B]=wt("label",{elementType:sAe,externalForwardedProps:M,ownerState:R}),[H,j]=wt("stepIcon",{elementType:P,externalForwardedProps:M,ownerState:R});return k.jsxs(A,{..._,children:[O||H?k.jsx(lAe,{className:D.iconContainer,ownerState:R,children:k.jsx(H,{completed:E,active:w,error:s,icon:O,...j})}):null,k.jsxs(cAe,{className:D.labelContainer,ownerState:R,children:[o?k.jsx(N,{...B,className:fe(D.label,B==null?void 0:B.className),children:o}):null,c]})]})});Pp.muiName="StepLabel";function uAe(e){return qe("MuiStepConnector",e)}Ke("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const dAe=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:i,disabled:a}=e,s={root:["root",n,r&&"alternativeLabel",o&&"active",i&&"completed",a&&"disabled"],line:["line",`line${Oe(n)}`]};return Me(s,uAe,t)},fAe=ae("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({flex:"1 1 auto",variants:[{props:{orientation:"vertical"},style:{marginLeft:12}},{props:{alternativeLabel:!0},style:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}}]}),pAe=ae("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${Oe(n.orientation)}`]]}})(dt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600];return{display:"block",borderColor:e.vars?e.vars.palette.StepConnector.border:t,variants:[{props:{orientation:"horizontal"},style:{borderTopStyle:"solid",borderTopWidth:1}},{props:{orientation:"vertical"},style:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}]}})),hAe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiStepConnector"}),{className:o,...i}=r,{alternativeLabel:a,orientation:s="horizontal"}=x.useContext(sw),{active:l,disabled:c,completed:u}=x.useContext(fI),f={...r,alternativeLabel:a,orientation:s,active:l,completed:u,disabled:c},h=dAe(f);return k.jsx(fAe,{className:fe(h.root,o),ref:n,ownerState:f,...i,children:k.jsx(pAe,{className:h.line,ownerState:f})})});function mAe(e){return qe("MuiStepContent",e)}Ke("MuiStepContent",["root","last","transition"]);const gAe=e=>{const{classes:t,last:n}=e;return Me({root:["root",n&&"last"],transition:["transition"]},mAe,t)},yAe=ae("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.last&&t.last]}})(dt(({theme:e})=>({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:e.vars?`1px solid ${e.vars.palette.StepContent.border}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}`,variants:[{props:{last:!0},style:{borderLeft:"none"}}]}))),vAe=ae(aa,{name:"MuiStepContent",slot:"Transition",overridesResolver:(e,t)=>t.transition})({}),Hm=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiStepContent"}),{children:o,className:i,TransitionComponent:a=aa,transitionDuration:s="auto",TransitionProps:l,slots:c={},slotProps:u={},...f}=r,{orientation:h}=x.useContext(sw),{active:m,last:g,expanded:y}=x.useContext(fI),v={...r,last:g},w=gAe(v);let C=s;s==="auto"&&!a.muiSupportAuto&&(C=void 0);const E={slots:c,slotProps:{transition:l,...u}},[I,O]=wt("transition",{elementType:vAe,externalForwardedProps:E,ownerState:v,className:w.transition,additionalProps:{in:m||y,timeout:C,unmountOnExit:!0}});return k.jsx(yAe,{className:fe(w.root,i),ref:n,ownerState:v,...f,children:k.jsx(I,{as:a,...O,children:o})})});function bAe(e){return qe("MuiStepper",e)}Ke("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const xAe=e=>{const{orientation:t,nonLinear:n,alternativeLabel:r,classes:o}=e;return Me({root:["root",t,n&&"nonLinear",r&&"alternativeLabel"]},bAe,o)},SAe=ae("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})({display:"flex",variants:[{props:{orientation:"horizontal"},style:{flexDirection:"row",alignItems:"center"}},{props:{orientation:"vertical"},style:{flexDirection:"column"}},{props:{alternativeLabel:!0},style:{alignItems:"flex-start"}}]}),wAe=k.jsx(hAe,{}),CAe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiStepper"}),{activeStep:o=0,alternativeLabel:i=!1,children:a,className:s,component:l="div",connector:c=wAe,nonLinear:u=!1,orientation:f="horizontal",...h}=r,m={...r,nonLinear:u,alternativeLabel:i,orientation:f,component:l},g=xAe(m),y=x.Children.toArray(a).filter(Boolean),v=y.map((C,E)=>x.cloneElement(C,{index:E,last:E+1===y.length,...C.props})),w=x.useMemo(()=>({activeStep:o,alternativeLabel:i,connector:c,nonLinear:u,orientation:f}),[o,i,c,u,f]);return k.jsx(sw.Provider,{value:w,children:k.jsx(SAe,{as:l,ownerState:m,className:fe(g.root,s),ref:n,...h,children:v})})});function EAe(e){return qe("MuiSwitch",e)}const Yi=Ke("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),TAe=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,s={root:["root",n&&`edge${Oe(n)}`,`size${Oe(r)}`],switchBase:["switchBase",`color${Oe(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Me(s,EAe,t);return{...t,...l}},OAe=ae("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Oe(n.edge)}`],t[`size${Oe(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,[`& .${Yi.thumb}`]:{width:16,height:16},[`& .${Yi.switchBase}`]:{padding:4,[`&.${Yi.checked}`]:{transform:"translateX(16px)"}}}}]}),IAe=ae(mne,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Yi.input}`]:t.input},n.color!=="default"&&t[`color${Oe(n.color)}`]]}})(dt(({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}),[`&.${Yi.checked}`]:{transform:"translateX(20px)"},[`&.${Yi.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Yi.checked} + .${Yi.track}`]:{opacity:.5},[`&.${Yi.disabled} + .${Yi.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Yi.input}`]:{left:"-100%",width:"300%"}})),dt(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(er(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Yi.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yi.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Vu(e.palette[t].main,.62):zu(e.palette[t].main,.55)}`}},[`&.${Yi.checked} + .${Yi.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),PAe=ae("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(dt(({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}`}))),AAe=ae("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(dt(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),qo=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:l,slots:c={},slotProps:u={},...f}=r,h={...r,color:i,edge:a,size:s},m=TAe(h),g={slots:c,slotProps:u},[y,v]=wt("root",{className:fe(m.root,o),elementType:OAe,externalForwardedProps:g,ownerState:h,additionalProps:{sx:l}}),[w,C]=wt("thumb",{className:m.thumb,elementType:AAe,externalForwardedProps:g,ownerState:h}),E=k.jsx(w,{...C}),[I,O]=wt("track",{className:m.track,elementType:PAe,externalForwardedProps:g,ownerState:h});return k.jsxs(y,{...v,children:[k.jsx(IAe,{type:"checkbox",icon:E,checkedIcon:E,ref:n,ownerState:h,...f,classes:{...m,root:m.switchBase},slots:{...c.switchBase&&{root:c.switchBase},...c.input&&{input:c.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(h):u.switchBase},...u.input&&{input:typeof u.input=="function"?u.input(h):u.input}}}),k.jsx(I,{...O})]})});function MAe(e){return qe("MuiTab",e)}const Es=Ke("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),RAe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e,c={root:["root",i&&a&&"labelIcon",`textColor${Oe(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return Me(c,MAe,t)},DAe=ae(la,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Oe(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Es.iconWrapper}`]:t.iconWrapper},{[`& .${Es.icon}`]:t.icon}]}})(dt(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${Es.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${Es.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${Es.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${Es.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Es.selected}`]:{opacity:1},[`&.${Es.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Es.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Es.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Es.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Es.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),DN=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:f,onChange:h,onClick:m,onFocus:g,selected:y,selectionFollowsFocus:v,textColor:w="inherit",value:C,wrapped:E=!1,...I}=r,O={...r,disabled:i,disableFocusRipple:a,selected:y,icon:!!l,iconPosition:c,label:!!f,fullWidth:s,textColor:w,wrapped:E},P=RAe(O),R=l&&f&&x.isValidElement(l)?x.cloneElement(l,{className:fe(P.icon,l.props.className)}):l,D=A=>{!y&&h&&h(A,C),m&&m(A)},M=A=>{v&&!y&&h&&h(A,C),g&&g(A)};return k.jsxs(DAe,{focusRipple:!a,className:fe(P.root,o),ref:n,role:"tab","aria-selected":y,disabled:i,onClick:D,onFocus:M,ownerState:O,tabIndex:y?0:-1,...I,children:[c==="top"||c==="start"?k.jsxs(x.Fragment,{children:[R,f]}):k.jsxs(x.Fragment,{children:[f,R]}),u]})}),kne=x.createContext();function kAe(e){return qe("MuiTable",e)}Ke("MuiTable",["root","stickyHeader"]);const _Ae=e=>{const{classes:t,stickyHeader:n}=e;return Me({root:["root",n&&"stickyHeader"]},kAe,t)},$Ae=ae("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(dt(({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"}}]}))),b6="table",Nc=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTable"}),{className:o,component:i=b6,padding:a="normal",size:s="medium",stickyHeader:l=!1,...c}=r,u={...r,component:i,padding:a,size:s,stickyHeader:l},f=_Ae(u),h=x.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return k.jsx(kne.Provider,{value:h,children:k.jsx($Ae,{as:i,role:i===b6?null:"table",ref:n,className:fe(f.root,o),ownerState:u,...c})})}),pI=x.createContext();function NAe(e){return qe("MuiTableBody",e)}Ke("MuiTableBody",["root"]);const LAe=e=>{const{classes:t}=e;return Me({root:["root"]},NAe,t)},FAe=ae("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),jAe={variant:"body"},x6="tbody",Lc=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTableBody"}),{className:o,component:i=x6,...a}=r,s={...r,component:i},l=LAe(s);return k.jsx(pI.Provider,{value:jAe,children:k.jsx(FAe,{className:fe(l.root,o),as:i,ref:n,role:i===x6?null:"rowgroup",ownerState:s,...a})})});function BAe(e){return qe("MuiTableCell",e)}const zAe=Ke("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),VAe=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${Oe(r)}`,o!=="normal"&&`padding${Oe(o)}`,`size${Oe(i)}`]};return Me(s,BAe,t)},HAe=ae("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Oe(n.size)}`],n.padding!=="normal"&&t[`padding${Oe(n.padding)}`],n.align!=="inherit"&&t[`align${Oe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(dt(({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"?Vu(Nt(e.palette.divider,1),.88):zu(Nt(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",[`&.${zAe.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}}]}))),ke=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:s,scope:l,size:c,sortDirection:u,variant:f,...h}=r,m=x.useContext(kne),g=x.useContext(pI),y=g&&g.variant==="head";let v;a?v=a:v=y?"th":"td";let w=l;v==="td"?w=void 0:!w&&y&&(w="col");const C=f||g&&g.variant,E={...r,align:o,component:v,padding:s||(m&&m.padding?m.padding:"normal"),size:c||(m&&m.size?m.size:"medium"),sortDirection:u,stickyHeader:C==="head"&&m&&m.stickyHeader,variant:C},I=VAe(E);let O=null;return u&&(O=u==="asc"?"ascending":"descending"),k.jsx(HAe,{as:v,ref:n,className:fe(I.root,i),"aria-sort":O,scope:w,ownerState:E,...h})});function UAe(e){return qe("MuiTableContainer",e)}Ke("MuiTableContainer",["root"]);const GAe=e=>{const{classes:t}=e;return Me({root:["root"]},UAe,t)},qAe=ae("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Fc=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTableContainer"}),{className:o,component:i="div",...a}=r,s={...r,component:i},l=GAe(s);return k.jsx(qAe,{ref:n,as:i,className:fe(l.root,o),ownerState:s,...a})});function WAe(e){return qe("MuiTableHead",e)}Ke("MuiTableHead",["root"]);const KAe=e=>{const{classes:t}=e;return Me({root:["root"]},WAe,t)},YAe=ae("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),QAe={variant:"head"},S6="thead",Ff=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTableHead"}),{className:o,component:i=S6,...a}=r,s={...r,component:i},l=KAe(s);return k.jsx(pI.Provider,{value:QAe,children:k.jsx(YAe,{as:i,className:fe(l.root,o),ref:n,role:i===S6?null:"rowgroup",ownerState:s,...a})})});function XAe(e){return qe("MuiToolbar",e)}Ke("MuiToolbar",["root","gutters","regular","dense"]);const JAe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Me({root:["root",!n&&"gutters",r]},XAe,t)},ZAe=ae("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(dt(({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}]}))),_ne=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular",...l}=r,c={...r,component:i,disableGutters:a,variant:s},u=JAe(c);return k.jsx(ZAe,{as:i,className:fe(u.root,o),ref:n,ownerState:c,...l})}),$ne=Ot(k.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),Nne=Ot(k.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"})),eMe=x.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,disabled:i=!1,getItemAriaLabel:a,nextIconButtonProps:s,onPageChange:l,page:c,rowsPerPage:u,showFirstButton:f,showLastButton:h,slots:m={},slotProps:g={},...y}=t,v=vr(),w=q=>{l(q,0)},C=q=>{l(q,c-1)},E=q=>{l(q,c+1)},I=q=>{l(q,Math.max(0,Math.ceil(o/u)-1))},O=m.firstButton??pn,P=m.lastButton??pn,R=m.nextButton??pn,D=m.previousButton??pn,M=m.firstButtonIcon??Ane,A=m.lastButtonIcon??Mne,_=m.nextButtonIcon??Nne,N=m.previousButtonIcon??$ne,B=v?P:O,H=v?R:D,j=v?D:R,L=v?O:P,V=v?g.lastButton:g.firstButton,W=v?g.nextButton:g.previousButton,K=v?g.previousButton:g.nextButton,G=v?g.firstButton:g.lastButton;return k.jsxs("div",{ref:n,...y,children:[f&&k.jsx(B,{onClick:w,disabled:i||c===0,"aria-label":a("first",c),title:a("first",c),...V,children:v?k.jsx(A,{...g.lastButtonIcon}):k.jsx(M,{...g.firstButtonIcon})}),k.jsx(H,{onClick:C,disabled:i||c===0,color:"inherit","aria-label":a("previous",c),title:a("previous",c),...W??r,children:v?k.jsx(_,{...g.nextButtonIcon}):k.jsx(N,{...g.previousButtonIcon})}),k.jsx(j,{onClick:E,disabled:i||(o!==-1?c>=Math.ceil(o/u)-1:!1),color:"inherit","aria-label":a("next",c),title:a("next",c),...K??s,children:v?k.jsx(N,{...g.previousButtonIcon}):k.jsx(_,{...g.nextButtonIcon})}),h&&k.jsx(L,{onClick:I,disabled:i||c>=Math.ceil(o/u)-1,"aria-label":a("last",c),title:a("last",c),...G,children:v?k.jsx(M,{...g.firstButtonIcon}):k.jsx(A,{...g.lastButtonIcon})})]})});function tMe(e){return qe("MuiTablePagination",e)}const th=Ke("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var w6;const nMe=ae(ke,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(dt(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),rMe=ae(_ne,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${th.actions}`]:t.actions,...t.toolbar})})(dt(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${th.actions}`]:{flexShrink:0,marginLeft:20}}))),oMe=ae("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),iMe=ae("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(dt(({theme:e})=>({...e.typography.body2,flexShrink:0}))),aMe=ae(Lf,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${th.selectIcon}`]:t.selectIcon,[`& .${th.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${th.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),sMe=ae(Jt,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),lMe=ae("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(dt(({theme:e})=>({...e.typography.body2,flexShrink:0})));function cMe({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function uMe(e){return`Go to ${e} page`}const dMe=e=>{const{classes:t}=e;return Me({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},tMe,t)},Lne=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=eMe,backIconButtonProps:i,colSpan:a,component:s=ke,count:l,disabled:c=!1,getItemAriaLabel:u=uMe,labelDisplayedRows:f=cMe,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:m,onPageChange:g,onRowsPerPageChange:y,page:v,rowsPerPage:w,rowsPerPageOptions:C=[10,25,50,100],SelectProps:E={},showFirstButton:I=!1,showLastButton:O=!1,slotProps:P={},slots:R={},...D}=r,M=r,A=dMe(M),_=(P==null?void 0:P.select)??E,N=_.native?"option":sMe;let B;(s===ke||s==="td")&&(B=a||1e3);const H=bn(_.id),j=bn(_.labelId),L=()=>l===-1?(v+1)*w:w===-1?l:Math.min(l,(v+1)*w),V={slots:R,slotProps:P},[W,K]=wt("root",{ref:n,className:A.root,elementType:nMe,externalForwardedProps:{...V,component:s,...D},ownerState:M,additionalProps:{colSpan:B}}),[G,q]=wt("toolbar",{className:A.toolbar,elementType:rMe,externalForwardedProps:V,ownerState:M}),[Y,Z]=wt("spacer",{className:A.spacer,elementType:oMe,externalForwardedProps:V,ownerState:M}),[ie,se]=wt("selectLabel",{className:A.selectLabel,elementType:iMe,externalForwardedProps:V,ownerState:M,additionalProps:{id:j}}),[ce,ye]=wt("select",{className:A.select,elementType:aMe,externalForwardedProps:V,ownerState:M}),[Se,ne]=wt("menuItem",{className:A.menuItem,elementType:N,externalForwardedProps:V,ownerState:M}),[le,de]=wt("displayedRows",{className:A.displayedRows,elementType:lMe,externalForwardedProps:V,ownerState:M});return k.jsx(W,{...K,children:k.jsxs(G,{...q,children:[k.jsx(Y,{...Z}),C.length>1&&k.jsx(ie,{...se,children:h}),C.length>1&&k.jsx(ce,{variant:"standard",...!_.variant&&{input:w6||(w6=k.jsx(iw,{}))},value:w,onChange:y,id:H,labelId:j,..._,classes:{..._.classes,root:fe(A.input,A.selectRoot,(_.classes||{}).root),select:fe(A.select,(_.classes||{}).select),icon:fe(A.selectIcon,(_.classes||{}).icon)},disabled:c,...ye,children:C.map(oe=>x.createElement(Se,{...ne,key:oe.label?oe.label:oe,value:oe.value?oe.value:oe},oe.label?oe.label:oe))}),k.jsx(le,{...de,children:f({from:l===0?0:v*w+1,to:L(),count:l===-1?-1:l,page:v})}),k.jsx(o,{className:A.actions,backIconButtonProps:i,count:l,nextIconButtonProps:m,onPageChange:g,page:v,rowsPerPage:w,showFirstButton:I,showLastButton:O,slotProps:P.actions,slots:R.actions,getItemAriaLabel:u,disabled:c})]})})});function fMe(e){return qe("MuiTableRow",e)}const C6=Ke("MuiTableRow",["root","selected","hover","head","footer"]),pMe=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return Me({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},fMe,t)},hMe=ae("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(dt(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${C6.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${C6.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Nt(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}))`:Nt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),E6="tr",ln=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTableRow"}),{className:o,component:i=E6,hover:a=!1,selected:s=!1,...l}=r,c=x.useContext(pI),u={...r,component:i,hover:a,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"},f=pMe(u);return k.jsx(hMe,{as:i,ref:n,className:fe(f.root,o),role:i===E6?null:"row",ownerState:u,...l})});function mMe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function gMe(e,t,n,r={},o=()=>{}){const{ease:i=mMe,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},f=h=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=h);const m=Math.min(1,(h-s)/a);if(t[e]=i(m)*(n-l)+l,m>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const yMe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function vMe(e){const{onChange:t,...n}=e,r=x.useRef(),o=x.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return In(()=>{const a=$h(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),s=ns(o.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),x.useEffect(()=>{i(),t(r.current)},[t]),k.jsx("div",{style:yMe,...n,ref:o})}function bMe(e){return qe("MuiTabScrollButton",e)}const xMe=Ke("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),SMe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Me({root:["root",n,r&&"disabled"]},bMe,t)},wMe=ae(la,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${xMe.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),CMe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTabScrollButton"}),{className:o,slots:i={},slotProps:a={},direction:s,orientation:l,disabled:c,...u}=r,f=vr(),h={isRtl:f,...r},m=SMe(h),g=i.StartScrollButtonIcon??$ne,y=i.EndScrollButtonIcon??Nne,v=Dn({elementType:g,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),w=Dn({elementType:y,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return k.jsx(wMe,{component:"div",className:fe(m.root,o),ref:n,role:null,ownerState:h,tabIndex:null,...u,style:{...u.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:s==="left"?k.jsx(g,{...v}):k.jsx(y,{...w})})});function EMe(e){return qe("MuiTabs",e)}const mE=Ke("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),T6=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,O6=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,O1=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},TMe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Me({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},EMe,l)},OMe=ae("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${mE.scrollButtons}`]:t.scrollButtons},{[`& .${mE.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(dt(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${mE.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),IMe=ae("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),PMe=ae("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),AMe=ae("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(dt(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),MMe=ae(vMe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),I6={},Fne=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTabs"}),o=Lr(),i=vr(),{"aria-label":a,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:f,component:h="div",allowScrollButtonsMobile:m=!1,indicatorColor:g="primary",onChange:y,orientation:v="horizontal",ScrollButtonComponent:w,scrollButtons:C="auto",selectionFollowsFocus:E,slots:I={},slotProps:O={},TabIndicatorProps:P={},TabScrollButtonProps:R={},textColor:D="primary",value:M,variant:A="standard",visibleScrollbar:_=!1,...N}=r,B=A==="scrollable",H=v==="vertical",j=H?"scrollTop":"scrollLeft",L=H?"top":"left",V=H?"bottom":"right",W=H?"clientHeight":"clientWidth",K=H?"height":"width",G={...r,component:h,allowScrollButtonsMobile:m,indicatorColor:g,orientation:v,vertical:H,scrollButtons:C,textColor:D,variant:A,visibleScrollbar:_,fixed:!B,hideScrollbar:B&&!_,scrollableX:B&&!H,scrollableY:B&&H,centered:c&&!B,scrollButtonsHideMobile:!m},q=TMe(G),Y=Dn({elementType:I.StartScrollButtonIcon,externalSlotProps:O.startScrollButtonIcon,ownerState:G}),Z=Dn({elementType:I.EndScrollButtonIcon,externalSlotProps:O.endScrollButtonIcon,ownerState:G}),[ie,se]=x.useState(!1),[ce,ye]=x.useState(I6),[Se,ne]=x.useState(!1),[le,de]=x.useState(!1),[oe,ue]=x.useState(!1),[pe,Ee]=x.useState({overflow:"hidden",scrollbarWidth:0}),xe=new Map,Re=x.useRef(null),he=x.useRef(null),Pe={slots:I,slotProps:{indicator:P,scrollButton:R,...O}},ve=()=>{const gt=Re.current;let kt;if(gt){const Xt=gt.getBoundingClientRect();kt={clientWidth:gt.clientWidth,scrollLeft:gt.scrollLeft,scrollTop:gt.scrollTop,scrollWidth:gt.scrollWidth,top:Xt.top,bottom:Xt.bottom,left:Xt.left,right:Xt.right}}let Ut;if(gt&&M!==!1){const Xt=he.current.children;if(Xt.length>0){const Vn=Xt[xe.get(M)];Ut=Vn?Vn.getBoundingClientRect():null}}return{tabsMeta:kt,tabMeta:Ut}},Ie=Je(()=>{const{tabsMeta:gt,tabMeta:kt}=ve();let Ut=0,Xt;H?(Xt="top",kt&>&&(Ut=kt.top-gt.top+gt.scrollTop)):(Xt=i?"right":"left",kt&>&&(Ut=(i?-1:1)*(kt[Xt]-gt[Xt]+gt.scrollLeft)));const Vn={[Xt]:Ut,[K]:kt?kt[K]:0};if(typeof ce[Xt]!="number"||typeof ce[K]!="number")ye(Vn);else{const Xo=Math.abs(ce[Xt]-Vn[Xt]),Da=Math.abs(ce[K]-Vn[K]);(Xo>=1||Da>=1)&&ye(Vn)}}),te=(gt,{animation:kt=!0}={})=>{kt?gMe(j,Re.current,gt,{duration:o.transitions.duration.standard}):Re.current[j]=gt},Te=gt=>{let kt=Re.current[j];H?kt+=gt:kt+=gt*(i?-1:1),te(kt)},De=()=>{const gt=Re.current[W];let kt=0;const Ut=Array.from(he.current.children);for(let Xt=0;Xtgt){Xt===0&&(kt=gt);break}kt+=Vn[W]}return kt},Ve=()=>{Te(-1*De())},We=()=>{Te(De())},[rt,{onChange:ut,...Be}]=wt("scrollbar",{className:fe(q.scrollableX,q.hideScrollbar),elementType:MMe,shouldForwardComponentProp:!0,externalForwardedProps:Pe,ownerState:G}),et=x.useCallback(gt=>{ut==null||ut(gt),Ee({overflow:null,scrollbarWidth:gt})},[ut]),[Le,It]=wt("scrollButtons",{className:fe(q.scrollButtons,R.className),elementType:CMe,externalForwardedProps:Pe,ownerState:G,additionalProps:{orientation:v,slots:{StartScrollButtonIcon:I.startScrollButtonIcon||I.StartScrollButtonIcon,EndScrollButtonIcon:I.endScrollButtonIcon||I.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:Y,endScrollButtonIcon:Z}}}),Lt=()=>{const gt={};gt.scrollbarSizeListener=B?k.jsx(rt,{...Be,onChange:et}):null;const Ut=B&&(C==="auto"&&(Se||le)||C===!0);return gt.scrollButtonStart=Ut?k.jsx(Le,{direction:i?"right":"left",onClick:Ve,disabled:!Se,...It}):null,gt.scrollButtonEnd=Ut?k.jsx(Le,{direction:i?"left":"right",onClick:We,disabled:!le,...It}):null,gt},nt=Je(gt=>{const{tabsMeta:kt,tabMeta:Ut}=ve();if(!(!Ut||!kt)){if(Ut[L]kt[V]){const Xt=kt[j]+(Ut[V]-kt[V]);te(Xt,{animation:gt})}}}),lt=Je(()=>{B&&C!==!1&&ue(!oe)});x.useEffect(()=>{const gt=$h(()=>{Re.current&&Ie()});let kt;const Ut=Xo=>{Xo.forEach(Da=>{Da.removedNodes.forEach(ps=>{kt==null||kt.unobserve(ps)}),Da.addedNodes.forEach(ps=>{kt==null||kt.observe(ps)})}),gt(),lt()},Xt=ns(Re.current);Xt.addEventListener("resize",gt);let Vn;return typeof ResizeObserver<"u"&&(kt=new ResizeObserver(gt),Array.from(he.current.children).forEach(Xo=>{kt.observe(Xo)})),typeof MutationObserver<"u"&&(Vn=new MutationObserver(Ut),Vn.observe(he.current,{childList:!0})),()=>{gt.clear(),Xt.removeEventListener("resize",gt),Vn==null||Vn.disconnect(),kt==null||kt.disconnect()}},[Ie,lt]),x.useEffect(()=>{const gt=Array.from(he.current.children),kt=gt.length;if(typeof IntersectionObserver<"u"&&kt>0&&B&&C!==!1){const Ut=gt[0],Xt=gt[kt-1],Vn={root:Re.current,threshold:.99},Xo=Ii=>{ne(!Ii[0].isIntersecting)},Da=new IntersectionObserver(Xo,Vn);Da.observe(Ut);const ps=Ii=>{de(!Ii[0].isIntersecting)},ud=new IntersectionObserver(ps,Vn);return ud.observe(Xt),()=>{Da.disconnect(),ud.disconnect()}}},[B,C,oe,u==null?void 0:u.length]),x.useEffect(()=>{se(!0)},[]),x.useEffect(()=>{Ie()}),x.useEffect(()=>{nt(I6!==ce)},[nt,ce]),x.useImperativeHandle(l,()=>({updateIndicator:Ie,updateScrollButtons:lt}),[Ie,lt]);const[vt,bt]=wt("indicator",{className:fe(q.indicator,P.className),elementType:AMe,externalForwardedProps:Pe,ownerState:G,additionalProps:{style:ce}}),vn=k.jsx(vt,{...bt});let kn=0;const Rr=x.Children.map(u,gt=>{if(!x.isValidElement(gt))return null;const kt=gt.props.value===void 0?kn:gt.props.value;xe.set(kt,kn);const Ut=kt===M;return kn+=1,x.cloneElement(gt,{fullWidth:A==="fullWidth",indicator:Ut&&!ie&&vn,selected:Ut,selectionFollowsFocus:E,onChange:y,textColor:D,value:kt,...kn===1&&M===!1&&!gt.props.tabIndex?{tabIndex:0}:{}})}),nr=gt=>{if(gt.altKey||gt.shiftKey||gt.ctrlKey||gt.metaKey)return;const kt=he.current,Ut=Mr(kt).activeElement;if(Ut.getAttribute("role")!=="tab")return;let Vn=v==="horizontal"?"ArrowLeft":"ArrowUp",Xo=v==="horizontal"?"ArrowRight":"ArrowDown";switch(v==="horizontal"&&i&&(Vn="ArrowRight",Xo="ArrowLeft"),gt.key){case Vn:gt.preventDefault(),O1(kt,Ut,O6);break;case Xo:gt.preventDefault(),O1(kt,Ut,T6);break;case"Home":gt.preventDefault(),O1(kt,null,T6);break;case"End":gt.preventDefault(),O1(kt,null,O6);break}},Bn=Lt(),[yo,To]=wt("root",{ref:n,className:fe(q.root,f),elementType:OMe,externalForwardedProps:{...Pe,...N,component:h},ownerState:G}),[oo,Oi]=wt("scroller",{ref:Re,className:q.scroller,elementType:IMe,externalForwardedProps:Pe,ownerState:G,additionalProps:{style:{overflow:pe.overflow,[H?`margin${i?"Left":"Right"}`:"marginBottom"]:_?void 0:-pe.scrollbarWidth}}}),[Kt,un]=wt("list",{ref:he,className:fe(q.list,q.flexContainer),elementType:PMe,externalForwardedProps:Pe,ownerState:G,getSlotProps:gt=>({...gt,onKeyDown:kt=>{var Ut;nr(kt),(Ut=gt.onKeyDown)==null||Ut.call(gt,kt)}})});return k.jsxs(yo,{...To,children:[Bn.scrollButtonStart,Bn.scrollbarSizeListener,k.jsxs(oo,{...Oi,children:[k.jsx(Kt,{"aria-label":a,"aria-labelledby":s,"aria-orientation":v==="vertical"?"vertical":null,role:"tablist",...un,children:Rr}),ie&&vn]}),Bn.scrollButtonEnd]})});function RMe(e){return qe("MuiTextField",e)}Ke("MuiTextField",["root"]);const DMe={standard:uB,filled:cB,outlined:hB},kMe=e=>{const{classes:t}=e;return Me({root:["root"]},RMe,t)},_Me=ae(Fh,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),dn=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:h,fullWidth:m=!1,helperText:g,id:y,InputLabelProps:v,inputProps:w,InputProps:C,inputRef:E,label:I,maxRows:O,minRows:P,multiline:R=!1,name:D,onBlur:M,onChange:A,onFocus:_,placeholder:N,required:B=!1,rows:H,select:j=!1,SelectProps:L,slots:V={},slotProps:W={},type:K,value:G,variant:q="outlined",...Y}=r,Z={...r,autoFocus:i,color:l,disabled:u,error:f,fullWidth:m,multiline:R,required:B,select:j,variant:q},ie=kMe(Z),se=bn(y),ce=g&&se?`${se}-helper-text`:void 0,ye=I&&se?`${se}-label`:void 0,Se=DMe[q],ne={slots:V,slotProps:{input:C,inputLabel:v,htmlInput:w,formHelperText:h,select:L,...W}},le={},de=ne.slotProps.inputLabel;q==="outlined"&&(de&&typeof de.shrink<"u"&&(le.notched=de.shrink),le.label=I),j&&((!L||!L.native)&&(le.id=void 0),le["aria-describedby"]=void 0);const[oe,ue]=wt("root",{elementType:_Me,shouldForwardComponentProp:!0,externalForwardedProps:{...ne,...Y},ownerState:Z,className:fe(ie.root,s),ref:n,additionalProps:{disabled:u,error:f,fullWidth:m,required:B,color:l,variant:q}}),[pe,Ee]=wt("input",{elementType:Se,externalForwardedProps:ne,additionalProps:le,ownerState:Z}),[xe,Re]=wt("inputLabel",{elementType:jh,externalForwardedProps:ne,ownerState:Z}),[he,Pe]=wt("htmlInput",{elementType:"input",externalForwardedProps:ne,ownerState:Z}),[ve,Ie]=wt("formHelperText",{elementType:aw,externalForwardedProps:ne,ownerState:Z}),[te,Te]=wt("select",{elementType:Lf,externalForwardedProps:ne,ownerState:Z}),De=k.jsx(pe,{"aria-describedby":ce,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:m,multiline:R,name:D,rows:H,maxRows:O,minRows:P,type:K,value:G,id:se,inputRef:E,onBlur:M,onChange:A,onFocus:_,placeholder:N,inputProps:Pe,slots:{input:V.htmlInput?he:void 0},...Ee});return k.jsxs(oe,{...ue,children:[I!=null&&I!==""&&k.jsx(xe,{htmlFor:se,id:ye,...Re,children:I}),j?k.jsx(te,{"aria-describedby":ce,id:se,labelId:ye,value:G,input:De,...Te,children:a}):De,g&&k.jsx(ve,{id:ce,...Ie,children:g})]})});function $Me(e){return qe("MuiToggleButton",e)}const Lp=Ke("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),jne=x.createContext({}),Bne=x.createContext(void 0);function NMe(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.includes(e):e===t}const LMe=e=>{const{classes:t,fullWidth:n,selected:r,disabled:o,size:i,color:a}=e,s={root:["root",r&&"selected",o&&"disabled",n&&"fullWidth",`size${Oe(i)}`,a]};return Me(s,$Me,t)},FMe=ae(la,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${Oe(n.size)}`]]}})(dt(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${Lp.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${Lp.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:Nt(e.palette.text.primary,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Nt(e.palette.text.primary,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:Nt(e.palette.text.primary,e.palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(er()).map(([t])=>({props:{color:t},style:{[`&.${Lp.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Nt(e.palette[t].main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Nt(e.palette[t].main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Nt(e.palette[t].main,e.palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),Zb=x.forwardRef(function(t,n){const{value:r,...o}=x.useContext(jne),i=x.useContext(Bne),a=ch({...o,selected:NMe(t.value,r)},t),s=pt({props:a,name:"MuiToggleButton"}),{children:l,className:c,color:u="standard",disabled:f=!1,disableFocusRipple:h=!1,fullWidth:m=!1,onChange:g,onClick:y,selected:v,size:w="medium",value:C,...E}=s,I={...s,color:u,disabled:f,disableFocusRipple:h,fullWidth:m,size:w},O=LMe(I),P=D=>{y&&(y(D,C),D.defaultPrevented)||g&&g(D,C)},R=i||"";return k.jsx(FMe,{className:fe(o.className,O.root,c,R),disabled:f,focusRipple:!h,ref:n,onClick:P,onChange:g,value:C,ownerState:I,"aria-pressed":v,...E,children:l})});function jMe(e){return qe("MuiToggleButtonGroup",e)}const jr=Ke("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),BMe=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:o}=e,i={root:["root",n,r&&"fullWidth"],grouped:["grouped",`grouped${Oe(n)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Me(i,jMe,t)},zMe=ae("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${jr.grouped}`]:t.grouped},{[`& .${jr.grouped}`]:t[`grouped${Oe(n.orientation)}`]},{[`& .${jr.firstButton}`]:t.firstButton},{[`& .${jr.lastButton}`]:t.lastButton},{[`& .${jr.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(dt(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${jr.grouped}`]:{[`&.${jr.selected} + .${jr.grouped}.${jr.selected}`]:{borderTop:0,marginTop:0}},[`& .${jr.firstButton},& .${jr.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${jr.lastButton},& .${jr.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${jr.lastButton}.${Lp.disabled},& .${jr.middleButton}.${Lp.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${jr.grouped}`]:{[`&.${jr.selected} + .${jr.grouped}.${jr.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${jr.firstButton},& .${jr.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${jr.lastButton},& .${jr.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${jr.lastButton}.${Lp.disabled},& .${jr.middleButton}.${Lp.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),VMe=x.forwardRef(function(t,n){const r=pt({props:t,name:"MuiToggleButtonGroup"}),{children:o,className:i,color:a="standard",disabled:s=!1,exclusive:l=!1,fullWidth:c=!1,onChange:u,orientation:f="horizontal",size:h="medium",value:m,...g}=r,y={...r,disabled:s,fullWidth:c,orientation:f,size:h},v=BMe(y),w=x.useCallback((R,D)=>{if(!u)return;const M=m&&m.indexOf(D);let A;m&&M>=0?(A=m.slice(),A.splice(M,1)):A=m?m.concat(D):[D],u(R,A)},[u,m]),C=x.useCallback((R,D)=>{u&&u(R,m===D?null:D)},[u,m]),E=x.useMemo(()=>({className:v.grouped,onChange:l?C:w,value:m,size:h,fullWidth:c,color:a,disabled:s}),[v.grouped,l,C,w,m,h,c,a,s]),I=Ste(o),O=I.length,P=R=>{const D=R===0,M=R===O-1;return D&&M?"":D?v.firstButton:M?v.lastButton:v.middleButton};return k.jsx(zMe,{role:"group",className:fe(v.root,i),ref:n,ownerState:y,...g,children:k.jsx(jne.Provider,{value:E,children:I.map((R,D)=>k.jsx(Bne.Provider,{value:P(D),children:R},D))})})}),Tf=yte({themeId:qs}),HMe=(e,t,n,r)=>{var i,a,s,l;const o=[n,{code:t,...r||{}}];if((a=(i=e==null?void 0:e.services)==null?void 0:i.logger)!=null&&a.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);nh(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),(l=(s=e==null?void 0:e.services)==null?void 0:s.logger)!=null&&l.warn?e.services.logger.warn(...o):console!=null&&console.warn&&console.warn(...o)},P6={},kN=(e,t,n,r)=>{nh(n)&&P6[n]||(nh(n)&&(P6[n]=new Date),HMe(e,t,n,r))},zne=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},_N=(e,t,n)=>{e.loadNamespaces(t,zne(e,n))},A6=(e,t,n,r)=>{if(nh(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return _N(e,n,r);n.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,zne(e,r))},UMe=(e,t,n={})=>!t.languages||!t.languages.length?(kN(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,o)=>{var i;if(((i=n.bindI18n)==null?void 0:i.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!o(r.isLanguageChangingTo,e))return!1}}),nh=e=>typeof e=="string",GMe=e=>typeof e=="object"&&e!==null,qMe=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,WMe={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},KMe=e=>WMe[e],YMe=e=>e.replace(qMe,KMe);let $N={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:YMe};const QMe=(e={})=>{$N={...$N,...e}},XMe=()=>$N;let Vne;const JMe=e=>{Vne=e},ZMe=()=>Vne,eRe={type:"3rdParty",init(e){QMe(e.options.react),JMe(e)}},tRe=x.createContext();class nRe{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const rRe=(e,t)=>{const n=x.useRef();return x.useEffect(()=>{n.current=e},[e,t]),n.current},Hne=(e,t,n,r)=>e.getFixedT(t,n,r),oRe=(e,t,n,r)=>x.useCallback(Hne(e,t,n,r),[e,t,n,r]),je=(e,t={})=>{var I,O,P,R;const{i18n:n}=t,{i18n:r,defaultNS:o}=x.useContext(tRe)||{},i=n||r||ZMe();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new nRe),!i){kN(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const D=(A,_)=>nh(_)?_:GMe(_)&&nh(_.defaultValue)?_.defaultValue:Array.isArray(A)?A[A.length-1]:A,M=[D,{},!1];return M.t=D,M.i18n={},M.ready=!1,M}(I=i.options.react)!=null&&I.wait&&kN(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...XMe(),...i.options.react,...t},{useSuspense:s,keyPrefix:l}=a;let c=o||((O=i.options)==null?void 0:O.defaultNS);c=nh(c)?[c]:c||["translation"],(R=(P=i.reportNamespaces).addUsedNamespaces)==null||R.call(P,c);const u=(i.isInitialized||i.initializedStoreOnce)&&c.every(D=>UMe(D,i,a)),f=oRe(i,t.lng||null,a.nsMode==="fallback"?c:c[0],l),h=()=>f,m=()=>Hne(i,t.lng||null,a.nsMode==="fallback"?c:c[0],l),[g,y]=x.useState(h);let v=c.join();t.lng&&(v=`${t.lng}${v}`);const w=rRe(v),C=x.useRef(!0);x.useEffect(()=>{const{bindI18n:D,bindI18nStore:M}=a;C.current=!0,!u&&!s&&(t.lng?A6(i,t.lng,c,()=>{C.current&&y(m)}):_N(i,c,()=>{C.current&&y(m)})),u&&w&&w!==v&&C.current&&y(m);const A=()=>{C.current&&y(m)};return D&&(i==null||i.on(D,A)),M&&(i==null||i.store.on(M,A)),()=>{C.current=!1,i&&(D==null||D.split(" ").forEach(_=>i.off(_,A))),M&&i&&M.split(" ").forEach(_=>i.store.off(_,A))}},[i,v]),x.useEffect(()=>{C.current&&u&&y(h)},[i,l,u]);const E=[g,i,u];if(E.t=g,E.i18n=i,E.ready=u,u||!u&&!s)return E;throw new Promise(D=>{t.lng?A6(i,t.lng,c,()=>D()):_N(i,c,()=>D())})},Qa=()=>{const[e]=je();return S(Zt,{sx:{textAlign:"center"},children:e("loading")})},Er=()=>S(Zt,{sx:{height:200,alignItems:"center",mt:2},component:Ft,direction:"column",justifyContent:"center",children:S(nw,{})}),gh=()=>S(nw,{size:20}),J0=Ot(k.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),Du=Ot(k.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),lw=Ot(k.jsx("path",{d:"M9 4v1.38c-.83-.33-1.72-.5-2.61-.5-1.79 0-3.58.68-4.95 2.05l3.33 3.33h1.11v1.11c.86.86 1.98 1.31 3.11 1.36V15H6v3c0 1.1.9 2 2 2h10c1.66 0 3-1.34 3-3V4zm-1.11 6.41V8.26H5.61L4.57 7.22a5.07 5.07 0 0 1 1.82-.34c1.34 0 2.59.52 3.54 1.46l1.41 1.41-.2.2c-.51.51-1.19.8-1.92.8-.47 0-.93-.12-1.33-.34M19 17c0 .55-.45 1-1 1s-1-.45-1-1v-2h-6v-2.59c.57-.23 1.1-.57 1.56-1.03l.2-.2L15.59 14H17v-1.41l-6-5.97V6h8z"})),Ju=Ot(k.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"})),cw=Ot(k.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Bi=({title:e,subtitle:t,isOpen:n,closeFn:r,children:o})=>S(lv,{open:n,onClose:r,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:Q(ho,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:2,minWidth:"400px"},children:[S(Jl,{title:e,subheader:t,action:S(cw,{onClick:r})}),S(Fi,{children:o}),S(ll,{})]})}),Bh=e=>{const[t]=je(),n=e.height?e.height:"50vh";return S(Tt,{children:Q(Zt,{sx:{height:n,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center"},children:[S(at,{variant:"h6",mr:3,children:t("nothingHereYet")}),S(at,{mr:3,children:t("nothingHereYetAction")})]})})},gB=e=>{const[t]=je(),[n,r]=J.useState(!1),o=()=>r(!0),i=()=>r(!1),a=e.link!==void 0?S(ct,{size:"small",variant:"contained",href:e.link,children:t("add")}):S(ct,{size:"small",variant:"contained",onClick:o,children:t("add")});return Q(Tt,{children:[Q(ho,{children:[S(Jl,{title:e.title,subheader:".",sx:{paddingBottom:0}}),S(Fi,{sx:{paddingTop:0,height:"500px"},children:S(Bh,{})}),S(ll,{children:a})]}),S(Bi,{title:t("add"),isOpen:n,closeFn:i,children:e.modalContent})]})};function Une(e,t){return function(){return e.apply(t,arguments)}}const{toString:iRe}=Object.prototype,{getPrototypeOf:yB}=Object,{iterator:hI,toStringTag:Gne}=Symbol,mI=(e=>t=>{const n=iRe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Zl=e=>(e=e.toLowerCase(),t=>mI(t)===e),gI=e=>t=>typeof t===e,{isArray:cv}=Array,Rx=gI("undefined");function aRe(e){return e!==null&&!Rx(e)&&e.constructor!==null&&!Rx(e.constructor)&&Oa(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const qne=Zl("ArrayBuffer");function sRe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&qne(e.buffer),t}const lRe=gI("string"),Oa=gI("function"),Wne=gI("number"),yI=e=>e!==null&&typeof e=="object",cRe=e=>e===!0||e===!1,gE=e=>{if(mI(e)!=="object")return!1;const t=yB(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Gne in e)&&!(hI in e)},uRe=Zl("Date"),dRe=Zl("File"),fRe=Zl("Blob"),pRe=Zl("FileList"),hRe=e=>yI(e)&&Oa(e.pipe),mRe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Oa(e.append)&&((t=mI(e))==="formdata"||t==="object"&&Oa(e.toString)&&e.toString()==="[object FormData]"))},gRe=Zl("URLSearchParams"),[yRe,vRe,bRe,xRe]=["ReadableStream","Request","Response","Headers"].map(Zl),SRe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function uw(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),cv(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Fp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Yne=e=>!Rx(e)&&e!==Fp;function NN(){const{caseless:e}=Yne(this)&&this||{},t={},n=(r,o)=>{const i=e&&Kne(t,o)||o;gE(t[i])&&gE(r)?t[i]=NN(t[i],r):gE(r)?t[i]=NN({},r):cv(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(uw(t,(o,i)=>{n&&Oa(o)?e[i]=Une(o,n):e[i]=o},{allOwnKeys:r}),e),CRe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ERe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},TRe=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&yB(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ORe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},IRe=e=>{if(!e)return null;if(cv(e))return e;let t=e.length;if(!Wne(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},PRe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&yB(Uint8Array)),ARe=(e,t)=>{const r=(e&&e[hI]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},MRe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},RRe=Zl("HTMLFormElement"),DRe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),M6=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kRe=Zl("RegExp"),Qne=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};uw(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},_Re=e=>{Qne(e,(t,n)=>{if(Oa(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Oa(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},$Re=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return cv(e)?r(e):r(String(e).split(t)),n},NRe=()=>{},LRe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function FRe(e){return!!(e&&Oa(e.append)&&e[Gne]==="FormData"&&e[hI])}const jRe=e=>{const t=new Array(10),n=(r,o)=>{if(yI(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=cv(r)?[]:{};return uw(r,(a,s)=>{const l=n(a,o+1);!Rx(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},BRe=Zl("AsyncFunction"),zRe=e=>e&&(yI(e)||Oa(e))&&Oa(e.then)&&Oa(e.catch),Xne=((e,t)=>e?setImmediate:t?((n,r)=>(Fp.addEventListener("message",({source:o,data:i})=>{o===Fp&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Fp.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Oa(Fp.postMessage)),VRe=typeof queueMicrotask<"u"?queueMicrotask.bind(Fp):typeof process<"u"&&process.nextTick||Xne,HRe=e=>e!=null&&Oa(e[hI]),Ue={isArray:cv,isArrayBuffer:qne,isBuffer:aRe,isFormData:mRe,isArrayBufferView:sRe,isString:lRe,isNumber:Wne,isBoolean:cRe,isObject:yI,isPlainObject:gE,isReadableStream:yRe,isRequest:vRe,isResponse:bRe,isHeaders:xRe,isUndefined:Rx,isDate:uRe,isFile:dRe,isBlob:fRe,isRegExp:kRe,isFunction:Oa,isStream:hRe,isURLSearchParams:gRe,isTypedArray:PRe,isFileList:pRe,forEach:uw,merge:NN,extend:wRe,trim:SRe,stripBOM:CRe,inherits:ERe,toFlatObject:TRe,kindOf:mI,kindOfTest:Zl,endsWith:ORe,toArray:IRe,forEachEntry:ARe,matchAll:MRe,isHTMLForm:RRe,hasOwnProperty:M6,hasOwnProp:M6,reduceDescriptors:Qne,freezeMethods:_Re,toObjectSet:$Re,toCamelCase:DRe,noop:NRe,toFiniteNumber:LRe,findKey:Kne,global:Fp,isContextDefined:Yne,isSpecCompliantForm:FRe,toJSONObject:jRe,isAsyncFn:BRe,isThenable:zRe,setImmediate:Xne,asap:VRe,isIterable:HRe};function Sn(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Ue.inherits(Sn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ue.toJSONObject(this.config),code:this.code,status:this.status}}});const Jne=Sn.prototype,Zne={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Zne[e]={value:e}});Object.defineProperties(Sn,Zne);Object.defineProperty(Jne,"isAxiosError",{value:!0});Sn.from=(e,t,n,r,o,i)=>{const a=Object.create(Jne);return Ue.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Sn.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const URe=null;function LN(e){return Ue.isPlainObject(e)||Ue.isArray(e)}function ere(e){return Ue.endsWith(e,"[]")?e.slice(0,-2):e}function R6(e,t,n){return e?e.concat(t).map(function(o,i){return o=ere(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function GRe(e){return Ue.isArray(e)&&!e.some(LN)}const qRe=Ue.toFlatObject(Ue,{},null,function(t){return/^is[A-Z]/.test(t)});function vI(e,t,n){if(!Ue.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Ue.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,v){return!Ue.isUndefined(v[y])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Ue.isSpecCompliantForm(t);if(!Ue.isFunction(o))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(Ue.isDate(g))return g.toISOString();if(!l&&Ue.isBlob(g))throw new Sn("Blob is not supported. Use a Buffer instead.");return Ue.isArrayBuffer(g)||Ue.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,y,v){let w=g;if(g&&!v&&typeof g=="object"){if(Ue.endsWith(y,"{}"))y=r?y:y.slice(0,-2),g=JSON.stringify(g);else if(Ue.isArray(g)&&GRe(g)||(Ue.isFileList(g)||Ue.endsWith(y,"[]"))&&(w=Ue.toArray(g)))return y=ere(y),w.forEach(function(E,I){!(Ue.isUndefined(E)||E===null)&&t.append(a===!0?R6([y],I,i):a===null?y:y+"[]",c(E))}),!1}return LN(g)?!0:(t.append(R6(v,y,i),c(g)),!1)}const f=[],h=Object.assign(qRe,{defaultVisitor:u,convertValue:c,isVisitable:LN});function m(g,y){if(!Ue.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(g),Ue.forEach(g,function(w,C){(!(Ue.isUndefined(w)||w===null)&&o.call(t,w,Ue.isString(C)?C.trim():C,y,h))===!0&&m(w,y?y.concat(C):[C])}),f.pop()}}if(!Ue.isObject(e))throw new TypeError("data must be an object");return m(e),t}function D6(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function vB(e,t){this._pairs=[],e&&vI(e,this,t)}const tre=vB.prototype;tre.append=function(t,n){this._pairs.push([t,n])};tre.toString=function(t){const n=t?function(r){return t.call(this,r,D6)}:D6;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function WRe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nre(e,t,n){if(!t)return e;const r=n&&n.encode||WRe;Ue.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=Ue.isURLSearchParams(t)?t.toString():new vB(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class k6{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ue.forEach(this.handlers,function(r){r!==null&&t(r)})}}const rre={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},KRe=typeof URLSearchParams<"u"?URLSearchParams:vB,YRe=typeof FormData<"u"?FormData:null,QRe=typeof Blob<"u"?Blob:null,XRe={isBrowser:!0,classes:{URLSearchParams:KRe,FormData:YRe,Blob:QRe},protocols:["http","https","file","blob","url","data"]},bB=typeof window<"u"&&typeof document<"u",FN=typeof navigator=="object"&&navigator||void 0,JRe=bB&&(!FN||["ReactNative","NativeScript","NS"].indexOf(FN.product)<0),ZRe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",eDe=bB&&window.location.href||"http://localhost",tDe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:bB,hasStandardBrowserEnv:JRe,hasStandardBrowserWebWorkerEnv:ZRe,navigator:FN,origin:eDe},Symbol.toStringTag,{value:"Module"})),Ni={...tDe,...XRe};function nDe(e,t){return vI(e,new Ni.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Ni.isNode&&Ue.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function rDe(e){return Ue.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function oDe(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&Ue.isArray(o)?o.length:a,l?(Ue.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!Ue.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Ue.isArray(o[a])&&(o[a]=oDe(o[a])),!s)}if(Ue.isFormData(e)&&Ue.isFunction(e.entries)){const n={};return Ue.forEachEntry(e,(r,o)=>{t(rDe(r),o,n,0)}),n}return null}function iDe(e,t,n){if(Ue.isString(e))try{return(t||JSON.parse)(e),Ue.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const dw={transitional:rre,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Ue.isObject(t);if(i&&Ue.isHTMLForm(t)&&(t=new FormData(t)),Ue.isFormData(t))return o?JSON.stringify(ore(t)):t;if(Ue.isArrayBuffer(t)||Ue.isBuffer(t)||Ue.isStream(t)||Ue.isFile(t)||Ue.isBlob(t)||Ue.isReadableStream(t))return t;if(Ue.isArrayBufferView(t))return t.buffer;if(Ue.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return nDe(t,this.formSerializer).toString();if((s=Ue.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return vI(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),iDe(t)):t}],transformResponse:[function(t){const n=this.transitional||dw.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Ue.isResponse(t)||Ue.isReadableStream(t))return t;if(t&&Ue.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Sn.from(s,Sn.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ni.classes.FormData,Blob:Ni.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ue.forEach(["delete","get","head","post","put","patch"],e=>{dw.headers[e]={}});const aDe=Ue.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),sDe=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&aDe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},_6=Symbol("internals");function e0(e){return e&&String(e).trim().toLowerCase()}function yE(e){return e===!1||e==null?e:Ue.isArray(e)?e.map(yE):String(e)}function lDe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const cDe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function FR(e,t,n,r,o){if(Ue.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Ue.isString(t)){if(Ue.isString(r))return t.indexOf(r)!==-1;if(Ue.isRegExp(r))return r.test(t)}}function uDe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function dDe(e,t){const n=Ue.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}let Ia=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,c){const u=e0(l);if(!u)throw new Error("header name must be a non-empty string");const f=Ue.findKey(o,u);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=yE(s))}const a=(s,l)=>Ue.forEach(s,(c,u)=>i(c,u,l));if(Ue.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Ue.isString(t)&&(t=t.trim())&&!cDe(t))a(sDe(t),n);else if(Ue.isObject(t)&&Ue.isIterable(t)){let s={},l,c;for(const u of t){if(!Ue.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[c=u[0]]=(l=s[c])?Ue.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}a(s,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=e0(t),t){const r=Ue.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return lDe(o);if(Ue.isFunction(n))return n.call(this,o,r);if(Ue.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=e0(t),t){const r=Ue.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||FR(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=e0(a),a){const s=Ue.findKey(r,a);s&&(!n||FR(r,r[s],s,n))&&(delete r[s],o=!0)}}return Ue.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||FR(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Ue.forEach(this,(o,i)=>{const a=Ue.findKey(r,i);if(a){n[a]=yE(o),delete n[i];return}const s=t?uDe(i):String(i).trim();s!==i&&delete n[i],n[s]=yE(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ue.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Ue.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[_6]=this[_6]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=e0(a);r[s]||(dDe(o,a),r[s]=!0)}return Ue.isArray(t)?t.forEach(i):i(t),this}};Ia.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ue.reduceDescriptors(Ia.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ue.freezeMethods(Ia);function jR(e,t){const n=this||dw,r=t||n,o=Ia.from(r.headers);let i=r.data;return Ue.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function ire(e){return!!(e&&e.__CANCEL__)}function uv(e,t,n){Sn.call(this,e??"canceled",Sn.ERR_CANCELED,t,n),this.name="CanceledError"}Ue.inherits(uv,Sn,{__CANCEL__:!0});function are(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Sn("Request failed with status code "+n.status,[Sn.ERR_BAD_REQUEST,Sn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function fDe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function pDe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];a||(a=c),n[o]=l,r[o]=c;let f=i,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-a{n=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?a(c,u):(o=c,i||(i=setTimeout(()=>{i=null,a(o)},r-f)))},()=>o&&a(o)]}const eT=(e,t,n=3)=>{let r=0;const o=pDe(50,250);return hDe(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,c=o(l),u=a<=s;r=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},$6=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},N6=e=>(...t)=>Ue.asap(()=>e(...t)),mDe=Ni.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ni.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ni.origin),Ni.navigator&&/(msie|trident)/i.test(Ni.navigator.userAgent)):()=>!0,gDe=Ni.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Ue.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Ue.isString(r)&&a.push("path="+r),Ue.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function yDe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vDe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function sre(e,t,n){let r=!yDe(t);return e&&(r||n==!1)?vDe(e,t):t}const L6=e=>e instanceof Ia?{...e}:e;function yh(e,t){t=t||{};const n={};function r(c,u,f,h){return Ue.isPlainObject(c)&&Ue.isPlainObject(u)?Ue.merge.call({caseless:h},c,u):Ue.isPlainObject(u)?Ue.merge({},u):Ue.isArray(u)?u.slice():u}function o(c,u,f,h){if(Ue.isUndefined(u)){if(!Ue.isUndefined(c))return r(void 0,c,f,h)}else return r(c,u,f,h)}function i(c,u){if(!Ue.isUndefined(u))return r(void 0,u)}function a(c,u){if(Ue.isUndefined(u)){if(!Ue.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u,f)=>o(L6(c),L6(u),f,!0)};return Ue.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||o,h=f(e[u],t[u],u);Ue.isUndefined(h)&&f!==s||(n[u]=h)}),n}const lre=e=>{const t=yh({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=Ia.from(a),t.url=nre(sre(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Ue.isFormData(n)){if(Ni.hasStandardBrowserEnv||Ni.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Ni.hasStandardBrowserEnv&&(r&&Ue.isFunction(r)&&(r=r(t)),r||r!==!1&&mDe(t.url))){const c=o&&i&&gDe.read(i);c&&a.set(o,c)}return t},bDe=typeof XMLHttpRequest<"u",xDe=bDe&&function(e){return new Promise(function(n,r){const o=lre(e);let i=o.data;const a=Ia.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=o,u,f,h,m,g;function y(){m&&m(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function w(){if(!v)return;const E=Ia.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),O={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:E,config:e,request:v};are(function(R){n(R),y()},function(R){r(R),y()},O),v=null}"onloadend"in v?v.onloadend=w:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(w)},v.onabort=function(){v&&(r(new Sn("Request aborted",Sn.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new Sn("Network Error",Sn.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let I=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const O=o.transitional||rre;o.timeoutErrorMessage&&(I=o.timeoutErrorMessage),r(new Sn(I,O.clarifyTimeoutError?Sn.ETIMEDOUT:Sn.ECONNABORTED,e,v)),v=null},i===void 0&&a.setContentType(null),"setRequestHeader"in v&&Ue.forEach(a.toJSON(),function(I,O){v.setRequestHeader(O,I)}),Ue.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),s&&s!=="json"&&(v.responseType=o.responseType),c&&([h,g]=eT(c,!0),v.addEventListener("progress",h)),l&&v.upload&&([f,m]=eT(l),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",m)),(o.cancelToken||o.signal)&&(u=E=>{v&&(r(!E||E.type?new uv(null,e,v):E),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const C=fDe(o.url);if(C&&Ni.protocols.indexOf(C)===-1){r(new Sn("Unsupported protocol "+C+":",Sn.ERR_BAD_REQUEST,e));return}v.send(i||null)})},SDe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof Sn?u:new uv(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new Sn(`timeout ${t} of ms exceeded`,Sn.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>Ue.asap(s),l}},wDe=function*(e,t){let n=e.byteLength;if(n{const o=CDe(e,t);let i=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){s(),l.close();return}let f=u.byteLength;if(n){let h=i+=f;n(h)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},bI=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",cre=bI&&typeof ReadableStream=="function",TDe=bI&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ure=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ODe=cre&&ure(()=>{let e=!1;const t=new Request(Ni.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),j6=64*1024,jN=cre&&ure(()=>Ue.isReadableStream(new Response("").body)),tT={stream:jN&&(e=>e.body)};bI&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!tT[t]&&(tT[t]=Ue.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Sn(`Response type '${t}' is not supported`,Sn.ERR_NOT_SUPPORT,r)})})})(new Response);const IDe=async e=>{if(e==null)return 0;if(Ue.isBlob(e))return e.size;if(Ue.isSpecCompliantForm(e))return(await new Request(Ni.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Ue.isArrayBufferView(e)||Ue.isArrayBuffer(e))return e.byteLength;if(Ue.isURLSearchParams(e)&&(e=e+""),Ue.isString(e))return(await TDe(e)).byteLength},PDe=async(e,t)=>{const n=Ue.toFiniteNumber(e.getContentLength());return n??IDe(t)},ADe=bI&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:h}=lre(e);c=c?(c+"").toLowerCase():"text";let m=SDe([o,i&&i.toAbortSignal()],a),g;const y=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let v;try{if(l&&ODe&&n!=="get"&&n!=="head"&&(v=await PDe(u,r))!==0){let O=new Request(t,{method:"POST",body:r,duplex:"half"}),P;if(Ue.isFormData(r)&&(P=O.headers.get("content-type"))&&u.setContentType(P),O.body){const[R,D]=$6(v,eT(N6(l)));r=F6(O.body,j6,R,D)}}Ue.isString(f)||(f=f?"include":"omit");const w="credentials"in Request.prototype;g=new Request(t,{...h,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:w?f:void 0});let C=await fetch(g);const E=jN&&(c==="stream"||c==="response");if(jN&&(s||E&&y)){const O={};["status","statusText","headers"].forEach(M=>{O[M]=C[M]});const P=Ue.toFiniteNumber(C.headers.get("content-length")),[R,D]=s&&$6(P,eT(N6(s),!0))||[];C=new Response(F6(C.body,j6,R,()=>{D&&D(),y&&y()}),O)}c=c||"text";let I=await tT[Ue.findKey(tT,c)||"text"](C,e);return!E&&y&&y(),await new Promise((O,P)=>{are(O,P,{data:I,headers:Ia.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:g})})}catch(w){throw y&&y(),w&&w.name==="TypeError"&&/Load failed|fetch/i.test(w.message)?Object.assign(new Sn("Network Error",Sn.ERR_NETWORK,e,g),{cause:w.cause||w}):Sn.from(w,w&&w.code,e,g)}}),BN={http:URe,xhr:xDe,fetch:ADe};Ue.forEach(BN,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const B6=e=>`- ${e}`,MDe=e=>Ue.isFunction(e)||e===null||e===!1,dre={getAdapter:e=>{e=Ue.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : +`+i.map(B6).join(` +`):" "+B6(i[0]):"as no adapter specified";throw new Sn("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:BN};function BR(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new uv(null,e)}function z6(e){return BR(e),e.headers=Ia.from(e.headers),e.data=jR.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),dre.getAdapter(e.adapter||dw.adapter)(e).then(function(r){return BR(e),r.data=jR.call(e,e.transformResponse,r),r.headers=Ia.from(r.headers),r},function(r){return ire(r)||(BR(e),r&&r.response&&(r.response.data=jR.call(e,e.transformResponse,r.response),r.response.headers=Ia.from(r.response.headers))),Promise.reject(r)})}const fre="1.9.0",xI={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{xI[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const V6={};xI.transitional=function(t,n,r){function o(i,a){return"[Axios v"+fre+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new Sn(o(a," has been removed"+(n?" in "+n:"")),Sn.ERR_DEPRECATED);return n&&!V6[a]&&(V6[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};xI.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function RDe(e,t,n){if(typeof e!="object")throw new Sn("options must be an object",Sn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new Sn("option "+i+" must be "+l,Sn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Sn("Unknown option "+i,Sn.ERR_BAD_OPTION)}}const vE={assertOptions:RDe,validators:xI},uc=vE.validators;let rh=class{constructor(t){this.defaults=t||{},this.interceptors={request:new k6,response:new k6}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=yh(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&vE.assertOptions(r,{silentJSONParsing:uc.transitional(uc.boolean),forcedJSONParsing:uc.transitional(uc.boolean),clarifyTimeoutError:uc.transitional(uc.boolean)},!1),o!=null&&(Ue.isFunction(o)?n.paramsSerializer={serialize:o}:vE.assertOptions(o,{encode:uc.function,serialize:uc.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),vE.assertOptions(n,{baseUrl:uc.spelling("baseURL"),withXsrfToken:uc.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Ue.merge(i.common,i[n.method]);i&&Ue.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=Ia.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,s.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let u,f=0,h;if(!l){const g=[z6.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,c),h=g.length,u=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new uv(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new pre(function(o){t=o}),cancel:t}}};function kDe(e){return function(n){return e.apply(null,n)}}function _De(e){return Ue.isObject(e)&&e.isAxiosError===!0}const zN={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(zN).forEach(([e,t])=>{zN[t]=e});function hre(e){const t=new rh(e),n=Une(rh.prototype.request,t);return Ue.extend(n,rh.prototype,t,{allOwnKeys:!0}),Ue.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return hre(yh(e,o))},n}const it=hre(dw);it.Axios=rh;it.CanceledError=uv;it.CancelToken=DDe;it.isCancel=ire;it.VERSION=fre;it.toFormData=vI;it.AxiosError=Sn;it.Cancel=it.CanceledError;it.all=function(t){return Promise.all(t)};it.spread=kDe;it.isAxiosError=_De;it.mergeConfig=yh;it.AxiosHeaders=Ia;it.formToJSON=e=>ore(Ue.isHTMLForm(e)?new FormData(e):e);it.getAdapter=dre.getAdapter;it.HttpStatusCode=zN;it.default=it;const{Axios:dAt,AxiosError:fAt,CanceledError:pAt,isCancel:hAt,CancelToken:mAt,VERSION:gAt,all:yAt,Cancel:vAt,isAxiosError:bAt,spread:xAt,toFormData:SAt,AxiosHeaders:wAt,HttpStatusCode:CAt,formToJSON:EAt,getAdapter:TAt,mergeConfig:OAt}=it,_g={protein:4,carbohydrates:4,fat:9};class qa{constructor(t){Ce(this,"bodyWeight",0);Ce(this,"energy",0);Ce(this,"protein",0);Ce(this,"carbohydrates",0);Ce(this,"carbohydratesSugar",0);Ce(this,"fat",0);Ce(this,"fatSaturated",0);Ce(this,"fiber",0);Ce(this,"sodium",0);this.energy=(t==null?void 0:t.energy)??0,this.protein=(t==null?void 0:t.protein)??0,this.carbohydrates=(t==null?void 0:t.carbohydrates)??0,this.carbohydratesSugar=(t==null?void 0:t.carbohydratesSugar)??0,this.fat=(t==null?void 0:t.fat)??0,this.fatSaturated=(t==null?void 0:t.fatSaturated)??0,this.fiber=(t==null?void 0:t.fiber)??0,this.sodium=(t==null?void 0:t.sodium)??0,this.bodyWeight=(t==null?void 0:t.bodyWeight)??0}get energyKj(){return this.energy*4.184}get isEmpty(){return this.energy===0&&this.protein===0&&this.carbohydrates===0&&this.fat===0}get percent(){return{protein:this.protein>0?this.protein*_g.protein/this.energy*100:0,carbohydrates:this.carbohydrates>0?this.carbohydrates*_g.carbohydrates/this.energy*100:0,fat:this.fat>0?this.fat*_g.fat/this.energy*100:0}}get perBodyKg(){return{protein:this.bodyWeight>0?this.protein/this.bodyWeight:0,carbohydrates:this.bodyWeight>0?this.carbohydrates/this.bodyWeight:0,fat:this.bodyWeight>0?this.fat/this.bodyWeight:0}}static fromIngredient(t,n,r){const o=new qa,i=r===null?n:n*r.amount*r.grams;return o.energy=t.energy*i/100,o.protein=t.protein*i/100,o.carbohydrates=t.carbohydrates*i/100,o.carbohydratesSugar=t.carbohydratesSugar?t.carbohydratesSugar*i/100:0,o.fat=t.fat*i/100,o.fatSaturated=t.fatSaturated?t.fatSaturated*i/100:0,o.fiber=t.fiber?t.fiber*i/100:0,o.sodium=t.sodium?t.sodium*i/100:0,o}add(t){return this.energy+=t.energy,this.protein+=t.protein,this.carbohydrates+=t.carbohydrates,this.carbohydratesSugar+=t.carbohydratesSugar,this.fat+=t.fat,this.fatSaturated+=t.fatSaturated,this.fiber+=t.fiber,this.sodium+=t.sodium,this}toString(){return`e: ${this.energy}, p: ${this.protein}, c: ${this.carbohydrates}, cS: ${this.carbohydratesSugar}, f: ${this.fat}, fS: ${this.fatSaturated}, fi: ${this.fiber}, s: ${this.sodium}`}equals(t){return this.energy===t.energy&&this.protein===t.protein&&this.carbohydrates===t.carbohydrates&&this.carbohydratesSugar===t.carbohydratesSugar&&this.fat===t.fat&&this.fatSaturated===t.fatSaturated&&this.fiber===t.fiber&&this.sodium===t.sodium}}function Jn(e){return e.toISOString().split("T")[0]}function xa(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function nT(e,t){return e==null?null:e.toLocaleTimeString(t?[t]:[],{hour:"2-digit",minute:"2-digit"})}function Dx(e){if(e==null)return null;const[t,n]=e.toTimeString().split(":");return`${t}:${n}`}function VN(e){if(e==null)return null;const[t,n]=e.split(":",2),r=new Date;return r.setHours(parseInt(t)),r.setMinutes(parseInt(n)),r}function $De(e,t=new Date){const r={lastWeek:()=>t.setDate(t.getDate()-7),lastMonth:()=>t.setMonth(t.getMonth()-1),lastHalfYear:()=>t.setMonth(t.getMonth()-6),lastYear:()=>t.setFullYear(t.getFullYear()-1),"":void 0}[e];if(r)r();else return;return Jn(t)}class mre{constructor(t,n,r,o){Ce(this,"items",[]);Ce(this,"diaryEntries",[]);this.id=t,this.order=n,this.time=r,this.name=o}get timeHHMMLocale(){return nT(this.time)}get displayName(){return this.name?this.name:this.timeHHMMLocale}get diaryEntriesToday(){return this.diaryEntries.filter(t=>xa(t.datetime,new Date))}get plannedNutritionalValues(){const t=new qa;for(const n of this.items)t.add(n.nutritionalValues);return t}get loggedNutritionalValuesToday(){const t=new qa;for(const n of this.diaryEntriesToday)t.add(n.nutritionalValues);return t}}class xB{fromJson(t){return new mre(t.id,t.order,VN(t.time),t.name)}toJson(t){return{name:t.name,order:t.order,time:nT(t.time)}}}const bE=-1;class SI{constructor(t){Ce(this,"id");Ce(this,"creationDate");Ce(this,"start");Ce(this,"end");Ce(this,"description");Ce(this,"onlyLogging");Ce(this,"goalEnergy");Ce(this,"goalProtein");Ce(this,"goalCarbohydrates");Ce(this,"goalFiber");Ce(this,"goalSodium");Ce(this,"goalFat");Ce(this,"goalFatsSaturated");Ce(this,"meals",[]);Ce(this,"diaryEntries",[]);this.id=t.id??null,this.creationDate=t.creationDate??new Date,this.start=t.start??this.creationDate,this.end=t.end??null,this.description=t.description??"",this.onlyLogging=t.onlyLogging??!1,this.goalEnergy=t.goalEnergy??null,this.goalProtein=t.goalProtein??null,this.goalCarbohydrates=t.goalCarbohydrates??null,this.goalFiber=t.goalFiber??null,this.goalSodium=t.goalSodium??null,this.goalFat=t.goalFat??null,this.goalFatsSaturated=t.goalFatsSaturated??null}get hasAnyGoals(){return this.goalEnergy!==null||this.goalProtein!==null||this.goalCarbohydrates!==null||this.goalFat!==null}get hasAnyAdvancedGoals(){return this.goalFiber!==null||this.goalSodium!==null||this.goalFatsSaturated!==null}get hasAnyPlanned(){return this.hasAnyGoals||this.plannedNutritionalValues.energy>0}get plannedNutritionalValues(){if(this.hasAnyGoals)return new qa({energy:this.goalEnergy,carbohydrates:this.goalCarbohydrates,protein:this.goalProtein,fat:this.goalFat});const t=new qa;for(const n of this.meals)t.add(n.plannedNutritionalValues);return t}get loggedNutritionalValues7DayAvg(){const t=new Date,n=new Date(t.getTime()-7*24*60*60*1e3),r=this.diaryEntries.filter(o=>o.datetime>=n);return this.getAverageNutritionalValuesFromDiaryEntries(r)}get loggedNutritionalValuesToday(){const t=this.diaryEntries.filter(n=>xa(n.datetime,new Date));return this.getNutritionalValuesFromDiaryEntries(t)}get groupDiaryEntries(){return this.diaryEntries.reduce((t,n)=>{const r=n.datetime.toISOString().split("T")[0],o=t.get(r)||{entries:[],nutritionalValues:new qa};return o.entries.push(n),o.nutritionalValues.add(n.nutritionalValues),t.set(r,o),t},new Map)}get percentageValuesLoggedToday(){return new qa({protein:this.loggedNutritionalValuesToday.protein/this.plannedNutritionalValues.protein*100,carbohydrates:this.loggedNutritionalValuesToday.carbohydrates/this.plannedNutritionalValues.carbohydrates*100,fat:this.loggedNutritionalValuesToday.fat/this.plannedNutritionalValues.fat*100})}copyWith(t){return new SI({id:t.id!==void 0?t.id:this.id,creationDate:t.creationDate!==void 0?t.creationDate:this.creationDate,start:t.start!==void 0?t.start:this.start,end:t.end!==void 0?t.end:this.end,description:t.description!==void 0?t.description:this.description,onlyLogging:t.onlyLogging!==void 0?t.onlyLogging:this.onlyLogging,goalEnergy:t.goalEnergy!==void 0?t.goalEnergy:this.goalEnergy,goalProtein:t.goalProtein!==void 0?t.goalProtein:this.goalProtein,goalCarbohydrates:t.goalCarbohydrates!==void 0?t.goalCarbohydrates:this.goalCarbohydrates,goalFiber:t.goalFiber!==void 0?t.goalFiber:this.goalFiber,goalSodium:t.goalSodium!==void 0?t.goalSodium:this.goalSodium,goalFat:t.goalFat!==void 0?t.goalFat:this.goalFat,goalFatsSaturated:t.goalFatsSaturated!==void 0?t.goalFatsSaturated:this.goalFatsSaturated})}pseudoMealOthers(t){const n=new mre(bE,-1,null,t);return n.diaryEntries=this.diaryEntries.filter(r=>r.mealId===null),n}loggedNutritionalValuesDate(t){return this.getNutritionalValuesFromDiaryEntries(this.loggedEntriesDate(t))}loggedEntriesDate(t){return this.diaryEntries.filter(n=>xa(n.datetime,t))}getAverageNutritionalValuesFromDiaryEntries(t){const n=t.length,r=this.getNutritionalValuesFromDiaryEntries(t);return n===0||(r.energy=r.energy/n,r.protein=r.protein/n,r.carbohydrates=r.carbohydrates/n,r.carbohydratesSugar=r.carbohydratesSugar/n,r.fat=r.fat/n,r.fatSaturated=r.fatSaturated/n,r.fiber=r.fiber/n,r.sodium=r.sodium/n),r}getNutritionalValuesFromDiaryEntries(t){return t.reduce((n,r)=>n.add(r.nutritionalValues),new qa)}}class NDe{fromJson(t){return new SI({id:t.id,creationDate:new Date(t.creation_date),start:new Date(t.start),end:t.end!==null?new Date(t.end):null,description:t.description,onlyLogging:t.only_logging,goalEnergy:t.goal_energy,goalProtein:t.goal_protein,goalCarbohydrates:t.goal_carbohydrates,goalFiber:t.goal_fiber,goalSodium:null,goalFat:t.goal_fat,goalFatsSaturated:null})}toJson(t){return{...t.id!=null?{id:t.id}:{},start:Jn(t.start),end:t.end?Jn(t.end):null,description:t.description,only_logging:t.onlyLogging,goal_energy:t.goalEnergy,goal_protein:t.goalProtein,goal_carbohydrates:t.goalCarbohydrates,goal_fiber:t.goalFiber,goal_sodium:t.goalSodium,goal_fat:t.goalFat,goal_fats_saturated:t.goalFatsSaturated}}}const ly=new NDe;class gre{constructor(t,n,r){this.date=t,this.weight=n,this.id=r}}class SB{fromJson(t){return new gre(new Date(t.date),parseFloat(t.weight),t.id)}toJson(t){return{id:t.id,date:Jn(t.date),weight:t.weight}}}const LDe="/static/react",wB="",FDe="",jDe=void 0;var xE={exports:{}},BDe=xE.exports,H6;function zDe(){return H6||(H6=1,function(e){(function(t){let n;function r(u,f){const h=u.charCodeAt(f);if(isNaN(h))throw new RangeError("Index "+f+' out of range for string "'+u+'"; please open an issue at https://github.com/Trott/slug/issues/new');if(h<55296||h>57343)return[u.charAt(f),f];if(h>=55296&&h<=56319){if(u.length<=f+1)return[" ",f];const g=u.charCodeAt(f+1);return g<56320||g>57343?[" ",f]:[u.charAt(f)+u.charAt(f+1),f+1]}if(f===0)return[" ",f];const m=u.charCodeAt(f-1);if(m<55296||m>56319)return[" ",f];throw new Error('String "'+u+'" reaches code believed to be unreachable; please open an issue at https://github.com/Trott/slug/issues/new')}typeof window<"u"?window.btoa?n=function(u){return btoa(unescape(encodeURIComponent(u)))}:n=function(u){const f=unescape(encodeURIComponent(u+""));let h="";for(let m,g,y=0,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";f.charAt(y|0)||(v="=",y%1);h+=v.charAt(63&m>>8-y%1*8)){if(g=f.charCodeAt(y+=3/4),g>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");m=m<<8|g}return h}:n=function(u){return Buffer.from(u).toString("base64")};function o(u,f){let h=s(u,f);if((f&&f.fallback!==void 0?f.fallback:o.defaults.fallback)===!0&&h===""){let g="";for(let y=0;y1?h[f[g]]=u[f[g]]:m[f[g]]=u[f[g]];Object.assign(o.charmap,m),Object.assign(o.multicharmap,h)},o.setLocale=function(u){a=i[u]||{}},e.exports?e.exports=o:t.slug=o})(BDe)}(xE)),xE.exports}var VDe=zDe();const yre=Gn(VDe);function ft(e,t){t=t||{};const r=[t.server||FDe,"api","v2",e];if(t.id&&r.push(t.id.toString()),t.objectMethod&&r.push(t.objectMethod),r.push(""),t.query){const o=[];for(const i in t.query)Object.hasOwn(t.query,i)&&o.push(`${encodeURIComponent(i)}=${encodeURIComponent(t.query[i])}`);r.pop(),r.push(`?${o.join("&")}`)}return r.join("/")}var Qt=(e=>(e[e.DASHBOARD=0]="DASHBOARD",e[e.ROUTINE_OVERVIEW=1]="ROUTINE_OVERVIEW",e[e.ROUTINE_DETAIL=2]="ROUTINE_DETAIL",e[e.ROUTINE_EDIT=3]="ROUTINE_EDIT",e[e.ROUTINE_DETAIL_TABLE=4]="ROUTINE_DETAIL_TABLE",e[e.ROUTINE_EDIT_PROGRESSION=5]="ROUTINE_EDIT_PROGRESSION",e[e.ROUTINE_ADD=6]="ROUTINE_ADD",e[e.ROUTINE_LOGS_OVERVIEW=7]="ROUTINE_LOGS_OVERVIEW",e[e.ROUTINE_STATS_OVERVIEW=8]="ROUTINE_STATS_OVERVIEW",e[e.ROUTINE_PDF_TABLE=9]="ROUTINE_PDF_TABLE",e[e.ROUTINE_PDF_LOGS=10]="ROUTINE_PDF_LOGS",e[e.ROUTINE_ICAL=11]="ROUTINE_ICAL",e[e.ROUTINE_COPY=12]="ROUTINE_COPY",e[e.ROUTINE_ADD_LOG=13]="ROUTINE_ADD_LOG",e[e.TEMPLATE_DETAIL=14]="TEMPLATE_DETAIL",e[e.PRIVATE_TEMPLATE_OVERVIEW=15]="PRIVATE_TEMPLATE_OVERVIEW",e[e.PUBLIC_TEMPLATE_OVERVIEW=16]="PUBLIC_TEMPLATE_OVERVIEW",e[e.EXERCISE_DETAIL=17]="EXERCISE_DETAIL",e[e.EXERCISE_OVERVIEW=18]="EXERCISE_OVERVIEW",e[e.EXERCISE_CONTRIBUTE=19]="EXERCISE_CONTRIBUTE",e[e.WEIGHT_OVERVIEW=20]="WEIGHT_OVERVIEW",e[e.WEIGHT_ADD=21]="WEIGHT_ADD",e[e.MEASUREMENT_OVERVIEW=22]="MEASUREMENT_OVERVIEW",e[e.MEASUREMENT_DETAIL=23]="MEASUREMENT_DETAIL",e[e.NUTRITION_OVERVIEW=24]="NUTRITION_OVERVIEW",e[e.NUTRITION_DETAIL=25]="NUTRITION_DETAIL",e[e.NUTRITION_PLAN_PDF=26]="NUTRITION_PLAN_PDF",e[e.NUTRITION_PLAN_COPY=27]="NUTRITION_PLAN_COPY",e[e.NUTRITION_DIARY=28]="NUTRITION_DIARY",e[e.INGREDIENT_DETAIL=29]="INGREDIENT_DETAIL",e[e.CALENDAR=30]="CALENDAR",e))(Qt||{});function cn(e,t,n){t=t||"en-us";const r=t.split("-")[0];switch(e){case 1:return`/${r}/routine/overview`;case 2:return`/${r}/routine/${n.id}/view`;case 4:return`/${r}/routine/${n.id}/table`;case 3:return`/${r}/routine/${n.id}/edit`;case 5:return`/${r}/routine/${n.id}/edit/progression/${n.id2}`;case 6:return`/${r}/routine/add`;case 12:return`/${r}/routine/${n.id}/copy`;case 9:return`/${r}/routine/${n.id}/pdf/table`;case 10:return`/${r}/routine/${n.id}/pdf/log`;case 11:return`/${r}/routine/${n.id}/ical`;case 7:return`/${r}/routine/${n.id}/logs`;case 8:return`/${r}/routine/${n.id}/statistics`;case 13:return`/${r}/routine/${n.id}/day/${n.id2}/add-logs`;case 30:return`/${r}/routine/calendar`;case 14:return`/${r}/routine/templates/${n.id}/view`;case 15:return`/${r}/routine/templates/overview/private`;case 16:return`/${r}/routine/templates/overview/public`;case 19:return`/${r}/exercise/contribute`;case 17:return n.slug?`/${r}/exercise/${n.id}/view/${yre(n.slug)}`:`/${r}/exercise/${n.id}/view`;case 18:return`/${r}/exercise/overview`;case 20:return`/${r}/weight/overview`;case 21:return`/${r}/weight/add`;case 22:return`/${r}/measurement/overview`;case 23:return`/${r}/measurement/category/${n.id}`;case 24:return`/${r}/nutrition/overview`;case 25:return`/${r}/nutrition/${n.id}/view`;case 28:return`/${r}/nutrition/${n.id}/${n.date}`;case 26:return`/${r}/nutrition/${n.id}/pdf`;case 27:return`/${r}/nutrition/${n.id}/copy`;case 29:return`/${r}/nutrition/ingredient/${n.id}/view`;case 0:default:return"/"}}function HDe(e){let t=null;if(document.cookie&&document.cookie!==""){const n=document.cookie.split(";");for(let r=0;r{const t=$De(e),n=ft(wI,{query:{ordering:"-date",limit:900,...t&&{date__gte:t}}}),{data:r}=await it.get(n,{headers:ht()});return r.results.map(o=>new SB().fromJson(o))},GDe=async e=>(await it.delete(ft(wI,{id:e}),{headers:ht()})).status,qDe=async e=>{const t=new SB,n=await it.patch(ft(wI,{id:e.id}),t.toJson(e),{headers:ht()});return t.fromJson(n)},WDe=async e=>{const t=new SB,n=await it.post(ft(wI),t.toJson(e),{headers:ht()});return t.fromJson(n.data)},gn=e=>typeof e=="string",t0=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},U6=e=>e==null?"":""+e,KDe=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},YDe=/###/g,G6=e=>e&&e.indexOf("###")>-1?e.replace(YDe,"."):e,q6=e=>!e||gn(e),Z0=(e,t,n)=>{const r=gn(t)?t.split("."):t;let o=0;for(;o{const{obj:r,k:o}=Z0(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let i=t[t.length-1],a=t.slice(0,t.length-1),s=Z0(e,a,Object);for(;s.obj===void 0&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),s=Z0(e,a,Object),s!=null&&s.obj&&typeof s.obj[`${s.k}.${i}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},QDe=(e,t,n,r)=>{const{obj:o,k:i}=Z0(e,t,Object);o[i]=o[i]||[],o[i].push(n)},rT=(e,t)=>{const{obj:n,k:r}=Z0(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},XDe=(e,t,n)=>{const r=rT(e,n);return r!==void 0?r:rT(t,n)},vre=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?gn(e[r])||e[r]instanceof String||gn(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):vre(e[r],t[r],n):e[r]=t[r]);return e},Um=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var JDe={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const ZDe=e=>gn(e)?e.replace(/[&<>"'\/]/g,t=>JDe[t]):e;class eke{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const tke=[" ",",","?","!",";"],nke=new eke(20),rke=(e,t,n)=>{t=t||"",n=n||"";const r=tke.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const o=nke.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let i=!o.test(e);if(!i){const a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i},HN=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let o=e;for(let i=0;i-1&&le==null?void 0:e.replace("_","-"),oke={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}};class oT{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||oke,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(gn(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new oT(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new oT(this.logger,t)}}var xc=new oT;let CI=class{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([o,i])=>{for(let a=0;a{for(let a=0;a-1&&this.options.ns.splice(n,1)}getResource(t,n,r,o={}){var c,u;const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,a=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):gn(r)&&i?s.push(...r.split(i)):s.push(r)));const l=rT(this.data,s);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),l||!a||!gn(r)?l:HN((u=(c=this.data)==null?void 0:c[t])==null?void 0:u[n],r,i)}addResource(t,n,r,o,i={silent:!1}){const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(s=t.split("."),o=n,n=s[1]),this.addNamespaces(n),W6(this.data,s,o),i.silent||this.emit("added",t,n,r,o)}addResources(t,n,r,o={silent:!1}){for(const i in r)(gn(r[i])||Array.isArray(r[i]))&&this.addResource(t,n,i,r[i],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,i,a={silent:!1,skipCopy:!1}){let s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),o=r,r=n,n=s[1]),this.addNamespaces(n);let l=rT(this.data,s)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?vre(l,r,i):l={...l,...r},W6(this.data,s,l),a.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var bre={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(i=>{var a;t=((a=this.processors[i])==null?void 0:a.process(t,n,r,o))??t}),t}};const Y6={},Q6=e=>!gn(e)&&typeof e!="boolean"&&typeof e!="number";class iT extends CI{constructor(t,n={}){super(),KDe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=xc.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const o=this.resolve(t,r);return(o==null?void 0:o.res)!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const a=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!rke(t,r,o);if(a&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:gn(i)?[i]:i};const c=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),t=c.join(o)}return{key:t,namespaces:gn(i)?[i]:i}}translate(t,n,r){let o=typeof n=="object"?{...n}:n;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(o={...o}),o||(o={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],o),c=l[l.length-1];let u=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");const f=o.lng||this.language,h=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((f==null?void 0:f.toLowerCase())==="cimode")return h?i?{res:`${c}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(o)}:`${c}${u}${s}`:i?{res:s,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(o)}:s;const m=this.resolve(t,o);let g=m==null?void 0:m.res;const y=(m==null?void 0:m.usedKey)||s,v=(m==null?void 0:m.exactUsedKey)||s,w=["[object Number]","[object Function]","[object RegExp]"],C=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,I=o.count!==void 0&&!gn(o.count),O=iT.hasDefaultValue(o),P=I?this.pluralResolver.getSuffix(f,o.count,o):"",R=o.ordinal&&I?this.pluralResolver.getSuffix(f,o.count,{ordinal:!1}):"",D=I&&!o.ordinal&&o.count===0,M=D&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${P}`]||o[`defaultValue${R}`]||o.defaultValue;let A=g;E&&!g&&O&&(A=M);const _=Q6(A),N=Object.prototype.toString.apply(A);if(E&&A&&_&&w.indexOf(N)<0&&!(gn(C)&&Array.isArray(A))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const B=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,A,{...o,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(m.res=B,m.usedParams=this.getUsedParamsDetails(o),m):B}if(a){const B=Array.isArray(A),H=B?[]:{},j=B?v:y;for(const L in A)if(Object.prototype.hasOwnProperty.call(A,L)){const V=`${j}${a}${L}`;O&&!g?H[L]=this.translate(V,{...o,defaultValue:Q6(M)?M[L]:void 0,joinArrays:!1,ns:l}):H[L]=this.translate(V,{...o,joinArrays:!1,ns:l}),H[L]===V&&(H[L]=A[L])}g=H}}else if(E&&gn(C)&&Array.isArray(g))g=g.join(C),g&&(g=this.extendTranslation(g,t,o,r));else{let B=!1,H=!1;!this.isValidLookup(g)&&O&&(B=!0,g=M),this.isValidLookup(g)||(H=!0,g=s);const L=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&H?void 0:g,V=O&&M!==g&&this.options.updateMissing;if(H||B||V){if(this.logger.log(V?"updateKey":"missingKey",f,c,s,V?M:g),a){const q=this.resolve(s,{...o,keySeparator:!1});q&&q.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let W=[];const K=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&K&&K[0])for(let q=0;q{var se;const ie=O&&Z!==g?Z:L;this.options.missingKeyHandler?this.options.missingKeyHandler(q,c,Y,ie,V,o):(se=this.backendConnector)!=null&&se.saveMissing&&this.backendConnector.saveMissing(q,c,Y,ie,V,o),this.emit("missingKey",q,c,Y,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&I?W.forEach(q=>{const Y=this.pluralResolver.getSuffixes(q,o);D&&o[`defaultValue${this.options.pluralSeparator}zero`]&&Y.indexOf(`${this.options.pluralSeparator}zero`)<0&&Y.push(`${this.options.pluralSeparator}zero`),Y.forEach(Z=>{G([q],s+Z,o[`defaultValue${Z}`]||M)})}):G(W,s,M))}g=this.extendTranslation(g,t,o,m,r),H&&g===s&&this.options.appendNamespaceToMissingKey&&(g=`${c}${u}${s}`),(H||B)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${u}${s}`:s,B?g:void 0,o))}return i?(m.res=g,m.usedParams=this.getUsedParamsDetails(o),m):g}extendTranslation(t,n,r,o,i){var l,c;if((l=this.i18nFormat)!=null&&l.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=gn(t)&&(((c=r==null?void 0:r.interpolation)==null?void 0:c.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(u){const m=t.match(this.interpolator.nestingRegexp);f=m&&m.length}let h=r.replace&&!gn(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,r.lng||this.language||o.usedLng,r),u){const m=t.match(this.interpolator.nestingRegexp),g=m&&m.length;f(i==null?void 0:i[0])===m[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${n[0]}`),null):this.translate(...m,n),r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,s=gn(a)?[a]:a;return t!=null&&(s!=null&&s.length)&&r.applyPostProcessor!==!1&&(t=bre.handle(s,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,o,i,a,s;return gn(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),u=c.key;o=u;let f=c.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const h=n.count!==void 0&&!gn(n.count),m=h&&!n.ordinal&&n.count===0,g=n.context!==void 0&&(gn(n.context)||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(v=>{var w,C;this.isValidLookup(r)||(s=v,!Y6[`${y[0]}-${v}`]&&((w=this.utils)!=null&&w.hasLoadedNamespace)&&!((C=this.utils)!=null&&C.hasLoadedNamespace(s))&&(Y6[`${y[0]}-${v}`]=!0,this.logger.warn(`key "${o}" for languages "${y.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(E=>{var P;if(this.isValidLookup(r))return;a=E;const I=[u];if((P=this.i18nFormat)!=null&&P.addLookupKeys)this.i18nFormat.addLookupKeys(I,u,E,v,n);else{let R;h&&(R=this.pluralResolver.getSuffix(E,n.count,n));const D=`${this.options.pluralSeparator}zero`,M=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(I.push(u+R),n.ordinal&&R.indexOf(M)===0&&I.push(u+R.replace(M,this.options.pluralSeparator)),m&&I.push(u+D)),g){const A=`${u}${this.options.contextSeparator}${n.context}`;I.push(A),h&&(I.push(A+R),n.ordinal&&R.indexOf(M)===0&&I.push(A+R.replace(M,this.options.pluralSeparator)),m&&I.push(A+D))}}let O;for(;O=I.pop();)this.isValidLookup(r)||(i=O,r=this.getResource(E,v,O,n))}))})}),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,o={}){var i;return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!gn(t.replace);let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const i of n)delete o[i]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class X6{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=xc.create("languageUtils")}getScriptPartFromCode(t){if(t=kx(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=kx(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(gn(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getScriptPartFromCode(r);if(this.isSupportedCode(o))return n=o;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(a=>{if(a===i)return a;if(!(a.indexOf("-")<0&&i.indexOf("-")<0)&&(a.indexOf("-")>0&&i.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===i||a.indexOf(i)===0&&i.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),gn(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),o=[],i=a=>{a&&(this.isSupportedCode(a)?o.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return gn(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):gn(t)&&i(this.formatLanguageCode(t)),r.forEach(a=>{o.indexOf(a)<0&&i(this.formatLanguageCode(a))}),o}}const J6={zero:0,one:1,two:2,few:3,many:4,other:5},Z6={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class ike{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=xc.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=kx(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(r,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Z6;if(!t.match(/-|_/))return Z6;const l=this.languageUtils.getLanguagePartFromCode(t);a=this.getRule(l,n)}return this.pluralRulesCache[i]=a,a}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((o,i)=>J6[o]-J6[i]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,n,r={}){const o=this.getRule(t,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const eq=(e,t,n,r=".",o=!0)=>{let i=XDe(e,t,n);return!i&&o&&gn(n)&&(i=HN(e,n,r),i===void 0&&(i=HN(t,n,r))),i},zR=e=>e.replace(/\$/g,"$$$$");class ake{constructor(t={}){var n;this.logger=xc.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:i,prefixEscaped:a,suffix:s,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:f,nestingPrefix:h,nestingPrefixEscaped:m,nestingSuffix:g,nestingSuffixEscaped:y,nestingOptionsSeparator:v,maxReplaces:w,alwaysFormat:C}=t.interpolation;this.escape=n!==void 0?n:ZDe,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?Um(i):a||"{{",this.suffix=s?Um(s):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=h?Um(h):m||Um("$t("),this.nestingSuffix=g?Um(g):y||Um(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=w||1e3,this.alwaysFormat=C!==void 0?C:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,o){var m;let i,a,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=g=>{if(g.indexOf(this.formatSeparator)<0){const C=eq(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(C,void 0,r,{...o,...n,interpolationkey:g}):C}const y=g.split(this.formatSeparator),v=y.shift().trim(),w=y.join(this.formatSeparator).trim();return this.format(eq(n,l,v,this.options.keySeparator,this.options.ignoreJSONStructure),w,r,{...o,...n,interpolationkey:v})};this.resetRegExp();const u=(o==null?void 0:o.missingInterpolationHandler)||this.options.missingInterpolationHandler,f=((m=o==null?void 0:o.interpolation)==null?void 0:m.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>zR(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?zR(this.escape(g)):zR(g)}].forEach(g=>{for(s=0;i=g.regex.exec(t);){const y=i[1].trim();if(a=c(y),a===void 0)if(typeof u=="function"){const w=u(t,i,o);a=gn(w)?w:""}else if(o&&Object.prototype.hasOwnProperty.call(o,y))a="";else if(f){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),a="";else!gn(a)&&!this.useRawValueToEscape&&(a=U6(a));const v=g.safeValue(a);if(t=t.replace(i[0],v),f?(g.regex.lastIndex+=a.length,g.regex.lastIndex-=i[0].length):g.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n,r={}){let o,i,a;const s=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const f=l.split(new RegExp(`${u}[ ]*{`));let h=`{${f[1]}`;l=f[0],h=this.interpolate(h,a);const m=h.match(/'/g),g=h.match(/"/g);(((m==null?void 0:m.length)??0)%2===0&&!g||g.length%2!==0)&&(h=h.replace(/'/g,'"'));try{a=JSON.parse(h),c&&(a={...c,...a})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${u}${h}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;o=this.nestingRegexp.exec(t);){let l=[];a={...r},a=a.replace&&!gn(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const u=o[1].split(this.formatSeparator).map(f=>f.trim());o[1]=u.shift(),l=u,c=!0}if(i=n(s.call(this,o[1].trim(),a),a),i&&o[0]===t&&!gn(i))return i;gn(i)||(i=U6(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),c&&(i=l.reduce((u,f)=>this.format(u,f,r.lng,{...r,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}const ske=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(a=>{if(a){const[s,...l]=a.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=s.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},tq=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const a=r+JSON.stringify(i);let s=t[a];return s||(s=e(kx(r),o),t[a]=s),s(n)}},lke=e=>(t,n,r)=>e(kx(n),r)(t);let cke=class{constructor(t={}){this.logger=xc.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?tq:lke;this.formats={number:r((o,i)=>{const a=new Intl.NumberFormat(o,{...i});return s=>a.format(s)}),currency:r((o,i)=>{const a=new Intl.NumberFormat(o,{...i,style:"currency"});return s=>a.format(s)}),datetime:r((o,i)=>{const a=new Intl.DateTimeFormat(o,{...i});return s=>a.format(s)}),relativetime:r((o,i)=>{const a=new Intl.RelativeTimeFormat(o,{...i});return s=>a.format(s,i.range||"day")}),list:r((o,i)=>{const a=new Intl.ListFormat(o,{...i});return s=>a.format(s)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=tq(n)}format(t,n,r,o={}){const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(s=>s.indexOf(")")>-1)){const s=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,s)].join(this.formatSeparator)}return i.reduce((s,l)=>{var f;const{formatName:c,formatOptions:u}=ske(l);if(this.formats[c]){let h=s;try{const m=((f=o==null?void 0:o.formatParams)==null?void 0:f[o.interpolationkey])||{},g=m.locale||m.lng||o.locale||o.lng||r;h=this.formats[c](s,g,{...u,...o,...m})}catch(m){this.logger.warn(m)}return h}else this.logger.warn(`there was no format function for ${c}`);return s},t)}};const uke=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class dke extends CI{constructor(t,n,r,o={}){var i,a;super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=xc.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],(a=(i=this.backend)==null?void 0:i.init)==null||a.call(i,r,o.backend,o)}queueLoad(t,n,r,o){const i={},a={},s={},l={};return t.forEach(c=>{let u=!0;n.forEach(f=>{const h=`${c}|${f}`;!r.reload&&this.store.hasResourceBundle(c,f)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?a[h]===void 0&&(a[h]=!0):(this.state[h]=1,u=!1,a[h]===void 0&&(a[h]=!0),i[h]===void 0&&(i[h]=!0),l[f]===void 0&&(l[f]=!0)))}),u||(s[c]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const o=t.split("|"),i=o[0],a=o[1];n&&this.emit("failedLoading",i,a,n),!n&&r&&this.store.addResourceBundle(i,a,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const s={};this.queue.forEach(l=>{QDe(l.loaded,[i],a),uke(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{s[c]||(s[c]={});const u=l.loaded[c];u.length&&u.forEach(f=>{s[c][f]===void 0&&(s[c][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r,o=0,i=this.retryTimeout,a){if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:i,callback:a});return}this.readingCalls++;const s=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&u&&o{this.read.call(this,t,n,r,o+1,i*2,a)},i);return}a(c,u)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(t,n);c&&typeof c.then=="function"?c.then(u=>s(null,u)).catch(s):s(null,c)}catch(c){s(c)}return}return l(t,n,s)}prepareLoading(t,n,r={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();gn(t)&&(t=this.languageUtils.toResolveHierarchy(t)),gn(n)&&(n=[n]);const i=this.queueLoad(t,n,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(a=>{this.loadOne(a)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,a),!a&&s&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,s),this.loaded(t,a,s)})}saveMissing(t,n,r,o,i,a={},s=()=>{}){var l,c,u,f,h;if((c=(l=this.services)==null?void 0:l.utils)!=null&&c.hasLoadedNamespace&&!((f=(u=this.services)==null?void 0:u.utils)!=null&&f.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((h=this.backend)!=null&&h.create){const m={...a,isUpdate:i},g=this.backend.create.bind(this.backend);if(g.length<6)try{let y;g.length===5?y=g(t,n,r,o,m):y=g(t,n,r,o),y&&typeof y.then=="function"?y.then(v=>s(null,v)).catch(s):s(null,y)}catch(y){s(y)}else g(t,n,r,o,s,m)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const nq=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),gn(e[1])&&(t.defaultValue=e[1]),gn(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),rq=e=>{var t,n;return gn(e.ns)&&(e.ns=[e.ns]),gn(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),gn(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},I1=()=>{},fke=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class _x extends CI{constructor(t={},n){if(super(),this.options=rq(t),this.services={},this.logger=xc,this.modules={external:[]},fke(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(gn(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=nq();this.options={...r,...this.options,...rq(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const o=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?xc.init(o(this.modules.logger),this.options):xc.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=cke;const u=new X6(this.options);this.store=new K6(this.options.resources,this.options);const f=this.services;f.logger=xc,f.resourceStore=this.store,f.languageUtils=u,f.pluralResolver=new ike(u,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(f.formatter=o(c),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new ake(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new dke(o(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",(h,...m)=>{this.emit(h,...m)}),this.modules.languageDetector&&(f.languageDetector=o(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=o(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new iT(this.services,this.options),this.translator.on("*",(h,...m)=>{this.emit(h,...m)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,n||(n=I1),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=(...u)=>this.store[c](...u)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...u)=>(this.store[c](...u),this)});const s=t0(),l=()=>{const c=(u,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(f),n(u,f)};if(this.languages&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),s}loadResources(t,n=I1){var i,a;let r=n;const o=gn(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((o==null?void 0:o.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],l=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(f=>{f!=="cimode"&&s.indexOf(f)<0&&s.push(f)})};o?l(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>l(u)),(a=(i=this.options.preload)==null?void 0:i.forEach)==null||a.call(i,c=>l(c)),this.services.backendConnector.load(s,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(t,n,r){const o=t0();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=I1),this.services.backendConnector.reload(t,n,i=>{o.resolve(),r(i)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&bre.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=t0();this.emit("languageChanging",t);const o=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},i=(s,l)=>{l?this.isLanguageChangingTo===t&&(o(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...c)=>this.t(...c)),n&&n(s,(...c)=>this.t(...c))},a=s=>{var u,f;!t&&!s&&this.services.languageDetector&&(s=[]);const l=gn(s)?s:s&&s[0],c=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(gn(s)?[s]:s);c&&(this.language||o(c),this.translator.language||this.translator.changeLanguage(c),(f=(u=this.services.languageDetector)==null?void 0:u.cacheUserLanguage)==null||f.call(u,c)),this.loadResources(c,h=>{i(h,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),r}getFixedT(t,n,r){const o=(i,a,...s)=>{let l;typeof a!="object"?l=this.options.overloadTranslationOptionHandler([i,a].concat(s)):l={...a},l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||o.keyPrefix);const c=this.options.keySeparator||".";let u;return l.keyPrefix&&Array.isArray(i)?u=i.map(f=>`${l.keyPrefix}${c}${f}`):u=l.keyPrefix?`${l.keyPrefix}${c}${i}`:i,this.t(u,l)};return gn(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(s,l)=>{const c=this.services.backendConnector.state[`${s}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const s=n.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!o||a(i,t)))}loadNamespaces(t,n){const r=t0();return this.options.ns?(gn(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=t0();gn(t)&&(t=[t]);const o=this.options.preload||[],i=t.filter(a=>o.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return i.length?(this.options.preload=o.concat(i),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(t){var o,i;if(t||(t=this.resolvedLanguage||(((o=this.languages)==null?void 0:o.length)>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((i=this.services)==null?void 0:i.languageUtils)||new X6(nq());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){return new _x(t,n)}cloneInstance(t={},n=I1){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new _x(o);if((t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(s=>{i[s]=this[s]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r){const s=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},l[c]=Object.keys(l[c]).reduce((u,f)=>(u[f]={...l[c][f]},u),l[c]),l),{});i.store=new K6(s,o),i.services.resourceStore=i.store}return i.translator=new iT(i.services,o),i.translator.on("*",(s,...l)=>{i.emit(s,...l)}),i.init(o,n),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const hr=_x.createInstance();hr.createInstance=_x.createInstance;hr.createInstance;hr.dir;hr.init;hr.loadResources;hr.reloadResources;hr.use;hr.changeLanguage;hr.getFixedT;hr.t;hr.exists;hr.setDefaultNamespace;hr.hasLoadedNamespace;hr.loadNamespaces;hr.loadLanguages;const pke=22;function hke(e,t=pke){return e.length>t?e.slice(0,t)+"…":e}function mke(e){return e.toLowerCase().replace(/\s/g,"_").replace("(","_").replace(")","_").replace("-","_")}function CB(e){return e===void 0?(console.warn("called getTranslationKey with undefined name"),""):`server.${mke(e)}`}class gke{constructor(t,n,r,o){this.id=t,this.name=n,this.nameEn=r,this.isFront=o}get translatedName(){return hr.t(CB(this.nameEn),{defaultValue:this.nameEn})}getName(){return this.nameEn?`${this.name} (${this.translatedName})`:this.name}}class xre{fromJson(t){return new gke(t.id,t.name,t.name_en,t.is_front)}toJson(t){return{}}}const yke="muscle",vke=async()=>{const e=ft(yke),{data:t}=await it.get(e,{headers:ht()}),n=new xre;return t.results.map(r=>n.fromJson(r))},{slice:bke,forEach:xke}=[];function Ske(e){return xke.call(bke.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}const oq=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,wke=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},o=encodeURIComponent(t);let i=`${e}=${o}`;if(r.maxAge>0){const a=r.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(a)}`}if(r.domain){if(!oq.test(r.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${r.domain}`}if(r.path){if(!oq.test(r.path))throw new TypeError("option path is invalid");i+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i},iq={create(e,t,n,r){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+n*60*1e3)),r&&(o.domain=r),document.cookie=wke(e,encodeURIComponent(t),o)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r-1&&(o=window.location.hash.substring(window.location.hash.indexOf("?")));const a=o.substring(1).split("&");for(let s=0;s0&&a[s].substring(0,l)===t&&(n=a[s].substring(l+1))}}return n}};let Gm=null;const aq=()=>{if(Gm!==null)return Gm;try{if(Gm=typeof window<"u"&&window.localStorage!==null,!Gm)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Gm=!1}return Gm};var Tke={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&aq())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&aq()&&window.localStorage.setItem(n,e)}};let qm=null;const sq=()=>{if(qm!==null)return qm;try{if(qm=typeof window<"u"&&window.sessionStorage!==null,!qm)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{qm=!1}return qm};var Oke={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&sq())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&sq()&&window.sessionStorage.setItem(n,e)}},Ike={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:o}=navigator;if(n)for(let i=0;i0?t:void 0}},Pke={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},Ake={name:"path",lookup(e){var o;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(o=n[typeof t=="number"?t:0])==null?void 0:o.replace("/",""):void 0}},Mke={name:"subdomain",lookup(e){var o,i;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((i=(o=window.location)==null?void 0:o.hostname)==null?void 0:i.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};let Sre=!1;try{document.cookie,Sre=!0}catch{}const wre=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Sre||wre.splice(1,1);const Rke=()=>({order:wre,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class Cre{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=Ske(n,this.options||{},Rke()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(Cke),this.addDetector(Eke),this.addDetector(Tke),this.addDetector(Oke),this.addDetector(Ike),this.addDetector(Pke),this.addDetector(Ake),this.addDetector(Mke)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let o=this.detectors[r].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(n=n.concat(o))}}),n=n.map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}Cre.type="languageDetector";function UN(e){"@babel/helpers - typeof";return UN=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},UN(e)}function Ere(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":UN(XMLHttpRequest))==="object"}function Dke(e){return!!e&&typeof e.then=="function"}function kke(e){return Dke(e)?e:Promise.resolve(e)}function lq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function cq(e){for(var t=1;timport("./browser-ponyfill-C61aqKwl.js").then(e=>e.b),[]).then(function(e){Of=e.default}).catch(function(){})}catch{}var GN=function(t,n){if(n&&vh(n)==="object"){var r="";for(var o in n)r+="&"+encodeURIComponent(o)+"="+encodeURIComponent(n[o]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},uq=function(t,n,r,o){var i=function(l){if(!l.ok)return r(l.statusText||"Error",{status:l.status});l.text().then(function(c){r(null,{status:l.status,data:c})}).catch(r)};if(o){var a=o(t,n);if(a instanceof Promise){a.then(i).catch(r);return}}typeof fetch=="function"?fetch(t,n).then(i).catch(r):Of(t,n).then(i).catch(r)},dq=!1,Lke=function(t,n,r,o){t.queryStringParams&&(n=GN(n,t.queryStringParams));var i=cq({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(i["Content-Type"]="application/json");var a=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,s=cq({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:i},dq?{}:a),l=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{uq(n,s,o,l)}catch(c){if(!a||Object.keys(a).length===0||!c.message||c.message.indexOf("not implemented")<0)return o(c);try{Object.keys(a).forEach(function(u){delete s[u]}),uq(n,s,o,l),dq=!0}catch(u){o(u)}}},Fke=function(t,n,r,o){r&&vh(r)==="object"&&(r=GN("",r).slice(1)),t.queryStringParams&&(n=GN(n,t.queryStringParams));try{var i=$x?new $x:new aT("MSXML2.XMLHTTP.3.0");i.open(r?"POST":"GET",n,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!t.withCredentials,r&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var a=t.customHeaders;if(a=typeof a=="function"?a():a,a)for(var s in a)i.setRequestHeader(s,a[s]);i.onreadystatechange=function(){i.readyState>3&&o(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(r)}catch(l){console&&console.log(l)}},jke=function(t,n,r,o){if(typeof r=="function"&&(o=r,r=void 0),o=o||function(){},Of&&n.indexOf("file:")!==0)return Lke(t,n,r,o);if(Ere()||typeof ActiveXObject=="function")return Fke(t,n,r,o);o(new Error("No fetch and no xhr implementation found!"))};function cy(e){"@babel/helpers - typeof";return cy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cy(e)}function fq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function VR(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Bke(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return Vke(e,[{key:"init",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=VR(VR(VR({},Uke()),this.options||{}),o),this.allOptions=i,this.services&&this.options.reloadInterval){var a=setInterval(function(){return r.reload()},this.options.reloadInterval);cy(a)==="object"&&typeof a.unref=="function"&&a.unref()}}},{key:"readMulti",value:function(n,r,o){this._readAny(n,n,r,r,o)}},{key:"read",value:function(n,r,o){this._readAny([n],n,[r],r,o)}},{key:"_readAny",value:function(n,r,o,i,a){var s=this,l=this.options.loadPath;typeof this.options.loadPath=="function"&&(l=this.options.loadPath(n,o)),l=kke(l),l.then(function(c){if(!c)return a(null,{});var u=s.services.interpolator.interpolate(c,{lng:n.join("+"),ns:o.join("+")});s.loadUrl(u,a,r,i)})}},{key:"loadUrl",value:function(n,r,o,i){var a=this,s=typeof o=="string"?[o]:o,l=typeof i=="string"?[i]:i,c=this.options.parseLoadPayload(s,l);this.options.request(this.options,n,c,function(u,f){if(f&&(f.status>=500&&f.status<600||!f.status))return r("failed loading "+n+"; status code: "+f.status,!0);if(f&&f.status>=400&&f.status<500)return r("failed loading "+n+"; status code: "+f.status,!1);if(!f&&u&&u.message){var h=u.message.toLowerCase(),m=["failed","fetch","network","load"].find(function(v){return h.indexOf(v)>-1});if(m)return r("failed loading "+n+": "+u.message,!0)}if(u)return r(u,!1);var g,y;try{typeof f.data=="string"?g=a.options.parse(f.data,o,i):g=f.data}catch{y="failed parsing "+n+" to json"}if(y)return r(y,!1);r(null,g)})}},{key:"create",value:function(n,r,o,i,a){var s=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var l=this.options.parsePayload(r,o,i),c=0,u=[],f=[];n.forEach(function(h){var m=s.options.addPath;typeof s.options.addPath=="function"&&(m=s.options.addPath(h,r));var g=s.services.interpolator.interpolate(m,{lng:h,ns:r});s.options.request(s.options,g,l,function(y,v){c+=1,u.push(y),f.push(v),c===n.length&&typeof a=="function"&&a(u,f)})})}}},{key:"reload",value:function(){var n=this,r=this.services,o=r.backendConnector,i=r.languageUtils,a=r.logger,s=o.language;if(!(s&&s.toLowerCase()==="cimode")){var l=[],c=function(f){var h=i.toResolveHierarchy(f);h.forEach(function(m){l.indexOf(m)<0&&l.push(m)})};c(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(u){return c(u)}),l.forEach(function(u){n.allOptions.ns.forEach(function(f){o.read(u,f,"read",null,null,function(h,m){h&&a.warn("loading namespace ".concat(f," for language ").concat(u," failed"),h),!h&&m&&a.log("loaded namespace ".concat(f," for language ").concat(u),m),o.loaded("".concat(u,"|").concat(f),h,m)})})})}}}])}();Ire.type="backend";hr.use(Ire).use(Cre).use(eRe).init({load:"languageOnly",detection:{order:["path","navigator","htmlTag"]},fallbackLng:"en",interpolation:{escapeValue:!1},backend:{loadPath:"/static/react/locales/{{lng}}/{{ns}}.json"}});class Gke{constructor(t,n){this.id=t,this.name=n}get translatedName(){return hr.t(CB(this.name),{defaultValue:this.name})}}class Pre{fromJson(t){return new Gke(t.id,t.name)}toJson(t){return{id:t.id,name:t.name}}}const qke="equipment",Wke=async()=>{const e=ft(qke),{data:t}=await it.get(e,{headers:ht()}),n=new Pre;return t.results.map(r=>n.fromJson(r))};class Kke{constructor(t,n){this.id=t,this.name=n}get translatedName(){return hr.t(CB(this.name),{defaultValue:this.name})}}class Are{fromJson(t){return new Kke(t.id,t.name)}toJson(t){return{id:t.id,name:t.name}}}const Yke="exercisecategory",Qke=async()=>{const e=ft(Yke),{data:t}=await it.get(e,{headers:ht()}),n=new Are;return t.results.map(r=>n.fromJson(r))};var Cu=(e=>(e[e.LINE_ART=1]="LINE_ART",e[e.THREE_D=2]="THREE_D",e[e.LOW_POLY=3]="LOW_POLY",e[e.PHOTO=4]="PHOTO",e[e.OTHER=5]="OTHER",e))(Cu||{});class Xke{constructor(t,n,r,o){this.id=t,this.uuid=n,this.url=r,this.isMain=o}}class qN{fromJson(t){return new Xke(t.id,t.uuid,t.image,t.is_main)}toJson(t){return{id:t.id,image:t.url,is_front:t.isMain}}}class Jke{constructor(t,n,r){this.id=t,this.uuid=n,this.alias=r}}class Mre{fromJson(t){return new Jke(t.id,t.uuid,t.alias)}toJson(t){return{id:t.id,name:t.alias}}}class WN{constructor(t,n,r){this.id=t,this.exercise=n,this.note=r}}class Rre{fromJson(t){return new WN(t.id,t.exercise,t.comment)}toJson(t){return{id:t.id,comment:t.note,exercise:t.exercise}}}class Dre{constructor(t,n,r,o,i,a,s,l){Ce(this,"notes",[]);Ce(this,"aliases",[]);Ce(this,"authors",[]);this.id=t,this.uuid=n,this.name=r,this.description=o,this.language=i,a&&(this.notes=a),s&&(this.aliases=s),l&&(this.authors=l)}get nameLong(){return hke(this.name)}get nameSlug(){return yre(this.name)}}class EB{fromJson(t){var n,r;return new Dre(t.id,t.uuid,t.name,t.description,t.language,(n=t.notes)==null?void 0:n.map(o=>new Rre().fromJson(o)),(r=t.aliases)==null?void 0:r.map(o=>new Mre().fromJson(o)),t.author_history)}toJson(t){return{id:t.id,uuid:t.uuid,name:t.name,description:t.description,language:t.language}}}class Zke{constructor(t,n,r,o){this.id=t,this.uuid=n,this.url=r,this.isMain=o}}class kre{fromJson(t){return new Zke(t.id,t.uuid,t.video,t.is_main)}toJson(t){return{id:t.id,video:t.url}}}class TB{constructor(t,n,r){this.id=t,this.nameShort=n,this.nameLong=r}}class e2e{fromJson(t){return new TB(t.id,t.short_name,t.full_name)}toJson(t){return{}}}const bh=2,_re="en",t2e=new TB(bh,_re,"English"),n2e=21,r2e=1,o2e=1,i2e=2,a2e="variations",s2e="detail",l2e="permission",dv="measurements",fv="measurements-categories";var st=(e=>(e.ROUTINE_OVERVIEW="routine-overview",e.ROUTINE_DETAIL="routine-detail",e.SESSION_SEARCH="session-search",e.SESSIONS_FULL="sessions-full",e.ROUTINE_LOGS="routine-logs",e.ROUTINE_LOG_DATA="routine-log-data",e.ROUTINE_STATS="routine-stats",e.ROUTINES_ACTIVE="routines-active",e.ROUTINES_SHALLOW="routines-shallow",e.PRIVATE_TEMPLATES="private-templates",e.PUBLIC_TEMPLATES="public-templates",e.NUTRITIONAL_PLANS="nutritional-plans",e.NUTRITIONAL_PLAN="nutritional-plan",e.NUTRITIONAL_PLAN_DIARY="nutritional-plan-diary",e.NUTRITIONAL_PLAN_LAST="nutritional-plan-last",e.INGREDIENT="ingredient",e.BODY_WEIGHT="body-weight",e.ROUTINE_WEIGHT_UNITS="weight-units",e.ROUTINE_REP_UNITS="rep-units",e.QUERY_PROFILE="profile",e.EXERCISES="exercises",e.EXERCISE_VARIATIONS="variations",e.EXERCISE_DETAIL="detail",e.LANGUAGES="languages",e.CATEGORIES="categories",e.EQUIPMENT="equipment",e.MUSCLES="muscles",e.QUERY_NOTES="notes",e))(st||{}),St=(e=>(e.MEAL="meal",e.MEAL_ITEM="mealitem",e.NUTRITIONAL_DIARY="nutritiondiary",e.INGREDIENT_PATH="ingredientinfo",e.INGREDIENT_SEARCH_PATH="ingredient/search",e.INGREDIENT_WEIGHT_UNIT="ingredientweightunit",e.ROUTINE="routine",e.WEIGHT_CONFIG="weight-config",e.MAX_WEIGHT_CONFIG="max-weight-config",e.REPETITIONS_CONFIG="repetitions-config",e.MAX_REPS_CONFIG="max-repetitions-config",e.RIR_CONFIG="rir-config",e.MAX_RIR_CONFIG="max-rir-config",e.NR_OF_SETS_CONFIG="sets-config",e.MAX_NR_OF_SETS_CONFIG="max-sets-config",e.REST_CONFIG="rest-config",e.MAX_REST_CONFIG="max-rest-config",e.DAY="day",e.SLOT="slot",e.SLOT_ENTRY="slot-entry",e.SESSION="workoutsession",e.WORKOUT_LOG="workoutlog",e.PRIVATE_TEMPLATE="templates",e.PUBLIC_TEMPLATE="public-templates",e.API_PROFILE_PATH="userprofile",e))(St||{});const KN="999",c2e=["#2a4c7d","#5b5291","#8e5298","#bf5092","#e7537e","#ff6461","#ff813d","#ffa600"],u2e=["#2a4c7d","#825298","#d45089","#ff6a59","#ffa600"],d2e=["#2a4c7d","#d45089","#ffa600"],YN={pageSizeOptions:[5,10,25,50,100],pageSize:10},f2e="Europe/Berlin",uy="en",EI=3e3,$re=500;class p2e{constructor(t,n,r,o,i,a,s,l,c,u,f){Ce(this,"translations",[]);Ce(this,"videos",[]);Ce(this,"authors",[]);this.id=t,this.uuid=n,this.category=r,this.equipment=o,this.muscles=i,this.musclesSecondary=a,this.images=s,this.variationId=l,c&&(this.translations=c),u&&(this.videos=u),f&&(this.authors=f)}get availableLanguages(){return this.translations.map(t=>t.language)}get mainImage(){return this.images.find(t=>t.isMain)}get sideImages(){return this.images.filter(t=>!t.isMain)}getTranslation(t){const n=t!=null?t.id:bh;let r=this.translations.find(o=>o.language===n);return r||(r=this.translations.find(o=>o.language===bh)),r||this.translations[0]}}class Nre{fromJson(t){const n=new Are,r=new Pre,o=new xre,i=new qN,a=new EB,s=new kre,l=new p2e(t.id,t.uuid,n.fromJson(t.category),t.equipment.map(c=>r.fromJson(c)),t.muscles.map(c=>o.fromJson(c)),t.muscles_secondary.map(c=>o.fromJson(c)),t.images.map(c=>i.fromJson(c)),t.variations,t.translations.map(c=>a.fromJson(c)),t.videos.map(c=>s.fromJson(c)),t.author_history);if(l.translations.some(c=>c.language===bh)||console.info(`No english translation found for exercise base ${l.uuid}!`),l.translations.length===0)throw new Error(`No translations found for exercise base ${l.uuid}!`);return l}toJson(t){return{id:t.id,uuid:t.uuid,category:t.category.id,equipment:t.equipment.map(n=>n.id),muscles:t.muscles.map(n=>n.id),muscles_secondary:t.musclesSecondary.map(n=>n.id),images:t.images.map(n=>new qN().toJson(n))}}}const OB="exerciseinfo",IB="exercise";function Lre(e){const t=new Nre,n=[];for(const r of e.results)try{n.push(t.fromJson(r))}catch(o){console.error("An error happened, skipping base:",o)}return n}const h2e=async()=>{const e=ft(OB,{query:{limit:900}}),t=await it.get(e,{headers:ht()});return Lre(t.data)},pv=async e=>{const t=new Nre,n=ft(OB,{id:e}),r=await it.get(n,{headers:ht()});return t.fromJson(r.data)},m2e=async e=>{if(!e)return[];const t=ft(OB,{query:{variations:e}}),n=await it.get(t,{headers:ht()});return Lre(n.data)},g2e=async(e,t,n,r,o,i)=>{const a=ft(IB),s={category:e,equipment:t,muscles:n,muscles_secondary:r,variation_id:o,license_author:i};return(await it.post(a,s,{headers:ht()})).data.id},PB=async(e,t)=>{const n=ft(IB,{id:e});return(await it.patch(n,t,{headers:ht()})).status},pq=async(e,t)=>{const r=ft(IB,t===void 0?{id:e}:{id:e,query:{replaced_by:t}});return(await it.delete(r,{headers:ht()})).status},AB="exercise-translation",y2e="exercise/search",v2e=async(e,t=_re,n=!0)=>{const r=[t];t!==uy&&n&&r.push(uy);const o=ft(y2e,{query:{term:e,language:r.join(",")}}),{data:i}=await it.get(o);return i.suggestions},QN=async e=>{const{exerciseId:t,languageId:n,name:r,description:o,author:i}=e,a=ft(AB),s={exercise:t,language:n,name:r,description:o,license_author:i},l=await it.post(a,s,{headers:ht()});return new EB().fromJson(l.data)},b2e=async e=>{const{id:t,exerciseId:n,languageId:r,name:o,description:i}=e,a=ft(AB,{id:t}),s={exercise:n,language:r,name:o,description:i},l=await it.patch(a,s,{headers:ht()});return new EB().fromJson(l.data)},x2e=async e=>{const t=ft(AB,{id:e});return(await it.delete(t,{headers:ht()})).status},S2e="language",w2e=async()=>{const e=ft(S2e),{data:t}=await it.get(e,{headers:ht()}),n=new e2e;return t.results.map(r=>n.fromJson(r))},Gu=(e,t)=>{const n=e.split("-")[0],r=t.find(o=>o.nameShort===n);if(r)return r},Fre="exerciseimage",jre=async e=>{const t=ft(Fre),n=ht();n["Content-Type"]="multipart/form-data";const r=await it.post(t,{exercise:e.exerciseId,image:e.image,license_title:e.imageData.title,license_object_url:e.imageData.objectUrl,license_author:e.imageData.author,license_author_url:e.imageData.authorUrl,license_derivative_source_url:e.imageData.derivativeSourceUrl,style:e.imageData.style},{headers:n});return new qN().fromJson(r.data)},C2e=async e=>{const t=ft(Fre,{id:e}),n=ht();return(await it.delete(t,{headers:n})).status},Bre="exercisealias",XN=async(e,t)=>{const n=ft(Bre),r=await it.post(n,{translation:e,alias:t},{headers:ht()});return new Mre().fromJson(r.data)},E2e=async e=>(await it.delete(ft(Bre,{id:e}),{headers:ht()})).status,zre="video",T2e=async(e,t,n)=>{const r=ft(zre),o=ht();o["Content-Type"]="multipart/form-data";const i=await it.post(r,{exercise:e,license_author:t,video:n},{headers:o});return new kre().fromJson(i.data)},O2e=async e=>{const t=ft(zre,{id:e}),n=ht();return(await it.delete(t,{headers:n})).status},Qi="r",I2e="+",P2e="-",JN=["weight","reps","rir","rest"],A2e=[{value:"abs",label:"Absolute"},{value:"percent",label:"Percent"}],M2e=[{value:I2e,label:"Add"},{value:P2e,label:"Subtract"},{value:Qi,label:"Replace"}],Vre=[{value:"",label:"-/-"},...[0,.5,1,1.5,2,2.5,3,3.5,4].map(e=>({value:e,label:e.toString()})),{value:4.5,label:"4+"}],Hre=[...Vre];class R2e{constructor(t){Ce(this,"id");Ce(this,"slotEntryId");Ce(this,"iteration");Ce(this,"value");Ce(this,"operation");Ce(this,"step");Ce(this,"repeat");Ce(this,"requirements");this.id=t.id,this.slotEntryId=t.slotEntryId,this.iteration=t.iteration,this.value=t.value,this.operation=t.operation??"r",this.step=t.step??"abs",this.repeat=t.repeat??!1,this.requirements=t.requirements??null}get replace(){return this.operation==="r"}}class MB{constructor(){Ce(this,"fromJson",t=>new R2e({id:t.id,slotEntryId:t.slot_entry,iteration:t.iteration,value:parseFloat(t.value),operation:t.operation,step:t.step,repeat:t.repeat,requirements:t.requirements}));Ce(this,"toJson",t=>({slot_entry:t.slotEntryId,iteration:t.iteration,value:t.value,operation:t.operation,step:t.step,repeat:t.repeat,requirements:t.requirements}))}}class D2e{constructor(t){Ce(this,"id");Ce(this,"slotId");Ce(this,"exerciseId");Ce(this,"repetitionUnitId");Ce(this,"repetitionRounding");Ce(this,"weightUnitId");Ce(this,"weightRounding");Ce(this,"order");Ce(this,"comment");Ce(this,"type");Ce(this,"config");Ce(this,"weightConfigs",[]);Ce(this,"maxWeightConfigs",[]);Ce(this,"repetitionsConfigs",[]);Ce(this,"maxRepetitionsConfigs",[]);Ce(this,"restTimeConfigs",[]);Ce(this,"maxRestTimeConfigs",[]);Ce(this,"nrOfSetsConfigs",[]);Ce(this,"maxNrOfSetsConfigs",[]);Ce(this,"rirConfigs",[]);Ce(this,"maxRirConfigs",[]);Ce(this,"exercise");Ce(this,"repetitionUnit",null);Ce(this,"weightUnit",null);this.id=t.id,this.slotId=t.slotId,this.exerciseId=t.exerciseId,this.exercise=t.exercise,this.repetitionUnitId=t.repetitionUnitId,this.repetitionRounding=t.repetitionRounding,this.weightUnitId=t.weightUnitId,this.weightRounding=t.weightRounding,this.order=t.order,this.comment=t.comment,this.type=t.type,this.config=t.config,t.configs!==void 0&&(this.weightConfigs=t.configs.weightConfigs??[],this.maxWeightConfigs=t.configs.maxWeightConfigs??[],this.repetitionsConfigs=t.configs.repetitionsConfigs??[],this.maxRepetitionsConfigs=t.configs.maxRepetitionsConfigs??[],this.restTimeConfigs=t.configs.restTimeConfigs??[],this.maxRestTimeConfigs=t.configs.maxRestTimeConfigs??[],this.nrOfSetsConfigs=t.configs.nrOfSetsConfigs??[],this.maxNrOfSetsConfigs=t.configs.maxNrOfSetsConfigs??[],this.rirConfigs=t.configs.rirConfigs??[],this.maxRirConfigs=t.configs.maxRirConfigs??[])}get hasProgressionRules(){return this.weightConfigs.length>1||this.maxWeightConfigs.length>1||this.repetitionsConfigs.length>1||this.maxRepetitionsConfigs.length>1||this.restTimeConfigs.length>1||this.maxRestTimeConfigs.length>1||this.nrOfSetsConfigs.length>1||this.maxNrOfSetsConfigs.length>1||this.rirConfigs.length>1||this.maxRirConfigs.length>1}}class k2e{constructor(){Ce(this,"fromJson",t=>{const n=new MB,r={weightConfigs:[],maxWeightConfigs:[],repetitionsConfigs:[],maxRepetitionsConfigs:[],restTimeConfigs:[],maxRestTimeConfigs:[],nrOfSetsConfigs:[],maxNrOfSetsConfigs:[],rirConfigs:[],maxRirConfigs:[]};return Object.hasOwn(t,"weight_configs")&&(r.weightConfigs=t.weight_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"max_weight_configs")&&(r.maxWeightConfigs=t.max_weight_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"repetitions_configs")&&(r.repetitionsConfigs=t.repetitions_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"max_repetitions_configs")&&(r.maxRepetitionsConfigs=t.max_repetitions_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"set_nr_configs")&&(r.nrOfSetsConfigs=t.set_nr_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"max_set_nr_configs")&&(r.maxNrOfSetsConfigs=t.max_set_nr_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"rest_configs")&&(r.restTimeConfigs=t.rest_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"max_rest_configs")&&(r.maxRestTimeConfigs=t.max_rest_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"rir_configs")&&(r.rirConfigs=t.rir_configs.map(o=>n.fromJson(o))),Object.hasOwn(t,"max_rir_configs")&&(r.maxRirConfigs=t.max_rir_configs.map(o=>n.fromJson(o))),new D2e({id:t.id,slotId:t.slot,exerciseId:t.exercise,repetitionUnitId:t.repetition_unit,repetitionRounding:t.repetition_rounding,weightUnitId:t.weight_unit,weightRounding:t.weight_rounding,order:t.order,comment:t.comment,type:t.type,config:t.config,configs:r})});Ce(this,"toJson",t=>({slot:t.slotId,exercise:t.exerciseId,repetition_unit:t.repetitionUnitId,repetition_rounding:t.repetitionRounding,weight_unit:t.weightUnitId,weight_rounding:t.weightRounding,order:t.order,comment:t.comment,type:t.type,config:t.config}))}}const RB=new k2e;class _2e{constructor({id:t,dayId:n,order:r,comment:o,config:i,entries:a=[]}){Ce(this,"id");Ce(this,"dayId");Ce(this,"order");Ce(this,"comment");Ce(this,"config");Ce(this,"entries",[]);this.id=t,this.dayId=n,this.order=r,this.comment=o,this.config=i,this.entries=a}}class DB{constructor(){Ce(this,"fromJson",t=>new _2e({id:t.id,dayId:t.day,order:t.order,comment:t.comment,config:t.config,entries:Object.hasOwn(t,"entries")?t.entries.map(n=>RB.fromJson(n)):[]}))}toJson(t){return{id:t.id,day:t.dayId,order:t.order,comment:t.order,config:t.config}}}class Ure{constructor({id:t,order:n,name:r,description:o,isRest:i,needLogsToAdvance:a,type:s,config:l,slots:c=[]}){Ce(this,"id");Ce(this,"order");Ce(this,"name");Ce(this,"description");Ce(this,"isRest");Ce(this,"needLogsToAdvance");Ce(this,"type");Ce(this,"config");Ce(this,"slots",[]);this.id=t,this.order=n,this.name=r,this.description=o,this.isRest=i,this.needLogsToAdvance=a,this.type=s,this.config=l,this.slots=c}get isSpecialType(){return this.type!=="custom"}getDisplayName(){return this.isRest?hr.t("routines.restDay"):this.name}}const Gre=e=>e===null||e.isRest?hr.t("routines.restDay"):e.getDisplayName();class TI{constructor(){Ce(this,"fromJson",t=>new Ure({id:t.id,order:t.order,name:t.name,description:t.description,isRest:t.is_rest,needLogsToAdvance:t.need_logs_to_advance,type:t.type,config:t.config,slots:Object.hasOwn(t,"slots")?t.slots.map(n=>new DB().fromJson(n)):[]}));Ce(this,"toJson",t=>({order:t.order,description:t.description,is_rest:t.isRest,need_logs_to_advance:t.needLogsToAdvance,type:t.type,config:t.config}))}}class qre{constructor(t){Ce(this,"exercises",{});Ce(this,"muscle",{});Ce(this,"upper_body",0);Ce(this,"lower_body",0);Ce(this,"total",0);Object.assign(this,t)}}class SE{constructor(t){Ce(this,"mesocycle",new qre);Ce(this,"iteration",{});Ce(this,"weekly",{});Ce(this,"daily",{});Object.assign(this,t)}}class $2e{constructor(t){Ce(this,"volume",new SE);Ce(this,"intensity",new SE);Ce(this,"sets",new SE);Object.assign(this,t)}}class N2e{fromJson(t){const n=o=>{const i={};for(const s in o.exercises)i[parseInt(s)]=parseFloat(o.exercises[s]);const a={};for(const s in o.muscle)a[parseInt(s)]=parseFloat(o.muscle[s]);return new qre({exercises:i,muscle:a,upper_body:parseFloat(o.upper_body),lower_body:parseFloat(o.lower_body),total:parseFloat(o.total)})},r=o=>{const i={};for(const l in o.iteration)i[l]=n(o.iteration[l]);const a={};for(const l in o.weekly)a[l]=n(o.weekly[l]);const s={};for(const l in o.daily)s[l]=n(o.daily[l]);return new SE({mesocycle:n(o.mesocycle),iteration:i,weekly:a,daily:s})};return new $2e({volume:r(t.volume),intensity:r(t.intensity),sets:r(t.sets)})}}class zh extends Error{}class L2e extends zh{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class F2e extends zh{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class j2e extends zh{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class mg extends zh{}class Wre extends zh{constructor(t){super(`Invalid unit ${t}`)}}class ki extends zh{}class Nd extends zh{constructor(){super("Zone is an abstract class")}}const Rt="numeric",Yl="short",Xa="long",sT={year:Rt,month:Rt,day:Rt},Kre={year:Rt,month:Yl,day:Rt},B2e={year:Rt,month:Yl,day:Rt,weekday:Yl},Yre={year:Rt,month:Xa,day:Rt},Qre={year:Rt,month:Xa,day:Rt,weekday:Xa},Xre={hour:Rt,minute:Rt},Jre={hour:Rt,minute:Rt,second:Rt},Zre={hour:Rt,minute:Rt,second:Rt,timeZoneName:Yl},eoe={hour:Rt,minute:Rt,second:Rt,timeZoneName:Xa},toe={hour:Rt,minute:Rt,hourCycle:"h23"},noe={hour:Rt,minute:Rt,second:Rt,hourCycle:"h23"},roe={hour:Rt,minute:Rt,second:Rt,hourCycle:"h23",timeZoneName:Yl},ooe={hour:Rt,minute:Rt,second:Rt,hourCycle:"h23",timeZoneName:Xa},ioe={year:Rt,month:Rt,day:Rt,hour:Rt,minute:Rt},aoe={year:Rt,month:Rt,day:Rt,hour:Rt,minute:Rt,second:Rt},soe={year:Rt,month:Yl,day:Rt,hour:Rt,minute:Rt},loe={year:Rt,month:Yl,day:Rt,hour:Rt,minute:Rt,second:Rt},z2e={year:Rt,month:Yl,day:Rt,weekday:Yl,hour:Rt,minute:Rt},coe={year:Rt,month:Xa,day:Rt,hour:Rt,minute:Rt,timeZoneName:Yl},uoe={year:Rt,month:Xa,day:Rt,hour:Rt,minute:Rt,second:Rt,timeZoneName:Yl},doe={year:Rt,month:Xa,day:Rt,weekday:Xa,hour:Rt,minute:Rt,timeZoneName:Xa},foe={year:Rt,month:Xa,day:Rt,weekday:Xa,hour:Rt,minute:Rt,second:Rt,timeZoneName:Xa};class fw{get type(){throw new Nd}get name(){throw new Nd}get ianaName(){return this.name}get isUniversal(){throw new Nd}offsetName(t,n){throw new Nd}formatOffset(t,n){throw new Nd}offset(t){throw new Nd}equals(t){throw new Nd}get isValid(){throw new Nd}}let HR=null;class OI extends fw{static get instance(){return HR===null&&(HR=new OI),HR}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return Coe(t,n,r)}formatOffset(t,n){return ex(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}const ZN=new Map;function V2e(e){let t=ZN.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),ZN.set(e,t)),t}const H2e={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function U2e(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,o,i,a,s,l,c,u]=r;return[a,o,i,s,l,c,u]}function G2e(e,t){const n=e.formatToParts(t),r=[];for(let o=0;o=0?g:1e3+g,(h-m)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let hq={};function q2e(e,t={}){const n=JSON.stringify([e,t]);let r=hq[n];return r||(r=new Intl.ListFormat(e,t),hq[n]=r),r}const eL=new Map;function tL(e,t={}){const n=JSON.stringify([e,t]);let r=eL.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(e,t),eL.set(n,r)),r}const nL=new Map;function W2e(e,t={}){const n=JSON.stringify([e,t]);let r=nL.get(n);return r===void 0&&(r=new Intl.NumberFormat(e,t),nL.set(n,r)),r}const rL=new Map;function K2e(e,t={}){const{base:n,...r}=t,o=JSON.stringify([e,r]);let i=rL.get(o);return i===void 0&&(i=new Intl.RelativeTimeFormat(e,t),rL.set(o,i)),i}let _0=null;function Y2e(){return _0||(_0=new Intl.DateTimeFormat().resolvedOptions().locale,_0)}const oL=new Map;function poe(e){let t=oL.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),oL.set(e,t)),t}const iL=new Map;function Q2e(e){let t=iL.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...hoe,...t}),iL.set(e,t)}return t}function X2e(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let r,o;try{r=tL(e).resolvedOptions(),o=e}catch{const l=e.substring(0,n);r=tL(l).resolvedOptions(),o=l}const{numberingSystem:i,calendar:a}=r;return[o,i,a]}}function J2e(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function Z2e(e){const t=[];for(let n=1;n<=12;n++){const r=xt.utc(2009,n,1);t.push(e(r))}return t}function e_e(e){const t=[];for(let n=1;n<=7;n++){const r=xt.utc(2016,11,13+n);t.push(e(r))}return t}function P1(e,t,n,r){const o=e.listingMode();return o==="error"?null:o==="en"?n(t):r(t)}function t_e(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||poe(e.locale).numberingSystem==="latn"}class n_e{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:o,floor:i,...a}=r;if(!n||Object.keys(a).length>0){const s={useGrouping:!1,...r};r.padTo>0&&(s.minimumIntegerDigits=r.padTo),this.inf=W2e(t,s)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):LB(t,3);return Ao(n,this.padTo)}}}class r_e{constructor(t,n,r){this.opts=r,this.originalZone=void 0;let o;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const a=-1*(t.offset/60),s=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;t.offset!==0&&qu.create(s).valid?(o=s,this.dt=t):(o="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,o=t.zone.name):(o="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const i={...this.opts};i.timeZone=i.timeZone||o,this.dtf=tL(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class o_e{constructor(t,n,r){this.opts={style:"long",...r},!n&&Soe()&&(this.rtf=K2e(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):O_e(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const hoe={firstDay:1,minimalDays:4,weekend:[6,7]};class ur{static fromOpts(t){return ur.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,o,i=!1){const a=t||to.defaultLocale,s=a||(i?"en-US":Y2e()),l=n||to.defaultNumberingSystem,c=r||to.defaultOutputCalendar,u=sL(o)||to.defaultWeekSettings;return new ur(s,l,c,u,a)}static resetCache(){_0=null,eL.clear(),nL.clear(),rL.clear(),oL.clear(),iL.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:o}={}){return ur.create(t,n,r,o)}constructor(t,n,r,o,i){const[a,s,l]=X2e(t);this.locale=a,this.numberingSystem=n||s||null,this.outputCalendar=r||l||null,this.weekSettings=o,this.intl=J2e(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=t_e(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:ur.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,sL(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return P1(this,t,Ooe,()=>{const r=n?{month:t,day:"numeric"}:{month:t},o=n?"format":"standalone";return this.monthsCache[o][t]||(this.monthsCache[o][t]=Z2e(i=>this.extract(i,r,"month"))),this.monthsCache[o][t]})}weekdays(t,n=!1){return P1(this,t,Aoe,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},o=n?"format":"standalone";return this.weekdaysCache[o][t]||(this.weekdaysCache[o][t]=e_e(i=>this.extract(i,r,"weekday"))),this.weekdaysCache[o][t]})}meridiems(){return P1(this,void 0,()=>Moe,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[xt.utc(2016,11,13,9),xt.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return P1(this,t,Roe,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[xt.utc(-40,1,1),xt.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[t]})}extract(t,n,r){const o=this.dtFormatter(t,n),i=o.formatToParts(),a=i.find(s=>s.type.toLowerCase()===r);return a?a.value:null}numberFormatter(t={}){return new n_e(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new r_e(t,this.intl,n)}relFormatter(t={}){return new o_e(this.intl,this.isEnglish(),t)}listFormatter(t={}){return q2e(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||poe(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:woe()?Q2e(this.locale):hoe}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let GR=null;class ea extends fw{static get utcInstance(){return GR===null&&(GR=new ea(0)),GR}static instance(t){return t===0?ea.utcInstance:new ea(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new ea(AI(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${ex(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ex(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return ex(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class i_e extends fw{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Yd(e,t){if(mn(e)||e===null)return t;if(e instanceof fw)return e;if(d_e(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?OI.instance:n==="utc"||n==="gmt"?ea.utcInstance:ea.parseSpecifier(n)||qu.create(e)}else return gf(e)?ea.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new i_e(e)}const kB={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},mq={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},a_e=kB.hanidec.replace(/[\[|\]]/g,"").split("");function s_e(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n=i&&r<=a&&(t+=r-i)}}return parseInt(t,10)}else return t}const aL=new Map;function l_e(){aL.clear()}function ml({numberingSystem:e},t=""){const n=e||"latn";let r=aL.get(n);r===void 0&&(r=new Map,aL.set(n,r));let o=r.get(t);return o===void 0&&(o=new RegExp(`${kB[n]}${t}`),r.set(t,o)),o}let gq=()=>Date.now(),yq="system",vq=null,bq=null,xq=null,Sq=60,wq,Cq=null;class to{static get now(){return gq}static set now(t){gq=t}static set defaultZone(t){yq=t}static get defaultZone(){return Yd(yq,OI.instance)}static get defaultLocale(){return vq}static set defaultLocale(t){vq=t}static get defaultNumberingSystem(){return bq}static set defaultNumberingSystem(t){bq=t}static get defaultOutputCalendar(){return xq}static set defaultOutputCalendar(t){xq=t}static get defaultWeekSettings(){return Cq}static set defaultWeekSettings(t){Cq=sL(t)}static get twoDigitCutoffYear(){return Sq}static set twoDigitCutoffYear(t){Sq=t%100}static get throwOnInvalid(){return wq}static set throwOnInvalid(t){wq=t}static resetCaches(){ur.resetCache(),qu.resetCache(),xt.resetCache(),l_e()}}class kl{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const moe=[0,31,59,90,120,151,181,212,243,273,304,334],goe=[0,31,60,91,121,152,182,213,244,274,305,335];function zs(e,t){return new kl("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function _B(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const o=r.getUTCDay();return o===0?7:o}function yoe(e,t,n){return n+(pw(e)?goe:moe)[t-1]}function voe(e,t){const n=pw(e)?goe:moe,r=n.findIndex(i=>iNx(r,t,n)?(c=r+1,l=1):c=r,{weekYear:c,weekNumber:l,weekday:s,...MI(e)}}function Eq(e,t=4,n=1){const{weekYear:r,weekNumber:o,weekday:i}=e,a=$B(_B(r,1,t),n),s=$g(r);let l=o*7+i-a-7+t,c;l<1?(c=r-1,l+=$g(c)):l>s?(c=r+1,l-=$g(r)):c=r;const{month:u,day:f}=voe(c,l);return{year:c,month:u,day:f,...MI(e)}}function qR(e){const{year:t,month:n,day:r}=e,o=yoe(t,n,r);return{year:t,ordinal:o,...MI(e)}}function Tq(e){const{year:t,ordinal:n}=e,{month:r,day:o}=voe(t,n);return{year:t,month:r,day:o,...MI(e)}}function Oq(e,t){if(!mn(e.localWeekday)||!mn(e.localWeekNumber)||!mn(e.localWeekYear)){if(!mn(e.weekday)||!mn(e.weekNumber)||!mn(e.weekYear))throw new mg("Cannot mix locale-based week fields with ISO-based week fields");return mn(e.localWeekday)||(e.weekday=e.localWeekday),mn(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),mn(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function c_e(e,t=4,n=1){const r=II(e.weekYear),o=Vs(e.weekNumber,1,Nx(e.weekYear,t,n)),i=Vs(e.weekday,1,7);return r?o?i?!1:zs("weekday",e.weekday):zs("week",e.weekNumber):zs("weekYear",e.weekYear)}function u_e(e){const t=II(e.year),n=Vs(e.ordinal,1,$g(e.year));return t?n?!1:zs("ordinal",e.ordinal):zs("year",e.year)}function boe(e){const t=II(e.year),n=Vs(e.month,1,12),r=Vs(e.day,1,cT(e.year,e.month));return t?n?r?!1:zs("day",e.day):zs("month",e.month):zs("year",e.year)}function xoe(e){const{hour:t,minute:n,second:r,millisecond:o}=e,i=Vs(t,0,23)||t===24&&n===0&&r===0&&o===0,a=Vs(n,0,59),s=Vs(r,0,59),l=Vs(o,0,999);return i?a?s?l?!1:zs("millisecond",o):zs("second",r):zs("minute",n):zs("hour",t)}function mn(e){return typeof e>"u"}function gf(e){return typeof e=="number"}function II(e){return typeof e=="number"&&e%1===0}function d_e(e){return typeof e=="string"}function f_e(e){return Object.prototype.toString.call(e)==="[object Date]"}function Soe(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function woe(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function p_e(e){return Array.isArray(e)?e:[e]}function Iq(e,t,n){if(e.length!==0)return e.reduce((r,o)=>{const i=[t(o),o];return r&&n(r[0],i[0])===r[0]?r:i},null)[1]}function h_e(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function dy(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function sL(e){if(e==null)return null;if(typeof e!="object")throw new ki("Week settings must be an object");if(!Vs(e.firstDay,1,7)||!Vs(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Vs(t,1,7)))throw new ki("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Vs(e,t,n){return II(e)&&e>=t&&e<=n}function m_e(e,t){return e-t*Math.floor(e/t)}function Ao(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function Hd(e){if(!(mn(e)||e===null||e===""))return parseInt(e,10)}function mp(e){if(!(mn(e)||e===null||e===""))return parseFloat(e)}function NB(e){if(!(mn(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function LB(e,t,n=!1){const r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function pw(e){return e%4===0&&(e%100!==0||e%400===0)}function $g(e){return pw(e)?366:365}function cT(e,t){const n=m_e(t-1,12)+1,r=e+(t-n)/12;return n===2?pw(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function PI(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Pq(e,t,n){return-$B(_B(e,1,t),n)+t-1}function Nx(e,t=4,n=1){const r=Pq(e,t,n),o=Pq(e+1,t,n);return($g(e)-r+o)/7}function lL(e){return e>99?e:e>to.twoDigitCutoffYear?1900+e:2e3+e}function Coe(e,t,n,r=null){const o=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:t,...i},s=new Intl.DateTimeFormat(n,a).formatToParts(o).find(l=>l.type.toLowerCase()==="timezonename");return s?s.value:null}function AI(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,o=n<0||Object.is(n,-0)?-r:r;return n*60+o}function Eoe(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new ki(`Invalid unit value ${e}`);return t}function uT(e,t){const n={};for(const r in e)if(dy(e,r)){const o=e[r];if(o==null)continue;n[t(r)]=Eoe(o)}return n}function ex(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),o=e>=0?"+":"-";switch(t){case"short":return`${o}${Ao(n,2)}:${Ao(r,2)}`;case"narrow":return`${o}${n}${r>0?`:${r}`:""}`;case"techie":return`${o}${Ao(n,2)}${Ao(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function MI(e){return h_e(e,["hour","minute","second","millisecond"])}const g_e=["January","February","March","April","May","June","July","August","September","October","November","December"],Toe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],y_e=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ooe(e){switch(e){case"narrow":return[...y_e];case"short":return[...Toe];case"long":return[...g_e];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Ioe=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Poe=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],v_e=["M","T","W","T","F","S","S"];function Aoe(e){switch(e){case"narrow":return[...v_e];case"short":return[...Poe];case"long":return[...Ioe];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Moe=["AM","PM"],b_e=["Before Christ","Anno Domini"],x_e=["BC","AD"],S_e=["B","A"];function Roe(e){switch(e){case"narrow":return[...S_e];case"short":return[...x_e];case"long":return[...b_e];default:return null}}function w_e(e){return Moe[e.hour<12?0:1]}function C_e(e,t){return Aoe(t)[e.weekday-1]}function E_e(e,t){return Ooe(t)[e.month-1]}function T_e(e,t){return Roe(t)[e.year<0?0:1]}function O_e(e,t,n="always",r=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&i){const f=e==="days";switch(t){case 1:return f?"tomorrow":`next ${o[e][0]}`;case-1:return f?"yesterday":`last ${o[e][0]}`;case 0:return f?"today":`this ${o[e][0]}`}}const a=Object.is(t,-0)||t<0,s=Math.abs(t),l=s===1,c=o[e],u=r?l?c[1]:c[2]||c[1]:l?o[e][0]:e;return a?`${s} ${u} ago`:`in ${s} ${u}`}function Aq(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const I_e={D:sT,DD:Kre,DDD:Yre,DDDD:Qre,t:Xre,tt:Jre,ttt:Zre,tttt:eoe,T:toe,TT:noe,TTT:roe,TTTT:ooe,f:ioe,ff:soe,fff:coe,ffff:doe,F:aoe,FF:loe,FFF:uoe,FFFF:foe};class Li{static create(t,n={}){return new Li(t,n)}static parseFormat(t){let n=null,r="",o=!1;const i=[];for(let a=0;a0&&i.push({literal:o||/^\s+$/.test(r),val:r}),n=null,r="",o=!o):o||s===n?r+=s:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=s,n=s)}return r.length>0&&i.push({literal:o||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(t){return I_e[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return Ao(t,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",o=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(m,g)=>this.loc.extract(t,m,g),a=m=>t.isOffsetFixed&&t.offset===0&&m.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,m.format):"",s=()=>r?w_e(t):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(m,g)=>r?E_e(t,m):i(g?{month:m}:{month:m,day:"numeric"},"month"),c=(m,g)=>r?C_e(t,m):i(g?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),u=m=>{const g=Li.macroTokenToFormatOpts(m);return g?this.formatWithSystemDefault(t,g):m},f=m=>r?T_e(t,m):i({era:m},"era"),h=m=>{switch(m){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return o?i({day:"numeric"},"day"):this.num(t.day);case"dd":return o?i({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return o?i({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return o?i({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return o?i({month:"numeric"},"month"):this.num(t.month);case"MM":return o?i({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return o?i({year:"numeric"},"year"):this.num(t.year);case"yy":return o?i({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return o?i({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return o?i({year:"numeric"},"year"):this.num(t.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(m)}};return Aq(Li.parseFormat(n),h)}formatDurationFromString(t,n){const r=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=l=>c=>{const u=r(c);return u?this.num(l.get(u),c.length):c},i=Li.parseFormat(n),a=i.reduce((l,{literal:c,val:u})=>c?l:l.concat(u),[]),s=t.shiftTo(...a.map(r).filter(l=>l));return Aq(i,o(s))}}const Doe=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function hv(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function mv(...e){return t=>e.reduce(([n,r,o],i)=>{const[a,s,l]=i(t,o);return[{...n,...a},s||r,l]},[{},null,1]).slice(0,2)}function gv(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const o=n.exec(e);if(o)return r(o)}return[null,null]}function koe(...e){return(t,n)=>{const r={};let o;for(o=0;om!==void 0&&(g||m&&u)?-m:m;return[{years:h(mp(n)),months:h(mp(r)),weeks:h(mp(o)),days:h(mp(i)),hours:h(mp(a)),minutes:h(mp(s)),seconds:h(mp(l),l==="-0"),milliseconds:h(NB(c),f)}]}const B_e={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function BB(e,t,n,r,o,i,a){const s={year:t.length===2?lL(Hd(t)):Hd(t),month:Toe.indexOf(n)+1,day:Hd(r),hour:Hd(o),minute:Hd(i)};return a&&(s.second=Hd(a)),e&&(s.weekday=e.length>3?Ioe.indexOf(e)+1:Poe.indexOf(e)+1),s}const z_e=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function V_e(e){const[,t,n,r,o,i,a,s,l,c,u,f]=e,h=BB(t,o,r,n,i,a,s);let m;return l?m=B_e[l]:c?m=0:m=AI(u,f),[h,new ea(m)]}function H_e(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const U_e=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,G_e=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,q_e=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Mq(e){const[,t,n,r,o,i,a,s]=e;return[BB(t,o,r,n,i,a,s),ea.utcInstance]}function W_e(e){const[,t,n,r,o,i,a,s]=e;return[BB(t,s,n,r,o,i,a),ea.utcInstance]}const K_e=hv(A_e,jB),Y_e=hv(M_e,jB),Q_e=hv(R_e,jB),X_e=hv($oe),Loe=mv(N_e,yv,hw,mw),J_e=mv(D_e,yv,hw,mw),Z_e=mv(k_e,yv,hw,mw),e$e=mv(yv,hw,mw);function t$e(e){return gv(e,[K_e,Loe],[Y_e,J_e],[Q_e,Z_e],[X_e,e$e])}function n$e(e){return gv(H_e(e),[z_e,V_e])}function r$e(e){return gv(e,[U_e,Mq],[G_e,Mq],[q_e,W_e])}function o$e(e){return gv(e,[F_e,j_e])}const i$e=mv(yv);function a$e(e){return gv(e,[L_e,i$e])}const s$e=hv(__e,$_e),l$e=hv(Noe),c$e=mv(yv,hw,mw);function u$e(e){return gv(e,[s$e,Loe],[l$e,c$e])}const Rq="Invalid Duration",Foe={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},d$e={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Foe},Ts=146097/400,Wm=146097/4800,f$e={years:{quarters:4,months:12,weeks:Ts/7,days:Ts,hours:Ts*24,minutes:Ts*24*60,seconds:Ts*24*60*60,milliseconds:Ts*24*60*60*1e3},quarters:{months:3,weeks:Ts/28,days:Ts/4,hours:Ts*24/4,minutes:Ts*24*60/4,seconds:Ts*24*60*60/4,milliseconds:Ts*24*60*60*1e3/4},months:{weeks:Wm/7,days:Wm,hours:Wm*24,minutes:Wm*24*60,seconds:Wm*24*60*60,milliseconds:Wm*24*60*60*1e3},...Foe},jp=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],p$e=jp.slice(0).reverse();function Ld(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Xn(r)}function joe(e,t){let n=t.milliseconds??0;for(const r of p$e.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function Dq(e,t){const n=joe(e,t)<0?-1:1;jp.reduceRight((r,o)=>{if(mn(t[o]))return r;if(r){const i=t[r]*n,a=e[o][r],s=Math.floor(i/a);t[o]+=s*n,t[r]-=s*a*n}return o},null),jp.reduce((r,o)=>{if(mn(t[o]))return r;if(r){const i=t[r]%1;t[r]-=i,t[o]+=i*e[r][o]}return o},null)}function h$e(e){const t={};for(const[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}class Xn{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let r=n?f$e:d$e;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||ur.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,n){return Xn.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new ki(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Xn({values:uT(t,Xn.normalizeUnit),loc:ur.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(gf(t))return Xn.fromMillis(t);if(Xn.isDuration(t))return t;if(typeof t=="object")return Xn.fromObject(t);throw new ki(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=o$e(t);return r?Xn.fromObject(r,n):Xn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=a$e(t);return r?Xn.fromObject(r,n):Xn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new ki("need to specify a reason the Duration is invalid");const r=t instanceof kl?t:new kl(t,n);if(to.throwOnInvalid)throw new j2e(r);return new Xn({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new Wre(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?Li.create(this.loc,r).formatDurationFromString(this,t):Rq}toHuman(t={}){if(!this.isValid)return Rq;const n=jp.map(r=>{const o=this.values[r];return mn(o)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:r.slice(0,-1)}).format(o)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=LB(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},xt.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?joe(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Xn.fromDurationLike(t),r={};for(const o of jp)(dy(n.values,o)||dy(this.values,o))&&(r[o]=n.get(o)+this.get(o));return Ld(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=Xn.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=Eoe(t(this.values[r],r));return Ld(this,{values:n},!0)}get(t){return this[Xn.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...uT(t,Xn.normalizeUnit)};return Ld(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r,matrix:o}={}){const a={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:o,conversionAccuracy:r};return Ld(this,a)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Dq(this.matrix,t),Ld(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=h$e(this.normalize().shiftToAll().toObject());return Ld(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(a=>Xn.normalizeUnit(a));const n={},r={},o=this.toObject();let i;for(const a of jp)if(t.indexOf(a)>=0){i=a;let s=0;for(const c in r)s+=this.matrix[c][a]*r[c],r[c]=0;gf(o[a])&&(s+=o[a]);const l=Math.trunc(s);n[a]=l,r[a]=(s*1e3-l*1e3)/1e3}else gf(o[a])&&(r[a]=o[a]);for(const a in r)r[a]!==0&&(n[i]+=a===i?r[a]:r[a]/this.matrix[i][a]);return Dq(this.matrix,n),Ld(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Ld(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,o){return r===void 0||r===0?o===void 0||o===0:r===o}for(const r of jp)if(!n(this.values[r],t.values[r]))return!1;return!0}}const Km="Invalid Interval";function m$e(e,t){return!e||!e.isValid?uo.invalid("missing or invalid start"):!t||!t.isValid?uo.invalid("missing or invalid end"):tt:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?uo.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(n0).filter(a=>this.contains(a)).sort((a,s)=>a.toMillis()-s.toMillis()),r=[];let{s:o}=this,i=0;for(;o+this.e?this.e:a;r.push(uo.fromDateTimes(o,s)),o=s,i+=1}return r}splitBy(t){const n=Xn.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,o=1,i;const a=[];for(;rl*o));i=+s>+this.e?this.e:s,a.push(uo.fromDateTimes(r,i)),r=i,o+=1}return a}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e=r?null:uo.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.st.e?this.e:t.e;return uo.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((o,i)=>o.s-i.s).reduce(([o,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[o,i.union(a)]:[o.concat([i]),a]:[o,a],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const o=[],i=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),a=Array.prototype.concat(...i),s=a.sort((l,c)=>l.time-c.time);for(const l of s)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&o.push(uo.fromDateTimes(n,l.time)),n=null);return uo.merge(o)}difference(...t){return uo.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Km}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=sT,n={}){return this.isValid?Li.create(this.s.loc.clone(n),t).formatInterval(this):Km}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Km}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Km}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Km}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Km}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Xn.invalid(this.invalidReason)}mapEndpoints(t){return uo.fromDateTimes(t(this.s),t(this.e))}}class $0{static hasDST(t=to.defaultZone){const n=xt.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return qu.isValidZone(t)}static normalizeZone(t){return Yd(t,to.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||ur.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||ur.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||ur.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||ur.create(n,r,i)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||ur.create(n,r,i)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:o=null}={}){return(o||ur.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:o=null}={}){return(o||ur.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return ur.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return ur.create(n,null,"gregory").eras(t)}static features(){return{relative:Soe(),localeWeek:woe()}}}function kq(e,t){const n=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Xn.fromMillis(r).as("days"))}function g$e(e,t,n){const r=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const u=kq(l,c);return(u-u%7)/7}],["days",kq]],o={},i=e;let a,s;for(const[l,c]of r)n.indexOf(l)>=0&&(a=l,o[l]=c(e,t),s=i.plus(o),s>t?(o[l]--,e=i.plus(o),e>t&&(s=e,o[l]--,e=i.plus(o))):e=s);return[e,o,s,a]}function y$e(e,t,n,r){let[o,i,a,s]=g$e(e,t,n);const l=t-o,c=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);c.length===0&&(a0?Xn.fromMillis(l,r).shiftTo(...c).plus(u):u}const v$e="missing Intl.DateTimeFormat.formatToParts support";function or(e,t=n=>n){return{regex:e,deser:([n])=>t(s_e(n))}}const b$e=" ",Boe=`[ ${b$e}]`,zoe=new RegExp(Boe,"g");function x$e(e){return e.replace(/\./g,"\\.?").replace(zoe,Boe)}function _q(e){return e.replace(/\./g,"").replace(zoe," ").toLowerCase()}function gl(e,t){return e===null?null:{regex:RegExp(e.map(x$e).join("|")),deser:([n])=>e.findIndex(r=>_q(n)===_q(r))+t}}function $q(e,t){return{regex:e,deser:([,n,r])=>AI(n,r),groups:t}}function A1(e){return{regex:e,deser:([t])=>t}}function S$e(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function w$e(e,t){const n=ml(t),r=ml(t,"{2}"),o=ml(t,"{3}"),i=ml(t,"{4}"),a=ml(t,"{6}"),s=ml(t,"{1,2}"),l=ml(t,"{1,3}"),c=ml(t,"{1,6}"),u=ml(t,"{1,9}"),f=ml(t,"{2,4}"),h=ml(t,"{4,6}"),m=v=>({regex:RegExp(S$e(v.val)),deser:([w])=>w,literal:!0}),y=(v=>{if(e.literal)return m(v);switch(v.val){case"G":return gl(t.eras("short"),0);case"GG":return gl(t.eras("long"),0);case"y":return or(c);case"yy":return or(f,lL);case"yyyy":return or(i);case"yyyyy":return or(h);case"yyyyyy":return or(a);case"M":return or(s);case"MM":return or(r);case"MMM":return gl(t.months("short",!0),1);case"MMMM":return gl(t.months("long",!0),1);case"L":return or(s);case"LL":return or(r);case"LLL":return gl(t.months("short",!1),1);case"LLLL":return gl(t.months("long",!1),1);case"d":return or(s);case"dd":return or(r);case"o":return or(l);case"ooo":return or(o);case"HH":return or(r);case"H":return or(s);case"hh":return or(r);case"h":return or(s);case"mm":return or(r);case"m":return or(s);case"q":return or(s);case"qq":return or(r);case"s":return or(s);case"ss":return or(r);case"S":return or(l);case"SSS":return or(o);case"u":return A1(u);case"uu":return A1(s);case"uuu":return or(n);case"a":return gl(t.meridiems(),0);case"kkkk":return or(i);case"kk":return or(f,lL);case"W":return or(s);case"WW":return or(r);case"E":case"c":return or(n);case"EEE":return gl(t.weekdays("short",!1),1);case"EEEE":return gl(t.weekdays("long",!1),1);case"ccc":return gl(t.weekdays("short",!0),1);case"cccc":return gl(t.weekdays("long",!0),1);case"Z":case"ZZ":return $q(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return $q(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return A1(/[a-z_+-/]{1,256}?/i);case" ":return A1(/[^\S\n\r]/);default:return m(v)}})(e)||{invalidReason:v$e};return y.token=e,y}const C$e={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function E$e(e,t,n){const{type:r,value:o}=e;if(r==="literal"){const l=/^\s+$/.test(o);return{literal:!l,val:l?" ":o}}const i=t[r];let a=r;r==="hour"&&(t.hour12!=null?a=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?a="hour12":a="hour24":a=n.hour12?"hour12":"hour24");let s=C$e[a];if(typeof s=="object"&&(s=s[i]),s)return{literal:!1,val:s}}function T$e(e){return[`^${e.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,e]}function O$e(e,t,n){const r=e.match(t);if(r){const o={};let i=1;for(const a in n)if(dy(n,a)){const s=n[a],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(o[s.token.val[0]]=s.deser(r.slice(i,i+l))),i+=l}return[r,o]}else return[r,{}]}function I$e(e){const t=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return mn(e.z)||(n=qu.create(e.z)),mn(e.Z)||(n||(n=new ea(e.Z)),r=e.Z),mn(e.q)||(e.M=(e.q-1)*3+1),mn(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),mn(e.u)||(e.S=NB(e.u)),[Object.keys(e).reduce((i,a)=>{const s=t(a);return s&&(i[s]=e[a]),i},{}),n,r]}let WR=null;function P$e(){return WR||(WR=xt.fromMillis(1555555555555)),WR}function A$e(e,t){if(e.literal)return e;const n=Li.macroTokenToFormatOpts(e.val),r=Goe(n,t);return r==null||r.includes(void 0)?e:r}function Voe(e,t){return Array.prototype.concat(...e.map(n=>A$e(n,t)))}class Hoe{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=Voe(Li.parseFormat(n),t),this.units=this.tokens.map(r=>w$e(r,t)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,o]=T$e(this.units);this.regex=RegExp(r,"i"),this.handlers=o}}explainFromTokens(t){if(this.isValid){const[n,r]=O$e(t,this.regex,this.handlers),[o,i,a]=r?I$e(r):[null,null,void 0];if(dy(r,"a")&&dy(r,"H"))throw new mg("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:o,zone:i,specificOffset:a}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Uoe(e,t,n){return new Hoe(e,n).explainFromTokens(t)}function M$e(e,t,n){const{result:r,zone:o,specificOffset:i,invalidReason:a}=Uoe(e,t,n);return[r,o,i,a]}function Goe(e,t){if(!e)return null;const r=Li.create(t,e).dtFormatter(P$e()),o=r.formatToParts(),i=r.resolvedOptions();return o.map(a=>E$e(a,e,i))}const KR="Invalid DateTime",R$e=864e13;function N0(e){return new kl("unsupported zone",`the zone "${e.name}" is not supported`)}function YR(e){return e.weekData===null&&(e.weekData=lT(e.c)),e.weekData}function QR(e){return e.localWeekData===null&&(e.localWeekData=lT(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function gp(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new xt({...n,...t,old:n})}function qoe(e,t,n){let r=e-t*60*1e3;const o=n.offset(r);if(t===o)return[r,t];r-=(o-t)*60*1e3;const i=n.offset(r);return o===i?[r,o]:[e-Math.min(o,i)*60*1e3,Math.max(o,i)]}function M1(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function wE(e,t,n){return qoe(PI(e),t,n)}function Nq(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),o=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,i={...e.c,year:r,month:o,day:Math.min(e.c.day,cT(r,o))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},a=Xn.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=PI(i);let[l,c]=qoe(s,n,e.zone);return a!==0&&(l+=a,c=e.zone.offset(l)),{ts:l,o:c}}function Ym(e,t,n,r,o,i){const{setZone:a,zone:s}=n;if(e&&Object.keys(e).length!==0||t){const l=t||s,c=xt.fromObject(e,{...n,zone:l,specificOffset:i});return a?c:c.setZone(s)}else return xt.invalid(new kl("unparsable",`the input "${o}" can't be parsed as ${r}`))}function R1(e,t,n=!0){return e.isValid?Li.create(ur.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function XR(e,t){const n=e.c.year>9999||e.c.year<0;let r="";return n&&e.c.year>=0&&(r+="+"),r+=Ao(e.c.year,n?6:4),t?(r+="-",r+=Ao(e.c.month),r+="-",r+=Ao(e.c.day)):(r+=Ao(e.c.month),r+=Ao(e.c.day)),r}function Lq(e,t,n,r,o,i){let a=Ao(e.c.hour);return t?(a+=":",a+=Ao(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(a+=":")):a+=Ao(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(a+=Ao(e.c.second),(e.c.millisecond!==0||!r)&&(a+=".",a+=Ao(e.c.millisecond,3))),o&&(e.isOffsetFixed&&e.offset===0&&!i?a+="Z":e.o<0?(a+="-",a+=Ao(Math.trunc(-e.o/60)),a+=":",a+=Ao(Math.trunc(-e.o%60))):(a+="+",a+=Ao(Math.trunc(e.o/60)),a+=":",a+=Ao(Math.trunc(e.o%60)))),i&&(a+="["+e.zone.ianaName+"]"),a}const Woe={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},D$e={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},k$e={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Koe=["year","month","day","hour","minute","second","millisecond"],_$e=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],$$e=["year","ordinal","hour","minute","second","millisecond"];function N$e(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new Wre(e);return t}function Fq(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return N$e(e)}}function L$e(e){if(L0===void 0&&(L0=to.now()),e.type!=="iana")return e.offset(L0);const t=e.name;let n=cL.get(t);return n===void 0&&(n=e.offset(L0),cL.set(t,n)),n}function jq(e,t){const n=Yd(t.zone,to.defaultZone);if(!n.isValid)return xt.invalid(N0(n));const r=ur.fromObject(t);let o,i;if(mn(e.year))o=to.now();else{for(const l of Koe)mn(e[l])&&(e[l]=Woe[l]);const a=boe(e)||xoe(e);if(a)return xt.invalid(a);const s=L$e(n);[o,i]=wE(e,s,n)}return new xt({ts:o,zone:n,loc:r,o:i})}function Bq(e,t,n){const r=mn(n.round)?!0:n.round,o=(a,s)=>(a=LB(a,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(a,s)),i=a=>n.calendary?t.hasSame(e,a)?0:t.startOf(a).diff(e.startOf(a),a).get(a):t.diff(e,a).get(a);if(n.unit)return o(i(n.unit),n.unit);for(const a of n.units){const s=i(a);if(Math.abs(s)>=1)return o(s,a)}return o(e>t?-0:0,n.units[n.units.length-1])}function zq(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let L0;const cL=new Map;class xt{constructor(t){const n=t.zone||to.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new kl("invalid input"):null)||(n.isValid?null:N0(n));this.ts=mn(t.ts)?to.now():t.ts;let o=null,i=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[o,i]=[t.old.c,t.old.o];else{const s=gf(t.o)&&!t.old?t.o:n.offset(this.ts);o=M1(this.ts,s),r=Number.isNaN(o.year)?new kl("invalid input"):null,o=r?null:o,i=r?null:s}this._zone=n,this.loc=t.loc||ur.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=o,this.o=i,this.isLuxonDateTime=!0}static now(){return new xt({})}static local(){const[t,n]=zq(arguments),[r,o,i,a,s,l,c]=n;return jq({year:r,month:o,day:i,hour:a,minute:s,second:l,millisecond:c},t)}static utc(){const[t,n]=zq(arguments),[r,o,i,a,s,l,c]=n;return t.zone=ea.utcInstance,jq({year:r,month:o,day:i,hour:a,minute:s,second:l,millisecond:c},t)}static fromJSDate(t,n={}){const r=f_e(t)?t.valueOf():NaN;if(Number.isNaN(r))return xt.invalid("invalid input");const o=Yd(n.zone,to.defaultZone);return o.isValid?new xt({ts:r,zone:o,loc:ur.fromObject(n)}):xt.invalid(N0(o))}static fromMillis(t,n={}){if(gf(t))return t<-864e13||t>R$e?xt.invalid("Timestamp out of range"):new xt({ts:t,zone:Yd(n.zone,to.defaultZone),loc:ur.fromObject(n)});throw new ki(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(gf(t))return new xt({ts:t*1e3,zone:Yd(n.zone,to.defaultZone),loc:ur.fromObject(n)});throw new ki("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=Yd(n.zone,to.defaultZone);if(!r.isValid)return xt.invalid(N0(r));const o=ur.fromObject(n),i=uT(t,Fq),{minDaysInFirstWeek:a,startOfWeek:s}=Oq(i,o),l=to.now(),c=mn(n.specificOffset)?r.offset(l):n.specificOffset,u=!mn(i.ordinal),f=!mn(i.year),h=!mn(i.month)||!mn(i.day),m=f||h,g=i.weekYear||i.weekNumber;if((m||u)&&g)throw new mg("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&u)throw new mg("Can't mix ordinal dates with month/day");const y=g||i.weekday&&!m;let v,w,C=M1(l,c);y?(v=_$e,w=D$e,C=lT(C,a,s)):u?(v=$$e,w=k$e,C=qR(C)):(v=Koe,w=Woe);let E=!1;for(const A of v){const _=i[A];mn(_)?E?i[A]=w[A]:i[A]=C[A]:E=!0}const I=y?c_e(i,a,s):u?u_e(i):boe(i),O=I||xoe(i);if(O)return xt.invalid(O);const P=y?Eq(i,a,s):u?Tq(i):i,[R,D]=wE(P,c,r),M=new xt({ts:R,zone:r,o:D,loc:o});return i.weekday&&m&&t.weekday!==M.weekday?xt.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${M.toISO()}`):M.isValid?M:xt.invalid(M.invalid)}static fromISO(t,n={}){const[r,o]=t$e(t);return Ym(r,o,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,o]=n$e(t);return Ym(r,o,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,o]=r$e(t);return Ym(r,o,n,"HTTP",n)}static fromFormat(t,n,r={}){if(mn(t)||mn(n))throw new ki("fromFormat requires an input string and a format");const{locale:o=null,numberingSystem:i=null}=r,a=ur.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0}),[s,l,c,u]=M$e(a,t,n);return u?xt.invalid(u):Ym(s,l,r,`format ${n}`,t,c)}static fromString(t,n,r={}){return xt.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,o]=u$e(t);return Ym(r,o,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new ki("need to specify a reason the DateTime is invalid");const r=t instanceof kl?t:new kl(t,n);if(to.throwOnInvalid)throw new L2e(r);return new xt({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const r=Goe(t,ur.fromObject(n));return r?r.map(o=>o?o.val:null).join(""):null}static expandFormat(t,n={}){return Voe(Li.parseFormat(t),ur.fromObject(n)).map(o=>o.val).join("")}static resetCache(){L0=void 0,cL.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?YR(this).weekYear:NaN}get weekNumber(){return this.isValid?YR(this).weekNumber:NaN}get weekday(){return this.isValid?YR(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?QR(this).weekday:NaN}get localWeekNumber(){return this.isValid?QR(this).weekNumber:NaN}get localWeekYear(){return this.isValid?QR(this).weekYear:NaN}get ordinal(){return this.isValid?qR(this.c).ordinal:NaN}get monthShort(){return this.isValid?$0.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?$0.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?$0.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?$0.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,r=PI(this.c),o=this.zone.offset(r-t),i=this.zone.offset(r+t),a=this.zone.offset(r-o*n),s=this.zone.offset(r-i*n);if(a===s)return[this];const l=r-a*n,c=r-s*n,u=M1(l,a),f=M1(c,s);return u.hour===f.hour&&u.minute===f.minute&&u.second===f.second&&u.millisecond===f.millisecond?[gp(this,{ts:l}),gp(this,{ts:c})]:[this]}get isInLeapYear(){return pw(this.year)}get daysInMonth(){return cT(this.year,this.month)}get daysInYear(){return this.isValid?$g(this.year):NaN}get weeksInWeekYear(){return this.isValid?Nx(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Nx(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:o}=Li.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:o}}toUTC(t=0,n={}){return this.setZone(ea.instance(t),n)}toLocal(){return this.setZone(to.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=Yd(t,to.defaultZone),t.equals(this.zone))return this;if(t.isValid){let o=this.ts;if(n||r){const i=t.offset(this.ts),a=this.toObject();[o]=wE(a,i,t)}return gp(this,{ts:o,zone:t})}else return xt.invalid(N0(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const o=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return gp(this,{loc:o})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=uT(t,Fq),{minDaysInFirstWeek:r,startOfWeek:o}=Oq(n,this.loc),i=!mn(n.weekYear)||!mn(n.weekNumber)||!mn(n.weekday),a=!mn(n.ordinal),s=!mn(n.year),l=!mn(n.month)||!mn(n.day),c=s||l,u=n.weekYear||n.weekNumber;if((c||a)&&u)throw new mg("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&a)throw new mg("Can't mix ordinal dates with month/day");let f;i?f=Eq({...lT(this.c,r,o),...n},r,o):mn(n.ordinal)?(f={...this.toObject(),...n},mn(n.day)&&(f.day=Math.min(cT(f.year,f.month),f.day))):f=Tq({...qR(this.c),...n});const[h,m]=wE(f,this.o,this.zone);return gp(this,{ts:h,o:m})}plus(t){if(!this.isValid)return this;const n=Xn.fromDurationLike(t);return gp(this,Nq(this,n))}minus(t){if(!this.isValid)return this;const n=Xn.fromDurationLike(t).negate();return gp(this,Nq(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},o=Xn.normalizeUnit(t);switch(o){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(o==="weeks")if(n){const i=this.loc.getStartOfWeek(),{weekday:a}=this;athis.valueOf(),s=a?this:t,l=a?t:this,c=y$e(s,l,i,o);return a?c.negate():c}diffNow(t="milliseconds",n={}){return this.diff(xt.now(),t,n)}until(t){return this.isValid?uo.fromDateTimes(this,t):this}hasSame(t,n,r){if(!this.isValid)return!1;const o=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(n,r)<=o&&o<=i.endOf(n,r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||xt.fromObject({},{zone:this.zone}),r=t.padding?thisn.valueOf(),Math.min)}static max(...t){if(!t.every(xt.isDateTime))throw new ki("max requires all arguments be DateTimes");return Iq(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:o=null,numberingSystem:i=null}=r,a=ur.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0});return Uoe(a,t,n)}static fromStringExplain(t,n,r={}){return xt.fromFormatExplain(t,n,r)}static buildFormatParser(t,n={}){const{locale:r=null,numberingSystem:o=null}=n,i=ur.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0});return new Hoe(i,t)}static fromFormatParser(t,n,r={}){if(mn(t)||mn(n))throw new ki("fromFormatParser requires an input string and a format parser");const{locale:o=null,numberingSystem:i=null}=r,a=ur.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0});if(!a.equals(n.locale))throw new ki(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${n.locale}`);const{result:s,zone:l,specificOffset:c,invalidReason:u}=n.explainFromTokens(t);return u?xt.invalid(u):Ym(s,l,r,`format ${n.format}`,t,c)}static get DATE_SHORT(){return sT}static get DATE_MED(){return Kre}static get DATE_MED_WITH_WEEKDAY(){return B2e}static get DATE_FULL(){return Yre}static get DATE_HUGE(){return Qre}static get TIME_SIMPLE(){return Xre}static get TIME_WITH_SECONDS(){return Jre}static get TIME_WITH_SHORT_OFFSET(){return Zre}static get TIME_WITH_LONG_OFFSET(){return eoe}static get TIME_24_SIMPLE(){return toe}static get TIME_24_WITH_SECONDS(){return noe}static get TIME_24_WITH_SHORT_OFFSET(){return roe}static get TIME_24_WITH_LONG_OFFSET(){return ooe}static get DATETIME_SHORT(){return ioe}static get DATETIME_SHORT_WITH_SECONDS(){return aoe}static get DATETIME_MED(){return soe}static get DATETIME_MED_WITH_SECONDS(){return loe}static get DATETIME_MED_WITH_WEEKDAY(){return z2e}static get DATETIME_FULL(){return coe}static get DATETIME_FULL_WITH_SECONDS(){return uoe}static get DATETIME_HUGE(){return doe}static get DATETIME_HUGE_WITH_SECONDS(){return foe}}function n0(e){if(xt.isDateTime(e))return e;if(e&&e.valueOf&&gf(e.valueOf()))return xt.fromJSDate(e);if(e&&typeof e=="object")return xt.fromObject(e);throw new ki(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const Vq=3,Hq=25,Uq=1e3,Gq=1,qq=16,F$e=12;class j$e{constructor(t){Ce(this,"id");Ce(this,"name");Ce(this,"description");Ce(this,"created");Ce(this,"start");Ce(this,"end");Ce(this,"fitInWeek");Ce(this,"isTemplate");Ce(this,"isPublic");Ce(this,"days",[]);Ce(this,"dayData",[]);this.id=t.id,this.name=t.name,this.description=t.description,this.created=t.created,this.start=t.start,this.end=t.end,this.fitInWeek=t.fitInWeek,this.isTemplate=t.isTemplate??!1,this.isPublic=t.isPublic??!1,this.days=t.days??[],this.dayData=t.dayData??[]}get exercises(){return this.days.flatMap(t=>t.slots.flatMap(n=>n.entries.flatMap(r=>r.exercise)))}get dayDataCurrentIteration(){const t=this.getIteration()??1;return this.dayData.filter(n=>n.iteration===t)}get groupedDayDataByIteration(){const t={};for(const n of this.dayData)t[n.iteration]||(t[n.iteration]=[]),t[n.iteration].push(n);return t}get duration(){const t=xt.fromJSDate(this.end).diff(xt.fromJSDate(this.start),["weeks","days"]),n=Math.floor(t.weeks),r=Math.floor(t.days);return{weeks:n,days:r}}get durationText(){const t=this.duration.days,n=this.duration.weeks;return t===0?hr.t("durationWeeks",{number:n}):hr.t("durationWeeksDays",{nrWeeks:n,nrDays:t})}get mainMuscles(){return this.days.flatMap(n=>n.slots.flatMap(r=>r.entries.flatMap(o=>{var i;return((i=o.exercise)==null?void 0:i.muscles)||[]}))).filter((n,r,o)=>r===o.findIndex(i=>i.id===n.id))}get secondaryMuscles(){return this.days.flatMap(n=>n.slots.flatMap(r=>r.entries.flatMap(o=>{var i;return((i=o.exercise)==null?void 0:i.musclesSecondary)||[]}))).filter((n,r,o)=>r===o.findIndex(i=>i.id===n.id))}get cycleLength(){return this.dayDataCurrentIteration.length}getIteration(t){const n=t??new Date,r=this.dayData.find(o=>xa(o.date,n));return r?r.iteration:null}getSetConfigData(t,n,r){const o=this.dayData.find(a=>{var s;return((s=a.day)==null?void 0:s.id)===t&&a.iteration===n});if(!o)return null;const i=o.slots.find(a=>a.setConfigs.some(s=>s.slotEntryId===r));return(i==null?void 0:i.setConfigs.find(a=>a.slotEntryId===r))||null}getDayData(t,n){return this.dayData.filter(r=>{var o;return((o=r.day)==null?void 0:o.id)===t&&r.date.getDate()===n.getDate()&&r.date.getMonth()===n.getMonth()&&r.date.getFullYear()===n.getFullYear()})}}class B$e{fromJson(t){return new j$e({id:t.id,name:t.name,description:t.description,created:new Date(t.created),start:new Date(t.start),end:new Date(t.end),fitInWeek:t.fit_in_week,isTemplate:t.is_template,isPublic:t.is_public,days:t.days?t.days.map(n=>new Ure(n)):[]})}toJson(t){return{id:t.id,name:t.name,description:t.description,start:Jn(t.start),end:Jn(t.end),fit_in_week:t.fitInWeek}}}const vv=new B$e;class z$e{constructor(t){Ce(this,"exercise");Ce(this,"weightUnit",null);Ce(this,"repetitionsUnit",null);Ce(this,"exerciseId");Ce(this,"slotEntryId");Ce(this,"type");Ce(this,"nrOfSets");Ce(this,"maxNrOfSets");Ce(this,"weight");Ce(this,"maxWeight");Ce(this,"weightUnitId",null);Ce(this,"weightRounding",null);Ce(this,"repetitions");Ce(this,"maxRepetitions");Ce(this,"repetitionsUnitId",null);Ce(this,"repetitionsRounding",null);Ce(this,"rir");Ce(this,"maxRir");Ce(this,"rpe");Ce(this,"restTime");Ce(this,"maxRestTime");Ce(this,"textRepr");Ce(this,"comment");this.exerciseId=t.exerciseId,this.exercise=t.exercise,this.slotEntryId=t.slotEntryId,this.type=t.type,this.nrOfSets=t.nrOfSets,this.maxNrOfSets=t.maxNrOfSets??null,this.weight=t.weight??null,this.maxWeight=t.maxWeight??null,this.weightUnitId=t.weightUnitId,this.weightUnit=t.weightUnit??null,this.weightRounding=t.weightRounding,this.repetitions=t.repetitions??null,this.maxRepetitions=t.maxRepetitions??null,this.repetitionsUnitId=t.repetitionsUnitId,this.repetitionsUnit=t.repetitionsUnit??null,this.repetitionsRounding=t.repetitionsRounding,this.rir=t.rir??null,this.maxRir=t.maxRir??null,this.rpe=t.rpe??null,this.restTime=t.restTime??null,this.maxRestTime=t.maxRestTime??null,this.textRepr=t.textRepr,this.comment=t.comment}get isSpecialType(){return this.type!=="normal"}}class V$e{constructor(){Ce(this,"fromJson",t=>new z$e({exerciseId:t.exercise,slotEntryId:t.slot_entry_id,type:t.type,nrOfSets:t.sets,maxNrOfSets:t.max_sets!==null?parseInt(t.max_sets):null,weight:t.weight!==null?parseFloat(t.weight):null,maxWeight:t.max_weight!==null?parseFloat(t.max_weight):null,weightUnitId:t.weight_unit,weightRounding:t.weight_rounding!==null?parseFloat(t.weight_rounding):null,repetitions:t.repetitions!==null?parseFloat(t.repetitions):null,maxRepetitions:t.max_repetitions!==null?parseFloat(t.max_repetitions):null,repetitionsUnitId:t.repetitions_unit,repetitionsRounding:t.repetitions_rounding!==null?parseFloat(t.repetitions_rounding):null,rir:t.rir!==null?parseFloat(t.rir):null,maxRir:t.max_rir!==null?parseFloat(t.max_rir):null,rpe:t.rpe!==null?parseFloat(t.rpe):null,restTime:t.rest!==null?parseInt(t.rest):null,maxRestTime:t.max_rest!==null?parseInt(t.max_rest):null,textRepr:t.text_repr,comment:t.comment}))}}class H$e{constructor(t,n,r,o,i){Ce(this,"exercises",[]);this.comment=t,this.isSuperset=n,this.exerciseIds=r,this.setConfigs=o,this.exercises=i??[]}}class U$e{constructor(){Ce(this,"fromJson",t=>new H$e(t.comment,t.is_superset,t.exercises,t.sets.map(n=>new V$e().fromJson(n))))}}class G$e{constructor(t,n,r,o,i){Ce(this,"slots",[]);this.iteration=t,this.date=n,this.label=r,this.day=o,this.slots=i??[]}}class q$e{constructor(){Ce(this,"fromJson",t=>new G$e(t.iteration,new Date(t.date),t.label,t.day!=null?new TI().fromJson(t.day):null,t.slots.map(n=>new U$e().fromJson(n))))}}class W$e{constructor(t){Ce(this,"id");Ce(this,"date");Ce(this,"iteration");Ce(this,"exerciseId");Ce(this,"slotEntryId");Ce(this,"sessionId");Ce(this,"routineId");Ce(this,"repetitionUnitObj");Ce(this,"repetitionUnitId");Ce(this,"repetitions");Ce(this,"repetitionsTarget");Ce(this,"weightUnitObj");Ce(this,"weightUnitId");Ce(this,"weight");Ce(this,"weightTarget");Ce(this,"rir");Ce(this,"rirTarget");Ce(this,"restTime");Ce(this,"restTimeTarget");Ce(this,"exerciseObj");this.id=t.id,this.date=typeof t.date=="string"?new Date(t.date):t.date,this.iteration=t.iteration,this.slotEntryId=t.slotEntryId,this.sessionId=t.sessionId||null,this.routineId=t.routineId||null,this.exerciseObj=t.exercise,this.exerciseId=t.exerciseId,this.repetitionUnitObj=t.repetitionsUnit||null,this.repetitionUnitId=t.repetitionsUnitId||null,this.repetitions=t.repetitions,this.repetitionsTarget=t.repetitionsTarget||null,this.weightUnitObj=t.weightUnit||null,this.weightUnitId=t.weightUnitId||null,this.weight=t.weight,this.weightTarget=t.weightTarget||null,this.rir=t.rir,this.rirTarget=t.rirTarget||null,this.restTime=t.restTime||null,this.restTimeTarget=t.restTimeTarget||null}get rirString(){return this.rir===null?"-/-":this.rir.toString()}}class RI{constructor(){Ce(this,"fromJson",t=>new W$e({id:t.id,date:t.date,iteration:t.iteration,exerciseId:t.exercise,slotEntryId:t.slot_entry,sessionId:t.session,routineId:t.routine,repetitionsUnitId:t.repetitions_unit,repetitions:t.repetitions===null?null:Number.parseFloat(t.repetitions),repetitionsTarget:t.repetitions_target===null?null:Number.parseFloat(t.repetitions_target),weightUnitId:t.weight_unit,weight:t.weight===null?null:Number.parseFloat(t.weight),weightTarget:t.weight_target===null?null:Number.parseFloat(t.weight_target),rir:t.rir===null?null:Number.parseFloat(t.rir),rirTarget:t.rir_target===null?null:Number.parseFloat(t.rir_target),restTime:t.rest,restTimeTarget:t.rest_target}));Ce(this,"toJson",t=>({id:t.id,iteration:t.iteration,date:t.date.toISOString(),slot_entry:t.slotEntryId,exercise:t.exerciseId,routine:t.routineId,repetitions_unit:t.repetitionUnitId,repetitions:t.repetitions,repetitions_target:t.repetitionsTarget,weight_unit:t.weightUnitId,weight:t.weight,weight_target:t.weightTarget,rir:t.rir,rir_target:t.rirTarget,rest:t.restTime,rest_target:t.restTimeTarget}))}}const Wq=1e3,uL="1",cg="2",dL="3";class K$e{constructor(t){Ce(this,"id");Ce(this,"dayId");Ce(this,"routineId");Ce(this,"date");Ce(this,"notes");Ce(this,"impression");Ce(this,"timeStart");Ce(this,"timeEnd");Ce(this,"dayObj");Ce(this,"logs",[]);this.id=t.id,this.dayId=t.dayId,this.routineId=t.routineId,this.date=t.date,this.notes=t.notes,this.impression=t.impression,this.timeStart=t.timeStart,this.timeEnd=t.timeEnd,t.dayObj&&(this.dayObj=t.dayObj),this.logs=t.logs??[]}get impressionString(){switch(this.impression){case uL:return hr.t("routines.impressionBad");case cg:return hr.t("routines.impressionNeutral");case dL:return hr.t("routines.impressionGood");default:return""}}get textRepresentation(){const t=this.timeStart&&this.timeEnd?`${this.timeStart.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})} - ${this.timeEnd.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})} /`:"",n=this.notes??"";return`${this.impressionString} ${t} ${n}`}}class gw{constructor(){Ce(this,"fromJson",t=>new K$e({id:t.id,dayId:t.day,routineId:t.routine,date:new Date(t.date),notes:t.notes!==void 0?t.notes:null,impression:t.impression,timeStart:t.time_start!==void 0?VN(t.time_start):null,timeEnd:t.time_end!==void 0?VN(t.time_end):null,dayObj:t.dayObj,logs:t.logs}));Ce(this,"toJson",t=>({id:t.id,day:t.dayId,date:Jn(t.date),routine:t.routineId,notes:t.notes,impression:t.impression,time_start:Dx(t.timeStart),time_end:Dx(t.timeEnd)}))}}class Y$e{constructor(t,n){this.session=t,this.logs=n}}class Q$e{constructor(){Ce(this,"fromJson",t=>new Y$e(new gw().fromJson(t.session),t.logs.map(n=>new RI().fromJson(n))))}}class X$e{constructor(t,n){Ce(this,"id");Ce(this,"name");this.id=t,this.name=n}}class J$e{fromJson(t){return new X$e(t.id,t.name)}toJson(t){return{}}}class Z$e{constructor(t,n){Ce(this,"id");Ce(this,"name");this.id=t,this.name=n}}class eNe{fromJson(t){return new Z$e(t.id,t.name)}toJson(t){return{}}}const tNe="setting-repetitionunit",nNe="setting-weightunit",Yoe=async()=>{const e=ft(tNe),{data:t}=await it.get(e,{headers:ht()}),n=new J$e;return t.results.map(r=>n.fromJson(r))},Qoe=async()=>{const e=ft(nNe),{data:t}=await it.get(e,{headers:ht()}),n=new eNe;return t.results.map(r=>n.fromJson(r))},rNe="structure",oNe="logs",iNe="stats",aNe="date-sequence-display",D1={},Xoe=async e=>{var f;const t=await it.get(ft(St.ROUTINE,{id:e}),{headers:ht()}),n=vv.fromJson(t.data),r=await Promise.all([Yoe(),Qoe(),mNe(e),gNe(e)]),o=r[0],i=r[1],a=r[2],s=r[3],l=new Set;for(const h of a.filter(m=>m.day!==null&&m.iteration===1))for(const m of h.slots)for(const g of m.setConfigs)l.add(g.exerciseId);const c=Array.from(l).map(h=>pv(h));(await Promise.all(c)).forEach(h=>{D1[h.id]=h});for(const h of a)for(const m of h.slots){for(const g of m.setConfigs)g.exercise=D1[g.exerciseId],g.repetitionsUnitId!==null&&(g.repetitionsUnit=o.find(y=>y.id===g.repetitionsUnitId)??null),g.weightUnitId!==null&&(g.weightUnit=i.find(y=>y.id===g.weightUnitId)??null);for(const g of m.exerciseIds)(f=m.exercises)==null||f.push(D1[g])}for(const h of s)for(const m of h.slots)for(const g of m.entries)g.exercise=D1[g.exerciseId],g.repetitionUnitId!==null&&(g.repetitionUnit=o.find(y=>y.id===g.repetitionUnitId)??null),g.weightUnitId!==null&&(g.weightUnit=i.find(y=>y.id===g.weightUnitId)??null);return n.dayData=a,n.days=s,n},sNe=async()=>{const e=ft(St.ROUTINE,{query:{limit:"1",is_template:!1}}),t=await it.get(e,{headers:ht()});return t.data.count===0?null:await Xoe(t.data.results[0].id)},lNe=async e=>await Xoe(e),cNe=async()=>{const e=ft(St.ROUTINE,{query:{is_public:!1}});return(await it.get(e,{headers:ht()})).data.results.map(n=>vv.fromJson(n))},uNe=async()=>{const e=ft(St.PRIVATE_TEMPLATE);return(await it.get(e,{headers:ht()})).data.results.map(n=>vv.fromJson(n))},dNe=async()=>{const e=ft(St.PUBLIC_TEMPLATE);return(await it.get(e,{headers:ht()})).data.results.map(n=>vv.fromJson(n))},fNe=async e=>{const t=await it.post(ft(St.ROUTINE),e,{headers:ht()});return vv.fromJson(t.data)},pNe=async e=>{const t=await it.patch(ft(St.ROUTINE,{id:e.id}),e,{headers:ht()});return vv.fromJson(t.data)},hNe=async e=>(await it.delete(ft(St.ROUTINE,{id:e}),{headers:ht()})).status,mNe=async e=>{const t=await it.get(ft(St.ROUTINE,{id:e,objectMethod:aNe}),{headers:ht()}),n=new q$e;return t.data.map(r=>n.fromJson(r))},gNe=async e=>{const t=await it.get(ft(St.ROUTINE,{id:e,objectMethod:rNe}),{headers:ht()}),n=new TI;return t.data.days.map(r=>n.fromJson(r))},yNe=async e=>{const t=await it.get(ft(St.ROUTINE,{id:e,objectMethod:oNe}),{headers:ht()}),n=new Q$e;return t.data.map(r=>n.fromJson(r))},vNe=async e=>{const t=await it.get(ft(St.ROUTINE,{id:e,objectMethod:iNe}),{headers:ht()});return new N2e().fromJson(t.data)};class bNe{constructor(t,n,r,o){Ce(this,"entries",[]);this.id=t,this.name=n,this.unit=r,o&&(this.entries=o)}}class DI{fromJson(t){return new bNe(t.id,t.name,t.unit)}toJson(t){return{id:t.id,name:t.name,unit:t.unit}}}class xNe{constructor(t,n,r,o,i){this.id=t,this.category=n,this.date=r,this.value=o,this.notes=i}}class kI{fromJson(t){return new xNe(t.id,t.category,new Date(t.date),t.value,t.notes)}toJson(t){return{id:t.id,category:t.category,date:t.date,value:t.value,notes:t.notes}}}async function*xh(e,t){for(t==null&&(t=ht());;){const r=(await it.get(e,{headers:t})).data;if(yield r.results,e=r.next,!e)break}}const yw="measurement-category",vw="measurement",SNe=async e=>{const{filtersetQueryCategories:t={},filtersetQueryEntries:n={}}=e||{},r=new DI,o=new kI,i=[];for await(const c of xh(ft(yw,{query:{...t}}),ht()))for(const u of c)i.push(r.fromJson(u));const a=i.map(async c=>{const u=[],f=ft(vw,{query:{category:c.id,...n}});for await(const h of xh(f,ht()))for(const m of h)u.push(o.fromJson(m));return u}),s=await Promise.all(a);let l;return s.forEach(c=>{c.length>0&&(l=c[0].category,i.findLast(u=>u.id===l).entries=c)}),i},wNe=async e=>{const{data:t}=await it.get(ft(yw,{id:e}),{headers:ht()}),n=new DI().fromJson(t),r=new kI,o=[],i=ft(vw,{query:{category:n.id}});for await(const a of xh(i,ht()))for(const s of a)o.push(r.fromJson(s));return n.entries=o,n},CNe=async e=>{const t=await it.post(ft(yw),{name:e.name,unit:e.unit},{headers:ht()});return new DI().fromJson(t.data)},ENe=async e=>{const t=await it.patch(ft(yw,{id:e.id}),{name:e.name,unit:e.unit},{headers:ht()});return new DI().fromJson(t.data)},TNe=async e=>{await it.delete(ft(yw,{id:e}),{headers:ht()})},ONe=async e=>{await it.delete(ft(vw,{id:e}),{headers:ht()})},INe=async e=>{const t=await it.patch(ft(vw,{id:e.id}),{date:Jn(e.date),value:e.value,notes:e.notes},{headers:ht()});return new kI().fromJson(t.data)},PNe=async e=>{const t=await it.post(ft(vw),{category:e.categoryId,date:Jn(e.date),value:e.value,notes:e.notes},{headers:ht()});return new kI().fromJson(t.data)};class ANe{constructor(t,n,r,o,i,a,s,l){this.id=t,this.uuid=n,this.url=r,this.created=o,this.lastUpdate=i,this.size=a,this.width=s,this.height=l}}class MNe{fromJson(t){return new ANe(t.id,t.uuid,t.image,new Date(t.created),new Date(t.last_update),t.size,t.width,t.height)}}class RNe{constructor(t,n,r,o,i,a,s,l,c,u,f,h,m=null){this.id=t,this.uuid=n,this.code=r,this.name=o,this.energy=i,this.protein=a,this.carbohydrates=s,this.carbohydratesSugar=l,this.fat=c,this.fatSaturated=u,this.fiber=f,this.sodium=h,this.image=m}}class Joe{fromJson(t){return new RNe(t.id,t.uuid,t.code,t.name,t.energy,parseFloat(t.protein),parseFloat(t.carbohydrates),t.carbohydrates_sugar===null?null:parseFloat(t.carbohydrates_sugar),parseFloat(t.fat),t.fat_saturated===null?null:parseFloat(t.fat_saturated),t.fiber===null?null:parseFloat(t.fiber),t.sodium===null?null:parseFloat(t.sodium),t.image===null?null:new MNe().fromJson(t.image))}}const DNe=async e=>{const{data:t}=await it.get(ft(St.INGREDIENT_PATH,{id:e}),{headers:ht()});return new Joe().fromJson(t)},Zoe=async e=>{if(e.length===0)return[];const t=ft(St.INGREDIENT_PATH,{query:{id__in:e.join(",")}}),n=new Joe,r=[];for await(const o of xh(t,ht()))for(const i of o)r.push(n.fromJson(i));return r},kNe=async(e,t,n=!0)=>{const r=[t];t!==uy&&n&&r.push(uy);const o=ft(St.INGREDIENT_SEARCH_PATH,{query:{term:e,language:r.join(",")}}),{data:i}=await it.get(o);return i.suggestions};class _Ne{constructor(t,n,r,o,i,a,s){Ce(this,"ingredient",null);Ce(this,"weightUnit",null);this.id=t,this.ingredientId=n,this.weightUnitId=r,this.amount=o,this.order=i,a&&(this.ingredient=a),s&&(this.weightUnit=s)}get amountString(){var t;return this.amount.toFixed().toString()+(this.weightUnitId!==null?` ${(t=this.weightUnit)==null?void 0:t.name}`:"g")}get nutritionalValues(){return this.ingredient?qa.fromIngredient(this.ingredient,this.amount,this.weightUnit):new qa}}class zB{fromJson(t){return new _Ne(t.id,t.ingredient,t.weight_unit,parseFloat(t.amount),t.order)}toJson(t){return{ingredient:t.ingredientId,weight_unit:t.weightUnitId,amount:t.amount.toString(),order:t.order}}}const $Ne=async e=>{const t=await it.post(ft(St.MEAL_ITEM),e,{headers:ht()});return new zB().fromJson(t.data)},NNe=async e=>{const t=await it.patch(ft(St.MEAL_ITEM,{id:e.id}),e,{headers:ht()});return new zB().fromJson(t.data)},LNe=async e=>{await it.delete(ft(St.MEAL_ITEM,{id:e}),{headers:ht()})};class FNe{constructor(t,n,r,o=""){this.id=t,this.amount=n,this.grams=r,this.name=o}}class jNe{fromJson(t){return new FNe(t.id,parseFloat(t.amount),t.gram)}}const eie=async e=>{if(e===null)return null;const{data:t}=await it.get(ft(St.INGREDIENT_WEIGHT_UNIT,{id:e}),{headers:ht()});return new jNe().fromJson(t)},BNe=async e=>{const t=await it.post(ft(St.MEAL),e,{headers:ht()});return new xB().fromJson(t.data)},zNe=async e=>{const t=await it.patch(ft(St.MEAL,{id:e.id}),e,{headers:ht()});return new xB().fromJson(t.data)},VNe=async e=>{await it.delete(ft(St.MEAL,{id:e}),{headers:ht()})},HNe=async e=>{let t=[];const n=new xB,r=new zB,{data:o}=await it.get(ft(St.MEAL,{query:{plan:e}}),{headers:ht()}),i=o.results.map(a=>n.fromJson(a));for(const a of i){t=[];const{data:s}=await it.get(ft(St.MEAL_ITEM,{query:{meal:a.id}}),{headers:ht()}),l=s.results.map(u=>r.fromJson(u));for(const u of l)t.push(u.ingredientId);const c=await Zoe(t);for(const u of l)u.weightUnit=await eie(u.weightUnitId),u.ingredient=c.find(f=>f.id===u.ingredientId);a.items=l}return i},UNe=async e=>(await it.delete(ft(St.WORKOUT_LOG,{id:e}),{headers:ht()})).status,GNe=async e=>{const t=new RI,n=await it.patch(ft(St.WORKOUT_LOG,{id:e.id}),t.toJson(e),{headers:ht()});return t.fromJson(n.data)},qNe=async e=>{const t=new RI,n=[];for(const r of e){const o=await it.post(ft(St.WORKOUT_LOG),{...r},{headers:ht()});n.push(t.fromJson(o.data))}return n},WNe=async e=>{const t=await it.patch(ft(St.SLOT_ENTRY,{id:e.id}),e,{headers:ht()});return RB.fromJson(t.data)},KNe=async e=>{await it.delete(ft(St.SLOT_ENTRY,{id:e}),{headers:ht()})},YNe=async e=>{const t=await it.post(ft(St.SLOT_ENTRY),e,{headers:ht()});return RB.fromJson(t.data)},QNe=async e=>{const t=await it.patch(ft(St.DAY,{id:e.id}),e,{headers:ht()});return new TI().fromJson(t.data)},XNe=async e=>{for(const t of e)await it.patch(ft(St.DAY,{id:t.id}),{order:t.order},{headers:ht()})},JNe=async e=>{const t=await it.post(ft(St.DAY),e,{headers:ht()});return new TI().fromJson(t.data)},ZNe=async e=>{await it.delete(ft(St.DAY,{id:e}),{headers:ht()})},eLe=async e=>{const t=await it.post(ft(St.SLOT),e,{headers:ht()});return new DB().fromJson(t.data)},tLe=async e=>{const t=await it.patch(ft(St.SLOT,{id:e.id}),e,{headers:ht()});return new DB().fromJson(t.data)},nLe=async e=>{for(const t of e)await it.patch(ft(St.SLOT,{id:t.id}),{order:t.order},{headers:ht()})},rLe=async e=>{await it.delete(ft(St.SLOT,{id:e}),{headers:ht()})},oLe=async({values:e,maxValues:t})=>{const n=async r=>{const{toAdd:o,toEdit:i,toDelete:a,apiPath:s}=r;for(const l of o)await tc(l,s);for(const l of i)await ec(l,s);for(const l of a)await Vc(l,s)};e!==void 0&&await n(e),t!==void 0&&await n(t)},ec=async(e,t)=>{const n=await it.patch(ft(t,{id:e.id}),e,{headers:ht()});return new MB().fromJson(n.data)},tc=async(e,t)=>{const n=await it.post(ft(t),e,{headers:ht()});return new MB().fromJson(n.data)},Vc=async(e,t)=>await it.delete(ft(t,{id:e}),{headers:ht()}),iLe=async e=>await ec(e,St.WEIGHT_CONFIG),aLe=async e=>await tc(e,St.WEIGHT_CONFIG),sLe=async e=>await Vc(e,St.WEIGHT_CONFIG),lLe=async e=>await ec(e,St.MAX_WEIGHT_CONFIG),cLe=async e=>await tc(e,St.MAX_WEIGHT_CONFIG),uLe=async e=>await Vc(e,St.MAX_WEIGHT_CONFIG),dLe=async e=>await ec(e,St.REPETITIONS_CONFIG),fLe=async e=>await tc(e,St.REPETITIONS_CONFIG),pLe=async e=>await Vc(e,St.REPETITIONS_CONFIG),hLe=async e=>await ec(e,St.MAX_REPS_CONFIG),mLe=async e=>await tc(e,St.MAX_REPS_CONFIG),gLe=async e=>await Vc(e,St.MAX_REPS_CONFIG),yLe=async e=>await ec(e,St.NR_OF_SETS_CONFIG),vLe=async e=>await tc(e,St.NR_OF_SETS_CONFIG),bLe=async e=>await Vc(e,St.NR_OF_SETS_CONFIG),xLe=async e=>await ec(e,St.MAX_NR_OF_SETS_CONFIG),SLe=async e=>await tc(e,St.MAX_NR_OF_SETS_CONFIG),wLe=async e=>await ec(e,St.RIR_CONFIG),CLe=async e=>await tc(e,St.RIR_CONFIG),ELe=async e=>await Vc(e,St.RIR_CONFIG),TLe=async e=>await ec(e,St.MAX_RIR_CONFIG),OLe=async e=>await tc(e,St.MAX_RIR_CONFIG),ILe=async e=>await Vc(e,St.MAX_RIR_CONFIG),PLe=async e=>await ec(e,St.REST_CONFIG),ALe=async e=>await tc(e,St.REST_CONFIG),MLe=async e=>await Vc(e,St.REST_CONFIG),RLe=async e=>await ec(e,St.MAX_REST_CONFIG),DLe=async e=>await tc(e,St.MAX_REST_CONFIG),kLe=async e=>await Vc(e,St.MAX_REST_CONFIG),_Le=async e=>{const t=await it.get(ft(St.SESSION,{query:e}),{headers:ht()});return t.data.count===1?new gw().fromJson(t.data.results[0]):null},$Le=async e=>{const{filtersetQuerySessions:t={},filtersetQueryLogs:n={}}=e||{},r=new gw,o=new RI,i=[],a=[],s={};for await(const l of xh(ft(St.WORKOUT_LOG,{query:{limit:KN,...n}}),ht()))for(const c of l)a.push(o.fromJson(c));for(const l of a)s[l.exerciseId]||(s[l.exerciseId]=await pv(l.exerciseId)),l.exerciseObj=s[l.exerciseId];for await(const l of xh(ft(St.SESSION,{query:{limit:KN,...t}}),ht()))for(const c of l){const u=r.fromJson(c);u.logs=a.filter(f=>f.sessionId===u.id),i.push(u)}return i},NLe=async e=>{const t=await it.post(ft(St.SESSION),e,{headers:ht()});return new gw().fromJson(t.data)},LLe=async e=>{const t=await it.patch(ft(St.SESSION,{id:e.id}),e,{headers:ht()});return new gw().fromJson(t.data)};class FLe{constructor(t,n,r,o,i,a,s,l,c){Ce(this,"ingredient",null);Ce(this,"weightUnit",null);this.id=t,this.planId=n,this.mealId=r,this.ingredientId=o,this.weightUnitId=i,this.amount=a,this.datetime=s,l&&(this.ingredient=l),c&&(this.weightUnit=c)}get amountString(){var t;return this.amount.toFixed().toString()+(this.weightUnitId!==null?` ${(t=this.weightUnit)==null?void 0:t.name}`:"g")}get nutritionalValues(){return this.ingredient?qa.fromIngredient(this.ingredient,this.amount,this.weightUnit):(console.log("Diary entry has no ingredient, returning empty NutritionalValues object"),new qa)}}class VB{fromJson(t){return new FLe(t.id,t.plan,t.meal,t.ingredient,t.weight_unit,parseFloat(t.amount),new Date(t.datetime))}toJson(t){return{plan:t.planId,meal:t.mealId,ingredient:t.ingredientId,weight_unit:t.weightUnitId,amount:t.amount.toString(),datetime:t.datetime.toISOString()}}}const tie=async e=>{const t=new VB,{filtersetQuery:n={},loadUnit:r=!0,loadIngredient:o=!0}=e||{},i=ft(St.NUTRITIONAL_DIARY,{query:{limit:KN,...n}}),a=[];for await(const s of xh(i,ht()))for(const l of s){const c=t.fromJson(l);r&&(c.weightUnit=await eie(c.weightUnitId)),o&&(c.ingredient=await DNe(c.ingredientId)),a.push(c)}return a},nie=async e=>{const t=await it.post(ft(St.NUTRITIONAL_DIARY),e,{headers:ht()});return new VB().fromJson(t.data)},jLe=async e=>{const t=await it.patch(ft(St.NUTRITIONAL_DIARY,{id:e.id}),e,{headers:ht()});return new VB().fromJson(t.data)};class BLe{constructor(t){Ce(this,"username");Ce(this,"email");Ce(this,"emailVerified");Ce(this,"dateJoined");Ce(this,"isTrustworthy");Ce(this,"useMetric");Ce(this,"height");Ce(this,"weightRounding");Ce(this,"repetitionsRounding");this.username=t.username,this.email=t.email,this.emailVerified=t.emailVerified,this.dateJoined=t.dateJoined,this.isTrustworthy=t.isTrustworthy,this.useMetric=t.useMetric,this.height=t.height,this.weightRounding=t.weightRounding,this.repetitionsRounding=t.repetitionsRounding}}class rie{constructor(){Ce(this,"fromJson",t=>new BLe({username:t.username,email:t.email,emailVerified:t.email_verified,dateJoined:new Date(t.date_joined),isTrustworthy:t.is_trustworthy,useMetric:t.weight_unit==="kg",height:t.height,weightRounding:t.weight_rounding!==null?parseFloat(t.weight_rounding):null,repetitionsRounding:t.repetitions_rounding!==null?parseFloat(t.repetitions_rounding):null}));Ce(this,"toJson",t=>({email:t.email,height:t.height,weight_unit:t.useMetric?"kg":"lb",weight_rounding:t.weightRounding,repetitions_rounding:t.repetitionsRounding}))}}const zLe="userprofile",VLe=async()=>{const e=ft(zLe),t=new rie;try{const n=await it.get(e,{headers:ht()});return t.fromJson(n.data)}catch{return null}},HLe=async e=>{const t=await it.post(ft(St.API_PROFILE_PATH),e,{headers:ht()});return new rie().fromJson(t.data)},bv="nutritionplan",ULe=async()=>{const{data:e}=await it.get(ft(bv),{headers:ht()});return e.results.map(t=>ly.fromJson(t))},GLe=async()=>{const{data:e}=await it.get(ft(bv,{query:{limit:"1"}}),{headers:ht()});return e.count===0?null:await HB(e.results[0].id)},HB=async(e,t)=>{if(e===null)return null;const{filtersetQueryLogs:n={}}=t||{},{data:r}=await it.get(ft(bv,{id:e}),{headers:ht()}),o=[],i=ly.fromJson(r),a=await Promise.all([HNe(e),tie({filtersetQuery:{plan:e,...n}})]);i.meals=a[0],i.diaryEntries=a[1],i.diaryEntries.forEach(l=>{o.includes(l.ingredientId)||o.push(l.ingredientId)});const s=await Zoe(o);return i.diaryEntries.forEach(l=>{l.ingredient=s.find(c=>c.id===l.ingredientId)}),i.meals.forEach(l=>{l.diaryEntries=i.diaryEntries.filter(c=>c.mealId===l.id)}),i},qLe=async e=>{const t=await it.post(ft(bv),ly.toJson(e),{headers:ht()});return ly.fromJson(t.data)},WLe=async e=>{const t=await it.patch(ft(bv,{id:e.id}),ly.toJson(e),{headers:ht()});return ly.fromJson(t.data)},KLe=async e=>{await it.delete(ft(bv,{id:e}),{headers:ht()})};function YLe(){return yr({queryKey:[st.NUTRITIONAL_PLANS],queryFn:()=>ULe()})}function QLe(){return yr({queryKey:[st.NUTRITIONAL_PLAN,"last"],queryFn:()=>GLe()})}function XLe(e){return yr({queryKey:[st.NUTRITIONAL_PLAN,e],queryFn:()=>HB(e)})}function JLe(e,t,n=!0){return yr({queryKey:[st.NUTRITIONAL_PLAN,e,t],queryFn:()=>HB(e,{filtersetQueryLogs:{datetime__eq:Jn(new Date(t))}}),enabled:n})}const ZLe=()=>{const e=Mt();return Dt({mutationFn:t=>qLe(t),onSuccess:()=>{e.invalidateQueries({queryKey:[st.NUTRITIONAL_PLANS]}),e.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN]})}})},eFe=e=>{const t=Mt();return Dt({mutationFn:n=>KLe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLANS]}),t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN,e]})}})},tFe=e=>{const t=Mt();return Dt({mutationFn:n=>WLe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN,e]}),t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLANS]})}})},nFe=e=>yr({queryFn:()=>tie(e),queryKey:[st.NUTRITIONAL_PLAN_DIARY,JSON.stringify(e||{})]}),rFe=e=>{const t=Mt();return Dt({mutationFn:n=>nie(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN,e]})})},oie=e=>{const t=Mt();return Dt({mutationFn:n=>Promise.all(n.map(r=>nie(r))),onSuccess:()=>t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN,e]})})},oFe=e=>{const t=Mt();return Dt({mutationFn:n=>jLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN,e]})})},iFe=e=>{const t=Mt();return Dt({mutationFn:n=>BNe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN,e]})}})},aFe=e=>{const t=Mt();return Dt({mutationFn:n=>VNe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN,e]})}})},sFe=e=>{const t=Mt();return Dt({mutationFn:n=>zNe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN,e]})}})},lFe=e=>{const t=Mt();return Dt({mutationFn:n=>$Ne(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN,e]})}})},cFe=e=>{const t=Mt();return Dt({mutationFn:n=>NNe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN,e]})}})},uFe=e=>{const t=Mt();return Dt({mutationFn:n=>LNe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.NUTRITIONAL_PLAN,e]})}})};function _i(e,t){return e.toLocaleString(t,{maximumFractionDigits:0})}function iie(e,t,n){return e.toLocaleString(t,{maximumFractionDigits:0,unit:n.valueOf(),style:"unit"})}function $n(e,t){return iie(e,t,"gram")}function JR(e,t){return iie(e,t,"percent")}const Lg=e=>{const{i18n:t}=je(),n=e.planned>0;return Q(Tt,{children:[S(Cne,{variant:"determinate",value:e.percentage<100?e.percentage:100}),Q(at,{variant:"caption",children:[e.title," — ",$n(e.logged,t.language),n&&Q(Tt,{children:[" / ",$n(e.planned,t.language)]})]})]})};var ZR,Kq;function Aa(){if(Kq)return ZR;Kq=1;var e=Array.isArray;return ZR=e,ZR}var eD,Yq;function aie(){if(Yq)return eD;Yq=1;var e=typeof f1=="object"&&f1&&f1.Object===Object&&f1;return eD=e,eD}var tD,Qq;function Hc(){if(Qq)return tD;Qq=1;var e=aie(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return tD=n,tD}var nD,Xq;function bw(){if(Xq)return nD;Xq=1;var e=Hc(),t=e.Symbol;return nD=t,nD}var rD,Jq;function dFe(){if(Jq)return rD;Jq=1;var e=bw(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;function i(a){var s=n.call(a,o),l=a[o];try{a[o]=void 0;var c=!0}catch{}var u=r.call(a);return c&&(s?a[o]=l:delete a[o]),u}return rD=i,rD}var oD,Zq;function fFe(){if(Zq)return oD;Zq=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return oD=n,oD}var iD,eW;function Zu(){if(eW)return iD;eW=1;var e=bw(),t=dFe(),n=fFe(),r="[object Null]",o="[object Undefined]",i=e?e.toStringTag:void 0;function a(s){return s==null?s===void 0?o:r:i&&i in Object(s)?t(s):n(s)}return iD=a,iD}var aD,tW;function ed(){if(tW)return aD;tW=1;function e(t){return t!=null&&typeof t=="object"}return aD=e,aD}var sD,nW;function xv(){if(nW)return sD;nW=1;var e=Zu(),t=ed(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return sD=r,sD}var lD,rW;function UB(){if(rW)return lD;rW=1;var e=Aa(),t=xv(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(i,a){if(e(i))return!1;var s=typeof i;return s=="number"||s=="symbol"||s=="boolean"||i==null||t(i)?!0:r.test(i)||!n.test(i)||a!=null&&i in Object(a)}return lD=o,lD}var cD,oW;function jf(){if(oW)return cD;oW=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return cD=e,cD}var uD,iW;function GB(){if(iW)return uD;iW=1;var e=Zu(),t=jf(),n="[object AsyncFunction]",r="[object Function]",o="[object GeneratorFunction]",i="[object Proxy]";function a(s){if(!t(s))return!1;var l=e(s);return l==r||l==o||l==n||l==i}return uD=a,uD}var dD,aW;function pFe(){if(aW)return dD;aW=1;var e=Hc(),t=e["__core-js_shared__"];return dD=t,dD}var fD,sW;function hFe(){if(sW)return fD;sW=1;var e=pFe(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return fD=n,fD}var pD,lW;function sie(){if(lW)return pD;lW=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return pD=n,pD}var hD,cW;function mFe(){if(cW)return hD;cW=1;var e=GB(),t=hFe(),n=jf(),r=sie(),o=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=RegExp("^"+l.call(c).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!n(h)||t(h))return!1;var m=e(h)?u:i;return m.test(r(h))}return hD=f,hD}var mD,uW;function gFe(){if(uW)return mD;uW=1;function e(t,n){return t==null?void 0:t[n]}return mD=e,mD}var gD,dW;function Vh(){if(dW)return gD;dW=1;var e=mFe(),t=gFe();function n(r,o){var i=t(r,o);return e(i)?i:void 0}return gD=n,gD}var yD,fW;function _I(){if(fW)return yD;fW=1;var e=Vh(),t=e(Object,"create");return yD=t,yD}var vD,pW;function yFe(){if(pW)return vD;pW=1;var e=_I();function t(){this.__data__=e?e(null):{},this.size=0}return vD=t,vD}var bD,hW;function vFe(){if(hW)return bD;hW=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return bD=e,bD}var xD,mW;function bFe(){if(mW)return xD;mW=1;var e=_I(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function o(i){var a=this.__data__;if(e){var s=a[i];return s===t?void 0:s}return r.call(a,i)?a[i]:void 0}return xD=o,xD}var SD,gW;function xFe(){if(gW)return SD;gW=1;var e=_I(),t=Object.prototype,n=t.hasOwnProperty;function r(o){var i=this.__data__;return e?i[o]!==void 0:n.call(i,o)}return SD=r,SD}var wD,yW;function SFe(){if(yW)return wD;yW=1;var e=_I(),t="__lodash_hash_undefined__";function n(r,o){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=e&&o===void 0?t:o,this}return wD=n,wD}var CD,vW;function wFe(){if(vW)return CD;vW=1;var e=yFe(),t=vFe(),n=bFe(),r=xFe(),o=SFe();function i(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s-1}return AD=t,AD}var MD,TW;function IFe(){if(TW)return MD;TW=1;var e=$I();function t(n,r){var o=this.__data__,i=e(o,n);return i<0?(++this.size,o.push([n,r])):o[i][1]=r,this}return MD=t,MD}var RD,OW;function NI(){if(OW)return RD;OW=1;var e=CFe(),t=EFe(),n=TFe(),r=OFe(),o=IFe();function i(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s0?1:-1},Bp=function(t){return Sh(t)&&t.indexOf("%")===t.length-1},mt=function(t){return YFe(t)&&!xv(t)},Vo=function(t){return mt(t)||Sh(t)},QFe=0,Bf=function(t){var n=++QFe;return"".concat(t||"").concat(n)},na=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!mt(t)&&!Sh(t))return r;var i;if(Bp(t)){var a=t.indexOf("%");i=n*parseFloat(t.slice(0,a))/100}else i=+t;return xv(i)&&(i=r),o&&i>n&&(i=n),i},Qd=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},XFe=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ije(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function dL(e){"@babel/helpers - typeof";return dL=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dL(e)}var JW={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Du=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},e8=null,tk=null,QB=function e(t){if(t===e8&&Array.isArray(tk))return tk;var n=[];return x.Children.forEach(t,function(r){on(r)||(GFe.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),tk=n,e8=t,n};function sa(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(o){return Du(o)}):r=[Du(t)],QB(e).forEach(function(o){var i=Za(o,"type.displayName")||Za(o,"type.name");r.indexOf(i)!==-1&&n.push(o)}),n}function Va(e,t){var n=sa(e,t);return n&&n[0]}var t8=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,o=n.height;return!(!mt(r)||r<=0||!mt(o)||o<=0)},aje=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],sje=function(t){return t&&t.type&&Sh(t.type)&&aje.indexOf(t.type)>=0},fie=function(t){return t&&dL(t)==="object"&&"clipDot"in t},lje=function(t,n,r,o){var i,a=(i=ek==null?void 0:ek[o])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!rn(t)&&(o&&a.includes(n)||tje.includes(n))||r&&YB.includes(n)},zt=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(x.isValidElement(t)&&(o=t.props),!bv(o))return null;var i={};return Object.keys(o).forEach(function(a){var s;lje((s=o)===null||s===void 0?void 0:s[a],a,n,r)&&(i[a]=o[a])}),i},fL=function e(t,n){if(t===n)return!0;var r=x.Children.count(t);if(r!==x.Children.count(n))return!1;if(r===0)return!0;if(r===1)return n8(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pje(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function hL(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,i=e.className,a=e.style,s=e.title,l=e.desc,c=fje(e,dje),u=o||{width:n,height:r,x:0,y:0},f=fe("recharts-surface",i);return Z.createElement("svg",pL({},zt(c,!0,"svg"),{className:f,width:n,height:r,style:a,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),Z.createElement("title",null,s),Z.createElement("desc",null,l),t)}var hje=["children","className"];function mL(){return mL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gje(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var wn=Z.forwardRef(function(e,t){var n=e.children,r=e.className,o=mje(e,hje),i=fe("recharts-layer",r);return Z.createElement("g",mL({className:i},zt(o,!0),{ref:t}),n)}),Ll=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;ii?0:i+n),r=r>i?i:r,r<0&&(r+=i),i=n>r?0:r-n>>>0,n>>>=0;for(var a=Array(i);++o=i?n:e(n,r,o)}return rk=t,rk}var ok,a8;function pie(){if(a8)return ok;a8=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,i="\\ufe0e\\ufe0f",a="\\u200d",s=RegExp("["+a+e+o+i+"]");function l(c){return s.test(c)}return ok=l,ok}var ik,s8;function bje(){if(s8)return ik;s8=1;function e(t){return t.split("")}return ik=e,ik}var ak,l8;function xje(){if(l8)return ak;l8=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,i="\\ufe0e\\ufe0f",a="["+e+"]",s="["+o+"]",l="\\ud83c[\\udffb-\\udfff]",c="(?:"+s+"|"+l+")",u="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",m="\\u200d",g=c+"?",y="["+i+"]?",v="(?:"+m+"(?:"+[u,f,h].join("|")+")"+y+g+")*",w=y+g+v,C="(?:"+[u+s+"?",s,f,h,a].join("|")+")",E=RegExp(l+"(?="+l+")|"+C+w,"g");function I(O){return O.match(E)||[]}return ak=I,ak}var sk,c8;function Sje(){if(c8)return sk;c8=1;var e=bje(),t=pie(),n=xje();function r(o){return t(o)?n(o):e(o)}return sk=r,sk}var lk,u8;function wje(){if(u8)return lk;u8=1;var e=vje(),t=pie(),n=Sje(),r=lie();function o(i){return function(a){a=r(a);var s=t(a)?n(a):void 0,l=s?s[0]:a.charAt(0),c=s?e(s,1).join(""):a.slice(1);return l[i]()+c}}return lk=o,lk}var ck,d8;function Cje(){if(d8)return ck;d8=1;var e=wje(),t=e("toUpperCase");return ck=t,ck}var Eje=Cje();const FI=Gn(Eje);function $r(e){return function(){return e}}const hie=Math.cos,fT=Math.sin,Jl=Math.sqrt,pT=Math.PI,jI=2*pT,gL=Math.PI,yL=2*gL,Ap=1e-6,Tje=yL-Ap;function mie(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return mie;const n=10**t;return function(r){this._+=r[0];for(let o=1,i=r.length;oAp)if(!(Math.abs(f*l-c*u)>Ap)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let m=r-a,g=o-s,y=l*l+c*c,v=m*m+g*g,w=Math.sqrt(y),C=Math.sqrt(h),E=i*Math.tan((gL-Math.acos((y+h-v)/(2*w*C)))/2),I=E/C,O=E/w;Math.abs(I-1)>Ap&&this._append`L${t+I*u},${n+I*f}`,this._append`A${i},${i},0,0,${+(f*m>u*g)},${this._x1=t+O*l},${this._y1=n+O*c}`}}arc(t,n,r,o,i,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(o),l=r*Math.sin(o),c=t+s,u=n+l,f=1^a,h=a?o-i:i-o;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Ap||Math.abs(this._y1-u)>Ap)&&this._append`L${c},${u}`,r&&(h<0&&(h=h%yL+yL),h>Tje?this._append`A${r},${r},0,1,${f},${t-s},${n-l}A${r},${r},0,1,${f},${this._x1=c},${this._y1=u}`:h>Ap&&this._append`A${r},${r},0,${+(h>=gL)},${f},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function XB(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Ije(t)}function ZB(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function gie(e){this._context=e}gie.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function BI(e){return new gie(e)}function yie(e){return e[0]}function vie(e){return e[1]}function bie(e,t){var n=$r(!0),r=null,o=BI,i=null,a=XB(s);e=typeof e=="function"?e:e===void 0?yie:$r(e),t=typeof t=="function"?t:t===void 0?vie:$r(t);function s(l){var c,u=(l=ZB(l)).length,f,h=!1,m;for(r==null&&(i=o(m=a())),c=0;c<=u;++c)!(c=m;--g)s.point(E[g],I[g]);s.lineEnd(),s.areaEnd()}w&&(E[h]=+e(v,h,f),I[h]=+t(v,h,f),s.point(r?+r(v,h,f):E[h],n?+n(v,h,f):I[h]))}if(C)return s=null,C+""||null}function u(){return bie().defined(o).curve(a).context(i)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:$r(+f),r=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:$r(+f),c):e},c.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:$r(+f),c):r},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:$r(+f),n=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:$r(+f),c):t},c.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:$r(+f),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(f){return arguments.length?(o=typeof f=="function"?f:$r(!!f),c):o},c.curve=function(f){return arguments.length?(a=f,i!=null&&(s=a(i)),c):a},c.context=function(f){return arguments.length?(f==null?i=s=null:s=a(i=f),c):i},c}class xie{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function Pje(e){return new xie(e,!0)}function Aje(e){return new xie(e,!1)}const JB={draw(e,t){const n=Jl(t/pT);e.moveTo(n,0),e.arc(0,0,n,0,jI)}},Mje={draw(e,t){const n=Jl(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Sie=Jl(1/3),Rje=Sie*2,Dje={draw(e,t){const n=Jl(t/Rje),r=n*Sie;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},kje={draw(e,t){const n=Jl(t),r=-n/2;e.rect(r,r,n,n)}},_je=.8908130915292852,wie=fT(pT/10)/fT(7*pT/10),$je=fT(jI/10)*wie,Nje=-hie(jI/10)*wie,Lje={draw(e,t){const n=Jl(t*_je),r=$je*n,o=Nje*n;e.moveTo(0,-n),e.lineTo(r,o);for(let i=1;i<5;++i){const a=jI*i/5,s=hie(a),l=fT(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*o,l*r+s*o)}e.closePath()}},uk=Jl(3),Fje={draw(e,t){const n=-Jl(t/(uk*3));e.moveTo(0,n*2),e.lineTo(-uk*n,-n),e.lineTo(uk*n,-n),e.closePath()}},Os=-.5,Is=Jl(3)/2,vL=1/Jl(12),jje=(vL/2+1)*3,Bje={draw(e,t){const n=Jl(t/jje),r=n/2,o=n*vL,i=r,a=n*vL+n,s=-i,l=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(Os*r-Is*o,Is*r+Os*o),e.lineTo(Os*i-Is*a,Is*i+Os*a),e.lineTo(Os*s-Is*l,Is*s+Os*l),e.lineTo(Os*r+Is*o,Os*o-Is*r),e.lineTo(Os*i+Is*a,Os*a-Is*i),e.lineTo(Os*s+Is*l,Os*l-Is*s),e.closePath()}};function zje(e,t){let n=null,r=XB(o);e=typeof e=="function"?e:$r(e||JB),t=typeof t=="function"?t:$r(t===void 0?64:+t);function o(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return o.type=function(i){return arguments.length?(e=typeof i=="function"?i:$r(i),o):e},o.size=function(i){return arguments.length?(t=typeof i=="function"?i:$r(+i),o):t},o.context=function(i){return arguments.length?(n=i??null,o):n},o}function hT(){}function mT(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Cie(e){this._context=e}Cie.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:mT(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:mT(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Vje(e){return new Cie(e)}function Eie(e){this._context=e}Eie.prototype={areaStart:hT,areaEnd:hT,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:mT(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Hje(e){return new Eie(e)}function Tie(e){this._context=e}Tie.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:mT(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Uje(e){return new Tie(e)}function Oie(e){this._context=e}Oie.prototype={areaStart:hT,areaEnd:hT,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Gje(e){return new Oie(e)}function f8(e){return e<0?-1:1}function p8(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(f8(i)+f8(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function h8(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function dk(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function gT(e){this._context=e}gT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:dk(this,this._t0,h8(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,dk(this,h8(this,n=p8(this,e,t)),n);break;default:dk(this,this._t0,n=p8(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Iie(e){this._context=new Pie(e)}(Iie.prototype=Object.create(gT.prototype)).point=function(e,t){gT.prototype.point.call(this,t,e)};function Pie(e){this._context=e}Pie.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}};function qje(e){return new gT(e)}function Wje(e){return new Iie(e)}function Aie(e){this._context=e}Aie.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=m8(e),o=m8(t),i=0,a=1;a=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[n-1]=(e[n]+o[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function Yje(e){return new zI(e,.5)}function Qje(e){return new zI(e,0)}function Xje(e){return new zI(e,1)}function uy(e,t){if((a=e.length)>1)for(var n=1,r,o,i=e[t[0]],a,s=i.length;n=0;)n[t]=t;return n}function Zje(e,t){return e[t]}function Jje(e){const t=[];return t.key=e,t}function eBe(){var e=$r([]),t=bL,n=uy,r=Zje;function o(i){var a=Array.from(e.apply(this,arguments),Jje),s,l=a.length,c=-1,u;for(const f of i)for(s=0,++c;s0){for(var n,r,o=0,i=e[0].length,a;o0){for(var n=0,r=e[t[0]],o,i=r.length;n0)||!((i=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,i,a;r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cBe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Mie={symbolCircle:JB,symbolCross:Mje,symbolDiamond:Dje,symbolSquare:kje,symbolStar:Lje,symbolTriangle:Fje,symbolWye:Bje},uBe=Math.PI/180,dBe=function(t){var n="symbol".concat(FI(t));return Mie[n]||JB},fBe=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var o=18*uBe;return 1.25*t*t*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},pBe=function(t,n){Mie["symbol".concat(FI(t))]=n},VI=function(t){var n=t.type,r=n===void 0?"circle":n,o=t.size,i=o===void 0?64:o,a=t.sizeType,s=a===void 0?"area":a,l=lBe(t,oBe),c=y8(y8({},l),{},{type:r,size:i,sizeType:s}),u=function(){var v=dBe(r),w=zje().type(v).size(fBe(i,s,r));return w()},f=c.className,h=c.cx,m=c.cy,g=zt(c,!0);return h===+h&&m===+m&&i===+i?Z.createElement("path",xL({},g,{className:fe("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(m,")"),d:u()})):null};VI.registerSymbol=pBe;function dy(e){"@babel/helpers - typeof";return dy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dy(e)}function SL(){return SL=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?1:-1},Bp=function(t){return Sh(t)&&t.indexOf("%")===t.length-1},mt=function(t){return QFe(t)&&!wv(t)},Vo=function(t){return mt(t)||Sh(t)},XFe=0,Bf=function(t){var n=++XFe;return"".concat(t||"").concat(n)},na=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!mt(t)&&!Sh(t))return r;var i;if(Bp(t)){var a=t.indexOf("%");i=n*parseFloat(t.slice(0,a))/100}else i=+t;return wv(i)&&(i=r),o&&i>n&&(i=n),i},Qd=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},JFe=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function aje(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function pL(e){"@babel/helpers - typeof";return pL=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pL(e)}var e8={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},ku=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},t8=null,rk=null,JB=function e(t){if(t===t8&&Array.isArray(rk))return rk;var n=[];return x.Children.forEach(t,function(r){on(r)||(qFe.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),rk=n,t8=t,n};function sa(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(o){return ku(o)}):r=[ku(t)],JB(e).forEach(function(o){var i=Ja(o,"type.displayName")||Ja(o,"type.name");r.indexOf(i)!==-1&&n.push(o)}),n}function Va(e,t){var n=sa(e,t);return n&&n[0]}var n8=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,o=n.height;return!(!mt(r)||r<=0||!mt(o)||o<=0)},sje=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],lje=function(t){return t&&t.type&&Sh(t.type)&&sje.indexOf(t.type)>=0},pie=function(t){return t&&pL(t)==="object"&&"clipDot"in t},cje=function(t,n,r,o){var i,a=(i=nk==null?void 0:nk[o])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!rn(t)&&(o&&a.includes(n)||nje.includes(n))||r&&XB.includes(n)},zt=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(x.isValidElement(t)&&(o=t.props),!Sv(o))return null;var i={};return Object.keys(o).forEach(function(a){var s;cje((s=o)===null||s===void 0?void 0:s[a],a,n,r)&&(i[a]=o[a])}),i},hL=function e(t,n){if(t===n)return!0;var r=x.Children.count(t);if(r!==x.Children.count(n))return!1;if(r===0)return!0;if(r===1)return r8(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hje(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function gL(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,i=e.className,a=e.style,s=e.title,l=e.desc,c=pje(e,fje),u=o||{width:n,height:r,x:0,y:0},f=fe("recharts-surface",i);return J.createElement("svg",mL({},zt(c,!0,"svg"),{className:f,width:n,height:r,style:a,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),J.createElement("title",null,s),J.createElement("desc",null,l),t)}var mje=["children","className"];function yL(){return yL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yje(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var wn=J.forwardRef(function(e,t){var n=e.children,r=e.className,o=gje(e,mje),i=fe("recharts-layer",r);return J.createElement("g",yL({className:i},zt(o,!0),{ref:t}),n)}),jl=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;ii?0:i+n),r=r>i?i:r,r<0&&(r+=i),i=n>r?0:r-n>>>0,n>>>=0;for(var a=Array(i);++o=i?n:e(n,r,o)}return ik=t,ik}var ak,s8;function hie(){if(s8)return ak;s8=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,i="\\ufe0e\\ufe0f",a="\\u200d",s=RegExp("["+a+e+o+i+"]");function l(c){return s.test(c)}return ak=l,ak}var sk,l8;function xje(){if(l8)return sk;l8=1;function e(t){return t.split("")}return sk=e,sk}var lk,c8;function Sje(){if(c8)return lk;c8=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,i="\\ufe0e\\ufe0f",a="["+e+"]",s="["+o+"]",l="\\ud83c[\\udffb-\\udfff]",c="(?:"+s+"|"+l+")",u="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",m="\\u200d",g=c+"?",y="["+i+"]?",v="(?:"+m+"(?:"+[u,f,h].join("|")+")"+y+g+")*",w=y+g+v,C="(?:"+[u+s+"?",s,f,h,a].join("|")+")",E=RegExp(l+"(?="+l+")|"+C+w,"g");function I(O){return O.match(E)||[]}return lk=I,lk}var ck,u8;function wje(){if(u8)return ck;u8=1;var e=xje(),t=hie(),n=Sje();function r(o){return t(o)?n(o):e(o)}return ck=r,ck}var uk,d8;function Cje(){if(d8)return uk;d8=1;var e=bje(),t=hie(),n=wje(),r=cie();function o(i){return function(a){a=r(a);var s=t(a)?n(a):void 0,l=s?s[0]:a.charAt(0),c=s?e(s,1).join(""):a.slice(1);return l[i]()+c}}return uk=o,uk}var dk,f8;function Eje(){if(f8)return dk;f8=1;var e=Cje(),t=e("toUpperCase");return dk=t,dk}var Tje=Eje();const jI=Gn(Tje);function $r(e){return function(){return e}}const mie=Math.cos,pT=Math.sin,nc=Math.sqrt,hT=Math.PI,BI=2*hT,vL=Math.PI,bL=2*vL,Ap=1e-6,Oje=bL-Ap;function gie(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return gie;const n=10**t;return function(r){this._+=r[0];for(let o=1,i=r.length;oAp)if(!(Math.abs(f*l-c*u)>Ap)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let m=r-a,g=o-s,y=l*l+c*c,v=m*m+g*g,w=Math.sqrt(y),C=Math.sqrt(h),E=i*Math.tan((vL-Math.acos((y+h-v)/(2*w*C)))/2),I=E/C,O=E/w;Math.abs(I-1)>Ap&&this._append`L${t+I*u},${n+I*f}`,this._append`A${i},${i},0,0,${+(f*m>u*g)},${this._x1=t+O*l},${this._y1=n+O*c}`}}arc(t,n,r,o,i,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(o),l=r*Math.sin(o),c=t+s,u=n+l,f=1^a,h=a?o-i:i-o;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Ap||Math.abs(this._y1-u)>Ap)&&this._append`L${c},${u}`,r&&(h<0&&(h=h%bL+bL),h>Oje?this._append`A${r},${r},0,1,${f},${t-s},${n-l}A${r},${r},0,1,${f},${this._x1=c},${this._y1=u}`:h>Ap&&this._append`A${r},${r},0,${+(h>=vL)},${f},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function ZB(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Pje(t)}function ez(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function yie(e){this._context=e}yie.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function zI(e){return new yie(e)}function vie(e){return e[0]}function bie(e){return e[1]}function xie(e,t){var n=$r(!0),r=null,o=zI,i=null,a=ZB(s);e=typeof e=="function"?e:e===void 0?vie:$r(e),t=typeof t=="function"?t:t===void 0?bie:$r(t);function s(l){var c,u=(l=ez(l)).length,f,h=!1,m;for(r==null&&(i=o(m=a())),c=0;c<=u;++c)!(c=m;--g)s.point(E[g],I[g]);s.lineEnd(),s.areaEnd()}w&&(E[h]=+e(v,h,f),I[h]=+t(v,h,f),s.point(r?+r(v,h,f):E[h],n?+n(v,h,f):I[h]))}if(C)return s=null,C+""||null}function u(){return xie().defined(o).curve(a).context(i)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:$r(+f),r=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:$r(+f),c):e},c.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:$r(+f),c):r},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:$r(+f),n=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:$r(+f),c):t},c.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:$r(+f),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(f){return arguments.length?(o=typeof f=="function"?f:$r(!!f),c):o},c.curve=function(f){return arguments.length?(a=f,i!=null&&(s=a(i)),c):a},c.context=function(f){return arguments.length?(f==null?i=s=null:s=a(i=f),c):i},c}class Sie{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function Aje(e){return new Sie(e,!0)}function Mje(e){return new Sie(e,!1)}const tz={draw(e,t){const n=nc(t/hT);e.moveTo(n,0),e.arc(0,0,n,0,BI)}},Rje={draw(e,t){const n=nc(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},wie=nc(1/3),Dje=wie*2,kje={draw(e,t){const n=nc(t/Dje),r=n*wie;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},_je={draw(e,t){const n=nc(t),r=-n/2;e.rect(r,r,n,n)}},$je=.8908130915292852,Cie=pT(hT/10)/pT(7*hT/10),Nje=pT(BI/10)*Cie,Lje=-mie(BI/10)*Cie,Fje={draw(e,t){const n=nc(t*$je),r=Nje*n,o=Lje*n;e.moveTo(0,-n),e.lineTo(r,o);for(let i=1;i<5;++i){const a=BI*i/5,s=mie(a),l=pT(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*o,l*r+s*o)}e.closePath()}},fk=nc(3),jje={draw(e,t){const n=-nc(t/(fk*3));e.moveTo(0,n*2),e.lineTo(-fk*n,-n),e.lineTo(fk*n,-n),e.closePath()}},Os=-.5,Is=nc(3)/2,xL=1/nc(12),Bje=(xL/2+1)*3,zje={draw(e,t){const n=nc(t/Bje),r=n/2,o=n*xL,i=r,a=n*xL+n,s=-i,l=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(Os*r-Is*o,Is*r+Os*o),e.lineTo(Os*i-Is*a,Is*i+Os*a),e.lineTo(Os*s-Is*l,Is*s+Os*l),e.lineTo(Os*r+Is*o,Os*o-Is*r),e.lineTo(Os*i+Is*a,Os*a-Is*i),e.lineTo(Os*s+Is*l,Os*l-Is*s),e.closePath()}};function Vje(e,t){let n=null,r=ZB(o);e=typeof e=="function"?e:$r(e||tz),t=typeof t=="function"?t:$r(t===void 0?64:+t);function o(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return o.type=function(i){return arguments.length?(e=typeof i=="function"?i:$r(i),o):e},o.size=function(i){return arguments.length?(t=typeof i=="function"?i:$r(+i),o):t},o.context=function(i){return arguments.length?(n=i??null,o):n},o}function mT(){}function gT(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Eie(e){this._context=e}Eie.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:gT(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:gT(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Hje(e){return new Eie(e)}function Tie(e){this._context=e}Tie.prototype={areaStart:mT,areaEnd:mT,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:gT(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Uje(e){return new Tie(e)}function Oie(e){this._context=e}Oie.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:gT(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Gje(e){return new Oie(e)}function Iie(e){this._context=e}Iie.prototype={areaStart:mT,areaEnd:mT,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function qje(e){return new Iie(e)}function p8(e){return e<0?-1:1}function h8(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(p8(i)+p8(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function m8(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function pk(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function yT(e){this._context=e}yT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:pk(this,this._t0,m8(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,pk(this,m8(this,n=h8(this,e,t)),n);break;default:pk(this,this._t0,n=h8(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Pie(e){this._context=new Aie(e)}(Pie.prototype=Object.create(yT.prototype)).point=function(e,t){yT.prototype.point.call(this,t,e)};function Aie(e){this._context=e}Aie.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}};function Wje(e){return new yT(e)}function Kje(e){return new Pie(e)}function Mie(e){this._context=e}Mie.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=g8(e),o=g8(t),i=0,a=1;a=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[n-1]=(e[n]+o[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function Qje(e){return new VI(e,.5)}function Xje(e){return new VI(e,0)}function Jje(e){return new VI(e,1)}function fy(e,t){if((a=e.length)>1)for(var n=1,r,o,i=e[t[0]],a,s=i.length;n=0;)n[t]=t;return n}function Zje(e,t){return e[t]}function eBe(e){const t=[];return t.key=e,t}function tBe(){var e=$r([]),t=SL,n=fy,r=Zje;function o(i){var a=Array.from(e.apply(this,arguments),eBe),s,l=a.length,c=-1,u;for(const f of i)for(s=0,++c;s0){for(var n,r,o=0,i=e[0].length,a;o0){for(var n=0,r=e[t[0]],o,i=r.length;n0)||!((i=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,i,a;r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uBe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Rie={symbolCircle:tz,symbolCross:Rje,symbolDiamond:kje,symbolSquare:_je,symbolStar:Fje,symbolTriangle:jje,symbolWye:zje},dBe=Math.PI/180,fBe=function(t){var n="symbol".concat(jI(t));return Rie[n]||tz},pBe=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var o=18*dBe;return 1.25*t*t*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},hBe=function(t,n){Rie["symbol".concat(jI(t))]=n},HI=function(t){var n=t.type,r=n===void 0?"circle":n,o=t.size,i=o===void 0?64:o,a=t.sizeType,s=a===void 0?"area":a,l=cBe(t,iBe),c=v8(v8({},l),{},{type:r,size:i,sizeType:s}),u=function(){var v=fBe(r),w=Vje().type(v).size(pBe(i,s,r));return w()},f=c.className,h=c.cx,m=c.cy,g=zt(c,!0);return h===+h&&m===+m&&i===+i?J.createElement("path",wL({},g,{className:fe("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(m,")"),d:u()})):null};HI.registerSymbol=hBe;function py(e){"@babel/helpers - typeof";return py=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},py(e)}function CL(){return CL=Object.assign?Object.assign.bind():function(e){for(var t=1;t`);var C=m.inactive?c:m.color;return Z.createElement("li",SL({className:v,style:f,key:"legend-item-".concat(g)},If(r.props,m,g)),Z.createElement(hL,{width:a,height:a,viewBox:u,style:h},r.renderIcon(m)),Z.createElement("span",{className:"recharts-legend-item-text",style:{color:C}},y?y(w,m,g):w))})}},{key:"render",value:function(){var r=this.props,o=r.payload,i=r.layout,a=r.align;if(!o||!o.length)return null;var s={padding:0,margin:0,textAlign:i==="horizontal"?a:"left"};return Z.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(x.PureComponent);Nx(ez,"displayName","Legend");Nx(ez,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var fk,b8;function CBe(){if(b8)return fk;b8=1;var e=$I();function t(){this.__data__=new e,this.size=0}return fk=t,fk}var pk,x8;function EBe(){if(x8)return pk;x8=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return pk=e,pk}var hk,S8;function TBe(){if(S8)return hk;S8=1;function e(t){return this.__data__.get(t)}return hk=e,hk}var mk,w8;function OBe(){if(w8)return mk;w8=1;function e(t){return this.__data__.has(t)}return mk=e,mk}var gk,C8;function IBe(){if(C8)return gk;C8=1;var e=$I(),t=GB(),n=qB(),r=200;function o(i,a){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.lengthm))return!1;var y=f.get(a),v=f.get(s);if(y&&v)return y==s&&v==a;var w=-1,C=!0,E=l&o?new e:void 0;for(f.set(a,s),f.set(s,a);++w-1&&r%1==0&&r-1&&n%1==0&&n<=e}return Fk=t,Fk}var jk,W8;function BBe(){if(W8)return jk;W8=1;var e=Ju(),t=oz(),n=ed(),r="[object Arguments]",o="[object Array]",i="[object Boolean]",a="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",u="[object Number]",f="[object Object]",h="[object RegExp]",m="[object Set]",g="[object String]",y="[object WeakMap]",v="[object ArrayBuffer]",w="[object DataView]",C="[object Float32Array]",E="[object Float64Array]",I="[object Int8Array]",O="[object Int16Array]",P="[object Int32Array]",R="[object Uint8Array]",D="[object Uint8ClampedArray]",M="[object Uint16Array]",A="[object Uint32Array]",_={};_[C]=_[E]=_[I]=_[O]=_[P]=_[R]=_[D]=_[M]=_[A]=!0,_[r]=_[o]=_[v]=_[i]=_[w]=_[a]=_[s]=_[l]=_[c]=_[u]=_[f]=_[h]=_[m]=_[g]=_[y]=!1;function N(B){return n(B)&&t(B.length)&&!!_[e(B)]}return jk=N,jk}var Bk,K8;function Bie(){if(K8)return Bk;K8=1;function e(t){return function(n){return t(n)}}return Bk=e,Bk}var L0={exports:{}};L0.exports;var Y8;function zBe(){return Y8||(Y8=1,function(e,t){var n=iie(),r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(L0,L0.exports)),L0.exports}var zk,Q8;function zie(){if(Q8)return zk;Q8=1;var e=BBe(),t=Bie(),n=zBe(),r=n&&n.isTypedArray,o=r?t(r):e;return zk=o,zk}var Vk,X8;function VBe(){if(X8)return Vk;X8=1;var e=LBe(),t=nz(),n=Aa(),r=jie(),o=rz(),i=zie(),a=Object.prototype,s=a.hasOwnProperty;function l(c,u){var f=n(c),h=!f&&t(c),m=!f&&!h&&r(c),g=!f&&!h&&!m&&i(c),y=f||h||m||g,v=y?e(c.length,String):[],w=v.length;for(var C in c)(u||s.call(c,C))&&!(y&&(C=="length"||m&&(C=="offset"||C=="parent")||g&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||o(C,w)))&&v.push(C);return v}return Vk=l,Vk}var Hk,Z8;function HBe(){if(Z8)return Hk;Z8=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,o=typeof r=="function"&&r.prototype||e;return n===o}return Hk=t,Hk}var Uk,J8;function Vie(){if(J8)return Uk;J8=1;function e(t,n){return function(r){return t(n(r))}}return Uk=e,Uk}var Gk,e9;function UBe(){if(e9)return Gk;e9=1;var e=Vie(),t=e(Object.keys,Object);return Gk=t,Gk}var qk,t9;function GBe(){if(t9)return qk;t9=1;var e=HBe(),t=UBe(),n=Object.prototype,r=n.hasOwnProperty;function o(i){if(!e(i))return t(i);var a=[];for(var s in Object(i))r.call(i,s)&&s!="constructor"&&a.push(s);return a}return qk=o,qk}var Wk,n9;function bw(){if(n9)return Wk;n9=1;var e=HB(),t=oz();function n(r){return r!=null&&t(r.length)&&!e(r)}return Wk=n,Wk}var Kk,r9;function HI(){if(r9)return Kk;r9=1;var e=VBe(),t=GBe(),n=bw();function r(o){return n(o)?e(o):t(o)}return Kk=r,Kk}var Yk,o9;function qBe(){if(o9)return Yk;o9=1;var e=kBe(),t=NBe(),n=HI();function r(o){return e(o,n,t)}return Yk=r,Yk}var Qk,i9;function WBe(){if(i9)return Qk;i9=1;var e=qBe(),t=1,n=Object.prototype,r=n.hasOwnProperty;function o(i,a,s,l,c,u){var f=s&t,h=e(i),m=h.length,g=e(a),y=g.length;if(m!=y&&!f)return!1;for(var v=m;v--;){var w=h[v];if(!(f?w in a:r.call(a,w)))return!1}var C=u.get(i),E=u.get(a);if(C&&E)return C==a&&E==i;var I=!0;u.set(i,a),u.set(a,i);for(var O=f;++v-1}return w2=t,w2}var C2,D9;function pze(){if(D9)return C2;D9=1;function e(t,n,r){for(var o=-1,i=t==null?0:t.length;++o=a){var w=c?null:o(l);if(w)return i(w);g=!1,h=r,v=new e}else v=c?[]:y;e:for(;++f=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pze(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Aze(e){return e.value}function Mze(e,t){if(Z.isValidElement(e))return Z.cloneElement(e,t);if(typeof e=="function")return Z.createElement(e,t);t.ref;var n=Ize(t,bze);return Z.createElement(ez,n)}var B9=1,Cc=function(e){function t(){var n;xze(this,t);for(var r=arguments.length,o=new Array(r),i=0;iB9||Math.abs(o.height-this.lastBoundingBox.height)>B9)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,r&&r(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?gu({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var o=this.props,i=o.layout,a=o.align,s=o.verticalAlign,l=o.margin,c=o.chartWidth,u=o.chartHeight,f,h;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&i==="vertical"){var m=this.getBBoxSnapshot();f={left:((c||0)-m.width)/2}}else f=a==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var g=this.getBBoxSnapshot();h={top:((u||0)-g.height)/2}}else h=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return gu(gu({},f),h)}},{key:"render",value:function(){var r=this,o=this.props,i=o.content,a=o.width,s=o.height,l=o.wrapperStyle,c=o.payloadUniqBy,u=o.payload,f=gu(gu({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return Z.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(m){r.wrapperNode=m}},Mze(i,gu(gu({},this.props),{},{payload:Wie(u,c,Aze)})))}}],[{key:"getWithHeight",value:function(r,o){var i=gu(gu({},this.defaultProps),r.props),a=i.layout;return a==="vertical"&&mt(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||o}:null}}])}(x.PureComponent);UI(Cc,"displayName","Legend");UI(Cc,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var P2,z9;function Rze(){if(z9)return P2;z9=1;var e=vw(),t=nz(),n=Aa(),r=e?e.isConcatSpreadable:void 0;function o(i){return n(i)||t(i)||!!(r&&i&&i[r])}return P2=o,P2}var A2,V9;function Qie(){if(V9)return A2;V9=1;var e=Fie(),t=Rze();function n(r,o,i,a,s){var l=-1,c=r.length;for(i||(i=t),s||(s=[]);++l0&&i(u)?o>1?n(u,o-1,i,a,s):e(s,u):a||(s[s.length]=u)}return s}return A2=n,A2}var M2,H9;function Dze(){if(H9)return M2;H9=1;function e(t){return function(n,r,o){for(var i=-1,a=Object(n),s=o(n),l=s.length;l--;){var c=s[t?l:++i];if(r(a[c],c,a)===!1)break}return n}}return M2=e,M2}var R2,U9;function kze(){if(U9)return R2;U9=1;var e=Dze(),t=e();return R2=t,R2}var D2,G9;function Xie(){if(G9)return D2;G9=1;var e=kze(),t=HI();function n(r,o){return r&&e(r,o,t)}return D2=n,D2}var k2,q9;function _ze(){if(q9)return k2;q9=1;var e=bw();function t(n,r){return function(o,i){if(o==null)return o;if(!e(o))return n(o,i);for(var a=o.length,s=r?a:-1,l=Object(o);(r?s--:++sr||s&&l&&u&&!c&&!f||i&&l&&u||!o&&u||!a)return 1;if(!i&&!s&&!f&&n=c)return u;var f=o[i];return u*(f=="desc"?-1:1)}}return n.index-r.index}return F2=t,F2}var j2,Z9;function Fze(){if(Z9)return j2;Z9=1;var e=WB(),t=KB(),n=Hc(),r=Zie(),o=$ze(),i=Bie(),a=Lze(),s=Sv(),l=Aa();function c(u,f,h){f.length?f=e(f,function(y){return l(y)?function(v){return t(v,y.length===1?y[0]:y)}:y}):f=[s];var m=-1;f=e(f,i(n));var g=r(u,function(y,v,w){var C=e(f,function(E){return E(y)});return{criteria:C,index:++m,value:y}});return o(g,function(y,v){return a(y,v,h)})}return j2=c,j2}var B2,J9;function jze(){if(J9)return B2;J9=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return B2=e,B2}var z2,e7;function Bze(){if(e7)return z2;e7=1;var e=jze(),t=Math.max;function n(r,o,i){return o=t(o===void 0?r.length-1:o,0),function(){for(var a=arguments,s=-1,l=t(a.length-o,0),c=Array(l);++s0){if(++i>=e)return arguments[0]}else i=0;return o.apply(void 0,arguments)}}return G2=r,G2}var q2,i7;function Uze(){if(i7)return q2;i7=1;var e=Vze(),t=Hze(),n=t(e);return q2=n,q2}var W2,a7;function Gze(){if(a7)return W2;a7=1;var e=Sv(),t=Bze(),n=Uze();function r(o,i){return n(t(o,i,e),o+"")}return W2=r,W2}var K2,s7;function GI(){if(s7)return K2;s7=1;var e=UB(),t=bw(),n=rz(),r=jf();function o(i,a,s){if(!r(s))return!1;var l=typeof a;return(l=="number"?t(s)&&n(a,s.length):l=="string"&&a in s)?e(s[a],i):!1}return K2=o,K2}var Y2,l7;function qze(){if(l7)return Y2;l7=1;var e=Qie(),t=Fze(),n=Gze(),r=GI(),o=n(function(i,a){if(i==null)return[];var s=a.length;return s>1&&r(i,a[0],a[1])?a=[]:s>2&&r(a[0],a[1],a[2])&&(a=[a[0]]),t(i,e(a,1),[])});return Y2=o,Y2}var Wze=qze();const sz=Gn(Wze);function Lx(e){"@babel/helpers - typeof";return Lx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lx(e)}function EL(){return EL=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t.x),"".concat(t0,"-left"),mt(n)&&t&&mt(t.x)&&n=t.y),"".concat(t0,"-top"),mt(r)&&t&&mt(t.y)&&ry?Math.max(u,l[r]):Math.max(f,l[r])}function lVe(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function cVe(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,o=e.position,i=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,c,u,f;return a.height>0&&a.width>0&&n?(u=d7({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),f=d7({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),c=lVe({translateX:u,translateY:f,useTranslate3d:s})):c=aVe,{cssProperties:c,cssClasses:sVe({translateX:u,translateY:f,coordinate:n})}}function py(e){"@babel/helpers - typeof";return py=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},py(e)}function f7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function p7(e){for(var t=1;th7||Math.abs(r.height-this.state.lastBoundingBox.height)>h7)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,o=this.props,i=o.active,a=o.allowEscapeViewBox,s=o.animationDuration,l=o.animationEasing,c=o.children,u=o.coordinate,f=o.hasPayload,h=o.isAnimationActive,m=o.offset,g=o.position,y=o.reverseDirection,v=o.useTranslate3d,w=o.viewBox,C=o.wrapperStyle,E=cVe({allowEscapeViewBox:a,coordinate:u,offsetTopLeft:m,position:g,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:w}),I=E.cssClasses,O=E.cssProperties,P=p7(p7({transition:h&&i?"transform ".concat(s,"ms ").concat(l):void 0},O),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&f?"visible":"hidden",position:"absolute",top:0,left:0},C);return Z.createElement("div",{tabIndex:-1,className:I,style:P,ref:function(D){r.wrapperNode=D}},c)}}])}(x.PureComponent),bVe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},td={isSsr:bVe()};function hy(e){"@babel/helpers - typeof";return hy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hy(e)}function m7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function g7(e){for(var t=1;t0;return Z.createElement(vVe,{allowEscapeViewBox:a,animationDuration:s,animationEasing:l,isAnimationActive:h,active:i,coordinate:u,hasPayload:P,offset:m,position:v,reverseDirection:w,useTranslate3d:C,viewBox:E,wrapperStyle:I},AVe(c,g7(g7({},this.props),{},{payload:O})))}}])}(x.PureComponent);lz(ba,"displayName","Tooltip");lz(ba,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!td.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var X2,y7;function MVe(){if(y7)return X2;y7=1;var e=Vc(),t=function(){return e.Date.now()};return X2=t,X2}var Z2,v7;function RVe(){if(v7)return Z2;v7=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return Z2=t,Z2}var J2,b7;function DVe(){if(b7)return J2;b7=1;var e=RVe(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return J2=n,J2}var e_,x7;function oae(){if(x7)return e_;x7=1;var e=DVe(),t=jf(),n=vv(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;function l(c){if(typeof c=="number")return c;if(n(c))return r;if(t(c)){var u=typeof c.valueOf=="function"?c.valueOf():c;c=t(u)?u+"":u}if(typeof c!="string")return c===0?c:+c;c=e(c);var f=i.test(c);return f||a.test(c)?s(c.slice(2),f?2:8):o.test(c)?r:+c}return e_=l,e_}var t_,S7;function iae(){if(S7)return t_;S7=1;var e=jf(),t=MVe(),n=oae(),r="Expected a function",o=Math.max,i=Math.min;function a(s,l,c){var u,f,h,m,g,y,v=0,w=!1,C=!1,E=!0;if(typeof s!="function")throw new TypeError(r);l=n(l)||0,e(c)&&(w=!!c.leading,C="maxWait"in c,h=C?o(n(c.maxWait)||0,l):h,E="trailing"in c?!!c.trailing:E);function I(B){var H=u,j=f;return u=f=void 0,v=B,m=s.apply(j,H),m}function O(B){return v=B,g=setTimeout(D,l),w?I(B):m}function P(B){var H=B-y,j=B-v,L=l-H;return C?i(L,h-j):L}function R(B){var H=B-y,j=B-v;return y===void 0||H>=l||H<0||C&&j>=h}function D(){var B=t();if(R(B))return M(B);g=setTimeout(D,P(B))}function M(B){return g=void 0,E&&u?I(B):(u=f=void 0,m)}function A(){g!==void 0&&clearTimeout(g),v=0,u=y=f=g=void 0}function _(){return g===void 0?m:M(t())}function N(){var B=t(),H=R(B);if(u=arguments,f=this,y=B,H){if(g===void 0)return O(y);if(C)return clearTimeout(g),g=setTimeout(D,l),I(y)}return g===void 0&&(g=setTimeout(D,l)),m}return N.cancel=A,N.flush=_,N}return t_=a,t_}var n_,w7;function kVe(){if(w7)return n_;w7=1;var e=iae(),t=jf(),n="Expected a function";function r(o,i,a){var s=!0,l=!0;if(typeof o!="function")throw new TypeError(n);return t(a)&&(s="leading"in a?!!a.leading:s,l="trailing"in a?!!a.trailing:l),e(o,i,{leading:s,maxWait:i,trailing:l})}return n_=r,n_}var _Ve=kVe();const aae=Gn(_Ve);function jx(e){"@babel/helpers - typeof";return jx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jx(e)}function C7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function _1(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(B=aae(B,y,{trailing:!0,leading:!1}));var H=new ResizeObserver(B),j=O.current.getBoundingClientRect(),L=j.width,V=j.height;return _(L,V),H.observe(O.current),function(){H.disconnect()}},[_,y]);var N=x.useMemo(function(){var B=M.containerWidth,H=M.containerHeight;if(B<0||H<0)return null;Ll(Bp(a)||Bp(l),`The width(%s) and height(%s) are both fixed numbers, - maybe you don't need to use a ResponsiveContainer.`,a,l),Ll(!n||n>0,"The aspect(%s) must be greater than zero.",n);var j=Bp(a)?B:a,L=Bp(l)?H:l;n&&n>0&&(j?L=j/n:L&&(j=L*n),h&&L>h&&(L=h)),Ll(j>0||L>0,`The width(%s) and height(%s) of chart should be greater than 0, + H`).concat(yl,"M").concat(2*s,",").concat(i,` + A`).concat(a,",").concat(a,",0,1,1,").concat(s,",").concat(i),className:"recharts-legend-icon"});if(r.type==="rect")return J.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(yl/8,"h").concat(yl,"v").concat(yl*3/4,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(J.isValidElement(r.legendIcon)){var c=mBe({},r);return delete c.legendIcon,J.cloneElement(r.legendIcon,c)}return J.createElement(HI,{fill:l,cx:i,cy:i,size:yl,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,o=this.props,i=o.payload,a=o.iconSize,s=o.layout,l=o.formatter,c=o.inactiveColor,u={x:0,y:0,width:yl,height:yl},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(m,g){var y=m.formatter||l,v=fe(Fx(Fx({"recharts-legend-item":!0},"legend-item-".concat(g),!0),"inactive",m.inactive));if(m.type==="none")return null;var w=rn(m.value)?null:m.value;jl(!rn(m.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: `);var C=m.inactive?c:m.color;return J.createElement("li",CL({className:v,style:f,key:"legend-item-".concat(g)},If(r.props,m,g)),J.createElement(gL,{width:a,height:a,viewBox:u,style:h},r.renderIcon(m)),J.createElement("span",{className:"recharts-legend-item-text",style:{color:C}},y?y(w,m,g):w))})}},{key:"render",value:function(){var r=this.props,o=r.payload,i=r.layout,a=r.align;if(!o||!o.length)return null;var s={padding:0,margin:0,textAlign:i==="horizontal"?a:"left"};return J.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(x.PureComponent);Fx(nz,"displayName","Legend");Fx(nz,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var hk,x8;function EBe(){if(x8)return hk;x8=1;var e=NI();function t(){this.__data__=new e,this.size=0}return hk=t,hk}var mk,S8;function TBe(){if(S8)return mk;S8=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return mk=e,mk}var gk,w8;function OBe(){if(w8)return gk;w8=1;function e(t){return this.__data__.get(t)}return gk=e,gk}var yk,C8;function IBe(){if(C8)return yk;C8=1;function e(t){return this.__data__.has(t)}return yk=e,yk}var vk,E8;function PBe(){if(E8)return vk;E8=1;var e=NI(),t=WB(),n=KB(),r=200;function o(i,a){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.lengthm))return!1;var y=f.get(a),v=f.get(s);if(y&&v)return y==s&&v==a;var w=-1,C=!0,E=l&o?new e:void 0;for(f.set(a,s),f.set(s,a);++w-1&&r%1==0&&r-1&&n%1==0&&n<=e}return Bk=t,Bk}var zk,K8;function zBe(){if(K8)return zk;K8=1;var e=Zu(),t=az(),n=ed(),r="[object Arguments]",o="[object Array]",i="[object Boolean]",a="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",u="[object Number]",f="[object Object]",h="[object RegExp]",m="[object Set]",g="[object String]",y="[object WeakMap]",v="[object ArrayBuffer]",w="[object DataView]",C="[object Float32Array]",E="[object Float64Array]",I="[object Int8Array]",O="[object Int16Array]",P="[object Int32Array]",R="[object Uint8Array]",D="[object Uint8ClampedArray]",M="[object Uint16Array]",A="[object Uint32Array]",_={};_[C]=_[E]=_[I]=_[O]=_[P]=_[R]=_[D]=_[M]=_[A]=!0,_[r]=_[o]=_[v]=_[i]=_[w]=_[a]=_[s]=_[l]=_[c]=_[u]=_[f]=_[h]=_[m]=_[g]=_[y]=!1;function N(B){return n(B)&&t(B.length)&&!!_[e(B)]}return zk=N,zk}var Vk,Y8;function zie(){if(Y8)return Vk;Y8=1;function e(t){return function(n){return t(n)}}return Vk=e,Vk}var j0={exports:{}};j0.exports;var Q8;function VBe(){return Q8||(Q8=1,function(e,t){var n=aie(),r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(j0,j0.exports)),j0.exports}var Hk,X8;function Vie(){if(X8)return Hk;X8=1;var e=zBe(),t=zie(),n=VBe(),r=n&&n.isTypedArray,o=r?t(r):e;return Hk=o,Hk}var Uk,J8;function HBe(){if(J8)return Uk;J8=1;var e=FBe(),t=oz(),n=Aa(),r=Bie(),o=iz(),i=Vie(),a=Object.prototype,s=a.hasOwnProperty;function l(c,u){var f=n(c),h=!f&&t(c),m=!f&&!h&&r(c),g=!f&&!h&&!m&&i(c),y=f||h||m||g,v=y?e(c.length,String):[],w=v.length;for(var C in c)(u||s.call(c,C))&&!(y&&(C=="length"||m&&(C=="offset"||C=="parent")||g&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||o(C,w)))&&v.push(C);return v}return Uk=l,Uk}var Gk,Z8;function UBe(){if(Z8)return Gk;Z8=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,o=typeof r=="function"&&r.prototype||e;return n===o}return Gk=t,Gk}var qk,e9;function Hie(){if(e9)return qk;e9=1;function e(t,n){return function(r){return t(n(r))}}return qk=e,qk}var Wk,t9;function GBe(){if(t9)return Wk;t9=1;var e=Hie(),t=e(Object.keys,Object);return Wk=t,Wk}var Kk,n9;function qBe(){if(n9)return Kk;n9=1;var e=UBe(),t=GBe(),n=Object.prototype,r=n.hasOwnProperty;function o(i){if(!e(i))return t(i);var a=[];for(var s in Object(i))r.call(i,s)&&s!="constructor"&&a.push(s);return a}return Kk=o,Kk}var Yk,r9;function xw(){if(r9)return Yk;r9=1;var e=GB(),t=az();function n(r){return r!=null&&t(r.length)&&!e(r)}return Yk=n,Yk}var Qk,o9;function UI(){if(o9)return Qk;o9=1;var e=HBe(),t=qBe(),n=xw();function r(o){return n(o)?e(o):t(o)}return Qk=r,Qk}var Xk,i9;function WBe(){if(i9)return Xk;i9=1;var e=_Be(),t=LBe(),n=UI();function r(o){return e(o,n,t)}return Xk=r,Xk}var Jk,a9;function KBe(){if(a9)return Jk;a9=1;var e=WBe(),t=1,n=Object.prototype,r=n.hasOwnProperty;function o(i,a,s,l,c,u){var f=s&t,h=e(i),m=h.length,g=e(a),y=g.length;if(m!=y&&!f)return!1;for(var v=m;v--;){var w=h[v];if(!(f?w in a:r.call(a,w)))return!1}var C=u.get(i),E=u.get(a);if(C&&E)return C==a&&E==i;var I=!0;u.set(i,a),u.set(a,i);for(var O=f;++v-1}return E2=t,E2}var T2,k9;function hze(){if(k9)return T2;k9=1;function e(t,n,r){for(var o=-1,i=t==null?0:t.length;++o=a){var w=c?null:o(l);if(w)return i(w);g=!1,h=r,v=new e}else v=c?[]:y;e:for(;++f=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Aze(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Mze(e){return e.value}function Rze(e,t){if(J.isValidElement(e))return J.cloneElement(e,t);if(typeof e=="function")return J.createElement(e,t);t.ref;var n=Pze(t,xze);return J.createElement(nz,n)}var z9=1,Oc=function(e){function t(){var n;Sze(this,t);for(var r=arguments.length,o=new Array(r),i=0;iz9||Math.abs(o.height-this.lastBoundingBox.height)>z9)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,r&&r(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?yu({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var o=this.props,i=o.layout,a=o.align,s=o.verticalAlign,l=o.margin,c=o.chartWidth,u=o.chartHeight,f,h;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&i==="vertical"){var m=this.getBBoxSnapshot();f={left:((c||0)-m.width)/2}}else f=a==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var g=this.getBBoxSnapshot();h={top:((u||0)-g.height)/2}}else h=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return yu(yu({},f),h)}},{key:"render",value:function(){var r=this,o=this.props,i=o.content,a=o.width,s=o.height,l=o.wrapperStyle,c=o.payloadUniqBy,u=o.payload,f=yu(yu({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return J.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(m){r.wrapperNode=m}},Rze(i,yu(yu({},this.props),{},{payload:Kie(u,c,Mze)})))}}],[{key:"getWithHeight",value:function(r,o){var i=yu(yu({},this.defaultProps),r.props),a=i.layout;return a==="vertical"&&mt(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||o}:null}}])}(x.PureComponent);GI(Oc,"displayName","Legend");GI(Oc,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var M2,V9;function Dze(){if(V9)return M2;V9=1;var e=bw(),t=oz(),n=Aa(),r=e?e.isConcatSpreadable:void 0;function o(i){return n(i)||t(i)||!!(r&&i&&i[r])}return M2=o,M2}var R2,H9;function Xie(){if(H9)return R2;H9=1;var e=jie(),t=Dze();function n(r,o,i,a,s){var l=-1,c=r.length;for(i||(i=t),s||(s=[]);++l0&&i(u)?o>1?n(u,o-1,i,a,s):e(s,u):a||(s[s.length]=u)}return s}return R2=n,R2}var D2,U9;function kze(){if(U9)return D2;U9=1;function e(t){return function(n,r,o){for(var i=-1,a=Object(n),s=o(n),l=s.length;l--;){var c=s[t?l:++i];if(r(a[c],c,a)===!1)break}return n}}return D2=e,D2}var k2,G9;function _ze(){if(G9)return k2;G9=1;var e=kze(),t=e();return k2=t,k2}var _2,q9;function Jie(){if(q9)return _2;q9=1;var e=_ze(),t=UI();function n(r,o){return r&&e(r,o,t)}return _2=n,_2}var $2,W9;function $ze(){if(W9)return $2;W9=1;var e=xw();function t(n,r){return function(o,i){if(o==null)return o;if(!e(o))return n(o,i);for(var a=o.length,s=r?a:-1,l=Object(o);(r?s--:++sr||s&&l&&u&&!c&&!f||i&&l&&u||!o&&u||!a)return 1;if(!i&&!s&&!f&&n=c)return u;var f=o[i];return u*(f=="desc"?-1:1)}}return n.index-r.index}return B2=t,B2}var z2,Z9;function jze(){if(Z9)return z2;Z9=1;var e=YB(),t=QB(),n=Uc(),r=Zie(),o=Nze(),i=zie(),a=Fze(),s=Cv(),l=Aa();function c(u,f,h){f.length?f=e(f,function(y){return l(y)?function(v){return t(v,y.length===1?y[0]:y)}:y}):f=[s];var m=-1;f=e(f,i(n));var g=r(u,function(y,v,w){var C=e(f,function(E){return E(y)});return{criteria:C,index:++m,value:y}});return o(g,function(y,v){return a(y,v,h)})}return z2=c,z2}var V2,e7;function Bze(){if(e7)return V2;e7=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return V2=e,V2}var H2,t7;function zze(){if(t7)return H2;t7=1;var e=Bze(),t=Math.max;function n(r,o,i){return o=t(o===void 0?r.length-1:o,0),function(){for(var a=arguments,s=-1,l=t(a.length-o,0),c=Array(l);++s0){if(++i>=e)return arguments[0]}else i=0;return o.apply(void 0,arguments)}}return W2=r,W2}var K2,a7;function Gze(){if(a7)return K2;a7=1;var e=Hze(),t=Uze(),n=t(e);return K2=n,K2}var Y2,s7;function qze(){if(s7)return Y2;s7=1;var e=Cv(),t=zze(),n=Gze();function r(o,i){return n(t(o,i,e),o+"")}return Y2=r,Y2}var Q2,l7;function qI(){if(l7)return Q2;l7=1;var e=qB(),t=xw(),n=iz(),r=jf();function o(i,a,s){if(!r(s))return!1;var l=typeof a;return(l=="number"?t(s)&&n(a,s.length):l=="string"&&a in s)?e(s[a],i):!1}return Q2=o,Q2}var X2,c7;function Wze(){if(c7)return X2;c7=1;var e=Xie(),t=jze(),n=qze(),r=qI(),o=n(function(i,a){if(i==null)return[];var s=a.length;return s>1&&r(i,a[0],a[1])?a=[]:s>2&&r(a[0],a[1],a[2])&&(a=[a[0]]),t(i,e(a,1),[])});return X2=o,X2}var Kze=Wze();const cz=Gn(Kze);function jx(e){"@babel/helpers - typeof";return jx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jx(e)}function OL(){return OL=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t.x),"".concat(r0,"-left"),mt(n)&&t&&mt(t.x)&&n=t.y),"".concat(r0,"-top"),mt(r)&&t&&mt(t.y)&&ry?Math.max(u,l[r]):Math.max(f,l[r])}function cVe(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function uVe(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,o=e.position,i=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,c,u,f;return a.height>0&&a.width>0&&n?(u=f7({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),f=f7({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),c=cVe({translateX:u,translateY:f,useTranslate3d:s})):c=sVe,{cssProperties:c,cssClasses:lVe({translateX:u,translateY:f,coordinate:n})}}function my(e){"@babel/helpers - typeof";return my=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},my(e)}function p7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function h7(e){for(var t=1;tm7||Math.abs(r.height-this.state.lastBoundingBox.height)>m7)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,o=this.props,i=o.active,a=o.allowEscapeViewBox,s=o.animationDuration,l=o.animationEasing,c=o.children,u=o.coordinate,f=o.hasPayload,h=o.isAnimationActive,m=o.offset,g=o.position,y=o.reverseDirection,v=o.useTranslate3d,w=o.viewBox,C=o.wrapperStyle,E=uVe({allowEscapeViewBox:a,coordinate:u,offsetTopLeft:m,position:g,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:w}),I=E.cssClasses,O=E.cssProperties,P=h7(h7({transition:h&&i?"transform ".concat(s,"ms ").concat(l):void 0},O),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&f?"visible":"hidden",position:"absolute",top:0,left:0},C);return J.createElement("div",{tabIndex:-1,className:I,style:P,ref:function(D){r.wrapperNode=D}},c)}}])}(x.PureComponent),xVe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},td={isSsr:xVe()};function gy(e){"@babel/helpers - typeof";return gy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gy(e)}function g7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function y7(e){for(var t=1;t0;return J.createElement(bVe,{allowEscapeViewBox:a,animationDuration:s,animationEasing:l,isAnimationActive:h,active:i,coordinate:u,hasPayload:P,offset:m,position:v,reverseDirection:w,useTranslate3d:C,viewBox:E,wrapperStyle:I},MVe(c,y7(y7({},this.props),{},{payload:O})))}}])}(x.PureComponent);uz(ba,"displayName","Tooltip");uz(ba,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!td.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Z2,v7;function RVe(){if(v7)return Z2;v7=1;var e=Hc(),t=function(){return e.Date.now()};return Z2=t,Z2}var e_,b7;function DVe(){if(b7)return e_;b7=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return e_=t,e_}var t_,x7;function kVe(){if(x7)return t_;x7=1;var e=DVe(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return t_=n,t_}var n_,S7;function iae(){if(S7)return n_;S7=1;var e=kVe(),t=jf(),n=xv(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;function l(c){if(typeof c=="number")return c;if(n(c))return r;if(t(c)){var u=typeof c.valueOf=="function"?c.valueOf():c;c=t(u)?u+"":u}if(typeof c!="string")return c===0?c:+c;c=e(c);var f=i.test(c);return f||a.test(c)?s(c.slice(2),f?2:8):o.test(c)?r:+c}return n_=l,n_}var r_,w7;function aae(){if(w7)return r_;w7=1;var e=jf(),t=RVe(),n=iae(),r="Expected a function",o=Math.max,i=Math.min;function a(s,l,c){var u,f,h,m,g,y,v=0,w=!1,C=!1,E=!0;if(typeof s!="function")throw new TypeError(r);l=n(l)||0,e(c)&&(w=!!c.leading,C="maxWait"in c,h=C?o(n(c.maxWait)||0,l):h,E="trailing"in c?!!c.trailing:E);function I(B){var H=u,j=f;return u=f=void 0,v=B,m=s.apply(j,H),m}function O(B){return v=B,g=setTimeout(D,l),w?I(B):m}function P(B){var H=B-y,j=B-v,L=l-H;return C?i(L,h-j):L}function R(B){var H=B-y,j=B-v;return y===void 0||H>=l||H<0||C&&j>=h}function D(){var B=t();if(R(B))return M(B);g=setTimeout(D,P(B))}function M(B){return g=void 0,E&&u?I(B):(u=f=void 0,m)}function A(){g!==void 0&&clearTimeout(g),v=0,u=y=f=g=void 0}function _(){return g===void 0?m:M(t())}function N(){var B=t(),H=R(B);if(u=arguments,f=this,y=B,H){if(g===void 0)return O(y);if(C)return clearTimeout(g),g=setTimeout(D,l),I(y)}return g===void 0&&(g=setTimeout(D,l)),m}return N.cancel=A,N.flush=_,N}return r_=a,r_}var o_,C7;function _Ve(){if(C7)return o_;C7=1;var e=aae(),t=jf(),n="Expected a function";function r(o,i,a){var s=!0,l=!0;if(typeof o!="function")throw new TypeError(n);return t(a)&&(s="leading"in a?!!a.leading:s,l="trailing"in a?!!a.trailing:l),e(o,i,{leading:s,maxWait:i,trailing:l})}return o_=r,o_}var $Ve=_Ve();const sae=Gn($Ve);function zx(e){"@babel/helpers - typeof";return zx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zx(e)}function E7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $1(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(B=sae(B,y,{trailing:!0,leading:!1}));var H=new ResizeObserver(B),j=O.current.getBoundingClientRect(),L=j.width,V=j.height;return _(L,V),H.observe(O.current),function(){H.disconnect()}},[_,y]);var N=x.useMemo(function(){var B=M.containerWidth,H=M.containerHeight;if(B<0||H<0)return null;jl(Bp(a)||Bp(l),`The width(%s) and height(%s) are both fixed numbers, + maybe you don't need to use a ResponsiveContainer.`,a,l),jl(!n||n>0,"The aspect(%s) must be greater than zero.",n);var j=Bp(a)?B:a,L=Bp(l)?H:l;n&&n>0&&(j?L=j/n:L&&(j=L*n),h&&L>h&&(L=h)),jl(j>0||L>0,`The width(%s) and height(%s) of chart should be greater than 0, please check the style of container, or the props width(%s) and height(%s), or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the - height and width.`,j,L,a,l,u,f,n);var V=!Array.isArray(m)&&Du(m.type).endsWith("Chart");return Z.Children.map(m,function(W){return Z.isValidElement(W)?x.cloneElement(W,_1({width:j,height:L},V?{style:_1({height:"100%",width:"100%",maxHeight:L,maxWidth:j},W.props.style)}:{})):W})},[n,m,l,h,f,u,M,a]);return Z.createElement("div",{id:v?"".concat(v):void 0,className:fe("recharts-responsive-container",w),style:_1(_1({},I),{},{width:a,height:l,minWidth:u,minHeight:f,maxHeight:h}),ref:O},N)}),wv=function(t){return null};wv.displayName="Cell";function Bx(e){"@babel/helpers - typeof";return Bx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bx(e)}function T7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function PL(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||td.isSsr)return{width:0,height:0};var r=KVe(n),o=JSON.stringify({text:t,copyStyle:r});if(Ym.widthCache[o])return Ym.widthCache[o];try{var i=document.getElementById(O7);i||(i=document.createElement("span"),i.setAttribute("id",O7),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=PL(PL({},WVe),r);Object.assign(i.style,a),i.textContent="".concat(t);var s=i.getBoundingClientRect(),l={width:s.width,height:s.height};return Ym.widthCache[o]=l,++Ym.cacheCount>qVe&&(Ym.cacheCount=0,Ym.widthCache={}),l}catch{return{width:0,height:0}}},YVe=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function zx(e){"@babel/helpers - typeof";return zx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zx(e)}function ST(e,t){return JVe(e)||ZVe(e,t)||XVe(e,t)||QVe()}function QVe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XVe(e,t){if(e){if(typeof e=="string")return I7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I7(e,t)}}function I7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pHe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function k7(e,t){return yHe(e)||gHe(e,t)||mHe(e,t)||hHe()}function hHe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mHe(e,t){if(e){if(typeof e=="string")return _7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _7(e,t)}}function _7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[];return j.reduce(function(L,V){var W=V.word,K=V.width,G=L[L.length-1];if(G&&(o==null||i||G.width+K+rV.width?L:V})};if(!u)return m;for(var y="…",v=function(j){var L=f.slice(0,j),V=uae({breakAll:c,style:l,children:L+y}).wordsWithComputedWidth,W=h(V),K=W.length>a||g(W).width>Number(o);return[K,W]},w=0,C=f.length-1,E=0,I;w<=C&&E<=f.length-1;){var O=Math.floor((w+C)/2),P=O-1,R=v(P),D=k7(R,2),M=D[0],A=D[1],_=v(O),N=k7(_,1),B=N[0];if(!M&&!B&&(w=O+1),M&&B&&(C=O-1),!M&&B){I=A;break}E++}return I||m},$7=function(t){var n=on(t)?[]:t.toString().split(cae);return[{words:n}]},bHe=function(t){var n=t.width,r=t.scaleToFit,o=t.children,i=t.style,a=t.breakAll,s=t.maxLines;if((n||r)&&!td.isSsr){var l,c,u=uae({breakAll:a,children:o,style:i});if(u){var f=u.wordsWithComputedWidth,h=u.spaceWidth;l=f,c=h}else return $7(o);return vHe({breakAll:a,children:o,maxLines:s,style:i},l,c,n,r)}return $7(o)},N7="#808080",wh=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,i=o===void 0?0:o,a=t.lineHeight,s=a===void 0?"1em":a,l=t.capHeight,c=l===void 0?"0.71em":l,u=t.scaleToFit,f=u===void 0?!1:u,h=t.textAnchor,m=h===void 0?"start":h,g=t.verticalAnchor,y=g===void 0?"end":g,v=t.fill,w=v===void 0?N7:v,C=D7(t,dHe),E=x.useMemo(function(){return bHe({breakAll:C.breakAll,children:C.children,maxLines:C.maxLines,scaleToFit:f,style:C.style,width:C.width})},[C.breakAll,C.children,C.maxLines,f,C.style,C.width]),I=C.dx,O=C.dy,P=C.angle,R=C.className,D=C.breakAll,M=D7(C,fHe);if(!Vo(r)||!Vo(i))return null;var A=r+(mt(I)?I:0),_=i+(mt(O)?O:0),N;switch(y){case"start":N=r_("calc(".concat(c,")"));break;case"middle":N=r_("calc(".concat((E.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:N=r_("calc(".concat(E.length-1," * -").concat(s,")"));break}var B=[];if(f){var H=E[0].width,j=C.width;B.push("scale(".concat((mt(j)?j/H:1)/H,")"))}return P&&B.push("rotate(".concat(P,", ").concat(A,", ").concat(_,")")),B.length&&(M.transform=B.join(" ")),Z.createElement("text",AL({},zt(M,!0),{x:A,y:_,className:fe("recharts-text",R),textAnchor:m,fill:w.includes("url")?N7:w}),E.map(function(L,V){var W=L.words.join(D?"":" ");return Z.createElement("tspan",{x:A,dy:V===0?N:s,key:"".concat(W,"-").concat(V)},W)}))};function yf(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function xHe(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function cz(e){let t,n,r;e.length!==2?(t=yf,n=(s,l)=>yf(e(s),l),r=(s,l)=>e(s)-l):(t=e===yf||e===xHe?e:SHe,n=e,r=e);function o(s,l,c=0,u=s.length){if(c>>1;n(s[f],l)<0?c=f+1:u=f}while(c>>1;n(s[f],l)<=0?c=f+1:u=f}while(cc&&r(s[f-1],l)>-r(s[f],l)?f-1:f}return{left:o,center:a,right:i}}function SHe(){return 0}function dae(e){return e===null?NaN:+e}function*wHe(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const CHe=cz(yf),xw=CHe.right;cz(dae).center;class L7 extends Map{constructor(t,n=OHe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(F7(this,t))}has(t){return super.has(F7(this,t))}set(t,n){return super.set(EHe(this,t),n)}delete(t){return super.delete(THe(this,t))}}function F7({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function EHe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function THe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function OHe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function IHe(e=yf){if(e===yf)return fae;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function fae(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const PHe=Math.sqrt(50),AHe=Math.sqrt(10),MHe=Math.sqrt(2);function wT(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=PHe?10:i>=AHe?5:i>=MHe?2:1;let s,l,c;return o<0?(c=Math.pow(10,-o)/a,s=Math.round(e*c),l=Math.round(t*c),s/ct&&--l,c=-c):(c=Math.pow(10,o)*a,s=Math.round(e/c),l=Math.round(t/c),s*ct&&--l),l0))return[];if(e===t)return[e];const r=t=o))return[];const s=i-o+1,l=new Array(s);if(r)if(a<0)for(let c=0;c=r)&&(n=r);return n}function B7(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function pae(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=o===void 0?fae:IHe(o);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,u=Math.log(l),f=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*f*(l-f)/l)*(c-l/2<0?-1:1),m=Math.max(n,Math.floor(t-c*f/l+h)),g=Math.min(r,Math.floor(t+(l-c)*f/l+h));pae(e,t,m,g,o)}const i=e[t];let a=n,s=r;for(n0(e,n,t),o(e[r],i)>0&&n0(e,n,r);a0;)--s}o(e[n],i)===0?n0(e,n,s):(++s,n0(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function n0(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function RHe(e,t,n){if(e=Float64Array.from(wHe(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return B7(e);if(t>=1)return j7(e);var r,o=(r-1)*t,i=Math.floor(o),a=j7(pae(e,i).subarray(0,i+1)),s=B7(e.subarray(i+1));return a+(s-a)*(o-i)}}function DHe(e,t,n=dae){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e),s=+n(e[i+1],i+1,e);return a+(s-a)*(o-i)}}function kHe(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(o);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?N1(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?N1(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=$He.exec(e))?new wa(t[1],t[2],t[3],1):(t=NHe.exec(e))?new wa(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=LHe.exec(e))?N1(t[1],t[2],t[3],t[4]):(t=FHe.exec(e))?N1(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=jHe.exec(e))?W7(t[1],t[2]/100,t[3]/100,1):(t=BHe.exec(e))?W7(t[1],t[2]/100,t[3]/100,t[4]):z7.hasOwnProperty(e)?U7(z7[e]):e==="transparent"?new wa(NaN,NaN,NaN,0):null}function U7(e){return new wa(e>>16&255,e>>8&255,e&255,1)}function N1(e,t,n,r){return r<=0&&(e=t=n=NaN),new wa(e,t,n,r)}function HHe(e){return e instanceof Sw||(e=Gx(e)),e?(e=e.rgb(),new wa(e.r,e.g,e.b,e.opacity)):new wa}function _L(e,t,n,r){return arguments.length===1?HHe(e):new wa(e,t,n,r??1)}function wa(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}dz(wa,_L,mae(Sw,{brighter(e){return e=e==null?CT:Math.pow(CT,e),new wa(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Hx:Math.pow(Hx,e),new wa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new wa(oh(this.r),oh(this.g),oh(this.b),ET(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:G7,formatHex:G7,formatHex8:UHe,formatRgb:q7,toString:q7}));function G7(){return`#${zp(this.r)}${zp(this.g)}${zp(this.b)}`}function UHe(){return`#${zp(this.r)}${zp(this.g)}${zp(this.b)}${zp((isNaN(this.opacity)?1:this.opacity)*255)}`}function q7(){const e=ET(this.opacity);return`${e===1?"rgb(":"rgba("}${oh(this.r)}, ${oh(this.g)}, ${oh(this.b)}${e===1?")":`, ${e})`}`}function ET(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function oh(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function zp(e){return e=oh(e),(e<16?"0":"")+e.toString(16)}function W7(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ml(e,t,n,r)}function gae(e){if(e instanceof Ml)return new Ml(e.h,e.s,e.l,e.opacity);if(e instanceof Sw||(e=Gx(e)),!e)return new Ml;if(e instanceof Ml)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(n-r)/s+(n0&&l<1?0:a,new Ml(a,s,l,e.opacity)}function GHe(e,t,n,r){return arguments.length===1?gae(e):new Ml(e,t,n,r??1)}function Ml(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}dz(Ml,GHe,mae(Sw,{brighter(e){return e=e==null?CT:Math.pow(CT,e),new Ml(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Hx:Math.pow(Hx,e),new Ml(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new wa(o_(e>=240?e-240:e+120,o,r),o_(e,o,r),o_(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Ml(K7(this.h),L1(this.s),L1(this.l),ET(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ET(this.opacity);return`${e===1?"hsl(":"hsla("}${K7(this.h)}, ${L1(this.s)*100}%, ${L1(this.l)*100}%${e===1?")":`, ${e})`}`}}));function K7(e){return e=(e||0)%360,e<0?e+360:e}function L1(e){return Math.max(0,Math.min(1,e||0))}function o_(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const fz=e=>()=>e;function qHe(e,t){return function(n){return e+n*t}}function WHe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function KHe(e){return(e=+e)==1?yae:function(t,n){return n-t?WHe(t,n,e):fz(isNaN(t)?n:t)}}function yae(e,t){var n=t-e;return n?qHe(e,n):fz(isNaN(e)?t:e)}const Y7=function e(t){var n=KHe(t);function r(o,i){var a=n((o=_L(o)).r,(i=_L(i)).r),s=n(o.g,i.g),l=n(o.b,i.b),c=yae(o.opacity,i.opacity);return function(u){return o.r=a(u),o.g=s(u),o.b=l(u),o.opacity=c(u),o+""}}return r.gamma=e,r}(1);function YHe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(i){for(o=0;on&&(i=t.slice(n,i),s[a]?s[a]+=i:s[++a]=i),(r=r[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:TT(r,o)})),n=i_.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function a5e(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o2?s5e:a5e,l=c=null,f}function f(h){return h==null||isNaN(h=+h)?i:(l||(l=s(e.map(r),t,n)))(r(a(h)))}return f.invert=function(h){return a(o((c||(c=s(t,e.map(r),TT)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,OT),u()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),u()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),n=pz,u()},f.clamp=function(h){return arguments.length?(a=h?!0:ra,u()):a!==ra},f.interpolate=function(h){return arguments.length?(n=h,u()):n},f.unknown=function(h){return arguments.length?(i=h,f):i},function(h,m){return r=h,o=m,u()}}function hz(){return qI()(ra,ra)}function l5e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function IT(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function my(e){return e=IT(Math.abs(e)),e?e[1]:NaN}function c5e(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function u5e(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var d5e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function qx(e){if(!(t=d5e.exec(e)))throw new Error("invalid format: "+e);var t;return new mz({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}qx.prototype=mz.prototype;function mz(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}mz.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function f5e(e){e:for(var t=e.length,n=1,r=-1,o;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var vae;function p5e(e,t){var n=IT(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(vae=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+IT(e,Math.max(0,t+i-1))[0]}function X7(e,t){var n=IT(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const Z7={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:l5e,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>X7(e*100,t),r:X7,s:p5e,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function J7(e){return e}var eK=Array.prototype.map,tK=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function h5e(e){var t=e.grouping===void 0||e.thousands===void 0?J7:c5e(eK.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?J7:u5e(eK.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(f){f=qx(f);var h=f.fill,m=f.align,g=f.sign,y=f.symbol,v=f.zero,w=f.width,C=f.comma,E=f.precision,I=f.trim,O=f.type;O==="n"?(C=!0,O="g"):Z7[O]||(E===void 0&&(E=12),I=!0,O="g"),(v||h==="0"&&m==="=")&&(v=!0,h="0",m="=");var P=y==="$"?n:y==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",R=y==="$"?r:/[%p]/.test(O)?a:"",D=Z7[O],M=/[defgprs%]/.test(O);E=E===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function A(_){var N=P,B=R,H,j,L;if(O==="c")B=D(_)+B,_="";else{_=+_;var V=_<0||1/_<0;if(_=isNaN(_)?l:D(Math.abs(_),E),I&&(_=f5e(_)),V&&+_==0&&g!=="+"&&(V=!1),N=(V?g==="("?g:s:g==="-"||g==="("?"":g)+N,B=(O==="s"?tK[8+vae/3]:"")+B+(V&&g==="("?")":""),M){for(H=-1,j=_.length;++HL||L>57){B=(L===46?o+_.slice(H+1):_.slice(H))+B,_=_.slice(0,H);break}}}C&&!v&&(_=t(_,1/0));var W=N.length+_.length+B.length,K=W>1)+N+_+B+K.slice(W);break;default:_=K+N+_+B;break}return i(_)}return A.toString=function(){return f+""},A}function u(f,h){var m=c((f=qx(f),f.type="f",f)),g=Math.max(-8,Math.min(8,Math.floor(my(h)/3)))*3,y=Math.pow(10,-g),v=tK[8+g/3];return function(w){return m(y*w)+v}}return{format:c,formatPrefix:u}}var F1,gz,bae;m5e({thousands:",",grouping:[3],currency:["$",""]});function m5e(e){return F1=h5e(e),gz=F1.format,bae=F1.formatPrefix,F1}function g5e(e){return Math.max(0,-my(Math.abs(e)))}function y5e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(my(t)/3)))*3-my(Math.abs(e)))}function v5e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,my(t)-my(e))+1}function xae(e,t,n,r){var o=DL(e,t,n),i;switch(r=qx(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=y5e(o,a))&&(r.precision=i),bae(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=v5e(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=g5e(o))&&(r.precision=i-(r.type==="%")*2);break}}return gz(r)}function zf(e){var t=e.domain;return e.ticks=function(n){var r=t();return ML(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return xae(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,i=r.length-1,a=r[o],s=r[i],l,c,u=10;for(s0;){if(c=RL(a,s,n),c===l)return r[o]=a,r[i]=s,t(r);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function PT(){var e=hz();return e.copy=function(){return ww(e,PT())},sl.apply(e,arguments),zf(e)}function Sae(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,OT),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return Sae(e).unknown(t)},e=arguments.length?Array.from(e,OT):[0,1],zf(n)}function wae(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],i=e[r],a;return iMath.pow(e,t)}function C5e(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function oK(e){return(t,n)=>-e(-t,n)}function yz(e){const t=e(nK,rK),n=t.domain;let r=10,o,i;function a(){return o=C5e(r),i=w5e(r),n()[0]<0?(o=oK(o),i=oK(i),e(b5e,x5e)):e(nK,rK),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let c=l[0],u=l[l.length-1];const f=u0){for(;h<=m;++h)for(g=1;gu)break;w.push(y)}}else for(;h<=m;++h)for(g=r-1;g>=1;--g)if(y=h>0?g/i(-h):g*i(h),!(yu)break;w.push(y)}w.length*2{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=qx(l)).precision==null&&(l.trim=!0),l=gz(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return u=>{let f=u/i(Math.round(o(u)));return f*rn(wae(n(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function Cae(){const e=yz(qI()).domain([1,10]);return e.copy=()=>ww(e,Cae()).base(e.base()),sl.apply(e,arguments),e}function iK(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function aK(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function vz(e){var t=1,n=e(iK(t),aK(t));return n.constant=function(r){return arguments.length?e(iK(t=+r),aK(t)):t},zf(n)}function Eae(){var e=vz(qI());return e.copy=function(){return ww(e,Eae()).constant(e.constant())},sl.apply(e,arguments)}function sK(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function E5e(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function T5e(e){return e<0?-e*e:e*e}function bz(e){var t=e(ra,ra),n=1;function r(){return n===1?e(ra,ra):n===.5?e(E5e,T5e):e(sK(n),sK(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},zf(t)}function xz(){var e=bz(qI());return e.copy=function(){return ww(e,xz()).exponent(e.exponent())},sl.apply(e,arguments),e}function O5e(){return xz.apply(null,arguments).exponent(.5)}function lK(e){return Math.sign(e)*e*e}function I5e(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Tae(){var e=hz(),t=[0,1],n=!1,r;function o(i){var a=I5e(e(i));return isNaN(a)?r:n?Math.round(a):a}return o.invert=function(i){return e.invert(lK(i))},o.domain=function(i){return arguments.length?(e.domain(i),o):e.domain()},o.range=function(i){return arguments.length?(e.range((t=Array.from(i,OT)).map(lK)),o):t.slice()},o.rangeRound=function(i){return o.range(i).round(!0)},o.round=function(i){return arguments.length?(n=!!i,o):n},o.clamp=function(i){return arguments.length?(e.clamp(i),o):e.clamp()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return Tae(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},sl.apply(o,arguments),zf(o)}function Oae(){var e=[],t=[],n=[],r;function o(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a0?n[s-1]:e[0],s=n?[r[n-1],t]:[r[c-1],r[c]]},a.unknown=function(l){return arguments.length&&(i=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return Iae().domain([e,t]).range(o).unknown(i)},sl.apply(zf(a),arguments)}function Pae(){var e=[.5],t=[0,1],n,r=1;function o(i){return i!=null&&i<=i?t[xw(e,i,0,r)]:n}return o.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var a=t.indexOf(i);return[e[a-1],e[a]]},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return Pae().domain(e).range(t).unknown(n)},sl.apply(o,arguments)}const a_=new Date,s_=new Date;function Yo(e,t,n,r){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{const a=o(i),s=o.ceil(i);return i-a(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,s)=>{const l=[];if(i=o.ceil(i),s=s==null?1:Math.floor(s),!(i0))return l;let c;do l.push(c=new Date(+i)),t(i,s),e(i);while(cYo(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););}),n&&(o.count=(i,a)=>(a_.setTime(+i),s_.setTime(+a),e(a_),e(s_),Math.floor(n(a_,s_))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?a=>r(a)%i===0:a=>o.count(0,a)%i===0):o)),o}const AT=Yo(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);AT.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Yo(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):AT);AT.range;const Pu=1e3,Hs=Pu*60,Au=Hs*60,Wu=Au*24,Sz=Wu*7,cK=Wu*30,l_=Wu*365,Vp=Yo(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Pu)},(e,t)=>(t-e)/Pu,e=>e.getUTCSeconds());Vp.range;const wz=Yo(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Pu)},(e,t)=>{e.setTime(+e+t*Hs)},(e,t)=>(t-e)/Hs,e=>e.getMinutes());wz.range;const Cz=Yo(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Hs)},(e,t)=>(t-e)/Hs,e=>e.getUTCMinutes());Cz.range;const Ez=Yo(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Pu-e.getMinutes()*Hs)},(e,t)=>{e.setTime(+e+t*Au)},(e,t)=>(t-e)/Au,e=>e.getHours());Ez.range;const Tz=Yo(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Au)},(e,t)=>(t-e)/Au,e=>e.getUTCHours());Tz.range;const Cw=Yo(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Hs)/Wu,e=>e.getDate()-1);Cw.range;const WI=Yo(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Wu,e=>e.getUTCDate()-1);WI.range;const Aae=Yo(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Wu,e=>Math.floor(e/Wu));Aae.range;function Vh(e){return Yo(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Hs)/Sz)}const KI=Vh(0),MT=Vh(1),P5e=Vh(2),A5e=Vh(3),gy=Vh(4),M5e=Vh(5),R5e=Vh(6);KI.range;MT.range;P5e.range;A5e.range;gy.range;M5e.range;R5e.range;function Hh(e){return Yo(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Sz)}const YI=Hh(0),RT=Hh(1),D5e=Hh(2),k5e=Hh(3),yy=Hh(4),_5e=Hh(5),$5e=Hh(6);YI.range;RT.range;D5e.range;k5e.range;yy.range;_5e.range;$5e.range;const Oz=Yo(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Oz.range;const Iz=Yo(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Iz.range;const Ku=Yo(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Ku.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Yo(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Ku.range;const Yu=Yo(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Yu.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Yo(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Yu.range;function Mae(e,t,n,r,o,i){const a=[[Vp,1,Pu],[Vp,5,5*Pu],[Vp,15,15*Pu],[Vp,30,30*Pu],[i,1,Hs],[i,5,5*Hs],[i,15,15*Hs],[i,30,30*Hs],[o,1,Au],[o,3,3*Au],[o,6,6*Au],[o,12,12*Au],[r,1,Wu],[r,2,2*Wu],[n,1,Sz],[t,1,cK],[t,3,3*cK],[e,1,l_]];function s(c,u,f){const h=uv).right(a,h);if(m===a.length)return e.every(DL(c/l_,u/l_,f));if(m===0)return AT.every(Math.max(DL(c,u,f),1));const[g,y]=a[h/a[m-1][2]53)return null;"w"in oe||(oe.w=1),"Z"in oe?(pe=u_(r0(oe.y,0,1)),Ce=pe.getUTCDay(),pe=Ce>4||Ce===0?RT.ceil(pe):RT(pe),pe=WI.offset(pe,(oe.V-1)*7),oe.y=pe.getUTCFullYear(),oe.m=pe.getUTCMonth(),oe.d=pe.getUTCDate()+(oe.w+6)%7):(pe=c_(r0(oe.y,0,1)),Ce=pe.getDay(),pe=Ce>4||Ce===0?MT.ceil(pe):MT(pe),pe=Cw.offset(pe,(oe.V-1)*7),oe.y=pe.getFullYear(),oe.m=pe.getMonth(),oe.d=pe.getDate()+(oe.w+6)%7)}else("W"in oe||"U"in oe)&&("w"in oe||(oe.w="u"in oe?oe.u%7:"W"in oe?1:0),Ce="Z"in oe?u_(r0(oe.y,0,1)).getUTCDay():c_(r0(oe.y,0,1)).getDay(),oe.m=0,oe.d="W"in oe?(oe.w+6)%7+oe.W*7-(Ce+5)%7:oe.w+oe.U*7-(Ce+6)%7);return"Z"in oe?(oe.H+=oe.Z/100|0,oe.M+=oe.Z%100,u_(oe)):c_(oe)}}function D(ne,le,de,oe){for(var ue=0,pe=le.length,Ce=de.length,xe,Re;ue=Ce)return-1;if(xe=le.charCodeAt(ue++),xe===37){if(xe=le.charAt(ue++),Re=O[xe in uK?le.charAt(ue++):xe],!Re||(oe=Re(ne,de,oe))<0)return-1}else if(xe!=de.charCodeAt(oe++))return-1}return oe}function M(ne,le,de){var oe=c.exec(le.slice(de));return oe?(ne.p=u.get(oe[0].toLowerCase()),de+oe[0].length):-1}function A(ne,le,de){var oe=m.exec(le.slice(de));return oe?(ne.w=g.get(oe[0].toLowerCase()),de+oe[0].length):-1}function _(ne,le,de){var oe=f.exec(le.slice(de));return oe?(ne.w=h.get(oe[0].toLowerCase()),de+oe[0].length):-1}function N(ne,le,de){var oe=w.exec(le.slice(de));return oe?(ne.m=C.get(oe[0].toLowerCase()),de+oe[0].length):-1}function B(ne,le,de){var oe=y.exec(le.slice(de));return oe?(ne.m=v.get(oe[0].toLowerCase()),de+oe[0].length):-1}function H(ne,le,de){return D(ne,t,le,de)}function j(ne,le,de){return D(ne,n,le,de)}function L(ne,le,de){return D(ne,r,le,de)}function V(ne){return a[ne.getDay()]}function W(ne){return i[ne.getDay()]}function K(ne){return l[ne.getMonth()]}function G(ne){return s[ne.getMonth()]}function q(ne){return o[+(ne.getHours()>=12)]}function Y(ne){return 1+~~(ne.getMonth()/3)}function J(ne){return a[ne.getUTCDay()]}function ie(ne){return i[ne.getUTCDay()]}function se(ne){return l[ne.getUTCMonth()]}function ce(ne){return s[ne.getUTCMonth()]}function ye(ne){return o[+(ne.getUTCHours()>=12)]}function Se(ne){return 1+~~(ne.getUTCMonth()/3)}return{format:function(ne){var le=P(ne+="",E);return le.toString=function(){return ne},le},parse:function(ne){var le=R(ne+="",!1);return le.toString=function(){return ne},le},utcFormat:function(ne){var le=P(ne+="",I);return le.toString=function(){return ne},le},utcParse:function(ne){var le=R(ne+="",!0);return le.toString=function(){return ne},le}}}var uK={"-":"",_:" ",0:"0"},di=/^\s*\d+/,z5e=/^%/,V5e=/[\\^$*+?|[\]().{}]/g;function er(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i[t.toLowerCase(),n]))}function U5e(e,t,n){var r=di.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function G5e(e,t,n){var r=di.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function q5e(e,t,n){var r=di.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function W5e(e,t,n){var r=di.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function K5e(e,t,n){var r=di.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function dK(e,t,n){var r=di.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function fK(e,t,n){var r=di.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Y5e(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Q5e(e,t,n){var r=di.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function X5e(e,t,n){var r=di.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function pK(e,t,n){var r=di.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Z5e(e,t,n){var r=di.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function hK(e,t,n){var r=di.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function J5e(e,t,n){var r=di.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function eUe(e,t,n){var r=di.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function tUe(e,t,n){var r=di.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function nUe(e,t,n){var r=di.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function rUe(e,t,n){var r=z5e.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function oUe(e,t,n){var r=di.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function iUe(e,t,n){var r=di.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function mK(e,t){return er(e.getDate(),t,2)}function aUe(e,t){return er(e.getHours(),t,2)}function sUe(e,t){return er(e.getHours()%12||12,t,2)}function lUe(e,t){return er(1+Cw.count(Ku(e),e),t,3)}function Rae(e,t){return er(e.getMilliseconds(),t,3)}function cUe(e,t){return Rae(e,t)+"000"}function uUe(e,t){return er(e.getMonth()+1,t,2)}function dUe(e,t){return er(e.getMinutes(),t,2)}function fUe(e,t){return er(e.getSeconds(),t,2)}function pUe(e){var t=e.getDay();return t===0?7:t}function hUe(e,t){return er(KI.count(Ku(e)-1,e),t,2)}function Dae(e){var t=e.getDay();return t>=4||t===0?gy(e):gy.ceil(e)}function mUe(e,t){return e=Dae(e),er(gy.count(Ku(e),e)+(Ku(e).getDay()===4),t,2)}function gUe(e){return e.getDay()}function yUe(e,t){return er(MT.count(Ku(e)-1,e),t,2)}function vUe(e,t){return er(e.getFullYear()%100,t,2)}function bUe(e,t){return e=Dae(e),er(e.getFullYear()%100,t,2)}function xUe(e,t){return er(e.getFullYear()%1e4,t,4)}function SUe(e,t){var n=e.getDay();return e=n>=4||n===0?gy(e):gy.ceil(e),er(e.getFullYear()%1e4,t,4)}function wUe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+er(t/60|0,"0",2)+er(t%60,"0",2)}function gK(e,t){return er(e.getUTCDate(),t,2)}function CUe(e,t){return er(e.getUTCHours(),t,2)}function EUe(e,t){return er(e.getUTCHours()%12||12,t,2)}function TUe(e,t){return er(1+WI.count(Yu(e),e),t,3)}function kae(e,t){return er(e.getUTCMilliseconds(),t,3)}function OUe(e,t){return kae(e,t)+"000"}function IUe(e,t){return er(e.getUTCMonth()+1,t,2)}function PUe(e,t){return er(e.getUTCMinutes(),t,2)}function AUe(e,t){return er(e.getUTCSeconds(),t,2)}function MUe(e){var t=e.getUTCDay();return t===0?7:t}function RUe(e,t){return er(YI.count(Yu(e)-1,e),t,2)}function _ae(e){var t=e.getUTCDay();return t>=4||t===0?yy(e):yy.ceil(e)}function DUe(e,t){return e=_ae(e),er(yy.count(Yu(e),e)+(Yu(e).getUTCDay()===4),t,2)}function kUe(e){return e.getUTCDay()}function _Ue(e,t){return er(RT.count(Yu(e)-1,e),t,2)}function $Ue(e,t){return er(e.getUTCFullYear()%100,t,2)}function NUe(e,t){return e=_ae(e),er(e.getUTCFullYear()%100,t,2)}function LUe(e,t){return er(e.getUTCFullYear()%1e4,t,4)}function FUe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?yy(e):yy.ceil(e),er(e.getUTCFullYear()%1e4,t,4)}function jUe(){return"+0000"}function yK(){return"%"}function vK(e){return+e}function bK(e){return Math.floor(+e/1e3)}var Qm,$ae,Nae;BUe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function BUe(e){return Qm=B5e(e),$ae=Qm.format,Qm.parse,Nae=Qm.utcFormat,Qm.utcParse,Qm}function zUe(e){return new Date(e)}function VUe(e){return e instanceof Date?+e:+new Date(+e)}function Pz(e,t,n,r,o,i,a,s,l,c){var u=hz(),f=u.invert,h=u.domain,m=c(".%L"),g=c(":%S"),y=c("%I:%M"),v=c("%I %p"),w=c("%a %d"),C=c("%b %d"),E=c("%B"),I=c("%Y");function O(P){return(l(P)t(o/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(o,i)=>RHe(e,i/r))},n.copy=function(){return Bae(t).domain(e)},rd.apply(n,arguments)}function XI(){var e=0,t=.5,n=1,r=1,o,i,a,s,l,c=ra,u,f=!1,h;function m(y){return isNaN(y=+y)?h:(y=.5+((y=+u(y))-i)*(r*yn}return f_=e,f_}var p_,CK;function WUe(){if(CK)return p_;CK=1;var e=ZI(),t=Uae(),n=Sv();function r(o){return o&&o.length?e(o,n,t):void 0}return p_=r,p_}var KUe=WUe();const ff=Gn(KUe);var h_,EK;function Gae(){if(EK)return h_;EK=1;function e(t,n){return te.e^i.s<0?1:-1;for(r=i.d.length,o=e.d.length,t=0,n=re.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1};jt.decimalPlaces=jt.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*zr;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};jt.dividedBy=jt.div=function(e){return ku(this,new this.constructor(e))};jt.dividedToIntegerBy=jt.idiv=function(e){var t=this,n=t.constructor;return Ar(ku(t,new n(e),0,1),n.precision)};jt.equals=jt.eq=function(e){return!this.cmp(e)};jt.exponent=function(){return _o(this)};jt.greaterThan=jt.gt=function(e){return this.cmp(e)>0};jt.greaterThanOrEqualTo=jt.gte=function(e){return this.cmp(e)>=0};jt.isInteger=jt.isint=function(){return this.e>this.d.length-2};jt.isNegative=jt.isneg=function(){return this.s<0};jt.isPositive=jt.ispos=function(){return this.s>0};jt.isZero=function(){return this.s===0};jt.lessThan=jt.lt=function(e){return this.cmp(e)<0};jt.lessThanOrEqualTo=jt.lte=function(e){return this.cmp(e)<1};jt.logarithm=jt.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Wa))throw Error(tl+"NaN");if(n.s<1)throw Error(tl+(n.s?"NaN":"-Infinity"));return n.eq(Wa)?new r(0):(Kr=!1,t=ku(Wx(n,i),Wx(e,i),i),Kr=!0,Ar(t,o))};jt.minus=jt.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Yae(t,e):Wae(t,(e.s=-e.s,e))};jt.modulo=jt.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(tl+"NaN");return n.s?(Kr=!1,t=ku(n,e,0,1).times(e),Kr=!0,n.minus(t)):Ar(new r(n),o)};jt.naturalExponential=jt.exp=function(){return Kae(this)};jt.naturalLogarithm=jt.ln=function(){return Wx(this)};jt.negated=jt.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};jt.plus=jt.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Wae(t,e):Yae(t,(e.s=-e.s,e))};jt.precision=jt.sd=function(e){var t,n,r,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ih+e);if(t=_o(o)+1,r=o.d.length-1,n=r*zr+1,r=o.d[r],r){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};jt.squareRoot=jt.sqrt=function(){var e,t,n,r,o,i,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(tl+"NaN")}for(e=_o(s),Kr=!1,o=Math.sqrt(+s),o==0||o==1/0?(t=vc(s.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Tv((e+1)/2)-(e<0||e%2),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(o.toString()),n=l.precision,o=a=n+3;;)if(i=r,r=i.plus(ku(s,i,a+2)).times(.5),vc(i.d).slice(0,a)===(t=vc(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&t=="4999"){if(Ar(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if(t!="9999")break;a+=4}return Kr=!0,Ar(r,n)};jt.times=jt.mul=function(e){var t,n,r,o,i,a,s,l,c,u=this,f=u.constructor,h=u.d,m=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,n=u.e+e.e,l=h.length,c=m.length,l=0;){for(t=0,o=l+r;o>r;)s=i[o]+m[r]*h[o-r-1]+t,i[o--]=s%ni|0,t=s/ni|0;i[o]=(i[o]+t)%ni|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,Kr?Ar(e,f.precision):e};jt.toDecimalPlaces=jt.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Fc(e,0,Ev),t===void 0?t=r.rounding:Fc(t,0,8),Ar(n,e+_o(n)+1,t))};jt.toExponential=function(e,t){var n,r=this,o=r.constructor;return e===void 0?n=Ch(r,!0):(Fc(e,0,Ev),t===void 0?t=o.rounding:Fc(t,0,8),r=Ar(new o(r),e+1,t),n=Ch(r,!0,e+1)),n};jt.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return e===void 0?Ch(o):(Fc(e,0,Ev),t===void 0?t=i.rounding:Fc(t,0,8),r=Ar(new i(o),e+_o(o)+1,t),n=Ch(r.abs(),!1,e+_o(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)};jt.toInteger=jt.toint=function(){var e=this,t=e.constructor;return Ar(new t(e),_o(e)+1,t.rounding)};jt.toNumber=function(){return+this};jt.toPower=jt.pow=function(e){var t,n,r,o,i,a,s=this,l=s.constructor,c=12,u=+(e=new l(e));if(!e.s)return new l(Wa);if(s=new l(s),!s.s){if(e.s<1)throw Error(tl+"Infinity");return s}if(s.eq(Wa))return s;if(r=l.precision,e.eq(Wa))return Ar(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,i=s.s,a){if((n=u<0?-u:u)<=qae){for(o=new l(Wa),t=Math.ceil(r/zr+4),Kr=!1;n%2&&(o=o.times(s),MK(o.d,t)),n=Tv(n/2),n!==0;)s=s.times(s),MK(s.d,t);return Kr=!0,e.s<0?new l(Wa).div(o):Ar(o,r)}}else if(i<0)throw Error(tl+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,Kr=!1,o=e.times(Wx(s,r+c)),Kr=!0,o=Kae(o),o.s=i,o};jt.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return e===void 0?(n=_o(o),r=Ch(o,n<=i.toExpNeg||n>=i.toExpPos)):(Fc(e,1,Ev),t===void 0?t=i.rounding:Fc(t,0,8),o=Ar(new i(o),e,t),n=_o(o),r=Ch(o,e<=n||n<=i.toExpNeg,e)),r};jt.toSignificantDigits=jt.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Fc(e,1,Ev),t===void 0?t=r.rounding:Fc(t,0,8)),Ar(new r(n),e,t)};jt.toString=jt.valueOf=jt.val=jt.toJSON=jt[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=_o(e),n=e.constructor;return Ch(e,t<=n.toExpNeg||t>=n.toExpPos)};function Wae(e,t){var n,r,o,i,a,s,l,c,u=e.constructor,f=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),Kr?Ar(t,f):t;if(l=e.d,c=t.d,a=e.e,o=t.e,l=l.slice(),i=a-o,i){for(i<0?(r=l,i=-i,s=c.length):(r=c,o=a,s=l.length),a=Math.ceil(f/zr),s=a>s?a+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=l.length,i=c.length,s-i<0&&(i=s,r=c,c=l,l=r),n=0;i;)n=(l[--i]=l[i]+c[i]+n)/ni|0,l[i]%=ni;for(n&&(l.unshift(n),++o),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=o,Kr?Ar(t,f):t}function Fc(e,t,n){if(e!==~~e||en)throw Error(ih+e)}function vc(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;ta?1:-1;else for(s=l=0;so[s]?1:-1;break}return l}function n(r,o,i){for(var a=0;i--;)r[i]-=a,a=r[i]1;)r.shift()}return function(r,o,i,a){var s,l,c,u,f,h,m,g,y,v,w,C,E,I,O,P,R,D,M=r.constructor,A=r.s==o.s?1:-1,_=r.d,N=o.d;if(!r.s)return new M(r);if(!o.s)throw Error(tl+"Division by zero");for(l=r.e-o.e,R=N.length,O=_.length,m=new M(A),g=m.d=[],c=0;N[c]==(_[c]||0);)++c;if(N[c]>(_[c]||0)&&--l,i==null?C=i=M.precision:a?C=i+(_o(r)-_o(o))+1:C=i,C<0)return new M(0);if(C=C/zr+2|0,c=0,R==1)for(u=0,N=N[0],C++;(c1&&(N=e(N,u),_=e(_,u),R=N.length,O=_.length),I=R,y=_.slice(0,R),v=y.length;v=ni/2&&++P;do u=0,s=t(N,y,R,v),s<0?(w=y[0],R!=v&&(w=w*ni+(y[1]||0)),u=w/P|0,u>1?(u>=ni&&(u=ni-1),f=e(N,u),h=f.length,v=y.length,s=t(f,y,h,v),s==1&&(u--,n(f,R16)throw Error(Rz+_o(e));if(!e.s)return new u(Wa);for(Kr=!1,s=f,a=new u(.03125);e.abs().gte(.1);)e=e.times(a),c+=5;for(r=Math.log(Mp(2,c))/Math.LN10*2+5|0,s+=r,n=o=i=new u(Wa),u.precision=s;;){if(o=Ar(o.times(e),s),n=n.times(++l),a=i.plus(ku(o,n,s)),vc(a.d).slice(0,s)===vc(i.d).slice(0,s)){for(;c--;)i=Ar(i.times(i),s);return u.precision=f,t==null?(Kr=!0,Ar(i,f)):i}i=a}}function _o(e){for(var t=e.e*zr,n=e.d[0];n>=10;n/=10)t++;return t}function b_(e,t,n){if(t>e.LN10.sd())throw Kr=!0,n&&(e.precision=n),Error(tl+"LN10 precision limit exceeded");return Ar(new e(e.LN10),t)}function Ud(e){for(var t="";e--;)t+="0";return t}function Wx(e,t){var n,r,o,i,a,s,l,c,u,f=1,h=10,m=e,g=m.d,y=m.constructor,v=y.precision;if(m.s<1)throw Error(tl+(m.s?"NaN":"-Infinity"));if(m.eq(Wa))return new y(0);if(t==null?(Kr=!1,c=v):c=t,m.eq(10))return t==null&&(Kr=!0),b_(y,c);if(c+=h,y.precision=c,n=vc(g),r=n.charAt(0),i=_o(m),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)m=m.times(e),n=vc(m.d),r=n.charAt(0),f++;i=_o(m),r>1?(m=new y("0."+n),i++):m=new y(r+"."+n.slice(1))}else return l=b_(y,c+2,v).times(i+""),m=Wx(new y(r+"."+n.slice(1)),c-h).plus(l),y.precision=v,t==null?(Kr=!0,Ar(m,v)):m;for(s=a=m=ku(m.minus(Wa),m.plus(Wa),c),u=Ar(m.times(m),c),o=3;;){if(a=Ar(a.times(u),c),l=s.plus(ku(a,new y(o),c)),vc(l.d).slice(0,c)===vc(s.d).slice(0,c))return s=s.times(2),i!==0&&(s=s.plus(b_(y,c+2,v).times(i+""))),s=ku(s,new y(f),c),y.precision=v,t==null?(Kr=!0,Ar(s,v)):s;s=l,o+=2}}function AK(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(o=t.length;t.charCodeAt(o-1)===48;)--o;if(t=t.slice(r,o),t){if(o-=r,n=n-r-1,e.e=Tv(n/zr),e.d=[],r=(n+1)%zr,n<0&&(r+=zr),rDT||e.e<-DT))throw Error(Rz+n)}else e.s=0,e.e=0,e.d=[0];return e}function Ar(e,t,n){var r,o,i,a,s,l,c,u,f=e.d;for(a=1,i=f[0];i>=10;i/=10)a++;if(r=t-a,r<0)r+=zr,o=t,c=f[u=0];else{if(u=Math.ceil((r+1)/zr),i=f.length,u>=i)return e;for(c=i=f[u],a=1;i>=10;i/=10)a++;r%=zr,o=r-zr+a}if(n!==void 0&&(i=Mp(10,a-o-1),s=c/i%10|0,l=t<0||f[u+1]!==void 0||c%i,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?o>0?c/Mp(10,a-o):0:f[u-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return l?(i=_o(e),f.length=1,t=t-i-1,f[0]=Mp(10,(zr-t%zr)%zr),e.e=Tv(-t/zr)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(r==0?(f.length=u,i=1,u--):(f.length=u+1,i=Mp(10,zr-r),f[u]=o>0?(c/Mp(10,a-o)%Mp(10,o)|0)*i:0),l)for(;;)if(u==0){(f[0]+=i)==ni&&(f[0]=1,++e.e);break}else{if(f[u]+=i,f[u]!=ni)break;f[u--]=0,i=1}for(r=f.length;f[--r]===0;)f.pop();if(Kr&&(e.e>DT||e.e<-DT))throw Error(Rz+_o(e));return e}function Yae(e,t){var n,r,o,i,a,s,l,c,u,f,h=e.constructor,m=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),Kr?Ar(t,m):t;if(l=e.d,f=t.d,r=t.e,c=e.e,l=l.slice(),a=c-r,a){for(u=a<0,u?(n=l,a=-a,s=f.length):(n=f,r=c,s=l.length),o=Math.max(Math.ceil(m/zr),s)+2,a>o&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for(o=l.length,s=f.length,u=o0;--o)l[s++]=0;for(o=f.length;o>a;){if(l[--o]0?i=i.charAt(0)+"."+i.slice(1)+Ud(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+Ud(-o-1)+i,n&&(r=n-a)>0&&(i+=Ud(r))):o>=a?(i+=Ud(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+Ud(r))):((r=o+1)0&&(o+1===a&&(i+="."),i+=Ud(r))),e.s<0?"-"+i:i}function MK(e,t){if(e.length>t)return e.length=t,!0}function Qae(e){var t,n,r;function o(i){var a=this;if(!(a instanceof o))return new o(i);if(a.constructor=o,i instanceof o){a.s=i.s,a.e=i.e,a.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(ih+i);if(i>0)a.s=1;else if(i<0)i=-i,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(i===~~i&&i<1e7){a.e=0,a.d=[i];return}return AK(a,i.toString())}else if(typeof i!="string")throw Error(ih+i);if(i.charCodeAt(0)===45?(i=i.slice(1),a.s=-1):a.s=1,o4e.test(i))AK(a,i);else throw Error(ih+i)}if(o.prototype=jt,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=Qae,o.config=o.set=i4e,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(ih+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(ih+n+": "+r);return this}var Dz=Qae(r4e);Wa=new Dz(1);const wr=Dz;function a4e(e){return u4e(e)||c4e(e)||l4e(e)||s4e()}function s4e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l4e(e,t){if(e){if(typeof e=="string")return LL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LL(e,t)}}function c4e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function u4e(e){if(Array.isArray(e))return LL(e)}function LL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t?n.apply(void 0,o):e(t-a,RK(function(){for(var s=arguments.length,l=new Array(s),c=0;ce.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,o=!1,i=void 0;try{for(var a=e[Symbol.iterator](),s;!(r=(s=a.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(l){o=!0,i=l}finally{try{!r&&a.return!=null&&a.return()}finally{if(o)throw i}}return n}}function T4e(e){if(Array.isArray(e))return e}function tse(e){var t=Kx(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function nse(e,t,n){if(e.lte(0))return new wr(0);var r=tP.getDigitCount(e.toNumber()),o=new wr(10).pow(r),i=e.div(o),a=r!==1?.05:.1,s=new wr(Math.ceil(i.div(a).toNumber())).add(n).mul(a),l=s.mul(o);return t?l:new wr(Math.ceil(l))}function O4e(e,t,n){var r=1,o=new wr(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new wr(10).pow(tP.getDigitCount(e)-1),o=new wr(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new wr(Math.floor(e)))}else e===0?o=new wr(Math.floor((t-1)/2)):n||(o=new wr(Math.floor(e)));var a=Math.floor((t-1)/2),s=h4e(p4e(function(l){return o.add(new wr(l-a).mul(r)).toNumber()}),FL);return s(0,t)}function rse(e,t,n,r){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new wr(0),tickMin:new wr(0),tickMax:new wr(0)};var i=nse(new wr(t).sub(e).div(n-1),r,o),a;e<=0&&t>=0?a=new wr(0):(a=new wr(e).add(t).div(2),a=a.sub(new wr(a).mod(i)));var s=Math.ceil(a.sub(e).div(i).toNumber()),l=Math.ceil(new wr(t).sub(a).div(i).toNumber()),c=s+l+1;return c>n?rse(e,t,n,r,o+1):(c0?l+(n-c):l,s=t>0?s:s+(n-c)),{step:i,tickMin:a.sub(new wr(s).mul(i)),tickMax:a.add(new wr(l).mul(i))})}function I4e(e){var t=Kx(e,2),n=t[0],r=t[1],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(o,2),s=tse([n,r]),l=Kx(s,2),c=l[0],u=l[1];if(c===-1/0||u===1/0){var f=u===1/0?[c].concat(BL(FL(0,o-1).map(function(){return 1/0}))):[].concat(BL(FL(0,o-1).map(function(){return-1/0})),[u]);return n>r?jL(f):f}if(c===u)return O4e(c,o,i);var h=rse(c,u,a,i),m=h.step,g=h.tickMin,y=h.tickMax,v=tP.rangeStep(g,y.add(new wr(.1).mul(m)),m);return n>r?jL(v):v}function P4e(e,t){var n=Kx(e,2),r=n[0],o=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=tse([r,o]),s=Kx(a,2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[r,o];if(l===c)return[l];var u=Math.max(t,2),f=nse(new wr(c).sub(l).div(u-1),i,0),h=[].concat(BL(tP.rangeStep(new wr(l),new wr(c).sub(new wr(.99).mul(f)),f)),[c]);return r>o?jL(h):h}var A4e=Jae(I4e),M4e=Jae(P4e),R4e="Invariant failed";function Af(e,t){throw new Error(R4e)}var D4e=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function vy(e){"@babel/helpers - typeof";return vy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vy(e)}function kT(){return kT=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function j4e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function B4e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z4e(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=-1,s=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(s<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var l=i.range,c=0;c0?o[c-1].coordinate:o[s-1].coordinate,f=o[c].coordinate,h=c>=s-1?o[0].coordinate:o[c+1].coordinate,m=void 0;if(ta(f-u)!==ta(h-f)){var g=[];if(ta(h-f)===ta(l[1]-l[0])){m=h;var y=f+l[1]-l[0];g[0]=Math.min(y,(y+u)/2),g[1]=Math.max(y,(y+u)/2)}else{m=u;var v=h+l[1]-l[0];g[0]=Math.min(f,(v+f)/2),g[1]=Math.max(f,(v+f)/2)}var w=[Math.min(f,(m+f)/2),Math.max(f,(m+f)/2)];if(t>w[0]&&t<=w[1]||t>=g[0]&&t<=g[1]){a=o[c].index;break}}else{var C=Math.min(u,h),E=Math.max(u,h);if(t>(C+f)/2&&t<=(E+f)/2){a=o[c].index;break}}}else for(var I=0;I0&&I(r[I].coordinate+r[I-1].coordinate)/2&&t<=(r[I].coordinate+r[I+1].coordinate)/2||I===s-1&&t>(r[I].coordinate+r[I-1].coordinate)/2){a=r[I].index;break}return a},kz=function(t){var n,r=t,o=r.type.displayName,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?po(po({},t.type.defaultProps),t.props):t.props,a=i.stroke,s=i.fill,l;switch(o){case"Line":l=a;break;case"Area":case"Radar":l=a&&a!=="none"?a:s;break;default:l=s;break}return l},o3e=function(t){var n=t.barSize,r=t.totalSize,o=t.stackGroups,i=o===void 0?{}:o;if(!i)return{};for(var a={},s=Object.keys(i),l=0,c=s.length;l=0});if(w&&w.length){var C=w[0].type.defaultProps,E=C!==void 0?po(po({},C),w[0].props):w[0].props,I=E.barSize,O=E[v];a[O]||(a[O]=[]);var P=on(I)?n:I;a[O].push({item:w[0],stackList:w.slice(1),barSize:on(P)?void 0:na(P,r,0)})}}return a},i3e=function(t){var n=t.barGap,r=t.barCategoryGap,o=t.bandSize,i=t.sizeList,a=i===void 0?[]:i,s=t.maxBarSize,l=a.length;if(l<1)return null;var c=na(n,o,0,!0),u,f=[];if(a[0].barSize===+a[0].barSize){var h=!1,m=o/l,g=a.reduce(function(I,O){return I+O.barSize||0},0);g+=(l-1)*c,g>=o&&(g-=(l-1)*c,c=0),g>=o&&m>0&&(h=!0,m*=.9,g=l*m);var y=(o-g)/2>>0,v={offset:y-c,size:0};u=a.reduce(function(I,O){var P={item:O.item,position:{offset:v.offset+v.size+c,size:h?m:O.barSize}},R=[].concat(_K(I),[P]);return v=R[R.length-1].position,O.stackList&&O.stackList.length&&O.stackList.forEach(function(D){R.push({item:D,position:v})}),R},f)}else{var w=na(r,o,0,!0);o-2*w-(l-1)*c<=0&&(c=0);var C=(o-2*w-(l-1)*c)/l;C>1&&(C>>=0);var E=s===+s?Math.min(C,s):C;u=a.reduce(function(I,O,P){var R=[].concat(_K(I),[{item:O.item,position:{offset:w+(C+c)*P+(C-E)/2,size:E}}]);return O.stackList&&O.stackList.length&&O.stackList.forEach(function(D){R.push({item:D,position:R[R.length-1].position})}),R},f)}return u},a3e=function(t,n,r,o){var i=r.children,a=r.width,s=r.margin,l=a-(s.left||0)-(s.right||0),c=sse({children:i,legendWidth:l});if(c){var u=o||{},f=u.width,h=u.height,m=c.align,g=c.verticalAlign,y=c.layout;if((y==="vertical"||y==="horizontal"&&g==="middle")&&m!=="center"&&mt(t[m]))return po(po({},t),{},jg({},m,t[m]+(f||0)));if((y==="horizontal"||y==="vertical"&&m==="center")&&g!=="middle"&&mt(t[g]))return po(po({},t),{},jg({},g,t[g]+(h||0)))}return t},s3e=function(t,n,r){return on(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},lse=function(t,n,r,o,i){var a=n.props.children,s=sa(a,Ov).filter(function(c){return s3e(o,i,c.props.direction)});if(s&&s.length){var l=s.map(function(c){return c.props.dataKey});return t.reduce(function(c,u){var f=Vr(u,r);if(on(f))return c;var h=Array.isArray(f)?[JI(f),ff(f)]:[f,f],m=l.reduce(function(g,y){var v=Vr(u,y,0),w=h[0]-Math.abs(Array.isArray(v)?v[0]:v),C=h[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(w,g[0]),Math.max(C,g[1])]},[1/0,-1/0]);return[Math.min(m[0],c[0]),Math.max(m[1],c[1])]},[1/0,-1/0])}return null},l3e=function(t,n,r,o,i){var a=n.map(function(s){return lse(t,s,r,i,o)}).filter(function(s){return!on(s)});return a&&a.length?a.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},cse=function(t,n,r,o,i){var a=n.map(function(l){var c=l.props.dataKey;return r==="number"&&c&&lse(t,l,c,o)||tx(t,c,r,i)});if(r==="number")return a.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);var s={};return a.reduce(function(l,c){for(var u=0,f=c.length;u=2?ta(s[0]-s[1])*2*c:c,n&&(t.ticks||t.niceTicks)){var u=(t.ticks||t.niceTicks).map(function(f){var h=i?i.indexOf(f):f;return{coordinate:o(h)+c,value:f,offset:c}});return u.filter(function(f){return!xv(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,h){return{coordinate:o(f)+c,value:f,index:h,offset:c}}):o.ticks&&!r?o.ticks(t.tickCount).map(function(f){return{coordinate:o(f)+c,value:f,offset:c}}):o.domain().map(function(f,h){return{coordinate:o(f)+c,value:i?i[f]:f,index:h,offset:c}})},x_=new WeakMap,j1=function(t,n){if(typeof n!="function")return t;x_.has(t)||x_.set(t,new WeakMap);var r=x_.get(t);if(r.has(n))return r.get(n);var o=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,o),o},fse=function(t,n,r){var o=t.scale,i=t.type,a=t.layout,s=t.axisType;if(o==="auto")return a==="radial"&&s==="radiusAxis"?{scale:Vx(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:PT(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:ex(),realScaleType:"point"}:i==="category"?{scale:Vx(),realScaleType:"band"}:{scale:PT(),realScaleType:"linear"};if(Sh(o)){var l="scale".concat(FI(o));return{scale:(xK[l]||ex)(),realScaleType:xK[l]?l:"point"}}return rn(o)?{scale:o}:{scale:ex(),realScaleType:"point"}},NK=1e-4,pse=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,o=t.range(),i=Math.min(o[0],o[1])-NK,a=Math.max(o[0],o[1])+NK,s=t(n[0]),l=t(n[r-1]);(sa||la)&&t.domain([n[0],n[r-1]])}},c3e=function(t,n){if(!t)return null;for(var r=0,o=t.length;ro)&&(i[1]=o),i[0]>o&&(i[0]=o),i[1]=0?(t[s][r][0]=i,t[s][r][1]=i+l,i=t[s][r][1]):(t[s][r][0]=a,t[s][r][1]=a+l,a=t[s][r][1])}},f3e=function(t){var n=t.length;if(!(n<=0))for(var r=0,o=t[0].length;r=0?(t[a][r][0]=i,t[a][r][1]=i+s,i=t[a][r][1]):(t[a][r][0]=0,t[a][r][1]=0)}},p3e={sign:d3e,expand:tBe,none:uy,silhouette:nBe,wiggle:rBe,positive:f3e},h3e=function(t,n,r){var o=n.map(function(s){return s.props.dataKey}),i=p3e[r],a=eBe().keys(o).value(function(s,l){return+Vr(s,l,0)}).order(bL).offset(i);return a(t)},m3e=function(t,n,r,o,i,a){if(!t)return null;var s=a?n.reverse():n,l={},c=s.reduce(function(f,h){var m,g=(m=h.type)!==null&&m!==void 0&&m.defaultProps?po(po({},h.type.defaultProps),h.props):h.props,y=g.stackId,v=g.hide;if(v)return f;var w=g[r],C=f[w]||{hasStack:!1,stackGroups:{}};if(Vo(y)){var E=C.stackGroups[y]||{numericAxisId:r,cateAxisId:o,items:[]};E.items.push(h),C.hasStack=!0,C.stackGroups[y]=E}else C.stackGroups[Bf("_stackId_")]={numericAxisId:r,cateAxisId:o,items:[h]};return po(po({},f),{},jg({},w,C))},l),u={};return Object.keys(c).reduce(function(f,h){var m=c[h];if(m.hasStack){var g={};m.stackGroups=Object.keys(m.stackGroups).reduce(function(y,v){var w=m.stackGroups[v];return po(po({},y),{},jg({},v,{numericAxisId:r,cateAxisId:o,items:w.items,stackedData:h3e(t,w.items,i)}))},g)}return po(po({},f),{},jg({},h,m))},u)},hse=function(t,n){var r=n.realScaleType,o=n.type,i=n.tickCount,a=n.originalDomain,s=n.allowDecimals,l=r||n.scale;if(l!=="auto"&&l!=="linear")return null;if(i&&o==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var c=t.domain();if(!c.length)return null;var u=A4e(c,i,s);return t.domain([JI(u),ff(u)]),{niceTicks:u}}if(i&&o==="number"){var f=t.domain(),h=M4e(f,i,s);return{niceTicks:h}}return null};function by(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!on(o[t.dataKey])){var s=uT(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var l=Vr(o,on(a)?t.dataKey:a);return on(l)?null:t.scale(l)}var LK=function(t){var n=t.axis,r=t.ticks,o=t.offset,i=t.bandSize,a=t.entry,s=t.index;if(n.type==="category")return r[s]?r[s].coordinate+o:null;var l=Vr(a,n.dataKey,n.domain[s]);return on(l)?null:n.scale(l)-i/2+o},g3e=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var o=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return o<=0&&i>=0?0:i<0?i:o}return r[0]},y3e=function(t,n){var r,o=(r=t.type)!==null&&r!==void 0&&r.defaultProps?po(po({},t.type.defaultProps),t.props):t.props,i=o.stackId;if(Vo(i)){var a=n[i];if(a){var s=a.items.indexOf(t);return s>=0?a.stackedData[s]:null}}return null},v3e=function(t){return t.reduce(function(n,r){return[JI(r.concat([n[0]]).filter(mt)),ff(r.concat([n[1]]).filter(mt))]},[1/0,-1/0])},mse=function(t,n,r){return Object.keys(t).reduce(function(o,i){var a=t[i],s=a.stackedData,l=s.reduce(function(c,u){var f=v3e(u.slice(n,r+1));return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],o[0]),Math.max(l[1],o[1])]},[1/0,-1/0]).map(function(o){return o===1/0||o===-1/0?0:o})},FK=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,jK=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,UL=function(t,n,r){if(rn(t))return t(n,r);if(!Array.isArray(t))return n;var o=[];if(mt(t[0]))o[0]=r?t[0]:Math.min(t[0],n[0]);else if(FK.test(t[0])){var i=+FK.exec(t[0])[1];o[0]=n[0]-i}else rn(t[0])?o[0]=t[0](n[0]):o[0]=n[0];if(mt(t[1]))o[1]=r?t[1]:Math.max(t[1],n[1]);else if(jK.test(t[1])){var a=+jK.exec(t[1])[1];o[1]=n[1]+a}else rn(t[1])?o[1]=t[1](n[1]):o[1]=n[1];return o},$T=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var o=t.scale.bandwidth();if(!r||o>0)return o}if(t&&n&&n.length>=2){for(var i=sz(n,function(f){return f.coordinate}),a=1/0,s=1,l=i.length;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},I3e=function(t,n,r,o,i){var a=t.width,s=t.height,l=t.startAngle,c=t.endAngle,u=na(t.cx,a,a/2),f=na(t.cy,s,s/2),h=vse(a,s,r),m=na(t.innerRadius,h,0),g=na(t.outerRadius,h,h*.8),y=Object.keys(n);return y.reduce(function(v,w){var C=n[w],E=C.domain,I=C.reversed,O;if(on(C.range))o==="angleAxis"?O=[l,c]:o==="radiusAxis"&&(O=[m,g]),I&&(O=[O[1],O[0]]);else{O=C.range;var P=O,R=S3e(P,2);l=R[0],c=R[1]}var D=fse(C,i),M=D.realScaleType,A=D.scale;A.domain(E).range(O),pse(A);var _=hse(A,xu(xu({},C),{},{realScaleType:M})),N=xu(xu(xu({},C),_),{},{range:O,radius:g,realScaleType:M,scale:A,cx:u,cy:f,innerRadius:m,outerRadius:g,startAngle:l,endAngle:c});return xu(xu({},v),{},yse({},w,N))},{})},P3e=function(t,n){var r=t.x,o=t.y,i=n.x,a=n.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(o-a,2))},A3e=function(t,n){var r=t.x,o=t.y,i=n.cx,a=n.cy,s=P3e({x:r,y:o},{x:i,y:a});if(s<=0)return{radius:s};var l=(r-i)/s,c=Math.acos(l);return o>a&&(c=2*Math.PI-c),{radius:s,angle:O3e(c),angleInRadian:c}},M3e=function(t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360),a=Math.min(o,i);return{startAngle:n-a*360,endAngle:r-a*360}},R3e=function(t,n){var r=n.startAngle,o=n.endAngle,i=Math.floor(r/360),a=Math.floor(o/360),s=Math.min(i,a);return t+s*360},HK=function(t,n){var r=t.x,o=t.y,i=A3e({x:r,y:o},n),a=i.radius,s=i.angle,l=n.innerRadius,c=n.outerRadius;if(ac)return!1;if(a===0)return!0;var u=M3e(n),f=u.startAngle,h=u.endAngle,m=s,g;if(f<=h){for(;m>h;)m-=360;for(;m=f&&m<=h}else{for(;m>f;)m-=360;for(;m=h&&m<=f}return g?xu(xu({},n),{},{radius:a,angle:R3e(m,n)}):null},bse=function(t){return!x.isValidElement(t)&&!rn(t)&&typeof t!="boolean"?t.className:""};function Zx(e){"@babel/helpers - typeof";return Zx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zx(e)}var D3e=["offset"];function k3e(e){return L3e(e)||N3e(e)||$3e(e)||_3e()}function _3e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $3e(e,t){if(e){if(typeof e=="string")return GL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GL(e,t)}}function N3e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function L3e(e){if(Array.isArray(e))return GL(e)}function GL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function j3e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function UK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Fo(e){for(var t=1;t=0?1:-1,E,I;o==="insideStart"?(E=m+C*a,I=y):o==="insideEnd"?(E=g-C*a,I=!y):o==="end"&&(E=g+C*a,I=y),I=w<=0?I:!I;var O=Nr(c,u,v,E),P=Nr(c,u,v,E+(I?1:-1)*359),R="M".concat(O.x,",").concat(O.y,` + height and width.`,j,L,a,l,u,f,n);var V=!Array.isArray(m)&&ku(m.type).endsWith("Chart");return J.Children.map(m,function(W){return J.isValidElement(W)?x.cloneElement(W,$1({width:j,height:L},V?{style:$1({height:"100%",width:"100%",maxHeight:L,maxWidth:j},W.props.style)}:{})):W})},[n,m,l,h,f,u,M,a]);return J.createElement("div",{id:v?"".concat(v):void 0,className:fe("recharts-responsive-container",w),style:$1($1({},I),{},{width:a,height:l,minWidth:u,minHeight:f,maxHeight:h}),ref:O},N)}),Ev=function(t){return null};Ev.displayName="Cell";function Vx(e){"@babel/helpers - typeof";return Vx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vx(e)}function O7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ML(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||td.isSsr)return{width:0,height:0};var r=YVe(n),o=JSON.stringify({text:t,copyStyle:r});if(Qm.widthCache[o])return Qm.widthCache[o];try{var i=document.getElementById(I7);i||(i=document.createElement("span"),i.setAttribute("id",I7),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=ML(ML({},KVe),r);Object.assign(i.style,a),i.textContent="".concat(t);var s=i.getBoundingClientRect(),l={width:s.width,height:s.height};return Qm.widthCache[o]=l,++Qm.cacheCount>WVe&&(Qm.cacheCount=0,Qm.widthCache={}),l}catch{return{width:0,height:0}}},QVe=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Hx(e){"@babel/helpers - typeof";return Hx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hx(e)}function wT(e,t){return eHe(e)||ZVe(e,t)||JVe(e,t)||XVe()}function XVe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JVe(e,t){if(e){if(typeof e=="string")return P7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P7(e,t)}}function P7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hHe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function _7(e,t){return vHe(e)||yHe(e,t)||gHe(e,t)||mHe()}function mHe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gHe(e,t){if(e){if(typeof e=="string")return $7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $7(e,t)}}function $7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[];return j.reduce(function(L,V){var W=V.word,K=V.width,G=L[L.length-1];if(G&&(o==null||i||G.width+K+rV.width?L:V})};if(!u)return m;for(var y="…",v=function(j){var L=f.slice(0,j),V=dae({breakAll:c,style:l,children:L+y}).wordsWithComputedWidth,W=h(V),K=W.length>a||g(W).width>Number(o);return[K,W]},w=0,C=f.length-1,E=0,I;w<=C&&E<=f.length-1;){var O=Math.floor((w+C)/2),P=O-1,R=v(P),D=_7(R,2),M=D[0],A=D[1],_=v(O),N=_7(_,1),B=N[0];if(!M&&!B&&(w=O+1),M&&B&&(C=O-1),!M&&B){I=A;break}E++}return I||m},N7=function(t){var n=on(t)?[]:t.toString().split(uae);return[{words:n}]},xHe=function(t){var n=t.width,r=t.scaleToFit,o=t.children,i=t.style,a=t.breakAll,s=t.maxLines;if((n||r)&&!td.isSsr){var l,c,u=dae({breakAll:a,children:o,style:i});if(u){var f=u.wordsWithComputedWidth,h=u.spaceWidth;l=f,c=h}else return N7(o);return bHe({breakAll:a,children:o,maxLines:s,style:i},l,c,n,r)}return N7(o)},L7="#808080",wh=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,i=o===void 0?0:o,a=t.lineHeight,s=a===void 0?"1em":a,l=t.capHeight,c=l===void 0?"0.71em":l,u=t.scaleToFit,f=u===void 0?!1:u,h=t.textAnchor,m=h===void 0?"start":h,g=t.verticalAnchor,y=g===void 0?"end":g,v=t.fill,w=v===void 0?L7:v,C=k7(t,fHe),E=x.useMemo(function(){return xHe({breakAll:C.breakAll,children:C.children,maxLines:C.maxLines,scaleToFit:f,style:C.style,width:C.width})},[C.breakAll,C.children,C.maxLines,f,C.style,C.width]),I=C.dx,O=C.dy,P=C.angle,R=C.className,D=C.breakAll,M=k7(C,pHe);if(!Vo(r)||!Vo(i))return null;var A=r+(mt(I)?I:0),_=i+(mt(O)?O:0),N;switch(y){case"start":N=i_("calc(".concat(c,")"));break;case"middle":N=i_("calc(".concat((E.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:N=i_("calc(".concat(E.length-1," * -").concat(s,")"));break}var B=[];if(f){var H=E[0].width,j=C.width;B.push("scale(".concat((mt(j)?j/H:1)/H,")"))}return P&&B.push("rotate(".concat(P,", ").concat(A,", ").concat(_,")")),B.length&&(M.transform=B.join(" ")),J.createElement("text",RL({},zt(M,!0),{x:A,y:_,className:fe("recharts-text",R),textAnchor:m,fill:w.includes("url")?L7:w}),E.map(function(L,V){var W=L.words.join(D?"":" ");return J.createElement("tspan",{x:A,dy:V===0?N:s,key:"".concat(W,"-").concat(V)},W)}))};function yf(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function SHe(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function dz(e){let t,n,r;e.length!==2?(t=yf,n=(s,l)=>yf(e(s),l),r=(s,l)=>e(s)-l):(t=e===yf||e===SHe?e:wHe,n=e,r=e);function o(s,l,c=0,u=s.length){if(c>>1;n(s[f],l)<0?c=f+1:u=f}while(c>>1;n(s[f],l)<=0?c=f+1:u=f}while(cc&&r(s[f-1],l)>-r(s[f],l)?f-1:f}return{left:o,center:a,right:i}}function wHe(){return 0}function fae(e){return e===null?NaN:+e}function*CHe(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const EHe=dz(yf),Sw=EHe.right;dz(fae).center;class F7 extends Map{constructor(t,n=IHe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(j7(this,t))}has(t){return super.has(j7(this,t))}set(t,n){return super.set(THe(this,t),n)}delete(t){return super.delete(OHe(this,t))}}function j7({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function THe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function OHe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function IHe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function PHe(e=yf){if(e===yf)return pae;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function pae(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const AHe=Math.sqrt(50),MHe=Math.sqrt(10),RHe=Math.sqrt(2);function CT(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=AHe?10:i>=MHe?5:i>=RHe?2:1;let s,l,c;return o<0?(c=Math.pow(10,-o)/a,s=Math.round(e*c),l=Math.round(t*c),s/ct&&--l,c=-c):(c=Math.pow(10,o)*a,s=Math.round(e/c),l=Math.round(t/c),s*ct&&--l),l0))return[];if(e===t)return[e];const r=t=o))return[];const s=i-o+1,l=new Array(s);if(r)if(a<0)for(let c=0;c=r)&&(n=r);return n}function z7(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function hae(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=o===void 0?pae:PHe(o);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,u=Math.log(l),f=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*f*(l-f)/l)*(c-l/2<0?-1:1),m=Math.max(n,Math.floor(t-c*f/l+h)),g=Math.min(r,Math.floor(t+(l-c)*f/l+h));hae(e,t,m,g,o)}const i=e[t];let a=n,s=r;for(o0(e,n,t),o(e[r],i)>0&&o0(e,n,r);a0;)--s}o(e[n],i)===0?o0(e,n,s):(++s,o0(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function o0(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function DHe(e,t,n){if(e=Float64Array.from(CHe(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return z7(e);if(t>=1)return B7(e);var r,o=(r-1)*t,i=Math.floor(o),a=B7(hae(e,i).subarray(0,i+1)),s=z7(e.subarray(i+1));return a+(s-a)*(o-i)}}function kHe(e,t,n=fae){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e),s=+n(e[i+1],i+1,e);return a+(s-a)*(o-i)}}function _He(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(o);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?L1(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?L1(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=NHe.exec(e))?new wa(t[1],t[2],t[3],1):(t=LHe.exec(e))?new wa(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=FHe.exec(e))?L1(t[1],t[2],t[3],t[4]):(t=jHe.exec(e))?L1(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=BHe.exec(e))?K7(t[1],t[2]/100,t[3]/100,1):(t=zHe.exec(e))?K7(t[1],t[2]/100,t[3]/100,t[4]):V7.hasOwnProperty(e)?G7(V7[e]):e==="transparent"?new wa(NaN,NaN,NaN,0):null}function G7(e){return new wa(e>>16&255,e>>8&255,e&255,1)}function L1(e,t,n,r){return r<=0&&(e=t=n=NaN),new wa(e,t,n,r)}function UHe(e){return e instanceof ww||(e=Wx(e)),e?(e=e.rgb(),new wa(e.r,e.g,e.b,e.opacity)):new wa}function NL(e,t,n,r){return arguments.length===1?UHe(e):new wa(e,t,n,r??1)}function wa(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}pz(wa,NL,gae(ww,{brighter(e){return e=e==null?ET:Math.pow(ET,e),new wa(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Gx:Math.pow(Gx,e),new wa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new wa(oh(this.r),oh(this.g),oh(this.b),TT(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:q7,formatHex:q7,formatHex8:GHe,formatRgb:W7,toString:W7}));function q7(){return`#${zp(this.r)}${zp(this.g)}${zp(this.b)}`}function GHe(){return`#${zp(this.r)}${zp(this.g)}${zp(this.b)}${zp((isNaN(this.opacity)?1:this.opacity)*255)}`}function W7(){const e=TT(this.opacity);return`${e===1?"rgb(":"rgba("}${oh(this.r)}, ${oh(this.g)}, ${oh(this.b)}${e===1?")":`, ${e})`}`}function TT(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function oh(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function zp(e){return e=oh(e),(e<16?"0":"")+e.toString(16)}function K7(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Dl(e,t,n,r)}function yae(e){if(e instanceof Dl)return new Dl(e.h,e.s,e.l,e.opacity);if(e instanceof ww||(e=Wx(e)),!e)return new Dl;if(e instanceof Dl)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(n-r)/s+(n0&&l<1?0:a,new Dl(a,s,l,e.opacity)}function qHe(e,t,n,r){return arguments.length===1?yae(e):new Dl(e,t,n,r??1)}function Dl(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}pz(Dl,qHe,gae(ww,{brighter(e){return e=e==null?ET:Math.pow(ET,e),new Dl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Gx:Math.pow(Gx,e),new Dl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new wa(a_(e>=240?e-240:e+120,o,r),a_(e,o,r),a_(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Dl(Y7(this.h),F1(this.s),F1(this.l),TT(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=TT(this.opacity);return`${e===1?"hsl(":"hsla("}${Y7(this.h)}, ${F1(this.s)*100}%, ${F1(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Y7(e){return e=(e||0)%360,e<0?e+360:e}function F1(e){return Math.max(0,Math.min(1,e||0))}function a_(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const hz=e=>()=>e;function WHe(e,t){return function(n){return e+n*t}}function KHe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function YHe(e){return(e=+e)==1?vae:function(t,n){return n-t?KHe(t,n,e):hz(isNaN(t)?n:t)}}function vae(e,t){var n=t-e;return n?WHe(e,n):hz(isNaN(e)?t:e)}const Q7=function e(t){var n=YHe(t);function r(o,i){var a=n((o=NL(o)).r,(i=NL(i)).r),s=n(o.g,i.g),l=n(o.b,i.b),c=vae(o.opacity,i.opacity);return function(u){return o.r=a(u),o.g=s(u),o.b=l(u),o.opacity=c(u),o+""}}return r.gamma=e,r}(1);function QHe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(i){for(o=0;on&&(i=t.slice(n,i),s[a]?s[a]+=i:s[++a]=i),(r=r[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:OT(r,o)})),n=s_.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function s5e(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o2?l5e:s5e,l=c=null,f}function f(h){return h==null||isNaN(h=+h)?i:(l||(l=s(e.map(r),t,n)))(r(a(h)))}return f.invert=function(h){return a(o((c||(c=s(t,e.map(r),OT)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,IT),u()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),u()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),n=mz,u()},f.clamp=function(h){return arguments.length?(a=h?!0:ra,u()):a!==ra},f.interpolate=function(h){return arguments.length?(n=h,u()):n},f.unknown=function(h){return arguments.length?(i=h,f):i},function(h,m){return r=h,o=m,u()}}function gz(){return WI()(ra,ra)}function c5e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function PT(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function yy(e){return e=PT(Math.abs(e)),e?e[1]:NaN}function u5e(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function d5e(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var f5e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Kx(e){if(!(t=f5e.exec(e)))throw new Error("invalid format: "+e);var t;return new yz({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Kx.prototype=yz.prototype;function yz(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}yz.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function p5e(e){e:for(var t=e.length,n=1,r=-1,o;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var bae;function h5e(e,t){var n=PT(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(bae=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+PT(e,Math.max(0,t+i-1))[0]}function J7(e,t){var n=PT(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const Z7={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:c5e,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>J7(e*100,t),r:J7,s:h5e,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function eK(e){return e}var tK=Array.prototype.map,nK=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function m5e(e){var t=e.grouping===void 0||e.thousands===void 0?eK:u5e(tK.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?eK:d5e(tK.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(f){f=Kx(f);var h=f.fill,m=f.align,g=f.sign,y=f.symbol,v=f.zero,w=f.width,C=f.comma,E=f.precision,I=f.trim,O=f.type;O==="n"?(C=!0,O="g"):Z7[O]||(E===void 0&&(E=12),I=!0,O="g"),(v||h==="0"&&m==="=")&&(v=!0,h="0",m="=");var P=y==="$"?n:y==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",R=y==="$"?r:/[%p]/.test(O)?a:"",D=Z7[O],M=/[defgprs%]/.test(O);E=E===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function A(_){var N=P,B=R,H,j,L;if(O==="c")B=D(_)+B,_="";else{_=+_;var V=_<0||1/_<0;if(_=isNaN(_)?l:D(Math.abs(_),E),I&&(_=p5e(_)),V&&+_==0&&g!=="+"&&(V=!1),N=(V?g==="("?g:s:g==="-"||g==="("?"":g)+N,B=(O==="s"?nK[8+bae/3]:"")+B+(V&&g==="("?")":""),M){for(H=-1,j=_.length;++HL||L>57){B=(L===46?o+_.slice(H+1):_.slice(H))+B,_=_.slice(0,H);break}}}C&&!v&&(_=t(_,1/0));var W=N.length+_.length+B.length,K=W>1)+N+_+B+K.slice(W);break;default:_=K+N+_+B;break}return i(_)}return A.toString=function(){return f+""},A}function u(f,h){var m=c((f=Kx(f),f.type="f",f)),g=Math.max(-8,Math.min(8,Math.floor(yy(h)/3)))*3,y=Math.pow(10,-g),v=nK[8+g/3];return function(w){return m(y*w)+v}}return{format:c,formatPrefix:u}}var j1,vz,xae;g5e({thousands:",",grouping:[3],currency:["$",""]});function g5e(e){return j1=m5e(e),vz=j1.format,xae=j1.formatPrefix,j1}function y5e(e){return Math.max(0,-yy(Math.abs(e)))}function v5e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(yy(t)/3)))*3-yy(Math.abs(e)))}function b5e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,yy(t)-yy(e))+1}function Sae(e,t,n,r){var o=_L(e,t,n),i;switch(r=Kx(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=v5e(o,a))&&(r.precision=i),xae(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=b5e(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=y5e(o))&&(r.precision=i-(r.type==="%")*2);break}}return vz(r)}function zf(e){var t=e.domain;return e.ticks=function(n){var r=t();return DL(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return Sae(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,i=r.length-1,a=r[o],s=r[i],l,c,u=10;for(s0;){if(c=kL(a,s,n),c===l)return r[o]=a,r[i]=s,t(r);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function AT(){var e=gz();return e.copy=function(){return Cw(e,AT())},cl.apply(e,arguments),zf(e)}function wae(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,IT),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return wae(e).unknown(t)},e=arguments.length?Array.from(e,IT):[0,1],zf(n)}function Cae(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],i=e[r],a;return iMath.pow(e,t)}function E5e(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function iK(e){return(t,n)=>-e(-t,n)}function bz(e){const t=e(rK,oK),n=t.domain;let r=10,o,i;function a(){return o=E5e(r),i=C5e(r),n()[0]<0?(o=iK(o),i=iK(i),e(x5e,S5e)):e(rK,oK),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let c=l[0],u=l[l.length-1];const f=u0){for(;h<=m;++h)for(g=1;gu)break;w.push(y)}}else for(;h<=m;++h)for(g=r-1;g>=1;--g)if(y=h>0?g/i(-h):g*i(h),!(yu)break;w.push(y)}w.length*2{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Kx(l)).precision==null&&(l.trim=!0),l=vz(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return u=>{let f=u/i(Math.round(o(u)));return f*rn(Cae(n(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function Eae(){const e=bz(WI()).domain([1,10]);return e.copy=()=>Cw(e,Eae()).base(e.base()),cl.apply(e,arguments),e}function aK(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function sK(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function xz(e){var t=1,n=e(aK(t),sK(t));return n.constant=function(r){return arguments.length?e(aK(t=+r),sK(t)):t},zf(n)}function Tae(){var e=xz(WI());return e.copy=function(){return Cw(e,Tae()).constant(e.constant())},cl.apply(e,arguments)}function lK(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function T5e(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function O5e(e){return e<0?-e*e:e*e}function Sz(e){var t=e(ra,ra),n=1;function r(){return n===1?e(ra,ra):n===.5?e(T5e,O5e):e(lK(n),lK(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},zf(t)}function wz(){var e=Sz(WI());return e.copy=function(){return Cw(e,wz()).exponent(e.exponent())},cl.apply(e,arguments),e}function I5e(){return wz.apply(null,arguments).exponent(.5)}function cK(e){return Math.sign(e)*e*e}function P5e(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Oae(){var e=gz(),t=[0,1],n=!1,r;function o(i){var a=P5e(e(i));return isNaN(a)?r:n?Math.round(a):a}return o.invert=function(i){return e.invert(cK(i))},o.domain=function(i){return arguments.length?(e.domain(i),o):e.domain()},o.range=function(i){return arguments.length?(e.range((t=Array.from(i,IT)).map(cK)),o):t.slice()},o.rangeRound=function(i){return o.range(i).round(!0)},o.round=function(i){return arguments.length?(n=!!i,o):n},o.clamp=function(i){return arguments.length?(e.clamp(i),o):e.clamp()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return Oae(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},cl.apply(o,arguments),zf(o)}function Iae(){var e=[],t=[],n=[],r;function o(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a0?n[s-1]:e[0],s=n?[r[n-1],t]:[r[c-1],r[c]]},a.unknown=function(l){return arguments.length&&(i=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return Pae().domain([e,t]).range(o).unknown(i)},cl.apply(zf(a),arguments)}function Aae(){var e=[.5],t=[0,1],n,r=1;function o(i){return i!=null&&i<=i?t[Sw(e,i,0,r)]:n}return o.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var a=t.indexOf(i);return[e[a-1],e[a]]},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return Aae().domain(e).range(t).unknown(n)},cl.apply(o,arguments)}const l_=new Date,c_=new Date;function Yo(e,t,n,r){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{const a=o(i),s=o.ceil(i);return i-a(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,s)=>{const l=[];if(i=o.ceil(i),s=s==null?1:Math.floor(s),!(i0))return l;let c;do l.push(c=new Date(+i)),t(i,s),e(i);while(cYo(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););}),n&&(o.count=(i,a)=>(l_.setTime(+i),c_.setTime(+a),e(l_),e(c_),Math.floor(n(l_,c_))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?a=>r(a)%i===0:a=>o.count(0,a)%i===0):o)),o}const MT=Yo(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);MT.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Yo(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):MT);MT.range;const Au=1e3,Hs=Au*60,Mu=Hs*60,Wu=Mu*24,Cz=Wu*7,uK=Wu*30,u_=Wu*365,Vp=Yo(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Au)},(e,t)=>(t-e)/Au,e=>e.getUTCSeconds());Vp.range;const Ez=Yo(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Au)},(e,t)=>{e.setTime(+e+t*Hs)},(e,t)=>(t-e)/Hs,e=>e.getMinutes());Ez.range;const Tz=Yo(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Hs)},(e,t)=>(t-e)/Hs,e=>e.getUTCMinutes());Tz.range;const Oz=Yo(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Au-e.getMinutes()*Hs)},(e,t)=>{e.setTime(+e+t*Mu)},(e,t)=>(t-e)/Mu,e=>e.getHours());Oz.range;const Iz=Yo(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Mu)},(e,t)=>(t-e)/Mu,e=>e.getUTCHours());Iz.range;const Ew=Yo(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Hs)/Wu,e=>e.getDate()-1);Ew.range;const KI=Yo(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Wu,e=>e.getUTCDate()-1);KI.range;const Mae=Yo(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Wu,e=>Math.floor(e/Wu));Mae.range;function Hh(e){return Yo(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Hs)/Cz)}const YI=Hh(0),RT=Hh(1),A5e=Hh(2),M5e=Hh(3),vy=Hh(4),R5e=Hh(5),D5e=Hh(6);YI.range;RT.range;A5e.range;M5e.range;vy.range;R5e.range;D5e.range;function Uh(e){return Yo(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Cz)}const QI=Uh(0),DT=Uh(1),k5e=Uh(2),_5e=Uh(3),by=Uh(4),$5e=Uh(5),N5e=Uh(6);QI.range;DT.range;k5e.range;_5e.range;by.range;$5e.range;N5e.range;const Pz=Yo(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Pz.range;const Az=Yo(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Az.range;const Ku=Yo(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Ku.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Yo(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Ku.range;const Yu=Yo(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Yu.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Yo(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Yu.range;function Rae(e,t,n,r,o,i){const a=[[Vp,1,Au],[Vp,5,5*Au],[Vp,15,15*Au],[Vp,30,30*Au],[i,1,Hs],[i,5,5*Hs],[i,15,15*Hs],[i,30,30*Hs],[o,1,Mu],[o,3,3*Mu],[o,6,6*Mu],[o,12,12*Mu],[r,1,Wu],[r,2,2*Wu],[n,1,Cz],[t,1,uK],[t,3,3*uK],[e,1,u_]];function s(c,u,f){const h=uv).right(a,h);if(m===a.length)return e.every(_L(c/u_,u/u_,f));if(m===0)return MT.every(Math.max(_L(c,u,f),1));const[g,y]=a[h/a[m-1][2]53)return null;"w"in oe||(oe.w=1),"Z"in oe?(pe=f_(i0(oe.y,0,1)),Ee=pe.getUTCDay(),pe=Ee>4||Ee===0?DT.ceil(pe):DT(pe),pe=KI.offset(pe,(oe.V-1)*7),oe.y=pe.getUTCFullYear(),oe.m=pe.getUTCMonth(),oe.d=pe.getUTCDate()+(oe.w+6)%7):(pe=d_(i0(oe.y,0,1)),Ee=pe.getDay(),pe=Ee>4||Ee===0?RT.ceil(pe):RT(pe),pe=Ew.offset(pe,(oe.V-1)*7),oe.y=pe.getFullYear(),oe.m=pe.getMonth(),oe.d=pe.getDate()+(oe.w+6)%7)}else("W"in oe||"U"in oe)&&("w"in oe||(oe.w="u"in oe?oe.u%7:"W"in oe?1:0),Ee="Z"in oe?f_(i0(oe.y,0,1)).getUTCDay():d_(i0(oe.y,0,1)).getDay(),oe.m=0,oe.d="W"in oe?(oe.w+6)%7+oe.W*7-(Ee+5)%7:oe.w+oe.U*7-(Ee+6)%7);return"Z"in oe?(oe.H+=oe.Z/100|0,oe.M+=oe.Z%100,f_(oe)):d_(oe)}}function D(ne,le,de,oe){for(var ue=0,pe=le.length,Ee=de.length,xe,Re;ue=Ee)return-1;if(xe=le.charCodeAt(ue++),xe===37){if(xe=le.charAt(ue++),Re=O[xe in dK?le.charAt(ue++):xe],!Re||(oe=Re(ne,de,oe))<0)return-1}else if(xe!=de.charCodeAt(oe++))return-1}return oe}function M(ne,le,de){var oe=c.exec(le.slice(de));return oe?(ne.p=u.get(oe[0].toLowerCase()),de+oe[0].length):-1}function A(ne,le,de){var oe=m.exec(le.slice(de));return oe?(ne.w=g.get(oe[0].toLowerCase()),de+oe[0].length):-1}function _(ne,le,de){var oe=f.exec(le.slice(de));return oe?(ne.w=h.get(oe[0].toLowerCase()),de+oe[0].length):-1}function N(ne,le,de){var oe=w.exec(le.slice(de));return oe?(ne.m=C.get(oe[0].toLowerCase()),de+oe[0].length):-1}function B(ne,le,de){var oe=y.exec(le.slice(de));return oe?(ne.m=v.get(oe[0].toLowerCase()),de+oe[0].length):-1}function H(ne,le,de){return D(ne,t,le,de)}function j(ne,le,de){return D(ne,n,le,de)}function L(ne,le,de){return D(ne,r,le,de)}function V(ne){return a[ne.getDay()]}function W(ne){return i[ne.getDay()]}function K(ne){return l[ne.getMonth()]}function G(ne){return s[ne.getMonth()]}function q(ne){return o[+(ne.getHours()>=12)]}function Y(ne){return 1+~~(ne.getMonth()/3)}function Z(ne){return a[ne.getUTCDay()]}function ie(ne){return i[ne.getUTCDay()]}function se(ne){return l[ne.getUTCMonth()]}function ce(ne){return s[ne.getUTCMonth()]}function ye(ne){return o[+(ne.getUTCHours()>=12)]}function Se(ne){return 1+~~(ne.getUTCMonth()/3)}return{format:function(ne){var le=P(ne+="",E);return le.toString=function(){return ne},le},parse:function(ne){var le=R(ne+="",!1);return le.toString=function(){return ne},le},utcFormat:function(ne){var le=P(ne+="",I);return le.toString=function(){return ne},le},utcParse:function(ne){var le=R(ne+="",!0);return le.toString=function(){return ne},le}}}var dK={"-":"",_:" ",0:"0"},di=/^\s*\d+/,V5e=/^%/,H5e=/[\\^$*+?|[\]().{}]/g;function tr(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i[t.toLowerCase(),n]))}function G5e(e,t,n){var r=di.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function q5e(e,t,n){var r=di.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function W5e(e,t,n){var r=di.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function K5e(e,t,n){var r=di.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Y5e(e,t,n){var r=di.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function fK(e,t,n){var r=di.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function pK(e,t,n){var r=di.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Q5e(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function X5e(e,t,n){var r=di.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function J5e(e,t,n){var r=di.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function hK(e,t,n){var r=di.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Z5e(e,t,n){var r=di.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function mK(e,t,n){var r=di.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function eUe(e,t,n){var r=di.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function tUe(e,t,n){var r=di.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function nUe(e,t,n){var r=di.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function rUe(e,t,n){var r=di.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function oUe(e,t,n){var r=V5e.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function iUe(e,t,n){var r=di.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function aUe(e,t,n){var r=di.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function gK(e,t){return tr(e.getDate(),t,2)}function sUe(e,t){return tr(e.getHours(),t,2)}function lUe(e,t){return tr(e.getHours()%12||12,t,2)}function cUe(e,t){return tr(1+Ew.count(Ku(e),e),t,3)}function Dae(e,t){return tr(e.getMilliseconds(),t,3)}function uUe(e,t){return Dae(e,t)+"000"}function dUe(e,t){return tr(e.getMonth()+1,t,2)}function fUe(e,t){return tr(e.getMinutes(),t,2)}function pUe(e,t){return tr(e.getSeconds(),t,2)}function hUe(e){var t=e.getDay();return t===0?7:t}function mUe(e,t){return tr(YI.count(Ku(e)-1,e),t,2)}function kae(e){var t=e.getDay();return t>=4||t===0?vy(e):vy.ceil(e)}function gUe(e,t){return e=kae(e),tr(vy.count(Ku(e),e)+(Ku(e).getDay()===4),t,2)}function yUe(e){return e.getDay()}function vUe(e,t){return tr(RT.count(Ku(e)-1,e),t,2)}function bUe(e,t){return tr(e.getFullYear()%100,t,2)}function xUe(e,t){return e=kae(e),tr(e.getFullYear()%100,t,2)}function SUe(e,t){return tr(e.getFullYear()%1e4,t,4)}function wUe(e,t){var n=e.getDay();return e=n>=4||n===0?vy(e):vy.ceil(e),tr(e.getFullYear()%1e4,t,4)}function CUe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+tr(t/60|0,"0",2)+tr(t%60,"0",2)}function yK(e,t){return tr(e.getUTCDate(),t,2)}function EUe(e,t){return tr(e.getUTCHours(),t,2)}function TUe(e,t){return tr(e.getUTCHours()%12||12,t,2)}function OUe(e,t){return tr(1+KI.count(Yu(e),e),t,3)}function _ae(e,t){return tr(e.getUTCMilliseconds(),t,3)}function IUe(e,t){return _ae(e,t)+"000"}function PUe(e,t){return tr(e.getUTCMonth()+1,t,2)}function AUe(e,t){return tr(e.getUTCMinutes(),t,2)}function MUe(e,t){return tr(e.getUTCSeconds(),t,2)}function RUe(e){var t=e.getUTCDay();return t===0?7:t}function DUe(e,t){return tr(QI.count(Yu(e)-1,e),t,2)}function $ae(e){var t=e.getUTCDay();return t>=4||t===0?by(e):by.ceil(e)}function kUe(e,t){return e=$ae(e),tr(by.count(Yu(e),e)+(Yu(e).getUTCDay()===4),t,2)}function _Ue(e){return e.getUTCDay()}function $Ue(e,t){return tr(DT.count(Yu(e)-1,e),t,2)}function NUe(e,t){return tr(e.getUTCFullYear()%100,t,2)}function LUe(e,t){return e=$ae(e),tr(e.getUTCFullYear()%100,t,2)}function FUe(e,t){return tr(e.getUTCFullYear()%1e4,t,4)}function jUe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?by(e):by.ceil(e),tr(e.getUTCFullYear()%1e4,t,4)}function BUe(){return"+0000"}function vK(){return"%"}function bK(e){return+e}function xK(e){return Math.floor(+e/1e3)}var Xm,Nae,Lae;zUe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function zUe(e){return Xm=z5e(e),Nae=Xm.format,Xm.parse,Lae=Xm.utcFormat,Xm.utcParse,Xm}function VUe(e){return new Date(e)}function HUe(e){return e instanceof Date?+e:+new Date(+e)}function Mz(e,t,n,r,o,i,a,s,l,c){var u=gz(),f=u.invert,h=u.domain,m=c(".%L"),g=c(":%S"),y=c("%I:%M"),v=c("%I %p"),w=c("%a %d"),C=c("%b %d"),E=c("%B"),I=c("%Y");function O(P){return(l(P)t(o/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(o,i)=>DHe(e,i/r))},n.copy=function(){return zae(t).domain(e)},rd.apply(n,arguments)}function JI(){var e=0,t=.5,n=1,r=1,o,i,a,s,l,c=ra,u,f=!1,h;function m(y){return isNaN(y=+y)?h:(y=.5+((y=+u(y))-i)*(r*yn}return h_=e,h_}var m_,EK;function KUe(){if(EK)return m_;EK=1;var e=ZI(),t=Gae(),n=Cv();function r(o){return o&&o.length?e(o,n,t):void 0}return m_=r,m_}var YUe=KUe();const ff=Gn(YUe);var g_,TK;function qae(){if(TK)return g_;TK=1;function e(t,n){return te.e^i.s<0?1:-1;for(r=i.d.length,o=e.d.length,t=0,n=re.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1};jt.decimalPlaces=jt.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*zr;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};jt.dividedBy=jt.div=function(e){return _u(this,new this.constructor(e))};jt.dividedToIntegerBy=jt.idiv=function(e){var t=this,n=t.constructor;return Ar(_u(t,new n(e),0,1),n.precision)};jt.equals=jt.eq=function(e){return!this.cmp(e)};jt.exponent=function(){return _o(this)};jt.greaterThan=jt.gt=function(e){return this.cmp(e)>0};jt.greaterThanOrEqualTo=jt.gte=function(e){return this.cmp(e)>=0};jt.isInteger=jt.isint=function(){return this.e>this.d.length-2};jt.isNegative=jt.isneg=function(){return this.s<0};jt.isPositive=jt.ispos=function(){return this.s>0};jt.isZero=function(){return this.s===0};jt.lessThan=jt.lt=function(e){return this.cmp(e)<0};jt.lessThanOrEqualTo=jt.lte=function(e){return this.cmp(e)<1};jt.logarithm=jt.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Wa))throw Error(rl+"NaN");if(n.s<1)throw Error(rl+(n.s?"NaN":"-Infinity"));return n.eq(Wa)?new r(0):(Kr=!1,t=_u(Yx(n,i),Yx(e,i),i),Kr=!0,Ar(t,o))};jt.minus=jt.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Qae(t,e):Kae(t,(e.s=-e.s,e))};jt.modulo=jt.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(rl+"NaN");return n.s?(Kr=!1,t=_u(n,e,0,1).times(e),Kr=!0,n.minus(t)):Ar(new r(n),o)};jt.naturalExponential=jt.exp=function(){return Yae(this)};jt.naturalLogarithm=jt.ln=function(){return Yx(this)};jt.negated=jt.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};jt.plus=jt.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Kae(t,e):Qae(t,(e.s=-e.s,e))};jt.precision=jt.sd=function(e){var t,n,r,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ih+e);if(t=_o(o)+1,r=o.d.length-1,n=r*zr+1,r=o.d[r],r){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};jt.squareRoot=jt.sqrt=function(){var e,t,n,r,o,i,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(rl+"NaN")}for(e=_o(s),Kr=!1,o=Math.sqrt(+s),o==0||o==1/0?(t=Sc(s.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Iv((e+1)/2)-(e<0||e%2),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(o.toString()),n=l.precision,o=a=n+3;;)if(i=r,r=i.plus(_u(s,i,a+2)).times(.5),Sc(i.d).slice(0,a)===(t=Sc(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&t=="4999"){if(Ar(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if(t!="9999")break;a+=4}return Kr=!0,Ar(r,n)};jt.times=jt.mul=function(e){var t,n,r,o,i,a,s,l,c,u=this,f=u.constructor,h=u.d,m=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,n=u.e+e.e,l=h.length,c=m.length,l=0;){for(t=0,o=l+r;o>r;)s=i[o]+m[r]*h[o-r-1]+t,i[o--]=s%ni|0,t=s/ni|0;i[o]=(i[o]+t)%ni|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,Kr?Ar(e,f.precision):e};jt.toDecimalPlaces=jt.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(jc(e,0,Ov),t===void 0?t=r.rounding:jc(t,0,8),Ar(n,e+_o(n)+1,t))};jt.toExponential=function(e,t){var n,r=this,o=r.constructor;return e===void 0?n=Ch(r,!0):(jc(e,0,Ov),t===void 0?t=o.rounding:jc(t,0,8),r=Ar(new o(r),e+1,t),n=Ch(r,!0,e+1)),n};jt.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return e===void 0?Ch(o):(jc(e,0,Ov),t===void 0?t=i.rounding:jc(t,0,8),r=Ar(new i(o),e+_o(o)+1,t),n=Ch(r.abs(),!1,e+_o(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)};jt.toInteger=jt.toint=function(){var e=this,t=e.constructor;return Ar(new t(e),_o(e)+1,t.rounding)};jt.toNumber=function(){return+this};jt.toPower=jt.pow=function(e){var t,n,r,o,i,a,s=this,l=s.constructor,c=12,u=+(e=new l(e));if(!e.s)return new l(Wa);if(s=new l(s),!s.s){if(e.s<1)throw Error(rl+"Infinity");return s}if(s.eq(Wa))return s;if(r=l.precision,e.eq(Wa))return Ar(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,i=s.s,a){if((n=u<0?-u:u)<=Wae){for(o=new l(Wa),t=Math.ceil(r/zr+4),Kr=!1;n%2&&(o=o.times(s),RK(o.d,t)),n=Iv(n/2),n!==0;)s=s.times(s),RK(s.d,t);return Kr=!0,e.s<0?new l(Wa).div(o):Ar(o,r)}}else if(i<0)throw Error(rl+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,Kr=!1,o=e.times(Yx(s,r+c)),Kr=!0,o=Yae(o),o.s=i,o};jt.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return e===void 0?(n=_o(o),r=Ch(o,n<=i.toExpNeg||n>=i.toExpPos)):(jc(e,1,Ov),t===void 0?t=i.rounding:jc(t,0,8),o=Ar(new i(o),e,t),n=_o(o),r=Ch(o,e<=n||n<=i.toExpNeg,e)),r};jt.toSignificantDigits=jt.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(jc(e,1,Ov),t===void 0?t=r.rounding:jc(t,0,8)),Ar(new r(n),e,t)};jt.toString=jt.valueOf=jt.val=jt.toJSON=jt[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=_o(e),n=e.constructor;return Ch(e,t<=n.toExpNeg||t>=n.toExpPos)};function Kae(e,t){var n,r,o,i,a,s,l,c,u=e.constructor,f=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),Kr?Ar(t,f):t;if(l=e.d,c=t.d,a=e.e,o=t.e,l=l.slice(),i=a-o,i){for(i<0?(r=l,i=-i,s=c.length):(r=c,o=a,s=l.length),a=Math.ceil(f/zr),s=a>s?a+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=l.length,i=c.length,s-i<0&&(i=s,r=c,c=l,l=r),n=0;i;)n=(l[--i]=l[i]+c[i]+n)/ni|0,l[i]%=ni;for(n&&(l.unshift(n),++o),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=o,Kr?Ar(t,f):t}function jc(e,t,n){if(e!==~~e||en)throw Error(ih+e)}function Sc(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;ta?1:-1;else for(s=l=0;so[s]?1:-1;break}return l}function n(r,o,i){for(var a=0;i--;)r[i]-=a,a=r[i]1;)r.shift()}return function(r,o,i,a){var s,l,c,u,f,h,m,g,y,v,w,C,E,I,O,P,R,D,M=r.constructor,A=r.s==o.s?1:-1,_=r.d,N=o.d;if(!r.s)return new M(r);if(!o.s)throw Error(rl+"Division by zero");for(l=r.e-o.e,R=N.length,O=_.length,m=new M(A),g=m.d=[],c=0;N[c]==(_[c]||0);)++c;if(N[c]>(_[c]||0)&&--l,i==null?C=i=M.precision:a?C=i+(_o(r)-_o(o))+1:C=i,C<0)return new M(0);if(C=C/zr+2|0,c=0,R==1)for(u=0,N=N[0],C++;(c1&&(N=e(N,u),_=e(_,u),R=N.length,O=_.length),I=R,y=_.slice(0,R),v=y.length;v=ni/2&&++P;do u=0,s=t(N,y,R,v),s<0?(w=y[0],R!=v&&(w=w*ni+(y[1]||0)),u=w/P|0,u>1?(u>=ni&&(u=ni-1),f=e(N,u),h=f.length,v=y.length,s=t(f,y,h,v),s==1&&(u--,n(f,R16)throw Error(kz+_o(e));if(!e.s)return new u(Wa);for(Kr=!1,s=f,a=new u(.03125);e.abs().gte(.1);)e=e.times(a),c+=5;for(r=Math.log(Mp(2,c))/Math.LN10*2+5|0,s+=r,n=o=i=new u(Wa),u.precision=s;;){if(o=Ar(o.times(e),s),n=n.times(++l),a=i.plus(_u(o,n,s)),Sc(a.d).slice(0,s)===Sc(i.d).slice(0,s)){for(;c--;)i=Ar(i.times(i),s);return u.precision=f,t==null?(Kr=!0,Ar(i,f)):i}i=a}}function _o(e){for(var t=e.e*zr,n=e.d[0];n>=10;n/=10)t++;return t}function S_(e,t,n){if(t>e.LN10.sd())throw Kr=!0,n&&(e.precision=n),Error(rl+"LN10 precision limit exceeded");return Ar(new e(e.LN10),t)}function Ud(e){for(var t="";e--;)t+="0";return t}function Yx(e,t){var n,r,o,i,a,s,l,c,u,f=1,h=10,m=e,g=m.d,y=m.constructor,v=y.precision;if(m.s<1)throw Error(rl+(m.s?"NaN":"-Infinity"));if(m.eq(Wa))return new y(0);if(t==null?(Kr=!1,c=v):c=t,m.eq(10))return t==null&&(Kr=!0),S_(y,c);if(c+=h,y.precision=c,n=Sc(g),r=n.charAt(0),i=_o(m),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)m=m.times(e),n=Sc(m.d),r=n.charAt(0),f++;i=_o(m),r>1?(m=new y("0."+n),i++):m=new y(r+"."+n.slice(1))}else return l=S_(y,c+2,v).times(i+""),m=Yx(new y(r+"."+n.slice(1)),c-h).plus(l),y.precision=v,t==null?(Kr=!0,Ar(m,v)):m;for(s=a=m=_u(m.minus(Wa),m.plus(Wa),c),u=Ar(m.times(m),c),o=3;;){if(a=Ar(a.times(u),c),l=s.plus(_u(a,new y(o),c)),Sc(l.d).slice(0,c)===Sc(s.d).slice(0,c))return s=s.times(2),i!==0&&(s=s.plus(S_(y,c+2,v).times(i+""))),s=_u(s,new y(f),c),y.precision=v,t==null?(Kr=!0,Ar(s,v)):s;s=l,o+=2}}function MK(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(o=t.length;t.charCodeAt(o-1)===48;)--o;if(t=t.slice(r,o),t){if(o-=r,n=n-r-1,e.e=Iv(n/zr),e.d=[],r=(n+1)%zr,n<0&&(r+=zr),rkT||e.e<-kT))throw Error(kz+n)}else e.s=0,e.e=0,e.d=[0];return e}function Ar(e,t,n){var r,o,i,a,s,l,c,u,f=e.d;for(a=1,i=f[0];i>=10;i/=10)a++;if(r=t-a,r<0)r+=zr,o=t,c=f[u=0];else{if(u=Math.ceil((r+1)/zr),i=f.length,u>=i)return e;for(c=i=f[u],a=1;i>=10;i/=10)a++;r%=zr,o=r-zr+a}if(n!==void 0&&(i=Mp(10,a-o-1),s=c/i%10|0,l=t<0||f[u+1]!==void 0||c%i,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?o>0?c/Mp(10,a-o):0:f[u-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return l?(i=_o(e),f.length=1,t=t-i-1,f[0]=Mp(10,(zr-t%zr)%zr),e.e=Iv(-t/zr)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(r==0?(f.length=u,i=1,u--):(f.length=u+1,i=Mp(10,zr-r),f[u]=o>0?(c/Mp(10,a-o)%Mp(10,o)|0)*i:0),l)for(;;)if(u==0){(f[0]+=i)==ni&&(f[0]=1,++e.e);break}else{if(f[u]+=i,f[u]!=ni)break;f[u--]=0,i=1}for(r=f.length;f[--r]===0;)f.pop();if(Kr&&(e.e>kT||e.e<-kT))throw Error(kz+_o(e));return e}function Qae(e,t){var n,r,o,i,a,s,l,c,u,f,h=e.constructor,m=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),Kr?Ar(t,m):t;if(l=e.d,f=t.d,r=t.e,c=e.e,l=l.slice(),a=c-r,a){for(u=a<0,u?(n=l,a=-a,s=f.length):(n=f,r=c,s=l.length),o=Math.max(Math.ceil(m/zr),s)+2,a>o&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for(o=l.length,s=f.length,u=o0;--o)l[s++]=0;for(o=f.length;o>a;){if(l[--o]0?i=i.charAt(0)+"."+i.slice(1)+Ud(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+Ud(-o-1)+i,n&&(r=n-a)>0&&(i+=Ud(r))):o>=a?(i+=Ud(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+Ud(r))):((r=o+1)0&&(o+1===a&&(i+="."),i+=Ud(r))),e.s<0?"-"+i:i}function RK(e,t){if(e.length>t)return e.length=t,!0}function Xae(e){var t,n,r;function o(i){var a=this;if(!(a instanceof o))return new o(i);if(a.constructor=o,i instanceof o){a.s=i.s,a.e=i.e,a.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(ih+i);if(i>0)a.s=1;else if(i<0)i=-i,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(i===~~i&&i<1e7){a.e=0,a.d=[i];return}return MK(a,i.toString())}else if(typeof i!="string")throw Error(ih+i);if(i.charCodeAt(0)===45?(i=i.slice(1),a.s=-1):a.s=1,i4e.test(i))MK(a,i);else throw Error(ih+i)}if(o.prototype=jt,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=Xae,o.config=o.set=a4e,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(ih+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(ih+n+": "+r);return this}var _z=Xae(o4e);Wa=new _z(1);const Cr=_z;function s4e(e){return d4e(e)||u4e(e)||c4e(e)||l4e()}function l4e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c4e(e,t){if(e){if(typeof e=="string")return jL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jL(e,t)}}function u4e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function d4e(e){if(Array.isArray(e))return jL(e)}function jL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t?n.apply(void 0,o):e(t-a,DK(function(){for(var s=arguments.length,l=new Array(s),c=0;ce.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,o=!1,i=void 0;try{for(var a=e[Symbol.iterator](),s;!(r=(s=a.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(l){o=!0,i=l}finally{try{!r&&a.return!=null&&a.return()}finally{if(o)throw i}}return n}}function O4e(e){if(Array.isArray(e))return e}function nse(e){var t=Qx(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function rse(e,t,n){if(e.lte(0))return new Cr(0);var r=nP.getDigitCount(e.toNumber()),o=new Cr(10).pow(r),i=e.div(o),a=r!==1?.05:.1,s=new Cr(Math.ceil(i.div(a).toNumber())).add(n).mul(a),l=s.mul(o);return t?l:new Cr(Math.ceil(l))}function I4e(e,t,n){var r=1,o=new Cr(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new Cr(10).pow(nP.getDigitCount(e)-1),o=new Cr(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new Cr(Math.floor(e)))}else e===0?o=new Cr(Math.floor((t-1)/2)):n||(o=new Cr(Math.floor(e)));var a=Math.floor((t-1)/2),s=m4e(h4e(function(l){return o.add(new Cr(l-a).mul(r)).toNumber()}),BL);return s(0,t)}function ose(e,t,n,r){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Cr(0),tickMin:new Cr(0),tickMax:new Cr(0)};var i=rse(new Cr(t).sub(e).div(n-1),r,o),a;e<=0&&t>=0?a=new Cr(0):(a=new Cr(e).add(t).div(2),a=a.sub(new Cr(a).mod(i)));var s=Math.ceil(a.sub(e).div(i).toNumber()),l=Math.ceil(new Cr(t).sub(a).div(i).toNumber()),c=s+l+1;return c>n?ose(e,t,n,r,o+1):(c0?l+(n-c):l,s=t>0?s:s+(n-c)),{step:i,tickMin:a.sub(new Cr(s).mul(i)),tickMax:a.add(new Cr(l).mul(i))})}function P4e(e){var t=Qx(e,2),n=t[0],r=t[1],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(o,2),s=nse([n,r]),l=Qx(s,2),c=l[0],u=l[1];if(c===-1/0||u===1/0){var f=u===1/0?[c].concat(VL(BL(0,o-1).map(function(){return 1/0}))):[].concat(VL(BL(0,o-1).map(function(){return-1/0})),[u]);return n>r?zL(f):f}if(c===u)return I4e(c,o,i);var h=ose(c,u,a,i),m=h.step,g=h.tickMin,y=h.tickMax,v=nP.rangeStep(g,y.add(new Cr(.1).mul(m)),m);return n>r?zL(v):v}function A4e(e,t){var n=Qx(e,2),r=n[0],o=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=nse([r,o]),s=Qx(a,2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[r,o];if(l===c)return[l];var u=Math.max(t,2),f=rse(new Cr(c).sub(l).div(u-1),i,0),h=[].concat(VL(nP.rangeStep(new Cr(l),new Cr(c).sub(new Cr(.99).mul(f)),f)),[c]);return r>o?zL(h):h}var M4e=ese(P4e),R4e=ese(A4e),D4e="Invariant failed";function Af(e,t){throw new Error(D4e)}var k4e=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function xy(e){"@babel/helpers - typeof";return xy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xy(e)}function _T(){return _T=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function B4e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function z4e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V4e(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=-1,s=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(s<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var l=i.range,c=0;c0?o[c-1].coordinate:o[s-1].coordinate,f=o[c].coordinate,h=c>=s-1?o[0].coordinate:o[c+1].coordinate,m=void 0;if(ta(f-u)!==ta(h-f)){var g=[];if(ta(h-f)===ta(l[1]-l[0])){m=h;var y=f+l[1]-l[0];g[0]=Math.min(y,(y+u)/2),g[1]=Math.max(y,(y+u)/2)}else{m=u;var v=h+l[1]-l[0];g[0]=Math.min(f,(v+f)/2),g[1]=Math.max(f,(v+f)/2)}var w=[Math.min(f,(m+f)/2),Math.max(f,(m+f)/2)];if(t>w[0]&&t<=w[1]||t>=g[0]&&t<=g[1]){a=o[c].index;break}}else{var C=Math.min(u,h),E=Math.max(u,h);if(t>(C+f)/2&&t<=(E+f)/2){a=o[c].index;break}}}else for(var I=0;I0&&I(r[I].coordinate+r[I-1].coordinate)/2&&t<=(r[I].coordinate+r[I+1].coordinate)/2||I===s-1&&t>(r[I].coordinate+r[I-1].coordinate)/2){a=r[I].index;break}return a},$z=function(t){var n,r=t,o=r.type.displayName,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?po(po({},t.type.defaultProps),t.props):t.props,a=i.stroke,s=i.fill,l;switch(o){case"Line":l=a;break;case"Area":case"Radar":l=a&&a!=="none"?a:s;break;default:l=s;break}return l},i3e=function(t){var n=t.barSize,r=t.totalSize,o=t.stackGroups,i=o===void 0?{}:o;if(!i)return{};for(var a={},s=Object.keys(i),l=0,c=s.length;l=0});if(w&&w.length){var C=w[0].type.defaultProps,E=C!==void 0?po(po({},C),w[0].props):w[0].props,I=E.barSize,O=E[v];a[O]||(a[O]=[]);var P=on(I)?n:I;a[O].push({item:w[0],stackList:w.slice(1),barSize:on(P)?void 0:na(P,r,0)})}}return a},a3e=function(t){var n=t.barGap,r=t.barCategoryGap,o=t.bandSize,i=t.sizeList,a=i===void 0?[]:i,s=t.maxBarSize,l=a.length;if(l<1)return null;var c=na(n,o,0,!0),u,f=[];if(a[0].barSize===+a[0].barSize){var h=!1,m=o/l,g=a.reduce(function(I,O){return I+O.barSize||0},0);g+=(l-1)*c,g>=o&&(g-=(l-1)*c,c=0),g>=o&&m>0&&(h=!0,m*=.9,g=l*m);var y=(o-g)/2>>0,v={offset:y-c,size:0};u=a.reduce(function(I,O){var P={item:O.item,position:{offset:v.offset+v.size+c,size:h?m:O.barSize}},R=[].concat($K(I),[P]);return v=R[R.length-1].position,O.stackList&&O.stackList.length&&O.stackList.forEach(function(D){R.push({item:D,position:v})}),R},f)}else{var w=na(r,o,0,!0);o-2*w-(l-1)*c<=0&&(c=0);var C=(o-2*w-(l-1)*c)/l;C>1&&(C>>=0);var E=s===+s?Math.min(C,s):C;u=a.reduce(function(I,O,P){var R=[].concat($K(I),[{item:O.item,position:{offset:w+(C+c)*P+(C-E)/2,size:E}}]);return O.stackList&&O.stackList.length&&O.stackList.forEach(function(D){R.push({item:D,position:R[R.length-1].position})}),R},f)}return u},s3e=function(t,n,r,o){var i=r.children,a=r.width,s=r.margin,l=a-(s.left||0)-(s.right||0),c=lse({children:i,legendWidth:l});if(c){var u=o||{},f=u.width,h=u.height,m=c.align,g=c.verticalAlign,y=c.layout;if((y==="vertical"||y==="horizontal"&&g==="middle")&&m!=="center"&&mt(t[m]))return po(po({},t),{},Bg({},m,t[m]+(f||0)));if((y==="horizontal"||y==="vertical"&&m==="center")&&g!=="middle"&&mt(t[g]))return po(po({},t),{},Bg({},g,t[g]+(h||0)))}return t},l3e=function(t,n,r){return on(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},cse=function(t,n,r,o,i){var a=n.props.children,s=sa(a,Pv).filter(function(c){return l3e(o,i,c.props.direction)});if(s&&s.length){var l=s.map(function(c){return c.props.dataKey});return t.reduce(function(c,u){var f=Vr(u,r);if(on(f))return c;var h=Array.isArray(f)?[eP(f),ff(f)]:[f,f],m=l.reduce(function(g,y){var v=Vr(u,y,0),w=h[0]-Math.abs(Array.isArray(v)?v[0]:v),C=h[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(w,g[0]),Math.max(C,g[1])]},[1/0,-1/0]);return[Math.min(m[0],c[0]),Math.max(m[1],c[1])]},[1/0,-1/0])}return null},c3e=function(t,n,r,o,i){var a=n.map(function(s){return cse(t,s,r,i,o)}).filter(function(s){return!on(s)});return a&&a.length?a.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},use=function(t,n,r,o,i){var a=n.map(function(l){var c=l.props.dataKey;return r==="number"&&c&&cse(t,l,c,o)||rx(t,c,r,i)});if(r==="number")return a.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);var s={};return a.reduce(function(l,c){for(var u=0,f=c.length;u=2?ta(s[0]-s[1])*2*c:c,n&&(t.ticks||t.niceTicks)){var u=(t.ticks||t.niceTicks).map(function(f){var h=i?i.indexOf(f):f;return{coordinate:o(h)+c,value:f,offset:c}});return u.filter(function(f){return!wv(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,h){return{coordinate:o(f)+c,value:f,index:h,offset:c}}):o.ticks&&!r?o.ticks(t.tickCount).map(function(f){return{coordinate:o(f)+c,value:f,offset:c}}):o.domain().map(function(f,h){return{coordinate:o(f)+c,value:i?i[f]:f,index:h,offset:c}})},w_=new WeakMap,B1=function(t,n){if(typeof n!="function")return t;w_.has(t)||w_.set(t,new WeakMap);var r=w_.get(t);if(r.has(n))return r.get(n);var o=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,o),o},pse=function(t,n,r){var o=t.scale,i=t.type,a=t.layout,s=t.axisType;if(o==="auto")return a==="radial"&&s==="radiusAxis"?{scale:Ux(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:AT(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:nx(),realScaleType:"point"}:i==="category"?{scale:Ux(),realScaleType:"band"}:{scale:AT(),realScaleType:"linear"};if(Sh(o)){var l="scale".concat(jI(o));return{scale:(SK[l]||nx)(),realScaleType:SK[l]?l:"point"}}return rn(o)?{scale:o}:{scale:nx(),realScaleType:"point"}},LK=1e-4,hse=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,o=t.range(),i=Math.min(o[0],o[1])-LK,a=Math.max(o[0],o[1])+LK,s=t(n[0]),l=t(n[r-1]);(sa||la)&&t.domain([n[0],n[r-1]])}},u3e=function(t,n){if(!t)return null;for(var r=0,o=t.length;ro)&&(i[1]=o),i[0]>o&&(i[0]=o),i[1]=0?(t[s][r][0]=i,t[s][r][1]=i+l,i=t[s][r][1]):(t[s][r][0]=a,t[s][r][1]=a+l,a=t[s][r][1])}},p3e=function(t){var n=t.length;if(!(n<=0))for(var r=0,o=t[0].length;r=0?(t[a][r][0]=i,t[a][r][1]=i+s,i=t[a][r][1]):(t[a][r][0]=0,t[a][r][1]=0)}},h3e={sign:f3e,expand:nBe,none:fy,silhouette:rBe,wiggle:oBe,positive:p3e},m3e=function(t,n,r){var o=n.map(function(s){return s.props.dataKey}),i=h3e[r],a=tBe().keys(o).value(function(s,l){return+Vr(s,l,0)}).order(SL).offset(i);return a(t)},g3e=function(t,n,r,o,i,a){if(!t)return null;var s=a?n.reverse():n,l={},c=s.reduce(function(f,h){var m,g=(m=h.type)!==null&&m!==void 0&&m.defaultProps?po(po({},h.type.defaultProps),h.props):h.props,y=g.stackId,v=g.hide;if(v)return f;var w=g[r],C=f[w]||{hasStack:!1,stackGroups:{}};if(Vo(y)){var E=C.stackGroups[y]||{numericAxisId:r,cateAxisId:o,items:[]};E.items.push(h),C.hasStack=!0,C.stackGroups[y]=E}else C.stackGroups[Bf("_stackId_")]={numericAxisId:r,cateAxisId:o,items:[h]};return po(po({},f),{},Bg({},w,C))},l),u={};return Object.keys(c).reduce(function(f,h){var m=c[h];if(m.hasStack){var g={};m.stackGroups=Object.keys(m.stackGroups).reduce(function(y,v){var w=m.stackGroups[v];return po(po({},y),{},Bg({},v,{numericAxisId:r,cateAxisId:o,items:w.items,stackedData:m3e(t,w.items,i)}))},g)}return po(po({},f),{},Bg({},h,m))},u)},mse=function(t,n){var r=n.realScaleType,o=n.type,i=n.tickCount,a=n.originalDomain,s=n.allowDecimals,l=r||n.scale;if(l!=="auto"&&l!=="linear")return null;if(i&&o==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var c=t.domain();if(!c.length)return null;var u=M4e(c,i,s);return t.domain([eP(u),ff(u)]),{niceTicks:u}}if(i&&o==="number"){var f=t.domain(),h=R4e(f,i,s);return{niceTicks:h}}return null};function Sy(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!on(o[t.dataKey])){var s=dT(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var l=Vr(o,on(a)?t.dataKey:a);return on(l)?null:t.scale(l)}var FK=function(t){var n=t.axis,r=t.ticks,o=t.offset,i=t.bandSize,a=t.entry,s=t.index;if(n.type==="category")return r[s]?r[s].coordinate+o:null;var l=Vr(a,n.dataKey,n.domain[s]);return on(l)?null:n.scale(l)-i/2+o},y3e=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var o=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return o<=0&&i>=0?0:i<0?i:o}return r[0]},v3e=function(t,n){var r,o=(r=t.type)!==null&&r!==void 0&&r.defaultProps?po(po({},t.type.defaultProps),t.props):t.props,i=o.stackId;if(Vo(i)){var a=n[i];if(a){var s=a.items.indexOf(t);return s>=0?a.stackedData[s]:null}}return null},b3e=function(t){return t.reduce(function(n,r){return[eP(r.concat([n[0]]).filter(mt)),ff(r.concat([n[1]]).filter(mt))]},[1/0,-1/0])},gse=function(t,n,r){return Object.keys(t).reduce(function(o,i){var a=t[i],s=a.stackedData,l=s.reduce(function(c,u){var f=b3e(u.slice(n,r+1));return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],o[0]),Math.max(l[1],o[1])]},[1/0,-1/0]).map(function(o){return o===1/0||o===-1/0?0:o})},jK=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,BK=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,qL=function(t,n,r){if(rn(t))return t(n,r);if(!Array.isArray(t))return n;var o=[];if(mt(t[0]))o[0]=r?t[0]:Math.min(t[0],n[0]);else if(jK.test(t[0])){var i=+jK.exec(t[0])[1];o[0]=n[0]-i}else rn(t[0])?o[0]=t[0](n[0]):o[0]=n[0];if(mt(t[1]))o[1]=r?t[1]:Math.max(t[1],n[1]);else if(BK.test(t[1])){var a=+BK.exec(t[1])[1];o[1]=n[1]+a}else rn(t[1])?o[1]=t[1](n[1]):o[1]=n[1];return o},NT=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var o=t.scale.bandwidth();if(!r||o>0)return o}if(t&&n&&n.length>=2){for(var i=cz(n,function(f){return f.coordinate}),a=1/0,s=1,l=i.length;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},P3e=function(t,n,r,o,i){var a=t.width,s=t.height,l=t.startAngle,c=t.endAngle,u=na(t.cx,a,a/2),f=na(t.cy,s,s/2),h=bse(a,s,r),m=na(t.innerRadius,h,0),g=na(t.outerRadius,h,h*.8),y=Object.keys(n);return y.reduce(function(v,w){var C=n[w],E=C.domain,I=C.reversed,O;if(on(C.range))o==="angleAxis"?O=[l,c]:o==="radiusAxis"&&(O=[m,g]),I&&(O=[O[1],O[0]]);else{O=C.range;var P=O,R=w3e(P,2);l=R[0],c=R[1]}var D=pse(C,i),M=D.realScaleType,A=D.scale;A.domain(E).range(O),hse(A);var _=mse(A,Su(Su({},C),{},{realScaleType:M})),N=Su(Su(Su({},C),_),{},{range:O,radius:g,realScaleType:M,scale:A,cx:u,cy:f,innerRadius:m,outerRadius:g,startAngle:l,endAngle:c});return Su(Su({},v),{},vse({},w,N))},{})},A3e=function(t,n){var r=t.x,o=t.y,i=n.x,a=n.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(o-a,2))},M3e=function(t,n){var r=t.x,o=t.y,i=n.cx,a=n.cy,s=A3e({x:r,y:o},{x:i,y:a});if(s<=0)return{radius:s};var l=(r-i)/s,c=Math.acos(l);return o>a&&(c=2*Math.PI-c),{radius:s,angle:I3e(c),angleInRadian:c}},R3e=function(t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360),a=Math.min(o,i);return{startAngle:n-a*360,endAngle:r-a*360}},D3e=function(t,n){var r=n.startAngle,o=n.endAngle,i=Math.floor(r/360),a=Math.floor(o/360),s=Math.min(i,a);return t+s*360},UK=function(t,n){var r=t.x,o=t.y,i=M3e({x:r,y:o},n),a=i.radius,s=i.angle,l=n.innerRadius,c=n.outerRadius;if(ac)return!1;if(a===0)return!0;var u=R3e(n),f=u.startAngle,h=u.endAngle,m=s,g;if(f<=h){for(;m>h;)m-=360;for(;m=f&&m<=h}else{for(;m>f;)m-=360;for(;m=h&&m<=f}return g?Su(Su({},n),{},{radius:a,angle:D3e(m,n)}):null},xse=function(t){return!x.isValidElement(t)&&!rn(t)&&typeof t!="boolean"?t.className:""};function eS(e){"@babel/helpers - typeof";return eS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eS(e)}var k3e=["offset"];function _3e(e){return F3e(e)||L3e(e)||N3e(e)||$3e()}function $3e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N3e(e,t){if(e){if(typeof e=="string")return WL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WL(e,t)}}function L3e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function F3e(e){if(Array.isArray(e))return WL(e)}function WL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function B3e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function GK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Fo(e){for(var t=1;t=0?1:-1,E,I;o==="insideStart"?(E=m+C*a,I=y):o==="insideEnd"?(E=g-C*a,I=!y):o==="end"&&(E=g+C*a,I=y),I=w<=0?I:!I;var O=Nr(c,u,v,E),P=Nr(c,u,v,E+(I?1:-1)*359),R="M".concat(O.x,",").concat(O.y,` A`).concat(v,",").concat(v,",0,1,").concat(I?0:1,`, - `).concat(P.x,",").concat(P.y),D=on(t.id)?Bf("recharts-radial-line-"):t.id;return Z.createElement("text",Jx({},r,{dominantBaseline:"central",className:fe("recharts-radial-bar-label",s)}),Z.createElement("defs",null,Z.createElement("path",{id:D,d:R})),Z.createElement("textPath",{xlinkHref:"#".concat(D)},n))},q3e=function(t){var n=t.viewBox,r=t.offset,o=t.position,i=n,a=i.cx,s=i.cy,l=i.innerRadius,c=i.outerRadius,u=i.startAngle,f=i.endAngle,h=(u+f)/2;if(o==="outside"){var m=Nr(a,s,c+r,h),g=m.x,y=m.y;return{x:g,y,textAnchor:g>=a?"start":"end",verticalAnchor:"middle"}}if(o==="center")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(o==="centerTop")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"start"};if(o==="centerBottom")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"end"};var v=(l+c)/2,w=Nr(a,s,v,h),C=w.x,E=w.y;return{x:C,y:E,textAnchor:"middle",verticalAnchor:"middle"}},W3e=function(t){var n=t.viewBox,r=t.parentViewBox,o=t.offset,i=t.position,a=n,s=a.x,l=a.y,c=a.width,u=a.height,f=u>=0?1:-1,h=f*o,m=f>0?"end":"start",g=f>0?"start":"end",y=c>=0?1:-1,v=y*o,w=y>0?"end":"start",C=y>0?"start":"end";if(i==="top"){var E={x:s+c/2,y:l-f*o,textAnchor:"middle",verticalAnchor:m};return Fo(Fo({},E),r?{height:Math.max(l-r.y,0),width:c}:{})}if(i==="bottom"){var I={x:s+c/2,y:l+u+h,textAnchor:"middle",verticalAnchor:g};return Fo(Fo({},I),r?{height:Math.max(r.y+r.height-(l+u),0),width:c}:{})}if(i==="left"){var O={x:s-v,y:l+u/2,textAnchor:w,verticalAnchor:"middle"};return Fo(Fo({},O),r?{width:Math.max(O.x-r.x,0),height:u}:{})}if(i==="right"){var P={x:s+c+v,y:l+u/2,textAnchor:C,verticalAnchor:"middle"};return Fo(Fo({},P),r?{width:Math.max(r.x+r.width-P.x,0),height:u}:{})}var R=r?{width:c,height:u}:{};return i==="insideLeft"?Fo({x:s+v,y:l+u/2,textAnchor:C,verticalAnchor:"middle"},R):i==="insideRight"?Fo({x:s+c-v,y:l+u/2,textAnchor:w,verticalAnchor:"middle"},R):i==="insideTop"?Fo({x:s+c/2,y:l+h,textAnchor:"middle",verticalAnchor:g},R):i==="insideBottom"?Fo({x:s+c/2,y:l+u-h,textAnchor:"middle",verticalAnchor:m},R):i==="insideTopLeft"?Fo({x:s+v,y:l+h,textAnchor:C,verticalAnchor:g},R):i==="insideTopRight"?Fo({x:s+c-v,y:l+h,textAnchor:w,verticalAnchor:g},R):i==="insideBottomLeft"?Fo({x:s+v,y:l+u-h,textAnchor:C,verticalAnchor:m},R):i==="insideBottomRight"?Fo({x:s+c-v,y:l+u-h,textAnchor:w,verticalAnchor:m},R):bv(i)&&(mt(i.x)||Bp(i.x))&&(mt(i.y)||Bp(i.y))?Fo({x:s+na(i.x,c),y:l+na(i.y,u),textAnchor:"end",verticalAnchor:"end"},R):Fo({x:s+c/2,y:l+u/2,textAnchor:"middle",verticalAnchor:"middle"},R)},K3e=function(t){return"cx"in t&&mt(t.cx)};function oi(e){var t=e.offset,n=t===void 0?5:t,r=F3e(e,D3e),o=Fo({offset:n},r),i=o.viewBox,a=o.position,s=o.value,l=o.children,c=o.content,u=o.className,f=u===void 0?"":u,h=o.textBreakAll;if(!i||on(s)&&on(l)&&!x.isValidElement(c)&&!rn(c))return null;if(x.isValidElement(c))return x.cloneElement(c,o);var m;if(rn(c)){if(m=x.createElement(c,o),x.isValidElement(m))return m}else m=H3e(o);var g=K3e(i),y=zt(o,!0);if(g&&(a==="insideStart"||a==="insideEnd"||a==="end"))return G3e(o,m,y);var v=g?q3e(o):W3e(o);return Z.createElement(wh,Jx({className:fe("recharts-label",f)},y,v,{breakAll:h}),m)}oi.displayName="Label";var xse=function(t){var n=t.cx,r=t.cy,o=t.angle,i=t.startAngle,a=t.endAngle,s=t.r,l=t.radius,c=t.innerRadius,u=t.outerRadius,f=t.x,h=t.y,m=t.top,g=t.left,y=t.width,v=t.height,w=t.clockWise,C=t.labelViewBox;if(C)return C;if(mt(y)&&mt(v)){if(mt(f)&&mt(h))return{x:f,y:h,width:y,height:v};if(mt(m)&&mt(g))return{x:m,y:g,width:y,height:v}}return mt(f)&&mt(h)?{x:f,y:h,width:0,height:0}:mt(n)&&mt(r)?{cx:n,cy:r,startAngle:i||o||0,endAngle:a||o||0,innerRadius:c||0,outerRadius:u||l||s||0,clockWise:w}:t.viewBox?t.viewBox:{}},Y3e=function(t,n){return t?t===!0?Z.createElement(oi,{key:"label-implicit",viewBox:n}):Vo(t)?Z.createElement(oi,{key:"label-implicit",viewBox:n,value:t}):x.isValidElement(t)?t.type===oi?x.cloneElement(t,{key:"label-implicit",viewBox:n}):Z.createElement(oi,{key:"label-implicit",content:t,viewBox:n}):rn(t)?Z.createElement(oi,{key:"label-implicit",content:t,viewBox:n}):bv(t)?Z.createElement(oi,Jx({viewBox:n},t,{key:"label-implicit"})):null:null},Q3e=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var o=t.children,i=xse(t),a=sa(o,oi).map(function(l,c){return x.cloneElement(l,{viewBox:n||i,key:"label-".concat(c)})});if(!r)return a;var s=Y3e(t.label,n||i);return[s].concat(k3e(a))};oi.parseViewBox=xse;oi.renderCallByParent=Q3e;var S_,GK;function X3e(){if(GK)return S_;GK=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return S_=e,S_}var Z3e=X3e();const J3e=Gn(Z3e);function eS(e){"@babel/helpers - typeof";return eS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eS(e)}var eGe=["valueAccessor"],tGe=["data","dataKey","clockWise","id","textBreakAll"];function nGe(e){return aGe(e)||iGe(e)||oGe(e)||rGe()}function rGe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oGe(e,t){if(e){if(typeof e=="string")return qL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qL(e,t)}}function iGe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aGe(e){if(Array.isArray(e))return qL(e)}function qL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uGe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var dGe=function(t){return Array.isArray(t.value)?J3e(t.value):t.value};function Fl(e){var t=e.valueAccessor,n=t===void 0?dGe:t,r=KK(e,eGe),o=r.data,i=r.dataKey,a=r.clockWise,s=r.id,l=r.textBreakAll,c=KK(r,tGe);return!o||!o.length?null:Z.createElement(wn,{className:"recharts-label-list"},o.map(function(u,f){var h=on(i)?n(u,f):Vr(u&&u.payload,i),m=on(s)?{}:{id:"".concat(s,"-").concat(f)};return Z.createElement(oi,LT({},zt(u,!0),c,m,{parentViewBox:u.parentViewBox,value:h,textBreakAll:l,viewBox:oi.parseViewBox(on(a)?u:WK(WK({},u),{},{clockWise:a})),key:"label-".concat(f),index:f}))}))}Fl.displayName="LabelList";function fGe(e,t){return e?e===!0?Z.createElement(Fl,{key:"labelList-implicit",data:t}):Z.isValidElement(e)||rn(e)?Z.createElement(Fl,{key:"labelList-implicit",data:t,content:e}):bv(e)?Z.createElement(Fl,LT({data:t},e,{key:"labelList-implicit"})):null:null}function pGe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=sa(r,Fl).map(function(a,s){return x.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!n)return o;var i=fGe(e.label,t);return[i].concat(nGe(o))}Fl.renderCallByParent=pGe;function tS(e){"@babel/helpers - typeof";return tS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tS(e)}function WL(){return WL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=a?"start":"end",verticalAnchor:"middle"}}if(o==="center")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(o==="centerTop")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"start"};if(o==="centerBottom")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"end"};var v=(l+c)/2,w=Nr(a,s,v,h),C=w.x,E=w.y;return{x:C,y:E,textAnchor:"middle",verticalAnchor:"middle"}},K3e=function(t){var n=t.viewBox,r=t.parentViewBox,o=t.offset,i=t.position,a=n,s=a.x,l=a.y,c=a.width,u=a.height,f=u>=0?1:-1,h=f*o,m=f>0?"end":"start",g=f>0?"start":"end",y=c>=0?1:-1,v=y*o,w=y>0?"end":"start",C=y>0?"start":"end";if(i==="top"){var E={x:s+c/2,y:l-f*o,textAnchor:"middle",verticalAnchor:m};return Fo(Fo({},E),r?{height:Math.max(l-r.y,0),width:c}:{})}if(i==="bottom"){var I={x:s+c/2,y:l+u+h,textAnchor:"middle",verticalAnchor:g};return Fo(Fo({},I),r?{height:Math.max(r.y+r.height-(l+u),0),width:c}:{})}if(i==="left"){var O={x:s-v,y:l+u/2,textAnchor:w,verticalAnchor:"middle"};return Fo(Fo({},O),r?{width:Math.max(O.x-r.x,0),height:u}:{})}if(i==="right"){var P={x:s+c+v,y:l+u/2,textAnchor:C,verticalAnchor:"middle"};return Fo(Fo({},P),r?{width:Math.max(r.x+r.width-P.x,0),height:u}:{})}var R=r?{width:c,height:u}:{};return i==="insideLeft"?Fo({x:s+v,y:l+u/2,textAnchor:C,verticalAnchor:"middle"},R):i==="insideRight"?Fo({x:s+c-v,y:l+u/2,textAnchor:w,verticalAnchor:"middle"},R):i==="insideTop"?Fo({x:s+c/2,y:l+h,textAnchor:"middle",verticalAnchor:g},R):i==="insideBottom"?Fo({x:s+c/2,y:l+u-h,textAnchor:"middle",verticalAnchor:m},R):i==="insideTopLeft"?Fo({x:s+v,y:l+h,textAnchor:C,verticalAnchor:g},R):i==="insideTopRight"?Fo({x:s+c-v,y:l+h,textAnchor:w,verticalAnchor:g},R):i==="insideBottomLeft"?Fo({x:s+v,y:l+u-h,textAnchor:C,verticalAnchor:m},R):i==="insideBottomRight"?Fo({x:s+c-v,y:l+u-h,textAnchor:w,verticalAnchor:m},R):Sv(i)&&(mt(i.x)||Bp(i.x))&&(mt(i.y)||Bp(i.y))?Fo({x:s+na(i.x,c),y:l+na(i.y,u),textAnchor:"end",verticalAnchor:"end"},R):Fo({x:s+c/2,y:l+u/2,textAnchor:"middle",verticalAnchor:"middle"},R)},Y3e=function(t){return"cx"in t&&mt(t.cx)};function oi(e){var t=e.offset,n=t===void 0?5:t,r=j3e(e,k3e),o=Fo({offset:n},r),i=o.viewBox,a=o.position,s=o.value,l=o.children,c=o.content,u=o.className,f=u===void 0?"":u,h=o.textBreakAll;if(!i||on(s)&&on(l)&&!x.isValidElement(c)&&!rn(c))return null;if(x.isValidElement(c))return x.cloneElement(c,o);var m;if(rn(c)){if(m=x.createElement(c,o),x.isValidElement(m))return m}else m=U3e(o);var g=Y3e(i),y=zt(o,!0);if(g&&(a==="insideStart"||a==="insideEnd"||a==="end"))return q3e(o,m,y);var v=g?W3e(o):K3e(o);return J.createElement(wh,tS({className:fe("recharts-label",f)},y,v,{breakAll:h}),m)}oi.displayName="Label";var Sse=function(t){var n=t.cx,r=t.cy,o=t.angle,i=t.startAngle,a=t.endAngle,s=t.r,l=t.radius,c=t.innerRadius,u=t.outerRadius,f=t.x,h=t.y,m=t.top,g=t.left,y=t.width,v=t.height,w=t.clockWise,C=t.labelViewBox;if(C)return C;if(mt(y)&&mt(v)){if(mt(f)&&mt(h))return{x:f,y:h,width:y,height:v};if(mt(m)&&mt(g))return{x:m,y:g,width:y,height:v}}return mt(f)&&mt(h)?{x:f,y:h,width:0,height:0}:mt(n)&&mt(r)?{cx:n,cy:r,startAngle:i||o||0,endAngle:a||o||0,innerRadius:c||0,outerRadius:u||l||s||0,clockWise:w}:t.viewBox?t.viewBox:{}},Q3e=function(t,n){return t?t===!0?J.createElement(oi,{key:"label-implicit",viewBox:n}):Vo(t)?J.createElement(oi,{key:"label-implicit",viewBox:n,value:t}):x.isValidElement(t)?t.type===oi?x.cloneElement(t,{key:"label-implicit",viewBox:n}):J.createElement(oi,{key:"label-implicit",content:t,viewBox:n}):rn(t)?J.createElement(oi,{key:"label-implicit",content:t,viewBox:n}):Sv(t)?J.createElement(oi,tS({viewBox:n},t,{key:"label-implicit"})):null:null},X3e=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var o=t.children,i=Sse(t),a=sa(o,oi).map(function(l,c){return x.cloneElement(l,{viewBox:n||i,key:"label-".concat(c)})});if(!r)return a;var s=Q3e(t.label,n||i);return[s].concat(_3e(a))};oi.parseViewBox=Sse;oi.renderCallByParent=X3e;var C_,qK;function J3e(){if(qK)return C_;qK=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return C_=e,C_}var Z3e=J3e();const eGe=Gn(Z3e);function nS(e){"@babel/helpers - typeof";return nS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nS(e)}var tGe=["valueAccessor"],nGe=["data","dataKey","clockWise","id","textBreakAll"];function rGe(e){return sGe(e)||aGe(e)||iGe(e)||oGe()}function oGe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iGe(e,t){if(e){if(typeof e=="string")return KL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KL(e,t)}}function aGe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sGe(e){if(Array.isArray(e))return KL(e)}function KL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dGe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var fGe=function(t){return Array.isArray(t.value)?eGe(t.value):t.value};function Bl(e){var t=e.valueAccessor,n=t===void 0?fGe:t,r=YK(e,tGe),o=r.data,i=r.dataKey,a=r.clockWise,s=r.id,l=r.textBreakAll,c=YK(r,nGe);return!o||!o.length?null:J.createElement(wn,{className:"recharts-label-list"},o.map(function(u,f){var h=on(i)?n(u,f):Vr(u&&u.payload,i),m=on(s)?{}:{id:"".concat(s,"-").concat(f)};return J.createElement(oi,FT({},zt(u,!0),c,m,{parentViewBox:u.parentViewBox,value:h,textBreakAll:l,viewBox:oi.parseViewBox(on(a)?u:KK(KK({},u),{},{clockWise:a})),key:"label-".concat(f),index:f}))}))}Bl.displayName="LabelList";function pGe(e,t){return e?e===!0?J.createElement(Bl,{key:"labelList-implicit",data:t}):J.isValidElement(e)||rn(e)?J.createElement(Bl,{key:"labelList-implicit",data:t,content:e}):Sv(e)?J.createElement(Bl,FT({data:t},e,{key:"labelList-implicit"})):null:null}function hGe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=sa(r,Bl).map(function(a,s){return x.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!n)return o;var i=pGe(e.label,t);return[i].concat(rGe(o))}Bl.renderCallByParent=hGe;function rS(e){"@babel/helpers - typeof";return rS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rS(e)}function YL(){return YL=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(a>c),`, `).concat(f.x,",").concat(f.y,` `);if(o>0){var m=Nr(n,r,o,a),g=Nr(n,r,o,c);h+="L ".concat(g.x,",").concat(g.y,` A `).concat(o,",").concat(o,`,0, `).concat(+(Math.abs(l)>180),",").concat(+(a<=c),`, - `).concat(m.x,",").concat(m.y," Z")}else h+="L ".concat(n,",").concat(r," Z");return h},vGe=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,i=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,c=t.startAngle,u=t.endAngle,f=ta(u-c),h=B1({cx:n,cy:r,radius:i,angle:c,sign:f,cornerRadius:a,cornerIsExternal:l}),m=h.circleTangency,g=h.lineTangency,y=h.theta,v=B1({cx:n,cy:r,radius:i,angle:u,sign:-f,cornerRadius:a,cornerIsExternal:l}),w=v.circleTangency,C=v.lineTangency,E=v.theta,I=l?Math.abs(c-u):Math.abs(c-u)-y-E;if(I<0)return s?"M ".concat(g.x,",").concat(g.y,` + `).concat(m.x,",").concat(m.y," Z")}else h+="L ".concat(n,",").concat(r," Z");return h},bGe=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,i=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,c=t.startAngle,u=t.endAngle,f=ta(u-c),h=z1({cx:n,cy:r,radius:i,angle:c,sign:f,cornerRadius:a,cornerIsExternal:l}),m=h.circleTangency,g=h.lineTangency,y=h.theta,v=z1({cx:n,cy:r,radius:i,angle:u,sign:-f,cornerRadius:a,cornerIsExternal:l}),w=v.circleTangency,C=v.lineTangency,E=v.theta,I=l?Math.abs(c-u):Math.abs(c-u)-y-E;if(I<0)return s?"M ".concat(g.x,",").concat(g.y,` a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0 a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0 - `):Sse({cx:n,cy:r,innerRadius:o,outerRadius:i,startAngle:c,endAngle:u});var O="M ".concat(g.x,",").concat(g.y,` + `):wse({cx:n,cy:r,innerRadius:o,outerRadius:i,startAngle:c,endAngle:u});var O="M ".concat(g.x,",").concat(g.y,` A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(m.x,",").concat(m.y,` A`).concat(i,",").concat(i,",0,").concat(+(I>180),",").concat(+(f<0),",").concat(w.x,",").concat(w.y,` A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(C.x,",").concat(C.y,` - `);if(o>0){var P=B1({cx:n,cy:r,radius:o,angle:c,sign:f,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),R=P.circleTangency,D=P.lineTangency,M=P.theta,A=B1({cx:n,cy:r,radius:o,angle:u,sign:-f,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),_=A.circleTangency,N=A.lineTangency,B=A.theta,H=l?Math.abs(c-u):Math.abs(c-u)-M-B;if(H<0&&a===0)return"".concat(O,"L").concat(n,",").concat(r,"Z");O+="L".concat(N.x,",").concat(N.y,` + `);if(o>0){var P=z1({cx:n,cy:r,radius:o,angle:c,sign:f,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),R=P.circleTangency,D=P.lineTangency,M=P.theta,A=z1({cx:n,cy:r,radius:o,angle:u,sign:-f,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),_=A.circleTangency,N=A.lineTangency,B=A.theta,H=l?Math.abs(c-u):Math.abs(c-u)-M-B;if(H<0&&a===0)return"".concat(O,"L").concat(n,",").concat(r,"Z");O+="L".concat(N.x,",").concat(N.y,` A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(_.x,",").concat(_.y,` A`).concat(o,",").concat(o,",0,").concat(+(H>180),",").concat(+(f>0),",").concat(R.x,",").concat(R.y,` - A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(D.x,",").concat(D.y,"Z")}else O+="L".concat(n,",").concat(r,"Z");return O},bGe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},wse=function(t){var n=QK(QK({},bGe),t),r=n.cx,o=n.cy,i=n.innerRadius,a=n.outerRadius,s=n.cornerRadius,l=n.forceCornerRadius,c=n.cornerIsExternal,u=n.startAngle,f=n.endAngle,h=n.className;if(a0&&Math.abs(u-f)<360?v=vGe({cx:r,cy:o,innerRadius:i,outerRadius:a,cornerRadius:Math.min(y,g/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:u,endAngle:f}):v=Sse({cx:r,cy:o,innerRadius:i,outerRadius:a,startAngle:u,endAngle:f}),Z.createElement("path",WL({},zt(n,!0),{className:m,d:v,role:"img"}))};function nS(e){"@babel/helpers - typeof";return nS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nS(e)}function KL(){return KL=Object.assign?Object.assign.bind():function(e){for(var t=1;t0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function kGe(e,t){return Uh(e.getTime(),t.getTime())}function _Ge(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function $Ge(e,t){return e===t}function oY(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var o=new Array(r),i=e.entries(),a,s,l=0;(a=i.next())&&!a.done;){for(var c=t.entries(),u=!1,f=0;(s=c.next())&&!s.done;){if(o[f]){f++;continue}var h=a.value,m=s.value;if(n.equals(h[0],m[0],l,f,e,t,n)&&n.equals(h[1],m[1],h[0],m[0],e,t,n)){u=o[f]=!0;break}f++}if(!u)return!1;l++}return!0}var NGe=Uh;function LGe(e,t,n){var r=rY(e),o=r.length;if(rY(t).length!==o)return!1;for(;o-- >0;)if(!Cse(e,t,n,r[o]))return!1;return!0}function l0(e,t,n){var r=tY(e),o=r.length;if(tY(t).length!==o)return!1;for(var i,a,s;o-- >0;)if(i=r[o],!Cse(e,t,n,i)||(a=nY(e,i),s=nY(t,i),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function FGe(e,t){return Uh(e.valueOf(),t.valueOf())}function jGe(e,t){return e.source===t.source&&e.flags===t.flags}function iY(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var o=new Array(r),i=e.values(),a,s;(a=i.next())&&!a.done;){for(var l=t.values(),c=!1,u=0;(s=l.next())&&!s.done;){if(!o[u]&&n.equals(a.value,s.value,a.value,s.value,e,t,n)){c=o[u]=!0;break}u++}if(!c)return!1}return!0}function BGe(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function zGe(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Cse(e,t,n,r){return(r===RGe||r===MGe||r===AGe)&&(e.$$typeof||t.$$typeof)?!0:PGe(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var VGe="[object Arguments]",HGe="[object Boolean]",UGe="[object Date]",GGe="[object Error]",qGe="[object Map]",WGe="[object Number]",KGe="[object Object]",YGe="[object RegExp]",QGe="[object Set]",XGe="[object String]",ZGe="[object URL]",JGe=Array.isArray,aY=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,sY=Object.assign,e6e=Object.prototype.toString.call.bind(Object.prototype.toString);function t6e(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,o=e.areFunctionsEqual,i=e.areMapsEqual,a=e.areNumbersEqual,s=e.areObjectsEqual,l=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,u=e.areSetsEqual,f=e.areTypedArraysEqual,h=e.areUrlsEqual;return function(g,y,v){if(g===y)return!0;if(g==null||y==null)return!1;var w=typeof g;if(w!==typeof y)return!1;if(w!=="object")return w==="number"?a(g,y,v):w==="function"?o(g,y,v):!1;var C=g.constructor;if(C!==y.constructor)return!1;if(C===Object)return s(g,y,v);if(JGe(g))return t(g,y,v);if(aY!=null&&aY(g))return f(g,y,v);if(C===Date)return n(g,y,v);if(C===RegExp)return c(g,y,v);if(C===Map)return i(g,y,v);if(C===Set)return u(g,y,v);var E=e6e(g);return E===UGe?n(g,y,v):E===YGe?c(g,y,v):E===qGe?i(g,y,v):E===QGe?u(g,y,v):E===KGe?typeof g.then!="function"&&typeof y.then!="function"&&s(g,y,v):E===ZGe?h(g,y,v):E===GGe?r(g,y,v):E===VGe?s(g,y,v):E===HGe||E===WGe||E===XGe?l(g,y,v):!1}}function n6e(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?l0:DGe,areDatesEqual:kGe,areErrorsEqual:_Ge,areFunctionsEqual:$Ge,areMapsEqual:r?eY(oY,l0):oY,areNumbersEqual:NGe,areObjectsEqual:r?l0:LGe,arePrimitiveWrappersEqual:FGe,areRegExpsEqual:jGe,areSetsEqual:r?eY(iY,l0):iY,areTypedArraysEqual:r?l0:BGe,areUrlsEqual:zGe};if(n&&(o=sY({},o,n(o))),t){var i=V1(o.areArraysEqual),a=V1(o.areMapsEqual),s=V1(o.areObjectsEqual),l=V1(o.areSetsEqual);o=sY({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:l})}return o}function r6e(e){return function(t,n,r,o,i,a,s){return e(t,n,s)}}function o6e(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,i=e.strict;if(r)return function(l,c){var u=r(),f=u.cache,h=f===void 0?t?new WeakMap:void 0:f,m=u.meta;return n(l,c,{cache:h,equals:o,meta:m,strict:i})};if(t)return function(l,c){return n(l,c,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(l,c){return n(l,c,a)}}var i6e=Hf();Hf({strict:!0});Hf({circular:!0});Hf({circular:!0,strict:!0});Hf({createInternalComparator:function(){return Uh}});Hf({strict:!0,createInternalComparator:function(){return Uh}});Hf({circular:!0,createInternalComparator:function(){return Uh}});Hf({circular:!0,createInternalComparator:function(){return Uh},strict:!0});function Hf(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,o=e.createState,i=e.strict,a=i===void 0?!1:i,s=n6e(e),l=t6e(s),c=r?r(l):r6e(l);return o6e({circular:n,comparator:l,createState:o,equals:c,strict:a})}function a6e(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function lY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function o(i){n<0&&(n=i),i-n>t?(e(i),n=-1):a6e(o)};requestAnimationFrame(r)}function YL(e){"@babel/helpers - typeof";return YL=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},YL(e)}function s6e(e){return d6e(e)||u6e(e)||c6e(e)||l6e()}function l6e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c6e(e,t){if(e){if(typeof e=="string")return cY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cY(e,t)}}function cY(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?1:w<0?0:w},y=function(w){for(var C=w>1?1:w,E=C,I=0;I<8;++I){var O=f(E)-C,P=m(E);if(Math.abs(O-C)0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,o=t.damping,i=o===void 0?8:o,a=t.dt,s=a===void 0?17:a,l=function(u,f,h){var m=-(u-f)*r,g=h*i,y=h+(m-g)*s/1e3,v=h*s/1e3+u;return Math.abs(v-f)e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function V6e(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function w_(e){return q6e(e)||G6e(e)||U6e(e)||H6e()}function H6e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U6e(e,t){if(e){if(typeof e=="string")return eF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eF(e,t)}}function G6e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function q6e(e){if(Array.isArray(e))return eF(e)}function eF(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function BT(e){return BT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},BT(e)}var nl=function(e){X6e(n,e);var t=Z6e(n);function n(r,o){var i;W6e(this,n),i=t.call(this,r,o);var a=i.props,s=a.isActive,l=a.attributeName,c=a.from,u=a.to,f=a.steps,h=a.children,m=a.duration;if(i.handleStyleChange=i.handleStyleChange.bind(rF(i)),i.changeStyle=i.changeStyle.bind(rF(i)),!s||m<=0)return i.state={style:{}},typeof h=="function"&&(i.state={style:u}),nF(i);if(f&&f.length)i.state={style:f[0].style};else if(c){if(typeof h=="function")return i.state={style:c},nF(i);i.state={style:l?F0({},l,c):c}}else i.state={style:{}};return i}return Y6e(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.isActive,a=o.canBegin;this.mounted=!0,!(!i||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isActive,s=i.canBegin,l=i.attributeName,c=i.shouldReAnimate,u=i.to,f=i.from,h=this.state.style;if(s){if(!a){var m={style:l?F0({},l,u):u};this.state&&h&&(l&&h[l]!==u||!l&&h!==u)&&this.setState(m);return}if(!(i6e(o.to,u)&&o.canBegin&&o.isActive)){var g=!o.canBegin||!o.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=g||c?f:o.to;if(this.state&&h){var v={style:l?F0({},l,y):y};(l&&h[l]!==y||!l&&h!==y)&&this.setState(v)}this.runAnimation(gl(gl({},this.props),{},{from:y,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var o=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),o&&o()}},{key:"handleStyleChange",value:function(o){this.changeStyle(o)}},{key:"changeStyle",value:function(o){this.mounted&&this.setState({style:o})}},{key:"runJSAnimation",value:function(o){var i=this,a=o.from,s=o.to,l=o.duration,c=o.easing,u=o.begin,f=o.onAnimationEnd,h=o.onAnimationStart,m=j6e(a,s,P6e(c),l,this.changeStyle),g=function(){i.stopJSAnimation=m()};this.manager.start([h,u,g,l,f])}},{key:"runStepAnimation",value:function(o){var i=this,a=o.steps,s=o.begin,l=o.onAnimationStart,c=a[0],u=c.style,f=c.duration,h=f===void 0?0:f,m=function(y,v,w){if(w===0)return y;var C=v.duration,E=v.easing,I=E===void 0?"ease":E,O=v.style,P=v.properties,R=v.onAnimationEnd,D=w>0?a[w-1]:v,M=P||Object.keys(O);if(typeof I=="function"||I==="spring")return[].concat(w_(y),[i.runJSAnimation.bind(i,{from:D.style,to:O,duration:C,easing:I}),C]);var A=fY(M,C,I),_=gl(gl(gl({},D.style),O),{},{transition:A});return[].concat(w_(y),[_,C,R]).filter(g6e)};return this.manager.start([l].concat(w_(a.reduce(m,[u,Math.max(h,s)])),[o.onAnimationEnd]))}},{key:"runAnimation",value:function(o){this.manager||(this.manager=f6e());var i=o.begin,a=o.duration,s=o.attributeName,l=o.to,c=o.easing,u=o.onAnimationStart,f=o.onAnimationEnd,h=o.steps,m=o.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof c=="function"||typeof m=="function"||c==="spring"){this.runJSAnimation(o);return}if(h.length>1){this.runStepAnimation(o);return}var y=s?F0({},s,l):l,v=fY(Object.keys(y),a,c);g.start([u,i,gl(gl({},y),{},{transition:v}),a,f])}},{key:"render",value:function(){var o=this.props,i=o.children;o.begin;var a=o.duration;o.attributeName,o.easing;var s=o.isActive;o.steps,o.from,o.to,o.canBegin,o.onAnimationEnd,o.shouldReAnimate,o.onAnimationReStart;var l=z6e(o,B6e),c=x.Children.count(i),u=this.state.style;if(typeof i=="function")return i(u);if(!s||c===0||a<=0)return i;var f=function(m){var g=m.props,y=g.style,v=y===void 0?{}:y,w=g.className,C=x.cloneElement(m,gl(gl({},l),{},{style:gl(gl({},v),u),className:w}));return C};return c===1?f(x.Children.only(i)):Z.createElement("div",null,x.Children.map(i,function(h){return f(h)}))}}]),n}(x.PureComponent);nl.displayName="Animate";nl.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};nl.propTypes={from:U.oneOfType([U.object,U.string]),to:U.oneOfType([U.object,U.string]),attributeName:U.string,duration:U.number,begin:U.number,easing:U.oneOfType([U.string,U.func]),steps:U.arrayOf(U.shape({duration:U.number.isRequired,style:U.object.isRequired,easing:U.oneOfType([U.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),U.func]),properties:U.arrayOf("string"),onAnimationEnd:U.func})),children:U.oneOfType([U.node,U.func]),isActive:U.bool,canBegin:U.bool,onAnimationEnd:U.func,shouldReAnimate:U.bool,onAnimationStart:U.func,onAnimationReStart:U.func};function iS(e){"@babel/helpers - typeof";return iS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iS(e)}function zT(){return zT=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?1:-1,l=r>=0?1:-1,c=o>=0&&r>=0||o<0&&r<0?1:0,u;if(a>0&&i instanceof Array){for(var f=[0,0,0,0],h=0,m=4;ha?a:i[h];u="M".concat(t,",").concat(n+s*f[0]),f[0]>0&&(u+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(c,",").concat(t+l*f[0],",").concat(n)),u+="L ".concat(t+r-l*f[1],",").concat(n),f[1]>0&&(u+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(c,`, + A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(D.x,",").concat(D.y,"Z")}else O+="L".concat(n,",").concat(r,"Z");return O},xGe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Cse=function(t){var n=XK(XK({},xGe),t),r=n.cx,o=n.cy,i=n.innerRadius,a=n.outerRadius,s=n.cornerRadius,l=n.forceCornerRadius,c=n.cornerIsExternal,u=n.startAngle,f=n.endAngle,h=n.className;if(a0&&Math.abs(u-f)<360?v=bGe({cx:r,cy:o,innerRadius:i,outerRadius:a,cornerRadius:Math.min(y,g/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:u,endAngle:f}):v=wse({cx:r,cy:o,innerRadius:i,outerRadius:a,startAngle:u,endAngle:f}),J.createElement("path",YL({},zt(n,!0),{className:m,d:v,role:"img"}))};function oS(e){"@babel/helpers - typeof";return oS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oS(e)}function QL(){return QL=Object.assign?Object.assign.bind():function(e){for(var t=1;t0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function _Ge(e,t){return Gh(e.getTime(),t.getTime())}function $Ge(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function NGe(e,t){return e===t}function iY(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var o=new Array(r),i=e.entries(),a,s,l=0;(a=i.next())&&!a.done;){for(var c=t.entries(),u=!1,f=0;(s=c.next())&&!s.done;){if(o[f]){f++;continue}var h=a.value,m=s.value;if(n.equals(h[0],m[0],l,f,e,t,n)&&n.equals(h[1],m[1],h[0],m[0],e,t,n)){u=o[f]=!0;break}f++}if(!u)return!1;l++}return!0}var LGe=Gh;function FGe(e,t,n){var r=oY(e),o=r.length;if(oY(t).length!==o)return!1;for(;o-- >0;)if(!Ese(e,t,n,r[o]))return!1;return!0}function u0(e,t,n){var r=nY(e),o=r.length;if(nY(t).length!==o)return!1;for(var i,a,s;o-- >0;)if(i=r[o],!Ese(e,t,n,i)||(a=rY(e,i),s=rY(t,i),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function jGe(e,t){return Gh(e.valueOf(),t.valueOf())}function BGe(e,t){return e.source===t.source&&e.flags===t.flags}function aY(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var o=new Array(r),i=e.values(),a,s;(a=i.next())&&!a.done;){for(var l=t.values(),c=!1,u=0;(s=l.next())&&!s.done;){if(!o[u]&&n.equals(a.value,s.value,a.value,s.value,e,t,n)){c=o[u]=!0;break}u++}if(!c)return!1}return!0}function zGe(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function VGe(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Ese(e,t,n,r){return(r===DGe||r===RGe||r===MGe)&&(e.$$typeof||t.$$typeof)?!0:AGe(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var HGe="[object Arguments]",UGe="[object Boolean]",GGe="[object Date]",qGe="[object Error]",WGe="[object Map]",KGe="[object Number]",YGe="[object Object]",QGe="[object RegExp]",XGe="[object Set]",JGe="[object String]",ZGe="[object URL]",e6e=Array.isArray,sY=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,lY=Object.assign,t6e=Object.prototype.toString.call.bind(Object.prototype.toString);function n6e(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,o=e.areFunctionsEqual,i=e.areMapsEqual,a=e.areNumbersEqual,s=e.areObjectsEqual,l=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,u=e.areSetsEqual,f=e.areTypedArraysEqual,h=e.areUrlsEqual;return function(g,y,v){if(g===y)return!0;if(g==null||y==null)return!1;var w=typeof g;if(w!==typeof y)return!1;if(w!=="object")return w==="number"?a(g,y,v):w==="function"?o(g,y,v):!1;var C=g.constructor;if(C!==y.constructor)return!1;if(C===Object)return s(g,y,v);if(e6e(g))return t(g,y,v);if(sY!=null&&sY(g))return f(g,y,v);if(C===Date)return n(g,y,v);if(C===RegExp)return c(g,y,v);if(C===Map)return i(g,y,v);if(C===Set)return u(g,y,v);var E=t6e(g);return E===GGe?n(g,y,v):E===QGe?c(g,y,v):E===WGe?i(g,y,v):E===XGe?u(g,y,v):E===YGe?typeof g.then!="function"&&typeof y.then!="function"&&s(g,y,v):E===ZGe?h(g,y,v):E===qGe?r(g,y,v):E===HGe?s(g,y,v):E===UGe||E===KGe||E===JGe?l(g,y,v):!1}}function r6e(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?u0:kGe,areDatesEqual:_Ge,areErrorsEqual:$Ge,areFunctionsEqual:NGe,areMapsEqual:r?tY(iY,u0):iY,areNumbersEqual:LGe,areObjectsEqual:r?u0:FGe,arePrimitiveWrappersEqual:jGe,areRegExpsEqual:BGe,areSetsEqual:r?tY(aY,u0):aY,areTypedArraysEqual:r?u0:zGe,areUrlsEqual:VGe};if(n&&(o=lY({},o,n(o))),t){var i=H1(o.areArraysEqual),a=H1(o.areMapsEqual),s=H1(o.areObjectsEqual),l=H1(o.areSetsEqual);o=lY({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:l})}return o}function o6e(e){return function(t,n,r,o,i,a,s){return e(t,n,s)}}function i6e(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,i=e.strict;if(r)return function(l,c){var u=r(),f=u.cache,h=f===void 0?t?new WeakMap:void 0:f,m=u.meta;return n(l,c,{cache:h,equals:o,meta:m,strict:i})};if(t)return function(l,c){return n(l,c,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(l,c){return n(l,c,a)}}var a6e=Hf();Hf({strict:!0});Hf({circular:!0});Hf({circular:!0,strict:!0});Hf({createInternalComparator:function(){return Gh}});Hf({strict:!0,createInternalComparator:function(){return Gh}});Hf({circular:!0,createInternalComparator:function(){return Gh}});Hf({circular:!0,createInternalComparator:function(){return Gh},strict:!0});function Hf(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,o=e.createState,i=e.strict,a=i===void 0?!1:i,s=r6e(e),l=n6e(s),c=r?r(l):o6e(l);return i6e({circular:n,comparator:l,createState:o,equals:c,strict:a})}function s6e(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function cY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function o(i){n<0&&(n=i),i-n>t?(e(i),n=-1):s6e(o)};requestAnimationFrame(r)}function XL(e){"@babel/helpers - typeof";return XL=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},XL(e)}function l6e(e){return f6e(e)||d6e(e)||u6e(e)||c6e()}function c6e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u6e(e,t){if(e){if(typeof e=="string")return uY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uY(e,t)}}function uY(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?1:w<0?0:w},y=function(w){for(var C=w>1?1:w,E=C,I=0;I<8;++I){var O=f(E)-C,P=m(E);if(Math.abs(O-C)0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,o=t.damping,i=o===void 0?8:o,a=t.dt,s=a===void 0?17:a,l=function(u,f,h){var m=-(u-f)*r,g=h*i,y=h+(m-g)*s/1e3,v=h*s/1e3+u;return Math.abs(v-f)e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function H6e(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function E_(e){return W6e(e)||q6e(e)||G6e(e)||U6e()}function U6e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G6e(e,t){if(e){if(typeof e=="string")return nF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nF(e,t)}}function q6e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function W6e(e){if(Array.isArray(e))return nF(e)}function nF(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zT(e){return zT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zT(e)}var ol=function(e){J6e(n,e);var t=Z6e(n);function n(r,o){var i;K6e(this,n),i=t.call(this,r,o);var a=i.props,s=a.isActive,l=a.attributeName,c=a.from,u=a.to,f=a.steps,h=a.children,m=a.duration;if(i.handleStyleChange=i.handleStyleChange.bind(iF(i)),i.changeStyle=i.changeStyle.bind(iF(i)),!s||m<=0)return i.state={style:{}},typeof h=="function"&&(i.state={style:u}),oF(i);if(f&&f.length)i.state={style:f[0].style};else if(c){if(typeof h=="function")return i.state={style:c},oF(i);i.state={style:l?B0({},l,c):c}}else i.state={style:{}};return i}return Q6e(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.isActive,a=o.canBegin;this.mounted=!0,!(!i||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isActive,s=i.canBegin,l=i.attributeName,c=i.shouldReAnimate,u=i.to,f=i.from,h=this.state.style;if(s){if(!a){var m={style:l?B0({},l,u):u};this.state&&h&&(l&&h[l]!==u||!l&&h!==u)&&this.setState(m);return}if(!(a6e(o.to,u)&&o.canBegin&&o.isActive)){var g=!o.canBegin||!o.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=g||c?f:o.to;if(this.state&&h){var v={style:l?B0({},l,y):y};(l&&h[l]!==y||!l&&h!==y)&&this.setState(v)}this.runAnimation(vl(vl({},this.props),{},{from:y,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var o=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),o&&o()}},{key:"handleStyleChange",value:function(o){this.changeStyle(o)}},{key:"changeStyle",value:function(o){this.mounted&&this.setState({style:o})}},{key:"runJSAnimation",value:function(o){var i=this,a=o.from,s=o.to,l=o.duration,c=o.easing,u=o.begin,f=o.onAnimationEnd,h=o.onAnimationStart,m=B6e(a,s,A6e(c),l,this.changeStyle),g=function(){i.stopJSAnimation=m()};this.manager.start([h,u,g,l,f])}},{key:"runStepAnimation",value:function(o){var i=this,a=o.steps,s=o.begin,l=o.onAnimationStart,c=a[0],u=c.style,f=c.duration,h=f===void 0?0:f,m=function(y,v,w){if(w===0)return y;var C=v.duration,E=v.easing,I=E===void 0?"ease":E,O=v.style,P=v.properties,R=v.onAnimationEnd,D=w>0?a[w-1]:v,M=P||Object.keys(O);if(typeof I=="function"||I==="spring")return[].concat(E_(y),[i.runJSAnimation.bind(i,{from:D.style,to:O,duration:C,easing:I}),C]);var A=pY(M,C,I),_=vl(vl(vl({},D.style),O),{},{transition:A});return[].concat(E_(y),[_,C,R]).filter(y6e)};return this.manager.start([l].concat(E_(a.reduce(m,[u,Math.max(h,s)])),[o.onAnimationEnd]))}},{key:"runAnimation",value:function(o){this.manager||(this.manager=p6e());var i=o.begin,a=o.duration,s=o.attributeName,l=o.to,c=o.easing,u=o.onAnimationStart,f=o.onAnimationEnd,h=o.steps,m=o.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof c=="function"||typeof m=="function"||c==="spring"){this.runJSAnimation(o);return}if(h.length>1){this.runStepAnimation(o);return}var y=s?B0({},s,l):l,v=pY(Object.keys(y),a,c);g.start([u,i,vl(vl({},y),{},{transition:v}),a,f])}},{key:"render",value:function(){var o=this.props,i=o.children;o.begin;var a=o.duration;o.attributeName,o.easing;var s=o.isActive;o.steps,o.from,o.to,o.canBegin,o.onAnimationEnd,o.shouldReAnimate,o.onAnimationReStart;var l=V6e(o,z6e),c=x.Children.count(i),u=this.state.style;if(typeof i=="function")return i(u);if(!s||c===0||a<=0)return i;var f=function(m){var g=m.props,y=g.style,v=y===void 0?{}:y,w=g.className,C=x.cloneElement(m,vl(vl({},l),{},{style:vl(vl({},v),u),className:w}));return C};return c===1?f(x.Children.only(i)):J.createElement("div",null,x.Children.map(i,function(h){return f(h)}))}}]),n}(x.PureComponent);ol.displayName="Animate";ol.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ol.propTypes={from:U.oneOfType([U.object,U.string]),to:U.oneOfType([U.object,U.string]),attributeName:U.string,duration:U.number,begin:U.number,easing:U.oneOfType([U.string,U.func]),steps:U.arrayOf(U.shape({duration:U.number.isRequired,style:U.object.isRequired,easing:U.oneOfType([U.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),U.func]),properties:U.arrayOf("string"),onAnimationEnd:U.func})),children:U.oneOfType([U.node,U.func]),isActive:U.bool,canBegin:U.bool,onAnimationEnd:U.func,shouldReAnimate:U.bool,onAnimationStart:U.func,onAnimationReStart:U.func};function sS(e){"@babel/helpers - typeof";return sS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sS(e)}function VT(){return VT=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?1:-1,l=r>=0?1:-1,c=o>=0&&r>=0||o<0&&r<0?1:0,u;if(a>0&&i instanceof Array){for(var f=[0,0,0,0],h=0,m=4;ha?a:i[h];u="M".concat(t,",").concat(n+s*f[0]),f[0]>0&&(u+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(c,",").concat(t+l*f[0],",").concat(n)),u+="L ".concat(t+r-l*f[1],",").concat(n),f[1]>0&&(u+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(c,`, `).concat(t+r,",").concat(n+s*f[1])),u+="L ".concat(t+r,",").concat(n+o-s*f[2]),f[2]>0&&(u+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(c,`, `).concat(t+r-l*f[2],",").concat(n+o)),u+="L ".concat(t+l*f[3],",").concat(n+o),f[3]>0&&(u+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(c,`, `).concat(t,",").concat(n+o-s*f[3])),u+="Z"}else if(a>0&&i===+i&&i>0){var g=Math.min(a,i);u="M ".concat(t,",").concat(n+s*g,` @@ -328,28 +328,28 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho L `).concat(t+r,",").concat(n+o-s*g,` A `).concat(g,",").concat(g,",0,0,").concat(c,",").concat(t+r-l*g,",").concat(n+o,` L `).concat(t+l*g,",").concat(n+o,` - A `).concat(g,",").concat(g,",0,0,").concat(c,",").concat(t,",").concat(n+o-s*g," Z")}else u="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(o," h ").concat(-r," Z");return u},lqe=function(t,n){if(!t||!n)return!1;var r=t.x,o=t.y,i=n.x,a=n.y,s=n.width,l=n.height;if(Math.abs(s)>0&&Math.abs(l)>0){var c=Math.min(i,i+s),u=Math.max(i,i+s),f=Math.min(a,a+l),h=Math.max(a,a+l);return r>=c&&r<=u&&o>=f&&o<=h}return!1},cqe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},_z=function(t){var n=xY(xY({},cqe),t),r=x.useRef(),o=x.useState(-1),i=eqe(o,2),a=i[0],s=i[1];x.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var I=r.current.getTotalLength();I&&s(I)}catch{}},[]);var l=n.x,c=n.y,u=n.width,f=n.height,h=n.radius,m=n.className,g=n.animationEasing,y=n.animationDuration,v=n.animationBegin,w=n.isAnimationActive,C=n.isUpdateAnimationActive;if(l!==+l||c!==+c||u!==+u||f!==+f||u===0||f===0)return null;var E=fe("recharts-rectangle",m);return C?Z.createElement(nl,{canBegin:a>0,from:{width:u,height:f,x:l,y:c},to:{width:u,height:f,x:l,y:c},duration:y,animationEasing:g,isActive:C},function(I){var O=I.width,P=I.height,R=I.x,D=I.y;return Z.createElement(nl,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,isActive:w,easing:g},Z.createElement("path",zT({},zt(n,!0),{className:E,d:SY(R,D,O,P,h),ref:r})))}):Z.createElement("path",zT({},zt(n,!0),{className:E,d:SY(l,c,u,f,h)}))},uqe=["points","className","baseLinePoints","connectNulls"];function gg(){return gg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fqe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function wY(e){return gqe(e)||mqe(e)||hqe(e)||pqe()}function pqe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hqe(e,t){if(e){if(typeof e=="string")return oF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oF(e,t)}}function mqe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gqe(e){if(Array.isArray(e))return oF(e)}function oF(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){CY(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),CY(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},rx=function(t,n){var r=yqe(t);n&&(r=[r.reduce(function(i,a){return[].concat(wY(i),wY(a))},[])]);var o=r.map(function(i){return i.reduce(function(a,s,l){return"".concat(a).concat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return r.length===1?"".concat(o,"Z"):o},vqe=function(t,n,r){var o=rx(t,r);return"".concat(o.slice(-1)==="Z"?o.slice(0,-1):o,"L").concat(rx(n.reverse(),r).slice(1))},bqe=function(t){var n=t.points,r=t.className,o=t.baseLinePoints,i=t.connectNulls,a=dqe(t,uqe);if(!n||!n.length)return null;var s=fe("recharts-polygon",r);if(o&&o.length){var l=a.stroke&&a.stroke!=="none",c=vqe(n,o,i);return Z.createElement("g",{className:s},Z.createElement("path",gg({},zt(a,!0),{fill:c.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:c})),l?Z.createElement("path",gg({},zt(a,!0),{fill:"none",d:rx(n,i)})):null,l?Z.createElement("path",gg({},zt(a,!0),{fill:"none",d:rx(o,i)})):null)}var u=rx(n,i);return Z.createElement("path",gg({},zt(a,!0),{fill:u.slice(-1)==="Z"?a.fill:"none",className:s,d:u}))};function iF(){return iF=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Oqe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Iqe=function(t,n,r,o,i,a){return"M".concat(t,",").concat(i,"v").concat(o,"M").concat(a,",").concat(n,"h").concat(r)},Pqe=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,i=o===void 0?0:o,a=t.top,s=a===void 0?0:a,l=t.left,c=l===void 0?0:l,u=t.width,f=u===void 0?0:u,h=t.height,m=h===void 0?0:h,g=t.className,y=Tqe(t,xqe),v=Sqe({x:r,y:i,top:s,left:c,width:f,height:m},y);return!mt(r)||!mt(i)||!mt(f)||!mt(m)||!mt(s)||!mt(c)?null:Z.createElement("path",aF({},zt(v,!0),{className:fe("recharts-cross",g),d:Iqe(r,i,f,m,s,c)}))},C_,TY;function Aqe(){if(TY)return C_;TY=1;var e=ZI(),t=Uae(),n=Hc();function r(o,i){return o&&o.length?e(o,n(i,2),t):void 0}return C_=r,C_}var Mqe=Aqe();const Rqe=Gn(Mqe);var E_,OY;function Dqe(){if(OY)return E_;OY=1;var e=ZI(),t=Hc(),n=Gae();function r(o,i){return o&&o.length?e(o,t(i,2),n):void 0}return E_=r,E_}var kqe=Dqe();const _qe=Gn(kqe);var $qe=["cx","cy","angle","ticks","axisLine"],Nqe=["ticks","tick","angle","tickFormatter","stroke"];function Sy(e){"@babel/helpers - typeof";return Sy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sy(e)}function ox(){return ox=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Lqe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Fqe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AY(e,t){for(var n=0;nJqe?a=o==="outer"?"start":"end":i<-1e-5?a=o==="outer"?"end":"start":a="middle",a}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.cx,i=r.cy,a=r.radius,s=r.axisLine,l=r.axisLineType,c=bp(bp({},zt(this.props,!1)),{},{fill:"none"},zt(s,!1));if(l==="circle")return Z.createElement(Ew,_p({className:"recharts-polar-angle-axis-line"},c,{cx:o,cy:i,r:a}));var u=this.props.ticks,f=u.map(function(h){return Nr(o,i,a,h.coordinate)});return Z.createElement(bqe,_p({className:"recharts-polar-angle-axis-line"},c,{points:f}))}},{key:"renderTicks",value:function(){var r=this,o=this.props,i=o.ticks,a=o.tick,s=o.tickLine,l=o.tickFormatter,c=o.stroke,u=zt(this.props,!1),f=zt(a,!1),h=bp(bp({},u),{},{fill:"none"},zt(s,!1)),m=i.map(function(g,y){var v=r.getTickLineCoord(g),w=r.getTickTextAnchor(g),C=bp(bp(bp({textAnchor:w},u),{},{stroke:"none",fill:c},f),{},{index:y,payload:g,x:v.x2,y:v.y2});return Z.createElement(wn,_p({className:fe("recharts-polar-angle-axis-tick",bse(a)),key:"tick-".concat(g.coordinate)},If(r.props,g,y)),s&&Z.createElement("line",_p({className:"recharts-polar-angle-axis-tick-line"},h,v)),a&&t.renderTickItem(a,C,l?l(g.value,y):g.value))});return Z.createElement(wn,{className:"recharts-polar-angle-axis-ticks"},m)}},{key:"render",value:function(){var r=this.props,o=r.ticks,i=r.radius,a=r.axisLine;return i<=0||!o||!o.length?null:Z.createElement(wn,{className:fe("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,o,i){var a;return Z.isValidElement(r)?a=Z.cloneElement(r,o):rn(r)?a=r(o):a=Z.createElement(wh,_p({},o,{className:"recharts-polar-angle-axis-tick-value"}),i),a}}])}(x.PureComponent);oP(iP,"displayName","PolarAngleAxis");oP(iP,"axisType","angleAxis");oP(iP,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var T_,DY;function eWe(){if(DY)return T_;DY=1;var e=Vie(),t=e(Object.getPrototypeOf,Object);return T_=t,T_}var O_,kY;function tWe(){if(kY)return O_;kY=1;var e=Ju(),t=eWe(),n=ed(),r="[object Object]",o=Function.prototype,i=Object.prototype,a=o.toString,s=i.hasOwnProperty,l=a.call(Object);function c(u){if(!n(u)||e(u)!=r)return!1;var f=t(u);if(f===null)return!0;var h=s.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&a.call(h)==l}return O_=c,O_}var nWe=tWe();const rWe=Gn(nWe);var I_,_Y;function oWe(){if(_Y)return I_;_Y=1;var e=Ju(),t=ed(),n="[object Boolean]";function r(o){return o===!0||o===!1||t(o)&&e(o)==n}return I_=r,I_}var iWe=oWe();const aWe=Gn(iWe);function sS(e){"@babel/helpers - typeof";return sS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sS(e)}function UT(){return UT=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:c},to:{upperWidth:u,lowerWidth:f,height:h,x:l,y:c},duration:y,animationEasing:g,isActive:w},function(E){var I=E.upperWidth,O=E.lowerWidth,P=E.height,R=E.x,D=E.y;return Z.createElement(nl,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,easing:g},Z.createElement("path",UT({},zt(n,!0),{className:C,d:FY(R,D,I,O,P),ref:r})))}):Z.createElement("g",null,Z.createElement("path",UT({},zt(n,!0),{className:C,d:FY(l,c,u,f,h)})))},yWe=["option","shapeType","propTransformer","activeClassName","isActive"];function lS(e){"@babel/helpers - typeof";return lS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lS(e)}function vWe(e,t){if(e==null)return{};var n=bWe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bWe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function jY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function GT(e){for(var t=1;t0?Za(E,"paddingAngle",0):0;if(O){var R=no(O.endAngle-O.startAngle,E.endAngle-E.startAngle),D=_r(_r({},E),{},{startAngle:C+P,endAngle:C+R(y)+P});v.push(D),C=D.endAngle}else{var M=E.endAngle,A=E.startAngle,_=no(0,M-A),N=_(y),B=_r(_r({},E),{},{startAngle:C+P,endAngle:C+N+P});v.push(B),C=B.endAngle}}),Z.createElement(wn,null,r.renderSectorsStatically(v))})}},{key:"attachKeyboardHandlers",value:function(r){var o=this;r.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var a=++o.state.sectorToFocus%o.sectorRefs.length;o.sectorRefs[a].focus(),o.setState({sectorToFocus:a});break}case"ArrowRight":{var s=--o.state.sectorToFocus<0?o.sectorRefs.length-1:o.state.sectorToFocus%o.sectorRefs.length;o.sectorRefs[s].focus(),o.setState({sectorToFocus:s});break}case"Escape":{o.sectorRefs[o.state.sectorToFocus].blur(),o.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,o=r.sectors,i=r.isAnimationActive,a=this.state.prevSectors;return i&&o&&o.length&&(!a||!Pf(a,o))?this.renderSectorsWithAnimation():this.renderSectorsStatically(o)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,o=this.props,i=o.hide,a=o.sectors,s=o.className,l=o.label,c=o.cx,u=o.cy,f=o.innerRadius,h=o.outerRadius,m=o.isAnimationActive,g=this.state.isAnimationFinished;if(i||!a||!a.length||!mt(c)||!mt(u)||!mt(f)||!mt(h))return null;var y=fe("recharts-pie",s);return Z.createElement(wn,{tabIndex:this.props.rootTabIndex,className:y,ref:function(w){r.pieRef=w}},this.renderSectors(),l&&this.renderLabels(a),oi.renderCallByParent(this.props,null,!1),(!m||g)&&Fl.renderCallByParent(this.props,a,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return o.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:o.curSectors,isAnimationFinished:!0}:r.sectors!==o.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,o){return r>o?"start":r=360?C:C-1)*l,I=v-C*m-E,O=o.reduce(function(D,M){var A=Vr(M,w,0);return D+(mt(A)?A:0)},0),P;if(O>0){var R;P=o.map(function(D,M){var A=Vr(D,w,0),_=Vr(D,u,M),N=(mt(A)?A:0)/O,B;M?B=R.endAngle+ta(y)*l*(A!==0?1:0):B=a;var H=B+ta(y)*((A!==0?m:0)+N*I),j=(B+H)/2,L=(g.innerRadius+g.outerRadius)/2,V=[{name:_,value:A,payload:D,dataKey:w,type:h}],W=Nr(g.cx,g.cy,L,j);return R=_r(_r(_r({percent:N,cornerRadius:i,name:_,tooltipPayload:V,midAngle:j,middleRadius:L,tooltipPosition:W},D),g),{},{value:Vr(D,w),startAngle:B,endAngle:H,payload:D,paddingAngle:ta(y)*l}),R})}return _r(_r({},g),{},{sectors:P,data:o})});var P_,HY;function BWe(){if(HY)return P_;HY=1;var e=Math.ceil,t=Math.max;function n(r,o,i,a){for(var s=-1,l=t(e((o-r)/(i||1)),0),c=Array(l);l--;)c[a?l:++s]=r,r+=i;return c}return P_=n,P_}var A_,UY;function Nse(){if(UY)return A_;UY=1;var e=oae(),t=1/0,n=17976931348623157e292;function r(o){if(!o)return o===0?o:0;if(o=e(o),o===t||o===-1/0){var i=o<0?-1:1;return i*n}return o===o?o:0}return A_=r,A_}var M_,GY;function zWe(){if(GY)return M_;GY=1;var e=BWe(),t=GI(),n=Nse();function r(o){return function(i,a,s){return s&&typeof s!="number"&&t(i,a,s)&&(a=s=void 0),i=n(i),a===void 0?(a=i,i=0):a=n(a),s=s===void 0?i0&&r.handleDrag(o.changedTouches[0])}),za(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var o=r.props,i=o.endIndex,a=o.onDragEnd,s=o.startIndex;a==null||a({endIndex:i,startIndex:s})}),r.detachDragEndListener()}),za(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),za(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),za(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),za(r,"handleSlideDragStart",function(o){var i=XY(o)?o.changedTouches[0]:o;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return JWe(t,e),YWe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var o=r.startX,i=r.endX,a=this.state.scaleValues,s=this.props,l=s.gap,c=s.data,u=c.length-1,f=Math.min(o,i),h=Math.max(o,i),m=t.getIndexInRange(a,f),g=t.getIndexInRange(a,h);return{startIndex:m-m%l,endIndex:g===u?u:g-g%l}}},{key:"getTextOfTick",value:function(r){var o=this.props,i=o.data,a=o.tickFormatter,s=o.dataKey,l=Vr(i[r],s,r);return rn(a)?a(l,r):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var o=this.state,i=o.slideMoveStartX,a=o.startX,s=o.endX,l=this.props,c=l.x,u=l.width,f=l.travellerWidth,h=l.startIndex,m=l.endIndex,g=l.onChange,y=r.pageX-i;y>0?y=Math.min(y,c+u-f-s,c+u-f-a):y<0&&(y=Math.max(y,c-a,c-s));var v=this.getIndex({startX:a+y,endX:s+y});(v.startIndex!==h||v.endIndex!==m)&&g&&g(v),this.setState({startX:a+y,endX:s+y,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,o){var i=XY(o)?o.changedTouches[0]:o;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var o=this.state,i=o.brushMoveStartX,a=o.movingTravellerId,s=o.endX,l=o.startX,c=this.state[a],u=this.props,f=u.x,h=u.width,m=u.travellerWidth,g=u.onChange,y=u.gap,v=u.data,w={startX:this.state.startX,endX:this.state.endX},C=r.pageX-i;C>0?C=Math.min(C,f+h-m-c):C<0&&(C=Math.max(C,f-c)),w[a]=c+C;var E=this.getIndex(w),I=E.startIndex,O=E.endIndex,P=function(){var D=v.length-1;return a==="startX"&&(s>l?I%y===0:O%y===0)||sl?O%y===0:I%y===0)||s>l&&O===D};this.setState(za(za({},a,c+C),"brushMoveStartX",r.pageX),function(){g&&P()&&g(E)})}},{key:"handleTravellerMoveKeyboard",value:function(r,o){var i=this,a=this.state,s=a.scaleValues,l=a.startX,c=a.endX,u=this.state[o],f=s.indexOf(u);if(f!==-1){var h=f+r;if(!(h===-1||h>=s.length)){var m=s[h];o==="startX"&&m>=c||o==="endX"&&m<=l||this.setState(za({},o,m),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,o=r.x,i=r.y,a=r.width,s=r.height,l=r.fill,c=r.stroke;return Z.createElement("rect",{stroke:c,fill:l,x:o,y:i,width:a,height:s})}},{key:"renderPanorama",value:function(){var r=this.props,o=r.x,i=r.y,a=r.width,s=r.height,l=r.data,c=r.children,u=r.padding,f=x.Children.only(c);return f?Z.cloneElement(f,{x:o,y:i,width:a,height:s,margin:u,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(r,o){var i,a,s=this,l=this.props,c=l.y,u=l.travellerWidth,f=l.height,h=l.traveller,m=l.ariaLabel,g=l.data,y=l.startIndex,v=l.endIndex,w=Math.max(r,this.props.x),C=D_(D_({},zt(this.props,!1)),{},{x:w,y:c,width:u,height:f}),E=m||"Min value: ".concat((i=g[y])===null||i===void 0?void 0:i.name,", Max value: ").concat((a=g[v])===null||a===void 0?void 0:a.name);return Z.createElement(wn,{tabIndex:0,role:"slider","aria-label":E,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[o],onTouchStart:this.travellerDragStartHandlers[o],onKeyDown:function(O){["ArrowLeft","ArrowRight"].includes(O.key)&&(O.preventDefault(),O.stopPropagation(),s.handleTravellerMoveKeyboard(O.key==="ArrowRight"?1:-1,o))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,C))}},{key:"renderSlide",value:function(r,o){var i=this.props,a=i.y,s=i.height,l=i.stroke,c=i.travellerWidth,u=Math.min(r,o)+c,f=Math.max(Math.abs(o-r)-c,0);return Z.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:u,y:a,width:f,height:s})}},{key:"renderText",value:function(){var r=this.props,o=r.startIndex,i=r.endIndex,a=r.y,s=r.height,l=r.travellerWidth,c=r.stroke,u=this.state,f=u.startX,h=u.endX,m=5,g={pointerEvents:"none",fill:c};return Z.createElement(wn,{className:"recharts-brush-texts"},Z.createElement(wh,YT({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-m,y:a+s/2},g),this.getTextOfTick(o)),Z.createElement(wh,YT({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,h)+l+m,y:a+s/2},g),this.getTextOfTick(i)))}},{key:"render",value:function(){var r=this.props,o=r.data,i=r.className,a=r.children,s=r.x,l=r.y,c=r.width,u=r.height,f=r.alwaysShowText,h=this.state,m=h.startX,g=h.endX,y=h.isTextActive,v=h.isSlideMoving,w=h.isTravellerMoving,C=h.isTravellerFocused;if(!o||!o.length||!mt(s)||!mt(l)||!mt(c)||!mt(u)||c<=0||u<=0)return null;var E=fe("recharts-brush",i),I=Z.Children.count(a)===1,O=WWe("userSelect","none");return Z.createElement(wn,{className:E,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),I&&this.renderPanorama(),this.renderSlide(m,g),this.renderTravellerLayer(m,"startX"),this.renderTravellerLayer(g,"endX"),(y||v||w||C||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var o=r.x,i=r.y,a=r.width,s=r.height,l=r.stroke,c=Math.floor(i+s/2)-1;return Z.createElement(Z.Fragment,null,Z.createElement("rect",{x:o,y:i,width:a,height:s,fill:l,stroke:"none"}),Z.createElement("line",{x1:o+1,y1:c,x2:o+a-1,y2:c,fill:"none",stroke:"#fff"}),Z.createElement("line",{x1:o+1,y1:c+2,x2:o+a-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,o){var i;return Z.isValidElement(r)?i=Z.cloneElement(r,o):rn(r)?i=r(o):i=t.renderDefaultTraveller(o),i}},{key:"getDerivedStateFromProps",value:function(r,o){var i=r.data,a=r.width,s=r.x,l=r.travellerWidth,c=r.updateId,u=r.startIndex,f=r.endIndex;if(i!==o.prevData||c!==o.prevUpdateId)return D_({prevData:i,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:a},i&&i.length?t8e({data:i,width:a,x:s,travellerWidth:l,startIndex:u,endIndex:f}):{scale:null,scaleValues:null});if(o.scale&&(a!==o.prevWidth||s!==o.prevX||l!==o.prevTravellerWidth)){o.scale.range([s,s+a-l]);var h=o.scale.domain().map(function(m){return o.scale(m)});return{prevData:i,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:a,startX:o.scale(r.startIndex),endX:o.scale(r.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(r,o){for(var i=r.length,a=0,s=i-1;s-a>1;){var l=Math.floor((a+s)/2);r[l]>o?s=l:a=l}return o>=r[s]?s:a}}])}(x.PureComponent);za(Ty,"displayName","Brush");za(Ty,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var k_,ZY;function n8e(){if(ZY)return k_;ZY=1;var e=az();function t(n,r){var o;return e(n,function(i,a,s){return o=r(i,a,s),!o}),!!o}return k_=t,k_}var __,JY;function r8e(){if(JY)return __;JY=1;var e=$ie(),t=Hc(),n=n8e(),r=Aa(),o=GI();function i(a,s,l){var c=r(a)?e:n;return l&&o(a,s,l)&&(s=void 0),c(a,t(s,3))}return __=i,__}var o8e=r8e();const i8e=Gn(o8e);var Tc=function(t,n){var r=t.alwaysShow,o=t.ifOverflow;return r&&(o="extendDomain"),o===n},$_,eQ;function a8e(){if(eQ)return $_;eQ=1;var e=Jie();function t(n,r,o){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:o,writable:!0}):n[r]=o}return $_=t,$_}var N_,tQ;function s8e(){if(tQ)return N_;tQ=1;var e=a8e(),t=Xie(),n=Hc();function r(o,i){var a={};return i=n(i,3),t(o,function(s,l,c){e(a,l,i(s,l,c))}),a}return N_=r,N_}var l8e=s8e();const c8e=Gn(l8e);var L_,nQ;function u8e(){if(nQ)return L_;nQ=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function b8e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function x8e(e,t){var n=e.x,r=e.y,o=v8e(e,h8e),i="".concat(n),a=parseInt(i,10),s="".concat(r),l=parseInt(s,10),c="".concat(t.height||o.height),u=parseInt(c,10),f="".concat(t.width||o.width),h=parseInt(f,10);return c0(c0(c0(c0(c0({},t),o),a?{x:a}:{}),l?{y:l}:{}),{},{height:u,width:h,name:t.name,radius:t.radius})}function aQ(e){return Z.createElement(qT,dF({shapeType:"rectangle",propTransformer:x8e,activeClassName:"recharts-active-bar"},e))}var S8e=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,o){if(typeof t=="number")return t;var i=typeof r=="number";return i?t(r,o):(i||Af(),n)}},w8e=["value","background"],zse;function Oy(e){"@babel/helpers - typeof";return Oy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oy(e)}function C8e(e,t){if(e==null)return{};var n=E8e(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function E8e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function XT(){return XT=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(j)0&&Math.abs(H)0&&(B=Math.min((ie||0)-(H[se-1]||0),B))}),Number.isFinite(B)){var j=B/N,L=y.layout==="vertical"?r.height:r.width;if(y.padding==="gap"&&(R=j*L/2),y.padding==="no-gap"){var V=na(t.barCategoryGap,j*L),W=j*L/2;R=W-V-(W-V)/L*V}}}o==="xAxis"?D=[r.left+(E.left||0)+(R||0),r.left+r.width-(E.right||0)-(R||0)]:o==="yAxis"?D=l==="horizontal"?[r.top+r.height-(E.bottom||0),r.top+(E.top||0)]:[r.top+(E.top||0)+(R||0),r.top+r.height-(E.bottom||0)-(R||0)]:D=y.range,O&&(D=[D[1],D[0]]);var K=fse(y,i,h),G=K.scale,q=K.realScaleType;G.domain(w).range(D),pse(G);var Y=hse(G,El(El({},y),{},{realScaleType:q}));o==="xAxis"?(_=v==="top"&&!I||v==="bottom"&&I,M=r.left,A=f[P]-_*y.height):o==="yAxis"&&(_=v==="left"&&!I||v==="right"&&I,M=f[P]-_*y.width,A=r.top);var J=El(El(El({},y),Y),{},{realScaleType:q,x:M,y:A,scale:G,width:o==="xAxis"?r.width:y.width,height:o==="yAxis"?r.height:y.height});return J.bandSize=$T(J,Y),!y.hide&&o==="xAxis"?f[P]+=(_?-1:1)*J.height:y.hide||(f[P]+=(_?-1:1)*J.width),El(El({},m),{},lP({},g,J))},{})},Gse=function(t,n){var r=t.x,o=t.y,i=n.x,a=n.y;return{x:Math.min(r,i),y:Math.min(o,a),width:Math.abs(i-r),height:Math.abs(a-o)}},$8e=function(t){var n=t.x1,r=t.y1,o=t.x2,i=t.y2;return Gse({x:n,y:r},{x:o,y:i})},qse=function(){function e(t){D8e(this,e),this.scale=t}return k8e(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.bandAware,i=r.position;if(n!==void 0){if(i)switch(i){case"start":return this.scale(n);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+a}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(n)+s}default:return this.scale(n)}if(o){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),o=r[0],i=r[r.length-1];return o<=i?n>=o&&n<=i:n>=i&&n<=o}}],[{key:"create",value:function(n){return new e(n)}}])}();lP(qse,"EPS",1e-4);var $z=function(t){var n=Object.keys(t).reduce(function(r,o){return El(El({},r),{},lP({},o,qse.create(t[o])))},{});return El(El({},n),{},{apply:function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.bandAware,s=i.position;return c8e(o,function(l,c){return n[c].apply(l,{bandAware:a,position:s})})},isInRange:function(o){return Bse(o,function(i,a){return n[a].isInRange(i)})}})};function N8e(e){return(e%180+180)%180}var L8e=function(t){var n=t.width,r=t.height,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=N8e(o),a=i*Math.PI/180,s=Math.atan(r/n),l=a>s&&a-1?l[c?i[u]:u]:void 0}}return B_=r,B_}var z_,fQ;function j8e(){if(fQ)return z_;fQ=1;var e=Nse();function t(n){var r=e(n),o=r%1;return r===r?o?r-o:r:0}return z_=t,z_}var V_,pQ;function B8e(){if(pQ)return V_;pQ=1;var e=qie(),t=Hc(),n=j8e(),r=Math.max;function o(i,a,s){var l=i==null?0:i.length;if(!l)return-1;var c=s==null?0:n(s);return c<0&&(c=r(l+c,0)),e(i,t(a,3),c)}return V_=o,V_}var H_,hQ;function z8e(){if(hQ)return H_;hQ=1;var e=F8e(),t=B8e(),n=e(t);return H_=n,H_}var V8e=z8e();const H8e=Gn(V8e);var U8e=sie();const G8e=Gn(U8e);var q8e=G8e(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),Nz=x.createContext(void 0),Lz=x.createContext(void 0),Wse=x.createContext(void 0),Kse=x.createContext({}),Yse=x.createContext(void 0),Qse=x.createContext(0),Xse=x.createContext(0),mQ=function(t){var n=t.state,r=n.xAxisMap,o=n.yAxisMap,i=n.offset,a=t.clipPathId,s=t.children,l=t.width,c=t.height,u=q8e(i);return Z.createElement(Nz.Provider,{value:r},Z.createElement(Lz.Provider,{value:o},Z.createElement(Kse.Provider,{value:i},Z.createElement(Wse.Provider,{value:u},Z.createElement(Yse.Provider,{value:a},Z.createElement(Qse.Provider,{value:c},Z.createElement(Xse.Provider,{value:l},s)))))))},W8e=function(){return x.useContext(Yse)},Zse=function(t){var n=x.useContext(Nz);n==null&&Af();var r=n[t];return r==null&&Af(),r},K8e=function(){var t=x.useContext(Nz);return Qd(t)},Y8e=function(){var t=x.useContext(Lz),n=H8e(t,function(r){return Bse(r.domain,Number.isFinite)});return n||Qd(t)},Jse=function(t){var n=x.useContext(Lz);n==null&&Af();var r=n[t];return r==null&&Af(),r},Q8e=function(){var t=x.useContext(Wse);return t},X8e=function(){return x.useContext(Kse)},Fz=function(){return x.useContext(Xse)},jz=function(){return x.useContext(Qse)};function Iy(e){"@babel/helpers - typeof";return Iy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Iy(e)}function Z8e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J8e(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne*o)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-o)<=0}function _9e(e,t){return ale(e,t+1)}function $9e(e,t,n,r,o){for(var i=(r||[]).slice(),a=t.start,s=t.end,l=0,c=1,u=a,f=function(){var g=r==null?void 0:r[l];if(g===void 0)return{v:ale(r,c)};var y=l,v,w=function(){return v===void 0&&(v=n(g,y)),v},C=g.coordinate,E=l===0||nO(e,C,w,u,s);E||(l=0,u=a,c+=1),E&&(u=C+e*(w()/2+o),l+=c)},h;c<=i.length;)if(h=f(),h)return h.v;return[]}function pS(e){"@babel/helpers - typeof";return pS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pS(e)}function CQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Di(e){for(var t=1;t0?m.coordinate-v*e:m.coordinate})}else i[h]=m=Di(Di({},m),{},{tickCoord:m.coordinate});var w=nO(e,m.tickCoord,y,s,l);w&&(l=m.tickCoord-e*(y()/2+o),i[h]=Di(Di({},m),{},{isShow:!0}))},u=a-1;u>=0;u--)c(u);return i}function B9e(e,t,n,r,o,i){var a=(r||[]).slice(),s=a.length,l=t.start,c=t.end;if(i){var u=r[s-1],f=n(u,s-1),h=e*(u.coordinate+e*f/2-c);a[s-1]=u=Di(Di({},u),{},{tickCoord:h>0?u.coordinate-h*e:u.coordinate});var m=nO(e,u.tickCoord,function(){return f},l,c);m&&(c=u.tickCoord-e*(f/2+o),a[s-1]=Di(Di({},u),{},{isShow:!0}))}for(var g=i?s-1:s,y=function(C){var E=a[C],I,O=function(){return I===void 0&&(I=n(E,C)),I};if(C===0){var P=e*(E.coordinate-e*O()/2-l);a[C]=E=Di(Di({},E),{},{tickCoord:P<0?E.coordinate-P*e:E.coordinate})}else a[C]=E=Di(Di({},E),{},{tickCoord:E.coordinate});var R=nO(e,E.tickCoord,O,l,c);R&&(l=E.tickCoord+e*(O()/2+o),a[C]=Di(Di({},E),{},{isShow:!0}))},v=0;v=2?ta(o[1].coordinate-o[0].coordinate):1,w=k9e(i,v,m);return l==="equidistantPreserveStart"?$9e(v,w,y,o,a):(l==="preserveStart"||l==="preserveStartEnd"?h=B9e(v,w,y,o,a,l==="preserveStartEnd"):h=j9e(v,w,y,o,a),h.filter(function(C){return C.isShow}))}var z9e=["viewBox"],V9e=["viewBox"],H9e=["ticks"];function My(e){"@babel/helpers - typeof";return My=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},My(e)}function vg(){return vg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function U9e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function G9e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TQ(e,t){for(var n=0;n0?l(this.props):l(m)),a<=0||s<=0||!g||!g.length?null:Z.createElement(wn,{className:fe("recharts-cartesian-axis",c),ref:function(v){r.layerReference=v}},i&&this.renderAxisLine(),this.renderTicks(g,this.state.fontSize,this.state.letterSpacing),oi.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,o,i){var a;return Z.isValidElement(r)?a=Z.cloneElement(r,o):rn(r)?a=r(o):a=Z.createElement(wh,vg({},o,{className:"recharts-cartesian-axis-tick-value"}),i),a}}])}(x.Component);Hz(Iv,"displayName","CartesianAxis");Hz(Iv,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Z9e=["x1","y1","x2","y2","key"],J9e=["offset"];function Eh(e){"@babel/helpers - typeof";return Eh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eh(e)}function OQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $i(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function r7e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var o7e=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,o=t.x,i=t.y,a=t.width,s=t.height,l=t.ry;return Z.createElement("rect",{x:o,y:i,ry:l,width:a,height:s,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function cle(e,t){var n;if(Z.isValidElement(e))n=Z.cloneElement(e,t);else if(rn(e))n=e(t);else{var r=t.x1,o=t.y1,i=t.x2,a=t.y2,s=t.key,l=IQ(t,Z9e),c=zt(l,!1);c.offset;var u=IQ(c,J9e);n=Z.createElement("line",Hp({},u,{x1:r,y1:o,x2:i,y2:a,fill:"none",key:s}))}return n}function i7e(e){var t=e.x,n=e.width,r=e.horizontal,o=r===void 0?!0:r,i=e.horizontalPoints;if(!o||!i||!i.length)return null;var a=i.map(function(s,l){var c=$i($i({},e),{},{x1:t,y1:s,x2:t+n,y2:s,key:"line-".concat(l),index:l});return cle(o,c)});return Z.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function a7e(e){var t=e.y,n=e.height,r=e.vertical,o=r===void 0?!0:r,i=e.verticalPoints;if(!o||!i||!i.length)return null;var a=i.map(function(s,l){var c=$i($i({},e),{},{x1:s,y1:t,x2:s,y2:t+n,key:"line-".concat(l),index:l});return cle(o,c)});return Z.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function s7e(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,o=e.y,i=e.width,a=e.height,s=e.horizontalPoints,l=e.horizontal,c=l===void 0?!0:l;if(!c||!t||!t.length)return null;var u=s.map(function(h){return Math.round(h+o-o)}).sort(function(h,m){return h-m});o!==u[0]&&u.unshift(0);var f=u.map(function(h,m){var g=!u[m+1],y=g?o+a-h:u[m+1]-h;if(y<=0)return null;var v=m%t.length;return Z.createElement("rect",{key:"react-".concat(m),y:h,x:r,height:y,width:i,stroke:"none",fill:t[v],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return Z.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function l7e(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,o=e.fillOpacity,i=e.x,a=e.y,s=e.width,l=e.height,c=e.verticalPoints;if(!n||!r||!r.length)return null;var u=c.map(function(h){return Math.round(h+i-i)}).sort(function(h,m){return h-m});i!==u[0]&&u.unshift(0);var f=u.map(function(h,m){var g=!u[m+1],y=g?i+s-h:u[m+1]-h;if(y<=0)return null;var v=m%r.length;return Z.createElement("rect",{key:"react-".concat(m),x:h,y:a,width:y,height:l,stroke:"none",fill:r[v],fillOpacity:o,className:"recharts-cartesian-grid-bg"})});return Z.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var c7e=function(t,n){var r=t.xAxis,o=t.width,i=t.height,a=t.offset;return dse(Vz($i($i($i({},Iv.defaultProps),r),{},{ticks:Mu(r,!0),viewBox:{x:0,y:0,width:o,height:i}})),a.left,a.left+a.width,n)},u7e=function(t,n){var r=t.yAxis,o=t.width,i=t.height,a=t.offset;return dse(Vz($i($i($i({},Iv.defaultProps),r),{},{ticks:Mu(r,!0),viewBox:{x:0,y:0,width:o,height:i}})),a.top,a.top+a.height,n)},Xm={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Uf(e){var t,n,r,o,i,a,s=Fz(),l=jz(),c=X8e(),u=$i($i({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Xm.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Xm.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Xm.horizontal,horizontalFill:(o=e.horizontalFill)!==null&&o!==void 0?o:Xm.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:Xm.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:Xm.verticalFill,x:mt(e.x)?e.x:c.left,y:mt(e.y)?e.y:c.top,width:mt(e.width)?e.width:c.width,height:mt(e.height)?e.height:c.height}),f=u.x,h=u.y,m=u.width,g=u.height,y=u.syncWithTicks,v=u.horizontalValues,w=u.verticalValues,C=K8e(),E=Y8e();if(!mt(m)||m<=0||!mt(g)||g<=0||!mt(f)||f!==+f||!mt(h)||h!==+h)return null;var I=u.verticalCoordinatesGenerator||c7e,O=u.horizontalCoordinatesGenerator||u7e,P=u.horizontalPoints,R=u.verticalPoints;if((!P||!P.length)&&rn(O)){var D=v&&v.length,M=O({yAxis:E?$i($i({},E),{},{ticks:D?v:E.ticks}):void 0,width:s,height:l,offset:c},D?!0:y);Ll(Array.isArray(M),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Eh(M),"]")),Array.isArray(M)&&(P=M)}if((!R||!R.length)&&rn(I)){var A=w&&w.length,_=I({xAxis:C?$i($i({},C),{},{ticks:A?w:C.ticks}):void 0,width:s,height:l,offset:c},A?!0:y);Ll(Array.isArray(_),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Eh(_),"]")),Array.isArray(_)&&(R=_)}return Z.createElement("g",{className:"recharts-cartesian-grid"},Z.createElement(o7e,{fill:u.fill,fillOpacity:u.fillOpacity,x:u.x,y:u.y,width:u.width,height:u.height,ry:u.ry}),Z.createElement(i7e,Hp({},u,{offset:c,horizontalPoints:P,xAxis:C,yAxis:E})),Z.createElement(a7e,Hp({},u,{offset:c,verticalPoints:R,xAxis:C,yAxis:E})),Z.createElement(s7e,Hp({},u,{horizontalPoints:P})),Z.createElement(l7e,Hp({},u,{verticalPoints:R})))}Uf.displayName="CartesianGrid";var d7e=["type","layout","connectNulls","ref"],f7e=["key"];function Ry(e){"@babel/helpers - typeof";return Ry=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ry(e)}function PQ(e,t){if(e==null)return{};var n=p7e(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function p7e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ix(){return ix=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nf){m=[].concat(Zm(l.slice(0,g)),[f-y]);break}var v=m.length%2===0?[0,h]:[h];return[].concat(Zm(t.repeat(l,u)),Zm(m),v).map(function(w){return"".concat(w,"px")}).join(", ")}),Tl(n,"id",Bf("recharts-line-")),Tl(n,"pathRef",function(a){n.mainCurve=a}),Tl(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Tl(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return C7e(t,e),b7e(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,s=i.xAxis,l=i.yAxis,c=i.layout,u=i.children,f=sa(u,Ov);if(!f)return null;var h=function(y,v){return{x:y.x,y:y.y,value:y.value,errorVal:Vr(y.payload,v)}},m={clipPath:r?"url(#clipPath-".concat(o,")"):null};return Z.createElement(wn,m,f.map(function(g){return Z.cloneElement(g,{key:"bar-".concat(g.props.dataKey),data:a,xAxis:s,yAxis:l,layout:c,dataPointFormatter:h})}))}},{key:"renderDots",value:function(r,o,i){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,c=s.points,u=s.dataKey,f=zt(this.props,!1),h=zt(l,!0),m=c.map(function(y,v){var w=Ba(Ba(Ba({key:"dot-".concat(v),r:3},f),h),{},{index:v,cx:y.x,cy:y.y,value:y.value,dataKey:u,payload:y.payload,points:c});return t.renderDotItem(l,w)}),g={clipPath:r?"url(#clipPath-".concat(o?"":"dots-").concat(i,")"):null};return Z.createElement(wn,ix({className:"recharts-line-dots",key:"dots"},g),m)}},{key:"renderCurveStatically",value:function(r,o,i,a){var s=this.props,l=s.type,c=s.layout,u=s.connectNulls;s.ref;var f=PQ(s,d7e),h=Ba(Ba(Ba({},zt(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:o?"url(#clipPath-".concat(i,")"):null,points:r},a),{},{type:l,layout:c,connectNulls:u});return Z.createElement(vf,ix({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,o){var i=this,a=this.props,s=a.points,l=a.strokeDasharray,c=a.isAnimationActive,u=a.animationBegin,f=a.animationDuration,h=a.animationEasing,m=a.animationId,g=a.animateNewValues,y=a.width,v=a.height,w=this.state,C=w.prevPoints,E=w.totalLength;return Z.createElement(nl,{begin:u,duration:f,isActive:c,easing:h,from:{t:0},to:{t:1},key:"line-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(I){var O=I.t;if(C){var P=C.length/s.length,R=s.map(function(N,B){var H=Math.floor(B*P);if(C[H]){var j=C[H],L=no(j.x,N.x),V=no(j.y,N.y);return Ba(Ba({},N),{},{x:L(O),y:V(O)})}if(g){var W=no(y*2,N.x),K=no(v/2,N.y);return Ba(Ba({},N),{},{x:W(O),y:K(O)})}return Ba(Ba({},N),{},{x:N.x,y:N.y})});return i.renderCurveStatically(R,r,o)}var D=no(0,E),M=D(O),A;if(l){var _="".concat(l).split(/[,\s]+/gim).map(function(N){return parseFloat(N)});A=i.getStrokeDasharray(M,E,_)}else A=i.generateSimpleStrokeDasharray(E,M);return i.renderCurveStatically(s,r,o,{strokeDasharray:A})})}},{key:"renderCurve",value:function(r,o){var i=this.props,a=i.points,s=i.isAnimationActive,l=this.state,c=l.prevPoints,u=l.totalLength;return s&&a&&a.length&&(!c&&u>0||!Pf(c,a))?this.renderCurveWithAnimation(r,o):this.renderCurveStatically(a,r,o)}},{key:"render",value:function(){var r,o=this.props,i=o.hide,a=o.dot,s=o.points,l=o.className,c=o.xAxis,u=o.yAxis,f=o.top,h=o.left,m=o.width,g=o.height,y=o.isAnimationActive,v=o.id;if(i||!s||!s.length)return null;var w=this.state.isAnimationFinished,C=s.length===1,E=fe("recharts-line",l),I=c&&c.allowDataOverflow,O=u&&u.allowDataOverflow,P=I||O,R=on(v)?this.id:v,D=(r=zt(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},M=D.r,A=M===void 0?3:M,_=D.strokeWidth,N=_===void 0?2:_,B=fie(a)?a:{},H=B.clipDot,j=H===void 0?!0:H,L=A*2+N;return Z.createElement(wn,{className:E},I||O?Z.createElement("defs",null,Z.createElement("clipPath",{id:"clipPath-".concat(R)},Z.createElement("rect",{x:I?h:h-m/2,y:O?f:f-g/2,width:I?m:m*2,height:O?g:g*2})),!j&&Z.createElement("clipPath",{id:"clipPath-dots-".concat(R)},Z.createElement("rect",{x:h-L/2,y:f-L/2,width:m+L,height:g+L}))):null,!C&&this.renderCurve(P,R),this.renderErrorBar(P,R),(C||a)&&this.renderDots(P,j,R),(!y||w)&&Fl.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:o.curPoints}:r.points!==o.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,o){for(var i=r.length%2!==0?[].concat(Zm(r),[0]):r,a=[],s=0;s=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function I7e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Up(){return Up=Object.assign?Object.assign.bind():function(e){for(var t=1;t0||!Pf(u,a)||!Pf(f,s))?this.renderAreaWithAnimation(r,o):this.renderAreaStatically(a,s,r,o)}},{key:"render",value:function(){var r,o=this.props,i=o.hide,a=o.dot,s=o.points,l=o.className,c=o.top,u=o.left,f=o.xAxis,h=o.yAxis,m=o.width,g=o.height,y=o.isAnimationActive,v=o.id;if(i||!s||!s.length)return null;var w=this.state.isAnimationFinished,C=s.length===1,E=fe("recharts-area",l),I=f&&f.allowDataOverflow,O=h&&h.allowDataOverflow,P=I||O,R=on(v)?this.id:v,D=(r=zt(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},M=D.r,A=M===void 0?3:M,_=D.strokeWidth,N=_===void 0?2:_,B=fie(a)?a:{},H=B.clipDot,j=H===void 0?!0:H,L=A*2+N;return Z.createElement(wn,{className:E},I||O?Z.createElement("defs",null,Z.createElement("clipPath",{id:"clipPath-".concat(R)},Z.createElement("rect",{x:I?u:u-m/2,y:O?c:c-g/2,width:I?m:m*2,height:O?g:g*2})),!j&&Z.createElement("clipPath",{id:"clipPath-dots-".concat(R)},Z.createElement("rect",{x:u-L/2,y:c-L/2,width:m+L,height:g+L}))):null,C?null:this.renderArea(P,R),(a||C)&&this.renderDots(P,j,R),(!y||w)&&Fl.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:o.curPoints,prevBaseLine:o.curBaseLine}:r.points!==o.curPoints||r.baseLine!==o.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])}(x.PureComponent);fle=Gf;bc(Gf,"displayName","Area");bc(Gf,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!td.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});bc(Gf,"getBaseValue",function(e,t,n,r){var o=e.layout,i=e.baseValue,a=t.props.baseValue,s=a??i;if(mt(s)&&typeof s=="number")return s;var l=o==="horizontal"?r:n,c=l.scale.domain();if(l.type==="number"){var u=Math.max(c[0],c[1]),f=Math.min(c[0],c[1]);return s==="dataMin"?f:s==="dataMax"||u<0?u:Math.max(Math.min(c[0],c[1]),0)}return s==="dataMin"?c[0]:s==="dataMax"?c[1]:c[0]});bc(Gf,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,o=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,s=e.bandSize,l=e.dataKey,c=e.stackedData,u=e.dataStartIndex,f=e.displayedData,h=e.offset,m=t.layout,g=c&&c.length,y=fle.getBaseValue(t,n,r,o),v=m==="horizontal",w=!1,C=f.map(function(I,O){var P;g?P=c[u+O]:(P=Vr(I,l),Array.isArray(P)?w=!0:P=[y,P]);var R=P[1]==null||g&&Vr(I,l)==null;return v?{x:by({axis:r,ticks:i,bandSize:s,entry:I,index:O}),y:R?null:o.scale(P[1]),value:P,payload:I}:{x:R?null:r.scale(P[1]),y:by({axis:o,ticks:a,bandSize:s,entry:I,index:O}),value:P,payload:I}}),E;return g||w?E=C.map(function(I){var O=Array.isArray(I.value)?I.value[0]:null;return v?{x:I.x,y:O!=null&&I.y!=null?o.scale(O):null}:{x:O!=null?r.scale(O):null,y:I.y}}):E=v?o.scale(y):r.scale(y),Bd({points:C,baseLine:E,layout:m,isRange:w},h)});bc(Gf,"renderDotItem",function(e,t){var n;if(Z.isValidElement(e))n=Z.cloneElement(e,t);else if(rn(e))n=e(t);else{var r=fe("recharts-area-dot",typeof e!="boolean"?e.className:""),o=t.key,i=ple(t,O7e);n=Z.createElement(Ew,Up({},i,{key:o,className:r}))}return n});function ky(e){"@babel/helpers - typeof";return ky=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ky(e)}function $7e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N7e(e,t){for(var n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function G7e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function q7e(e){var t=e.option,n=e.isActive,r=U7e(e,H7e);return typeof t=="string"?Z.createElement(qT,ax({option:Z.createElement(VI,ax({type:t},r)),isActive:n,shapeType:"symbols"},r)):Z.createElement(qT,ax({option:t,isActive:n,shapeType:"symbols"},r))}function _y(e){"@babel/helpers - typeof";return _y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_y(e)}function sx(){return sx=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function VKe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function HKe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UKe(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?a:t&&t.length&&mt(o)&&mt(i)?t.slice(o,i+1):[]};function kle(e){return e==="number"?[0,"auto"]:void 0}var kF=function(t,n,r,o){var i=t.graphicalItems,a=t.tooltipAxis,s=hP(n,t);return r<0||!i||!i.length||r>=s.length?null:i.reduce(function(l,c){var u,f=(u=c.props.data)!==null&&u!==void 0?u:n;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(a.dataKey&&!a.allowDuplicatedCategory){var m=f===void 0?s:f;h=uT(m,a.dataKey,o)}else h=f&&f[r]||s[r];return h?[].concat(Fy(l),[gse(c,h)]):l},[])},zQ=function(t,n,r,o){var i=o||{x:t.chartX,y:t.chartY},a=nYe(i,r),s=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,u=r3e(a,s,c,l);if(u>=0&&c){var f=c[u]&&c[u].value,h=kF(t,n,u,f),m=rYe(r,s,u,i);return{activeTooltipIndex:u,activeLabel:f,activePayload:h,activeCoordinate:m}}return null},oYe=function(t,n){var r=n.axes,o=n.graphicalItems,i=n.axisType,a=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,u=t.layout,f=t.children,h=t.stackOffset,m=use(u,i);return r.reduce(function(g,y){var v,w=y.type.defaultProps!==void 0?Xe(Xe({},y.type.defaultProps),y.props):y.props,C=w.type,E=w.dataKey,I=w.allowDataOverflow,O=w.allowDuplicatedCategory,P=w.scale,R=w.ticks,D=w.includeHidden,M=w[a];if(g[M])return g;var A=hP(t.data,{graphicalItems:o.filter(function(Y){var J,ie=a in Y.props?Y.props[a]:(J=Y.type.defaultProps)===null||J===void 0?void 0:J[a];return ie===M}),dataStartIndex:l,dataEndIndex:c}),_=A.length,N,B,H;MKe(w.domain,I,C)&&(N=UL(w.domain,null,I),m&&(C==="number"||P!=="auto")&&(H=tx(A,E,"category")));var j=kle(C);if(!N||N.length===0){var L,V=(L=w.domain)!==null&&L!==void 0?L:j;if(E){if(N=tx(A,E,C),C==="category"&&m){var W=XFe(N);O&&W?(B=N,N=KT(0,_)):O||(N=BK(V,N,y).reduce(function(Y,J){return Y.indexOf(J)>=0?Y:[].concat(Fy(Y),[J])},[]))}else if(C==="category")O?N=N.filter(function(Y){return Y!==""&&!on(Y)}):N=BK(V,N,y).reduce(function(Y,J){return Y.indexOf(J)>=0||J===""||on(J)?Y:[].concat(Fy(Y),[J])},[]);else if(C==="number"){var K=l3e(A,o.filter(function(Y){var J,ie,se=a in Y.props?Y.props[a]:(J=Y.type.defaultProps)===null||J===void 0?void 0:J[a],ce="hide"in Y.props?Y.props.hide:(ie=Y.type.defaultProps)===null||ie===void 0?void 0:ie.hide;return se===M&&(D||!ce)}),E,i,u);K&&(N=K)}m&&(C==="number"||P!=="auto")&&(H=tx(A,E,"category"))}else m?N=KT(0,_):s&&s[M]&&s[M].hasStack&&C==="number"?N=h==="expand"?[0,1]:mse(s[M].stackGroups,l,c):N=cse(A,o.filter(function(Y){var J=a in Y.props?Y.props[a]:Y.type.defaultProps[a],ie="hide"in Y.props?Y.props.hide:Y.type.defaultProps.hide;return J===M&&(D||!ie)}),C,u,!0);if(C==="number")N=MF(f,N,M,i,R),V&&(N=UL(V,N,I));else if(C==="category"&&V){var G=V,q=N.every(function(Y){return G.indexOf(Y)>=0});q&&(N=G)}}return Xe(Xe({},g),{},sn({},M,Xe(Xe({},w),{},{axisType:i,domain:N,categoricalDomain:H,duplicateDomain:B,originalDomain:(v=w.domain)!==null&&v!==void 0?v:j,isCategorical:m,layout:u})))},{})},iYe=function(t,n){var r=n.graphicalItems,o=n.Axis,i=n.axisType,a=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,u=t.layout,f=t.children,h=hP(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:c}),m=h.length,g=use(u,i),y=-1;return r.reduce(function(v,w){var C=w.type.defaultProps!==void 0?Xe(Xe({},w.type.defaultProps),w.props):w.props,E=C[a],I=kle("number");if(!v[E]){y++;var O;return g?O=KT(0,m):s&&s[E]&&s[E].hasStack?(O=mse(s[E].stackGroups,l,c),O=MF(f,O,E,i)):(O=UL(I,cse(h,r.filter(function(P){var R,D,M=a in P.props?P.props[a]:(R=P.type.defaultProps)===null||R===void 0?void 0:R[a],A="hide"in P.props?P.props.hide:(D=P.type.defaultProps)===null||D===void 0?void 0:D.hide;return M===E&&!A}),"number",u),o.defaultProps.allowDataOverflow),O=MF(f,O,E,i)),Xe(Xe({},v),{},sn({},E,Xe(Xe({axisType:i},o.defaultProps),{},{hide:!0,orientation:Za(eYe,"".concat(i,".").concat(y%2),null),domain:O,originalDomain:I,isCategorical:g,layout:u})))}return v},{})},aYe=function(t,n){var r=n.axisType,o=r===void 0?"xAxis":r,i=n.AxisComp,a=n.graphicalItems,s=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,u=t.children,f="".concat(o,"Id"),h=sa(u,i),m={};return h&&h.length?m=oYe(t,{axes:h,graphicalItems:a,axisType:o,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:c}):a&&a.length&&(m=iYe(t,{Axis:i,graphicalItems:a,axisType:o,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:c})),m},sYe=function(t){var n=Qd(t),r=Mu(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:sz(r,function(o){return o.coordinate}),tooltipAxis:n,tooltipAxisBandSize:$T(n,r)}},VQ=function(t){var n=t.children,r=t.defaultShowTooltip,o=Va(n,Ty),i=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),o&&o.props&&(o.props.startIndex>=0&&(i=o.props.startIndex),o.props.endIndex>=0&&(a=o.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!r}},lYe=function(t){return!t||!t.length?!1:t.some(function(n){var r=Du(n&&n.type);return r&&r.indexOf("Bar")>=0})},HQ=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},cYe=function(t,n){var r=t.props,o=t.graphicalItems,i=t.xAxisMap,a=i===void 0?{}:i,s=t.yAxisMap,l=s===void 0?{}:s,c=r.width,u=r.height,f=r.children,h=r.margin||{},m=Va(f,Ty),g=Va(f,Cc),y=Object.keys(l).reduce(function(O,P){var R=l[P],D=R.orientation;return!R.mirror&&!R.hide?Xe(Xe({},O),{},sn({},D,O[D]+R.width)):O},{left:h.left||0,right:h.right||0}),v=Object.keys(a).reduce(function(O,P){var R=a[P],D=R.orientation;return!R.mirror&&!R.hide?Xe(Xe({},O),{},sn({},D,Za(O,"".concat(D))+R.height)):O},{top:h.top||0,bottom:h.bottom||0}),w=Xe(Xe({},v),y),C=w.bottom;m&&(w.bottom+=m.props.height||Ty.defaultProps.height),g&&n&&(w=a3e(w,o,r,n));var E=c-w.left-w.right,I=u-w.top-w.bottom;return Xe(Xe({brushBottom:C},w),{},{width:Math.max(E,0),height:Math.max(I,0)})},uYe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},Iw=function(t){var n=t.chartName,r=t.GraphicalChild,o=t.defaultTooltipEventType,i=o===void 0?"axis":o,a=t.validateTooltipEventTypes,s=a===void 0?["axis"]:a,l=t.axisComponents,c=t.legendContent,u=t.formatAxisMap,f=t.defaultProps,h=function(w,C){var E=C.graphicalItems,I=C.stackGroups,O=C.offset,P=C.updateId,R=C.dataStartIndex,D=C.dataEndIndex,M=w.barSize,A=w.layout,_=w.barGap,N=w.barCategoryGap,B=w.maxBarSize,H=HQ(A),j=H.numericAxisName,L=H.cateAxisName,V=lYe(E),W=[];return E.forEach(function(K,G){var q=hP(w.data,{graphicalItems:[K],dataStartIndex:R,dataEndIndex:D}),Y=K.type.defaultProps!==void 0?Xe(Xe({},K.type.defaultProps),K.props):K.props,J=Y.dataKey,ie=Y.maxBarSize,se=Y["".concat(j,"Id")],ce=Y["".concat(L,"Id")],ye={},Se=l.reduce(function(Oe,te){var Ee=C["".concat(te.axisType,"Map")],De=Y["".concat(te.axisType,"Id")];Ee&&Ee[De]||te.axisType==="zAxis"||Af();var Ve=Ee[De];return Xe(Xe({},Oe),{},sn(sn({},te.axisType,Ve),"".concat(te.axisType,"Ticks"),Mu(Ve)))},ye),ne=Se[L],le=Se["".concat(L,"Ticks")],de=I&&I[se]&&I[se].hasStack&&y3e(K,I[se].stackGroups),oe=Du(K.type).indexOf("Bar")>=0,ue=$T(ne,le),pe=[],Ce=V&&o3e({barSize:M,stackGroups:I,totalSize:uYe(Se,L)});if(oe){var xe,Re,he=on(ie)?B:ie,Ie=(xe=(Re=$T(ne,le,!0))!==null&&Re!==void 0?Re:he)!==null&&xe!==void 0?xe:0;pe=i3e({barGap:_,barCategoryGap:N,bandSize:Ie!==ue?Ie:ue,sizeList:Ce[ce],maxBarSize:he}),Ie!==ue&&(pe=pe.map(function(Oe){return Xe(Xe({},Oe),{},{position:Xe(Xe({},Oe.position),{},{offset:Oe.position.offset-Ie/2})})}))}var ve=K&&K.type&&K.type.getComposedData;ve&&W.push({props:Xe(Xe({},ve(Xe(Xe({},Se),{},{displayedData:q,props:w,dataKey:J,item:K,bandSize:ue,barPosition:pe,offset:O,stackedData:de,layout:A,dataStartIndex:R,dataEndIndex:D}))),{},sn(sn(sn({key:K.key||"item-".concat(G)},j,Se[j]),L,Se[L]),"animationId",P)),childIndex:uje(K,w.children),item:K})}),W},m=function(w,C){var E=w.props,I=w.dataStartIndex,O=w.dataEndIndex,P=w.updateId;if(!t8({props:E}))return null;var R=E.children,D=E.layout,M=E.stackOffset,A=E.data,_=E.reverseStackOrder,N=HQ(D),B=N.numericAxisName,H=N.cateAxisName,j=sa(R,r),L=m3e(A,j,"".concat(B,"Id"),"".concat(H,"Id"),M,_),V=l.reduce(function(Y,J){var ie="".concat(J.axisType,"Map");return Xe(Xe({},Y),{},sn({},ie,aYe(E,Xe(Xe({},J),{},{graphicalItems:j,stackGroups:J.axisType===B&&L,dataStartIndex:I,dataEndIndex:O}))))},{}),W=cYe(Xe(Xe({},V),{},{props:E,graphicalItems:j}),C==null?void 0:C.legendBBox);Object.keys(V).forEach(function(Y){V[Y]=u(E,V[Y],W,Y.replace("Map",""),n)});var K=V["".concat(H,"Map")],G=sYe(K),q=h(E,Xe(Xe({},V),{},{dataStartIndex:I,dataEndIndex:O,updateId:P,graphicalItems:j,stackGroups:L,offset:W}));return Xe(Xe({formattedGraphicalItems:q,graphicalItems:j,offset:W,stackGroups:L},G),V)},g=function(v){function w(C){var E,I,O;return HKe(this,w),O=qKe(this,w,[C]),sn(O,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),sn(O,"accessibilityManager",new AKe),sn(O,"handleLegendBBoxUpdate",function(P){if(P){var R=O.state,D=R.dataStartIndex,M=R.dataEndIndex,A=R.updateId;O.setState(Xe({legendBBox:P},m({props:O.props,dataStartIndex:D,dataEndIndex:M,updateId:A},Xe(Xe({},O.state),{},{legendBBox:P}))))}}),sn(O,"handleReceiveSyncEvent",function(P,R,D){if(O.props.syncId===P){if(D===O.eventEmitterSymbol&&typeof O.props.syncMethod!="function")return;O.applySyncEvent(R)}}),sn(O,"handleBrushChange",function(P){var R=P.startIndex,D=P.endIndex;if(R!==O.state.dataStartIndex||D!==O.state.dataEndIndex){var M=O.state.updateId;O.setState(function(){return Xe({dataStartIndex:R,dataEndIndex:D},m({props:O.props,dataStartIndex:R,dataEndIndex:D,updateId:M},O.state))}),O.triggerSyncEvent({dataStartIndex:R,dataEndIndex:D})}}),sn(O,"handleMouseEnter",function(P){var R=O.getMouseInfo(P);if(R){var D=Xe(Xe({},R),{},{isTooltipActive:!0});O.setState(D),O.triggerSyncEvent(D);var M=O.props.onMouseEnter;rn(M)&&M(D,P)}}),sn(O,"triggeredAfterMouseMove",function(P){var R=O.getMouseInfo(P),D=R?Xe(Xe({},R),{},{isTooltipActive:!0}):{isTooltipActive:!1};O.setState(D),O.triggerSyncEvent(D);var M=O.props.onMouseMove;rn(M)&&M(D,P)}),sn(O,"handleItemMouseEnter",function(P){O.setState(function(){return{isTooltipActive:!0,activeItem:P,activePayload:P.tooltipPayload,activeCoordinate:P.tooltipPosition||{x:P.cx,y:P.cy}}})}),sn(O,"handleItemMouseLeave",function(){O.setState(function(){return{isTooltipActive:!1}})}),sn(O,"handleMouseMove",function(P){P.persist(),O.throttleTriggeredAfterMouseMove(P)}),sn(O,"handleMouseLeave",function(P){O.throttleTriggeredAfterMouseMove.cancel();var R={isTooltipActive:!1};O.setState(R),O.triggerSyncEvent(R);var D=O.props.onMouseLeave;rn(D)&&D(R,P)}),sn(O,"handleOuterEvent",function(P){var R=cje(P),D=Za(O.props,"".concat(R));if(R&&rn(D)){var M,A;/.*touch.*/i.test(R)?A=O.getMouseInfo(P.changedTouches[0]):A=O.getMouseInfo(P),D((M=A)!==null&&M!==void 0?M:{},P)}}),sn(O,"handleClick",function(P){var R=O.getMouseInfo(P);if(R){var D=Xe(Xe({},R),{},{isTooltipActive:!0});O.setState(D),O.triggerSyncEvent(D);var M=O.props.onClick;rn(M)&&M(D,P)}}),sn(O,"handleMouseDown",function(P){var R=O.props.onMouseDown;if(rn(R)){var D=O.getMouseInfo(P);R(D,P)}}),sn(O,"handleMouseUp",function(P){var R=O.props.onMouseUp;if(rn(R)){var D=O.getMouseInfo(P);R(D,P)}}),sn(O,"handleTouchMove",function(P){P.changedTouches!=null&&P.changedTouches.length>0&&O.throttleTriggeredAfterMouseMove(P.changedTouches[0])}),sn(O,"handleTouchStart",function(P){P.changedTouches!=null&&P.changedTouches.length>0&&O.handleMouseDown(P.changedTouches[0])}),sn(O,"handleTouchEnd",function(P){P.changedTouches!=null&&P.changedTouches.length>0&&O.handleMouseUp(P.changedTouches[0])}),sn(O,"handleDoubleClick",function(P){var R=O.props.onDoubleClick;if(rn(R)){var D=O.getMouseInfo(P);R(D,P)}}),sn(O,"handleContextMenu",function(P){var R=O.props.onContextMenu;if(rn(R)){var D=O.getMouseInfo(P);R(D,P)}}),sn(O,"triggerSyncEvent",function(P){O.props.syncId!==void 0&&q_.emit(W_,O.props.syncId,P,O.eventEmitterSymbol)}),sn(O,"applySyncEvent",function(P){var R=O.props,D=R.layout,M=R.syncMethod,A=O.state.updateId,_=P.dataStartIndex,N=P.dataEndIndex;if(P.dataStartIndex!==void 0||P.dataEndIndex!==void 0)O.setState(Xe({dataStartIndex:_,dataEndIndex:N},m({props:O.props,dataStartIndex:_,dataEndIndex:N,updateId:A},O.state)));else if(P.activeTooltipIndex!==void 0){var B=P.chartX,H=P.chartY,j=P.activeTooltipIndex,L=O.state,V=L.offset,W=L.tooltipTicks;if(!V)return;if(typeof M=="function")j=M(W,P);else if(M==="value"){j=-1;for(var K=0;K=0){var de,oe;if(B.dataKey&&!B.allowDuplicatedCategory){var ue=typeof B.dataKey=="function"?le:"payload.".concat(B.dataKey.toString());de=uT(K,ue,j),oe=G&&q&&uT(q,ue,j)}else de=K==null?void 0:K[H],oe=G&&q&&q[H];if(ce||se){var pe=P.props.activeIndex!==void 0?P.props.activeIndex:H;return[x.cloneElement(P,Xe(Xe(Xe({},M.props),Se),{},{activeIndex:pe})),null,null]}if(!on(de))return[ne].concat(Fy(O.renderActivePoints({item:M,activePoint:de,basePoint:oe,childIndex:H,isRange:G})))}else{var Ce,xe=(Ce=O.getItemByXY(O.state.activeCoordinate))!==null&&Ce!==void 0?Ce:{graphicalItem:ne},Re=xe.graphicalItem,he=Re.item,Ie=he===void 0?P:he,ve=Re.childIndex,Oe=Xe(Xe(Xe({},M.props),Se),{},{activeIndex:ve});return[x.cloneElement(Ie,Oe),null,null]}return G?[ne,null,null]:[ne,null]}),sn(O,"renderCustomized",function(P,R,D){return x.cloneElement(P,Xe(Xe({key:"recharts-customized-".concat(D)},O.props),O.state))}),sn(O,"renderMap",{CartesianGrid:{handler:U1,once:!0},ReferenceArea:{handler:O.renderReferenceElement},ReferenceLine:{handler:U1},ReferenceDot:{handler:O.renderReferenceElement},XAxis:{handler:U1},YAxis:{handler:U1},Brush:{handler:O.renderBrush,once:!0},Bar:{handler:O.renderGraphicChild},Line:{handler:O.renderGraphicChild},Area:{handler:O.renderGraphicChild},Radar:{handler:O.renderGraphicChild},RadialBar:{handler:O.renderGraphicChild},Scatter:{handler:O.renderGraphicChild},Pie:{handler:O.renderGraphicChild},Funnel:{handler:O.renderGraphicChild},Tooltip:{handler:O.renderCursor,once:!0},PolarGrid:{handler:O.renderPolarGrid,once:!0},PolarAngleAxis:{handler:O.renderPolarAxis},PolarRadiusAxis:{handler:O.renderPolarAxis},Customized:{handler:O.renderCustomized}}),O.clipPathId="".concat((E=C.id)!==null&&E!==void 0?E:Bf("recharts"),"-clip"),O.throttleTriggeredAfterMouseMove=aae(O.triggeredAfterMouseMove,(I=C.throttleDelay)!==null&&I!==void 0?I:1e3/60),O.state={},O}return YKe(w,v),GKe(w,[{key:"componentDidMount",value:function(){var E,I;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(E=this.props.margin.left)!==null&&E!==void 0?E:0,top:(I=this.props.margin.top)!==null&&I!==void 0?I:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var E=this.props,I=E.children,O=E.data,P=E.height,R=E.layout,D=Va(I,ba);if(D){var M=D.props.defaultIndex;if(!(typeof M!="number"||M<0||M>this.state.tooltipTicks.length-1)){var A=this.state.tooltipTicks[M]&&this.state.tooltipTicks[M].value,_=kF(this.state,O,M,A),N=this.state.tooltipTicks[M].coordinate,B=(this.state.offset.top+P)/2,H=R==="horizontal",j=H?{x:N,y:B}:{y:N,x:B},L=this.state.formattedGraphicalItems.find(function(W){var K=W.item;return K.type.name==="Scatter"});L&&(j=Xe(Xe({},j),L.props.points[M].tooltipPosition),_=L.props.points[M].tooltipPayload);var V={activeTooltipIndex:M,isTooltipActive:!0,activeLabel:A,activePayload:_,activeCoordinate:j};this.setState(V),this.renderCursor(D),this.accessibilityManager.setIndex(M)}}}},{key:"getSnapshotBeforeUpdate",value:function(E,I){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==I.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==E.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==E.margin){var O,P;this.accessibilityManager.setDetails({offset:{left:(O=this.props.margin.left)!==null&&O!==void 0?O:0,top:(P=this.props.margin.top)!==null&&P!==void 0?P:0}})}return null}},{key:"componentDidUpdate",value:function(E){fL([Va(E.children,ba)],[Va(this.props.children,ba)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var E=Va(this.props.children,ba);if(E&&typeof E.props.shared=="boolean"){var I=E.props.shared?"axis":"item";return s.indexOf(I)>=0?I:i}return i}},{key:"getMouseInfo",value:function(E){if(!this.container)return null;var I=this.container,O=I.getBoundingClientRect(),P=YVe(O),R={chartX:Math.round(E.pageX-P.left),chartY:Math.round(E.pageY-P.top)},D=O.width/I.offsetWidth||1,M=this.inRange(R.chartX,R.chartY,D);if(!M)return null;var A=this.state,_=A.xAxisMap,N=A.yAxisMap,B=this.getTooltipEventType(),H=zQ(this.state,this.props.data,this.props.layout,M);if(B!=="axis"&&_&&N){var j=Qd(_).scale,L=Qd(N).scale,V=j&&j.invert?j.invert(R.chartX):null,W=L&&L.invert?L.invert(R.chartY):null;return Xe(Xe({},R),{},{xValue:V,yValue:W},H)}return H?Xe(Xe({},R),H):null}},{key:"inRange",value:function(E,I){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,P=this.props.layout,R=E/O,D=I/O;if(P==="horizontal"||P==="vertical"){var M=this.state.offset,A=R>=M.left&&R<=M.left+M.width&&D>=M.top&&D<=M.top+M.height;return A?{x:R,y:D}:null}var _=this.state,N=_.angleAxisMap,B=_.radiusAxisMap;if(N&&B){var H=Qd(N);return HK({x:R,y:D},H)}return null}},{key:"parseEventsOfWrapper",value:function(){var E=this.props.children,I=this.getTooltipEventType(),O=Va(E,ba),P={};O&&I==="axis"&&(O.props.trigger==="click"?P={onClick:this.handleClick}:P={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var R=dT(this.props,this.handleOuterEvent);return Xe(Xe({},R),P)}},{key:"addListener",value:function(){q_.on(W_,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){q_.removeListener(W_,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(E,I,O){for(var P=this.state.formattedGraphicalItems,R=0,D=P.length;R{const t=e.planned.energy>0?e.logged.energy/e.planned.energy*100:100,n=e.planned.energy>0?e.planned.energy-e.logged.energy:e.logged.energy,r=Lr(),[o,i]=je(),a=[{name:"",value:t},{name:"",value:t<100?100-t:0}],s=[r.palette.primary.main,"#C5C5C5"];return Q(Ft,{direction:"row",children:[S(nd,{width:"50%",height:140,children:Q($le,{children:[S(Uc,{height:100,data:a,startAngle:200,endAngle:-20,innerRadius:60,outerRadius:70,paddingAngle:2,dataKey:"value",children:a.map((l,c)=>S(wv,{fill:s[c%s.length]},`cell-${c}`))}),Q("g",{children:[S("text",{x:"50%",y:"45%",fontSize:"1.25em",textAnchor:"middle",children:o("nutrition.valueEnergyKcal",{value:_i(n,i.language)})}),S("text",{x:"50%",y:"60%",fontSize:"1em",textAnchor:"middle",children:e.planned.energy>0&&o(t<100?"nutrition.valueRemaining":"nutrition.valueTooMany")})]})]})}),Q(Ft,{width:"50%",spacing:1,children:[S(Ng,{title:o("nutrition.protein"),percentage:e.percentage.protein,logged:e.logged.protein,planned:e.planned.protein}),S(Ng,{title:o("nutrition.carbohydrates"),percentage:e.percentage.carbohydrates,logged:e.logged.carbohydrates,planned:e.planned.carbohydrates}),S(Ng,{title:o("nutrition.fat"),percentage:e.percentage.fat,logged:e.logged.fat,planned:e.planned.fat})]})]})},hYe=["localeText"],_F=x.createContext(null),Ic=function(t){const{localeText:n}=t,r=$e(t,hYe),{utils:o,localeText:i}=x.useContext(_F)??{utils:void 0,localeText:void 0},a=Pn({props:r,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:f,localeText:h}=a,m=x.useMemo(()=>z({},h,i,n),[h,i,n]),g=x.useMemo(()=>{if(!l)return o||null;const w=new l({locale:f,formats:c,instance:u});if(!w.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation"].join(` -`));return w},[l,f,c,u,o]),y=x.useMemo(()=>g?{minDate:g.date("1900-01-01T00:00:00.000"),maxDate:g.date("2099-12-31T00:00:00.000")}:null,[g]),v=x.useMemo(()=>({utils:g,defaultDates:y,localeText:m}),[y,g,m]);return k.jsx(_F.Provider,{value:v,children:s})},mYe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:z({},e)}}}}),Nle={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",nextStepButtonLabel:"Next",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",timeRangePickerToolbarTitle:"Select time range",clockLabelText:(e,t)=>`Select ${e}. ${t?`Selected time is ${t}`:"No time selected"}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:e=>e?`Choose date, selected date is ${e}`:"Choose date",openTimePickerDialogue:e=>e?`Choose time, selected time is ${e}`:"Choose time",openRangePickerDialogue:e=>e?`Choose range, selected range is ${e}`:"Choose range",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},gYe=Nle;mYe(Nle);const qh=()=>{const e=x.useContext(_F);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` + A `).concat(g,",").concat(g,",0,0,").concat(c,",").concat(t,",").concat(n+o-s*g," Z")}else u="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(o," h ").concat(-r," Z");return u},cqe=function(t,n){if(!t||!n)return!1;var r=t.x,o=t.y,i=n.x,a=n.y,s=n.width,l=n.height;if(Math.abs(s)>0&&Math.abs(l)>0){var c=Math.min(i,i+s),u=Math.max(i,i+s),f=Math.min(a,a+l),h=Math.max(a,a+l);return r>=c&&r<=u&&o>=f&&o<=h}return!1},uqe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Nz=function(t){var n=SY(SY({},uqe),t),r=x.useRef(),o=x.useState(-1),i=tqe(o,2),a=i[0],s=i[1];x.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var I=r.current.getTotalLength();I&&s(I)}catch{}},[]);var l=n.x,c=n.y,u=n.width,f=n.height,h=n.radius,m=n.className,g=n.animationEasing,y=n.animationDuration,v=n.animationBegin,w=n.isAnimationActive,C=n.isUpdateAnimationActive;if(l!==+l||c!==+c||u!==+u||f!==+f||u===0||f===0)return null;var E=fe("recharts-rectangle",m);return C?J.createElement(ol,{canBegin:a>0,from:{width:u,height:f,x:l,y:c},to:{width:u,height:f,x:l,y:c},duration:y,animationEasing:g,isActive:C},function(I){var O=I.width,P=I.height,R=I.x,D=I.y;return J.createElement(ol,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,isActive:w,easing:g},J.createElement("path",VT({},zt(n,!0),{className:E,d:wY(R,D,O,P,h),ref:r})))}):J.createElement("path",VT({},zt(n,!0),{className:E,d:wY(l,c,u,f,h)}))},dqe=["points","className","baseLinePoints","connectNulls"];function yg(){return yg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pqe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function CY(e){return yqe(e)||gqe(e)||mqe(e)||hqe()}function hqe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mqe(e,t){if(e){if(typeof e=="string")return aF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aF(e,t)}}function gqe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yqe(e){if(Array.isArray(e))return aF(e)}function aF(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){EY(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),EY(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},ix=function(t,n){var r=vqe(t);n&&(r=[r.reduce(function(i,a){return[].concat(CY(i),CY(a))},[])]);var o=r.map(function(i){return i.reduce(function(a,s,l){return"".concat(a).concat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return r.length===1?"".concat(o,"Z"):o},bqe=function(t,n,r){var o=ix(t,r);return"".concat(o.slice(-1)==="Z"?o.slice(0,-1):o,"L").concat(ix(n.reverse(),r).slice(1))},xqe=function(t){var n=t.points,r=t.className,o=t.baseLinePoints,i=t.connectNulls,a=fqe(t,dqe);if(!n||!n.length)return null;var s=fe("recharts-polygon",r);if(o&&o.length){var l=a.stroke&&a.stroke!=="none",c=bqe(n,o,i);return J.createElement("g",{className:s},J.createElement("path",yg({},zt(a,!0),{fill:c.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:c})),l?J.createElement("path",yg({},zt(a,!0),{fill:"none",d:ix(n,i)})):null,l?J.createElement("path",yg({},zt(a,!0),{fill:"none",d:ix(o,i)})):null)}var u=ix(n,i);return J.createElement("path",yg({},zt(a,!0),{fill:u.slice(-1)==="Z"?a.fill:"none",className:s,d:u}))};function sF(){return sF=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Iqe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Pqe=function(t,n,r,o,i,a){return"M".concat(t,",").concat(i,"v").concat(o,"M").concat(a,",").concat(n,"h").concat(r)},Aqe=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,i=o===void 0?0:o,a=t.top,s=a===void 0?0:a,l=t.left,c=l===void 0?0:l,u=t.width,f=u===void 0?0:u,h=t.height,m=h===void 0?0:h,g=t.className,y=Oqe(t,Sqe),v=wqe({x:r,y:i,top:s,left:c,width:f,height:m},y);return!mt(r)||!mt(i)||!mt(f)||!mt(m)||!mt(s)||!mt(c)?null:J.createElement("path",lF({},zt(v,!0),{className:fe("recharts-cross",g),d:Pqe(r,i,f,m,s,c)}))},T_,OY;function Mqe(){if(OY)return T_;OY=1;var e=ZI(),t=Gae(),n=Uc();function r(o,i){return o&&o.length?e(o,n(i,2),t):void 0}return T_=r,T_}var Rqe=Mqe();const Dqe=Gn(Rqe);var O_,IY;function kqe(){if(IY)return O_;IY=1;var e=ZI(),t=Uc(),n=qae();function r(o,i){return o&&o.length?e(o,t(i,2),n):void 0}return O_=r,O_}var _qe=kqe();const $qe=Gn(_qe);var Nqe=["cx","cy","angle","ticks","axisLine"],Lqe=["ticks","tick","angle","tickFormatter","stroke"];function Cy(e){"@babel/helpers - typeof";return Cy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cy(e)}function ax(){return ax=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fqe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function jqe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MY(e,t){for(var n=0;neWe?a=o==="outer"?"start":"end":i<-1e-5?a=o==="outer"?"end":"start":a="middle",a}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.cx,i=r.cy,a=r.radius,s=r.axisLine,l=r.axisLineType,c=bp(bp({},zt(this.props,!1)),{},{fill:"none"},zt(s,!1));if(l==="circle")return J.createElement(Tw,_p({className:"recharts-polar-angle-axis-line"},c,{cx:o,cy:i,r:a}));var u=this.props.ticks,f=u.map(function(h){return Nr(o,i,a,h.coordinate)});return J.createElement(xqe,_p({className:"recharts-polar-angle-axis-line"},c,{points:f}))}},{key:"renderTicks",value:function(){var r=this,o=this.props,i=o.ticks,a=o.tick,s=o.tickLine,l=o.tickFormatter,c=o.stroke,u=zt(this.props,!1),f=zt(a,!1),h=bp(bp({},u),{},{fill:"none"},zt(s,!1)),m=i.map(function(g,y){var v=r.getTickLineCoord(g),w=r.getTickTextAnchor(g),C=bp(bp(bp({textAnchor:w},u),{},{stroke:"none",fill:c},f),{},{index:y,payload:g,x:v.x2,y:v.y2});return J.createElement(wn,_p({className:fe("recharts-polar-angle-axis-tick",xse(a)),key:"tick-".concat(g.coordinate)},If(r.props,g,y)),s&&J.createElement("line",_p({className:"recharts-polar-angle-axis-tick-line"},h,v)),a&&t.renderTickItem(a,C,l?l(g.value,y):g.value))});return J.createElement(wn,{className:"recharts-polar-angle-axis-ticks"},m)}},{key:"render",value:function(){var r=this.props,o=r.ticks,i=r.radius,a=r.axisLine;return i<=0||!o||!o.length?null:J.createElement(wn,{className:fe("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,o,i){var a;return J.isValidElement(r)?a=J.cloneElement(r,o):rn(r)?a=r(o):a=J.createElement(wh,_p({},o,{className:"recharts-polar-angle-axis-tick-value"}),i),a}}])}(x.PureComponent);iP(aP,"displayName","PolarAngleAxis");iP(aP,"axisType","angleAxis");iP(aP,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var I_,kY;function tWe(){if(kY)return I_;kY=1;var e=Hie(),t=e(Object.getPrototypeOf,Object);return I_=t,I_}var P_,_Y;function nWe(){if(_Y)return P_;_Y=1;var e=Zu(),t=tWe(),n=ed(),r="[object Object]",o=Function.prototype,i=Object.prototype,a=o.toString,s=i.hasOwnProperty,l=a.call(Object);function c(u){if(!n(u)||e(u)!=r)return!1;var f=t(u);if(f===null)return!0;var h=s.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&a.call(h)==l}return P_=c,P_}var rWe=nWe();const oWe=Gn(rWe);var A_,$Y;function iWe(){if($Y)return A_;$Y=1;var e=Zu(),t=ed(),n="[object Boolean]";function r(o){return o===!0||o===!1||t(o)&&e(o)==n}return A_=r,A_}var aWe=iWe();const sWe=Gn(aWe);function cS(e){"@babel/helpers - typeof";return cS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cS(e)}function GT(){return GT=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:c},to:{upperWidth:u,lowerWidth:f,height:h,x:l,y:c},duration:y,animationEasing:g,isActive:w},function(E){var I=E.upperWidth,O=E.lowerWidth,P=E.height,R=E.x,D=E.y;return J.createElement(ol,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,easing:g},J.createElement("path",GT({},zt(n,!0),{className:C,d:jY(R,D,I,O,P),ref:r})))}):J.createElement("g",null,J.createElement("path",GT({},zt(n,!0),{className:C,d:jY(l,c,u,f,h)})))},vWe=["option","shapeType","propTransformer","activeClassName","isActive"];function uS(e){"@babel/helpers - typeof";return uS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uS(e)}function bWe(e,t){if(e==null)return{};var n=xWe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xWe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function BY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function qT(e){for(var t=1;t0?Ja(E,"paddingAngle",0):0;if(O){var R=no(O.endAngle-O.startAngle,E.endAngle-E.startAngle),D=_r(_r({},E),{},{startAngle:C+P,endAngle:C+R(y)+P});v.push(D),C=D.endAngle}else{var M=E.endAngle,A=E.startAngle,_=no(0,M-A),N=_(y),B=_r(_r({},E),{},{startAngle:C+P,endAngle:C+N+P});v.push(B),C=B.endAngle}}),J.createElement(wn,null,r.renderSectorsStatically(v))})}},{key:"attachKeyboardHandlers",value:function(r){var o=this;r.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var a=++o.state.sectorToFocus%o.sectorRefs.length;o.sectorRefs[a].focus(),o.setState({sectorToFocus:a});break}case"ArrowRight":{var s=--o.state.sectorToFocus<0?o.sectorRefs.length-1:o.state.sectorToFocus%o.sectorRefs.length;o.sectorRefs[s].focus(),o.setState({sectorToFocus:s});break}case"Escape":{o.sectorRefs[o.state.sectorToFocus].blur(),o.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,o=r.sectors,i=r.isAnimationActive,a=this.state.prevSectors;return i&&o&&o.length&&(!a||!Pf(a,o))?this.renderSectorsWithAnimation():this.renderSectorsStatically(o)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,o=this.props,i=o.hide,a=o.sectors,s=o.className,l=o.label,c=o.cx,u=o.cy,f=o.innerRadius,h=o.outerRadius,m=o.isAnimationActive,g=this.state.isAnimationFinished;if(i||!a||!a.length||!mt(c)||!mt(u)||!mt(f)||!mt(h))return null;var y=fe("recharts-pie",s);return J.createElement(wn,{tabIndex:this.props.rootTabIndex,className:y,ref:function(w){r.pieRef=w}},this.renderSectors(),l&&this.renderLabels(a),oi.renderCallByParent(this.props,null,!1),(!m||g)&&Bl.renderCallByParent(this.props,a,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return o.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:o.curSectors,isAnimationFinished:!0}:r.sectors!==o.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,o){return r>o?"start":r=360?C:C-1)*l,I=v-C*m-E,O=o.reduce(function(D,M){var A=Vr(M,w,0);return D+(mt(A)?A:0)},0),P;if(O>0){var R;P=o.map(function(D,M){var A=Vr(D,w,0),_=Vr(D,u,M),N=(mt(A)?A:0)/O,B;M?B=R.endAngle+ta(y)*l*(A!==0?1:0):B=a;var H=B+ta(y)*((A!==0?m:0)+N*I),j=(B+H)/2,L=(g.innerRadius+g.outerRadius)/2,V=[{name:_,value:A,payload:D,dataKey:w,type:h}],W=Nr(g.cx,g.cy,L,j);return R=_r(_r(_r({percent:N,cornerRadius:i,name:_,tooltipPayload:V,midAngle:j,middleRadius:L,tooltipPosition:W},D),g),{},{value:Vr(D,w),startAngle:B,endAngle:H,payload:D,paddingAngle:ta(y)*l}),R})}return _r(_r({},g),{},{sectors:P,data:o})});var M_,UY;function zWe(){if(UY)return M_;UY=1;var e=Math.ceil,t=Math.max;function n(r,o,i,a){for(var s=-1,l=t(e((o-r)/(i||1)),0),c=Array(l);l--;)c[a?l:++s]=r,r+=i;return c}return M_=n,M_}var R_,GY;function Lse(){if(GY)return R_;GY=1;var e=iae(),t=1/0,n=17976931348623157e292;function r(o){if(!o)return o===0?o:0;if(o=e(o),o===t||o===-1/0){var i=o<0?-1:1;return i*n}return o===o?o:0}return R_=r,R_}var D_,qY;function VWe(){if(qY)return D_;qY=1;var e=zWe(),t=qI(),n=Lse();function r(o){return function(i,a,s){return s&&typeof s!="number"&&t(i,a,s)&&(a=s=void 0),i=n(i),a===void 0?(a=i,i=0):a=n(a),s=s===void 0?i0&&r.handleDrag(o.changedTouches[0])}),za(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var o=r.props,i=o.endIndex,a=o.onDragEnd,s=o.startIndex;a==null||a({endIndex:i,startIndex:s})}),r.detachDragEndListener()}),za(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),za(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),za(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),za(r,"handleSlideDragStart",function(o){var i=JY(o)?o.changedTouches[0]:o;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return e8e(t,e),QWe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var o=r.startX,i=r.endX,a=this.state.scaleValues,s=this.props,l=s.gap,c=s.data,u=c.length-1,f=Math.min(o,i),h=Math.max(o,i),m=t.getIndexInRange(a,f),g=t.getIndexInRange(a,h);return{startIndex:m-m%l,endIndex:g===u?u:g-g%l}}},{key:"getTextOfTick",value:function(r){var o=this.props,i=o.data,a=o.tickFormatter,s=o.dataKey,l=Vr(i[r],s,r);return rn(a)?a(l,r):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var o=this.state,i=o.slideMoveStartX,a=o.startX,s=o.endX,l=this.props,c=l.x,u=l.width,f=l.travellerWidth,h=l.startIndex,m=l.endIndex,g=l.onChange,y=r.pageX-i;y>0?y=Math.min(y,c+u-f-s,c+u-f-a):y<0&&(y=Math.max(y,c-a,c-s));var v=this.getIndex({startX:a+y,endX:s+y});(v.startIndex!==h||v.endIndex!==m)&&g&&g(v),this.setState({startX:a+y,endX:s+y,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,o){var i=JY(o)?o.changedTouches[0]:o;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var o=this.state,i=o.brushMoveStartX,a=o.movingTravellerId,s=o.endX,l=o.startX,c=this.state[a],u=this.props,f=u.x,h=u.width,m=u.travellerWidth,g=u.onChange,y=u.gap,v=u.data,w={startX:this.state.startX,endX:this.state.endX},C=r.pageX-i;C>0?C=Math.min(C,f+h-m-c):C<0&&(C=Math.max(C,f-c)),w[a]=c+C;var E=this.getIndex(w),I=E.startIndex,O=E.endIndex,P=function(){var D=v.length-1;return a==="startX"&&(s>l?I%y===0:O%y===0)||sl?O%y===0:I%y===0)||s>l&&O===D};this.setState(za(za({},a,c+C),"brushMoveStartX",r.pageX),function(){g&&P()&&g(E)})}},{key:"handleTravellerMoveKeyboard",value:function(r,o){var i=this,a=this.state,s=a.scaleValues,l=a.startX,c=a.endX,u=this.state[o],f=s.indexOf(u);if(f!==-1){var h=f+r;if(!(h===-1||h>=s.length)){var m=s[h];o==="startX"&&m>=c||o==="endX"&&m<=l||this.setState(za({},o,m),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,o=r.x,i=r.y,a=r.width,s=r.height,l=r.fill,c=r.stroke;return J.createElement("rect",{stroke:c,fill:l,x:o,y:i,width:a,height:s})}},{key:"renderPanorama",value:function(){var r=this.props,o=r.x,i=r.y,a=r.width,s=r.height,l=r.data,c=r.children,u=r.padding,f=x.Children.only(c);return f?J.cloneElement(f,{x:o,y:i,width:a,height:s,margin:u,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(r,o){var i,a,s=this,l=this.props,c=l.y,u=l.travellerWidth,f=l.height,h=l.traveller,m=l.ariaLabel,g=l.data,y=l.startIndex,v=l.endIndex,w=Math.max(r,this.props.x),C=__(__({},zt(this.props,!1)),{},{x:w,y:c,width:u,height:f}),E=m||"Min value: ".concat((i=g[y])===null||i===void 0?void 0:i.name,", Max value: ").concat((a=g[v])===null||a===void 0?void 0:a.name);return J.createElement(wn,{tabIndex:0,role:"slider","aria-label":E,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[o],onTouchStart:this.travellerDragStartHandlers[o],onKeyDown:function(O){["ArrowLeft","ArrowRight"].includes(O.key)&&(O.preventDefault(),O.stopPropagation(),s.handleTravellerMoveKeyboard(O.key==="ArrowRight"?1:-1,o))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,C))}},{key:"renderSlide",value:function(r,o){var i=this.props,a=i.y,s=i.height,l=i.stroke,c=i.travellerWidth,u=Math.min(r,o)+c,f=Math.max(Math.abs(o-r)-c,0);return J.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:u,y:a,width:f,height:s})}},{key:"renderText",value:function(){var r=this.props,o=r.startIndex,i=r.endIndex,a=r.y,s=r.height,l=r.travellerWidth,c=r.stroke,u=this.state,f=u.startX,h=u.endX,m=5,g={pointerEvents:"none",fill:c};return J.createElement(wn,{className:"recharts-brush-texts"},J.createElement(wh,QT({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-m,y:a+s/2},g),this.getTextOfTick(o)),J.createElement(wh,QT({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,h)+l+m,y:a+s/2},g),this.getTextOfTick(i)))}},{key:"render",value:function(){var r=this.props,o=r.data,i=r.className,a=r.children,s=r.x,l=r.y,c=r.width,u=r.height,f=r.alwaysShowText,h=this.state,m=h.startX,g=h.endX,y=h.isTextActive,v=h.isSlideMoving,w=h.isTravellerMoving,C=h.isTravellerFocused;if(!o||!o.length||!mt(s)||!mt(l)||!mt(c)||!mt(u)||c<=0||u<=0)return null;var E=fe("recharts-brush",i),I=J.Children.count(a)===1,O=KWe("userSelect","none");return J.createElement(wn,{className:E,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),I&&this.renderPanorama(),this.renderSlide(m,g),this.renderTravellerLayer(m,"startX"),this.renderTravellerLayer(g,"endX"),(y||v||w||C||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var o=r.x,i=r.y,a=r.width,s=r.height,l=r.stroke,c=Math.floor(i+s/2)-1;return J.createElement(J.Fragment,null,J.createElement("rect",{x:o,y:i,width:a,height:s,fill:l,stroke:"none"}),J.createElement("line",{x1:o+1,y1:c,x2:o+a-1,y2:c,fill:"none",stroke:"#fff"}),J.createElement("line",{x1:o+1,y1:c+2,x2:o+a-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,o){var i;return J.isValidElement(r)?i=J.cloneElement(r,o):rn(r)?i=r(o):i=t.renderDefaultTraveller(o),i}},{key:"getDerivedStateFromProps",value:function(r,o){var i=r.data,a=r.width,s=r.x,l=r.travellerWidth,c=r.updateId,u=r.startIndex,f=r.endIndex;if(i!==o.prevData||c!==o.prevUpdateId)return __({prevData:i,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:a},i&&i.length?n8e({data:i,width:a,x:s,travellerWidth:l,startIndex:u,endIndex:f}):{scale:null,scaleValues:null});if(o.scale&&(a!==o.prevWidth||s!==o.prevX||l!==o.prevTravellerWidth)){o.scale.range([s,s+a-l]);var h=o.scale.domain().map(function(m){return o.scale(m)});return{prevData:i,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:a,startX:o.scale(r.startIndex),endX:o.scale(r.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(r,o){for(var i=r.length,a=0,s=i-1;s-a>1;){var l=Math.floor((a+s)/2);r[l]>o?s=l:a=l}return o>=r[s]?s:a}}])}(x.PureComponent);za(Iy,"displayName","Brush");za(Iy,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var $_,ZY;function r8e(){if(ZY)return $_;ZY=1;var e=lz();function t(n,r){var o;return e(n,function(i,a,s){return o=r(i,a,s),!o}),!!o}return $_=t,$_}var N_,eQ;function o8e(){if(eQ)return N_;eQ=1;var e=Nie(),t=Uc(),n=r8e(),r=Aa(),o=qI();function i(a,s,l){var c=r(a)?e:n;return l&&o(a,s,l)&&(s=void 0),c(a,t(s,3))}return N_=i,N_}var i8e=o8e();const a8e=Gn(i8e);var Pc=function(t,n){var r=t.alwaysShow,o=t.ifOverflow;return r&&(o="extendDomain"),o===n},L_,tQ;function s8e(){if(tQ)return L_;tQ=1;var e=eae();function t(n,r,o){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:o,writable:!0}):n[r]=o}return L_=t,L_}var F_,nQ;function l8e(){if(nQ)return F_;nQ=1;var e=s8e(),t=Jie(),n=Uc();function r(o,i){var a={};return i=n(i,3),t(o,function(s,l,c){e(a,l,i(s,l,c))}),a}return F_=r,F_}var c8e=l8e();const u8e=Gn(c8e);var j_,rQ;function d8e(){if(rQ)return j_;rQ=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function x8e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function S8e(e,t){var n=e.x,r=e.y,o=b8e(e,m8e),i="".concat(n),a=parseInt(i,10),s="".concat(r),l=parseInt(s,10),c="".concat(t.height||o.height),u=parseInt(c,10),f="".concat(t.width||o.width),h=parseInt(f,10);return d0(d0(d0(d0(d0({},t),o),a?{x:a}:{}),l?{y:l}:{}),{},{height:u,width:h,name:t.name,radius:t.radius})}function sQ(e){return J.createElement(WT,pF({shapeType:"rectangle",propTransformer:S8e,activeClassName:"recharts-active-bar"},e))}var w8e=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,o){if(typeof t=="number")return t;var i=typeof r=="number";return i?t(r,o):(i||Af(),n)}},C8e=["value","background"],Vse;function Py(e){"@babel/helpers - typeof";return Py=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Py(e)}function E8e(e,t){if(e==null)return{};var n=T8e(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function T8e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function JT(){return JT=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(j)0&&Math.abs(H)0&&(B=Math.min((ie||0)-(H[se-1]||0),B))}),Number.isFinite(B)){var j=B/N,L=y.layout==="vertical"?r.height:r.width;if(y.padding==="gap"&&(R=j*L/2),y.padding==="no-gap"){var V=na(t.barCategoryGap,j*L),W=j*L/2;R=W-V-(W-V)/L*V}}}o==="xAxis"?D=[r.left+(E.left||0)+(R||0),r.left+r.width-(E.right||0)-(R||0)]:o==="yAxis"?D=l==="horizontal"?[r.top+r.height-(E.bottom||0),r.top+(E.top||0)]:[r.top+(E.top||0)+(R||0),r.top+r.height-(E.bottom||0)-(R||0)]:D=y.range,O&&(D=[D[1],D[0]]);var K=pse(y,i,h),G=K.scale,q=K.realScaleType;G.domain(w).range(D),hse(G);var Y=mse(G,Ol(Ol({},y),{},{realScaleType:q}));o==="xAxis"?(_=v==="top"&&!I||v==="bottom"&&I,M=r.left,A=f[P]-_*y.height):o==="yAxis"&&(_=v==="left"&&!I||v==="right"&&I,M=f[P]-_*y.width,A=r.top);var Z=Ol(Ol(Ol({},y),Y),{},{realScaleType:q,x:M,y:A,scale:G,width:o==="xAxis"?r.width:y.width,height:o==="yAxis"?r.height:y.height});return Z.bandSize=NT(Z,Y),!y.hide&&o==="xAxis"?f[P]+=(_?-1:1)*Z.height:y.hide||(f[P]+=(_?-1:1)*Z.width),Ol(Ol({},m),{},cP({},g,Z))},{})},qse=function(t,n){var r=t.x,o=t.y,i=n.x,a=n.y;return{x:Math.min(r,i),y:Math.min(o,a),width:Math.abs(i-r),height:Math.abs(a-o)}},N8e=function(t){var n=t.x1,r=t.y1,o=t.x2,i=t.y2;return qse({x:n,y:r},{x:o,y:i})},Wse=function(){function e(t){k8e(this,e),this.scale=t}return _8e(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.bandAware,i=r.position;if(n!==void 0){if(i)switch(i){case"start":return this.scale(n);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+a}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(n)+s}default:return this.scale(n)}if(o){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),o=r[0],i=r[r.length-1];return o<=i?n>=o&&n<=i:n>=i&&n<=o}}],[{key:"create",value:function(n){return new e(n)}}])}();cP(Wse,"EPS",1e-4);var Lz=function(t){var n=Object.keys(t).reduce(function(r,o){return Ol(Ol({},r),{},cP({},o,Wse.create(t[o])))},{});return Ol(Ol({},n),{},{apply:function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.bandAware,s=i.position;return u8e(o,function(l,c){return n[c].apply(l,{bandAware:a,position:s})})},isInRange:function(o){return zse(o,function(i,a){return n[a].isInRange(i)})}})};function L8e(e){return(e%180+180)%180}var F8e=function(t){var n=t.width,r=t.height,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=L8e(o),a=i*Math.PI/180,s=Math.atan(r/n),l=a>s&&a-1?l[c?i[u]:u]:void 0}}return V_=r,V_}var H_,pQ;function B8e(){if(pQ)return H_;pQ=1;var e=Lse();function t(n){var r=e(n),o=r%1;return r===r?o?r-o:r:0}return H_=t,H_}var U_,hQ;function z8e(){if(hQ)return U_;hQ=1;var e=Wie(),t=Uc(),n=B8e(),r=Math.max;function o(i,a,s){var l=i==null?0:i.length;if(!l)return-1;var c=s==null?0:n(s);return c<0&&(c=r(l+c,0)),e(i,t(a,3),c)}return U_=o,U_}var G_,mQ;function V8e(){if(mQ)return G_;mQ=1;var e=j8e(),t=z8e(),n=e(t);return G_=n,G_}var H8e=V8e();const U8e=Gn(H8e);var G8e=lie();const q8e=Gn(G8e);var W8e=q8e(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),Fz=x.createContext(void 0),jz=x.createContext(void 0),Kse=x.createContext(void 0),Yse=x.createContext({}),Qse=x.createContext(void 0),Xse=x.createContext(0),Jse=x.createContext(0),gQ=function(t){var n=t.state,r=n.xAxisMap,o=n.yAxisMap,i=n.offset,a=t.clipPathId,s=t.children,l=t.width,c=t.height,u=W8e(i);return J.createElement(Fz.Provider,{value:r},J.createElement(jz.Provider,{value:o},J.createElement(Yse.Provider,{value:i},J.createElement(Kse.Provider,{value:u},J.createElement(Qse.Provider,{value:a},J.createElement(Xse.Provider,{value:c},J.createElement(Jse.Provider,{value:l},s)))))))},K8e=function(){return x.useContext(Qse)},Zse=function(t){var n=x.useContext(Fz);n==null&&Af();var r=n[t];return r==null&&Af(),r},Y8e=function(){var t=x.useContext(Fz);return Qd(t)},Q8e=function(){var t=x.useContext(jz),n=U8e(t,function(r){return zse(r.domain,Number.isFinite)});return n||Qd(t)},ele=function(t){var n=x.useContext(jz);n==null&&Af();var r=n[t];return r==null&&Af(),r},X8e=function(){var t=x.useContext(Kse);return t},J8e=function(){return x.useContext(Yse)},Bz=function(){return x.useContext(Jse)},zz=function(){return x.useContext(Xse)};function Ay(e){"@babel/helpers - typeof";return Ay=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ay(e)}function Z8e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e9e(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne*o)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-o)<=0}function $9e(e,t){return sle(e,t+1)}function N9e(e,t,n,r,o){for(var i=(r||[]).slice(),a=t.start,s=t.end,l=0,c=1,u=a,f=function(){var g=r==null?void 0:r[l];if(g===void 0)return{v:sle(r,c)};var y=l,v,w=function(){return v===void 0&&(v=n(g,y)),v},C=g.coordinate,E=l===0||rO(e,C,w,u,s);E||(l=0,u=a,c+=1),E&&(u=C+e*(w()/2+o),l+=c)},h;c<=i.length;)if(h=f(),h)return h.v;return[]}function mS(e){"@babel/helpers - typeof";return mS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mS(e)}function EQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Di(e){for(var t=1;t0?m.coordinate-v*e:m.coordinate})}else i[h]=m=Di(Di({},m),{},{tickCoord:m.coordinate});var w=rO(e,m.tickCoord,y,s,l);w&&(l=m.tickCoord-e*(y()/2+o),i[h]=Di(Di({},m),{},{isShow:!0}))},u=a-1;u>=0;u--)c(u);return i}function z9e(e,t,n,r,o,i){var a=(r||[]).slice(),s=a.length,l=t.start,c=t.end;if(i){var u=r[s-1],f=n(u,s-1),h=e*(u.coordinate+e*f/2-c);a[s-1]=u=Di(Di({},u),{},{tickCoord:h>0?u.coordinate-h*e:u.coordinate});var m=rO(e,u.tickCoord,function(){return f},l,c);m&&(c=u.tickCoord-e*(f/2+o),a[s-1]=Di(Di({},u),{},{isShow:!0}))}for(var g=i?s-1:s,y=function(C){var E=a[C],I,O=function(){return I===void 0&&(I=n(E,C)),I};if(C===0){var P=e*(E.coordinate-e*O()/2-l);a[C]=E=Di(Di({},E),{},{tickCoord:P<0?E.coordinate-P*e:E.coordinate})}else a[C]=E=Di(Di({},E),{},{tickCoord:E.coordinate});var R=rO(e,E.tickCoord,O,l,c);R&&(l=E.tickCoord+e*(O()/2+o),a[C]=Di(Di({},E),{},{isShow:!0}))},v=0;v=2?ta(o[1].coordinate-o[0].coordinate):1,w=_9e(i,v,m);return l==="equidistantPreserveStart"?N9e(v,w,y,o,a):(l==="preserveStart"||l==="preserveStartEnd"?h=z9e(v,w,y,o,a,l==="preserveStartEnd"):h=B9e(v,w,y,o,a),h.filter(function(C){return C.isShow}))}var V9e=["viewBox"],H9e=["viewBox"],U9e=["ticks"];function Dy(e){"@babel/helpers - typeof";return Dy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dy(e)}function bg(){return bg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function G9e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function q9e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OQ(e,t){for(var n=0;n0?l(this.props):l(m)),a<=0||s<=0||!g||!g.length?null:J.createElement(wn,{className:fe("recharts-cartesian-axis",c),ref:function(v){r.layerReference=v}},i&&this.renderAxisLine(),this.renderTicks(g,this.state.fontSize,this.state.letterSpacing),oi.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,o,i){var a;return J.isValidElement(r)?a=J.cloneElement(r,o):rn(r)?a=r(o):a=J.createElement(wh,bg({},o,{className:"recharts-cartesian-axis-tick-value"}),i),a}}])}(x.Component);Gz(Av,"displayName","CartesianAxis");Gz(Av,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Z9e=["x1","y1","x2","y2","key"],e7e=["offset"];function Eh(e){"@babel/helpers - typeof";return Eh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eh(e)}function IQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $i(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function o7e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var i7e=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,o=t.x,i=t.y,a=t.width,s=t.height,l=t.ry;return J.createElement("rect",{x:o,y:i,ry:l,width:a,height:s,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function ule(e,t){var n;if(J.isValidElement(e))n=J.cloneElement(e,t);else if(rn(e))n=e(t);else{var r=t.x1,o=t.y1,i=t.x2,a=t.y2,s=t.key,l=PQ(t,Z9e),c=zt(l,!1);c.offset;var u=PQ(c,e7e);n=J.createElement("line",Hp({},u,{x1:r,y1:o,x2:i,y2:a,fill:"none",key:s}))}return n}function a7e(e){var t=e.x,n=e.width,r=e.horizontal,o=r===void 0?!0:r,i=e.horizontalPoints;if(!o||!i||!i.length)return null;var a=i.map(function(s,l){var c=$i($i({},e),{},{x1:t,y1:s,x2:t+n,y2:s,key:"line-".concat(l),index:l});return ule(o,c)});return J.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function s7e(e){var t=e.y,n=e.height,r=e.vertical,o=r===void 0?!0:r,i=e.verticalPoints;if(!o||!i||!i.length)return null;var a=i.map(function(s,l){var c=$i($i({},e),{},{x1:s,y1:t,x2:s,y2:t+n,key:"line-".concat(l),index:l});return ule(o,c)});return J.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function l7e(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,o=e.y,i=e.width,a=e.height,s=e.horizontalPoints,l=e.horizontal,c=l===void 0?!0:l;if(!c||!t||!t.length)return null;var u=s.map(function(h){return Math.round(h+o-o)}).sort(function(h,m){return h-m});o!==u[0]&&u.unshift(0);var f=u.map(function(h,m){var g=!u[m+1],y=g?o+a-h:u[m+1]-h;if(y<=0)return null;var v=m%t.length;return J.createElement("rect",{key:"react-".concat(m),y:h,x:r,height:y,width:i,stroke:"none",fill:t[v],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return J.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function c7e(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,o=e.fillOpacity,i=e.x,a=e.y,s=e.width,l=e.height,c=e.verticalPoints;if(!n||!r||!r.length)return null;var u=c.map(function(h){return Math.round(h+i-i)}).sort(function(h,m){return h-m});i!==u[0]&&u.unshift(0);var f=u.map(function(h,m){var g=!u[m+1],y=g?i+s-h:u[m+1]-h;if(y<=0)return null;var v=m%r.length;return J.createElement("rect",{key:"react-".concat(m),x:h,y:a,width:y,height:l,stroke:"none",fill:r[v],fillOpacity:o,className:"recharts-cartesian-grid-bg"})});return J.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var u7e=function(t,n){var r=t.xAxis,o=t.width,i=t.height,a=t.offset;return fse(Uz($i($i($i({},Av.defaultProps),r),{},{ticks:Ru(r,!0),viewBox:{x:0,y:0,width:o,height:i}})),a.left,a.left+a.width,n)},d7e=function(t,n){var r=t.yAxis,o=t.width,i=t.height,a=t.offset;return fse(Uz($i($i($i({},Av.defaultProps),r),{},{ticks:Ru(r,!0),viewBox:{x:0,y:0,width:o,height:i}})),a.top,a.top+a.height,n)},Jm={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Uf(e){var t,n,r,o,i,a,s=Bz(),l=zz(),c=J8e(),u=$i($i({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Jm.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Jm.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Jm.horizontal,horizontalFill:(o=e.horizontalFill)!==null&&o!==void 0?o:Jm.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:Jm.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:Jm.verticalFill,x:mt(e.x)?e.x:c.left,y:mt(e.y)?e.y:c.top,width:mt(e.width)?e.width:c.width,height:mt(e.height)?e.height:c.height}),f=u.x,h=u.y,m=u.width,g=u.height,y=u.syncWithTicks,v=u.horizontalValues,w=u.verticalValues,C=Y8e(),E=Q8e();if(!mt(m)||m<=0||!mt(g)||g<=0||!mt(f)||f!==+f||!mt(h)||h!==+h)return null;var I=u.verticalCoordinatesGenerator||u7e,O=u.horizontalCoordinatesGenerator||d7e,P=u.horizontalPoints,R=u.verticalPoints;if((!P||!P.length)&&rn(O)){var D=v&&v.length,M=O({yAxis:E?$i($i({},E),{},{ticks:D?v:E.ticks}):void 0,width:s,height:l,offset:c},D?!0:y);jl(Array.isArray(M),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Eh(M),"]")),Array.isArray(M)&&(P=M)}if((!R||!R.length)&&rn(I)){var A=w&&w.length,_=I({xAxis:C?$i($i({},C),{},{ticks:A?w:C.ticks}):void 0,width:s,height:l,offset:c},A?!0:y);jl(Array.isArray(_),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Eh(_),"]")),Array.isArray(_)&&(R=_)}return J.createElement("g",{className:"recharts-cartesian-grid"},J.createElement(i7e,{fill:u.fill,fillOpacity:u.fillOpacity,x:u.x,y:u.y,width:u.width,height:u.height,ry:u.ry}),J.createElement(a7e,Hp({},u,{offset:c,horizontalPoints:P,xAxis:C,yAxis:E})),J.createElement(s7e,Hp({},u,{offset:c,verticalPoints:R,xAxis:C,yAxis:E})),J.createElement(l7e,Hp({},u,{horizontalPoints:P})),J.createElement(c7e,Hp({},u,{verticalPoints:R})))}Uf.displayName="CartesianGrid";var f7e=["type","layout","connectNulls","ref"],p7e=["key"];function ky(e){"@babel/helpers - typeof";return ky=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ky(e)}function AQ(e,t){if(e==null)return{};var n=h7e(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function h7e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function sx(){return sx=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nf){m=[].concat(Zm(l.slice(0,g)),[f-y]);break}var v=m.length%2===0?[0,h]:[h];return[].concat(Zm(t.repeat(l,u)),Zm(m),v).map(function(w){return"".concat(w,"px")}).join(", ")}),Il(n,"id",Bf("recharts-line-")),Il(n,"pathRef",function(a){n.mainCurve=a}),Il(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Il(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return E7e(t,e),x7e(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,s=i.xAxis,l=i.yAxis,c=i.layout,u=i.children,f=sa(u,Pv);if(!f)return null;var h=function(y,v){return{x:y.x,y:y.y,value:y.value,errorVal:Vr(y.payload,v)}},m={clipPath:r?"url(#clipPath-".concat(o,")"):null};return J.createElement(wn,m,f.map(function(g){return J.cloneElement(g,{key:"bar-".concat(g.props.dataKey),data:a,xAxis:s,yAxis:l,layout:c,dataPointFormatter:h})}))}},{key:"renderDots",value:function(r,o,i){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,c=s.points,u=s.dataKey,f=zt(this.props,!1),h=zt(l,!0),m=c.map(function(y,v){var w=Ba(Ba(Ba({key:"dot-".concat(v),r:3},f),h),{},{index:v,cx:y.x,cy:y.y,value:y.value,dataKey:u,payload:y.payload,points:c});return t.renderDotItem(l,w)}),g={clipPath:r?"url(#clipPath-".concat(o?"":"dots-").concat(i,")"):null};return J.createElement(wn,sx({className:"recharts-line-dots",key:"dots"},g),m)}},{key:"renderCurveStatically",value:function(r,o,i,a){var s=this.props,l=s.type,c=s.layout,u=s.connectNulls;s.ref;var f=AQ(s,f7e),h=Ba(Ba(Ba({},zt(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:o?"url(#clipPath-".concat(i,")"):null,points:r},a),{},{type:l,layout:c,connectNulls:u});return J.createElement(vf,sx({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,o){var i=this,a=this.props,s=a.points,l=a.strokeDasharray,c=a.isAnimationActive,u=a.animationBegin,f=a.animationDuration,h=a.animationEasing,m=a.animationId,g=a.animateNewValues,y=a.width,v=a.height,w=this.state,C=w.prevPoints,E=w.totalLength;return J.createElement(ol,{begin:u,duration:f,isActive:c,easing:h,from:{t:0},to:{t:1},key:"line-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(I){var O=I.t;if(C){var P=C.length/s.length,R=s.map(function(N,B){var H=Math.floor(B*P);if(C[H]){var j=C[H],L=no(j.x,N.x),V=no(j.y,N.y);return Ba(Ba({},N),{},{x:L(O),y:V(O)})}if(g){var W=no(y*2,N.x),K=no(v/2,N.y);return Ba(Ba({},N),{},{x:W(O),y:K(O)})}return Ba(Ba({},N),{},{x:N.x,y:N.y})});return i.renderCurveStatically(R,r,o)}var D=no(0,E),M=D(O),A;if(l){var _="".concat(l).split(/[,\s]+/gim).map(function(N){return parseFloat(N)});A=i.getStrokeDasharray(M,E,_)}else A=i.generateSimpleStrokeDasharray(E,M);return i.renderCurveStatically(s,r,o,{strokeDasharray:A})})}},{key:"renderCurve",value:function(r,o){var i=this.props,a=i.points,s=i.isAnimationActive,l=this.state,c=l.prevPoints,u=l.totalLength;return s&&a&&a.length&&(!c&&u>0||!Pf(c,a))?this.renderCurveWithAnimation(r,o):this.renderCurveStatically(a,r,o)}},{key:"render",value:function(){var r,o=this.props,i=o.hide,a=o.dot,s=o.points,l=o.className,c=o.xAxis,u=o.yAxis,f=o.top,h=o.left,m=o.width,g=o.height,y=o.isAnimationActive,v=o.id;if(i||!s||!s.length)return null;var w=this.state.isAnimationFinished,C=s.length===1,E=fe("recharts-line",l),I=c&&c.allowDataOverflow,O=u&&u.allowDataOverflow,P=I||O,R=on(v)?this.id:v,D=(r=zt(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},M=D.r,A=M===void 0?3:M,_=D.strokeWidth,N=_===void 0?2:_,B=pie(a)?a:{},H=B.clipDot,j=H===void 0?!0:H,L=A*2+N;return J.createElement(wn,{className:E},I||O?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(R)},J.createElement("rect",{x:I?h:h-m/2,y:O?f:f-g/2,width:I?m:m*2,height:O?g:g*2})),!j&&J.createElement("clipPath",{id:"clipPath-dots-".concat(R)},J.createElement("rect",{x:h-L/2,y:f-L/2,width:m+L,height:g+L}))):null,!C&&this.renderCurve(P,R),this.renderErrorBar(P,R),(C||a)&&this.renderDots(P,j,R),(!y||w)&&Bl.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:o.curPoints}:r.points!==o.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,o){for(var i=r.length%2!==0?[].concat(Zm(r),[0]):r,a=[],s=0;s=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function P7e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Up(){return Up=Object.assign?Object.assign.bind():function(e){for(var t=1;t0||!Pf(u,a)||!Pf(f,s))?this.renderAreaWithAnimation(r,o):this.renderAreaStatically(a,s,r,o)}},{key:"render",value:function(){var r,o=this.props,i=o.hide,a=o.dot,s=o.points,l=o.className,c=o.top,u=o.left,f=o.xAxis,h=o.yAxis,m=o.width,g=o.height,y=o.isAnimationActive,v=o.id;if(i||!s||!s.length)return null;var w=this.state.isAnimationFinished,C=s.length===1,E=fe("recharts-area",l),I=f&&f.allowDataOverflow,O=h&&h.allowDataOverflow,P=I||O,R=on(v)?this.id:v,D=(r=zt(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},M=D.r,A=M===void 0?3:M,_=D.strokeWidth,N=_===void 0?2:_,B=pie(a)?a:{},H=B.clipDot,j=H===void 0?!0:H,L=A*2+N;return J.createElement(wn,{className:E},I||O?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(R)},J.createElement("rect",{x:I?u:u-m/2,y:O?c:c-g/2,width:I?m:m*2,height:O?g:g*2})),!j&&J.createElement("clipPath",{id:"clipPath-dots-".concat(R)},J.createElement("rect",{x:u-L/2,y:c-L/2,width:m+L,height:g+L}))):null,C?null:this.renderArea(P,R),(a||C)&&this.renderDots(P,j,R),(!y||w)&&Bl.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:o.curPoints,prevBaseLine:o.curBaseLine}:r.points!==o.curPoints||r.baseLine!==o.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])}(x.PureComponent);ple=Gf;wc(Gf,"displayName","Area");wc(Gf,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!td.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});wc(Gf,"getBaseValue",function(e,t,n,r){var o=e.layout,i=e.baseValue,a=t.props.baseValue,s=a??i;if(mt(s)&&typeof s=="number")return s;var l=o==="horizontal"?r:n,c=l.scale.domain();if(l.type==="number"){var u=Math.max(c[0],c[1]),f=Math.min(c[0],c[1]);return s==="dataMin"?f:s==="dataMax"||u<0?u:Math.max(Math.min(c[0],c[1]),0)}return s==="dataMin"?c[0]:s==="dataMax"?c[1]:c[0]});wc(Gf,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,o=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,s=e.bandSize,l=e.dataKey,c=e.stackedData,u=e.dataStartIndex,f=e.displayedData,h=e.offset,m=t.layout,g=c&&c.length,y=ple.getBaseValue(t,n,r,o),v=m==="horizontal",w=!1,C=f.map(function(I,O){var P;g?P=c[u+O]:(P=Vr(I,l),Array.isArray(P)?w=!0:P=[y,P]);var R=P[1]==null||g&&Vr(I,l)==null;return v?{x:Sy({axis:r,ticks:i,bandSize:s,entry:I,index:O}),y:R?null:o.scale(P[1]),value:P,payload:I}:{x:R?null:r.scale(P[1]),y:Sy({axis:o,ticks:a,bandSize:s,entry:I,index:O}),value:P,payload:I}}),E;return g||w?E=C.map(function(I){var O=Array.isArray(I.value)?I.value[0]:null;return v?{x:I.x,y:O!=null&&I.y!=null?o.scale(O):null}:{x:O!=null?r.scale(O):null,y:I.y}}):E=v?o.scale(y):r.scale(y),Bd({points:C,baseLine:E,layout:m,isRange:w},h)});wc(Gf,"renderDotItem",function(e,t){var n;if(J.isValidElement(e))n=J.cloneElement(e,t);else if(rn(e))n=e(t);else{var r=fe("recharts-area-dot",typeof e!="boolean"?e.className:""),o=t.key,i=hle(t,I7e);n=J.createElement(Tw,Up({},i,{key:o,className:r}))}return n});function $y(e){"@babel/helpers - typeof";return $y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$y(e)}function N7e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L7e(e,t){for(var n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function q7e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function W7e(e){var t=e.option,n=e.isActive,r=G7e(e,U7e);return typeof t=="string"?J.createElement(WT,lx({option:J.createElement(HI,lx({type:t},r)),isActive:n,shapeType:"symbols"},r)):J.createElement(WT,lx({option:t,isActive:n,shapeType:"symbols"},r))}function Ny(e){"@babel/helpers - typeof";return Ny=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ny(e)}function cx(){return cx=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function HKe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function UKe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GKe(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?a:t&&t.length&&mt(o)&&mt(i)?t.slice(o,i+1):[]};function _le(e){return e==="number"?[0,"auto"]:void 0}var $F=function(t,n,r,o){var i=t.graphicalItems,a=t.tooltipAxis,s=mP(n,t);return r<0||!i||!i.length||r>=s.length?null:i.reduce(function(l,c){var u,f=(u=c.props.data)!==null&&u!==void 0?u:n;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(a.dataKey&&!a.allowDuplicatedCategory){var m=f===void 0?s:f;h=dT(m,a.dataKey,o)}else h=f&&f[r]||s[r];return h?[].concat(By(l),[yse(c,h)]):l},[])},VQ=function(t,n,r,o){var i=o||{x:t.chartX,y:t.chartY},a=rYe(i,r),s=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,u=o3e(a,s,c,l);if(u>=0&&c){var f=c[u]&&c[u].value,h=$F(t,n,u,f),m=oYe(r,s,u,i);return{activeTooltipIndex:u,activeLabel:f,activePayload:h,activeCoordinate:m}}return null},iYe=function(t,n){var r=n.axes,o=n.graphicalItems,i=n.axisType,a=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,u=t.layout,f=t.children,h=t.stackOffset,m=dse(u,i);return r.reduce(function(g,y){var v,w=y.type.defaultProps!==void 0?Xe(Xe({},y.type.defaultProps),y.props):y.props,C=w.type,E=w.dataKey,I=w.allowDataOverflow,O=w.allowDuplicatedCategory,P=w.scale,R=w.ticks,D=w.includeHidden,M=w[a];if(g[M])return g;var A=mP(t.data,{graphicalItems:o.filter(function(Y){var Z,ie=a in Y.props?Y.props[a]:(Z=Y.type.defaultProps)===null||Z===void 0?void 0:Z[a];return ie===M}),dataStartIndex:l,dataEndIndex:c}),_=A.length,N,B,H;RKe(w.domain,I,C)&&(N=qL(w.domain,null,I),m&&(C==="number"||P!=="auto")&&(H=rx(A,E,"category")));var j=_le(C);if(!N||N.length===0){var L,V=(L=w.domain)!==null&&L!==void 0?L:j;if(E){if(N=rx(A,E,C),C==="category"&&m){var W=JFe(N);O&&W?(B=N,N=YT(0,_)):O||(N=zK(V,N,y).reduce(function(Y,Z){return Y.indexOf(Z)>=0?Y:[].concat(By(Y),[Z])},[]))}else if(C==="category")O?N=N.filter(function(Y){return Y!==""&&!on(Y)}):N=zK(V,N,y).reduce(function(Y,Z){return Y.indexOf(Z)>=0||Z===""||on(Z)?Y:[].concat(By(Y),[Z])},[]);else if(C==="number"){var K=c3e(A,o.filter(function(Y){var Z,ie,se=a in Y.props?Y.props[a]:(Z=Y.type.defaultProps)===null||Z===void 0?void 0:Z[a],ce="hide"in Y.props?Y.props.hide:(ie=Y.type.defaultProps)===null||ie===void 0?void 0:ie.hide;return se===M&&(D||!ce)}),E,i,u);K&&(N=K)}m&&(C==="number"||P!=="auto")&&(H=rx(A,E,"category"))}else m?N=YT(0,_):s&&s[M]&&s[M].hasStack&&C==="number"?N=h==="expand"?[0,1]:gse(s[M].stackGroups,l,c):N=use(A,o.filter(function(Y){var Z=a in Y.props?Y.props[a]:Y.type.defaultProps[a],ie="hide"in Y.props?Y.props.hide:Y.type.defaultProps.hide;return Z===M&&(D||!ie)}),C,u,!0);if(C==="number")N=DF(f,N,M,i,R),V&&(N=qL(V,N,I));else if(C==="category"&&V){var G=V,q=N.every(function(Y){return G.indexOf(Y)>=0});q&&(N=G)}}return Xe(Xe({},g),{},sn({},M,Xe(Xe({},w),{},{axisType:i,domain:N,categoricalDomain:H,duplicateDomain:B,originalDomain:(v=w.domain)!==null&&v!==void 0?v:j,isCategorical:m,layout:u})))},{})},aYe=function(t,n){var r=n.graphicalItems,o=n.Axis,i=n.axisType,a=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,u=t.layout,f=t.children,h=mP(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:c}),m=h.length,g=dse(u,i),y=-1;return r.reduce(function(v,w){var C=w.type.defaultProps!==void 0?Xe(Xe({},w.type.defaultProps),w.props):w.props,E=C[a],I=_le("number");if(!v[E]){y++;var O;return g?O=YT(0,m):s&&s[E]&&s[E].hasStack?(O=gse(s[E].stackGroups,l,c),O=DF(f,O,E,i)):(O=qL(I,use(h,r.filter(function(P){var R,D,M=a in P.props?P.props[a]:(R=P.type.defaultProps)===null||R===void 0?void 0:R[a],A="hide"in P.props?P.props.hide:(D=P.type.defaultProps)===null||D===void 0?void 0:D.hide;return M===E&&!A}),"number",u),o.defaultProps.allowDataOverflow),O=DF(f,O,E,i)),Xe(Xe({},v),{},sn({},E,Xe(Xe({axisType:i},o.defaultProps),{},{hide:!0,orientation:Ja(tYe,"".concat(i,".").concat(y%2),null),domain:O,originalDomain:I,isCategorical:g,layout:u})))}return v},{})},sYe=function(t,n){var r=n.axisType,o=r===void 0?"xAxis":r,i=n.AxisComp,a=n.graphicalItems,s=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,u=t.children,f="".concat(o,"Id"),h=sa(u,i),m={};return h&&h.length?m=iYe(t,{axes:h,graphicalItems:a,axisType:o,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:c}):a&&a.length&&(m=aYe(t,{Axis:i,graphicalItems:a,axisType:o,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:c})),m},lYe=function(t){var n=Qd(t),r=Ru(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:cz(r,function(o){return o.coordinate}),tooltipAxis:n,tooltipAxisBandSize:NT(n,r)}},HQ=function(t){var n=t.children,r=t.defaultShowTooltip,o=Va(n,Iy),i=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),o&&o.props&&(o.props.startIndex>=0&&(i=o.props.startIndex),o.props.endIndex>=0&&(a=o.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!r}},cYe=function(t){return!t||!t.length?!1:t.some(function(n){var r=ku(n&&n.type);return r&&r.indexOf("Bar")>=0})},UQ=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},uYe=function(t,n){var r=t.props,o=t.graphicalItems,i=t.xAxisMap,a=i===void 0?{}:i,s=t.yAxisMap,l=s===void 0?{}:s,c=r.width,u=r.height,f=r.children,h=r.margin||{},m=Va(f,Iy),g=Va(f,Oc),y=Object.keys(l).reduce(function(O,P){var R=l[P],D=R.orientation;return!R.mirror&&!R.hide?Xe(Xe({},O),{},sn({},D,O[D]+R.width)):O},{left:h.left||0,right:h.right||0}),v=Object.keys(a).reduce(function(O,P){var R=a[P],D=R.orientation;return!R.mirror&&!R.hide?Xe(Xe({},O),{},sn({},D,Ja(O,"".concat(D))+R.height)):O},{top:h.top||0,bottom:h.bottom||0}),w=Xe(Xe({},v),y),C=w.bottom;m&&(w.bottom+=m.props.height||Iy.defaultProps.height),g&&n&&(w=s3e(w,o,r,n));var E=c-w.left-w.right,I=u-w.top-w.bottom;return Xe(Xe({brushBottom:C},w),{},{width:Math.max(E,0),height:Math.max(I,0)})},dYe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},Pw=function(t){var n=t.chartName,r=t.GraphicalChild,o=t.defaultTooltipEventType,i=o===void 0?"axis":o,a=t.validateTooltipEventTypes,s=a===void 0?["axis"]:a,l=t.axisComponents,c=t.legendContent,u=t.formatAxisMap,f=t.defaultProps,h=function(w,C){var E=C.graphicalItems,I=C.stackGroups,O=C.offset,P=C.updateId,R=C.dataStartIndex,D=C.dataEndIndex,M=w.barSize,A=w.layout,_=w.barGap,N=w.barCategoryGap,B=w.maxBarSize,H=UQ(A),j=H.numericAxisName,L=H.cateAxisName,V=cYe(E),W=[];return E.forEach(function(K,G){var q=mP(w.data,{graphicalItems:[K],dataStartIndex:R,dataEndIndex:D}),Y=K.type.defaultProps!==void 0?Xe(Xe({},K.type.defaultProps),K.props):K.props,Z=Y.dataKey,ie=Y.maxBarSize,se=Y["".concat(j,"Id")],ce=Y["".concat(L,"Id")],ye={},Se=l.reduce(function(Ie,te){var Te=C["".concat(te.axisType,"Map")],De=Y["".concat(te.axisType,"Id")];Te&&Te[De]||te.axisType==="zAxis"||Af();var Ve=Te[De];return Xe(Xe({},Ie),{},sn(sn({},te.axisType,Ve),"".concat(te.axisType,"Ticks"),Ru(Ve)))},ye),ne=Se[L],le=Se["".concat(L,"Ticks")],de=I&&I[se]&&I[se].hasStack&&v3e(K,I[se].stackGroups),oe=ku(K.type).indexOf("Bar")>=0,ue=NT(ne,le),pe=[],Ee=V&&i3e({barSize:M,stackGroups:I,totalSize:dYe(Se,L)});if(oe){var xe,Re,he=on(ie)?B:ie,Pe=(xe=(Re=NT(ne,le,!0))!==null&&Re!==void 0?Re:he)!==null&&xe!==void 0?xe:0;pe=a3e({barGap:_,barCategoryGap:N,bandSize:Pe!==ue?Pe:ue,sizeList:Ee[ce],maxBarSize:he}),Pe!==ue&&(pe=pe.map(function(Ie){return Xe(Xe({},Ie),{},{position:Xe(Xe({},Ie.position),{},{offset:Ie.position.offset-Pe/2})})}))}var ve=K&&K.type&&K.type.getComposedData;ve&&W.push({props:Xe(Xe({},ve(Xe(Xe({},Se),{},{displayedData:q,props:w,dataKey:Z,item:K,bandSize:ue,barPosition:pe,offset:O,stackedData:de,layout:A,dataStartIndex:R,dataEndIndex:D}))),{},sn(sn(sn({key:K.key||"item-".concat(G)},j,Se[j]),L,Se[L]),"animationId",P)),childIndex:dje(K,w.children),item:K})}),W},m=function(w,C){var E=w.props,I=w.dataStartIndex,O=w.dataEndIndex,P=w.updateId;if(!n8({props:E}))return null;var R=E.children,D=E.layout,M=E.stackOffset,A=E.data,_=E.reverseStackOrder,N=UQ(D),B=N.numericAxisName,H=N.cateAxisName,j=sa(R,r),L=g3e(A,j,"".concat(B,"Id"),"".concat(H,"Id"),M,_),V=l.reduce(function(Y,Z){var ie="".concat(Z.axisType,"Map");return Xe(Xe({},Y),{},sn({},ie,sYe(E,Xe(Xe({},Z),{},{graphicalItems:j,stackGroups:Z.axisType===B&&L,dataStartIndex:I,dataEndIndex:O}))))},{}),W=uYe(Xe(Xe({},V),{},{props:E,graphicalItems:j}),C==null?void 0:C.legendBBox);Object.keys(V).forEach(function(Y){V[Y]=u(E,V[Y],W,Y.replace("Map",""),n)});var K=V["".concat(H,"Map")],G=lYe(K),q=h(E,Xe(Xe({},V),{},{dataStartIndex:I,dataEndIndex:O,updateId:P,graphicalItems:j,stackGroups:L,offset:W}));return Xe(Xe({formattedGraphicalItems:q,graphicalItems:j,offset:W,stackGroups:L},G),V)},g=function(v){function w(C){var E,I,O;return UKe(this,w),O=WKe(this,w,[C]),sn(O,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),sn(O,"accessibilityManager",new MKe),sn(O,"handleLegendBBoxUpdate",function(P){if(P){var R=O.state,D=R.dataStartIndex,M=R.dataEndIndex,A=R.updateId;O.setState(Xe({legendBBox:P},m({props:O.props,dataStartIndex:D,dataEndIndex:M,updateId:A},Xe(Xe({},O.state),{},{legendBBox:P}))))}}),sn(O,"handleReceiveSyncEvent",function(P,R,D){if(O.props.syncId===P){if(D===O.eventEmitterSymbol&&typeof O.props.syncMethod!="function")return;O.applySyncEvent(R)}}),sn(O,"handleBrushChange",function(P){var R=P.startIndex,D=P.endIndex;if(R!==O.state.dataStartIndex||D!==O.state.dataEndIndex){var M=O.state.updateId;O.setState(function(){return Xe({dataStartIndex:R,dataEndIndex:D},m({props:O.props,dataStartIndex:R,dataEndIndex:D,updateId:M},O.state))}),O.triggerSyncEvent({dataStartIndex:R,dataEndIndex:D})}}),sn(O,"handleMouseEnter",function(P){var R=O.getMouseInfo(P);if(R){var D=Xe(Xe({},R),{},{isTooltipActive:!0});O.setState(D),O.triggerSyncEvent(D);var M=O.props.onMouseEnter;rn(M)&&M(D,P)}}),sn(O,"triggeredAfterMouseMove",function(P){var R=O.getMouseInfo(P),D=R?Xe(Xe({},R),{},{isTooltipActive:!0}):{isTooltipActive:!1};O.setState(D),O.triggerSyncEvent(D);var M=O.props.onMouseMove;rn(M)&&M(D,P)}),sn(O,"handleItemMouseEnter",function(P){O.setState(function(){return{isTooltipActive:!0,activeItem:P,activePayload:P.tooltipPayload,activeCoordinate:P.tooltipPosition||{x:P.cx,y:P.cy}}})}),sn(O,"handleItemMouseLeave",function(){O.setState(function(){return{isTooltipActive:!1}})}),sn(O,"handleMouseMove",function(P){P.persist(),O.throttleTriggeredAfterMouseMove(P)}),sn(O,"handleMouseLeave",function(P){O.throttleTriggeredAfterMouseMove.cancel();var R={isTooltipActive:!1};O.setState(R),O.triggerSyncEvent(R);var D=O.props.onMouseLeave;rn(D)&&D(R,P)}),sn(O,"handleOuterEvent",function(P){var R=uje(P),D=Ja(O.props,"".concat(R));if(R&&rn(D)){var M,A;/.*touch.*/i.test(R)?A=O.getMouseInfo(P.changedTouches[0]):A=O.getMouseInfo(P),D((M=A)!==null&&M!==void 0?M:{},P)}}),sn(O,"handleClick",function(P){var R=O.getMouseInfo(P);if(R){var D=Xe(Xe({},R),{},{isTooltipActive:!0});O.setState(D),O.triggerSyncEvent(D);var M=O.props.onClick;rn(M)&&M(D,P)}}),sn(O,"handleMouseDown",function(P){var R=O.props.onMouseDown;if(rn(R)){var D=O.getMouseInfo(P);R(D,P)}}),sn(O,"handleMouseUp",function(P){var R=O.props.onMouseUp;if(rn(R)){var D=O.getMouseInfo(P);R(D,P)}}),sn(O,"handleTouchMove",function(P){P.changedTouches!=null&&P.changedTouches.length>0&&O.throttleTriggeredAfterMouseMove(P.changedTouches[0])}),sn(O,"handleTouchStart",function(P){P.changedTouches!=null&&P.changedTouches.length>0&&O.handleMouseDown(P.changedTouches[0])}),sn(O,"handleTouchEnd",function(P){P.changedTouches!=null&&P.changedTouches.length>0&&O.handleMouseUp(P.changedTouches[0])}),sn(O,"handleDoubleClick",function(P){var R=O.props.onDoubleClick;if(rn(R)){var D=O.getMouseInfo(P);R(D,P)}}),sn(O,"handleContextMenu",function(P){var R=O.props.onContextMenu;if(rn(R)){var D=O.getMouseInfo(P);R(D,P)}}),sn(O,"triggerSyncEvent",function(P){O.props.syncId!==void 0&&K_.emit(Y_,O.props.syncId,P,O.eventEmitterSymbol)}),sn(O,"applySyncEvent",function(P){var R=O.props,D=R.layout,M=R.syncMethod,A=O.state.updateId,_=P.dataStartIndex,N=P.dataEndIndex;if(P.dataStartIndex!==void 0||P.dataEndIndex!==void 0)O.setState(Xe({dataStartIndex:_,dataEndIndex:N},m({props:O.props,dataStartIndex:_,dataEndIndex:N,updateId:A},O.state)));else if(P.activeTooltipIndex!==void 0){var B=P.chartX,H=P.chartY,j=P.activeTooltipIndex,L=O.state,V=L.offset,W=L.tooltipTicks;if(!V)return;if(typeof M=="function")j=M(W,P);else if(M==="value"){j=-1;for(var K=0;K=0){var de,oe;if(B.dataKey&&!B.allowDuplicatedCategory){var ue=typeof B.dataKey=="function"?le:"payload.".concat(B.dataKey.toString());de=dT(K,ue,j),oe=G&&q&&dT(q,ue,j)}else de=K==null?void 0:K[H],oe=G&&q&&q[H];if(ce||se){var pe=P.props.activeIndex!==void 0?P.props.activeIndex:H;return[x.cloneElement(P,Xe(Xe(Xe({},M.props),Se),{},{activeIndex:pe})),null,null]}if(!on(de))return[ne].concat(By(O.renderActivePoints({item:M,activePoint:de,basePoint:oe,childIndex:H,isRange:G})))}else{var Ee,xe=(Ee=O.getItemByXY(O.state.activeCoordinate))!==null&&Ee!==void 0?Ee:{graphicalItem:ne},Re=xe.graphicalItem,he=Re.item,Pe=he===void 0?P:he,ve=Re.childIndex,Ie=Xe(Xe(Xe({},M.props),Se),{},{activeIndex:ve});return[x.cloneElement(Pe,Ie),null,null]}return G?[ne,null,null]:[ne,null]}),sn(O,"renderCustomized",function(P,R,D){return x.cloneElement(P,Xe(Xe({key:"recharts-customized-".concat(D)},O.props),O.state))}),sn(O,"renderMap",{CartesianGrid:{handler:G1,once:!0},ReferenceArea:{handler:O.renderReferenceElement},ReferenceLine:{handler:G1},ReferenceDot:{handler:O.renderReferenceElement},XAxis:{handler:G1},YAxis:{handler:G1},Brush:{handler:O.renderBrush,once:!0},Bar:{handler:O.renderGraphicChild},Line:{handler:O.renderGraphicChild},Area:{handler:O.renderGraphicChild},Radar:{handler:O.renderGraphicChild},RadialBar:{handler:O.renderGraphicChild},Scatter:{handler:O.renderGraphicChild},Pie:{handler:O.renderGraphicChild},Funnel:{handler:O.renderGraphicChild},Tooltip:{handler:O.renderCursor,once:!0},PolarGrid:{handler:O.renderPolarGrid,once:!0},PolarAngleAxis:{handler:O.renderPolarAxis},PolarRadiusAxis:{handler:O.renderPolarAxis},Customized:{handler:O.renderCustomized}}),O.clipPathId="".concat((E=C.id)!==null&&E!==void 0?E:Bf("recharts"),"-clip"),O.throttleTriggeredAfterMouseMove=sae(O.triggeredAfterMouseMove,(I=C.throttleDelay)!==null&&I!==void 0?I:1e3/60),O.state={},O}return QKe(w,v),qKe(w,[{key:"componentDidMount",value:function(){var E,I;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(E=this.props.margin.left)!==null&&E!==void 0?E:0,top:(I=this.props.margin.top)!==null&&I!==void 0?I:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var E=this.props,I=E.children,O=E.data,P=E.height,R=E.layout,D=Va(I,ba);if(D){var M=D.props.defaultIndex;if(!(typeof M!="number"||M<0||M>this.state.tooltipTicks.length-1)){var A=this.state.tooltipTicks[M]&&this.state.tooltipTicks[M].value,_=$F(this.state,O,M,A),N=this.state.tooltipTicks[M].coordinate,B=(this.state.offset.top+P)/2,H=R==="horizontal",j=H?{x:N,y:B}:{y:N,x:B},L=this.state.formattedGraphicalItems.find(function(W){var K=W.item;return K.type.name==="Scatter"});L&&(j=Xe(Xe({},j),L.props.points[M].tooltipPosition),_=L.props.points[M].tooltipPayload);var V={activeTooltipIndex:M,isTooltipActive:!0,activeLabel:A,activePayload:_,activeCoordinate:j};this.setState(V),this.renderCursor(D),this.accessibilityManager.setIndex(M)}}}},{key:"getSnapshotBeforeUpdate",value:function(E,I){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==I.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==E.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==E.margin){var O,P;this.accessibilityManager.setDetails({offset:{left:(O=this.props.margin.left)!==null&&O!==void 0?O:0,top:(P=this.props.margin.top)!==null&&P!==void 0?P:0}})}return null}},{key:"componentDidUpdate",value:function(E){hL([Va(E.children,ba)],[Va(this.props.children,ba)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var E=Va(this.props.children,ba);if(E&&typeof E.props.shared=="boolean"){var I=E.props.shared?"axis":"item";return s.indexOf(I)>=0?I:i}return i}},{key:"getMouseInfo",value:function(E){if(!this.container)return null;var I=this.container,O=I.getBoundingClientRect(),P=QVe(O),R={chartX:Math.round(E.pageX-P.left),chartY:Math.round(E.pageY-P.top)},D=O.width/I.offsetWidth||1,M=this.inRange(R.chartX,R.chartY,D);if(!M)return null;var A=this.state,_=A.xAxisMap,N=A.yAxisMap,B=this.getTooltipEventType(),H=VQ(this.state,this.props.data,this.props.layout,M);if(B!=="axis"&&_&&N){var j=Qd(_).scale,L=Qd(N).scale,V=j&&j.invert?j.invert(R.chartX):null,W=L&&L.invert?L.invert(R.chartY):null;return Xe(Xe({},R),{},{xValue:V,yValue:W},H)}return H?Xe(Xe({},R),H):null}},{key:"inRange",value:function(E,I){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,P=this.props.layout,R=E/O,D=I/O;if(P==="horizontal"||P==="vertical"){var M=this.state.offset,A=R>=M.left&&R<=M.left+M.width&&D>=M.top&&D<=M.top+M.height;return A?{x:R,y:D}:null}var _=this.state,N=_.angleAxisMap,B=_.radiusAxisMap;if(N&&B){var H=Qd(N);return UK({x:R,y:D},H)}return null}},{key:"parseEventsOfWrapper",value:function(){var E=this.props.children,I=this.getTooltipEventType(),O=Va(E,ba),P={};O&&I==="axis"&&(O.props.trigger==="click"?P={onClick:this.handleClick}:P={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var R=fT(this.props,this.handleOuterEvent);return Xe(Xe({},R),P)}},{key:"addListener",value:function(){K_.on(Y_,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){K_.removeListener(Y_,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(E,I,O){for(var P=this.state.formattedGraphicalItems,R=0,D=P.length;R{const t=e.planned.energy>0?e.logged.energy/e.planned.energy*100:100,n=e.planned.energy>0?e.planned.energy-e.logged.energy:e.logged.energy,r=Lr(),[o,i]=je(),a=[{name:"",value:t},{name:"",value:t<100?100-t:0}],s=[r.palette.primary.main,"#C5C5C5"];return Q(Ft,{direction:"row",children:[S(nd,{width:"50%",height:140,children:Q(Nle,{children:[S(Gc,{height:100,data:a,startAngle:200,endAngle:-20,innerRadius:60,outerRadius:70,paddingAngle:2,dataKey:"value",children:a.map((l,c)=>S(Ev,{fill:s[c%s.length]},`cell-${c}`))}),Q("g",{children:[S("text",{x:"50%",y:"45%",fontSize:"1.25em",textAnchor:"middle",children:o("nutrition.valueEnergyKcal",{value:_i(n,i.language)})}),S("text",{x:"50%",y:"60%",fontSize:"1em",textAnchor:"middle",children:e.planned.energy>0&&o(t<100?"nutrition.valueRemaining":"nutrition.valueTooMany")})]})]})}),Q(Ft,{width:"50%",spacing:1,children:[S(Lg,{title:o("nutrition.protein"),percentage:e.percentage.protein,logged:e.logged.protein,planned:e.planned.protein}),S(Lg,{title:o("nutrition.carbohydrates"),percentage:e.percentage.carbohydrates,logged:e.logged.carbohydrates,planned:e.planned.carbohydrates}),S(Lg,{title:o("nutrition.fat"),percentage:e.percentage.fat,logged:e.logged.fat,planned:e.planned.fat})]})]})},mYe=["localeText"],NF=x.createContext(null),Ys=function(t){const{localeText:n}=t,r=$e(t,mYe),{utils:o,localeText:i}=x.useContext(NF)??{utils:void 0,localeText:void 0},a=Pn({props:r,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:f,localeText:h}=a,m=x.useMemo(()=>z({},h,i,n),[h,i,n]),g=x.useMemo(()=>{if(!l)return o||null;const w=new l({locale:f,formats:c,instance:u});if(!w.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation"].join(` +`));return w},[l,f,c,u,o]),y=x.useMemo(()=>g?{minDate:g.date("1900-01-01T00:00:00.000"),maxDate:g.date("2099-12-31T00:00:00.000")}:null,[g]),v=x.useMemo(()=>({utils:g,defaultDates:y,localeText:m}),[y,g,m]);return k.jsx(NF.Provider,{value:v,children:s})},gYe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:z({},e)}}}}),Lle={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",nextStepButtonLabel:"Next",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",timeRangePickerToolbarTitle:"Select time range",clockLabelText:(e,t)=>`Select ${e}. ${t?`Selected time is ${t}`:"No time selected"}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:e=>e?`Choose date, selected date is ${e}`:"Choose date",openTimePickerDialogue:e=>e?`Choose time, selected time is ${e}`:"Choose time",openRangePickerDialogue:e=>e?`Choose range, selected range is ${e}`:"Choose range",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},yYe=Lle;gYe(Lle);const Wh=()=>{const e=x.useContext(NF);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` `));if(e.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` -`));const t=x.useMemo(()=>z({},gYe,e.localeText),[e.localeText]);return x.useMemo(()=>z({},e,{localeText:t}),[e,t])},xn=()=>qh().utils,Lle=()=>qh().defaultDates,Wh=e=>{const t=xn(),n=x.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current},Ei=()=>qh().localeText,yYe=Ot(k.jsx("path",{d:"M7 10l5 5 5-5z"})),vYe=Ot(k.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),bYe=Ot(k.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),Fle=Ot(k.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"})),xYe=Ot(k.jsxs(x.Fragment,{children:[k.jsx("path",{d:"M11.99 2C6.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"}),k.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]})),SYe=Ot(k.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"})),wYe=Ot(k.jsxs(x.Fragment,{children:[k.jsx("path",{d:"M11.99 2C6.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"}),k.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]})),CYe=Ot(k.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));function EYe(e){return qe("MuiPickersArrowSwitcher",e)}Ke("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const jle=x.createContext(()=>!0);function TYe(){return x.useContext(jle)}const Ble=x.createContext(null);function zle(){return x.useContext(Ble)}const Gz=x.createContext(null),Gc=()=>{const e=x.useContext(Gz);if(e==null)throw new Error("MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component");return e},Vle=x.createContext(null),Hle=x.createContext({ownerState:{isPickerDisabled:!1,isPickerReadOnly:!1,isPickerValueEmpty:!1,isPickerOpen:!1,pickerVariant:"desktop",pickerOrientation:"portrait"},rootRefObject:{current:null},labelId:void 0,dismissViews:()=>{},hasUIView:!0,getCurrentViewMode:()=>"UI",triggerElement:null,viewContainerRole:null,defaultActionBarActions:[],onPopperExited:void 0});function Ule(e){const{contextValue:t,actionsContextValue:n,privateContextValue:r,fieldPrivateContextValue:o,isValidContextValue:i,localeText:a,children:s}=e;return k.jsx(Gz.Provider,{value:t,children:k.jsx(Vle.Provider,{value:n,children:k.jsx(Hle.Provider,{value:r,children:k.jsx(Ble.Provider,{value:o,children:k.jsx(jle.Provider,{value:i,children:k.jsx(Ic,{localeText:a,children:s})})})})})})}const Ur=()=>x.useContext(Hle),OYe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],IYe=["ownerState"],PYe=["ownerState"],AYe=ae("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),MYe=ae("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),UQ=ae(pn,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),RYe=e=>Me({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},EYe,e),Gle=x.forwardRef(function(t,n){const r=yr(),o=Pn({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:s,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:f,nextLabel:h,isPreviousDisabled:m,isPreviousHidden:g,onGoToPrevious:y,previousLabel:v,labelId:w,classes:C}=o,E=$e(o,OYe),{ownerState:I}=Ur(),O=RYe(C),P={isDisabled:c,isHidden:u,goTo:f,label:h},R={isDisabled:m,isHidden:g,goTo:y,label:v},D=(s==null?void 0:s.previousIconButton)??UQ,M=Dn({elementType:D,externalSlotProps:l==null?void 0:l.previousIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"end",onClick:R.goTo},ownerState:z({},I,{isButtonHidden:R.isHidden??!1}),className:fe(O.button,O.previousIconButton)}),A=(s==null?void 0:s.nextIconButton)??UQ,_=Dn({elementType:A,externalSlotProps:l==null?void 0:l.nextIconButton,additionalProps:{size:"medium",title:P.label,"aria-label":P.label,disabled:P.isDisabled,edge:"start",onClick:P.goTo},ownerState:z({},I,{isButtonHidden:P.isHidden??!1}),className:fe(O.button,O.nextIconButton)}),N=(s==null?void 0:s.leftArrowIcon)??vYe,B=Dn({elementType:N,externalSlotProps:l==null?void 0:l.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:I,className:O.leftArrowIcon}),H=$e(B,IYe),j=(s==null?void 0:s.rightArrowIcon)??bYe,L=Dn({elementType:j,externalSlotProps:l==null?void 0:l.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:I,className:O.rightArrowIcon}),V=$e(L,PYe);return k.jsxs(AYe,z({ref:n,className:fe(O.root,a),ownerState:I},E,{children:[k.jsx(D,z({},M,{children:r?k.jsx(j,z({},V)):k.jsx(N,z({},H))})),i?k.jsx(at,{variant:"subtitle1",component:"span",id:w,children:i}):k.jsx(MYe,{className:O.spacer,ownerState:I}),k.jsx(A,z({},_,{children:r?k.jsx(N,z({},H)):k.jsx(j,z({},V))}))]}))}),gc=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),qz=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let i;if(e!=null)i=e;else if(o.includes(t))i=t;else if(o.length>0)i=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:i}},qle=["hours","minutes","seconds"],DYe=["hours","minutes","seconds","meridiem"],Th=e=>qle.includes(e),xg=e=>DYe.includes(e),kYe=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,gS=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,_Ye=(e,t,n,r)=>{const o=gS(r.getHours(e),t,n);return r.setHours(e,o)},GQ=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Pw=(e,t)=>(n,r)=>e?t.isAfter(n,r):GQ(n,t)>GQ(r,t),dO=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return gc(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:gc(n,["minutes"])?o.minutes:gc(n,["seconds"])?o.seconds:gc(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:gc(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`},Wle={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function $Ye(e){const{steps:t,isViewMatchingStep:n,onStepChange:r}=e;return o=>{if(t==null)return Wle;const i=t.findIndex(s=>n(o.view,s)),a=i===-1||i===t.length-1?null:t[i+1];return{hasNextStep:a!=null,hasSeveralSteps:t.length>1,goToNextStep:()=>{a!=null&&r(z({},o,{step:a}))},areViewsInSameStep:(s,l)=>{const c=t.find(f=>n(s,f)),u=t.find(f=>n(l,f));return c===u}}}}function Aw({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:a,onFocusedViewChange:s,getStepNavigation:l}){const c=x.useRef(n),u=x.useRef(o),f=x.useRef(o.includes(n)?n:o[0]),[h,m]=ia({name:"useViews",state:"view",controlled:r,default:f.current}),g=x.useRef(i?h:null),[y,v]=ia({name:"useViews",state:"focusedView",controlled:a,default:g.current}),w=l?l({setView:m,view:h,defaultView:f.current,views:o}):Wle;x.useEffect(()=>{(c.current&&c.current!==n||u.current&&u.current.some(M=>!o.includes(M)))&&(m(o.includes(n)?n:o[0]),u.current=o,c.current=n)},[n,m,h,o]);const C=o.indexOf(h),E=o[C-1]??null,I=o[C+1]??null,O=Ze((M,A)=>{v(A?M:_=>M===_?null:_),s==null||s(M,A)}),P=Ze(M=>{O(M,!0),M!==h&&(m(M),t&&t(M))}),R=Ze(()=>{I&&P(I)}),D=Ze((M,A,_)=>{const N=A==="finish",B=_?o.indexOf(_){const i=o.date(void 0,r),a=o.startOfMonth(t&&o.isBefore(i,n)?i:n);return!o.isAfter(a,e)},[t,n,e,o,r])}function LYe(e,{disablePast:t,minDate:n,timezone:r}){const o=xn();return x.useMemo(()=>{const i=o.date(void 0,r),a=o.startOfMonth(t&&o.isAfter(i,n)?i:n);return!o.isBefore(a,e)},[t,n,e,o,r])}function mP(e,t,n,r){const o=xn(),i=x.useMemo(()=>o.isValid(e)?e:null,[o,e]),a=kYe(i,o),s=x.useCallback(l=>{const c=i==null?null:_Ye(i,l,!!t,o);n(c,r??"partial")},[t,i,n,r,o]);return{meridiemMode:a,handleMeridiemChange:s}}const yS=36,gP=2,jy=320,FYe=280,By=336,Kle=232,j0=48,yP=ae("div")({overflow:"hidden",width:jy,maxHeight:By,display:"flex",flexDirection:"column",margin:"0 auto"});function jYe(e){return qe("MuiTimeClock",e)}Ke("MuiTimeClock",["root","arrowSwitcher"]);const zy=220,_u=36,vS={x:zy/2,y:zy/2},Yle={x:vS.x,y:0},BYe=Yle.x-vS.x,zYe=Yle.y-vS.y,VYe=e=>e*(180/Math.PI),Qle=(e,t,n)=>{const r=t-vS.x,o=n-vS.y,i=Math.atan2(BYe,zYe)-Math.atan2(r,o);let a=VYe(i);a=Math.round(a/e)*e,a%=360;const s=Math.floor(a/e)||0,l=r**2+o**2,c=Math.sqrt(l);return{value:s,distance:c}},HYe=(e,t,n=1)=>{const r=n*6;let{value:o}=Qle(r,e,t);return o=o*n%60,o},UYe=(e,t,n)=>{const{value:r,distance:o}=Qle(30,e,t);let i=r||12;return n?i%=12:oMe({root:["root"],thumb:["thumb"]},GYe,e),KYe=ae("div",{name:"MuiClockPointer",slot:"Root"})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{isClockPointerAnimated:!0},style:{transition:e.transitions.create(["transform","height"])}}]})),YYe=ae("div",{name:"MuiClockPointer",slot:"Thumb"})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${_u/2}px)`,border:`${(_u-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{isClockPointerBetweenTwoValues:!1},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function QYe(e){const t=Pn({props:e,name:"MuiClockPointer"}),{className:n,classes:r,isBetweenTwoClockValues:o,isInner:i,type:a,viewValue:s}=t,l=$e(t,qYe),c=x.useRef(a);x.useEffect(()=>{c.current=a},[a]);const{ownerState:u}=Ur(),f=z({},u,{isClockPointerAnimated:c.current!==a,isClockPointerBetweenTwoValues:o}),h=WYe(r),m=()=>{let y=360/(a==="hours"?12:60)*s;return a==="hours"&&s>12&&(y-=360),{height:Math.round((i?.26:.4)*zy),transform:`rotateZ(${y}deg)`}};return k.jsx(KYe,z({style:m(),className:fe(h.root,n),ownerState:f},l,{children:k.jsx(YYe,{ownerState:f,className:h.thumb})}))}function XYe(e){return qe("MuiClock",e)}Ke("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);const fO=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},bS=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:a,timezone:s})=>{const l=fO(a,a.date(void 0,s),e);n&&a.isBefore(o,l)&&(o=l),t&&a.isAfter(r,l)&&(r=l);let c=e,u=e;for(a.isBefore(e,o)&&(c=o,u=null),a.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&a.isAfter(c,r)&&(c=null),u&&a.isBefore(u,o)&&(u=null),c){if(!i(c))return c;c=a.addDays(c,1)}if(u){if(!i(u))return u;u=a.addDays(u,-1)}}return null},ZYe=(e,t)=>e.isValid(t)?t:null,pO=(e,t,n)=>t==null||!e.isValid(t)?n:t,JYe=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Wz=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},Kz=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),Dl=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},Xle=["year","month","day"],Vy=e=>Xle.includes(e),xS=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return gc(n,["year"])?o.year:gc(n,["month"])?o.month:gc(n,["day"])?o.dayOfMonth:gc(n,["month","year"])?`${o.month} ${o.year}`:gc(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},eQe=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},tQe=(e,t)=>{const n={root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton",t.clockMeridiemMode==="am"&&"selected"],pmButton:["pmButton",t.clockMeridiemMode==="pm"&&"selected"],meridiemText:["meridiemText"]};return Me(n,XYe,e)},nQe=ae("div",{name:"MuiClock",slot:"Root"})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),rQe=ae("div",{name:"MuiClock",slot:"Clock"})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),oQe=ae("div",{name:"MuiClock",slot:"Wrapper"})({"&:focus":{outline:"none"}}),iQe=ae("div",{name:"MuiClock",slot:"SquareMask"})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{isClockDisabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),aQe=ae("div",{name:"MuiClock",slot:"Pin"})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),Zle=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:_u,variants:[{props:{clockMeridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),sQe=ae(pn,{name:"MuiClock",slot:"AmButton"})(({theme:e})=>z({},Zle(e,"am"),{position:"absolute",left:8})),lQe=ae(pn,{name:"MuiClock",slot:"PmButton"})(({theme:e})=>z({},Zle(e,"pm"),{position:"absolute",right:8})),qQ=ae(at,{name:"MuiClock",slot:"MeridiemText"})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function cQe(e){const t=Pn({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:i,value:a,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:f,selectedId:h,type:m,viewValue:g,viewRange:[y,v],disabled:w=!1,readOnly:C,className:E,classes:I}=t,O=xn(),P=Ei(),{ownerState:R}=Ur(),D=z({},R,{isClockDisabled:w,clockMeridiemMode:c}),M=x.useRef(!1),A=tQe(I,D),_=l(g,m),N=!n&&m==="hours"&&(g<1||g>12),B=(se,ce)=>{w||C||l(se,m)||f(se,ce)},H=(se,ce)=>{let{offsetX:ye,offsetY:Se}=se;if(ye===void 0){const le=se.target.getBoundingClientRect();ye=se.changedTouches[0].clientX-le.left,Se=se.changedTouches[0].clientY-le.top}const ne=m==="seconds"||m==="minutes"?HYe(ye,Se,u):UYe(ye,Se,!!n);B(ne,ce)},j=se=>{M.current=!0,H(se,"shallow")},L=se=>{M.current&&(H(se,"finish"),M.current=!1),se.preventDefault()},V=se=>{se.buttons>0&&H(se.nativeEvent,"shallow")},W=se=>{M.current&&(M.current=!1),H(se.nativeEvent,"finish")},K=m==="hours"?!1:g%5!==0,G=m==="minutes"?u:1,q=x.useRef(null);In(()=>{o&&q.current.focus()},[o]);const Y=se=>Math.max(y,Math.min(v,se)),J=se=>(se+(v+1))%(v+1),ie=se=>{if(!M.current)switch(se.key){case"Home":B(y,"partial"),se.preventDefault();break;case"End":B(v,"partial"),se.preventDefault();break;case"ArrowUp":B(J(g+G),"partial"),se.preventDefault();break;case"ArrowDown":B(J(g-G),"partial"),se.preventDefault();break;case"PageUp":B(Y(g+5),"partial"),se.preventDefault();break;case"PageDown":B(Y(g-5),"partial"),se.preventDefault();break;case"Enter":case" ":B(g,"finish"),se.preventDefault();break}};return k.jsxs(nQe,{className:fe(A.root,E),children:[k.jsxs(rQe,{className:A.clock,children:[k.jsx(iQe,{onTouchMove:j,onTouchStart:j,onTouchEnd:L,onMouseUp:W,onMouseMove:V,ownerState:D,className:A.squareMask}),!_&&k.jsxs(x.Fragment,{children:[k.jsx(aQe,{className:A.pin}),a!=null&&k.jsx(QYe,{type:m,viewValue:g,isInner:N,isBetweenTwoClockValues:K})]}),k.jsx(oQe,{"aria-activedescendant":h,"aria-label":P.clockLabelText(m,a==null?null:O.format(a,n?"fullTime12h":"fullTime24h")),ref:q,role:"listbox",onKeyDown:ie,tabIndex:0,className:A.wrapper,children:i})]}),n&&r&&k.jsxs(x.Fragment,{children:[k.jsx(sQe,{onClick:C?void 0:()=>s("am"),disabled:w||c===null,ownerState:D,className:A.amButton,title:Dl(O,"am"),children:k.jsx(qQ,{variant:"caption",className:A.meridiemText,children:Dl(O,"am")})}),k.jsx(lQe,{disabled:w||c===null,onClick:C?void 0:()=>s("pm"),ownerState:D,className:A.pmButton,title:Dl(O,"pm"),children:k.jsx(qQ,{variant:"caption",className:A.meridiemText,children:Dl(O,"pm")})})]})]})}function uQe(e){return qe("MuiClockNumber",e)}const G1=Ke("MuiClockNumber",["root","selected","disabled"]),dQe=["className","classes","disabled","index","inner","label","selected"],fQe=(e,t)=>{const n={root:["root",t.isClockNumberSelected&&"selected",t.isClockNumberDisabled&&"disabled"]};return Me(n,uQe,e)},pQe=ae("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${G1.disabled}`]:t.disabled},{[`&.${G1.selected}`]:t.selected}]})(({theme:e})=>({height:_u,width:_u,position:"absolute",left:`calc((100% - ${_u}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${G1.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${G1.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{isClockNumberInInnerRing:!0},style:z({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function Jle(e){const t=Pn({props:e,name:"MuiClockNumber"}),{className:n,classes:r,disabled:o,index:i,inner:a,label:s,selected:l}=t,c=$e(t,dQe),{ownerState:u}=Ur(),f=z({},u,{isClockNumberInInnerRing:a,isClockNumberSelected:l,isClockNumberDisabled:o}),h=fQe(r,f),m=i%12/12*Math.PI*2-Math.PI/2,g=(zy-_u-2)/2*(a?.65:1),y=Math.round(Math.cos(m)*g),v=Math.round(Math.sin(m)*g);return k.jsx(pQe,z({className:fe(h.root,n),"aria-disabled":o?!0:void 0,"aria-selected":l?!0:void 0,role:"option",style:{transform:`translate(${y}px, ${v+(zy-_u)/2}px`},ownerState:f},c,{children:s}))}const hQe=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:i})=>{const a=t?i.getHours(t):null,s=[],l=e?1:0,c=e?12:23,u=f=>a===null?!1:e?f===12?a===12||a===0:a===f||a-12===f:a===f;for(let f=l;f<=c;f+=1){let h=f.toString();f===0&&(h="00");const m=!e&&(f===0||f>12);h=i.formatNumber(h);const g=u(f);s.push(k.jsx(Jle,{id:g?o:void 0,index:f,inner:m,selected:g,disabled:r(f),label:h,"aria-label":n(h)},f))}return s},WQ=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([a,s],l)=>{const c=a===t;return k.jsx(Jle,{label:s,id:c?o:void 0,index:l+1,inner:!1,disabled:n(a),selected:c,"aria-label":r(s)},a)})},qf=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:i,valueManager:a})=>{const s=xn(),[l,c]=ia({name:e,state:"value",controlled:n,default:r??a.emptyValue}),u=x.useMemo(()=>a.getTimezone(s,l),[s,a,l]),f=Ze(y=>u==null?y:a.setTimezone(s,u,y)),h=x.useMemo(()=>t||u||(o?s.getTimezone(o):"default"),[t,u,o,s]),m=x.useMemo(()=>a.setTimezone(s,h,l),[a,s,h,l]),g=Ze((y,...v)=>{const w=f(y);c(w),i==null||i(w,...v)});return{value:m,handleValueChange:g,timezone:h}},Al={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},mQe=e=>Math.max(...e.map(t=>Al[t.type]??1)),u0=(e,t,n)=>{if(t===Al.year)return e.startOfYear(n);if(t===Al.month)return e.startOfMonth(n);if(t===Al.day)return e.startOfDay(n);let r=n;return t{let i=o?o():u0(t,n,Kz(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=u0(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=u0(t,n,e.maxDate));const a=Pw(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=u0(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:fO(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=u0(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:fO(t,i,e.maxTime))),i},ece=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` -`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},vP=(e,t)=>{const n=[],r=e.date(void 0,"default"),o=e.startOfWeek(r),i=e.endOfWeek(r);let a=o;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(s=>e.formatByString(s,t))},tce=(e,t,n,r)=>{switch(n){case"month":return Wz(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return vP(e,r);case"meridiem":{const o=e.date(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(i=>e.formatByString(i,r))}default:return[]}},KQ="s",yQe=["0","1","2","3","4","5","6","7","8","9"],vQe=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),KQ)==="0"?yQe:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),KQ))},Oh=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let o=0;o-1&&(n.push(i.toString()),r="")}return n.join("")},Yz=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),YQ=(e,t)=>{const n=Oh(e,t);return n!==" "&&!Number.isNaN(Number(n))},Qz=(e,t)=>Number(e).toString().padStart(t,"0"),nce=(e,t,n,r,o)=>{if(o.type==="day"&&o.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,o.format)}let i=t.toString();return o.hasLeadingZerosInInput&&(i=Qz(i,o.maxLength)),Yz(i,r)},Xz=(e,t,n)=>{let r=e.value||e.placeholder;const o=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(Oh(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},QQ=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),bQe=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,rce=(e,t,n,r)=>{if(t!=="digit")return!1;const o=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&r==="YY"?!0:e.formatByString(e.setYear(o,1),r).startsWith("0");case"month":return e.formatByString(e.startOfYear(o),r).length>1;case"day":return e.formatByString(e.startOfMonth(o),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),r).length>1;case"hours":return e.formatByString(e.setHours(o,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),r).length>1;default:throw new Error("Invalid section type")}},xQe=(e,t,n)=>{const r=t.some(l=>l.type==="day"),o=[],i=[];for(let l=0;le.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),wQe=(e,t,n)=>{const o=e.map(i=>{const a=Xz(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},CQe=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),i=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:s}=Wz(e,r).reduce((l,c)=>{const u=e.getDaysInMonth(c);return u>l.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:c}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:bQe(e,l)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:l})=>({minimum:1,maximum:e.isValid(l)?e.getDaysInMonth(l):a,longestMonth:s}),weekDay:({format:l,contentType:c})=>{if(c==="digit"){const u=vP(e,l).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const c=e.getHours(i);return Oh(e.formatByString(e.endOfDay(r),l),t)!==c.toString()?{minimum:1,maximum:Number(Oh(e.formatByString(e.startOfDay(r),l),t))}:{minimum:0,maximum:c}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},EQe=(e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{let o=e.formatByString(n,t.format);t.hasLeadingZerosInInput&&(o=Qz(o,t.maxLength));const i=vP(e,t.format),a=i.indexOf(o),l=i.indexOf(t.value)-a;return e.addDays(n,l)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const o=e.getHours(n)<12,i=e.getHours(r);return o&&i>=12?e.addHours(r,-12):!o&&i<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}},XQ={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},ZQ=(e,t,n,r,o)=>[...n].sort((i,a)=>XQ[i.type]-XQ[a.type]).reduce((i,a)=>!o||a.modified?EQe(e,a,t,i):i,r),TQe=()=>navigator.userAgent.toLowerCase().includes("android"),OQe=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,f=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let i=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex((l,c)=>{var u;return c>=i&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),a===-1&&(a=e.length-1);for(let l=a;l>=i;l-=1)o[l]=s,r[s]=l,s-=1;i=a+1}return e.forEach((l,c)=>{const u=o[c],f=u===0?null:r[u-1],h=u===e.length-1?null:r[u+1];n[c]={leftIndex:f,rightIndex:h}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},$F=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(r=>r.type===e);return n===-1?null:n}return e},IQe=["value","referenceDate"],mo={emptyValue:null,getTodayValue:Kz,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=$e(e,IQe);return r.utils.isValid(t)?t:n??gQe(r)},cleanValue:ZYe,areValuesEqual:JYe,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},Zz={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:SQe,getV6InputValueFromSections:wQe,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>z({},t,{value:""}))},Jz=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const i=x.useMemo(()=>mo.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:Al.day,timezone:o,getTodayDate:()=>Kz(n,o,"date")}),[]);return e??i},PQe=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","timezone"],AQe=e=>Me({root:["root"],arrowSwitcher:["arrowSwitcher"]},jYe,e),MQe=ae(yP,{name:"MuiTimeClock",slot:"Root"})({display:"flex",flexDirection:"column",position:"relative"}),RQe=ae(Gle,{name:"MuiTimeClock",slot:"ArrowSwitcher"})({position:"absolute",right:12,top:15}),DQe=["hours","minutes"],kQe=x.forwardRef(function(t,n){const r=xn(),o=Pn({props:t,name:"MuiTimeClock"}),{ampm:i=r.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:s,slots:l,slotProps:c,value:u,defaultValue:f,referenceDate:h,disableIgnoringDatePartForTimeValidation:m=!1,maxTime:g,minTime:y,disableFuture:v,disablePast:w,minutesStep:C=1,shouldDisableTime:E,showViewSwitcher:I,onChange:O,view:P,views:R=DQe,openTo:D,onViewChange:M,focusedView:A,onFocusedViewChange:_,className:N,classes:B,disabled:H,readOnly:j,timezone:L}=o,V=$e(o,PQe),{value:W,handleValueChange:K,timezone:G}=qf({name:"TimeClock",timezone:L,value:u,defaultValue:f,referenceDate:h,onChange:O,valueManager:mo}),q=Jz({value:W,referenceDate:h,utils:r,props:o,timezone:G}),Y=Ei(),J=Wh(G),ie=bn(),{ownerState:se}=Ur(),{view:ce,setView:ye,previousView:Se,nextView:ne,setValueAndGoToNextView:le}=Aw({view:P,views:R,openTo:D,onViewChange:M,onChange:K,focusedView:A,onFocusedViewChange:_}),{meridiemMode:de,handleMeridiemChange:oe}=mP(q,i,le),ue=x.useCallback((xe,Re)=>{const he=Pw(m,r),Ie=Re==="hours"||Re==="minutes"&&R.includes("seconds"),ve=({start:te,end:Ee})=>!(y&&he(y,Ee)||g&&he(te,g)||v&&he(te,J)||w&&he(J,Ie?Ee:te)),Oe=(te,Ee=1)=>{if(te%Ee!==0)return!1;if(E)switch(Re){case"hours":return!E(r.setHours(q,te),"hours");case"minutes":return!E(r.setMinutes(q,te),"minutes");case"seconds":return!E(r.setSeconds(q,te),"seconds");default:return!1}return!0};switch(Re){case"hours":{const te=gS(xe,de,i),Ee=r.setHours(q,te);if(r.getHours(Ee)!==te)return!0;const De=r.setSeconds(r.setMinutes(Ee,0),0),Ve=r.setSeconds(r.setMinutes(Ee,59),59);return!ve({start:De,end:Ve})||!Oe(te)}case"minutes":{const te=r.setMinutes(q,xe),Ee=r.setSeconds(te,0),De=r.setSeconds(te,59);return!ve({start:Ee,end:De})||!Oe(xe,C)}case"seconds":{const te=r.setSeconds(q,xe);return!ve({start:te,end:te})||!Oe(xe)}default:throw new Error("not supported")}},[i,q,m,g,de,y,C,E,r,v,w,J,R]),pe=x.useMemo(()=>{switch(ce){case"hours":{const xe=(Ie,ve)=>{const Oe=gS(Ie,de,i);le(r.setHours(q,Oe),ve,"hours")},Re=r.getHours(q);let he;return i?Re>12?he=[12,23]:he=[0,11]:he=[0,23],{onChange:xe,viewValue:Re,children:hQe({value:W,utils:r,ampm:i,getClockNumberText:Y.hoursClockNumberText,isDisabled:Ie=>H||ue(Ie,"hours"),selectedId:ie}),viewRange:he}}case"minutes":{const xe=r.getMinutes(q);return{viewValue:xe,onChange:(he,Ie)=>{le(r.setMinutes(q,he),Ie,"minutes")},children:WQ({utils:r,value:xe,getClockNumberText:Y.minutesClockNumberText,isDisabled:he=>H||ue(he,"minutes"),selectedId:ie}),viewRange:[0,59]}}case"seconds":{const xe=r.getSeconds(q);return{viewValue:xe,onChange:(he,Ie)=>{le(r.setSeconds(q,he),Ie,"seconds")},children:WQ({utils:r,value:xe,getClockNumberText:Y.secondsClockNumberText,isDisabled:he=>H||ue(he,"seconds"),selectedId:ie}),viewRange:[0,59]}}default:throw new Error("You must provide the type for ClockView")}},[ce,r,W,i,Y.hoursClockNumberText,Y.minutesClockNumberText,Y.secondsClockNumberText,de,le,q,ue,ie,H]),Ce=AQe(B);return k.jsxs(MQe,z({ref:n,className:fe(Ce.root,N),ownerState:se},V,{children:[k.jsx(cQe,z({autoFocus:s??!!A,ampmInClock:a&&R.includes("hours"),value:W,type:ce,ampm:i,minutesStep:C,isTimeDisabled:ue,meridiemMode:de,handleMeridiemChange:oe,selectedId:ie,disabled:H,readOnly:j},pe)),I&&k.jsx(RQe,{className:Ce.arrowSwitcher,slots:l,slotProps:c,onGoToPrevious:()=>ye(Se),isPreviousDisabled:!Se,previousLabel:Y.openPreviousView,onGoToNext:()=>ye(ne),isNextDisabled:!ne,nextLabel:Y.openNextView,ownerState:se})]}))});function _Qe(e){return qe("MuiDigitalClock",e)}const NF=Ke("MuiDigitalClock",["root","list","item"]);function cg(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const $Qe=e=>{setTimeout(e,0)},xi=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?xi(t.shadowRoot):t:null},hO=e=>Array.from(e.children).indexOf(xi(document)),eV="@media (pointer: fine)";function NQe(...e){return e.reduce((t,n)=>(Array.isArray(n)?t.push(...n):n!=null&&t.push(n),t),[])}const LQe=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","views","skipDisabled","timezone"],FQe=e=>Me({root:["root"],list:["list"],item:["item"]},_Qe,e),jQe=ae(yP,{name:"MuiDigitalClock",slot:"Root"})({overflowY:"auto",width:"100%",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:Kle,variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),BQe=ae(cI,{name:"MuiDigitalClock",slot:"List"})({padding:0}),zQe=ae(Zt,{name:"MuiDigitalClock",slot:"Item",shouldForwardProp:e=>e!=="itemValue"&&e!=="formattedValue"})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Nt(e.palette.primary.main,e.palette.action.focusOpacity)}})),VQe=x.forwardRef(function(t,n){const r=xn(),o=x.useRef(null),i=en(n,o),a=x.useRef(null),s=Pn({props:t,name:"MuiDigitalClock"}),{ampm:l=r.is12HourCycleInCurrentLocale(),timeStep:c=30,autoFocus:u,slots:f,slotProps:h,value:m,defaultValue:g,referenceDate:y,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:w,minTime:C,disableFuture:E,disablePast:I,minutesStep:O=1,shouldDisableTime:P,onChange:R,view:D,openTo:M,onViewChange:A,focusedView:_,onFocusedViewChange:N,className:B,classes:H,disabled:j,readOnly:L,views:V=["hours"],skipDisabled:W=!1,timezone:K}=s,G=$e(s,LQe),{value:q,handleValueChange:Y,timezone:J}=qf({name:"DigitalClock",timezone:K,value:m,defaultValue:g,referenceDate:y,onChange:R,valueManager:mo}),ie=Ei(),se=Wh(J),{ownerState:ce}=Ur(),ye=z({},ce,{hasDigitalClockAlreadyBeenRendered:!!o.current}),Se=FQe(H),ne=(f==null?void 0:f.digitalClockItem)??zQe,le=Dn({elementType:ne,externalSlotProps:h==null?void 0:h.digitalClockItem,ownerState:ye,className:Se.item}),de=Jz({value:q,referenceDate:y,utils:r,props:s,timezone:J}),oe=Ze(Ie=>Y(Ie,"finish","hours")),{setValueAndGoToNextView:ue}=Aw({view:D,views:V,openTo:M,onViewChange:A,onChange:oe,focusedView:_,onFocusedViewChange:N}),pe=Ze(Ie=>{ue(Ie,"finish")});x.useEffect(()=>{if(o.current===null)return;const Ie=o.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!Ie)return;const ve=Ie.offsetTop;(u||_)&&Ie.focus(),o.current.scrollTop=ve-4});const Ce=x.useCallback(Ie=>{const ve=Pw(v,r),Oe=()=>!(C&&ve(C,Ie)||w&&ve(Ie,w)||E&&ve(Ie,se)||I&&ve(se,Ie)),te=()=>r.getMinutes(Ie)%O!==0?!1:P?!P(Ie,"hours"):!0;return!Oe()||!te()},[v,r,C,w,E,se,I,O,P]),xe=x.useMemo(()=>{const Ie=[];let Oe=r.startOfDay(de);for(;r.isSameDay(de,Oe);)Ie.push(Oe),Oe=r.addMinutes(Oe,c);return Ie},[de,c,r]),Re=xe.findIndex(Ie=>r.isEqual(Ie,de)),he=Ie=>{switch(Ie.key){case"PageUp":{const ve=hO(a.current)-5,Oe=a.current.children,te=Math.max(0,ve),Ee=Oe[te];Ee&&Ee.focus(),Ie.preventDefault();break}case"PageDown":{const ve=hO(a.current)+5,Oe=a.current.children,te=Math.min(Oe.length-1,ve),Ee=Oe[te];Ee&&Ee.focus(),Ie.preventDefault();break}}};return k.jsx(jQe,z({ref:i,className:fe(Se.root,B),ownerState:ye},G,{children:k.jsx(BQe,{ref:a,role:"listbox","aria-label":ie.timePickerToolbarTitle,className:Se.list,onKeyDown:he,children:xe.map((Ie,ve)=>{const Oe=Ce(Ie);if(W&&Oe)return null;const te=r.isEqual(Ie,q),Ee=r.format(Ie,l?"fullTime12h":"fullTime24h"),Ve=Re===ve||Re===-1&&ve===0?0:-1;return k.jsx(ne,z({onClick:()=>!L&&pe(Ie),selected:te,disabled:j||Oe,disableRipple:L,role:"option","aria-disabled":L,"aria-selected":te,tabIndex:Ve,itemValue:Ie,formattedValue:Ee},le,{children:Ee}),`${Ie.valueOf()}-${Ee}`)})})}))});function HQe(e){return qe("MuiMultiSectionDigitalClock",e)}const LF=Ke("MuiMultiSectionDigitalClock",["root"]);function UQe(e){return qe("MuiMultiSectionDigitalClockSection",e)}const FF=Ke("MuiMultiSectionDigitalClockSection",["root","item"]),GQe=["autoFocus","onChange","className","classes","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],qQe=e=>Me({root:["root"],item:["item"]},UQe,e),WQe=ae(cI,{name:"MuiMultiSectionDigitalClockSection",slot:"Root"})(({theme:e})=>({maxHeight:Kle,width:56,padding:0,overflow:"hidden",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&::after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"},variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]})),KQe=ae(Zt,{name:"MuiMultiSectionDigitalClockSection",slot:"Item"})(({theme:e})=>({padding:8,margin:"2px 4px",width:j0,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Nt(e.palette.primary.main,e.palette.action.focusOpacity)}})),YQe=x.forwardRef(function(t,n){const r=x.useRef(null),o=en(n,r),i=x.useRef(null),a=Pn({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:s,onChange:l,className:c,classes:u,disabled:f,readOnly:h,items:m,active:g,slots:y,slotProps:v,skipDisabled:w}=a,C=$e(a,GQe),{ownerState:E}=Ur(),I=z({},E,{hasDigitalClockAlreadyBeenRendered:!!r.current}),O=qQe(u),P=(y==null?void 0:y.digitalClockSectionItem)??KQe;x.useEffect(()=>{if(r.current===null)return;const M=r.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(g&&s&&M&&M.focus(),!M||i.current===M)return;i.current=M;const A=M.offsetTop;r.current.scrollTop=A-4});const R=m.findIndex(M=>M.isFocused(M.value)),D=M=>{switch(M.key){case"PageUp":{const A=hO(r.current)-5,_=r.current.children,N=Math.max(0,A),B=_[N];B&&B.focus(),M.preventDefault();break}case"PageDown":{const A=hO(r.current)+5,_=r.current.children,N=Math.min(_.length-1,A),B=_[N];B&&B.focus(),M.preventDefault();break}}};return k.jsx(WQe,z({ref:o,className:fe(O.root,c),ownerState:I,autoFocusItem:s&&g,role:"listbox",onKeyDown:D},C,{children:m.map((M,A)=>{var j;const _=(j=M.isDisabled)==null?void 0:j.call(M,M.value),N=f||_;if(w&&N)return null;const B=M.isSelected(M.value),H=R===A||R===-1&&A===0?0:-1;return k.jsx(P,z({onClick:()=>!h&&l(M.value),selected:B,disabled:N,disableRipple:h,role:"option","aria-disabled":h||N||void 0,"aria-label":M.ariaLabel,"aria-selected":B,tabIndex:H,className:O.item},v==null?void 0:v.digitalClockSectionItem,{children:M.label}),M.label)})}))}),QQe=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:i,timeStep:a,valueOrReferenceDate:s})=>{const l=t?n.getHours(t):null,c=[],u=(m,g)=>{const y=g??l;return y===null?!1:r?m===12?y===12||y===0:y===m||y-12===m:y===m},f=m=>u(m,n.getHours(s)),h=r?11:23;for(let m=0;m<=h;m+=a){let g=n.format(n.setHours(e,m),r?"hours12h":"hours24h");const y=i(parseInt(g,10).toString());g=n.formatNumber(g),c.push({value:m,label:g,isSelected:u,isDisabled:o,isFocused:f,ariaLabel:y})}return c},JQ=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:o,resolveAriaLabel:i,hasValue:a=!0})=>{const s=c=>e===null?!1:a&&e===c,l=c=>e===c;return[...Array.from({length:Math.ceil(60/r)},(c,u)=>{const f=r*u;return{value:f,label:t.formatNumber(o(f)),isDisabled:n,isSelected:s,isFocused:l,ariaLabel:i(f.toString())}})]},XQe=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","skipDisabled","timezone"],ZQe=e=>Me({root:["root"]},HQe,e),JQe=ae(yP,{name:"MuiMultiSectionDigitalClock",slot:"Root"})(({theme:e})=>({flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),eXe=x.forwardRef(function(t,n){const r=xn(),o=yr(),i=Pn({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:s,autoFocus:l,slots:c,slotProps:u,value:f,defaultValue:h,referenceDate:m,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:y,minTime:v,disableFuture:w,disablePast:C,minutesStep:E=1,shouldDisableTime:I,onChange:O,view:P,views:R=["hours","minutes"],openTo:D,onViewChange:M,focusedView:A,onFocusedViewChange:_,className:N,classes:B,disabled:H,readOnly:j,skipDisabled:L=!1,timezone:V}=i,W=$e(i,XQe),{value:K,handleValueChange:G,timezone:q}=qf({name:"MultiSectionDigitalClock",timezone:V,value:f,defaultValue:h,referenceDate:m,onChange:O,valueManager:mo}),Y=Ei(),J=Wh(q),ie=x.useMemo(()=>z({hours:1,minutes:5,seconds:5},s),[s]),se=Jz({value:K,referenceDate:m,utils:r,props:i,timezone:q}),ce=Ze((ve,Oe,te)=>G(ve,Oe,te)),ye=x.useMemo(()=>!a||!R.includes("hours")||R.includes("meridiem")?R:[...R,"meridiem"],[a,R]),{view:Se,setValueAndGoToNextView:ne,focusedView:le}=Aw({view:P,views:ye,openTo:D,onViewChange:M,onChange:ce,focusedView:A,onFocusedViewChange:_}),de=Ze(ve=>{ne(ve,"finish","meridiem")}),{meridiemMode:oe,handleMeridiemChange:ue}=mP(se,a,de,"finish"),pe=x.useCallback((ve,Oe)=>{const te=Pw(g,r),Ee=Oe==="hours"||Oe==="minutes"&&ye.includes("seconds"),De=({start:We,end:rt})=>!(v&&te(v,rt)||y&&te(We,y)||w&&te(We,J)||C&&te(J,Ee?rt:We)),Ve=(We,rt=1)=>{if(We%rt!==0)return!1;if(I)switch(Oe){case"hours":return!I(r.setHours(se,We),"hours");case"minutes":return!I(r.setMinutes(se,We),"minutes");case"seconds":return!I(r.setSeconds(se,We),"seconds");default:return!1}return!0};switch(Oe){case"hours":{const We=gS(ve,oe,a),rt=r.setHours(se,We);if(r.getHours(rt)!==We)return!0;const ut=r.setSeconds(r.setMinutes(rt,0),0),Be=r.setSeconds(r.setMinutes(rt,59),59);return!De({start:ut,end:Be})||!Ve(We)}case"minutes":{const We=r.setMinutes(se,ve),rt=r.setSeconds(We,0),ut=r.setSeconds(We,59);return!De({start:rt,end:ut})||!Ve(ve,E)}case"seconds":{const We=r.setSeconds(se,ve);return!De({start:We,end:We})||!Ve(ve)}default:throw new Error("not supported")}},[a,se,g,y,oe,v,E,I,r,w,C,J,ye]),Ce=x.useCallback(ve=>{switch(ve){case"hours":return{onChange:Oe=>{const te=gS(Oe,oe,a);ne(r.setHours(se,te),"finish","hours")},items:QQe({now:J,value:K,ampm:a,utils:r,isDisabled:Oe=>pe(Oe,"hours"),timeStep:ie.hours,resolveAriaLabel:Y.hoursClockNumberText,valueOrReferenceDate:se})};case"minutes":return{onChange:Oe=>{ne(r.setMinutes(se,Oe),"finish","minutes")},items:JQ({value:r.getMinutes(se),utils:r,isDisabled:Oe=>pe(Oe,"minutes"),resolveLabel:Oe=>r.format(r.setMinutes(J,Oe),"minutes"),timeStep:ie.minutes,hasValue:!!K,resolveAriaLabel:Y.minutesClockNumberText})};case"seconds":return{onChange:Oe=>{ne(r.setSeconds(se,Oe),"finish","seconds")},items:JQ({value:r.getSeconds(se),utils:r,isDisabled:Oe=>pe(Oe,"seconds"),resolveLabel:Oe=>r.format(r.setSeconds(J,Oe),"seconds"),timeStep:ie.seconds,hasValue:!!K,resolveAriaLabel:Y.secondsClockNumberText})};case"meridiem":{const Oe=Dl(r,"am"),te=Dl(r,"pm");return{onChange:ue,items:[{value:"am",label:Oe,isSelected:()=>!!K&&oe==="am",isFocused:()=>!!se&&oe==="am",ariaLabel:Oe},{value:"pm",label:te,isSelected:()=>!!K&&oe==="pm",isFocused:()=>!!se&&oe==="pm",ariaLabel:te}]}}default:throw new Error(`Unknown view: ${ve} found.`)}},[J,K,a,r,ie.hours,ie.minutes,ie.seconds,Y.hoursClockNumberText,Y.minutesClockNumberText,Y.secondsClockNumberText,oe,ne,se,pe,ue]),xe=x.useMemo(()=>{if(!o)return ye;const ve=ye.filter(Oe=>Oe!=="meridiem");return ve.reverse(),ye.includes("meridiem")&&ve.push("meridiem"),ve},[o,ye]),Re=x.useMemo(()=>ye.reduce((ve,Oe)=>z({},ve,{[Oe]:Ce(Oe)}),{}),[ye,Ce]),{ownerState:he}=Ur(),Ie=ZQe(B);return k.jsx(JQe,z({ref:n,className:fe(Ie.root,N),ownerState:he,role:"group"},W,{children:xe.map(ve=>k.jsx(YQe,{items:Re[ve].items,onChange:Re[ve].onChange,active:Se===ve,autoFocus:l??le===ve,disabled:H,readOnly:j,slots:c,slotProps:u,skipDisabled:L,"aria-label":Y.selectViewText(ve)},ve))}))});function tXe(e){return qe("MuiPickersDay",e)}const xp=Ke("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function oce(e){const{disabled:t,selected:n,today:r,outsideCurrentMonth:o,day:i,disableMargin:a,disableHighlightToday:s,showDaysOutsideCurrentMonth:l}=e,c=xn(),{ownerState:u}=Ur();return x.useMemo(()=>z({},u,{day:i,isDaySelected:n??!1,isDayDisabled:t??!1,isDayCurrent:r??!1,isDayOutsideMonth:o??!1,isDayStartOfWeek:c.isSameDay(i,c.startOfWeek(i)),isDayEndOfWeek:c.isSameDay(i,c.endOfWeek(i)),disableMargin:a??!1,disableHighlightToday:s??!1,showDaysOutsideCurrentMonth:l??!1}),[c,u,i,n,t,r,o,a,s,l])}const nXe=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],rXe=(e,t)=>{const{isDaySelected:n,isDayDisabled:r,isDayCurrent:o,isDayOutsideMonth:i,disableMargin:a,disableHighlightToday:s,showDaysOutsideCurrentMonth:l}=t,c=i&&!l;return Me({root:["root",n&&!c&&"selected",r&&"disabled",!a&&"dayWithMargin",!s&&o&&"today",i&&l&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},tXe,e)},ice=({theme:e})=>z({},e.typography.caption,{width:yS,height:yS,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Nt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${xp.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${xp.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${xp.disabled}:not(.${xp.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${xp.disabled}&.${xp.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${gP}px`}},{props:{isDayOutsideMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,isDayCurrent:!0},style:{[`&:not(.${xp.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),ace=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.isDayCurrent&&t.today,!n.isDayOutsideMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.isDayOutsideMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},oXe=ae(la,{name:"MuiPickersDay",slot:"Root",overridesResolver:ace})(ice),iXe=ae("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:ace})(({theme:e})=>z({},ice({theme:e}),{opacity:0,pointerEvents:"none"})),d0=()=>{},aXe=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,classes:a,isAnimating:s,onClick:l,onDaySelect:c,onFocus:u=d0,onBlur:f=d0,onKeyDown:h=d0,onMouseDown:m=d0,onMouseEnter:g=d0,children:y,day:v,selected:w,disabled:C,today:E,outsideCurrentMonth:I,disableMargin:O,disableHighlightToday:P,showDaysOutsideCurrentMonth:R}=r,D=$e(r,nXe),M=oce({day:v,selected:w,disabled:C,today:E,outsideCurrentMonth:I,disableMargin:O,disableHighlightToday:P,showDaysOutsideCurrentMonth:R}),A=rXe(a,M),_=xn(),N=x.useRef(null),B=en(N,n);In(()=>{o&&!C&&!s&&!I&&N.current.focus()},[o,C,s,I]);const H=L=>{m(L),I&&L.preventDefault()},j=L=>{C||c(v),I&&L.currentTarget.focus(),l&&l(L)};return I&&!R?k.jsx(iXe,{className:fe(A.root,A.hiddenDaySpacingFiller,i),ownerState:M,role:D.role}):k.jsx(oXe,z({className:fe(A.root,i),ref:B,centerRipple:!0,disabled:C,tabIndex:w?0:-1,onKeyDown:L=>h(L,v),onFocus:L=>u(L,v),onBlur:L=>f(L,v),onMouseEnter:L=>g(L,v),onClick:j,onMouseDown:H},D,{ownerState:M,children:y||_.format(v,"dayOfMonth")}))}),sXe=x.memo(aXe),jF=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],BF=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],sce=["minDateTime","maxDateTime"],lXe=[...jF,...BF,...sce],Pv=e=>lXe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),cXe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","unstableStartFieldRef","unstableEndFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator","autoFocus","focused"],lce=(e,t)=>x.useMemo(()=>{const n=z({},e),r={},o=i=>{n.hasOwnProperty(i)&&(r[i]=n[i],delete n[i])};return cXe.forEach(o),t==="date"?jF.forEach(o):t==="time"?BF.forEach(o):t==="date-time"&&(jF.forEach(o),BF.forEach(o),sce.forEach(o)),{forwardedProps:n,internalProps:r}},[e,t]),uXe=({utils:e,format:t})=>{let n=10,r=t,o=e.expandFormat(t);for(;o!==r;)if(r=o,o=e.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the component.");return o},dXe=({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:o}=e.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},fXe=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},pXe=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:i,token:a,startSeparator:s})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=ece(e,a),c=rce(e,l.contentType,l.type,a),u=n?c:l.contentType==="digit",f=e.isValid(t);let h=f?e.formatByString(t,a):"",m=null;if(u)if(c)m=h===""?e.formatByString(i,a).length:h.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxLength' property on it's adapter`);m=l.maxLength,f&&(h=Yz(Qz(Oh(h,o),m),o))}return z({},l,{format:a,maxLength:m,value:h,placeholder:fXe(e,r,l,a),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:s,endSeparator:"",modified:!1})},hXe=e=>{var m;const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),i=[];let a="";const s=Object.keys(t.formatTokenMap).sort((g,y)=>y.length-g.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${s.join("|")})*$`),u=new RegExp(`^(${s.join("|")})`),f=g=>r.find(y=>y.start<=g&&y.end>=g);let h=0;for(;h0;){const C=u.exec(w)[1];w=w.slice(C.length),i.push(pXe(z({},e,{now:o,token:C,startSeparator:a}))),a=""}h+=v.length}else{const w=n[h];y&&(g==null?void 0:g.start)===h||(g==null?void 0:g.end)===h||(i.length===0?a+=w:(i[i.length-1].endSeparator+=w,i[i.length-1].isEndFormatSeparator=!0)),h+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},mXe=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const o=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`⁩${a}⁦`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return r.startSeparator=o(r.startSeparator),r.endSeparator=o(r.endSeparator),r}),eX=e=>{let t=uXe(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=dXe(z({},e,{expandedFormat:t})),r=hXe(z({},e,{expandedFormat:t,escapedParts:n}));return mXe(z({},e,{sections:r}))},tV=()=>x.useContext(Gz),gXe=()=>{const e=x.useContext(Vle);if(e==null)throw new Error(["MUI X: The `usePickerActionsContext` can only be called in fields that are used as a slot of a Picker component"].join(` -`));return e},Jm=e=>e.saveQuery!=null,cce=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:r,setCharacterQuery:o,setTempAndroidValueStr:i,updateSectionValue:a}})=>{const s=xn(),l=({keyPressed:f,sectionIndex:h},m,g)=>{const y=f.toLowerCase(),v=n.sections[h];if(n.characterQuery!=null&&(!g||g(n.characterQuery.value))&&n.characterQuery.sectionIndex===h){const C=`${n.characterQuery.value}${y}`,E=m(C,v);if(!Jm(E))return o({sectionIndex:h,value:C,sectionType:v.type}),E}const w=m(y,v);return Jm(w)&&!w.saveQuery?(o(null),null):(o({sectionIndex:h,value:y,sectionType:v.type}),Jm(w)?null:w)},c=f=>{const h=(y,v,w)=>{const C=v.filter(E=>E.toLowerCase().startsWith(w));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},m=(y,v,w,C)=>{const E=I=>tce(s,r,v.type,I);if(v.contentType==="letter")return h(v.format,E(v.format),y);if(w&&C!=null&&ece(s,w).contentType==="letter"){const I=E(w),O=h(w,I,y);return Jm(O)?{saveQuery:!1}:z({},O,{sectionValue:C(O.sectionValue,I)})}return{saveQuery:!1}};return l(f,(y,v)=>{switch(v.type){case"month":{const w=C=>QQ(s,C,s.formats.month,v.format);return m(y,v,s.formats.month,w)}case"weekDay":{const w=(C,E)=>E.indexOf(C).toString();return m(y,v,s.formats.weekday,w)}case"meridiem":return m(y,v);default:return{saveQuery:!1}}})},u=f=>{const h=(g,y)=>{const v=Oh(g,e),w=Number(v),C=t[y.type]({currentDate:null,format:y.format,contentType:y.contentType});if(w>C.maximum)return{saveQuery:!1};if(wC.maximum||v.length===C.maximum.toString().length;return{sectionValue:nce(s,w,C,e,y),shouldGoToNextSection:E}};return l(f,(g,y)=>{if(y.contentType==="digit"||y.contentType==="digit-with-letter")return h(g,y);if(y.type==="month"){rce(s,"digit","month","MM");const v=h(g,{type:y.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Jm(v))return v;const w=QQ(s,v.sectionValue,"MM",y.format);return z({},v,{sectionValue:w})}if(y.type==="weekDay"){const v=h(g,y);if(Jm(v))return v;const w=vP(s,y.format)[Number(v.sectionValue)-1];return z({},v,{sectionValue:w})}return{saveQuery:!1}},g=>YQ(g,e))};return Ze(f=>{const h=n.sections[f.sectionIndex],g=YQ(f.keyPressed,e)?u(z({},f,{keyPressed:Yz(f.keyPressed,e)})):c(f);if(g==null){i(null);return}a({section:h,newSectionValue:g.sectionValue,shouldGoToNextSection:g.shouldGoToNextSection})})},Av=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:i,shouldDisableYear:a,disablePast:s,disableFuture:l,minDate:c,maxDate:u}=e,f=r.utils.date(void 0,n);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(t,f)):return"disableFuture";case!!(s&&r.utils.isBeforeDay(t,f)):return"disablePast";case!!(c&&r.utils.isBeforeDay(t,c)):return"minDate";case!!(u&&r.utils.isAfterDay(t,u)):return"maxDate";default:return null}};Av.valueManager=mo;const Mw=({adapter:e,value:t,timezone:n,props:r})=>{if(t===null)return null;const{minTime:o,maxTime:i,minutesStep:a,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u}=r,f=e.utils.date(void 0,n),h=Pw(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(o&&h(o,t)):return"minTime";case!!(i&&h(t,i)):return"maxTime";case!!(u&&e.utils.isAfter(t,f)):return"disableFuture";case!!(c&&e.utils.isBefore(t,f)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}};Mw.valueManager=mo;const bP=({adapter:e,value:t,timezone:n,props:r})=>{const o=Av({adapter:e,value:t,timezone:n,props:r});return o!==null?o:Mw({adapter:e,value:t,timezone:n,props:r})};bP.valueManager=mo;function uce(e){const{props:t,validator:n,value:r,timezone:o,onError:i}=e,a=qh(),s=x.useRef(n.valueManager.defaultErrorState),l=n({adapter:a,value:r,timezone:o,props:t}),c=n.valueManager.hasError(l);x.useEffect(()=>{i&&!n.valueManager.isSameError(l,s.current)&&i(l,r),s.current=l},[n,i,l,r]);const u=Ze(f=>n({adapter:a,value:f,timezone:o,props:t}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}const yXe=5e3,dce=e=>{var Re;const t=xn(),n=Ei(),r=qh(),o=yr(),{manager:{validator:i,valueType:a,internal_valueManager:s,internal_fieldValueManager:l},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:u,defaultValue:f,referenceDate:h,onChange:m,format:g,formatDensity:y="dense",selectedSections:v,onSelectedSectionsChange:w,shouldRespectLeadingZeros:C=!1,timezone:E,enableAccessibleFieldDOMStructure:I=!0},forwardedProps:{error:O}}=e,{value:P,handleValueChange:R,timezone:D}=qf({name:"a field component",timezone:E,value:u,defaultValue:f,referenceDate:h,onChange:m,valueManager:s}),M=x.useRef(P);x.useEffect(()=>{M.current=P},[P]);const{hasValidationError:A}=uce({props:c,validator:i,timezone:D,value:P,onError:c.onError}),_=x.useMemo(()=>O!==void 0?O:A,[A,O]),N=x.useMemo(()=>vQe(t),[t]),B=x.useMemo(()=>CQe(t,N,D),[t,N,D]),H=x.useCallback(he=>l.getSectionsFromValue(he,Ie=>eX({utils:t,localeText:n,localizedDigits:N,format:g,date:Ie,formatDensity:y,shouldRespectLeadingZeros:C,enableAccessibleFieldDOMStructure:I,isRtl:o})),[l,g,n,N,o,C,t,y,I]),[j,L]=x.useState(()=>{const he=H(P),Ie={sections:he,lastExternalValue:P,lastSectionsDependencies:{format:g,isRtl:o,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},ve=mQe(he),Oe=s.getInitialReferenceValue({referenceDate:h,value:P,utils:t,props:c,granularity:ve,timezone:D});return z({},Ie,{referenceValue:Oe})}),[V,W]=ia({controlled:v,default:null,name:"useField",state:"selectedSections"}),K=he=>{W(he),w==null||w(he)},G=x.useMemo(()=>$F(V,j.sections),[V,j.sections]),q=G==="all"?0:G,Y=x.useMemo(()=>OQe(j.sections,o&&!I),[j.sections,o,I]),J=x.useMemo(()=>j.sections.every(he=>he.value===""),[j.sections]),ie=he=>{const Ie={validationError:i({adapter:r,value:he,timezone:D,props:c})};R(he,Ie)},se=(he,Ie)=>{const ve=[...j.sections];return ve[he]=z({},ve[he],{value:Ie,modified:!0}),ve},ce=x.useRef(null),ye=ko(),Se=he=>{q!=null&&(ce.current={sectionIndex:q,value:he},ye.start(0,()=>{ce.current=null}))},ne=()=>{s.areValuesEqual(t,P,s.emptyValue)?L(he=>z({},he,{sections:he.sections.map(Ie=>z({},Ie,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(L(he=>z({},he,{characterQuery:null})),ie(s.emptyValue))},le=()=>{if(q==null)return;const he=j.sections[q];he.value!==""&&(Se(""),l.getDateFromSection(P,he)===null?L(Ie=>z({},Ie,{sections:se(q,""),tempValueStrAndroid:null,characterQuery:null})):(L(Ie=>z({},Ie,{characterQuery:null})),ie(l.updateDateInValue(P,he,null))))},de=he=>{const Ie=(Oe,te)=>{const Ee=t.parse(Oe,g);if(!t.isValid(Ee))return null;const De=eX({utils:t,localeText:n,localizedDigits:N,format:g,date:Ee,formatDensity:y,shouldRespectLeadingZeros:C,enableAccessibleFieldDOMStructure:I,isRtl:o});return ZQ(t,Ee,De,te,!1)},ve=l.parseValueStr(he,j.referenceValue,Ie);ie(ve)},oe=ko(),ue=({section:he,newSectionValue:Ie,shouldGoToNextSection:ve})=>{ye.clear(),oe.clear();const Oe=l.getDateFromSection(P,he);ve&&q{M.current===P&&L(We=>z({},We,{sections:l.clearDateSections(j.sections,he),tempValueStrAndroid:null}))}),ie(l.updateDateInValue(P,he,Ve))}return Ee.every(Ve=>Ve.value!=="")?(Se(Ie),ie(l.updateDateInValue(P,he,De))):Oe!=null?(Se(Ie),ie(l.updateDateInValue(P,he,null))):L(Ve=>z({},Ve,{sections:te,tempValueStrAndroid:null}))},pe=he=>L(Ie=>z({},Ie,{tempValueStrAndroid:he})),Ce=Ze(he=>{L(Ie=>z({},Ie,{characterQuery:he}))});if(P!==j.lastExternalValue){let he;ce.current!=null&&!t.isValid(l.getDateFromSection(P,j.sections[ce.current.sectionIndex]))?he=se(ce.current.sectionIndex,ce.current.value):he=H(P),L(Ie=>z({},Ie,{lastExternalValue:P,sections:he,sectionsDependencies:{format:g,isRtl:o,locale:t.locale},referenceValue:l.updateReferenceValue(t,P,Ie.referenceValue),tempValueStrAndroid:null}))}if(o!==j.lastSectionsDependencies.isRtl||g!==j.lastSectionsDependencies.format||t.locale!==j.lastSectionsDependencies.locale){const he=H(P);L(Ie=>z({},Ie,{lastSectionsDependencies:{format:g,isRtl:o,locale:t.locale},sections:he,tempValueStrAndroid:null,characterQuery:null}))}j.characterQuery!=null&&!_&&q==null&&Ce(null),j.characterQuery!=null&&((Re=j.sections[j.characterQuery.sectionIndex])==null?void 0:Re.type)!==j.characterQuery.sectionType&&Ce(null),x.useEffect(()=>{ce.current!=null&&(ce.current=null)});const xe=ko();return x.useEffect(()=>(j.characterQuery!=null&&xe.start(yXe,()=>Ce(null)),()=>{}),[j.characterQuery,Ce,xe]),x.useEffect(()=>{j.tempValueStrAndroid!=null&&q!=null&&le()},[j.sections]),{activeSectionIndex:q,areAllSectionsEmpty:J,error:_,localizedDigits:N,parsedSelectedSections:G,sectionOrder:Y,sectionsValueBoundaries:B,state:j,timezone:D,value:P,clearValue:ne,clearActiveSection:le,setCharacterQuery:Ce,setSelectedSections:K,setTempAndroidValueStr:pe,updateSectionValue:ue,updateValueFromValueStr:de,getSectionsFromValue:H}};function fce(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:r}=e,o=tV(),i=zle(),a=en(n.unstableFieldRef,r?null:i==null?void 0:i.fieldRef),s=o==null?void 0:o.setValue,l=x.useCallback((u,f)=>s==null?void 0:s(u,{validationError:f.validationError,shouldClose:!1}),[s]),c=x.useMemo(()=>i!=null&&o!=null?z({value:o.value,onChange:l,timezone:o.timezone,disabled:o.disabled,readOnly:o.readOnly,autoFocus:o.autoFocus&&!o.open,focused:o.open?!0:void 0,format:o.fieldFormat,formatDensity:i.formatDensity,enableAccessibleFieldDOMStructure:i.enableAccessibleFieldDOMStructure,selectedSections:i.selectedSections,onSelectedSectionsChange:i.onSelectedSectionsChange,unstableFieldRef:a},n):n,[o,i,n,l,a]);return t(c)}function nV(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:r,state:o}}=e;if(!n.isReady())return;const i=document.getSelection();if(!i)return;if(r==null){i.rangeCount>0&&n.getRoot().contains(i.getRangeAt(0).startContainer)&&i.removeAllRanges(),t&&n.getRoot().blur();return}if(!n.getRoot().contains(xi(document)))return;const a=new window.Range;let s;r==="all"?s=n.getRoot():o.sections[r].type==="empty"?s=n.getSectionContainer(r):s=n.getSectionContent(r),a.selectNodeContents(s),s.focus(),i.removeAllRanges(),i.addRange(a)}function pce(e){const t=xn(),{manager:{internal_fieldValueManager:n},internalPropsWithDefaults:{minutesStep:r,disabled:o,readOnly:i},stateResponse:{state:a,value:s,activeSectionIndex:l,parsedSelectedSections:c,sectionsValueBoundaries:u,localizedDigits:f,timezone:h,sectionOrder:m,clearValue:g,clearActiveSection:y,setSelectedSections:v,updateSectionValue:w}}=e;return Ze(C=>{if(!o)switch(!0){case((C.ctrlKey||C.metaKey)&&String.fromCharCode(C.keyCode)==="A"&&!C.shiftKey&&!C.altKey):{C.preventDefault(),v("all");break}case C.key==="ArrowRight":{if(C.preventDefault(),c==null)v(m.startIndex);else if(c==="all")v(m.endIndex);else{const E=m.neighbors[c].rightIndex;E!==null&&v(E)}break}case C.key==="ArrowLeft":{if(C.preventDefault(),c==null)v(m.endIndex);else if(c==="all")v(m.startIndex);else{const E=m.neighbors[c].leftIndex;E!==null&&v(E)}break}case C.key==="Delete":{if(C.preventDefault(),i)break;c==null||c==="all"?g():y();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(C.key):{if(C.preventDefault(),i||l==null)break;c==="all"&&v(l);const E=a.sections[l],I=bXe(t,h,E,C.key,u,f,n.getDateFromSection(s,E),{minutesStep:r});w({section:E,newSectionValue:I,shouldGoToNextSection:!1});break}}})}function vXe(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function bXe(e,t,n,r,o,i,a,s){const l=vXe(r),c=r==="Home",u=r==="End",f=n.value===""||c||u,h=()=>{const g=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),y=C=>nce(e,C,g,i,n),v=n.type==="minutes"&&(s!=null&&s.minutesStep)?s.minutesStep:1;let w;if(f){if(n.type==="year"&&!u&&!c)return e.formatByString(e.date(void 0,t),n.format);l>0||c?w=g.minimum:w=g.maximum}else w=parseInt(Oh(n.value,i),10)+l*v;return w%v!==0&&((l<0||c)&&(w+=v-(v+w)%v),(l>0||u)&&(w-=w%v)),w>g.maximum?y(g.minimum+(w-g.maximum-1)%(g.maximum-g.minimum+1)):w{const g=tce(e,t,n.type,n.format);if(g.length===0)return n.value;if(f)return l>0||c?g[0]:g[g.length-1];const w=((g.indexOf(n.value)+l)%g.length+g.length)%g.length;return g[w]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?h():m()}function xXe(e){const{manager:t,focused:n,setFocused:r,domGetters:o,stateResponse:i,applyCharacterEditing:a,internalPropsWithDefaults:s,stateResponse:{parsedSelectedSections:l,sectionOrder:c,state:u,clearValue:f,setCharacterQuery:h,setSelectedSections:m,updateValueFromValueStr:g},internalPropsWithDefaults:{disabled:y=!1,readOnly:v=!1}}=e,w=pce({manager:t,internalPropsWithDefaults:s,stateResponse:i}),C=ko(),E=Ze(D=>{y||!o.isReady()||(r(!0),l==="all"?C.start(0,()=>{const M=document.getSelection().getRangeAt(0).startOffset;if(M===0){m(c.startIndex);return}let A=0,_=0;for(;_{if(!o.isReady()||l!=="all")return;const A=D.target.textContent??"";o.getRoot().innerHTML=u.sections.map(_=>`${_.startSeparator}${_.value||_.placeholder}${_.endSeparator}`).join(""),nV({focused:n,domGetters:o,stateResponse:i}),A.length===0||A.charCodeAt(0)===10?(f(),m("all")):A.length>1?g(A):(l==="all"&&m(0),a({keyPressed:A,sectionIndex:0}))}),O=Ze(D=>{if(v||l!=="all"){D.preventDefault();return}const M=D.clipboardData.getData("text");D.preventDefault(),h(null),g(M)}),P=Ze(()=>{if(n||y||!o.isReady())return;const D=xi(document);r(!0),o.getSectionIndexFromDOMElement(D)!=null||m(c.startIndex)}),R=Ze(()=>{setTimeout(()=>{if(!o.isReady())return;const D=xi(document);!o.getRoot().contains(D)&&(r(!1),m(null))})});return{onKeyDown:w,onBlur:R,onFocus:P,onClick:E,onPaste:O,onInput:I,contentEditable:l==="all",tabIndex:l===0?-1:0}}function SXe(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:r,updateValueFromValueStr:o}}=e,i=Ze(s=>{o(s.target.value)});return{value:x.useMemo(()=>n?"":t.getV7HiddenInputValueFromSections(r.sections),[n,r.sections,t]),onChange:i}}function wXe(e){const{stateResponse:{setSelectedSections:t},internalPropsWithDefaults:{disabled:n=!1}}=e,r=Ze(o=>i=>{n||i.isDefaultPrevented()||t(o)});return x.useCallback(o=>({"data-sectionindex":o,onClick:r(o)}),[r])}function CXe(e){const t=xn(),n=Ei(),r=bn(),{focused:o,domGetters:i,stateResponse:a,applyCharacterEditing:s,manager:{internal_fieldValueManager:l},stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:u,state:f,value:h,clearActiveSection:m,setCharacterQuery:g,setSelectedSections:y,updateSectionValue:v,updateValueFromValueStr:w},internalPropsWithDefaults:{disabled:C=!1,readOnly:E=!1}}=e,I=c==="all",O=!I&&!C&&!E,P=Ze(N=>{if(!i.isReady())return;const B=f.sections[N];i.getSectionContent(N).innerHTML=B.value||B.placeholder,nV({focused:o,domGetters:i,stateResponse:a})}),R=Ze(N=>{if(!i.isReady())return;const B=N.target,H=B.textContent??"",j=i.getSectionIndexFromDOMElement(B),L=f.sections[j];if(E){P(j);return}if(H.length===0){if(L.value===""){P(j);return}const V=N.nativeEvent.inputType;if(V==="insertParagraph"||V==="insertLineBreak"){P(j);return}P(j),m();return}s({keyPressed:H,sectionIndex:j}),P(j)}),D=Ze(N=>{N.preventDefault()}),M=Ze(N=>{if(N.preventDefault(),E||C||typeof c!="number")return;const B=f.sections[c],H=N.clipboardData.getData("text"),j=/^[a-zA-Z]+$/.test(H),L=/^[0-9]+$/.test(H),V=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(H);B.contentType==="letter"&&j||B.contentType==="digit"&&L||B.contentType==="digit-with-letter"&&V?(g(null),v({section:B,newSectionValue:H,shouldGoToNextSection:!0})):!j&&!L&&(g(null),w(H))}),A=Ze(N=>{N.preventDefault(),N.dataTransfer.dropEffect="none"}),_=Ze(N=>()=>{C||y(N)});return x.useCallback((N,B)=>{const H=u[N.type]({currentDate:l.getDateFromSection(h,N),contentType:N.contentType,format:N.format});return{onInput:R,onPaste:M,onMouseUp:D,onDragOver:A,onFocus:_(B),"aria-labelledby":`${r}-${N.type}`,"aria-readonly":E,"aria-valuenow":TXe(N,t),"aria-valuemin":H.minimum,"aria-valuemax":H.maximum,"aria-valuetext":N.value?EXe(N,t):n.empty,"aria-label":n[N.type],"aria-disabled":C,tabIndex:I||B>0?-1:0,contentEditable:!I&&!C&&!E,role:"spinbutton",id:`${r}-${N.type}`,"data-range-position":N.dateName||void 0,spellCheck:O?!1:void 0,autoCapitalize:O?"off":void 0,autoCorrect:O?"off":void 0,children:N.value||N.placeholder,inputMode:N.contentType==="letter"?"text":"numeric"}},[u,r,I,C,E,O,n,t,R,M,D,A,_,l,h])}function EXe(e,t){if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}}function TXe(e,t){if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}}const OXe=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:r,manager:{valueType:o,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:a,forwardedProps:s}=lce(t,o),l=fce({manager:n,internalProps:a,skipContextFieldRefAssignment:r}),{sectionListRef:c,onBlur:u,onClick:f,onFocus:h,onInput:m,onPaste:g,onKeyDown:y,onClear:v,clearable:w}=s,{disabled:C=!1,readOnly:E=!1,autoFocus:I=!1,focused:O,unstableFieldRef:P}=l,R=x.useRef(null),D=en(c,R),M=x.useMemo(()=>({isReady:()=>R.current!=null,getRoot:()=>R.current.getRoot(),getSectionContainer:xe=>R.current.getSectionContainer(xe),getSectionContent:xe=>R.current.getSectionContent(xe),getSectionIndexFromDOMElement:xe=>R.current.getSectionIndexFromDOMElement(xe)}),[R]),A=dce({manager:n,internalPropsWithDefaults:l,forwardedProps:s}),{areAllSectionsEmpty:_,error:N,parsedSelectedSections:B,sectionOrder:H,state:j,value:L,clearValue:V,setSelectedSections:W}=A,K=cce({stateResponse:A}),G=i(L),[q,Y]=x.useState(!1);function J(xe=0){if(C||!R.current||tX(R)!=null)return;const Re=$F(xe,j.sections);Y(!0),R.current.getSectionContent(Re).focus()}const ie=xXe({manager:n,internalPropsWithDefaults:l,stateResponse:A,applyCharacterEditing:K,focused:q,setFocused:Y,domGetters:M}),se=SXe({manager:n,stateResponse:A}),ce=wXe({stateResponse:A,internalPropsWithDefaults:l}),ye=CXe({manager:n,stateResponse:A,applyCharacterEditing:K,internalPropsWithDefaults:l,domGetters:M,focused:q}),Se=Ze(xe=>{y==null||y(xe),ie.onKeyDown(xe)}),ne=Ze(xe=>{u==null||u(xe),ie.onBlur(xe)}),le=Ze(xe=>{h==null||h(xe),ie.onFocus(xe)}),de=Ze(xe=>{xe.isDefaultPrevented()||(f==null||f(xe),ie.onClick(xe))}),oe=Ze(xe=>{g==null||g(xe),ie.onPaste(xe)}),ue=Ze(xe=>{m==null||m(xe),ie.onInput(xe)}),pe=Ze((xe,...Re)=>{xe.preventDefault(),v==null||v(xe,...Re),V(),nX(R)?W(H.startIndex):J(0)}),Ce=x.useMemo(()=>j.sections.map((xe,Re)=>{const he=ye(xe,Re);return{container:ce(Re),content:ye(xe,Re),before:{children:xe.startSeparator},after:{children:xe.endSeparator,"data-range-position":xe.isEndFormatSeparator?he["data-range-position"]:void 0}}}),[j.sections,ce,ye]);return x.useEffect(()=>{if(R.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `` element instead of a `PickersSectionList`.","","If you want to keep using an `` HTML element for the editing, please add the `enableAccessibleFieldDOMStructure={false}` prop to your Picker or Field component:","","","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(` -`));I&&!C&&R.current&&R.current.getSectionContent(H.startIndex).focus()},[]),In(()=>{if(!(!q||!R.current)){if(B==="all")R.current.getRoot().focus();else if(typeof B=="number"){const xe=R.current.getSectionContent(B);xe&&xe.focus()}}},[B,q]),In(()=>{nV({focused:q,domGetters:M,stateResponse:A})}),x.useImperativeHandle(P,()=>({getSections:()=>j.sections,getActiveSectionIndex:()=>tX(R),setSelectedSections:xe=>{if(C||!R.current)return;const Re=$F(xe,j.sections);Y((Re==="all"?0:Re)!==null),W(xe)},focusField:J,isFieldFocused:()=>nX(R)})),z({},s,ie,{onBlur:ne,onClick:de,onFocus:le,onInput:ue,onPaste:oe,onKeyDown:Se,onClear:pe},se,{error:N,clearable:!!(w&&!_&&!E&&!C),focused:O??q,sectionListRef:D,enableAccessibleFieldDOMStructure:!0,elements:Ce,areAllSectionsEmpty:_,disabled:C,readOnly:E,autoFocus:I,openPickerAriaLabel:G})};function tX(e){const t=xi(document);return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function nX(e){const t=xi(document);return!!e.current&&e.current.getRoot().contains(t)}const Sg=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),IXe=(e,t,n)=>{let r=0,o=n?1:0;const i=[];for(let a=0;a{const t=yr(),n=ko(),r=ko(),{props:o,manager:i,skipContextFieldRefAssignment:a,manager:{valueType:s,internal_valueManager:l,internal_fieldValueManager:c,internal_useOpenPickerButtonAriaLabel:u}}=e,{internalProps:f,forwardedProps:h}=lce(o,s),m=fce({manager:i,internalProps:f,skipContextFieldRefAssignment:a}),{onFocus:g,onClick:y,onPaste:v,onBlur:w,onKeyDown:C,onClear:E,clearable:I,inputRef:O,placeholder:P}=h,{readOnly:R=!1,disabled:D=!1,autoFocus:M=!1,focused:A,unstableFieldRef:_}=m,N=x.useRef(null),B=en(O,N),H=dce({manager:i,internalPropsWithDefaults:m,forwardedProps:h}),{activeSectionIndex:j,areAllSectionsEmpty:L,error:V,localizedDigits:W,parsedSelectedSections:K,sectionOrder:G,state:q,value:Y,clearValue:J,clearActiveSection:ie,setCharacterQuery:se,setSelectedSections:ce,setTempAndroidValueStr:ye,updateSectionValue:Se,updateValueFromValueStr:ne,getSectionsFromValue:le}=H,de=cce({stateResponse:H}),oe=u(Y),ue=x.useMemo(()=>IXe(q.sections,W,t),[q.sections,W,t]);function pe(){const Be=N.current.selectionStart??0;let et;Be<=ue[0].startInInput||Be>=ue[ue.length-1].endInInput?et=1:et=ue.findIndex(It=>It.startInInput-It.startSeparator.length>Be);const Le=et===-1?ue.length-1:et-1;ce(Le)}function Ce(Be=0){var et;xi(document)!==N.current&&((et=N.current)==null||et.focus(),ce(Be))}const xe=Ze(Be=>{g==null||g(Be);const et=N.current;n.start(0,()=>{!et||et!==N.current||j==null&&(et.value.length&&Number(et.selectionEnd)-Number(et.selectionStart)===et.value.length?ce("all"):pe())})}),Re=Ze((Be,...et)=>{Be.isDefaultPrevented()||(y==null||y(Be,...et),pe())}),he=Ze(Be=>{if(v==null||v(Be),Be.preventDefault(),R||D)return;const et=Be.clipboardData.getData("text");if(typeof K=="number"){const Le=q.sections[K],It=/^[a-zA-Z]+$/.test(et),Lt=/^[0-9]+$/.test(et),nt=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(et);if(Le.contentType==="letter"&&It||Le.contentType==="digit"&&Lt||Le.contentType==="digit-with-letter"&&nt){se(null),Se({section:Le,newSectionValue:et,shouldGoToNextSection:!0});return}if(It||Lt)return}se(null),ne(et)}),Ie=Ze(Be=>{w==null||w(Be),ce(null)}),ve=Ze(Be=>{if(R)return;const et=Be.target.value;if(et===""){J();return}const Le=Be.nativeEvent.data,It=Le&&Le.length>1,Lt=It?Le:et,nt=Sg(Lt);if(K==="all"&&ce(j),j==null||It){ne(It?Le:nt);return}let lt;if(K==="all"&&nt.length===1)lt=nt;else{const vt=Sg(c.getV6InputValueFromSections(ue,W,t));let bt=-1,vn=-1;for(let Bn=0;Bnkn.end)return;const tr=nt.length-vt.length+kn.end-Sg(kn.endSeparator||"").length;lt=nt.slice(kn.start+Sg(kn.startSeparator||"").length,tr)}if(lt.length===0){TQe()&&ye(Lt),ie();return}de({keyPressed:lt,sectionIndex:j})}),Oe=Ze((Be,...et)=>{Be.preventDefault(),E==null||E(Be,...et),J(),rX(N)?ce(G.startIndex):Ce(0)}),te=pce({manager:i,internalPropsWithDefaults:m,stateResponse:H}),Ee=Ze(Be=>{C==null||C(Be),te(Be)}),De=x.useMemo(()=>P!==void 0?P:c.getV6InputValueFromSections(le(l.emptyValue),W,t),[P,c,le,l.emptyValue,W,t]),Ve=x.useMemo(()=>q.tempValueStrAndroid??c.getV6InputValueFromSections(q.sections,W,t),[q.sections,c,q.tempValueStrAndroid,W,t]);x.useEffect(()=>{N.current&&N.current===xi(document)&&ce("all")},[]),In(()=>{function Be(){if(!N.current)return;if(K==null){N.current.scrollLeft&&(N.current.scrollLeft=0);return}if(N.current!==xi(document))return;const et=N.current.scrollTop;if(K==="all")N.current.select();else{const Le=ue[K],It=Le.type==="empty"?Le.startInInput-Le.startSeparator.length:Le.startInInput,Lt=Le.type==="empty"?Le.endInInput+Le.endSeparator.length:Le.endInInput;(It!==N.current.selectionStart||Lt!==N.current.selectionEnd)&&N.current===xi(document)&&N.current.setSelectionRange(It,Lt),r.start(0,()=>{N.current&&N.current===xi(document)&&N.current.selectionStart===N.current.selectionEnd&&(N.current.selectionStart!==It||N.current.selectionEnd!==Lt)&&Be()})}N.current.scrollTop=et}Be()});const We=x.useMemo(()=>j==null||q.sections[j].contentType==="letter"?"text":"numeric",[j,q.sections]),ut=!(N.current&&N.current===xi(document))&&L;return x.useImperativeHandle(_,()=>({getSections:()=>q.sections,getActiveSectionIndex:()=>{const Be=N.current.selectionStart??0,et=N.current.selectionEnd??0;if(Be===0&&et===0)return null;const Le=Be<=ue[0].startInInput?1:ue.findIndex(It=>It.startInInput-It.startSeparator.length>Be);return Le===-1?ue.length-1:Le-1},setSelectedSections:Be=>ce(Be),focusField:Ce,isFieldFocused:()=>rX(N)})),z({},h,{error:V,clearable:!!(I&&!L&&!R&&!D),onBlur:Ie,onClick:Re,onFocus:xe,onPaste:he,onKeyDown:Ee,onClear:Oe,inputRef:B,enableAccessibleFieldDOMStructure:!1,placeholder:De,inputMode:We,autoComplete:"off",value:ut?"":Ve,onChange:ve,focused:A,disabled:D,readOnly:R,autoFocus:M,openPickerAriaLabel:oe})};function rX(e){return e.current===xi(document)}const rV=e=>{const t=zle();return(e.props.enableAccessibleFieldDOMStructure??(t==null?void 0:t.enableAccessibleFieldDOMStructure)??!0?OXe:PXe)(e)};function AXe(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return x.useMemo(()=>({valueType:"date",validator:Av,internal_valueManager:mo,internal_fieldValueManager:Zz,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:RXe,internal_useOpenPickerButtonAriaLabel:MXe}),[t])}function MXe(e){const t=xn(),n=Ei();return x.useMemo(()=>{const r=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(r)},[e,n,t])}function RXe(e){const t=xn(),n=Rw(e);return x.useMemo(()=>z({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}function Rw(e){const t=xn(),n=Lle();return x.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:pO(t,e.minDate,n.minDate),maxDate:pO(t,e.maxDate,n.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}function DXe(e={}){const{enableAccessibleFieldDOMStructure:t=!0,ampm:n}=e;return x.useMemo(()=>({valueType:"time",validator:Mw,internal_valueManager:mo,internal_fieldValueManager:Zz,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:_Xe,internal_useOpenPickerButtonAriaLabel:kXe(n)}),[n,t])}function kXe(e){return function(n){const r=xn(),o=Ei();return x.useMemo(()=>{const i=e??r.is12HourCycleInCurrentLocale()?"fullTime12h":"fullTime24h",a=r.isValid(n)?r.format(n,i):null;return o.openTimePickerDialogue(a)},[n,o,r])}}function _Xe(e){const t=xn(),n=hce(e),r=x.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return x.useMemo(()=>z({},e,n,{format:e.format??(r?t.formats.fullTime12h:t.formats.fullTime24h)}),[e,n,r,t])}function hce(e){return x.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1}),[e.disablePast,e.disableFuture])}function $Xe(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return x.useMemo(()=>({valueType:"date-time",validator:bP,internal_valueManager:mo,internal_fieldValueManager:Zz,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:LXe,internal_useOpenPickerButtonAriaLabel:NXe}),[t])}function NXe(e){const t=xn(),n=Ei();return x.useMemo(()=>{const r=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(r)},[e,n,t])}function LXe(e){const t=xn(),n=mce(e),r=x.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return x.useMemo(()=>z({},e,n,{format:e.format??(r?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h)}),[e,n,r,t])}function mce(e){const t=xn(),n=Lle();return x.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,disableIgnoringDatePartForTimeValidation:!!e.minDateTime||!!e.maxDateTime||!!e.disableFuture||!!e.disablePast,minDate:pO(t,e.minDateTime??e.minDate,n.minDate),maxDate:pO(t,e.maxDateTime??e.maxDate,n.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime}),[e.minDateTime,e.maxDateTime,e.minTime,e.maxTime,e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}const FXe=e=>{const t=AXe(e);return rV({manager:t,props:e})};function oV(e){const{ownerState:t}=Ur(),n=yr();return x.useMemo(()=>z({},t,{isFieldDisabled:e.disabled??!1,isFieldReadOnly:e.readOnly??!1,isFieldRequired:e.required??!1,fieldDirection:n?"rtl":"ltr"}),[t,e.disabled,e.readOnly,e.required,n])}function jXe(e){return qe("MuiPickersTextField",e)}Ke("MuiPickersTextField",["root","focused","disabled","error","required"]);function BXe(e){return qe("MuiPickersInputBase",e)}const Bg=Ke("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","activeBar"]);function zXe(e){return qe("MuiPickersSectionList",e)}const f0=Ke("MuiPickersSectionList",["root","section","sectionContent"]),VXe=["slots","slotProps","elements","sectionListRef","classes"],gce=ae("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),yce=ae("span",{name:"MuiPickersSectionList",slot:"Section"})({}),vce=ae("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),bce=ae("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"}),HXe=e=>Me({root:["root"],section:["section"],sectionContent:["sectionContent"]},zXe,e);function UXe(e){const{slots:t,slotProps:n,element:r,classes:o}=e,{ownerState:i}=Ur(),a=(t==null?void 0:t.section)??yce,s=Dn({elementType:a,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:r.container,className:o.section,ownerState:i}),l=(t==null?void 0:t.sectionContent)??bce,c=Dn({elementType:l,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:i}),u=(t==null?void 0:t.sectionSeparator)??vce,f=Dn({elementType:u,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.before,ownerState:z({},i,{separatorPosition:"before"})}),h=Dn({elementType:u,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.after,ownerState:z({},i,{separatorPosition:"after"})});return k.jsxs(a,z({},s,{children:[k.jsx(u,z({},f)),k.jsx(l,z({},c)),k.jsx(u,z({},h))]}))}const GXe=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:i,elements:a,sectionListRef:s,classes:l}=r,c=$e(r,VXe),u=HXe(l),{ownerState:f}=Ur(),h=x.useRef(null),m=en(n,h),g=w=>{if(!h.current)throw new Error(`MUI X: Cannot call sectionListRef.${w} before the mount of the component.`);return h.current};x.useImperativeHandle(s,()=>({getRoot(){return g("getRoot")},getSectionContainer(w){return g("getSectionContainer").querySelector(`.${f0.section}[data-sectionindex="${w}"]`)},getSectionContent(w){return g("getSectionContent").querySelector(`.${f0.section}[data-sectionindex="${w}"] .${f0.sectionContent}`)},getSectionIndexFromDOMElement(w){const C=g("getSectionIndexFromDOMElement");if(w==null||!C.contains(w))return null;let E=null;return w.classList.contains(f0.section)?E=w:w.classList.contains(f0.sectionContent)&&(E=w.parentElement),E==null?null:Number(E.dataset.sectionindex)}}));const y=(o==null?void 0:o.root)??gce,v=Dn({elementType:y,externalSlotProps:i==null?void 0:i.root,externalForwardedProps:c,additionalProps:{ref:m,suppressContentEditableWarning:!0},className:u.root,ownerState:f});return k.jsx(y,z({},v,{children:v.contentEditable?a.map(({content:w,before:C,after:E})=>`${C.children}${w.children}${E.children}`).join(""):k.jsx(x.Fragment,{children:a.map((w,C)=>k.jsx(UXe,{slots:o,slotProps:i,element:w,classes:u},C))})}))}),xce=x.createContext(null),xP=()=>{const e=x.useContext(xce);if(e==null)throw new Error(["MUI X: The `usePickerTextFieldOwnerState` can only be called in components that are used inside a PickerTextField component"].join(` -`));return e},qXe=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef","onFocus","onBlur","classes","ownerState"],WXe=e=>Math.round(e*1e5)/1e5,SP=ae("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>z({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${WXe(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),iV=ae(gce,{name:"MuiPickersInputBase",slot:"SectionsContainer"})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{fieldDirection:"rtl"},style:{textAlign:"right /*! @noflip */"}},{props:{inputSize:"small"},style:{paddingTop:1}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0},style:{color:"currentColor",opacity:0}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!1},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),KXe=ae(yce,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),YXe=ae(bce,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),QXe=ae(vce,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),XXe=ae("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(z({},Kbe)),ZXe=ae("div",{name:"MuiPickersInputBase",slot:"ActiveBar"})(({theme:e,ownerState:t})=>({display:"none",position:"absolute",height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create(["width","left"],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:"block"},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}})),JXe=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:r,isFieldReadOnly:o,hasFieldError:i,inputSize:a,isInputInFullWidth:s,inputColor:l,hasStartAdornment:c,hasEndAdornment:u}=t,f={root:["root",n&&!r&&"focused",r&&"disabled",o&&"readOnly",i&&"error",s&&"fullWidth",`color${Te(l)}`,a==="small"&&"inputSizeSmall",c&&"adornedStart",u&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]};return Me(f,BXe,e)};function oX(e,t,n,r){var o;if(e.content.id){const i=(o=t.current)==null?void 0:o.querySelectorAll(`[data-sectionindex="${n}"] [data-range-position="${r}"]`);if(i)return Array.from(i).reduce((a,s)=>a+s.offsetWidth,0)}return 0}function eZe(e,t){var o,i,a,s,l;let n=0;if(((o=t.current)==null?void 0:o.getAttribute("data-active-range-position"))==="end")for(let c=e.length-1;c>=e.length/2;c-=1)n+=oX(e[c],t,c,"end");else for(let c=0;c{var de;(de=K.onFocus)==null||de.call(K,le),D==null||D(le)},Y=le=>{q(le)},J=le=>{var de,oe;if(C==null||C(le),le.key==="Enter"&&!le.defaultMuiPrevented){if((de=H.current)!=null&&de.dataset.multiInput)return;const ue=(oe=H.current)==null?void 0:oe.closest("form"),pe=ue==null?void 0:ue.querySelector('[type="submit"]');if(!ue||!pe)return;le.preventDefault(),ue.requestSubmit(pe)}},ie=le=>{var de;(de=K.onBlur)==null||de.call(K,le),M==null||M(le)};x.useEffect(()=>{K&&K.setAdornedStart(!!u)},[K,u]),x.useEffect(()=>{K&&(i?K.onEmpty():K.onFilled())},[K,i]);const se=JXe(A,G),ce=(h==null?void 0:h.root)||SP,ye=Dn({elementType:ce,externalSlotProps:m==null?void 0:m.root,externalForwardedProps:N,additionalProps:{"aria-invalid":K.error,ref:V},className:se.root,ownerState:G}),Se=(h==null?void 0:h.input)||iV,ne=o.some(le=>le.content["data-range-position"]!==void 0);return x.useEffect(()=>{if(!ne||!G.isPickerOpen)return;const{activeBarWidth:le,sectionOffsets:de}=eZe(o,H);L.current=[de[0],de[1]],j.current&&(j.current.style.width=`${le}px`)},[o,ne,G.isPickerOpen]),k.jsxs(ce,z({},ye,{children:[u,k.jsx(GXe,{sectionListRef:R,elements:o,contentEditable:g,tabIndex:y,className:se.sectionsContainer,onFocus:q,onBlur:ie,onInput:v,onPaste:w,onKeyDown:J,slots:{root:Se,section:KXe,sectionContent:YXe,sectionSeparator:QXe},slotProps:{root:z({},m==null?void 0:m.input,{ownerState:G}),sectionContent:{className:Bg.sectionContent},sectionSeparator:({separatorPosition:le})=>({className:le==="before"?Bg.sectionBefore:Bg.sectionAfter})}}),c,f?f(z({},K)):null,k.jsx(XXe,z({name:E,className:se.input,value:a,onChange:s,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:I,required:K.required,disabled:K.disabled,onFocus:Y},O,{ref:W})),ne&&k.jsx(ZXe,{className:se.activeBar,ref:j,ownerState:{sectionOffsets:L.current}})]}))});function tZe(e){return qe("MuiPickersOutlinedInput",e)}const yl=z({},Bg,Ke("MuiPickersOutlinedInput",["root","notchedOutline","input"])),nZe=["children","className","label","notched","shrink"],rZe=ae("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{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%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),iX=ae("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),oZe=ae("legend",{shouldForwardProp:e=>Ca(e)&&e!=="notched"})(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{inputHasLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{inputHasLabel:!0},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:{inputHasLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function iZe(e){const{className:t,label:n,notched:r}=e,o=$e(e,nZe),i=xP();return k.jsx(rZe,z({"aria-hidden":!0,className:t},o,{ownerState:i,children:k.jsx(oZe,{ownerState:i,notched:r,children:n?k.jsx(iX,{children:n}):k.jsx(iX,{className:"notranslate",children:"​"})})}))}const aZe=["label","autoFocus","ownerState","classes","notched"],sZe=ae(SP,{name:"MuiPickersOutlinedInput",slot:"Root"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${yl.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${yl.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${yl.focused} .${yl.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${yl.disabled}`]:{[`& .${yl.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${yl.error} .${yl.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>{var r;return((r=(e.vars??e).palette[n])==null?void 0:r.main)??!1}).map(n=>({props:{inputColor:n},style:{[`&.${yl.focused}:not(.${yl.error}) .${yl.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),lZe=ae(iV,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),cZe=e=>{const n=Me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},tZe,e);return z({},e,n)},Sce=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiPickersOutlinedInput"}),{label:o,classes:i,notched:a}=r,s=$e(r,aZe),l=il(),c=cZe(i);return k.jsx(aV,z({slots:{root:sZe,input:lZe},renderSuffix:u=>k.jsx(iZe,{shrink:!!(a||u.adornedStart||u.focused||u.filled),notched:!!(a||u.adornedStart||u.focused||u.filled),className:c.notchedOutline,label:o!=null&&o!==""&&(l!=null&&l.required)?k.jsxs(x.Fragment,{children:[o," ","*"]}):o})},s,{label:o,classes:c,ref:n}))});Sce.muiName="Input";function uZe(e){return qe("MuiPickersFilledInput",e)}const Sp=z({},Bg,Ke("MuiPickersFilledInput",["root","underline","input"])),dZe=["label","autoFocus","disableUnderline","hiddenLabel","classes"],fZe=ae(SP,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>Ca(e)&&e!=="disableUnderline"})(({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)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Sp.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Sp.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>{var s;return{props:{inputColor:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[a])==null?void 0:s.main}`}}}}),{props:{disableUnderline:!1},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"},[`&.${Sp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Sp.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(.${Sp.disabled}, .${Sp.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Sp.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),pZe=ae(iV,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>Ca(e)&&e!=="hiddenLabel"})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:"small"},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:"small"},style:{paddingTop:8,paddingBottom:9}}]}),hZe=(e,t)=>{const{inputHasUnderline:n}=t,o=Me({root:["root",n&&"underline"],input:["input"]},uZe,e);return z({},e,o)},wce=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:i=!1,hiddenLabel:a=!1,classes:s}=r,l=$e(r,dZe),c=xP(),u=z({},c,{inputHasUnderline:!i}),f=hZe(s,u);return k.jsx(aV,z({slots:{root:fZe,input:pZe},slotProps:{root:{disableUnderline:i},input:{hiddenLabel:a}}},l,{label:o,classes:f,ref:n,ownerState:u}))});wce.muiName="Input";function mZe(e){return qe("MuiPickersFilledInput",e)}const p0=z({},Bg,Ke("MuiPickersInput",["root","underline","input"])),gZe=["label","autoFocus","disableUnderline","ownerState","classes"],yZe=ae(SP,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>Ca(e)&&e!=="disableUnderline"})(({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})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(r=>(e.vars??e).palette[r].main).map(r=>({props:{inputColor:r},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",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"},[`&.${p0.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${p0.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(.${p0.disabled}, .${p0.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${p0.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),vZe=(e,t)=>{const{inputHasUnderline:n}=t,o=Me({root:["root",!n&&"underline"],input:["input"]},mZe,e);return z({},e,o)},Cce=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:i=!1,classes:a}=r,s=$e(r,gZe),l=xP(),c=z({},l,{inputHasUnderline:!i}),u=vZe(a,c);return k.jsx(aV,z({slots:{root:yZe},slotProps:{root:{disableUnderline:i}}},s,{label:o,classes:u,ref:n}))});Cce.muiName="Input";const bZe=["onFocus","onBlur","className","classes","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps","data-active-range-position"],xZe={standard:Cce,filled:wce,outlined:Sce},SZe=ae(Lh,{name:"MuiPickersTextField",slot:"Root"})({}),wZe=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:r,isFieldRequired:o}=t;return Me({root:["root",n&&!r&&"focused",r&&"disabled",o&&"required"]},jXe,e)},Ece=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiPickersTextField"}),{onFocus:o,onBlur:i,className:a,classes:s,color:l="primary",disabled:c=!1,error:u=!1,variant:f="outlined",required:h=!1,InputProps:m,inputProps:g,inputRef:y,sectionListRef:v,elements:w,areAllSectionsEmpty:C,onClick:E,onKeyDown:I,onKeyUp:O,onPaste:P,onInput:R,endAdornment:D,startAdornment:M,tabIndex:A,contentEditable:_,focused:N,value:B,onChange:H,fullWidth:j,id:L,name:V,helperText:W,FormHelperTextProps:K,label:G,InputLabelProps:q,"data-active-range-position":Y}=r,J=$e(r,bZe),ie=x.useRef(null),se=en(n,ie),ce=bn(L),ye=W&&ce?`${ce}-helper-text`:void 0,Se=G&&ce?`${ce}-label`:void 0,ne=oV({disabled:r.disabled,required:r.required,readOnly:m==null?void 0:m.readOnly}),le=x.useMemo(()=>z({},ne,{isFieldValueEmpty:C,isFieldFocused:N??!1,hasFieldError:u??!1,inputSize:r.size??"medium",inputColor:l??"primary",isInputInFullWidth:j??!1,hasStartAdornment:!!(M??(m==null?void 0:m.startAdornment)),hasEndAdornment:!!(D??(m==null?void 0:m.endAdornment)),inputHasLabel:!!G}),[ne,C,N,u,r.size,l,j,M,D,m==null?void 0:m.startAdornment,m==null?void 0:m.endAdornment,G]),de=wZe(s,le),oe=xZe[f];return k.jsx(xce.Provider,{value:le,children:k.jsxs(SZe,z({className:fe(de.root,a),ref:se,focused:N,disabled:c,variant:f,error:u,color:l,fullWidth:j,required:h,ownerState:le},J,{children:[G!=null&&G!==""&&k.jsx(Fh,z({htmlFor:ce,id:Se},q,{children:G})),k.jsx(oe,z({elements:w,areAllSectionsEmpty:C,onClick:E,onKeyDown:I,onKeyUp:O,onInput:R,onPaste:P,onFocus:o,onBlur:i,endAdornment:D,startAdornment:M,tabIndex:A,contentEditable:_,value:B,onChange:H,id:ce,fullWidth:j,inputProps:g,inputRef:y,sectionListRef:v,label:G,name:V,role:"group","aria-labelledby":Se,"aria-describedby":ye,"aria-live":ye?"polite":void 0,"data-active-range-position":Y},m)),W&&k.jsx(iw,z({id:ye},K,{children:W}))]}))})}),CZe=["enableAccessibleFieldDOMStructure"],EZe=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],TZe=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],OZe=["ownerState"],IZe=["ownerState"],PZe=["ownerState"],AZe=["ownerState"],MZe=["InputProps","inputProps"],RZe=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=$e(e,CZe);if(t){const{InputProps:v,readOnly:w,onClear:C,clearable:E,clearButtonPosition:I,openPickerButtonPosition:O,openPickerAriaLabel:P}=n,R=$e(n,EZe);return{clearable:E,onClear:C,clearButtonPosition:I,openPickerButtonPosition:O,openPickerAriaLabel:P,textFieldProps:z({},R,{InputProps:z({},v??{},{readOnly:w})})}}const{onPaste:r,onKeyDown:o,inputMode:i,readOnly:a,InputProps:s,inputProps:l,inputRef:c,onClear:u,clearable:f,clearButtonPosition:h,openPickerButtonPosition:m,openPickerAriaLabel:g}=n,y=$e(n,TZe);return{clearable:f,onClear:u,clearButtonPosition:h,openPickerButtonPosition:m,openPickerAriaLabel:g,textFieldProps:z({},y,{InputProps:z({},s??{},{readOnly:a}),inputProps:z({},l??{},{inputMode:i,onPaste:r,onKeyDown:o,ref:c})})}},sV=x.createContext({slots:{},slotProps:{},inputRef:void 0});function lV(e){var K,G;const{slots:t,slotProps:n,fieldResponse:r,defaultOpenPickerIcon:o}=e,i=Ei(),a=tV(),s=x.useContext(sV),{textFieldProps:l,onClear:c,clearable:u,openPickerAriaLabel:f,clearButtonPosition:h="end",openPickerButtonPosition:m="end"}=RZe(r),g=oV(l),y=Ze(q=>{q.preventDefault(),a==null||a.setOpen(Y=>!Y)}),v=a?a.triggerStatus:"hidden",w=u?h:null,C=v!=="hidden"?m:null,E=(t==null?void 0:t.textField)??s.slots.textField??(r.enableAccessibleFieldDOMStructure===!1?dn:Ece),I=(t==null?void 0:t.inputAdornment)??s.slots.inputAdornment??So,O=Dn({elementType:I,externalSlotProps:CE(s.slotProps.inputAdornment,n==null?void 0:n.inputAdornment),additionalProps:{position:"start"},ownerState:z({},g,{position:"start"})}),P=$e(O,OZe),R=Dn({elementType:I,externalSlotProps:n==null?void 0:n.inputAdornment,additionalProps:{position:"end"},ownerState:z({},g,{position:"end"})}),D=$e(R,IZe),M=s.slots.openPickerButton??pn,A=Dn({elementType:M,externalSlotProps:s.slotProps.openPickerButton,additionalProps:{disabled:v==="disabled",onClick:y,"aria-label":f,edge:l.variant!=="standard"?C:!1},ownerState:g}),_=$e(A,PZe),N=s.slots.openPickerIcon??o,B=Dn({elementType:N,externalSlotProps:s.slotProps.openPickerIcon,ownerState:g}),H=(t==null?void 0:t.clearButton)??s.slots.clearButton??pn,j=Dn({elementType:H,externalSlotProps:CE(s.slotProps.clearButton,n==null?void 0:n.clearButton),className:"clearButton",additionalProps:{title:i.fieldClearLabel,tabIndex:-1,onClick:c,disabled:r.disabled||r.readOnly,edge:l.variant!=="standard"&&w!==C?w:!1},ownerState:g}),L=$e(j,AZe),V=(t==null?void 0:t.clearIcon)??s.slots.clearIcon??CYe,W=Dn({elementType:V,externalSlotProps:CE(s.slotProps.clearIcon,n==null?void 0:n.clearIcon),additionalProps:{fontSize:"small"},ownerState:g});return l.ref=en(l.ref,a==null?void 0:a.rootRef),l.InputProps||(l.InputProps={}),a&&(l.InputProps.ref=a.triggerRef),!((K=l.InputProps)!=null&&K.startAdornment)&&(w==="start"||C==="start")&&(l.InputProps.startAdornment=k.jsxs(I,z({},P,{children:[C==="start"&&k.jsx(M,z({},_,{children:k.jsx(N,z({},B))})),w==="start"&&k.jsx(H,z({},L,{children:k.jsx(V,z({},W))}))]}))),!((G=l.InputProps)!=null&&G.endAdornment)&&(w==="end"||C==="end")&&(l.InputProps.endAdornment=k.jsxs(I,z({},D,{children:[w==="end"&&k.jsx(H,z({},L,{children:k.jsx(V,z({},W))})),C==="end"&&k.jsx(M,z({},_,{children:k.jsx(N,z({},B))}))]}))),w!=null&&(l.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(l.sx)?l.sx:[l.sx]]),k.jsx(E,z({},l))}function CE(e,t){return e?t?n=>z({},Rc(t,n),Rc(e,n)):e:t}function cV(e){const{ref:t,externalForwardedProps:n,slotProps:r}=e,o=x.useContext(sV),i=tV(),a=oV(n),{InputProps:s,inputProps:l}=n,c=$e(n,MZe),u=Dn({elementType:Ece,externalSlotProps:CE(o.slotProps.textField,r==null?void 0:r.textField),externalForwardedProps:c,additionalProps:{ref:t,sx:i==null?void 0:i.rootSx,label:i==null?void 0:i.label,name:i==null?void 0:i.name,className:i==null?void 0:i.rootClassName,inputRef:o.inputRef},ownerState:a});return u.inputProps=z({},l,u.inputProps),u.InputProps=z({},s,u.InputProps),u}function Tce(e){const{slots:t={},slotProps:n={},inputRef:r,children:o}=e,i=x.useMemo(()=>({inputRef:r,slots:{openPickerButton:t.openPickerButton,openPickerIcon:t.openPickerIcon,textField:t.textField,inputAdornment:t.inputAdornment,clearIcon:t.clearIcon,clearButton:t.clearButton},slotProps:{openPickerButton:n.openPickerButton,openPickerIcon:n.openPickerIcon,textField:n.textField,inputAdornment:n.inputAdornment,clearIcon:n.clearIcon,clearButton:n.clearButton}}),[r,t.openPickerButton,t.openPickerIcon,t.textField,t.inputAdornment,t.clearIcon,t.clearButton,n.openPickerButton,n.openPickerIcon,n.textField,n.inputAdornment,n.clearIcon,n.clearButton]);return k.jsx(sV.Provider,{value:i,children:o})}const DZe=["slots","slotProps"],Oce=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiDateField"}),{slots:o,slotProps:i}=r,a=$e(r,DZe),s=cV({slotProps:i,ref:n,externalForwardedProps:a}),l=FXe(s);return k.jsx(lV,{slots:o,slotProps:i,fieldResponse:l,defaultOpenPickerIcon:Fle})}),kZe=e=>{const t=DXe(e);return rV({manager:t,props:e})},_Ze=["slots","slotProps","InputProps","inputProps"],Ice=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiTimeField"}),{slots:o,slotProps:i}=r,a=$e(r,_Ze),s=cV({slotProps:i,ref:n,externalForwardedProps:a}),l=kZe(s);return k.jsx(lV,{slots:o,slotProps:i,fieldResponse:l,defaultOpenPickerIcon:xYe})}),$Ze=e=>{const t=$Xe(e);return rV({manager:t,props:e})},NZe=["slots","slotProps"],Pce=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiDateTimeField"}),{slots:o,slotProps:i}=r,a=$e(r,NZe),s=cV({slotProps:i,ref:n,externalForwardedProps:a}),l=$Ze(s);return k.jsx(lV,{slots:o,slotProps:i,fieldResponse:l,defaultOpenPickerIcon:Fle})}),Ace=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a,timezone:s})=>{const l=qh();return x.useCallback(c=>Av({adapter:l,value:c,timezone:s,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a}})!==null,[l,e,t,n,r,o,i,a,s])},LZe=(e,t)=>(n,r)=>{switch(r.type){case"setVisibleDate":return z({},n,{slideDirection:r.direction,currentMonth:r.month,isMonthSwitchingAnimating:!t.isSameMonth(r.month,n.currentMonth)&&!e&&!r.skipAnimation,focusedDay:r.focusedDay});case"changeMonthTimezone":{const o=r.newTimezone;if(t.getTimezone(n.currentMonth)===o)return n;let i=t.setTimezone(n.currentMonth,o);return t.getMonth(i)!==t.getMonth(n.currentMonth)&&(i=t.setMonth(i,t.getMonth(n.currentMonth))),z({},n,{currentMonth:i})}case"finishMonthSwitchingAnimation":return z({},n,{isMonthSwitchingAnimating:!1});default:throw new Error("missing support")}},FZe=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,maxDate:i,minDate:a,onMonthChange:s,onYearChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:f,getCurrentMonthFromVisibleDate:h}=e,m=xn(),g=x.useRef(LZe(!!c,m)).current,y=x.useMemo(()=>mo.getInitialReferenceValue({value:t,utils:m,timezone:f,props:e,referenceDate:n,granularity:Al.day}),[n,f]),[v,w]=x.useReducer(g,{isMonthSwitchingAnimating:!1,focusedDay:y,currentMonth:m.startOfMonth(y),slideDirection:"left"}),C=Ace({shouldDisableDate:u,minDate:a,maxDate:i,disableFuture:r,disablePast:o,timezone:f});x.useEffect(()=>{w({type:"changeMonthTimezone",newTimezone:m.getTimezone(y)})},[y,m]);const E=Ze(({target:O,reason:P})=>{if(P==="cell-interaction"&&v.focusedDay!=null&&m.isSameDay(O,v.focusedDay))return;const R=P==="cell-interaction";let D,M;if(P==="cell-interaction")D=h(O,v.currentMonth),M=O;else if(D=m.isSameMonth(O,v.currentMonth)?v.currentMonth:m.startOfMonth(O),M=O,C(M)){const N=m.startOfMonth(O),B=m.endOfMonth(O);M=bS({utils:m,date:M,minDate:m.isBefore(a,N)?N:a,maxDate:m.isAfter(i,B)?B:i,disablePast:o,disableFuture:r,isDateDisabled:C,timezone:f})}const A=!m.isSameMonth(v.currentMonth,D),_=!m.isSameYear(v.currentMonth,D);A&&(s==null||s(D)),_&&(l==null||l(m.startOfYear(D))),w({type:"setVisibleDate",month:D,direction:m.isAfterDay(D,v.currentMonth)?"left":"right",focusedDay:v.focusedDay!=null&&M!=null&&m.isSameDay(M,v.focusedDay)?v.focusedDay:M,skipAnimation:R})}),I=x.useCallback(()=>{w({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:y,calendarState:v,setVisibleDate:E,isDateDisabled:C,onMonthSwitchingAnimationEnd:I}},jZe=e=>qe("MuiPickersFadeTransitionGroup",e);Ke("MuiPickersFadeTransitionGroup",["root"]);const BZe=["children"],zZe=e=>Me({root:["root"]},jZe,e),VZe=ae(ew,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function Mce(e){const t=Pn({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:r,transKey:o,classes:i}=t,{children:a}=t,s=$e(t,BZe),l=zZe(i),c=Lr();if(r)return a;const u=z({},s);return k.jsx(VZe,{className:fe(l.root,n),ownerState:u,children:k.jsx(hh,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:c.transitions.duration.enteringScreen,enter:c.transitions.duration.enteringScreen,exit:0},children:a},o)})}const HZe=e=>qe("MuiPickersSlideTransition",e),Ps=Ke("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),UZe=["children","className","reduceAnimations","slideDirection","transKey","classes"],GZe=(e,t)=>{const{slideDirection:n}=t,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Me(r,HZe,e)},qZe=ae(ew,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Ps["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Ps["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Ps.slideEnterActive}`]:t.slideEnterActive},{[`.${Ps.slideExit}`]:t.slideExit},{[`.${Ps["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Ps["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Ps["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Ps["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Ps.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Ps.slideExit}`]:{transform:"translate(0%)"},[`& .${Ps["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Ps["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function WZe(e){const t=Pn({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,slideDirection:i,transKey:a,classes:s}=t,l=$e(t,UZe),{ownerState:c}=Ur(),u=z({},c,{slideDirection:i}),f=GZe(s,u),h=Lr();if(o)return k.jsx("div",{className:fe(f.root,r),children:n});const m={exit:f.exit,enterActive:f.enterActive,enter:f.enter,exitActive:f.exitActive};return k.jsx(qZe,{className:fe(f.root,r),childFactory:g=>x.cloneElement(g,{classNames:m}),role:"presentation",ownerState:u,children:k.jsx(qj,z({mountOnEnter:!0,unmountOnExit:!0,timeout:h.transitions.duration.complex,classNames:m},l,{children:n}),a)})}const KZe=e=>qe("MuiDayCalendar",e);Ke("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const YZe=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],QZe=["ownerState"],XZe=e=>Me({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},KZe,e),Rce=(yS+gP*2)*6,ZZe=ae("div",{name:"MuiDayCalendar",slot:"Root"})({}),JZe=ae("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),eJe=ae(at,{name:"MuiDayCalendar",slot:"WeekDayLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),tJe=ae(at,{name:"MuiDayCalendar",slot:"WeekNumberLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.disabled})),nJe=ae(at,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>z({},e.typography.caption,{width:yS,height:yS,padding:0,margin:`0 ${gP}px`,color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),rJe=ae("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Rce}),oJe=ae(WZe,{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:Rce}),iJe=ae("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),aJe=ae("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:`${gP}px 0`,display:"flex",justifyContent:"center"});function sJe(e){let{parentProps:t,day:n,focusedDay:r,selectedDays:o,isDateDisabled:i,currentMonthNumber:a,isViewFocused:s}=e,l=$e(e,YZe);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:h,slots:m,slotProps:g,timezone:y}=t,v=xn(),w=Wh(y),C=r!=null&&v.isSameDay(n,r),E=s&&C,I=o.some(H=>v.isSameDay(H,n)),O=v.isSameDay(n,w),P=x.useMemo(()=>c||i(n),[c,i,n]),R=x.useMemo(()=>v.getMonth(n)!==a,[v,n,a]),D=oce({day:n,selected:I,disabled:P,today:O,outsideCurrentMonth:R,disableMargin:void 0,disableHighlightToday:u,showDaysOutsideCurrentMonth:h}),M=(m==null?void 0:m.day)??sXe,A=Dn({elementType:M,externalSlotProps:g==null?void 0:g.day,additionalProps:z({disableHighlightToday:u,showDaysOutsideCurrentMonth:h,role:"gridcell",isAnimating:f,"data-timestamp":v.toJsDate(n).valueOf()},l),ownerState:z({},D,{day:n,isDayDisabled:P,isDaySelected:I})}),_=$e(A,QZe),N=x.useMemo(()=>{const H=v.startOfMonth(v.setMonth(n,a));return h?v.isSameDay(n,v.startOfWeek(H)):v.isSameDay(n,H)},[a,n,h,v]),B=x.useMemo(()=>{const H=v.endOfMonth(v.setMonth(n,a));return h?v.isSameDay(n,v.endOfWeek(H)):v.isSameDay(n,H)},[a,n,h,v]);return k.jsx(M,z({},_,{day:n,disabled:P,autoFocus:!R&&E,today:O,outsideCurrentMonth:R,isFirstVisibleCell:N,isLastVisibleCell:B,selected:I,tabIndex:C?0:-1,"aria-selected":I,"aria-current":O?"date":void 0}))}function lJe(e){const t=Pn({props:e,name:"MuiDayCalendar"}),n=xn(),{onFocusedDayChange:r,className:o,classes:i,currentMonth:a,selectedDays:s,focusedDay:l,loading:c,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:f,readOnly:h,reduceAnimations:m,renderLoading:g=()=>k.jsx("span",{children:"..."}),slideDirection:y,TransitionProps:v,disablePast:w,disableFuture:C,minDate:E,maxDate:I,shouldDisableDate:O,shouldDisableMonth:P,shouldDisableYear:R,dayOfWeekFormatter:D=de=>n.format(de,"weekdayShort").charAt(0).toUpperCase(),hasFocus:M,onFocusedViewChange:A,gridLabelId:_,displayWeekNumber:N,fixedWeekNumber:B,timezone:H}=t,j=Wh(H),L=XZe(i),V=yr(),W=Ace({shouldDisableDate:O,shouldDisableMonth:P,shouldDisableYear:R,minDate:E,maxDate:I,disablePast:w,disableFuture:C,timezone:H}),K=Ei(),G=Ze(de=>{h||u(de)}),q=de=>{W(de)||(r(de),A==null||A(!0))},Y=Ze((de,oe)=>{switch(de.key){case"ArrowUp":q(n.addDays(oe,-7)),de.preventDefault();break;case"ArrowDown":q(n.addDays(oe,7)),de.preventDefault();break;case"ArrowLeft":{const ue=n.addDays(oe,V?1:-1),pe=n.addMonths(oe,V?1:-1),Ce=bS({utils:n,date:ue,minDate:V?ue:n.startOfMonth(pe),maxDate:V?n.endOfMonth(pe):ue,isDateDisabled:W,timezone:H});q(Ce||ue),de.preventDefault();break}case"ArrowRight":{const ue=n.addDays(oe,V?-1:1),pe=n.addMonths(oe,V?-1:1),Ce=bS({utils:n,date:ue,minDate:V?n.startOfMonth(pe):ue,maxDate:V?ue:n.endOfMonth(pe),isDateDisabled:W,timezone:H});q(Ce||ue),de.preventDefault();break}case"Home":q(n.startOfWeek(oe)),de.preventDefault();break;case"End":q(n.endOfWeek(oe)),de.preventDefault();break;case"PageUp":q(n.addMonths(oe,1)),de.preventDefault();break;case"PageDown":q(n.addMonths(oe,-1)),de.preventDefault();break}}),J=Ze((de,oe)=>q(oe)),ie=Ze((de,oe)=>{l!=null&&n.isSameDay(l,oe)&&(A==null||A(!1))}),se=n.getMonth(a),ce=n.getYear(a),ye=x.useMemo(()=>s.filter(de=>!!de).map(de=>n.startOfDay(de)),[n,s]),Se=`${ce}-${se}`,ne=x.useMemo(()=>x.createRef(),[Se]),le=x.useMemo(()=>{const de=n.getWeekArray(a);let oe=n.addMonths(a,1);for(;B&&de.length{de.lengthk.jsx(eJe,{variant:"caption",role:"columnheader","aria-label":n.format(de,"weekday"),className:L.weekDayLabel,children:D(de)},oe.toString()))]}),c?k.jsx(rJe,{className:L.loadingContainer,children:g()}):k.jsx(oJe,z({transKey:Se,onExited:f,reduceAnimations:m,slideDirection:y,className:fe(o,L.slideTransition)},v,{nodeRef:ne,children:k.jsx(iJe,{ref:ne,role:"rowgroup",className:L.monthContainer,children:le.map((de,oe)=>k.jsxs(aJe,{role:"row",className:L.weekContainer,"aria-rowindex":oe+1,children:[N&&k.jsx(nJe,{className:L.weekNumber,role:"rowheader","aria-label":K.calendarWeekNumberAriaLabelText(n.getWeekNumber(de[0])),children:K.calendarWeekNumberText(n.getWeekNumber(de[0]))}),de.map((ue,pe)=>k.jsx(sJe,{parentProps:t,day:ue,selectedDays:ye,isViewFocused:M,focusedDay:l,onKeyDown:Y,onFocus:J,onBlur:ie,onDaySelect:G,isDateDisabled:W,currentMonthNumber:se,"aria-colindex":pe+1},ue.toString()))]},`week-${de[0]}`))})}))]})}function Dce(e){return qe("MuiMonthCalendar",e)}const q1=Ke("MuiMonthCalendar",["root","button","disabled","selected"]),cJe=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],uJe=(e,t)=>{const n={button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]};return Me(n,Dce,e)},dJe=ae("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${q1.disabled}`]:t.disabled},{[`&.${q1.selected}`]:t.selected}]})(({theme:e})=>z({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${q1.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${q1.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),fJe=x.memo(function(t){const{autoFocus:n,classes:r,disabled:o,selected:i,value:a,onClick:s,onKeyDown:l,onFocus:c,onBlur:u,slots:f,slotProps:h}=t,m=$e(t,cJe),g=x.useRef(null),{ownerState:y}=Ur(),v=z({},y,{isMonthDisabled:o,isMonthSelected:i}),w=uJe(r,v);In(()=>{var I;n&&((I=g.current)==null||I.focus())},[n]);const C=(f==null?void 0:f.monthButton)??dJe,E=Dn({elementType:C,externalSlotProps:h==null?void 0:h.monthButton,externalForwardedProps:m,additionalProps:{disabled:o,ref:g,type:"button",role:"radio","aria-checked":i,onClick:I=>s(I,a),onKeyDown:I=>l(I,a),onFocus:I=>c(I,a),onBlur:I=>u(I,a)},ownerState:v,className:w.button});return k.jsx(C,z({},E))}),pJe=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],hJe=e=>Me({root:["root"]},Dce,e);function mJe(e,t){const n=Pn({props:e,name:t}),r=Rw(n);return z({},n,r,{monthsPerRow:n.monthsPerRow??3})}const gJe=ae("div",{name:"MuiMonthCalendar",slot:"Root",shouldForwardProp:e=>Ca(e)&&e!=="monthsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:16,padding:"8px 0",width:jy,boxSizing:"border-box",variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),yJe=x.forwardRef(function(t,n){const r=mJe(t,"MuiMonthCalendar"),{autoFocus:o,className:i,classes:a,value:s,defaultValue:l,referenceDate:c,disabled:u,disableFuture:f,disablePast:h,maxDate:m,minDate:g,onChange:y,shouldDisableMonth:v,readOnly:w,onMonthFocus:C,hasFocus:E,onFocusedViewChange:I,monthsPerRow:O,timezone:P,gridLabelId:R,slots:D,slotProps:M}=r,A=$e(r,pJe),{value:_,handleValueChange:N,timezone:B}=qf({name:"MonthCalendar",timezone:P,value:s,defaultValue:l,referenceDate:c,onChange:y,valueManager:mo}),H=Wh(B),j=yr(),L=xn(),{ownerState:V}=Ur(),W=x.useMemo(()=>mo.getInitialReferenceValue({value:_,utils:L,props:r,timezone:B,referenceDate:c,granularity:Al.month}),[]),K=hJe(a),G=x.useMemo(()=>L.getMonth(H),[L,H]),q=x.useMemo(()=>_!=null?L.getMonth(_):null,[_,L]),[Y,J]=x.useState(()=>q||L.getMonth(W)),[ie,se]=ia({name:"MonthCalendar",state:"hasFocus",controlled:E,default:o??!1}),ce=Ze(ue=>{se(ue),I&&I(ue)}),ye=x.useCallback(ue=>{const pe=L.startOfMonth(h&&L.isAfter(H,g)?H:g),Ce=L.startOfMonth(f&&L.isBefore(H,m)?H:m),xe=L.startOfMonth(ue);return L.isBefore(xe,pe)||L.isAfter(xe,Ce)?!0:v?v(xe):!1},[f,h,m,g,H,v,L]),Se=Ze((ue,pe)=>{if(w)return;const Ce=L.setMonth(_??W,pe);N(Ce)}),ne=Ze(ue=>{ye(L.setMonth(_??W,ue))||(J(ue),ce(!0),C&&C(ue))});x.useEffect(()=>{J(ue=>q!==null&&ue!==q?q:ue)},[q]);const le=Ze((ue,pe)=>{switch(ue.key){case"ArrowUp":ne((12+pe-3)%12),ue.preventDefault();break;case"ArrowDown":ne((12+pe+3)%12),ue.preventDefault();break;case"ArrowLeft":ne((12+pe+(j?1:-1))%12),ue.preventDefault();break;case"ArrowRight":ne((12+pe+(j?-1:1))%12),ue.preventDefault();break}}),de=Ze((ue,pe)=>{ne(pe)}),oe=Ze((ue,pe)=>{Y===pe&&ce(!1)});return k.jsx(gJe,z({ref:n,className:fe(K.root,i),ownerState:V,role:"radiogroup","aria-labelledby":R,monthsPerRow:O},A,{children:Wz(L,_??W).map(ue=>{const pe=L.getMonth(ue),Ce=L.format(ue,"monthShort"),xe=L.format(ue,"month"),Re=pe===q,he=u||ye(ue);return k.jsx(fJe,{selected:Re,value:pe,onClick:Se,onKeyDown:le,autoFocus:ie&&pe===Y,disabled:he,tabIndex:pe===Y&&!he?0:-1,onFocus:de,onBlur:oe,"aria-current":G===pe?"date":void 0,"aria-label":xe,slots:D,slotProps:M,classes:a,children:Ce},Ce)})}))});function kce(e){return qe("MuiYearCalendar",e)}const W1=Ke("MuiYearCalendar",["root","button","disabled","selected"]),vJe=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],bJe=(e,t)=>{const n={button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]};return Me(n,kce,e)},xJe=ae("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${W1.disabled}`]:t.disabled},{[`&.${W1.selected}`]:t.selected}]})(({theme:e})=>z({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Nt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${W1.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${W1.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),SJe=x.memo(function(t){const{autoFocus:n,classes:r,disabled:o,selected:i,value:a,onClick:s,onKeyDown:l,onFocus:c,onBlur:u,slots:f,slotProps:h}=t,m=$e(t,vJe),g=x.useRef(null),{ownerState:y}=Ur(),v=z({},y,{isYearDisabled:o,isYearSelected:i}),w=bJe(r,v);In(()=>{var I;n&&((I=g.current)==null||I.focus())},[n]);const C=(f==null?void 0:f.yearButton)??xJe,E=Dn({elementType:C,externalSlotProps:h==null?void 0:h.yearButton,externalForwardedProps:m,additionalProps:{disabled:o,ref:g,type:"button",role:"radio","aria-checked":i,onClick:I=>s(I,a),onKeyDown:I=>l(I,a),onFocus:I=>c(I,a),onBlur:I=>u(I,a)},ownerState:v,className:w.button});return k.jsx(C,z({},E))}),wJe=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],CJe=e=>Me({root:["root"]},kce,e);function EJe(e,t){const n=Pn({props:e,name:t}),r=Rw(n);return z({},n,r,{yearsPerRow:n.yearsPerRow??3,yearsOrder:n.yearsOrder??"asc"})}const TJe=ae("div",{name:"MuiYearCalendar",slot:"Root",shouldForwardProp:e=>Ca(e)&&e!=="yearsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:12,padding:"6px 0",overflowY:"auto",height:"100%",width:jy,maxHeight:FYe,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),OJe=ae("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),IJe=x.forwardRef(function(t,n){const r=EJe(t,"MuiYearCalendar"),{autoFocus:o,className:i,classes:a,value:s,defaultValue:l,referenceDate:c,disabled:u,disableFuture:f,disablePast:h,maxDate:m,minDate:g,onChange:y,readOnly:v,shouldDisableYear:w,onYearFocus:C,hasFocus:E,onFocusedViewChange:I,yearsOrder:O,yearsPerRow:P,timezone:R,gridLabelId:D,slots:M,slotProps:A}=r,_=$e(r,wJe),{value:N,handleValueChange:B,timezone:H}=qf({name:"YearCalendar",timezone:R,value:s,defaultValue:l,referenceDate:c,onChange:y,valueManager:mo}),j=Wh(H),L=yr(),V=xn(),{ownerState:W}=Ur(),K=x.useMemo(()=>mo.getInitialReferenceValue({value:N,utils:V,props:r,timezone:H,referenceDate:c,granularity:Al.year}),[]),G=CJe(a),q=x.useMemo(()=>V.getYear(j),[V,j]),Y=x.useMemo(()=>N!=null?V.getYear(N):null,[N,V]),[J,ie]=x.useState(()=>Y||V.getYear(K)),[se,ce]=ia({name:"YearCalendar",state:"hasFocus",controlled:E,default:o??!1}),ye=Ze(ve=>{ce(ve),I&&I(ve)}),Se=x.useCallback(ve=>{if(h&&V.isBeforeYear(ve,j)||f&&V.isAfterYear(ve,j)||g&&V.isBeforeYear(ve,g)||m&&V.isAfterYear(ve,m))return!0;if(!w)return!1;const Oe=V.startOfYear(ve);return w(Oe)},[f,h,m,g,j,w,V]),ne=Ze((ve,Oe)=>{if(v)return;const te=V.setYear(N??K,Oe);B(te)}),le=Ze(ve=>{Se(V.setYear(N??K,ve))||(ie(ve),ye(!0),C==null||C(ve))});x.useEffect(()=>{ie(ve=>Y!==null&&ve!==Y?Y:ve)},[Y]);const de=O!=="desc"?P*1:P*-1,oe=L&&O==="asc"||!L&&O==="desc"?-1:1,ue=Ze((ve,Oe)=>{switch(ve.key){case"ArrowUp":le(Oe-de),ve.preventDefault();break;case"ArrowDown":le(Oe+de),ve.preventDefault();break;case"ArrowLeft":le(Oe-oe),ve.preventDefault();break;case"ArrowRight":le(Oe+oe),ve.preventDefault();break}}),pe=Ze((ve,Oe)=>{le(Oe)}),Ce=Ze((ve,Oe)=>{J===Oe&&ye(!1)}),xe=x.useRef(null),Re=en(n,xe);x.useEffect(()=>{if(o||xe.current===null)return;const ve=xe.current.querySelector('[tabindex="0"]');if(!ve)return;const Oe=ve.offsetHeight,te=ve.offsetTop,Ee=xe.current.clientHeight,De=xe.current.scrollTop,Ve=te+Oe;Oe>Ee||te{const Oe=V.getYear(ve),te=Oe===Y,Ee=u||Se(ve);return k.jsx(SJe,{selected:te,value:Oe,onClick:ne,onKeyDown:ue,autoFocus:se&&Oe===J,disabled:Ee,tabIndex:Oe===J&&!Ee?0:-1,onFocus:pe,onBlur:Ce,"aria-current":q===Oe?"date":void 0,slots:M,slotProps:A,classes:a,children:V.format(ve,"year")},V.format(ve,"year"))}),Array.from({length:Ie},(ve,Oe)=>k.jsx(OJe,{},Oe))]}))}),PJe=e=>qe("MuiPickersCalendarHeader",e),AJe=Ke("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),MJe=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],RJe=["ownerState"],DJe=e=>Me({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},PJe,e),kJe=ae("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),_Je=ae("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer"})(({theme:e})=>z({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),$Je=ae("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),NJe=ae(pn,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${AJe.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),LJe=ae(yYe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon"})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),FJe=x.forwardRef(function(t,n){const r=Ei(),o=xn(),i=Pn({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:s,currentMonth:l,disabled:c,disableFuture:u,disablePast:f,maxDate:h,minDate:m,onMonthChange:g,onViewChange:y,view:v,reduceAnimations:w,views:C,labelId:E,className:I,classes:O,timezone:P,format:R=`${o.formats.month} ${o.formats.year}`}=i,D=$e(i,MJe),{ownerState:M}=Ur(),A=DJe(O),_=(a==null?void 0:a.switchViewButton)??NJe,N=Dn({elementType:_,externalSlotProps:s==null?void 0:s.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(v)},ownerState:M,className:A.switchViewButton}),B=(a==null?void 0:a.switchViewIcon)??LJe,H=Dn({elementType:B,externalSlotProps:s==null?void 0:s.switchViewIcon,ownerState:M,className:A.switchViewIcon}),j=$e(H,RJe),L=()=>g(o.addMonths(l,1)),V=()=>g(o.addMonths(l,-1)),W=NYe(l,{disableFuture:u,maxDate:h,timezone:P}),K=LYe(l,{disablePast:f,minDate:m,timezone:P}),G=()=>{if(!(C.length===1||!y||c))if(C.length===2)y(C.find(Y=>Y!==v)||C[0]);else{const Y=C.indexOf(v)!==0?0:1;y(C[Y])}};if(C.length===1&&C[0]==="year")return null;const q=o.formatByString(l,R);return k.jsxs(kJe,z({},D,{ownerState:M,className:fe(A.root,I),ref:n,children:[k.jsxs(_Je,{role:"presentation",onClick:G,ownerState:M,"aria-live":"polite",className:A.labelContainer,children:[k.jsx(Mce,{reduceAnimations:w,transKey:q,children:k.jsx($Je,{id:E,ownerState:M,className:A.label,children:q})}),C.length>1&&!c&&k.jsx(_,z({},N,{children:k.jsx(B,z({},j))}))]}),k.jsx(hh,{in:v==="day",appear:!w,enter:!w,children:k.jsx(Gle,{slots:a,slotProps:s,onGoToPrevious:V,isPreviousDisabled:K,previousLabel:r.previousMonth,onGoToNext:L,isNextDisabled:W,nextLabel:r.nextMonth})})]}))}),jJe="@media (prefers-reduced-motion: reduce)",zg=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),aX=zg&&zg[1]?parseInt(zg[1],10):null,sX=zg&&zg[2]?parseInt(zg[2],10):null,BJe=aX&&aX<10||sX&&sX<13||!1;function _ce(e){const t=Tf(jJe,{defaultMatches:!1});return e??(t||BJe)}const zJe=e=>qe("MuiDateCalendar",e);Ke("MuiDateCalendar",["root","viewTransitionContainer"]);const VJe=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","classes","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],HJe=e=>Me({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},zJe,e);function UJe(e,t){const n=Pn({props:e,name:t}),r=_ce(n.reduceAnimations),o=Rw(n);return z({},n,o,{loading:n.loading??!1,openTo:n.openTo??"day",views:n.views??["year","day"],reduceAnimations:r,renderLoading:n.renderLoading??(()=>k.jsx("span",{children:"..."}))})}const GJe=ae(yP,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:By}),qJe=ae(Mce,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),WJe=x.forwardRef(function(t,n){const r=xn(),{ownerState:o}=Ur(),i=bn(),a=UJe(t,"MuiDateCalendar"),{autoFocus:s,onViewChange:l,value:c,defaultValue:u,referenceDate:f,disableFuture:h,disablePast:m,onChange:g,onMonthChange:y,reduceAnimations:v,shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:E,view:I,views:O,openTo:P,className:R,classes:D,disabled:M,readOnly:A,minDate:_,maxDate:N,disableHighlightToday:B,focusedView:H,onFocusedViewChange:j,showDaysOutsideCurrentMonth:L,fixedWeekNumber:V,dayOfWeekFormatter:W,slots:K,slotProps:G,loading:q,renderLoading:Y,displayWeekNumber:J,yearsOrder:ie,yearsPerRow:se,monthsPerRow:ce,timezone:ye}=a,Se=$e(a,VJe),{value:ne,handleValueChange:le,timezone:de}=qf({name:"DateCalendar",timezone:ye,value:c,defaultValue:u,referenceDate:f,onChange:g,valueManager:mo}),{view:oe,setView:ue,focusedView:pe,setFocusedView:Ce,goToNextView:xe,setValueAndGoToNextView:Re}=Aw({view:I,views:O,openTo:P,onChange:le,onViewChange:l,autoFocus:s,focusedView:H,onFocusedViewChange:j}),{referenceDate:he,calendarState:Ie,setVisibleDate:ve,isDateDisabled:Oe,onMonthSwitchingAnimationEnd:te}=FZe({value:ne,referenceDate:f,reduceAnimations:v,onMonthChange:y,minDate:_,maxDate:N,shouldDisableDate:w,disablePast:m,disableFuture:h,timezone:de,getCurrentMonthFromVisibleDate:(bt,vn)=>r.isSameMonth(bt,vn)?vn:r.startOfMonth(bt)}),Ee=M&&ne||_,De=M&&ne||N,Ve=`${i}-grid-label`,We=pe!==null,rt=(K==null?void 0:K.calendarHeader)??FJe,ut=Dn({elementType:rt,externalSlotProps:G==null?void 0:G.calendarHeader,additionalProps:{views:O,view:oe,currentMonth:Ie.currentMonth,onViewChange:ue,onMonthChange:bt=>ve({target:bt,reason:"header-navigation"}),minDate:Ee,maxDate:De,disabled:M,disablePast:m,disableFuture:h,reduceAnimations:v,timezone:de,labelId:Ve},ownerState:o}),Be=Ze(bt=>{const vn=r.startOfMonth(bt),kn=r.endOfMonth(bt),Rr=Oe(bt)?bS({utils:r,date:bt,minDate:r.isBefore(_,vn)?vn:_,maxDate:r.isAfter(N,kn)?kn:N,disablePast:m,disableFuture:h,isDateDisabled:Oe,timezone:de}):bt;Rr?(Re(Rr,"finish"),ve({target:Rr,reason:"cell-interaction"})):(xe(),ve({target:vn,reason:"cell-interaction"}))}),et=Ze(bt=>{const vn=r.startOfYear(bt),kn=r.endOfYear(bt),Rr=Oe(bt)?bS({utils:r,date:bt,minDate:r.isBefore(_,vn)?vn:_,maxDate:r.isAfter(N,kn)?kn:N,disablePast:m,disableFuture:h,isDateDisabled:Oe,timezone:de}):bt;Rr?(Re(Rr,"finish"),ve({target:Rr,reason:"cell-interaction"})):(xe(),ve({target:vn,reason:"cell-interaction"}))}),Le=Ze(bt=>le(bt&&fO(r,bt,ne??he),"finish",oe));x.useEffect(()=>{r.isValid(ne)&&ve({target:ne,reason:"controlled-value-change"})},[ne]);const It=HJe(D),Lt={disablePast:m,disableFuture:h,maxDate:N,minDate:_},nt={disableHighlightToday:B,readOnly:A,disabled:M,timezone:de,gridLabelId:Ve,slots:K,slotProps:G},lt=x.useRef(oe);x.useEffect(()=>{lt.current!==oe&&(pe===lt.current&&Ce(oe,!0),lt.current=oe)},[pe,Ce,oe]);const vt=x.useMemo(()=>[ne],[ne]);return k.jsxs(GJe,z({ref:n,className:fe(It.root,R),ownerState:o},Se,{children:[k.jsx(rt,z({},ut,{slots:K,slotProps:G})),k.jsx(qJe,{reduceAnimations:v,className:It.viewTransitionContainer,transKey:oe,ownerState:o,children:k.jsxs("div",{children:[oe==="year"&&k.jsx(IJe,z({},Lt,nt,{value:ne,onChange:et,shouldDisableYear:E,hasFocus:We,onFocusedViewChange:bt=>Ce("year",bt),yearsOrder:ie,yearsPerRow:se,referenceDate:he})),oe==="month"&&k.jsx(yJe,z({},Lt,nt,{hasFocus:We,className:R,value:ne,onChange:Be,shouldDisableMonth:C,onFocusedViewChange:bt=>Ce("month",bt),monthsPerRow:ce,referenceDate:he})),oe==="day"&&k.jsx(lJe,z({},Ie,Lt,nt,{onMonthSwitchingAnimationEnd:te,hasFocus:We,onFocusedDayChange:bt=>ve({target:bt,reason:"cell-interaction"}),reduceAnimations:v,selectedDays:vt,onSelectedDaysChange:Le,shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:E,onFocusedViewChange:bt=>Ce("day",bt),showDaysOutsideCurrentMonth:L,fixedWeekNumber:V,dayOfWeekFormatter:W,displayWeekNumber:J,loading:q,renderLoading:Y}))]})})]}))});function $ce(e){return qe("MuiPickersToolbar",e)}const KJe=Ke("MuiPickersToolbar",["root","title","content"]);function wP(){const{ownerState:e}=Ur(),t=yr();return x.useMemo(()=>z({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const YJe=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],QJe=e=>Me({root:["root"],title:["title"],content:["content"]},$ce,e),XJe=ae("div",{name:"MuiPickersToolbar",slot:"Root"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{pickerOrientation:"landscape"},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),ZJe=ae("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>Ca(e)&&e!=="landscapeDirection"})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{pickerOrientation:"landscape"},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{pickerOrientation:"landscape",landscapeDirection:"row"},style:{flexDirection:"row"}}]}),uV=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiPickersToolbar"}),{children:o,className:i,classes:a,toolbarTitle:s,hidden:l,titleId:c,landscapeDirection:u}=r,f=$e(r,YJe),h=wP(),m=QJe(a);return l?null:k.jsxs(XJe,z({ref:n,className:fe(m.root,i),ownerState:h},f,{children:[k.jsx(at,{color:"text.secondary",variant:"overline",id:c,className:m.title,children:s}),k.jsx(ZJe,{className:m.content,ownerState:h,landscapeDirection:u,children:o})]}))});function JJe(e){return qe("MuiDatePickerToolbar",e)}Ke("MuiDatePickerToolbar",["root","title"]);const eet=["toolbarFormat","toolbarPlaceholder","className","classes"],tet=e=>Me({root:["root"],title:["title"]},JJe,e),net=ae(uV,{name:"MuiDatePickerToolbar",slot:"Root"})({}),ret=ae(at,{name:"MuiDatePickerToolbar",slot:"Title"})({variants:[{props:{pickerOrientation:"landscape"},style:{margin:"auto 16px auto auto"}}]}),oet=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiDatePickerToolbar"}),{toolbarFormat:o,toolbarPlaceholder:i="––",className:a,classes:s}=r,l=$e(r,eet),c=xn(),{value:u,views:f,orientation:h}=Gc(),m=Ei(),g=wP(),y=tet(s),v=x.useMemo(()=>{if(!c.isValid(u))return i;const w=xS(c,{format:o,views:f},!0);return c.formatByString(u,w)},[u,o,i,c,f]);return k.jsx(net,z({ref:n,toolbarTitle:m.datePickerToolbarTitle,className:fe(y.root,a)},l,{children:k.jsx(ret,{variant:"h4",align:h==="landscape"?"left":"center",ownerState:g,className:y.title,children:v})}))});function Nce(e,t){const n=Pn({props:e,name:t}),r=Rw(n),o=x.useMemo(()=>{var i;return((i=n.localeText)==null?void 0:i.toolbarTitle)==null?n.localeText:z({},n.localeText,{datePickerToolbarTitle:n.localeText.toolbarTitle})},[n.localeText]);return z({},n,r,{localeText:o},qz({views:n.views,openTo:n.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{slots:z({toolbar:oet},n.slots)})}function iet(e){return qe("MuiPickerPopper",e)}Ke("MuiPickerPopper",["root","paper"]);const aet=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],set=e=>Me({root:["root"],paper:["paper"]},iet,e),cet=ae(iv,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),uet=ae(go,{name:"MuiPickerPopper",slot:"Paper"})({outline:0,transformOrigin:"top center",variants:[{props:({popperPlacement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function det(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){i.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),i.current=!1}},[e]);const a=Ze(l=>{if(!i.current)return;const c=r.current;r.current=!1;const u=Mr(o.current);if(!o.current||"clientX"in l&&det(l,u))return;if(n.current){n.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(o.current)>-1:f=!u.documentElement.contains(l.target)||o.current.contains(l.target),!f&&!c&&t(l)}),s=()=>{r.current=!0};return x.useEffect(()=>{if(e){const l=Mr(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",c)}}},[e,a]),x.useEffect(()=>{if(e){const l=Mr(o.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[o,s,s]}const pet=x.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:r,children:o,paperSlotProps:i,paperClasses:a,onPaperClick:s,onPaperTouchStart:l}=e,c=$e(e,aet),u=Dn({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:r});return k.jsx(n,z({},c,u,{onClick:f=>{var h;s(f),(h=u.onClick)==null||h.call(u,f)},onTouchStart:f=>{var h;l(f),(h=u.onTouchStart)==null||h.call(u,f)},ownerState:r,children:o}))});function het(e){const t=Pn({props:e,name:"MuiPickerPopper"}),{children:n,placement:r="bottom-start",slots:o,slotProps:i,classes:a}=t,{open:s,popupRef:l,reduceAnimations:c}=Gc(),{dismissViews:u,getCurrentViewMode:f,onPopperExited:h,triggerElement:m,viewContainerRole:g}=Ur();x.useEffect(()=>{function V(W){s&&W.key==="Escape"&&u()}return document.addEventListener("keydown",V),()=>{document.removeEventListener("keydown",V)}},[u,s]);const y=x.useRef(null);x.useEffect(()=>{g==="tooltip"||f()==="field"||(s?y.current=xi(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[s,g,f]);const v=set(a),{ownerState:w,rootRefObject:C}=Ur(),E=z({},w,{popperPlacement:r}),I=Ze(()=>{g==="tooltip"?$Qe(()=>{var V,W;(V=C.current)!=null&&V.contains(xi(document))||(W=l.current)!=null&&W.contains(xi(document))||u()}):u()}),[O,P,R]=fet(s,I),D=x.useRef(null),M=en(D,l),A=en(M,O),_=V=>{V.key==="Escape"&&(V.stopPropagation(),u())},N=(o==null?void 0:o.desktopTransition)??c?hh:mh,B=(o==null?void 0:o.desktopTrapFocus)??aB,H=(o==null?void 0:o.desktopPaper)??uet,j=(o==null?void 0:o.popper)??cet,L=Dn({elementType:j,externalSlotProps:i==null?void 0:i.popper,additionalProps:{transition:!0,role:g??void 0,open:s,placement:r,anchorEl:m,onKeyDown:_},className:v.root,ownerState:E});return k.jsx(j,z({},L,{children:({TransitionProps:V})=>k.jsx(B,z({open:s,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:g==="tooltip",isEnabled:()=>!0},i==null?void 0:i.desktopTrapFocus,{children:k.jsx(N,z({},V,i==null?void 0:i.desktopTransition,{onExited:W=>{var K,G,q;h==null||h(),(G=(K=i==null?void 0:i.desktopTransition)==null?void 0:K.onExited)==null||G.call(K,W),(q=V==null?void 0:V.onExited)==null||q.call(V)},children:k.jsx(pet,{PaperComponent:H,ownerState:E,ref:A,onPaperClick:P,onPaperTouchStart:R,paperClasses:v.paper,paperSlotProps:i==null?void 0:i.desktopPaper,children:n})}))}))}))}function lX(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}function met(e,t){const[n,r]=x.useState(lX);return In(()=>{const o=()=>{r(lX())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),cg(e,["hours","minutes","seconds"])?"portrait":t??n}function get(e){const{props:t,valueManager:n,validator:r}=e,{value:o,defaultValue:i,onChange:a,referenceDate:s,timezone:l,onAccept:c,closeOnSelect:u,open:f,onOpen:h,onClose:m}=t,{current:g}=x.useRef(i),{current:y}=x.useRef(o!==void 0),{current:v}=x.useRef(f!==void 0),w=xn(),{timezone:C,value:E,handleValueChange:I}=qf({name:"a picker component",timezone:l,value:o,defaultValue:g,referenceDate:s,onChange:a,valueManager:n}),[O,P]=x.useState(()=>({open:!1,lastExternalValue:E,clockShallowValue:void 0,lastCommittedValue:E,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:R}=uce({props:t,validator:r,timezone:C,value:E,onError:t.onError}),D=Ze(N=>{const B=typeof N=="function"?N(O.open):N;v||P(H=>z({},H,{open:B})),B&&h&&h(),B||m==null||m()}),M=Ze((N,B)=>{const{changeImportance:H="accept",skipPublicationIfPristine:j=!1,validationError:L,shortcut:V,shouldClose:W=H==="accept"}=B??{};let K,G;!j&&!y&&!O.hasBeenModifiedSinceMount?(K=!0,G=H==="accept"):(K=!n.areValuesEqual(w,N,E),G=H==="accept"&&!n.areValuesEqual(w,N,O.lastCommittedValue)),P(J=>z({},J,{clockShallowValue:K?void 0:J.clockShallowValue,lastCommittedValue:G?E:J.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let q=null;const Y=()=>(q||(q={validationError:L??R(N)},V&&(q.shortcut=V)),q);K&&I(N,Y()),G&&c&&c(N,Y()),W&&D(!1)});E!==O.lastExternalValue&&P(N=>z({},N,{lastExternalValue:E,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const A=Ze((N,B="partial")=>{if(B==="shallow"){P(H=>z({},H,{clockShallowValue:N,hasBeenModifiedSinceMount:!0}));return}M(N,{changeImportance:B==="finish"&&u?"accept":"set"})});x.useEffect(()=>{if(v){if(f===void 0)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");P(N=>z({},N,{open:f}))}},[v,f]);const _=x.useMemo(()=>n.cleanValue(w,O.clockShallowValue===void 0?E:O.clockShallowValue),[w,n,O.clockShallowValue,E]);return{timezone:C,state:O,setValue:M,setValueFromView:A,setOpen:D,value:E,viewValue:_}}const yet=["className","sx"],Lce=({ref:e,props:t,valueManager:n,valueType:r,variant:o,validator:i,onPopperExited:a,autoFocusView:s,rendererInterceptor:l,localeText:c,viewContainerRole:u,getStepNavigation:f})=>{const{views:h,view:m,openTo:g,onViewChange:y,viewRenderers:v,reduceAnimations:w,orientation:C,disableOpenPicker:E,closeOnSelect:I,disabled:O,readOnly:P,formatDensity:R,enableAccessibleFieldDOMStructure:D,selectedSections:M,onSelectedSectionsChange:A,format:_,label:N,autoFocus:B,name:H}=t,{className:j,sx:L}=t,V=$e(t,yet),W=bn(),K=xn(),G=qh(),q=_ce(w),Y=met(h,C),{current:J}=x.useRef(g??null),[ie,se]=x.useState(null),ce=x.useRef(null),ye=x.useRef(null),Se=x.useRef(null),ne=en(e,Se),{timezone:le,state:de,setOpen:oe,setValue:ue,setValueFromView:pe,value:Ce,viewValue:xe}=get({props:t,valueManager:n,validator:i}),{view:Re,setView:he,defaultView:Ie,focusedView:ve,setFocusedView:Oe,setValueAndGoToNextView:te,goToNextStep:Ee,hasNextStep:De,hasSeveralSteps:Ve}=Aw({view:m,views:h,openTo:g,onChange:pe,onViewChange:y,autoFocus:s,getStepNavigation:f}),We=Ze(()=>ue(n.emptyValue)),rt=Ze(()=>ue(n.getTodayValue(K,le,r))),ut=Ze(()=>ue(Ce)),Be=Ze(()=>ue(de.lastCommittedValue,{skipPublicationIfPristine:!0})),et=Ze(()=>{ue(Ce,{skipPublicationIfPristine:!0})}),{hasUIView:Le,viewModeLookup:It,timeViewsCount:Lt}=x.useMemo(()=>h.reduce((un,gt)=>{const kt=v[gt]==null?"field":"UI";return un.viewModeLookup[gt]=kt,kt==="UI"&&(un.hasUIView=!0,Th(gt)&&(un.timeViewsCount+=1)),un},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[v,h]),nt=It[Re],lt=Ze(()=>nt),[vt,bt]=x.useState(nt==="UI"?Re:null);vt!==Re&&It[Re]==="UI"&&bt(Re),In(()=>{nt==="field"&&de.open&&(oe(!1),setTimeout(()=>{var un,gt;(un=ye==null?void 0:ye.current)==null||un.setSelectedSections(Re),(gt=ye==null?void 0:ye.current)==null||gt.focusField(Re)}))},[Re]),In(()=>{if(!de.open)return;let un=Re;nt==="field"&&vt!=null&&(un=vt),un!==Ie&&It[un]==="UI"&&It[Ie]==="UI"&&(un=Ie),un!==Re&&he(un),Oe(un,!0)},[de.open]);const vn=x.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(K,Ce,n.emptyValue),isPickerOpen:de.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:Y,pickerVariant:o}),[K,n,Ce,de.open,Y,o,t.disabled,t.readOnly]),kn=x.useMemo(()=>E||!Le?"hidden":O||P?"disabled":"enabled",[E,Le,O,P]),Rr=Ze(Ee),tr=x.useMemo(()=>I&&!Ve?[]:["cancel","nextOrAccept"],[I,Ve]),Bn=x.useMemo(()=>({setValue:ue,setOpen:oe,clearValue:We,setValueToToday:rt,acceptValueChanges:ut,cancelValueChanges:Be,setView:he,goToNextStep:Rr}),[ue,oe,We,rt,ut,Be,he,Rr]),yo=x.useMemo(()=>z({},Bn,{value:Ce,timezone:le,open:de.open,views:h,view:vt,initialView:J,disabled:O??!1,readOnly:P??!1,autoFocus:B??!1,variant:o,orientation:Y,popupRef:ce,reduceAnimations:q,triggerRef:se,triggerStatus:kn,hasNextStep:De,fieldFormat:_??"",name:H,label:N,rootSx:L,rootRef:ne,rootClassName:j}),[Bn,Ce,ne,o,Y,q,O,P,_,j,H,N,L,kn,De,le,de.open,vt,h,J,B]),To=x.useMemo(()=>({dismissViews:et,ownerState:vn,hasUIView:Le,getCurrentViewMode:lt,rootRefObject:Se,labelId:W,triggerElement:ie,viewContainerRole:u,defaultActionBarActions:tr,onPopperExited:a}),[et,vn,Le,lt,W,ie,u,tr,a]),oo=x.useMemo(()=>({formatDensity:R,enableAccessibleFieldDOMStructure:D,selectedSections:M,onSelectedSectionsChange:A,fieldRef:ye}),[R,D,M,A,ye]);return{providerProps:{localeText:c,contextValue:yo,privateContextValue:To,actionsContextValue:Bn,fieldPrivateContextValue:oo,isValidContextValue:un=>{const gt=i({adapter:G,value:un,timezone:le,props:t});return!n.hasError(gt)}},renderCurrentView:()=>{if(vt==null)return null;const un=v[vt];if(un==null)return null;const gt=z({},V,{views:h,timezone:le,value:xe,onChange:te,view:vt,onViewChange:he,showViewSwitcher:Lt>1,timeViewsCount:Lt},u==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:ve,onFocusedViewChange:Oe});return l?k.jsx(l,{viewRenderers:v,popperView:vt,rendererProps:gt}):un(gt)},ownerState:vn}};function Fce(e){return qe("MuiPickersLayout",e)}const Ol=Ke("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),vet=["actions"],bet=ae(Ox,{name:"MuiPickersLayout",slot:"ActionBar"})({});function xet(e){const{actions:t}=e,n=$e(e,vet),r=Ei(),{clearValue:o,setValueToToday:i,acceptValueChanges:a,cancelValueChanges:s,goToNextStep:l,hasNextStep:c}=Gc();if(t==null||t.length===0)return null;const u=t==null?void 0:t.map(f=>{switch(f){case"clear":return k.jsx(ct,{onClick:o,children:r.clearButtonLabel},f);case"cancel":return k.jsx(ct,{onClick:s,children:r.cancelButtonLabel},f);case"accept":return k.jsx(ct,{onClick:a,children:r.okButtonLabel},f);case"today":return k.jsx(ct,{onClick:i,children:r.todayButtonLabel},f);case"next":return k.jsx(ct,{onClick:l,children:r.nextStepButtonLabel},f);case"nextOrAccept":return c?k.jsx(ct,{onClick:l,children:r.nextStepButtonLabel},f):k.jsx(ct,{onClick:a,children:r.okButtonLabel},f);default:return null}});return k.jsx(bet,z({},n,{children:u}))}const wet=x.memo(xet),Cet=["items","changeImportance"],Eet=["getValue"],Tet=ae(ai,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function Oet(e){const{items:t,changeImportance:n="accept"}=e,r=$e(e,Cet),{setValue:o}=gXe(),i=TYe();if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,c=$e(s,Eet);const u=l({isValid:i});return z({},c,{label:c.label,onClick:()=>{o(u,{changeImportance:n,shortcut:c})},disabled:!i(u)})});return k.jsx(Tet,z({dense:!0,sx:[{maxHeight:By,maxWidth:200,overflow:"auto"},...Array.isArray(r.sx)?r.sx:[r.sx]]},r,{children:a.map(s=>k.jsx(Co,{children:k.jsx(Ul,z({},s))},s.id??s.label))}))}const Iet=["ownerState"];function Pet(e){return e.view!==null}const Aet=(e,t)=>{const{pickerOrientation:n}=t;return Me({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Fce,e)},jce=e=>{const{ownerState:t,defaultActionBarActions:n}=Ur(),{view:r}=Gc(),o=yr(),{children:i,slots:a,slotProps:s,classes:l}=e,c=x.useMemo(()=>z({},t,{layoutDirection:o?"rtl":"ltr"}),[t,o]),u=Aet(l,c),f=(a==null?void 0:a.actionBar)??wet,h=Dn({elementType:f,externalSlotProps:s==null?void 0:s.actionBar,additionalProps:{actions:n},className:u.actionBar,ownerState:c}),m=$e(h,Iet),g=k.jsx(f,z({},m)),y=a==null?void 0:a.toolbar,v=Dn({elementType:y,externalSlotProps:s==null?void 0:s.toolbar,className:u.toolbar,ownerState:c}),w=Pet(v)&&y?k.jsx(y,z({},v)):null,C=i,E=a==null?void 0:a.tabs,I=r&&E?k.jsx(E,z({className:u.tabs},s==null?void 0:s.tabs)):null,O=(a==null?void 0:a.shortcuts)??Oet,P=Dn({elementType:O,externalSlotProps:s==null?void 0:s.shortcuts,className:u.shortcuts,ownerState:c}),R=r&&O?k.jsx(O,z({},P)):null;return{toolbar:w,content:C,tabs:I,actionBar:g,shortcuts:R,ownerState:c}},Met=(e,t)=>{const{pickerOrientation:n}=t;return Me({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},Fce,e)},Bce=ae("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Ol.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape"},style:{[`& .${Ol.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Ol.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{pickerOrientation:"landscape",layoutDirection:"rtl"},style:{[`& .${Ol.toolbar}`]:{gridColumn:3}}},{props:{pickerOrientation:"portrait"},style:{[`& .${Ol.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Ol.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{pickerOrientation:"portrait",layoutDirection:"rtl"},style:{[`& .${Ol.shortcuts}`]:{gridColumn:3}}}]}),zce=ae("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),Vce=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:i,tabs:a,actionBar:s,shortcuts:l,ownerState:c}=jce(r),{orientation:u,variant:f}=Gc(),{sx:h,className:m,classes:g}=r,y=Met(g,c);return k.jsxs(Bce,{ref:n,sx:h,className:fe(y.root,m),ownerState:c,children:[u==="landscape"?l:o,u==="landscape"?o:l,k.jsx(zce,{className:y.contentWrapper,ownerState:c,children:f==="desktop"?k.jsxs(x.Fragment,{children:[i,a]}):k.jsxs(x.Fragment,{children:[a,i]})}),s]})});function Hce(e){const{steps:t}=e;return $Ye({steps:t,isViewMatchingStep:(n,r)=>r.views==null||r.views.includes(n),onStepChange:({step:n,defaultView:r,setView:o,view:i,views:a})=>{const s=n.views==null?r:n.views.find(l=>a.includes(l));s!==i&&o(s)}})}const Ret=["props","steps"],Det=["ownerState"],dV=e=>{var P;let{props:t,steps:n}=e,r=$e(e,Ret);const{slots:o,slotProps:i,label:a,inputRef:s,localeText:l}=t,c=Hce({steps:n}),{providerProps:u,renderCurrentView:f,ownerState:h}=Lce(z({},r,{props:t,localeText:l,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:c})),m=u.privateContextValue.labelId,g=((P=i==null?void 0:i.toolbar)==null?void 0:P.hidden)??!1,y=o.field,v=Dn({elementType:y,externalSlotProps:i==null?void 0:i.field,additionalProps:z({},g&&{id:m}),ownerState:h}),w=$e(v,Det),C=o.layout??Vce;let E=m;g&&(a?E=`${m}-label`:E=void 0);const I=z({},i,{toolbar:z({},i==null?void 0:i.toolbar,{titleId:m}),popper:z({"aria-labelledby":E},i==null?void 0:i.popper)});return{renderPicker:()=>k.jsx(Ule,z({},u,{children:k.jsxs(Tce,{slots:o,slotProps:I,inputRef:s,children:[k.jsx(y,z({},w)),k.jsx(het,{slots:o,slotProps:I,children:k.jsx(C,z({},I==null?void 0:I.layout,{slots:o,slotProps:I,children:f()}))})]})}))}},Ys=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minDate:m,maxDate:g,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:w,reduceAnimations:C,onMonthChange:E,monthsPerRow:I,onYearChange:O,yearsOrder:P,yearsPerRow:R,slots:D,slotProps:M,loading:A,renderLoading:_,disableHighlightToday:N,readOnly:B,disabled:H,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:L,sx:V,autoFocus:W,fixedWeekNumber:K,displayWeekNumber:G,timezone:q})=>k.jsx(WJe,{view:e,onViewChange:t,views:n.filter(Vy),focusedView:r&&Vy(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minDate:m,maxDate:g,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:w,reduceAnimations:C,onMonthChange:E,monthsPerRow:I,onYearChange:O,yearsOrder:P,yearsPerRow:R,slots:D,slotProps:M,loading:A,renderLoading:_,disableHighlightToday:N,readOnly:B,disabled:H,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:L,sx:V,autoFocus:W,fixedWeekNumber:K,displayWeekNumber:G,timezone:q}),Uce=x.forwardRef(function(t,n){var l;const r=xn(),o=Nce(t,"MuiDesktopDatePicker"),i=z({day:Ys,month:Ys,year:Ys},o.viewRenderers),a=z({},o,{closeOnSelect:o.closeOnSelect??!0,viewRenderers:i,format:xS(r,o,!1),yearsPerRow:o.yearsPerRow??4,slots:z({field:Oce},o.slots),slotProps:z({},o.slotProps,{field:c=>{var u;return z({},Rc((u=o.slotProps)==null?void 0:u.field,c),Pv(o))},toolbar:z({hidden:!0},(l=o.slotProps)==null?void 0:l.toolbar)})}),{renderPicker:s}=dV({ref:n,props:a,valueManager:mo,valueType:"date",validator:Av,steps:null});return s()});Uce.propTypes={autoFocus:U.bool,className:U.string,closeOnSelect:U.bool,dayOfWeekFormatter:U.func,defaultValue:U.object,disabled:U.bool,disableFuture:U.bool,disableHighlightToday:U.bool,disableOpenPicker:U.bool,disablePast:U.bool,displayWeekNumber:U.bool,enableAccessibleFieldDOMStructure:U.any,fixedWeekNumber:U.number,format:U.string,formatDensity:U.oneOf(["dense","spacious"]),inputRef:tv,label:U.node,loading:U.bool,localeText:U.object,maxDate:U.object,minDate:U.object,monthsPerRow:U.oneOf([3,4]),name:U.string,onAccept:U.func,onChange:U.func,onClose:U.func,onError:U.func,onMonthChange:U.func,onOpen:U.func,onSelectedSectionsChange:U.func,onViewChange:U.func,onYearChange:U.func,open:U.bool,openTo:U.oneOf(["day","month","year"]),orientation:U.oneOf(["landscape","portrait"]),readOnly:U.bool,reduceAnimations:U.bool,referenceDate:U.object,renderLoading:U.func,selectedSections:U.oneOfType([U.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),U.number]),shouldDisableDate:U.func,shouldDisableMonth:U.func,shouldDisableYear:U.func,showDaysOutsideCurrentMonth:U.bool,slotProps:U.object,slots:U.object,sx:U.oneOfType([U.arrayOf(U.oneOfType([U.func,U.object,U.bool])),U.func,U.object]),timezone:U.string,value:U.object,view:U.oneOf(["day","month","year"]),viewRenderers:U.shape({day:U.func,month:U.func,year:U.func}),views:U.arrayOf(U.oneOf(["day","month","year"]).isRequired),yearsOrder:U.oneOf(["asc","desc"]),yearsPerRow:U.oneOf([3,4])};const ket=ae(Tx)({[`& .${K0.container}`]:{outline:0},[`& .${K0.paper}`]:{outline:0,minWidth:jy}}),_et=ae(Ix)({"&:first-of-type":{padding:0}});function $et(e){const{children:t,slots:n,slotProps:r}=e,{open:o}=Gc(),{dismissViews:i}=Ur(),a=(n==null?void 0:n.dialog)??ket,s=(n==null?void 0:n.mobileTransition)??hh;return k.jsx(a,z({open:o,onClose:i},r==null?void 0:r.dialog,{TransitionComponent:s,TransitionProps:r==null?void 0:r.mobileTransition,PaperComponent:n==null?void 0:n.mobilePaper,PaperProps:r==null?void 0:r.mobilePaper,children:k.jsx(_et,{children:t})}))}const Net=["props","steps"],Let=["ownerState"],fV=e=>{var P;let{props:t,steps:n}=e,r=$e(e,Net);const{slots:o,slotProps:i,label:a,inputRef:s,localeText:l}=t,c=Hce({steps:n}),{providerProps:u,renderCurrentView:f,ownerState:h}=Lce(z({},r,{props:t,localeText:l,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:c})),m=u.privateContextValue.labelId,g=((P=i==null?void 0:i.toolbar)==null?void 0:P.hidden)??!1,y=o.field,v=Dn({elementType:y,externalSlotProps:i==null?void 0:i.field,additionalProps:z({},g&&{id:m}),ownerState:h}),w=$e(v,Let),C=o.layout??Vce;let E=m;g&&(a?E=`${m}-label`:E=void 0);const I=z({},i,{toolbar:z({},i==null?void 0:i.toolbar,{titleId:m}),mobilePaper:z({"aria-labelledby":E},i==null?void 0:i.mobilePaper)});return{renderPicker:()=>k.jsx(Ule,z({},u,{children:k.jsxs(Tce,{slots:o,slotProps:I,inputRef:s,children:[k.jsx(y,z({},w)),k.jsx($et,{slots:o,slotProps:I,children:k.jsx(C,z({},I==null?void 0:I.layout,{slots:o,slotProps:I,children:f()}))})]})}))}},Gce=x.forwardRef(function(t,n){var l;const r=xn(),o=Nce(t,"MuiMobileDatePicker"),i=z({day:Ys,month:Ys,year:Ys},o.viewRenderers),a=z({},o,{viewRenderers:i,format:xS(r,o,!1),slots:z({field:Oce},o.slots),slotProps:z({},o.slotProps,{field:c=>{var u;return z({},Rc((u=o.slotProps)==null?void 0:u.field,c),Pv(o))},toolbar:z({hidden:!1},(l=o.slotProps)==null?void 0:l.toolbar)})}),{renderPicker:s}=fV({ref:n,props:a,valueManager:mo,valueType:"date",validator:Av,steps:null});return s()});Gce.propTypes={autoFocus:U.bool,className:U.string,closeOnSelect:U.bool,dayOfWeekFormatter:U.func,defaultValue:U.object,disabled:U.bool,disableFuture:U.bool,disableHighlightToday:U.bool,disableOpenPicker:U.bool,disablePast:U.bool,displayWeekNumber:U.bool,enableAccessibleFieldDOMStructure:U.any,fixedWeekNumber:U.number,format:U.string,formatDensity:U.oneOf(["dense","spacious"]),inputRef:tv,label:U.node,loading:U.bool,localeText:U.object,maxDate:U.object,minDate:U.object,monthsPerRow:U.oneOf([3,4]),name:U.string,onAccept:U.func,onChange:U.func,onClose:U.func,onError:U.func,onMonthChange:U.func,onOpen:U.func,onSelectedSectionsChange:U.func,onViewChange:U.func,onYearChange:U.func,open:U.bool,openTo:U.oneOf(["day","month","year"]),orientation:U.oneOf(["landscape","portrait"]),readOnly:U.bool,reduceAnimations:U.bool,referenceDate:U.object,renderLoading:U.func,selectedSections:U.oneOfType([U.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),U.number]),shouldDisableDate:U.func,shouldDisableMonth:U.func,shouldDisableYear:U.func,showDaysOutsideCurrentMonth:U.bool,slotProps:U.object,slots:U.object,sx:U.oneOfType([U.arrayOf(U.oneOfType([U.func,U.object,U.bool])),U.func,U.object]),timezone:U.string,value:U.object,view:U.oneOf(["day","month","year"]),viewRenderers:U.shape({day:U.func,month:U.func,year:U.func}),views:U.arrayOf(U.oneOf(["day","month","year"]).isRequired),yearsOrder:U.oneOf(["asc","desc"]),yearsPerRow:U.oneOf([3,4])};const Fet=["desktopModeMediaQuery"],SS=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=eV}=r,i=$e(r,Fet);return Tf(o,{defaultMatches:!0})?k.jsx(Uce,z({ref:n},i)):k.jsx(Gce,z({ref:n},i))});function jet(e){return qe("MuiPickersToolbarText",e)}const Bet=Ke("MuiPickersToolbarText",["root"]),zet=["className","classes","selected","value"],Vet=e=>Me({root:["root"]},jet,e),Het=ae(at,{name:"MuiPickersToolbarText",slot:"Root"})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,"&[data-selected]":{color:(e.vars||e).palette.text.primary}})),pV=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiPickersToolbarText"}),{className:o,classes:i,selected:a,value:s}=r,l=$e(r,zet),c=Vet(i);return k.jsx(Het,z({ref:n,className:fe(c.root,o),component:"span",ownerState:r},a&&{"data-selected":!0},l,{children:s}))}),Uet=["align","className","classes","selected","typographyClassName","value","variant","width"],Get=e=>Me({root:["root"]},$ce,e),qet=ae(ct,{name:"MuiPickersToolbarButton",slot:"Root"})({padding:0,minWidth:16,textTransform:"none"}),Ha=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:i,classes:a,selected:s,typographyClassName:l,value:c,variant:u,width:f}=r,h=$e(r,Uet),m=Get(a);return k.jsx(qet,z({variant:"text",ref:n,className:fe(m.root,i),ownerState:r},f?{sx:{width:f}}:{},h,{children:k.jsx(pV,{align:o,className:l,variant:u,value:c,selected:s})}))});function Wet(e){return qe("MuiTimePickerToolbar",e)}const lx=Ke("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),Ket=["ampm","ampmInClock","className","classes"],Yet=(e,t)=>{const{pickerOrientation:n,toolbarDirection:r}=t;return Me({root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n==="landscape"&&"hourMinuteLabelLandscape",r==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n==="landscape"&&"ampmLandscape"],ampmLabel:["ampmLabel"]},Wet,e)},Qet=ae(uV,{name:"MuiTimePickerToolbar",slot:"Root"})({}),Xet=ae(pV,{name:"MuiTimePickerToolbar",slot:"Separator"})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Zet=ae("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${lx.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${lx.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{pickerOrientation:"landscape"},style:{marginTop:"auto"}}]}),Jet=ae("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${lx.ampmLabel}`]:t.ampmLabel},{[`&.${lx.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${lx.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:"landscape"},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"}}]});function ett(e){const t=Pn({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,className:o,classes:i}=t,a=$e(t,Ket),s=xn(),l=Ei(),c=wP(),u=Yet(i,c),{value:f,setValue:h,disabled:m,readOnly:g,view:y,setView:v,views:w}=Gc(),C=!!(n&&!r&&w.includes("hours")),{meridiemMode:E,handleMeridiemChange:I}=mP(f,n,R=>h(R,{changeImportance:"set"})),O=R=>s.isValid(f)?s.format(f,R):"--",P=k.jsx(Xet,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:u.separator});return k.jsxs(Qet,z({landscapeDirection:"row",toolbarTitle:l.timePickerToolbarTitle,ownerState:c,className:fe(u.root,o)},a,{children:[k.jsxs(Zet,{className:u.hourMinuteLabel,ownerState:c,children:[cg(w,"hours")&&k.jsx(Ha,{tabIndex:-1,variant:"h3",onClick:()=>v("hours"),selected:y==="hours",value:O(n?"hours12h":"hours24h")}),cg(w,["hours","minutes"])&&P,cg(w,"minutes")&&k.jsx(Ha,{tabIndex:-1,variant:"h3",onClick:()=>v("minutes"),selected:y==="minutes",value:O("minutes")}),cg(w,["minutes","seconds"])&&P,cg(w,"seconds")&&k.jsx(Ha,{variant:"h3",onClick:()=>v("seconds"),selected:y==="seconds",value:O("seconds")})]}),C&&k.jsxs(Jet,{className:u.ampmSelection,ownerState:c,children:[k.jsx(Ha,{disableRipple:!0,variant:"subtitle2",selected:E==="am",typographyClassName:u.ampmLabel,value:Dl(s,"am"),onClick:g?void 0:()=>I("am"),disabled:m}),k.jsx(Ha,{disableRipple:!0,variant:"subtitle2",selected:E==="pm",typographyClassName:u.ampmLabel,value:Dl(s,"pm"),onClick:g?void 0:()=>I("pm"),disabled:m})]})]}))}function qce(e,t){var s;const n=xn(),r=Pn({props:e,name:t}),o=hce(r),i=r.ampm??n.is12HourCycleInCurrentLocale(),a=x.useMemo(()=>{var l;return((l=r.localeText)==null?void 0:l.toolbarTitle)==null?r.localeText:z({},r.localeText,{timePickerToolbarTitle:r.localeText.toolbarTitle})},[r.localeText]);return z({},r,o,{ampm:i,localeText:a},qz({views:r.views,openTo:r.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{slots:z({toolbar:ett},r.slots),slotProps:z({},r.slotProps,{toolbar:z({ampm:i,ampmInClock:r.ampmInClock},(s=r.slotProps)==null?void 0:s.toolbar)})})}const Y_=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minTime:m,maxTime:g,shouldDisableTime:y,minutesStep:v,ampm:w,ampmInClock:C,slots:E,slotProps:I,readOnly:O,disabled:P,sx:R,autoFocus:D,showViewSwitcher:M,disableIgnoringDatePartForTimeValidation:A,timezone:_})=>k.jsx(kQe,{view:e,onViewChange:t,focusedView:n&&Th(n)?n:null,onFocusedViewChange:r,views:o.filter(Th),value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minTime:m,maxTime:g,shouldDisableTime:y,minutesStep:v,ampm:w,ampmInClock:C,slots:E,slotProps:I,readOnly:O,disabled:P,sx:R,autoFocus:D,showViewSwitcher:M,disableIgnoringDatePartForTimeValidation:A,timezone:_}),hV=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minTime:m,maxTime:g,shouldDisableTime:y,minutesStep:v,ampm:w,slots:C,slotProps:E,readOnly:I,disabled:O,sx:P,autoFocus:R,disableIgnoringDatePartForTimeValidation:D,timeSteps:M,skipDisabled:A,timezone:_})=>k.jsx(VQe,{view:e,onViewChange:t,focusedView:n&&Th(n)?n:null,onFocusedViewChange:r,views:o.filter(Th),value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minTime:m,maxTime:g,shouldDisableTime:y,minutesStep:v,ampm:w,slots:C,slotProps:E,readOnly:I,disabled:O,sx:P,autoFocus:R,disableIgnoringDatePartForTimeValidation:D,timeStep:M==null?void 0:M.minutes,skipDisabled:A,timezone:_}),Hy=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minTime:m,maxTime:g,shouldDisableTime:y,minutesStep:v,ampm:w,slots:C,slotProps:E,readOnly:I,disabled:O,sx:P,autoFocus:R,disableIgnoringDatePartForTimeValidation:D,timeSteps:M,skipDisabled:A,timezone:_})=>k.jsx(eXe,{view:e,onViewChange:t,focusedView:n&&xg(n)?n:null,onFocusedViewChange:r,views:o.filter(Th),value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minTime:m,maxTime:g,shouldDisableTime:y,minutesStep:v,ampm:w,slots:C,slotProps:E,readOnly:I,disabled:O,sx:P,autoFocus:R,disableIgnoringDatePartForTimeValidation:D,timeSteps:M,skipDisabled:A,timezone:_}),ttt=["views","format"],Wce=(e,t,n)=>{let{views:r,format:o}=t,i=$e(t,ttt);if(o)return o;const a=[],s=[];if(r.forEach(u=>{Th(u)?s.push(u):Vy(u)&&a.push(u)}),s.length===0)return xS(e,z({views:a},i),!1);if(a.length===0)return dO(e,z({views:s},i));const l=dO(e,z({views:s},i));return`${xS(e,z({views:a},i),!1)} ${l}`},ntt=(e,t,n)=>n?t.filter(r=>!xg(r)||r==="hours"):e?[...t,"meridiem"]:t,rtt=(e,t)=>24*60/((e.hours??1)*(e.minutes??5))<=t;function Kce({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e??24,i=z({hours:1,minutes:5,seconds:5},n),a=rtt(i,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:i,shouldRenderTimeInASingleColumn:a,views:ntt(t,r,a)}}const Yce=x.forwardRef(function(t,n){var y,v;const r=xn(),o=qce(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:i,views:a,timeSteps:s}=Kce(o),l=i?hV:Hy,c=z({hours:l,minutes:l,seconds:l,meridiem:l},o.viewRenderers),u=o.ampmInClock??!0,h=((y=c.hours)==null?void 0:y.name)===Hy.name?a:a.filter(w=>w!=="meridiem"),m=z({},o,{ampmInClock:u,timeSteps:s,viewRenderers:c,format:dO(r,o),views:i?["hours"]:h,slots:z({field:Ice},o.slots),slotProps:z({},o.slotProps,{field:w=>{var C;return z({},Rc((C=o.slotProps)==null?void 0:C.field,w),Pv(o))},toolbar:z({hidden:!0,ampmInClock:u},(v=o.slotProps)==null?void 0:v.toolbar)})}),{renderPicker:g}=dV({ref:n,props:m,valueManager:mo,valueType:"time",validator:Mw,steps:null});return g()});Yce.propTypes={ampm:U.bool,ampmInClock:U.bool,autoFocus:U.bool,className:U.string,closeOnSelect:U.bool,defaultValue:U.object,disabled:U.bool,disableFuture:U.bool,disableIgnoringDatePartForTimeValidation:U.bool,disableOpenPicker:U.bool,disablePast:U.bool,enableAccessibleFieldDOMStructure:U.any,format:U.string,formatDensity:U.oneOf(["dense","spacious"]),inputRef:tv,label:U.node,localeText:U.object,maxTime:U.object,minTime:U.object,minutesStep:U.number,name:U.string,onAccept:U.func,onChange:U.func,onClose:U.func,onError:U.func,onOpen:U.func,onSelectedSectionsChange:U.func,onViewChange:U.func,open:U.bool,openTo:U.oneOf(["hours","meridiem","minutes","seconds"]),orientation:U.oneOf(["landscape","portrait"]),readOnly:U.bool,reduceAnimations:U.bool,referenceDate:U.object,selectedSections:U.oneOfType([U.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),U.number]),shouldDisableTime:U.func,skipDisabled:U.bool,slotProps:U.object,slots:U.object,sx:U.oneOfType([U.arrayOf(U.oneOfType([U.func,U.object,U.bool])),U.func,U.object]),thresholdToRenderTimeInASingleColumn:U.number,timeSteps:U.shape({hours:U.number,minutes:U.number,seconds:U.number}),timezone:U.string,value:U.object,view:U.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:U.shape({hours:U.func,meridiem:U.func,minutes:U.func,seconds:U.func}),views:U.arrayOf(U.oneOf(["hours","minutes","seconds"]).isRequired)};const Qce=x.forwardRef(function(t,n){var c;const r=xn(),o=qce(t,"MuiMobileTimePicker"),i=z({hours:Y_,minutes:Y_,seconds:Y_},o.viewRenderers),a=o.ampmInClock??!1,s=z({},o,{ampmInClock:a,viewRenderers:i,format:dO(r,o),slots:z({field:Ice},o.slots),slotProps:z({},o.slotProps,{field:u=>{var f;return z({},Rc((f=o.slotProps)==null?void 0:f.field,u),Pv(o))},toolbar:z({hidden:!1,ampmInClock:a},(c=o.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=fV({ref:n,props:s,valueManager:mo,valueType:"time",validator:Mw,steps:null});return l()});Qce.propTypes={ampm:U.bool,ampmInClock:U.bool,autoFocus:U.bool,className:U.string,closeOnSelect:U.bool,defaultValue:U.object,disabled:U.bool,disableFuture:U.bool,disableIgnoringDatePartForTimeValidation:U.bool,disableOpenPicker:U.bool,disablePast:U.bool,enableAccessibleFieldDOMStructure:U.any,format:U.string,formatDensity:U.oneOf(["dense","spacious"]),inputRef:tv,label:U.node,localeText:U.object,maxTime:U.object,minTime:U.object,minutesStep:U.number,name:U.string,onAccept:U.func,onChange:U.func,onClose:U.func,onError:U.func,onOpen:U.func,onSelectedSectionsChange:U.func,onViewChange:U.func,open:U.bool,openTo:U.oneOf(["hours","minutes","seconds"]),orientation:U.oneOf(["landscape","portrait"]),readOnly:U.bool,reduceAnimations:U.bool,referenceDate:U.object,selectedSections:U.oneOfType([U.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),U.number]),shouldDisableTime:U.func,slotProps:U.object,slots:U.object,sx:U.oneOfType([U.arrayOf(U.oneOfType([U.func,U.object,U.bool])),U.func,U.object]),timezone:U.string,value:U.object,view:U.oneOf(["hours","minutes","seconds"]),viewRenderers:U.shape({hours:U.func,minutes:U.func,seconds:U.func}),views:U.arrayOf(U.oneOf(["hours","minutes","seconds"]).isRequired)};const ott=["desktopModeMediaQuery"],zF=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:o=eV}=r,i=$e(r,ott);return Tf(o,{defaultMatches:!0})?k.jsx(Yce,z({ref:n},i)):k.jsx(Qce,z({ref:n},i))});function itt(e){return qe("MuiDateTimePickerTabs",e)}Ke("MuiDateTimePickerTabs",["root"]);const att=e=>Vy(e)?"date":"time",stt=e=>e==="date"?"day":"hours",ltt=e=>Me({root:["root"]},itt,e),ctt=ae(Lne,{name:"MuiDateTimePickerTabs",slot:"Root"})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${hE.indicator}`]:{bottom:"auto",top:0}}})),utt=function(t){const n=Pn({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=k.jsx(SYe,{}),timeIcon:o=k.jsx(wYe,{}),hidden:i=typeof window>"u"||window.innerHeight<667,className:a,classes:s,sx:l}=n,c=Ei(),{ownerState:u}=Ur(),{view:f,setView:h}=Gc(),m=ltt(s),g=(y,v)=>{h(stt(v))};return i?null:k.jsxs(ctt,{ownerState:u,variant:"fullWidth",value:att(f),onChange:g,className:fe(a,m.root),sx:l,children:[k.jsx(MN,{value:"date","aria-label":c.dateTableLabel,icon:k.jsx(x.Fragment,{children:r})}),k.jsx(MN,{value:"time","aria-label":c.timeTableLabel,icon:k.jsx(x.Fragment,{children:o})})]})};function dtt(e){return qe("MuiDateTimePickerToolbar",e)}const Q_=Ke("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),ftt=["ampm","ampmInClock","toolbarFormat","toolbarPlaceholder","toolbarTitle","className","classes"],ptt=(e,t)=>{const{pickerOrientation:n,toolbarDirection:r}=t;return Me({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",r==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",r==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",n==="landscape"&&"ampmLandscape"],ampmLabel:["ampmLabel"]},dtt,e)},htt=ae(uV,{name:"MuiDateTimePickerToolbar",slot:"Root",shouldForwardProp:e=>Ca(e)&&e!=="toolbarVariant"})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",variants:[{props:{toolbarVariant:"desktop"},style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,[`& .${KJe.content} .${Bet.root}[data-selected]`]:{color:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightBold}}},{props:{toolbarVariant:"desktop",pickerOrientation:"landscape"},style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:{toolbarVariant:"desktop",pickerOrientation:"portrait"},style:{paddingLeft:24,paddingRight:0}}]})),mtt=ae("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer"})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),gtt=ae("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",shouldForwardProp:e=>Ca(e)&&e!=="toolbarVariant"})({display:"flex",flexDirection:"row",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop",pickerOrientation:"portrait"},style:{gap:9,marginRight:4,alignSelf:"flex-end"}},{props:({pickerOrientation:e,toolbarVariant:t})=>e==="landscape"&&t!=="desktop",style:{flexDirection:"column"}},{props:({pickerOrientation:e,toolbarVariant:t,toolbarDirection:n})=>e==="landscape"&&t!=="desktop"&&n==="rtl",style:{flexDirection:"column-reverse"}}]}),ytt=ae("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",shouldForwardProp:e=>Ca(e)&&e!=="toolbarVariant"})({display:"flex",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop"},style:{gap:1.5}}]}),cX=ae(pV,{name:"MuiDateTimePickerToolbar",slot:"Separator",shouldForwardProp:e=>Ca(e)&&e!=="toolbarVariant"})({margin:"0 4px 0 2px",cursor:"default",variants:[{props:{toolbarVariant:"desktop"},style:{margin:0}}]}),vtt=ae("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Q_.ampmLabel}`]:t.ampmLabel},{[`&.${Q_.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${Q_.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:"landscape"},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"}}]}),btt=x.createContext(null);function xtt(e){const t=Pn({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,toolbarFormat:o,toolbarPlaceholder:i="––",toolbarTitle:a,className:s,classes:l}=t,c=$e(t,ftt),{value:u,setValue:f,disabled:h,readOnly:m,variant:g,orientation:y,view:v,setView:w,views:C}=Gc(),E=Ei(),I=wP(),O=ptt(l,I),P=xn(),R=x.useContext(btt),D=R?R.value:u,M=R?R.setValue:f,A=R?R.view:v,_=R?R.setView:w,{meridiemMode:N,handleMeridiemChange:B}=mP(D,n,G=>M(G,{changeImportance:"set"})),H=R!=null&&R.forceDesktopVariant?"desktop":g,j=H==="desktop",L=!!(n&&!r),V=a??E.dateTimePickerToolbarTitle,W=x.useMemo(()=>P.isValid(D)?o?P.formatByString(D,o):P.format(D,"shortDate"):i,[D,o,i,P]),K=(G,q)=>P.isValid(D)?P.format(D,G):q;return k.jsxs(htt,z({className:fe(O.root,s),toolbarTitle:V,toolbarVariant:H},c,{ownerState:I,children:[k.jsxs(mtt,{className:O.dateContainer,ownerState:I,children:[C.includes("year")&&k.jsx(Ha,{tabIndex:-1,variant:"subtitle1",onClick:()=>_("year"),selected:A==="year",value:K("year","–")}),C.includes("day")&&k.jsx(Ha,{tabIndex:-1,variant:j?"h5":"h4",onClick:()=>_("day"),selected:A==="day",value:W})]}),k.jsxs(gtt,{className:O.timeContainer,ownerState:I,toolbarVariant:H,children:[k.jsxs(ytt,{className:O.timeDigitsContainer,ownerState:I,toolbarVariant:H,children:[C.includes("hours")&&k.jsxs(x.Fragment,{children:[k.jsx(Ha,{variant:j?"h5":"h3",width:j&&y==="portrait"?j0:void 0,onClick:()=>_("hours"),selected:A==="hours",value:K(n?"hours12h":"hours24h","--")}),k.jsx(cX,{variant:j?"h5":"h3",value:":",className:O.separator,ownerState:I,toolbarVariant:H}),k.jsx(Ha,{variant:j?"h5":"h3",width:j&&y==="portrait"?j0:void 0,onClick:()=>_("minutes"),selected:A==="minutes"||!C.includes("minutes")&&A==="hours",value:K("minutes","--"),disabled:!C.includes("minutes")})]}),C.includes("seconds")&&k.jsxs(x.Fragment,{children:[k.jsx(cX,{variant:j?"h5":"h3",value:":",className:O.separator,ownerState:I,toolbarVariant:H}),k.jsx(Ha,{variant:j?"h5":"h3",width:j&&y==="portrait"?j0:void 0,onClick:()=>_("seconds"),selected:A==="seconds",value:K("seconds","--")})]})]}),L&&!j&&k.jsxs(vtt,{className:O.ampmSelection,ownerState:I,children:[k.jsx(Ha,{variant:"subtitle2",selected:N==="am",typographyClassName:O.ampmLabel,value:Dl(P,"am"),onClick:m?void 0:()=>B("am"),disabled:h}),k.jsx(Ha,{variant:"subtitle2",selected:N==="pm",typographyClassName:O.ampmLabel,value:Dl(P,"pm"),onClick:m?void 0:()=>B("pm"),disabled:h})]}),n&&j&&k.jsx(Ha,{variant:"h5",onClick:()=>_("meridiem"),selected:A==="meridiem",value:D&&N?Dl(P,N):"--",width:j0})]})]}))}function Xce(e,t){var m;const n=xn(),r=Pn({props:e,name:t}),o=mce(r),i=r.ampm??n.is12HourCycleInCurrentLocale(),a=x.useMemo(()=>{var g;return((g=r.localeText)==null?void 0:g.toolbarTitle)==null?r.localeText:z({},r.localeText,{dateTimePickerToolbarTitle:r.localeText.toolbarTitle})},[r.localeText]),{openTo:s,views:l}=qz({views:r.views,openTo:r.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{shouldRenderTimeInASingleColumn:c,thresholdToRenderTimeInASingleColumn:u,views:f,timeSteps:h}=Kce({thresholdToRenderTimeInASingleColumn:r.thresholdToRenderTimeInASingleColumn,ampm:i,timeSteps:r.timeSteps,views:l});return z({},r,o,{timeSteps:h,openTo:s,shouldRenderTimeInASingleColumn:c,thresholdToRenderTimeInASingleColumn:u,views:f,ampm:i,localeText:a,orientation:r.orientation??"portrait",slots:z({toolbar:xtt,tabs:utt},r.slots),slotProps:z({},r.slotProps,{toolbar:z({ampm:i},(m=r.slotProps)==null?void 0:m.toolbar)})})}const Stt=x.forwardRef(function(t,n){var g;const{toolbar:r,tabs:o,content:i,actionBar:a,shortcuts:s,ownerState:l}=jce(t),{orientation:c}=Gc(),{sx:u,className:f,classes:h}=t,m=a&&(((g=a.props.actions)==null?void 0:g.length)??0)>0;return k.jsxs(Bce,{ref:n,className:fe(Ol.root,h==null?void 0:h.root,f),sx:[{[`& .${Ol.tabs}`]:{gridRow:4,gridColumn:"1 / 4"},[`& .${Ol.actionBar}`]:{gridRow:5}},...Array.isArray(u)?u:[u]],ownerState:l,children:[c==="landscape"?s:r,c==="landscape"?r:s,k.jsxs(zce,{className:fe(Ol.contentWrapper,h==null?void 0:h.contentWrapper),ownerState:l,sx:{display:"grid"},children:[i,o,m&&k.jsx(ji,{sx:{gridRow:3,gridColumn:"1 / 4"}})]}),a]})}),wtt=["openTo","focusedView","timeViewsCount"],Ctt=function(t){var m,g;const{viewRenderers:n,popperView:r,rendererProps:o}=t,{openTo:i,focusedView:a,timeViewsCount:s}=o,l=$e(o,wtt),c=z({},l,{focusedView:null,sx:[{[`&.${LF.root}`]:{borderBottom:0},[`&.${LF.root}, .${FF.root}, &.${NF.root}`]:{maxHeight:By}}]}),u=xg(r),f=u?"day":r,h=u?r:"hours";return k.jsxs(x.Fragment,{children:[(m=n[f])==null?void 0:m.call(n,z({},o,{view:u?"day":r,focusedView:a&&Vy(a)?a:null,views:o.views.filter(Vy),sx:[{gridColumn:1},...c.sx]})),s>0&&k.jsxs(x.Fragment,{children:[k.jsx(ji,{orientation:"vertical",sx:{gridColumn:2}}),(g=n[h])==null?void 0:g.call(n,z({},c,{view:u?r:"hours",focusedView:a&&xg(a)?a:null,openTo:xg(i)?i:"hours",views:o.views.filter(xg),sx:[{gridColumn:3},...c.sx]}))]})]})},Zce=x.forwardRef(function(t,n){var h,m,g;const r=xn(),o=Xce(t,"MuiDesktopDateTimePicker"),i=o.shouldRenderTimeInASingleColumn?hV:Hy,a=z({day:Ys,month:Ys,year:Ys,hours:i,minutes:i,seconds:i,meridiem:i},o.viewRenderers),s=o.ampmInClock??!0,c=((h=a.hours)==null?void 0:h.name)===Hy.name?o.views:o.views.filter(y=>y!=="meridiem"),u=z({},o,{viewRenderers:a,format:Wce(r,o),views:c,yearsPerRow:o.yearsPerRow??4,ampmInClock:s,slots:z({field:Pce,layout:Stt},o.slots),slotProps:z({},o.slotProps,{field:y=>{var v;return z({},Rc((v=o.slotProps)==null?void 0:v.field,y),Pv(o))},toolbar:z({hidden:!0,ampmInClock:s},(m=o.slotProps)==null?void 0:m.toolbar),tabs:z({hidden:!0},(g=o.slotProps)==null?void 0:g.tabs)})}),{renderPicker:f}=dV({ref:n,props:u,valueManager:mo,valueType:"date-time",validator:bP,rendererInterceptor:Ctt,steps:null});return f()});Zce.propTypes={ampm:U.bool,ampmInClock:U.bool,autoFocus:U.bool,className:U.string,closeOnSelect:U.bool,dayOfWeekFormatter:U.func,defaultValue:U.object,disabled:U.bool,disableFuture:U.bool,disableHighlightToday:U.bool,disableIgnoringDatePartForTimeValidation:U.bool,disableOpenPicker:U.bool,disablePast:U.bool,displayWeekNumber:U.bool,enableAccessibleFieldDOMStructure:U.any,fixedWeekNumber:U.number,format:U.string,formatDensity:U.oneOf(["dense","spacious"]),inputRef:tv,label:U.node,loading:U.bool,localeText:U.object,maxDate:U.object,maxDateTime:U.object,maxTime:U.object,minDate:U.object,minDateTime:U.object,minTime:U.object,minutesStep:U.number,monthsPerRow:U.oneOf([3,4]),name:U.string,onAccept:U.func,onChange:U.func,onClose:U.func,onError:U.func,onMonthChange:U.func,onOpen:U.func,onSelectedSectionsChange:U.func,onViewChange:U.func,onYearChange:U.func,open:U.bool,openTo:U.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:U.oneOf(["landscape","portrait"]),readOnly:U.bool,reduceAnimations:U.bool,referenceDate:U.object,renderLoading:U.func,selectedSections:U.oneOfType([U.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),U.number]),shouldDisableDate:U.func,shouldDisableMonth:U.func,shouldDisableTime:U.func,shouldDisableYear:U.func,showDaysOutsideCurrentMonth:U.bool,skipDisabled:U.bool,slotProps:U.object,slots:U.object,sx:U.oneOfType([U.arrayOf(U.oneOfType([U.func,U.object,U.bool])),U.func,U.object]),thresholdToRenderTimeInASingleColumn:U.number,timeSteps:U.shape({hours:U.number,minutes:U.number,seconds:U.number}),timezone:U.string,value:U.object,view:U.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:U.shape({day:U.func,hours:U.func,meridiem:U.func,minutes:U.func,month:U.func,seconds:U.func,year:U.func}),views:U.arrayOf(U.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:U.oneOf(["asc","desc"]),yearsPerRow:U.oneOf([3,4])};const Ett=[{views:Xle},{views:qle}],Jce=x.forwardRef(function(t,n){var h,m,g,y,v,w;const r=xn(),o=Xce(t,"MuiMobileDateTimePicker"),i=o.shouldRenderTimeInASingleColumn?hV:Hy,a=z({day:Ys,month:Ys,year:Ys,hours:i,minutes:i,seconds:i,meridiem:i},o.viewRenderers),s=o.ampmInClock??!1,c=((h=a.hours)==null?void 0:h.name)===Hy.name?o.views:o.views.filter(C=>C!=="meridiem"),u=z({},o,{viewRenderers:a,format:Wce(r,o),views:c,ampmInClock:s,slots:z({field:Pce},o.slots),slotProps:z({},o.slotProps,{field:C=>{var E;return z({},Rc((E=o.slotProps)==null?void 0:E.field,C),Pv(o))},toolbar:z({hidden:!1,ampmInClock:s},(m=o.slotProps)==null?void 0:m.toolbar),tabs:z({hidden:!1},(g=o.slotProps)==null?void 0:g.tabs),layout:z({},(y=o.slotProps)==null?void 0:y.layout,{sx:NQe([{[`& .${LF.root}`]:{width:jy},[`& .${FF.root}`]:{flex:1,maxHeight:By-1,[`.${FF.item}`]:{width:"auto"}},[`& .${NF.root}`]:{width:jy,maxHeight:By,flex:1,[`.${NF.item}`]:{justifyContent:"center"}}}],(w=(v=o.slotProps)==null?void 0:v.layout)==null?void 0:w.sx)})})}),{renderPicker:f}=fV({ref:n,props:u,valueManager:mo,valueType:"date-time",validator:bP,steps:Ett});return f()});Jce.propTypes={ampm:U.bool,ampmInClock:U.bool,autoFocus:U.bool,className:U.string,closeOnSelect:U.bool,dayOfWeekFormatter:U.func,defaultValue:U.object,disabled:U.bool,disableFuture:U.bool,disableHighlightToday:U.bool,disableIgnoringDatePartForTimeValidation:U.bool,disableOpenPicker:U.bool,disablePast:U.bool,displayWeekNumber:U.bool,enableAccessibleFieldDOMStructure:U.any,fixedWeekNumber:U.number,format:U.string,formatDensity:U.oneOf(["dense","spacious"]),inputRef:tv,label:U.node,loading:U.bool,localeText:U.object,maxDate:U.object,maxDateTime:U.object,maxTime:U.object,minDate:U.object,minDateTime:U.object,minTime:U.object,minutesStep:U.number,monthsPerRow:U.oneOf([3,4]),name:U.string,onAccept:U.func,onChange:U.func,onClose:U.func,onError:U.func,onMonthChange:U.func,onOpen:U.func,onSelectedSectionsChange:U.func,onViewChange:U.func,onYearChange:U.func,open:U.bool,openTo:U.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:U.oneOf(["landscape","portrait"]),readOnly:U.bool,reduceAnimations:U.bool,referenceDate:U.object,renderLoading:U.func,selectedSections:U.oneOfType([U.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),U.number]),shouldDisableDate:U.func,shouldDisableMonth:U.func,shouldDisableTime:U.func,shouldDisableYear:U.func,showDaysOutsideCurrentMonth:U.bool,skipDisabled:U.bool,slotProps:U.object,slots:U.object,sx:U.oneOfType([U.arrayOf(U.oneOfType([U.func,U.object,U.bool])),U.func,U.object]),thresholdToRenderTimeInASingleColumn:U.number,timeSteps:U.shape({hours:U.number,minutes:U.number,seconds:U.number}),timezone:U.string,value:U.object,view:U.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:U.shape({day:U.func,hours:U.func,meridiem:U.func,minutes:U.func,month:U.func,seconds:U.func,year:U.func}),views:U.arrayOf(U.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:U.oneOf(["asc","desc"]),yearsPerRow:U.oneOf([3,4])};const Ttt=["desktopModeMediaQuery"],Ott=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=eV}=r,i=$e(r,Ttt);return Tf(o,{defaultMatches:!0})?k.jsx(Zce,z({ref:n},i)):k.jsx(Jce,z({ref:n},i))}),Itt={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyyy:{sectionType:"year",contentType:"digit",maxLength:4},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",c:{sectionType:"weekDay",contentType:"digit",maxLength:1},ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:2},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},Ptt={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",dayOfMonthFull:"d",weekday:"cccc",weekdayShort:"ccccc",hours24h:"HH",hours12h:"hh",meridiem:"a",minutes:"mm",seconds:"ss",fullDate:"DD",keyboardDate:"D",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",fullTime12h:"hh:mm a",fullTime24h:"HH:mm",keyboardDateTime12h:"D hh:mm a",keyboardDateTime24h:"D T"};class $u{constructor({locale:t,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="luxon",this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"'",end:"'"},this.formatTokenMap=Itt,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale?r:r.setLocale(o)},this.date=(r,o="default")=>r===null?null:typeof r>"u"?Ct.fromJSDate(new Date,{locale:this.locale,zone:o}):Ct.fromISO(r,{locale:this.locale,zone:o}),this.getInvalidDate=()=>Ct.fromJSDate(new Date("Invalid Date")),this.getTimezone=r=>r.zone.type==="system"?"system":r.zoneName,this.setTimezone=(r,o)=>r.zone.equals(k0.normalizeZone(o))?r:r.setZone(o),this.toJsDate=r=>r.toJSDate(),this.parse=(r,o)=>r===""?null:Ct.fromFormat(r,o,{locale:this.locale}),this.getCurrentLocaleCode=()=>this.locale,this.is12HourCycleInCurrentLocale=()=>{var r,o;return typeof Intl>"u"||typeof Intl.DateTimeFormat>"u"?!0:!!((o=(r=new Intl.DateTimeFormat(this.locale,{hour:"numeric"}))==null?void 0:r.resolvedOptions())!=null&&o.hour12)},this.expandFormat=r=>{const o=/''|'(''|[^'])+('|$)|[^']*/g,i=[...Object.keys(this.formatTokenMap),"yyyyy"],a=new RegExp(`^(${i.join("|")})+$`),s=/(?:^|[^a-z])([a-z]+)(?:[^a-z]|$)|([a-z]+)/gi;return r.match(o).map(l=>l[0]==="'"?l:Ct.expandFormat(l,{locale:this.locale}).replace(s,(f,h,m)=>{const g=h||m;return a.test(g)?f:`'${f}'`})).join("").replace("yyyyy","yyyy")},this.isValid=r=>r===null?!1:r.isValid,this.format=(r,o)=>this.formatByString(r,this.formats[o]),this.formatByString=(r,o)=>r.setLocale(this.locale).toFormat(o),this.formatNumber=r=>r,this.isEqual=(r,o)=>r===null&&o===null?!0:r===null||o===null?!1:+r==+o,this.isSameYear=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.hasSame(i,"year")},this.isSameMonth=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.hasSame(i,"month")},this.isSameDay=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.hasSame(i,"day")},this.isSameHour=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.hasSame(i,"hour")},this.isAfter=(r,o)=>r>o,this.isAfterYear=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.diff(this.endOfYear(i),"years").toObject().years>0},this.isAfterDay=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.diff(this.endOfDay(i),"days").toObject().days>0},this.isBefore=(r,o)=>r{const i=this.setTimezone(o,this.getTimezone(r));return r.diff(this.startOfYear(i),"years").toObject().years<0},this.isBeforeDay=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.diff(this.startOfDay(i),"days").toObject().days<0},this.isWithinRange=(r,[o,i])=>this.isEqual(r,o)||this.isEqual(r,i)||this.isAfter(r,o)&&this.isBefore(r,i),this.startOfYear=r=>r.startOf("year"),this.startOfMonth=r=>r.startOf("month"),this.startOfWeek=r=>this.setLocaleToValue(r).startOf("week",{useLocaleWeeks:!0}),this.startOfDay=r=>r.startOf("day"),this.endOfYear=r=>r.endOf("year"),this.endOfMonth=r=>r.endOf("month"),this.endOfWeek=r=>this.setLocaleToValue(r).endOf("week",{useLocaleWeeks:!0}),this.endOfDay=r=>r.endOf("day"),this.addYears=(r,o)=>r.plus({years:o}),this.addMonths=(r,o)=>r.plus({months:o}),this.addWeeks=(r,o)=>r.plus({weeks:o}),this.addDays=(r,o)=>r.plus({days:o}),this.addHours=(r,o)=>r.plus({hours:o}),this.addMinutes=(r,o)=>r.plus({minutes:o}),this.addSeconds=(r,o)=>r.plus({seconds:o}),this.getYear=r=>r.get("year"),this.getMonth=r=>r.get("month")-1,this.getDate=r=>r.get("day"),this.getHours=r=>r.get("hour"),this.getMinutes=r=>r.get("minute"),this.getSeconds=r=>r.get("second"),this.getMilliseconds=r=>r.get("millisecond"),this.setYear=(r,o)=>r.set({year:o}),this.setMonth=(r,o)=>r.set({month:o+1}),this.setDate=(r,o)=>r.set({day:o}),this.setHours=(r,o)=>r.set({hour:o}),this.setMinutes=(r,o)=>r.set({minute:o}),this.setSeconds=(r,o)=>r.set({second:o}),this.setMilliseconds=(r,o)=>r.set({millisecond:o}),this.getDaysInMonth=r=>r.daysInMonth,this.getWeekArray=r=>{const o=this.startOfWeek(this.startOfMonth(r)),i=this.endOfWeek(this.endOfMonth(r)),{days:a}=i.diff(o,"days").toObject(),s=[];return new Array(Math.round(a)).fill(0).map((l,c)=>c).map(l=>o.plus({days:l})).forEach((l,c)=>{if(c===0||c%7===0&&c>6){s.push([l]);return}s[s.length-1].push(l)}),s},this.getWeekNumber=r=>r.localWeekNumber??r.weekNumber,this.getDayOfWeek=r=>r.weekday,this.getYearRange=([r,o])=>{const i=this.startOfYear(r),a=this.endOfYear(o),s=[];let l=i;for(;this.isBefore(l,a);)s.push(l),l=this.addYears(l,1);return s},this.locale=t||"en-US",this.formats=z({},Ptt,n)}}const mV=Ot(k.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}));var Att=iae();const eue=Gn(Att);function gV({callback:e,initialIngredient:t}){const n=t?{value:t,data:{id:-1,name:t,image:null,image_thumbnail:null}}:null,[r,o]=x.useState(!0),[i,a]=x.useState(n),[s,l]=x.useState(""),[c,u]=x.useState([]),[f,h]=je(),m=x.useMemo(()=>eue(g=>DNe(g,h.language,r).then(y=>u(y)),200),[h.language,r]);return x.useEffect(()=>{if(s===""){u(i?[i]:[]);return}return m(s),()=>{m.cancel()}},[i,s,m]),Q(Ft,{children:[S(kc,{id:"ingredient-autocomplete",getOptionLabel:g=>g.value,"data-testid":"autocomplete",filterOptions:g=>g,options:c,autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,value:i,noOptionsText:f("noResults"),isOptionEqualToValue:(g,y)=>g.value===y.value,onChange:(g,y)=>{u(y?[y,...c]:c),a(y),e(y)},onInputChange:(g,y)=>{l(y)},renderInput:g=>S(dn,{...g,label:f("nutrition.searchIngredientName"),fullWidth:!0,slotProps:{input:{...g.InputProps,startAdornment:Q(Tt,{children:[S(So,{position:"start",children:S(mV,{})}),g.InputProps.startAdornment]})}}}),renderOption:(g,y)=>bx("li",{...g,key:`ingredient-${y.data.id}`},Q(Co,{disablePadding:!0,component:"div",children:[S(el,{children:S(Gl,{alt:"",src:`${xB}${y.data.image}`,variant:"rounded",children:S(Zu,{})})}),S(Wr,{primary:y.value,slotProps:{primary:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}})]}))}),h.language!==ly&&S(Px,{children:S(os,{control:S(qo,{checked:r,onChange:(g,y)=>o(y)}),label:f("alsoSearchEnglish")})})]})}var Mtt=function(t){return Rtt(t)&&!Dtt(t)};function Rtt(e){return!!e&&typeof e=="object"}function Dtt(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||$tt(e)}var ktt=typeof Symbol=="function"&&Symbol.for,_tt=ktt?Symbol.for("react.element"):60103;function $tt(e){return e.$$typeof===_tt}function Ntt(e){return Array.isArray(e)?[]:{}}function mO(e,t){return t.clone!==!1&&t.isMergeableObject(e)?wS(Ntt(e),e,t):e}function Ltt(e,t,n){return e.concat(t).map(function(r){return mO(r,n)})}function Ftt(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(o){r[o]=mO(e[o],n)}),Object.keys(t).forEach(function(o){!n.isMergeableObject(t[o])||!e[o]?r[o]=mO(t[o],n):r[o]=wS(e[o],t[o],n)}),r}function wS(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Ltt,n.isMergeableObject=n.isMergeableObject||Mtt;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):Ftt(e,t,n):mO(t,n)}wS.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return wS(r,o,n)},{})};var VF=wS,tue=typeof global=="object"&&global&&global.Object===Object&&global,jtt=typeof self=="object"&&self&&self.Object===Object&&self,qc=tue||jtt||Function("return this")(),Mf=qc.Symbol,nue=Object.prototype,Btt=nue.hasOwnProperty,ztt=nue.toString,h0=Mf?Mf.toStringTag:void 0;function Vtt(e){var t=Btt.call(e,h0),n=e[h0];try{e[h0]=void 0;var r=!0}catch{}var o=ztt.call(e);return r&&(t?e[h0]=n:delete e[h0]),o}var Htt=Object.prototype,Utt=Htt.toString;function Gtt(e){return Utt.call(e)}var qtt="[object Null]",Wtt="[object Undefined]",uX=Mf?Mf.toStringTag:void 0;function Kh(e){return e==null?e===void 0?Wtt:qtt:uX&&uX in Object(e)?Vtt(e):Gtt(e)}function rue(e,t){return function(n){return e(t(n))}}var yV=rue(Object.getPrototypeOf,Object);function Yh(e){return e!=null&&typeof e=="object"}var Ktt="[object Object]",Ytt=Function.prototype,Qtt=Object.prototype,oue=Ytt.toString,Xtt=Qtt.hasOwnProperty,Ztt=oue.call(Object);function dX(e){if(!Yh(e)||Kh(e)!=Ktt)return!1;var t=yV(e);if(t===null)return!0;var n=Xtt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&oue.call(n)==Ztt}function Jtt(){this.__data__=[],this.size=0}function iue(e,t){return e===t||e!==e&&t!==t}function CP(e,t){for(var n=e.length;n--;)if(iue(e[n][0],t))return n;return-1}var ent=Array.prototype,tnt=ent.splice;function nnt(e){var t=this.__data__,n=CP(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():tnt.call(t,n,1),--this.size,!0}function rnt(e){var t=this.__data__,n=CP(t,e);return n<0?void 0:t[n][1]}function ont(e){return CP(this.__data__,e)>-1}function int(e,t){var n=this.__data__,r=CP(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function od(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=irt}var art="[object Arguments]",srt="[object Array]",lrt="[object Boolean]",crt="[object Date]",urt="[object Error]",drt="[object Function]",frt="[object Map]",prt="[object Number]",hrt="[object Object]",mrt="[object RegExp]",grt="[object Set]",yrt="[object String]",vrt="[object WeakMap]",brt="[object ArrayBuffer]",xrt="[object DataView]",Srt="[object Float32Array]",wrt="[object Float64Array]",Crt="[object Int8Array]",Ert="[object Int16Array]",Trt="[object Int32Array]",Ort="[object Uint8Array]",Irt="[object Uint8ClampedArray]",Prt="[object Uint16Array]",Art="[object Uint32Array]",Br={};Br[Srt]=Br[wrt]=Br[Crt]=Br[Ert]=Br[Trt]=Br[Ort]=Br[Irt]=Br[Prt]=Br[Art]=!0;Br[art]=Br[srt]=Br[brt]=Br[lrt]=Br[xrt]=Br[crt]=Br[urt]=Br[drt]=Br[frt]=Br[prt]=Br[hrt]=Br[mrt]=Br[grt]=Br[yrt]=Br[vrt]=!1;function Mrt(e){return Yh(e)&&fue(e.length)&&!!Br[Kh(e)]}function vV(e){return function(t){return e(t)}}var pue=typeof exports=="object"&&exports&&!exports.nodeType&&exports,cx=pue&&typeof module=="object"&&module&&!module.nodeType&&module,Rrt=cx&&cx.exports===pue,Z_=Rrt&&tue.process,Uy=function(){try{var e=cx&&cx.require&&cx.require("util").types;return e||Z_&&Z_.binding&&Z_.binding("util")}catch{}}(),yX=Uy&&Uy.isTypedArray,Drt=yX?vV(yX):Mrt,krt=Object.prototype,_rt=krt.hasOwnProperty;function hue(e,t){var n=kw(e),r=!n&&Znt(e),o=!n&&!r&&due(e),i=!n&&!r&&!o&&Drt(e),a=n||r||o||i,s=a?Knt(e.length,String):[],l=s.length;for(var c in e)(t||_rt.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ort(c,l)))&&s.push(c);return s}var $rt=Object.prototype;function bV(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||$rt;return e===n}var Nrt=rue(Object.keys,Object),Lrt=Object.prototype,Frt=Lrt.hasOwnProperty;function jrt(e){if(!bV(e))return Nrt(e);var t=[];for(var n in Object(e))Frt.call(e,n)&&n!="constructor"&&t.push(n);return t}function mue(e){return e!=null&&fue(e.length)&&!aue(e)}function xV(e){return mue(e)?hue(e):jrt(e)}function Brt(e,t){return e&&TP(t,xV(t),e)}function zrt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Vrt=Object.prototype,Hrt=Vrt.hasOwnProperty;function Urt(e){if(!Dw(e))return zrt(e);var t=bV(e),n=[];for(var r in e)r=="constructor"&&(t||!Hrt.call(e,r))||n.push(r);return n}function SV(e){return mue(e)?hue(e,!0):Urt(e)}function Grt(e,t){return e&&TP(t,SV(t),e)}var gue=typeof exports=="object"&&exports&&!exports.nodeType&&exports,vX=gue&&typeof module=="object"&&module&&!module.nodeType&&module,qrt=vX&&vX.exports===gue,bX=qrt?qc.Buffer:void 0,xX=bX?bX.allocUnsafe:void 0;function Wrt(e,t){if(t)return e.slice();var n=e.length,r=xX?xX(n):new e.constructor(n);return e.copy(r),r}function yue(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0)&&(n[o]=e[o]);return n}function LX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var OP=x.createContext(void 0);OP.displayName="FormikContext";var Rit=OP.Provider,Dit=OP.Consumer;function IV(){var e=x.useContext(OP);return e}var FX=function(t){return Array.isArray(t)&&t.length===0},ya=function(t){return typeof t=="function"},Rv=function(t){return t!==null&&typeof t=="object"},kit=function(t){return String(Math.floor(Number(t)))===t},e$=function(t){return Object.prototype.toString.call(t)==="[object String]"},Pue=function(t){return x.Children.count(t)===0},t$=function(t){return Rv(t)&&ya(t.then)};function ti(e,t,n,r){r===void 0&&(r=0);for(var o=Iue(t);e&&r=0?[]:{}}}return(i===0?e:o)[a[i]]===n?e:(n===void 0?delete o[a[i]]:o[a[i]]=n,i===0&&n===void 0&&delete r[a[i]],r)}function Aue(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var o=0,i=Object.keys(e);o0?Ee.map(function(Ve){return A(Ve,ti(te,Ve))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(De).then(function(Ve){return Ve.reduce(function(We,rt,ut){return rt==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||rt&&(We=Pc(We,Ee[ut],rt)),We},{})})},[A]),N=x.useCallback(function(te){return Promise.all([_(te),h.validationSchema?M(te):{},h.validate?D(te):{}]).then(function(Ee){var De=Ee[0],Ve=Ee[1],We=Ee[2],rt=VF.all([De,Ve,We],{arrayMerge:Fit});return rt})},[h.validate,h.validationSchema,_,D,M]),B=As(function(te){return te===void 0&&(te=P.values),R({type:"SET_ISVALIDATING",payload:!0}),N(te).then(function(Ee){return w.current&&(R({type:"SET_ISVALIDATING",payload:!1}),R({type:"SET_ERRORS",payload:Ee})),Ee})});x.useEffect(function(){a&&w.current===!0&&Gd(m.current,h.initialValues)&&B(m.current)},[a,B]);var H=x.useCallback(function(te){var Ee=te&&te.values?te.values:m.current,De=te&&te.errors?te.errors:g.current?g.current:h.initialErrors||{},Ve=te&&te.touched?te.touched:y.current?y.current:h.initialTouched||{},We=te&&te.status?te.status:v.current?v.current:h.initialStatus;m.current=Ee,g.current=De,y.current=Ve,v.current=We;var rt=function(){R({type:"RESET_FORM",payload:{isSubmitting:!!te&&!!te.isSubmitting,errors:De,touched:Ve,status:We,values:Ee,isValidating:!!te&&!!te.isValidating,submitCount:te&&te.submitCount&&typeof te.submitCount=="number"?te.submitCount:0}})};if(h.onReset){var ut=h.onReset(P.values,ue);t$(ut)?ut.then(rt):rt()}else rt()},[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]);x.useEffect(function(){w.current===!0&&!Gd(m.current,h.initialValues)&&c&&(m.current=h.initialValues,H(),a&&B(m.current))},[c,h.initialValues,H,a,B]),x.useEffect(function(){c&&w.current===!0&&!Gd(g.current,h.initialErrors)&&(g.current=h.initialErrors||wp,R({type:"SET_ERRORS",payload:h.initialErrors||wp}))},[c,h.initialErrors]),x.useEffect(function(){c&&w.current===!0&&!Gd(y.current,h.initialTouched)&&(y.current=h.initialTouched||K1,R({type:"SET_TOUCHED",payload:h.initialTouched||K1}))},[c,h.initialTouched]),x.useEffect(function(){c&&w.current===!0&&!Gd(v.current,h.initialStatus)&&(v.current=h.initialStatus,R({type:"SET_STATUS",payload:h.initialStatus}))},[c,h.initialStatus,h.initialTouched]);var j=As(function(te){if(C.current[te]&&ya(C.current[te].validate)){var Ee=ti(P.values,te),De=C.current[te].validate(Ee);return t$(De)?(R({type:"SET_ISVALIDATING",payload:!0}),De.then(function(Ve){return Ve}).then(function(Ve){R({type:"SET_FIELD_ERROR",payload:{field:te,value:Ve}}),R({type:"SET_ISVALIDATING",payload:!1})})):(R({type:"SET_FIELD_ERROR",payload:{field:te,value:De}}),Promise.resolve(De))}else if(h.validationSchema)return R({type:"SET_ISVALIDATING",payload:!0}),M(P.values,te).then(function(Ve){return Ve}).then(function(Ve){R({type:"SET_FIELD_ERROR",payload:{field:te,value:ti(Ve,te)}}),R({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),L=x.useCallback(function(te,Ee){var De=Ee.validate;C.current[te]={validate:De}},[]),V=x.useCallback(function(te){delete C.current[te]},[]),W=As(function(te,Ee){R({type:"SET_TOUCHED",payload:te});var De=Ee===void 0?o:Ee;return De?B(P.values):Promise.resolve()}),K=x.useCallback(function(te){R({type:"SET_ERRORS",payload:te})},[]),G=As(function(te,Ee){var De=ya(te)?te(P.values):te;R({type:"SET_VALUES",payload:De});var Ve=Ee===void 0?n:Ee;return Ve?B(De):Promise.resolve()}),q=x.useCallback(function(te,Ee){R({type:"SET_FIELD_ERROR",payload:{field:te,value:Ee}})},[]),Y=As(function(te,Ee,De){R({type:"SET_FIELD_VALUE",payload:{field:te,value:Ee}});var Ve=De===void 0?n:De;return Ve?B(Pc(P.values,te,Ee)):Promise.resolve()}),J=x.useCallback(function(te,Ee){var De=Ee,Ve=te,We;if(!e$(te)){te.persist&&te.persist();var rt=te.target?te.target:te.currentTarget,ut=rt.type,Be=rt.name,et=rt.id,Le=rt.value,It=rt.checked;rt.outerHTML;var Lt=rt.options,nt=rt.multiple;De=Ee||Be||et,Ve=/number|range/.test(ut)?(We=parseFloat(Le),isNaN(We)?"":We):/checkbox/.test(ut)?Bit(ti(P.values,De),It,Le):Lt&&nt?jit(Lt):Le}De&&Y(De,Ve)},[Y,P.values]),ie=As(function(te){if(e$(te))return function(Ee){return J(Ee,te)};J(te)}),se=As(function(te,Ee,De){Ee===void 0&&(Ee=!0),R({type:"SET_FIELD_TOUCHED",payload:{field:te,value:Ee}});var Ve=De===void 0?o:De;return Ve?B(P.values):Promise.resolve()}),ce=x.useCallback(function(te,Ee){te.persist&&te.persist();var De=te.target,Ve=De.name,We=De.id;De.outerHTML;var rt=Ee||Ve||We;se(rt,!0)},[se]),ye=As(function(te){if(e$(te))return function(Ee){return ce(Ee,te)};ce(te)}),Se=x.useCallback(function(te){ya(te)?R({type:"SET_FORMIK_STATE",payload:te}):R({type:"SET_FORMIK_STATE",payload:function(){return te}})},[]),ne=x.useCallback(function(te){R({type:"SET_STATUS",payload:te})},[]),le=x.useCallback(function(te){R({type:"SET_ISSUBMITTING",payload:te})},[]),de=As(function(){return R({type:"SUBMIT_ATTEMPT"}),B().then(function(te){var Ee=te instanceof Error,De=!Ee&&Object.keys(te).length===0;if(De){var Ve;try{if(Ve=pe(),Ve===void 0)return}catch(We){throw We}return Promise.resolve(Ve).then(function(We){return w.current&&R({type:"SUBMIT_SUCCESS"}),We}).catch(function(We){if(w.current)throw R({type:"SUBMIT_FAILURE"}),We})}else if(w.current&&(R({type:"SUBMIT_FAILURE"}),Ee))throw te})}),oe=As(function(te){te&&te.preventDefault&&ya(te.preventDefault)&&te.preventDefault(),te&&te.stopPropagation&&ya(te.stopPropagation)&&te.stopPropagation(),de().catch(function(Ee){console.warn("Warning: An unhandled error was caught from submitForm()",Ee)})}),ue={resetForm:H,validateForm:B,validateField:j,setErrors:K,setFieldError:q,setFieldTouched:se,setFieldValue:Y,setStatus:ne,setSubmitting:le,setTouched:W,setValues:G,setFormikState:Se,submitForm:de},pe=As(function(){return u(P.values,ue)}),Ce=As(function(te){te&&te.preventDefault&&ya(te.preventDefault)&&te.preventDefault(),te&&te.stopPropagation&&ya(te.stopPropagation)&&te.stopPropagation(),H()}),xe=x.useCallback(function(te){return{value:ti(P.values,te),error:ti(P.errors,te),touched:!!ti(P.touched,te),initialValue:ti(m.current,te),initialTouched:!!ti(y.current,te),initialError:ti(g.current,te)}},[P.errors,P.touched,P.values]),Re=x.useCallback(function(te){return{setValue:function(De,Ve){return Y(te,De,Ve)},setTouched:function(De,Ve){return se(te,De,Ve)},setError:function(De){return q(te,De)}}},[Y,se,q]),he=x.useCallback(function(te){var Ee=Rv(te),De=Ee?te.name:te,Ve=ti(P.values,De),We={name:De,value:Ve,onChange:ie,onBlur:ye};if(Ee){var rt=te.type,ut=te.value,Be=te.as,et=te.multiple;rt==="checkbox"?ut===void 0?We.checked=!!Ve:(We.checked=!!(Array.isArray(Ve)&&~Ve.indexOf(ut)),We.value=ut):rt==="radio"?(We.checked=Ve===ut,We.value=ut):Be==="select"&&et&&(We.value=We.value||[],We.multiple=!0)}return We},[ye,ie,P.values]),Ie=x.useMemo(function(){return!Gd(m.current,P.values)},[m.current,P.values]),ve=x.useMemo(function(){return typeof s<"u"?Ie?P.errors&&Object.keys(P.errors).length===0:s!==!1&&ya(s)?s(h):s:P.errors&&Object.keys(P.errors).length===0},[s,Ie,P.errors,h]),Oe=fo({},P,{initialValues:m.current,initialErrors:g.current,initialTouched:y.current,initialStatus:v.current,handleBlur:ye,handleChange:ie,handleReset:Ce,handleSubmit:oe,resetForm:H,setErrors:K,setFormikState:Se,setFieldTouched:se,setFieldValue:Y,setFieldError:q,setStatus:ne,setSubmitting:le,setTouched:W,setValues:G,submitForm:de,validateForm:B,validateField:j,isValid:ve,dirty:Ie,unregisterField:V,registerField:L,getFieldProps:he,getFieldMeta:xe,getFieldHelpers:Re,validateOnBlur:o,validateOnChange:n,validateOnMount:a});return Oe}function Ti(e){var t=$it(e),n=e.component,r=e.children,o=e.render,i=e.innerRef;return x.useImperativeHandle(i,function(){return t}),x.createElement(Rit,{value:t},n?x.createElement(n,t):o?o(t):r?ya(r)?r(t):Pue(r)?null:x.Children.only(r):null)}function Nit(e){var t={};if(e.inner){if(e.inner.length===0)return Pc(t,e.path,e.message);for(var o=e.inner,n=Array.isArray(o),r=0,o=n?o:o[Symbol.iterator]();;){var i;if(n){if(r>=o.length)break;i=o[r++]}else{if(r=o.next(),r.done)break;i=r.value}var a=i;ti(t,a.path)||(t=Pc(t,a.path,a.message))}}return t}function Lit(e,t,n,r){n===void 0&&(n=!1);var o=WF(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:o})}function WF(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(o){return Array.isArray(o)===!0||dX(o)?WF(o):o!==""?o:void 0}):dX(e[r])?t[r]=WF(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function Fit(e,t,n){var r=e.slice();return t.forEach(function(i,a){if(typeof r[a]>"u"){var s=n.clone!==!1,l=s&&n.isMergeableObject(i);r[a]=l?VF(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[a]=VF(e[a],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function jit(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function Bit(e,t,n){if(typeof e=="boolean")return!!t;var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),o=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}var zit=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?x.useLayoutEffect:x.useEffect;function As(e){var t=x.useRef(e);return zit(function(){t.current=e}),x.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;or?o:r},0);return Array.from(fo({},t,{length:n+1}))}else return[]},jX=function(t,n){var r=typeof t=="function"?t:n;return function(o){if(Array.isArray(o)||Rv(o)){var i=Ph(o);return r(i)}return o}},Mue=function(e){Mit(t,e);function t(r){var o;return o=e.call(this,r)||this,o.updateArrayField=function(i,a,s){var l=o.props,c=l.name,u=l.formik.setFormikState;u(function(f){var h=jX(s,i),m=jX(a,i),g=Pc(f.values,c,i(ti(f.values,c))),y=s?h(ti(f.errors,c)):void 0,v=a?m(ti(f.touched,c)):void 0;return FX(y)&&(y=void 0),FX(v)&&(v=void 0),fo({},f,{values:g,errors:s?Pc(f.errors,c,y):f.errors,touched:a?Pc(f.touched,c,v):f.touched})})},o.push=function(i){return o.updateArrayField(function(a){return[].concat(Ph(a),[B0(i)])},!1,!1)},o.handlePush=function(i){return function(){return o.push(i)}},o.swap=function(i,a){return o.updateArrayField(function(s){return Uit(s,i,a)},!0,!0)},o.handleSwap=function(i,a){return function(){return o.swap(i,a)}},o.move=function(i,a){return o.updateArrayField(function(s){return Hit(s,i,a)},!0,!0)},o.handleMove=function(i,a){return function(){return o.move(i,a)}},o.insert=function(i,a){return o.updateArrayField(function(s){return n$(s,i,a)},function(s){return n$(s,i,null)},function(s){return n$(s,i,null)})},o.handleInsert=function(i,a){return function(){return o.insert(i,a)}},o.replace=function(i,a){return o.updateArrayField(function(s){return Git(s,i,a)},!1,!1)},o.handleReplace=function(i,a){return function(){return o.replace(i,a)}},o.unshift=function(i){var a=-1;return o.updateArrayField(function(s){var l=s?[i].concat(s):[i];return a=l.length,l},function(s){return s?[null].concat(s):[null]},function(s){return s?[null].concat(s):[null]}),a},o.handleUnshift=function(i){return function(){return o.unshift(i)}},o.handleRemove=function(i){return function(){return o.remove(i)}},o.handlePop=function(){return function(){return o.pop()}},o.remove=o.remove.bind(LX(o)),o.pop=o.pop.bind(LX(o)),o}var n=t.prototype;return n.componentDidUpdate=function(o){this.props.validateOnChange&&this.props.formik.validateOnChange&&!Gd(ti(o.formik.values,o.name),ti(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(o){var i;return this.updateArrayField(function(a){var s=a?Ph(a):[];return i||(i=s[o]),ya(s.splice)&&s.splice(o,1),ya(s.every)&&s.every(function(l){return l===void 0})?[]:s},!0,!0),i},n.pop=function(){var o;return this.updateArrayField(function(i){var a=i.slice();return o||(o=a&&a.pop&&a.pop()),a},!0,!0),o},n.render=function(){var o={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},i=this.props,a=i.component,s=i.render,l=i.children,c=i.name,u=i.formik,f=OV(u,["validate","validationSchema"]),h=fo({},o,{form:f,name:c});return a?x.createElement(a,h):s?s(h):l?typeof l=="function"?l(h):Pue(l)?null:x.Children.only(l):null},t}(x.Component);Mue.defaultProps={validateOnChange:!0};var Rue=Vit(Mue),r$,BX;function qit(){if(BX)return r$;BX=1;function e(w){this._maxSize=w,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(w){return this._values[w]},e.prototype.set=function(w,C){return this._size>=this._maxSize&&this.clear(),w in this._values||this._size++,this._values[w]=C};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,i=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,s=new e(a),l=new e(a),c=new e(a);r$={Cache:e,split:f,normalizePath:u,setter:function(w){var C=u(w);return l.get(w)||l.set(w,function(I,O){for(var P=0,R=C.length,D=I;Pu.match(e)||[],n=u=>u[0].toUpperCase()+u.slice(1),r=(u,f)=>t(u).join(f).toLowerCase(),o=u=>t(u).reduce((f,h)=>`${f}${f?h[0].toUpperCase()+h.slice(1).toLowerCase():h.toLowerCase()}`,"");return o$={words:t,upperFirst:n,camelCase:o,pascalCase:u=>n(o(u)),snakeCase:u=>r(u,"_"),kebabCase:u=>r(u,"-"),sentenceCase:u=>n(r(u," ")),titleCase:u=>t(u).map(n).join(" ")},o$}var i$=Wit(),Y1={exports:{}},VX;function Kit(){if(VX)return Y1.exports;VX=1,Y1.exports=function(o){return e(t(o),o)},Y1.exports.array=e;function e(o,i){var a=o.length,s=new Array(a),l={},c=a,u=n(i),f=r(o);for(i.forEach(function(m){if(!f.has(m[0])||!f.has(m[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});c--;)l[c]||h(o[c],c,new Set);return s;function h(m,g,y){if(y.has(m)){var v;try{v=", node was:"+JSON.stringify(m)}catch{v=""}throw new Error("Cyclic dependency"+v)}if(!f.has(m))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(m));if(!l[g]){l[g]=!0;var w=u.get(m)||new Set;if(w=Array.from(w),g=w.length){y.add(m);do{var C=w[--g];h(C,f.get(C),y)}while(g);y.delete(m)}s[--a]=m}}}function t(o){for(var i=new Set,a=0,s=o.length;a"",tat=/^Symbol\((.*)\)(.*)$/;function nat(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function HX(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return nat(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return eat.call(e).replace(tat,"Symbol($1)");const r=Xit.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+Zit.call(e)+"]":r==="RegExp"?Jit.call(e):null}function Nu(e,t){let n=HX(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=HX(this[r],t);return i!==null?i:o},2)}function Due(e){return e==null?[]:[].concat(e)}let kue,_ue,$ue,rat=/\$\{\s*(\w+)\s*\}/g;kue=Symbol.toStringTag;class UX{constructor(t,n,r,o){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[kue]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],Due(t).forEach(i=>{if(Sa.isError(i)){this.errors.push(...i.errors);const a=i.inner.length?i.inner:[i];this.inner.push(...a)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}_ue=Symbol.hasInstance;$ue=Symbol.toStringTag;class Sa extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(rat,(o,i)=>Nu(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o,i){const a=new UX(t,n,r,o);if(i)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[$ue]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Sa)}static[_ue](t){return UX[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let lc={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${Nu(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Nu(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${Nu(n,!0)}\``+o}},ha={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},zd={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},KF={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},YF={isValue:"${path} field must be ${value}"},EE={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},TE={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},oat={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.lengtho)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${Nu(n,!0)}\``}return Sa.formatError(lc.notType,e)}};Object.assign(Object.create(null),{mixed:lc,string:ha,number:zd,date:KF,object:EE,array:TE,boolean:YF,tuple:oat});const IP=e=>e&&e.__isYupSchema__;class gO{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,a=typeof r=="function"?r:(...s)=>s.every(l=>l===r);return new gO(t,(s,l)=>{var c;let u=a(...s)?o:i;return(c=u==null?void 0:u(l))!=null?c:l})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!IP(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const Q1={context:"$",value:"."};function PV(e,t){return new Kf(e,t)}class Kf{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Q1.context,this.isValue=this.key[0]===Q1.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?Q1.context:this.isValue?Q1.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&ah.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Kf.prototype.__isYupRef=!0;const kl=e=>e==null;function eg(e){function t({value:n,path:r="",options:o,originalValue:i,schema:a},s,l){const{name:c,test:u,params:f,message:h,skipAbsent:m}=e;let{parent:g,context:y,abortEarly:v=a.spec.abortEarly,disableStackTrace:w=a.spec.disableStackTrace}=o;function C(_){return Kf.isRef(_)?_.getValue(n,g,y):_}function E(_={}){const N=Object.assign({value:n,originalValue:i,label:a.spec.label,path:_.path||r,spec:a.spec,disableStackTrace:_.disableStackTrace||w},f,_.params);for(const H of Object.keys(N))N[H]=C(N[H]);const B=new Sa(Sa.formatError(_.message||h,N),n,N.path,_.type||c,N.disableStackTrace);return B.params=N,B}const I=v?s:l;let O={path:r,parent:g,type:c,from:o.from,createError:E,resolve:C,options:o,originalValue:i,schema:a};const P=_=>{Sa.isError(_)?I(_):_?l(null):I(E())},R=_=>{Sa.isError(_)?I(_):s(_)};if(m&&kl(n))return P(!0);let M;try{var A;if(M=u.call(O,n,O),typeof((A=M)==null?void 0:A.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${O.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(M).then(P,R)}}catch(_){R(_);return}P(M)}return t.OPTIONS=e,t}function iat(e,t,n,r=n){let o,i,a;return t?(ah.forEach(t,(s,l,c)=>{let u=l?s.slice(1,s.length-1):s;e=e.resolve({context:r,parent:o,value:n});let f=e.type==="tuple",h=c?parseInt(u,10):0;if(e.innerType||f){if(f&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&h>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[h],e=f?e.spec.types[h]:e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[u],e=e.fields[u]}i=u,a=l?"["+s+"]":"."+s}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class yO extends Set{describe(){const t=[];for(const n of this.values())t.push(Kf.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new yO(this.values())}merge(t,n){const r=this.clone();return t.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function wg(e,t=new Map){if(IP(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r{this.typeError(lc.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=wg(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{t.tests.forEach(a=>{i.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),o=n.assert==="ignore-optionality",i=r._cast(t,n);if(n.assert!==!1&&!r.isType(i)){if(o&&kl(i))return i;let a=Nu(t),s=Nu(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". +`));const t=x.useMemo(()=>z({},yYe,e.localeText),[e.localeText]);return x.useMemo(()=>z({},e,{localeText:t}),[e,t])},xn=()=>Wh().utils,Fle=()=>Wh().defaultDates,Kh=e=>{const t=xn(),n=x.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current},Ei=()=>Wh().localeText,vYe=Ot(k.jsx("path",{d:"M7 10l5 5 5-5z"})),bYe=Ot(k.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),xYe=Ot(k.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),jle=Ot(k.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"})),SYe=Ot(k.jsxs(x.Fragment,{children:[k.jsx("path",{d:"M11.99 2C6.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"}),k.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]})),wYe=Ot(k.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"})),CYe=Ot(k.jsxs(x.Fragment,{children:[k.jsx("path",{d:"M11.99 2C6.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"}),k.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]})),EYe=Ot(k.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));function TYe(e){return qe("MuiPickersArrowSwitcher",e)}Ke("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const Ble=x.createContext(()=>!0);function OYe(){return x.useContext(Ble)}const zle=x.createContext(null);function Vle(){return x.useContext(zle)}const Wz=x.createContext(null),qc=()=>{const e=x.useContext(Wz);if(e==null)throw new Error("MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component");return e},Hle=x.createContext(null),Ule=x.createContext({ownerState:{isPickerDisabled:!1,isPickerReadOnly:!1,isPickerValueEmpty:!1,isPickerOpen:!1,pickerVariant:"desktop",pickerOrientation:"portrait"},rootRefObject:{current:null},labelId:void 0,dismissViews:()=>{},hasUIView:!0,getCurrentViewMode:()=>"UI",triggerElement:null,viewContainerRole:null,defaultActionBarActions:[],onPopperExited:void 0});function Gle(e){const{contextValue:t,actionsContextValue:n,privateContextValue:r,fieldPrivateContextValue:o,isValidContextValue:i,localeText:a,children:s}=e;return k.jsx(Wz.Provider,{value:t,children:k.jsx(Hle.Provider,{value:n,children:k.jsx(Ule.Provider,{value:r,children:k.jsx(zle.Provider,{value:o,children:k.jsx(Ble.Provider,{value:i,children:k.jsx(Ys,{localeText:a,children:s})})})})})})}const Ur=()=>x.useContext(Ule),IYe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],PYe=["ownerState"],AYe=["ownerState"],MYe=ae("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),RYe=ae("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),GQ=ae(pn,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),DYe=e=>Me({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},TYe,e),qle=x.forwardRef(function(t,n){const r=vr(),o=Pn({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:s,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:f,nextLabel:h,isPreviousDisabled:m,isPreviousHidden:g,onGoToPrevious:y,previousLabel:v,labelId:w,classes:C}=o,E=$e(o,IYe),{ownerState:I}=Ur(),O=DYe(C),P={isDisabled:c,isHidden:u,goTo:f,label:h},R={isDisabled:m,isHidden:g,goTo:y,label:v},D=(s==null?void 0:s.previousIconButton)??GQ,M=Dn({elementType:D,externalSlotProps:l==null?void 0:l.previousIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"end",onClick:R.goTo},ownerState:z({},I,{isButtonHidden:R.isHidden??!1}),className:fe(O.button,O.previousIconButton)}),A=(s==null?void 0:s.nextIconButton)??GQ,_=Dn({elementType:A,externalSlotProps:l==null?void 0:l.nextIconButton,additionalProps:{size:"medium",title:P.label,"aria-label":P.label,disabled:P.isDisabled,edge:"start",onClick:P.goTo},ownerState:z({},I,{isButtonHidden:P.isHidden??!1}),className:fe(O.button,O.nextIconButton)}),N=(s==null?void 0:s.leftArrowIcon)??bYe,B=Dn({elementType:N,externalSlotProps:l==null?void 0:l.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:I,className:O.leftArrowIcon}),H=$e(B,PYe),j=(s==null?void 0:s.rightArrowIcon)??xYe,L=Dn({elementType:j,externalSlotProps:l==null?void 0:l.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:I,className:O.rightArrowIcon}),V=$e(L,AYe);return k.jsxs(MYe,z({ref:n,className:fe(O.root,a),ownerState:I},E,{children:[k.jsx(D,z({},M,{children:r?k.jsx(j,z({},V)):k.jsx(N,z({},H))})),i?k.jsx(at,{variant:"subtitle1",component:"span",id:w,children:i}):k.jsx(RYe,{className:O.spacer,ownerState:I}),k.jsx(A,z({},_,{children:r?k.jsx(N,z({},H)):k.jsx(j,z({},V))}))]}))}),bc=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),Kz=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let i;if(e!=null)i=e;else if(o.includes(t))i=t;else if(o.length>0)i=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:i}},Wle=["hours","minutes","seconds"],kYe=["hours","minutes","seconds","meridiem"],Th=e=>Wle.includes(e),Sg=e=>kYe.includes(e),_Ye=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,vS=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,$Ye=(e,t,n,r)=>{const o=vS(r.getHours(e),t,n);return r.setHours(e,o)},qQ=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Aw=(e,t)=>(n,r)=>e?t.isAfter(n,r):qQ(n,t)>qQ(r,t),fO=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return bc(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:bc(n,["minutes"])?o.minutes:bc(n,["seconds"])?o.seconds:bc(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:bc(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`},Kle={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function NYe(e){const{steps:t,isViewMatchingStep:n,onStepChange:r}=e;return o=>{if(t==null)return Kle;const i=t.findIndex(s=>n(o.view,s)),a=i===-1||i===t.length-1?null:t[i+1];return{hasNextStep:a!=null,hasSeveralSteps:t.length>1,goToNextStep:()=>{a!=null&&r(z({},o,{step:a}))},areViewsInSameStep:(s,l)=>{const c=t.find(f=>n(s,f)),u=t.find(f=>n(l,f));return c===u}}}}function Mw({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:a,onFocusedViewChange:s,getStepNavigation:l}){const c=x.useRef(n),u=x.useRef(o),f=x.useRef(o.includes(n)?n:o[0]),[h,m]=ia({name:"useViews",state:"view",controlled:r,default:f.current}),g=x.useRef(i?h:null),[y,v]=ia({name:"useViews",state:"focusedView",controlled:a,default:g.current}),w=l?l({setView:m,view:h,defaultView:f.current,views:o}):Kle;x.useEffect(()=>{(c.current&&c.current!==n||u.current&&u.current.some(M=>!o.includes(M)))&&(m(o.includes(n)?n:o[0]),u.current=o,c.current=n)},[n,m,h,o]);const C=o.indexOf(h),E=o[C-1]??null,I=o[C+1]??null,O=Je((M,A)=>{v(A?M:_=>M===_?null:_),s==null||s(M,A)}),P=Je(M=>{O(M,!0),M!==h&&(m(M),t&&t(M))}),R=Je(()=>{I&&P(I)}),D=Je((M,A,_)=>{const N=A==="finish",B=_?o.indexOf(_){const i=o.date(void 0,r),a=o.startOfMonth(t&&o.isBefore(i,n)?i:n);return!o.isAfter(a,e)},[t,n,e,o,r])}function FYe(e,{disablePast:t,minDate:n,timezone:r}){const o=xn();return x.useMemo(()=>{const i=o.date(void 0,r),a=o.startOfMonth(t&&o.isAfter(i,n)?i:n);return!o.isBefore(a,e)},[t,n,e,o,r])}function gP(e,t,n,r){const o=xn(),i=x.useMemo(()=>o.isValid(e)?e:null,[o,e]),a=_Ye(i,o),s=x.useCallback(l=>{const c=i==null?null:$Ye(i,l,!!t,o);n(c,r??"partial")},[t,i,n,r,o]);return{meridiemMode:a,handleMeridiemChange:s}}const bS=36,yP=2,zy=320,jYe=280,Vy=336,Yle=232,z0=48,vP=ae("div")({overflow:"hidden",width:zy,maxHeight:Vy,display:"flex",flexDirection:"column",margin:"0 auto"});function BYe(e){return qe("MuiTimeClock",e)}Ke("MuiTimeClock",["root","arrowSwitcher"]);const Hy=220,$u=36,xS={x:Hy/2,y:Hy/2},Qle={x:xS.x,y:0},zYe=Qle.x-xS.x,VYe=Qle.y-xS.y,HYe=e=>e*(180/Math.PI),Xle=(e,t,n)=>{const r=t-xS.x,o=n-xS.y,i=Math.atan2(zYe,VYe)-Math.atan2(r,o);let a=HYe(i);a=Math.round(a/e)*e,a%=360;const s=Math.floor(a/e)||0,l=r**2+o**2,c=Math.sqrt(l);return{value:s,distance:c}},UYe=(e,t,n=1)=>{const r=n*6;let{value:o}=Xle(r,e,t);return o=o*n%60,o},GYe=(e,t,n)=>{const{value:r,distance:o}=Xle(30,e,t);let i=r||12;return n?i%=12:oMe({root:["root"],thumb:["thumb"]},qYe,e),YYe=ae("div",{name:"MuiClockPointer",slot:"Root"})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{isClockPointerAnimated:!0},style:{transition:e.transitions.create(["transform","height"])}}]})),QYe=ae("div",{name:"MuiClockPointer",slot:"Thumb"})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${$u/2}px)`,border:`${($u-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{isClockPointerBetweenTwoValues:!1},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function XYe(e){const t=Pn({props:e,name:"MuiClockPointer"}),{className:n,classes:r,isBetweenTwoClockValues:o,isInner:i,type:a,viewValue:s}=t,l=$e(t,WYe),c=x.useRef(a);x.useEffect(()=>{c.current=a},[a]);const{ownerState:u}=Ur(),f=z({},u,{isClockPointerAnimated:c.current!==a,isClockPointerBetweenTwoValues:o}),h=KYe(r),m=()=>{let y=360/(a==="hours"?12:60)*s;return a==="hours"&&s>12&&(y-=360),{height:Math.round((i?.26:.4)*Hy),transform:`rotateZ(${y}deg)`}};return k.jsx(YYe,z({style:m(),className:fe(h.root,n),ownerState:f},l,{children:k.jsx(QYe,{ownerState:f,className:h.thumb})}))}function JYe(e){return qe("MuiClock",e)}Ke("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);const pO=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},SS=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:a,timezone:s})=>{const l=pO(a,a.date(void 0,s),e);n&&a.isBefore(o,l)&&(o=l),t&&a.isAfter(r,l)&&(r=l);let c=e,u=e;for(a.isBefore(e,o)&&(c=o,u=null),a.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&a.isAfter(c,r)&&(c=null),u&&a.isBefore(u,o)&&(u=null),c){if(!i(c))return c;c=a.addDays(c,1)}if(u){if(!i(u))return u;u=a.addDays(u,-1)}}return null},ZYe=(e,t)=>e.isValid(t)?t:null,hO=(e,t,n)=>t==null||!e.isValid(t)?n:t,eQe=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Yz=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},Qz=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),_l=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},Jle=["year","month","day"],Uy=e=>Jle.includes(e),wS=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return bc(n,["year"])?o.year:bc(n,["month"])?o.month:bc(n,["day"])?o.dayOfMonth:bc(n,["month","year"])?`${o.month} ${o.year}`:bc(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},tQe=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},nQe=(e,t)=>{const n={root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton",t.clockMeridiemMode==="am"&&"selected"],pmButton:["pmButton",t.clockMeridiemMode==="pm"&&"selected"],meridiemText:["meridiemText"]};return Me(n,JYe,e)},rQe=ae("div",{name:"MuiClock",slot:"Root"})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),oQe=ae("div",{name:"MuiClock",slot:"Clock"})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),iQe=ae("div",{name:"MuiClock",slot:"Wrapper"})({"&:focus":{outline:"none"}}),aQe=ae("div",{name:"MuiClock",slot:"SquareMask"})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{isClockDisabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),sQe=ae("div",{name:"MuiClock",slot:"Pin"})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),Zle=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:$u,variants:[{props:{clockMeridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),lQe=ae(pn,{name:"MuiClock",slot:"AmButton"})(({theme:e})=>z({},Zle(e,"am"),{position:"absolute",left:8})),cQe=ae(pn,{name:"MuiClock",slot:"PmButton"})(({theme:e})=>z({},Zle(e,"pm"),{position:"absolute",right:8})),WQ=ae(at,{name:"MuiClock",slot:"MeridiemText"})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function uQe(e){const t=Pn({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:i,value:a,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:c,minutesStep:u=1,onChange:f,selectedId:h,type:m,viewValue:g,viewRange:[y,v],disabled:w=!1,readOnly:C,className:E,classes:I}=t,O=xn(),P=Ei(),{ownerState:R}=Ur(),D=z({},R,{isClockDisabled:w,clockMeridiemMode:c}),M=x.useRef(!1),A=nQe(I,D),_=l(g,m),N=!n&&m==="hours"&&(g<1||g>12),B=(se,ce)=>{w||C||l(se,m)||f(se,ce)},H=(se,ce)=>{let{offsetX:ye,offsetY:Se}=se;if(ye===void 0){const le=se.target.getBoundingClientRect();ye=se.changedTouches[0].clientX-le.left,Se=se.changedTouches[0].clientY-le.top}const ne=m==="seconds"||m==="minutes"?UYe(ye,Se,u):GYe(ye,Se,!!n);B(ne,ce)},j=se=>{M.current=!0,H(se,"shallow")},L=se=>{M.current&&(H(se,"finish"),M.current=!1),se.preventDefault()},V=se=>{se.buttons>0&&H(se.nativeEvent,"shallow")},W=se=>{M.current&&(M.current=!1),H(se.nativeEvent,"finish")},K=m==="hours"?!1:g%5!==0,G=m==="minutes"?u:1,q=x.useRef(null);In(()=>{o&&q.current.focus()},[o]);const Y=se=>Math.max(y,Math.min(v,se)),Z=se=>(se+(v+1))%(v+1),ie=se=>{if(!M.current)switch(se.key){case"Home":B(y,"partial"),se.preventDefault();break;case"End":B(v,"partial"),se.preventDefault();break;case"ArrowUp":B(Z(g+G),"partial"),se.preventDefault();break;case"ArrowDown":B(Z(g-G),"partial"),se.preventDefault();break;case"PageUp":B(Y(g+5),"partial"),se.preventDefault();break;case"PageDown":B(Y(g-5),"partial"),se.preventDefault();break;case"Enter":case" ":B(g,"finish"),se.preventDefault();break}};return k.jsxs(rQe,{className:fe(A.root,E),children:[k.jsxs(oQe,{className:A.clock,children:[k.jsx(aQe,{onTouchMove:j,onTouchStart:j,onTouchEnd:L,onMouseUp:W,onMouseMove:V,ownerState:D,className:A.squareMask}),!_&&k.jsxs(x.Fragment,{children:[k.jsx(sQe,{className:A.pin}),a!=null&&k.jsx(XYe,{type:m,viewValue:g,isInner:N,isBetweenTwoClockValues:K})]}),k.jsx(iQe,{"aria-activedescendant":h,"aria-label":P.clockLabelText(m,a==null?null:O.format(a,n?"fullTime12h":"fullTime24h")),ref:q,role:"listbox",onKeyDown:ie,tabIndex:0,className:A.wrapper,children:i})]}),n&&r&&k.jsxs(x.Fragment,{children:[k.jsx(lQe,{onClick:C?void 0:()=>s("am"),disabled:w||c===null,ownerState:D,className:A.amButton,title:_l(O,"am"),children:k.jsx(WQ,{variant:"caption",className:A.meridiemText,children:_l(O,"am")})}),k.jsx(cQe,{disabled:w||c===null,onClick:C?void 0:()=>s("pm"),ownerState:D,className:A.pmButton,title:_l(O,"pm"),children:k.jsx(WQ,{variant:"caption",className:A.meridiemText,children:_l(O,"pm")})})]})]})}function dQe(e){return qe("MuiClockNumber",e)}const q1=Ke("MuiClockNumber",["root","selected","disabled"]),fQe=["className","classes","disabled","index","inner","label","selected"],pQe=(e,t)=>{const n={root:["root",t.isClockNumberSelected&&"selected",t.isClockNumberDisabled&&"disabled"]};return Me(n,dQe,e)},hQe=ae("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${q1.disabled}`]:t.disabled},{[`&.${q1.selected}`]:t.selected}]})(({theme:e})=>({height:$u,width:$u,position:"absolute",left:`calc((100% - ${$u}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${q1.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${q1.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{isClockNumberInInnerRing:!0},style:z({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function ece(e){const t=Pn({props:e,name:"MuiClockNumber"}),{className:n,classes:r,disabled:o,index:i,inner:a,label:s,selected:l}=t,c=$e(t,fQe),{ownerState:u}=Ur(),f=z({},u,{isClockNumberInInnerRing:a,isClockNumberSelected:l,isClockNumberDisabled:o}),h=pQe(r,f),m=i%12/12*Math.PI*2-Math.PI/2,g=(Hy-$u-2)/2*(a?.65:1),y=Math.round(Math.cos(m)*g),v=Math.round(Math.sin(m)*g);return k.jsx(hQe,z({className:fe(h.root,n),"aria-disabled":o?!0:void 0,"aria-selected":l?!0:void 0,role:"option",style:{transform:`translate(${y}px, ${v+(Hy-$u)/2}px`},ownerState:f},c,{children:s}))}const mQe=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:i})=>{const a=t?i.getHours(t):null,s=[],l=e?1:0,c=e?12:23,u=f=>a===null?!1:e?f===12?a===12||a===0:a===f||a-12===f:a===f;for(let f=l;f<=c;f+=1){let h=f.toString();f===0&&(h="00");const m=!e&&(f===0||f>12);h=i.formatNumber(h);const g=u(f);s.push(k.jsx(ece,{id:g?o:void 0,index:f,inner:m,selected:g,disabled:r(f),label:h,"aria-label":n(h)},f))}return s},KQ=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([a,s],l)=>{const c=a===t;return k.jsx(ece,{label:s,id:c?o:void 0,index:l+1,inner:!1,disabled:n(a),selected:c,"aria-label":r(s)},a)})},qf=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:i,valueManager:a})=>{const s=xn(),[l,c]=ia({name:e,state:"value",controlled:n,default:r??a.emptyValue}),u=x.useMemo(()=>a.getTimezone(s,l),[s,a,l]),f=Je(y=>u==null?y:a.setTimezone(s,u,y)),h=x.useMemo(()=>t||u||(o?s.getTimezone(o):"default"),[t,u,o,s]),m=x.useMemo(()=>a.setTimezone(s,h,l),[a,s,h,l]),g=Je((y,...v)=>{const w=f(y);c(w),i==null||i(w,...v)});return{value:m,handleValueChange:g,timezone:h}},Rl={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},gQe=e=>Math.max(...e.map(t=>Rl[t.type]??1)),f0=(e,t,n)=>{if(t===Rl.year)return e.startOfYear(n);if(t===Rl.month)return e.startOfMonth(n);if(t===Rl.day)return e.startOfDay(n);let r=n;return t{let i=o?o():f0(t,n,Qz(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=f0(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=f0(t,n,e.maxDate));const a=Aw(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=f0(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:pO(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=f0(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:pO(t,i,e.maxTime))),i},tce=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` +`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},bP=(e,t)=>{const n=[],r=e.date(void 0,"default"),o=e.startOfWeek(r),i=e.endOfWeek(r);let a=o;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(s=>e.formatByString(s,t))},nce=(e,t,n,r)=>{switch(n){case"month":return Yz(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return bP(e,r);case"meridiem":{const o=e.date(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(i=>e.formatByString(i,r))}default:return[]}},YQ="s",vQe=["0","1","2","3","4","5","6","7","8","9"],bQe=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),YQ)==="0"?vQe:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),YQ))},Oh=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let o=0;o-1&&(n.push(i.toString()),r="")}return n.join("")},Xz=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),QQ=(e,t)=>{const n=Oh(e,t);return n!==" "&&!Number.isNaN(Number(n))},Jz=(e,t)=>Number(e).toString().padStart(t,"0"),rce=(e,t,n,r,o)=>{if(o.type==="day"&&o.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,o.format)}let i=t.toString();return o.hasLeadingZerosInInput&&(i=Jz(i,o.maxLength)),Xz(i,r)},Zz=(e,t,n)=>{let r=e.value||e.placeholder;const o=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(Oh(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},XQ=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),xQe=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,oce=(e,t,n,r)=>{if(t!=="digit")return!1;const o=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&r==="YY"?!0:e.formatByString(e.setYear(o,1),r).startsWith("0");case"month":return e.formatByString(e.startOfYear(o),r).length>1;case"day":return e.formatByString(e.startOfMonth(o),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),r).length>1;case"hours":return e.formatByString(e.setHours(o,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),r).length>1;default:throw new Error("Invalid section type")}},SQe=(e,t,n)=>{const r=t.some(l=>l.type==="day"),o=[],i=[];for(let l=0;le.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),CQe=(e,t,n)=>{const o=e.map(i=>{const a=Zz(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},EQe=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),i=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:s}=Yz(e,r).reduce((l,c)=>{const u=e.getDaysInMonth(c);return u>l.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:c}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:xQe(e,l)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:l})=>({minimum:1,maximum:e.isValid(l)?e.getDaysInMonth(l):a,longestMonth:s}),weekDay:({format:l,contentType:c})=>{if(c==="digit"){const u=bP(e,l).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const c=e.getHours(i);return Oh(e.formatByString(e.endOfDay(r),l),t)!==c.toString()?{minimum:1,maximum:Number(Oh(e.formatByString(e.startOfDay(r),l),t))}:{minimum:0,maximum:c}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},TQe=(e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{let o=e.formatByString(n,t.format);t.hasLeadingZerosInInput&&(o=Jz(o,t.maxLength));const i=bP(e,t.format),a=i.indexOf(o),l=i.indexOf(t.value)-a;return e.addDays(n,l)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const o=e.getHours(n)<12,i=e.getHours(r);return o&&i>=12?e.addHours(r,-12):!o&&i<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}},JQ={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},ZQ=(e,t,n,r,o)=>[...n].sort((i,a)=>JQ[i.type]-JQ[a.type]).reduce((i,a)=>!o||a.modified?TQe(e,a,t,i):i,r),OQe=()=>navigator.userAgent.toLowerCase().includes("android"),IQe=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,f=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let i=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex((l,c)=>{var u;return c>=i&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),a===-1&&(a=e.length-1);for(let l=a;l>=i;l-=1)o[l]=s,r[s]=l,s-=1;i=a+1}return e.forEach((l,c)=>{const u=o[c],f=u===0?null:r[u-1],h=u===e.length-1?null:r[u+1];n[c]={leftIndex:f,rightIndex:h}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},LF=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(r=>r.type===e);return n===-1?null:n}return e},PQe=["value","referenceDate"],mo={emptyValue:null,getTodayValue:Qz,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=$e(e,PQe);return r.utils.isValid(t)?t:n??yQe(r)},cleanValue:ZYe,areValuesEqual:eQe,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},eV={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:wQe,getV6InputValueFromSections:CQe,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>z({},t,{value:""}))},tV=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const i=x.useMemo(()=>mo.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:Rl.day,timezone:o,getTodayDate:()=>Qz(n,o,"date")}),[]);return e??i},AQe=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","timezone"],MQe=e=>Me({root:["root"],arrowSwitcher:["arrowSwitcher"]},BYe,e),RQe=ae(vP,{name:"MuiTimeClock",slot:"Root"})({display:"flex",flexDirection:"column",position:"relative"}),DQe=ae(qle,{name:"MuiTimeClock",slot:"ArrowSwitcher"})({position:"absolute",right:12,top:15}),kQe=["hours","minutes"],_Qe=x.forwardRef(function(t,n){const r=xn(),o=Pn({props:t,name:"MuiTimeClock"}),{ampm:i=r.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:s,slots:l,slotProps:c,value:u,defaultValue:f,referenceDate:h,disableIgnoringDatePartForTimeValidation:m=!1,maxTime:g,minTime:y,disableFuture:v,disablePast:w,minutesStep:C=1,shouldDisableTime:E,showViewSwitcher:I,onChange:O,view:P,views:R=kQe,openTo:D,onViewChange:M,focusedView:A,onFocusedViewChange:_,className:N,classes:B,disabled:H,readOnly:j,timezone:L}=o,V=$e(o,AQe),{value:W,handleValueChange:K,timezone:G}=qf({name:"TimeClock",timezone:L,value:u,defaultValue:f,referenceDate:h,onChange:O,valueManager:mo}),q=tV({value:W,referenceDate:h,utils:r,props:o,timezone:G}),Y=Ei(),Z=Kh(G),ie=bn(),{ownerState:se}=Ur(),{view:ce,setView:ye,previousView:Se,nextView:ne,setValueAndGoToNextView:le}=Mw({view:P,views:R,openTo:D,onViewChange:M,onChange:K,focusedView:A,onFocusedViewChange:_}),{meridiemMode:de,handleMeridiemChange:oe}=gP(q,i,le),ue=x.useCallback((xe,Re)=>{const he=Aw(m,r),Pe=Re==="hours"||Re==="minutes"&&R.includes("seconds"),ve=({start:te,end:Te})=>!(y&&he(y,Te)||g&&he(te,g)||v&&he(te,Z)||w&&he(Z,Pe?Te:te)),Ie=(te,Te=1)=>{if(te%Te!==0)return!1;if(E)switch(Re){case"hours":return!E(r.setHours(q,te),"hours");case"minutes":return!E(r.setMinutes(q,te),"minutes");case"seconds":return!E(r.setSeconds(q,te),"seconds");default:return!1}return!0};switch(Re){case"hours":{const te=vS(xe,de,i),Te=r.setHours(q,te);if(r.getHours(Te)!==te)return!0;const De=r.setSeconds(r.setMinutes(Te,0),0),Ve=r.setSeconds(r.setMinutes(Te,59),59);return!ve({start:De,end:Ve})||!Ie(te)}case"minutes":{const te=r.setMinutes(q,xe),Te=r.setSeconds(te,0),De=r.setSeconds(te,59);return!ve({start:Te,end:De})||!Ie(xe,C)}case"seconds":{const te=r.setSeconds(q,xe);return!ve({start:te,end:te})||!Ie(xe)}default:throw new Error("not supported")}},[i,q,m,g,de,y,C,E,r,v,w,Z,R]),pe=x.useMemo(()=>{switch(ce){case"hours":{const xe=(Pe,ve)=>{const Ie=vS(Pe,de,i);le(r.setHours(q,Ie),ve,"hours")},Re=r.getHours(q);let he;return i?Re>12?he=[12,23]:he=[0,11]:he=[0,23],{onChange:xe,viewValue:Re,children:mQe({value:W,utils:r,ampm:i,getClockNumberText:Y.hoursClockNumberText,isDisabled:Pe=>H||ue(Pe,"hours"),selectedId:ie}),viewRange:he}}case"minutes":{const xe=r.getMinutes(q);return{viewValue:xe,onChange:(he,Pe)=>{le(r.setMinutes(q,he),Pe,"minutes")},children:KQ({utils:r,value:xe,getClockNumberText:Y.minutesClockNumberText,isDisabled:he=>H||ue(he,"minutes"),selectedId:ie}),viewRange:[0,59]}}case"seconds":{const xe=r.getSeconds(q);return{viewValue:xe,onChange:(he,Pe)=>{le(r.setSeconds(q,he),Pe,"seconds")},children:KQ({utils:r,value:xe,getClockNumberText:Y.secondsClockNumberText,isDisabled:he=>H||ue(he,"seconds"),selectedId:ie}),viewRange:[0,59]}}default:throw new Error("You must provide the type for ClockView")}},[ce,r,W,i,Y.hoursClockNumberText,Y.minutesClockNumberText,Y.secondsClockNumberText,de,le,q,ue,ie,H]),Ee=MQe(B);return k.jsxs(RQe,z({ref:n,className:fe(Ee.root,N),ownerState:se},V,{children:[k.jsx(uQe,z({autoFocus:s??!!A,ampmInClock:a&&R.includes("hours"),value:W,type:ce,ampm:i,minutesStep:C,isTimeDisabled:ue,meridiemMode:de,handleMeridiemChange:oe,selectedId:ie,disabled:H,readOnly:j},pe)),I&&k.jsx(DQe,{className:Ee.arrowSwitcher,slots:l,slotProps:c,onGoToPrevious:()=>ye(Se),isPreviousDisabled:!Se,previousLabel:Y.openPreviousView,onGoToNext:()=>ye(ne),isNextDisabled:!ne,nextLabel:Y.openNextView,ownerState:se})]}))});function $Qe(e){return qe("MuiDigitalClock",e)}const FF=Ke("MuiDigitalClock",["root","list","item"]);function ug(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const NQe=e=>{setTimeout(e,0)},xi=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?xi(t.shadowRoot):t:null},mO=e=>Array.from(e.children).indexOf(xi(document)),nV="@media (pointer: fine)";function LQe(...e){return e.reduce((t,n)=>(Array.isArray(n)?t.push(...n):n!=null&&t.push(n),t),[])}const FQe=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","views","skipDisabled","timezone"],jQe=e=>Me({root:["root"],list:["list"],item:["item"]},$Qe,e),BQe=ae(vP,{name:"MuiDigitalClock",slot:"Root"})({overflowY:"auto",width:"100%",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:Yle,variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),zQe=ae(uI,{name:"MuiDigitalClock",slot:"List"})({padding:0}),VQe=ae(Jt,{name:"MuiDigitalClock",slot:"Item",shouldForwardProp:e=>e!=="itemValue"&&e!=="formattedValue"})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Nt(e.palette.primary.main,e.palette.action.focusOpacity)}})),HQe=x.forwardRef(function(t,n){const r=xn(),o=x.useRef(null),i=en(n,o),a=x.useRef(null),s=Pn({props:t,name:"MuiDigitalClock"}),{ampm:l=r.is12HourCycleInCurrentLocale(),timeStep:c=30,autoFocus:u,slots:f,slotProps:h,value:m,defaultValue:g,referenceDate:y,disableIgnoringDatePartForTimeValidation:v=!1,maxTime:w,minTime:C,disableFuture:E,disablePast:I,minutesStep:O=1,shouldDisableTime:P,onChange:R,view:D,openTo:M,onViewChange:A,focusedView:_,onFocusedViewChange:N,className:B,classes:H,disabled:j,readOnly:L,views:V=["hours"],skipDisabled:W=!1,timezone:K}=s,G=$e(s,FQe),{value:q,handleValueChange:Y,timezone:Z}=qf({name:"DigitalClock",timezone:K,value:m,defaultValue:g,referenceDate:y,onChange:R,valueManager:mo}),ie=Ei(),se=Kh(Z),{ownerState:ce}=Ur(),ye=z({},ce,{hasDigitalClockAlreadyBeenRendered:!!o.current}),Se=jQe(H),ne=(f==null?void 0:f.digitalClockItem)??VQe,le=Dn({elementType:ne,externalSlotProps:h==null?void 0:h.digitalClockItem,ownerState:ye,className:Se.item}),de=tV({value:q,referenceDate:y,utils:r,props:s,timezone:Z}),oe=Je(Pe=>Y(Pe,"finish","hours")),{setValueAndGoToNextView:ue}=Mw({view:D,views:V,openTo:M,onViewChange:A,onChange:oe,focusedView:_,onFocusedViewChange:N}),pe=Je(Pe=>{ue(Pe,"finish")});x.useEffect(()=>{if(o.current===null)return;const Pe=o.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!Pe)return;const ve=Pe.offsetTop;(u||_)&&Pe.focus(),o.current.scrollTop=ve-4});const Ee=x.useCallback(Pe=>{const ve=Aw(v,r),Ie=()=>!(C&&ve(C,Pe)||w&&ve(Pe,w)||E&&ve(Pe,se)||I&&ve(se,Pe)),te=()=>r.getMinutes(Pe)%O!==0?!1:P?!P(Pe,"hours"):!0;return!Ie()||!te()},[v,r,C,w,E,se,I,O,P]),xe=x.useMemo(()=>{const Pe=[];let Ie=r.startOfDay(de);for(;r.isSameDay(de,Ie);)Pe.push(Ie),Ie=r.addMinutes(Ie,c);return Pe},[de,c,r]),Re=xe.findIndex(Pe=>r.isEqual(Pe,de)),he=Pe=>{switch(Pe.key){case"PageUp":{const ve=mO(a.current)-5,Ie=a.current.children,te=Math.max(0,ve),Te=Ie[te];Te&&Te.focus(),Pe.preventDefault();break}case"PageDown":{const ve=mO(a.current)+5,Ie=a.current.children,te=Math.min(Ie.length-1,ve),Te=Ie[te];Te&&Te.focus(),Pe.preventDefault();break}}};return k.jsx(BQe,z({ref:i,className:fe(Se.root,B),ownerState:ye},G,{children:k.jsx(zQe,{ref:a,role:"listbox","aria-label":ie.timePickerToolbarTitle,className:Se.list,onKeyDown:he,children:xe.map((Pe,ve)=>{const Ie=Ee(Pe);if(W&&Ie)return null;const te=r.isEqual(Pe,q),Te=r.format(Pe,l?"fullTime12h":"fullTime24h"),Ve=Re===ve||Re===-1&&ve===0?0:-1;return k.jsx(ne,z({onClick:()=>!L&&pe(Pe),selected:te,disabled:j||Ie,disableRipple:L,role:"option","aria-disabled":L,"aria-selected":te,tabIndex:Ve,itemValue:Pe,formattedValue:Te},le,{children:Te}),`${Pe.valueOf()}-${Te}`)})})}))});function UQe(e){return qe("MuiMultiSectionDigitalClock",e)}const jF=Ke("MuiMultiSectionDigitalClock",["root"]);function GQe(e){return qe("MuiMultiSectionDigitalClockSection",e)}const BF=Ke("MuiMultiSectionDigitalClockSection",["root","item"]),qQe=["autoFocus","onChange","className","classes","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],WQe=e=>Me({root:["root"],item:["item"]},GQe,e),KQe=ae(uI,{name:"MuiMultiSectionDigitalClockSection",slot:"Root"})(({theme:e})=>({maxHeight:Yle,width:56,padding:0,overflow:"hidden",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&::after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"},variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]})),YQe=ae(Jt,{name:"MuiMultiSectionDigitalClockSection",slot:"Item"})(({theme:e})=>({padding:8,margin:"2px 4px",width:z0,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Nt(e.palette.primary.main,e.palette.action.focusOpacity)}})),QQe=x.forwardRef(function(t,n){const r=x.useRef(null),o=en(n,r),i=x.useRef(null),a=Pn({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:s,onChange:l,className:c,classes:u,disabled:f,readOnly:h,items:m,active:g,slots:y,slotProps:v,skipDisabled:w}=a,C=$e(a,qQe),{ownerState:E}=Ur(),I=z({},E,{hasDigitalClockAlreadyBeenRendered:!!r.current}),O=WQe(u),P=(y==null?void 0:y.digitalClockSectionItem)??YQe;x.useEffect(()=>{if(r.current===null)return;const M=r.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(g&&s&&M&&M.focus(),!M||i.current===M)return;i.current=M;const A=M.offsetTop;r.current.scrollTop=A-4});const R=m.findIndex(M=>M.isFocused(M.value)),D=M=>{switch(M.key){case"PageUp":{const A=mO(r.current)-5,_=r.current.children,N=Math.max(0,A),B=_[N];B&&B.focus(),M.preventDefault();break}case"PageDown":{const A=mO(r.current)+5,_=r.current.children,N=Math.min(_.length-1,A),B=_[N];B&&B.focus(),M.preventDefault();break}}};return k.jsx(KQe,z({ref:o,className:fe(O.root,c),ownerState:I,autoFocusItem:s&&g,role:"listbox",onKeyDown:D},C,{children:m.map((M,A)=>{var j;const _=(j=M.isDisabled)==null?void 0:j.call(M,M.value),N=f||_;if(w&&N)return null;const B=M.isSelected(M.value),H=R===A||R===-1&&A===0?0:-1;return k.jsx(P,z({onClick:()=>!h&&l(M.value),selected:B,disabled:N,disableRipple:h,role:"option","aria-disabled":h||N||void 0,"aria-label":M.ariaLabel,"aria-selected":B,tabIndex:H,className:O.item},v==null?void 0:v.digitalClockSectionItem,{children:M.label}),M.label)})}))}),XQe=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:i,timeStep:a,valueOrReferenceDate:s})=>{const l=t?n.getHours(t):null,c=[],u=(m,g)=>{const y=g??l;return y===null?!1:r?m===12?y===12||y===0:y===m||y-12===m:y===m},f=m=>u(m,n.getHours(s)),h=r?11:23;for(let m=0;m<=h;m+=a){let g=n.format(n.setHours(e,m),r?"hours12h":"hours24h");const y=i(parseInt(g,10).toString());g=n.formatNumber(g),c.push({value:m,label:g,isSelected:u,isDisabled:o,isFocused:f,ariaLabel:y})}return c},eX=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:o,resolveAriaLabel:i,hasValue:a=!0})=>{const s=c=>e===null?!1:a&&e===c,l=c=>e===c;return[...Array.from({length:Math.ceil(60/r)},(c,u)=>{const f=r*u;return{value:f,label:t.formatNumber(o(f)),isDisabled:n,isSelected:s,isFocused:l,ariaLabel:i(f.toString())}})]},JQe=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","skipDisabled","timezone"],ZQe=e=>Me({root:["root"]},UQe,e),eXe=ae(vP,{name:"MuiMultiSectionDigitalClock",slot:"Root"})(({theme:e})=>({flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),tXe=x.forwardRef(function(t,n){const r=xn(),o=vr(),i=Pn({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:s,autoFocus:l,slots:c,slotProps:u,value:f,defaultValue:h,referenceDate:m,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:y,minTime:v,disableFuture:w,disablePast:C,minutesStep:E=1,shouldDisableTime:I,onChange:O,view:P,views:R=["hours","minutes"],openTo:D,onViewChange:M,focusedView:A,onFocusedViewChange:_,className:N,classes:B,disabled:H,readOnly:j,skipDisabled:L=!1,timezone:V}=i,W=$e(i,JQe),{value:K,handleValueChange:G,timezone:q}=qf({name:"MultiSectionDigitalClock",timezone:V,value:f,defaultValue:h,referenceDate:m,onChange:O,valueManager:mo}),Y=Ei(),Z=Kh(q),ie=x.useMemo(()=>z({hours:1,minutes:5,seconds:5},s),[s]),se=tV({value:K,referenceDate:m,utils:r,props:i,timezone:q}),ce=Je((ve,Ie,te)=>G(ve,Ie,te)),ye=x.useMemo(()=>!a||!R.includes("hours")||R.includes("meridiem")?R:[...R,"meridiem"],[a,R]),{view:Se,setValueAndGoToNextView:ne,focusedView:le}=Mw({view:P,views:ye,openTo:D,onViewChange:M,onChange:ce,focusedView:A,onFocusedViewChange:_}),de=Je(ve=>{ne(ve,"finish","meridiem")}),{meridiemMode:oe,handleMeridiemChange:ue}=gP(se,a,de,"finish"),pe=x.useCallback((ve,Ie)=>{const te=Aw(g,r),Te=Ie==="hours"||Ie==="minutes"&&ye.includes("seconds"),De=({start:We,end:rt})=>!(v&&te(v,rt)||y&&te(We,y)||w&&te(We,Z)||C&&te(Z,Te?rt:We)),Ve=(We,rt=1)=>{if(We%rt!==0)return!1;if(I)switch(Ie){case"hours":return!I(r.setHours(se,We),"hours");case"minutes":return!I(r.setMinutes(se,We),"minutes");case"seconds":return!I(r.setSeconds(se,We),"seconds");default:return!1}return!0};switch(Ie){case"hours":{const We=vS(ve,oe,a),rt=r.setHours(se,We);if(r.getHours(rt)!==We)return!0;const ut=r.setSeconds(r.setMinutes(rt,0),0),Be=r.setSeconds(r.setMinutes(rt,59),59);return!De({start:ut,end:Be})||!Ve(We)}case"minutes":{const We=r.setMinutes(se,ve),rt=r.setSeconds(We,0),ut=r.setSeconds(We,59);return!De({start:rt,end:ut})||!Ve(ve,E)}case"seconds":{const We=r.setSeconds(se,ve);return!De({start:We,end:We})||!Ve(ve)}default:throw new Error("not supported")}},[a,se,g,y,oe,v,E,I,r,w,C,Z,ye]),Ee=x.useCallback(ve=>{switch(ve){case"hours":return{onChange:Ie=>{const te=vS(Ie,oe,a);ne(r.setHours(se,te),"finish","hours")},items:XQe({now:Z,value:K,ampm:a,utils:r,isDisabled:Ie=>pe(Ie,"hours"),timeStep:ie.hours,resolveAriaLabel:Y.hoursClockNumberText,valueOrReferenceDate:se})};case"minutes":return{onChange:Ie=>{ne(r.setMinutes(se,Ie),"finish","minutes")},items:eX({value:r.getMinutes(se),utils:r,isDisabled:Ie=>pe(Ie,"minutes"),resolveLabel:Ie=>r.format(r.setMinutes(Z,Ie),"minutes"),timeStep:ie.minutes,hasValue:!!K,resolveAriaLabel:Y.minutesClockNumberText})};case"seconds":return{onChange:Ie=>{ne(r.setSeconds(se,Ie),"finish","seconds")},items:eX({value:r.getSeconds(se),utils:r,isDisabled:Ie=>pe(Ie,"seconds"),resolveLabel:Ie=>r.format(r.setSeconds(Z,Ie),"seconds"),timeStep:ie.seconds,hasValue:!!K,resolveAriaLabel:Y.secondsClockNumberText})};case"meridiem":{const Ie=_l(r,"am"),te=_l(r,"pm");return{onChange:ue,items:[{value:"am",label:Ie,isSelected:()=>!!K&&oe==="am",isFocused:()=>!!se&&oe==="am",ariaLabel:Ie},{value:"pm",label:te,isSelected:()=>!!K&&oe==="pm",isFocused:()=>!!se&&oe==="pm",ariaLabel:te}]}}default:throw new Error(`Unknown view: ${ve} found.`)}},[Z,K,a,r,ie.hours,ie.minutes,ie.seconds,Y.hoursClockNumberText,Y.minutesClockNumberText,Y.secondsClockNumberText,oe,ne,se,pe,ue]),xe=x.useMemo(()=>{if(!o)return ye;const ve=ye.filter(Ie=>Ie!=="meridiem");return ve.reverse(),ye.includes("meridiem")&&ve.push("meridiem"),ve},[o,ye]),Re=x.useMemo(()=>ye.reduce((ve,Ie)=>z({},ve,{[Ie]:Ee(Ie)}),{}),[ye,Ee]),{ownerState:he}=Ur(),Pe=ZQe(B);return k.jsx(eXe,z({ref:n,className:fe(Pe.root,N),ownerState:he,role:"group"},W,{children:xe.map(ve=>k.jsx(QQe,{items:Re[ve].items,onChange:Re[ve].onChange,active:Se===ve,autoFocus:l??le===ve,disabled:H,readOnly:j,slots:c,slotProps:u,skipDisabled:L,"aria-label":Y.selectViewText(ve)},ve))}))});function nXe(e){return qe("MuiPickersDay",e)}const xp=Ke("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function ice(e){const{disabled:t,selected:n,today:r,outsideCurrentMonth:o,day:i,disableMargin:a,disableHighlightToday:s,showDaysOutsideCurrentMonth:l}=e,c=xn(),{ownerState:u}=Ur();return x.useMemo(()=>z({},u,{day:i,isDaySelected:n??!1,isDayDisabled:t??!1,isDayCurrent:r??!1,isDayOutsideMonth:o??!1,isDayStartOfWeek:c.isSameDay(i,c.startOfWeek(i)),isDayEndOfWeek:c.isSameDay(i,c.endOfWeek(i)),disableMargin:a??!1,disableHighlightToday:s??!1,showDaysOutsideCurrentMonth:l??!1}),[c,u,i,n,t,r,o,a,s,l])}const rXe=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],oXe=(e,t)=>{const{isDaySelected:n,isDayDisabled:r,isDayCurrent:o,isDayOutsideMonth:i,disableMargin:a,disableHighlightToday:s,showDaysOutsideCurrentMonth:l}=t,c=i&&!l;return Me({root:["root",n&&!c&&"selected",r&&"disabled",!a&&"dayWithMargin",!s&&o&&"today",i&&l&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},nXe,e)},ace=({theme:e})=>z({},e.typography.caption,{width:bS,height:bS,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Nt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${xp.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${xp.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${xp.disabled}:not(.${xp.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${xp.disabled}&.${xp.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${yP}px`}},{props:{isDayOutsideMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,isDayCurrent:!0},style:{[`&:not(.${xp.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),sce=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.isDayCurrent&&t.today,!n.isDayOutsideMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.isDayOutsideMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},iXe=ae(la,{name:"MuiPickersDay",slot:"Root",overridesResolver:sce})(ace),aXe=ae("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:sce})(({theme:e})=>z({},ace({theme:e}),{opacity:0,pointerEvents:"none"})),p0=()=>{},sXe=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,classes:a,isAnimating:s,onClick:l,onDaySelect:c,onFocus:u=p0,onBlur:f=p0,onKeyDown:h=p0,onMouseDown:m=p0,onMouseEnter:g=p0,children:y,day:v,selected:w,disabled:C,today:E,outsideCurrentMonth:I,disableMargin:O,disableHighlightToday:P,showDaysOutsideCurrentMonth:R}=r,D=$e(r,rXe),M=ice({day:v,selected:w,disabled:C,today:E,outsideCurrentMonth:I,disableMargin:O,disableHighlightToday:P,showDaysOutsideCurrentMonth:R}),A=oXe(a,M),_=xn(),N=x.useRef(null),B=en(N,n);In(()=>{o&&!C&&!s&&!I&&N.current.focus()},[o,C,s,I]);const H=L=>{m(L),I&&L.preventDefault()},j=L=>{C||c(v),I&&L.currentTarget.focus(),l&&l(L)};return I&&!R?k.jsx(aXe,{className:fe(A.root,A.hiddenDaySpacingFiller,i),ownerState:M,role:D.role}):k.jsx(iXe,z({className:fe(A.root,i),ref:B,centerRipple:!0,disabled:C,tabIndex:w?0:-1,onKeyDown:L=>h(L,v),onFocus:L=>u(L,v),onBlur:L=>f(L,v),onMouseEnter:L=>g(L,v),onClick:j,onMouseDown:H},D,{ownerState:M,children:y||_.format(v,"dayOfMonth")}))}),lXe=x.memo(sXe),zF=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],VF=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],lce=["minDateTime","maxDateTime"],cXe=[...zF,...VF,...lce],Mv=e=>cXe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),uXe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","unstableStartFieldRef","unstableEndFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator","autoFocus","focused"],cce=(e,t)=>x.useMemo(()=>{const n=z({},e),r={},o=i=>{n.hasOwnProperty(i)&&(r[i]=n[i],delete n[i])};return uXe.forEach(o),t==="date"?zF.forEach(o):t==="time"?VF.forEach(o):t==="date-time"&&(zF.forEach(o),VF.forEach(o),lce.forEach(o)),{forwardedProps:n,internalProps:r}},[e,t]),dXe=({utils:e,format:t})=>{let n=10,r=t,o=e.expandFormat(t);for(;o!==r;)if(r=o,o=e.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the component.");return o},fXe=({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:o}=e.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},pXe=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},hXe=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:i,token:a,startSeparator:s})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=tce(e,a),c=oce(e,l.contentType,l.type,a),u=n?c:l.contentType==="digit",f=e.isValid(t);let h=f?e.formatByString(t,a):"",m=null;if(u)if(c)m=h===""?e.formatByString(i,a).length:h.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxLength' property on it's adapter`);m=l.maxLength,f&&(h=Xz(Jz(Oh(h,o),m),o))}return z({},l,{format:a,maxLength:m,value:h,placeholder:pXe(e,r,l,a),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:s,endSeparator:"",modified:!1})},mXe=e=>{var m;const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),i=[];let a="";const s=Object.keys(t.formatTokenMap).sort((g,y)=>y.length-g.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${s.join("|")})*$`),u=new RegExp(`^(${s.join("|")})`),f=g=>r.find(y=>y.start<=g&&y.end>=g);let h=0;for(;h0;){const C=u.exec(w)[1];w=w.slice(C.length),i.push(hXe(z({},e,{now:o,token:C,startSeparator:a}))),a=""}h+=v.length}else{const w=n[h];y&&(g==null?void 0:g.start)===h||(g==null?void 0:g.end)===h||(i.length===0?a+=w:(i[i.length-1].endSeparator+=w,i[i.length-1].isEndFormatSeparator=!0)),h+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},gXe=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const o=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`⁩${a}⁦`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return r.startSeparator=o(r.startSeparator),r.endSeparator=o(r.endSeparator),r}),tX=e=>{let t=dXe(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=fXe(z({},e,{expandedFormat:t})),r=mXe(z({},e,{expandedFormat:t,escapedParts:n}));return gXe(z({},e,{sections:r}))},rV=()=>x.useContext(Wz),yXe=()=>{const e=x.useContext(Hle);if(e==null)throw new Error(["MUI X: The `usePickerActionsContext` can only be called in fields that are used as a slot of a Picker component"].join(` +`));return e},eg=e=>e.saveQuery!=null,uce=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:r,setCharacterQuery:o,setTempAndroidValueStr:i,updateSectionValue:a}})=>{const s=xn(),l=({keyPressed:f,sectionIndex:h},m,g)=>{const y=f.toLowerCase(),v=n.sections[h];if(n.characterQuery!=null&&(!g||g(n.characterQuery.value))&&n.characterQuery.sectionIndex===h){const C=`${n.characterQuery.value}${y}`,E=m(C,v);if(!eg(E))return o({sectionIndex:h,value:C,sectionType:v.type}),E}const w=m(y,v);return eg(w)&&!w.saveQuery?(o(null),null):(o({sectionIndex:h,value:y,sectionType:v.type}),eg(w)?null:w)},c=f=>{const h=(y,v,w)=>{const C=v.filter(E=>E.toLowerCase().startsWith(w));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},m=(y,v,w,C)=>{const E=I=>nce(s,r,v.type,I);if(v.contentType==="letter")return h(v.format,E(v.format),y);if(w&&C!=null&&tce(s,w).contentType==="letter"){const I=E(w),O=h(w,I,y);return eg(O)?{saveQuery:!1}:z({},O,{sectionValue:C(O.sectionValue,I)})}return{saveQuery:!1}};return l(f,(y,v)=>{switch(v.type){case"month":{const w=C=>XQ(s,C,s.formats.month,v.format);return m(y,v,s.formats.month,w)}case"weekDay":{const w=(C,E)=>E.indexOf(C).toString();return m(y,v,s.formats.weekday,w)}case"meridiem":return m(y,v);default:return{saveQuery:!1}}})},u=f=>{const h=(g,y)=>{const v=Oh(g,e),w=Number(v),C=t[y.type]({currentDate:null,format:y.format,contentType:y.contentType});if(w>C.maximum)return{saveQuery:!1};if(wC.maximum||v.length===C.maximum.toString().length;return{sectionValue:rce(s,w,C,e,y),shouldGoToNextSection:E}};return l(f,(g,y)=>{if(y.contentType==="digit"||y.contentType==="digit-with-letter")return h(g,y);if(y.type==="month"){oce(s,"digit","month","MM");const v=h(g,{type:y.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(eg(v))return v;const w=XQ(s,v.sectionValue,"MM",y.format);return z({},v,{sectionValue:w})}if(y.type==="weekDay"){const v=h(g,y);if(eg(v))return v;const w=bP(s,y.format)[Number(v.sectionValue)-1];return z({},v,{sectionValue:w})}return{saveQuery:!1}},g=>QQ(g,e))};return Je(f=>{const h=n.sections[f.sectionIndex],g=QQ(f.keyPressed,e)?u(z({},f,{keyPressed:Xz(f.keyPressed,e)})):c(f);if(g==null){i(null);return}a({section:h,newSectionValue:g.sectionValue,shouldGoToNextSection:g.shouldGoToNextSection})})},Rv=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:i,shouldDisableYear:a,disablePast:s,disableFuture:l,minDate:c,maxDate:u}=e,f=r.utils.date(void 0,n);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(t,f)):return"disableFuture";case!!(s&&r.utils.isBeforeDay(t,f)):return"disablePast";case!!(c&&r.utils.isBeforeDay(t,c)):return"minDate";case!!(u&&r.utils.isAfterDay(t,u)):return"maxDate";default:return null}};Rv.valueManager=mo;const Rw=({adapter:e,value:t,timezone:n,props:r})=>{if(t===null)return null;const{minTime:o,maxTime:i,minutesStep:a,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:c,disableFuture:u}=r,f=e.utils.date(void 0,n),h=Aw(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(o&&h(o,t)):return"minTime";case!!(i&&h(t,i)):return"maxTime";case!!(u&&e.utils.isAfter(t,f)):return"disableFuture";case!!(c&&e.utils.isBefore(t,f)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}};Rw.valueManager=mo;const xP=({adapter:e,value:t,timezone:n,props:r})=>{const o=Rv({adapter:e,value:t,timezone:n,props:r});return o!==null?o:Rw({adapter:e,value:t,timezone:n,props:r})};xP.valueManager=mo;function dce(e){const{props:t,validator:n,value:r,timezone:o,onError:i}=e,a=Wh(),s=x.useRef(n.valueManager.defaultErrorState),l=n({adapter:a,value:r,timezone:o,props:t}),c=n.valueManager.hasError(l);x.useEffect(()=>{i&&!n.valueManager.isSameError(l,s.current)&&i(l,r),s.current=l},[n,i,l,r]);const u=Je(f=>n({adapter:a,value:f,timezone:o,props:t}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}const vXe=5e3,fce=e=>{var Re;const t=xn(),n=Ei(),r=Wh(),o=vr(),{manager:{validator:i,valueType:a,internal_valueManager:s,internal_fieldValueManager:l},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:u,defaultValue:f,referenceDate:h,onChange:m,format:g,formatDensity:y="dense",selectedSections:v,onSelectedSectionsChange:w,shouldRespectLeadingZeros:C=!1,timezone:E,enableAccessibleFieldDOMStructure:I=!0},forwardedProps:{error:O}}=e,{value:P,handleValueChange:R,timezone:D}=qf({name:"a field component",timezone:E,value:u,defaultValue:f,referenceDate:h,onChange:m,valueManager:s}),M=x.useRef(P);x.useEffect(()=>{M.current=P},[P]);const{hasValidationError:A}=dce({props:c,validator:i,timezone:D,value:P,onError:c.onError}),_=x.useMemo(()=>O!==void 0?O:A,[A,O]),N=x.useMemo(()=>bQe(t),[t]),B=x.useMemo(()=>EQe(t,N,D),[t,N,D]),H=x.useCallback(he=>l.getSectionsFromValue(he,Pe=>tX({utils:t,localeText:n,localizedDigits:N,format:g,date:Pe,formatDensity:y,shouldRespectLeadingZeros:C,enableAccessibleFieldDOMStructure:I,isRtl:o})),[l,g,n,N,o,C,t,y,I]),[j,L]=x.useState(()=>{const he=H(P),Pe={sections:he,lastExternalValue:P,lastSectionsDependencies:{format:g,isRtl:o,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},ve=gQe(he),Ie=s.getInitialReferenceValue({referenceDate:h,value:P,utils:t,props:c,granularity:ve,timezone:D});return z({},Pe,{referenceValue:Ie})}),[V,W]=ia({controlled:v,default:null,name:"useField",state:"selectedSections"}),K=he=>{W(he),w==null||w(he)},G=x.useMemo(()=>LF(V,j.sections),[V,j.sections]),q=G==="all"?0:G,Y=x.useMemo(()=>IQe(j.sections,o&&!I),[j.sections,o,I]),Z=x.useMemo(()=>j.sections.every(he=>he.value===""),[j.sections]),ie=he=>{const Pe={validationError:i({adapter:r,value:he,timezone:D,props:c})};R(he,Pe)},se=(he,Pe)=>{const ve=[...j.sections];return ve[he]=z({},ve[he],{value:Pe,modified:!0}),ve},ce=x.useRef(null),ye=ko(),Se=he=>{q!=null&&(ce.current={sectionIndex:q,value:he},ye.start(0,()=>{ce.current=null}))},ne=()=>{s.areValuesEqual(t,P,s.emptyValue)?L(he=>z({},he,{sections:he.sections.map(Pe=>z({},Pe,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(L(he=>z({},he,{characterQuery:null})),ie(s.emptyValue))},le=()=>{if(q==null)return;const he=j.sections[q];he.value!==""&&(Se(""),l.getDateFromSection(P,he)===null?L(Pe=>z({},Pe,{sections:se(q,""),tempValueStrAndroid:null,characterQuery:null})):(L(Pe=>z({},Pe,{characterQuery:null})),ie(l.updateDateInValue(P,he,null))))},de=he=>{const Pe=(Ie,te)=>{const Te=t.parse(Ie,g);if(!t.isValid(Te))return null;const De=tX({utils:t,localeText:n,localizedDigits:N,format:g,date:Te,formatDensity:y,shouldRespectLeadingZeros:C,enableAccessibleFieldDOMStructure:I,isRtl:o});return ZQ(t,Te,De,te,!1)},ve=l.parseValueStr(he,j.referenceValue,Pe);ie(ve)},oe=ko(),ue=({section:he,newSectionValue:Pe,shouldGoToNextSection:ve})=>{ye.clear(),oe.clear();const Ie=l.getDateFromSection(P,he);ve&&q{M.current===P&&L(We=>z({},We,{sections:l.clearDateSections(j.sections,he),tempValueStrAndroid:null}))}),ie(l.updateDateInValue(P,he,Ve))}return Te.every(Ve=>Ve.value!=="")?(Se(Pe),ie(l.updateDateInValue(P,he,De))):Ie!=null?(Se(Pe),ie(l.updateDateInValue(P,he,null))):L(Ve=>z({},Ve,{sections:te,tempValueStrAndroid:null}))},pe=he=>L(Pe=>z({},Pe,{tempValueStrAndroid:he})),Ee=Je(he=>{L(Pe=>z({},Pe,{characterQuery:he}))});if(P!==j.lastExternalValue){let he;ce.current!=null&&!t.isValid(l.getDateFromSection(P,j.sections[ce.current.sectionIndex]))?he=se(ce.current.sectionIndex,ce.current.value):he=H(P),L(Pe=>z({},Pe,{lastExternalValue:P,sections:he,sectionsDependencies:{format:g,isRtl:o,locale:t.locale},referenceValue:l.updateReferenceValue(t,P,Pe.referenceValue),tempValueStrAndroid:null}))}if(o!==j.lastSectionsDependencies.isRtl||g!==j.lastSectionsDependencies.format||t.locale!==j.lastSectionsDependencies.locale){const he=H(P);L(Pe=>z({},Pe,{lastSectionsDependencies:{format:g,isRtl:o,locale:t.locale},sections:he,tempValueStrAndroid:null,characterQuery:null}))}j.characterQuery!=null&&!_&&q==null&&Ee(null),j.characterQuery!=null&&((Re=j.sections[j.characterQuery.sectionIndex])==null?void 0:Re.type)!==j.characterQuery.sectionType&&Ee(null),x.useEffect(()=>{ce.current!=null&&(ce.current=null)});const xe=ko();return x.useEffect(()=>(j.characterQuery!=null&&xe.start(vXe,()=>Ee(null)),()=>{}),[j.characterQuery,Ee,xe]),x.useEffect(()=>{j.tempValueStrAndroid!=null&&q!=null&&le()},[j.sections]),{activeSectionIndex:q,areAllSectionsEmpty:Z,error:_,localizedDigits:N,parsedSelectedSections:G,sectionOrder:Y,sectionsValueBoundaries:B,state:j,timezone:D,value:P,clearValue:ne,clearActiveSection:le,setCharacterQuery:Ee,setSelectedSections:K,setTempAndroidValueStr:pe,updateSectionValue:ue,updateValueFromValueStr:de,getSectionsFromValue:H}};function pce(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:r}=e,o=rV(),i=Vle(),a=en(n.unstableFieldRef,r?null:i==null?void 0:i.fieldRef),s=o==null?void 0:o.setValue,l=x.useCallback((u,f)=>s==null?void 0:s(u,{validationError:f.validationError,shouldClose:!1}),[s]),c=x.useMemo(()=>i!=null&&o!=null?z({value:o.value,onChange:l,timezone:o.timezone,disabled:o.disabled,readOnly:o.readOnly,autoFocus:o.autoFocus&&!o.open,focused:o.open?!0:void 0,format:o.fieldFormat,formatDensity:i.formatDensity,enableAccessibleFieldDOMStructure:i.enableAccessibleFieldDOMStructure,selectedSections:i.selectedSections,onSelectedSectionsChange:i.onSelectedSectionsChange,unstableFieldRef:a},n):n,[o,i,n,l,a]);return t(c)}function oV(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:r,state:o}}=e;if(!n.isReady())return;const i=document.getSelection();if(!i)return;if(r==null){i.rangeCount>0&&n.getRoot().contains(i.getRangeAt(0).startContainer)&&i.removeAllRanges(),t&&n.getRoot().blur();return}if(!n.getRoot().contains(xi(document)))return;const a=new window.Range;let s;r==="all"?s=n.getRoot():o.sections[r].type==="empty"?s=n.getSectionContainer(r):s=n.getSectionContent(r),a.selectNodeContents(s),s.focus(),i.removeAllRanges(),i.addRange(a)}function hce(e){const t=xn(),{manager:{internal_fieldValueManager:n},internalPropsWithDefaults:{minutesStep:r,disabled:o,readOnly:i},stateResponse:{state:a,value:s,activeSectionIndex:l,parsedSelectedSections:c,sectionsValueBoundaries:u,localizedDigits:f,timezone:h,sectionOrder:m,clearValue:g,clearActiveSection:y,setSelectedSections:v,updateSectionValue:w}}=e;return Je(C=>{if(!o)switch(!0){case((C.ctrlKey||C.metaKey)&&String.fromCharCode(C.keyCode)==="A"&&!C.shiftKey&&!C.altKey):{C.preventDefault(),v("all");break}case C.key==="ArrowRight":{if(C.preventDefault(),c==null)v(m.startIndex);else if(c==="all")v(m.endIndex);else{const E=m.neighbors[c].rightIndex;E!==null&&v(E)}break}case C.key==="ArrowLeft":{if(C.preventDefault(),c==null)v(m.endIndex);else if(c==="all")v(m.startIndex);else{const E=m.neighbors[c].leftIndex;E!==null&&v(E)}break}case C.key==="Delete":{if(C.preventDefault(),i)break;c==null||c==="all"?g():y();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(C.key):{if(C.preventDefault(),i||l==null)break;c==="all"&&v(l);const E=a.sections[l],I=xXe(t,h,E,C.key,u,f,n.getDateFromSection(s,E),{minutesStep:r});w({section:E,newSectionValue:I,shouldGoToNextSection:!1});break}}})}function bXe(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function xXe(e,t,n,r,o,i,a,s){const l=bXe(r),c=r==="Home",u=r==="End",f=n.value===""||c||u,h=()=>{const g=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),y=C=>rce(e,C,g,i,n),v=n.type==="minutes"&&(s!=null&&s.minutesStep)?s.minutesStep:1;let w;if(f){if(n.type==="year"&&!u&&!c)return e.formatByString(e.date(void 0,t),n.format);l>0||c?w=g.minimum:w=g.maximum}else w=parseInt(Oh(n.value,i),10)+l*v;return w%v!==0&&((l<0||c)&&(w+=v-(v+w)%v),(l>0||u)&&(w-=w%v)),w>g.maximum?y(g.minimum+(w-g.maximum-1)%(g.maximum-g.minimum+1)):w{const g=nce(e,t,n.type,n.format);if(g.length===0)return n.value;if(f)return l>0||c?g[0]:g[g.length-1];const w=((g.indexOf(n.value)+l)%g.length+g.length)%g.length;return g[w]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?h():m()}function SXe(e){const{manager:t,focused:n,setFocused:r,domGetters:o,stateResponse:i,applyCharacterEditing:a,internalPropsWithDefaults:s,stateResponse:{parsedSelectedSections:l,sectionOrder:c,state:u,clearValue:f,setCharacterQuery:h,setSelectedSections:m,updateValueFromValueStr:g},internalPropsWithDefaults:{disabled:y=!1,readOnly:v=!1}}=e,w=hce({manager:t,internalPropsWithDefaults:s,stateResponse:i}),C=ko(),E=Je(D=>{y||!o.isReady()||(r(!0),l==="all"?C.start(0,()=>{const M=document.getSelection().getRangeAt(0).startOffset;if(M===0){m(c.startIndex);return}let A=0,_=0;for(;_{if(!o.isReady()||l!=="all")return;const A=D.target.textContent??"";o.getRoot().innerHTML=u.sections.map(_=>`${_.startSeparator}${_.value||_.placeholder}${_.endSeparator}`).join(""),oV({focused:n,domGetters:o,stateResponse:i}),A.length===0||A.charCodeAt(0)===10?(f(),m("all")):A.length>1?g(A):(l==="all"&&m(0),a({keyPressed:A,sectionIndex:0}))}),O=Je(D=>{if(v||l!=="all"){D.preventDefault();return}const M=D.clipboardData.getData("text");D.preventDefault(),h(null),g(M)}),P=Je(()=>{if(n||y||!o.isReady())return;const D=xi(document);r(!0),o.getSectionIndexFromDOMElement(D)!=null||m(c.startIndex)}),R=Je(()=>{setTimeout(()=>{if(!o.isReady())return;const D=xi(document);!o.getRoot().contains(D)&&(r(!1),m(null))})});return{onKeyDown:w,onBlur:R,onFocus:P,onClick:E,onPaste:O,onInput:I,contentEditable:l==="all",tabIndex:l===0?-1:0}}function wXe(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:r,updateValueFromValueStr:o}}=e,i=Je(s=>{o(s.target.value)});return{value:x.useMemo(()=>n?"":t.getV7HiddenInputValueFromSections(r.sections),[n,r.sections,t]),onChange:i}}function CXe(e){const{stateResponse:{setSelectedSections:t},internalPropsWithDefaults:{disabled:n=!1}}=e,r=Je(o=>i=>{n||i.isDefaultPrevented()||t(o)});return x.useCallback(o=>({"data-sectionindex":o,onClick:r(o)}),[r])}function EXe(e){const t=xn(),n=Ei(),r=bn(),{focused:o,domGetters:i,stateResponse:a,applyCharacterEditing:s,manager:{internal_fieldValueManager:l},stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:u,state:f,value:h,clearActiveSection:m,setCharacterQuery:g,setSelectedSections:y,updateSectionValue:v,updateValueFromValueStr:w},internalPropsWithDefaults:{disabled:C=!1,readOnly:E=!1}}=e,I=c==="all",O=!I&&!C&&!E,P=Je(N=>{if(!i.isReady())return;const B=f.sections[N];i.getSectionContent(N).innerHTML=B.value||B.placeholder,oV({focused:o,domGetters:i,stateResponse:a})}),R=Je(N=>{if(!i.isReady())return;const B=N.target,H=B.textContent??"",j=i.getSectionIndexFromDOMElement(B),L=f.sections[j];if(E){P(j);return}if(H.length===0){if(L.value===""){P(j);return}const V=N.nativeEvent.inputType;if(V==="insertParagraph"||V==="insertLineBreak"){P(j);return}P(j),m();return}s({keyPressed:H,sectionIndex:j}),P(j)}),D=Je(N=>{N.preventDefault()}),M=Je(N=>{if(N.preventDefault(),E||C||typeof c!="number")return;const B=f.sections[c],H=N.clipboardData.getData("text"),j=/^[a-zA-Z]+$/.test(H),L=/^[0-9]+$/.test(H),V=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(H);B.contentType==="letter"&&j||B.contentType==="digit"&&L||B.contentType==="digit-with-letter"&&V?(g(null),v({section:B,newSectionValue:H,shouldGoToNextSection:!0})):!j&&!L&&(g(null),w(H))}),A=Je(N=>{N.preventDefault(),N.dataTransfer.dropEffect="none"}),_=Je(N=>()=>{C||y(N)});return x.useCallback((N,B)=>{const H=u[N.type]({currentDate:l.getDateFromSection(h,N),contentType:N.contentType,format:N.format});return{onInput:R,onPaste:M,onMouseUp:D,onDragOver:A,onFocus:_(B),"aria-labelledby":`${r}-${N.type}`,"aria-readonly":E,"aria-valuenow":OXe(N,t),"aria-valuemin":H.minimum,"aria-valuemax":H.maximum,"aria-valuetext":N.value?TXe(N,t):n.empty,"aria-label":n[N.type],"aria-disabled":C,tabIndex:I||B>0?-1:0,contentEditable:!I&&!C&&!E,role:"spinbutton",id:`${r}-${N.type}`,"data-range-position":N.dateName||void 0,spellCheck:O?!1:void 0,autoCapitalize:O?"off":void 0,autoCorrect:O?"off":void 0,children:N.value||N.placeholder,inputMode:N.contentType==="letter"?"text":"numeric"}},[u,r,I,C,E,O,n,t,R,M,D,A,_,l,h])}function TXe(e,t){if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}}function OXe(e,t){if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}}const IXe=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:r,manager:{valueType:o,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:a,forwardedProps:s}=cce(t,o),l=pce({manager:n,internalProps:a,skipContextFieldRefAssignment:r}),{sectionListRef:c,onBlur:u,onClick:f,onFocus:h,onInput:m,onPaste:g,onKeyDown:y,onClear:v,clearable:w}=s,{disabled:C=!1,readOnly:E=!1,autoFocus:I=!1,focused:O,unstableFieldRef:P}=l,R=x.useRef(null),D=en(c,R),M=x.useMemo(()=>({isReady:()=>R.current!=null,getRoot:()=>R.current.getRoot(),getSectionContainer:xe=>R.current.getSectionContainer(xe),getSectionContent:xe=>R.current.getSectionContent(xe),getSectionIndexFromDOMElement:xe=>R.current.getSectionIndexFromDOMElement(xe)}),[R]),A=fce({manager:n,internalPropsWithDefaults:l,forwardedProps:s}),{areAllSectionsEmpty:_,error:N,parsedSelectedSections:B,sectionOrder:H,state:j,value:L,clearValue:V,setSelectedSections:W}=A,K=uce({stateResponse:A}),G=i(L),[q,Y]=x.useState(!1);function Z(xe=0){if(C||!R.current||nX(R)!=null)return;const Re=LF(xe,j.sections);Y(!0),R.current.getSectionContent(Re).focus()}const ie=SXe({manager:n,internalPropsWithDefaults:l,stateResponse:A,applyCharacterEditing:K,focused:q,setFocused:Y,domGetters:M}),se=wXe({manager:n,stateResponse:A}),ce=CXe({stateResponse:A,internalPropsWithDefaults:l}),ye=EXe({manager:n,stateResponse:A,applyCharacterEditing:K,internalPropsWithDefaults:l,domGetters:M,focused:q}),Se=Je(xe=>{y==null||y(xe),ie.onKeyDown(xe)}),ne=Je(xe=>{u==null||u(xe),ie.onBlur(xe)}),le=Je(xe=>{h==null||h(xe),ie.onFocus(xe)}),de=Je(xe=>{xe.isDefaultPrevented()||(f==null||f(xe),ie.onClick(xe))}),oe=Je(xe=>{g==null||g(xe),ie.onPaste(xe)}),ue=Je(xe=>{m==null||m(xe),ie.onInput(xe)}),pe=Je((xe,...Re)=>{xe.preventDefault(),v==null||v(xe,...Re),V(),rX(R)?W(H.startIndex):Z(0)}),Ee=x.useMemo(()=>j.sections.map((xe,Re)=>{const he=ye(xe,Re);return{container:ce(Re),content:ye(xe,Re),before:{children:xe.startSeparator},after:{children:xe.endSeparator,"data-range-position":xe.isEndFormatSeparator?he["data-range-position"]:void 0}}}),[j.sections,ce,ye]);return x.useEffect(()=>{if(R.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `` element instead of a `PickersSectionList`.","","If you want to keep using an `` HTML element for the editing, please add the `enableAccessibleFieldDOMStructure={false}` prop to your Picker or Field component:","","","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(` +`));I&&!C&&R.current&&R.current.getSectionContent(H.startIndex).focus()},[]),In(()=>{if(!(!q||!R.current)){if(B==="all")R.current.getRoot().focus();else if(typeof B=="number"){const xe=R.current.getSectionContent(B);xe&&xe.focus()}}},[B,q]),In(()=>{oV({focused:q,domGetters:M,stateResponse:A})}),x.useImperativeHandle(P,()=>({getSections:()=>j.sections,getActiveSectionIndex:()=>nX(R),setSelectedSections:xe=>{if(C||!R.current)return;const Re=LF(xe,j.sections);Y((Re==="all"?0:Re)!==null),W(xe)},focusField:Z,isFieldFocused:()=>rX(R)})),z({},s,ie,{onBlur:ne,onClick:de,onFocus:le,onInput:ue,onPaste:oe,onKeyDown:Se,onClear:pe},se,{error:N,clearable:!!(w&&!_&&!E&&!C),focused:O??q,sectionListRef:D,enableAccessibleFieldDOMStructure:!0,elements:Ee,areAllSectionsEmpty:_,disabled:C,readOnly:E,autoFocus:I,openPickerAriaLabel:G})};function nX(e){const t=xi(document);return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function rX(e){const t=xi(document);return!!e.current&&e.current.getRoot().contains(t)}const wg=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),PXe=(e,t,n)=>{let r=0,o=n?1:0;const i=[];for(let a=0;a{const t=vr(),n=ko(),r=ko(),{props:o,manager:i,skipContextFieldRefAssignment:a,manager:{valueType:s,internal_valueManager:l,internal_fieldValueManager:c,internal_useOpenPickerButtonAriaLabel:u}}=e,{internalProps:f,forwardedProps:h}=cce(o,s),m=pce({manager:i,internalProps:f,skipContextFieldRefAssignment:a}),{onFocus:g,onClick:y,onPaste:v,onBlur:w,onKeyDown:C,onClear:E,clearable:I,inputRef:O,placeholder:P}=h,{readOnly:R=!1,disabled:D=!1,autoFocus:M=!1,focused:A,unstableFieldRef:_}=m,N=x.useRef(null),B=en(O,N),H=fce({manager:i,internalPropsWithDefaults:m,forwardedProps:h}),{activeSectionIndex:j,areAllSectionsEmpty:L,error:V,localizedDigits:W,parsedSelectedSections:K,sectionOrder:G,state:q,value:Y,clearValue:Z,clearActiveSection:ie,setCharacterQuery:se,setSelectedSections:ce,setTempAndroidValueStr:ye,updateSectionValue:Se,updateValueFromValueStr:ne,getSectionsFromValue:le}=H,de=uce({stateResponse:H}),oe=u(Y),ue=x.useMemo(()=>PXe(q.sections,W,t),[q.sections,W,t]);function pe(){const Be=N.current.selectionStart??0;let et;Be<=ue[0].startInInput||Be>=ue[ue.length-1].endInInput?et=1:et=ue.findIndex(It=>It.startInInput-It.startSeparator.length>Be);const Le=et===-1?ue.length-1:et-1;ce(Le)}function Ee(Be=0){var et;xi(document)!==N.current&&((et=N.current)==null||et.focus(),ce(Be))}const xe=Je(Be=>{g==null||g(Be);const et=N.current;n.start(0,()=>{!et||et!==N.current||j==null&&(et.value.length&&Number(et.selectionEnd)-Number(et.selectionStart)===et.value.length?ce("all"):pe())})}),Re=Je((Be,...et)=>{Be.isDefaultPrevented()||(y==null||y(Be,...et),pe())}),he=Je(Be=>{if(v==null||v(Be),Be.preventDefault(),R||D)return;const et=Be.clipboardData.getData("text");if(typeof K=="number"){const Le=q.sections[K],It=/^[a-zA-Z]+$/.test(et),Lt=/^[0-9]+$/.test(et),nt=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(et);if(Le.contentType==="letter"&&It||Le.contentType==="digit"&&Lt||Le.contentType==="digit-with-letter"&&nt){se(null),Se({section:Le,newSectionValue:et,shouldGoToNextSection:!0});return}if(It||Lt)return}se(null),ne(et)}),Pe=Je(Be=>{w==null||w(Be),ce(null)}),ve=Je(Be=>{if(R)return;const et=Be.target.value;if(et===""){Z();return}const Le=Be.nativeEvent.data,It=Le&&Le.length>1,Lt=It?Le:et,nt=wg(Lt);if(K==="all"&&ce(j),j==null||It){ne(It?Le:nt);return}let lt;if(K==="all"&&nt.length===1)lt=nt;else{const vt=wg(c.getV6InputValueFromSections(ue,W,t));let bt=-1,vn=-1;for(let Bn=0;Bnkn.end)return;const nr=nt.length-vt.length+kn.end-wg(kn.endSeparator||"").length;lt=nt.slice(kn.start+wg(kn.startSeparator||"").length,nr)}if(lt.length===0){OQe()&&ye(Lt),ie();return}de({keyPressed:lt,sectionIndex:j})}),Ie=Je((Be,...et)=>{Be.preventDefault(),E==null||E(Be,...et),Z(),oX(N)?ce(G.startIndex):Ee(0)}),te=hce({manager:i,internalPropsWithDefaults:m,stateResponse:H}),Te=Je(Be=>{C==null||C(Be),te(Be)}),De=x.useMemo(()=>P!==void 0?P:c.getV6InputValueFromSections(le(l.emptyValue),W,t),[P,c,le,l.emptyValue,W,t]),Ve=x.useMemo(()=>q.tempValueStrAndroid??c.getV6InputValueFromSections(q.sections,W,t),[q.sections,c,q.tempValueStrAndroid,W,t]);x.useEffect(()=>{N.current&&N.current===xi(document)&&ce("all")},[]),In(()=>{function Be(){if(!N.current)return;if(K==null){N.current.scrollLeft&&(N.current.scrollLeft=0);return}if(N.current!==xi(document))return;const et=N.current.scrollTop;if(K==="all")N.current.select();else{const Le=ue[K],It=Le.type==="empty"?Le.startInInput-Le.startSeparator.length:Le.startInInput,Lt=Le.type==="empty"?Le.endInInput+Le.endSeparator.length:Le.endInInput;(It!==N.current.selectionStart||Lt!==N.current.selectionEnd)&&N.current===xi(document)&&N.current.setSelectionRange(It,Lt),r.start(0,()=>{N.current&&N.current===xi(document)&&N.current.selectionStart===N.current.selectionEnd&&(N.current.selectionStart!==It||N.current.selectionEnd!==Lt)&&Be()})}N.current.scrollTop=et}Be()});const We=x.useMemo(()=>j==null||q.sections[j].contentType==="letter"?"text":"numeric",[j,q.sections]),ut=!(N.current&&N.current===xi(document))&&L;return x.useImperativeHandle(_,()=>({getSections:()=>q.sections,getActiveSectionIndex:()=>{const Be=N.current.selectionStart??0,et=N.current.selectionEnd??0;if(Be===0&&et===0)return null;const Le=Be<=ue[0].startInInput?1:ue.findIndex(It=>It.startInInput-It.startSeparator.length>Be);return Le===-1?ue.length-1:Le-1},setSelectedSections:Be=>ce(Be),focusField:Ee,isFieldFocused:()=>oX(N)})),z({},h,{error:V,clearable:!!(I&&!L&&!R&&!D),onBlur:Pe,onClick:Re,onFocus:xe,onPaste:he,onKeyDown:Te,onClear:Ie,inputRef:B,enableAccessibleFieldDOMStructure:!1,placeholder:De,inputMode:We,autoComplete:"off",value:ut?"":Ve,onChange:ve,focused:A,disabled:D,readOnly:R,autoFocus:M,openPickerAriaLabel:oe})};function oX(e){return e.current===xi(document)}const iV=e=>{const t=Vle();return(e.props.enableAccessibleFieldDOMStructure??(t==null?void 0:t.enableAccessibleFieldDOMStructure)??!0?IXe:AXe)(e)};function MXe(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return x.useMemo(()=>({valueType:"date",validator:Rv,internal_valueManager:mo,internal_fieldValueManager:eV,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:DXe,internal_useOpenPickerButtonAriaLabel:RXe}),[t])}function RXe(e){const t=xn(),n=Ei();return x.useMemo(()=>{const r=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(r)},[e,n,t])}function DXe(e){const t=xn(),n=Dw(e);return x.useMemo(()=>z({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}function Dw(e){const t=xn(),n=Fle();return x.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:hO(t,e.minDate,n.minDate),maxDate:hO(t,e.maxDate,n.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}function kXe(e={}){const{enableAccessibleFieldDOMStructure:t=!0,ampm:n}=e;return x.useMemo(()=>({valueType:"time",validator:Rw,internal_valueManager:mo,internal_fieldValueManager:eV,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:$Xe,internal_useOpenPickerButtonAriaLabel:_Xe(n)}),[n,t])}function _Xe(e){return function(n){const r=xn(),o=Ei();return x.useMemo(()=>{const i=e??r.is12HourCycleInCurrentLocale()?"fullTime12h":"fullTime24h",a=r.isValid(n)?r.format(n,i):null;return o.openTimePickerDialogue(a)},[n,o,r])}}function $Xe(e){const t=xn(),n=mce(e),r=x.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return x.useMemo(()=>z({},e,n,{format:e.format??(r?t.formats.fullTime12h:t.formats.fullTime24h)}),[e,n,r,t])}function mce(e){return x.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1}),[e.disablePast,e.disableFuture])}function NXe(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return x.useMemo(()=>({valueType:"date-time",validator:xP,internal_valueManager:mo,internal_fieldValueManager:eV,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:FXe,internal_useOpenPickerButtonAriaLabel:LXe}),[t])}function LXe(e){const t=xn(),n=Ei();return x.useMemo(()=>{const r=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(r)},[e,n,t])}function FXe(e){const t=xn(),n=gce(e),r=x.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return x.useMemo(()=>z({},e,n,{format:e.format??(r?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h)}),[e,n,r,t])}function gce(e){const t=xn(),n=Fle();return x.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,disableIgnoringDatePartForTimeValidation:!!e.minDateTime||!!e.maxDateTime||!!e.disableFuture||!!e.disablePast,minDate:hO(t,e.minDateTime??e.minDate,n.minDate),maxDate:hO(t,e.maxDateTime??e.maxDate,n.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime}),[e.minDateTime,e.maxDateTime,e.minTime,e.maxTime,e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}const jXe=e=>{const t=MXe(e);return iV({manager:t,props:e})};function aV(e){const{ownerState:t}=Ur(),n=vr();return x.useMemo(()=>z({},t,{isFieldDisabled:e.disabled??!1,isFieldReadOnly:e.readOnly??!1,isFieldRequired:e.required??!1,fieldDirection:n?"rtl":"ltr"}),[t,e.disabled,e.readOnly,e.required,n])}function BXe(e){return qe("MuiPickersTextField",e)}Ke("MuiPickersTextField",["root","focused","disabled","error","required"]);function zXe(e){return qe("MuiPickersInputBase",e)}const zg=Ke("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","activeBar"]);function VXe(e){return qe("MuiPickersSectionList",e)}const h0=Ke("MuiPickersSectionList",["root","section","sectionContent"]),HXe=["slots","slotProps","elements","sectionListRef","classes"],yce=ae("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),vce=ae("span",{name:"MuiPickersSectionList",slot:"Section"})({}),bce=ae("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),xce=ae("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"}),UXe=e=>Me({root:["root"],section:["section"],sectionContent:["sectionContent"]},VXe,e);function GXe(e){const{slots:t,slotProps:n,element:r,classes:o}=e,{ownerState:i}=Ur(),a=(t==null?void 0:t.section)??vce,s=Dn({elementType:a,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:r.container,className:o.section,ownerState:i}),l=(t==null?void 0:t.sectionContent)??xce,c=Dn({elementType:l,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:i}),u=(t==null?void 0:t.sectionSeparator)??bce,f=Dn({elementType:u,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.before,ownerState:z({},i,{separatorPosition:"before"})}),h=Dn({elementType:u,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.after,ownerState:z({},i,{separatorPosition:"after"})});return k.jsxs(a,z({},s,{children:[k.jsx(u,z({},f)),k.jsx(l,z({},c)),k.jsx(u,z({},h))]}))}const qXe=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:i,elements:a,sectionListRef:s,classes:l}=r,c=$e(r,HXe),u=UXe(l),{ownerState:f}=Ur(),h=x.useRef(null),m=en(n,h),g=w=>{if(!h.current)throw new Error(`MUI X: Cannot call sectionListRef.${w} before the mount of the component.`);return h.current};x.useImperativeHandle(s,()=>({getRoot(){return g("getRoot")},getSectionContainer(w){return g("getSectionContainer").querySelector(`.${h0.section}[data-sectionindex="${w}"]`)},getSectionContent(w){return g("getSectionContent").querySelector(`.${h0.section}[data-sectionindex="${w}"] .${h0.sectionContent}`)},getSectionIndexFromDOMElement(w){const C=g("getSectionIndexFromDOMElement");if(w==null||!C.contains(w))return null;let E=null;return w.classList.contains(h0.section)?E=w:w.classList.contains(h0.sectionContent)&&(E=w.parentElement),E==null?null:Number(E.dataset.sectionindex)}}));const y=(o==null?void 0:o.root)??yce,v=Dn({elementType:y,externalSlotProps:i==null?void 0:i.root,externalForwardedProps:c,additionalProps:{ref:m,suppressContentEditableWarning:!0},className:u.root,ownerState:f});return k.jsx(y,z({},v,{children:v.contentEditable?a.map(({content:w,before:C,after:E})=>`${C.children}${w.children}${E.children}`).join(""):k.jsx(x.Fragment,{children:a.map((w,C)=>k.jsx(GXe,{slots:o,slotProps:i,element:w,classes:u},C))})}))}),Sce=x.createContext(null),SP=()=>{const e=x.useContext(Sce);if(e==null)throw new Error(["MUI X: The `usePickerTextFieldOwnerState` can only be called in components that are used inside a PickerTextField component"].join(` +`));return e},WXe=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef","onFocus","onBlur","classes","ownerState"],KXe=e=>Math.round(e*1e5)/1e5,wP=ae("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>z({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${KXe(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),sV=ae(yce,{name:"MuiPickersInputBase",slot:"SectionsContainer"})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{fieldDirection:"rtl"},style:{textAlign:"right /*! @noflip */"}},{props:{inputSize:"small"},style:{paddingTop:1}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0},style:{color:"currentColor",opacity:0}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!1},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),YXe=ae(vce,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),QXe=ae(xce,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),XXe=ae(bce,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),JXe=ae("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(z({},Ybe)),ZXe=ae("div",{name:"MuiPickersInputBase",slot:"ActiveBar"})(({theme:e,ownerState:t})=>({display:"none",position:"absolute",height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create(["width","left"],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:"block"},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}})),eJe=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:r,isFieldReadOnly:o,hasFieldError:i,inputSize:a,isInputInFullWidth:s,inputColor:l,hasStartAdornment:c,hasEndAdornment:u}=t,f={root:["root",n&&!r&&"focused",r&&"disabled",o&&"readOnly",i&&"error",s&&"fullWidth",`color${Oe(l)}`,a==="small"&&"inputSizeSmall",c&&"adornedStart",u&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]};return Me(f,zXe,e)};function iX(e,t,n,r){var o;if(e.content.id){const i=(o=t.current)==null?void 0:o.querySelectorAll(`[data-sectionindex="${n}"] [data-range-position="${r}"]`);if(i)return Array.from(i).reduce((a,s)=>a+s.offsetWidth,0)}return 0}function tJe(e,t){var o,i,a,s,l;let n=0;if(((o=t.current)==null?void 0:o.getAttribute("data-active-range-position"))==="end")for(let c=e.length-1;c>=e.length/2;c-=1)n+=iX(e[c],t,c,"end");else for(let c=0;c{var de;(de=K.onFocus)==null||de.call(K,le),D==null||D(le)},Y=le=>{q(le)},Z=le=>{var de,oe;if(C==null||C(le),le.key==="Enter"&&!le.defaultMuiPrevented){if((de=H.current)!=null&&de.dataset.multiInput)return;const ue=(oe=H.current)==null?void 0:oe.closest("form"),pe=ue==null?void 0:ue.querySelector('[type="submit"]');if(!ue||!pe)return;le.preventDefault(),ue.requestSubmit(pe)}},ie=le=>{var de;(de=K.onBlur)==null||de.call(K,le),M==null||M(le)};x.useEffect(()=>{K&&K.setAdornedStart(!!u)},[K,u]),x.useEffect(()=>{K&&(i?K.onEmpty():K.onFilled())},[K,i]);const se=eJe(A,G),ce=(h==null?void 0:h.root)||wP,ye=Dn({elementType:ce,externalSlotProps:m==null?void 0:m.root,externalForwardedProps:N,additionalProps:{"aria-invalid":K.error,ref:V},className:se.root,ownerState:G}),Se=(h==null?void 0:h.input)||sV,ne=o.some(le=>le.content["data-range-position"]!==void 0);return x.useEffect(()=>{if(!ne||!G.isPickerOpen)return;const{activeBarWidth:le,sectionOffsets:de}=tJe(o,H);L.current=[de[0],de[1]],j.current&&(j.current.style.width=`${le}px`)},[o,ne,G.isPickerOpen]),k.jsxs(ce,z({},ye,{children:[u,k.jsx(qXe,{sectionListRef:R,elements:o,contentEditable:g,tabIndex:y,className:se.sectionsContainer,onFocus:q,onBlur:ie,onInput:v,onPaste:w,onKeyDown:Z,slots:{root:Se,section:YXe,sectionContent:QXe,sectionSeparator:XXe},slotProps:{root:z({},m==null?void 0:m.input,{ownerState:G}),sectionContent:{className:zg.sectionContent},sectionSeparator:({separatorPosition:le})=>({className:le==="before"?zg.sectionBefore:zg.sectionAfter})}}),c,f?f(z({},K)):null,k.jsx(JXe,z({name:E,className:se.input,value:a,onChange:s,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:I,required:K.required,disabled:K.disabled,onFocus:Y},O,{ref:W})),ne&&k.jsx(ZXe,{className:se.activeBar,ref:j,ownerState:{sectionOffsets:L.current}})]}))});function nJe(e){return qe("MuiPickersOutlinedInput",e)}const bl=z({},zg,Ke("MuiPickersOutlinedInput",["root","notchedOutline","input"])),rJe=["children","className","label","notched","shrink"],oJe=ae("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{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%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),aX=ae("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),iJe=ae("legend",{shouldForwardProp:e=>Ca(e)&&e!=="notched"})(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{inputHasLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{inputHasLabel:!0},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:{inputHasLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function aJe(e){const{className:t,label:n,notched:r}=e,o=$e(e,rJe),i=SP();return k.jsx(oJe,z({"aria-hidden":!0,className:t},o,{ownerState:i,children:k.jsx(iJe,{ownerState:i,notched:r,children:n?k.jsx(aX,{children:n}):k.jsx(aX,{className:"notranslate",children:"​"})})}))}const sJe=["label","autoFocus","ownerState","classes","notched"],lJe=ae(wP,{name:"MuiPickersOutlinedInput",slot:"Root"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${bl.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bl.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${bl.focused} .${bl.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${bl.disabled}`]:{[`& .${bl.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${bl.error} .${bl.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>{var r;return((r=(e.vars??e).palette[n])==null?void 0:r.main)??!1}).map(n=>({props:{inputColor:n},style:{[`&.${bl.focused}:not(.${bl.error}) .${bl.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),cJe=ae(sV,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),uJe=e=>{const n=Me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},nJe,e);return z({},e,n)},wce=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiPickersOutlinedInput"}),{label:o,classes:i,notched:a}=r,s=$e(r,sJe),l=sl(),c=uJe(i);return k.jsx(lV,z({slots:{root:lJe,input:cJe},renderSuffix:u=>k.jsx(aJe,{shrink:!!(a||u.adornedStart||u.focused||u.filled),notched:!!(a||u.adornedStart||u.focused||u.filled),className:c.notchedOutline,label:o!=null&&o!==""&&(l!=null&&l.required)?k.jsxs(x.Fragment,{children:[o," ","*"]}):o})},s,{label:o,classes:c,ref:n}))});wce.muiName="Input";function dJe(e){return qe("MuiPickersFilledInput",e)}const Sp=z({},zg,Ke("MuiPickersFilledInput",["root","underline","input"])),fJe=["label","autoFocus","disableUnderline","hiddenLabel","classes"],pJe=ae(wP,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>Ca(e)&&e!=="disableUnderline"})(({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)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Sp.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Sp.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>{var s;return{props:{inputColor:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[a])==null?void 0:s.main}`}}}}),{props:{disableUnderline:!1},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"},[`&.${Sp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Sp.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(.${Sp.disabled}, .${Sp.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Sp.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),hJe=ae(sV,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>Ca(e)&&e!=="hiddenLabel"})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:"small"},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:"small"},style:{paddingTop:8,paddingBottom:9}}]}),mJe=(e,t)=>{const{inputHasUnderline:n}=t,o=Me({root:["root",n&&"underline"],input:["input"]},dJe,e);return z({},e,o)},Cce=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:i=!1,hiddenLabel:a=!1,classes:s}=r,l=$e(r,fJe),c=SP(),u=z({},c,{inputHasUnderline:!i}),f=mJe(s,u);return k.jsx(lV,z({slots:{root:pJe,input:hJe},slotProps:{root:{disableUnderline:i},input:{hiddenLabel:a}}},l,{label:o,classes:f,ref:n,ownerState:u}))});Cce.muiName="Input";function gJe(e){return qe("MuiPickersFilledInput",e)}const m0=z({},zg,Ke("MuiPickersInput",["root","underline","input"])),yJe=["label","autoFocus","disableUnderline","ownerState","classes"],vJe=ae(wP,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>Ca(e)&&e!=="disableUnderline"})(({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})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(r=>(e.vars??e).palette[r].main).map(r=>({props:{inputColor:r},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",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"},[`&.${m0.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${m0.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(.${m0.disabled}, .${m0.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${m0.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),bJe=(e,t)=>{const{inputHasUnderline:n}=t,o=Me({root:["root",!n&&"underline"],input:["input"]},gJe,e);return z({},e,o)},Ece=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:i=!1,classes:a}=r,s=$e(r,yJe),l=SP(),c=z({},l,{inputHasUnderline:!i}),u=bJe(a,c);return k.jsx(lV,z({slots:{root:vJe},slotProps:{root:{disableUnderline:i}}},s,{label:o,classes:u,ref:n}))});Ece.muiName="Input";const xJe=["onFocus","onBlur","className","classes","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps","data-active-range-position"],SJe={standard:Ece,filled:Cce,outlined:wce},wJe=ae(Fh,{name:"MuiPickersTextField",slot:"Root"})({}),CJe=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:r,isFieldRequired:o}=t;return Me({root:["root",n&&!r&&"focused",r&&"disabled",o&&"required"]},BXe,e)},Tce=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiPickersTextField"}),{onFocus:o,onBlur:i,className:a,classes:s,color:l="primary",disabled:c=!1,error:u=!1,variant:f="outlined",required:h=!1,InputProps:m,inputProps:g,inputRef:y,sectionListRef:v,elements:w,areAllSectionsEmpty:C,onClick:E,onKeyDown:I,onKeyUp:O,onPaste:P,onInput:R,endAdornment:D,startAdornment:M,tabIndex:A,contentEditable:_,focused:N,value:B,onChange:H,fullWidth:j,id:L,name:V,helperText:W,FormHelperTextProps:K,label:G,InputLabelProps:q,"data-active-range-position":Y}=r,Z=$e(r,xJe),ie=x.useRef(null),se=en(n,ie),ce=bn(L),ye=W&&ce?`${ce}-helper-text`:void 0,Se=G&&ce?`${ce}-label`:void 0,ne=aV({disabled:r.disabled,required:r.required,readOnly:m==null?void 0:m.readOnly}),le=x.useMemo(()=>z({},ne,{isFieldValueEmpty:C,isFieldFocused:N??!1,hasFieldError:u??!1,inputSize:r.size??"medium",inputColor:l??"primary",isInputInFullWidth:j??!1,hasStartAdornment:!!(M??(m==null?void 0:m.startAdornment)),hasEndAdornment:!!(D??(m==null?void 0:m.endAdornment)),inputHasLabel:!!G}),[ne,C,N,u,r.size,l,j,M,D,m==null?void 0:m.startAdornment,m==null?void 0:m.endAdornment,G]),de=CJe(s,le),oe=SJe[f];return k.jsx(Sce.Provider,{value:le,children:k.jsxs(wJe,z({className:fe(de.root,a),ref:se,focused:N,disabled:c,variant:f,error:u,color:l,fullWidth:j,required:h,ownerState:le},Z,{children:[G!=null&&G!==""&&k.jsx(jh,z({htmlFor:ce,id:Se},q,{children:G})),k.jsx(oe,z({elements:w,areAllSectionsEmpty:C,onClick:E,onKeyDown:I,onKeyUp:O,onInput:R,onPaste:P,onFocus:o,onBlur:i,endAdornment:D,startAdornment:M,tabIndex:A,contentEditable:_,value:B,onChange:H,id:ce,fullWidth:j,inputProps:g,inputRef:y,sectionListRef:v,label:G,name:V,role:"group","aria-labelledby":Se,"aria-describedby":ye,"aria-live":ye?"polite":void 0,"data-active-range-position":Y},m)),W&&k.jsx(aw,z({id:ye},K,{children:W}))]}))})}),EJe=["enableAccessibleFieldDOMStructure"],TJe=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],OJe=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],IJe=["ownerState"],PJe=["ownerState"],AJe=["ownerState"],MJe=["ownerState"],RJe=["InputProps","inputProps"],DJe=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=$e(e,EJe);if(t){const{InputProps:v,readOnly:w,onClear:C,clearable:E,clearButtonPosition:I,openPickerButtonPosition:O,openPickerAriaLabel:P}=n,R=$e(n,TJe);return{clearable:E,onClear:C,clearButtonPosition:I,openPickerButtonPosition:O,openPickerAriaLabel:P,textFieldProps:z({},R,{InputProps:z({},v??{},{readOnly:w})})}}const{onPaste:r,onKeyDown:o,inputMode:i,readOnly:a,InputProps:s,inputProps:l,inputRef:c,onClear:u,clearable:f,clearButtonPosition:h,openPickerButtonPosition:m,openPickerAriaLabel:g}=n,y=$e(n,OJe);return{clearable:f,onClear:u,clearButtonPosition:h,openPickerButtonPosition:m,openPickerAriaLabel:g,textFieldProps:z({},y,{InputProps:z({},s??{},{readOnly:a}),inputProps:z({},l??{},{inputMode:i,onPaste:r,onKeyDown:o,ref:c})})}},cV=x.createContext({slots:{},slotProps:{},inputRef:void 0});function uV(e){var K,G;const{slots:t,slotProps:n,fieldResponse:r,defaultOpenPickerIcon:o}=e,i=Ei(),a=rV(),s=x.useContext(cV),{textFieldProps:l,onClear:c,clearable:u,openPickerAriaLabel:f,clearButtonPosition:h="end",openPickerButtonPosition:m="end"}=DJe(r),g=aV(l),y=Je(q=>{q.preventDefault(),a==null||a.setOpen(Y=>!Y)}),v=a?a.triggerStatus:"hidden",w=u?h:null,C=v!=="hidden"?m:null,E=(t==null?void 0:t.textField)??s.slots.textField??(r.enableAccessibleFieldDOMStructure===!1?dn:Tce),I=(t==null?void 0:t.inputAdornment)??s.slots.inputAdornment??So,O=Dn({elementType:I,externalSlotProps:EE(s.slotProps.inputAdornment,n==null?void 0:n.inputAdornment),additionalProps:{position:"start"},ownerState:z({},g,{position:"start"})}),P=$e(O,IJe),R=Dn({elementType:I,externalSlotProps:n==null?void 0:n.inputAdornment,additionalProps:{position:"end"},ownerState:z({},g,{position:"end"})}),D=$e(R,PJe),M=s.slots.openPickerButton??pn,A=Dn({elementType:M,externalSlotProps:s.slotProps.openPickerButton,additionalProps:{disabled:v==="disabled",onClick:y,"aria-label":f,edge:l.variant!=="standard"?C:!1},ownerState:g}),_=$e(A,AJe),N=s.slots.openPickerIcon??o,B=Dn({elementType:N,externalSlotProps:s.slotProps.openPickerIcon,ownerState:g}),H=(t==null?void 0:t.clearButton)??s.slots.clearButton??pn,j=Dn({elementType:H,externalSlotProps:EE(s.slotProps.clearButton,n==null?void 0:n.clearButton),className:"clearButton",additionalProps:{title:i.fieldClearLabel,tabIndex:-1,onClick:c,disabled:r.disabled||r.readOnly,edge:l.variant!=="standard"&&w!==C?w:!1},ownerState:g}),L=$e(j,MJe),V=(t==null?void 0:t.clearIcon)??s.slots.clearIcon??EYe,W=Dn({elementType:V,externalSlotProps:EE(s.slotProps.clearIcon,n==null?void 0:n.clearIcon),additionalProps:{fontSize:"small"},ownerState:g});return l.ref=en(l.ref,a==null?void 0:a.rootRef),l.InputProps||(l.InputProps={}),a&&(l.InputProps.ref=a.triggerRef),!((K=l.InputProps)!=null&&K.startAdornment)&&(w==="start"||C==="start")&&(l.InputProps.startAdornment=k.jsxs(I,z({},P,{children:[C==="start"&&k.jsx(M,z({},_,{children:k.jsx(N,z({},B))})),w==="start"&&k.jsx(H,z({},L,{children:k.jsx(V,z({},W))}))]}))),!((G=l.InputProps)!=null&&G.endAdornment)&&(w==="end"||C==="end")&&(l.InputProps.endAdornment=k.jsxs(I,z({},D,{children:[w==="end"&&k.jsx(H,z({},L,{children:k.jsx(V,z({},W))})),C==="end"&&k.jsx(M,z({},_,{children:k.jsx(N,z({},B))}))]}))),w!=null&&(l.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(l.sx)?l.sx:[l.sx]]),k.jsx(E,z({},l))}function EE(e,t){return e?t?n=>z({},Dc(t,n),Dc(e,n)):e:t}function dV(e){const{ref:t,externalForwardedProps:n,slotProps:r}=e,o=x.useContext(cV),i=rV(),a=aV(n),{InputProps:s,inputProps:l}=n,c=$e(n,RJe),u=Dn({elementType:Tce,externalSlotProps:EE(o.slotProps.textField,r==null?void 0:r.textField),externalForwardedProps:c,additionalProps:{ref:t,sx:i==null?void 0:i.rootSx,label:i==null?void 0:i.label,name:i==null?void 0:i.name,className:i==null?void 0:i.rootClassName,inputRef:o.inputRef},ownerState:a});return u.inputProps=z({},l,u.inputProps),u.InputProps=z({},s,u.InputProps),u}function Oce(e){const{slots:t={},slotProps:n={},inputRef:r,children:o}=e,i=x.useMemo(()=>({inputRef:r,slots:{openPickerButton:t.openPickerButton,openPickerIcon:t.openPickerIcon,textField:t.textField,inputAdornment:t.inputAdornment,clearIcon:t.clearIcon,clearButton:t.clearButton},slotProps:{openPickerButton:n.openPickerButton,openPickerIcon:n.openPickerIcon,textField:n.textField,inputAdornment:n.inputAdornment,clearIcon:n.clearIcon,clearButton:n.clearButton}}),[r,t.openPickerButton,t.openPickerIcon,t.textField,t.inputAdornment,t.clearIcon,t.clearButton,n.openPickerButton,n.openPickerIcon,n.textField,n.inputAdornment,n.clearIcon,n.clearButton]);return k.jsx(cV.Provider,{value:i,children:o})}const kJe=["slots","slotProps"],Ice=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiDateField"}),{slots:o,slotProps:i}=r,a=$e(r,kJe),s=dV({slotProps:i,ref:n,externalForwardedProps:a}),l=jXe(s);return k.jsx(uV,{slots:o,slotProps:i,fieldResponse:l,defaultOpenPickerIcon:jle})}),_Je=e=>{const t=kXe(e);return iV({manager:t,props:e})},$Je=["slots","slotProps","InputProps","inputProps"],Pce=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiTimeField"}),{slots:o,slotProps:i}=r,a=$e(r,$Je),s=dV({slotProps:i,ref:n,externalForwardedProps:a}),l=_Je(s);return k.jsx(uV,{slots:o,slotProps:i,fieldResponse:l,defaultOpenPickerIcon:SYe})}),NJe=e=>{const t=NXe(e);return iV({manager:t,props:e})},LJe=["slots","slotProps"],Ace=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiDateTimeField"}),{slots:o,slotProps:i}=r,a=$e(r,LJe),s=dV({slotProps:i,ref:n,externalForwardedProps:a}),l=NJe(s);return k.jsx(uV,{slots:o,slotProps:i,fieldResponse:l,defaultOpenPickerIcon:jle})}),Mce=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a,timezone:s})=>{const l=Wh();return x.useCallback(c=>Rv({adapter:l,value:c,timezone:s,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a}})!==null,[l,e,t,n,r,o,i,a,s])},FJe=(e,t)=>(n,r)=>{switch(r.type){case"setVisibleDate":return z({},n,{slideDirection:r.direction,currentMonth:r.month,isMonthSwitchingAnimating:!t.isSameMonth(r.month,n.currentMonth)&&!e&&!r.skipAnimation,focusedDay:r.focusedDay});case"changeMonthTimezone":{const o=r.newTimezone;if(t.getTimezone(n.currentMonth)===o)return n;let i=t.setTimezone(n.currentMonth,o);return t.getMonth(i)!==t.getMonth(n.currentMonth)&&(i=t.setMonth(i,t.getMonth(n.currentMonth))),z({},n,{currentMonth:i})}case"finishMonthSwitchingAnimation":return z({},n,{isMonthSwitchingAnimating:!1});default:throw new Error("missing support")}},jJe=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,maxDate:i,minDate:a,onMonthChange:s,onYearChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:f,getCurrentMonthFromVisibleDate:h}=e,m=xn(),g=x.useRef(FJe(!!c,m)).current,y=x.useMemo(()=>mo.getInitialReferenceValue({value:t,utils:m,timezone:f,props:e,referenceDate:n,granularity:Rl.day}),[n,f]),[v,w]=x.useReducer(g,{isMonthSwitchingAnimating:!1,focusedDay:y,currentMonth:m.startOfMonth(y),slideDirection:"left"}),C=Mce({shouldDisableDate:u,minDate:a,maxDate:i,disableFuture:r,disablePast:o,timezone:f});x.useEffect(()=>{w({type:"changeMonthTimezone",newTimezone:m.getTimezone(y)})},[y,m]);const E=Je(({target:O,reason:P})=>{if(P==="cell-interaction"&&v.focusedDay!=null&&m.isSameDay(O,v.focusedDay))return;const R=P==="cell-interaction";let D,M;if(P==="cell-interaction")D=h(O,v.currentMonth),M=O;else if(D=m.isSameMonth(O,v.currentMonth)?v.currentMonth:m.startOfMonth(O),M=O,C(M)){const N=m.startOfMonth(O),B=m.endOfMonth(O);M=SS({utils:m,date:M,minDate:m.isBefore(a,N)?N:a,maxDate:m.isAfter(i,B)?B:i,disablePast:o,disableFuture:r,isDateDisabled:C,timezone:f})}const A=!m.isSameMonth(v.currentMonth,D),_=!m.isSameYear(v.currentMonth,D);A&&(s==null||s(D)),_&&(l==null||l(m.startOfYear(D))),w({type:"setVisibleDate",month:D,direction:m.isAfterDay(D,v.currentMonth)?"left":"right",focusedDay:v.focusedDay!=null&&M!=null&&m.isSameDay(M,v.focusedDay)?v.focusedDay:M,skipAnimation:R})}),I=x.useCallback(()=>{w({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:y,calendarState:v,setVisibleDate:E,isDateDisabled:C,onMonthSwitchingAnimationEnd:I}},BJe=e=>qe("MuiPickersFadeTransitionGroup",e);Ke("MuiPickersFadeTransitionGroup",["root"]);const zJe=["children"],VJe=e=>Me({root:["root"]},BJe,e),HJe=ae(tw,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function Rce(e){const t=Pn({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:r,transKey:o,classes:i}=t,{children:a}=t,s=$e(t,zJe),l=VJe(i),c=Lr();if(r)return a;const u=z({},s);return k.jsx(HJe,{className:fe(l.root,n),ownerState:u,children:k.jsx(hh,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:c.transitions.duration.enteringScreen,enter:c.transitions.duration.enteringScreen,exit:0},children:a},o)})}const UJe=e=>qe("MuiPickersSlideTransition",e),Ps=Ke("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),GJe=["children","className","reduceAnimations","slideDirection","transKey","classes"],qJe=(e,t)=>{const{slideDirection:n}=t,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Me(r,UJe,e)},WJe=ae(tw,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Ps["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Ps["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Ps.slideEnterActive}`]:t.slideEnterActive},{[`.${Ps.slideExit}`]:t.slideExit},{[`.${Ps["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Ps["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Ps["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Ps["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Ps.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Ps.slideExit}`]:{transform:"translate(0%)"},[`& .${Ps["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Ps["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function KJe(e){const t=Pn({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,slideDirection:i,transKey:a,classes:s}=t,l=$e(t,GJe),{ownerState:c}=Ur(),u=z({},c,{slideDirection:i}),f=qJe(s,u),h=Lr();if(o)return k.jsx("div",{className:fe(f.root,r),children:n});const m={exit:f.exit,enterActive:f.enterActive,enter:f.enter,exitActive:f.exitActive};return k.jsx(WJe,{className:fe(f.root,r),childFactory:g=>x.cloneElement(g,{classNames:m}),role:"presentation",ownerState:u,children:k.jsx(Kj,z({mountOnEnter:!0,unmountOnExit:!0,timeout:h.transitions.duration.complex,classNames:m},l,{children:n}),a)})}const YJe=e=>qe("MuiDayCalendar",e);Ke("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const QJe=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],XJe=["ownerState"],JJe=e=>Me({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},YJe,e),Dce=(bS+yP*2)*6,ZJe=ae("div",{name:"MuiDayCalendar",slot:"Root"})({}),eZe=ae("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),tZe=ae(at,{name:"MuiDayCalendar",slot:"WeekDayLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),nZe=ae(at,{name:"MuiDayCalendar",slot:"WeekNumberLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.disabled})),rZe=ae(at,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>z({},e.typography.caption,{width:bS,height:bS,padding:0,margin:`0 ${yP}px`,color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),oZe=ae("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Dce}),iZe=ae(KJe,{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:Dce}),aZe=ae("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),sZe=ae("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:`${yP}px 0`,display:"flex",justifyContent:"center"});function lZe(e){let{parentProps:t,day:n,focusedDay:r,selectedDays:o,isDateDisabled:i,currentMonthNumber:a,isViewFocused:s}=e,l=$e(e,QJe);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:h,slots:m,slotProps:g,timezone:y}=t,v=xn(),w=Kh(y),C=r!=null&&v.isSameDay(n,r),E=s&&C,I=o.some(H=>v.isSameDay(H,n)),O=v.isSameDay(n,w),P=x.useMemo(()=>c||i(n),[c,i,n]),R=x.useMemo(()=>v.getMonth(n)!==a,[v,n,a]),D=ice({day:n,selected:I,disabled:P,today:O,outsideCurrentMonth:R,disableMargin:void 0,disableHighlightToday:u,showDaysOutsideCurrentMonth:h}),M=(m==null?void 0:m.day)??lXe,A=Dn({elementType:M,externalSlotProps:g==null?void 0:g.day,additionalProps:z({disableHighlightToday:u,showDaysOutsideCurrentMonth:h,role:"gridcell",isAnimating:f,"data-timestamp":v.toJsDate(n).valueOf()},l),ownerState:z({},D,{day:n,isDayDisabled:P,isDaySelected:I})}),_=$e(A,XJe),N=x.useMemo(()=>{const H=v.startOfMonth(v.setMonth(n,a));return h?v.isSameDay(n,v.startOfWeek(H)):v.isSameDay(n,H)},[a,n,h,v]),B=x.useMemo(()=>{const H=v.endOfMonth(v.setMonth(n,a));return h?v.isSameDay(n,v.endOfWeek(H)):v.isSameDay(n,H)},[a,n,h,v]);return k.jsx(M,z({},_,{day:n,disabled:P,autoFocus:!R&&E,today:O,outsideCurrentMonth:R,isFirstVisibleCell:N,isLastVisibleCell:B,selected:I,tabIndex:C?0:-1,"aria-selected":I,"aria-current":O?"date":void 0}))}function cZe(e){const t=Pn({props:e,name:"MuiDayCalendar"}),n=xn(),{onFocusedDayChange:r,className:o,classes:i,currentMonth:a,selectedDays:s,focusedDay:l,loading:c,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:f,readOnly:h,reduceAnimations:m,renderLoading:g=()=>k.jsx("span",{children:"..."}),slideDirection:y,TransitionProps:v,disablePast:w,disableFuture:C,minDate:E,maxDate:I,shouldDisableDate:O,shouldDisableMonth:P,shouldDisableYear:R,dayOfWeekFormatter:D=de=>n.format(de,"weekdayShort").charAt(0).toUpperCase(),hasFocus:M,onFocusedViewChange:A,gridLabelId:_,displayWeekNumber:N,fixedWeekNumber:B,timezone:H}=t,j=Kh(H),L=JJe(i),V=vr(),W=Mce({shouldDisableDate:O,shouldDisableMonth:P,shouldDisableYear:R,minDate:E,maxDate:I,disablePast:w,disableFuture:C,timezone:H}),K=Ei(),G=Je(de=>{h||u(de)}),q=de=>{W(de)||(r(de),A==null||A(!0))},Y=Je((de,oe)=>{switch(de.key){case"ArrowUp":q(n.addDays(oe,-7)),de.preventDefault();break;case"ArrowDown":q(n.addDays(oe,7)),de.preventDefault();break;case"ArrowLeft":{const ue=n.addDays(oe,V?1:-1),pe=n.addMonths(oe,V?1:-1),Ee=SS({utils:n,date:ue,minDate:V?ue:n.startOfMonth(pe),maxDate:V?n.endOfMonth(pe):ue,isDateDisabled:W,timezone:H});q(Ee||ue),de.preventDefault();break}case"ArrowRight":{const ue=n.addDays(oe,V?-1:1),pe=n.addMonths(oe,V?-1:1),Ee=SS({utils:n,date:ue,minDate:V?n.startOfMonth(pe):ue,maxDate:V?ue:n.endOfMonth(pe),isDateDisabled:W,timezone:H});q(Ee||ue),de.preventDefault();break}case"Home":q(n.startOfWeek(oe)),de.preventDefault();break;case"End":q(n.endOfWeek(oe)),de.preventDefault();break;case"PageUp":q(n.addMonths(oe,1)),de.preventDefault();break;case"PageDown":q(n.addMonths(oe,-1)),de.preventDefault();break}}),Z=Je((de,oe)=>q(oe)),ie=Je((de,oe)=>{l!=null&&n.isSameDay(l,oe)&&(A==null||A(!1))}),se=n.getMonth(a),ce=n.getYear(a),ye=x.useMemo(()=>s.filter(de=>!!de).map(de=>n.startOfDay(de)),[n,s]),Se=`${ce}-${se}`,ne=x.useMemo(()=>x.createRef(),[Se]),le=x.useMemo(()=>{const de=n.getWeekArray(a);let oe=n.addMonths(a,1);for(;B&&de.length{de.lengthk.jsx(tZe,{variant:"caption",role:"columnheader","aria-label":n.format(de,"weekday"),className:L.weekDayLabel,children:D(de)},oe.toString()))]}),c?k.jsx(oZe,{className:L.loadingContainer,children:g()}):k.jsx(iZe,z({transKey:Se,onExited:f,reduceAnimations:m,slideDirection:y,className:fe(o,L.slideTransition)},v,{nodeRef:ne,children:k.jsx(aZe,{ref:ne,role:"rowgroup",className:L.monthContainer,children:le.map((de,oe)=>k.jsxs(sZe,{role:"row",className:L.weekContainer,"aria-rowindex":oe+1,children:[N&&k.jsx(rZe,{className:L.weekNumber,role:"rowheader","aria-label":K.calendarWeekNumberAriaLabelText(n.getWeekNumber(de[0])),children:K.calendarWeekNumberText(n.getWeekNumber(de[0]))}),de.map((ue,pe)=>k.jsx(lZe,{parentProps:t,day:ue,selectedDays:ye,isViewFocused:M,focusedDay:l,onKeyDown:Y,onFocus:Z,onBlur:ie,onDaySelect:G,isDateDisabled:W,currentMonthNumber:se,"aria-colindex":pe+1},ue.toString()))]},`week-${de[0]}`))})}))]})}function kce(e){return qe("MuiMonthCalendar",e)}const W1=Ke("MuiMonthCalendar",["root","button","disabled","selected"]),uZe=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],dZe=(e,t)=>{const n={button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]};return Me(n,kce,e)},fZe=ae("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${W1.disabled}`]:t.disabled},{[`&.${W1.selected}`]:t.selected}]})(({theme:e})=>z({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${W1.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${W1.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),pZe=x.memo(function(t){const{autoFocus:n,classes:r,disabled:o,selected:i,value:a,onClick:s,onKeyDown:l,onFocus:c,onBlur:u,slots:f,slotProps:h}=t,m=$e(t,uZe),g=x.useRef(null),{ownerState:y}=Ur(),v=z({},y,{isMonthDisabled:o,isMonthSelected:i}),w=dZe(r,v);In(()=>{var I;n&&((I=g.current)==null||I.focus())},[n]);const C=(f==null?void 0:f.monthButton)??fZe,E=Dn({elementType:C,externalSlotProps:h==null?void 0:h.monthButton,externalForwardedProps:m,additionalProps:{disabled:o,ref:g,type:"button",role:"radio","aria-checked":i,onClick:I=>s(I,a),onKeyDown:I=>l(I,a),onFocus:I=>c(I,a),onBlur:I=>u(I,a)},ownerState:v,className:w.button});return k.jsx(C,z({},E))}),hZe=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],mZe=e=>Me({root:["root"]},kce,e);function gZe(e,t){const n=Pn({props:e,name:t}),r=Dw(n);return z({},n,r,{monthsPerRow:n.monthsPerRow??3})}const yZe=ae("div",{name:"MuiMonthCalendar",slot:"Root",shouldForwardProp:e=>Ca(e)&&e!=="monthsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:16,padding:"8px 0",width:zy,boxSizing:"border-box",variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),vZe=x.forwardRef(function(t,n){const r=gZe(t,"MuiMonthCalendar"),{autoFocus:o,className:i,classes:a,value:s,defaultValue:l,referenceDate:c,disabled:u,disableFuture:f,disablePast:h,maxDate:m,minDate:g,onChange:y,shouldDisableMonth:v,readOnly:w,onMonthFocus:C,hasFocus:E,onFocusedViewChange:I,monthsPerRow:O,timezone:P,gridLabelId:R,slots:D,slotProps:M}=r,A=$e(r,hZe),{value:_,handleValueChange:N,timezone:B}=qf({name:"MonthCalendar",timezone:P,value:s,defaultValue:l,referenceDate:c,onChange:y,valueManager:mo}),H=Kh(B),j=vr(),L=xn(),{ownerState:V}=Ur(),W=x.useMemo(()=>mo.getInitialReferenceValue({value:_,utils:L,props:r,timezone:B,referenceDate:c,granularity:Rl.month}),[]),K=mZe(a),G=x.useMemo(()=>L.getMonth(H),[L,H]),q=x.useMemo(()=>_!=null?L.getMonth(_):null,[_,L]),[Y,Z]=x.useState(()=>q||L.getMonth(W)),[ie,se]=ia({name:"MonthCalendar",state:"hasFocus",controlled:E,default:o??!1}),ce=Je(ue=>{se(ue),I&&I(ue)}),ye=x.useCallback(ue=>{const pe=L.startOfMonth(h&&L.isAfter(H,g)?H:g),Ee=L.startOfMonth(f&&L.isBefore(H,m)?H:m),xe=L.startOfMonth(ue);return L.isBefore(xe,pe)||L.isAfter(xe,Ee)?!0:v?v(xe):!1},[f,h,m,g,H,v,L]),Se=Je((ue,pe)=>{if(w)return;const Ee=L.setMonth(_??W,pe);N(Ee)}),ne=Je(ue=>{ye(L.setMonth(_??W,ue))||(Z(ue),ce(!0),C&&C(ue))});x.useEffect(()=>{Z(ue=>q!==null&&ue!==q?q:ue)},[q]);const le=Je((ue,pe)=>{switch(ue.key){case"ArrowUp":ne((12+pe-3)%12),ue.preventDefault();break;case"ArrowDown":ne((12+pe+3)%12),ue.preventDefault();break;case"ArrowLeft":ne((12+pe+(j?1:-1))%12),ue.preventDefault();break;case"ArrowRight":ne((12+pe+(j?-1:1))%12),ue.preventDefault();break}}),de=Je((ue,pe)=>{ne(pe)}),oe=Je((ue,pe)=>{Y===pe&&ce(!1)});return k.jsx(yZe,z({ref:n,className:fe(K.root,i),ownerState:V,role:"radiogroup","aria-labelledby":R,monthsPerRow:O},A,{children:Yz(L,_??W).map(ue=>{const pe=L.getMonth(ue),Ee=L.format(ue,"monthShort"),xe=L.format(ue,"month"),Re=pe===q,he=u||ye(ue);return k.jsx(pZe,{selected:Re,value:pe,onClick:Se,onKeyDown:le,autoFocus:ie&&pe===Y,disabled:he,tabIndex:pe===Y&&!he?0:-1,onFocus:de,onBlur:oe,"aria-current":G===pe?"date":void 0,"aria-label":xe,slots:D,slotProps:M,classes:a,children:Ee},Ee)})}))});function _ce(e){return qe("MuiYearCalendar",e)}const K1=Ke("MuiYearCalendar",["root","button","disabled","selected"]),bZe=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],xZe=(e,t)=>{const n={button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]};return Me(n,_ce,e)},SZe=ae("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${K1.disabled}`]:t.disabled},{[`&.${K1.selected}`]:t.selected}]})(({theme:e})=>z({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Nt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${K1.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${K1.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),wZe=x.memo(function(t){const{autoFocus:n,classes:r,disabled:o,selected:i,value:a,onClick:s,onKeyDown:l,onFocus:c,onBlur:u,slots:f,slotProps:h}=t,m=$e(t,bZe),g=x.useRef(null),{ownerState:y}=Ur(),v=z({},y,{isYearDisabled:o,isYearSelected:i}),w=xZe(r,v);In(()=>{var I;n&&((I=g.current)==null||I.focus())},[n]);const C=(f==null?void 0:f.yearButton)??SZe,E=Dn({elementType:C,externalSlotProps:h==null?void 0:h.yearButton,externalForwardedProps:m,additionalProps:{disabled:o,ref:g,type:"button",role:"radio","aria-checked":i,onClick:I=>s(I,a),onKeyDown:I=>l(I,a),onFocus:I=>c(I,a),onBlur:I=>u(I,a)},ownerState:v,className:w.button});return k.jsx(C,z({},E))}),CZe=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],EZe=e=>Me({root:["root"]},_ce,e);function TZe(e,t){const n=Pn({props:e,name:t}),r=Dw(n);return z({},n,r,{yearsPerRow:n.yearsPerRow??3,yearsOrder:n.yearsOrder??"asc"})}const OZe=ae("div",{name:"MuiYearCalendar",slot:"Root",shouldForwardProp:e=>Ca(e)&&e!=="yearsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:12,padding:"6px 0",overflowY:"auto",height:"100%",width:zy,maxHeight:jYe,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),IZe=ae("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),PZe=x.forwardRef(function(t,n){const r=TZe(t,"MuiYearCalendar"),{autoFocus:o,className:i,classes:a,value:s,defaultValue:l,referenceDate:c,disabled:u,disableFuture:f,disablePast:h,maxDate:m,minDate:g,onChange:y,readOnly:v,shouldDisableYear:w,onYearFocus:C,hasFocus:E,onFocusedViewChange:I,yearsOrder:O,yearsPerRow:P,timezone:R,gridLabelId:D,slots:M,slotProps:A}=r,_=$e(r,CZe),{value:N,handleValueChange:B,timezone:H}=qf({name:"YearCalendar",timezone:R,value:s,defaultValue:l,referenceDate:c,onChange:y,valueManager:mo}),j=Kh(H),L=vr(),V=xn(),{ownerState:W}=Ur(),K=x.useMemo(()=>mo.getInitialReferenceValue({value:N,utils:V,props:r,timezone:H,referenceDate:c,granularity:Rl.year}),[]),G=EZe(a),q=x.useMemo(()=>V.getYear(j),[V,j]),Y=x.useMemo(()=>N!=null?V.getYear(N):null,[N,V]),[Z,ie]=x.useState(()=>Y||V.getYear(K)),[se,ce]=ia({name:"YearCalendar",state:"hasFocus",controlled:E,default:o??!1}),ye=Je(ve=>{ce(ve),I&&I(ve)}),Se=x.useCallback(ve=>{if(h&&V.isBeforeYear(ve,j)||f&&V.isAfterYear(ve,j)||g&&V.isBeforeYear(ve,g)||m&&V.isAfterYear(ve,m))return!0;if(!w)return!1;const Ie=V.startOfYear(ve);return w(Ie)},[f,h,m,g,j,w,V]),ne=Je((ve,Ie)=>{if(v)return;const te=V.setYear(N??K,Ie);B(te)}),le=Je(ve=>{Se(V.setYear(N??K,ve))||(ie(ve),ye(!0),C==null||C(ve))});x.useEffect(()=>{ie(ve=>Y!==null&&ve!==Y?Y:ve)},[Y]);const de=O!=="desc"?P*1:P*-1,oe=L&&O==="asc"||!L&&O==="desc"?-1:1,ue=Je((ve,Ie)=>{switch(ve.key){case"ArrowUp":le(Ie-de),ve.preventDefault();break;case"ArrowDown":le(Ie+de),ve.preventDefault();break;case"ArrowLeft":le(Ie-oe),ve.preventDefault();break;case"ArrowRight":le(Ie+oe),ve.preventDefault();break}}),pe=Je((ve,Ie)=>{le(Ie)}),Ee=Je((ve,Ie)=>{Z===Ie&&ye(!1)}),xe=x.useRef(null),Re=en(n,xe);x.useEffect(()=>{if(o||xe.current===null)return;const ve=xe.current.querySelector('[tabindex="0"]');if(!ve)return;const Ie=ve.offsetHeight,te=ve.offsetTop,Te=xe.current.clientHeight,De=xe.current.scrollTop,Ve=te+Ie;Ie>Te||te{const Ie=V.getYear(ve),te=Ie===Y,Te=u||Se(ve);return k.jsx(wZe,{selected:te,value:Ie,onClick:ne,onKeyDown:ue,autoFocus:se&&Ie===Z,disabled:Te,tabIndex:Ie===Z&&!Te?0:-1,onFocus:pe,onBlur:Ee,"aria-current":q===Ie?"date":void 0,slots:M,slotProps:A,classes:a,children:V.format(ve,"year")},V.format(ve,"year"))}),Array.from({length:Pe},(ve,Ie)=>k.jsx(IZe,{},Ie))]}))}),AZe=e=>qe("MuiPickersCalendarHeader",e),MZe=Ke("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),RZe=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],DZe=["ownerState"],kZe=e=>Me({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},AZe,e),_Ze=ae("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),$Ze=ae("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer"})(({theme:e})=>z({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),NZe=ae("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),LZe=ae(pn,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${MZe.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),FZe=ae(vYe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon"})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),jZe=x.forwardRef(function(t,n){const r=Ei(),o=xn(),i=Pn({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:s,currentMonth:l,disabled:c,disableFuture:u,disablePast:f,maxDate:h,minDate:m,onMonthChange:g,onViewChange:y,view:v,reduceAnimations:w,views:C,labelId:E,className:I,classes:O,timezone:P,format:R=`${o.formats.month} ${o.formats.year}`}=i,D=$e(i,RZe),{ownerState:M}=Ur(),A=kZe(O),_=(a==null?void 0:a.switchViewButton)??LZe,N=Dn({elementType:_,externalSlotProps:s==null?void 0:s.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(v)},ownerState:M,className:A.switchViewButton}),B=(a==null?void 0:a.switchViewIcon)??FZe,H=Dn({elementType:B,externalSlotProps:s==null?void 0:s.switchViewIcon,ownerState:M,className:A.switchViewIcon}),j=$e(H,DZe),L=()=>g(o.addMonths(l,1)),V=()=>g(o.addMonths(l,-1)),W=LYe(l,{disableFuture:u,maxDate:h,timezone:P}),K=FYe(l,{disablePast:f,minDate:m,timezone:P}),G=()=>{if(!(C.length===1||!y||c))if(C.length===2)y(C.find(Y=>Y!==v)||C[0]);else{const Y=C.indexOf(v)!==0?0:1;y(C[Y])}};if(C.length===1&&C[0]==="year")return null;const q=o.formatByString(l,R);return k.jsxs(_Ze,z({},D,{ownerState:M,className:fe(A.root,I),ref:n,children:[k.jsxs($Ze,{role:"presentation",onClick:G,ownerState:M,"aria-live":"polite",className:A.labelContainer,children:[k.jsx(Rce,{reduceAnimations:w,transKey:q,children:k.jsx(NZe,{id:E,ownerState:M,className:A.label,children:q})}),C.length>1&&!c&&k.jsx(_,z({},N,{children:k.jsx(B,z({},j))}))]}),k.jsx(hh,{in:v==="day",appear:!w,enter:!w,children:k.jsx(qle,{slots:a,slotProps:s,onGoToPrevious:V,isPreviousDisabled:K,previousLabel:r.previousMonth,onGoToNext:L,isNextDisabled:W,nextLabel:r.nextMonth})})]}))}),BZe="@media (prefers-reduced-motion: reduce)",Vg=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),sX=Vg&&Vg[1]?parseInt(Vg[1],10):null,lX=Vg&&Vg[2]?parseInt(Vg[2],10):null,zZe=sX&&sX<10||lX&&lX<13||!1;function $ce(e){const t=Tf(BZe,{defaultMatches:!1});return e??(t||zZe)}const VZe=e=>qe("MuiDateCalendar",e);Ke("MuiDateCalendar",["root","viewTransitionContainer"]);const HZe=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","classes","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],UZe=e=>Me({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},VZe,e);function GZe(e,t){const n=Pn({props:e,name:t}),r=$ce(n.reduceAnimations),o=Dw(n);return z({},n,o,{loading:n.loading??!1,openTo:n.openTo??"day",views:n.views??["year","day"],reduceAnimations:r,renderLoading:n.renderLoading??(()=>k.jsx("span",{children:"..."}))})}const qZe=ae(vP,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:Vy}),WZe=ae(Rce,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),KZe=x.forwardRef(function(t,n){const r=xn(),{ownerState:o}=Ur(),i=bn(),a=GZe(t,"MuiDateCalendar"),{autoFocus:s,onViewChange:l,value:c,defaultValue:u,referenceDate:f,disableFuture:h,disablePast:m,onChange:g,onMonthChange:y,reduceAnimations:v,shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:E,view:I,views:O,openTo:P,className:R,classes:D,disabled:M,readOnly:A,minDate:_,maxDate:N,disableHighlightToday:B,focusedView:H,onFocusedViewChange:j,showDaysOutsideCurrentMonth:L,fixedWeekNumber:V,dayOfWeekFormatter:W,slots:K,slotProps:G,loading:q,renderLoading:Y,displayWeekNumber:Z,yearsOrder:ie,yearsPerRow:se,monthsPerRow:ce,timezone:ye}=a,Se=$e(a,HZe),{value:ne,handleValueChange:le,timezone:de}=qf({name:"DateCalendar",timezone:ye,value:c,defaultValue:u,referenceDate:f,onChange:g,valueManager:mo}),{view:oe,setView:ue,focusedView:pe,setFocusedView:Ee,goToNextView:xe,setValueAndGoToNextView:Re}=Mw({view:I,views:O,openTo:P,onChange:le,onViewChange:l,autoFocus:s,focusedView:H,onFocusedViewChange:j}),{referenceDate:he,calendarState:Pe,setVisibleDate:ve,isDateDisabled:Ie,onMonthSwitchingAnimationEnd:te}=jJe({value:ne,referenceDate:f,reduceAnimations:v,onMonthChange:y,minDate:_,maxDate:N,shouldDisableDate:w,disablePast:m,disableFuture:h,timezone:de,getCurrentMonthFromVisibleDate:(bt,vn)=>r.isSameMonth(bt,vn)?vn:r.startOfMonth(bt)}),Te=M&&ne||_,De=M&&ne||N,Ve=`${i}-grid-label`,We=pe!==null,rt=(K==null?void 0:K.calendarHeader)??jZe,ut=Dn({elementType:rt,externalSlotProps:G==null?void 0:G.calendarHeader,additionalProps:{views:O,view:oe,currentMonth:Pe.currentMonth,onViewChange:ue,onMonthChange:bt=>ve({target:bt,reason:"header-navigation"}),minDate:Te,maxDate:De,disabled:M,disablePast:m,disableFuture:h,reduceAnimations:v,timezone:de,labelId:Ve},ownerState:o}),Be=Je(bt=>{const vn=r.startOfMonth(bt),kn=r.endOfMonth(bt),Rr=Ie(bt)?SS({utils:r,date:bt,minDate:r.isBefore(_,vn)?vn:_,maxDate:r.isAfter(N,kn)?kn:N,disablePast:m,disableFuture:h,isDateDisabled:Ie,timezone:de}):bt;Rr?(Re(Rr,"finish"),ve({target:Rr,reason:"cell-interaction"})):(xe(),ve({target:vn,reason:"cell-interaction"}))}),et=Je(bt=>{const vn=r.startOfYear(bt),kn=r.endOfYear(bt),Rr=Ie(bt)?SS({utils:r,date:bt,minDate:r.isBefore(_,vn)?vn:_,maxDate:r.isAfter(N,kn)?kn:N,disablePast:m,disableFuture:h,isDateDisabled:Ie,timezone:de}):bt;Rr?(Re(Rr,"finish"),ve({target:Rr,reason:"cell-interaction"})):(xe(),ve({target:vn,reason:"cell-interaction"}))}),Le=Je(bt=>le(bt&&pO(r,bt,ne??he),"finish",oe));x.useEffect(()=>{r.isValid(ne)&&ve({target:ne,reason:"controlled-value-change"})},[ne]);const It=UZe(D),Lt={disablePast:m,disableFuture:h,maxDate:N,minDate:_},nt={disableHighlightToday:B,readOnly:A,disabled:M,timezone:de,gridLabelId:Ve,slots:K,slotProps:G},lt=x.useRef(oe);x.useEffect(()=>{lt.current!==oe&&(pe===lt.current&&Ee(oe,!0),lt.current=oe)},[pe,Ee,oe]);const vt=x.useMemo(()=>[ne],[ne]);return k.jsxs(qZe,z({ref:n,className:fe(It.root,R),ownerState:o},Se,{children:[k.jsx(rt,z({},ut,{slots:K,slotProps:G})),k.jsx(WZe,{reduceAnimations:v,className:It.viewTransitionContainer,transKey:oe,ownerState:o,children:k.jsxs("div",{children:[oe==="year"&&k.jsx(PZe,z({},Lt,nt,{value:ne,onChange:et,shouldDisableYear:E,hasFocus:We,onFocusedViewChange:bt=>Ee("year",bt),yearsOrder:ie,yearsPerRow:se,referenceDate:he})),oe==="month"&&k.jsx(vZe,z({},Lt,nt,{hasFocus:We,className:R,value:ne,onChange:Be,shouldDisableMonth:C,onFocusedViewChange:bt=>Ee("month",bt),monthsPerRow:ce,referenceDate:he})),oe==="day"&&k.jsx(cZe,z({},Pe,Lt,nt,{onMonthSwitchingAnimationEnd:te,hasFocus:We,onFocusedDayChange:bt=>ve({target:bt,reason:"cell-interaction"}),reduceAnimations:v,selectedDays:vt,onSelectedDaysChange:Le,shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:E,onFocusedViewChange:bt=>Ee("day",bt),showDaysOutsideCurrentMonth:L,fixedWeekNumber:V,dayOfWeekFormatter:W,displayWeekNumber:Z,loading:q,renderLoading:Y}))]})})]}))});function Nce(e){return qe("MuiPickersToolbar",e)}const YZe=Ke("MuiPickersToolbar",["root","title","content"]);function CP(){const{ownerState:e}=Ur(),t=vr();return x.useMemo(()=>z({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const QZe=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],XZe=e=>Me({root:["root"],title:["title"],content:["content"]},Nce,e),JZe=ae("div",{name:"MuiPickersToolbar",slot:"Root"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{pickerOrientation:"landscape"},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),ZZe=ae("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>Ca(e)&&e!=="landscapeDirection"})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{pickerOrientation:"landscape"},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{pickerOrientation:"landscape",landscapeDirection:"row"},style:{flexDirection:"row"}}]}),fV=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiPickersToolbar"}),{children:o,className:i,classes:a,toolbarTitle:s,hidden:l,titleId:c,landscapeDirection:u}=r,f=$e(r,QZe),h=CP(),m=XZe(a);return l?null:k.jsxs(JZe,z({ref:n,className:fe(m.root,i),ownerState:h},f,{children:[k.jsx(at,{color:"text.secondary",variant:"overline",id:c,className:m.title,children:s}),k.jsx(ZZe,{className:m.content,ownerState:h,landscapeDirection:u,children:o})]}))});function eet(e){return qe("MuiDatePickerToolbar",e)}Ke("MuiDatePickerToolbar",["root","title"]);const tet=["toolbarFormat","toolbarPlaceholder","className","classes"],net=e=>Me({root:["root"],title:["title"]},eet,e),ret=ae(fV,{name:"MuiDatePickerToolbar",slot:"Root"})({}),oet=ae(at,{name:"MuiDatePickerToolbar",slot:"Title"})({variants:[{props:{pickerOrientation:"landscape"},style:{margin:"auto 16px auto auto"}}]}),iet=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiDatePickerToolbar"}),{toolbarFormat:o,toolbarPlaceholder:i="––",className:a,classes:s}=r,l=$e(r,tet),c=xn(),{value:u,views:f,orientation:h}=qc(),m=Ei(),g=CP(),y=net(s),v=x.useMemo(()=>{if(!c.isValid(u))return i;const w=wS(c,{format:o,views:f},!0);return c.formatByString(u,w)},[u,o,i,c,f]);return k.jsx(ret,z({ref:n,toolbarTitle:m.datePickerToolbarTitle,className:fe(y.root,a)},l,{children:k.jsx(oet,{variant:"h4",align:h==="landscape"?"left":"center",ownerState:g,className:y.title,children:v})}))});function Lce(e,t){const n=Pn({props:e,name:t}),r=Dw(n),o=x.useMemo(()=>{var i;return((i=n.localeText)==null?void 0:i.toolbarTitle)==null?n.localeText:z({},n.localeText,{datePickerToolbarTitle:n.localeText.toolbarTitle})},[n.localeText]);return z({},n,r,{localeText:o},Kz({views:n.views,openTo:n.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{slots:z({toolbar:iet},n.slots)})}function aet(e){return qe("MuiPickerPopper",e)}Ke("MuiPickerPopper",["root","paper"]);const set=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],cet=e=>Me({root:["root"],paper:["paper"]},aet,e),uet=ae(sv,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),det=ae(go,{name:"MuiPickerPopper",slot:"Paper"})({outline:0,transformOrigin:"top center",variants:[{props:({popperPlacement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function fet(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){i.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),i.current=!1}},[e]);const a=Je(l=>{if(!i.current)return;const c=r.current;r.current=!1;const u=Mr(o.current);if(!o.current||"clientX"in l&&fet(l,u))return;if(n.current){n.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(o.current)>-1:f=!u.documentElement.contains(l.target)||o.current.contains(l.target),!f&&!c&&t(l)}),s=()=>{r.current=!0};return x.useEffect(()=>{if(e){const l=Mr(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",c)}}},[e,a]),x.useEffect(()=>{if(e){const l=Mr(o.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[o,s,s]}const het=x.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:r,children:o,paperSlotProps:i,paperClasses:a,onPaperClick:s,onPaperTouchStart:l}=e,c=$e(e,set),u=Dn({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:r});return k.jsx(n,z({},c,u,{onClick:f=>{var h;s(f),(h=u.onClick)==null||h.call(u,f)},onTouchStart:f=>{var h;l(f),(h=u.onTouchStart)==null||h.call(u,f)},ownerState:r,children:o}))});function met(e){const t=Pn({props:e,name:"MuiPickerPopper"}),{children:n,placement:r="bottom-start",slots:o,slotProps:i,classes:a}=t,{open:s,popupRef:l,reduceAnimations:c}=qc(),{dismissViews:u,getCurrentViewMode:f,onPopperExited:h,triggerElement:m,viewContainerRole:g}=Ur();x.useEffect(()=>{function V(W){s&&W.key==="Escape"&&u()}return document.addEventListener("keydown",V),()=>{document.removeEventListener("keydown",V)}},[u,s]);const y=x.useRef(null);x.useEffect(()=>{g==="tooltip"||f()==="field"||(s?y.current=xi(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[s,g,f]);const v=cet(a),{ownerState:w,rootRefObject:C}=Ur(),E=z({},w,{popperPlacement:r}),I=Je(()=>{g==="tooltip"?NQe(()=>{var V,W;(V=C.current)!=null&&V.contains(xi(document))||(W=l.current)!=null&&W.contains(xi(document))||u()}):u()}),[O,P,R]=pet(s,I),D=x.useRef(null),M=en(D,l),A=en(M,O),_=V=>{V.key==="Escape"&&(V.stopPropagation(),u())},N=(o==null?void 0:o.desktopTransition)??c?hh:mh,B=(o==null?void 0:o.desktopTrapFocus)??lB,H=(o==null?void 0:o.desktopPaper)??det,j=(o==null?void 0:o.popper)??uet,L=Dn({elementType:j,externalSlotProps:i==null?void 0:i.popper,additionalProps:{transition:!0,role:g??void 0,open:s,placement:r,anchorEl:m,onKeyDown:_},className:v.root,ownerState:E});return k.jsx(j,z({},L,{children:({TransitionProps:V})=>k.jsx(B,z({open:s,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:g==="tooltip",isEnabled:()=>!0},i==null?void 0:i.desktopTrapFocus,{children:k.jsx(N,z({},V,i==null?void 0:i.desktopTransition,{onExited:W=>{var K,G,q;h==null||h(),(G=(K=i==null?void 0:i.desktopTransition)==null?void 0:K.onExited)==null||G.call(K,W),(q=V==null?void 0:V.onExited)==null||q.call(V)},children:k.jsx(het,{PaperComponent:H,ownerState:E,ref:A,onPaperClick:P,onPaperTouchStart:R,paperClasses:v.paper,paperSlotProps:i==null?void 0:i.desktopPaper,children:n})}))}))}))}function cX(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}function get(e,t){const[n,r]=x.useState(cX);return In(()=>{const o=()=>{r(cX())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),ug(e,["hours","minutes","seconds"])?"portrait":t??n}function yet(e){const{props:t,valueManager:n,validator:r}=e,{value:o,defaultValue:i,onChange:a,referenceDate:s,timezone:l,onAccept:c,closeOnSelect:u,open:f,onOpen:h,onClose:m}=t,{current:g}=x.useRef(i),{current:y}=x.useRef(o!==void 0),{current:v}=x.useRef(f!==void 0),w=xn(),{timezone:C,value:E,handleValueChange:I}=qf({name:"a picker component",timezone:l,value:o,defaultValue:g,referenceDate:s,onChange:a,valueManager:n}),[O,P]=x.useState(()=>({open:!1,lastExternalValue:E,clockShallowValue:void 0,lastCommittedValue:E,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:R}=dce({props:t,validator:r,timezone:C,value:E,onError:t.onError}),D=Je(N=>{const B=typeof N=="function"?N(O.open):N;v||P(H=>z({},H,{open:B})),B&&h&&h(),B||m==null||m()}),M=Je((N,B)=>{const{changeImportance:H="accept",skipPublicationIfPristine:j=!1,validationError:L,shortcut:V,shouldClose:W=H==="accept"}=B??{};let K,G;!j&&!y&&!O.hasBeenModifiedSinceMount?(K=!0,G=H==="accept"):(K=!n.areValuesEqual(w,N,E),G=H==="accept"&&!n.areValuesEqual(w,N,O.lastCommittedValue)),P(Z=>z({},Z,{clockShallowValue:K?void 0:Z.clockShallowValue,lastCommittedValue:G?E:Z.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let q=null;const Y=()=>(q||(q={validationError:L??R(N)},V&&(q.shortcut=V)),q);K&&I(N,Y()),G&&c&&c(N,Y()),W&&D(!1)});E!==O.lastExternalValue&&P(N=>z({},N,{lastExternalValue:E,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const A=Je((N,B="partial")=>{if(B==="shallow"){P(H=>z({},H,{clockShallowValue:N,hasBeenModifiedSinceMount:!0}));return}M(N,{changeImportance:B==="finish"&&u?"accept":"set"})});x.useEffect(()=>{if(v){if(f===void 0)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");P(N=>z({},N,{open:f}))}},[v,f]);const _=x.useMemo(()=>n.cleanValue(w,O.clockShallowValue===void 0?E:O.clockShallowValue),[w,n,O.clockShallowValue,E]);return{timezone:C,state:O,setValue:M,setValueFromView:A,setOpen:D,value:E,viewValue:_}}const vet=["className","sx"],Fce=({ref:e,props:t,valueManager:n,valueType:r,variant:o,validator:i,onPopperExited:a,autoFocusView:s,rendererInterceptor:l,localeText:c,viewContainerRole:u,getStepNavigation:f})=>{const{views:h,view:m,openTo:g,onViewChange:y,viewRenderers:v,reduceAnimations:w,orientation:C,disableOpenPicker:E,closeOnSelect:I,disabled:O,readOnly:P,formatDensity:R,enableAccessibleFieldDOMStructure:D,selectedSections:M,onSelectedSectionsChange:A,format:_,label:N,autoFocus:B,name:H}=t,{className:j,sx:L}=t,V=$e(t,vet),W=bn(),K=xn(),G=Wh(),q=$ce(w),Y=get(h,C),{current:Z}=x.useRef(g??null),[ie,se]=x.useState(null),ce=x.useRef(null),ye=x.useRef(null),Se=x.useRef(null),ne=en(e,Se),{timezone:le,state:de,setOpen:oe,setValue:ue,setValueFromView:pe,value:Ee,viewValue:xe}=yet({props:t,valueManager:n,validator:i}),{view:Re,setView:he,defaultView:Pe,focusedView:ve,setFocusedView:Ie,setValueAndGoToNextView:te,goToNextStep:Te,hasNextStep:De,hasSeveralSteps:Ve}=Mw({view:m,views:h,openTo:g,onChange:pe,onViewChange:y,autoFocus:s,getStepNavigation:f}),We=Je(()=>ue(n.emptyValue)),rt=Je(()=>ue(n.getTodayValue(K,le,r))),ut=Je(()=>ue(Ee)),Be=Je(()=>ue(de.lastCommittedValue,{skipPublicationIfPristine:!0})),et=Je(()=>{ue(Ee,{skipPublicationIfPristine:!0})}),{hasUIView:Le,viewModeLookup:It,timeViewsCount:Lt}=x.useMemo(()=>h.reduce((un,gt)=>{const kt=v[gt]==null?"field":"UI";return un.viewModeLookup[gt]=kt,kt==="UI"&&(un.hasUIView=!0,Th(gt)&&(un.timeViewsCount+=1)),un},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[v,h]),nt=It[Re],lt=Je(()=>nt),[vt,bt]=x.useState(nt==="UI"?Re:null);vt!==Re&&It[Re]==="UI"&&bt(Re),In(()=>{nt==="field"&&de.open&&(oe(!1),setTimeout(()=>{var un,gt;(un=ye==null?void 0:ye.current)==null||un.setSelectedSections(Re),(gt=ye==null?void 0:ye.current)==null||gt.focusField(Re)}))},[Re]),In(()=>{if(!de.open)return;let un=Re;nt==="field"&&vt!=null&&(un=vt),un!==Pe&&It[un]==="UI"&&It[Pe]==="UI"&&(un=Pe),un!==Re&&he(un),Ie(un,!0)},[de.open]);const vn=x.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(K,Ee,n.emptyValue),isPickerOpen:de.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:Y,pickerVariant:o}),[K,n,Ee,de.open,Y,o,t.disabled,t.readOnly]),kn=x.useMemo(()=>E||!Le?"hidden":O||P?"disabled":"enabled",[E,Le,O,P]),Rr=Je(Te),nr=x.useMemo(()=>I&&!Ve?[]:["cancel","nextOrAccept"],[I,Ve]),Bn=x.useMemo(()=>({setValue:ue,setOpen:oe,clearValue:We,setValueToToday:rt,acceptValueChanges:ut,cancelValueChanges:Be,setView:he,goToNextStep:Rr}),[ue,oe,We,rt,ut,Be,he,Rr]),yo=x.useMemo(()=>z({},Bn,{value:Ee,timezone:le,open:de.open,views:h,view:vt,initialView:Z,disabled:O??!1,readOnly:P??!1,autoFocus:B??!1,variant:o,orientation:Y,popupRef:ce,reduceAnimations:q,triggerRef:se,triggerStatus:kn,hasNextStep:De,fieldFormat:_??"",name:H,label:N,rootSx:L,rootRef:ne,rootClassName:j}),[Bn,Ee,ne,o,Y,q,O,P,_,j,H,N,L,kn,De,le,de.open,vt,h,Z,B]),To=x.useMemo(()=>({dismissViews:et,ownerState:vn,hasUIView:Le,getCurrentViewMode:lt,rootRefObject:Se,labelId:W,triggerElement:ie,viewContainerRole:u,defaultActionBarActions:nr,onPopperExited:a}),[et,vn,Le,lt,W,ie,u,nr,a]),oo=x.useMemo(()=>({formatDensity:R,enableAccessibleFieldDOMStructure:D,selectedSections:M,onSelectedSectionsChange:A,fieldRef:ye}),[R,D,M,A,ye]);return{providerProps:{localeText:c,contextValue:yo,privateContextValue:To,actionsContextValue:Bn,fieldPrivateContextValue:oo,isValidContextValue:un=>{const gt=i({adapter:G,value:un,timezone:le,props:t});return!n.hasError(gt)}},renderCurrentView:()=>{if(vt==null)return null;const un=v[vt];if(un==null)return null;const gt=z({},V,{views:h,timezone:le,value:xe,onChange:te,view:vt,onViewChange:he,showViewSwitcher:Lt>1,timeViewsCount:Lt},u==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:ve,onFocusedViewChange:Ie});return l?k.jsx(l,{viewRenderers:v,popperView:vt,rendererProps:gt}):un(gt)},ownerState:vn}};function jce(e){return qe("MuiPickersLayout",e)}const Pl=Ke("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),bet=["actions"],xet=ae(Px,{name:"MuiPickersLayout",slot:"ActionBar"})({});function wet(e){const{actions:t}=e,n=$e(e,bet),r=Ei(),{clearValue:o,setValueToToday:i,acceptValueChanges:a,cancelValueChanges:s,goToNextStep:l,hasNextStep:c}=qc();if(t==null||t.length===0)return null;const u=t==null?void 0:t.map(f=>{switch(f){case"clear":return k.jsx(ct,{onClick:o,children:r.clearButtonLabel},f);case"cancel":return k.jsx(ct,{onClick:s,children:r.cancelButtonLabel},f);case"accept":return k.jsx(ct,{onClick:a,children:r.okButtonLabel},f);case"today":return k.jsx(ct,{onClick:i,children:r.todayButtonLabel},f);case"next":return k.jsx(ct,{onClick:l,children:r.nextStepButtonLabel},f);case"nextOrAccept":return c?k.jsx(ct,{onClick:l,children:r.nextStepButtonLabel},f):k.jsx(ct,{onClick:a,children:r.okButtonLabel},f);default:return null}});return k.jsx(xet,z({},n,{children:u}))}const Cet=x.memo(wet),Eet=["items","changeImportance"],Tet=["getValue"],Oet=ae(ai,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function Iet(e){const{items:t,changeImportance:n="accept"}=e,r=$e(e,Eet),{setValue:o}=yXe(),i=OYe();if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,c=$e(s,Tet);const u=l({isValid:i});return z({},c,{label:c.label,onClick:()=>{o(u,{changeImportance:n,shortcut:c})},disabled:!i(u)})});return k.jsx(Oet,z({dense:!0,sx:[{maxHeight:Vy,maxWidth:200,overflow:"auto"},...Array.isArray(r.sx)?r.sx:[r.sx]]},r,{children:a.map(s=>k.jsx(Co,{children:k.jsx(Wl,z({},s))},s.id??s.label))}))}const Pet=["ownerState"];function Aet(e){return e.view!==null}const Met=(e,t)=>{const{pickerOrientation:n}=t;return Me({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},jce,e)},Bce=e=>{const{ownerState:t,defaultActionBarActions:n}=Ur(),{view:r}=qc(),o=vr(),{children:i,slots:a,slotProps:s,classes:l}=e,c=x.useMemo(()=>z({},t,{layoutDirection:o?"rtl":"ltr"}),[t,o]),u=Met(l,c),f=(a==null?void 0:a.actionBar)??Cet,h=Dn({elementType:f,externalSlotProps:s==null?void 0:s.actionBar,additionalProps:{actions:n},className:u.actionBar,ownerState:c}),m=$e(h,Pet),g=k.jsx(f,z({},m)),y=a==null?void 0:a.toolbar,v=Dn({elementType:y,externalSlotProps:s==null?void 0:s.toolbar,className:u.toolbar,ownerState:c}),w=Aet(v)&&y?k.jsx(y,z({},v)):null,C=i,E=a==null?void 0:a.tabs,I=r&&E?k.jsx(E,z({className:u.tabs},s==null?void 0:s.tabs)):null,O=(a==null?void 0:a.shortcuts)??Iet,P=Dn({elementType:O,externalSlotProps:s==null?void 0:s.shortcuts,className:u.shortcuts,ownerState:c}),R=r&&O?k.jsx(O,z({},P)):null;return{toolbar:w,content:C,tabs:I,actionBar:g,shortcuts:R,ownerState:c}},Ret=(e,t)=>{const{pickerOrientation:n}=t;return Me({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},jce,e)},zce=ae("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Pl.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape"},style:{[`& .${Pl.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Pl.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{pickerOrientation:"landscape",layoutDirection:"rtl"},style:{[`& .${Pl.toolbar}`]:{gridColumn:3}}},{props:{pickerOrientation:"portrait"},style:{[`& .${Pl.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Pl.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{pickerOrientation:"portrait",layoutDirection:"rtl"},style:{[`& .${Pl.shortcuts}`]:{gridColumn:3}}}]}),Vce=ae("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),Hce=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:i,tabs:a,actionBar:s,shortcuts:l,ownerState:c}=Bce(r),{orientation:u,variant:f}=qc(),{sx:h,className:m,classes:g}=r,y=Ret(g,c);return k.jsxs(zce,{ref:n,sx:h,className:fe(y.root,m),ownerState:c,children:[u==="landscape"?l:o,u==="landscape"?o:l,k.jsx(Vce,{className:y.contentWrapper,ownerState:c,children:f==="desktop"?k.jsxs(x.Fragment,{children:[i,a]}):k.jsxs(x.Fragment,{children:[a,i]})}),s]})});function Uce(e){const{steps:t}=e;return NYe({steps:t,isViewMatchingStep:(n,r)=>r.views==null||r.views.includes(n),onStepChange:({step:n,defaultView:r,setView:o,view:i,views:a})=>{const s=n.views==null?r:n.views.find(l=>a.includes(l));s!==i&&o(s)}})}const Det=["props","steps"],ket=["ownerState"],pV=e=>{var P;let{props:t,steps:n}=e,r=$e(e,Det);const{slots:o,slotProps:i,label:a,inputRef:s,localeText:l}=t,c=Uce({steps:n}),{providerProps:u,renderCurrentView:f,ownerState:h}=Fce(z({},r,{props:t,localeText:l,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:c})),m=u.privateContextValue.labelId,g=((P=i==null?void 0:i.toolbar)==null?void 0:P.hidden)??!1,y=o.field,v=Dn({elementType:y,externalSlotProps:i==null?void 0:i.field,additionalProps:z({},g&&{id:m}),ownerState:h}),w=$e(v,ket),C=o.layout??Hce;let E=m;g&&(a?E=`${m}-label`:E=void 0);const I=z({},i,{toolbar:z({},i==null?void 0:i.toolbar,{titleId:m}),popper:z({"aria-labelledby":E},i==null?void 0:i.popper)});return{renderPicker:()=>k.jsx(Gle,z({},u,{children:k.jsxs(Oce,{slots:o,slotProps:I,inputRef:s,children:[k.jsx(y,z({},w)),k.jsx(met,{slots:o,slotProps:I,children:k.jsx(C,z({},I==null?void 0:I.layout,{slots:o,slotProps:I,children:f()}))})]})}))}},Qs=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minDate:m,maxDate:g,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:w,reduceAnimations:C,onMonthChange:E,monthsPerRow:I,onYearChange:O,yearsOrder:P,yearsPerRow:R,slots:D,slotProps:M,loading:A,renderLoading:_,disableHighlightToday:N,readOnly:B,disabled:H,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:L,sx:V,autoFocus:W,fixedWeekNumber:K,displayWeekNumber:G,timezone:q})=>k.jsx(KZe,{view:e,onViewChange:t,views:n.filter(Uy),focusedView:r&&Uy(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minDate:m,maxDate:g,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:w,reduceAnimations:C,onMonthChange:E,monthsPerRow:I,onYearChange:O,yearsOrder:P,yearsPerRow:R,slots:D,slotProps:M,loading:A,renderLoading:_,disableHighlightToday:N,readOnly:B,disabled:H,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:L,sx:V,autoFocus:W,fixedWeekNumber:K,displayWeekNumber:G,timezone:q}),Gce=x.forwardRef(function(t,n){var l;const r=xn(),o=Lce(t,"MuiDesktopDatePicker"),i=z({day:Qs,month:Qs,year:Qs},o.viewRenderers),a=z({},o,{closeOnSelect:o.closeOnSelect??!0,viewRenderers:i,format:wS(r,o,!1),yearsPerRow:o.yearsPerRow??4,slots:z({field:Ice},o.slots),slotProps:z({},o.slotProps,{field:c=>{var u;return z({},Dc((u=o.slotProps)==null?void 0:u.field,c),Mv(o))},toolbar:z({hidden:!0},(l=o.slotProps)==null?void 0:l.toolbar)})}),{renderPicker:s}=pV({ref:n,props:a,valueManager:mo,valueType:"date",validator:Rv,steps:null});return s()});Gce.propTypes={autoFocus:U.bool,className:U.string,closeOnSelect:U.bool,dayOfWeekFormatter:U.func,defaultValue:U.object,disabled:U.bool,disableFuture:U.bool,disableHighlightToday:U.bool,disableOpenPicker:U.bool,disablePast:U.bool,displayWeekNumber:U.bool,enableAccessibleFieldDOMStructure:U.any,fixedWeekNumber:U.number,format:U.string,formatDensity:U.oneOf(["dense","spacious"]),inputRef:rv,label:U.node,loading:U.bool,localeText:U.object,maxDate:U.object,minDate:U.object,monthsPerRow:U.oneOf([3,4]),name:U.string,onAccept:U.func,onChange:U.func,onClose:U.func,onError:U.func,onMonthChange:U.func,onOpen:U.func,onSelectedSectionsChange:U.func,onViewChange:U.func,onYearChange:U.func,open:U.bool,openTo:U.oneOf(["day","month","year"]),orientation:U.oneOf(["landscape","portrait"]),readOnly:U.bool,reduceAnimations:U.bool,referenceDate:U.object,renderLoading:U.func,selectedSections:U.oneOfType([U.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),U.number]),shouldDisableDate:U.func,shouldDisableMonth:U.func,shouldDisableYear:U.func,showDaysOutsideCurrentMonth:U.bool,slotProps:U.object,slots:U.object,sx:U.oneOfType([U.arrayOf(U.oneOfType([U.func,U.object,U.bool])),U.func,U.object]),timezone:U.string,value:U.object,view:U.oneOf(["day","month","year"]),viewRenderers:U.shape({day:U.func,month:U.func,year:U.func}),views:U.arrayOf(U.oneOf(["day","month","year"]).isRequired),yearsOrder:U.oneOf(["asc","desc"]),yearsPerRow:U.oneOf([3,4])};const _et=ae(Ix)({[`& .${Q0.container}`]:{outline:0},[`& .${Q0.paper}`]:{outline:0,minWidth:zy}}),$et=ae(Ax)({"&:first-of-type":{padding:0}});function Net(e){const{children:t,slots:n,slotProps:r}=e,{open:o}=qc(),{dismissViews:i}=Ur(),a=(n==null?void 0:n.dialog)??_et,s=(n==null?void 0:n.mobileTransition)??hh;return k.jsx(a,z({open:o,onClose:i},r==null?void 0:r.dialog,{TransitionComponent:s,TransitionProps:r==null?void 0:r.mobileTransition,PaperComponent:n==null?void 0:n.mobilePaper,PaperProps:r==null?void 0:r.mobilePaper,children:k.jsx($et,{children:t})}))}const Let=["props","steps"],Fet=["ownerState"],hV=e=>{var P;let{props:t,steps:n}=e,r=$e(e,Let);const{slots:o,slotProps:i,label:a,inputRef:s,localeText:l}=t,c=Uce({steps:n}),{providerProps:u,renderCurrentView:f,ownerState:h}=Fce(z({},r,{props:t,localeText:l,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:c})),m=u.privateContextValue.labelId,g=((P=i==null?void 0:i.toolbar)==null?void 0:P.hidden)??!1,y=o.field,v=Dn({elementType:y,externalSlotProps:i==null?void 0:i.field,additionalProps:z({},g&&{id:m}),ownerState:h}),w=$e(v,Fet),C=o.layout??Hce;let E=m;g&&(a?E=`${m}-label`:E=void 0);const I=z({},i,{toolbar:z({},i==null?void 0:i.toolbar,{titleId:m}),mobilePaper:z({"aria-labelledby":E},i==null?void 0:i.mobilePaper)});return{renderPicker:()=>k.jsx(Gle,z({},u,{children:k.jsxs(Oce,{slots:o,slotProps:I,inputRef:s,children:[k.jsx(y,z({},w)),k.jsx(Net,{slots:o,slotProps:I,children:k.jsx(C,z({},I==null?void 0:I.layout,{slots:o,slotProps:I,children:f()}))})]})}))}},qce=x.forwardRef(function(t,n){var l;const r=xn(),o=Lce(t,"MuiMobileDatePicker"),i=z({day:Qs,month:Qs,year:Qs},o.viewRenderers),a=z({},o,{viewRenderers:i,format:wS(r,o,!1),slots:z({field:Ice},o.slots),slotProps:z({},o.slotProps,{field:c=>{var u;return z({},Dc((u=o.slotProps)==null?void 0:u.field,c),Mv(o))},toolbar:z({hidden:!1},(l=o.slotProps)==null?void 0:l.toolbar)})}),{renderPicker:s}=hV({ref:n,props:a,valueManager:mo,valueType:"date",validator:Rv,steps:null});return s()});qce.propTypes={autoFocus:U.bool,className:U.string,closeOnSelect:U.bool,dayOfWeekFormatter:U.func,defaultValue:U.object,disabled:U.bool,disableFuture:U.bool,disableHighlightToday:U.bool,disableOpenPicker:U.bool,disablePast:U.bool,displayWeekNumber:U.bool,enableAccessibleFieldDOMStructure:U.any,fixedWeekNumber:U.number,format:U.string,formatDensity:U.oneOf(["dense","spacious"]),inputRef:rv,label:U.node,loading:U.bool,localeText:U.object,maxDate:U.object,minDate:U.object,monthsPerRow:U.oneOf([3,4]),name:U.string,onAccept:U.func,onChange:U.func,onClose:U.func,onError:U.func,onMonthChange:U.func,onOpen:U.func,onSelectedSectionsChange:U.func,onViewChange:U.func,onYearChange:U.func,open:U.bool,openTo:U.oneOf(["day","month","year"]),orientation:U.oneOf(["landscape","portrait"]),readOnly:U.bool,reduceAnimations:U.bool,referenceDate:U.object,renderLoading:U.func,selectedSections:U.oneOfType([U.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),U.number]),shouldDisableDate:U.func,shouldDisableMonth:U.func,shouldDisableYear:U.func,showDaysOutsideCurrentMonth:U.bool,slotProps:U.object,slots:U.object,sx:U.oneOfType([U.arrayOf(U.oneOfType([U.func,U.object,U.bool])),U.func,U.object]),timezone:U.string,value:U.object,view:U.oneOf(["day","month","year"]),viewRenderers:U.shape({day:U.func,month:U.func,year:U.func}),views:U.arrayOf(U.oneOf(["day","month","year"]).isRequired),yearsOrder:U.oneOf(["asc","desc"]),yearsPerRow:U.oneOf([3,4])};const jet=["desktopModeMediaQuery"],Ih=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=nV}=r,i=$e(r,jet);return Tf(o,{defaultMatches:!0})?k.jsx(Gce,z({ref:n},i)):k.jsx(qce,z({ref:n},i))});function Bet(e){return qe("MuiPickersToolbarText",e)}const zet=Ke("MuiPickersToolbarText",["root"]),Vet=["className","classes","selected","value"],Het=e=>Me({root:["root"]},Bet,e),Uet=ae(at,{name:"MuiPickersToolbarText",slot:"Root"})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,"&[data-selected]":{color:(e.vars||e).palette.text.primary}})),mV=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiPickersToolbarText"}),{className:o,classes:i,selected:a,value:s}=r,l=$e(r,Vet),c=Het(i);return k.jsx(Uet,z({ref:n,className:fe(c.root,o),component:"span",ownerState:r},a&&{"data-selected":!0},l,{children:s}))}),Get=["align","className","classes","selected","typographyClassName","value","variant","width"],qet=e=>Me({root:["root"]},Nce,e),Wet=ae(ct,{name:"MuiPickersToolbarButton",slot:"Root"})({padding:0,minWidth:16,textTransform:"none"}),Ha=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:i,classes:a,selected:s,typographyClassName:l,value:c,variant:u,width:f}=r,h=$e(r,Get),m=qet(a);return k.jsx(Wet,z({variant:"text",ref:n,className:fe(m.root,i),ownerState:r},f?{sx:{width:f}}:{},h,{children:k.jsx(mV,{align:o,className:l,variant:u,value:c,selected:s})}))});function Ket(e){return qe("MuiTimePickerToolbar",e)}const ux=Ke("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),Yet=["ampm","ampmInClock","className","classes"],Qet=(e,t)=>{const{pickerOrientation:n,toolbarDirection:r}=t;return Me({root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n==="landscape"&&"hourMinuteLabelLandscape",r==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n==="landscape"&&"ampmLandscape"],ampmLabel:["ampmLabel"]},Ket,e)},Xet=ae(fV,{name:"MuiTimePickerToolbar",slot:"Root"})({}),Jet=ae(mV,{name:"MuiTimePickerToolbar",slot:"Separator"})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Zet=ae("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${ux.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${ux.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{pickerOrientation:"landscape"},style:{marginTop:"auto"}}]}),ett=ae("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${ux.ampmLabel}`]:t.ampmLabel},{[`&.${ux.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${ux.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:"landscape"},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"}}]});function ttt(e){const t=Pn({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,className:o,classes:i}=t,a=$e(t,Yet),s=xn(),l=Ei(),c=CP(),u=Qet(i,c),{value:f,setValue:h,disabled:m,readOnly:g,view:y,setView:v,views:w}=qc(),C=!!(n&&!r&&w.includes("hours")),{meridiemMode:E,handleMeridiemChange:I}=gP(f,n,R=>h(R,{changeImportance:"set"})),O=R=>s.isValid(f)?s.format(f,R):"--",P=k.jsx(Jet,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:u.separator});return k.jsxs(Xet,z({landscapeDirection:"row",toolbarTitle:l.timePickerToolbarTitle,ownerState:c,className:fe(u.root,o)},a,{children:[k.jsxs(Zet,{className:u.hourMinuteLabel,ownerState:c,children:[ug(w,"hours")&&k.jsx(Ha,{tabIndex:-1,variant:"h3",onClick:()=>v("hours"),selected:y==="hours",value:O(n?"hours12h":"hours24h")}),ug(w,["hours","minutes"])&&P,ug(w,"minutes")&&k.jsx(Ha,{tabIndex:-1,variant:"h3",onClick:()=>v("minutes"),selected:y==="minutes",value:O("minutes")}),ug(w,["minutes","seconds"])&&P,ug(w,"seconds")&&k.jsx(Ha,{variant:"h3",onClick:()=>v("seconds"),selected:y==="seconds",value:O("seconds")})]}),C&&k.jsxs(ett,{className:u.ampmSelection,ownerState:c,children:[k.jsx(Ha,{disableRipple:!0,variant:"subtitle2",selected:E==="am",typographyClassName:u.ampmLabel,value:_l(s,"am"),onClick:g?void 0:()=>I("am"),disabled:m}),k.jsx(Ha,{disableRipple:!0,variant:"subtitle2",selected:E==="pm",typographyClassName:u.ampmLabel,value:_l(s,"pm"),onClick:g?void 0:()=>I("pm"),disabled:m})]})]}))}function Wce(e,t){var s;const n=xn(),r=Pn({props:e,name:t}),o=mce(r),i=r.ampm??n.is12HourCycleInCurrentLocale(),a=x.useMemo(()=>{var l;return((l=r.localeText)==null?void 0:l.toolbarTitle)==null?r.localeText:z({},r.localeText,{timePickerToolbarTitle:r.localeText.toolbarTitle})},[r.localeText]);return z({},r,o,{ampm:i,localeText:a},Kz({views:r.views,openTo:r.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{slots:z({toolbar:ttt},r.slots),slotProps:z({},r.slotProps,{toolbar:z({ampm:i,ampmInClock:r.ampmInClock},(s=r.slotProps)==null?void 0:s.toolbar)})})}const X_=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minTime:m,maxTime:g,shouldDisableTime:y,minutesStep:v,ampm:w,ampmInClock:C,slots:E,slotProps:I,readOnly:O,disabled:P,sx:R,autoFocus:D,showViewSwitcher:M,disableIgnoringDatePartForTimeValidation:A,timezone:_})=>k.jsx(_Qe,{view:e,onViewChange:t,focusedView:n&&Th(n)?n:null,onFocusedViewChange:r,views:o.filter(Th),value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minTime:m,maxTime:g,shouldDisableTime:y,minutesStep:v,ampm:w,ampmInClock:C,slots:E,slotProps:I,readOnly:O,disabled:P,sx:R,autoFocus:D,showViewSwitcher:M,disableIgnoringDatePartForTimeValidation:A,timezone:_}),gV=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minTime:m,maxTime:g,shouldDisableTime:y,minutesStep:v,ampm:w,slots:C,slotProps:E,readOnly:I,disabled:O,sx:P,autoFocus:R,disableIgnoringDatePartForTimeValidation:D,timeSteps:M,skipDisabled:A,timezone:_})=>k.jsx(HQe,{view:e,onViewChange:t,focusedView:n&&Th(n)?n:null,onFocusedViewChange:r,views:o.filter(Th),value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minTime:m,maxTime:g,shouldDisableTime:y,minutesStep:v,ampm:w,slots:C,slotProps:E,readOnly:I,disabled:O,sx:P,autoFocus:R,disableIgnoringDatePartForTimeValidation:D,timeStep:M==null?void 0:M.minutes,skipDisabled:A,timezone:_}),Gy=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minTime:m,maxTime:g,shouldDisableTime:y,minutesStep:v,ampm:w,slots:C,slotProps:E,readOnly:I,disabled:O,sx:P,autoFocus:R,disableIgnoringDatePartForTimeValidation:D,timeSteps:M,skipDisabled:A,timezone:_})=>k.jsx(tXe,{view:e,onViewChange:t,focusedView:n&&Sg(n)?n:null,onFocusedViewChange:r,views:o.filter(Th),value:i,defaultValue:a,referenceDate:s,onChange:l,className:c,classes:u,disableFuture:f,disablePast:h,minTime:m,maxTime:g,shouldDisableTime:y,minutesStep:v,ampm:w,slots:C,slotProps:E,readOnly:I,disabled:O,sx:P,autoFocus:R,disableIgnoringDatePartForTimeValidation:D,timeSteps:M,skipDisabled:A,timezone:_}),ntt=["views","format"],Kce=(e,t,n)=>{let{views:r,format:o}=t,i=$e(t,ntt);if(o)return o;const a=[],s=[];if(r.forEach(u=>{Th(u)?s.push(u):Uy(u)&&a.push(u)}),s.length===0)return wS(e,z({views:a},i),!1);if(a.length===0)return fO(e,z({views:s},i));const l=fO(e,z({views:s},i));return`${wS(e,z({views:a},i),!1)} ${l}`},rtt=(e,t,n)=>n?t.filter(r=>!Sg(r)||r==="hours"):e?[...t,"meridiem"]:t,ott=(e,t)=>24*60/((e.hours??1)*(e.minutes??5))<=t;function Yce({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e??24,i=z({hours:1,minutes:5,seconds:5},n),a=ott(i,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:i,shouldRenderTimeInASingleColumn:a,views:rtt(t,r,a)}}const Qce=x.forwardRef(function(t,n){var y,v;const r=xn(),o=Wce(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:i,views:a,timeSteps:s}=Yce(o),l=i?gV:Gy,c=z({hours:l,minutes:l,seconds:l,meridiem:l},o.viewRenderers),u=o.ampmInClock??!0,h=((y=c.hours)==null?void 0:y.name)===Gy.name?a:a.filter(w=>w!=="meridiem"),m=z({},o,{ampmInClock:u,timeSteps:s,viewRenderers:c,format:fO(r,o),views:i?["hours"]:h,slots:z({field:Pce},o.slots),slotProps:z({},o.slotProps,{field:w=>{var C;return z({},Dc((C=o.slotProps)==null?void 0:C.field,w),Mv(o))},toolbar:z({hidden:!0,ampmInClock:u},(v=o.slotProps)==null?void 0:v.toolbar)})}),{renderPicker:g}=pV({ref:n,props:m,valueManager:mo,valueType:"time",validator:Rw,steps:null});return g()});Qce.propTypes={ampm:U.bool,ampmInClock:U.bool,autoFocus:U.bool,className:U.string,closeOnSelect:U.bool,defaultValue:U.object,disabled:U.bool,disableFuture:U.bool,disableIgnoringDatePartForTimeValidation:U.bool,disableOpenPicker:U.bool,disablePast:U.bool,enableAccessibleFieldDOMStructure:U.any,format:U.string,formatDensity:U.oneOf(["dense","spacious"]),inputRef:rv,label:U.node,localeText:U.object,maxTime:U.object,minTime:U.object,minutesStep:U.number,name:U.string,onAccept:U.func,onChange:U.func,onClose:U.func,onError:U.func,onOpen:U.func,onSelectedSectionsChange:U.func,onViewChange:U.func,open:U.bool,openTo:U.oneOf(["hours","meridiem","minutes","seconds"]),orientation:U.oneOf(["landscape","portrait"]),readOnly:U.bool,reduceAnimations:U.bool,referenceDate:U.object,selectedSections:U.oneOfType([U.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),U.number]),shouldDisableTime:U.func,skipDisabled:U.bool,slotProps:U.object,slots:U.object,sx:U.oneOfType([U.arrayOf(U.oneOfType([U.func,U.object,U.bool])),U.func,U.object]),thresholdToRenderTimeInASingleColumn:U.number,timeSteps:U.shape({hours:U.number,minutes:U.number,seconds:U.number}),timezone:U.string,value:U.object,view:U.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:U.shape({hours:U.func,meridiem:U.func,minutes:U.func,seconds:U.func}),views:U.arrayOf(U.oneOf(["hours","minutes","seconds"]).isRequired)};const Xce=x.forwardRef(function(t,n){var c;const r=xn(),o=Wce(t,"MuiMobileTimePicker"),i=z({hours:X_,minutes:X_,seconds:X_},o.viewRenderers),a=o.ampmInClock??!1,s=z({},o,{ampmInClock:a,viewRenderers:i,format:fO(r,o),slots:z({field:Pce},o.slots),slotProps:z({},o.slotProps,{field:u=>{var f;return z({},Dc((f=o.slotProps)==null?void 0:f.field,u),Mv(o))},toolbar:z({hidden:!1,ampmInClock:a},(c=o.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=hV({ref:n,props:s,valueManager:mo,valueType:"time",validator:Rw,steps:null});return l()});Xce.propTypes={ampm:U.bool,ampmInClock:U.bool,autoFocus:U.bool,className:U.string,closeOnSelect:U.bool,defaultValue:U.object,disabled:U.bool,disableFuture:U.bool,disableIgnoringDatePartForTimeValidation:U.bool,disableOpenPicker:U.bool,disablePast:U.bool,enableAccessibleFieldDOMStructure:U.any,format:U.string,formatDensity:U.oneOf(["dense","spacious"]),inputRef:rv,label:U.node,localeText:U.object,maxTime:U.object,minTime:U.object,minutesStep:U.number,name:U.string,onAccept:U.func,onChange:U.func,onClose:U.func,onError:U.func,onOpen:U.func,onSelectedSectionsChange:U.func,onViewChange:U.func,open:U.bool,openTo:U.oneOf(["hours","minutes","seconds"]),orientation:U.oneOf(["landscape","portrait"]),readOnly:U.bool,reduceAnimations:U.bool,referenceDate:U.object,selectedSections:U.oneOfType([U.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),U.number]),shouldDisableTime:U.func,slotProps:U.object,slots:U.object,sx:U.oneOfType([U.arrayOf(U.oneOfType([U.func,U.object,U.bool])),U.func,U.object]),timezone:U.string,value:U.object,view:U.oneOf(["hours","minutes","seconds"]),viewRenderers:U.shape({hours:U.func,minutes:U.func,seconds:U.func}),views:U.arrayOf(U.oneOf(["hours","minutes","seconds"]).isRequired)};const itt=["desktopModeMediaQuery"],HF=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:o=nV}=r,i=$e(r,itt);return Tf(o,{defaultMatches:!0})?k.jsx(Qce,z({ref:n},i)):k.jsx(Xce,z({ref:n},i))});function att(e){return qe("MuiDateTimePickerTabs",e)}Ke("MuiDateTimePickerTabs",["root"]);const stt=e=>Uy(e)?"date":"time",ltt=e=>e==="date"?"day":"hours",ctt=e=>Me({root:["root"]},att,e),utt=ae(Fne,{name:"MuiDateTimePickerTabs",slot:"Root"})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${mE.indicator}`]:{bottom:"auto",top:0}}})),dtt=function(t){const n=Pn({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=k.jsx(wYe,{}),timeIcon:o=k.jsx(CYe,{}),hidden:i=typeof window>"u"||window.innerHeight<667,className:a,classes:s,sx:l}=n,c=Ei(),{ownerState:u}=Ur(),{view:f,setView:h}=qc(),m=ctt(s),g=(y,v)=>{h(ltt(v))};return i?null:k.jsxs(utt,{ownerState:u,variant:"fullWidth",value:stt(f),onChange:g,className:fe(a,m.root),sx:l,children:[k.jsx(DN,{value:"date","aria-label":c.dateTableLabel,icon:k.jsx(x.Fragment,{children:r})}),k.jsx(DN,{value:"time","aria-label":c.timeTableLabel,icon:k.jsx(x.Fragment,{children:o})})]})};function ftt(e){return qe("MuiDateTimePickerToolbar",e)}const J_=Ke("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),ptt=["ampm","ampmInClock","toolbarFormat","toolbarPlaceholder","toolbarTitle","className","classes"],htt=(e,t)=>{const{pickerOrientation:n,toolbarDirection:r}=t;return Me({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",r==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",r==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",n==="landscape"&&"ampmLandscape"],ampmLabel:["ampmLabel"]},ftt,e)},mtt=ae(fV,{name:"MuiDateTimePickerToolbar",slot:"Root",shouldForwardProp:e=>Ca(e)&&e!=="toolbarVariant"})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",variants:[{props:{toolbarVariant:"desktop"},style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,[`& .${YZe.content} .${zet.root}[data-selected]`]:{color:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightBold}}},{props:{toolbarVariant:"desktop",pickerOrientation:"landscape"},style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:{toolbarVariant:"desktop",pickerOrientation:"portrait"},style:{paddingLeft:24,paddingRight:0}}]})),gtt=ae("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer"})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),ytt=ae("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",shouldForwardProp:e=>Ca(e)&&e!=="toolbarVariant"})({display:"flex",flexDirection:"row",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop",pickerOrientation:"portrait"},style:{gap:9,marginRight:4,alignSelf:"flex-end"}},{props:({pickerOrientation:e,toolbarVariant:t})=>e==="landscape"&&t!=="desktop",style:{flexDirection:"column"}},{props:({pickerOrientation:e,toolbarVariant:t,toolbarDirection:n})=>e==="landscape"&&t!=="desktop"&&n==="rtl",style:{flexDirection:"column-reverse"}}]}),vtt=ae("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",shouldForwardProp:e=>Ca(e)&&e!=="toolbarVariant"})({display:"flex",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop"},style:{gap:1.5}}]}),uX=ae(mV,{name:"MuiDateTimePickerToolbar",slot:"Separator",shouldForwardProp:e=>Ca(e)&&e!=="toolbarVariant"})({margin:"0 4px 0 2px",cursor:"default",variants:[{props:{toolbarVariant:"desktop"},style:{margin:0}}]}),btt=ae("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${J_.ampmLabel}`]:t.ampmLabel},{[`&.${J_.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${J_.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:"landscape"},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"}}]}),xtt=x.createContext(null);function Stt(e){const t=Pn({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,toolbarFormat:o,toolbarPlaceholder:i="––",toolbarTitle:a,className:s,classes:l}=t,c=$e(t,ptt),{value:u,setValue:f,disabled:h,readOnly:m,variant:g,orientation:y,view:v,setView:w,views:C}=qc(),E=Ei(),I=CP(),O=htt(l,I),P=xn(),R=x.useContext(xtt),D=R?R.value:u,M=R?R.setValue:f,A=R?R.view:v,_=R?R.setView:w,{meridiemMode:N,handleMeridiemChange:B}=gP(D,n,G=>M(G,{changeImportance:"set"})),H=R!=null&&R.forceDesktopVariant?"desktop":g,j=H==="desktop",L=!!(n&&!r),V=a??E.dateTimePickerToolbarTitle,W=x.useMemo(()=>P.isValid(D)?o?P.formatByString(D,o):P.format(D,"shortDate"):i,[D,o,i,P]),K=(G,q)=>P.isValid(D)?P.format(D,G):q;return k.jsxs(mtt,z({className:fe(O.root,s),toolbarTitle:V,toolbarVariant:H},c,{ownerState:I,children:[k.jsxs(gtt,{className:O.dateContainer,ownerState:I,children:[C.includes("year")&&k.jsx(Ha,{tabIndex:-1,variant:"subtitle1",onClick:()=>_("year"),selected:A==="year",value:K("year","–")}),C.includes("day")&&k.jsx(Ha,{tabIndex:-1,variant:j?"h5":"h4",onClick:()=>_("day"),selected:A==="day",value:W})]}),k.jsxs(ytt,{className:O.timeContainer,ownerState:I,toolbarVariant:H,children:[k.jsxs(vtt,{className:O.timeDigitsContainer,ownerState:I,toolbarVariant:H,children:[C.includes("hours")&&k.jsxs(x.Fragment,{children:[k.jsx(Ha,{variant:j?"h5":"h3",width:j&&y==="portrait"?z0:void 0,onClick:()=>_("hours"),selected:A==="hours",value:K(n?"hours12h":"hours24h","--")}),k.jsx(uX,{variant:j?"h5":"h3",value:":",className:O.separator,ownerState:I,toolbarVariant:H}),k.jsx(Ha,{variant:j?"h5":"h3",width:j&&y==="portrait"?z0:void 0,onClick:()=>_("minutes"),selected:A==="minutes"||!C.includes("minutes")&&A==="hours",value:K("minutes","--"),disabled:!C.includes("minutes")})]}),C.includes("seconds")&&k.jsxs(x.Fragment,{children:[k.jsx(uX,{variant:j?"h5":"h3",value:":",className:O.separator,ownerState:I,toolbarVariant:H}),k.jsx(Ha,{variant:j?"h5":"h3",width:j&&y==="portrait"?z0:void 0,onClick:()=>_("seconds"),selected:A==="seconds",value:K("seconds","--")})]})]}),L&&!j&&k.jsxs(btt,{className:O.ampmSelection,ownerState:I,children:[k.jsx(Ha,{variant:"subtitle2",selected:N==="am",typographyClassName:O.ampmLabel,value:_l(P,"am"),onClick:m?void 0:()=>B("am"),disabled:h}),k.jsx(Ha,{variant:"subtitle2",selected:N==="pm",typographyClassName:O.ampmLabel,value:_l(P,"pm"),onClick:m?void 0:()=>B("pm"),disabled:h})]}),n&&j&&k.jsx(Ha,{variant:"h5",onClick:()=>_("meridiem"),selected:A==="meridiem",value:D&&N?_l(P,N):"--",width:z0})]})]}))}function Jce(e,t){var m;const n=xn(),r=Pn({props:e,name:t}),o=gce(r),i=r.ampm??n.is12HourCycleInCurrentLocale(),a=x.useMemo(()=>{var g;return((g=r.localeText)==null?void 0:g.toolbarTitle)==null?r.localeText:z({},r.localeText,{dateTimePickerToolbarTitle:r.localeText.toolbarTitle})},[r.localeText]),{openTo:s,views:l}=Kz({views:r.views,openTo:r.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{shouldRenderTimeInASingleColumn:c,thresholdToRenderTimeInASingleColumn:u,views:f,timeSteps:h}=Yce({thresholdToRenderTimeInASingleColumn:r.thresholdToRenderTimeInASingleColumn,ampm:i,timeSteps:r.timeSteps,views:l});return z({},r,o,{timeSteps:h,openTo:s,shouldRenderTimeInASingleColumn:c,thresholdToRenderTimeInASingleColumn:u,views:f,ampm:i,localeText:a,orientation:r.orientation??"portrait",slots:z({toolbar:Stt,tabs:dtt},r.slots),slotProps:z({},r.slotProps,{toolbar:z({ampm:i},(m=r.slotProps)==null?void 0:m.toolbar)})})}const wtt=x.forwardRef(function(t,n){var g;const{toolbar:r,tabs:o,content:i,actionBar:a,shortcuts:s,ownerState:l}=Bce(t),{orientation:c}=qc(),{sx:u,className:f,classes:h}=t,m=a&&(((g=a.props.actions)==null?void 0:g.length)??0)>0;return k.jsxs(zce,{ref:n,className:fe(Pl.root,h==null?void 0:h.root,f),sx:[{[`& .${Pl.tabs}`]:{gridRow:4,gridColumn:"1 / 4"},[`& .${Pl.actionBar}`]:{gridRow:5}},...Array.isArray(u)?u:[u]],ownerState:l,children:[c==="landscape"?s:r,c==="landscape"?r:s,k.jsxs(Vce,{className:fe(Pl.contentWrapper,h==null?void 0:h.contentWrapper),ownerState:l,sx:{display:"grid"},children:[i,o,m&&k.jsx(ji,{sx:{gridRow:3,gridColumn:"1 / 4"}})]}),a]})}),Ctt=["openTo","focusedView","timeViewsCount"],Ett=function(t){var m,g;const{viewRenderers:n,popperView:r,rendererProps:o}=t,{openTo:i,focusedView:a,timeViewsCount:s}=o,l=$e(o,Ctt),c=z({},l,{focusedView:null,sx:[{[`&.${jF.root}`]:{borderBottom:0},[`&.${jF.root}, .${BF.root}, &.${FF.root}`]:{maxHeight:Vy}}]}),u=Sg(r),f=u?"day":r,h=u?r:"hours";return k.jsxs(x.Fragment,{children:[(m=n[f])==null?void 0:m.call(n,z({},o,{view:u?"day":r,focusedView:a&&Uy(a)?a:null,views:o.views.filter(Uy),sx:[{gridColumn:1},...c.sx]})),s>0&&k.jsxs(x.Fragment,{children:[k.jsx(ji,{orientation:"vertical",sx:{gridColumn:2}}),(g=n[h])==null?void 0:g.call(n,z({},c,{view:u?r:"hours",focusedView:a&&Sg(a)?a:null,openTo:Sg(i)?i:"hours",views:o.views.filter(Sg),sx:[{gridColumn:3},...c.sx]}))]})]})},Zce=x.forwardRef(function(t,n){var h,m,g;const r=xn(),o=Jce(t,"MuiDesktopDateTimePicker"),i=o.shouldRenderTimeInASingleColumn?gV:Gy,a=z({day:Qs,month:Qs,year:Qs,hours:i,minutes:i,seconds:i,meridiem:i},o.viewRenderers),s=o.ampmInClock??!0,c=((h=a.hours)==null?void 0:h.name)===Gy.name?o.views:o.views.filter(y=>y!=="meridiem"),u=z({},o,{viewRenderers:a,format:Kce(r,o),views:c,yearsPerRow:o.yearsPerRow??4,ampmInClock:s,slots:z({field:Ace,layout:wtt},o.slots),slotProps:z({},o.slotProps,{field:y=>{var v;return z({},Dc((v=o.slotProps)==null?void 0:v.field,y),Mv(o))},toolbar:z({hidden:!0,ampmInClock:s},(m=o.slotProps)==null?void 0:m.toolbar),tabs:z({hidden:!0},(g=o.slotProps)==null?void 0:g.tabs)})}),{renderPicker:f}=pV({ref:n,props:u,valueManager:mo,valueType:"date-time",validator:xP,rendererInterceptor:Ett,steps:null});return f()});Zce.propTypes={ampm:U.bool,ampmInClock:U.bool,autoFocus:U.bool,className:U.string,closeOnSelect:U.bool,dayOfWeekFormatter:U.func,defaultValue:U.object,disabled:U.bool,disableFuture:U.bool,disableHighlightToday:U.bool,disableIgnoringDatePartForTimeValidation:U.bool,disableOpenPicker:U.bool,disablePast:U.bool,displayWeekNumber:U.bool,enableAccessibleFieldDOMStructure:U.any,fixedWeekNumber:U.number,format:U.string,formatDensity:U.oneOf(["dense","spacious"]),inputRef:rv,label:U.node,loading:U.bool,localeText:U.object,maxDate:U.object,maxDateTime:U.object,maxTime:U.object,minDate:U.object,minDateTime:U.object,minTime:U.object,minutesStep:U.number,monthsPerRow:U.oneOf([3,4]),name:U.string,onAccept:U.func,onChange:U.func,onClose:U.func,onError:U.func,onMonthChange:U.func,onOpen:U.func,onSelectedSectionsChange:U.func,onViewChange:U.func,onYearChange:U.func,open:U.bool,openTo:U.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:U.oneOf(["landscape","portrait"]),readOnly:U.bool,reduceAnimations:U.bool,referenceDate:U.object,renderLoading:U.func,selectedSections:U.oneOfType([U.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),U.number]),shouldDisableDate:U.func,shouldDisableMonth:U.func,shouldDisableTime:U.func,shouldDisableYear:U.func,showDaysOutsideCurrentMonth:U.bool,skipDisabled:U.bool,slotProps:U.object,slots:U.object,sx:U.oneOfType([U.arrayOf(U.oneOfType([U.func,U.object,U.bool])),U.func,U.object]),thresholdToRenderTimeInASingleColumn:U.number,timeSteps:U.shape({hours:U.number,minutes:U.number,seconds:U.number}),timezone:U.string,value:U.object,view:U.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:U.shape({day:U.func,hours:U.func,meridiem:U.func,minutes:U.func,month:U.func,seconds:U.func,year:U.func}),views:U.arrayOf(U.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:U.oneOf(["asc","desc"]),yearsPerRow:U.oneOf([3,4])};const Ttt=[{views:Jle},{views:Wle}],eue=x.forwardRef(function(t,n){var h,m,g,y,v,w;const r=xn(),o=Jce(t,"MuiMobileDateTimePicker"),i=o.shouldRenderTimeInASingleColumn?gV:Gy,a=z({day:Qs,month:Qs,year:Qs,hours:i,minutes:i,seconds:i,meridiem:i},o.viewRenderers),s=o.ampmInClock??!1,c=((h=a.hours)==null?void 0:h.name)===Gy.name?o.views:o.views.filter(C=>C!=="meridiem"),u=z({},o,{viewRenderers:a,format:Kce(r,o),views:c,ampmInClock:s,slots:z({field:Ace},o.slots),slotProps:z({},o.slotProps,{field:C=>{var E;return z({},Dc((E=o.slotProps)==null?void 0:E.field,C),Mv(o))},toolbar:z({hidden:!1,ampmInClock:s},(m=o.slotProps)==null?void 0:m.toolbar),tabs:z({hidden:!1},(g=o.slotProps)==null?void 0:g.tabs),layout:z({},(y=o.slotProps)==null?void 0:y.layout,{sx:LQe([{[`& .${jF.root}`]:{width:zy},[`& .${BF.root}`]:{flex:1,maxHeight:Vy-1,[`.${BF.item}`]:{width:"auto"}},[`& .${FF.root}`]:{width:zy,maxHeight:Vy,flex:1,[`.${FF.item}`]:{justifyContent:"center"}}}],(w=(v=o.slotProps)==null?void 0:v.layout)==null?void 0:w.sx)})})}),{renderPicker:f}=hV({ref:n,props:u,valueManager:mo,valueType:"date-time",validator:xP,steps:Ttt});return f()});eue.propTypes={ampm:U.bool,ampmInClock:U.bool,autoFocus:U.bool,className:U.string,closeOnSelect:U.bool,dayOfWeekFormatter:U.func,defaultValue:U.object,disabled:U.bool,disableFuture:U.bool,disableHighlightToday:U.bool,disableIgnoringDatePartForTimeValidation:U.bool,disableOpenPicker:U.bool,disablePast:U.bool,displayWeekNumber:U.bool,enableAccessibleFieldDOMStructure:U.any,fixedWeekNumber:U.number,format:U.string,formatDensity:U.oneOf(["dense","spacious"]),inputRef:rv,label:U.node,loading:U.bool,localeText:U.object,maxDate:U.object,maxDateTime:U.object,maxTime:U.object,minDate:U.object,minDateTime:U.object,minTime:U.object,minutesStep:U.number,monthsPerRow:U.oneOf([3,4]),name:U.string,onAccept:U.func,onChange:U.func,onClose:U.func,onError:U.func,onMonthChange:U.func,onOpen:U.func,onSelectedSectionsChange:U.func,onViewChange:U.func,onYearChange:U.func,open:U.bool,openTo:U.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:U.oneOf(["landscape","portrait"]),readOnly:U.bool,reduceAnimations:U.bool,referenceDate:U.object,renderLoading:U.func,selectedSections:U.oneOfType([U.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),U.number]),shouldDisableDate:U.func,shouldDisableMonth:U.func,shouldDisableTime:U.func,shouldDisableYear:U.func,showDaysOutsideCurrentMonth:U.bool,skipDisabled:U.bool,slotProps:U.object,slots:U.object,sx:U.oneOfType([U.arrayOf(U.oneOfType([U.func,U.object,U.bool])),U.func,U.object]),thresholdToRenderTimeInASingleColumn:U.number,timeSteps:U.shape({hours:U.number,minutes:U.number,seconds:U.number}),timezone:U.string,value:U.object,view:U.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:U.shape({day:U.func,hours:U.func,meridiem:U.func,minutes:U.func,month:U.func,seconds:U.func,year:U.func}),views:U.arrayOf(U.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:U.oneOf(["asc","desc"]),yearsPerRow:U.oneOf([3,4])};const Ott=["desktopModeMediaQuery"],Itt=x.forwardRef(function(t,n){const r=Pn({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=nV}=r,i=$e(r,Ott);return Tf(o,{defaultMatches:!0})?k.jsx(Zce,z({ref:n},i)):k.jsx(eue,z({ref:n},i))}),Ptt={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyyy:{sectionType:"year",contentType:"digit",maxLength:4},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",c:{sectionType:"weekDay",contentType:"digit",maxLength:1},ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:2},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},Att={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",dayOfMonthFull:"d",weekday:"cccc",weekdayShort:"ccccc",hours24h:"HH",hours12h:"hh",meridiem:"a",minutes:"mm",seconds:"ss",fullDate:"DD",keyboardDate:"D",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",fullTime12h:"hh:mm a",fullTime24h:"HH:mm",keyboardDateTime12h:"D hh:mm a",keyboardDateTime24h:"D T"};class zl{constructor({locale:t,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="luxon",this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"'",end:"'"},this.formatTokenMap=Ptt,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale?r:r.setLocale(o)},this.date=(r,o="default")=>r===null?null:typeof r>"u"?xt.fromJSDate(new Date,{locale:this.locale,zone:o}):xt.fromISO(r,{locale:this.locale,zone:o}),this.getInvalidDate=()=>xt.fromJSDate(new Date("Invalid Date")),this.getTimezone=r=>r.zone.type==="system"?"system":r.zoneName,this.setTimezone=(r,o)=>r.zone.equals($0.normalizeZone(o))?r:r.setZone(o),this.toJsDate=r=>r.toJSDate(),this.parse=(r,o)=>r===""?null:xt.fromFormat(r,o,{locale:this.locale}),this.getCurrentLocaleCode=()=>this.locale,this.is12HourCycleInCurrentLocale=()=>{var r,o;return typeof Intl>"u"||typeof Intl.DateTimeFormat>"u"?!0:!!((o=(r=new Intl.DateTimeFormat(this.locale,{hour:"numeric"}))==null?void 0:r.resolvedOptions())!=null&&o.hour12)},this.expandFormat=r=>{const o=/''|'(''|[^'])+('|$)|[^']*/g,i=[...Object.keys(this.formatTokenMap),"yyyyy"],a=new RegExp(`^(${i.join("|")})+$`),s=/(?:^|[^a-z])([a-z]+)(?:[^a-z]|$)|([a-z]+)/gi;return r.match(o).map(l=>l[0]==="'"?l:xt.expandFormat(l,{locale:this.locale}).replace(s,(f,h,m)=>{const g=h||m;return a.test(g)?f:`'${f}'`})).join("").replace("yyyyy","yyyy")},this.isValid=r=>r===null?!1:r.isValid,this.format=(r,o)=>this.formatByString(r,this.formats[o]),this.formatByString=(r,o)=>r.setLocale(this.locale).toFormat(o),this.formatNumber=r=>r,this.isEqual=(r,o)=>r===null&&o===null?!0:r===null||o===null?!1:+r==+o,this.isSameYear=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.hasSame(i,"year")},this.isSameMonth=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.hasSame(i,"month")},this.isSameDay=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.hasSame(i,"day")},this.isSameHour=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.hasSame(i,"hour")},this.isAfter=(r,o)=>r>o,this.isAfterYear=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.diff(this.endOfYear(i),"years").toObject().years>0},this.isAfterDay=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.diff(this.endOfDay(i),"days").toObject().days>0},this.isBefore=(r,o)=>r{const i=this.setTimezone(o,this.getTimezone(r));return r.diff(this.startOfYear(i),"years").toObject().years<0},this.isBeforeDay=(r,o)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.diff(this.startOfDay(i),"days").toObject().days<0},this.isWithinRange=(r,[o,i])=>this.isEqual(r,o)||this.isEqual(r,i)||this.isAfter(r,o)&&this.isBefore(r,i),this.startOfYear=r=>r.startOf("year"),this.startOfMonth=r=>r.startOf("month"),this.startOfWeek=r=>this.setLocaleToValue(r).startOf("week",{useLocaleWeeks:!0}),this.startOfDay=r=>r.startOf("day"),this.endOfYear=r=>r.endOf("year"),this.endOfMonth=r=>r.endOf("month"),this.endOfWeek=r=>this.setLocaleToValue(r).endOf("week",{useLocaleWeeks:!0}),this.endOfDay=r=>r.endOf("day"),this.addYears=(r,o)=>r.plus({years:o}),this.addMonths=(r,o)=>r.plus({months:o}),this.addWeeks=(r,o)=>r.plus({weeks:o}),this.addDays=(r,o)=>r.plus({days:o}),this.addHours=(r,o)=>r.plus({hours:o}),this.addMinutes=(r,o)=>r.plus({minutes:o}),this.addSeconds=(r,o)=>r.plus({seconds:o}),this.getYear=r=>r.get("year"),this.getMonth=r=>r.get("month")-1,this.getDate=r=>r.get("day"),this.getHours=r=>r.get("hour"),this.getMinutes=r=>r.get("minute"),this.getSeconds=r=>r.get("second"),this.getMilliseconds=r=>r.get("millisecond"),this.setYear=(r,o)=>r.set({year:o}),this.setMonth=(r,o)=>r.set({month:o+1}),this.setDate=(r,o)=>r.set({day:o}),this.setHours=(r,o)=>r.set({hour:o}),this.setMinutes=(r,o)=>r.set({minute:o}),this.setSeconds=(r,o)=>r.set({second:o}),this.setMilliseconds=(r,o)=>r.set({millisecond:o}),this.getDaysInMonth=r=>r.daysInMonth,this.getWeekArray=r=>{const o=this.startOfWeek(this.startOfMonth(r)),i=this.endOfWeek(this.endOfMonth(r)),{days:a}=i.diff(o,"days").toObject(),s=[];return new Array(Math.round(a)).fill(0).map((l,c)=>c).map(l=>o.plus({days:l})).forEach((l,c)=>{if(c===0||c%7===0&&c>6){s.push([l]);return}s[s.length-1].push(l)}),s},this.getWeekNumber=r=>r.localWeekNumber??r.weekNumber,this.getDayOfWeek=r=>r.weekday,this.getYearRange=([r,o])=>{const i=this.startOfYear(r),a=this.endOfYear(o),s=[];let l=i;for(;this.isBefore(l,a);)s.push(l),l=this.addYears(l,1);return s},this.locale=t||"en-US",this.formats=z({},Att,n)}}const yV=Ot(k.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}));var Mtt=aae();const tue=Gn(Mtt);function vV({callback:e,initialIngredient:t}){const n=t?{value:t,data:{id:-1,name:t,image:null,image_thumbnail:null}}:null,[r,o]=x.useState(!0),[i,a]=x.useState(n),[s,l]=x.useState(""),[c,u]=x.useState([]),[f,h]=je(),m=x.useMemo(()=>tue(g=>kNe(g,h.language,r).then(y=>u(y)),200),[h.language,r]);return x.useEffect(()=>{if(s===""){u(i?[i]:[]);return}return m(s),()=>{m.cancel()}},[i,s,m]),Q(Ft,{children:[S(_c,{id:"ingredient-autocomplete",getOptionLabel:g=>g.value,"data-testid":"autocomplete",filterOptions:g=>g,options:c,autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,value:i,noOptionsText:f("noResults"),isOptionEqualToValue:(g,y)=>g.value===y.value,onChange:(g,y)=>{u(y?[y,...c]:c),a(y),e(y)},onInputChange:(g,y)=>{l(y)},renderInput:g=>S(dn,{...g,label:f("nutrition.searchIngredientName"),fullWidth:!0,slotProps:{input:{...g.InputProps,startAdornment:Q(Tt,{children:[S(So,{position:"start",children:S(yV,{})}),g.InputProps.startAdornment]})}}}),renderOption:(g,y)=>Sx("li",{...g,key:`ingredient-${y.data.id}`},Q(Co,{disablePadding:!0,component:"div",children:[S(nl,{children:S(Kl,{alt:"",src:`${wB}${y.data.image}`,variant:"rounded",children:S(Ju,{})})}),S(Wr,{primary:y.value,slotProps:{primary:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}})]}))}),h.language!==uy&&S(Mx,{children:S(os,{control:S(qo,{checked:r,onChange:(g,y)=>o(y)}),label:f("alsoSearchEnglish")})})]})}var Rtt=function(t){return Dtt(t)&&!ktt(t)};function Dtt(e){return!!e&&typeof e=="object"}function ktt(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Ntt(e)}var _tt=typeof Symbol=="function"&&Symbol.for,$tt=_tt?Symbol.for("react.element"):60103;function Ntt(e){return e.$$typeof===$tt}function Ltt(e){return Array.isArray(e)?[]:{}}function gO(e,t){return t.clone!==!1&&t.isMergeableObject(e)?CS(Ltt(e),e,t):e}function Ftt(e,t,n){return e.concat(t).map(function(r){return gO(r,n)})}function jtt(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(o){r[o]=gO(e[o],n)}),Object.keys(t).forEach(function(o){!n.isMergeableObject(t[o])||!e[o]?r[o]=gO(t[o],n):r[o]=CS(e[o],t[o],n)}),r}function CS(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Ftt,n.isMergeableObject=n.isMergeableObject||Rtt;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):jtt(e,t,n):gO(t,n)}CS.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return CS(r,o,n)},{})};var UF=CS,nue=typeof global=="object"&&global&&global.Object===Object&&global,Btt=typeof self=="object"&&self&&self.Object===Object&&self,Wc=nue||Btt||Function("return this")(),Mf=Wc.Symbol,rue=Object.prototype,ztt=rue.hasOwnProperty,Vtt=rue.toString,g0=Mf?Mf.toStringTag:void 0;function Htt(e){var t=ztt.call(e,g0),n=e[g0];try{e[g0]=void 0;var r=!0}catch{}var o=Vtt.call(e);return r&&(t?e[g0]=n:delete e[g0]),o}var Utt=Object.prototype,Gtt=Utt.toString;function qtt(e){return Gtt.call(e)}var Wtt="[object Null]",Ktt="[object Undefined]",dX=Mf?Mf.toStringTag:void 0;function Yh(e){return e==null?e===void 0?Ktt:Wtt:dX&&dX in Object(e)?Htt(e):qtt(e)}function oue(e,t){return function(n){return e(t(n))}}var bV=oue(Object.getPrototypeOf,Object);function Qh(e){return e!=null&&typeof e=="object"}var Ytt="[object Object]",Qtt=Function.prototype,Xtt=Object.prototype,iue=Qtt.toString,Jtt=Xtt.hasOwnProperty,Ztt=iue.call(Object);function fX(e){if(!Qh(e)||Yh(e)!=Ytt)return!1;var t=bV(e);if(t===null)return!0;var n=Jtt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&iue.call(n)==Ztt}function ent(){this.__data__=[],this.size=0}function aue(e,t){return e===t||e!==e&&t!==t}function EP(e,t){for(var n=e.length;n--;)if(aue(e[n][0],t))return n;return-1}var tnt=Array.prototype,nnt=tnt.splice;function rnt(e){var t=this.__data__,n=EP(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():nnt.call(t,n,1),--this.size,!0}function ont(e){var t=this.__data__,n=EP(t,e);return n<0?void 0:t[n][1]}function int(e){return EP(this.__data__,e)>-1}function ant(e,t){var n=this.__data__,r=EP(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function od(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=art}var srt="[object Arguments]",lrt="[object Array]",crt="[object Boolean]",urt="[object Date]",drt="[object Error]",frt="[object Function]",prt="[object Map]",hrt="[object Number]",mrt="[object Object]",grt="[object RegExp]",yrt="[object Set]",vrt="[object String]",brt="[object WeakMap]",xrt="[object ArrayBuffer]",Srt="[object DataView]",wrt="[object Float32Array]",Crt="[object Float64Array]",Ert="[object Int8Array]",Trt="[object Int16Array]",Ort="[object Int32Array]",Irt="[object Uint8Array]",Prt="[object Uint8ClampedArray]",Art="[object Uint16Array]",Mrt="[object Uint32Array]",Br={};Br[wrt]=Br[Crt]=Br[Ert]=Br[Trt]=Br[Ort]=Br[Irt]=Br[Prt]=Br[Art]=Br[Mrt]=!0;Br[srt]=Br[lrt]=Br[xrt]=Br[crt]=Br[Srt]=Br[urt]=Br[drt]=Br[frt]=Br[prt]=Br[hrt]=Br[mrt]=Br[grt]=Br[yrt]=Br[vrt]=Br[brt]=!1;function Rrt(e){return Qh(e)&&pue(e.length)&&!!Br[Yh(e)]}function xV(e){return function(t){return e(t)}}var hue=typeof exports=="object"&&exports&&!exports.nodeType&&exports,dx=hue&&typeof module=="object"&&module&&!module.nodeType&&module,Drt=dx&&dx.exports===hue,e$=Drt&&nue.process,qy=function(){try{var e=dx&&dx.require&&dx.require("util").types;return e||e$&&e$.binding&&e$.binding("util")}catch{}}(),vX=qy&&qy.isTypedArray,krt=vX?xV(vX):Rrt,_rt=Object.prototype,$rt=_rt.hasOwnProperty;function mue(e,t){var n=_w(e),r=!n&&Znt(e),o=!n&&!r&&fue(e),i=!n&&!r&&!o&&krt(e),a=n||r||o||i,s=a?Ynt(e.length,String):[],l=s.length;for(var c in e)(t||$rt.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||irt(c,l)))&&s.push(c);return s}var Nrt=Object.prototype;function SV(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Nrt;return e===n}var Lrt=oue(Object.keys,Object),Frt=Object.prototype,jrt=Frt.hasOwnProperty;function Brt(e){if(!SV(e))return Lrt(e);var t=[];for(var n in Object(e))jrt.call(e,n)&&n!="constructor"&&t.push(n);return t}function gue(e){return e!=null&&pue(e.length)&&!sue(e)}function wV(e){return gue(e)?mue(e):Brt(e)}function zrt(e,t){return e&&OP(t,wV(t),e)}function Vrt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Hrt=Object.prototype,Urt=Hrt.hasOwnProperty;function Grt(e){if(!kw(e))return Vrt(e);var t=SV(e),n=[];for(var r in e)r=="constructor"&&(t||!Urt.call(e,r))||n.push(r);return n}function CV(e){return gue(e)?mue(e,!0):Grt(e)}function qrt(e,t){return e&&OP(t,CV(t),e)}var yue=typeof exports=="object"&&exports&&!exports.nodeType&&exports,bX=yue&&typeof module=="object"&&module&&!module.nodeType&&module,Wrt=bX&&bX.exports===yue,xX=Wrt?Wc.Buffer:void 0,SX=xX?xX.allocUnsafe:void 0;function Krt(e,t){if(t)return e.slice();var n=e.length,r=SX?SX(n):new e.constructor(n);return e.copy(r),r}function vue(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0)&&(n[o]=e[o]);return n}function FX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var IP=x.createContext(void 0);IP.displayName="FormikContext";var Dit=IP.Provider,kit=IP.Consumer;function AV(){var e=x.useContext(IP);return e}var jX=function(t){return Array.isArray(t)&&t.length===0},ya=function(t){return typeof t=="function"},kv=function(t){return t!==null&&typeof t=="object"},_it=function(t){return String(Math.floor(Number(t)))===t},n$=function(t){return Object.prototype.toString.call(t)==="[object String]"},Aue=function(t){return x.Children.count(t)===0},r$=function(t){return kv(t)&&ya(t.then)};function ti(e,t,n,r){r===void 0&&(r=0);for(var o=Pue(t);e&&r=0?[]:{}}}return(i===0?e:o)[a[i]]===n?e:(n===void 0?delete o[a[i]]:o[a[i]]=n,i===0&&n===void 0&&delete r[a[i]],r)}function Mue(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var o=0,i=Object.keys(e);o0?Te.map(function(Ve){return A(Ve,ti(te,Ve))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(De).then(function(Ve){return Ve.reduce(function(We,rt,ut){return rt==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||rt&&(We=Mc(We,Te[ut],rt)),We},{})})},[A]),N=x.useCallback(function(te){return Promise.all([_(te),h.validationSchema?M(te):{},h.validate?D(te):{}]).then(function(Te){var De=Te[0],Ve=Te[1],We=Te[2],rt=UF.all([De,Ve,We],{arrayMerge:jit});return rt})},[h.validate,h.validationSchema,_,D,M]),B=As(function(te){return te===void 0&&(te=P.values),R({type:"SET_ISVALIDATING",payload:!0}),N(te).then(function(Te){return w.current&&(R({type:"SET_ISVALIDATING",payload:!1}),R({type:"SET_ERRORS",payload:Te})),Te})});x.useEffect(function(){a&&w.current===!0&&Gd(m.current,h.initialValues)&&B(m.current)},[a,B]);var H=x.useCallback(function(te){var Te=te&&te.values?te.values:m.current,De=te&&te.errors?te.errors:g.current?g.current:h.initialErrors||{},Ve=te&&te.touched?te.touched:y.current?y.current:h.initialTouched||{},We=te&&te.status?te.status:v.current?v.current:h.initialStatus;m.current=Te,g.current=De,y.current=Ve,v.current=We;var rt=function(){R({type:"RESET_FORM",payload:{isSubmitting:!!te&&!!te.isSubmitting,errors:De,touched:Ve,status:We,values:Te,isValidating:!!te&&!!te.isValidating,submitCount:te&&te.submitCount&&typeof te.submitCount=="number"?te.submitCount:0}})};if(h.onReset){var ut=h.onReset(P.values,ue);r$(ut)?ut.then(rt):rt()}else rt()},[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]);x.useEffect(function(){w.current===!0&&!Gd(m.current,h.initialValues)&&c&&(m.current=h.initialValues,H(),a&&B(m.current))},[c,h.initialValues,H,a,B]),x.useEffect(function(){c&&w.current===!0&&!Gd(g.current,h.initialErrors)&&(g.current=h.initialErrors||wp,R({type:"SET_ERRORS",payload:h.initialErrors||wp}))},[c,h.initialErrors]),x.useEffect(function(){c&&w.current===!0&&!Gd(y.current,h.initialTouched)&&(y.current=h.initialTouched||Y1,R({type:"SET_TOUCHED",payload:h.initialTouched||Y1}))},[c,h.initialTouched]),x.useEffect(function(){c&&w.current===!0&&!Gd(v.current,h.initialStatus)&&(v.current=h.initialStatus,R({type:"SET_STATUS",payload:h.initialStatus}))},[c,h.initialStatus,h.initialTouched]);var j=As(function(te){if(C.current[te]&&ya(C.current[te].validate)){var Te=ti(P.values,te),De=C.current[te].validate(Te);return r$(De)?(R({type:"SET_ISVALIDATING",payload:!0}),De.then(function(Ve){return Ve}).then(function(Ve){R({type:"SET_FIELD_ERROR",payload:{field:te,value:Ve}}),R({type:"SET_ISVALIDATING",payload:!1})})):(R({type:"SET_FIELD_ERROR",payload:{field:te,value:De}}),Promise.resolve(De))}else if(h.validationSchema)return R({type:"SET_ISVALIDATING",payload:!0}),M(P.values,te).then(function(Ve){return Ve}).then(function(Ve){R({type:"SET_FIELD_ERROR",payload:{field:te,value:ti(Ve,te)}}),R({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),L=x.useCallback(function(te,Te){var De=Te.validate;C.current[te]={validate:De}},[]),V=x.useCallback(function(te){delete C.current[te]},[]),W=As(function(te,Te){R({type:"SET_TOUCHED",payload:te});var De=Te===void 0?o:Te;return De?B(P.values):Promise.resolve()}),K=x.useCallback(function(te){R({type:"SET_ERRORS",payload:te})},[]),G=As(function(te,Te){var De=ya(te)?te(P.values):te;R({type:"SET_VALUES",payload:De});var Ve=Te===void 0?n:Te;return Ve?B(De):Promise.resolve()}),q=x.useCallback(function(te,Te){R({type:"SET_FIELD_ERROR",payload:{field:te,value:Te}})},[]),Y=As(function(te,Te,De){R({type:"SET_FIELD_VALUE",payload:{field:te,value:Te}});var Ve=De===void 0?n:De;return Ve?B(Mc(P.values,te,Te)):Promise.resolve()}),Z=x.useCallback(function(te,Te){var De=Te,Ve=te,We;if(!n$(te)){te.persist&&te.persist();var rt=te.target?te.target:te.currentTarget,ut=rt.type,Be=rt.name,et=rt.id,Le=rt.value,It=rt.checked;rt.outerHTML;var Lt=rt.options,nt=rt.multiple;De=Te||Be||et,Ve=/number|range/.test(ut)?(We=parseFloat(Le),isNaN(We)?"":We):/checkbox/.test(ut)?zit(ti(P.values,De),It,Le):Lt&&nt?Bit(Lt):Le}De&&Y(De,Ve)},[Y,P.values]),ie=As(function(te){if(n$(te))return function(Te){return Z(Te,te)};Z(te)}),se=As(function(te,Te,De){Te===void 0&&(Te=!0),R({type:"SET_FIELD_TOUCHED",payload:{field:te,value:Te}});var Ve=De===void 0?o:De;return Ve?B(P.values):Promise.resolve()}),ce=x.useCallback(function(te,Te){te.persist&&te.persist();var De=te.target,Ve=De.name,We=De.id;De.outerHTML;var rt=Te||Ve||We;se(rt,!0)},[se]),ye=As(function(te){if(n$(te))return function(Te){return ce(Te,te)};ce(te)}),Se=x.useCallback(function(te){ya(te)?R({type:"SET_FORMIK_STATE",payload:te}):R({type:"SET_FORMIK_STATE",payload:function(){return te}})},[]),ne=x.useCallback(function(te){R({type:"SET_STATUS",payload:te})},[]),le=x.useCallback(function(te){R({type:"SET_ISSUBMITTING",payload:te})},[]),de=As(function(){return R({type:"SUBMIT_ATTEMPT"}),B().then(function(te){var Te=te instanceof Error,De=!Te&&Object.keys(te).length===0;if(De){var Ve;try{if(Ve=pe(),Ve===void 0)return}catch(We){throw We}return Promise.resolve(Ve).then(function(We){return w.current&&R({type:"SUBMIT_SUCCESS"}),We}).catch(function(We){if(w.current)throw R({type:"SUBMIT_FAILURE"}),We})}else if(w.current&&(R({type:"SUBMIT_FAILURE"}),Te))throw te})}),oe=As(function(te){te&&te.preventDefault&&ya(te.preventDefault)&&te.preventDefault(),te&&te.stopPropagation&&ya(te.stopPropagation)&&te.stopPropagation(),de().catch(function(Te){console.warn("Warning: An unhandled error was caught from submitForm()",Te)})}),ue={resetForm:H,validateForm:B,validateField:j,setErrors:K,setFieldError:q,setFieldTouched:se,setFieldValue:Y,setStatus:ne,setSubmitting:le,setTouched:W,setValues:G,setFormikState:Se,submitForm:de},pe=As(function(){return u(P.values,ue)}),Ee=As(function(te){te&&te.preventDefault&&ya(te.preventDefault)&&te.preventDefault(),te&&te.stopPropagation&&ya(te.stopPropagation)&&te.stopPropagation(),H()}),xe=x.useCallback(function(te){return{value:ti(P.values,te),error:ti(P.errors,te),touched:!!ti(P.touched,te),initialValue:ti(m.current,te),initialTouched:!!ti(y.current,te),initialError:ti(g.current,te)}},[P.errors,P.touched,P.values]),Re=x.useCallback(function(te){return{setValue:function(De,Ve){return Y(te,De,Ve)},setTouched:function(De,Ve){return se(te,De,Ve)},setError:function(De){return q(te,De)}}},[Y,se,q]),he=x.useCallback(function(te){var Te=kv(te),De=Te?te.name:te,Ve=ti(P.values,De),We={name:De,value:Ve,onChange:ie,onBlur:ye};if(Te){var rt=te.type,ut=te.value,Be=te.as,et=te.multiple;rt==="checkbox"?ut===void 0?We.checked=!!Ve:(We.checked=!!(Array.isArray(Ve)&&~Ve.indexOf(ut)),We.value=ut):rt==="radio"?(We.checked=Ve===ut,We.value=ut):Be==="select"&&et&&(We.value=We.value||[],We.multiple=!0)}return We},[ye,ie,P.values]),Pe=x.useMemo(function(){return!Gd(m.current,P.values)},[m.current,P.values]),ve=x.useMemo(function(){return typeof s<"u"?Pe?P.errors&&Object.keys(P.errors).length===0:s!==!1&&ya(s)?s(h):s:P.errors&&Object.keys(P.errors).length===0},[s,Pe,P.errors,h]),Ie=fo({},P,{initialValues:m.current,initialErrors:g.current,initialTouched:y.current,initialStatus:v.current,handleBlur:ye,handleChange:ie,handleReset:Ee,handleSubmit:oe,resetForm:H,setErrors:K,setFormikState:Se,setFieldTouched:se,setFieldValue:Y,setFieldError:q,setStatus:ne,setSubmitting:le,setTouched:W,setValues:G,submitForm:de,validateForm:B,validateField:j,isValid:ve,dirty:Pe,unregisterField:V,registerField:L,getFieldProps:he,getFieldMeta:xe,getFieldHelpers:Re,validateOnBlur:o,validateOnChange:n,validateOnMount:a});return Ie}function Ti(e){var t=Nit(e),n=e.component,r=e.children,o=e.render,i=e.innerRef;return x.useImperativeHandle(i,function(){return t}),x.createElement(Dit,{value:t},n?x.createElement(n,t):o?o(t):r?ya(r)?r(t):Aue(r)?null:x.Children.only(r):null)}function Lit(e){var t={};if(e.inner){if(e.inner.length===0)return Mc(t,e.path,e.message);for(var o=e.inner,n=Array.isArray(o),r=0,o=n?o:o[Symbol.iterator]();;){var i;if(n){if(r>=o.length)break;i=o[r++]}else{if(r=o.next(),r.done)break;i=r.value}var a=i;ti(t,a.path)||(t=Mc(t,a.path,a.message))}}return t}function Fit(e,t,n,r){n===void 0&&(n=!1);var o=YF(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:o})}function YF(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(o){return Array.isArray(o)===!0||fX(o)?YF(o):o!==""?o:void 0}):fX(e[r])?t[r]=YF(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function jit(e,t,n){var r=e.slice();return t.forEach(function(i,a){if(typeof r[a]>"u"){var s=n.clone!==!1,l=s&&n.isMergeableObject(i);r[a]=l?UF(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[a]=UF(e[a],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function Bit(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function zit(e,t,n){if(typeof e=="boolean")return!!t;var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),o=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}var Vit=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?x.useLayoutEffect:x.useEffect;function As(e){var t=x.useRef(e);return Vit(function(){t.current=e}),x.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;or?o:r},0);return Array.from(fo({},t,{length:n+1}))}else return[]},BX=function(t,n){var r=typeof t=="function"?t:n;return function(o){if(Array.isArray(o)||kv(o)){var i=Ah(o);return r(i)}return o}},Rue=function(e){Rit(t,e);function t(r){var o;return o=e.call(this,r)||this,o.updateArrayField=function(i,a,s){var l=o.props,c=l.name,u=l.formik.setFormikState;u(function(f){var h=BX(s,i),m=BX(a,i),g=Mc(f.values,c,i(ti(f.values,c))),y=s?h(ti(f.errors,c)):void 0,v=a?m(ti(f.touched,c)):void 0;return jX(y)&&(y=void 0),jX(v)&&(v=void 0),fo({},f,{values:g,errors:s?Mc(f.errors,c,y):f.errors,touched:a?Mc(f.touched,c,v):f.touched})})},o.push=function(i){return o.updateArrayField(function(a){return[].concat(Ah(a),[V0(i)])},!1,!1)},o.handlePush=function(i){return function(){return o.push(i)}},o.swap=function(i,a){return o.updateArrayField(function(s){return Git(s,i,a)},!0,!0)},o.handleSwap=function(i,a){return function(){return o.swap(i,a)}},o.move=function(i,a){return o.updateArrayField(function(s){return Uit(s,i,a)},!0,!0)},o.handleMove=function(i,a){return function(){return o.move(i,a)}},o.insert=function(i,a){return o.updateArrayField(function(s){return o$(s,i,a)},function(s){return o$(s,i,null)},function(s){return o$(s,i,null)})},o.handleInsert=function(i,a){return function(){return o.insert(i,a)}},o.replace=function(i,a){return o.updateArrayField(function(s){return qit(s,i,a)},!1,!1)},o.handleReplace=function(i,a){return function(){return o.replace(i,a)}},o.unshift=function(i){var a=-1;return o.updateArrayField(function(s){var l=s?[i].concat(s):[i];return a=l.length,l},function(s){return s?[null].concat(s):[null]},function(s){return s?[null].concat(s):[null]}),a},o.handleUnshift=function(i){return function(){return o.unshift(i)}},o.handleRemove=function(i){return function(){return o.remove(i)}},o.handlePop=function(){return function(){return o.pop()}},o.remove=o.remove.bind(FX(o)),o.pop=o.pop.bind(FX(o)),o}var n=t.prototype;return n.componentDidUpdate=function(o){this.props.validateOnChange&&this.props.formik.validateOnChange&&!Gd(ti(o.formik.values,o.name),ti(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(o){var i;return this.updateArrayField(function(a){var s=a?Ah(a):[];return i||(i=s[o]),ya(s.splice)&&s.splice(o,1),ya(s.every)&&s.every(function(l){return l===void 0})?[]:s},!0,!0),i},n.pop=function(){var o;return this.updateArrayField(function(i){var a=i.slice();return o||(o=a&&a.pop&&a.pop()),a},!0,!0),o},n.render=function(){var o={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},i=this.props,a=i.component,s=i.render,l=i.children,c=i.name,u=i.formik,f=PV(u,["validate","validationSchema"]),h=fo({},o,{form:f,name:c});return a?x.createElement(a,h):s?s(h):l?typeof l=="function"?l(h):Aue(l)?null:x.Children.only(l):null},t}(x.Component);Rue.defaultProps={validateOnChange:!0};var Due=Hit(Rue),i$,zX;function Wit(){if(zX)return i$;zX=1;function e(w){this._maxSize=w,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(w){return this._values[w]},e.prototype.set=function(w,C){return this._size>=this._maxSize&&this.clear(),w in this._values||this._size++,this._values[w]=C};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,i=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,s=new e(a),l=new e(a),c=new e(a);i$={Cache:e,split:f,normalizePath:u,setter:function(w){var C=u(w);return l.get(w)||l.set(w,function(I,O){for(var P=0,R=C.length,D=I;Pu.match(e)||[],n=u=>u[0].toUpperCase()+u.slice(1),r=(u,f)=>t(u).join(f).toLowerCase(),o=u=>t(u).reduce((f,h)=>`${f}${f?h[0].toUpperCase()+h.slice(1).toLowerCase():h.toLowerCase()}`,"");return a$={words:t,upperFirst:n,camelCase:o,pascalCase:u=>n(o(u)),snakeCase:u=>r(u,"_"),kebabCase:u=>r(u,"-"),sentenceCase:u=>n(r(u," ")),titleCase:u=>t(u).map(n).join(" ")},a$}var s$=Kit(),Q1={exports:{}},HX;function Yit(){if(HX)return Q1.exports;HX=1,Q1.exports=function(o){return e(t(o),o)},Q1.exports.array=e;function e(o,i){var a=o.length,s=new Array(a),l={},c=a,u=n(i),f=r(o);for(i.forEach(function(m){if(!f.has(m[0])||!f.has(m[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});c--;)l[c]||h(o[c],c,new Set);return s;function h(m,g,y){if(y.has(m)){var v;try{v=", node was:"+JSON.stringify(m)}catch{v=""}throw new Error("Cyclic dependency"+v)}if(!f.has(m))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(m));if(!l[g]){l[g]=!0;var w=u.get(m)||new Set;if(w=Array.from(w),g=w.length){y.add(m);do{var C=w[--g];h(C,f.get(C),y)}while(g);y.delete(m)}s[--a]=m}}}function t(o){for(var i=new Set,a=0,s=o.length;a"",nat=/^Symbol\((.*)\)(.*)$/;function rat(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function UX(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return rat(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return tat.call(e).replace(nat,"Symbol($1)");const r=Jit.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+Zit.call(e)+"]":r==="RegExp"?eat.call(e):null}function Nu(e,t){let n=UX(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=UX(this[r],t);return i!==null?i:o},2)}function kue(e){return e==null?[]:[].concat(e)}let _ue,$ue,Nue,oat=/\$\{\s*(\w+)\s*\}/g;_ue=Symbol.toStringTag;class GX{constructor(t,n,r,o){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[_ue]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],kue(t).forEach(i=>{if(Sa.isError(i)){this.errors.push(...i.errors);const a=i.inner.length?i.inner:[i];this.inner.push(...a)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}$ue=Symbol.hasInstance;Nue=Symbol.toStringTag;class Sa extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(oat,(o,i)=>Nu(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o,i){const a=new GX(t,n,r,o);if(i)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Nue]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Sa)}static[$ue](t){return GX[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let dc={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${Nu(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Nu(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${Nu(n,!0)}\``+o}},ha={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},zd={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},QF={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},XF={isValue:"${path} field must be ${value}"},TE={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},OE={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},iat={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.lengtho)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${Nu(n,!0)}\``}return Sa.formatError(dc.notType,e)}};Object.assign(Object.create(null),{mixed:dc,string:ha,number:zd,date:QF,object:TE,array:OE,boolean:XF,tuple:iat});const PP=e=>e&&e.__isYupSchema__;class yO{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,a=typeof r=="function"?r:(...s)=>s.every(l=>l===r);return new yO(t,(s,l)=>{var c;let u=a(...s)?o:i;return(c=u==null?void 0:u(l))!=null?c:l})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!PP(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const X1={context:"$",value:"."};function AP(e,t){return new Kf(e,t)}class Kf{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===X1.context,this.isValue=this.key[0]===X1.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?X1.context:this.isValue?X1.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&ah.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Kf.prototype.__isYupRef=!0;const $l=e=>e==null;function tg(e){function t({value:n,path:r="",options:o,originalValue:i,schema:a},s,l){const{name:c,test:u,params:f,message:h,skipAbsent:m}=e;let{parent:g,context:y,abortEarly:v=a.spec.abortEarly,disableStackTrace:w=a.spec.disableStackTrace}=o;function C(_){return Kf.isRef(_)?_.getValue(n,g,y):_}function E(_={}){const N=Object.assign({value:n,originalValue:i,label:a.spec.label,path:_.path||r,spec:a.spec,disableStackTrace:_.disableStackTrace||w},f,_.params);for(const H of Object.keys(N))N[H]=C(N[H]);const B=new Sa(Sa.formatError(_.message||h,N),n,N.path,_.type||c,N.disableStackTrace);return B.params=N,B}const I=v?s:l;let O={path:r,parent:g,type:c,from:o.from,createError:E,resolve:C,options:o,originalValue:i,schema:a};const P=_=>{Sa.isError(_)?I(_):_?l(null):I(E())},R=_=>{Sa.isError(_)?I(_):s(_)};if(m&&$l(n))return P(!0);let M;try{var A;if(M=u.call(O,n,O),typeof((A=M)==null?void 0:A.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${O.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(M).then(P,R)}}catch(_){R(_);return}P(M)}return t.OPTIONS=e,t}function aat(e,t,n,r=n){let o,i,a;return t?(ah.forEach(t,(s,l,c)=>{let u=l?s.slice(1,s.length-1):s;e=e.resolve({context:r,parent:o,value:n});let f=e.type==="tuple",h=c?parseInt(u,10):0;if(e.innerType||f){if(f&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&h>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[h],e=f?e.spec.types[h]:e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[u],e=e.fields[u]}i=u,a=l?"["+s+"]":"."+s}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class vO extends Set{describe(){const t=[];for(const n of this.values())t.push(Kf.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new vO(this.values())}merge(t,n){const r=this.clone();return t.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function Cg(e,t=new Map){if(PP(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r{this.typeError(dc.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Cg(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{t.tests.forEach(a=>{i.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),o=n.assert==="ignore-optionality",i=r._cast(t,n);if(n.assert!==!1&&!r.isType(i)){if(o&&$l(i))return i;let a=Nu(t),s=Nu(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". attempted value: ${a} -`+(s!==a?`result of cast: ${s}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((o,i)=>i.call(this,o,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,o){let{path:i,originalValue:a=t,strict:s=this.spec.strict}=n,l=t;s||(l=this._cast(l,Object.assign({assert:!1},n)));let c=[];for(let u of Object.values(this.internalTests))u&&c.push(u);this.runTests({path:i,value:l,originalValue:a,options:n,tests:c},r,u=>{if(u.length)return o(u,l);this.runTests({path:i,value:l,originalValue:a,options:n,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,value:a,originalValue:s,path:l,options:c}=t,u=y=>{o||(o=!0,n(y,a))},f=y=>{o||(o=!0,r(y,a))},h=i.length,m=[];if(!h)return f([]);let g={value:a,originalValue:s,path:l,options:c,schema:this};for(let y=0;ythis.resolve(u)._validate(c,u,h,m)}validate(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((a,s)=>o._validate(t,n,(l,c)=>{Sa.isError(l)&&(l.value=c),s(l)},(l,c)=>{l.length?s(new Sa(l,c,void 0,void 0,i)):a(c)}))}validateSync(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(t,Object.assign({},n,{sync:!0}),(s,l)=>{throw Sa.isError(s)&&(s.value=l),s},(s,l)=>{if(s.length)throw new Sa(s,t,void 0,void 0,a);i=l}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Sa.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Sa.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):wg(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=eg({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=eg({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=lc.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=lc.notNull){return this.nullability(!1,t)}required(t=lc.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=lc.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=eg(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(i||a.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),o=Due(t).map(i=>new Kf(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new gO(o,n):gO.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=eg({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=lc.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=eg({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:a}})}}),r}notOneOf(t,n=lc.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=eg({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:o,optional:i,nullable:a}=n.spec;return{meta:o,label:r,optional:i,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,c,u)=>u.findIndex(f=>f.name===l.name)===c)}}}is.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])is.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:a}=iat(this,t,n,r.context);return a[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])is.prototype[e]=is.prototype.oneOf;for(const e of["not","nope"])is.prototype[e]=is.prototype.notOneOf;function Lu(){return new Nue}class Nue extends is{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(r.spec.coerce&&!r.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=YF.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(n){return kl(n)||n===!0}})}isFalse(t=YF.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(n){return kl(n)||n===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}Lu.prototype=Nue.prototype;const aat=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function sat(e){const t=QF(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function QF(e){var t,n;const r=aat.exec(e);return r?{year:yu(r[1]),month:yu(r[2],1)-1,day:yu(r[3],1),hour:yu(r[4]),minute:yu(r[5]),second:yu(r[6]),millisecond:r[7]?yu(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:yu(r[10]),minuteOffset:yu(r[11])}:null}function yu(e,t=0){return Number(e)||t}let lat=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,cat=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,uat=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,dat="^\\d{4}-\\d{2}-\\d{2}",fat="\\d{2}:\\d{2}:\\d{2}",pat="(([+-]\\d{2}(:?\\d{2})?)|Z)",hat=new RegExp(`${dat}T${fat}(\\.\\d+)?${pat}$`),mat=e=>kl(e)||e===e.trim(),gat={}.toString();function Ho(){return new Lue}class Lue extends is{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const o=t!=null&&t.toString?t.toString():t;return o===gat?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||lc.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=ha.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=ha.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=ha.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||ha.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=ha.email){return this.matches(lat,{name:"email",message:t,excludeEmptyString:!0})}url(t=ha.url){return this.matches(cat,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=ha.uuid){return this.matches(uat,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,o;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:o=void 0}=t:n=t),this.matches(hat,{name:"datetime",message:n||ha.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||ha.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const a=QF(i);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||ha.datetime_precision,params:{precision:o},skipAbsent:!0,test:i=>{if(!i||o==null)return!0;const a=QF(i);return a?a.precision===o:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=ha.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:mat})}lowercase(t=ha.lowercase){return this.transform(n=>kl(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>kl(n)||n===n.toLowerCase()})}uppercase(t=ha.uppercase){return this.transform(n=>kl(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>kl(n)||n===n.toUpperCase()})}}Ho.prototype=Lue.prototype;let yat=e=>e!=+e;function Do(){return new Fue}class Fue extends is{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!yat(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let o=t;if(typeof o=="string"){if(o=o.replace(/\s/g,""),o==="")return NaN;o=+o}return r.isType(o)||o===null?o:parseFloat(o)})})}min(t,n=zd.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=zd.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=zd.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return rthis.resolve(t)}})}positive(t=zd.positive){return this.moreThan(0,t)}negative(t=zd.negative){return this.lessThan(0,t)}integer(t=zd.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>kl(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(o=>kl(o)?o:Math[t](o))}}Do.prototype=Fue.prototype;let jue=new Date(""),vat=e=>Object.prototype.toString.call(e)==="[object Date]";function Ac(){return new _w}class _w extends is{constructor(){super({type:"date",check(t){return vat(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=sat(t),isNaN(t)?_w.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Kf.isRef(t))r=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(t,n=KF.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(t,n=KF.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}_w.INVALID_DATE=jue;Ac.prototype=_w.prototype;Ac.INVALID_DATE=jue;function bat(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([a,s])=>`${a}-${s}`));function i(a,s){let l=ah.split(a)[0];r.add(l),o.has(`${s}-${l}`)||n.push([s,l])}for(const a of Object.keys(e)){let s=e[a];r.add(a),Kf.isRef(s)&&s.isSibling?i(s.path,a):IP(s)&&"deps"in s&&s.deps.forEach(l=>i(l,a))}return Qit.array(Array.from(r),n).reverse()}function GX(e,t){let n=1/0;return e.some((r,o)=>{var i;if((i=t.path)!=null&&i.includes(r))return n=o,!0}),n}function Bue(e){return(t,n)=>GX(e,t)-GX(e,n)}const zue=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function OE(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=OE(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=OE(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(OE)}):"optional"in e?e.optional():e}const xat=(e,t)=>{const n=[...ah.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=ah.getter(ah.join(n),!0)(e);return!!(o&&r in o)};let qX=e=>Object.prototype.toString.call(e)==="[object Object]";function WX(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const Sat=Bue([]);function Wo(e){return new Vue(e)}class Vue extends is{constructor(t){super({type:"object",check(n){return qX(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=Sat,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let o=super._cast(t,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let i=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(o).filter(f=>!this._nodes.includes(f))),l={},c=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),u=!1;for(const f of s){let h=i[f],m=f in o;if(h){let g,y=o[f];c.path=(n.path?`${n.path}.`:"")+f,h=h.resolve({value:y,context:n.context,parent:l});let v=h instanceof is?h.spec:void 0,w=v==null?void 0:v.strict;if(v!=null&&v.strip){u=u||f in o;continue}g=!n.__validating||!w?h.cast(o[f],c):o[f],g!==void 0&&(l[f]=g)}else m&&!a&&(l[f]=o[f]);(m!==f in l||l[f]!==o[f])&&(u=!0)}return u?l:o}_validate(t,n={},r,o){let{from:i=[],originalValue:a=t,recursive:s=this.spec.recursive}=n;n.from=[{schema:this,value:a},...i],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(l,c)=>{if(!s||!qX(c)){o(l,c);return}a=a||c;let u=[];for(let f of this._nodes){let h=this.fields[f];!h||Kf.isRef(h)||u.push(h.asNestedTest({options:n,key:f,parent:c,parentPath:n.path,originalParent:a}))}this.runTests({tests:u,value:c,originalValue:a,options:n},r,f=>{o(f.sort(this._sortErrors).concat(l),c)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const a=r[o];r[o]=a===void 0?i:a}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const i=this.fields[r];let a=t;(o=a)!=null&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=bat(t,n),r._sortErrors=Bue(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),o)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return OE(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>t.includes(r)&&t.includes(o)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let o=ah.getter(t,!0);return this.transform(i=>{if(!i)return i;let a=i;return xat(i,t)&&(a=Object.assign({},i),r||delete a[t],a[n]=o(i)),a})}json(){return this.transform(zue)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||EE.exact,test(n){if(n==null)return!0;const r=WX(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=EE.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=WX(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=EE.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[t(o)]=n[o];return r})}camelCase(){return this.transformKeys(i$.camelCase)}snakeCase(){return this.transformKeys(i$.snakeCase)}constantCase(){return this.transformKeys(t=>i$.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[i,a]of Object.entries(n.fields)){var o;let s=t;(o=s)!=null&&o.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[i]})),r.fields[i]=a.describe(s)}return r}}Wo.prototype=Vue.prototype;function sh(e){return new Hue(e)}class Hue extends is{constructor(t){super({type:"array",spec:{types:t},check(n){return Array.isArray(n)}}),this.innerType=void 0,this.innerType=t}_cast(t,n){const r=super._cast(t,n);if(!this._typeCheck(r)||!this.innerType)return r;let o=!1;const i=r.map((a,s)=>{const l=this.innerType.cast(a,Object.assign({},n,{path:`${n.path||""}[${s}]`}));return l!==a&&(o=!0),l});return o?i:r}_validate(t,n={},r,o){var i;let a=this.innerType,s=(i=n.recursive)!=null?i:this.spec.recursive;n.originalValue!=null&&n.originalValue,super._validate(t,n,r,(l,c)=>{var u;if(!s||!a||!this._typeCheck(c)){o(l,c);return}let f=new Array(c.length);for(let m=0;mo(m.concat(l),c))})}clone(t){const n=super.clone(t);return n.innerType=this.innerType,n}json(){return this.transform(zue)}concat(t){let n=super.concat(t);return n.innerType=this.innerType,t.innerType&&(n.innerType=n.innerType?n.innerType.concat(t.innerType):t.innerType),n}of(t){let n=this.clone();if(!IP(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Nu(t));return n.innerType=t,n.spec=Object.assign({},n.spec,{types:t}),n}length(t,n=TE.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n){return n=n||TE.min,this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n){return n=n||TE.max,this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,n)=>this._typeCheck(t)?t:n==null?[]:[].concat(n))}compact(t){let n=t?(r,o,i)=>!t(r,o,i):r=>!!r;return this.transform(r=>r!=null?r.filter(n):r)}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);if(n.innerType){var o;let i=t;(o=i)!=null&&o.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),r.innerType=n.innerType.describe(i)}return r}}sh.prototype=Hue.prototype;const AV=({planId:e,entry:t,mealId:n,meals:r,closeFn:o})=>{const i=n===void 0?null:n,a=r===void 0?[]:r,[s,l]=je(),c=nFe(e),u=rFe(e),[f,h]=x.useState(t?Ct.fromJSDate(t.datetime):Ct.now()),[m,g]=x.useState(i),y=Wo({amount:Do().required(s("forms.fieldRequired")).max(1e3,s("forms.maxValue",{value:"1000"})).min(1,s("forms.minValue",{value:"1"})),ingredient:Do().required(s("forms.fieldRequired")),datetime:Ac().required(s("forms.fieldRequired"))});return S(Ti,{initialValues:{datetime:new Date,amount:0,ingredient:0},validationSchema:y,onSubmit:async v=>{const w={...v,plan:e,meal:m,weight_unit:null,datetime:v.datetime.toISOString()};t?u.mutate({...w,id:t.id}):c.mutate(w),o&&o()},children:v=>S(fi,{children:Q(Ft,{spacing:2,children:[S(gV,{callback:w=>v.setFieldValue("ingredient",w==null?void 0:w.data.id)}),S(dn,{fullWidth:!0,id:"amount",label:"amount",InputProps:{endAdornment:S(So,{position:"end",children:s("nutrition.gramShort")})},error:v.touched.amount&&!!v.errors.amount,helperText:v.touched.amount&&v.errors.amount,...v.getFieldProps("amount")}),a.length>0&&S(kc,{value:m,options:a.map(w=>w.id),getOptionLabel:w=>a.find(C=>C.id===w).displayName,onChange:(w,C)=>g(C),renderInput:w=>S(dn,{label:s("nutrition.meal"),value:m,...w})}),S(Ic,{dateAdapter:$u,adapterLocale:l.language,children:S(Ott,{format:"yyyy-MM-dd HH:mm",label:s("date"),value:f,disableFuture:!0,onChange:w=>{v.setFieldValue("datetime",w==null?void 0:w.toJSDate()),h(w)},shouldDisableDate:w=>(t&&mr(t.datetime)===mr(w.toJSDate()),!1)})}),Q(Ft,{direction:"row",justifyContent:"end",spacing:2,children:[o!==void 0&&S(ct,{color:"primary",variant:"outlined",onClick:()=>o(),children:s("close")}),S(ct,{color:"primary",variant:"contained",type:"submit",children:s("submit")})]})]})})})},MV=({plan:e,closeFn:t})=>{const[n]=je(),r=ZLe(),o=eFe(e==null?void 0:e.id),[i,a]=x.useState(e==null?void 0:e.hasAnyGoals),s=Wo({description:Ho().required().max(25,n("forms.maxLength",{chars:"25"})).min(3,n("forms.minLength",{chars:"3"})),only_logging:Lu(),goal_energy:Do().notRequired().positive().max(6e3,n("forms.maxValue",{value:"6000kcal"})),goal_protein:Do().notRequired().positive().max(500,n("forms.maxValue",{value:"500"})),goal_carbohydrates:Do().notRequired().positive().max(750,n("forms.maxValue",{value:"750"})),goal_fiber:Do().notRequired().positive().max(500,n("forms.maxValue",{value:"500"})),goal_fat:Do().notRequired().positive().max(500,n("forms.maxValue",{value:"500"}))});return S(Ti,{initialValues:{description:e?e.description:n("nutrition.plan"),only_logging:e?e.onlyLogging:!0,goal_energy:e?e.goalEnergy:null,goal_protein:e?e.goalProtein:null,goal_carbohydrates:e?e.goalCarbohydrates:null,goal_fiber:e?e.goalFiber:null,goal_fat:e?e.goalFat:null},validationSchema:s,onSubmit:async l=>{l.goal_energy=l.goal_energy?l.goal_energy:null,l.goal_protein=l.goal_protein?l.goal_protein:null,l.goal_carbohydrates=l.goal_carbohydrates?l.goal_carbohydrates:null,l.goal_fiber=l.goal_fiber?l.goal_fiber:null,l.goal_fat=l.goal_fat?l.goal_fat:null,i||(l.goal_energy=null,l.goal_protein=null,l.goal_carbohydrates=null,l.goal_fiber=null,l.goal_fat=null),e?o.mutate({...l,id:e.id}):r.mutate(l),t&&t()},children:l=>S(fi,{children:Q(Ft,{spacing:2,children:[S(dn,{fullWidth:!0,id:"description",label:n("description"),error:l.touched.description&&!!l.errors.description,helperText:l.touched.description&&l.errors.description,...l.getFieldProps("description")}),S(Px,{children:S(os,{label:n("nutrition.onlyLoggingHelpText"),control:S(qo,{id:"onlyLogging",checked:l.values.only_logging,...l.getFieldProps("only_logging")})})}),S(Px,{children:S(os,{label:n("nutrition.useGoalsHelpText"),control:S(qo,{id:"goalEnergy",checked:i,onChange:()=>a(!i)})})}),S(iw,{children:n("nutrition.useGoalsHelpTextLong")}),i&&Q(Tt,{children:[S(dn,{fullWidth:!0,id:"energy",label:n("nutrition.goalEnergy"),error:l.touched.goal_energy&&!!l.errors.goal_energy,helperText:l.touched.goal_energy&&l.errors.goal_energy,...l.getFieldProps("goal_energy"),InputProps:{endAdornment:S(So,{position:"end",children:n("nutrition.kcal")})}}),Q(me,{container:!0,spacing:1,children:[S(me,{size:4,children:S(dn,{id:"protein",label:n("nutrition.goalProtein"),error:l.touched.goal_protein&&!!l.errors.goal_protein,helperText:l.touched.goal_protein&&l.errors.goal_protein,...l.getFieldProps("goal_protein"),InputProps:{startAdornment:S(So,{position:"start",children:l.values.goal_protein!==null&&l.values.goal_protein!==void 0?n("nutrition.valueEnergyKcal",{value:l.values.goal_protein*kg.protein}):""}),endAdornment:S(So,{position:"end",children:n("nutrition.gramShort")})}})}),S(me,{size:4,children:S(dn,{id:"carbohydrates",label:n("nutrition.goalCarbohydrates"),error:l.touched.goal_carbohydrates&&!!l.errors.goal_carbohydrates,helperText:l.touched.goal_carbohydrates&&l.errors.goal_carbohydrates,...l.getFieldProps("goal_carbohydrates"),InputProps:{startAdornment:S(So,{position:"start",children:l.values.goal_carbohydrates!==null&&l.values.goal_carbohydrates!==void 0?n("nutrition.valueEnergyKcal",{value:l.values.goal_carbohydrates*kg.carbohydrates}):""}),endAdornment:S(So,{position:"end",children:n("nutrition.gramShort")})}})}),S(me,{size:4,children:S(dn,{id:"fat",label:n("nutrition.goalFat"),error:l.touched.goal_fat&&!!l.errors.goal_fat,helperText:l.touched.goal_fat&&l.errors.goal_fat,...l.getFieldProps("goal_fat"),InputProps:{startAdornment:S(So,{position:"start",children:l.values.goal_fat!==null&&l.values.goal_fat!==void 0?n("nutrition.valueEnergyKcal",{value:l.values.goal_fat*kg.fat}):""}),endAdornment:S(So,{position:"end",children:n("nutrition.gramShort")})}})})]}),S(me,{container:!0,spacing:1,children:S(me,{size:4,children:S(dn,{id:"fiber",label:n("nutrition.goalFiber"),error:l.touched.goal_fiber&&!!l.errors.goal_fiber,helperText:l.touched.goal_fiber&&l.errors.goal_fiber,...l.getFieldProps("goal_fiber"),InputProps:{startAdornment:S(So,{position:"start",children:n("nutrition.valueEnergyKcal",{value:0})}),endAdornment:S(So,{position:"end",children:n("nutrition.gramShort")})}})})})]}),S(Ft,{direction:"row",justifyContent:"end",sx:{mt:2},children:S(ct,{color:"primary",variant:"contained",type:"submit",sx:{mt:2},children:n("submit")})})]})})})},Uue=()=>{const[e]=je(),t=YLe();return t.isLoading?S(Er,{}):t.data!==null?S(wat,{plan:t.data}):S(hB,{title:e("nutritionalPlan"),modalContent:S(MV,{}),modalTitle:e("add")})};function wat(e){const[t,n]=je(),[r,o]=Z.useState(!1),i=()=>o(!0),a=()=>o(!1);return Q(Tt,{children:[Q(ho,{children:[S(Yl,{title:t("nutritionalPlan"),subheader:e.plan.description}),Q(Fi,{sx:{height:"500px",overflow:"auto"},children:[S(pYe,{percentage:e.plan.percentageValuesLoggedToday,planned:e.plan.plannedNutritionalValues,logged:e.plan.loggedNutritionalValuesToday}),S(ai,{children:e.plan.meals.map(s=>S(Cat,{meal:s,planId:e.plan.id},s.id))})]}),Q(al,{sx:{justifyContent:"space-between",alignItems:"flex-start"},children:[S(ct,{size:"small",href:cn(Qt.NUTRITION_DETAIL,n.language,{id:e.plan.id}),children:t("seeDetails")}),S(Go,{title:t("nutrition.logThisMealItem"),children:S(pn,{onClick:i,children:S(sw,{})})})]})]}),S(Bi,{title:t("nutrition.addNutritionalDiary"),isOpen:r,closeFn:a,children:S(AV,{closeFn:a,planId:e.plan.id,meals:e.plan.meals})})]})}const Cat=e=>{const[t,n]=je(),r=rie(e.planId),[o,i]=x.useState(!1),[a,s]=Z.useState(!1),l=()=>i(!o),c=(m,g)=>{g!=="clickaway"&&s(!1)},u=m=>{const g=[{plan:e.planId,meal:e.meal.id,mealItem:m.id,ingredient:m.ingredientId,weight_unit:m.weightUnitId,datetime:new Date().toISOString(),amount:m.amount}];r.mutate(g),s(!0)},f=e.meal.name?e.meal.name:tT(e.meal.time,n.language),h=e.meal.name?tT(e.meal.time,n.language):null;return Q(Tt,{children:[Q(Nl,{onClick:l,selected:o,children:[S(el,{children:o?S(Q0,{}):S(Ru,{})}),S(Wr,{primary:f,secondary:h})]}),S(aa,{in:o,timeout:"auto",unmountOnExit:!0,children:S(ai,{children:e.meal.items.map(m=>{var g,y,v,w;return Q(Co,{secondaryAction:S(Go,{title:t("nutrition.logThisMealItem"),children:S(pn,{edge:"end",onClick:()=>u(m),children:S(sw,{})})}),children:[S(uB,{children:S(Gl,{alt:(g=m.ingredient)==null?void 0:g.name,src:(v=(y=m.ingredient)==null?void 0:y.image)==null?void 0:v.url,sx:{width:45,height:45},children:S(Zu,{})})}),S(Wr,{primary:(w=m.ingredient)==null?void 0:w.name,secondary:$n(m.amount,n.language)})]},m.id)})})}),S(uI,{open:a,autoHideDuration:CI,onClose:c,children:S(Ci,{onClose:c,severity:"success",sx:{width:"100%"},children:t("nutrition.diaryEntrySaved")})})]})},Gue=Ot(k.jsx("path",{d:"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14zM7 10h5v5H7z"}));function Wc(e){return gr({queryKey:[st.ROUTINE_DETAIL,e],queryFn:()=>sNe(e)})}function Eat(e){return gr({queryKey:[st.ROUTINE_STATS,e],queryFn:()=>yNe(e)})}function que(e){return gr({queryKey:[st.ROUTINE_LOG_DATA,e],queryFn:()=>gNe(e)})}function Tat(){return gr({queryKey:[st.ROUTINES_SHALLOW],queryFn:lNe})}function Oat(){return gr({queryKey:[st.PRIVATE_TEMPLATES],queryFn:cNe})}function Iat(){return gr({queryKey:[st.PUBLIC_TEMPLATES],queryFn:uNe})}function Pat(){return gr({queryKey:[st.ROUTINES_ACTIVE],queryFn:aNe})}const Aat=()=>{const e=Mt();return Dt({mutationFn:t=>dNe(t),onSuccess:()=>e.invalidateQueries({queryKey:[st.ROUTINE_OVERVIEW]})})},Wue=e=>{const t=Mt();return Dt({mutationFn:n=>fNe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.ROUTINE_OVERVIEW]}),t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})}})},Mat=e=>{const t=Mt();return Dt({mutationFn:()=>pNe(e),onSuccess:()=>{t.invalidateQueries({queryKey:[st.ROUTINE_OVERVIEW]}),t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})}})},Rat=e=>{const t=Mt();return Dt({mutationFn:n=>rLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Dat=e=>{const t=Mt();return Dt({mutationFn:n=>oLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},kat=e=>{const t=Mt();return Dt({mutationFn:n=>iLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},_at=e=>{const t=Mt();return Dt({mutationFn:n=>aLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},$at=e=>{const t=Mt();return Dt({mutationFn:n=>sLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Nat=e=>{const t=Mt();return Dt({mutationFn:n=>lLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Lat=e=>{const t=Mt();return Dt({mutationFn:n=>cLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Fat=e=>{const t=Mt();return Dt({mutationFn:n=>uLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},jat=e=>{const t=Mt();return Dt({mutationFn:n=>dLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Bat=e=>{const t=Mt();return Dt({mutationFn:n=>fLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},zat=e=>{const t=Mt();return Dt({mutationFn:n=>pLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},KX=e=>{const t=Mt();return Dt({mutationFn:n=>hLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Vat=e=>{const t=Mt();return Dt({mutationFn:n=>mLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Hat=e=>{const t=Mt();return Dt({mutationFn:n=>gLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Uat=e=>{const t=Mt();return Dt({mutationFn:n=>yLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Gat=e=>{const t=Mt();return Dt({mutationFn:n=>vLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},qat=e=>{const t=Mt();return Dt({mutationFn:n=>bLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Wat=e=>{const t=Mt();return Dt({mutationFn:n=>xLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Kue=e=>{const t=Mt();return Dt({mutationFn:n=>SLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Yue=e=>{const t=Mt();return Dt({mutationFn:n=>wLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Que=e=>{const t=Mt();return Dt({mutationFn:n=>CLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Kat=e=>{const t=Mt();return Dt({mutationFn:n=>ELe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Yat=e=>{const t=Mt();return Dt({mutationFn:n=>TLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Qat=e=>{const t=Mt();return Dt({mutationFn:n=>OLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Xat=e=>{const t=Mt();return Dt({mutationFn:n=>ILe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Zat=e=>{const t=Mt();return Dt({mutationFn:n=>PLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Jat=e=>{const t=Mt();return Dt({mutationFn:n=>ALe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},est=e=>{const t=Mt();return Dt({mutationFn:n=>MLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},tst=e=>{const t=Mt();return Dt({mutationFn:n=>RLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},nst=e=>{const t=Mt();return Dt({mutationFn:n=>DLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},rst=e=>{const t=Mt();return Dt({mutationFn:n=>YNe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},ost=e=>{const t=Mt();return Dt({mutationFn:n=>QNe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},ist=e=>{const t=Mt();return Dt({mutationFn:n=>XNe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},ast=e=>{const t=Mt();return Dt({mutationFn:n=>ZNe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})};function sst(e){const t=Mt();return Dt({mutationFn:n=>HNe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.ROUTINE_LOG_DATA,e]}),t.invalidateQueries({queryKey:[st.ROUTINE_STATS,e]})}})}function lst(e){const t=Mt();return Dt({mutationFn:n=>UNe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.ROUTINE_LOGS,e]}),t.invalidateQueries({queryKey:[st.ROUTINE_STATS,e]})}})}function cst(e){const t=Mt();return Dt({mutationFn:n=>GNe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.ROUTINE_LOGS,e]}),t.invalidateQueries({queryKey:[st.ROUTINE_STATS,e]})}})}const $w=e=>{const t=Mt();return Dt({mutationFn:n=>qNe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},ust=e=>{const t=Mt();return Dt({mutationFn:n=>KNe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},dst=e=>{const t=Mt();return Dt({mutationFn:n=>WNe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},fst=()=>gr({queryKey:[st.ROUTINE_WEIGHT_UNITS],queryFn:Yoe}),pst=()=>gr({queryKey:[st.ROUTINE_REP_UNITS],queryFn:Koe}),hst=e=>{const t=Mt();return Dt({mutationFn:n=>JNe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},mst=e=>{const t=Mt();return Dt({mutationFn:n=>eLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},gst=e=>{const t=Mt();return Dt({mutationFn:n=>tLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},yst=e=>{const t=Mt();return Dt({mutationFn:n=>nLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},vst=(e,t)=>gr({queryFn:()=>kLe(t),queryKey:[st.SESSION_SEARCH,e,JSON.stringify(t)]}),bst=()=>{const e=Mt();return Dt({mutationFn:t=>$Le(t),onSuccess:()=>e.invalidateQueries({queryKey:[st.ROUTINE_OVERVIEW]})})},xst=e=>gr({queryFn:()=>_Le(e),queryKey:[st.SESSIONS_FULL,JSON.stringify(e||{})]}),Sst=e=>{const t=Mt();return Dt({mutationFn:n=>NLe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.ROUTINE_OVERVIEW]}),t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})}})},Ko=Ot(k.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),Xue=Ot(k.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11h-4v4h-2v-4H7v-2h4V7h2v4h4z"})),wst=Ot(k.jsx("path",{d:"M22 5v2h-3v3h-2V7h-3V5h3V2h2v3zm-3 14H5V5h6V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-6h-2zm-4-6v4h2v-4zm-4 4h2V9h-2zm-2 0v-6H7v6z"})),Cst=Ot(k.jsx("path",{d:"m7 10 5 5 5-5z"})),Est=Ot(k.jsx("path",{d:"m7 14 5-5 5 5z"})),Tst=Ot(k.jsx("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"})),Zue=Ot(k.jsx("path",{d:"M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z"})),Ost=Ot(k.jsx("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4z"})),Ist=Ot(k.jsx("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V10h14zM9 14H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm-8 4H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2z"})),Pst=Ot([k.jsx("circle",{cx:"12",cy:"12",r:"3.2"},"0"),k.jsx("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"1")]),Ast=Ot(k.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"})),Mst=Ot(k.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),Rst=Ot(k.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"})),Dst=Ot(k.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Jue=Ot(k.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),kst=Ot(k.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),_st=Ot(k.jsx("path",{d:"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2m-11-4 2.03 2.71L16 11l4 5H8zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6z"})),$st=Ot(k.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),PP=Ot(k.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})),Nst=Ot(k.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"})),TS=Ot(k.jsx("path",{d:"M16 9v10H8V9zm-1.5-6h-5l-1 1H5v2h14V4h-3.5zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2z"})),ede=Ot(k.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})),RV=Ot(k.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),Lst=Ot(k.jsx("path",{d:"m12.126 8.125 1.937-1.937 3.747 3.747-1.937 1.938zM20.71 5.63l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75L20.71 7a1 1 0 0 0 0-1.37M2 5l6.63 6.63L3 17.25V21h3.75l5.63-5.62L18 21l2-2L4 3z"})),Fst=Ot(k.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61"})),jst=Ot(k.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m6 13h-5l-1-2H9.5v5H8V7h6l1 2h3z"})),OS=Ot(k.jsx("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"})),tde=Ot(k.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"})),nde=Ot(k.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"})),Bst=Ot(k.jsx("path",{d:"m14 6-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22z"})),zst=Ot(k.jsx("path",{d:"m14 6-4.22 5.63 1.25 1.67L14 9.33 19 16h-8.46l-4.01-5.37L1 18h22zM5 16l1.52-2.03L8.04 16z"})),Vst=Ot([k.jsx("path",{d:"M5 16h3.04l-1.52-2.03z",opacity:".3"},"0"),k.jsx("path",{d:"m9.78 11.63 1.25 1.67L14 9.33 19 16h-8.46l-4.01-5.37L1 18h22L14 6zM5 16l1.52-2.03L8.04 16z"},"1")]),DV=Ot(k.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),Hst=Ot(k.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})),rde=Ot(k.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})),Ust=Ot(k.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),Gst=Ot(k.jsx("path",{d:"M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"})),qst=Ot([k.jsx("circle",{cx:"12",cy:"12",r:"3.2"},"0"),k.jsx("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"1")]),Wst=Ot(k.jsx("path",{d:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7z"})),ode=Ot(k.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"})),Kst=Ot([k.jsx("path",{d:"M9 15.5h6v1H9z"},"0"),k.jsx("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"1"),k.jsx("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"2"),k.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"3")]),Yst=Ot([k.jsx("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"0"),k.jsx("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"1"),k.jsx("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"2"),k.jsx("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"3"),k.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m0-2.5c2.33 0 4.32-1.45 5.12-3.5h-1.67c-.69 1.19-1.97 2-3.45 2s-2.75-.81-3.45-2H6.88c.8 2.05 2.79 3.5 5.12 3.5"},"4")]),Qst=Ot([k.jsx("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"0"),k.jsx("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"1"),k.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m0-6c-2.33 0-4.32 1.45-5.12 3.5h1.67c.69-1.19 1.97-2 3.45-2s2.75.81 3.45 2h1.67c-.8-2.05-2.79-3.5-5.12-3.5"},"2")]),Xst=Ot(k.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"})),Zst=Ot(k.jsx("path",{d:"M19 9h-2v6.59L5.41 4 4 5.41 15.59 17H9v2h10z"})),Jst=Ot(k.jsx("path",{d:"M21 5.47 12 12 7.62 7.62 3 11V8.52L7.83 5l4.38 4.38L21 3zM21 15h-4.7l-4.17 3.34L6 12.41l-3 2.13V17l2.8-2 6.2 6 5-4h4z"})),elt=Ot(k.jsx("path",{d:"M6.99 11 3 15l3.99 4v-3H14v-2H6.99zM21 9l-3.99-4v3H10v2h7.01v3z"})),AP=e=>{if(e.query.isLoading)return S(Er,{});if(e.query.isError)return S(Jt,{sx:{height:200,alignItems:"center",mt:2},component:Ft,direction:"column",justifyContent:"center",children:Q(Ci,{severity:"error",children:["Error while fetching data: ",e.query.error.message]})});if(e.query.isSuccess)return e.child},tlt=e=>{var r;const t=e.avatarSize||40,n=e.iconSize||40;return S(Gl,{sx:{height:t,width:t},src:(r=e.image)==null?void 0:r.url,children:S(Zu,{sx:{height:n,width:n}})})};function ide(){return gr({queryKey:[st.EXERCISES],queryFn:p2e})}function nlt(e){return gr({queryKey:[st.EXERCISE_DETAIL,e],queryFn:()=>dv(e)})}function rlt(e){const t=Mt();return Dt({mutationFn:n=>KN(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.EXERCISES]}),t.invalidateQueries({queryKey:[st.EXERCISE_DETAIL,e]})}})}function olt(e){const t=Mt();return Dt({mutationFn:n=>v2e(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.EXERCISES]}),t.invalidateQueries({queryKey:[st.EXERCISE_DETAIL,e]})}})}function ilt(e){const t=Mt();return Dt({mutationFn:n=>w2e(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.EXERCISES]}),t.invalidateQueries({queryKey:[st.EXERCISE_DETAIL,e]})}})}function alt(e){const t=Mt();return Dt({mutationFn:n=>Fre(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.EXERCISES]}),t.invalidateQueries({queryKey:[st.EXERCISE_DETAIL,e]})}})}function MP(){return gr({queryKey:[st.CATEGORIES],queryFn:Yke})}function Dv(){return gr({queryKey:[st.MUSCLES],queryFn:yke})}function RP(){return gr({queryKey:[st.EQUIPMENT],queryFn:qke})}function Kc(){return gr({queryKey:[st.LANGUAGES],queryFn:S2e})}var m0={},YX;function slt(){if(YX)return m0;YX=1,Object.defineProperty(m0,"__esModule",{value:!0}),m0.parse=a,m0.serialize=c;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]*$/,o=Object.prototype.toString,i=(()=>{const h=function(){};return h.prototype=Object.create(null),h})();function a(h,m){const g=new i,y=h.length;if(y<2)return g;const v=(m==null?void 0:m.decode)||u;let w=0;do{const C=h.indexOf("=",w);if(C===-1)break;const E=h.indexOf(";",w),I=E===-1?y:E;if(C>I){w=h.lastIndexOf(";",C-1)+1;continue}const O=s(h,w,C),P=l(h,C,O),R=h.slice(O,P);if(g[R]===void 0){let D=s(h,C+1,I),M=l(h,I,D);const A=v(h.slice(D,M));g[R]=A}w=I+1}while(wg;){const y=h.charCodeAt(--m);if(y!==32&&y!==9)return m+1}return g}function c(h,m,g){const y=(g==null?void 0:g.encode)||encodeURIComponent;if(!e.test(h))throw new TypeError(`argument name is invalid: ${h}`);const v=y(m);if(!t.test(v))throw new TypeError(`argument val is invalid: ${m}`);let w=h+"="+v;if(!g)return w;if(g.maxAge!==void 0){if(!Number.isInteger(g.maxAge))throw new TypeError(`option maxAge is invalid: ${g.maxAge}`);w+="; Max-Age="+g.maxAge}if(g.domain){if(!n.test(g.domain))throw new TypeError(`option domain is invalid: ${g.domain}`);w+="; Domain="+g.domain}if(g.path){if(!r.test(g.path))throw new TypeError(`option path is invalid: ${g.path}`);w+="; Path="+g.path}if(g.expires){if(!f(g.expires)||!Number.isFinite(g.expires.valueOf()))throw new TypeError(`option expires is invalid: ${g.expires}`);w+="; Expires="+g.expires.toUTCString()}if(g.httpOnly&&(w+="; HttpOnly"),g.secure&&(w+="; Secure"),g.partitioned&&(w+="; Partitioned"),g.priority)switch(typeof g.priority=="string"?g.priority.toLowerCase():void 0){case"low":w+="; Priority=Low";break;case"medium":w+="; Priority=Medium";break;case"high":w+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${g.priority}`)}if(g.sameSite)switch(typeof g.sameSite=="string"?g.sameSite.toLowerCase():g.sameSite){case!0:case"strict":w+="; SameSite=Strict";break;case"lax":w+="; SameSite=Lax";break;case"none":w+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${g.sameSite}`)}return w}function u(h){if(h.indexOf("%")===-1)return h;try{return decodeURIComponent(h)}catch{return h}}function f(h){return o.call(h)==="[object Date]"}return m0}slt();var QX="popstate";function llt(e={}){function t(r,o){let{pathname:i,search:a,hash:s}=r.location;return XF("",{pathname:i,search:a,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:IS(o)}return ult(t,n,null,e)}function ro(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function jc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function clt(){return Math.random().toString(36).substring(2,10)}function XX(e,t){return{usr:e.state,key:e.key,idx:t}}function XF(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?kv(t):t,state:n,key:t&&t.key||r||clt()}}function IS({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 kv(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 ult(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s="POP",l=null,c=u();c==null&&(c=0,a.replaceState({...a.state,idx:c},""));function u(){return(a.state||{idx:null}).idx}function f(){s="POP";let v=u(),w=v==null?null:v-c;c=v,l&&l({action:s,location:y.location,delta:w})}function h(v,w){s="PUSH";let C=XF(y.location,v,w);c=u()+1;let E=XX(C,c),I=y.createHref(C);try{a.pushState(E,"",I)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;o.location.assign(I)}i&&l&&l({action:s,location:y.location,delta:1})}function m(v,w){s="REPLACE";let C=XF(y.location,v,w);c=u();let E=XX(C,c),I=y.createHref(C);a.replaceState(E,"",I),i&&l&&l({action:s,location:y.location,delta:0})}function g(v){return dlt(v)}let y={get action(){return s},get location(){return e(o,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(QX,f),l=v,()=>{o.removeEventListener(QX,f),l=null}},createHref(v){return t(o,v)},createURL:g,encodeLocation(v){let w=g(v);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:h,replace:m,go(v){return a.go(v)}};return y}function dlt(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),ro(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:IS(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function ade(e,t,n="/"){return flt(e,t,n,!1)}function flt(e,t,n,r){let o=typeof t=="string"?kv(t):t,i=Qu(o.pathname||"/",n);if(i==null)return null;let a=sde(e);plt(a);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(ro(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length));let c=Fu([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(ro(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),sde(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:xlt(c,i.index),routesMeta:u})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of lde(i.path))o(i,a,l)}),t}function lde(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=lde(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function plt(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Slt(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var hlt=/^:[\w-]+$/,mlt=3,glt=2,ylt=1,vlt=10,blt=-2,ZX=e=>e==="*";function xlt(e,t){let n=e.split("/"),r=n.length;return n.some(ZX)&&(r+=blt),t&&(r+=glt),n.filter(o=>!ZX(o)).reduce((o,i)=>o+(hlt.test(i)?mlt:i===""?ylt:vlt),r)}function Slt(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function wlt(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s{if(u==="*"){let g=s[h]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const m=s[h];return f&&!m?c[u]=void 0:c[u]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function Clt(e,t=!1,n=!0){jc(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Elt(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return jc(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Qu(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 Tlt(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?kv(e):e;return{pathname:n?n.startsWith("/")?n:Olt(n,t):t,search:Alt(r),hash:Mlt(o)}}function Olt(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function a$(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 Ilt(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function cde(e){let t=Ilt(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function ude(e,t,n,r=!1){let o;typeof e=="string"?o=kv(e):(o={...e},ro(!o.pathname||!o.pathname.includes("?"),a$("?","pathname","search",o)),ro(!o.pathname||!o.pathname.includes("#"),a$("#","pathname","hash",o)),ro(!o.search||!o.search.includes("#"),a$("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),f-=1;o.pathname=h.join("/")}s=f>=0?t[f]:"/"}let l=Tlt(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}var Fu=e=>e.join("/").replace(/\/\/+/g,"/"),Plt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Alt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Mlt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Rlt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var dde=["POST","PUT","PATCH","DELETE"];new Set(dde);var Dlt=["GET",...dde];new Set(Dlt);var _v=x.createContext(null);_v.displayName="DataRouter";var DP=x.createContext(null);DP.displayName="DataRouterState";var fde=x.createContext({isTransitioning:!1});fde.displayName="ViewTransition";var klt=x.createContext(new Map);klt.displayName="Fetchers";var _lt=x.createContext(null);_lt.displayName="Await";var Yc=x.createContext(null);Yc.displayName="Navigation";var Nw=x.createContext(null);Nw.displayName="Location";var Qc=x.createContext({outlet:null,matches:[],isDataRoute:!1});Qc.displayName="Route";var kV=x.createContext(null);kV.displayName="RouteError";function $lt(e,{relative:t}={}){ro(Lw(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=x.useContext(Yc),{hash:o,pathname:i,search:a}=Fw(e,{relative:t}),s=i;return n!=="/"&&(s=i==="/"?n:Fu([n,i])),r.createHref({pathname:s,search:a,hash:o})}function Lw(){return x.useContext(Nw)!=null}function Zh(){return ro(Lw(),"useLocation() may be used only in the context of a component."),x.useContext(Nw).location}var pde="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function hde(e){x.useContext(Yc).static||x.useLayoutEffect(e)}function id(){let{isDataRoute:e}=x.useContext(Qc);return e?Klt():Nlt()}function Nlt(){ro(Lw(),"useNavigate() may be used only in the context of a component.");let e=x.useContext(_v),{basename:t,navigator:n}=x.useContext(Yc),{matches:r}=x.useContext(Qc),{pathname:o}=Zh(),i=JSON.stringify(cde(r)),a=x.useRef(!1);return hde(()=>{a.current=!0}),x.useCallback((l,c={})=>{if(jc(a.current,pde),!a.current)return;if(typeof l=="number"){n.go(l);return}let u=ude(l,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Fu([t,u.pathname])),(c.replace?n.replace:n.push)(u,c.state,c)},[t,n,i,o,e])}x.createContext(null);function Ma(){let{matches:e}=x.useContext(Qc),t=e[e.length-1];return t?t.params:{}}function Fw(e,{relative:t}={}){let{matches:n}=x.useContext(Qc),{pathname:r}=Zh(),o=JSON.stringify(cde(n));return x.useMemo(()=>ude(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function Llt(e,t){return mde(e,t)}function mde(e,t,n,r){var w;ro(Lw(),"useRoutes() may be used only in the context of a component.");let{navigator:o}=x.useContext(Yc),{matches:i}=x.useContext(Qc),a=i[i.length-1],s=a?a.params:{},l=a?a.pathname:"/",c=a?a.pathnameBase:"/",u=a&&a.route;{let C=u&&u.path||"";gde(l,!u||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${l}" (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. +`+(s!==a?`result of cast: ${s}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((o,i)=>i.call(this,o,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,o){let{path:i,originalValue:a=t,strict:s=this.spec.strict}=n,l=t;s||(l=this._cast(l,Object.assign({assert:!1},n)));let c=[];for(let u of Object.values(this.internalTests))u&&c.push(u);this.runTests({path:i,value:l,originalValue:a,options:n,tests:c},r,u=>{if(u.length)return o(u,l);this.runTests({path:i,value:l,originalValue:a,options:n,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,value:a,originalValue:s,path:l,options:c}=t,u=y=>{o||(o=!0,n(y,a))},f=y=>{o||(o=!0,r(y,a))},h=i.length,m=[];if(!h)return f([]);let g={value:a,originalValue:s,path:l,options:c,schema:this};for(let y=0;ythis.resolve(u)._validate(c,u,h,m)}validate(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((a,s)=>o._validate(t,n,(l,c)=>{Sa.isError(l)&&(l.value=c),s(l)},(l,c)=>{l.length?s(new Sa(l,c,void 0,void 0,i)):a(c)}))}validateSync(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(t,Object.assign({},n,{sync:!0}),(s,l)=>{throw Sa.isError(s)&&(s.value=l),s},(s,l)=>{if(s.length)throw new Sa(s,t,void 0,void 0,a);i=l}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Sa.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Sa.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Cg(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=tg({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=tg({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=dc.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=dc.notNull){return this.nullability(!1,t)}required(t=dc.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=dc.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=tg(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(i||a.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),o=kue(t).map(i=>new Kf(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new yO(o,n):yO.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=tg({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=dc.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=tg({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:a}})}}),r}notOneOf(t,n=dc.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=tg({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:o,optional:i,nullable:a}=n.spec;return{meta:o,label:r,optional:i,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,c,u)=>u.findIndex(f=>f.name===l.name)===c)}}}is.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])is.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:a}=aat(this,t,n,r.context);return a[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])is.prototype[e]=is.prototype.oneOf;for(const e of["not","nope"])is.prototype[e]=is.prototype.notOneOf;function Lu(){return new Lue}class Lue extends is{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(r.spec.coerce&&!r.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=XF.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(n){return $l(n)||n===!0}})}isFalse(t=XF.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(n){return $l(n)||n===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}Lu.prototype=Lue.prototype;const sat=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function lat(e){const t=JF(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function JF(e){var t,n;const r=sat.exec(e);return r?{year:vu(r[1]),month:vu(r[2],1)-1,day:vu(r[3],1),hour:vu(r[4]),minute:vu(r[5]),second:vu(r[6]),millisecond:r[7]?vu(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:vu(r[10]),minuteOffset:vu(r[11])}:null}function vu(e,t=0){return Number(e)||t}let cat=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,uat=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,dat=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,fat="^\\d{4}-\\d{2}-\\d{2}",pat="\\d{2}:\\d{2}:\\d{2}",hat="(([+-]\\d{2}(:?\\d{2})?)|Z)",mat=new RegExp(`${fat}T${pat}(\\.\\d+)?${hat}$`),gat=e=>$l(e)||e===e.trim(),yat={}.toString();function Ho(){return new Fue}class Fue extends is{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const o=t!=null&&t.toString?t.toString():t;return o===yat?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||dc.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=ha.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=ha.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=ha.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||ha.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=ha.email){return this.matches(cat,{name:"email",message:t,excludeEmptyString:!0})}url(t=ha.url){return this.matches(uat,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=ha.uuid){return this.matches(dat,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,o;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:o=void 0}=t:n=t),this.matches(mat,{name:"datetime",message:n||ha.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||ha.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const a=JF(i);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||ha.datetime_precision,params:{precision:o},skipAbsent:!0,test:i=>{if(!i||o==null)return!0;const a=JF(i);return a?a.precision===o:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=ha.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:gat})}lowercase(t=ha.lowercase){return this.transform(n=>$l(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>$l(n)||n===n.toLowerCase()})}uppercase(t=ha.uppercase){return this.transform(n=>$l(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>$l(n)||n===n.toUpperCase()})}}Ho.prototype=Fue.prototype;let vat=e=>e!=+e;function Do(){return new jue}class jue extends is{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!vat(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let o=t;if(typeof o=="string"){if(o=o.replace(/\s/g,""),o==="")return NaN;o=+o}return r.isType(o)||o===null?o:parseFloat(o)})})}min(t,n=zd.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=zd.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=zd.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return rthis.resolve(t)}})}positive(t=zd.positive){return this.moreThan(0,t)}negative(t=zd.negative){return this.lessThan(0,t)}integer(t=zd.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>$l(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(o=>$l(o)?o:Math[t](o))}}Do.prototype=jue.prototype;let Bue=new Date(""),bat=e=>Object.prototype.toString.call(e)==="[object Date]";function Xs(){return new $w}class $w extends is{constructor(){super({type:"date",check(t){return bat(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=lat(t),isNaN(t)?$w.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Kf.isRef(t))r=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(t,n=QF.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(t,n=QF.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}$w.INVALID_DATE=Bue;Xs.prototype=$w.prototype;Xs.INVALID_DATE=Bue;function xat(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([a,s])=>`${a}-${s}`));function i(a,s){let l=ah.split(a)[0];r.add(l),o.has(`${s}-${l}`)||n.push([s,l])}for(const a of Object.keys(e)){let s=e[a];r.add(a),Kf.isRef(s)&&s.isSibling?i(s.path,a):PP(s)&&"deps"in s&&s.deps.forEach(l=>i(l,a))}return Xit.array(Array.from(r),n).reverse()}function qX(e,t){let n=1/0;return e.some((r,o)=>{var i;if((i=t.path)!=null&&i.includes(r))return n=o,!0}),n}function zue(e){return(t,n)=>qX(e,t)-qX(e,n)}const Vue=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function IE(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=IE(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=IE(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(IE)}):"optional"in e?e.optional():e}const Sat=(e,t)=>{const n=[...ah.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=ah.getter(ah.join(n),!0)(e);return!!(o&&r in o)};let WX=e=>Object.prototype.toString.call(e)==="[object Object]";function KX(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const wat=zue([]);function Wo(e){return new Hue(e)}class Hue extends is{constructor(t){super({type:"object",check(n){return WX(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=wat,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let o=super._cast(t,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let i=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(o).filter(f=>!this._nodes.includes(f))),l={},c=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),u=!1;for(const f of s){let h=i[f],m=f in o;if(h){let g,y=o[f];c.path=(n.path?`${n.path}.`:"")+f,h=h.resolve({value:y,context:n.context,parent:l});let v=h instanceof is?h.spec:void 0,w=v==null?void 0:v.strict;if(v!=null&&v.strip){u=u||f in o;continue}g=!n.__validating||!w?h.cast(o[f],c):o[f],g!==void 0&&(l[f]=g)}else m&&!a&&(l[f]=o[f]);(m!==f in l||l[f]!==o[f])&&(u=!0)}return u?l:o}_validate(t,n={},r,o){let{from:i=[],originalValue:a=t,recursive:s=this.spec.recursive}=n;n.from=[{schema:this,value:a},...i],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(l,c)=>{if(!s||!WX(c)){o(l,c);return}a=a||c;let u=[];for(let f of this._nodes){let h=this.fields[f];!h||Kf.isRef(h)||u.push(h.asNestedTest({options:n,key:f,parent:c,parentPath:n.path,originalParent:a}))}this.runTests({tests:u,value:c,originalValue:a,options:n},r,f=>{o(f.sort(this._sortErrors).concat(l),c)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const a=r[o];r[o]=a===void 0?i:a}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const i=this.fields[r];let a=t;(o=a)!=null&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=xat(t,n),r._sortErrors=zue(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),o)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return IE(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>t.includes(r)&&t.includes(o)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let o=ah.getter(t,!0);return this.transform(i=>{if(!i)return i;let a=i;return Sat(i,t)&&(a=Object.assign({},i),r||delete a[t],a[n]=o(i)),a})}json(){return this.transform(Vue)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||TE.exact,test(n){if(n==null)return!0;const r=KX(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=TE.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=KX(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=TE.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[t(o)]=n[o];return r})}camelCase(){return this.transformKeys(s$.camelCase)}snakeCase(){return this.transformKeys(s$.snakeCase)}constantCase(){return this.transformKeys(t=>s$.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[i,a]of Object.entries(n.fields)){var o;let s=t;(o=s)!=null&&o.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[i]})),r.fields[i]=a.describe(s)}return r}}Wo.prototype=Hue.prototype;function sh(e){return new Uue(e)}class Uue extends is{constructor(t){super({type:"array",spec:{types:t},check(n){return Array.isArray(n)}}),this.innerType=void 0,this.innerType=t}_cast(t,n){const r=super._cast(t,n);if(!this._typeCheck(r)||!this.innerType)return r;let o=!1;const i=r.map((a,s)=>{const l=this.innerType.cast(a,Object.assign({},n,{path:`${n.path||""}[${s}]`}));return l!==a&&(o=!0),l});return o?i:r}_validate(t,n={},r,o){var i;let a=this.innerType,s=(i=n.recursive)!=null?i:this.spec.recursive;n.originalValue!=null&&n.originalValue,super._validate(t,n,r,(l,c)=>{var u;if(!s||!a||!this._typeCheck(c)){o(l,c);return}let f=new Array(c.length);for(let m=0;mo(m.concat(l),c))})}clone(t){const n=super.clone(t);return n.innerType=this.innerType,n}json(){return this.transform(Vue)}concat(t){let n=super.concat(t);return n.innerType=this.innerType,t.innerType&&(n.innerType=n.innerType?n.innerType.concat(t.innerType):t.innerType),n}of(t){let n=this.clone();if(!PP(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Nu(t));return n.innerType=t,n.spec=Object.assign({},n.spec,{types:t}),n}length(t,n=OE.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n){return n=n||OE.min,this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n){return n=n||OE.max,this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,n)=>this._typeCheck(t)?t:n==null?[]:[].concat(n))}compact(t){let n=t?(r,o,i)=>!t(r,o,i):r=>!!r;return this.transform(r=>r!=null?r.filter(n):r)}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);if(n.innerType){var o;let i=t;(o=i)!=null&&o.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),r.innerType=n.innerType.describe(i)}return r}}sh.prototype=Uue.prototype;const MV=({planId:e,entry:t,mealId:n,meals:r,closeFn:o})=>{const i=n===void 0?null:n,a=r===void 0?[]:r,[s,l]=je(),c=rFe(e),u=oFe(e),[f,h]=x.useState(t?xt.fromJSDate(t.datetime):xt.now()),[m,g]=x.useState(i),y=Wo({amount:Do().required(s("forms.fieldRequired")).max(1e3,s("forms.maxValue",{value:"1000"})).min(1,s("forms.minValue",{value:"1"})),ingredient:Do().required(s("forms.fieldRequired")),datetime:Xs().required(s("forms.fieldRequired"))});return S(Ti,{initialValues:{datetime:new Date,amount:0,ingredient:0},validationSchema:y,onSubmit:async v=>{const w={...v,plan:e,meal:m,weight_unit:null,datetime:v.datetime.toISOString()};t?u.mutate({...w,id:t.id}):c.mutate(w),o&&o()},children:v=>S(fi,{children:Q(Ft,{spacing:2,children:[S(vV,{callback:w=>v.setFieldValue("ingredient",w==null?void 0:w.data.id)}),S(dn,{fullWidth:!0,id:"amount",label:"amount",InputProps:{endAdornment:S(So,{position:"end",children:s("nutrition.gramShort")})},error:v.touched.amount&&!!v.errors.amount,helperText:v.touched.amount&&v.errors.amount,...v.getFieldProps("amount")}),a.length>0&&S(_c,{value:m,options:a.map(w=>w.id),getOptionLabel:w=>a.find(C=>C.id===w).displayName,onChange:(w,C)=>g(C),renderInput:w=>S(dn,{label:s("nutrition.meal"),value:m,...w})}),S(Ys,{dateAdapter:zl,adapterLocale:l.language,children:S(Itt,{format:"yyyy-MM-dd HH:mm",label:s("date"),value:f,disableFuture:!0,onChange:w=>{v.setFieldValue("datetime",w==null?void 0:w.toJSDate()),h(w)},shouldDisableDate:w=>(t&&Jn(t.datetime)===Jn(w.toJSDate()),!1)})}),Q(Ft,{direction:"row",justifyContent:"end",spacing:2,children:[o!==void 0&&S(ct,{color:"primary",variant:"outlined",onClick:()=>o(),children:s("close")}),S(ct,{color:"primary",variant:"contained",type:"submit",children:s("submit")})]})]})})})},RV=({plan:e,closeFn:t})=>{const[n]=je(),r=ZLe(),o=tFe(e==null?void 0:e.id),[i,a]=x.useState(e==null?void 0:e.hasAnyGoals),[s,l]=x.useState(e?xt.fromJSDate(e.start):xt.now),[c,u]=x.useState(e&&(e==null?void 0:e.end)!==null?xt.fromJSDate(e.end):null),f=Wo({description:Ho().required().max(25,n("forms.maxLength",{chars:"25"})).min(3,n("forms.minLength",{chars:"3"})),onlyLogging:Lu(),goalEnergy:Do().notRequired().positive().max(6e3,n("forms.maxValue",{value:"6000kcal"})),goalProtein:Do().notRequired().positive().max(500,n("forms.maxValue",{value:"500"})),goalCarbohydrates:Do().notRequired().positive().max(750,n("forms.maxValue",{value:"750"})),goalFiber:Do().notRequired().positive().max(500,n("forms.maxValue",{value:"500"})),goalFat:Do().notRequired().positive().max(500,n("forms.maxValue",{value:"500"})),start:Xs().required(),end:Xs().required().min(AP("start"),n("forms.endBeforeStart"))});return S(Ti,{initialValues:{description:e?e.description:n("nutrition.plan"),start:Jn(new Date),end:Jn(new Date),onlyLogging:e?e.onlyLogging:!0,goalEnergy:e?e.goalEnergy:null,goalProtein:e?e.goalProtein:null,goalCarbohydrates:e?e.goalCarbohydrates:null,goalFiber:e?e.goalFiber:null,goalFat:e?e.goalFat:null},validationSchema:f,onSubmit:async h=>{h.goalEnergy=h.goalEnergy?h.goalEnergy:null,h.goalProtein=h.goalProtein?h.goalProtein:null,h.goalCarbohydrates=h.goalCarbohydrates?h.goalCarbohydrates:null,h.goalFiber=h.goalFiber?h.goalFiber:null,h.goalFat=h.goalFat?h.goalFat:null,i||(h.goalEnergy=null,h.goalProtein=null,h.goalCarbohydrates=null,h.goalFiber=null,h.goalFat=null);const m=new SI({start:new Date(h.start),end:h.end?new Date(h.end):null,description:h.description,onlyLogging:h.onlyLogging,goalEnergy:h.goalEnergy,goalProtein:h.goalProtein,goalCarbohydrates:h.goalCarbohydrates,goalFiber:h.goalFiber,goalFat:h.goalFat});e?(m.id=e.id,o.mutate(m)):r.mutate(m),t&&t()},children:h=>S(fi,{children:Q(Ft,{spacing:2,children:[S(dn,{fullWidth:!0,id:"description",label:n("description"),error:h.touched.description&&!!h.errors.description,helperText:h.touched.description&&h.errors.description,...h.getFieldProps("description")}),Q(me,{container:!0,spacing:1,children:[S(me,{size:6,children:S(Ys,{dateAdapter:zl,adapterLocale:hr.language,children:S(Ih,{format:"yyyy-MM-dd",label:n("start"),value:s,slotProps:{textField:{variant:"standard",fullWidth:!0,error:h.touched.start&&!!h.errors.start,helperText:h.touched.start&&h.errors.start?String(h.errors.start):""}},onChange:m=>{m&&h.setFieldValue("start",m.toJSDate()),l(m)}})})}),S(me,{size:6,children:S(Ys,{dateAdapter:zl,adapterLocale:hr.language,children:S(Ih,{format:"yyyy-MM-dd",label:n("end"),value:c,slotProps:{textField:{variant:"standard",fullWidth:!0,error:h.touched.end&&!!h.errors.end,helperText:h.touched.end&&h.errors.end?String(h.errors.end):""}},onChange:m=>{m&&h.setFieldValue("end",m.toJSDate()),u(m)}})})})]}),S(Mx,{children:S(os,{label:n("nutrition.onlyLoggingHelpText"),control:S(qo,{id:"onlyLogging",checked:h.values.onlyLogging,...h.getFieldProps("onlyLogging")})})}),S(Mx,{children:S(os,{label:n("nutrition.useGoalsHelpText"),control:S(qo,{id:"goalEnergy",checked:i,onChange:()=>a(!i)})})}),S(aw,{children:n("nutrition.useGoalsHelpTextLong")}),i&&Q(Tt,{children:[S(dn,{fullWidth:!0,id:"energy",label:n("nutrition.goalEnergy"),error:h.touched.goalEnergy&&!!h.errors.goalEnergy,helperText:h.touched.goalEnergy&&h.errors.goalEnergy,...h.getFieldProps("goalEnergy"),InputProps:{endAdornment:S(So,{position:"end",children:n("nutrition.kcal")})}}),Q(me,{container:!0,spacing:1,children:[S(me,{size:4,children:S(dn,{id:"protein",fullWidth:!0,label:n("nutrition.goalProtein"),error:h.touched.goalProtein&&!!h.errors.goalProtein,helperText:h.touched.goalProtein&&h.errors.goalProtein,...h.getFieldProps("goalProtein"),InputProps:{startAdornment:S(So,{position:"start",children:h.values.goalProtein!==null&&h.values.goalProtein!==void 0?n("nutrition.valueEnergyKcal",{value:h.values.goalProtein*_g.protein}):""}),endAdornment:S(So,{position:"end",children:n("nutrition.gramShort")})}})}),S(me,{size:4,children:S(dn,{id:"carbohydrates",fullWidth:!0,label:n("nutrition.goalCarbohydrates"),error:h.touched.goalCarbohydrates&&!!h.errors.goalCarbohydrates,helperText:h.touched.goalCarbohydrates&&h.errors.goalCarbohydrates,...h.getFieldProps("goalCarbohydrates"),InputProps:{startAdornment:S(So,{position:"start",children:h.values.goalCarbohydrates!==null&&h.values.goalCarbohydrates!==void 0?n("nutrition.valueEnergyKcal",{value:h.values.goalCarbohydrates*_g.carbohydrates}):""}),endAdornment:S(So,{position:"end",children:n("nutrition.gramShort")})}})}),S(me,{size:4,children:S(dn,{id:"fat",fullWidth:!0,label:n("nutrition.goalFat"),error:h.touched.goalFat&&!!h.errors.goalFat,helperText:h.touched.goalFat&&h.errors.goalFat,...h.getFieldProps("goalFat"),InputProps:{startAdornment:S(So,{position:"start",children:h.values.goalFat!==null&&h.values.goalFat!==void 0?n("nutrition.valueEnergyKcal",{value:h.values.goalFat*_g.fat}):""}),endAdornment:S(So,{position:"end",children:n("nutrition.gramShort")})}})})]}),S(me,{container:!0,spacing:1,children:S(me,{size:4,children:S(dn,{id:"fiber",fullWidth:!0,label:n("nutrition.goalFiber"),error:h.touched.goalFiber&&!!h.errors.goalFiber,helperText:h.touched.goalFiber&&h.errors.goalFiber,...h.getFieldProps("goalFiber"),InputProps:{startAdornment:S(So,{position:"start",children:n("nutrition.valueEnergyKcal",{value:0})}),endAdornment:S(So,{position:"end",children:n("nutrition.gramShort")})}})})})]}),S(Ft,{direction:"row",justifyContent:"end",sx:{mt:2},children:S(ct,{color:"primary",variant:"contained",type:"submit",sx:{mt:2},children:n("submit")})})]})})})},Gue=()=>{const[e]=je(),t=QLe();return t.isLoading?S(Er,{}):t.data!==null?S(Cat,{plan:t.data}):S(gB,{title:e("nutritionalPlan"),modalContent:S(RV,{}),modalTitle:e("add")})};function Cat(e){const[t,n]=je(),[r,o]=J.useState(!1),i=()=>o(!0),a=()=>o(!1);return Q(Tt,{children:[Q(ho,{children:[S(Jl,{title:t("nutritionalPlan"),subheader:e.plan.description}),Q(Fi,{sx:{height:"500px",overflow:"auto"},children:[S(hYe,{percentage:e.plan.percentageValuesLoggedToday,planned:e.plan.plannedNutritionalValues,logged:e.plan.loggedNutritionalValuesToday}),S(ai,{children:e.plan.meals.map(s=>S(Eat,{meal:s,planId:e.plan.id},s.id))})]}),Q(ll,{sx:{justifyContent:"space-between",alignItems:"flex-start"},children:[S(ct,{size:"small",href:cn(Qt.NUTRITION_DETAIL,n.language,{id:e.plan.id}),children:t("seeDetails")}),S(Go,{title:t("nutrition.logThisMealItem"),children:S(pn,{onClick:i,children:S(lw,{})})})]})]}),S(Bi,{title:t("nutrition.addNutritionalDiary"),isOpen:r,closeFn:a,children:S(MV,{closeFn:a,planId:e.plan.id,meals:e.plan.meals})})]})}const Eat=e=>{const[t,n]=je(),r=oie(e.planId),[o,i]=x.useState(!1),[a,s]=J.useState(!1),l=()=>i(!o),c=(m,g)=>{g!=="clickaway"&&s(!1)},u=m=>{const g=[{plan:e.planId,meal:e.meal.id,mealItem:m.id,ingredient:m.ingredientId,weight_unit:m.weightUnitId,datetime:new Date().toISOString(),amount:m.amount}];r.mutate(g),s(!0)},f=e.meal.name?e.meal.name:nT(e.meal.time,n.language),h=e.meal.name?nT(e.meal.time,n.language):null;return Q(Tt,{children:[Q(Fl,{onClick:l,selected:o,children:[S(nl,{children:o?S(J0,{}):S(Du,{})}),S(Wr,{primary:f,secondary:h})]}),S(aa,{in:o,timeout:"auto",unmountOnExit:!0,children:S(ai,{children:e.meal.items.map(m=>{var g,y,v,w;return Q(Co,{secondaryAction:S(Go,{title:t("nutrition.logThisMealItem"),children:S(pn,{edge:"end",onClick:()=>u(m),children:S(lw,{})})}),children:[S(fB,{children:S(Kl,{alt:(g=m.ingredient)==null?void 0:g.name,src:(v=(y=m.ingredient)==null?void 0:y.image)==null?void 0:v.url,sx:{width:45,height:45},children:S(Ju,{})})}),S(Wr,{primary:(w=m.ingredient)==null?void 0:w.name,secondary:$n(m.amount,n.language)})]},m.id)})})}),S(dI,{open:a,autoHideDuration:EI,onClose:c,children:S(Ci,{onClose:c,severity:"success",sx:{width:"100%"},children:t("nutrition.diaryEntrySaved")})})]})},que=Ot(k.jsx("path",{d:"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14zM7 10h5v5H7z"}));function Kc(e){return yr({queryKey:[st.ROUTINE_DETAIL,e],queryFn:()=>lNe(e)})}function Tat(e){return yr({queryKey:[st.ROUTINE_STATS,e],queryFn:()=>vNe(e)})}function Wue(e){return yr({queryKey:[st.ROUTINE_LOG_DATA,e],queryFn:()=>yNe(e)})}function Oat(){return yr({queryKey:[st.ROUTINES_SHALLOW],queryFn:cNe})}function Iat(){return yr({queryKey:[st.PRIVATE_TEMPLATES],queryFn:uNe})}function Pat(){return yr({queryKey:[st.PUBLIC_TEMPLATES],queryFn:dNe})}function Aat(){return yr({queryKey:[st.ROUTINES_ACTIVE],queryFn:sNe})}const Mat=()=>{const e=Mt();return Dt({mutationFn:t=>fNe(t),onSuccess:()=>e.invalidateQueries({queryKey:[st.ROUTINE_OVERVIEW]})})},Kue=e=>{const t=Mt();return Dt({mutationFn:n=>pNe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.ROUTINE_OVERVIEW]}),t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})}})},Rat=e=>{const t=Mt();return Dt({mutationFn:()=>hNe(e),onSuccess:()=>{t.invalidateQueries({queryKey:[st.ROUTINE_OVERVIEW]}),t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})}})},Dat=e=>{const t=Mt();return Dt({mutationFn:n=>oLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},kat=e=>{const t=Mt();return Dt({mutationFn:n=>iLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},_at=e=>{const t=Mt();return Dt({mutationFn:n=>aLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},$at=e=>{const t=Mt();return Dt({mutationFn:n=>sLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Nat=e=>{const t=Mt();return Dt({mutationFn:n=>lLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Lat=e=>{const t=Mt();return Dt({mutationFn:n=>cLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Fat=e=>{const t=Mt();return Dt({mutationFn:n=>uLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},jat=e=>{const t=Mt();return Dt({mutationFn:n=>dLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Bat=e=>{const t=Mt();return Dt({mutationFn:n=>fLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},zat=e=>{const t=Mt();return Dt({mutationFn:n=>pLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Vat=e=>{const t=Mt();return Dt({mutationFn:n=>hLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},YX=e=>{const t=Mt();return Dt({mutationFn:n=>mLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Hat=e=>{const t=Mt();return Dt({mutationFn:n=>gLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Uat=e=>{const t=Mt();return Dt({mutationFn:n=>yLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Gat=e=>{const t=Mt();return Dt({mutationFn:n=>vLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},qat=e=>{const t=Mt();return Dt({mutationFn:n=>bLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Wat=e=>{const t=Mt();return Dt({mutationFn:n=>xLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Kat=e=>{const t=Mt();return Dt({mutationFn:n=>SLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Yue=e=>{const t=Mt();return Dt({mutationFn:n=>wLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Que=e=>{const t=Mt();return Dt({mutationFn:n=>CLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Xue=e=>{const t=Mt();return Dt({mutationFn:n=>ELe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Yat=e=>{const t=Mt();return Dt({mutationFn:n=>TLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Qat=e=>{const t=Mt();return Dt({mutationFn:n=>OLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Xat=e=>{const t=Mt();return Dt({mutationFn:n=>ILe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Jat=e=>{const t=Mt();return Dt({mutationFn:n=>PLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},Zat=e=>{const t=Mt();return Dt({mutationFn:n=>ALe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},est=e=>{const t=Mt();return Dt({mutationFn:n=>MLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},tst=e=>{const t=Mt();return Dt({mutationFn:n=>RLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},nst=e=>{const t=Mt();return Dt({mutationFn:n=>DLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},rst=e=>{const t=Mt();return Dt({mutationFn:n=>kLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},ost=e=>{const t=Mt();return Dt({mutationFn:n=>QNe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},ist=e=>{const t=Mt();return Dt({mutationFn:n=>XNe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},ast=e=>{const t=Mt();return Dt({mutationFn:n=>JNe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},sst=e=>{const t=Mt();return Dt({mutationFn:n=>ZNe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})};function lst(e){const t=Mt();return Dt({mutationFn:n=>UNe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.ROUTINE_LOG_DATA,e]}),t.invalidateQueries({queryKey:[st.ROUTINE_STATS,e]})}})}function cst(e){const t=Mt();return Dt({mutationFn:n=>GNe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.ROUTINE_LOGS,e]}),t.invalidateQueries({queryKey:[st.ROUTINE_STATS,e]})}})}function ust(e){const t=Mt();return Dt({mutationFn:n=>qNe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.ROUTINE_LOGS,e]}),t.invalidateQueries({queryKey:[st.ROUTINE_STATS,e]})}})}const Nw=e=>{const t=Mt();return Dt({mutationFn:n=>WNe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},dst=e=>{const t=Mt();return Dt({mutationFn:n=>YNe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},fst=e=>{const t=Mt();return Dt({mutationFn:n=>KNe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},pst=()=>yr({queryKey:[st.ROUTINE_WEIGHT_UNITS],queryFn:Qoe}),hst=()=>yr({queryKey:[st.ROUTINE_REP_UNITS],queryFn:Yoe}),mst=e=>{const t=Mt();return Dt({mutationFn:n=>eLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},gst=e=>{const t=Mt();return Dt({mutationFn:n=>tLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},yst=e=>{const t=Mt();return Dt({mutationFn:n=>nLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},vst=e=>{const t=Mt();return Dt({mutationFn:n=>rLe(n),onSuccess:()=>t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})})},bst=(e,t)=>yr({queryFn:()=>_Le(t),queryKey:[st.SESSION_SEARCH,e,JSON.stringify(t)]}),xst=()=>{const e=Mt();return Dt({mutationFn:t=>NLe(t),onSuccess:()=>e.invalidateQueries({queryKey:[st.ROUTINE_OVERVIEW]})})},Sst=e=>yr({queryFn:()=>$Le(e),queryKey:[st.SESSIONS_FULL,JSON.stringify(e||{})]}),wst=e=>{const t=Mt();return Dt({mutationFn:n=>LLe(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.ROUTINE_OVERVIEW]}),t.invalidateQueries({queryKey:[st.ROUTINE_DETAIL,e]})}})},Ko=Ot(k.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),Jue=Ot(k.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11h-4v4h-2v-4H7v-2h4V7h2v4h4z"})),Cst=Ot(k.jsx("path",{d:"M22 5v2h-3v3h-2V7h-3V5h3V2h2v3zm-3 14H5V5h6V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-6h-2zm-4-6v4h2v-4zm-4 4h2V9h-2zm-2 0v-6H7v6z"})),Est=Ot(k.jsx("path",{d:"m7 10 5 5 5-5z"})),Tst=Ot(k.jsx("path",{d:"m7 14 5-5 5 5z"})),Ost=Ot(k.jsx("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"})),Zue=Ot(k.jsx("path",{d:"M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z"})),Ist=Ot(k.jsx("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4z"})),Pst=Ot(k.jsx("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V10h14zM9 14H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm-8 4H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2z"})),Ast=Ot([k.jsx("circle",{cx:"12",cy:"12",r:"3.2"},"0"),k.jsx("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"1")]),Mst=Ot(k.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"})),Rst=Ot(k.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),Dst=Ot(k.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"})),kst=Ot(k.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),ede=Ot(k.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),_st=Ot(k.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),$st=Ot(k.jsx("path",{d:"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2m-11-4 2.03 2.71L16 11l4 5H8zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6z"})),Nst=Ot(k.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),MP=Ot(k.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})),Lst=Ot(k.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"})),OS=Ot(k.jsx("path",{d:"M16 9v10H8V9zm-1.5-6h-5l-1 1H5v2h14V4h-3.5zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2z"})),tde=Ot(k.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})),DV=Ot(k.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),Fst=Ot(k.jsx("path",{d:"m12.126 8.125 1.937-1.937 3.747 3.747-1.937 1.938zM20.71 5.63l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75L20.71 7a1 1 0 0 0 0-1.37M2 5l6.63 6.63L3 17.25V21h3.75l5.63-5.62L18 21l2-2L4 3z"})),jst=Ot(k.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61"})),Bst=Ot(k.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m6 13h-5l-1-2H9.5v5H8V7h6l1 2h3z"})),IS=Ot(k.jsx("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"})),nde=Ot(k.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"})),rde=Ot(k.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"})),zst=Ot(k.jsx("path",{d:"m14 6-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22z"})),Vst=Ot(k.jsx("path",{d:"m14 6-4.22 5.63 1.25 1.67L14 9.33 19 16h-8.46l-4.01-5.37L1 18h22zM5 16l1.52-2.03L8.04 16z"})),Hst=Ot([k.jsx("path",{d:"M5 16h3.04l-1.52-2.03z",opacity:".3"},"0"),k.jsx("path",{d:"m9.78 11.63 1.25 1.67L14 9.33 19 16h-8.46l-4.01-5.37L1 18h22L14 6zM5 16l1.52-2.03L8.04 16z"},"1")]),kV=Ot(k.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),Ust=Ot(k.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})),ode=Ot(k.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})),Gst=Ot(k.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),qst=Ot(k.jsx("path",{d:"M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"})),Wst=Ot([k.jsx("circle",{cx:"12",cy:"12",r:"3.2"},"0"),k.jsx("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"1")]),Kst=Ot(k.jsx("path",{d:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7z"})),ide=Ot(k.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"})),Yst=Ot([k.jsx("path",{d:"M9 15.5h6v1H9z"},"0"),k.jsx("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"1"),k.jsx("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"2"),k.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"3")]),Qst=Ot([k.jsx("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"0"),k.jsx("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"1"),k.jsx("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"2"),k.jsx("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"3"),k.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m0-2.5c2.33 0 4.32-1.45 5.12-3.5h-1.67c-.69 1.19-1.97 2-3.45 2s-2.75-.81-3.45-2H6.88c.8 2.05 2.79 3.5 5.12 3.5"},"4")]),Xst=Ot([k.jsx("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"0"),k.jsx("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"1"),k.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m0-6c-2.33 0-4.32 1.45-5.12 3.5h1.67c.69-1.19 1.97-2 3.45-2s2.75.81 3.45 2h1.67c-.8-2.05-2.79-3.5-5.12-3.5"},"2")]),Jst=Ot(k.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"})),Zst=Ot(k.jsx("path",{d:"M19 9h-2v6.59L5.41 4 4 5.41 15.59 17H9v2h10z"})),elt=Ot(k.jsx("path",{d:"M21 5.47 12 12 7.62 7.62 3 11V8.52L7.83 5l4.38 4.38L21 3zM21 15h-4.7l-4.17 3.34L6 12.41l-3 2.13V17l2.8-2 6.2 6 5-4h4z"})),tlt=Ot(k.jsx("path",{d:"M6.99 11 3 15l3.99 4v-3H14v-2H6.99zM21 9l-3.99-4v3H10v2h7.01v3z"})),RP=e=>{if(e.query.isLoading)return S(Er,{});if(e.query.isError)return S(Zt,{sx:{height:200,alignItems:"center",mt:2},component:Ft,direction:"column",justifyContent:"center",children:Q(Ci,{severity:"error",children:["Error while fetching data: ",e.query.error.message]})});if(e.query.isSuccess)return e.child},nlt=e=>{var r;const t=e.avatarSize||40,n=e.iconSize||40;return S(Kl,{sx:{height:t,width:t},src:(r=e.image)==null?void 0:r.url,children:S(Ju,{sx:{height:n,width:n}})})};function ade(){return yr({queryKey:[st.EXERCISES],queryFn:h2e})}function rlt(e){return yr({queryKey:[st.EXERCISE_DETAIL,e],queryFn:()=>pv(e)})}function olt(e){const t=Mt();return Dt({mutationFn:n=>QN(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.EXERCISES]}),t.invalidateQueries({queryKey:[st.EXERCISE_DETAIL,e]})}})}function ilt(e){const t=Mt();return Dt({mutationFn:n=>b2e(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.EXERCISES]}),t.invalidateQueries({queryKey:[st.EXERCISE_DETAIL,e]})}})}function alt(e){const t=Mt();return Dt({mutationFn:n=>C2e(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.EXERCISES]}),t.invalidateQueries({queryKey:[st.EXERCISE_DETAIL,e]})}})}function slt(e){const t=Mt();return Dt({mutationFn:n=>jre(n),onSuccess:()=>{t.invalidateQueries({queryKey:[st.EXERCISES]}),t.invalidateQueries({queryKey:[st.EXERCISE_DETAIL,e]})}})}function DP(){return yr({queryKey:[st.CATEGORIES],queryFn:Qke})}function _v(){return yr({queryKey:[st.MUSCLES],queryFn:vke})}function kP(){return yr({queryKey:[st.EQUIPMENT],queryFn:Wke})}function Yc(){return yr({queryKey:[st.LANGUAGES],queryFn:w2e})}var y0={},QX;function llt(){if(QX)return y0;QX=1,Object.defineProperty(y0,"__esModule",{value:!0}),y0.parse=a,y0.serialize=c;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]*$/,o=Object.prototype.toString,i=(()=>{const h=function(){};return h.prototype=Object.create(null),h})();function a(h,m){const g=new i,y=h.length;if(y<2)return g;const v=(m==null?void 0:m.decode)||u;let w=0;do{const C=h.indexOf("=",w);if(C===-1)break;const E=h.indexOf(";",w),I=E===-1?y:E;if(C>I){w=h.lastIndexOf(";",C-1)+1;continue}const O=s(h,w,C),P=l(h,C,O),R=h.slice(O,P);if(g[R]===void 0){let D=s(h,C+1,I),M=l(h,I,D);const A=v(h.slice(D,M));g[R]=A}w=I+1}while(wg;){const y=h.charCodeAt(--m);if(y!==32&&y!==9)return m+1}return g}function c(h,m,g){const y=(g==null?void 0:g.encode)||encodeURIComponent;if(!e.test(h))throw new TypeError(`argument name is invalid: ${h}`);const v=y(m);if(!t.test(v))throw new TypeError(`argument val is invalid: ${m}`);let w=h+"="+v;if(!g)return w;if(g.maxAge!==void 0){if(!Number.isInteger(g.maxAge))throw new TypeError(`option maxAge is invalid: ${g.maxAge}`);w+="; Max-Age="+g.maxAge}if(g.domain){if(!n.test(g.domain))throw new TypeError(`option domain is invalid: ${g.domain}`);w+="; Domain="+g.domain}if(g.path){if(!r.test(g.path))throw new TypeError(`option path is invalid: ${g.path}`);w+="; Path="+g.path}if(g.expires){if(!f(g.expires)||!Number.isFinite(g.expires.valueOf()))throw new TypeError(`option expires is invalid: ${g.expires}`);w+="; Expires="+g.expires.toUTCString()}if(g.httpOnly&&(w+="; HttpOnly"),g.secure&&(w+="; Secure"),g.partitioned&&(w+="; Partitioned"),g.priority)switch(typeof g.priority=="string"?g.priority.toLowerCase():void 0){case"low":w+="; Priority=Low";break;case"medium":w+="; Priority=Medium";break;case"high":w+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${g.priority}`)}if(g.sameSite)switch(typeof g.sameSite=="string"?g.sameSite.toLowerCase():g.sameSite){case!0:case"strict":w+="; SameSite=Strict";break;case"lax":w+="; SameSite=Lax";break;case"none":w+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${g.sameSite}`)}return w}function u(h){if(h.indexOf("%")===-1)return h;try{return decodeURIComponent(h)}catch{return h}}function f(h){return o.call(h)==="[object Date]"}return y0}llt();var XX="popstate";function clt(e={}){function t(r,o){let{pathname:i,search:a,hash:s}=r.location;return ZF("",{pathname:i,search:a,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:PS(o)}return dlt(t,n,null,e)}function ro(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Bc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ult(){return Math.random().toString(36).substring(2,10)}function JX(e,t){return{usr:e.state,key:e.key,idx:t}}function ZF(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?$v(t):t,state:n,key:t&&t.key||r||ult()}}function PS({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 $v(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 dlt(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s="POP",l=null,c=u();c==null&&(c=0,a.replaceState({...a.state,idx:c},""));function u(){return(a.state||{idx:null}).idx}function f(){s="POP";let v=u(),w=v==null?null:v-c;c=v,l&&l({action:s,location:y.location,delta:w})}function h(v,w){s="PUSH";let C=ZF(y.location,v,w);c=u()+1;let E=JX(C,c),I=y.createHref(C);try{a.pushState(E,"",I)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;o.location.assign(I)}i&&l&&l({action:s,location:y.location,delta:1})}function m(v,w){s="REPLACE";let C=ZF(y.location,v,w);c=u();let E=JX(C,c),I=y.createHref(C);a.replaceState(E,"",I),i&&l&&l({action:s,location:y.location,delta:0})}function g(v){return flt(v)}let y={get action(){return s},get location(){return e(o,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(XX,f),l=v,()=>{o.removeEventListener(XX,f),l=null}},createHref(v){return t(o,v)},createURL:g,encodeLocation(v){let w=g(v);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:h,replace:m,go(v){return a.go(v)}};return y}function flt(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),ro(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:PS(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function sde(e,t,n="/"){return plt(e,t,n,!1)}function plt(e,t,n,r){let o=typeof t=="string"?$v(t):t,i=Qu(o.pathname||"/",n);if(i==null)return null;let a=lde(e);hlt(a);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(ro(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length));let c=Fu([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(ro(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),lde(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:Slt(c,i.index),routesMeta:u})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of cde(i.path))o(i,a,l)}),t}function cde(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=cde(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function hlt(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:wlt(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var mlt=/^:[\w-]+$/,glt=3,ylt=2,vlt=1,blt=10,xlt=-2,ZX=e=>e==="*";function Slt(e,t){let n=e.split("/"),r=n.length;return n.some(ZX)&&(r+=xlt),t&&(r+=ylt),n.filter(o=>!ZX(o)).reduce((o,i)=>o+(mlt.test(i)?glt:i===""?vlt:blt),r)}function wlt(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Clt(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s{if(u==="*"){let g=s[h]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const m=s[h];return f&&!m?c[u]=void 0:c[u]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function Elt(e,t=!1,n=!0){Bc(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Tlt(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Bc(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Qu(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 Olt(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?$v(e):e;return{pathname:n?n.startsWith("/")?n:Ilt(n,t):t,search:Mlt(r),hash:Rlt(o)}}function Ilt(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function l$(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 Plt(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ude(e){let t=Plt(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function dde(e,t,n,r=!1){let o;typeof e=="string"?o=$v(e):(o={...e},ro(!o.pathname||!o.pathname.includes("?"),l$("?","pathname","search",o)),ro(!o.pathname||!o.pathname.includes("#"),l$("#","pathname","hash",o)),ro(!o.search||!o.search.includes("#"),l$("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),f-=1;o.pathname=h.join("/")}s=f>=0?t[f]:"/"}let l=Olt(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}var Fu=e=>e.join("/").replace(/\/\/+/g,"/"),Alt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Mlt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Rlt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Dlt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var fde=["POST","PUT","PATCH","DELETE"];new Set(fde);var klt=["GET",...fde];new Set(klt);var Nv=x.createContext(null);Nv.displayName="DataRouter";var _P=x.createContext(null);_P.displayName="DataRouterState";var pde=x.createContext({isTransitioning:!1});pde.displayName="ViewTransition";var _lt=x.createContext(new Map);_lt.displayName="Fetchers";var $lt=x.createContext(null);$lt.displayName="Await";var Qc=x.createContext(null);Qc.displayName="Navigation";var Lw=x.createContext(null);Lw.displayName="Location";var Xc=x.createContext({outlet:null,matches:[],isDataRoute:!1});Xc.displayName="Route";var _V=x.createContext(null);_V.displayName="RouteError";function Nlt(e,{relative:t}={}){ro(Fw(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=x.useContext(Qc),{hash:o,pathname:i,search:a}=jw(e,{relative:t}),s=i;return n!=="/"&&(s=i==="/"?n:Fu([n,i])),r.createHref({pathname:s,search:a,hash:o})}function Fw(){return x.useContext(Lw)!=null}function Zh(){return ro(Fw(),"useLocation() may be used only in the context of a component."),x.useContext(Lw).location}var hde="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function mde(e){x.useContext(Qc).static||x.useLayoutEffect(e)}function id(){let{isDataRoute:e}=x.useContext(Xc);return e?Ylt():Llt()}function Llt(){ro(Fw(),"useNavigate() may be used only in the context of a component.");let e=x.useContext(Nv),{basename:t,navigator:n}=x.useContext(Qc),{matches:r}=x.useContext(Xc),{pathname:o}=Zh(),i=JSON.stringify(ude(r)),a=x.useRef(!1);return mde(()=>{a.current=!0}),x.useCallback((l,c={})=>{if(Bc(a.current,hde),!a.current)return;if(typeof l=="number"){n.go(l);return}let u=dde(l,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Fu([t,u.pathname])),(c.replace?n.replace:n.push)(u,c.state,c)},[t,n,i,o,e])}x.createContext(null);function Ma(){let{matches:e}=x.useContext(Xc),t=e[e.length-1];return t?t.params:{}}function jw(e,{relative:t}={}){let{matches:n}=x.useContext(Xc),{pathname:r}=Zh(),o=JSON.stringify(ude(n));return x.useMemo(()=>dde(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function Flt(e,t){return gde(e,t)}function gde(e,t,n,r){var w;ro(Fw(),"useRoutes() may be used only in the context of a component.");let{navigator:o}=x.useContext(Qc),{matches:i}=x.useContext(Xc),a=i[i.length-1],s=a?a.params:{},l=a?a.pathname:"/",c=a?a.pathnameBase:"/",u=a&&a.route;{let C=u&&u.path||"";yde(l,!u||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${l}" (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 f=Zh(),h;if(t){let C=typeof t=="string"?kv(t):t;ro(c==="/"||((w=C.pathname)==null?void 0:w.startsWith(c)),`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 "${c}" but pathname "${C.pathname}" was given in the \`location\` prop.`),h=C}else h=f;let m=h.pathname||"/",g=m;if(c!=="/"){let C=c.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(C.length).join("/")}let y=ade(e,{pathname:g});jc(u||y!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),jc(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.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 v=Vlt(y&&y.map(C=>Object.assign({},C,{params:Object.assign({},s,C.params),pathname:Fu([c,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?c:Fu([c,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&v?x.createElement(Nw.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...h},navigationType:"POP"}},v):v}function Flt(){let e=Wlt(),t=Rlt(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)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:i},"ErrorBoundary")," or"," ",x.createElement("code",{style:i},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:o},n):null,a)}var jlt=x.createElement(Flt,null),Blt=class extends x.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?x.createElement(Qc.Provider,{value:this.props.routeContext},x.createElement(kV.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function zlt({routeContext:e,match:t,children:n}){let r=x.useContext(_v);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),x.createElement(Qc.Provider,{value:e},n)}function Vlt(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 o=e,i=n==null?void 0:n.errors;if(i!=null){let l=o.findIndex(c=>c.route.id&&(i==null?void 0:i[c.route.id])!==void 0);ro(l>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,l+1))}let a=!1,s=-1;if(n)for(let l=0;l=0?o=o.slice(0,s+1):o=[o[0]];break}}}return o.reduceRight((l,c,u)=>{let f,h=!1,m=null,g=null;n&&(f=i&&c.route.id?i[c.route.id]:void 0,m=c.route.errorElement||jlt,a&&(s<0&&u===0?(gde("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,g=null):s===u&&(h=!0,g=c.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,u+1)),v=()=>{let w;return f?w=m:h?w=g:c.route.Component?w=x.createElement(c.route.Component,null):c.route.element?w=c.route.element:w=l,x.createElement(zlt,{match:c,routeContext:{outlet:l,matches:y,isDataRoute:n!=null},children:w})};return n&&(c.route.ErrorBoundary||c.route.errorElement||u===0)?x.createElement(Blt,{location:n.location,revalidation:n.revalidation,component:m,error:f,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}function _V(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Hlt(e){let t=x.useContext(_v);return ro(t,_V(e)),t}function Ult(e){let t=x.useContext(DP);return ro(t,_V(e)),t}function Glt(e){let t=x.useContext(Qc);return ro(t,_V(e)),t}function $V(e){let t=Glt(e),n=t.matches[t.matches.length-1];return ro(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function qlt(){return $V("useRouteId")}function Wlt(){var r;let e=x.useContext(kV),t=Ult("useRouteError"),n=$V("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function Klt(){let{router:e}=Hlt("useNavigate"),t=$V("useNavigate"),n=x.useRef(!1);return hde(()=>{n.current=!0}),x.useCallback(async(o,i={})=>{jc(n.current,pde),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...i}))},[e,t])}var JX={};function gde(e,t,n){!t&&!JX[e]&&(JX[e]=!0,jc(!1,n))}x.memo(Ylt);function Ylt({routes:e,future:t,state:n}){return mde(e,void 0,n,t)}function Ht(e){ro(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function Qlt({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1}){ro(!Lw(),"You cannot render a inside another . You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),s=x.useMemo(()=>({basename:a,navigator:o,static:i,future:{}}),[a,o,i]);typeof n=="string"&&(n=kv(n));let{pathname:l="/",search:c="",hash:u="",state:f=null,key:h="default"}=n,m=x.useMemo(()=>{let g=Qu(l,a);return g==null?null:{location:{pathname:g,search:c,hash:u,state:f,key:h},navigationType:r}},[a,l,c,u,f,h,r]);return jc(m!=null,` is not able to match the URL "${l}${c}${u}" because it does not start with the basename, so the won't render anything.`),m==null?null:x.createElement(Yc.Provider,{value:s},x.createElement(Nw.Provider,{children:t,value:m}))}function Xlt({children:e,location:t}){return Llt(ZF(e),t)}function ZF(e,t=[]){let n=[];return x.Children.forEach(e,(r,o)=>{if(!x.isValidElement(r))return;let i=[...t,o];if(r.type===x.Fragment){n.push.apply(n,ZF(r.props.children,i));return}ro(r.type===Ht,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),ro(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||i.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&&(a.children=ZF(r.props.children,i)),n.push(a)}),n}var IE="get",PE="application/x-www-form-urlencoded";function kP(e){return e!=null&&typeof e.tagName=="string"}function Zlt(e){return kP(e)&&e.tagName.toLowerCase()==="button"}function Jlt(e){return kP(e)&&e.tagName.toLowerCase()==="form"}function ect(e){return kP(e)&&e.tagName.toLowerCase()==="input"}function tct(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function nct(e,t){return e.button===0&&(!t||t==="_self")&&!tct(e)}var X1=null;function rct(){if(X1===null)try{new FormData(document.createElement("form"),0),X1=!1}catch{X1=!0}return X1}var oct=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function s$(e){return e!=null&&!oct.has(e)?(jc(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${PE}"`),null):e}function ict(e,t){let n,r,o,i,a;if(Jlt(e)){let s=e.getAttribute("action");r=s?Qu(s,t):null,n=e.getAttribute("method")||IE,o=s$(e.getAttribute("enctype"))||PE,i=new FormData(e)}else if(Zlt(e)||ect(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a